summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9133
-rw-r--r--config.h.in1707
-rwxr-xr-xconfigure36863
-rw-r--r--moduli.074
-rw-r--r--scp.0165
-rw-r--r--sftp-server.096
-rw-r--r--sftp.0383
-rw-r--r--ssh-add.0129
-rw-r--r--ssh-agent.0112
-rw-r--r--ssh-keygen.0566
-rw-r--r--ssh-keyscan.0109
-rw-r--r--ssh-keysign.053
-rw-r--r--ssh-pkcs11-helper.025
-rw-r--r--ssh.0972
-rw-r--r--ssh_config.01026
-rw-r--r--sshd.0635
-rw-r--r--sshd_config.01052
17 files changed, 53100 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 000000000..0e0dd8787
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,9133 @@
1commit e91346dc2bbf460246df2ab591b7613908c1b0ad
2Author: Damien Miller <djm@mindrot.org>
3Date: Fri Aug 21 14:49:03 2015 +1000
4
5 we don't use Github for issues/pull-requests
6
7commit a4f5b507c708cc3dc2c8dd2d02e4416d7514dc23
8Author: Damien Miller <djm@mindrot.org>
9Date: Fri Aug 21 14:43:55 2015 +1000
10
11 fix URL for connect.c
12
13commit d026a8d3da0f8186598442997c7d0a28e7275414
14Author: Damien Miller <djm@mindrot.org>
15Date: Fri Aug 21 13:47:10 2015 +1000
16
17 update version numbers for 7.1
18
19commit 78f8f589f0ca1c9f41e5a9bae3cda5ce8a6b42ed
20Author: djm@openbsd.org <djm@openbsd.org>
21Date: Fri Aug 21 03:45:26 2015 +0000
22
23 upstream commit
24
25 openssh-7.1
26
27 Upstream-ID: ff7b1ef4b06caddfb45e08ba998128c88be3d73f
28
29commit 32a181980c62fce94f7f9ffaf6a79d90f0c309cf
30Author: djm@openbsd.org <djm@openbsd.org>
31Date: Fri Aug 21 03:42:19 2015 +0000
32
33 upstream commit
34
35 fix inverted logic that broke PermitRootLogin; reported
36 by Mantas Mikulenas; ok markus@
37
38 Upstream-ID: 260dd6a904c1bb7e43267e394b1c9cf70bdd5ea5
39
40commit ce445b0ed927e45bd5bdce8f836eb353998dd65c
41Author: deraadt@openbsd.org <deraadt@openbsd.org>
42Date: Thu Aug 20 22:32:42 2015 +0000
43
44 upstream commit
45
46 Do not cast result of malloc/calloc/realloc* if stdlib.h
47 is in scope ok krw millert
48
49 Upstream-ID: 5e50ded78cadf3841556649a16cc4b1cb6c58667
50
51commit 05291e5288704d1a98bacda269eb5a0153599146
52Author: naddy@openbsd.org <naddy@openbsd.org>
53Date: Thu Aug 20 19:20:06 2015 +0000
54
55 upstream commit
56
57 In the certificates section, be consistent about using
58 "host_key" and "user_key" for the respective key types. ok sthen@ deraadt@
59
60 Upstream-ID: 9e037ea3b15577b238604c5533e082a3947f13cb
61
62commit 8543d4ef6f2e9f98c3e6b77c894ceec30c5e4ae4
63Author: djm@openbsd.org <djm@openbsd.org>
64Date: Wed Aug 19 23:21:42 2015 +0000
65
66 upstream commit
67
68 Better compat matching for WinSCP, add compat matching
69 for FuTTY (fork of PuTTY); ok markus@ deraadt@
70
71 Upstream-ID: 24001d1ac115fa3260fbdc329a4b9aeb283c5389
72
73commit ec6eda16ebab771aa3dfc90629b41953b999cb1e
74Author: djm@openbsd.org <djm@openbsd.org>
75Date: Wed Aug 19 23:19:01 2015 +0000
76
77 upstream commit
78
79 fix double-free() in error path of DSA key generation
80 reported by Mateusz Kocielski; ok markus@
81
82 Upstream-ID: 4735d8f888b10599a935fa1b374787089116713c
83
84commit 45b0eb752c94954a6de046bfaaf129e518ad4b5b
85Author: djm@openbsd.org <djm@openbsd.org>
86Date: Wed Aug 19 23:18:26 2015 +0000
87
88 upstream commit
89
90 fix free() of uninitialised pointer reported by Mateusz
91 Kocielski; ok markus@
92
93 Upstream-ID: 519552b050618501a06b7b023de5cb104e2c5663
94
95commit c837643b93509a3ef538cb6624b678c5fe32ff79
96Author: djm@openbsd.org <djm@openbsd.org>
97Date: Wed Aug 19 23:17:51 2015 +0000
98
99 upstream commit
100
101 fixed unlink([uninitialised memory]) reported by Mateusz
102 Kocielski; ok markus@
103
104 Upstream-ID: 14a0c4e7d891f5a8dabc4b89d4f6b7c0d5a20109
105
106commit 1f8d3d629cd553031021068eb9c646a5f1e50994
107Author: jmc@openbsd.org <jmc@openbsd.org>
108Date: Fri Aug 14 15:32:41 2015 +0000
109
110 upstream commit
111
112 match myproposal.h order; from brian conway (i snuck in a
113 tweak while here)
114
115 ok dtucker
116
117 Upstream-ID: 35174a19b5237ea36aa3798f042bf5933b772c67
118
119commit 1dc8d93ce69d6565747eb44446ed117187621b26
120Author: deraadt@openbsd.org <deraadt@openbsd.org>
121Date: Thu Aug 6 14:53:21 2015 +0000
122
123 upstream commit
124
125 add prohibit-password as a synonymn for without-password,
126 since the without-password is causing too many questions. Harden it to ban
127 all but pubkey, hostbased, and GSSAPI auth (when the latter is enabled) from
128 djm, ok markus
129
130 Upstream-ID: d53317d7b28942153e6236d3fd6e12ceb482db7a
131
132commit 90a95a4745a531b62b81ce3b025e892bdc434de5
133Author: Damien Miller <djm@mindrot.org>
134Date: Tue Aug 11 13:53:41 2015 +1000
135
136 update version in README
137
138commit 318c37743534b58124f1bab37a8a0087a3a9bd2f
139Author: Damien Miller <djm@mindrot.org>
140Date: Tue Aug 11 13:53:09 2015 +1000
141
142 update versions in *.spec
143
144commit 5e75f5198769056089fb06c4d738ab0e5abc66f7
145Author: Damien Miller <djm@mindrot.org>
146Date: Tue Aug 11 13:34:12 2015 +1000
147
148 set sshpam_ctxt to NULL after free
149
150 Avoids use-after-free in monitor when privsep child is compromised.
151 Reported by Moritz Jodeit; ok dtucker@
152
153commit d4697fe9a28dab7255c60433e4dd23cf7fce8a8b
154Author: Damien Miller <djm@mindrot.org>
155Date: Tue Aug 11 13:33:24 2015 +1000
156
157 Don't resend username to PAM; it already has it.
158
159 Pointed out by Moritz Jodeit; ok dtucker@
160
161commit 88763a6c893bf3dfe951ba9271bf09715e8d91ca
162Author: Darren Tucker <dtucker@zip.com.au>
163Date: Mon Jul 27 12:14:25 2015 +1000
164
165 Import updated moduli file from OpenBSD.
166
167commit 55b263fb7cfeacb81aaf1c2036e0394c881637da
168Author: Damien Miller <djm@mindrot.org>
169Date: Mon Aug 10 11:13:44 2015 +1000
170
171 let principals-command.sh work for noexec /var/run
172
173commit 2651e34cd11b1aac3a0fe23b86d8c2ff35c07897
174Author: Damien Miller <djm@mindrot.org>
175Date: Thu Aug 6 11:43:42 2015 +1000
176
177 work around echo -n / sed behaviour in tests
178
179commit d85dad81778c1aa8106acd46930b25fdf0d15b2a
180Author: djm@openbsd.org <djm@openbsd.org>
181Date: Wed Aug 5 05:27:33 2015 +0000
182
183 upstream commit
184
185 adjust for RSA minimum modulus switch; ok deraadt@
186
187 Upstream-Regress-ID: 5a72c83431b96224d583c573ca281cd3a3ebfdae
188
189commit 57e8e229bad5fe6056b5f1199665f5f7008192c6
190Author: djm@openbsd.org <djm@openbsd.org>
191Date: Tue Aug 4 05:23:06 2015 +0000
192
193 upstream commit
194
195 backout SSH_RSA_MINIMUM_MODULUS_SIZE increase for this
196 release; problems spotted by sthen@ ok deraadt@ markus@
197
198 Upstream-ID: d0bd60dde9e8c3cd7030007680371894c1499822
199
200commit f097d0ea1e0889ca0fa2e53a00214e43ab7fa22a
201Author: djm@openbsd.org <djm@openbsd.org>
202Date: Sun Aug 2 09:56:42 2015 +0000
203
204 upstream commit
205
206 openssh 7.0; ok deraadt@
207
208 Upstream-ID: c63afdef537f57f28ae84145c5a8e29e9250221f
209
210commit 3d5728a0f6874ce4efb16913a12963595070f3a9
211Author: chris@openbsd.org <chris@openbsd.org>
212Date: Fri Jul 31 15:38:09 2015 +0000
213
214 upstream commit
215
216 Allow PermitRootLogin to be overridden by config
217
218 ok markus@ deeradt@
219
220 Upstream-ID: 5cf3e26ed702888de84e2dc9d0054ccf4d9125b4
221
222commit 6f941396b6835ad18018845f515b0c4fe20be21a
223Author: djm@openbsd.org <djm@openbsd.org>
224Date: Thu Jul 30 23:09:15 2015 +0000
225
226 upstream commit
227
228 fix pty permissions; patch from Nikolay Edigaryev; ok
229 deraadt
230
231 Upstream-ID: 40ff076d2878b916fbfd8e4f45dbe5bec019e550
232
233commit f4373ed1e8fbc7c8ce3fc4ea97d0ba2e0c1d7ef0
234Author: deraadt@openbsd.org <deraadt@openbsd.org>
235Date: Thu Jul 30 19:23:02 2015 +0000
236
237 upstream commit
238
239 change default: PermitRootLogin without-password matching
240 install script changes coming as well ok djm markus
241
242 Upstream-ID: 0e2a6c4441daf5498b47a61767382bead5eb8ea6
243
244commit 0c30ba91f87fcda7e975e6ff8a057f624e87ea1c
245Author: Damien Miller <djm@mindrot.org>
246Date: Thu Jul 30 12:31:39 2015 +1000
247
248 downgrade OOM adjustment logging: verbose -> debug
249
250commit f9eca249d4961f28ae4b09186d7dc91de74b5895
251Author: djm@openbsd.org <djm@openbsd.org>
252Date: Thu Jul 30 00:01:34 2015 +0000
253
254 upstream commit
255
256 Allow ssh_config and sshd_config kex parameters options be
257 prefixed by a '+' to indicate that the specified items be appended to the
258 default rather than replacing it.
259
260 approach suggested by dtucker@, feedback dlg@, ok markus@
261
262 Upstream-ID: 0f901137298fc17095d5756ff1561a7028e8882a
263
264commit 5cefe769105a2a2e3ca7479d28d9a325d5ef0163
265Author: djm@openbsd.org <djm@openbsd.org>
266Date: Wed Jul 29 08:34:54 2015 +0000
267
268 upstream commit
269
270 fix bug in previous; was printing incorrect string for
271 failed host key algorithms negotiation
272
273 Upstream-ID: 22c0dc6bc61930513065d92e11f0753adc4c6e6e
274
275commit f319912b0d0e1675b8bb051ed8213792c788bcb2
276Author: djm@openbsd.org <djm@openbsd.org>
277Date: Wed Jul 29 04:43:06 2015 +0000
278
279 upstream commit
280
281 include the peer's offer when logging a failure to
282 negotiate a mutual set of algorithms (kex, pubkey, ciphers, etc.) ok markus@
283
284 Upstream-ID: bbb8caabf5c01790bb845f5ce135565248d7c796
285
286commit b6ea0e573042eb85d84defb19227c89eb74cf05a
287Author: djm@openbsd.org <djm@openbsd.org>
288Date: Tue Jul 28 23:20:42 2015 +0000
289
290 upstream commit
291
292 add Cisco to the list of clients that choke on the
293 hostkeys update extension. Pointed out by Howard Kash
294
295 Upstream-ID: c9eadde28ecec056c73d09ee10ba4570dfba7e84
296
297commit 3f628c7b537291c1019ce86af90756fb4e66d0fd
298Author: guenther@openbsd.org <guenther@openbsd.org>
299Date: Mon Jul 27 16:29:23 2015 +0000
300
301 upstream commit
302
303 Permit kbind(2) use in the sandbox now, to ease testing
304 of ld.so work using it
305
306 reminded by miod@, ok deraadt@
307
308 Upstream-ID: 523922e4d1ba7a091e3824e77a8a3c818ee97413
309
310commit ebe27ebe520098bbc0fe58945a87ce8490121edb
311Author: millert@openbsd.org <millert@openbsd.org>
312Date: Mon Jul 20 18:44:12 2015 +0000
313
314 upstream commit
315
316 Move .Pp before .Bl, not after to quiet mandoc -Tlint.
317 Noticed by jmc@
318
319 Upstream-ID: 59fadbf8407cec4e6931e50c53cfa0214a848e23
320
321commit d5d91d0da819611167782c66ab629159169d94d4
322Author: millert@openbsd.org <millert@openbsd.org>
323Date: Mon Jul 20 18:42:35 2015 +0000
324
325 upstream commit
326
327 Sync usage with SYNOPSIS
328
329 Upstream-ID: 7a321a170181a54f6450deabaccb6ef60cf3f0b7
330
331commit 79ec2142fbc68dd2ed9688608da355fc0b1ed743
332Author: millert@openbsd.org <millert@openbsd.org>
333Date: Mon Jul 20 15:39:52 2015 +0000
334
335 upstream commit
336
337 Better desciption of Unix domain socket forwarding.
338 bz#2423; ok jmc@
339
340 Upstream-ID: 85e28874726897e3f26ae50dfa2e8d2de683805d
341
342commit d56fd1828074a4031b18b8faa0bf949669eb18a0
343Author: Damien Miller <djm@mindrot.org>
344Date: Mon Jul 20 11:19:51 2015 +1000
345
346 make realpath.c compile -Wsign-compare clean
347
348commit c63c9a691dca26bb7648827f5a13668832948929
349Author: djm@openbsd.org <djm@openbsd.org>
350Date: Mon Jul 20 00:30:01 2015 +0000
351
352 upstream commit
353
354 mention that the default of UseDNS=no implies that
355 hostnames cannot be used for host matching in sshd_config and
356 authorized_keys; bz#2045, ok dtucker@
357
358 Upstream-ID: 0812705d5f2dfa59aab01f2764ee800b1741c4e1
359
360commit 63ebcd0005e9894fcd6871b7b80aeea1fec0ff76
361Author: djm@openbsd.org <djm@openbsd.org>
362Date: Sat Jul 18 08:02:17 2015 +0000
363
364 upstream commit
365
366 don't ignore PKCS#11 hosted keys that return empty
367 CKA_ID; patch by Jakub Jelen via bz#2429; ok markus
368
369 Upstream-ID: 2f7c94744eb0342f8ee8bf97b2351d4e00116485
370
371commit b15fd989c8c62074397160147a8d5bc34b3f3c63
372Author: djm@openbsd.org <djm@openbsd.org>
373Date: Sat Jul 18 08:00:21 2015 +0000
374
375 upstream commit
376
377 skip uninitialised PKCS#11 slots; patch from Jakub Jelen
378 in bz#2427 ok markus@
379
380 Upstream-ID: 744c1e7796e237ad32992d0d02148e8a18f27d29
381
382commit 5b64f85bb811246c59ebab70aed331f26ba37b18
383Author: djm@openbsd.org <djm@openbsd.org>
384Date: Sat Jul 18 07:57:14 2015 +0000
385
386 upstream commit
387
388 only query each keyboard-interactive device once per
389 authentication request regardless of how many times it is listed; ok markus@
390
391 Upstream-ID: d73fafba6e86030436ff673656ec1f33d9ffeda1
392
393commit cd7324d0667794eb5c236d8a4e0f236251babc2d
394Author: djm@openbsd.org <djm@openbsd.org>
395Date: Fri Jul 17 03:34:27 2015 +0000
396
397 upstream commit
398
399 remove -u flag to diff (only used for error output) to make
400 things easier for -portable
401
402 Upstream-Regress-ID: a5d6777d2909540d87afec3039d9bb2414ade548
403
404commit deb8d99ecba70b67f4af7880b11ca8768df9ec3a
405Author: djm@openbsd.org <djm@openbsd.org>
406Date: Fri Jul 17 03:09:19 2015 +0000
407
408 upstream commit
409
410 direct-streamlocal@openssh.com Unix domain foward
411 messages do not contain a "reserved for future use" field and in fact,
412 serverloop.c checks that there isn't one. Remove erroneous mention from
413 PROTOCOL description. bz#2421 from Daniel Black
414
415 Upstream-ID: 3d51a19e64f72f764682f1b08f35a8aa810a43ac
416
417commit 356b61f365405b5257f5b2ab446e5d7bd33a7b52
418Author: djm@openbsd.org <djm@openbsd.org>
419Date: Fri Jul 17 03:04:27 2015 +0000
420
421 upstream commit
422
423 describe magic for setting up Unix domain socket fowards
424 via the mux channel; bz#2422 patch from Daniel Black
425
426 Upstream-ID: 943080fe3864715c423bdeb7c920bb30c4eee861
427
428commit d3e2aee41487d55b8d7d40f538b84ff1db7989bc
429Author: Darren Tucker <dtucker@zip.com.au>
430Date: Fri Jul 17 12:52:34 2015 +1000
431
432 Check if realpath works on nonexistent files.
433
434 On some platforms the native realpath doesn't work with non-existent
435 files (this is actually specified in some versions of POSIX), however
436 the sftp spec says its realpath with "canonicalize any given path name".
437 On those platforms, use realpath from the compat library.
438
439 In addition, when compiling with -DFORTIFY_SOURCE, glibc redefines
440 the realpath symbol to the checked version, so redefine ours to
441 something else so we pick up the compat version we want.
442
443 bz#2428, ok djm@
444
445commit 25b14610dab655646a109db5ef8cb4c4bf2a48a0
446Author: djm@openbsd.org <djm@openbsd.org>
447Date: Fri Jul 17 02:47:45 2015 +0000
448
449 upstream commit
450
451 fix incorrect test for SSH1 keys when compiled without SSH1
452 support
453
454 Upstream-ID: 6004d720345b8e481c405e8ad05ce2271726e451
455
456commit df56a8035d429b2184ee94aaa7e580c1ff67f73a
457Author: djm@openbsd.org <djm@openbsd.org>
458Date: Wed Jul 15 08:00:11 2015 +0000
459
460 upstream commit
461
462 fix NULL-deref when SSH1 reenabled
463
464 Upstream-ID: f22fd805288c92b3e9646782d15b48894b2d5295
465
466commit 41e38c4d49dd60908484e6703316651333f16b93
467Author: djm@openbsd.org <djm@openbsd.org>
468Date: Wed Jul 15 07:19:50 2015 +0000
469
470 upstream commit
471
472 regen RSA1 test keys; the last batch was missing their
473 private parts
474
475 Upstream-Regress-ID: 7ccf437305dd63ff0b48dd50c5fd0f4d4230c10a
476
477commit 5bf0933184cb622ca3f96d224bf3299fd2285acc
478Author: markus@openbsd.org <markus@openbsd.org>
479Date: Fri Jul 10 06:23:25 2015 +0000
480
481 upstream commit
482
483 Adapt tests, now that DSA if off by default; use
484 PubkeyAcceptedKeyTypes and PubkeyAcceptedKeyTypes to test DSA.
485
486 Upstream-Regress-ID: 0ff2a3ff5ac1ce5f92321d27aa07b98656efcc5c
487
488commit 7a6e3fd7b41dbd3756b6bf9acd67954c0b1564cc
489Author: markus@openbsd.org <markus@openbsd.org>
490Date: Tue Jul 7 14:54:16 2015 +0000
491
492 upstream commit
493
494 regen test data after mktestdata.sh changes
495
496 Upstream-Regress-ID: 3495ecb082b9a7c048a2d7c5c845d3bf181d25a4
497
498commit 7c8c174c69f681d4910fa41c37646763692b28e2
499Author: markus@openbsd.org <markus@openbsd.org>
500Date: Tue Jul 7 14:53:30 2015 +0000
501
502 upstream commit
503
504 adapt tests to new minimum RSA size and default FP format
505
506 Upstream-Regress-ID: a4b30afd174ce82b96df14eb49fb0b81398ffd0e
507
508commit 6a977a4b68747ade189e43d302f33403fd4a47ac
509Author: djm@openbsd.org <djm@openbsd.org>
510Date: Fri Jul 3 04:39:23 2015 +0000
511
512 upstream commit
513
514 legacy v00 certificates are gone; adapt and don't try to
515 test them; "sure" markus@ dtucker@
516
517 Upstream-Regress-ID: c57321e69b3cd4a3b3396dfcc43f0803d047da12
518
519commit 0c4123ad5e93fb90fee9c6635b13a6cdabaac385
520Author: djm@openbsd.org <djm@openbsd.org>
521Date: Wed Jul 1 23:11:18 2015 +0000
522
523 upstream commit
524
525 don't expect SSH v.1 in unittests
526
527 Upstream-Regress-ID: f8812b16668ba78e6a698646b2a652b90b653397
528
529commit 3c099845798a817cdde513c39074ec2063781f18
530Author: djm@openbsd.org <djm@openbsd.org>
531Date: Mon Jun 15 06:38:50 2015 +0000
532
533 upstream commit
534
535 turn SSH1 back on to match src/usr.bin/ssh being tested
536
537 Upstream-Regress-ID: 6c4f763a2f0cc6893bf33983919e9030ae638333
538
539commit b1dc2b33689668c75e95f873a42d5aea1f4af1db
540Author: dtucker@openbsd.org <dtucker@openbsd.org>
541Date: Mon Jul 13 04:57:14 2015 +0000
542
543 upstream commit
544
545 Add "PuTTY_Local:" to the clients to which we do not
546 offer DH-GEX. This was the string that was used for development versions
547 prior to September 2014 and they don't do RFC4419 DH-GEX, but unfortunately
548 there are some extant products based on those versions. bx2424 from Jay
549 Rouman, ok markus@ djm@
550
551 Upstream-ID: be34d41e18b966832fe09ca243d275b81882e1d5
552
553commit 3a1638dda19bbc73d0ae02b4c251ce08e564b4b9
554Author: markus@openbsd.org <markus@openbsd.org>
555Date: Fri Jul 10 06:21:53 2015 +0000
556
557 upstream commit
558
559 Turn off DSA by default; add HostKeyAlgorithms to the
560 server and PubkeyAcceptedKeyTypes to the client side, so it still can be
561 tested or turned back on; feedback and ok djm@
562
563 Upstream-ID: 8450a9e6d83f80c9bfed864ff061dfc9323cec21
564
565commit 16db0a7ee9a87945cc594d13863cfcb86038db59
566Author: markus@openbsd.org <markus@openbsd.org>
567Date: Thu Jul 9 09:49:46 2015 +0000
568
569 upstream commit
570
571 re-enable ed25519-certs if compiled w/o openssl; ok djm
572
573 Upstream-ID: e10c90808b001fd2c7a93778418e9b318f5c4c49
574
575commit c355bf306ac33de6545ce9dac22b84a194601e2f
576Author: markus@openbsd.org <markus@openbsd.org>
577Date: Wed Jul 8 20:24:02 2015 +0000
578
579 upstream commit
580
581 no need to include the old buffer/key API
582
583 Upstream-ID: fb13c9f7c0bba2545f3eb0a0e69cb0030819f52b
584
585commit a3cc48cdf9853f1e832d78cb29bedfab7adce1ee
586Author: markus@openbsd.org <markus@openbsd.org>
587Date: Wed Jul 8 19:09:25 2015 +0000
588
589 upstream commit
590
591 typedefs for Cipher&CipherContext are unused
592
593 Upstream-ID: 50e6a18ee92221d23ad173a96d5b6c42207cf9a7
594
595commit a635bd06b5c427a57c3ae760d3a2730bb2c863c0
596Author: markus@openbsd.org <markus@openbsd.org>
597Date: Wed Jul 8 19:04:21 2015 +0000
598
599 upstream commit
600
601 xmalloc.h is unused
602
603 Upstream-ID: afb532355b7fa7135a60d944ca1e644d1d63cb58
604
605commit 2521cf0e36c7f3f6b19f206da0af134f535e4a31
606Author: markus@openbsd.org <markus@openbsd.org>
607Date: Wed Jul 8 19:01:15 2015 +0000
608
609 upstream commit
610
611 compress.c is gone
612
613 Upstream-ID: 174fa7faa9b9643cba06164b5e498591356fbced
614
615commit c65a7aa6c43aa7a308ee1ab8a96f216169ae9615
616Author: djm@openbsd.org <djm@openbsd.org>
617Date: Fri Jul 3 04:05:54 2015 +0000
618
619 upstream commit
620
621 another SSH_RSA_MINIMUM_MODULUS_SIZE that needed
622 cranking
623
624 Upstream-ID: 9d8826cafe96aab4ae8e2f6fd22800874b7ffef1
625
626commit b1f383da5cd3cb921fc7776f17a14f44b8a31757
627Author: djm@openbsd.org <djm@openbsd.org>
628Date: Fri Jul 3 03:56:25 2015 +0000
629
630 upstream commit
631
632 add an XXX reminder for getting correct key paths from
633 sshd_config
634
635 Upstream-ID: feae52b209d7782ad742df04a4260e9fe41741db
636
637commit 933935ce8d093996c34d7efa4d59113163080680
638Author: djm@openbsd.org <djm@openbsd.org>
639Date: Fri Jul 3 03:49:45 2015 +0000
640
641 upstream commit
642
643 refuse to generate or accept RSA keys smaller than 1024
644 bits; feedback and ok dtucker@
645
646 Upstream-ID: 7ea3d31271366ba264f06e34a3539bf1ac30f0ba
647
648commit bdfd29f60b74f3e678297269dc6247a5699583c1
649Author: djm@openbsd.org <djm@openbsd.org>
650Date: Fri Jul 3 03:47:00 2015 +0000
651
652 upstream commit
653
654 turn off 1024 bit diffie-hellman-group1-sha1 key
655 exchange method (already off in server, this turns it off in the client by
656 default too) ok dtucker@
657
658 Upstream-ID: f59b88f449210ab7acf7d9d88f20f1daee97a4fa
659
660commit c28fc62d789d860c75e23a9fa9fb250eb2beca57
661Author: djm@openbsd.org <djm@openbsd.org>
662Date: Fri Jul 3 03:43:18 2015 +0000
663
664 upstream commit
665
666 delete support for legacy v00 certificates; "sure"
667 markus@ dtucker@
668
669 Upstream-ID: b5b9bb5f9202d09e88f912989d74928601b6636f
670
671commit 564d63e1b4a9637a209d42a9d49646781fc9caef
672Author: djm@openbsd.org <djm@openbsd.org>
673Date: Wed Jul 1 23:10:47 2015 +0000
674
675 upstream commit
676
677 Compile-time disable SSH v.1 again
678
679 Upstream-ID: 1d4b513a3a06232f02650b73bad25100d1b800af
680
681commit 868109b650504dd9bcccdb1f51d0906f967c20ff
682Author: djm@openbsd.org <djm@openbsd.org>
683Date: Wed Jul 1 02:39:06 2015 +0000
684
685 upstream commit
686
687 twiddle PermitRootLogin back
688
689 Upstream-ID: 2bd23976305d0512e9f84d054e1fc23cd70b89f2
690
691commit 7de4b03a6e4071d454b72927ffaf52949fa34545
692Author: djm@openbsd.org <djm@openbsd.org>
693Date: Wed Jul 1 02:32:17 2015 +0000
694
695 upstream commit
696
697 twiddle; (this commit marks the openssh-6.9 release)
698
699 Upstream-ID: 78500582819f61dd8adee36ec5cc9b9ac9351234
700
701commit 1bf477d3cdf1a864646d59820878783d42357a1d
702Author: djm@openbsd.org <djm@openbsd.org>
703Date: Wed Jul 1 02:26:31 2015 +0000
704
705 upstream commit
706
707 better refuse ForwardX11Trusted=no connections attempted
708 after ForwardX11Timeout expires; reported by Jann Horn
709
710 Upstream-ID: bf0fddadc1b46a0334e26c080038313b4b6dea21
711
712commit 47aa7a0f8551b471fcae0447c1d78464f6dba869
713Author: djm@openbsd.org <djm@openbsd.org>
714Date: Wed Jul 1 01:56:13 2015 +0000
715
716 upstream commit
717
718 put back default PermitRootLogin=no
719
720 Upstream-ID: 7bdedd5cead99c57ed5571f3b6b7840922d5f728
721
722commit 984b064fe2a23733733262f88d2e1b2a1a501662
723Author: djm@openbsd.org <djm@openbsd.org>
724Date: Wed Jul 1 01:55:13 2015 +0000
725
726 upstream commit
727
728 openssh-6.9
729
730 Upstream-ID: 6cfe8e1904812531080e6ab6e752d7001b5b2d45
731
732commit d921082ed670f516652eeba50705e1e9f6325346
733Author: djm@openbsd.org <djm@openbsd.org>
734Date: Wed Jul 1 01:55:00 2015 +0000
735
736 upstream commit
737
738 reset default PermitRootLogin to 'yes' (momentarily, for
739 release)
740
741 Upstream-ID: cad8513527066e65dd7a1c16363d6903e8cefa24
742
743commit 66295e0e1ba860e527f191b6325d2d77dec4dbce
744Author: Damien Miller <djm@mindrot.org>
745Date: Wed Jul 1 11:49:12 2015 +1000
746
747 crank version numbers for release
748
749commit 37035c07d4f26bb1fbe000d2acf78efdb008681d
750Author: Damien Miller <djm@mindrot.org>
751Date: Wed Jul 1 10:49:37 2015 +1000
752
753 s/--with-ssh1/--without-ssh1/
754
755commit 629df770dbadc2accfbe1c81b3f31f876d0acd84
756Author: djm@openbsd.org <djm@openbsd.org>
757Date: Tue Jun 30 05:25:07 2015 +0000
758
759 upstream commit
760
761 fatal() when a remote window update causes the window
762 value to overflow. Reported by Georg Wicherski, ok markus@
763
764 Upstream-ID: ead397a9aceb3bf74ebfa5fcaf259d72e569f351
765
766commit f715afebe735d61df3fd30ad72d9ac1c8bd3b5f2
767Author: djm@openbsd.org <djm@openbsd.org>
768Date: Tue Jun 30 05:23:25 2015 +0000
769
770 upstream commit
771
772 Fix math error in remote window calculations that causes
773 eventual stalls for datagram channels. Reported by Georg Wicherski, ok
774 markus@
775
776 Upstream-ID: be54059d11bf64e0d85061f7257f53067842e2ab
777
778commit 52fb6b9b034fcfd24bf88cc7be313e9c31de9889
779Author: Damien Miller <djm@mindrot.org>
780Date: Tue Jun 30 16:05:40 2015 +1000
781
782 skip IPv6-related portions on hosts without IPv6
783
784 with Tim Rice
785
786commit 512caddf590857af6aa12218461b5c0441028cf5
787Author: djm@openbsd.org <djm@openbsd.org>
788Date: Mon Jun 29 22:35:12 2015 +0000
789
790 upstream commit
791
792 add getpid to sandbox, reachable by grace_alarm_handler
793
794 reported by Jakub Jelen; bz#2419
795
796 Upstream-ID: d0da1117c16d4c223954995d35b0f47c8f684cd8
797
798commit 78c2a4f883ea9aba866358e2acd9793a7f42ca93
799Author: djm@openbsd.org <djm@openbsd.org>
800Date: Fri Jun 26 05:13:20 2015 +0000
801
802 upstream commit
803
804 Fix \-escaping bug that caused forward path parsing to skip
805 two characters and skip past the end of the string.
806
807 Based on patch by Salvador Fandino; ok dtucker@
808
809 Upstream-ID: 7b879dc446335677cbe4cb549495636a0535f3bd
810
811commit bc20205c91c9920361d12b15d253d4997dba494a
812Author: Damien Miller <djm@mindrot.org>
813Date: Thu Jun 25 09:51:39 2015 +1000
814
815 add missing pselect6
816
817 patch from Jakub Jelen
818
819commit 9d27fb73b4a4e5e99cb880af790d5b1ce44f720a
820Author: djm@openbsd.org <djm@openbsd.org>
821Date: Wed Jun 24 23:47:23 2015 +0000
822
823 upstream commit
824
825 correct test to sshkey_sign(); spotted by Albert S.
826
827 Upstream-ID: 5f7347f40f0ca6abdaca2edb3bd62f4776518933
828
829commit 7ed01a96a1911d8b4a9ef4f3d064e1923bfad7e3
830Author: dtucker@openbsd.org <dtucker@openbsd.org>
831Date: Wed Jun 24 01:49:19 2015 +0000
832
833 upstream commit
834
835 Revert previous commit. We still want to call setgroups
836 in the case where there are zero groups to remove any that we might otherwise
837 inherit (as pointed out by grawity at gmail.com) and since the 2nd argument
838 to setgroups is always a static global it's always valid to dereference in
839 this case. ok deraadt@ djm@
840
841 Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01
842
843commit 882f8bf94f79528caa65b0ba71c185d705bb7195
844Author: dtucker@openbsd.org <dtucker@openbsd.org>
845Date: Wed Jun 24 01:49:19 2015 +0000
846
847 upstream commit
848
849 Revert previous commit. We still want to call setgroups in
850 the case where there are zero groups to remove any that we might otherwise
851 inherit (as pointed out by grawity at gmail.com) and since the 2nd argument
852 to setgroups is always a static global it's always valid to dereference in
853 this case. ok deraadt@ djm@
854
855 Upstream-ID: 895b5ac560a10befc6b82afa778641315725fd01
856
857commit 9488538a726951e82b3a4374f3c558d72c80a89b
858Author: djm@openbsd.org <djm@openbsd.org>
859Date: Mon Jun 22 23:42:16 2015 +0000
860
861 upstream commit
862
863 Don't count successful partial authentication as failures
864 in monitor; this may have caused the monitor to refuse multiple
865 authentications that would otherwise have successfully completed; ok markus@
866
867 Upstream-ID: eb74b8e506714d0f649bd5c300f762a527af04a3
868
869commit 63b78d003bd8ca111a736e6cea6333da50f5f09b
870Author: dtucker@openbsd.org <dtucker@openbsd.org>
871Date: Mon Jun 22 12:29:57 2015 +0000
872
873 upstream commit
874
875 Don't call setgroups if we have zero groups; there's no
876 guarantee that it won't try to deref the pointer. Based on a patch from mail
877 at quitesimple.org, ok djm deraadt
878
879 Upstream-ID: 2fff85e11d7a9a387ef7fddf41fbfaf566708ab1
880
881commit 5c15e22c691c79a47747bcf5490126656f97cecd
882Author: Damien Miller <djm@mindrot.org>
883Date: Thu Jun 18 15:07:56 2015 +1000
884
885 fix syntax error
886
887commit 596dbca82f3f567fb3d2d69af4b4e1d3ba1e6403
888Author: jsing@openbsd.org <jsing@openbsd.org>
889Date: Mon Jun 15 18:44:22 2015 +0000
890
891 upstream commit
892
893 If AuthorizedPrincipalsCommand is specified, however
894 AuthorizedPrincipalsFile is not (or is set to "none"), authentication will
895 potentially fail due to key_cert_check_authority() failing to locate a
896 principal that matches the username, even though an authorized principal has
897 already been matched in the output of the subprocess. Fix this by using the
898 same logic to determine if pw->pw_name should be passed, as is used to
899 determine if a authorized principal must be matched earlier on.
900
901 ok djm@
902
903 Upstream-ID: 43b42302ec846b0ea68aceb40677245391b9409d
904
905commit aff3e94c0d75d0d0fa84ea392b50ab04f8c57905
906Author: jsing@openbsd.org <jsing@openbsd.org>
907Date: Mon Jun 15 18:42:19 2015 +0000
908
909 upstream commit
910
911 Make the arguments to match_principals_command() similar
912 to match_principals_file(), by changing the last argument a struct
913 sshkey_cert * and dereferencing key->cert in the caller.
914
915 No functional change.
916
917 ok djm@
918
919 Upstream-ID: 533f99b844b21b47342b32b62e198dfffcf8651c
920
921commit 97e2e1596c202a4693468378b16b2353fd2d6c5e
922Author: Damien Miller <djm@mindrot.org>
923Date: Wed Jun 17 14:36:54 2015 +1000
924
925 trivial optimisation for seccomp-bpf
926
927 When doing arg inspection and the syscall doesn't match, skip
928 past the instruction that reloads the syscall into the accumulator,
929 since the accumulator hasn't been modified at this point.
930
931commit 99f33d7304893bd9fa04d227cb6e870171cded19
932Author: Damien Miller <djm@mindrot.org>
933Date: Wed Jun 17 10:50:51 2015 +1000
934
935 aarch64 support for seccomp-bpf sandbox
936
937 Also resort and tidy syscall list. Based on patches by Jakub Jelen
938 bz#2361; ok dtucker@
939
940commit 4ef702e1244633c1025ec7cfe044b9ab267097bf
941Author: djm@openbsd.org <djm@openbsd.org>
942Date: Mon Jun 15 01:32:50 2015 +0000
943
944 upstream commit
945
946 return failure on RSA signature error; reported by Albert S
947
948 Upstream-ID: e61bb93dbe0349625807b0810bc213a6822121fa
949
950commit a170f22baf18af0b1acf2788b8b715605f41a1f9
951Author: Tim Rice <tim@multitalents.net>
952Date: Tue Jun 9 22:41:13 2015 -0700
953
954 Fix t12 rules for out of tree builds.
955
956commit ec04dc4a5515c913121bc04ed261857e68fa5c18
957Author: millert@openbsd.org <millert@openbsd.org>
958Date: Fri Jun 5 15:13:13 2015 +0000
959
960 upstream commit
961
962 For "ssh -L 12345:/tmp/sock" don't fail with "No forward host
963 name." (we have a path, not a host name). Based on a diff from Jared
964 Yanovich. OK djm@
965
966 Upstream-ID: 2846b0a8c7de037e33657f95afbd282837fc213f
967
968commit 732d61f417a6aea0aa5308b59cb0f563bcd6edd6
969Author: djm@openbsd.org <djm@openbsd.org>
970Date: Fri Jun 5 03:44:14 2015 +0000
971
972 upstream commit
973
974 typo: accidental repetition; bz#2386
975
976 Upstream-ID: 45e620d99f6bc301e5949d34a54027374991c88b
977
978commit adfb24c69d1b6f5e758db200866c711e25a2ba73
979Author: Darren Tucker <dtucker@zip.com.au>
980Date: Fri Jun 5 14:51:40 2015 +1000
981
982 Add Linux powerpc64le and powerpcle entries.
983
984 Stopgap to resolve bz#2409 because we are so close to release and will
985 update config.guess and friends shortly after the release. ok djm@
986
987commit a1195a0fdc9eddddb04d3e9e44c4775431cb77da
988Merge: 6397eed d2480bc
989Author: Tim Rice <tim@multitalents.net>
990Date: Wed Jun 3 21:43:13 2015 -0700
991
992 Merge branch 'master' of git.mindrot.org:/var/git/openssh
993
994commit 6397eedf953b2b973d2d7cbb504ab501a07f8ddc
995Author: Tim Rice <tim@multitalents.net>
996Date: Wed Jun 3 21:41:11 2015 -0700
997
998 Remove unneeded backslashes. Patch from Ángel González
999
1000commit d2480bcac1caf31b03068de877a47d6e1027bf6d
1001Author: Darren Tucker <dtucker@zip.com.au>
1002Date: Thu Jun 4 14:10:55 2015 +1000
1003
1004 Remove redundant include of stdarg.h. bz#2410
1005
1006commit 5e67859a623826ccdf2df284cbb37e2d8e2787eb
1007Author: djm@openbsd.org <djm@openbsd.org>
1008Date: Tue Jun 2 09:10:40 2015 +0000
1009
1010 upstream commit
1011
1012 mention CheckHostIP adding addresses to known_hosts;
1013 bz#1993; ok dtucker@
1014
1015 Upstream-ID: fd44b68440fd0dc29abf9f2d3f703d74a2396cb7
1016
1017commit d7a58bbac6583e33fd5eca8e2c2cc70c57617818
1018Author: Darren Tucker <dtucker@zip.com.au>
1019Date: Tue Jun 2 20:15:26 2015 +1000
1020
1021 Replace strcpy with strlcpy.
1022
1023 ok djm, sanity check by Corinna Vinschen.
1024
1025commit 51a1c2115265c6e80ede8a5c9dccada9aeed7143
1026Author: Damien Miller <djm@mindrot.org>
1027Date: Fri May 29 18:27:21 2015 +1000
1028
1029 skip, rather than fatal when run without SUDO set
1030
1031commit 599f01142a376645b15cbc9349d7e8975e1cf245
1032Author: Damien Miller <djm@mindrot.org>
1033Date: Fri May 29 18:03:15 2015 +1000
1034
1035 fix merge botch that left ",," in KEX algs
1036
1037commit 0c2a81dfc21822f2423edd30751e5ec53467b347
1038Author: Damien Miller <djm@mindrot.org>
1039Date: Fri May 29 17:08:28 2015 +1000
1040
1041 re-enable SSH protocol 1 at compile time
1042
1043commit db438f9285d64282d3ac9e8c0944f59f037c0151
1044Author: djm@openbsd.org <djm@openbsd.org>
1045Date: Fri May 29 03:05:13 2015 +0000
1046
1047 upstream commit
1048
1049 make this work without SUDO set; ok dtucker@
1050
1051 Upstream-Regress-ID: bca88217b70bce2fe52b23b8e06bdeb82d98c715
1052
1053commit 1d9a2e2849c9864fe75daabf433436341c968e14
1054Author: djm@openbsd.org <djm@openbsd.org>
1055Date: Thu May 28 07:37:31 2015 +0000
1056
1057 upstream commit
1058
1059 wrap all moduli-related code in #ifdef WITH_OPENSSL.
1060 based on patch from Reuben Hawkins; bz#2388 feedback and ok dtucker@
1061
1062 Upstream-ID: d80cfc8be3e6ec65b3fac9e87c4466533b31b7cf
1063
1064commit 496aeb25bc2d6c434171292e4714771b594bd00e
1065Author: dtucker@openbsd.org <dtucker@openbsd.org>
1066Date: Thu May 28 05:41:29 2015 +0000
1067
1068 upstream commit
1069
1070 Increase the allowed length of the known host file name
1071 in the log message to be consistent with other cases. Part of bz#1993, ok
1072 deraadt.
1073
1074 Upstream-ID: a9e97567be49f25daf286721450968251ff78397
1075
1076commit dd2cfeb586c646ff8d70eb93567b2e559ace5b14
1077Author: dtucker@openbsd.org <dtucker@openbsd.org>
1078Date: Thu May 28 05:09:45 2015 +0000
1079
1080 upstream commit
1081
1082 Fix typo (keywork->keyword)
1083
1084 Upstream-ID: 8aacd0f4089c0a244cf43417f4f9045dfaeab534
1085
1086commit 9cc6842493fbf23025ccc1edab064869640d3bec
1087Author: djm@openbsd.org <djm@openbsd.org>
1088Date: Thu May 28 04:50:53 2015 +0000
1089
1090 upstream commit
1091
1092 add error message on ftruncate failure; bz#2176
1093
1094 Upstream-ID: cbcc606e0b748520c74a210d8f3cc9718d3148cf
1095
1096commit d1958793a0072c22be26d136dbda5ae263e717a0
1097Author: djm@openbsd.org <djm@openbsd.org>
1098Date: Thu May 28 04:40:13 2015 +0000
1099
1100 upstream commit
1101
1102 make ssh-keygen default to ed25519 keys when compiled
1103 without OpenSSL; bz#2388, ok dtucker@
1104
1105 Upstream-ID: 85a471fa6d3fa57a7b8e882d22cfbfc1d84cdc71
1106
1107commit 3ecde664c9fc5fb3667aedf9e6671462600f6496
1108Author: dtucker@openbsd.org <dtucker@openbsd.org>
1109Date: Wed May 27 23:51:10 2015 +0000
1110
1111 upstream commit
1112
1113 Reorder client proposal to prefer
1114 diffie-hellman-group-exchange-sha1 over diffie-hellman-group14-sha1. ok djm@
1115
1116 Upstream-ID: 552c08d47347c3ee1a9a57d88441ab50abe17058
1117
1118commit 40f64292b907afd0a674fdbf3e4c2356d17a7d68
1119Author: dtucker@openbsd.org <dtucker@openbsd.org>
1120Date: Wed May 27 23:39:18 2015 +0000
1121
1122 upstream commit
1123
1124 Add a stronger (4k bit) fallback group that sshd can use
1125 when the moduli file is missing or broken, sourced from RFC3526. bz#2302, ok
1126 markus@ (earlier version), djm@
1127
1128 Upstream-ID: b635215746a25a829d117673d5e5a76d4baee7f4
1129
1130commit 5ab7d5fa03ad55bc438fab45dfb3aeb30a3c237a
1131Author: Darren Tucker <dtucker@zip.com.au>
1132Date: Thu May 28 10:03:40 2015 +1000
1133
1134 New moduli file from OpenBSD, removing 1k groups.
1135
1136 Remove 1k bit groups. ok deraadt@, markus@
1137
1138commit a71ba58adf34e599f30cdda6e9b93ae6e3937eea
1139Author: djm@openbsd.org <djm@openbsd.org>
1140Date: Wed May 27 05:15:02 2015 +0000
1141
1142 upstream commit
1143
1144 support PKCS#11 devices with external PIN entry devices
1145 bz#2240, based on patch from Dirk-Willem van Gulik; feedback and ok dtucker@
1146
1147 Upstream-ID: 504568992b55a8fc984375242b1bd505ced61b0d
1148
1149commit b282fec1aa05246ed3482270eb70fc3ec5f39a00
1150Author: dtucker@openbsd.org <dtucker@openbsd.org>
1151Date: Tue May 26 23:23:40 2015 +0000
1152
1153 upstream commit
1154
1155 Cap DH-GEX group size at 4kbits for Cisco implementations.
1156 Some of them will choke when asked for preferred sizes >4k instead of
1157 returning the 4k group that they do have. bz#2209, ok djm@
1158
1159 Upstream-ID: 54b863a19713446b7431f9d06ad0532b4fcfef8d
1160
1161commit 3e91b4e8b0dc2b4b7e7d42cf6e8994a32e4cb55e
1162Author: djm@openbsd.org <djm@openbsd.org>
1163Date: Sun May 24 23:39:16 2015 +0000
1164
1165 upstream commit
1166
1167 add missing 'c' option to getopt(), case statement was
1168 already there; from Felix Bolte
1169
1170 Upstream-ID: 9b19b4e2e0b54d6fefa0dfac707c51cf4bae3081
1171
1172commit 64a89ec07660abba4d0da7c0095b7371c98bab62
1173Author: jsg@openbsd.org <jsg@openbsd.org>
1174Date: Sat May 23 14:28:37 2015 +0000
1175
1176 upstream commit
1177
1178 fix a memory leak in an error path ok markus@ dtucker@
1179
1180 Upstream-ID: bc1da0f205494944918533d8780fde65dff6c598
1181
1182commit f948737449257d2cb83ffcfe7275eb79b677fd4a
1183Author: djm@openbsd.org <djm@openbsd.org>
1184Date: Fri May 22 05:28:45 2015 +0000
1185
1186 upstream commit
1187
1188 mention ssh-keygen -E for comparing legacy MD5
1189 fingerprints; bz#2332
1190
1191 Upstream-ID: 079a3669549041dbf10dbc072d9563f0dc3b2859
1192
1193commit 0882332616e4f0272c31cc47bf2018f9cb258a4e
1194Author: djm@openbsd.org <djm@openbsd.org>
1195Date: Fri May 22 04:45:52 2015 +0000
1196
1197 upstream commit
1198
1199 Reorder EscapeChar option parsing to avoid a single-byte
1200 out- of-bounds read. bz#2396 from Jaak Ristioja; ok dtucker@
1201
1202 Upstream-ID: 1dc6b5b63d1c8d9a88619da0b27ade461d79b060
1203
1204commit d7c31da4d42c115843edee2074d7d501f8804420
1205Author: djm@openbsd.org <djm@openbsd.org>
1206Date: Fri May 22 03:50:02 2015 +0000
1207
1208 upstream commit
1209
1210 add knob to relax GSSAPI host credential check for
1211 multihomed hosts bz#928, patch by Simon Wilkinson; ok dtucker
1212 (kerberos/GSSAPI is not compiled by default on OpenBSD)
1213
1214 Upstream-ID: 15ddf1c6f7fd9d98eea9962f480079ae3637285d
1215
1216commit aa72196a00be6e0b666215edcffbc10af234cb0e
1217Author: Darren Tucker <dtucker@zip.com.au>
1218Date: Fri May 22 17:49:46 2015 +1000
1219
1220 Include signal.h for sig_atomic_t, used by kex.h.
1221
1222 bz#2402, from tomas.kuthan at oracle com.
1223
1224commit 8b02481143d75e91c49d1bfae0876ac1fbf9511a
1225Author: Darren Tucker <dtucker@zip.com.au>
1226Date: Fri May 22 12:47:24 2015 +1000
1227
1228 Import updated moduli file from OpenBSD.
1229
1230commit 4739e8d5e1c0be49624082bd9f6b077e9e758db9
1231Author: djm@openbsd.org <djm@openbsd.org>
1232Date: Thu May 21 12:01:19 2015 +0000
1233
1234 upstream commit
1235
1236 Support "ssh-keygen -lF hostname" to find search known_hosts
1237 and print key hashes. Already advertised by ssh-keygen(1), but not delivered
1238 by code; ok dtucker@
1239
1240 Upstream-ID: 459e0e2bf39825e41b0811c336db2d56a1c23387
1241
1242commit e97201feca10b5196da35819ae516d0b87cf3a50
1243Author: Damien Miller <djm@mindrot.org>
1244Date: Thu May 21 17:55:15 2015 +1000
1245
1246 conditionalise util.h inclusion
1247
1248commit 13640798c7dd011ece0a7d02841fe48e94cfa0e0
1249Author: djm@openbsd.org <djm@openbsd.org>
1250Date: Thu May 21 06:44:25 2015 +0000
1251
1252 upstream commit
1253
1254 regress test for AuthorizedPrincipalsCommand
1255
1256 Upstream-Regress-ID: c658fbf1ab6b6011dc83b73402322e396f1e1219
1257
1258commit 84452c5d03c21f9bfb28c234e0dc1dc67dd817b1
1259Author: djm@openbsd.org <djm@openbsd.org>
1260Date: Thu May 21 06:40:02 2015 +0000
1261
1262 upstream commit
1263
1264 regress test for AuthorizedKeysCommand arguments
1265
1266 Upstream-Regress-ID: bbd65c13c6b3be9a442ec115800bff9625898f12
1267
1268commit bcc50d816187fa9a03907ac1f3a52f04a52e10d1
1269Author: djm@openbsd.org <djm@openbsd.org>
1270Date: Thu May 21 06:43:30 2015 +0000
1271
1272 upstream commit
1273
1274 add AuthorizedPrincipalsCommand that allows getting
1275 authorized_principals from a subprocess rather than a file, which is quite
1276 useful in deployments with large userbases
1277
1278 feedback and ok markus@
1279
1280 Upstream-ID: aa1bdac7b16fc6d2fa3524ef08f04c7258d247f6
1281
1282commit 24232a3e5ab467678a86aa67968bbb915caffed4
1283Author: djm@openbsd.org <djm@openbsd.org>
1284Date: Thu May 21 06:38:35 2015 +0000
1285
1286 upstream commit
1287
1288 support arguments to AuthorizedKeysCommand
1289
1290 bz#2081 loosely based on patch by Sami Hartikainen
1291 feedback and ok markus@
1292
1293 Upstream-ID: b080387a14aa67dddd8ece67c00f268d626541f7
1294
1295commit d80fbe41a57c72420c87a628444da16d09d66ca7
1296Author: djm@openbsd.org <djm@openbsd.org>
1297Date: Thu May 21 04:55:51 2015 +0000
1298
1299 upstream commit
1300
1301 refactor: split base64 encoding of pubkey into its own
1302 sshkey_to_base64() function and out of sshkey_write(); ok markus@
1303
1304 Upstream-ID: 54fc38f5832e9b91028900819bda46c3959a0c1a
1305
1306commit 7cc44ef74133a473734bbcbd3484f24d6a7328c5
1307Author: deraadt@openbsd.org <deraadt@openbsd.org>
1308Date: Mon May 18 15:06:05 2015 +0000
1309
1310 upstream commit
1311
1312 getentropy() and sendsyslog() have been around long
1313 enough. openssh-portable may want the #ifdef's but not base. discussed with
1314 djm few weeks back
1315
1316 Upstream-ID: 0506a4334de108e3fb6c66f8d6e0f9c112866926
1317
1318commit 9173d0fbe44de7ebcad8a15618e13a8b8d78902e
1319Author: dtucker@openbsd.org <dtucker@openbsd.org>
1320Date: Fri May 15 05:44:21 2015 +0000
1321
1322 upstream commit
1323
1324 Use a salted hash of the lock passphrase instead of plain
1325 text and do constant-time comparisons of it. Should prevent leaking any
1326 information about it via timing, pointed out by Ryan Castellucci. Add a 0.1s
1327 incrementing delay for each failed unlock attempt up to 10s. ok markus@
1328 (earlier version), djm@
1329
1330 Upstream-ID: c599fcc325aa1cc65496b25220b622d22208c85f
1331
1332commit d028d5d3a697c71b21e4066d8672cacab3caa0a8
1333Author: Damien Miller <djm@mindrot.org>
1334Date: Tue May 5 19:10:58 2015 +1000
1335
1336 upstream commit
1337
1338 - tedu@cvs.openbsd.org 2015/01/12 03:20:04
1339 [bcrypt_pbkdf.c]
1340 rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks,
1341 nor are they the same size.
1342
1343commit f6391d4e59b058984163ab28f4e317e7a72478f1
1344Author: Damien Miller <djm@mindrot.org>
1345Date: Tue May 5 19:10:23 2015 +1000
1346
1347 upstream commit
1348
1349 - deraadt@cvs.openbsd.org 2015/01/08 00:30:07
1350 [bcrypt_pbkdf.c]
1351 declare a local version of MIN(), call it MINIMUM()
1352
1353commit 8ac6b13cc9113eb47cd9e86c97d7b26b4b71b77f
1354Author: Damien Miller <djm@mindrot.org>
1355Date: Tue May 5 19:09:46 2015 +1000
1356
1357 upstream commit
1358
1359 - djm@cvs.openbsd.org 2014/12/30 01:41:43
1360 [bcrypt_pbkdf.c]
1361 typo in comment: ouput => output
1362
1363commit 1f792489d5cf86a4f4e3003e6e9177654033f0f2
1364Author: djm@openbsd.org <djm@openbsd.org>
1365Date: Mon May 4 06:10:48 2015 +0000
1366
1367 upstream commit
1368
1369 Remove pattern length argument from match_pattern_list(), we
1370 only ever use it for strlen(pattern).
1371
1372 Prompted by hanno AT hboeck.de pointing an out-of-bound read
1373 error caused by an incorrect pattern length found using AFL
1374 and his own tools.
1375
1376 ok markus@
1377
1378commit 639d6bc57b1942393ed12fb48f00bc05d4e093e4
1379Author: djm@openbsd.org <djm@openbsd.org>
1380Date: Fri May 1 07:10:01 2015 +0000
1381
1382 upstream commit
1383
1384 refactor ssh_dispatch_run_fatal() to use sshpkt_fatal()
1385 to better report error conditions. Teach sshpkt_fatal() about ECONNRESET.
1386
1387 Improves error messages on TCP connection resets. bz#2257
1388
1389 ok dtucker@
1390
1391commit 9559d7de34c572d4d3fd990ca211f8ec99f62c4d
1392Author: djm@openbsd.org <djm@openbsd.org>
1393Date: Fri May 1 07:08:08 2015 +0000
1394
1395 upstream commit
1396
1397 a couple of parse targets were missing activep checks,
1398 causing them to be misapplied in match context; bz#2272 diagnosis and
1399 original patch from Sami Hartikainen ok dtucker@
1400
1401commit 7e8528cad04b2775c3b7db08abf8fb42e47e6b2a
1402Author: djm@openbsd.org <djm@openbsd.org>
1403Date: Fri May 1 04:17:51 2015 +0000
1404
1405 upstream commit
1406
1407 make handling of AuthorizedPrincipalsFile=none more
1408 consistent with other =none options; bz#2288 from Jakub Jelen; ok dtucker@
1409
1410commit ca430d4d9cc0f62eca3b1fb1e2928395b7ce80f7
1411Author: djm@openbsd.org <djm@openbsd.org>
1412Date: Fri May 1 04:03:20 2015 +0000
1413
1414 upstream commit
1415
1416 remove failed remote forwards established by muliplexing
1417 from the list of active forwards; bz#2363, patch mostly by Yoann Ricordel; ok
1418 dtucker@
1419
1420commit 8312cfb8ad88657517b3e23ac8c56c8e38eb9792
1421Author: djm@openbsd.org <djm@openbsd.org>
1422Date: Fri May 1 04:01:58 2015 +0000
1423
1424 upstream commit
1425
1426 reduce stderr spam when using ssh -S /path/mux -O forward
1427 -R 0:... ok dtucker@
1428
1429commit 179be0f5e62f1f492462571944e45a3da660d82b
1430Author: djm@openbsd.org <djm@openbsd.org>
1431Date: Fri May 1 03:23:51 2015 +0000
1432
1433 upstream commit
1434
1435 prevent authorized_keys options picked up on public key
1436 tests without a corresponding private key authentication being applied to
1437 other authentication methods. Reported by halex@, ok markus@
1438
1439commit a42d67be65b719a430b7fcaba2a4e4118382723a
1440Author: djm@openbsd.org <djm@openbsd.org>
1441Date: Fri May 1 03:20:54 2015 +0000
1442
1443 upstream commit
1444
1445 Don't make parsing of authorized_keys' environment=
1446 option conditional on PermitUserEnv - always parse it, but only use the
1447 result if the option is enabled. This prevents the syntax of authorized_keys
1448 changing depending on which sshd_config options were enabled.
1449
1450 bz#2329; based on patch from coladict AT gmail.com, ok dtucker@
1451
1452commit e661a86353e11592c7ed6a847e19a83609f49e77
1453Author: djm@openbsd.org <djm@openbsd.org>
1454Date: Mon May 4 06:10:48 2015 +0000
1455
1456 upstream commit
1457
1458 Remove pattern length argument from match_pattern_list(), we
1459 only ever use it for strlen(pattern).
1460
1461 Prompted by hanno AT hboeck.de pointing an out-of-bound read
1462 error caused by an incorrect pattern length found using AFL
1463 and his own tools.
1464
1465 ok markus@
1466
1467commit 0ef1de742be2ee4b10381193fe90730925b7f027
1468Author: dtucker@openbsd.org <dtucker@openbsd.org>
1469Date: Thu Apr 23 05:01:19 2015 +0000
1470
1471 upstream commit
1472
1473 Add a simple regression test for sshd's configuration
1474 parser. Right now, all it does is run the output of sshd -T back through
1475 itself and ensure the output is valid and invariant.
1476
1477commit 368f83c793275faa2c52f60eaa9bdac155c4254b
1478Author: djm@openbsd.org <djm@openbsd.org>
1479Date: Wed Apr 22 01:38:36 2015 +0000
1480
1481 upstream commit
1482
1483 use correct key for nested certificate test
1484
1485commit 8d4d1bfddbbd7d21f545dc6997081d1ea1fbc99a
1486Author: djm@openbsd.org <djm@openbsd.org>
1487Date: Fri May 1 07:11:47 2015 +0000
1488
1489 upstream commit
1490
1491 mention that the user's shell from /etc/passwd is used
1492 for commands too; bz#1459 ok dtucker@
1493
1494commit 5ab283d0016bbc9d4d71e8e5284d011bc5a930cf
1495Author: djm@openbsd.org <djm@openbsd.org>
1496Date: Fri May 8 07:29:00 2015 +0000
1497
1498 upstream commit
1499
1500 whitespace
1501
1502 Upstream-Regress-ID: 6b708a3e709d5b7fd37890f874bafdff1f597519
1503
1504commit 8377d5008ad260048192e1e56ad7d15a56d103dd
1505Author: djm@openbsd.org <djm@openbsd.org>
1506Date: Fri May 8 07:26:13 2015 +0000
1507
1508 upstream commit
1509
1510 whitespace at EOL
1511
1512 Upstream-Regress-ID: 9c48911643d5b05173b36a012041bed4080b8554
1513
1514commit c28a3436fa8737709ea88e4437f8f23a6ab50359
1515Author: djm@openbsd.org <djm@openbsd.org>
1516Date: Fri May 8 06:45:13 2015 +0000
1517
1518 upstream commit
1519
1520 moar whitespace at eol
1521
1522 Upstream-ID: 64eaf872a3ba52ed41e494287e80d40aaba4b515
1523
1524commit 2b64c490468fd4ca35ac8d5cc31c0520dc1508bb
1525Author: djm@openbsd.org <djm@openbsd.org>
1526Date: Fri May 8 06:41:56 2015 +0000
1527
1528 upstream commit
1529
1530 whitespace at EOL
1531
1532 Upstream-ID: 57bcf67d666c6fc1ad798aee448fdc3f70f7ec2c
1533
1534commit 4e636cf201ce6e7e3b9088568218f9d4e2c51712
1535Author: djm@openbsd.org <djm@openbsd.org>
1536Date: Fri May 8 03:56:51 2015 +0000
1537
1538 upstream commit
1539
1540 whitespace at EOL
1541
1542commit 38b8272f823dc1dd4e29dbcee83943ed48bb12fa
1543Author: dtucker@openbsd.org <dtucker@openbsd.org>
1544Date: Mon May 4 01:47:53 2015 +0000
1545
1546 upstream commit
1547
1548 Use diff w/out -u for better portability
1549
1550commit 297060f42d5189a4065ea1b6f0afdf6371fb0507
1551Author: dtucker@openbsd.org <dtucker@openbsd.org>
1552Date: Fri May 8 03:25:07 2015 +0000
1553
1554 upstream commit
1555
1556 Use xcalloc for permitted_adm_opens instead of xmalloc to
1557 ensure it's zeroed. Fixes post-auth crash with permitopen=none. bz#2355, ok
1558 djm@
1559
1560commit 63ebf019be863b2d90492a85e248cf55a6e87403
1561Author: djm@openbsd.org <djm@openbsd.org>
1562Date: Fri May 8 03:17:49 2015 +0000
1563
1564 upstream commit
1565
1566 don't choke on new-format private keys encrypted with an
1567 AEAD cipher; bz#2366, patch from Ron Frederick; ok markus@
1568
1569commit f8484dac678ab3098ae522a5f03bb2530f822987
1570Author: dtucker@openbsd.org <dtucker@openbsd.org>
1571Date: Wed May 6 05:45:17 2015 +0000
1572
1573 upstream commit
1574
1575 Clarify pseudo-terminal request behaviour and use
1576 "pseudo-terminal" consistently. bz#1716, ok jmc@ "I like it" deraadt@.
1577
1578commit ea139507bef8bad26e86ed99a42c7233ad115c38
1579Author: dtucker@openbsd.org <dtucker@openbsd.org>
1580Date: Wed May 6 04:07:18 2015 +0000
1581
1582 upstream commit
1583
1584 Blacklist DH-GEX for specific PuTTY versions known to
1585 send non-RFC4419 DH-GEX messages rather than all versions of PuTTY.
1586 According to Simon Tatham, 0.65 and newer versions will send RFC4419 DH-GEX
1587 messages. ok djm@
1588
1589commit b58234f00ee3872eb84f6e9e572a9a34e902e36e
1590Author: dtucker@openbsd.org <dtucker@openbsd.org>
1591Date: Tue May 5 10:17:49 2015 +0000
1592
1593 upstream commit
1594
1595 WinSCP doesn't implement RFC4419 DH-GEX so flag it so we
1596 don't offer that KEX method. ok markus@
1597
1598commit d5b1507a207253b39e810e91e68f9598691b7a29
1599Author: jsg@openbsd.org <jsg@openbsd.org>
1600Date: Tue May 5 02:48:17 2015 +0000
1601
1602 upstream commit
1603
1604 use the sizeof the struct not the sizeof a pointer to the
1605 struct in ssh_digest_start()
1606
1607 This file is only used if ssh is built with OPENSSL=no
1608
1609 ok markus@
1610
1611commit a647b9b8e616c231594b2710c925d31b1b8afea3
1612Author: Darren Tucker <dtucker@zip.com.au>
1613Date: Fri May 8 11:07:27 2015 +1000
1614
1615 Put brackets around mblen() compat constant.
1616
1617 This might help with the reported problem cross compiling for Android
1618 ("error: expected identifier or '(' before numeric constant") but
1619 shouldn't hurt in any case.
1620
1621commit d1680d36e17244d9af3843aeb5025cb8e40d6c07
1622Author: Darren Tucker <dtucker@zip.com.au>
1623Date: Thu Apr 30 09:18:11 2015 +1000
1624
1625 xrealloc -> xreallocarray in portable code too.
1626
1627commit 531a57a3893f9fcd4aaaba8c312b612bbbcc021e
1628Author: dtucker@openbsd.org <dtucker@openbsd.org>
1629Date: Wed Apr 29 03:48:56 2015 +0000
1630
1631 upstream commit
1632
1633 Allow ListenAddress, Port and AddressFamily in any
1634 order. bz#68, ok djm@, jmc@ (for the man page bit).
1635
1636commit c1d5bcf1aaf1209af02f79e48ba1cbc76a87b56f
1637Author: jmc@openbsd.org <jmc@openbsd.org>
1638Date: Tue Apr 28 13:47:38 2015 +0000
1639
1640 upstream commit
1641
1642 enviroment -> environment: apologies to darren for not
1643 spotting that first time round...
1644
1645commit 43beea053db191cac47c2cd8d3dc1930158aff1a
1646Author: dtucker@openbsd.org <dtucker@openbsd.org>
1647Date: Tue Apr 28 10:25:15 2015 +0000
1648
1649 upstream commit
1650
1651 Fix typo in previous
1652
1653commit 85b96ef41374f3ddc9139581f87da09b2cd9199e
1654Author: dtucker@openbsd.org <dtucker@openbsd.org>
1655Date: Tue Apr 28 10:17:58 2015 +0000
1656
1657 upstream commit
1658
1659 Document that the TERM environment variable is not
1660 subject to SendEnv and AcceptEnv. bz#2386, based loosely on a patch from
1661 jjelen at redhat, help and ok jmc@
1662
1663commit 88a7c598a94ff53f76df228eeaae238d2d467565
1664Author: djm@openbsd.org <djm@openbsd.org>
1665Date: Mon Apr 27 21:42:48 2015 +0000
1666
1667 upstream commit
1668
1669 Make sshd default to PermitRootLogin=no; ok deraadt@
1670 rpe@
1671
1672commit 734226b4480a6c736096c729fcf6f391400599c7
1673Author: djm@openbsd.org <djm@openbsd.org>
1674Date: Mon Apr 27 01:52:30 2015 +0000
1675
1676 upstream commit
1677
1678 fix compilation with OPENSSL=no; ok dtucker@
1679
1680commit a4b9d2ce1eb7703eaf0809b0c8a82ded8aa4f1c6
1681Author: dtucker@openbsd.org <dtucker@openbsd.org>
1682Date: Mon Apr 27 00:37:53 2015 +0000
1683
1684 upstream commit
1685
1686 Include stdio.h for FILE (used in sshkey.h) so it
1687 compiles with OPENSSL=no.
1688
1689commit dbcc652f4ca11fe04e5930c7ef18a219318c6cda
1690Author: djm@openbsd.org <djm@openbsd.org>
1691Date: Mon Apr 27 00:21:21 2015 +0000
1692
1693 upstream commit
1694
1695 allow "sshd -f none" to skip reading the config file,
1696 much like "ssh -F none" does. ok dtucker
1697
1698commit b7ca276fca316c952f0b90f5adb1448c8481eedc
1699Author: jmc@openbsd.org <jmc@openbsd.org>
1700Date: Fri Apr 24 06:26:49 2015 +0000
1701
1702 upstream commit
1703
1704 combine -Dd onto one line and update usage();
1705
1706commit 2ea974630d7017e4c7666d14d9dc939707613e96
1707Author: djm@openbsd.org <djm@openbsd.org>
1708Date: Fri Apr 24 05:26:44 2015 +0000
1709
1710 upstream commit
1711
1712 add ssh-agent -D to leave ssh-agent in foreground
1713 without enabling debug mode; bz#2381 ok dtucker@
1714
1715commit 8ac2ffd7aa06042f6b924c87139f2fea5c5682f7
1716Author: deraadt@openbsd.org <deraadt@openbsd.org>
1717Date: Fri Apr 24 01:36:24 2015 +0000
1718
1719 upstream commit
1720
1721 2*len -> use xreallocarray() ok djm
1722
1723commit 657a5fbc0d0aff309079ff8fb386f17e964963c2
1724Author: deraadt@openbsd.org <deraadt@openbsd.org>
1725Date: Fri Apr 24 01:36:00 2015 +0000
1726
1727 upstream commit
1728
1729 rename xrealloc() to xreallocarray() since it follows
1730 that form. ok djm
1731
1732commit 1108ae242fdd2c304307b68ddf46aebe43ebffaa
1733Author: dtucker@openbsd.org <dtucker@openbsd.org>
1734Date: Thu Apr 23 04:59:10 2015 +0000
1735
1736 upstream commit
1737
1738 Two small fixes for sshd -T: ListenAddress'es are added
1739 to a list head so reverse the order when printing them to ensure the
1740 behaviour remains the same, and print StreamLocalBindMask as octal with
1741 leading zero. ok deraadt@
1742
1743commit bd902b8473e1168f19378d5d0ae68d0c203525df
1744Author: dtucker@openbsd.org <dtucker@openbsd.org>
1745Date: Thu Apr 23 04:53:53 2015 +0000
1746
1747 upstream commit
1748
1749 Check for and reject missing arguments for
1750 VersionAddendum and ForceCommand. bz#2281, patch from plautrba at redhat com,
1751 ok djm@
1752
1753commit ca42c1758575e592239de1d5755140e054b91a0d
1754Author: djm@openbsd.org <djm@openbsd.org>
1755Date: Wed Apr 22 01:24:01 2015 +0000
1756
1757 upstream commit
1758
1759 unknown certificate extensions are non-fatal, so don't
1760 fatal when they are encountered; bz#2387 reported by Bob Van Zant; ok
1761 dtucker@
1762
1763commit 39bfbf7caad231cc4bda6909fb1af0705bca04d8
1764Author: jsg@openbsd.org <jsg@openbsd.org>
1765Date: Tue Apr 21 07:01:00 2015 +0000
1766
1767 upstream commit
1768
1769 Add back a backslash removed in rev 1.42 so
1770 KEX_SERVER_ENCRYPT will include aes again.
1771
1772 ok deraadt@
1773
1774commit 6b0d576bb87eca3efd2b309fcfe4edfefc289f9c
1775Author: djm@openbsd.org <djm@openbsd.org>
1776Date: Fri Apr 17 13:32:09 2015 +0000
1777
1778 upstream commit
1779
1780 s/recommended/required/ that private keys be og-r this
1781 wording change was made a while ago but got accidentally reverted
1782
1783commit 44a8e7ce6f3ab4c2eb1ae49115c210b98e53c4df
1784Author: djm@openbsd.org <djm@openbsd.org>
1785Date: Fri Apr 17 13:25:52 2015 +0000
1786
1787 upstream commit
1788
1789 don't try to cleanup NULL KEX proposals in
1790 kex_prop_free(); found by Jukka Taimisto and Markus Hietava
1791
1792commit 3038a191872d2882052306098c1810d14835e704
1793Author: djm@openbsd.org <djm@openbsd.org>
1794Date: Fri Apr 17 13:19:22 2015 +0000
1795
1796 upstream commit
1797
1798 use error/logit/fatal instead of fprintf(stderr, ...)
1799 and exit(0), fix a few errors that were being printed to stdout instead of
1800 stderr and a few non-errors that were going to stderr instead of stdout
1801 bz#2325; ok dtucker
1802
1803commit a58be33cb6cd24441fa7e634db0e5babdd56f07f
1804Author: djm@openbsd.org <djm@openbsd.org>
1805Date: Fri Apr 17 13:16:48 2015 +0000
1806
1807 upstream commit
1808
1809 debug log missing DISPLAY environment when X11
1810 forwarding requested; bz#1682 ok dtucker@
1811
1812commit 17d4d9d9fbc8fb80e322f94d95eecc604588a474
1813Author: djm@openbsd.org <djm@openbsd.org>
1814Date: Fri Apr 17 04:32:31 2015 +0000
1815
1816 upstream commit
1817
1818 don't call record_login() in monitor when UseLogin is
1819 enabled; bz#278 reported by drk AT sgi.com; ok dtucker
1820
1821commit 40132ff87b6cbc3dc05fb5df2e9d8e3afa06aafd
1822Author: dtucker@openbsd.org <dtucker@openbsd.org>
1823Date: Fri Apr 17 04:12:35 2015 +0000
1824
1825 upstream commit
1826
1827 Add some missing options to sshd -T and fix the output
1828 of VersionAddendum HostCertificate. bz#2346, patch from jjelen at redhat
1829 com, ok djm.
1830
1831commit 6cc7cfa936afde2d829e56ee6528c7ea47a42441
1832Author: dtucker@openbsd.org <dtucker@openbsd.org>
1833Date: Thu Apr 16 23:25:50 2015 +0000
1834
1835 upstream commit
1836
1837 Document "none" for PidFile XAuthLocation
1838 TrustedUserCAKeys and RevokedKeys. bz#2382, feedback from jmc@, ok djm@
1839
1840commit 15fdfc9b1c6808b26bc54d4d61a38b54541763ed
1841Author: dtucker@openbsd.org <dtucker@openbsd.org>
1842Date: Wed Apr 15 23:23:25 2015 +0000
1843
1844 upstream commit
1845
1846 Plug leak of address passed to logging. bz#2373, patch
1847 from jjelen at redhat, ok markus@
1848
1849commit bb2289e2a47d465eaaaeff3dee2a6b7777b4c291
1850Author: dtucker@openbsd.org <dtucker@openbsd.org>
1851Date: Tue Apr 14 04:17:03 2015 +0000
1852
1853 upstream commit
1854
1855 Output remote username in debug output since with Host
1856 and Match it's not always obvious what it will be. bz#2368, ok djm@
1857
1858commit 70860b6d07461906730632f9758ff1b7c98c695a
1859Author: Darren Tucker <dtucker@zip.com.au>
1860Date: Fri Apr 17 10:56:13 2015 +1000
1861
1862 Format UsePAM setting when using sshd -T.
1863
1864 Part of bz#2346, patch from jjelen at redhat com.
1865
1866commit ee15d9c9f0720f5a8b0b34e4b10ecf21f9824814
1867Author: Darren Tucker <dtucker@zip.com.au>
1868Date: Fri Apr 17 10:40:23 2015 +1000
1869
1870 Wrap endian.h include inside ifdef (bz#2370).
1871
1872commit 408f4c2ad4a4c41baa7b9b2b7423d875abbfa70b
1873Author: Darren Tucker <dtucker@zip.com.au>
1874Date: Fri Apr 17 09:39:58 2015 +1000
1875
1876 Look for '${host}-ar' before 'ar'.
1877
1878 This changes configure.ac to look for '${host}-ar' as set by
1879 AC_CANONICAL_HOST before looking for the unprefixed 'ar'.
1880 Useful when cross-compiling when all your binutils are prefixed.
1881
1882 Patch from moben at exherbo org via astrand at lysator liu se and
1883 bz#2352.
1884
1885commit 673a1c16ad078d41558247ce739fe812c960acc8
1886Author: Damien Miller <djm@google.com>
1887Date: Thu Apr 16 11:40:20 2015 +1000
1888
1889 remove dependency on arpa/telnet.h
1890
1891commit 202d443eeda1829d336595a3cfc07827e49f45ed
1892Author: Darren Tucker <dtucker@zip.com.au>
1893Date: Wed Apr 15 15:59:49 2015 +1000
1894
1895 Remove duplicate include of pwd.h. bz#2337, patch from Mordy Ovits.
1896
1897commit 597986493412c499f2bc2209420cb195f97b3668
1898Author: Damien Miller <djm@google.com>
1899Date: Thu Apr 9 10:14:48 2015 +1000
1900
1901 platform's with openpty don't need pty_release
1902
1903commit 318be28cda1fd9108f2e6f2f86b0b7589ba2aed0
1904Author: djm@openbsd.org <djm@openbsd.org>
1905Date: Mon Apr 13 02:04:08 2015 +0000
1906
1907 upstream commit
1908
1909 deprecate ancient, pre-RFC4419 and undocumented
1910 SSH2_MSG_KEX_DH_GEX_REQUEST_OLD message; ok markus@ deraadt@ "seems
1911 reasonable" dtucker@
1912
1913commit d8f391caef62378463a0e6b36f940170dadfe605
1914Author: dtucker@openbsd.org <dtucker@openbsd.org>
1915Date: Fri Apr 10 05:16:50 2015 +0000
1916
1917 upstream commit
1918
1919 Don't send hostkey advertisments
1920 (hostkeys-00@openssh.com) to current versions of Tera Term as they can't
1921 handle them. Newer versions should be OK. Patch from Bryan Drewery and
1922 IWAMOTO Kouichi, ok djm@
1923
1924commit 2c2cfe1a1c97eb9a08cc9817fd0678209680c636
1925Author: djm@openbsd.org <djm@openbsd.org>
1926Date: Fri Apr 10 00:08:55 2015 +0000
1927
1928 upstream commit
1929
1930 include port number if a non-default one has been
1931 specified; based on patch from Michael Handler
1932
1933commit 4492a4f222da4cf1e8eab12689196322e27b08c4
1934Author: djm@openbsd.org <djm@openbsd.org>
1935Date: Tue Apr 7 23:00:42 2015 +0000
1936
1937 upstream commit
1938
1939 treat Protocol=1,2|2,1 as Protocol=2 when compiled
1940 without SSH1 support; ok dtucker@ millert@
1941
1942commit c265e2e6e932efc6d86f6cc885dea33637a67564
1943Author: miod@openbsd.org <miod@openbsd.org>
1944Date: Sun Apr 5 15:43:43 2015 +0000
1945
1946 upstream commit
1947
1948 Do not use int for sig_atomic_t; spotted by
1949 christos@netbsd; ok markus@
1950
1951commit e7bf3a5eda6a1b02bef6096fed78527ee11e54cc
1952Author: Darren Tucker <dtucker@zip.com.au>
1953Date: Tue Apr 7 10:48:04 2015 +1000
1954
1955 Use do{}while(0) for no-op functions.
1956
1957 From FreeBSD.
1958
1959commit bb99844abae2b6447272f79e7fa84134802eb4df
1960Author: Darren Tucker <dtucker@zip.com.au>
1961Date: Tue Apr 7 10:47:15 2015 +1000
1962
1963 Wrap blf.h include in ifdef. From FreeBSD.
1964
1965commit d9b9b43656091cf0ad55c122f08fadb07dad0abd
1966Author: Darren Tucker <dtucker@zip.com.au>
1967Date: Tue Apr 7 09:10:00 2015 +1000
1968
1969 Fix misspellings of regress CONFOPTS env variables.
1970
1971 Patch from Bryan Drewery.
1972
1973commit 3f4ea3c9ab1d32d43c9222c4351f58ca11144156
1974Author: djm@openbsd.org <djm@openbsd.org>
1975Date: Fri Apr 3 22:17:27 2015 +0000
1976
1977 upstream commit
1978
1979 correct return value in pubkey parsing, spotted by Ben Hawkes
1980 ok markus@
1981
1982commit 7da2be0cb9601ed25460c83aa4d44052b967ba0f
1983Author: djm@openbsd.org <djm@openbsd.org>
1984Date: Tue Mar 31 22:59:01 2015 +0000
1985
1986 upstream commit
1987
1988 adapt to recent hostfile.c change: when parsing
1989 known_hosts without fully parsing the keys therein, hostkeys_foreach() will
1990 now correctly identify KEY_RSA1 keys; ok markus@ miod@
1991
1992commit 9e1777a0d1c706714b055811c12ab8cc21033e4a
1993Author: markus@openbsd.org <markus@openbsd.org>
1994Date: Tue Mar 24 20:19:15 2015 +0000
1995
1996 upstream commit
1997
1998 use ${SSH} for -Q instead of installed ssh
1999
2000commit ce1b358ea414a2cc88e4430cd5a2ea7fecd9de57
2001Author: djm@openbsd.org <djm@openbsd.org>
2002Date: Mon Mar 16 22:46:14 2015 +0000
2003
2004 upstream commit
2005
2006 make CLEANFILES clean up more of the tests' droppings
2007
2008commit 398f9ef192d820b67beba01ec234d66faca65775
2009Author: djm@openbsd.org <djm@openbsd.org>
2010Date: Tue Mar 31 22:57:06 2015 +0000
2011
2012 upstream commit
2013
2014 downgrade error() for known_hosts parse errors to debug()
2015 to quiet warnings from ssh1 keys present when compiled !ssh1.
2016
2017 also identify ssh1 keys when scanning, even when compiled !ssh1
2018
2019 ok markus@ miod@
2020
2021commit 9a47ab80030a31f2d122b8fd95bd48c408b9fcd9
2022Author: djm@openbsd.org <djm@openbsd.org>
2023Date: Tue Mar 31 22:55:50 2015 +0000
2024
2025 upstream commit
2026
2027 fd leak for !ssh1 case; found by unittests; ok markus@
2028
2029commit c9a0805a6280681901c270755a7cd630d7c5280e
2030Author: djm@openbsd.org <djm@openbsd.org>
2031Date: Tue Mar 31 22:55:24 2015 +0000
2032
2033 upstream commit
2034
2035 don't fatal when a !ssh1 sshd is reexeced from a w/ssh1
2036 listener; reported by miod@; ok miod@ markus@
2037
2038commit 704d8c88988cae38fb755a6243b119731d223222
2039Author: tobias@openbsd.org <tobias@openbsd.org>
2040Date: Tue Mar 31 11:06:49 2015 +0000
2041
2042 upstream commit
2043
2044 Comments are only supported for RSA1 keys. If a user
2045 tried to add one and entered his passphrase, explicitly clear it before exit.
2046 This is done in all other error paths, too.
2047
2048 ok djm
2049
2050commit 78de1673c05ea2c33e0d4a4b64ecb5186b6ea2e9
2051Author: jmc@openbsd.org <jmc@openbsd.org>
2052Date: Mon Mar 30 18:28:37 2015 +0000
2053
2054 upstream commit
2055
2056 ssh-askpass(1) is the default, overridden by SSH_ASKPASS;
2057 diff originally from jiri b;
2058
2059commit 26e0bcf766fadb4a44fb6199386fb1dcab65ad00
2060Author: djm@openbsd.org <djm@openbsd.org>
2061Date: Mon Mar 30 00:00:29 2015 +0000
2062
2063 upstream commit
2064
2065 fix uninitialised memory read when parsing a config file
2066 consisting of a single nul byte. Found by hanno AT hboeck.de using AFL; ok
2067 dtucker
2068
2069commit fecede00a76fbb33a349f5121c0b2f9fbc04a777
2070Author: markus@openbsd.org <markus@openbsd.org>
2071Date: Thu Mar 26 19:32:19 2015 +0000
2072
2073 upstream commit
2074
2075 sigp and lenp are not optional in ssh_agent_sign(); ok
2076 djm@
2077
2078commit 1b0ef3813244c78669e6d4d54c624f600945327d
2079Author: naddy@openbsd.org <naddy@openbsd.org>
2080Date: Thu Mar 26 12:32:38 2015 +0000
2081
2082 upstream commit
2083
2084 don't try to load .ssh/identity by default if SSH1 is
2085 disabled; ok markus@
2086
2087commit f9b78852379b74a2d14e6fc94fe52af30b7e9c31
2088Author: djm@openbsd.org <djm@openbsd.org>
2089Date: Thu Mar 26 07:00:04 2015 +0000
2090
2091 upstream commit
2092
2093 ban all-zero curve25519 keys as recommended by latest
2094 CFRG curves draft; ok markus
2095
2096commit b8afbe2c1aaf573565e4da775261dfafc8b1ba9c
2097Author: djm@openbsd.org <djm@openbsd.org>
2098Date: Thu Mar 26 06:59:28 2015 +0000
2099
2100 upstream commit
2101
2102 relax bits needed check to allow
2103 diffie-hellman-group1-sha1 key exchange to complete for chacha20-poly1305 was
2104 selected as symmetric cipher; ok markus
2105
2106commit 47842f71e31da130555353c1d57a1e5a8937f1c0
2107Author: markus@openbsd.org <markus@openbsd.org>
2108Date: Wed Mar 25 19:29:58 2015 +0000
2109
2110 upstream commit
2111
2112 ignore v1 errors on ssh-add -D; only try v2 keys on
2113 -l/-L (unless WITH_SSH1) ok djm@
2114
2115commit 5f57e77f91bf2230c09eca96eb5ecec39e5f2da6
2116Author: markus@openbsd.org <markus@openbsd.org>
2117Date: Wed Mar 25 19:21:48 2015 +0000
2118
2119 upstream commit
2120
2121 unbreak ssh_agent_sign (lenp vs *lenp)
2122
2123commit 4daeb67181054f2a377677fac919ee8f9ed3490e
2124Author: markus@openbsd.org <markus@openbsd.org>
2125Date: Tue Mar 24 20:10:08 2015 +0000
2126
2127 upstream commit
2128
2129 don't leak 'setp' on error; noted by Nicholas Lemonias;
2130 ok djm@
2131
2132commit 7d4f96f9de2a18af0d9fa75ea89a4990de0344f5
2133Author: markus@openbsd.org <markus@openbsd.org>
2134Date: Tue Mar 24 20:09:11 2015 +0000
2135
2136 upstream commit
2137
2138 consistent check for NULL as noted by Nicholas
2139 Lemonias; ok djm@
2140
2141commit df100be51354e447d9345cf1ec22e6013c0eed50
2142Author: markus@openbsd.org <markus@openbsd.org>
2143Date: Tue Mar 24 20:03:44 2015 +0000
2144
2145 upstream commit
2146
2147 correct fmt-string for size_t as noted by Nicholas
2148 Lemonias; ok djm@
2149
2150commit a22b9ef21285e81775732436f7c84a27bd3f71e0
2151Author: djm@openbsd.org <djm@openbsd.org>
2152Date: Tue Mar 24 09:17:21 2015 +0000
2153
2154 upstream commit
2155
2156 promote chacha20-poly1305@openssh.com to be the default
2157 cipher; ok markus
2158
2159commit 2aa9da1a3b360cf7b13e96fe1521534b91501fb5
2160Author: djm@openbsd.org <djm@openbsd.org>
2161Date: Tue Mar 24 01:29:19 2015 +0000
2162
2163 upstream commit
2164
2165 Compile-time disable SSH protocol 1. You can turn it
2166 back on using the Makefile.inc knob if you need it to talk to ancient
2167 devices.
2168
2169commit 53097b2022154edf96b4e8526af5666f979503f7
2170Author: djm@openbsd.org <djm@openbsd.org>
2171Date: Tue Mar 24 01:11:12 2015 +0000
2172
2173 upstream commit
2174
2175 fix double-negative error message "ssh1 is not
2176 unsupported"
2177
2178commit 5c27e3b6ec2db711dfcd40e6359c0bcdd0b62ea9
2179Author: djm@openbsd.org <djm@openbsd.org>
2180Date: Mon Mar 23 06:06:38 2015 +0000
2181
2182 upstream commit
2183
2184 for ssh-keygen -A, don't try (and fail) to generate ssh
2185 v.1 keys when compiled without SSH1 support RSA/DSA/ECDSA keys when compiled
2186 without OpenSSL based on patch by Mike Frysinger; bz#2369
2187
2188commit 725fd22a8c41db7de73a638539a5157b7e4424ae
2189Author: djm@openbsd.org <djm@openbsd.org>
2190Date: Wed Mar 18 01:44:21 2015 +0000
2191
2192 upstream commit
2193
2194 KRL support doesn't need OpenSSL anymore, remove #ifdefs
2195 from around call
2196
2197commit b07011c18e0b2e172c5fd09d21fb159a0bf5fcc7
2198Author: djm@openbsd.org <djm@openbsd.org>
2199Date: Mon Mar 16 11:09:52 2015 +0000
2200
2201 upstream commit
2202
2203 #if 0 some more arrays used only for decrypting (we don't
2204 use since we only need encrypt for AES-CTR)
2205
2206commit 1cb3016635898d287e9d58b50c430995652d5358
2207Author: jsg@openbsd.org <jsg@openbsd.org>
2208Date: Wed Mar 11 00:48:39 2015 +0000
2209
2210 upstream commit
2211
2212 add back the changes from rev 1.206, djm reverted this by
2213 mistake in rev 1.207
2214
2215commit 4d24b3b6a4a6383e05e7da26d183b79fa8663697
2216Author: Damien Miller <djm@mindrot.org>
2217Date: Fri Mar 20 09:11:59 2015 +1100
2218
2219 remove error() accidentally inserted for debugging
2220
2221 pointed out by Christian Hesse
2222
2223commit 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb
2224Author: Tim Rice <tim@multitalents.net>
2225Date: Mon Mar 16 22:49:20 2015 -0700
2226
2227 portability fix: Solaris systems may not have a grep that understands -q
2228
2229commit 8ef691f7d9ef500257a549d0906d78187490668f
2230Author: Damien Miller <djm@google.com>
2231Date: Wed Mar 11 10:35:26 2015 +1100
2232
2233 fix compile with clang
2234
2235commit 4df590cf8dc799e8986268d62019b487a8ed63ad
2236Author: Damien Miller <djm@google.com>
2237Date: Wed Mar 11 10:02:39 2015 +1100
2238
2239 make unit tests work for !OPENSSH_HAS_ECC
2240
2241commit 307bb40277ca2c32e97e61d70d1ed74b571fd6ba
2242Author: djm@openbsd.org <djm@openbsd.org>
2243Date: Sat Mar 7 04:41:48 2015 +0000
2244
2245 upstream commit
2246
2247 unbreak for w/SSH1 (default) case; ok markus@ deraadt@
2248
2249commit b44ee0c998fb4c5f3c3281f2398af5ce42840b6f
2250Author: Damien Miller <djm@mindrot.org>
2251Date: Thu Mar 5 18:39:20 2015 -0800
2252
2253 unbreak hostkeys test for w/ SSH1 case
2254
2255commit 55e5bdeb519cb60cc18b7ba0545be581fb8598b4
2256Author: djm@openbsd.org <djm@openbsd.org>
2257Date: Fri Mar 6 01:40:56 2015 +0000
2258
2259 upstream commit
2260
2261 fix sshkey_certify() return value for unsupported key types;
2262 ok markus@ deraadt@
2263
2264commit be8f658e550a434eac04256bfbc4289457a24e99
2265Author: Damien Miller <djm@mindrot.org>
2266Date: Wed Mar 4 15:38:03 2015 -0800
2267
2268 update version numbers to match version.h
2269
2270commit ac5e8acefa253eb5e5ba186e34236c0e8007afdc
2271Author: djm@openbsd.org <djm@openbsd.org>
2272Date: Wed Mar 4 23:22:35 2015 +0000
2273
2274 upstream commit
2275
2276 make these work with !SSH1; ok markus@ deraadt@
2277
2278commit 2f04af92f036b0c87a23efb259c37da98cd81fe6
2279Author: djm@openbsd.org <djm@openbsd.org>
2280Date: Wed Mar 4 21:12:59 2015 +0000
2281
2282 upstream commit
2283
2284 make ssh-add -D work with !SSH1 agent
2285
2286commit a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b
2287Author: Damien Miller <djm@mindrot.org>
2288Date: Wed Mar 4 00:55:48 2015 -0800
2289
2290 netcat needs poll.h portability goop
2291
2292commit dad2b1892b4c1b7e58df483a8c5b983c4454e099
2293Author: markus@openbsd.org <markus@openbsd.org>
2294Date: Tue Mar 3 22:35:19 2015 +0000
2295
2296 upstream commit
2297
2298 make it possible to run tests w/o ssh1 support; ok djm@
2299
2300commit d48a22601bdd3eec054794c535f4ae8d8ae4c6e2
2301Author: djm@openbsd.org <djm@openbsd.org>
2302Date: Wed Mar 4 18:53:53 2015 +0000
2303
2304 upstream commit
2305
2306 crank; ok markus, deraadt
2307
2308commit bbffb23daa0b002dd9f296e396a9ab8a5866b339
2309Author: Damien Miller <djm@mindrot.org>
2310Date: Tue Mar 3 13:50:27 2015 -0800
2311
2312 more --without-ssh1 fixes
2313
2314commit 6c2039286f503e2012a58a1d109e389016e7a99b
2315Author: Damien Miller <djm@mindrot.org>
2316Date: Tue Mar 3 13:48:48 2015 -0800
2317
2318 fix merge both that broke --without-ssh1 compile
2319
2320commit 111dfb225478a76f89ecbcd31e96eaf1311b59d3
2321Author: djm@openbsd.org <djm@openbsd.org>
2322Date: Tue Mar 3 21:21:13 2015 +0000
2323
2324 upstream commit
2325
2326 add SSH1 Makefile knob to make it easier to build without
2327 SSH1 support; ok markus@
2328
2329commit 3f7f5e6c5d2aa3f6710289c1a30119e534e56c5c
2330Author: djm@openbsd.org <djm@openbsd.org>
2331Date: Tue Mar 3 20:42:49 2015 +0000
2332
2333 upstream commit
2334
2335 expand __unused to full __attribute__ for better portability
2336
2337commit 2fab9b0f8720baf990c931e3f68babb0bf9949c6
2338Author: Damien Miller <djm@mindrot.org>
2339Date: Wed Mar 4 07:41:27 2015 +1100
2340
2341 avoid warning
2342
2343commit d1bc844322461f882b4fd2277ba9a8d4966573d2
2344Author: Damien Miller <djm@mindrot.org>
2345Date: Wed Mar 4 06:31:45 2015 +1100
2346
2347 Revert "define __unused to nothing if not already defined"
2348
2349 This reverts commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908.
2350
2351 Some system headers have objects named __unused
2352
2353commit 00797e86b2d98334d1bb808f65fa1fd47f328ff1
2354Author: Damien Miller <djm@mindrot.org>
2355Date: Wed Mar 4 05:02:45 2015 +1100
2356
2357 check for crypt and DES_crypt in openssl block
2358
2359 fixes builds on systems that use DES_crypt; based on patch
2360 from Roumen Petrov
2361
2362commit 1598419e38afbaa8aa5df8dd6b0af98301e2c908
2363Author: Damien Miller <djm@mindrot.org>
2364Date: Wed Mar 4 04:59:13 2015 +1100
2365
2366 define __unused to nothing if not already defined
2367
2368 fixes builds on BSD/OS
2369
2370commit d608a51daad4f14ad6ab43d7cf74ef4801cc3fe9
2371Author: djm@openbsd.org <djm@openbsd.org>
2372Date: Tue Mar 3 17:53:40 2015 +0000
2373
2374 upstream commit
2375
2376 reorder logic for better portability; patch from Roumen
2377 Petrov
2378
2379commit 68d2dfc464fbcdf8d6387884260f9801f4352393
2380Author: djm@openbsd.org <djm@openbsd.org>
2381Date: Tue Mar 3 06:48:58 2015 +0000
2382
2383 upstream commit
2384
2385 Allow "ssh -Q protocol-version" to list supported SSH
2386 protocol versions. Useful for detecting builds without SSH v.1 support; idea
2387 and ok markus@
2388
2389commit 39e2f1229562e1195169905607bc12290d21f021
2390Author: millert@openbsd.org <millert@openbsd.org>
2391Date: Sun Mar 1 15:44:40 2015 +0000
2392
2393 upstream commit
2394
2395 Make sure we only call getnameinfo() for AF_INET or AF_INET6
2396 sockets. getpeername() of a Unix domain socket may return without error on
2397 some systems without actually setting ss_family so getnameinfo() was getting
2398 called with ss_family set to AF_UNSPEC. OK djm@
2399
2400commit e47536ba9692d271b8ad89078abdecf0a1c11707
2401Author: Damien Miller <djm@mindrot.org>
2402Date: Sat Feb 28 08:20:11 2015 -0800
2403
2404 portability fixes for regress/netcat.c
2405
2406 Mostly avoiding "err(1, NULL)"
2407
2408commit 02973ad5f6f49d8420e50a392331432b0396c100
2409Author: Damien Miller <djm@mindrot.org>
2410Date: Sat Feb 28 08:05:27 2015 -0800
2411
2412 twiddle another test for portability
2413
2414 from Tom G. Christensen
2415
2416commit f7f3116abf2a6e2f309ab096b08c58d19613e5d0
2417Author: Damien Miller <djm@mindrot.org>
2418Date: Fri Feb 27 15:52:49 2015 -0800
2419
2420 twiddle test for portability
2421
2422commit 1ad3a77cc9d5568f5437ff99d377aa7a41859b83
2423Author: Damien Miller <djm@mindrot.org>
2424Date: Thu Feb 26 20:33:22 2015 -0800
2425
2426 make regress/netcat.c fd passing (more) portable
2427
2428commit 9e1cfca7e1fe9cf8edb634fc894e43993e4da1ea
2429Author: Damien Miller <djm@mindrot.org>
2430Date: Thu Feb 26 20:32:58 2015 -0800
2431
2432 create OBJ/valgrind-out before running unittests
2433
2434commit bd58853102cee739f0e115e6d4b5334332ab1442
2435Author: Damien Miller <djm@mindrot.org>
2436Date: Wed Feb 25 16:58:22 2015 -0800
2437
2438 valgrind support
2439
2440commit f43d17269194761eded9e89f17456332f4c83824
2441Author: djm@openbsd.org <djm@openbsd.org>
2442Date: Thu Feb 26 20:45:47 2015 +0000
2443
2444 upstream commit
2445
2446 don't printf NULL key comments; reported by Tom Christensen
2447
2448commit 6e6458b476ec854db33e3e68ebf4f489d0ab3df8
2449Author: djm@openbsd.org <djm@openbsd.org>
2450Date: Wed Feb 25 23:05:47 2015 +0000
2451
2452 upstream commit
2453
2454 zero cmsgbuf before use; we initialise the bits we use
2455 but valgrind still spams warning on it
2456
2457commit a63cfa26864b93ab6afefad0b630e5358ed8edfa
2458Author: djm@openbsd.org <djm@openbsd.org>
2459Date: Wed Feb 25 19:54:02 2015 +0000
2460
2461 upstream commit
2462
2463 fix small memory leak when UpdateHostkeys=no
2464
2465commit e6b950341dd75baa8526f1862bca39e52f5b879b
2466Author: Tim Rice <tim@multitalents.net>
2467Date: Wed Feb 25 09:56:48 2015 -0800
2468
2469 Revert "Work around finicky USL linker so netcat will build."
2470
2471 This reverts commit d1db656021d0cd8c001a6692f772f1de29b67c8b.
2472
2473 No longer needed with commit 678e473e2af2e4802f24dd913985864d9ead7fb3
2474
2475commit 6f621603f9cff2a5d6016a404c96cb2f8ac2dec0
2476Author: djm@openbsd.org <djm@openbsd.org>
2477Date: Wed Feb 25 17:29:38 2015 +0000
2478
2479 upstream commit
2480
2481 don't leak validity of user in "too many authentication
2482 failures" disconnect message; reported by Sebastian Reitenbach
2483
2484commit 6288e3a935494df12519164f52ca5c8c65fc3ca5
2485Author: naddy@openbsd.org <naddy@openbsd.org>
2486Date: Tue Feb 24 15:24:05 2015 +0000
2487
2488 upstream commit
2489
2490 add -v (show ASCII art) to -l's synopsis; ok djm@
2491
2492commit 678e473e2af2e4802f24dd913985864d9ead7fb3
2493Author: Darren Tucker <dtucker@zip.com.au>
2494Date: Thu Feb 26 04:12:58 2015 +1100
2495
2496 Remove dependency on xmalloc.
2497
2498 Remove ssh_get_progname's dependency on xmalloc, which should reduce
2499 link order problems. ok djm@
2500
2501commit 5d5ec165c5b614b03678afdad881f10e25832e46
2502Author: Darren Tucker <dtucker@zip.com.au>
2503Date: Wed Feb 25 15:32:49 2015 +1100
2504
2505 Restrict ECDSA and ECDH tests.
2506
2507 ifdef out some more ECDSA and ECDH tests when built against an OpenSSL
2508 that does not have eliptic curve functionality.
2509
2510commit 1734e276d99b17e92d4233fac7aef3a3180aaca7
2511Author: Darren Tucker <dtucker@zip.com.au>
2512Date: Wed Feb 25 13:40:45 2015 +1100
2513
2514 Move definition of _NSIG.
2515
2516 _NSIG is only unsed in one file, so move it there prevent redefinition
2517 warnings reported by Kevin Brott.
2518
2519commit a47ead7c95cfbeb72721066c4da2312e5b1b9f3d
2520Author: Darren Tucker <dtucker@zip.com.au>
2521Date: Wed Feb 25 13:17:40 2015 +1100
2522
2523 Add includes.h for compatibility stuff.
2524
2525commit 38806bda6d2e48ad32812b461eebe17672ada771
2526Author: Damien Miller <djm@mindrot.org>
2527Date: Tue Feb 24 16:50:06 2015 -0800
2528
2529 include netdb.h to look for MAXHOSTNAMELEN; ok tim
2530
2531commit d1db656021d0cd8c001a6692f772f1de29b67c8b
2532Author: Tim Rice <tim@multitalents.net>
2533Date: Tue Feb 24 10:42:08 2015 -0800
2534
2535 Work around finicky USL linker so netcat will build.
2536
2537commit cb030ce25f555737e8ba97bdd7883ac43f3ff2a3
2538Author: Damien Miller <djm@mindrot.org>
2539Date: Tue Feb 24 09:23:04 2015 -0800
2540
2541 include includes.h to avoid build failure on AIX
2542
2543commit 13af342458f5064144abbb07e5ac9bbd4eb42567
2544Author: Tim Rice <tim@multitalents.net>
2545Date: Tue Feb 24 07:56:47 2015 -0800
2546
2547 Original portability patch from djm@ for platforms missing err.h.
2548 Fix name space clash on Solaris 10. Still more to do for Solaris 10
2549 to deal with msghdr structure differences. ok djm@
2550
2551commit 910209203d0cd60c5083901cbcc0b7b44d9f48d2
2552Author: Tim Rice <tim@multitalents.net>
2553Date: Mon Feb 23 22:06:56 2015 -0800
2554
2555 cleaner way fix dispatch.h portion of commit
2556 a88dd1da119052870bb2654c1a32c51971eade16
2557 (some systems have sig_atomic_t in signal.h, some in sys/signal.h)
2558 Sounds good to me djm@
2559
2560commit 676c38d7cbe65b76bbfff796861bb6615cc6a596
2561Author: Tim Rice <tim@multitalents.net>
2562Date: Mon Feb 23 21:51:33 2015 -0800
2563
2564 portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255
2565
2566commit 1221b22023dce38cbc90ba77eae4c5d78c77a5e6
2567Author: Tim Rice <tim@multitalents.net>
2568Date: Mon Feb 23 21:50:34 2015 -0800
2569
2570 portablity fix: s/__inline__/inline/
2571
2572commit 4c356308a88d309c796325bb75dce90ca16591d5
2573Author: Darren Tucker <dtucker@zip.com.au>
2574Date: Tue Feb 24 13:49:31 2015 +1100
2575
2576 Wrap stdint.h includes in HAVE_STDINT_H.
2577
2578commit c9c88355c6a27a908e7d1e5003a2b35ea99c1614
2579Author: Darren Tucker <dtucker@zip.com.au>
2580Date: Tue Feb 24 13:43:57 2015 +1100
2581
2582 Add AI_NUMERICSERV to fake-rfc2553.
2583
2584 Our getaddrinfo implementation always returns numeric values already.
2585
2586commit ef342ab1ce6fb9a4b30186c89c309d0ae9d0eeb4
2587Author: Darren Tucker <dtucker@zip.com.au>
2588Date: Tue Feb 24 13:39:57 2015 +1100
2589
2590 Include OpenSSL's objects.h before bn.h.
2591
2592 Prevents compile errors on some platforms (at least old GCCs and AIX's
2593 XLC compilers).
2594
2595commit dcc8997d116f615195aa7c9ec019fb36c28c6228
2596Author: Darren Tucker <dtucker@zip.com.au>
2597Date: Tue Feb 24 12:30:59 2015 +1100
2598
2599 Convert two macros into functions.
2600
2601 Convert packet_send_debug and packet_disconnect from macros to
2602 functions. Some older GCCs (2.7.x, 2.95.x) see to have problems with
2603 variadic macros with only one argument so we convert these two into
2604 functions. ok djm@
2605
2606commit 2285c30d51b7e2052c6526445abe7e7cc7e170a1
2607Author: djm@openbsd.org <djm@openbsd.org>
2608Date: Mon Feb 23 22:21:21 2015 +0000
2609
2610 upstream commit
2611
2612 further silence spurious error message even when -v is
2613 specified (e.g. to get visual host keys); reported by naddy@
2614
2615commit 9af21979c00652029e160295e988dea40758ece2
2616Author: Damien Miller <djm@mindrot.org>
2617Date: Tue Feb 24 09:04:32 2015 +1100
2618
2619 don't include stdint.h unless HAVE_STDINT_H set
2620
2621commit 62f678dd51660d6f8aee1da33d3222c5de10a89e
2622Author: Damien Miller <djm@mindrot.org>
2623Date: Tue Feb 24 09:02:54 2015 +1100
2624
2625 nother sys/queue.h -> sys-queue.h fix
2626
2627 spotted by Tom Christensen
2628
2629commit b3c19151cba2c0ed01b27f55de0d723ad07ca98f
2630Author: djm@openbsd.org <djm@openbsd.org>
2631Date: Mon Feb 23 20:32:15 2015 +0000
2632
2633 upstream commit
2634
2635 fix a race condition by using a mux socket rather than an
2636 ineffectual wait statement
2637
2638commit a88dd1da119052870bb2654c1a32c51971eade16
2639Author: Damien Miller <djm@mindrot.org>
2640Date: Tue Feb 24 06:30:29 2015 +1100
2641
2642 various include fixes for portable
2643
2644commit 5248429b5ec524d0a65507cff0cdd6e0cb99effd
2645Author: djm@openbsd.org <djm@openbsd.org>
2646Date: Mon Feb 23 16:55:51 2015 +0000
2647
2648 upstream commit
2649
2650 add an XXX to remind me to improve sshkey_load_public
2651
2652commit e94e4b07ef2eaead38b085a60535df9981cdbcdb
2653Author: djm@openbsd.org <djm@openbsd.org>
2654Date: Mon Feb 23 16:55:31 2015 +0000
2655
2656 upstream commit
2657
2658 silence a spurious error message when listing
2659 fingerprints for known_hosts; bz#2342
2660
2661commit f2293a65392b54ac721f66bc0b44462e8d1d81f8
2662Author: djm@openbsd.org <djm@openbsd.org>
2663Date: Mon Feb 23 16:33:25 2015 +0000
2664
2665 upstream commit
2666
2667 fix setting/clearing of TTY raw mode around
2668 UpdateHostKeys=ask confirmation question; reported by Herb Goldman
2669
2670commit f2004cd1adf34492eae0a44b1ef84e0e31b06088
2671Author: Darren Tucker <dtucker@zip.com.au>
2672Date: Mon Feb 23 05:04:21 2015 +1100
2673
2674 Repair for non-ECC OpenSSL.
2675
2676 Ifdef out the ECC parts when building with an OpenSSL that doesn't have
2677 it.
2678
2679commit 37f9220db8d1a52c75894c3de1e5f2ae5bd71b6f
2680Author: Darren Tucker <dtucker@zip.com.au>
2681Date: Mon Feb 23 03:07:24 2015 +1100
2682
2683 Wrap stdint.h includes in ifdefs.
2684
2685commit f81f1bbc5b892c8614ea740b1f92735652eb43f0
2686Author: Tim Rice <tim@multitalents.net>
2687Date: Sat Feb 21 18:12:10 2015 -0800
2688
2689 out of tree build fix
2690
2691commit 2e13a1e4d22f3b503c3bfc878562cc7386a1d1ae
2692Author: Tim Rice <tim@multitalents.net>
2693Date: Sat Feb 21 18:08:51 2015 -0800
2694
2695 mkdir kex unit test directory so testing out of tree builds works
2696
2697commit 1797f49b1ba31e8700231cd6b1d512d80bb50d2c
2698Author: halex@openbsd.org <halex@openbsd.org>
2699Date: Sat Feb 21 21:46:57 2015 +0000
2700
2701 upstream commit
2702
2703 make "ssh-add -d" properly remove a corresponding
2704 certificate, and also not whine and fail if there is none
2705
2706 ok djm@
2707
2708commit 7faaa32da83a609059d95dbfcb0649fdb04caaf6
2709Author: Damien Miller <djm@mindrot.org>
2710Date: Sun Feb 22 07:57:27 2015 +1100
2711
2712 mkdir hostkey and bitmap unit test directories
2713
2714commit bd49da2ef197efac5e38f5399263a8b47990c538
2715Author: djm@openbsd.org <djm@openbsd.org>
2716Date: Fri Feb 20 23:46:01 2015 +0000
2717
2718 upstream commit
2719
2720 sort options useable under Match case-insensitively; prodded
2721 jmc@
2722
2723commit 1a779a0dd6cd8b4a1a40ea33b5415ab8408128ac
2724Author: djm@openbsd.org <djm@openbsd.org>
2725Date: Sat Feb 21 20:51:02 2015 +0000
2726
2727 upstream commit
2728
2729 correct paths to configuration files being written/updated;
2730 they live in $OBJ not cwd; some by Roumen Petrov
2731
2732commit 28ba006c1acddff992ae946d0bc0b500b531ba6b
2733Author: Darren Tucker <dtucker@zip.com.au>
2734Date: Sat Feb 21 15:41:07 2015 +1100
2735
2736 More correct checking of HAVE_DECL_AI_NUMERICSERV.
2737
2738commit e50e8c97a9cecae1f28febccaa6ca5ab3bc10f54
2739Author: Darren Tucker <dtucker@zip.com.au>
2740Date: Sat Feb 21 15:10:33 2015 +1100
2741
2742 Add null declaration of AI_NUMERICINFO.
2743
2744 Some platforms (older FreeBSD and DragonFly versions) do have
2745 getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero
2746 in those cases.
2747
2748commit 18a208d6a460d707a45916db63a571e805f5db46
2749Author: djm@openbsd.org <djm@openbsd.org>
2750Date: Fri Feb 20 22:40:32 2015 +0000
2751
2752 upstream commit
2753
2754 more options that are available under Match; bz#2353 reported
2755 by calestyo AT scientia.net
2756
2757commit 44732de06884238049f285f1455b2181baa7dc82
2758Author: djm@openbsd.org <djm@openbsd.org>
2759Date: Fri Feb 20 22:17:21 2015 +0000
2760
2761 upstream commit
2762
2763 UpdateHostKeys fixes:
2764
2765 I accidentally changed the format of the hostkeys@openssh.com messages
2766 last week without changing the extension name, and this has been causing
2767 connection failures for people who are running -current. First reported
2768 by sthen@
2769
2770 s/hostkeys@openssh.com/hostkeys-00@openssh.com/
2771 Change the name of the proof message too, and reorder it a little.
2772
2773 Also, UpdateHostKeys=ask is incompatible with ControlPersist (no TTY
2774 available to read the response) so disable UpdateHostKeys if it is in
2775 ask mode and ControlPersist is active (and document this)
2776
2777commit 13a39414d25646f93e6d355521d832a03aaaffe2
2778Author: djm@openbsd.org <djm@openbsd.org>
2779Date: Tue Feb 17 00:14:05 2015 +0000
2780
2781 upstream commit
2782
2783 Regression: I broke logging of public key fingerprints in
2784 1.46. Pointed out by Pontus Lundkvist
2785
2786commit 773dda25e828c4c9a52f7bdce6e1e5924157beab
2787Author: Damien Miller <djm@mindrot.org>
2788Date: Fri Jan 30 23:10:17 2015 +1100
2789
2790 repair --without-openssl; broken in refactor
2791
2792commit e89c780886b23600de1e1c8d74aabd1ff61f43f0
2793Author: Damien Miller <djm@google.com>
2794Date: Tue Feb 17 10:04:55 2015 +1100
2795
2796 hook up hostkeys unittest to portable Makefiles
2797
2798commit 0abf41f99aa16ff09b263bead242d6cb2dbbcf99
2799Author: djm@openbsd.org <djm@openbsd.org>
2800Date: Mon Feb 16 22:21:03 2015 +0000
2801
2802 upstream commit
2803
2804 enable hostkeys unit tests
2805
2806commit 68a5d647ccf0fb6782b2f749433a1eee5bc9044b
2807Author: djm@openbsd.org <djm@openbsd.org>
2808Date: Mon Feb 16 22:20:50 2015 +0000
2809
2810 upstream commit
2811
2812 check string/memory compare arguments aren't NULL
2813
2814commit ef575ef20d09f20722e26b45dab80b3620469687
2815Author: djm@openbsd.org <djm@openbsd.org>
2816Date: Mon Feb 16 22:18:34 2015 +0000
2817
2818 upstream commit
2819
2820 unit tests for hostfile.c code, just hostkeys_foreach so
2821 far
2822
2823commit 8ea3365e6aa2759ccf5c76eaea62cbc8a280b0e7
2824Author: markus@openbsd.org <markus@openbsd.org>
2825Date: Sat Feb 14 12:43:16 2015 +0000
2826
2827 upstream commit
2828
2829 test server rekey limit
2830
2831commit ce63c4b063c39b2b22d4ada449c9e3fbde788cb3
2832Author: djm@openbsd.org <djm@openbsd.org>
2833Date: Mon Feb 16 22:30:03 2015 +0000
2834
2835 upstream commit
2836
2837 partial backout of:
2838
2839 revision 1.441
2840 date: 2015/01/31 20:30:05; author: djm; state: Exp; lines: +17 -10; commitid
2841 : x8klYPZMJSrVlt3O;
2842 Let sshd load public host keys even when private keys are missing.
2843 Allows sshd to advertise additional keys for future key rotation.
2844 Also log fingerprint of hostkeys loaded; ok markus@
2845
2846 hostkey updates now require access to the private key, so we can't
2847 load public keys only. The improved log messages (fingerprints of keys
2848 loaded) are kept.
2849
2850commit 523463a3a2a9bfc6cfc5afa01bae9147f76a37cc
2851Author: djm@openbsd.org <djm@openbsd.org>
2852Date: Mon Feb 16 22:13:32 2015 +0000
2853
2854 upstream commit
2855
2856 Revise hostkeys@openssh.com hostkey learning extension.
2857
2858 The client will not ask the server to prove ownership of the private
2859 halves of any hitherto-unseen hostkeys it offers to the client.
2860
2861 Allow UpdateHostKeys option to take an 'ask' argument to let the
2862 user manually review keys offered.
2863
2864 ok markus@
2865
2866commit 6c5c949782d86a6e7d58006599c7685bfcd01685
2867Author: djm@openbsd.org <djm@openbsd.org>
2868Date: Mon Feb 16 22:08:57 2015 +0000
2869
2870 upstream commit
2871
2872 Refactor hostkeys_foreach() and dependent code Deal with
2873 IP addresses (i.e. CheckHostIP) Don't clobber known_hosts when nothing
2874 changed ok markus@ as part of larger commit
2875
2876commit 51b082ccbe633dc970df1d1f4c9c0497115fe721
2877Author: miod@openbsd.org <miod@openbsd.org>
2878Date: Mon Feb 16 18:26:26 2015 +0000
2879
2880 upstream commit
2881
2882 Declare ge25519_base as extern, to prevent it from
2883 becoming a common. Gets us rid of ``lignment 4 of symbol
2884 `crypto_sign_ed25519_ref_ge25519_base' in mod_ge25519.o is smaller than 16 in
2885 mod_ed25519.o'' warnings at link time.
2886
2887commit 02db468bf7e3281a8e3c058ced571b38b6407c34
2888Author: markus@openbsd.org <markus@openbsd.org>
2889Date: Fri Feb 13 18:57:00 2015 +0000
2890
2891 upstream commit
2892
2893 make rekey_limit for sshd w/privsep work; ok djm@
2894 dtucker@
2895
2896commit 8ec67d505bd23c8bf9e17b7a364b563a07a58ec8
2897Author: dtucker@openbsd.org <dtucker@openbsd.org>
2898Date: Thu Feb 12 20:34:19 2015 +0000
2899
2900 upstream commit
2901
2902 Prevent sshd spamming syslog with
2903 "ssh_dispatch_run_fatal: disconnected". ok markus@
2904
2905commit d4c0295d1afc342057ba358237acad6be8af480b
2906Author: djm@openbsd.org <djm@openbsd.org>
2907Date: Wed Feb 11 01:20:38 2015 +0000
2908
2909 upstream commit
2910
2911 Some packet error messages show the address of the peer,
2912 but might be generated after the socket to the peer has suffered a TCP reset.
2913 In these cases, getpeername() won't work so cache the address earlier.
2914
2915 spotted in the wild via deraadt@ and tedu@
2916
2917commit 4af1709cf774475ce5d1bc3ddcc165f6c222897d
2918Author: jsg@openbsd.org <jsg@openbsd.org>
2919Date: Mon Feb 9 23:22:37 2015 +0000
2920
2921 upstream commit
2922
2923 fix some leaks in error paths ok markus@
2924
2925commit fd36834871d06a03e1ff8d69e41992efa1bbf85f
2926Author: millert@openbsd.org <millert@openbsd.org>
2927Date: Fri Feb 6 23:21:59 2015 +0000
2928
2929 upstream commit
2930
2931 SIZE_MAX is standard, we should be using it in preference to
2932 the obsolete SIZE_T_MAX. OK miod@ beck@
2933
2934commit 1910a286d7771eab84c0b047f31c0a17505236fa
2935Author: millert@openbsd.org <millert@openbsd.org>
2936Date: Thu Feb 5 12:59:57 2015 +0000
2937
2938 upstream commit
2939
2940 Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
2941
2942commit ce4f59b2405845584f45e0b3214760eb0008c06c
2943Author: deraadt@openbsd.org <deraadt@openbsd.org>
2944Date: Tue Feb 3 08:07:20 2015 +0000
2945
2946 upstream commit
2947
2948 missing ; djm and mlarkin really having great
2949 interactions recently
2950
2951commit 5d34aa94938abb12b877a25be51862757f25d54b
2952Author: halex@openbsd.org <halex@openbsd.org>
2953Date: Tue Feb 3 00:34:14 2015 +0000
2954
2955 upstream commit
2956
2957 slightly extend the passphrase prompt if running with -c
2958 in order to give the user a chance to notice if unintentionally running
2959 without it
2960
2961 wording tweak and ok djm@
2962
2963commit cb3bde373e80902c7d5d0db429f85068d19b2918
2964Author: djm@openbsd.org <djm@openbsd.org>
2965Date: Mon Feb 2 22:48:53 2015 +0000
2966
2967 upstream commit
2968
2969 handle PKCS#11 C_Login returning
2970 CKR_USER_ALREADY_LOGGED_IN; based on patch from Yuri Samoilenko; ok markus@
2971
2972commit 15ad750e5ec3cc69765b7eba1ce90060e7083399
2973Author: djm@openbsd.org <djm@openbsd.org>
2974Date: Mon Feb 2 07:41:40 2015 +0000
2975
2976 upstream commit
2977
2978 turn UpdateHostkeys off by default until I figure out
2979 mlarkin@'s warning message; requested by deraadt@
2980
2981commit 3cd5103c1e1aaa59bd66f7f52f6ebbcd5deb12f9
2982Author: deraadt@openbsd.org <deraadt@openbsd.org>
2983Date: Mon Feb 2 01:57:44 2015 +0000
2984
2985 upstream commit
2986
2987 increasing encounters with difficult DNS setups in
2988 darknets has convinced me UseDNS off by default is better ok djm
2989
2990commit 6049a548a8a68ff0bbe581ab1748ea6a59ecdc38
2991Author: djm@openbsd.org <djm@openbsd.org>
2992Date: Sat Jan 31 20:30:05 2015 +0000
2993
2994 upstream commit
2995
2996 Let sshd load public host keys even when private keys are
2997 missing. Allows sshd to advertise additional keys for future key rotation.
2998 Also log fingerprint of hostkeys loaded; ok markus@
2999
3000commit 46347ed5968f582661e8a70a45f448e0179ca0ab
3001Author: djm@openbsd.org <djm@openbsd.org>
3002Date: Fri Jan 30 11:43:14 2015 +0000
3003
3004 upstream commit
3005
3006 Add a ssh_config HostbasedKeyType option to control which
3007 host public key types are tried during hostbased authentication.
3008
3009 This may be used to prevent too many keys being sent to the server,
3010 and blowing past its MaxAuthTries limit.
3011
3012 bz#2211 based on patch by Iain Morgan; ok markus@
3013
3014commit 802660cb70453fa4d230cb0233bc1bbdf8328de1
3015Author: djm@openbsd.org <djm@openbsd.org>
3016Date: Fri Jan 30 10:44:49 2015 +0000
3017
3018 upstream commit
3019
3020 set a timeout to prevent hangs when talking to busted
3021 servers; ok markus@
3022
3023commit 86936ec245a15c7abe71a0722610998b0a28b194
3024Author: djm@openbsd.org <djm@openbsd.org>
3025Date: Fri Jan 30 01:11:39 2015 +0000
3026
3027 upstream commit
3028
3029 regression test for 'wildcard CA' serial/key ID revocations
3030
3031commit 4509b5d4a4fa645a022635bfa7e86d09b285001f
3032Author: djm@openbsd.org <djm@openbsd.org>
3033Date: Fri Jan 30 01:13:33 2015 +0000
3034
3035 upstream commit
3036
3037 avoid more fatal/exit in the packet.c paths that
3038 ssh-keyscan uses; feedback and "looks good" markus@
3039
3040commit 669aee994348468af8b4b2ebd29b602cf2860b22
3041Author: djm@openbsd.org <djm@openbsd.org>
3042Date: Fri Jan 30 01:10:33 2015 +0000
3043
3044 upstream commit
3045
3046 permit KRLs that revoke certificates by serial number or
3047 key ID without scoping to a particular CA; ok markus@
3048
3049commit 7a2c368477e26575d0866247d3313da4256cb2b5
3050Author: djm@openbsd.org <djm@openbsd.org>
3051Date: Fri Jan 30 00:59:19 2015 +0000
3052
3053 upstream commit
3054
3055 missing parentheses after if in do_convert_from() broke
3056 private key conversion from other formats some time in 2010; bz#2345 reported
3057 by jjelen AT redhat.com
3058
3059commit 25f5f78d8bf5c22d9cea8b49de24ebeee648a355
3060Author: djm@openbsd.org <djm@openbsd.org>
3061Date: Fri Jan 30 00:22:25 2015 +0000
3062
3063 upstream commit
3064
3065 fix ssh protocol 1, spotted by miod@
3066
3067commit 9ce86c926dfa6e0635161b035e3944e611cbccf0
3068Author: djm@openbsd.org <djm@openbsd.org>
3069Date: Wed Jan 28 22:36:00 2015 +0000
3070
3071 upstream commit
3072
3073 update to new API (key_fingerprint => sshkey_fingerprint)
3074 check sshkey_fingerprint return values; ok markus
3075
3076commit 9125525c37bf73ad3ee4025520889d2ce9d10f29
3077Author: djm@openbsd.org <djm@openbsd.org>
3078Date: Wed Jan 28 22:05:31 2015 +0000
3079
3080 upstream commit
3081
3082 avoid fatal() calls in packet code makes ssh-keyscan more
3083 reliable against server failures ok dtucker@ markus@
3084
3085commit fae7bbe544cba7a9e5e4ab47ff6faa3d978646eb
3086Author: djm@openbsd.org <djm@openbsd.org>
3087Date: Wed Jan 28 21:15:47 2015 +0000
3088
3089 upstream commit
3090
3091 avoid fatal() calls in packet code makes ssh-keyscan more
3092 reliable against server failures ok dtucker@ markus@
3093
3094commit 1a3d14f6b44a494037c7deab485abe6496bf2c60
3095Author: djm@openbsd.org <djm@openbsd.org>
3096Date: Wed Jan 28 11:07:25 2015 +0000
3097
3098 upstream commit
3099
3100 remove obsolete comment
3101
3102commit 80c25b7bc0a71d75c43a4575d9a1336f589eb639
3103Author: okan@openbsd.org <okan@openbsd.org>
3104Date: Tue Jan 27 12:54:06 2015 +0000
3105
3106 upstream commit
3107
3108 Since r1.2 removed the use of PRI* macros, inttypes.h is
3109 no longer required.
3110
3111 ok djm@
3112
3113commit 69ff64f69615c2a21c97cb5878a0996c21423257
3114Author: Damien Miller <djm@mindrot.org>
3115Date: Tue Jan 27 23:07:43 2015 +1100
3116
3117 compile on systems without TCP_MD5SIG (e.g. OSX)
3118
3119commit 358964f3082fb90b2ae15bcab07b6105cfad5a43
3120Author: Damien Miller <djm@mindrot.org>
3121Date: Tue Jan 27 23:07:25 2015 +1100
3122
3123 use ssh-keygen under test rather than system's
3124
3125commit a2c95c1bf33ea53038324d1fdd774bc953f98236
3126Author: Damien Miller <djm@mindrot.org>
3127Date: Tue Jan 27 23:06:59 2015 +1100
3128
3129 OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
3130
3131commit ade31d7b6f608a19b85bee29a7a00b1e636a2919
3132Author: Damien Miller <djm@mindrot.org>
3133Date: Tue Jan 27 23:06:23 2015 +1100
3134
3135 these need active_state defined to link on OSX
3136
3137 temporary measure until active_state goes away entirely
3138
3139commit e56aa87502f22c5844918c10190e8b4f785f067b
3140Author: djm@openbsd.org <djm@openbsd.org>
3141Date: Tue Jan 27 12:01:36 2015 +0000
3142
3143 upstream commit
3144
3145 use printf instead of echo -n to reduce diff against
3146 -portable
3147
3148commit 9f7637f56eddfaf62ce3c0af89c25480f2cf1068
3149Author: jmc@openbsd.org <jmc@openbsd.org>
3150Date: Mon Jan 26 13:55:29 2015 +0000
3151
3152 upstream commit
3153
3154 sort previous;
3155
3156commit 3076ee7d530d5b16842fac7a6229706c7e5acd26
3157Author: djm@openbsd.org <djm@openbsd.org>
3158Date: Mon Jan 26 13:36:53 2015 +0000
3159
3160 upstream commit
3161
3162 properly restore umask
3163
3164commit d411d395556b73ba1b9e451516a0bd6697c4b03d
3165Author: djm@openbsd.org <djm@openbsd.org>
3166Date: Mon Jan 26 06:12:18 2015 +0000
3167
3168 upstream commit
3169
3170 regression test for host key rotation
3171
3172commit fe8a3a51699afbc6407a8fae59b73349d01e49f8
3173Author: djm@openbsd.org <djm@openbsd.org>
3174Date: Mon Jan 26 06:11:28 2015 +0000
3175
3176 upstream commit
3177
3178 adapt to sshkey API tweaks
3179
3180commit 7dd355fb1f0038a3d5cdca57ebab4356c7a5b434
3181Author: miod@openbsd.org <miod@openbsd.org>
3182Date: Sat Jan 24 10:39:21 2015 +0000
3183
3184 upstream commit
3185
3186 Move -lz late in the linker commandline for things to
3187 build on static arches.
3188
3189commit 0dad3b806fddb93c475b30853b9be1a25d673a33
3190Author: miod@openbsd.org <miod@openbsd.org>
3191Date: Fri Jan 23 21:21:23 2015 +0000
3192
3193 upstream commit
3194
3195 -Wpointer-sign is supported by gcc 4 only.
3196
3197commit 2b3b1c1e4bd9577b6e780c255c278542ea66c098
3198Author: djm@openbsd.org <djm@openbsd.org>
3199Date: Tue Jan 20 22:58:57 2015 +0000
3200
3201 upstream commit
3202
3203 use SUBDIR to recuse into unit tests; makes "make obj"
3204 actually work
3205
3206commit 1d1092bff8db27080155541212b420703f8b9c92
3207Author: djm@openbsd.org <djm@openbsd.org>
3208Date: Mon Jan 26 12:16:36 2015 +0000
3209
3210 upstream commit
3211
3212 correct description of UpdateHostKeys in ssh_config.5 and
3213 add it to -o lists for ssh, scp and sftp; pointed out by jmc@
3214
3215commit 5104db7cbd6cdd9c5971f4358e74414862fc1022
3216Author: djm@openbsd.org <djm@openbsd.org>
3217Date: Mon Jan 26 06:10:03 2015 +0000
3218
3219 upstream commit
3220
3221 correctly match ECDSA subtype (== curve) for
3222 offered/recevied host keys. Fixes connection-killing host key mismatches when
3223 a server offers multiple ECDSA keys with different curve type (an extremely
3224 unlikely configuration).
3225
3226 ok markus, "looks mechanical" deraadt@
3227
3228commit 8d4f87258f31cb6def9b3b55b6a7321d84728ff2
3229Author: djm@openbsd.org <djm@openbsd.org>
3230Date: Mon Jan 26 03:04:45 2015 +0000
3231
3232 upstream commit
3233
3234 Host key rotation support.
3235
3236 Add a hostkeys@openssh.com protocol extension (global request) for
3237 a server to inform a client of all its available host key after
3238 authentication has completed. The client may record the keys in
3239 known_hosts, allowing it to upgrade to better host key algorithms
3240 and a server to gracefully rotate its keys.
3241
3242 The client side of this is controlled by a UpdateHostkeys config
3243 option (default on).
3244
3245 ok markus@
3246
3247commit 60b1825262b1f1e24fc72050b907189c92daf18e
3248Author: djm@openbsd.org <djm@openbsd.org>
3249Date: Mon Jan 26 02:59:11 2015 +0000
3250
3251 upstream commit
3252
3253 small refactor and add some convenience functions; ok
3254 markus
3255
3256commit a5a3e3328ddce91e76f71ff479022d53e35c60c9
3257Author: jmc@openbsd.org <jmc@openbsd.org>
3258Date: Thu Jan 22 21:00:42 2015 +0000
3259
3260 upstream commit
3261
3262 heirarchy -> hierarchy;
3263
3264commit dcff5810a11195c57e1b3343c0d6b6f2b9974c11
3265Author: deraadt@openbsd.org <deraadt@openbsd.org>
3266Date: Thu Jan 22 20:24:41 2015 +0000
3267
3268 upstream commit
3269
3270 Provide a warning about chroot misuses (which sadly, seem
3271 to have become quite popular because shiny). sshd cannot detect/manage/do
3272 anything about these cases, best we can do is warn in the right spot in the
3273 man page. ok markus
3274
3275commit 087266ec33c76fc8d54ac5a19efacf2f4a4ca076
3276Author: deraadt@openbsd.org <deraadt@openbsd.org>
3277Date: Tue Jan 20 23:14:00 2015 +0000
3278
3279 upstream commit
3280
3281 Reduce use of <sys/param.h> and transition to <limits.h>
3282 throughout. ok djm markus
3283
3284commit 57e783c8ba2c0797f93977e83b2a8644a03065d8
3285Author: markus@openbsd.org <markus@openbsd.org>
3286Date: Tue Jan 20 20:16:21 2015 +0000
3287
3288 upstream commit
3289
3290 kex_setup errors are fatal()
3291
3292commit 1d6424a6ff94633c221297ae8f42d54e12a20912
3293Author: djm@openbsd.org <djm@openbsd.org>
3294Date: Tue Jan 20 08:02:33 2015 +0000
3295
3296 upstream commit
3297
3298 this test would accidentally delete agent.sh if run without
3299 obj/
3300
3301commit 12b5f50777203e12575f1b08568281e447249ed3
3302Author: djm@openbsd.org <djm@openbsd.org>
3303Date: Tue Jan 20 07:56:44 2015 +0000
3304
3305 upstream commit
3306
3307 make this compile with KERBEROS5 enabled
3308
3309commit e2cc6bef08941256817d44d146115b3478586ad4
3310Author: djm@openbsd.org <djm@openbsd.org>
3311Date: Tue Jan 20 07:55:33 2015 +0000
3312
3313 upstream commit
3314
3315 fix hostkeys in agent; ok markus@
3316
3317commit 1ca3e2155aa5d3801a7ae050f85c71f41fcb95b1
3318Author: Damien Miller <djm@mindrot.org>
3319Date: Tue Jan 20 10:11:31 2015 +1100
3320
3321 fix kex test
3322
3323commit c78a578107c7e6dcf5d30a2f34cb6581bef14029
3324Author: markus@openbsd.org <markus@openbsd.org>
3325Date: Mon Jan 19 20:45:25 2015 +0000
3326
3327 upstream commit
3328
3329 finally enable the KEX tests I wrote some years ago...
3330
3331commit 31821d7217e686667d04935aeec99e1fc4a46e7e
3332Author: markus@openbsd.org <markus@openbsd.org>
3333Date: Mon Jan 19 20:42:31 2015 +0000
3334
3335 upstream commit
3336
3337 adapt to new error message (SSH_ERR_MAC_INVALID)
3338
3339commit d3716ca19e510e95d956ae14d5b367e364bff7f1
3340Author: djm@openbsd.org <djm@openbsd.org>
3341Date: Mon Jan 19 17:31:13 2015 +0000
3342
3343 upstream commit
3344
3345 this test was broken in at least two ways, such that it
3346 wasn't checking that a KRL was not excluding valid keys
3347
3348commit 3f797653748e7c2b037dacb57574c01d9ef3b4d3
3349Author: markus@openbsd.org <markus@openbsd.org>
3350Date: Mon Jan 19 20:32:39 2015 +0000
3351
3352 upstream commit
3353
3354 switch ssh-keyscan from setjmp to multiple ssh transport
3355 layer instances ok djm@
3356
3357commit f582f0e917bb0017b00944783cd5f408bf4b0b5e
3358Author: markus@openbsd.org <markus@openbsd.org>
3359Date: Mon Jan 19 20:30:23 2015 +0000
3360
3361 upstream commit
3362
3363 add experimental api for packet layer; ok djm@
3364
3365commit 48b3b2ba75181f11fca7f327058a591f4426cade
3366Author: markus@openbsd.org <markus@openbsd.org>
3367Date: Mon Jan 19 20:20:20 2015 +0000
3368
3369 upstream commit
3370
3371 store compat flags in struct ssh; ok djm@
3372
3373commit 57d10cbe861a235dd269c74fb2fe248469ecee9d
3374Author: markus@openbsd.org <markus@openbsd.org>
3375Date: Mon Jan 19 20:16:15 2015 +0000
3376
3377 upstream commit
3378
3379 adapt kex to sshbuf and struct ssh; ok djm@
3380
3381commit 3fdc88a0def4f86aa88a5846ac079dc964c0546a
3382Author: markus@openbsd.org <markus@openbsd.org>
3383Date: Mon Jan 19 20:07:45 2015 +0000
3384
3385 upstream commit
3386
3387 move dispatch to struct ssh; ok djm@
3388
3389commit 091c302829210c41e7f57c3f094c7b9c054306f0
3390Author: markus@openbsd.org <markus@openbsd.org>
3391Date: Mon Jan 19 19:52:16 2015 +0000
3392
3393 upstream commit
3394
3395 update packet.c & isolate, introduce struct ssh a) switch
3396 packet.c to buffer api and isolate per-connection info into struct ssh b)
3397 (de)serialization of the state is moved from monitor to packet.c c) the old
3398 packet.c API is implemented in opacket.[ch] d) compress.c/h is removed and
3399 integrated into packet.c with and ok djm@
3400
3401commit 4e62cc68ce4ba20245d208b252e74e91d3785b74
3402Author: djm@openbsd.org <djm@openbsd.org>
3403Date: Mon Jan 19 17:35:48 2015 +0000
3404
3405 upstream commit
3406
3407 fix format strings in (disabled) debugging
3408
3409commit d85e06245907d49a2cd0cfa0abf59150ad616f42
3410Author: djm@openbsd.org <djm@openbsd.org>
3411Date: Mon Jan 19 06:01:32 2015 +0000
3412
3413 upstream commit
3414
3415 be a bit more careful in these tests to ensure that
3416 known_hosts is clean
3417
3418commit 7947810eab5fe0ad311f32a48f4d4eb1f71be6cf
3419Author: djm@openbsd.org <djm@openbsd.org>
3420Date: Sun Jan 18 22:00:18 2015 +0000
3421
3422 upstream commit
3423
3424 regression test for known_host file editing using
3425 ssh-keygen (-H / -R / -F) after hostkeys_foreach() change; feedback and ok
3426 markus@
3427
3428commit 3a2b09d147a565d8a47edf37491e149a02c0d3a3
3429Author: djm@openbsd.org <djm@openbsd.org>
3430Date: Sun Jan 18 19:54:46 2015 +0000
3431
3432 upstream commit
3433
3434 more and better key tests
3435
3436 test signatures and verification
3437 test certificate generation
3438 flesh out nested cert test
3439
3440 removes most of the XXX todo markers
3441
3442commit 589e69fd82724cfc9738f128e4771da2e6405d0d
3443Author: djm@openbsd.org <djm@openbsd.org>
3444Date: Sun Jan 18 19:53:58 2015 +0000
3445
3446 upstream commit
3447
3448 make the signature fuzzing test much more rigorous:
3449 ensure that the fuzzed input cases do not match the original (using new
3450 fuzz_matches_original() function) and check that the verification fails in
3451 each case
3452
3453commit 80603c0daa2538c349c1c152405580b164d5475f
3454Author: djm@openbsd.org <djm@openbsd.org>
3455Date: Sun Jan 18 19:52:44 2015 +0000
3456
3457 upstream commit
3458
3459 add a fuzz_matches_original() function to the fuzzer to
3460 detect fuzz cases that are identical to the original data. Hacky
3461 implementation, but very useful when you need the fuzz to be different, e.g.
3462 when verifying signature
3463
3464commit 87d5495bd337e358ad69c524fcb9495208c0750b
3465Author: djm@openbsd.org <djm@openbsd.org>
3466Date: Sun Jan 18 19:50:55 2015 +0000
3467
3468 upstream commit
3469
3470 better dumps from the fuzzer (shown on errors) -
3471 include the original data as well as the fuzzed copy.
3472
3473commit d59ec478c453a3fff05badbbfd96aa856364f2c2
3474Author: djm@openbsd.org <djm@openbsd.org>
3475Date: Sun Jan 18 19:47:55 2015 +0000
3476
3477 upstream commit
3478
3479 enable hostkey-agent.sh test
3480
3481commit 26b3425170bf840e4b095e1c10bf25a0a3e3a105
3482Author: djm@openbsd.org <djm@openbsd.org>
3483Date: Sat Jan 17 18:54:30 2015 +0000
3484
3485 upstream commit
3486
3487 unit test for hostkeys in ssh-agent
3488
3489commit 9e06a0fb23ec55d9223b26a45bb63c7649e2f2f2
3490Author: markus@openbsd.org <markus@openbsd.org>
3491Date: Thu Jan 15 23:41:29 2015 +0000
3492
3493 upstream commit
3494
3495 add kex unit tests
3496
3497commit d2099dec6da21ae627f6289aedae6bc1d41a22ce
3498Author: deraadt@openbsd.org <deraadt@openbsd.org>
3499Date: Mon Jan 19 00:32:54 2015 +0000
3500
3501 upstream commit
3502
3503 djm, your /usr/include tree is old
3504
3505commit 2b3c3c76c30dc5076fe09d590f5b26880f148a54
3506Author: djm@openbsd.org <djm@openbsd.org>
3507Date: Sun Jan 18 21:51:19 2015 +0000
3508
3509 upstream commit
3510
3511 some feedback from markus@: comment hostkeys_foreach()
3512 context and avoid a member in it.
3513
3514commit cecb30bc2ba6d594366e657d664d5c494b6c8a7f
3515Author: djm@openbsd.org <djm@openbsd.org>
3516Date: Sun Jan 18 21:49:42 2015 +0000
3517
3518 upstream commit
3519
3520 make ssh-keygen use hostkeys_foreach(). Removes some
3521 horrendous code; ok markus@
3522
3523commit ec3d065df3a9557ea96b02d061fd821a18c1a0b9
3524Author: djm@openbsd.org <djm@openbsd.org>
3525Date: Sun Jan 18 21:48:09 2015 +0000
3526
3527 upstream commit
3528
3529 convert load_hostkeys() (hostkey ordering and
3530 known_host matching) to use the new hostkey_foreach() iterator; ok markus
3531
3532commit c29811cc480a260e42fd88849fc86a80c1e91038
3533Author: djm@openbsd.org <djm@openbsd.org>
3534Date: Sun Jan 18 21:40:23 2015 +0000
3535
3536 upstream commit
3537
3538 introduce hostkeys_foreach() to allow iteration over a
3539 known_hosts file or controlled subset thereof. This will allow us to pull out
3540 some ugly and duplicated code, and will be used to implement hostkey rotation
3541 later.
3542
3543 feedback and ok markus
3544
3545commit f101d8291da01bbbfd6fb8c569cfd0cc61c0d346
3546Author: deraadt@openbsd.org <deraadt@openbsd.org>
3547Date: Sun Jan 18 14:01:00 2015 +0000
3548
3549 upstream commit
3550
3551 string truncation due to sizeof(size) ok djm markus
3552
3553commit 35d6022b55b7969fc10c261cb6aa78cc4a5fcc41
3554Author: djm@openbsd.org <djm@openbsd.org>
3555Date: Sun Jan 18 13:33:34 2015 +0000
3556
3557 upstream commit
3558
3559 avoid trailing ',' in host key algorithms
3560
3561commit 7efb455789a0cb76bdcdee91c6060a3dc8f5c007
3562Author: djm@openbsd.org <djm@openbsd.org>
3563Date: Sun Jan 18 13:22:28 2015 +0000
3564
3565 upstream commit
3566
3567 infer key length correctly when user specified a fully-
3568 qualified key name instead of using the -b bits option; ok markus@
3569
3570commit 83f8ffa6a55ccd0ce9d8a205e3e7439ec18fedf5
3571Author: djm@openbsd.org <djm@openbsd.org>
3572Date: Sat Jan 17 18:53:34 2015 +0000
3573
3574 upstream commit
3575
3576 fix hostkeys on ssh agent; found by unit test I'm about
3577 to commit
3578
3579commit 369d61f17657b814124268f99c033e4dc6e436c1
3580Author: schwarze@openbsd.org <schwarze@openbsd.org>
3581Date: Fri Jan 16 16:20:23 2015 +0000
3582
3583 upstream commit
3584
3585 garbage collect empty .No macros mandoc warns about
3586
3587commit bb8b442d32dbdb8521d610e10d8b248d938bd747
3588Author: djm@openbsd.org <djm@openbsd.org>
3589Date: Fri Jan 16 15:55:07 2015 +0000
3590
3591 upstream commit
3592
3593 regression: incorrect error message on
3594 otherwise-successful ssh-keygen -A. Reported by Dmitry Orlov, via deraadt@
3595
3596commit 9010902954a40b59d0bf3df3ccbc3140a653e2bc
3597Author: djm@openbsd.org <djm@openbsd.org>
3598Date: Fri Jan 16 07:19:48 2015 +0000
3599
3600 upstream commit
3601
3602 when hostname canonicalisation is enabled, try to parse
3603 hostnames as addresses before looking them up for canonicalisation. fixes
3604 bz#2074 and avoids needless DNS lookups in some cases; ok markus
3605
3606commit 2ae4f337b2a5fb2841b6b0053b49496fef844d1c
3607Author: deraadt@openbsd.org <deraadt@openbsd.org>
3608Date: Fri Jan 16 06:40:12 2015 +0000
3609
3610 upstream commit
3611
3612 Replace <sys/param.h> with <limits.h> and other less
3613 dirty headers where possible. Annotate <sys/param.h> lines with their
3614 current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1,
3615 LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of
3616 MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution.
3617 These are the files confirmed through binary verification. ok guenther,
3618 millert, doug (helped with the verification protocol)
3619
3620commit 3c4726f4c24118e8f1bb80bf75f1456c76df072c
3621Author: markus@openbsd.org <markus@openbsd.org>
3622Date: Thu Jan 15 21:38:50 2015 +0000
3623
3624 upstream commit
3625
3626 remove xmalloc, switch to sshbuf
3627
3628commit e17ac01f8b763e4b83976b9e521e90a280acc097
3629Author: markus@openbsd.org <markus@openbsd.org>
3630Date: Thu Jan 15 21:37:14 2015 +0000
3631
3632 upstream commit
3633
3634 switch to sshbuf
3635
3636commit ddef9995a1fa6c7a8ff3b38bfe6cf724bebf13d0
3637Author: naddy@openbsd.org <naddy@openbsd.org>
3638Date: Thu Jan 15 18:32:54 2015 +0000
3639
3640 upstream commit
3641
3642 handle UMAC128 initialization like UMAC; ok djm@ markus@
3643
3644commit f14564c1f7792446bca143580aef0e7ac25dcdae
3645Author: djm@openbsd.org <djm@openbsd.org>
3646Date: Thu Jan 15 11:04:36 2015 +0000
3647
3648 upstream commit
3649
3650 fix regression reported by brad@ for passworded keys without
3651 agent present
3652
3653commit 45c0fd70bb2a88061319dfff20cb12ef7b1bc47e
3654Author: Damien Miller <djm@mindrot.org>
3655Date: Thu Jan 15 22:08:23 2015 +1100
3656
3657 make bitmap test compile
3658
3659commit d333f89abf7179021e5c3f28673f469abe032062
3660Author: djm@openbsd.org <djm@openbsd.org>
3661Date: Thu Jan 15 07:36:28 2015 +0000
3662
3663 upstream commit
3664
3665 unit tests for KRL bitmap
3666
3667commit 7613f828f49c55ff356007ae9645038ab6682556
3668Author: markus@openbsd.org <markus@openbsd.org>
3669Date: Wed Jan 14 09:58:21 2015 +0000
3670
3671 upstream commit
3672
3673 re-add comment about full path
3674
3675commit 6c43b48b307c41cd656b415621a644074579a578
3676Author: markus@openbsd.org <markus@openbsd.org>
3677Date: Wed Jan 14 09:54:38 2015 +0000
3678
3679 upstream commit
3680
3681 don't reset to the installed sshd; connect before
3682 reconfigure, too
3683
3684commit 771bb47a1df8b69061f09462e78aa0b66cd594bf
3685Author: djm@openbsd.org <djm@openbsd.org>
3686Date: Tue Jan 13 14:51:51 2015 +0000
3687
3688 upstream commit
3689
3690 implement a SIGINFO handler so we can discern a stuck
3691 fuzz test from a merely glacial one; prompted by and ok markus
3692
3693commit cfaa57962f8536f3cf0fd7daf4d6a55d6f6de45f
3694Author: djm@openbsd.org <djm@openbsd.org>
3695Date: Tue Jan 13 08:23:26 2015 +0000
3696
3697 upstream commit
3698
3699 use $SSH instead of installed ssh to allow override;
3700 spotted by markus@
3701
3702commit 0920553d0aee117a596b03ed5b49b280d34a32c5
3703Author: djm@openbsd.org <djm@openbsd.org>
3704Date: Tue Jan 13 07:49:49 2015 +0000
3705
3706 upstream commit
3707
3708 regress test for PubkeyAcceptedKeyTypes; ok markus@
3709
3710commit 27ca1a5c0095eda151934bca39a77e391f875d17
3711Author: markus@openbsd.org <markus@openbsd.org>
3712Date: Mon Jan 12 20:13:27 2015 +0000
3713
3714 upstream commit
3715
3716 unbreak parsing of pubkey comments; with gerhard; ok
3717 djm/deraadt
3718
3719commit 55358f0b4e0b83bc0df81c5f854c91b11e0bb4dc
3720Author: djm@openbsd.org <djm@openbsd.org>
3721Date: Mon Jan 12 11:46:32 2015 +0000
3722
3723 upstream commit
3724
3725 fatal if soft-PKCS11 library is missing rather (rather
3726 than continue and fail with a more cryptic error)
3727
3728commit c3554cdd2a1a62434b8161017aa76fa09718a003
3729Author: djm@openbsd.org <djm@openbsd.org>
3730Date: Mon Jan 12 11:12:38 2015 +0000
3731
3732 upstream commit
3733
3734 let this test all supporte key types; pointed out/ok
3735 markus@
3736
3737commit 1129dcfc5a3e508635004bcc05a3574cb7687167
3738Author: djm@openbsd.org <djm@openbsd.org>
3739Date: Thu Jan 15 09:40:00 2015 +0000
3740
3741 upstream commit
3742
3743 sync ssh-keysign, ssh-keygen and some dependencies to the
3744 new buffer/key API; mostly mechanical, ok markus@
3745
3746commit e4ebf5586452bf512da662ac277aaf6ecf0efe7c
3747Author: djm@openbsd.org <djm@openbsd.org>
3748Date: Thu Jan 15 07:57:08 2015 +0000
3749
3750 upstream commit
3751
3752 remove commented-out test code now that it has moved to a
3753 proper unit test
3754
3755commit e81cba066c1e9eb70aba0f6e7c0ff220611b370f
3756Author: djm@openbsd.org <djm@openbsd.org>
3757Date: Wed Jan 14 20:54:29 2015 +0000
3758
3759 upstream commit
3760
3761 whitespace
3762
3763commit 141efe49542f7156cdbc2e4cd0a041d8b1aab622
3764Author: djm@openbsd.org <djm@openbsd.org>
3765Date: Wed Jan 14 20:05:27 2015 +0000
3766
3767 upstream commit
3768
3769 move authfd.c and its tentacles to the new buffer/key
3770 API; ok markus@
3771
3772commit 0088c57af302cda278bd26d8c3ae81d5b6f7c289
3773Author: djm@openbsd.org <djm@openbsd.org>
3774Date: Wed Jan 14 19:33:41 2015 +0000
3775
3776 upstream commit
3777
3778 fix small regression: ssh-agent would return a success
3779 message but an empty signature if asked to sign using an unknown key; ok
3780 markus@
3781
3782commit b03ebe2c22b8166e4f64c37737f4278676e3488d
3783Author: Damien Miller <djm@mindrot.org>
3784Date: Thu Jan 15 03:08:58 2015 +1100
3785
3786 more --without-openssl
3787
3788 fix some regressions caused by upstream merges
3789
3790 enable KRLs now that they no longer require BIGNUMs
3791
3792commit bc42cc6fe784f36df225c44c93b74830027cb5a2
3793Author: Damien Miller <djm@mindrot.org>
3794Date: Thu Jan 15 03:08:29 2015 +1100
3795
3796 kludge around tun API mismatch betterer
3797
3798commit c332110291089b624fa0951fbf2d1ee6de525b9f
3799Author: Damien Miller <djm@mindrot.org>
3800Date: Thu Jan 15 02:59:51 2015 +1100
3801
3802 some systems lack SO_REUSEPORT
3803
3804commit 83b9678a62cbdc74eb2031cf1e1e4ffd58e233ae
3805Author: Damien Miller <djm@mindrot.org>
3806Date: Thu Jan 15 02:35:50 2015 +1100
3807
3808 fix merge botch
3809
3810commit 0cdc5a3eb6fb383569a4da2a30705d9b90428d6b
3811Author: Damien Miller <djm@mindrot.org>
3812Date: Thu Jan 15 02:35:33 2015 +1100
3813
3814 unbreak across API change
3815
3816commit 6e2549ac2b5e7f96cbc2d83a6e0784b120444b47
3817Author: Damien Miller <djm@mindrot.org>
3818Date: Thu Jan 15 02:30:18 2015 +1100
3819
3820 need includes.h for portable OpenSSH
3821
3822commit 72ef7c148c42db7d5632a29f137f8b87b579f2d9
3823Author: Damien Miller <djm@mindrot.org>
3824Date: Thu Jan 15 02:21:31 2015 +1100
3825
3826 support --without-openssl at configure time
3827
3828 Disables and removes dependency on OpenSSL. Many features don't
3829 work and the set of crypto options is greatly restricted. This
3830 will only work on system with native arc4random or /dev/urandom.
3831
3832 Considered highly experimental for now.
3833
3834commit 4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9
3835Author: Damien Miller <djm@mindrot.org>
3836Date: Thu Jan 15 02:28:00 2015 +1100
3837
3838 add files missed in last commit
3839
3840commit a165bab605f7be55940bb8fae977398e8c96a46d
3841Author: djm@openbsd.org <djm@openbsd.org>
3842Date: Wed Jan 14 15:02:39 2015 +0000
3843
3844 upstream commit
3845
3846 avoid BIGNUM in KRL code by using a simple bitmap;
3847 feedback and ok markus
3848
3849commit 7d845f4a0b7ec97887be204c3760e44de8bf1f32
3850Author: djm@openbsd.org <djm@openbsd.org>
3851Date: Wed Jan 14 13:54:13 2015 +0000
3852
3853 upstream commit
3854
3855 update sftp client and server to new buffer API. pretty
3856 much just mechanical changes; with & ok markus
3857
3858commit 139ca81866ec1b219c717d17061e5e7ad1059e2a
3859Author: markus@openbsd.org <markus@openbsd.org>
3860Date: Wed Jan 14 13:09:09 2015 +0000
3861
3862 upstream commit
3863
3864 switch to sshbuf/sshkey; with & ok djm@
3865
3866commit 81bfbd0bd35683de5d7f2238b985e5f8150a9180
3867Author: Damien Miller <djm@mindrot.org>
3868Date: Wed Jan 14 21:48:18 2015 +1100
3869
3870 support --without-openssl at configure time
3871
3872 Disables and removes dependency on OpenSSL. Many features don't
3873 work and the set of crypto options is greatly restricted. This
3874 will only work on system with native arc4random or /dev/urandom.
3875
3876 Considered highly experimental for now.
3877
3878commit 54924b53af15ccdcbb9f89984512b5efef641a31
3879Author: djm@openbsd.org <djm@openbsd.org>
3880Date: Wed Jan 14 10:46:28 2015 +0000
3881
3882 upstream commit
3883
3884 avoid an warning for the !OPENSSL case
3885
3886commit ae8b463217f7c9b66655bfc3945c050ffdaeb861
3887Author: markus@openbsd.org <markus@openbsd.org>
3888Date: Wed Jan 14 10:30:34 2015 +0000
3889
3890 upstream commit
3891
3892 swith auth-options to new sshbuf/sshkey; ok djm@
3893
3894commit 540e891191b98b89ee90aacf5b14a4a68635e763
3895Author: djm@openbsd.org <djm@openbsd.org>
3896Date: Wed Jan 14 10:29:45 2015 +0000
3897
3898 upstream commit
3899
3900 make non-OpenSSL aes-ctr work on sshd w/ privsep; ok
3901 markus@
3902
3903commit 60c2c4ea5e1ad0ddfe8b2877b78ed5143be79c53
3904Author: markus@openbsd.org <markus@openbsd.org>
3905Date: Wed Jan 14 10:24:42 2015 +0000
3906
3907 upstream commit
3908
3909 remove unneeded includes, sync my copyright across files
3910 & whitespace; ok djm@
3911
3912commit 128343bcdb0b60fc826f2733df8cf979ec1627b4
3913Author: markus@openbsd.org <markus@openbsd.org>
3914Date: Tue Jan 13 19:31:40 2015 +0000
3915
3916 upstream commit
3917
3918 adapt mac.c to ssherr.h return codes (de-fatal) and
3919 simplify dependencies ok djm@
3920
3921commit e7fd952f4ea01f09ceb068721a5431ac2fd416ed
3922Author: djm@openbsd.org <djm@openbsd.org>
3923Date: Tue Jan 13 19:04:35 2015 +0000
3924
3925 upstream commit
3926
3927 sync changes from libopenssh; prepared by markus@ mostly
3928 debug output tweaks, a couple of error return value changes and some other
3929 minor stuff
3930
3931commit 76c0480a85675f03a1376167cb686abed01a3583
3932Author: Damien Miller <djm@mindrot.org>
3933Date: Tue Jan 13 19:38:18 2015 +1100
3934
3935 add --without-ssh1 option to configure
3936
3937 Allows disabling support for SSH protocol 1.
3938
3939commit 1f729f0614d1376c3332fa1edb6a5e5cec7e9e03
3940Author: djm@openbsd.org <djm@openbsd.org>
3941Date: Tue Jan 13 07:39:19 2015 +0000
3942
3943 upstream commit
3944
3945 add sshd_config HostbasedAcceptedKeyTypes and
3946 PubkeyAcceptedKeyTypes options to allow sshd to control what public key types
3947 will be accepted. Currently defaults to all. Feedback & ok markus@
3948
3949commit 816d1538c24209a93ba0560b27c4fda57c3fff65
3950Author: markus@openbsd.org <markus@openbsd.org>
3951Date: Mon Jan 12 20:13:27 2015 +0000
3952
3953 upstream commit
3954
3955 unbreak parsing of pubkey comments; with gerhard; ok
3956 djm/deraadt
3957
3958commit 0097565f849851812df610b7b6b3c4bd414f6c62
3959Author: markus@openbsd.org <markus@openbsd.org>
3960Date: Mon Jan 12 19:22:46 2015 +0000
3961
3962 upstream commit
3963
3964 missing error assigment on sshbuf_put_string()
3965
3966commit a7f49dcb527dd17877fcb8d5c3a9a6f550e0bba5
3967Author: djm@openbsd.org <djm@openbsd.org>
3968Date: Mon Jan 12 15:18:07 2015 +0000
3969
3970 upstream commit
3971
3972 apparently memcpy(x, NULL, 0) is undefined behaviour
3973 according to C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls
3974 when length==0; ok markus@
3975
3976commit 905fe30fca82f38213763616d0d26eb6790bde33
3977Author: markus@openbsd.org <markus@openbsd.org>
3978Date: Mon Jan 12 14:05:19 2015 +0000
3979
3980 upstream commit
3981
3982 free->sshkey_free; ok djm@
3983
3984commit f067cca2bc20c86b110174c3fef04086a7f57b13
3985Author: markus@openbsd.org <markus@openbsd.org>
3986Date: Mon Jan 12 13:29:27 2015 +0000
3987
3988 upstream commit
3989
3990 allow WITH_OPENSSL w/o WITH_SSH1; ok djm@
3991
3992commit c4bfafcc2a9300d9cfb3c15e75572d3a7d74670d
3993Author: djm@openbsd.org <djm@openbsd.org>
3994Date: Thu Jan 8 13:10:58 2015 +0000
3995
3996 upstream commit
3997
3998 adjust for sshkey_load_file() API change
3999
4000commit e752c6d547036c602b89e9e704851463bd160e32
4001Author: djm@openbsd.org <djm@openbsd.org>
4002Date: Thu Jan 8 13:44:36 2015 +0000
4003
4004 upstream commit
4005
4006 fix ssh_config FingerprintHash evaluation order; from Petr
4007 Lautrbach
4008
4009commit ab24ab847b0fc94c8d5e419feecff0bcb6d6d1bf
4010Author: djm@openbsd.org <djm@openbsd.org>
4011Date: Thu Jan 8 10:15:45 2015 +0000
4012
4013 upstream commit
4014
4015 reorder hostbased key attempts to better match the
4016 default hostkey algorithms order in myproposal.h; ok markus@
4017
4018commit 1195f4cb07ef4b0405c839293c38600b3e9bdb46
4019Author: djm@openbsd.org <djm@openbsd.org>
4020Date: Thu Jan 8 10:14:08 2015 +0000
4021
4022 upstream commit
4023
4024 deprecate key_load_private_pem() and
4025 sshkey_load_private_pem() interfaces. Refactor the generic key loading API to
4026 not require pathnames to be specified (they weren't really used).
4027
4028 Fixes a few other things en passant:
4029
4030 Makes ed25519 keys work for hostbased authentication (ssh-keysign
4031 previously used the PEM-only routines).
4032
4033 Fixes key comment regression bz#2306: key pathnames were being lost as
4034 comment fields.
4035
4036 ok markus@
4037
4038commit febbe09e4e9aff579b0c5cc1623f756862e4757d
4039Author: tedu@openbsd.org <tedu@openbsd.org>
4040Date: Wed Jan 7 18:15:07 2015 +0000
4041
4042 upstream commit
4043
4044 workaround for the Meyer, et al, Bleichenbacher Side
4045 Channel Attack. fake up a bignum key before RSA decryption. discussed/ok djm
4046 markus
4047
4048commit 5191df927db282d3123ca2f34a04d8d96153911a
4049Author: djm@openbsd.org <djm@openbsd.org>
4050Date: Tue Dec 23 22:42:48 2014 +0000
4051
4052 upstream commit
4053
4054 KNF and add a little more debug()
4055
4056commit 8abd80315d3419b20e6938f74d37e2e2b547f0b7
4057Author: jmc@openbsd.org <jmc@openbsd.org>
4058Date: Mon Dec 22 09:26:31 2014 +0000
4059
4060 upstream commit
4061
4062 add fingerprinthash to the options list;
4063
4064commit 296ef0560f60980da01d83b9f0e1a5257826536f
4065Author: jmc@openbsd.org <jmc@openbsd.org>
4066Date: Mon Dec 22 09:24:59 2014 +0000
4067
4068 upstream commit
4069
4070 tweak previous;
4071
4072commit 462082eacbd37778a173afb6b84c6f4d898a18b5
4073Author: Damien Miller <djm@google.com>
4074Date: Tue Dec 30 08:16:11 2014 +1100
4075
4076 avoid uninitialised free of ldns_res
4077
4078 If an invalid rdclass was passed to getrrsetbyname() then
4079 this would execute a free on an uninitialised pointer.
4080 OpenSSH only ever calls this with a fixed and valid rdclass.
4081
4082 Reported by Joshua Rogers
4083
4084commit 01b63498801053f131a0740eb9d13faf35d636c8
4085Author: Damien Miller <djm@google.com>
4086Date: Mon Dec 29 18:10:18 2014 +1100
4087
4088 pull updated OpenBSD BCrypt PBKDF implementation
4089
4090 Includes fix for 1 byte output overflow for large key length
4091 requests (not reachable in OpenSSH).
4092
4093 Pointed out by Joshua Rogers
4094
4095commit c528c1b4af2f06712177b3de9b30705752f7cbcb
4096Author: Damien Miller <djm@google.com>
4097Date: Tue Dec 23 15:26:13 2014 +1100
4098
4099 fix variable name for IPv6 case in construct_utmpx
4100
4101 patch from writeonce AT midipix.org via bz#2296
4102
4103commit 293cac52dcda123244b2e594d15592e5e481c55e
4104Author: Damien Miller <djm@google.com>
4105Date: Mon Dec 22 16:30:42 2014 +1100
4106
4107 include and use OpenBSD netcat in regress/
4108
4109commit 8f6784f0cb56dc4fd00af3e81a10050a5785228d
4110Author: djm@openbsd.org <djm@openbsd.org>
4111Date: Mon Dec 22 09:05:17 2014 +0000
4112
4113 upstream commit
4114
4115 mention ssh -Q feature to list supported { MAC, cipher,
4116 KEX, key } algorithms in more places and include the query string used to
4117 list the relevant information; bz#2288
4118
4119commit 449e11b4d7847079bd0a2daa6e3e7ea03d8ef700
4120Author: jmc@openbsd.org <jmc@openbsd.org>
4121Date: Mon Dec 22 08:24:17 2014 +0000
4122
4123 upstream commit
4124
4125 tweak previous;
4126
4127commit 4bea0ab3290c0b9dd2aa199e932de8e7e18062d6
4128Author: djm@openbsd.org <djm@openbsd.org>
4129Date: Mon Dec 22 08:06:03 2014 +0000
4130
4131 upstream commit
4132
4133 regression test for multiple required pubkey authentication;
4134 ok markus@
4135
4136commit f1c4d8ec52158b6f57834b8cd839605b0a33e7f2
4137Author: djm@openbsd.org <djm@openbsd.org>
4138Date: Mon Dec 22 08:04:23 2014 +0000
4139
4140 upstream commit
4141
4142 correct description of what will happen when a
4143 AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser is not (sshd
4144 will refuse to start)
4145
4146commit 161cf419f412446635013ac49e8c660cadc36080
4147Author: djm@openbsd.org <djm@openbsd.org>
4148Date: Mon Dec 22 07:55:51 2014 +0000
4149
4150 upstream commit
4151
4152 make internal handling of filename arguments of "none"
4153 more consistent with ssh. "none" arguments are now replaced with NULL when
4154 the configuration is finalised.
4155
4156 Simplifies checking later on (just need to test not-NULL rather than
4157 that + strcmp) and cleans up some inconsistencies. ok markus@
4158
4159commit f69b69b8625be447b8826b21d87713874dac25a6
4160Author: djm@openbsd.org <djm@openbsd.org>
4161Date: Mon Dec 22 07:51:30 2014 +0000
4162
4163 upstream commit
4164
4165 remember which public keys have been used for
4166 authentication and refuse to accept previously-used keys.
4167
4168 This allows AuthenticationMethods=publickey,publickey to require
4169 that users authenticate using two _different_ pubkeys.
4170
4171 ok markus@
4172
4173commit 46ac2ed4677968224c4ca825bc98fc68dae183f0
4174Author: djm@openbsd.org <djm@openbsd.org>
4175Date: Mon Dec 22 07:24:11 2014 +0000
4176
4177 upstream commit
4178
4179 fix passing of wildcard forward bind addresses when
4180 connection multiplexing is in use; patch from Sami Hartikainen via bz#2324;
4181 ok dtucker@
4182
4183commit 0d1b241a262e4d0a6bbfdd595489ab1b853c43a1
4184Author: djm@openbsd.org <djm@openbsd.org>
4185Date: Mon Dec 22 06:14:29 2014 +0000
4186
4187 upstream commit
4188
4189 make this slightly easier to diff against portable
4190
4191commit 0715bcdddbf68953964058f17255bf54734b8737
4192Author: Damien Miller <djm@mindrot.org>
4193Date: Mon Dec 22 13:47:07 2014 +1100
4194
4195 add missing regress output file
4196
4197commit 1e30483c8ad2c2f39445d4a4b6ab20c241e40593
4198Author: djm@openbsd.org <djm@openbsd.org>
4199Date: Mon Dec 22 02:15:52 2014 +0000
4200
4201 upstream commit
4202
4203 adjust for new SHA256 key fingerprints and
4204 slightly-different MD5 hex fingerprint format
4205
4206commit 6b40567ed722df98593ad8e6a2d2448fc2b4b151
4207Author: djm@openbsd.org <djm@openbsd.org>
4208Date: Mon Dec 22 01:14:49 2014 +0000
4209
4210 upstream commit
4211
4212 poll changes to netcat (usr.bin/netcat.c r1.125) broke
4213 this test; fix it by ensuring more stdio fds are sent to devnull
4214
4215commit a5375ccb970f49dddf7d0ef63c9b713ede9e7260
4216Author: jmc@openbsd.org <jmc@openbsd.org>
4217Date: Sun Dec 21 23:35:14 2014 +0000
4218
4219 upstream commit
4220
4221 tweak previous;
4222
4223commit b79efde5c3badf5ce4312fe608d8307eade533c5
4224Author: djm@openbsd.org <djm@openbsd.org>
4225Date: Sun Dec 21 23:12:42 2014 +0000
4226
4227 upstream commit
4228
4229 document FingerprintHash here too
4230
4231commit d16bdd8027dd116afa01324bb071a4016cdc1a75
4232Author: Damien Miller <djm@mindrot.org>
4233Date: Mon Dec 22 10:18:09 2014 +1100
4234
4235 missing include for base64 encoding
4236
4237commit 56d1c83cdd1ac76f1c6bd41e01e80dad834f3994
4238Author: djm@openbsd.org <djm@openbsd.org>
4239Date: Sun Dec 21 22:27:55 2014 +0000
4240
4241 upstream commit
4242
4243 Add FingerprintHash option to control algorithm used for
4244 key fingerprints. Default changes from MD5 to SHA256 and format from hex to
4245 base64.
4246
4247 Feedback and ok naddy@ markus@
4248
4249commit 058f839fe15c51be8b3a844a76ab9a8db550be4f
4250Author: djm@openbsd.org <djm@openbsd.org>
4251Date: Thu Dec 18 23:58:04 2014 +0000
4252
4253 upstream commit
4254
4255 don't count partial authentication success as a failure
4256 against MaxAuthTries; ok deraadt@
4257
4258commit c7219f4f54d64d6dde66dbcf7a2699daa782d2a1
4259Author: djm@openbsd.org <djm@openbsd.org>
4260Date: Fri Dec 12 00:02:17 2014 +0000
4261
4262 upstream commit
4263
4264 revert chunk I didn't mean to commit yet; via jmc@
4265
4266commit 7de5991aa3997e2981440f39c1ea01273a0a2c7b
4267Author: Damien Miller <djm@mindrot.org>
4268Date: Thu Dec 18 11:44:06 2014 +1100
4269
4270 upstream libc change
4271
4272 revision 1.2
4273 date: 2014/12/08 03:45:00; author: bcook; state: Exp; lines: +2 -2; commitid: 7zWEBgJJOCZ2hvTV;
4274 avoid left shift overflow in reallocarray.
4275
4276 Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting
4277 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with
4278 (size_t)1 so that we get the correct constant size for the platform.
4279
4280 discussed with tedu@ & deraadt@
4281
4282commit 2048f85a5e6da8bc6e0532efe02ecfd4e63c978c
4283Author: Damien Miller <djm@mindrot.org>
4284Date: Thu Dec 18 10:15:49 2014 +1100
4285
4286 include CFLAGS in gnome askpass targets
4287
4288 from Fedora
4289
4290commit 48b68ce19ca42fa488960028048dec023f7899bb
4291Author: djm@openbsd.org <djm@openbsd.org>
4292Date: Thu Dec 11 08:20:09 2014 +0000
4293
4294 upstream commit
4295
4296 explicitly include sys/param.h in files that use the
4297 howmany() macro; from portable
4298
4299commit d663bea30a294d440fef4398e5cd816317bd4518
4300Author: djm@openbsd.org <djm@openbsd.org>
4301Date: Thu Dec 11 05:25:06 2014 +0000
4302
4303 upstream commit
4304
4305 mention AuthorizedKeysCommandUser must be set for
4306 AuthorizedKeysCommand to be run; bz#2287
4307
4308commit 17bf3d81e00f2abb414a4fd271118cf4913f049f
4309Author: djm@openbsd.org <djm@openbsd.org>
4310Date: Thu Dec 11 05:13:28 2014 +0000
4311
4312 upstream commit
4313
4314 show in debug output which hostkeys are being tried when
4315 attempting hostbased auth; patch from Iain Morgan
4316
4317commit da0277e3717eadf5b15e03379fc29db133487e94
4318Author: djm@openbsd.org <djm@openbsd.org>
4319Date: Thu Dec 11 04:16:14 2014 +0000
4320
4321 upstream commit
4322
4323 Make manual reflect reality: sftp-server's -d option
4324 accepts a "%d" option, not a "%h" one.
4325
4326 bz#2316; reported by Kirk Wolf
4327
4328commit 4cf87f4b81fa9380bce5fcff7b0f8382ae3ad996
4329Author: djm@openbsd.org <djm@openbsd.org>
4330Date: Wed Dec 10 01:24:09 2014 +0000
4331
4332 upstream commit
4333
4334 better error value for invalid signature length
4335
4336commit 4bfad14ca56f8ae04f418997816b4ba84e2cfc3c
4337Author: Darren Tucker <dtucker@zip.com.au>
4338Date: Wed Dec 10 02:12:51 2014 +1100
4339
4340 Resync more with OpenBSD's rijndael.c, in particular "#if 0"-ing out some
4341 unused code. Should fix compile error reported by plautrba at redhat.
4342
4343commit 642652d280499691c8212ec6b79724b50008ce09
4344Author: Darren Tucker <dtucker@zip.com.au>
4345Date: Wed Dec 10 01:32:23 2014 +1100
4346
4347 Add reallocarray to compat library
4348
4349commit 3dfd8d93dfcc69261f5af99df56f3ff598581979
4350Author: djm@openbsd.org <djm@openbsd.org>
4351Date: Thu Dec 4 22:31:50 2014 +0000
4352
4353 upstream commit
4354
4355 add tests for new client RevokedHostKeys option; refactor
4356 to make it a bit more readable
4357
4358commit a31046cad1aed16a0b55171192faa6d02665ccec
4359Author: krw@openbsd.org <krw@openbsd.org>
4360Date: Wed Nov 19 13:35:37 2014 +0000
4361
4362 upstream commit
4363
4364 Nuke yet more obvious #include duplications.
4365
4366 ok deraadt@
4367
4368commit a7c762e5b2c1093542c0bc1df25ccec0b4cf479f
4369Author: djm@openbsd.org <djm@openbsd.org>
4370Date: Thu Dec 4 20:47:36 2014 +0000
4371
4372 upstream commit
4373
4374 key_in_file() wrapper is no longer used
4375
4376commit 5e39a49930d885aac9c76af3129332b6e772cd75
4377Author: djm@openbsd.org <djm@openbsd.org>
4378Date: Thu Dec 4 02:24:32 2014 +0000
4379
4380 upstream commit
4381
4382 add RevokedHostKeys option for the client
4383
4384 Allow textfile or KRL-based revocation of hostkeys.
4385
4386commit 74de254bb92c684cf53461da97f52d5ba34ded80
4387Author: djm@openbsd.org <djm@openbsd.org>
4388Date: Thu Dec 4 01:49:59 2014 +0000
4389
4390 upstream commit
4391
4392 convert KRL code to new buffer API
4393
4394 ok markus@
4395
4396commit db995f2eed5fc432598626fa3e30654503bf7151
4397Author: millert@openbsd.org <millert@openbsd.org>
4398Date: Wed Nov 26 18:34:51 2014 +0000
4399
4400 upstream commit
4401
4402 Prefer setvbuf() to setlinebuf() for portability; ok
4403 deraadt@
4404
4405commit 72bba3d179ced8b425272efe6956a309202a91f3
4406Author: jsg@openbsd.org <jsg@openbsd.org>
4407Date: Mon Nov 24 03:39:22 2014 +0000
4408
4409 upstream commit
4410
4411 Fix crashes in the handling of the sshd config file found
4412 with the afl fuzzer.
4413
4414 ok deraadt@ djm@
4415
4416commit 867f49c666adcfe92bf539d9c37c1accdea08bf6
4417Author: Damien Miller <djm@mindrot.org>
4418Date: Wed Nov 26 13:22:41 2014 +1100
4419
4420 Avoid Cygwin ssh-host-config reading /etc/group
4421
4422 Patch from Corinna Vinschen
4423
4424commit 8b66f36291a721b1ba7c44f24a07fdf39235593e
4425Author: Damien Miller <djm@mindrot.org>
4426Date: Wed Nov 26 13:20:35 2014 +1100
4427
4428 allow custom service name for sshd on Cygwin
4429
4430 Permits the use of multiple sshd running with different service names.
4431
4432 Patch by Florian Friesdorf via Corinna Vinschen
4433
4434commit 08c0eebf55d70a9ae1964399e609288ae3186a0c
4435Author: jmc@openbsd.org <jmc@openbsd.org>
4436Date: Sat Nov 22 19:21:03 2014 +0000
4437
4438 upstream commit
4439
4440 restore word zapped in previous, and remove some useless
4441 "No" macros;
4442
4443commit a1418a0033fba43f061513e992e1cbcc3343e563
4444Author: deraadt@openbsd.org <deraadt@openbsd.org>
4445Date: Sat Nov 22 18:15:41 2014 +0000
4446
4447 upstream commit
4448
4449 /dev/random has created the same effect as /dev/arandom
4450 (and /dev/urandom) for quite some time. Mop up the last few, by using
4451 /dev/random where we actually want it, or not even mentioning arandom where
4452 it is irrelevant.
4453
4454commit b6de5ac9ed421362f479d1ad4fa433d2e25dad5b
4455Author: djm@openbsd.org <djm@openbsd.org>
4456Date: Fri Nov 21 01:00:38 2014 +0000
4457
4458 upstream commit
4459
4460 fix NULL pointer dereference crash on invalid timestamp
4461
4462 found using Michal Zalewski's afl fuzzer
4463
4464commit a1f8110cd5ed818d59b3a2964fab7de76e92c18e
4465Author: mikeb@openbsd.org <mikeb@openbsd.org>
4466Date: Tue Nov 18 22:38:48 2014 +0000
4467
4468 upstream commit
4469
4470 Sync AES code to the one shipped in OpenSSL/LibreSSL.
4471
4472 This includes a commit made by Andy Polyakov <appro at openssl ! org>
4473 to the OpenSSL source tree on Wed, 28 Jun 2006 with the following
4474 message: "Mitigate cache-collision timing attack on last round."
4475
4476 OK naddy, miod, djm
4477
4478commit 335c83d5f35d8620e16b8aa26592d4f836e09ad2
4479Author: krw@openbsd.org <krw@openbsd.org>
4480Date: Tue Nov 18 20:54:28 2014 +0000
4481
4482 upstream commit
4483
4484 Nuke more obvious #include duplications.
4485
4486 ok deraadt@ millert@ tedu@
4487
4488commit 51b64e44121194ae4bf153dee391228dada2abcb
4489Author: djm@openbsd.org <djm@openbsd.org>
4490Date: Mon Nov 17 00:21:40 2014 +0000
4491
4492 upstream commit
4493
4494 fix KRL generation when multiple CAs are in use
4495
4496 We would generate an invalid KRL when revoking certs by serial
4497 number for multiple CA keys due to a section being written out
4498 twice.
4499
4500 Also extend the regress test to catch this case by having it
4501 produce a multi-CA KRL.
4502
4503 Reported by peter AT pean.org
4504
4505commit d2d51003a623e21fb2b25567c4878d915e90aa2a
4506Author: djm@openbsd.org <djm@openbsd.org>
4507Date: Tue Nov 18 01:02:25 2014 +0000
4508
4509 upstream commit
4510
4511 fix NULL pointer dereference crash in key loading
4512
4513 found by Michal Zalewski's AFL fuzzer
4514
4515commit 9f9fad0191028edc43d100d0ded39419b6895fdf
4516Author: djm@openbsd.org <djm@openbsd.org>
4517Date: Mon Nov 17 00:21:40 2014 +0000
4518
4519 upstream commit
4520
4521 fix KRL generation when multiple CAs are in use
4522
4523 We would generate an invalid KRL when revoking certs by serial
4524 number for multiple CA keys due to a section being written out
4525 twice.
4526
4527 Also extend the regress test to catch this case by having it
4528 produce a multi-CA KRL.
4529
4530 Reported by peter AT pean.org
4531
4532commit da8af83d3f7ec00099963e455010e0ed1d7d0140
4533Author: bentley@openbsd.org <bentley@openbsd.org>
4534Date: Sat Nov 15 14:41:03 2014 +0000
4535
4536 upstream commit
4537
4538 Reduce instances of `` '' in manuals.
4539
4540 troff displays these as typographic quotes, but nroff implementations
4541 almost always print them literally, which rarely has the intended effect
4542 with modern fonts, even in stock xterm.
4543
4544 These uses of `` '' can be replaced either with more semantic alternatives
4545 or with Dq, which prints typographic quotes in a UTF-8 locale (but will
4546 automatically fall back to `` '' in an ASCII locale).
4547
4548 improvements and ok schwarze@
4549
4550commit fc302561369483bb755b17f671f70fb894aec01d
4551Author: djm@openbsd.org <djm@openbsd.org>
4552Date: Mon Nov 10 22:25:49 2014 +0000
4553
4554 upstream commit
4555
4556 mux-related manual tweaks
4557
4558 mention ControlPersist=0 is the same as ControlPersist=yes
4559
4560 recommend that ControlPath sockets be placed in a og-w directory
4561
4562commit 0e4cff5f35ed11102fe3783779960ef07e0cd381
4563Author: Damien Miller <djm@google.com>
4564Date: Wed Nov 5 11:01:31 2014 +1100
4565
4566 Prepare scripts for next Cygwin release
4567
4568 Makes the Cygwin-specific ssh-user-config script independent of the
4569 existence of /etc/passwd. The next Cygwin release will allow to
4570 generate passwd and group entries from the Windows account DBs, so the
4571 scripts have to adapt.
4572
4573 from Corinna Vinschen
4574
4575commit 7d0ba5336651731949762eb8877ce9e3b52df436
4576Author: Damien Miller <djm@mindrot.org>
4577Date: Thu Oct 30 10:45:41 2014 +1100
4578
4579 include version number in OpenSSL-too-old error
4580
4581commit 3bcb92e04d9207e9f78d82f7918c6d3422054ce9
4582Author: lteo@openbsd.org <lteo@openbsd.org>
4583Date: Fri Oct 24 02:01:20 2014 +0000
4584
4585 upstream commit
4586
4587 Remove unnecessary include: netinet/in_systm.h is not needed
4588 by these programs.
4589
4590 NB. skipped for portable
4591
4592 ok deraadt@ millert@
4593
4594commit 6fdcaeb99532e28a69f1a1599fbd540bb15b70a0
4595Author: djm@openbsd.org <djm@openbsd.org>
4596Date: Mon Oct 20 03:43:01 2014 +0000
4597
4598 upstream commit
4599
4600 whitespace
4601
4602commit 165bc8786299e261706ed60342985f9de93a7461
4603Author: daniel@openbsd.org <daniel@openbsd.org>
4604Date: Tue Oct 14 03:09:59 2014 +0000
4605
4606 upstream commit
4607
4608 plug a memory leak; from Maxime Villard.
4609
4610 ok djm@
4611
4612commit b1ba15f3885947c245c2dbfaad0a04ba050abea0
4613Author: jmc@openbsd.org <jmc@openbsd.org>
4614Date: Thu Oct 9 06:21:31 2014 +0000
4615
4616 upstream commit
4617
4618 tweak previous;
4619
4620commit 259a02ebdf74ad90b41d116ecf70aa823fa4c6e7
4621Author: djm@openbsd.org <djm@openbsd.org>
4622Date: Mon Oct 13 00:38:35 2014 +0000
4623
4624 upstream commit
4625
4626 whitespace
4627
4628commit 957fbceb0f3166e41b76fdb54075ab3b9cc84cba
4629Author: djm@openbsd.org <djm@openbsd.org>
4630Date: Wed Oct 8 22:20:25 2014 +0000
4631
4632 upstream commit
4633
4634 Tweak config reparsing with host canonicalisation
4635
4636 Make the second pass through the config files always run when
4637 hostname canonicalisation is enabled.
4638
4639 Add a "Match canonical" criteria that allows ssh_config Match
4640 blocks to trigger only in the second config pass.
4641
4642 Add a -G option to ssh that causes it to parse its configuration
4643 and dump the result to stdout, similar to "sshd -T"
4644
4645 Allow ssh_config Port options set in the second config parse
4646 phase to be applied (they were being ignored).
4647
4648 bz#2267 bz#2286; ok markus
4649
4650commit 5c0dafd38bf66feeeb45fa0741a5baf5ad8039ba
4651Author: djm@openbsd.org <djm@openbsd.org>
4652Date: Wed Oct 8 22:15:27 2014 +0000
4653
4654 upstream commit
4655
4656 another -Wpointer-sign from clang
4657
4658commit bb005dc815ebda9af3ae4b39ca101c4da918f835
4659Author: djm@openbsd.org <djm@openbsd.org>
4660Date: Wed Oct 8 22:15:06 2014 +0000
4661
4662 upstream commit
4663
4664 fix a few -Wpointer-sign warnings from clang
4665
4666commit 3cc1fbb4fb0e804bfb873fd363cea91b27fc8188
4667Author: djm@openbsd.org <djm@openbsd.org>
4668Date: Wed Oct 8 21:45:48 2014 +0000
4669
4670 upstream commit
4671
4672 parse cert sections using nested buffers to reduce
4673 copies; ok markus
4674
4675commit 4a45922aebf99164e2fc83d34fe55b11ae1866ef
4676Author: djm@openbsd.org <djm@openbsd.org>
4677Date: Mon Oct 6 00:47:15 2014 +0000
4678
4679 upstream commit
4680
4681 correct options in usage(); from mancha1 AT zoho.com
4682
4683commit 48dffd5bebae6fed0556dc5c36cece0370690618
4684Author: djm@openbsd.org <djm@openbsd.org>
4685Date: Tue Sep 9 09:45:36 2014 +0000
4686
4687 upstream commit
4688
4689 mention permissions on tun(4) devices in PermitTunnel
4690 documentation; bz#2273
4691
4692commit a5883d4eccb94b16c355987f58f86a7dee17a0c2
4693Author: djm@openbsd.org <djm@openbsd.org>
4694Date: Wed Sep 3 18:55:07 2014 +0000
4695
4696 upstream commit
4697
4698 tighten permissions on pty when the "tty" group does
4699 not exist; pointed out by Corinna Vinschen; ok markus
4700
4701commit 180bcb406b58bf30723c01a6b010e48ee626dda8
4702Author: sobrado@openbsd.org <sobrado@openbsd.org>
4703Date: Sat Aug 30 16:32:25 2014 +0000
4704
4705 upstream commit
4706
4707 typo.
4708
4709commit f70b22bcdd52f6bf127047b3584371e6e5d45627
4710Author: sobrado@openbsd.org <sobrado@openbsd.org>
4711Date: Sat Aug 30 15:33:50 2014 +0000
4712
4713 upstream commit
4714
4715 improve capitalization for the Ed25519 public-key
4716 signature system.
4717
4718 ok djm@
4719
4720commit 7df8818409c752cf3f0c3f8044fe9aebed8647bd
4721Author: doug@openbsd.org <doug@openbsd.org>
4722Date: Thu Aug 21 01:08:52 2014 +0000
4723
4724 upstream commit
4725
4726 Free resources on error in mkstemp and fdopen
4727
4728 ok djm@
4729
4730commit 40ba4c9733aaed08304714faeb61529f18da144b
4731Author: deraadt@openbsd.org <deraadt@openbsd.org>
4732Date: Wed Aug 20 01:28:55 2014 +0000
4733
4734 upstream commit
4735
4736 djm how did you make a typo like that...
4737
4738commit 57d378ec9278ba417a726f615daad67d157de666
4739Author: djm@openbsd.org <djm@openbsd.org>
4740Date: Tue Aug 19 23:58:28 2014 +0000
4741
4742 upstream commit
4743
4744 When dumping the server configuration (sshd -T), print
4745 correct KEX, MAC and cipher defaults. Spotted by Iain Morgan
4746
4747commit 7ff880ede5195d0b17e7f1e3b6cfbc4cb6f85240
4748Author: djm@openbsd.org <djm@openbsd.org>
4749Date: Tue Aug 19 23:57:18 2014 +0000
4750
4751 upstream commit
4752
4753 ~-expand lcd paths
4754
4755commit 4460a7ad0c78d4cd67c467f6e9f4254d0404ed59
4756Author: Damien Miller <djm@mindrot.org>
4757Date: Sun Oct 12 12:35:48 2014 +1100
4758
4759 remove duplicated KEX_DH1 entry
4760
4761commit c9b8426a616138d0d762176c94f51aff3faad5ff
4762Author: Damien Miller <djm@mindrot.org>
4763Date: Thu Oct 9 10:34:06 2014 +1100
4764
4765 remove ChangeLog file
4766
4767 Commit logs will be generated from git at release time.
4768
4769commit 81d18ff7c93a04affbf3903e0963859763219aed
4770Author: Damien Miller <djm@google.com>
4771Date: Tue Oct 7 21:24:25 2014 +1100
4772
4773 delete contrib/caldera directory
4774
4775commit 0ec9e87d3638206456968202f05bb5123670607a
4776Author: Damien Miller <djm@google.com>
4777Date: Tue Oct 7 19:57:27 2014 +1100
4778
4779 test commit
4780
4781commit 8fb65a44568701b779f3d77326bceae63412d28d
4782Author: Damien Miller <djm@mindrot.org>
4783Date: Tue Oct 7 09:21:49 2014 +1100
4784
4785 - (djm) Release OpenSSH-6.7
4786
4787commit e8c9f2602c46f6781df5e52e6cd8413dab4602a3
4788Author: Damien Miller <djm@mindrot.org>
4789Date: Fri Oct 3 09:24:56 2014 +1000
4790
4791 - (djm) [sshd_config.5] typo; from Iain Morgan
4792
4793commit 703b98a26706f5083801d11059486d77491342ae
4794Author: Damien Miller <djm@mindrot.org>
4795Date: Wed Oct 1 09:43:07 2014 +1000
4796
4797 - (djm) [openbsd-compat/Makefile.in openbsd-compat/kludge-fd_set.c]
4798 [openbsd-compat/openbsd-compat.h] Kludge around bad glibc
4799 _FORTIFY_SOURCE check that doesn't grok heap-allocated fd_sets;
4800 ok dtucker@
4801
4802commit 0fa0ed061bbfedb0daa705e220748154a84c3413
4803Author: Damien Miller <djm@mindrot.org>
4804Date: Wed Sep 10 08:15:34 2014 +1000
4805
4806 - (djm) [sandbox-seccomp-filter.c] Allow mremap and exit for DietLibc;
4807 patch from Felix von Leitner; ok dtucker
4808
4809commit ad7d23d461c3b7e1dcb15db13aee5f4b94dc1a95
4810Author: Darren Tucker <dtucker@zip.com.au>
4811Date: Tue Sep 9 12:23:10 2014 +1000
4812
4813 20140908
4814 - (dtucker) [INSTALL] Update info about egd. ok djm@
4815
4816commit 2a8699f37cc2515e3bc60e0c677ba060f4d48191
4817Author: Damien Miller <djm@mindrot.org>
4818Date: Thu Sep 4 03:46:05 2014 +1000
4819
4820 - (djm) [openbsd-compat/arc4random.c] Zero seed after keying PRNG
4821
4822commit 44988defb1f5e3afe576d86000365e1f07a1b494
4823Author: Damien Miller <djm@mindrot.org>
4824Date: Wed Sep 3 05:35:32 2014 +1000
4825
4826 - (djm) [contrib/cygwin/ssh-host-config] Fix old code leading to
4827 permissions/ACLs; from Corinna Vinschen
4828
4829commit 23f269562b7537b2f6f5014e50a25e5dcc55a837
4830Author: Damien Miller <djm@mindrot.org>
4831Date: Wed Sep 3 05:33:25 2014 +1000
4832
4833 - (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and
4834 conditionalise to avoid duplicate definition.
4835
4836commit 41c8de2c0031cf59e7cf0c06b5bcfbf4852c1fda
4837Author: Damien Miller <djm@mindrot.org>
4838Date: Sat Aug 30 16:23:06 2014 +1000
4839
4840 - (djm) [Makefile.in] Make TEST_SHELL a variable; "good idea" tim@
4841
4842commit d7c81e216a7bd9eed6e239c970d9261bb1651947
4843Author: Damien Miller <djm@mindrot.org>
4844Date: Sat Aug 30 04:18:28 2014 +1000
4845
4846 - (djm) [openbsd-compat/openssl-compat.h] add include guard
4847
4848commit 4687802dda57365b984b897fc3c8e2867ea09b22
4849Author: Damien Miller <djm@mindrot.org>
4850Date: Sat Aug 30 03:29:19 2014 +1000
4851
4852 - (djm) [misc.c] Missing newline between functions
4853
4854commit 51c77e29220dee87c53be2dc47092934acab26fe
4855Author: Damien Miller <djm@mindrot.org>
4856Date: Sat Aug 30 02:30:30 2014 +1000
4857
4858 - (djm) [openbsd-compat/openssl-compat.h] add
4859 OPENSSL_[RD]SA_MAX_MODULUS_BITS defines for OpenSSL that lacks them
4860
4861commit 3d673d103bad35afaec6e7ef73e5277216ce33a3
4862Author: Damien Miller <djm@mindrot.org>
4863Date: Wed Aug 27 06:32:01 2014 +1000
4864
4865 - (djm) [openbsd-compat/explicit_bzero.c] implement explicit_bzero()
4866 using memset_s() where possible; improve fallback to indirect bzero
4867 via a volatile pointer to give it more of a chance to avoid being
4868 optimised away.
4869
4870commit 146218ac11a1eb0dcade6f793d7acdef163b5ddc
4871Author: Damien Miller <djm@mindrot.org>
4872Date: Wed Aug 27 04:11:55 2014 +1000
4873
4874 - (djm) [monitor.c sshd.c] SIGXFSZ needs to be ignored in postauth
4875 monitor, not preauth; bz#2263
4876
4877commit 1b215c098b3b37e38aa4e4c91bb908eee41183b1
4878Author: Damien Miller <djm@mindrot.org>
4879Date: Wed Aug 27 04:04:40 2014 +1000
4880
4881 - (djm) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
4882 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
4883 [regress/unittests/sshkey/common.c]
4884 [regress/unittests/sshkey/test_file.c]
4885 [regress/unittests/sshkey/test_fuzz.c]
4886 [regress/unittests/sshkey/test_sshkey.c] Don't include openssl/ec.h
4887 on !ECC OpenSSL systems
4888
4889commit ad013944af0a19e3f612089d0099bb397cf6502d
4890Author: Damien Miller <djm@mindrot.org>
4891Date: Tue Aug 26 09:27:28 2014 +1000
4892
4893 - (djm) [INSTALL] Recommend libcrypto be built -fPIC, mention LibreSSL,
4894 update OpenSSL version requirement.
4895
4896commit ed126de8ee04c66640a0ea2697c4aaf36801f100
4897Author: Damien Miller <djm@mindrot.org>
4898Date: Tue Aug 26 08:37:47 2014 +1000
4899
4900 - (djm) [bufec.c] Skip this file on !ECC OpenSSL
4901
4902commit 9c1dede005746864a4fdb36a7cdf6c51296ca909
4903Author: Damien Miller <djm@mindrot.org>
4904Date: Sun Aug 24 03:01:06 2014 +1000
4905
4906 - (djm) [sftp-server.c] Some systems (e.g. Irix) have prctl() but not
4907 PR_SET_DUMPABLE, so adjust ifdef; reported by Tom Christensen
4908
4909commit d244a5816fd1312a33404b436e4dd83594f1119e
4910Author: Damien Miller <djm@mindrot.org>
4911Date: Sat Aug 23 17:06:49 2014 +1000
4912
4913 - (djm) [configure.ac] We now require a working vsnprintf everywhere (not
4914 just for systems that lack asprintf); check for it always and extend
4915 test to catch more brokenness. Fixes builds on Solaris <= 9
4916
4917commit 4cec036362a358e398e6a2e6d19d8e5780558634
4918Author: Damien Miller <djm@mindrot.org>
4919Date: Sat Aug 23 03:11:09 2014 +1000
4920
4921 - (djm) [sshd.c] Ignore SIGXFSZ in preauth monitor child; can explode on
4922 lastlog writing on platforms with high UIDs; bz#2263
4923
4924commit 394a60f2598d28b670d934b93942a3370b779b39
4925Author: Damien Miller <djm@mindrot.org>
4926Date: Fri Aug 22 18:06:20 2014 +1000
4927
4928 - (djm) [configure.ac] double braces to appease autoconf
4929
4930commit 4d69aeabd6e60afcdc7cca177ca751708ab79a9d
4931Author: Damien Miller <djm@mindrot.org>
4932Date: Fri Aug 22 17:48:27 2014 +1000
4933
4934 - (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/
4935 definition mismatch) and warning for broken/missing snprintf case.
4936
4937commit 0c11f1ac369d2c0aeb0ab0458a7cd04c72fe5e9e
4938Author: Damien Miller <djm@mindrot.org>
4939Date: Fri Aug 22 17:36:56 2014 +1000
4940
4941 - (djm) [sshbuf-getput-crypto.c] Fix compilation when OpenSSL lacks ECC
4942
4943commit 6d62784b8973340b251fea6b04890f471adf28db
4944Author: Damien Miller <djm@mindrot.org>
4945Date: Fri Aug 22 17:36:19 2014 +1000
4946
4947 - (djm) [configure.ac] include leading zero characters in OpenSSL version
4948 number; fixes test for unsupported versions
4949
4950commit 4f1ff1ed782117f5d5204d4e91156ed5da07cbb7
4951Author: Damien Miller <djm@mindrot.org>
4952Date: Thu Aug 21 15:54:50 2014 +1000
4953
4954 - (djm) [regress/unittests/test_helper/test_helper.c] Fix for systems that
4955 don't set __progname. Diagnosed by Tom Christensen.
4956
4957commit 005a64da0f457410045ef0bfa93c863c2450447d
4958Author: Damien Miller <djm@mindrot.org>
4959Date: Thu Aug 21 10:48:41 2014 +1000
4960
4961 - (djm) [key.h] Fix ifdefs for no-ECC OpenSSL
4962
4963commit aa6598ebb3343c7380e918388e10e8ca5852b613
4964Author: Damien Miller <djm@mindrot.org>
4965Date: Thu Aug 21 10:47:54 2014 +1000
4966
4967 - (djm) [Makefile.in] fix reference to libtest_helper.a in sshkey test too.
4968
4969commit 54703e3cf63f0c80d4157e5ad7dbc2b363ee2c56
4970Author: Damien Miller <djm@mindrot.org>
4971Date: Wed Aug 20 11:10:51 2014 +1000
4972
4973 - (djm) [contrib/cygwin/README] Correct build instructions; from Corinna
4974
4975commit f0935698f0461f24d8d1f1107b476ee5fd4db1cb
4976Author: Damien Miller <djm@mindrot.org>
4977Date: Wed Aug 20 11:06:50 2014 +1000
4978
4979 - (djm) [sshkey.h] Fix compilation when OpenSSL lacks ECC
4980
4981commit c5089ecaec3b2c02f014f4e67518390702a4ba14
4982Author: Damien Miller <djm@mindrot.org>
4983Date: Wed Aug 20 11:06:20 2014 +1000
4984
4985 - (djm) [Makefile.in] refer to libtest_helper.a by explicit path rather than
4986 -L/-l; fixes linking problems on some platforms
4987
4988commit 2195847e503a382f83ee969b0a8bd3dfe0e55c18
4989Author: Damien Miller <djm@mindrot.org>
4990Date: Wed Aug 20 11:05:03 2014 +1000
4991
4992 - (djm) [configure.ac] Check OpenSSL version is supported at configure time;
4993 suggested by Kevin Brott
4994
4995commit a75aca1bbc989aa9f8b1b08489d37855f3d24d1a
4996Author: Damien Miller <djm@mindrot.org>
4997Date: Tue Aug 19 11:36:07 2014 +1000
4998
4999 - (djm) [INSTALL contrib/caldera/openssh.spec contrib/cygwin/README]
5000 [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Remove mentions
5001 of TCP wrappers.
5002
5003commit 3f022b5a9477abceeb1bbeab04b055f3cc7ca8f6
5004Author: Damien Miller <djm@mindrot.org>
5005Date: Tue Aug 19 11:32:34 2014 +1000
5006
5007 - (djm) [ssh-dss.c] Include openssl/dsa.h for DSA_SIG
5008
5009commit 88137902632aceb923990e98cf5dc923bb3ef2f5
5010Author: Damien Miller <djm@mindrot.org>
5011Date: Tue Aug 19 11:28:11 2014 +1000
5012
5013 - (djm) [sshbuf.h] Fix compilation on systems without OPENSSL_HAS_ECC.
5014
5015commit 2f3d1e7fb2eabd3cfbfd8d0f7bdd2f9a1888690b
5016Author: Damien Miller <djm@mindrot.org>
5017Date: Tue Aug 19 11:14:36 2014 +1000
5018
5019 - (djm) [myproposal.h] Make curve25519 KEX dependent on
5020 HAVE_EVP_SHA256 instead of OPENSSL_HAS_ECC.
5021
5022commit d4e7d59d01a6c7f59e8c1f94a83c086e9a33d8aa
5023Author: Damien Miller <djm@mindrot.org>
5024Date: Tue Aug 19 11:14:17 2014 +1000
5025
5026 - (djm) [serverloop.c] Fix syntax error on Cygwin; from Corinna Vinschen
5027
5028commit 9eaeea2cf2b6af5f166cfa9ad3c7a90711a147a9
5029Author: Damien Miller <djm@mindrot.org>
5030Date: Sun Aug 10 11:35:05 2014 +1000
5031
5032 - (djm) [README contrib/caldera/openssh.spec]
5033 [contrib/redhat/openssh.spec contrib/suse/openssh.spec] Update versions
5034
5035commit f8988fbef0c9801d19fa2f8f4f041690412bec37
5036Author: Damien Miller <djm@mindrot.org>
5037Date: Fri Aug 1 13:31:52 2014 +1000
5038
5039 - (djm) [regress/multiplex.sh] Use -d (detach stdin) flag to disassociate
5040 nc from stdin, it's more portable
5041
5042commit 5b3879fd4b7a4e3d43bab8f40addda39bc1169d0
5043Author: Damien Miller <djm@mindrot.org>
5044Date: Fri Aug 1 12:28:31 2014 +1000
5045
5046 - (djm) [regress/multiplex.sh] Instruct nc not to quit as soon as stdin
5047 is closed; avoid regress failures when stdin is /dev/null
5048
5049commit a9c46746d266f8a1b092a72b2150682d1af8ebfc
5050Author: Damien Miller <djm@mindrot.org>
5051Date: Fri Aug 1 12:26:49 2014 +1000
5052
5053 - (djm) [regress/multiplex.sh] Skip test for non-OpenBSD netcat. We need
5054 a better solution, but this will have to do for now.
5055
5056commit 426117b2e965e43f47015942b5be8dd88fe74b88
5057Author: Damien Miller <djm@mindrot.org>
5058Date: Wed Jul 30 12:33:20 2014 +1000
5059
5060 - schwarze@cvs.openbsd.org 2014/07/28 15:40:08
5061 [sftp-server.8 sshd_config.5]
5062 some systems no longer need /dev/log;
5063 issue noticed by jirib;
5064 ok deraadt
5065
5066commit f497794b6962eaf802ab4ac2a7b22ae591cca1d5
5067Author: Damien Miller <djm@mindrot.org>
5068Date: Wed Jul 30 12:32:46 2014 +1000
5069
5070 - dtucker@cvs.openbsd.org 2014/07/25 21:22:03
5071 [ssh-agent.c]
5072 Clear buffer used for handling messages. This prevents keys being
5073 left in memory after they have been expired or deleted in some cases
5074 (but note that ssh-agent is setgid so you would still need root to
5075 access them). Pointed out by Kevin Burns, ok deraadt
5076
5077commit a8a0f65c57c8ecba94d65948e9090da54014dfef
5078Author: Damien Miller <djm@mindrot.org>
5079Date: Wed Jul 30 12:32:28 2014 +1000
5080
5081 - OpenBSD CVS Sync
5082 - millert@cvs.openbsd.org 2014/07/24 22:57:10
5083 [ssh.1]
5084 Mention UNIX-domain socket forwarding too. OK jmc@ deraadt@
5085
5086commit 56b840f2b81e14a2f95c203403633a72566736f8
5087Author: Damien Miller <djm@mindrot.org>
5088Date: Fri Jul 25 08:11:30 2014 +1000
5089
5090 - (djm) [regress/multiplex.sh] restore incorrectly deleted line;
5091 pointed out by Christian Hesse
5092
5093commit dd417b60d5ca220565d1014e92b7f8f43dc081eb
5094Author: Darren Tucker <dtucker@zip.com.au>
5095Date: Wed Jul 23 10:41:21 2014 +1000
5096
5097 - dtucker@cvs.openbsd.org 2014/07/22 23:35:38
5098 [regress/unittests/sshkey/testdata/*]
5099 Regenerate test keys with certs signed with ed25519 instead of ecdsa.
5100 These can be used in -portable on platforms that don't support ECDSA.
5101
5102commit 40e50211896369dba8f64f3b5e5fd58b76f5ac3f
5103Author: Darren Tucker <dtucker@zip.com.au>
5104Date: Wed Jul 23 10:35:45 2014 +1000
5105
5106 - dtucker@cvs.openbsd.org 2014/07/22 23:57:40
5107 [regress/unittests/sshkey/mktestdata.sh]
5108 Add $OpenBSD tag to make syncs easier
5109
5110commit 07e644251e809b1d4c062cf85bd1146a7e3f5a8a
5111Author: Darren Tucker <dtucker@zip.com.au>
5112Date: Wed Jul 23 10:34:26 2014 +1000
5113
5114 - dtucker@cvs.openbsd.org 2014/07/22 23:23:22
5115 [regress/unittests/sshkey/mktestdata.sh]
5116 Sign test certs with ed25519 instead of ecdsa so that they'll work in
5117 -portable on platforms that don't have ECDSA in their OpenSSL. ok djm
5118
5119commit cea099a7c4eaecb01b001e5453bb4e5c25006c22
5120Author: Darren Tucker <dtucker@zip.com.au>
5121Date: Wed Jul 23 10:04:02 2014 +1000
5122
5123 - djm@cvs.openbsd.org 2014/07/22 01:32:12
5124 [regress/multiplex.sh]
5125 change the test for still-open Unix domain sockets to be robust against
5126 nc implementations that produce error messages. from -portable
5127 (Id sync only)
5128
5129commit 31eb78078d349b32ea41952ecc944b3ad6cb0d45
5130Author: Darren Tucker <dtucker@zip.com.au>
5131Date: Wed Jul 23 09:43:42 2014 +1000
5132
5133 - guenther@cvs.openbsd.org 2014/07/22 07:13:42
5134 [umac.c]
5135 Convert from <sys/endian.h> to the shiney new <endian.h>
5136 ok dtucker@, who also confirmed that -portable handles this already
5137 (ID sync only, includes.h pulls in endian.h if available.)
5138
5139commit 820763efef2d19d965602533036c2b4badc9d465
5140Author: Darren Tucker <dtucker@zip.com.au>
5141Date: Wed Jul 23 09:40:46 2014 +1000
5142
5143 - dtucker@cvs.openbsd.org 2014/07/22 01:18:50
5144 [key.c]
5145 Prevent spam from key_load_private_pem during hostbased auth. ok djm@
5146
5147commit c4ee219a66f3190fa96cbd45b4d11015685c6306
5148Author: Darren Tucker <dtucker@zip.com.au>
5149Date: Wed Jul 23 04:27:50 2014 +1000
5150
5151 - (dtucker) [regress/unittests/sshkey/test_{file,fuzz,sshkey}.c] Wrap ecdsa-
5152 specific tests inside OPENSSL_HAS_ECC.
5153
5154commit 04f4824940ea3edd60835416ececbae16438968a
5155Author: Damien Miller <djm@mindrot.org>
5156Date: Tue Jul 22 11:31:47 2014 +1000
5157
5158 - (djm) [regress/multiplex.sh] change the test for still-open Unix
5159 domain sockets to be robust against nc implementations that produce
5160 error messages.
5161
5162commit 5ea4fe00d55453aaa44007330bb4c3181bd9b796
5163Author: Damien Miller <djm@mindrot.org>
5164Date: Tue Jul 22 09:39:19 2014 +1000
5165
5166 - (djm) [regress/multiplex.sh] ssh mux master lost -N somehow;
5167 put it back
5168
5169commit 948a1774a79a85f9deba6d74db95f402dee32c69
5170Author: Darren Tucker <dtucker@zip.com.au>
5171Date: Tue Jul 22 01:07:11 2014 +1000
5172
5173 - (dtucker) [sshkey.c] ifdef out unused variable when compiling without
5174 OPENSSL_HAS_ECC.
5175
5176commit c8f610f6cc57ae129758052439d9baf13699097b
5177Author: Damien Miller <djm@mindrot.org>
5178Date: Mon Jul 21 10:23:27 2014 +1000
5179
5180 - (djm) [regress/multiplex.sh] Not all netcat accept the -N option.
5181
5182commit 0e4e95566cd95c887f69272499b8f3880b3ec0f5
5183Author: Damien Miller <djm@mindrot.org>
5184Date: Mon Jul 21 09:52:54 2014 +1000
5185
5186 - millert@cvs.openbsd.org 2014/07/15 15:54:15
5187 [forwarding.sh multiplex.sh]
5188 Add support for Unix domain socket forwarding. A remote TCP port
5189 may be forwarded to a local Unix domain socket and vice versa or
5190 both ends may be a Unix domain socket. This is a reimplementation
5191 of the streamlocal patches by William Ahern from:
5192 http://www.25thandclement.com/~william/projects/streamlocal.html
5193 OK djm@ markus@
5194
5195commit 93a87ab27ecdc709169fb24411133998f81e2761
5196Author: Darren Tucker <dtucker@zip.com.au>
5197Date: Mon Jul 21 06:30:25 2014 +1000
5198
5199 - (dtucker) [regress/unittests/sshkey/
5200 {common,test_file,test_fuzz,test_sshkey}.c] Wrap stdint.h includes in
5201 ifdefs.
5202
5203commit 5573171352ea23df2dc6d2fe0324d023b7ba697c
5204Author: Darren Tucker <dtucker@zip.com.au>
5205Date: Mon Jul 21 02:24:59 2014 +1000
5206
5207 - (dtucker) [cipher.c openbsd-compat/openssl-compat.h] Restore the bits
5208 needed to build AES CTR mode against OpenSSL 0.9.8f and above. ok djm
5209
5210commit 74e28682711d005026c7c8f15f96aea9d3c8b5a3
5211Author: Tim Rice <tim@multitalents.net>
5212Date: Fri Jul 18 20:00:11 2014 -0700
5213
5214 - (tim) [openbsd-compat/port-uw.c] Include misc.h for fwd_opts, used
5215 in servconf.h.
5216
5217commit d1a0421f8e5e933fee6fb58ee6b9a22c63c8a613
5218Author: Darren Tucker <dtucker@zip.com.au>
5219Date: Sat Jul 19 07:23:55 2014 +1000
5220
5221 - (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
5222
5223commit f0fe9ea1be62227c130b317769de3d1e736b6dc1
5224Author: Darren Tucker <dtucker@zip.com.au>
5225Date: Sat Jul 19 06:33:12 2014 +1000
5226
5227 - (dtucker) [Makefile.in] Add a t-exec target to run just the executable
5228 tests.
5229
5230commit 450bc1180d4b061434a4b733c5c8814fa30b022b
5231Author: Darren Tucker <dtucker@zip.com.au>
5232Date: Sat Jul 19 06:23:18 2014 +1000
5233
5234 - (dtucker) [auth2-gss.c gss-serv-krb5.c] Include misc.h for fwd_opts, used
5235 in servconf.h.
5236
5237commit ab2ec586baad122ed169285c31927ccf58bc7b28
5238Author: Damien Miller <djm@mindrot.org>
5239Date: Fri Jul 18 15:04:47 2014 +1000
5240
5241 - djm@cvs.openbsd.org 2014/07/18 02:46:01
5242 [ssh-agent.c]
5243 restore umask around listener socket creation (dropped in streamlocal patch
5244 merge)
5245
5246commit 357610d15946381ae90c271837dcdd0cdce7145f
5247Author: Damien Miller <djm@mindrot.org>
5248Date: Fri Jul 18 15:04:10 2014 +1000
5249
5250 - djm@cvs.openbsd.org 2014/07/17 07:22:19
5251 [mux.c ssh.c]
5252 reflect stdio-forward ("ssh -W host:port ...") failures in exit status.
5253 previously we were always returning 0. bz#2255 reported by Brendan
5254 Germain; ok dtucker
5255
5256commit dad9a4a0b7c2b5d78605f8df28718f116524134e
5257Author: Damien Miller <djm@mindrot.org>
5258Date: Fri Jul 18 15:03:49 2014 +1000
5259
5260 - djm@cvs.openbsd.org 2014/07/17 00:12:03
5261 [key.c]
5262 silence "incorrect passphrase" error spam; reported and ok dtucker@
5263
5264commit f42f7684ecbeec6ce50e0310f80b3d6da2aaf533
5265Author: Damien Miller <djm@mindrot.org>
5266Date: Fri Jul 18 15:03:27 2014 +1000
5267
5268 - djm@cvs.openbsd.org 2014/07/17 00:10:18
5269 [mux.c]
5270 preserve errno across syscall
5271
5272commit 1b83320628cb0733e3688b85bfe4d388a7c51909
5273Author: Damien Miller <djm@mindrot.org>
5274Date: Fri Jul 18 15:03:02 2014 +1000
5275
5276 - djm@cvs.openbsd.org 2014/07/17 00:10:56
5277 [sandbox-systrace.c]
5278 ifdef SYS_sendsyslog so this will compile without patching on -stable
5279
5280commit 6d57656331bcd754d912950e4a18ad259d596e61
5281Author: Damien Miller <djm@mindrot.org>
5282Date: Fri Jul 18 15:02:06 2014 +1000
5283
5284 - jmc@cvs.openbsd.org 2014/07/16 14:48:57
5285 [ssh.1]
5286 add the streamlocal* options to ssh's -o list; millert says they're
5287 irrelevant for scp/sftp;
5288
5289 ok markus millert
5290
5291commit 7acefbbcbeab725420ea07397ae35992f505f702
5292Author: Damien Miller <djm@mindrot.org>
5293Date: Fri Jul 18 14:11:24 2014 +1000
5294
5295 - millert@cvs.openbsd.org 2014/07/15 15:54:14
5296 [PROTOCOL auth-options.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c]
5297 [auth-rsa.c auth.c auth1.c auth2-hostbased.c auth2-kbdint.c auth2-none.c]
5298 [auth2-passwd.c auth2-pubkey.c auth2.c canohost.c channels.c channels.h]
5299 [clientloop.c misc.c misc.h monitor.c mux.c packet.c readconf.c]
5300 [readconf.h servconf.c servconf.h serverloop.c session.c ssh-agent.c]
5301 [ssh.c ssh_config.5 sshconnect.c sshconnect1.c sshconnect2.c sshd.c]
5302 [sshd_config.5 sshlogin.c]
5303 Add support for Unix domain socket forwarding. A remote TCP port
5304 may be forwarded to a local Unix domain socket and vice versa or
5305 both ends may be a Unix domain socket. This is a reimplementation
5306 of the streamlocal patches by William Ahern from:
5307 http://www.25thandclement.com/~william/projects/streamlocal.html
5308 OK djm@ markus@
5309
5310commit 6262d760e00714523633bd989d62e273a3dca99a
5311Author: Damien Miller <djm@mindrot.org>
5312Date: Thu Jul 17 09:52:07 2014 +1000
5313
5314 - tedu@cvs.openbsd.org 2014/07/11 13:54:34
5315 [myproposal.h]
5316 by popular demand, add back hamc-sha1 to server proposal for better compat
5317 with many clients still in use. ok deraadt
5318
5319commit 9d69d937b46ecba17f16d923e538ceda7b705c7a
5320Author: Damien Miller <djm@mindrot.org>
5321Date: Thu Jul 17 09:49:37 2014 +1000
5322
5323 - deraadt@cvs.openbsd.org 2014/07/11 08:09:54
5324 [sandbox-systrace.c]
5325 Permit use of SYS_sendsyslog from inside the sandbox. Clock is ticking,
5326 update your kernels and sshd soon.. libc will start using sendsyslog()
5327 in about 4 days.
5328
5329commit f6293a0b4129826fc2e37e4062f96825df43c326
5330Author: Damien Miller <djm@mindrot.org>
5331Date: Thu Jul 17 09:01:25 2014 +1000
5332
5333 - (djm) [digest-openssl.c] Preserve array order when disabling digests.
5334 Reported by Petr Lautrbach.
5335
5336commit 00f9cd230709c04399ef5ff80492d70a55230694
5337Author: Damien Miller <djm@mindrot.org>
5338Date: Tue Jul 15 10:41:38 2014 +1000
5339
5340 - (djm) [configure.ac] Delay checks for arc4random* until after libcrypto
5341 has been located; fixes builds agains libressl-portable
5342
5343commit 1d0df3249c87019556b83306c28d4769375c2edc
5344Author: Damien Miller <djm@mindrot.org>
5345Date: Fri Jul 11 09:19:04 2014 +1000
5346
5347 - OpenBSD CVS Sync
5348 - benno@cvs.openbsd.org 2014/07/09 14:15:56
5349 [ssh-add.c]
5350 fix ssh-add crash while loading more than one key
5351 ok markus@
5352
5353commit 7a57eb3d105aa4ced15fb47001092c58811e6d9d
5354Author: Damien Miller <djm@mindrot.org>
5355Date: Wed Jul 9 13:22:31 2014 +1000
5356
5357 - djm@cvs.openbsd.org 2014/07/07 08:15:26
5358 [multiplex.sh]
5359 remove forced-fatal that I stuck in there to test the new cleanup
5360 logic and forgot to remove...
5361
5362commit 612f965239a30fe536b11ece1834d9f470aeb029
5363Author: Damien Miller <djm@mindrot.org>
5364Date: Wed Jul 9 13:22:03 2014 +1000
5365
5366 - djm@cvs.openbsd.org 2014/07/06 07:42:03
5367 [multiplex.sh test-exec.sh]
5368 add a hook to the cleanup() function to kill $SSH_PID if it is set
5369
5370 use it to kill the mux master started in multiplex.sh (it was being left
5371 around on fatal failures)
5372
5373commit d0bb950485ba121e43a77caf434115ed6417b46f
5374Author: Damien Miller <djm@mindrot.org>
5375Date: Wed Jul 9 13:07:28 2014 +1000
5376
5377 - djm@cvs.openbsd.org 2014/07/09 03:02:15
5378 [key.c]
5379 downgrade more error() to debug() to better match what old authfile.c
5380 did; suppresses spurious errors with hostbased authentication enabled
5381
5382commit 0070776a038655c57f57e70cd05e4c38a5de9d84
5383Author: Damien Miller <djm@mindrot.org>
5384Date: Wed Jul 9 13:07:06 2014 +1000
5385
5386 - djm@cvs.openbsd.org 2014/07/09 01:45:10
5387 [sftp.c]
5388 more useful error message when GLOB_NOSPACE occurs;
5389 bz#2254, patch from Orion Poplawski
5390
5391commit 079bac2a43c74ef7cf56850afbab3b1932534c50
5392Author: Damien Miller <djm@mindrot.org>
5393Date: Wed Jul 9 13:06:25 2014 +1000
5394
5395 - djm@cvs.openbsd.org 2014/07/07 08:19:12
5396 [ssh_config.5]
5397 mention that ProxyCommand is executed using shell "exec" to avoid
5398 a lingering process; bz#1977
5399
5400commit 3a48cc090096cf99b9de592deb5f90e444edebfb
5401Author: Damien Miller <djm@mindrot.org>
5402Date: Sun Jul 6 09:32:49 2014 +1000
5403
5404 - djm@cvs.openbsd.org 2014/07/05 23:11:48
5405 [channels.c]
5406 fix remote-forward cancel regression; ok markus@
5407
5408commit 48bae3a38cb578713e676708164f6e7151cc64fa
5409Author: Damien Miller <djm@mindrot.org>
5410Date: Sun Jul 6 09:27:06 2014 +1000
5411
5412 - djm@cvs.openbsd.org 2014/07/03 23:18:35
5413 [authfile.h]
5414 remove leakmalloc droppings
5415
5416commit 72e6b5c9ed5e72ca3a6ccc3177941b7c487a0826
5417Author: Damien Miller <djm@mindrot.org>
5418Date: Fri Jul 4 09:00:04 2014 +1000
5419
5420 - djm@cvs.openbsd.org 2014/07/03 22:40:43
5421 [servconf.c servconf.h session.c sshd.8 sshd_config.5]
5422 Add a sshd_config PermitUserRC option to control whether ~/.ssh/rc is
5423 executed, mirroring the no-user-rc authorized_keys option;
5424 bz#2160; ok markus@
5425
5426commit 602943d1179a08dfa70af94f62296ea5e3d6ebb8
5427Author: Damien Miller <djm@mindrot.org>
5428Date: Fri Jul 4 08:59:41 2014 +1000
5429
5430 - djm@cvs.openbsd.org 2014/07/03 22:33:41
5431 [channels.c]
5432 allow explicit ::1 and 127.0.0.1 forwarding bind addresses when
5433 GatewayPorts=no; allows client to choose address family;
5434 bz#2222 ok markus@
5435
5436commit 6b37fbb7921d156b31e2c8f39d9e1b6746c34983
5437Author: Damien Miller <djm@mindrot.org>
5438Date: Fri Jul 4 08:59:24 2014 +1000
5439
5440 - djm@cvs.openbsd.org 2014/07/03 22:23:46
5441 [sshconnect.c]
5442 when rekeying, skip file/DNS lookup if it is the same as the key sent
5443 during initial key exchange. bz#2154 patch from Iain Morgan; ok markus@
5444
5445commit d2c3cd5f2e47ee24cf7093ce8e948c2e79dfc3fd
5446Author: Damien Miller <djm@mindrot.org>
5447Date: Fri Jul 4 08:59:01 2014 +1000
5448
5449 - jsing@cvs.openbsd.org 2014/07/03 12:42:16
5450 [cipher-chachapoly.c]
5451 Call chacha_ivsetup() immediately before chacha_encrypt_bytes() - this
5452 makes it easier to verify that chacha_encrypt_bytes() is only called once
5453 per chacha_ivsetup() call.
5454 ok djm@
5455
5456commit 686feb560ec43a06ba04da82b50f3c183c947309
5457Author: Damien Miller <djm@mindrot.org>
5458Date: Thu Jul 3 21:29:38 2014 +1000
5459
5460 - djm@cvs.openbsd.org 2014/07/03 11:16:55
5461 [auth.c auth.h auth1.c auth2.c]
5462 make the "Too many authentication failures" message include the
5463 user, source address, port and protocol in a format similar to the
5464 authentication success / failure messages; bz#2199, ok dtucker
5465
5466commit 0f12341402e18fd9996ec23189b9418d2722453f
5467Author: Damien Miller <djm@mindrot.org>
5468Date: Thu Jul 3 21:28:09 2014 +1000
5469
5470 - jmc@cvs.openbsd.org 2014/07/03 07:45:27
5471 [ssh_config.5]
5472 escape %C since groff thinks it part of an Rs/Re block;
5473
5474commit 9c38643c5cd47a19db2cc28279dcc28abadc22b3
5475Author: Damien Miller <djm@mindrot.org>
5476Date: Thu Jul 3 21:27:46 2014 +1000
5477
5478 - djm@cvs.openbsd.org 2014/07/03 06:39:19
5479 [ssh.c ssh_config.5]
5480 Add a %C escape sequence for LocalCommand and ControlPath that expands
5481 to a unique identifer based on a has of the tuple of (local host,
5482 remote user, hostname, port).
5483
5484 Helps avoid exceeding sockaddr_un's miserly pathname limits for mux
5485 control paths.
5486
5487 bz#2220, based on patch from mancha1 AT zoho.com; ok markus@
5488
5489commit 49d9bfe2b2f3e90cc158a215dffa7675e57e7830
5490Author: Damien Miller <djm@mindrot.org>
5491Date: Thu Jul 3 21:26:42 2014 +1000
5492
5493 - djm@cvs.openbsd.org 2014/07/03 05:38:17
5494 [ssh.1]
5495 document that -g will only work in the multiplexed case if applied to
5496 the mux master
5497
5498commit ef9f13ba4c58057b2166d1f2e790535da402fbe5
5499Author: Damien Miller <djm@mindrot.org>
5500Date: Thu Jul 3 21:26:21 2014 +1000
5501
5502 - djm@cvs.openbsd.org 2014/07/03 05:32:36
5503 [ssh_config.5]
5504 mention '%%' escape sequence in HostName directives and how it may
5505 be used to specify IPv6 link-local addresses
5506
5507commit e6a407789e5432dd2e53336fb73476cc69048c54
5508Author: Damien Miller <djm@mindrot.org>
5509Date: Thu Jul 3 21:25:03 2014 +1000
5510
5511 - djm@cvs.openbsd.org 2014/07/03 04:36:45
5512 [digest.h]
5513 forward-declare struct sshbuf so consumers don't need to include sshbuf.h
5514
5515commit 4a1d3d50f02d0a8a4ef95ea4749293cbfb89f919
5516Author: Damien Miller <djm@mindrot.org>
5517Date: Thu Jul 3 21:24:40 2014 +1000
5518
5519 - djm@cvs.openbsd.org 2014/07/03 03:47:27
5520 [ssh-keygen.c]
5521 When hashing or removing hosts using ssh-keygen, don't choke on
5522 @revoked markers and don't remove @cert-authority markers;
5523 bz#2241, reported by mlindgren AT runelind.net
5524
5525commit e5c0d52ceb575c3db8c313e0b1aa3845943d7ba8
5526Author: Damien Miller <djm@mindrot.org>
5527Date: Thu Jul 3 21:24:19 2014 +1000
5528
5529 - djm@cvs.openbsd.org 2014/07/03 03:34:09
5530 [gss-serv.c session.c ssh-keygen.c]
5531 standardise on NI_MAXHOST for gethostname() string lengths; about
5532 1/2 the cases were using it already. Fixes bz#2239 en passant
5533
5534commit c174a3b7c14e0d178c61219de2aa1110e209950c
5535Author: Damien Miller <djm@mindrot.org>
5536Date: Thu Jul 3 21:23:24 2014 +1000
5537
5538 - djm@cvs.openbsd.org 2014/07/03 03:26:43
5539 [digest-openssl.c]
5540 use EVP_Digest() for one-shot hash instead of creating, updating,
5541 finalising and destroying a context.
5542 bz#2231, based on patch from Timo Teras
5543
5544commit d7ca2cd31ecc4d63a055e2dcc4bf35c13f2db4c5
5545Author: Damien Miller <djm@mindrot.org>
5546Date: Thu Jul 3 21:23:01 2014 +1000
5547
5548 - djm@cvs.openbsd.org 2014/07/03 03:15:01
5549 [ssh-add.c]
5550 make stdout line-buffered; saves partial output getting lost when
5551 ssh-add fatal()s part-way through (e.g. when listing keys from an
5552 agent that supports key types that ssh-add doesn't);
5553 bz#2234, reported by Phil Pennock
5554
5555commit b1e967c8d7c7578dd0c172d85b3046cf54ea42ba
5556Author: Damien Miller <djm@mindrot.org>
5557Date: Thu Jul 3 21:22:40 2014 +1000
5558
5559 - djm@cvs.openbsd.org 2014/07/03 03:11:03
5560 [ssh-agent.c]
5561 Only cleanup agent socket in the main agent process and not in any
5562 subprocesses it may have started (e.g. forked askpass). Fixes
5563 agent sockets being zapped when askpass processes fatal();
5564 bz#2236 patch from Dmitry V. Levin
5565
5566commit 61e28e55c3438d796b02ef878bcd28620d452670
5567Author: Damien Miller <djm@mindrot.org>
5568Date: Thu Jul 3 21:22:22 2014 +1000
5569
5570 - djm@cvs.openbsd.org 2014/07/03 01:45:38
5571 [sshkey.c]
5572 make Ed25519 keys' title fit properly in the randomart border; bz#2247
5573 based on patch from Christian Hesse
5574
5575commit 9eb4cd9a32c32d40d36450b68ed93badc6a94c68
5576Author: Damien Miller <djm@mindrot.org>
5577Date: Thu Jul 3 13:29:50 2014 +1000
5578
5579 - (djm) [monitor_fdpass.c] Use sys/poll.h if poll.h doesn't exist;
5580 bz#2237
5581
5582commit 8da0fa24934501909408327298097b1629b89eaa
5583Author: Damien Miller <djm@mindrot.org>
5584Date: Thu Jul 3 11:54:19 2014 +1000
5585
5586 - (djm) [digest-openssl.c configure.ac] Disable RIPEMD160 if libcrypto
5587 doesn't support it.
5588
5589commit 81309c857dd0dbc0a1245a16d621c490ad48cfbb
5590Author: Damien Miller <djm@mindrot.org>
5591Date: Wed Jul 2 17:45:55 2014 +1000
5592
5593 - (djm) [regress/Makefile] fix execution of sshkey unit/fuzz test
5594
5595commit 82b2482ce68654815ee049b9bf021bb362a35ff2
5596Author: Damien Miller <djm@mindrot.org>
5597Date: Wed Jul 2 17:43:41 2014 +1000
5598
5599 - (djm) [sshkey.c] Conditionalise inclusion of util.h
5600
5601commit dd8b1dd7933eb6f5652641b0cdced34a387f2e80
5602Author: Damien Miller <djm@mindrot.org>
5603Date: Wed Jul 2 17:38:31 2014 +1000
5604
5605 - djm@cvs.openbsd.org 2014/06/24 01:14:17
5606 [Makefile.in regress/Makefile regress/unittests/Makefile]
5607 [regress/unittests/sshkey/Makefile]
5608 [regress/unittests/sshkey/common.c]
5609 [regress/unittests/sshkey/common.h]
5610 [regress/unittests/sshkey/mktestdata.sh]
5611 [regress/unittests/sshkey/test_file.c]
5612 [regress/unittests/sshkey/test_fuzz.c]
5613 [regress/unittests/sshkey/test_sshkey.c]
5614 [regress/unittests/sshkey/tests.c]
5615 [regress/unittests/sshkey/testdata/dsa_1]
5616 [regress/unittests/sshkey/testdata/dsa_1-cert.fp]
5617 [regress/unittests/sshkey/testdata/dsa_1-cert.pub]
5618 [regress/unittests/sshkey/testdata/dsa_1.fp]
5619 [regress/unittests/sshkey/testdata/dsa_1.fp.bb]
5620 [regress/unittests/sshkey/testdata/dsa_1.param.g]
5621 [regress/unittests/sshkey/testdata/dsa_1.param.priv]
5622 [regress/unittests/sshkey/testdata/dsa_1.param.pub]
5623 [regress/unittests/sshkey/testdata/dsa_1.pub]
5624 [regress/unittests/sshkey/testdata/dsa_1_pw]
5625 [regress/unittests/sshkey/testdata/dsa_2]
5626 [regress/unittests/sshkey/testdata/dsa_2.fp]
5627 [regress/unittests/sshkey/testdata/dsa_2.fp.bb]
5628 [regress/unittests/sshkey/testdata/dsa_2.pub]
5629 [regress/unittests/sshkey/testdata/dsa_n]
5630 [regress/unittests/sshkey/testdata/dsa_n_pw]
5631 [regress/unittests/sshkey/testdata/ecdsa_1]
5632 [regress/unittests/sshkey/testdata/ecdsa_1-cert.fp]
5633 [regress/unittests/sshkey/testdata/ecdsa_1-cert.pub]
5634 [regress/unittests/sshkey/testdata/ecdsa_1.fp]
5635 [regress/unittests/sshkey/testdata/ecdsa_1.fp.bb]
5636 [regress/unittests/sshkey/testdata/ecdsa_1.param.curve]
5637 [regress/unittests/sshkey/testdata/ecdsa_1.param.priv]
5638 [regress/unittests/sshkey/testdata/ecdsa_1.param.pub]
5639 [regress/unittests/sshkey/testdata/ecdsa_1.pub]
5640 [regress/unittests/sshkey/testdata/ecdsa_1_pw]
5641 [regress/unittests/sshkey/testdata/ecdsa_2]
5642 [regress/unittests/sshkey/testdata/ecdsa_2.fp]
5643 [regress/unittests/sshkey/testdata/ecdsa_2.fp.bb]
5644 [regress/unittests/sshkey/testdata/ecdsa_2.param.curve]
5645 [regress/unittests/sshkey/testdata/ecdsa_2.param.priv]
5646 [regress/unittests/sshkey/testdata/ecdsa_2.param.pub]
5647 [regress/unittests/sshkey/testdata/ecdsa_2.pub]
5648 [regress/unittests/sshkey/testdata/ecdsa_n]
5649 [regress/unittests/sshkey/testdata/ecdsa_n_pw]
5650 [regress/unittests/sshkey/testdata/ed25519_1]
5651 [regress/unittests/sshkey/testdata/ed25519_1-cert.fp]
5652 [regress/unittests/sshkey/testdata/ed25519_1-cert.pub]
5653 [regress/unittests/sshkey/testdata/ed25519_1.fp]
5654 [regress/unittests/sshkey/testdata/ed25519_1.fp.bb]
5655 [regress/unittests/sshkey/testdata/ed25519_1.pub]
5656 [regress/unittests/sshkey/testdata/ed25519_1_pw]
5657 [regress/unittests/sshkey/testdata/ed25519_2]
5658 [regress/unittests/sshkey/testdata/ed25519_2.fp]
5659 [regress/unittests/sshkey/testdata/ed25519_2.fp.bb]
5660 [regress/unittests/sshkey/testdata/ed25519_2.pub]
5661 [regress/unittests/sshkey/testdata/pw]
5662 [regress/unittests/sshkey/testdata/rsa1_1]
5663 [regress/unittests/sshkey/testdata/rsa1_1.fp]
5664 [regress/unittests/sshkey/testdata/rsa1_1.fp.bb]
5665 [regress/unittests/sshkey/testdata/rsa1_1.param.n]
5666 [regress/unittests/sshkey/testdata/rsa1_1.pub]
5667 [regress/unittests/sshkey/testdata/rsa1_1_pw]
5668 [regress/unittests/sshkey/testdata/rsa1_2]
5669 [regress/unittests/sshkey/testdata/rsa1_2.fp]
5670 [regress/unittests/sshkey/testdata/rsa1_2.fp.bb]
5671 [regress/unittests/sshkey/testdata/rsa1_2.param.n]
5672 [regress/unittests/sshkey/testdata/rsa1_2.pub]
5673 [regress/unittests/sshkey/testdata/rsa_1]
5674 [regress/unittests/sshkey/testdata/rsa_1-cert.fp]
5675 [regress/unittests/sshkey/testdata/rsa_1-cert.pub]
5676 [regress/unittests/sshkey/testdata/rsa_1.fp]
5677 [regress/unittests/sshkey/testdata/rsa_1.fp.bb]
5678 [regress/unittests/sshkey/testdata/rsa_1.param.n]
5679 [regress/unittests/sshkey/testdata/rsa_1.param.p]
5680 [regress/unittests/sshkey/testdata/rsa_1.param.q]
5681 [regress/unittests/sshkey/testdata/rsa_1.pub]
5682 [regress/unittests/sshkey/testdata/rsa_1_pw]
5683 [regress/unittests/sshkey/testdata/rsa_2]
5684 [regress/unittests/sshkey/testdata/rsa_2.fp]
5685 [regress/unittests/sshkey/testdata/rsa_2.fp.bb]
5686 [regress/unittests/sshkey/testdata/rsa_2.param.n]
5687 [regress/unittests/sshkey/testdata/rsa_2.param.p]
5688 [regress/unittests/sshkey/testdata/rsa_2.param.q]
5689 [regress/unittests/sshkey/testdata/rsa_2.pub]
5690 [regress/unittests/sshkey/testdata/rsa_n]
5691 [regress/unittests/sshkey/testdata/rsa_n_pw]
5692 unit and fuzz tests for new key API
5693
5694commit c1dc24b71f087f385b92652b9673f52af64e0428
5695Author: Damien Miller <djm@mindrot.org>
5696Date: Wed Jul 2 17:02:03 2014 +1000
5697
5698 - djm@cvs.openbsd.org 2014/06/24 01:04:43
5699 [regress/krl.sh]
5700 regress test for broken consecutive revoked serial number ranges
5701
5702commit 43d3ed2dd3feca6d0326c7dc82588d2faa115e92
5703Author: Damien Miller <djm@mindrot.org>
5704Date: Wed Jul 2 17:01:08 2014 +1000
5705
5706 - djm@cvs.openbsd.org 2014/05/21 07:04:21
5707 [regress/integrity.sh]
5708 when failing because of unexpected output, show the offending output
5709
5710commit 5a96707ffc8d227c2e7d94fa6b0317f8a152cf4e
5711Author: Damien Miller <djm@mindrot.org>
5712Date: Wed Jul 2 15:38:05 2014 +1000
5713
5714 - djm@cvs.openbsd.org 2014/04/30 05:32:00
5715 [regress/Makefile]
5716 unit tests for new buffer API; including basic fuzz testing
5717 NB. Id sync only.
5718
5719commit 3ff92ba756aee48e4ae3e0aeff7293517b3dd185
5720Author: Damien Miller <djm@mindrot.org>
5721Date: Wed Jul 2 15:33:09 2014 +1000
5722
5723 - djm@cvs.openbsd.org 2014/06/30 12:54:39
5724 [key.c]
5725 suppress spurious error message when loading key with a passphrase;
5726 reported by kettenis@ ok markus@
5727 - djm@cvs.openbsd.org 2014/07/02 04:59:06
5728 [cipher-3des1.c]
5729 fix ssh protocol 1 on the server that regressed with the sshkey change
5730 (sometimes fatal() after auth completed), make file return useful status
5731 codes.
5732 NB. Id sync only for these two. They were bundled into the sshkey merge
5733 above, since it was easier to sync the entire file and then apply
5734 portable-specific changed atop it.
5735
5736commit ec3d0e24a1e46873d80507f5cd8ee6d0d03ac5dc
5737Author: Damien Miller <djm@mindrot.org>
5738Date: Wed Jul 2 15:30:00 2014 +1000
5739
5740 - markus@cvs.openbsd.org 2014/06/27 18:50:39
5741 [ssh-add.c]
5742 fix loading of private keys
5743
5744commit 4b3ed647d5b328cf68e6a8ffbee490d8e0683e82
5745Author: Damien Miller <djm@mindrot.org>
5746Date: Wed Jul 2 15:29:40 2014 +1000
5747
5748 - markus@cvs.openbsd.org 2014/06/27 16:41:56
5749 [channels.c channels.h clientloop.c ssh.c]
5750 fix remote fwding with same listen port but different listen address
5751 with gerhard@, ok djm@
5752
5753commit 9e01ff28664921ce9b6500681333e42fb133b4d0
5754Author: Damien Miller <djm@mindrot.org>
5755Date: Wed Jul 2 15:29:21 2014 +1000
5756
5757 - deraadt@cvs.openbsd.org 2014/06/25 14:16:09
5758 [sshbuf.c]
5759 unblock SIGSEGV before raising it
5760 ok djm
5761
5762commit 1845fe6bda0729e52f4c645137f4fc3070b5438a
5763Author: Damien Miller <djm@mindrot.org>
5764Date: Wed Jul 2 15:29:01 2014 +1000
5765
5766 - djm@cvs.openbsd.org 2014/06/24 02:21:01
5767 [scp.c]
5768 when copying local->remote fails during read, don't send uninitialised
5769 heap to the remote end. Reported by Jann Horn
5770
5771commit 19439e9a2a0ac0b4b3b1210e89695418beb1c883
5772Author: Damien Miller <djm@mindrot.org>
5773Date: Wed Jul 2 15:28:40 2014 +1000
5774
5775 - djm@cvs.openbsd.org 2014/06/24 02:19:48
5776 [ssh.c]
5777 don't fatal() when hostname canonicalisation fails with a
5778 ProxyCommand in use; continue and allow the ProxyCommand to
5779 connect anyway (e.g. to a host with a name outside the DNS
5780 behind a bastion)
5781
5782commit 8668706d0f52654fe64c0ca41a96113aeab8d2b8
5783Author: Damien Miller <djm@mindrot.org>
5784Date: Wed Jul 2 15:28:02 2014 +1000
5785
5786 - djm@cvs.openbsd.org 2014/06/24 01:13:21
5787 [Makefile.in auth-bsdauth.c auth-chall.c auth-options.c auth-rsa.c
5788 [auth2-none.c auth2-pubkey.c authfile.c authfile.h cipher-3des1.c
5789 [cipher-chachapoly.c cipher-chachapoly.h cipher.c cipher.h
5790 [digest-libc.c digest-openssl.c digest.h dns.c entropy.c hmac.h
5791 [hostfile.c key.c key.h krl.c monitor.c packet.c rsa.c rsa.h
5792 [ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c
5793 [ssh-keygen.c ssh-pkcs11-client.c ssh-pkcs11-helper.c ssh-pkcs11.c
5794 [ssh-rsa.c sshbuf-misc.c sshbuf.h sshconnect.c sshconnect1.c
5795 [sshconnect2.c sshd.c sshkey.c sshkey.h
5796 [openbsd-compat/openssl-compat.c openbsd-compat/openssl-compat.h]
5797 New key API: refactor key-related functions to be more library-like,
5798 existing API is offered as a set of wrappers.
5799
5800 with and ok markus@
5801
5802 Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew
5803 Dempsky and Ron Bowes for a detailed review a few months ago.
5804
5805 NB. This commit also removes portable OpenSSH support for OpenSSL
5806 <0.9.8e.
5807
5808commit 2cd7929250cf9e9f658d70dcd452f529ba08c942
5809Author: Damien Miller <djm@mindrot.org>
5810Date: Wed Jul 2 12:48:30 2014 +1000
5811
5812 - djm@cvs.openbsd.org 2014/06/24 00:52:02
5813 [krl.c]
5814 fix bug in KRL generation: multiple consecutive revoked certificate
5815 serial number ranges could be serialised to an invalid format.
5816
5817 Readers of a broken KRL caused by this bug will fail closed, so no
5818 should-have-been-revoked key will be accepted.
5819
5820commit 99db840ee8dbbd2b3fbc6c45d0ee2f6a65e96898
5821Author: Damien Miller <djm@mindrot.org>
5822Date: Wed Jul 2 12:48:04 2014 +1000
5823
5824 - naddy@cvs.openbsd.org 2014/06/18 15:42:09
5825 [sshbuf-getput-crypto.c]
5826 The ssh_get_bignum functions must accept the same range of bignums
5827 the corresponding ssh_put_bignum functions create. This fixes the
5828 use of 16384-bit RSA keys (bug reported by Eivind Evensen).
5829 ok djm@
5830
5831commit 84a89161a9629239b64171ef3e22ef6a3e462d51
5832Author: Damien Miller <djm@mindrot.org>
5833Date: Wed Jul 2 12:47:48 2014 +1000
5834
5835 - matthew@cvs.openbsd.org 2014/06/18 02:59:13
5836 [sandbox-systrace.c]
5837 Now that we have a dedicated getentropy(2) system call for
5838 arc4random(3), we can disallow __sysctl(2) in OpenSSH's systrace
5839 sandbox.
5840
5841 ok djm
5842
5843commit 51504ceec627c0ad57b9f75585c7b3d277f326be
5844Author: Damien Miller <djm@mindrot.org>
5845Date: Wed Jul 2 12:47:25 2014 +1000
5846
5847 - deraadt@cvs.openbsd.org 2014/06/13 08:26:29
5848 [sandbox-systrace.c]
5849 permit SYS_getentropy
5850 from matthew
5851
5852commit a261b8df59117f7dc52abb3a34b35a40c2c9fa88
5853Author: Tim Rice <tim@multitalents.net>
5854Date: Wed Jun 18 16:17:28 2014 -0700
5855
5856 - (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare
5857
5858commit 316fac6f18f87262a315c79bcf68b9f92c9337e4
5859Author: Darren Tucker <dtucker@zip.com.au>
5860Date: Tue Jun 17 23:06:07 2014 +1000
5861
5862 - (dtucker) [entropy.c openbsd-compat/openssl-compat.{c,h}
5863 openbsd-compat/regress/{.cvsignore,Makefile.in,opensslvertest.c}]
5864 Move the OpenSSL header/library version test into its own function and add
5865 tests for it. Fix it to allow fix version upgrades (but not downgrades).
5866 Prompted by chl@ via OpenSMTPD (issue #462) and Debian (bug #748150).
5867 ok djm@ chl@
5868
5869commit af665bb7b092a59104db1e65577851cf35b86e32
5870Author: Darren Tucker <dtucker@zip.com.au>
5871Date: Mon Jun 16 22:50:55 2014 +1000
5872
5873 - (dtucker) [defines.h] Fix undef of _PATH_MAILDIR. From rak at debian via
5874 OpenSMTPD and chl@
5875
5876commit f9696566fb41320820f3b257ab564fa321bb3751
5877Author: Darren Tucker <dtucker@zip.com.au>
5878Date: Fri Jun 13 11:06:04 2014 +1000
5879
5880 - (dtucker) [configure.ac] Remove tcpwrappers support, support has already
5881 been removed from sshd.c.
5882
5883commit 5e2b8894b0b24af4ad0a2f7aa33ebf255df7a8bc
5884Author: Tim Rice <tim@multitalents.net>
5885Date: Wed Jun 11 18:31:10 2014 -0700
5886
5887 - (tim) [regress/unittests/test_helper/test_helper.h] Add includes.h for
5888 u_intXX_t types.
5889
5890commit 985ee2cbc3e43bc65827c3c0d4df3faa99160c37
5891Author: Darren Tucker <dtucker@zip.com.au>
5892Date: Thu Jun 12 05:32:29 2014 +1000
5893
5894 - (dtucker) [regress/unittests/sshbuf/*.c regress/unittests/test_helper/*]
5895 Wrap stdlib.h include an ifdef for platforms that don't have it.
5896
5897commit cf5392c2db2bb1dbef9818511d34056404436109
5898Author: Darren Tucker <dtucker@zip.com.au>
5899Date: Thu Jun 12 05:22:49 2014 +1000
5900
5901 - (dtucker) [defines.h] Add va_copy if we don't already have it, taken from
5902 openbsd-compat/bsd-asprintf.c.
5903
5904commit 58538d795e0b662f2f4e5a7193f1204bbe992ddd
5905Author: Darren Tucker <dtucker@zip.com.au>
5906Date: Wed Jun 11 13:39:24 2014 +1000
5907
5908 - (dtucker) [bufaux.c bufbn.c bufec.c buffer.c] Pull in includes.h for
5909 compat stuff, specifically whether or not OpenSSL has ECC.
5910
5911commit eb012ac581fd0abc16ee86ee3a68cf07c8ce4d08
5912Author: Darren Tucker <dtucker@zip.com.au>
5913Date: Wed Jun 11 13:10:00 2014 +1000
5914
5915 - (dtucker) [openbsd-compat/arc4random.c] Use explicit_bzero instead of an
5916 assigment that might get optimized out. ok djm@
5917
5918commit b9609fd86c623d6d440e630f5f9a63295f7aea20
5919Author: Darren Tucker <dtucker@zip.com.au>
5920Date: Wed Jun 11 08:04:02 2014 +1000
5921
5922 - (dtucker) [sshbuf.h] Only declare ECC functions if building without
5923 OpenSSL or if OpenSSL has ECC.
5924
5925commit a54a040f66944c6e8913df8635a01a2327219be9
5926Author: Darren Tucker <dtucker@zip.com.au>
5927Date: Wed Jun 11 07:58:35 2014 +1000
5928
5929 - dtucker@cvs.openbsd.org 2014/06/10 21:46:11
5930 [sshbuf.h]
5931 Group ECC functions together to make things a little easier in -portable.
5932 "doesn't bother me" deraadt@
5933
5934commit 9f92c53bad04a89067756be8198d4ec2d8a08875
5935Author: Darren Tucker <dtucker@zip.com.au>
5936Date: Wed Jun 11 07:57:58 2014 +1000
5937
5938 - djm@cvs.openbsd.org 2014/06/05 22:17:50
5939 [sshconnect2.c]
5940 fix inverted test that caused PKCS#11 keys that were explicitly listed
5941 not to be preferred. Reported by Dirk-Willem van Gulik
5942
5943commit 15c254a25394f96643da2ad0f674acdc51e89856
5944Author: Darren Tucker <dtucker@zip.com.au>
5945Date: Wed Jun 11 07:38:49 2014 +1000
5946
5947 - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] ifdef
5948 ECC variable too.
5949
5950commit d7af0cc5bf273eeed0897a99420bc26841d07d8f
5951Author: Darren Tucker <dtucker@zip.com.au>
5952Date: Wed Jun 11 07:37:25 2014 +1000
5953
5954 - (dtucker) [myprosal.h] Don't include curve25519-sha256@libssh.org in
5955 the proposal if the version of OpenSSL we're using doesn't support ECC.
5956
5957commit 67508ac2563c33d582be181a3e777c65f549d22f
5958Author: Darren Tucker <dtucker@zip.com.au>
5959Date: Wed Jun 11 06:27:16 2014 +1000
5960
5961 - (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
5962 regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] Only do NISTP256
5963 curve tests if OpenSSL has them.
5964
5965commit 6482d90a65459a88c18c925368525855832272b3
5966Author: Damien Miller <djm@mindrot.org>
5967Date: Tue May 27 14:34:42 2014 +1000
5968
5969 - (djm) [configure.ac openbsd-compat/bsd-cygwin_util.c]
5970 [openbsd-compat/bsd-cygwin_util.h] On Cygwin, determine privilege
5971 separation user at runtime, since it may need to be a domain account.
5972 Patch from Corinna Vinschen.
5973
5974commit f9eb5e0734f7a7f6e975809eb54684d2a06a7ffc
5975Author: Damien Miller <djm@mindrot.org>
5976Date: Tue May 27 14:31:58 2014 +1000
5977
5978 - (djm) [contrib/cygwin/ssh-host-config] Updated Cygwin ssh-host-config
5979 from Corinna Vinschen, fixing a number of bugs and preparing for
5980 Cygwin 1.7.30.
5981
5982commit eae88744662e6b149f43ef071657727f1a157d95
5983Author: Damien Miller <djm@mindrot.org>
5984Date: Tue May 27 14:27:02 2014 +1000
5985
5986 - (djm) [cipher.c] Fix merge botch.
5987
5988commit 564b5e253c1d95c26a00e8288f0089a2571661c3
5989Author: Damien Miller <djm@mindrot.org>
5990Date: Thu May 22 08:23:59 2014 +1000
5991
5992 - (djm) [Makefile.in] typo in path
5993
5994commit e84d10302aeaf7a1acb05c451f8718143656856a
5995Author: Damien Miller <djm@mindrot.org>
5996Date: Wed May 21 17:13:36 2014 +1000
5997
5998 revert a diff I didn't mean to commit
5999
6000commit 795b86313f1f1aab9691666c4f2d5dae6e4acd50
6001Author: Damien Miller <djm@mindrot.org>
6002Date: Wed May 21 17:12:53 2014 +1000
6003
6004 - (djm) [misc.c] Use CLOCK_BOOTTIME in preference to CLOCK_MONOTONIC
6005 when it is available. It takes into account time spent suspended,
6006 thereby ensuring timeouts (e.g. for expiring agent keys) fire
6007 correctly. bz#2228 reported by John Haxby
6008
6009commit 18912775cb97c0b1e75e838d3c7d4b56648137b5
6010Author: Damien Miller <djm@mindrot.org>
6011Date: Wed May 21 17:06:46 2014 +1000
6012
6013 - (djm) [commit configure.ac defines.h sshpty.c] don't attempt to use
6014 vhangup on Linux. It doens't work for non-root users, and for them
6015 it just messes up the tty settings.
6016
6017commit 7f1c264d3049cd95234e91970ccb5406e1d15b27
6018Author: Damien Miller <djm@mindrot.org>
6019Date: Thu May 15 18:01:52 2014 +1000
6020
6021 - (djm) [sshbuf.c] need __predict_false
6022
6023commit e7429f2be8643e1100380a8a7389d85cc286c8fe
6024Author: Damien Miller <djm@mindrot.org>
6025Date: Thu May 15 18:01:01 2014 +1000
6026
6027 - (djm) [regress/Makefile Makefile.in]
6028 [regress/unittests/sshbuf/test_sshbuf.c
6029 [regress/unittests/sshbuf/test_sshbuf_fixed.c]
6030 [regress/unittests/sshbuf/test_sshbuf_fuzz.c]
6031 [regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
6032 [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
6033 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
6034 [regress/unittests/sshbuf/test_sshbuf_misc.c]
6035 [regress/unittests/sshbuf/tests.c]
6036 [regress/unittests/test_helper/fuzz.c]
6037 [regress/unittests/test_helper/test_helper.c]
6038 Hook new unit tests into the build and "make tests"
6039
6040commit def1de086707b0e6b046fe7e115c60aca0227a99
6041Author: Damien Miller <djm@mindrot.org>
6042Date: Thu May 15 15:17:15 2014 +1000
6043
6044 - (djm) [regress/unittests/Makefile]
6045 [regress/unittests/Makefile.inc]
6046 [regress/unittests/sshbuf/Makefile]
6047 [regress/unittests/sshbuf/test_sshbuf.c]
6048 [regress/unittests/sshbuf/test_sshbuf_fixed.c]
6049 [regress/unittests/sshbuf/test_sshbuf_fuzz.c]
6050 [regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
6051 [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
6052 [regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
6053 [regress/unittests/sshbuf/test_sshbuf_misc.c]
6054 [regress/unittests/sshbuf/tests.c]
6055 [regress/unittests/test_helper/Makefile]
6056 [regress/unittests/test_helper/fuzz.c]
6057 [regress/unittests/test_helper/test_helper.c]
6058 [regress/unittests/test_helper/test_helper.h]
6059 Import new unit tests from OpenBSD; not yet hooked up to build.
6060
6061commit 167685756fde8bc213a8df2c8e1848e312db0f46
6062Author: Damien Miller <djm@mindrot.org>
6063Date: Thu May 15 15:08:40 2014 +1000
6064
6065 - logan@cvs.openbsd.org 2014/05/04 10:40:59
6066 [connect-privsep.sh]
6067 Remove the Z flag from the list of malloc options as it
6068 was removed from malloc.c 10 days ago.
6069
6070 OK from miod@
6071
6072commit d0b69fe90466920d69c96069312e24b581771bd7
6073Author: Damien Miller <djm@mindrot.org>
6074Date: Thu May 15 15:08:19 2014 +1000
6075
6076 - dtucker@cvs.openbsd.org 2014/05/03 18:46:14
6077 [proxy-connect.sh]
6078 Add tests for with and without compression, with and without privsep.
6079
6080commit edb1af50441d19fb2dd9ccb4d75bf14473fca584
6081Author: Damien Miller <djm@mindrot.org>
6082Date: Thu May 15 15:07:53 2014 +1000
6083
6084 - djm@cvs.openbsd.org 2014/04/21 22:15:37
6085 [dhgex.sh integrity.sh kextype.sh rekey.sh try-ciphers.sh]
6086 repair regress tests broken by server-side default cipher/kex/mac changes
6087 by ensuring that the option under test is included in the server's
6088 algorithm list
6089
6090commit 54343e95c70994695f8842fb22836321350198d3
6091Author: Damien Miller <djm@mindrot.org>
6092Date: Thu May 15 15:07:33 2014 +1000
6093
6094 - djm@cvs.openbsd.org 2014/03/13 20:44:49
6095 [login-timeout.sh]
6096 this test is a sorry mess of race conditions; add another sleep
6097 to avoid a failure on slow machines (at least until I find a
6098 better way)
6099
6100commit e5b9f0f2ee6e133894307e44e862b66426990733
6101Author: Damien Miller <djm@mindrot.org>
6102Date: Thu May 15 14:58:07 2014 +1000
6103
6104 - (djm) [Makefile.in configure.ac sshbuf-getput-basic.c]
6105 [sshbuf-getput-crypto.c sshbuf.c] compilation and portability fixes
6106
6107commit b9c566788a9ebd6a9d466f47a532124f111f0542
6108Author: Damien Miller <djm@mindrot.org>
6109Date: Thu May 15 14:43:37 2014 +1000
6110
6111 - (djm) [configure.ac] Unconditionally define WITH_OPENSSL until we write
6112 portability glue to support building without libcrypto
6113
6114commit 3dc27178b42234b653a32f7a87292d7994045ee3
6115Author: Damien Miller <djm@mindrot.org>
6116Date: Thu May 15 14:37:59 2014 +1000
6117
6118 - logan@cvs.openbsd.org 2014/05/05 07:02:30
6119 [sftp.c]
6120 Zap extra whitespace.
6121
6122 OK from djm@ and dtucker@
6123
6124commit c31a0cd5b31961f01c5b731f62a6cb9d4f767472
6125Author: Damien Miller <djm@mindrot.org>
6126Date: Thu May 15 14:37:39 2014 +1000
6127
6128 - markus@cvs.openbsd.org 2014/05/03 17:20:34
6129 [monitor.c packet.c packet.h]
6130 unbreak compression, by re-init-ing the compression code in the
6131 post-auth child. the new buffer code is more strict, and requires
6132 buffer_init() while the old code was happy after a bzero();
6133 originally from djm@
6134
6135commit 686c7d9ee6f44b2be4128d7860b6b37adaeba733
6136Author: Damien Miller <djm@mindrot.org>
6137Date: Thu May 15 14:37:03 2014 +1000
6138
6139 - djm@cvs.openbsd.org 2014/05/02 03:27:54
6140 [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c]
6141 [misc.h poly1305.h ssh-pkcs11.c defines.h]
6142 revert __bounded change; it causes way more problems for portable than
6143 it solves; pointed out by dtucker@
6144
6145commit 294c58a007cfb2f3bddc4fc3217e255857ffb9bf
6146Author: Damien Miller <djm@mindrot.org>
6147Date: Thu May 15 14:35:03 2014 +1000
6148
6149 - naddy@cvs.openbsd.org 2014/04/30 19:07:48
6150 [mac.c myproposal.h umac.c]
6151 UMAC can use our local fallback implementation of AES when OpenSSL isn't
6152 available. Glue code straight from Ted Krovetz's original umac.c.
6153 ok markus@
6154
6155commit 05e82c3b963c33048128baf72a6f6b3a1c10b4c1
6156Author: Damien Miller <djm@mindrot.org>
6157Date: Thu May 15 14:33:43 2014 +1000
6158
6159 - djm@cvs.openbsd.org 2014/04/30 05:29:56
6160 [bufaux.c bufbn.c bufec.c buffer.c buffer.h sshbuf-getput-basic.c]
6161 [sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c sshbuf.h ssherr.c]
6162 [ssherr.h]
6163 New buffer API; the first installment of the conversion/replacement
6164 of OpenSSH's internals to make them usable as a standalone library.
6165
6166 This includes a set of wrappers to make it compatible with the
6167 existing buffer API so replacement can occur incrementally.
6168
6169 With and ok markus@
6170
6171 Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew
6172 Dempsky and Ron Bowes for a detailed review.
6173
6174commit 380948180f847a26f2d0c85b4dad3dca2ed2fd8b
6175Author: Damien Miller <djm@mindrot.org>
6176Date: Thu May 15 14:25:18 2014 +1000
6177
6178 - dtucker@cvs.openbsd.org 2014/04/29 20:36:51
6179 [sftp.c]
6180 Don't attempt to append a nul quote char to the filename. Should prevent
6181 fatal'ing with "el_insertstr failed" when there's a single quote char
6182 somewhere in the string. bz#2238, ok markus@
6183
6184commit d7fd8bedd4619a2ec7fd02aae4c4e1db4431ad9f
6185Author: Damien Miller <djm@mindrot.org>
6186Date: Thu May 15 14:24:59 2014 +1000
6187
6188 - dtucker@cvs.openbsd.org 2014/04/29 19:58:50
6189 [sftp.c]
6190 Move nulling of variable next to where it's freed. ok markus@
6191
6192commit 1f0311c7c7d10c94ff7f823de9c5b2ed79368b14
6193Author: Damien Miller <djm@mindrot.org>
6194Date: Thu May 15 14:24:09 2014 +1000
6195
6196 - markus@cvs.openbsd.org 2014/04/29 18:01:49
6197 [auth.c authfd.c authfile.c bufaux.c cipher.c cipher.h hostfile.c]
6198 [kex.c key.c mac.c monitor.c monitor_wrap.c myproposal.h packet.c]
6199 [roaming_client.c ssh-agent.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c]
6200 [ssh-pkcs11.h ssh.c sshconnect.c sshconnect2.c sshd.c]
6201 make compiling against OpenSSL optional (make OPENSSL=no);
6202 reduces algorithms to curve25519, aes-ctr, chacha, ed25519;
6203 allows us to explore further options; with and ok djm
6204
6205commit c5893785564498cea73cb60d2cf199490483e080
6206Author: Damien Miller <djm@mindrot.org>
6207Date: Thu May 15 13:48:49 2014 +1000
6208
6209 - djm@cvs.openbsd.org 2014/04/29 13:10:30
6210 [clientloop.c serverloop.c]
6211 bz#1818 - don't send channel success/failre replies on channels that
6212 have sent a close already; analysis and patch from Simon Tatham;
6213 ok markus@
6214
6215commit 633de33b192d808d87537834c316dc8b75fe1880
6216Author: Damien Miller <djm@mindrot.org>
6217Date: Thu May 15 13:48:26 2014 +1000
6218
6219 - djm@cvs.openbsd.org 2014/04/28 03:09:18
6220 [authfile.c bufaux.c buffer.h channels.c krl.c mux.c packet.c packet.h]
6221 [ssh-keygen.c]
6222 buffer_get_string_ptr's return should be const to remind
6223 callers that futzing with it will futz with the actual buffer
6224 contents
6225
6226commit 15271907843e4ae50dcfc83b3594014cf5e9607b
6227Author: Damien Miller <djm@mindrot.org>
6228Date: Thu May 15 13:47:56 2014 +1000
6229
6230 - djm@cvs.openbsd.org 2014/04/23 12:42:34
6231 [readconf.c]
6232 don't record duplicate IdentityFiles
6233
6234commit 798a02568b13a2e46efebd81f08c8f4bb33a6dc7
6235Author: Damien Miller <djm@mindrot.org>
6236Date: Thu May 15 13:47:37 2014 +1000
6237
6238 - jmc@cvs.openbsd.org 2014/04/22 14:16:30
6239 [sftp.1]
6240 zap eol whitespace;
6241
6242commit d875ff78d2b8436807381051de112f0ebf9b9ae1
6243Author: Damien Miller <djm@mindrot.org>
6244Date: Thu May 15 13:47:15 2014 +1000
6245
6246 - logan@cvs.openbsd.org 2014/04/22 12:42:04
6247 [sftp.1]
6248 Document sftp upload resume.
6249 OK from djm@, with feedback from okan@.
6250
6251commit b15cd7bb097fd80dc99520f45290ef775da1ef19
6252Author: Damien Miller <djm@mindrot.org>
6253Date: Thu May 15 13:46:52 2014 +1000
6254
6255 - logan@cvs.openbsd.org 2014/04/22 10:07:12
6256 [sftp.c]
6257 Sort the sftp command list.
6258 OK from djm@
6259
6260commit d8accc0aa72656ba63d50937165c5ae49db1dcd6
6261Author: Damien Miller <djm@mindrot.org>
6262Date: Thu May 15 13:46:25 2014 +1000
6263
6264 - logan@cvs.openbsd.org 2014/04/21 14:36:16
6265 [sftp-client.c sftp-client.h sftp.c]
6266 Implement sftp upload resume support.
6267 OK from djm@, with input from guenther@, mlarkin@ and
6268 okan@
6269
6270commit 16cd3928a87d20c77b13592a74b60b08621d3ce6
6271Author: Damien Miller <djm@mindrot.org>
6272Date: Thu May 15 13:45:58 2014 +1000
6273
6274 - logan@cvs.openbsd.org 2014/04/20 09:24:26
6275 [dns.c dns.h ssh-keygen.c]
6276 Add support for SSHFP DNS records for ED25519 key types.
6277 OK from djm@
6278
6279commit ec0b67eb3b4e12f296ced1fafa01860c374f7eea
6280Author: Damien Miller <djm@mindrot.org>
6281Date: Thu May 15 13:45:26 2014 +1000
6282
6283 - (djm) [rijndael.c rijndael.h] Sync with newly-ressurected versions ine
6284 OpenBSD
6285
6286commit f028460d0b2e5a584355321015cde69bf6fd933e
6287Author: Darren Tucker <dtucker@zip.com.au>
6288Date: Thu May 1 02:24:35 2014 +1000
6289
6290 - (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already
6291 have it. Only attempt to use __attribute__(__bounded__) for gcc.
6292
6293commit b628cc4c3e4a842bab5e4584d18c2bc5fa4d0edf
6294Author: Damien Miller <djm@mindrot.org>
6295Date: Sun Apr 20 13:33:58 2014 +1000
6296
6297 - djm@cvs.openbsd.org 2014/04/20 02:49:32
6298 [compat.c]
6299 add a canonical 6.6 + curve25519 bignum fix fake version that I can
6300 recommend people use ahead of the openssh-6.7 release
6301
6302commit 888566913933a802f3a329ace123ebcb7154cf78
6303Author: Damien Miller <djm@mindrot.org>
6304Date: Sun Apr 20 13:33:19 2014 +1000
6305
6306 - djm@cvs.openbsd.org 2014/04/20 02:30:25
6307 [misc.c misc.h umac.c]
6308 use get/put_u32 to load values rather than *((UINT32 *)p) that breaks on
6309 strict-alignment architectures; reported by and ok stsp@
6310
6311commit 16f85cbc7e5139950e6a38317e7c8b368beafa5d
6312Author: Damien Miller <djm@mindrot.org>
6313Date: Sun Apr 20 13:29:28 2014 +1000
6314
6315 - tedu@cvs.openbsd.org 2014/04/19 18:42:19
6316 [ssh.1]
6317 delete .xr to hosts.equiv. there's still an unfortunate amount of
6318 documentation referring to rhosts equivalency in here.
6319
6320commit 69cb24b7356ec3f0fc5ff04a68f98f2c55c766f4
6321Author: Damien Miller <djm@mindrot.org>
6322Date: Sun Apr 20 13:29:06 2014 +1000
6323
6324 - tedu@cvs.openbsd.org 2014/04/19 18:15:16
6325 [sshd.8]
6326 remove some really old rsh references
6327
6328commit 84c1e7bca8c4ceaccf4d5557e39a833585a3c77e
6329Author: Damien Miller <djm@mindrot.org>
6330Date: Sun Apr 20 13:27:53 2014 +1000
6331
6332 - tedu@cvs.openbsd.org 2014/04/19 14:53:48
6333 [ssh-keysign.c sshd.c]
6334 Delete futile calls to RAND_seed. ok djm
6335 NB. Id sync only. This only applies to OpenBSD's libcrypto slashathon
6336
6337commit 0e6b67423b8662f9ca4c92750309e144fd637ef1
6338Author: Damien Miller <djm@mindrot.org>
6339Date: Sun Apr 20 13:27:01 2014 +1000
6340
6341 - djm@cvs.openbsd.org 2014/04/19 05:54:59
6342 [compat.c]
6343 missing wildcard; pointed out by naddy@
6344
6345commit 9395b28223334826837c15e8c1bb4dfb3b0d2ca5
6346Author: Damien Miller <djm@mindrot.org>
6347Date: Sun Apr 20 13:25:30 2014 +1000
6348
6349 - djm@cvs.openbsd.org 2014/04/18 23:52:25
6350 [compat.c compat.h sshconnect2.c sshd.c version.h]
6351 OpenSSH 6.5 and 6.6 have a bug that causes ~0.2% of connections
6352 using the curve25519-sha256@libssh.org KEX exchange method to fail
6353 when connecting with something that implements the spec properly.
6354
6355 Disable this KEX method when speaking to one of the affected
6356 versions.
6357
6358 reported by Aris Adamantiadis; ok markus@
6359
6360commit 8c492da58f8ceb85cf5f7066f23e26fb813a963d
6361Author: Damien Miller <djm@mindrot.org>
6362Date: Sun Apr 20 13:25:09 2014 +1000
6363
6364 - djm@cvs.openbsd.org 2014/04/16 23:28:12
6365 [ssh-agent.1]
6366 remove the identity files from this manpage - ssh-agent doesn't deal
6367 with them at all and the same information is duplicated in ssh-add.1
6368 (which does deal with them); prodded by deraadt@
6369
6370commit adbfdbbdccc70c9bd70d81ae096db115445c6e26
6371Author: Damien Miller <djm@mindrot.org>
6372Date: Sun Apr 20 13:24:49 2014 +1000
6373
6374 - djm@cvs.openbsd.org 2014/04/16 23:22:45
6375 [bufaux.c]
6376 skip leading zero bytes in buffer_put_bignum2_from_string();
6377 reported by jan AT mojzis.com; ok markus@
6378
6379commit 75c62728dc87af6805696eeb520b9748faa136c8
6380Author: Damien Miller <djm@mindrot.org>
6381Date: Sun Apr 20 13:24:31 2014 +1000
6382
6383 - djm@cvs.openbsd.org 2014/04/12 04:55:53
6384 [sshd.c]
6385 avoid crash at exit: check that pmonitor!=NULL before dereferencing;
6386 bz#2225, patch from kavi AT juniper.net
6387
6388commit 2a328437fb1b0976f2f4522d8645803d5a5d0967
6389Author: Damien Miller <djm@mindrot.org>
6390Date: Sun Apr 20 13:24:01 2014 +1000
6391
6392 - djm@cvs.openbsd.org 2014/04/01 05:32:57
6393 [packet.c]
6394 demote a debug3 to PACKET_DEBUG; ok markus@
6395
6396commit 7d6a9fb660c808882d064e152d6070ffc3844c3f
6397Author: Damien Miller <djm@mindrot.org>
6398Date: Sun Apr 20 13:23:43 2014 +1000
6399
6400 - djm@cvs.openbsd.org 2014/04/01 03:34:10
6401 [sshconnect.c]
6402 When using VerifyHostKeyDNS with a DNSSEC resolver, down-convert any
6403 certificate keys to plain keys and attempt SSHFP resolution.
6404
6405 Prevents a server from skipping SSHFP lookup and forcing a new-hostkey
6406 dialog by offering only certificate keys.
6407
6408 Reported by mcv21 AT cam.ac.uk
6409
6410commit fcd62c0b66b8415405ed0af29c236329eb88cc0f
6411Author: Damien Miller <djm@mindrot.org>
6412Date: Sun Apr 20 13:23:21 2014 +1000
6413
6414 - djm@cvs.openbsd.org 2014/04/01 02:05:27
6415 [ssh-keysign.c]
6416 include fingerprint of key not found
6417 use arc4random_buf() instead of loop+arc4random()
6418
6419commit 43b156cf72f900f88065b0a1c1ebd09ab733ca46
6420Author: Damien Miller <djm@mindrot.org>
6421Date: Sun Apr 20 13:23:03 2014 +1000
6422
6423 - jmc@cvs.openbsd.org 2014/03/31 13:39:34
6424 [ssh-keygen.1]
6425 the text for the -K option was inserted in the wrong place in -r1.108;
6426 fix From: Matthew Clarke
6427
6428commit c1621c84f2dc1279065ab9fde2aa9327af418900
6429Author: Damien Miller <djm@mindrot.org>
6430Date: Sun Apr 20 13:22:46 2014 +1000
6431
6432 - naddy@cvs.openbsd.org 2014/03/28 05:17:11
6433 [ssh_config.5 sshd_config.5]
6434 sync available and default algorithms, improve algorithm list formatting
6435 help from jmc@ and schwarze@, ok deraadt@
6436
6437commit f2719b7c2b8a3b14d778d8a6d8dc729b5174b054
6438Author: Damien Miller <djm@mindrot.org>
6439Date: Sun Apr 20 13:22:18 2014 +1000
6440
6441 - tedu@cvs.openbsd.org 2014/03/26 19:58:37
6442 [sshd.8 sshd.c]
6443 remove libwrap support. ok deraadt djm mfriedl
6444
6445commit 4f40209aa4060b9c066a2f0d9332ace7b8dfb391
6446Author: Damien Miller <djm@mindrot.org>
6447Date: Sun Apr 20 13:21:22 2014 +1000
6448
6449 - djm@cvs.openbsd.org 2014/03/26 04:55:35
6450 [chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c
6451 [misc.h poly1305.h ssh-pkcs11.c]
6452 use __bounded(...) attribute recently added to sys/cdefs.h instead of
6453 longform __attribute__(__bounded(...));
6454
6455 for brevity and a warning free compilation with llvm/clang
6456
6457commit 9235a030ad1b16903fb495d81544e0f7c7449523
6458Author: Damien Miller <djm@mindrot.org>
6459Date: Sun Apr 20 13:17:20 2014 +1000
6460
6461 Three commits in one (since they touch the same heavily-diverged file
6462 repeatedly):
6463
6464 - markus@cvs.openbsd.org 2014/03/25 09:40:03
6465 [myproposal.h]
6466 trimm default proposals.
6467
6468 This commit removes the weaker pre-SHA2 hashes, the broken ciphers
6469 (arcfour), and the broken modes (CBC) from the default configuration
6470 (the patch only changes the default, all the modes are still available
6471 for the config files).
6472
6473 ok djm@, reminded by tedu@ & naddy@ and discussed with many
6474 - deraadt@cvs.openbsd.org 2014/03/26 17:16:26
6475 [myproposal.h]
6476 The current sharing of myproposal[] between both client and server code
6477 makes the previous diff highly unpallatable. We want to go in that
6478 direction for the server, but not for the client. Sigh.
6479 Brought up by naddy.
6480 - markus@cvs.openbsd.org 2014/03/27 23:01:27
6481 [myproposal.h ssh-keyscan.c sshconnect2.c sshd.c]
6482 disable weak proposals in sshd, but keep them in ssh; ok djm@
6483
6484commit 6e1777f592f15f4559728c78204617537b1ac076
6485Author: Damien Miller <djm@mindrot.org>
6486Date: Sun Apr 20 13:02:58 2014 +1000
6487
6488 - tedu@cvs.openbsd.org 2014/03/19 14:42:44
6489 [scp.1]
6490 there is no need for rcp anymore
6491 ok deraadt millert
6492
6493commit eb1b7c514d2a7b1802ccee8cd50e565a4d419887
6494Author: Damien Miller <djm@mindrot.org>
6495Date: Sun Apr 20 13:02:26 2014 +1000
6496
6497 - tedu@cvs.openbsd.org 2014/03/17 19:44:10
6498 [ssh.1]
6499 old descriptions of des and blowfish are old. maybe ok deraadt
6500
6501commit f0858de6e1324ec730752387074b111b8551081e
6502Author: Damien Miller <djm@mindrot.org>
6503Date: Sun Apr 20 13:01:30 2014 +1000
6504
6505 - deraadt@cvs.openbsd.org 2014/03/15 17:28:26
6506 [ssh-agent.c ssh-keygen.1 ssh-keygen.c]
6507 Improve usage() and documentation towards the standard form.
6508 In particular, this line saves a lot of man page reading time.
6509 usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1]
6510 [-N new_passphrase] [-C comment] [-f output_keyfile]
6511 ok schwarze jmc
6512
6513commit 94bfe0fbd6e91a56b5b0ab94ac955d2a67d101aa
6514Author: Damien Miller <djm@mindrot.org>
6515Date: Sun Apr 20 13:00:51 2014 +1000
6516
6517 - naddy@cvs.openbsd.org 2014/03/12 13:06:59
6518 [ssh-keyscan.1]
6519 scan for Ed25519 keys by default too
6520
6521commit 3819519288b2b3928c6882f5883b0f55148f4fc0
6522Author: Damien Miller <djm@mindrot.org>
6523Date: Sun Apr 20 13:00:28 2014 +1000
6524
6525 - djm@cvs.openbsd.org 2014/03/12 04:51:12
6526 [authfile.c]
6527 correct test that kdf name is not "none" or "bcrypt"
6528
6529commit 8f9cd709c7cf0655d414306a0ed28306b33802be
6530Author: Damien Miller <djm@mindrot.org>
6531Date: Sun Apr 20 13:00:11 2014 +1000
6532
6533 - djm@cvs.openbsd.org 2014/03/12 04:50:32
6534 [auth-bsdauth.c ssh-keygen.c]
6535 don't count on things that accept arguments by reference to clear
6536 things for us on error; most things do, but it's unsafe form.
6537
6538commit 1c7ef4be83f6dec84509a312518b9df00ab491d9
6539Author: Damien Miller <djm@mindrot.org>
6540Date: Sun Apr 20 12:59:46 2014 +1000
6541
6542 - djm@cvs.openbsd.org 2014/03/12 04:44:58
6543 [ssh-keyscan.c]
6544 scan for Ed25519 keys by default too
6545
6546commit c10bf4d051c97939b30a1616c0499310057d07da
6547Author: Damien Miller <djm@mindrot.org>
6548Date: Sun Apr 20 12:58:04 2014 +1000
6549
6550 - djm@cvs.openbsd.org 2014/03/03 22:22:30
6551 [session.c]
6552 ignore enviornment variables with embedded '=' or '\0' characters;
6553 spotted by Jann Horn; ok deraadt@
6554 Id sync only - portable already has this.
6555
6556commit c2e49062faccbcd7135c40d1c78c5c329c58fc2e
6557Author: Damien Miller <djm@mindrot.org>
6558Date: Tue Apr 1 14:42:46 2014 +1100
6559
6560 - (djm) Use full release (e.g. 6.5p1) in debug output rather than just
6561 version. From des@des.no
6562
6563commit 14928b7492abec82afa4c2b778fc03f78cd419b6
6564Author: Damien Miller <djm@mindrot.org>
6565Date: Tue Apr 1 14:38:07 2014 +1100
6566
6567 - (djm) On platforms that support it, use prctl() to prevent sftp-server
6568 from accessing /proc/self/{mem,maps}; patch from jann AT thejh.net
6569
6570commit 48abc47e60048461fe9117e108a7e99ea1ac2bb8
6571Author: Damien Miller <djm@mindrot.org>
6572Date: Mon Mar 17 14:45:56 2014 +1100
6573
6574 - (djm) [sandbox-seccomp-filter.c] Soft-fail stat() syscalls. Add XXX to
6575 remind myself to add sandbox violation logging via the log socket.
6576
6577commit 9c36698ca2f554ec221dc7ef29c7a89e97c88705
6578Author: Tim Rice <tim@multitalents.net>
6579Date: Fri Mar 14 12:45:01 2014 -0700
6580
6581 20140314
6582 - (tim) [opensshd.init.in] Add support for ed25519
6583
6584commit 19158b2447e35838d69b2b735fb640d1e86061ea
6585Author: Damien Miller <djm@mindrot.org>
6586Date: Thu Mar 13 13:14:21 2014 +1100
6587
6588 - (djm) Release OpenSSH 6.6
6589
6590commit 8569eba5d7f7348ce3955eeeb399f66f25c52ece
6591Author: Damien Miller <djm@mindrot.org>
6592Date: Tue Mar 4 09:35:17 2014 +1100
6593
6594 - djm@cvs.openbsd.org 2014/03/03 22:22:30
6595 [session.c]
6596 ignore enviornment variables with embedded '=' or '\0' characters;
6597 spotted by Jann Horn; ok deraadt@
6598
6599commit 2476c31b96e89aec7d4e73cb6fbfb9a4290de3a7
6600Author: Damien Miller <djm@mindrot.org>
6601Date: Sun Mar 2 04:01:00 2014 +1100
6602
6603 - (djm) [regress/Makefile] Disable dhgex regress test; it breaks when
6604 no moduli file exists at the expected location.
6605
6606commit c83fdf30e9db865575b2521b1fe46315cf4c70ae
6607Author: Damien Miller <djm@mindrot.org>
6608Date: Fri Feb 28 10:34:03 2014 +1100
6609
6610 - (djm) [regress/host-expand.sh] Add RCS Id
6611
6612commit 834aeac3555e53f7d29a6fcf3db010dfb99681c7
6613Author: Damien Miller <djm@mindrot.org>
6614Date: Fri Feb 28 10:25:16 2014 +1100
6615
6616 - djm@cvs.openbsd.org 2014/02/27 21:21:25
6617 [agent-ptrace.sh agent.sh]
6618 keep return values that are printed in error messages;
6619 from portable
6620 (Id sync only)
6621
6622commit 4f7f1a9a0de24410c30952c7e16d433240422182
6623Author: Damien Miller <djm@mindrot.org>
6624Date: Fri Feb 28 10:24:11 2014 +1100
6625
6626 - djm@cvs.openbsd.org 2014/02/27 20:04:16
6627 [login-timeout.sh]
6628 remove any existing LoginGraceTime from sshd_config before adding
6629 a specific one for the test back in
6630
6631commit d705d987c27f68080c8798eeb5262adbdd6b4ffd
6632Author: Damien Miller <djm@mindrot.org>
6633Date: Fri Feb 28 10:23:26 2014 +1100
6634
6635 - djm@cvs.openbsd.org 2014/01/26 10:49:17
6636 [scp-ssh-wrapper.sh scp.sh]
6637 make sure $SCP is tested on the remote end rather than whichever one
6638 happens to be in $PATH; from portable
6639 (Id sync only)
6640
6641commit 624a3ca376e3955a4b9d936c9e899e241b65d357
6642Author: Damien Miller <djm@mindrot.org>
6643Date: Fri Feb 28 10:22:37 2014 +1100
6644
6645 - djm@cvs.openbsd.org 2014/01/26 10:22:10
6646 [regress/cert-hostkey.sh]
6647 automatically generate revoked keys from listed keys rather than
6648 manually specifying each type; from portable
6649 (Id sync only)
6650
6651commit b84392328425e4b9a71f8bde5fe6a4a4c48d3ec4
6652Author: Damien Miller <djm@mindrot.org>
6653Date: Fri Feb 28 10:21:26 2014 +1100
6654
6655 - dtucker@cvs.openbsd.org 2014/01/25 04:35:32
6656 [regress/Makefile regress/dhgex.sh]
6657 Add a test for DH GEX sizes
6658
6659commit 1e2aa3d90472293ea19008f02336d6d68aa05793
6660Author: Damien Miller <djm@mindrot.org>
6661Date: Fri Feb 28 10:19:51 2014 +1100
6662
6663 - dtucker@cvs.openbsd.org 2014/01/20 00:00:30
6664 [sftp-chroot.sh]
6665 append to rather than truncating the log file
6666
6667commit f483cc16fe7314e24a37aa3a4422b03c013c3213
6668Author: Damien Miller <djm@mindrot.org>
6669Date: Fri Feb 28 10:19:11 2014 +1100
6670
6671 - dtucker@cvs.openbsd.org 2014/01/19 23:43:02
6672 [regress/sftp-chroot.sh]
6673 Don't use -q on sftp as it suppresses logging, instead redirect the
6674 output to the regress logfile.
6675
6676commit 6486f16f1c0ebd6f39286f6ab5e08286d90a994a
6677Author: Damien Miller <djm@mindrot.org>
6678Date: Fri Feb 28 10:03:52 2014 +1100
6679
6680 - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
6681 [contrib/suse/openssh.spec] Crank version numbers
6682
6683commit 92cf5adea194140380e6af6ec32751f9ad540794
6684Author: Damien Miller <djm@mindrot.org>
6685Date: Fri Feb 28 10:01:53 2014 +1100
6686
6687 - djm@cvs.openbsd.org 2014/02/27 22:57:40
6688 [version.h]
6689 openssh-6.6
6690
6691commit fc5d6759aba71eb205b296b5f148010ffc828583
6692Author: Damien Miller <djm@mindrot.org>
6693Date: Fri Feb 28 10:01:28 2014 +1100
6694
6695 - djm@cvs.openbsd.org 2014/02/27 22:47:07
6696 [sshd_config.5]
6697 bz#2184 clarify behaviour of a keyword that appears in multiple
6698 matching Match blocks; ok dtucker@
6699
6700commit 172ec7e0af1a5f1d682f6a2dca335c6c186153d5
6701Author: Damien Miller <djm@mindrot.org>
6702Date: Fri Feb 28 10:00:57 2014 +1100
6703
6704 - djm@cvs.openbsd.org 2014/02/27 08:25:09
6705 [bufbn.c]
6706 off by one in range check
6707
6708commit f9a9aaba437c2787e40cf7cc928281950e161678
6709Author: Damien Miller <djm@mindrot.org>
6710Date: Fri Feb 28 10:00:27 2014 +1100
6711
6712 - djm@cvs.openbsd.org 2014/02/27 00:41:49
6713 [bufbn.c]
6714 fix unsigned overflow that could lead to reading a short ssh protocol
6715 1 bignum value; found by Ben Hawkes; ok deraadt@
6716
6717commit fb3423b612713d9cde67c8a75f6f51188d6a3de3
6718Author: Damien Miller <djm@mindrot.org>
6719Date: Thu Feb 27 10:20:07 2014 +1100
6720
6721 - markus@cvs.openbsd.org 2014/02/26 21:53:37
6722 [sshd.c]
6723 ssh_gssapi_prepare_supported_oids needs GSSAPI
6724
6725commit 1348129a34f0f7728c34d86c100a32dcc8d1f922
6726Author: Damien Miller <djm@mindrot.org>
6727Date: Thu Feb 27 10:18:32 2014 +1100
6728
6729 - djm@cvs.openbsd.org 2014/02/26 20:29:29
6730 [channels.c]
6731 don't assume that the socks4 username is \0 terminated;
6732 spotted by Ben Hawkes; ok markus@
6733
6734commit e6a74aeeacd01d885262ff8e50eb28faee8c8039
6735Author: Damien Miller <djm@mindrot.org>
6736Date: Thu Feb 27 10:17:49 2014 +1100
6737
6738 - djm@cvs.openbsd.org 2014/02/26 20:28:44
6739 [auth2-gss.c gss-serv.c ssh-gss.h sshd.c]
6740 bz#2107 - cache OIDs of supported GSSAPI mechanisms before privsep
6741 sandboxing, as running this code in the sandbox can cause violations;
6742 ok markus@
6743
6744commit 08b57c67f3609340ff703fe2782d7058acf2529e
6745Author: Damien Miller <djm@mindrot.org>
6746Date: Thu Feb 27 10:17:13 2014 +1100
6747
6748 - djm@cvs.openbsd.org 2014/02/26 20:18:37
6749 [ssh.c]
6750 bz#2205: avoid early hostname lookups unless canonicalisation is enabled;
6751 ok dtucker@ markus@
6752
6753commit 13f97b2286142fd0b8eab94e4ce84fe124eeb752
6754Author: Damien Miller <djm@mindrot.org>
6755Date: Mon Feb 24 15:57:55 2014 +1100
6756
6757 - djm@cvs.openbsd.org 2014/02/23 20:11:36
6758 [readconf.c readconf.h ssh.c ssh_config.5]
6759 reparse ssh_config and ~/.ssh/config if hostname canonicalisation changes
6760 the hostname. This allows users to write configurations that always
6761 refer to canonical hostnames, e.g.
6762
6763 CanonicalizeHostname yes
6764 CanonicalDomains int.example.org example.org
6765 CanonicalizeFallbackLocal no
6766
6767 Host *.int.example.org
6768 Compression off
6769 Host *.example.org
6770 User djm
6771
6772 ok markus@
6773
6774commit bee3a234f3d1ad4244952bcff1b4b7c525330dc2
6775Author: Damien Miller <djm@mindrot.org>
6776Date: Mon Feb 24 15:57:22 2014 +1100
6777
6778 - djm@cvs.openbsd.org 2014/02/23 20:03:42
6779 [ssh-ed25519.c]
6780 check for unsigned overflow; not reachable in OpenSSH but others might
6781 copy our code...
6782
6783commit 0628780abe61e7e50cba48cdafb1837f49ff23b2
6784Author: Damien Miller <djm@mindrot.org>
6785Date: Mon Feb 24 15:56:45 2014 +1100
6786
6787 - djm@cvs.openbsd.org 2014/02/22 01:32:19
6788 [readconf.c]
6789 when processing Match blocks, skip 'exec' clauses if previous predicates
6790 failed to match; ok markus@
6791
6792commit 0890dc8191bb201eb01c3429feec0300a9d3a930
6793Author: Damien Miller <djm@mindrot.org>
6794Date: Mon Feb 24 15:56:07 2014 +1100
6795
6796 - djm@cvs.openbsd.org 2014/02/15 23:05:36
6797 [channels.c]
6798 avoid spurious "getsockname failed: Bad file descriptor" errors in ssh -W;
6799 bz#2200, debian#738692 via Colin Watson; ok dtucker@
6800
6801commit d3cf67e1117c25d151d0f86396e77ee3a827045a
6802Author: Damien Miller <djm@mindrot.org>
6803Date: Mon Feb 24 15:55:36 2014 +1100
6804
6805 - djm@cvs.openbsd.org 2014/02/07 06:55:54
6806 [cipher.c mac.c]
6807 remove some logging that makes ssh debugging output very verbose;
6808 ok markus
6809
6810commit 03ae081aeaa118361c81ece76eb7cc1aaa2b40c5
6811Author: Tim Rice <tim@multitalents.net>
6812Date: Fri Feb 21 09:09:34 2014 -0800
6813
6814 20140221
6815 - (tim) [configure.ac] Fix cut-and-paste error. Patch from Bryan Drewery.
6816
6817commit 4a20959d2e3c90e9d66897c0b4032c785672d815
6818Author: Darren Tucker <dtucker@zip.com.au>
6819Date: Thu Feb 13 16:38:32 2014 +1100
6820
6821 - (dtucker) [configure.ac openbsd-compat/openssl-compat.{c,h}] Add compat
6822 code for older OpenSSL versions that don't have EVP_MD_CTX_copy_ex.
6823
6824commit d1a7a9c0fd1ac2e3314cceb2891959fd2cd9eabb
6825Author: Damien Miller <djm@mindrot.org>
6826Date: Fri Feb 7 09:24:33 2014 +1100
6827
6828 - djm@cvs.openbsd.org 2014/02/06 22:21:01
6829 [sshconnect.c]
6830 in ssh_create_socket(), only do the getaddrinfo for BindAddress when
6831 BindAddress is actually specified. Fixes regression in 6.5 for
6832 UsePrivilegedPort=yes; patch from Corinna Vinschen
6833
6834commit 6ce35b6cc4ead1bf98abec34cb2e2d6ca0abb15e
6835Author: Damien Miller <djm@mindrot.org>
6836Date: Fri Feb 7 09:24:14 2014 +1100
6837
6838 - naddy@cvs.openbsd.org 2014/02/05 20:13:25
6839 [ssh-keygen.1 ssh-keygen.c]
6840 tweak synopsis: calling ssh-keygen without any arguments is fine; ok jmc@
6841 while here, fix ordering in usage(); requested by jmc@
6842
6843commit 6434cb2cfbbf0a46375d2d22f2ff9927feb5e478
6844Author: Damien Miller <djm@mindrot.org>
6845Date: Thu Feb 6 11:17:50 2014 +1100
6846
6847 - (djm) [sandbox-seccomp-filter.c] Not all Linux architectures define
6848 __NR_shutdown; some go via the socketcall(2) multiplexer.
6849
6850commit 8d36f9ac71eff2e9f5770c0518b73d875f270647
6851Author: Darren Tucker <dtucker@zip.com.au>
6852Date: Thu Feb 6 10:44:13 2014 +1100
6853
6854 - (dtucker) [openbsd-compat/bsd-poll.c] Don't bother checking for non-NULL
6855 before freeing since free(NULL) is a no-op. ok djm.
6856
6857commit a0959da3680b4ce8cf911caf3293a6d90f88eeb7
6858Author: Damien Miller <djm@mindrot.org>
6859Date: Wed Feb 5 10:33:45 2014 +1100
6860
6861 - (djm) [sandbox-capsicum.c] Don't fatal if Capsicum is offered by
6862 headers/libc but not supported by the kernel. Patch from Loganaden
6863 Velvindron @ AfriNIC
6864
6865commit 9c449bc183b256c84d8f740727b0bc54d247b15e
6866Author: Damien Miller <djm@mindrot.org>
6867Date: Tue Feb 4 11:38:28 2014 +1100
6868
6869 - (djm) [regress/setuid-allowed.c] Missing string.h for strerror()
6870
6871commit bf7e0f03be661b6f5b3bfe325135ce19391f9c4d
6872Author: Damien Miller <djm@mindrot.org>
6873Date: Tue Feb 4 11:37:50 2014 +1100
6874
6875 - (djm) [openbsd-compat/Makefile.in] Add missing explicit_bzero.o
6876
6877commit eb6d870a0ea8661299bb2ea8f013d3ace04e2024
6878Author: Damien Miller <djm@mindrot.org>
6879Date: Tue Feb 4 11:26:34 2014 +1100
6880
6881 - djm@cvs.openbsd.org 2014/02/04 00:24:29
6882 [ssh.c]
6883 delay lowercasing of hostname until right before hostname
6884 canonicalisation to unbreak case-sensitive matching of ssh_config;
6885 reported by Ike Devolder; ok markus@
6886
6887commit d56b44d2dfa093883a5c4e91be3f72d99946b170
6888Author: Damien Miller <djm@mindrot.org>
6889Date: Tue Feb 4 11:26:04 2014 +1100
6890
6891 - djm@cvs.openbsd.org 2014/02/04 00:24:29
6892 [ssh.c]
6893 delay lowercasing of hostname until right before hostname
6894 canonicalisation to unbreak case-sensitive matching of ssh_config;
6895 reported by Ike Devolder; ok markus@
6896
6897commit db3c595ea74ea9ccd5aa644d7e1f8dc675710731
6898Author: Damien Miller <djm@mindrot.org>
6899Date: Tue Feb 4 11:25:45 2014 +1100
6900
6901 - djm@cvs.openbsd.org 2014/02/02 03:44:31
6902 [digest-libc.c digest-openssl.c]
6903 convert memset of potentially-private data to explicit_bzero()
6904
6905commit aae07e2e2000dd318418fd7fd4597760904cae32
6906Author: Damien Miller <djm@mindrot.org>
6907Date: Tue Feb 4 11:20:40 2014 +1100
6908
6909 - djm@cvs.openbsd.org 2014/02/03 23:28:00
6910 [ssh-ecdsa.c]
6911 fix memory leak; ECDSA_SIG_new() allocates 'r' and 's' for us, unlike
6912 DSA_SIG_new. Reported by Batz Spear; ok markus@
6913
6914commit a5103f413bde6f31bff85d6e1fd29799c647d765
6915Author: Damien Miller <djm@mindrot.org>
6916Date: Tue Feb 4 11:20:14 2014 +1100
6917
6918 - djm@cvs.openbsd.org 2014/02/02 03:44:32
6919 [auth1.c auth2-chall.c auth2-passwd.c authfile.c bufaux.c bufbn.c]
6920 [buffer.c cipher-3des1.c cipher.c clientloop.c gss-serv.c kex.c]
6921 [kexdhc.c kexdhs.c kexecdhc.c kexgexc.c kexecdhs.c kexgexs.c key.c]
6922 [monitor.c monitor_wrap.c packet.c readpass.c rsa.c serverloop.c]
6923 [ssh-add.c ssh-agent.c ssh-dss.c ssh-ecdsa.c ssh-ed25519.c]
6924 [ssh-keygen.c ssh-rsa.c sshconnect.c sshconnect1.c sshconnect2.c]
6925 [sshd.c]
6926 convert memset of potentially-private data to explicit_bzero()
6927
6928commit 1d2c4564265ee827147af246a16f3777741411ed
6929Author: Damien Miller <djm@mindrot.org>
6930Date: Tue Feb 4 11:18:20 2014 +1100
6931
6932 - tedu@cvs.openbsd.org 2014/01/31 16:39:19
6933 [auth2-chall.c authfd.c authfile.c bufaux.c bufec.c canohost.c]
6934 [channels.c cipher-chachapoly.c clientloop.c configure.ac hostfile.c]
6935 [kexc25519.c krl.c monitor.c sandbox-systrace.c session.c]
6936 [sftp-client.c ssh-keygen.c ssh.c sshconnect2.c sshd.c sshlogin.c]
6937 [openbsd-compat/explicit_bzero.c openbsd-compat/openbsd-compat.h]
6938 replace most bzero with explicit_bzero, except a few that cna be memset
6939 ok djm dtucker
6940
6941commit 3928de067c286683a95fbdbdb5fdb3c78a0e5efd
6942Author: Damien Miller <djm@mindrot.org>
6943Date: Tue Feb 4 11:13:54 2014 +1100
6944
6945 - djm@cvs.openbsd.org 2014/01/30 22:26:14
6946 [sandbox-systrace.c]
6947 allow shutdown(2) syscall in sandbox - it may be called by packet_close()
6948 from portable
6949 (Id sync only; change is already in portable)
6950
6951commit e1e480aee8a9af6cfbe7188667b7b940d6b57f9f
6952Author: Damien Miller <djm@mindrot.org>
6953Date: Tue Feb 4 11:13:17 2014 +1100
6954
6955 - jmc@cvs.openbsd.org 2014/01/29 14:04:51
6956 [sshd_config.5]
6957 document kbdinteractiveauthentication;
6958 requested From: Ross L Richardson
6959
6960 dtucker/markus helped explain its workings;
6961
6962commit 7cc194f70d4a5ec9a82d19422eaf18db4a6624c6
6963Author: Damien Miller <djm@mindrot.org>
6964Date: Tue Feb 4 11:12:56 2014 +1100
6965
6966 - djm@cvs.openbsd.org 2014/01/29 06:18:35
6967 [Makefile.in auth.h auth2-jpake.c auth2.c jpake.c jpake.h monitor.c]
6968 [monitor.h monitor_wrap.c monitor_wrap.h readconf.c readconf.h]
6969 [schnorr.c schnorr.h servconf.c servconf.h ssh2.h sshconnect2.c]
6970 remove experimental, never-enabled JPAKE code; ok markus@
6971
6972commit b0f26544cf6f4feeb1a4f6db09fca834f5c9867d
6973Author: Damien Miller <djm@mindrot.org>
6974Date: Tue Feb 4 11:10:01 2014 +1100
6975
6976 - djm@cvs.openbsd.org 2014/01/29 00:19:26
6977 [sshd.c]
6978 use kill(0, ...) instead of killpg(0, ...); on most operating systems
6979 they are equivalent, but SUSv2 describes the latter as having undefined
6980 behaviour; from portable; ok dtucker
6981 (Id sync only; change is already in portable)
6982
6983commit f8f35bc471500348bb262039fb1fc43175d251b0
6984Author: Damien Miller <djm@mindrot.org>
6985Date: Tue Feb 4 11:09:12 2014 +1100
6986
6987 - jmc@cvs.openbsd.org 2014/01/28 14:13:39
6988 [ssh-keyscan.1]
6989 kill some bad Pa;
6990 From: Jan Stary
6991
6992commit 0ba85d696ae9daf66002c2e4ab0d6bb111e1a787
6993Author: Damien Miller <djm@mindrot.org>
6994Date: Tue Feb 4 11:08:38 2014 +1100
6995
6996 ignore a few more regress droppings
6997
6998commit ec93d15170b7a6ddf63fd654bd0f6a752acc19dd
6999Author: Damien Miller <djm@mindrot.org>
7000Date: Tue Feb 4 11:07:13 2014 +1100
7001
7002 - markus@cvs.openbsd.org 2014/01/27 20:13:46
7003 [digest.c digest-openssl.c digest-libc.c Makefile.in]
7004 rename digest.c to digest-openssl.c and add libc variant; ok djm@
7005
7006commit 4a1c7aa640fb97d3472d51b215b6a0ec0fd025c7
7007Author: Damien Miller <djm@mindrot.org>
7008Date: Tue Feb 4 11:03:36 2014 +1100
7009
7010 - markus@cvs.openbsd.org 2014/01/27 19:18:54
7011 [auth-rsa.c cipher.c ssh-agent.c sshconnect1.c sshd.c]
7012 replace openssl MD5 with our ssh_digest_*; ok djm@
7013
7014commit 4e8d937af79ce4e253f77ec93489d098b25becc3
7015Author: Damien Miller <djm@mindrot.org>
7016Date: Tue Feb 4 11:02:42 2014 +1100
7017
7018 - markus@cvs.openbsd.org 2014/01/27 18:58:14
7019 [Makefile.in digest.c digest.h hostfile.c kex.h mac.c hmac.c hmac.h]
7020 replace openssl HMAC with an implementation based on our ssh_digest_*
7021 ok and feedback djm@
7022
7023commit 69d0d09f76bab5aec86fbf78489169f63bd16475
7024Author: Tim Rice <tim@multitalents.net>
7025Date: Fri Jan 31 14:25:18 2014 -0800
7026
7027 - (tim) [Makefile.in] build regress/setuid-allow.
7028
7029commit 0eeafcd76b972a3d159f3118227c149a4d7817fe
7030Author: Darren Tucker <dtucker@zip.com.au>
7031Date: Fri Jan 31 14:18:51 2014 +1100
7032
7033 - (dtucker) [readconf.c] Include <arpa/inet.h> for the hton macros. Fixes
7034 build with HP-UX's compiler. Patch from Kevin Brott.
7035
7036commit 7e5cec6070673e9f9785ffc749837ada22fbe99f
7037Author: Damien Miller <djm@mindrot.org>
7038Date: Fri Jan 31 09:25:34 2014 +1100
7039
7040 - (djm) [sandbox-seccomp-filter.c sandbox-systrace.c] Allow shutdown(2)
7041 syscall from sandboxes; it may be called by packet_close.
7042
7043commit cdb6c90811caa5df2df856be9b0b16db020fe31d
7044Author: Damien Miller <djm@mindrot.org>
7045Date: Thu Jan 30 12:50:17 2014 +1100
7046
7047 - (djm) Release openssh-6.5p1
7048
7049commit 996ea80b1884b676a901439f1f2681eb6ff68501
7050Author: Damien Miller <djm@mindrot.org>
7051Date: Thu Jan 30 12:49:55 2014 +1100
7052
7053 trim entries prior to openssh-6.0p1
7054
7055commit f5bbd3b657b6340551c8a95f74a70857ff8fac79
7056Author: Damien Miller <djm@mindrot.org>
7057Date: Thu Jan 30 11:26:46 2014 +1100
7058
7059 - (djm) [configure.ac atomicio.c] Kludge around NetBSD offering
7060 different symbols for 'read' when various compiler flags are
7061 in use, causing atomicio.c comparisons against it to break and
7062 read/write operations to hang; ok dtucker
7063
7064commit c2868192ddc4e1420a50389e18c05db20b0b1f32
7065Author: Damien Miller <djm@mindrot.org>
7066Date: Thu Jan 30 10:21:19 2014 +1100
7067
7068 - (djm) [configure.ac] Only check for width-specified integer types
7069 in headers that actually exist. patch from Tom G. Christensen;
7070 ok dtucker@
7071
7072commit c161fc90fc86e2035710570238a9e1ca7a68d2a5
7073Author: Damien Miller <djm@mindrot.org>
7074Date: Wed Jan 29 21:01:33 2014 +1100
7075
7076 - (djm) [configure.ac] Fix broken shell test '==' vs '='; patch from
7077 Tom G. Christensen
7078
7079commit 6f917ad376481995ab7d29fb53b08ec8d507eb9e
7080Author: Tim Rice <tim@multitalents.net>
7081Date: Tue Jan 28 10:26:25 2014 -0800
7082
7083 - (tim) [regress/agent.sh regress/agent-ptrace.sh] Assign $? to a variable
7084 when used as an error message inside an if statement so we display the
7085 correct into. agent.sh patch from Petr Lautrbach.
7086
7087commit ab16ef4152914d44ce6f76e48167d26d22f66a06
7088Author: Damien Miller <djm@mindrot.org>
7089Date: Tue Jan 28 15:08:12 2014 +1100
7090
7091 - (djm) [sshd.c] Use kill(0, ...) instead of killpg(0, ...); the
7092 latter being specified to have undefined behaviour in SUSv3;
7093 ok dtucker
7094
7095commit ab0394905884dc6e58c3721211c6b38fb8fc2ca8
7096Author: Damien Miller <djm@mindrot.org>
7097Date: Tue Jan 28 15:07:10 2014 +1100
7098
7099 - (djm) [configure.ac] Search for inet_ntop in libnsl and libresovl;
7100 ok dtucker
7101
7102commit 4ab20a82d4d4168d62318923f62382f6ef242fcd
7103Author: Darren Tucker <dtucker@zip.com.au>
7104Date: Mon Jan 27 17:35:04 2014 +1100
7105
7106 - (dtucker) [Makefile.in] Remove trailing backslash which some make
7107 implementations (eg older Solaris) do not cope with.
7108
7109commit e7e8b3cfe9f8665faaf0e68b33df5bbb431bd129
7110Author: Darren Tucker <dtucker@zip.com.au>
7111Date: Mon Jan 27 17:32:50 2014 +1100
7112
7113 Welcome to 2014
7114
7115commit 5b447c0aac0dd444251e276f6bb3bbbe1c05331c
7116Author: Damien Miller <djm@mindrot.org>
7117Date: Sun Jan 26 09:46:53 2014 +1100
7118
7119 - (djm) [configure.ac] correct AC_DEFINE for previous.
7120
7121commit 2035b2236d3b1f76c749c642a43e03c85eae76e6
7122Author: Damien Miller <djm@mindrot.org>
7123Date: Sun Jan 26 09:39:53 2014 +1100
7124
7125 - (djm) [configure.ac sandbox-capsicum.c sandbox-rlimit.c] Disable
7126 RLIMIT_NOFILE pseudo-sandbox on FreeBSD. In some configurations,
7127 libc will attempt to open additional file descriptors for crypto
7128 offload and crash if they cannot be opened.
7129
7130commit a92ac7410475fbb00383c7402aa954dc0a75ae19
7131Author: Damien Miller <djm@mindrot.org>
7132Date: Sun Jan 26 09:38:03 2014 +1100
7133
7134 - markus@cvs.openbsd.org 2014/01/25 20:35:37
7135 [kex.c]
7136 dh_need needs to be set to max(seclen, blocksize, ivlen, mac_len)
7137 ok dtucker@, noted by mancha
7138
7139commit 76eea4ab4e658670ca6e76dd1e6d17f262208b57
7140Author: Damien Miller <djm@mindrot.org>
7141Date: Sun Jan 26 09:37:25 2014 +1100
7142
7143 - dtucker@cvs.openbsd.org 2014/01/25 10:12:50
7144 [cipher.c cipher.h kex.c kex.h kexgexc.c]
7145 Add a special case for the DH group size for 3des-cbc, which has an
7146 effective strength much lower than the key size. This causes problems
7147 with some cryptlib implementations, which don't support group sizes larger
7148 than 4k but also don't use the largest group size it does support as
7149 specified in the RFC. Based on a patch from Petr Lautrbach at Redhat,
7150 reduced by me with input from Markus. ok djm@ markus@
7151
7152commit 603b8f47f1cd9ed95a2017447db8e60ca6704594
7153Author: Damien Miller <djm@mindrot.org>
7154Date: Sat Jan 25 13:16:59 2014 +1100
7155
7156 - (djm) [configure.ac] autoconf sets finds to 'yes' not '1', so test
7157 against the correct thing.
7158
7159commit c96d85376d779b6ac61525b5440010d344d2f23f
7160Author: Damien Miller <djm@mindrot.org>
7161Date: Sat Jan 25 13:12:28 2014 +1100
7162
7163 - (djm) [configure.ac] Do not attempt to use capsicum sandbox unless
7164 sys/capability.h exists and cap_rights_limit is in libc. Fixes
7165 build on FreeBSD9x which provides the header but not the libc
7166 support.
7167
7168commit f62ecef9939cb3dbeb10602fd705d4db3976d822
7169Author: Damien Miller <djm@mindrot.org>
7170Date: Sat Jan 25 12:34:38 2014 +1100
7171
7172 - (djm) [configure.ac] Fix detection of capsicum sandbox on FreeBSD
7173
7174commit b0e0f760b861676a3fe5c40133b270713d5321a9
7175Author: Damien Miller <djm@mindrot.org>
7176Date: Fri Jan 24 14:27:04 2014 +1100
7177
7178 - (djm) [Makefile.in regress/scp-ssh-wrapper.sh regress/scp.sh] Make
7179 the scp regress test actually test the built scp rather than the one
7180 in $PATH. ok dtucker@
7181
7182commit 42a092530159637da9cb7f9e1b5f4679e34a85e6
7183Author: Darren Tucker <dtucker@zip.com.au>
7184Date: Thu Jan 23 23:14:39 2014 +1100
7185
7186 - (dtucker) [configure.ac] NetBSD's (and FreeBSD's) strnvis is gratuitously
7187 incompatible with OpenBSD's despite post-dating it by more than a decade.
7188 Declare it as broken, and document FreeBSD's as the same. ok djm@
7189
7190commit 617da33c20cb59f9ea6c99c881d92493371ef7b8
7191Author: Tim Rice <tim@multitalents.net>
7192Date: Wed Jan 22 19:16:10 2014 -0800
7193
7194 - (tim) [session.c] Improve error reporting on set_id().
7195
7196commit 5c2ff5e31f57d303ebb414d84a934c02728fa568
7197Author: Damien Miller <djm@mindrot.org>
7198Date: Wed Jan 22 21:30:12 2014 +1100
7199
7200 - (djm) [configure.ac aclocal.m4] More tests to detect fallout from
7201 platform hardening options: include some long long int arithmatic
7202 to detect missing support functions for -ftrapv in libgcc and
7203 equivalents, actually test linking when -ftrapv is supplied and
7204 set either both -pie/-fPIE or neither. feedback and ok dtucker@
7205
7206commit 852472a54b8a0dc3e53786b313baaa86850a4273
7207Author: Damien Miller <djm@mindrot.org>
7208Date: Wed Jan 22 16:31:18 2014 +1100
7209
7210 - (djm) [configure.ac] Unless specifically requested, only attempt
7211 to build Position Independent Executables on gcc >= 4.x; ok dtucker
7212
7213commit ee87838786cef0194db36ae0675b3e7c4e8ec661
7214Author: Damien Miller <djm@mindrot.org>
7215Date: Wed Jan 22 16:30:15 2014 +1100
7216
7217 - (djm) [openbsd-compat/setproctitle.c] Don't fail to compile if a
7218 platform that is expected to use the reuse-argv style setproctitle
7219 hack surprises us by providing a setproctitle in libc; ok dtucker
7220
7221commit 5c96a154c7940fa67b1f11c421e390dbbc159f27
7222Author: Damien Miller <djm@mindrot.org>
7223Date: Tue Jan 21 13:10:26 2014 +1100
7224
7225 - (djm) [aclocal.m4] Flesh out the code run in the OSSH_CHECK_CFLAG_COMPILE
7226 and OSSH_CHECK_LDFLAG_LINK tests to give them a better chance of
7227 detecting toolchain-related problems; ok dtucker
7228
7229commit 9464ba6fb34bb42eb3501ec3c5143662e75674bf
7230Author: Tim Rice <tim@multitalents.net>
7231Date: Mon Jan 20 17:59:28 2014 -0800
7232
7233 - (tim) [platform.c session.c] Fix bug affecting SVR5 platforms introduced
7234 with sftp chroot support. Move set_id call after chroot.
7235
7236commit a6d573caa14d490e6c42fb991bcb5c6860ec704b
7237Author: Darren Tucker <dtucker@zip.com.au>
7238Date: Tue Jan 21 12:50:46 2014 +1100
7239
7240 - (dtucker) [aclocal.m4] Differentiate between compile-time and link-time
7241 tests in the configure output. ok djm.
7242
7243commit 096118dc73ab14810b3c12785c0b5acb01ad6123
7244Author: Darren Tucker <dtucker@zip.com.au>
7245Date: Tue Jan 21 12:48:51 2014 +1100
7246
7247 - (dtucker) [configure.ac] Make PIE a configure-time option which defaults
7248 to on platforms where it's known to be reliably detected and off elsewhere.
7249 Works around platforms such as FreeBSD 9.1 where it does not interop with
7250 -ftrapv (it seems to work but fails when trying to link ssh). ok djm@
7251
7252commit f9df7f6f477792254eab33cdef71a6d66488cb88
7253Author: Damien Miller <djm@mindrot.org>
7254Date: Mon Jan 20 20:07:15 2014 +1100
7255
7256 - (djm) [regress/cert-hostkey.sh] Fix regress failure on platforms that
7257 skip one or more key types (e.g. RHEL/CentOS 6.5); ok dtucker@
7258
7259commit c74e70eb52ccc0082bd5a70b5798bb01c114d138
7260Author: Darren Tucker <dtucker@zip.com.au>
7261Date: Mon Jan 20 13:18:09 2014 +1100
7262
7263 - (dtucker) [gss-serv-krb5.c] Fall back to krb5_cc_gen_new if the Kerberos
7264 implementation does not have krb5_cc_new_unique, similar to what we do
7265 in auth-krb5.c.
7266
7267commit 3510979e83b6a18ec8773c64c3fa04aa08b2e783
7268Author: Damien Miller <djm@mindrot.org>
7269Date: Mon Jan 20 12:41:53 2014 +1100
7270
7271 - djm@cvs.openbsd.org 2014/01/20 00:08:48
7272 [digest.c]
7273 memleak; found by Loganaden Velvindron @ AfriNIC; ok markus@
7274
7275commit 7eee358d7a6580479bee5cd7e52810ebfd03e5b2
7276Author: Darren Tucker <dtucker@zip.com.au>
7277Date: Sun Jan 19 22:37:02 2014 +1100
7278
7279 - dtucker@cvs.openbsd.org 2014/01/19 11:21:51
7280 [addrmatch.c]
7281 Cast the sizeof to socklen_t so it'll work even if the supplied len is
7282 negative. Suggested by and ok djm, ok deraadt.
7283
7284commit b7e01c09b56ab26e8fac56bbce0fd25e36d12bb0
7285Author: Darren Tucker <dtucker@zip.com.au>
7286Date: Sun Jan 19 22:36:13 2014 +1100
7287
7288 - djm@cvs.openbsd.org 2014/01/19 04:48:08
7289 [ssh_config.5]
7290 fix inverted meaning of 'no' and 'yes' for CanonicalizeFallbackLocal
7291
7292commit 7b1ded04adce42efa25ada7c3a39818d3109b724
7293Author: Darren Tucker <dtucker@zip.com.au>
7294Date: Sun Jan 19 15:30:02 2014 +1100
7295
7296 - dtucker@cvs.openbsd.org 2014/01/19 04:17:29
7297 [canohost.c addrmatch.c]
7298 Cast socklen_t when comparing to size_t and use socklen_t to iterate over
7299 the ip options, both to prevent signed/unsigned comparison warnings.
7300 Patch from vinschen at redhat via portable openssh, begrudging ok deraadt.
7301
7302commit 293ee3c9f0796d99ebb033735f0e315f2e0180bf
7303Author: Darren Tucker <dtucker@zip.com.au>
7304Date: Sun Jan 19 15:28:01 2014 +1100
7305
7306 - dtucker@cvs.openbsd.org 2014/01/18 09:36:26
7307 [session.c]
7308 explicitly define USE_PIPES to 1 to prevent redefinition warnings in
7309 portable on platforms that use pipes for everything. From redhat @
7310 redhat.
7311
7312commit 2aca159d05f9e7880d1d8f1ce49a218840057f53
7313Author: Darren Tucker <dtucker@zip.com.au>
7314Date: Sun Jan 19 15:25:34 2014 +1100
7315
7316 - dtucker@cvs.openbsd.org 2014/01/17 06:23:24
7317 [sftp-server.c]
7318 fix log message statvfs. ok djm
7319
7320commit 841f7da89ae8b367bb502d61c5c41916c6e7ae4c
7321Author: Darren Tucker <dtucker@zip.com.au>
7322Date: Sat Jan 18 22:12:15 2014 +1100
7323
7324 - (dtucker) [sandbox-capsicum.c] Correct some error messages and make the
7325 return value check for cap_enter() consistent with the other uses in
7326 FreeBSD. From by Loganaden Velvindron @ AfriNIC via bz#2140.
7327
7328commit fdce3731660699b2429e93e822f2ccbaccd163ae
7329Author: Darren Tucker <dtucker@zip.com.au>
7330Date: Sat Jan 18 21:12:42 2014 +1100
7331
7332 - (dtucker) [configure.ac] On Cygwin the getopt variables (like optargs,
7333 optind) are defined in getopt.h already. Unfortunately they are defined as
7334 "declspec(dllimport)" for historical reasons, because the GNU linker didn't
7335 allow auto-import on PE/COFF targets way back when. The problem is the
7336 dllexport attributes collide with the definitions in the various source
7337 files in OpenSSH, which obviousy define the variables without
7338 declspec(dllimport). The least intrusive way to get rid of these warnings
7339 is to disable warnings for GCC compiler attributes when building on Cygwin.
7340 Patch from vinschen at redhat.com.
7341
7342commit 1411c9263f46e1ee49d0d302bf7258ebe69ce827
7343Author: Darren Tucker <dtucker@zip.com.au>
7344Date: Sat Jan 18 21:03:59 2014 +1100
7345
7346 - (dtucker) [openbsd-compat/bsd-cygwin_util.h] Add missing function
7347 declarations that stopped being included when we stopped including
7348 <windows.h> from openbsd-compat/bsd-cygwin_util.h. Patch from vinschen at
7349 redhat.com.
7350
7351commit 89c532d843c95a085777c66365067d64d1937eb9
7352Author: Darren Tucker <dtucker@zip.com.au>
7353Date: Sat Jan 18 20:43:49 2014 +1100
7354
7355 - (dtucker) [uidswap.c] Prevent unused variable warnings on Cygwin. Patch
7356 from vinschen at redhat.com
7357
7358commit 355f861022be7b23d3009fae8f3c9f6f7fc685f7
7359Author: Darren Tucker <dtucker@zip.com.au>
7360Date: Sat Jan 18 00:12:38 2014 +1100
7361
7362 - (dtucker) [defines.h] Move our definitions of uintXX_t types down to after
7363 they're defined if we have to define them ourselves. Fixes builds on old
7364 AIX.
7365
7366commit a3357661ee1d5d553294f36e4940e8285c7f1332
7367Author: Darren Tucker <dtucker@zip.com.au>
7368Date: Sat Jan 18 00:03:57 2014 +1100
7369
7370 - (dtucker) [readconf.c] Wrap paths.h inside an ifdef. Allows building on
7371 Solaris.
7372
7373commit 9edcbff46ff01c8d5dee9c1aa843f09e9ad8a80e
7374Author: Darren Tucker <dtucker@zip.com.au>
7375Date: Fri Jan 17 21:54:32 2014 +1100
7376
7377 - (dtucker) [configure.ac] Have --without-toolchain-hardening not turn off
7378 stack-protector since that has a separate flag that's been around a while.
7379
7380commit 6d725687c490d4ba957a1bbc0ba0a2956c09fa69
7381Author: Darren Tucker <dtucker@zip.com.au>
7382Date: Fri Jan 17 19:17:34 2014 +1100
7383
7384 - (dtucker) [configure.ac] Also look in inttypes.h for uintXX_t types.
7385
7386commit 5055699c7f7c7ef21703a443ec73117da392f6ae
7387Author: Darren Tucker <dtucker@zip.com.au>
7388Date: Fri Jan 17 18:48:22 2014 +1100
7389
7390 - (dtucker) [openbsd-compat/bsd-statvfs.h] Only start including headers if we
7391 need them to cut down on the name collisions.
7392
7393commit a5cf1e220def07290260e4125e74f41ac75cf88d
7394Author: Darren Tucker <dtucker@zip.com.au>
7395Date: Fri Jan 17 18:10:58 2014 +1100
7396
7397 - (dtucker) [configure.ac openbsd-compat/bsd-statvfs.c
7398 openbsd-compat/bsd-statvfs.h] Implement enough of statvfs on top of statfs
7399 to be useful (and for the regression tests to pass) on platforms that
7400 have statfs and fstatfs. ok djm@
7401
7402commit 1357d71d7b6d269969520aaa3e84d312ec971d5b
7403Author: Darren Tucker <dtucker@zip.com.au>
7404Date: Fri Jan 17 18:00:40 2014 +1100
7405
7406 - (dtucker) Fix typo in #ifndef.
7407
7408commit d23a91ffb289d3553a58b7a60cec39fba9f0f506
7409Author: Darren Tucker <dtucker@zip.com.au>
7410Date: Fri Jan 17 17:32:30 2014 +1100
7411
7412 - (dtucker) [configure.ac digest.c openbsd-compat/openssl-compat.c
7413 openbsd-compat/openssl-compat.h] Add compatibility layer for older
7414 openssl versions. ok djm@
7415
7416commit 868ea1ea1c1bfdbee5dbad78f81999c5983ecf31
7417Author: Damien Miller <djm@mindrot.org>
7418Date: Fri Jan 17 16:47:04 2014 +1100
7419
7420 - (djm) [Makefile.in configure.ac sandbox-capsicum.c sandbox-darwin.c]
7421 [sandbox-null.c sandbox-rlimit.c sandbox-seccomp-filter.c]
7422 [sandbox-systrace.c ssh-sandbox.h sshd.c] Support preauth sandboxing
7423 using the Capsicum API introduced in FreeBSD 10. Patch by Dag-Erling
7424 Smorgrav, updated by Loganaden Velvindron @ AfriNIC; ok dtucker@
7425
7426commit a9d186a8b50d18869a10e9203abf71c83ddb1f79
7427Author: Darren Tucker <dtucker@zip.com.au>
7428Date: Fri Jan 17 16:30:49 2014 +1100
7429
7430 - dtucker@cvs.openbsd.org 2014/01/17 05:26:41
7431 [digest.c]
7432 remove unused includes. ok djm@
7433
7434commit 5f1c57a7a7eb39c0e4fee3367712337dbcaef024
7435Author: Darren Tucker <dtucker@zip.com.au>
7436Date: Fri Jan 17 16:29:45 2014 +1100
7437
7438 - djm@cvs.openbsd.org 2014/01/17 00:21:06
7439 [sftp-client.c]
7440 signed/unsigned comparison warning fix; from portable (Id sync only)
7441
7442commit c548722361d89fb12c108528f96b306a26477b18
7443Author: Darren Tucker <dtucker@zip.com.au>
7444Date: Fri Jan 17 15:12:16 2014 +1100
7445
7446 - (dtucker) [configure.ac] Split AC_CHECK_FUNCS for OpenSSL functions into
7447 separate lines and alphabetize for easier diffing of changes.
7448
7449commit acad351a5b1c37de9130c9c1710445cc45a7f6b9
7450Author: Darren Tucker <dtucker@zip.com.au>
7451Date: Fri Jan 17 14:20:05 2014 +1100
7452
7453 - (dtucker) [defines.h] Add typedefs for uintXX_t types for platforms that
7454 don't have them.
7455
7456commit c3ed065ce8417aaa46490836648c173a5010f226
7457Author: Darren Tucker <dtucker@zip.com.au>
7458Date: Fri Jan 17 14:18:45 2014 +1100
7459
7460 - (dtucker) [openbsd-compat/bcrypt_pbkdf.c] Wrap stdlib.h include inside
7461 #ifdef HAVE_STDINT_H.
7462
7463commit f45f78ae437062c7d9506c5f475b7215f486be44
7464Author: Darren Tucker <dtucker@zip.com.au>
7465Date: Fri Jan 17 12:43:43 2014 +1100
7466
7467 - (dtucker) [blocks.c fe25519.c ge25519.c hash.c sc25519.c verify.c] Include
7468 includes.h to pull in all of the compatibility stuff.
7469
7470commit 99df369d0340caac145d57f700d830147ff18b87
7471Author: Darren Tucker <dtucker@zip.com.au>
7472Date: Fri Jan 17 12:42:17 2014 +1100
7473
7474 - (dtucker) [poly1305.c] Wrap stdlib.h include inside #ifdef HAVE_STDINT_H.
7475
7476commit ac413b62ea1957e80c711acbe0c11b908273fc01
7477Author: Darren Tucker <dtucker@zip.com.au>
7478Date: Fri Jan 17 12:31:33 2014 +1100
7479
7480 - (dtucker) [crypto_api.h] Wrap stdlib.h include inside #ifdef HAVE_STDINT_H.
7481
7482commit 1c4a011e9c939e74815346a560843e1862c300b8
7483Author: Darren Tucker <dtucker@zip.com.au>
7484Date: Fri Jan 17 12:23:23 2014 +1100
7485
7486 - (dtucker) [loginrec.c] Cast to the types specfied in the format
7487 specification to prevent warnings.
7488
7489commit c3d483f9a8275be1113535a1e0d0e384f605f3c4
7490Author: Damien Miller <djm@mindrot.org>
7491Date: Fri Jan 17 11:20:26 2014 +1100
7492
7493 - (djm) [sftp-client.c] signed/unsigned comparison fix
7494
7495commit fd994379dd972417d0491767f7cd9b5bf23f4975
7496Author: Darren Tucker <dtucker@zip.com.au>
7497Date: Fri Jan 17 09:53:24 2014 +1100
7498
7499 - (dtucker) [aclocal.m4 configure.ac] Add some additional compiler/toolchain
7500 hardening flags including -fstack-protector-strong. These default to on
7501 if the toolchain supports them, but there is a configure-time knob
7502 (--without-hardening) to disable them if necessary. ok djm@
7503
7504commit 366224d21768ee8ec28cfbcc5fbade1b32582d58
7505Author: Damien Miller <djm@mindrot.org>
7506Date: Thu Jan 16 18:51:44 2014 +1100
7507
7508 - (djm) [README] update release notes URL.
7509
7510commit 2ae77e64f8fa82cbf25c9755e8e847709b978b40
7511Author: Damien Miller <djm@mindrot.org>
7512Date: Thu Jan 16 18:51:07 2014 +1100
7513
7514 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
7515 [contrib/suse/openssh.spec] Crank RPM spec version numbers.
7516
7517commit 0fa29e6d777c73a1b4ddd3b996b06ee20022ae8a
7518Author: Damien Miller <djm@mindrot.org>
7519Date: Thu Jan 16 18:42:31 2014 +1100
7520
7521 - djm@cvs.openbsd.org 2014/01/16 07:32:00
7522 [version.h]
7523 openssh-6.5
7524
7525commit 52c371cd6d2598cc73d4e633811b3012119c47e2
7526Author: Damien Miller <djm@mindrot.org>
7527Date: Thu Jan 16 18:42:10 2014 +1100
7528
7529 - djm@cvs.openbsd.org 2014/01/16 07:31:09
7530 [sftp-client.c]
7531 needless and incorrect cast to size_t can break resumption of
7532 large download; patch from tobias@
7533
7534commit 91b580e4bec55118bf96ab3cdbe5a50839e75d0a
7535Author: Damien Miller <djm@mindrot.org>
7536Date: Sun Jan 12 19:21:22 2014 +1100
7537
7538 - djm@cvs.openbsd.org 2014/01/12 08:13:13
7539 [bufaux.c buffer.h kex.c kex.h kexc25519.c kexc25519c.c kexc25519s.c]
7540 [kexdhc.c kexdhs.c kexecdhc.c kexecdhs.c kexgexc.c kexgexs.c]
7541 avoid use of OpenSSL BIGNUM type and functions for KEX with
7542 Curve25519 by adding a buffer_put_bignum2_from_string() that stores
7543 a string using the bignum encoding rules. Will make it easier to
7544 build a reduced-feature OpenSSH without OpenSSL in the future;
7545 ok markus@
7546
7547commit af5d4481f4c7c8c3c746e68b961bb85ef907800e
7548Author: Damien Miller <djm@mindrot.org>
7549Date: Sun Jan 12 19:20:47 2014 +1100
7550
7551 - djm@cvs.openbsd.org 2014/01/10 05:59:19
7552 [sshd_config]
7553 the /etc/ssh/ssh_host_ed25519_key is loaded by default too
7554
7555commit 58cd63bc63038acddfb4051ed14e11179d8f4941
7556Author: Damien Miller <djm@mindrot.org>
7557Date: Fri Jan 10 10:59:24 2014 +1100
7558
7559 - djm@cvs.openbsd.org 2014/01/09 23:26:48
7560 [sshconnect.c sshd.c]
7561 ban clients/servers that suffer from SSH_BUG_DERIVEKEY, they are ancient,
7562 deranged and might make some attacks on KEX easier; ok markus@
7563
7564commit b3051d01e505c9c2dc00faab472a0d06fa6b0e65
7565Author: Damien Miller <djm@mindrot.org>
7566Date: Fri Jan 10 10:58:53 2014 +1100
7567
7568 - djm@cvs.openbsd.org 2014/01/09 23:20:00
7569 [digest.c digest.h hostfile.c kex.c kex.h kexc25519.c kexc25519c.c]
7570 [kexc25519s.c kexdh.c kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c]
7571 [kexgexs.c key.c key.h roaming_client.c roaming_common.c schnorr.c]
7572 [schnorr.h ssh-dss.c ssh-ecdsa.c ssh-rsa.c sshconnect2.c]
7573 Introduce digest API and use it to perform all hashing operations
7574 rather than calling OpenSSL EVP_Digest* directly. Will make it easier
7575 to build a reduced-feature OpenSSH without OpenSSL in future;
7576 feedback, ok markus@
7577
7578commit e00e413dd16eb747fb2c15a099971d91c13cf70f
7579Author: Damien Miller <djm@mindrot.org>
7580Date: Fri Jan 10 10:40:45 2014 +1100
7581
7582 - guenther@cvs.openbsd.org 2014/01/09 03:26:00
7583 [sftp-common.c]
7584 When formating the time for "ls -l"-style output, show dates in the future
7585 with the year, and rearrange a comparison to avoid a potentional signed
7586 arithmetic overflow that would give the wrong result.
7587
7588 ok djm@
7589
7590commit 3e49853650448883685cfa32fa382d0ba6d51d48
7591Author: Damien Miller <djm@mindrot.org>
7592Date: Fri Jan 10 10:37:05 2014 +1100
7593
7594 - tedu@cvs.openbsd.org 2014/01/04 17:50:55
7595 [mac.c monitor_mm.c monitor_mm.h xmalloc.c]
7596 use standard types and formats for size_t like variables. ok dtucker
7597
7598commit a9c1e500ef609795cbc662848edb1a1dca279c81
7599Author: Damien Miller <djm@mindrot.org>
7600Date: Wed Jan 8 16:13:12 2014 +1100
7601
7602 - (djm) [regress/.cvsignore] Ignore regress test droppings; ok dtucker@
7603
7604commit 324541e5264e1489ca0babfaf2b39612eb80dfb3
7605Author: Damien Miller <djm@mindrot.org>
7606Date: Tue Dec 31 12:25:40 2013 +1100
7607
7608 - djm@cvs.openbsd.org 2013/12/30 23:52:28
7609 [auth2-hostbased.c auth2-pubkey.c compat.c compat.h ssh-rsa.c]
7610 [sshconnect.c sshconnect2.c sshd.c]
7611 refuse RSA keys from old proprietary clients/servers that use the
7612 obsolete RSA+MD5 signature scheme. it will still be possible to connect
7613 with these clients/servers but only DSA keys will be accepted, and we'll
7614 deprecate them entirely in a future release. ok markus@
7615
7616commit 9f4c8e797ea002a883307ca906f1f1f815010e78
7617Author: Damien Miller <djm@mindrot.org>
7618Date: Sun Dec 29 17:57:46 2013 +1100
7619
7620 - (djm) [regress/Makefile] Add some generated files for cleaning
7621
7622commit 106bf1ca3c7a5fdc34f9fd7a1fe651ca53085bc5
7623Author: Damien Miller <djm@mindrot.org>
7624Date: Sun Dec 29 17:54:03 2013 +1100
7625
7626 - djm@cvs.openbsd.org 2013/12/29 05:57:02
7627 [sshconnect.c]
7628 when showing other hostkeys, don't forget Ed25519 keys
7629
7630commit 0fa47cfb32c239117632cab41e4db7d3e6de5e91
7631Author: Damien Miller <djm@mindrot.org>
7632Date: Sun Dec 29 17:53:39 2013 +1100
7633
7634 - djm@cvs.openbsd.org 2013/12/29 05:42:16
7635 [ssh.c]
7636 don't forget to load Ed25519 certs too
7637
7638commit b9a95490daa04cc307589897f95bfaff324ad2c9
7639Author: Damien Miller <djm@mindrot.org>
7640Date: Sun Dec 29 17:50:15 2013 +1100
7641
7642 - djm@cvs.openbsd.org 2013/12/29 04:35:50
7643 [authfile.c]
7644 don't refuse to load Ed25519 certificates
7645
7646commit f72cdde6e6fabc51d2a62f4e75b8b926d9d7ee89
7647Author: Damien Miller <djm@mindrot.org>
7648Date: Sun Dec 29 17:49:55 2013 +1100
7649
7650 - djm@cvs.openbsd.org 2013/12/29 04:29:25
7651 [authfd.c]
7652 allow deletion of ed25519 keys from the agent
7653
7654commit 29ace1cb68cc378a464c72c0fd67aa5f9acd6b5b
7655Author: Damien Miller <djm@mindrot.org>
7656Date: Sun Dec 29 17:49:31 2013 +1100
7657
7658 - djm@cvs.openbsd.org 2013/12/29 04:20:04
7659 [key.c]
7660 to make sure we don't omit any key types as valid CA keys again,
7661 factor the valid key type check into a key_type_is_valid_ca()
7662 function
7663
7664commit 9de4fcdc5a9cff48d49a3e2f6194d3fb2d7ae34d
7665Author: Damien Miller <djm@mindrot.org>
7666Date: Sun Dec 29 17:49:13 2013 +1100
7667
7668 - djm@cvs.openbsd.org 2013/12/29 02:49:52
7669 [key.c]
7670 correct comment for key_drop_cert()
7671
7672commit 5baeacf8a80f054af40731c6f92435f9164b8e02
7673Author: Damien Miller <djm@mindrot.org>
7674Date: Sun Dec 29 17:48:55 2013 +1100
7675
7676 - djm@cvs.openbsd.org 2013/12/29 02:37:04
7677 [key.c]
7678 correct comment for key_to_certified()
7679
7680commit 83f2fe26cb19330712c952eddbd3c0b621674adc
7681Author: Damien Miller <djm@mindrot.org>
7682Date: Sun Dec 29 17:48:38 2013 +1100
7683
7684 - djm@cvs.openbsd.org 2013/12/29 02:28:10
7685 [key.c]
7686 allow ed25519 keys to appear as certificate authorities
7687
7688commit 06122e9a74bb488b0fe0a8f64e1135de870f9cc0
7689Author: Damien Miller <djm@mindrot.org>
7690Date: Sun Dec 29 17:48:15 2013 +1100
7691
7692 - djm@cvs.openbsd.org 2013/12/27 22:37:18
7693 [ssh-rsa.c]
7694 correct comment
7695
7696commit 3e19295c3a253c8dc8660cf45baad7f45fccb969
7697Author: Damien Miller <djm@mindrot.org>
7698Date: Sun Dec 29 17:47:50 2013 +1100
7699
7700 - djm@cvs.openbsd.org 2013/12/27 22:30:17
7701 [ssh-dss.c ssh-ecdsa.c ssh-rsa.c]
7702 make the original RSA and DSA signing/verification code look more like
7703 the ECDSA/Ed25519 ones: use key_type_plain() when checking the key type
7704 rather than tediously listing all variants, use __func__ for debug/
7705 error messages
7706
7707commit 137977180be6254639e2c90245763e6965f8d815
7708Author: Damien Miller <djm@mindrot.org>
7709Date: Sun Dec 29 17:47:14 2013 +1100
7710
7711 - tedu@cvs.openbsd.org 2013/12/21 07:10:47
7712 [ssh-keygen.1]
7713 small typo
7714
7715commit 339a48fe7ffb3186d22bbaa9efbbc3a053e602fd
7716Author: Damien Miller <djm@mindrot.org>
7717Date: Sun Dec 29 17:46:49 2013 +1100
7718
7719 - djm@cvs.openbsd.org 2013/12/19 22:57:13
7720 [poly1305.c poly1305.h]
7721 use full name for author, with his permission
7722
7723commit 0b36c83148976c7c8268f4f41497359e2fb26251
7724Author: Damien Miller <djm@mindrot.org>
7725Date: Sun Dec 29 17:45:51 2013 +1100
7726
7727 - djm@cvs.openbsd.org 2013/12/19 01:19:41
7728 [ssh-agent.c]
7729 bz#2186: don't crash (NULL deref) when deleting PKCS#11 keys from an agent
7730 that has a mix of normal and PKCS#11 keys; fix from jay AT slushpupie.com;
7731 ok dtucker
7732
7733commit 4def184e9b6c36be6d965a9705632fc4c0c2a8af
7734Author: Damien Miller <djm@mindrot.org>
7735Date: Sun Dec 29 17:45:26 2013 +1100
7736
7737 - djm@cvs.openbsd.org 2013/12/19 01:04:36
7738 [channels.c]
7739 bz#2147: fix multiple remote forwardings with dynamically assigned
7740 listen ports. In the s->c message to open the channel we were sending
7741 zero (the magic number to request a dynamic port) instead of the actual
7742 listen port. The client therefore had no way of discriminating between
7743 them.
7744
7745 Diagnosis and fix by ronf AT timeheart.net
7746
7747commit bf25d114e23a803f8feca8926281b1aaedb6191b
7748Author: Damien Miller <djm@mindrot.org>
7749Date: Sun Dec 29 17:44:56 2013 +1100
7750
7751 - djm@cvs.openbsd.org 2013/12/19 00:27:57
7752 [auth-options.c]
7753 simplify freeing of source-address certificate restriction
7754
7755commit bb3dafe7024a5b4e851252e65ee35d45b965e4a8
7756Author: Damien Miller <djm@mindrot.org>
7757Date: Sun Dec 29 17:44:29 2013 +1100
7758
7759 - dtucker@cvs.openbsd.org 2013/12/19 00:19:12
7760 [serverloop.c]
7761 Cast client_alive_interval to u_int64_t before assinging to
7762 max_time_milliseconds to avoid potential integer overflow in the timeout.
7763 bz#2170, patch from Loganaden Velvindron, ok djm@
7764
7765commit ef275ead3dcadde4db1efe7a0aa02b5e618ed40c
7766Author: Damien Miller <djm@mindrot.org>
7767Date: Sun Dec 29 17:44:07 2013 +1100
7768
7769 - djm@cvs.openbsd.org 2013/12/19 00:10:30
7770 [ssh-add.c]
7771 skip requesting smartcard PIN when removing keys from agent; bz#2187
7772 patch from jay AT slushpupie.com; ok dtucker
7773
7774commit 7d97fd9a1cae778c3eacf16e09f5da3689d616c6
7775Author: Damien Miller <djm@mindrot.org>
7776Date: Sun Dec 29 17:40:18 2013 +1100
7777
7778 - (djm) [loginrec.c] Check for username truncation when looking up lastlog
7779 entries
7780
7781commit 77244afe3b6d013b485e0952eaab89b9db83380f
7782Author: Darren Tucker <dtucker@zip.com.au>
7783Date: Sat Dec 21 17:02:39 2013 +1100
7784
7785 20131221
7786 - (dtucker) [regress/keytype.sh] Actually test ecdsa key types.
7787
7788commit 53f8e784dc431a82d31c9b0e95b144507f9330e9
7789Author: Darren Tucker <dtucker@zip.com.au>
7790Date: Thu Dec 19 11:31:44 2013 +1100
7791
7792 - (dtucker) [auth-pam.c] bz#2163: check return value from pam_get_item().
7793 Patch from Loganaden Velvindron.
7794
7795commit 1fcec9d4f265e38af248c4c845986ca8c174bd68
7796Author: Darren Tucker <dtucker@zip.com.au>
7797Date: Thu Dec 19 11:00:12 2013 +1100
7798
7799 - (dtucker) [configure.ac] bz#2178: Don't try to use BSM on Solaris versions
7800 greater than 11 either rather than just 11. Patch from Tomas Kuthan.
7801
7802commit 6674eb9683afd1ea4eb35670b5e66815543a759e
7803Author: Damien Miller <djm@mindrot.org>
7804Date: Wed Dec 18 17:50:39 2013 +1100
7805
7806 - markus@cvs.openbsd.org 2013/12/17 10:36:38
7807 [crypto_api.h]
7808 I've assempled the header file by cut&pasting from generated headers
7809 and the source files.
7810
7811commit d58a5964426ee014384d67d775d16712e93057f3
7812Author: Damien Miller <djm@mindrot.org>
7813Date: Wed Dec 18 17:50:13 2013 +1100
7814
7815 - djm@cvs.openbsd.org 2013/12/15 21:42:35
7816 [cipher-chachapoly.c]
7817 add some comments and constify a constant
7818
7819commit 059321d19af24d87420de3193f79dfab23556078
7820Author: Damien Miller <djm@mindrot.org>
7821Date: Wed Dec 18 17:49:48 2013 +1100
7822
7823 - pascal@cvs.openbsd.org 2013/12/15 18:17:26
7824 [ssh-add.c]
7825 Make ssh-add also add .ssh/id_ed25519; fixes lie in manual page.
7826 ok markus@
7827
7828commit 155b5a5bf158767f989215479ded2a57f331e1c6
7829Author: Damien Miller <djm@mindrot.org>
7830Date: Wed Dec 18 17:48:32 2013 +1100
7831
7832 - markus@cvs.openbsd.org 2013/12/09 11:08:17
7833 [crypto_api.h]
7834 remove unused defines
7835
7836commit 8a56dc2b6b48b05590810e7f4c3567508410000c
7837Author: Damien Miller <djm@mindrot.org>
7838Date: Wed Dec 18 17:48:11 2013 +1100
7839
7840 - markus@cvs.openbsd.org 2013/12/09 11:03:45
7841 [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h]
7842 [ge25519_base.data hash.c sc25519.c sc25519.h verify.c]
7843 Add Authors for the public domain ed25519/nacl code.
7844 see also http://nacl.cr.yp.to/features.html
7845 All of the NaCl software is in the public domain.
7846 and http://ed25519.cr.yp.to/software.html
7847 The Ed25519 software is in the public domain.
7848
7849commit 6575c3acf31fca117352f31f37b16ae46e664837
7850Author: Damien Miller <djm@mindrot.org>
7851Date: Wed Dec 18 17:47:02 2013 +1100
7852
7853 - dtucker@cvs.openbsd.org 2013/12/08 09:53:27
7854 [sshd_config.5]
7855 Use a literal for the default value of KEXAlgorithms. ok deraadt jmc
7856
7857commit 8ba0ead6985ea14999265136b14ffd5aeec516f9
7858Author: Damien Miller <djm@mindrot.org>
7859Date: Wed Dec 18 17:46:27 2013 +1100
7860
7861 - naddy@cvs.openbsd.org 2013/12/07 11:58:46
7862 [ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh-keysign.8 ssh.1]
7863 [ssh_config.5 sshd.8 sshd_config.5]
7864 add missing mentions of ed25519; ok djm@
7865
7866commit 4f752cf71cf44bf4bc777541156c2bf56daf9ce9
7867Author: Damien Miller <djm@mindrot.org>
7868Date: Wed Dec 18 17:45:35 2013 +1100
7869
7870 - djm@cvs.openbsd.org 2013/12/07 08:08:26
7871 [ssh-keygen.1]
7872 document -a and -o wrt new key format
7873
7874commit 6d6fcd14e23a9053198342bb379815b15e504084
7875Author: Damien Miller <djm@mindrot.org>
7876Date: Sun Dec 8 15:53:28 2013 +1100
7877
7878 - (djm) [Makefile.in regress/Makefile regress/agent-ptrace.sh]
7879 [regress/setuid-allowed.c] Check that ssh-agent is not on a no-setuid
7880 filesystem before running agent-ptrace.sh; ok dtucker
7881
7882commit 7e6e42fb532c7dafd7078ef5e9e2d3e47fcf6752
7883Author: Damien Miller <djm@mindrot.org>
7884Date: Sun Dec 8 08:23:08 2013 +1100
7885
7886 - (djm) [openbsd-compat/bsd-setres_id.c] Missing header; from Corinna
7887 Vinschen
7888
7889commit da3ca351b49d52ae85db2e3998265dc3c6617068
7890Author: Damien Miller <djm@mindrot.org>
7891Date: Sat Dec 7 21:43:46 2013 +1100
7892
7893 - (djm) [Makefile.in] PATHSUBS and keygen bits for Ed25519; from
7894 Loganaden Velvindron @ AfriNIC in bz#2179
7895
7896commit eb401585bb8336cbf81fe4fc58eb9f7cac3ab874
7897Author: Damien Miller <djm@mindrot.org>
7898Date: Sat Dec 7 17:07:15 2013 +1100
7899
7900 - (djm) [regress/cert-hostkey.sh] Fix merge botch
7901
7902commit f54542af3ad07532188b10136ae302314ec69ed6
7903Author: Damien Miller <djm@mindrot.org>
7904Date: Sat Dec 7 16:32:44 2013 +1100
7905
7906 - markus@cvs.openbsd.org 2013/12/06 13:52:46
7907 [regress/Makefile regress/agent.sh regress/cert-hostkey.sh]
7908 [regress/cert-userkey.sh regress/keytype.sh]
7909 test ed25519 support; from djm@
7910
7911commit f104da263de995f66b6861b4f3368264ee483d7f
7912Author: Damien Miller <djm@mindrot.org>
7913Date: Sat Dec 7 12:37:53 2013 +1100
7914
7915 - (djm) [ed25519.c ssh-ed25519.c openbsd-compat/Makefile.in]
7916 [openbsd-compat/bcrypt_pbkdf.c] Make ed25519/new key format compile on
7917 Linux
7918
7919commit 1ff130dac9b7aea0628f4ad30683431fe35e0020
7920Author: Damien Miller <djm@mindrot.org>
7921Date: Sat Dec 7 11:51:51 2013 +1100
7922
7923 - [configure.ac openbsd-compat/Makefile.in openbsd-compat/bcrypt_pbkdf.c]
7924 [openbsd-compat/blf.h openbsd-compat/blowfish.c]
7925 [openbsd-compat/openbsd-compat.h] Start at supporting bcrypt_pbkdf in
7926 portable.
7927
7928commit 4260828a2958ebe8c96f66d8301dac53f4cde556
7929Author: Damien Miller <djm@mindrot.org>
7930Date: Sat Dec 7 11:38:03 2013 +1100
7931
7932 - [authfile.c] Conditionalise inclusion of util.h
7933
7934commit a913442bac8a26fd296a3add51293f8f6f9b3b4c
7935Author: Damien Miller <djm@mindrot.org>
7936Date: Sat Dec 7 11:35:36 2013 +1100
7937
7938 - [Makefile.in] Add ed25519 sources
7939
7940commit ca570a519cb846da61d002c7f46fa92e39c83e45
7941Author: Damien Miller <djm@mindrot.org>
7942Date: Sat Dec 7 11:29:09 2013 +1100
7943
7944 - djm@cvs.openbsd.org 2013/12/07 00:19:15
7945 [key.c]
7946 set k->cert = NULL after freeing it
7947
7948commit 3cccc0e155229a2f2d86b6df40bd4559b4f960ff
7949Author: Damien Miller <djm@mindrot.org>
7950Date: Sat Dec 7 11:27:47 2013 +1100
7951
7952 - [blocks.c ed25519.c fe25519.c fe25519.h ge25519.c ge25519.h]
7953 [ge25519_base.data hash.c sc25519.c sc25519.h verify.c] Fix RCS idents
7954
7955commit a7827c11b3f0380b7e593664bd62013ff9c131db
7956Author: Damien Miller <djm@mindrot.org>
7957Date: Sat Dec 7 11:24:30 2013 +1100
7958
7959 - jmc@cvs.openbsd.org 2013/12/06 15:29:07
7960 [sshd.8]
7961 missing comma;
7962
7963commit 5be9d9e3cbd9c66f24745d25bf2e809c1d158ee0
7964Author: Damien Miller <djm@mindrot.org>
7965Date: Sat Dec 7 11:24:01 2013 +1100
7966
7967 - markus@cvs.openbsd.org 2013/12/06 13:39:49
7968 [authfd.c authfile.c key.c key.h myproposal.h pathnames.h readconf.c]
7969 [servconf.c ssh-agent.c ssh-keygen.c ssh-keyscan.1 ssh-keyscan.c]
7970 [ssh-keysign.c ssh.c ssh_config.5 sshd.8 sshd.c verify.c ssh-ed25519.c]
7971 [sc25519.h sc25519.c hash.c ge25519_base.data ge25519.h ge25519.c]
7972 [fe25519.h fe25519.c ed25519.c crypto_api.h blocks.c]
7973 support ed25519 keys (hostkeys and user identities) using the public
7974 domain ed25519 reference code from SUPERCOP, see
7975 http://ed25519.cr.yp.to/software.html
7976 feedback, help & ok djm@
7977
7978commit bcd00abd8451f36142ae2ee10cc657202149201e
7979Author: Damien Miller <djm@mindrot.org>
7980Date: Sat Dec 7 10:41:55 2013 +1100
7981
7982 - markus@cvs.openbsd.org 2013/12/06 13:34:54
7983 [authfile.c authfile.h cipher.c cipher.h key.c packet.c ssh-agent.c]
7984 [ssh-keygen.c PROTOCOL.key] new private key format, bcrypt as KDF by
7985 default; details in PROTOCOL.key; feedback and lots help from djm;
7986 ok djm@
7987
7988commit f0e9060d236c0e38bec2fa1c6579fb0a2ea6458d
7989Author: Damien Miller <djm@mindrot.org>
7990Date: Sat Dec 7 10:40:26 2013 +1100
7991
7992 - markus@cvs.openbsd.org 2013/12/06 13:30:08
7993 [authfd.c key.c key.h ssh-agent.c]
7994 move private key (de)serialization to key.c; ok djm
7995
7996commit 0f8536da23a6ef26e6495177c0d8a4242b710289
7997Author: Damien Miller <djm@mindrot.org>
7998Date: Sat Dec 7 10:31:37 2013 +1100
7999
8000 - djm@cvs.openbsd.org 2013/12/06 03:40:51
8001 [ssh-keygen.c]
8002 remove duplicated character ('g') in getopt() string;
8003 document the (few) remaining option characters so we don't have to
8004 rummage next time.
8005
8006commit 393920745fd328d3fe07f739a3cf7e1e6db45b60
8007Author: Damien Miller <djm@mindrot.org>
8008Date: Sat Dec 7 10:31:08 2013 +1100
8009
8010 - djm@cvs.openbsd.org 2013/12/05 22:59:45
8011 [sftp-client.c]
8012 fix memory leak in error path in do_readdir(); pointed out by
8013 Loganaden Velvindron @ AfriNIC in bz#2163
8014
8015commit 534b2ccadea5e5e9a8b27226e6faac3ed5552e97
8016Author: Damien Miller <djm@mindrot.org>
8017Date: Thu Dec 5 14:07:27 2013 +1100
8018
8019 - djm@cvs.openbsd.org 2013/12/05 01:16:41
8020 [servconf.c servconf.h]
8021 bz#2161 - fix AuthorizedKeysCommand inside a Match block and
8022 rearrange things so the same error is harder to make next time;
8023 with and ok dtucker@
8024
8025commit 8369c8e61a3408ec6bb75755fad4ffce29b5fdbe
8026Author: Darren Tucker <dtucker@zip.com.au>
8027Date: Thu Dec 5 11:00:16 2013 +1100
8028
8029 - (dtucker) [configure.ac] bz#2173: use pkg-config --libs to include correct
8030 -L location for libedit. Patch from Serge van den Boom.
8031
8032commit 9275df3e0a2a3bc3897f7d664ea86a425c8a092d
8033Author: Damien Miller <djm@mindrot.org>
8034Date: Thu Dec 5 10:26:32 2013 +1100
8035
8036 - djm@cvs.openbsd.org 2013/12/04 04:20:01
8037 [sftp-client.c]
8038 bz#2171: don't leak local_fd on error; from Loganaden Velvindron @
8039 AfriNIC
8040
8041commit 960f6a2b5254e4da082d8aa3700302ed12dc769a
8042Author: Damien Miller <djm@mindrot.org>
8043Date: Thu Dec 5 10:26:14 2013 +1100
8044
8045 - djm@cvs.openbsd.org 2013/12/02 03:13:14
8046 [cipher.c]
8047 correct bzero of chacha20+poly1305 key context. bz#2177 from
8048 Loganaden Velvindron @ AfriNIC
8049
8050 Also make it a memset for consistency with the rest of cipher.c
8051
8052commit f7e8a8796d661c9d6692ab837e1effd4f5ada1c2
8053Author: Damien Miller <djm@mindrot.org>
8054Date: Thu Dec 5 10:25:51 2013 +1100
8055
8056 - djm@cvs.openbsd.org 2013/12/02 03:09:22
8057 [key.c]
8058 make key_to_blob() return a NULL blob on failure; part of
8059 bz#2175 from Loganaden Velvindron @ AfriNIC
8060
8061commit f1e44ea9d9a6d4c1a95a0024132e603bd1778c9c
8062Author: Damien Miller <djm@mindrot.org>
8063Date: Thu Dec 5 10:23:21 2013 +1100
8064
8065 - djm@cvs.openbsd.org 2013/12/02 02:56:17
8066 [ssh-pkcs11-helper.c]
8067 use-after-free; bz#2175 patch from Loganaden Velvindron @ AfriNIC
8068
8069commit 114e540b15d57618f9ebf624264298f80bbd8c77
8070Author: Damien Miller <djm@mindrot.org>
8071Date: Thu Dec 5 10:22:57 2013 +1100
8072
8073 - djm@cvs.openbsd.org 2013/12/02 02:50:27
8074 [PROTOCOL.chacha20poly1305]
8075 typo; from Jon Cave
8076
8077commit e4870c090629e32f2cb649dc16d575eeb693f4a8
8078Author: Damien Miller <djm@mindrot.org>
8079Date: Thu Dec 5 10:22:39 2013 +1100
8080
8081 - djm@cvs.openbsd.org 2013/12/01 23:19:05
8082 [PROTOCOL]
8083 mention curve25519-sha256@libssh.org key exchange algorithm
8084
8085commit 1d2f8804a6d33a4e908b876b2e1266b8260ec76b
8086Author: Damien Miller <djm@mindrot.org>
8087Date: Thu Dec 5 10:22:03 2013 +1100
8088
8089 - deraadt@cvs.openbsd.org 2013/11/26 19:15:09
8090 [pkcs11.h]
8091 cleanup 1 << 31 idioms. Resurrection of this issue pointed out by
8092 Eitan Adler ok markus for ssh, implies same change in kerberosV
8093
8094commit bdb352a54f82df94a548e3874b22f2d6ae90328d
8095Author: Damien Miller <djm@mindrot.org>
8096Date: Thu Dec 5 10:20:52 2013 +1100
8097
8098 - jmc@cvs.openbsd.org 2013/11/26 12:14:54
8099 [ssh.1 ssh.c]
8100 - put -Q in the right place
8101 - Ar was a poor choice for the arguments to -Q. i've chosen an
8102 admittedly equally poor Cm, at least consistent with the rest
8103 of the docs. also no need for multiple instances
8104 - zap a now redundant Nm
8105 - usage() sync
8106
8107commit d937dc084a087090f1cf5395822c3ac958d33759
8108Author: Damien Miller <djm@mindrot.org>
8109Date: Thu Dec 5 10:19:54 2013 +1100
8110
8111 - deraadt@cvs.openbsd.org 2013/11/25 18:04:21
8112 [ssh.1 ssh.c]
8113 improve -Q usage and such. One usage change is that the option is now
8114 case-sensitive
8115 ok dtucker markus djm
8116
8117commit dec0393f7ee8aabc7d9d0fc2c5fddb4bc649112e
8118Author: Damien Miller <djm@mindrot.org>
8119Date: Thu Dec 5 10:18:43 2013 +1100
8120
8121 - jmc@cvs.openbsd.org 2013/11/21 08:05:09
8122 [ssh_config.5 sshd_config.5]
8123 no need for .Pp before displays;
8124
8125commit 8a073cf57940aabf85e49799f89f5d5e9b072c1b
8126Author: Damien Miller <djm@mindrot.org>
8127Date: Thu Nov 21 14:26:18 2013 +1100
8128
8129 - djm@cvs.openbsd.org 2013/11/21 03:18:51
8130 [regress/cipher-speed.sh regress/integrity.sh regress/rekey.sh]
8131 [regress/try-ciphers.sh]
8132 use new "ssh -Q cipher-auth" query to obtain lists of authenticated
8133 encryption ciphers instead of specifying them manually; ensures that
8134 the new chacha20poly1305@openssh.com mode is tested;
8135
8136 ok markus@ and naddy@ as part of the diff to add
8137 chacha20poly1305@openssh.com
8138
8139commit ea61b2179f63d48968dd2c9617621002bb658bfe
8140Author: Damien Miller <djm@mindrot.org>
8141Date: Thu Nov 21 14:25:15 2013 +1100
8142
8143 - djm@cvs.openbsd.org 2013/11/21 03:16:47
8144 [regress/modpipe.c]
8145 use unsigned long long instead of u_int64_t here to avoid warnings
8146 on some systems portable OpenSSH is built on.
8147
8148commit 36aba25b0409d2db6afc84d54bc47a2532d38424
8149Author: Damien Miller <djm@mindrot.org>
8150Date: Thu Nov 21 14:24:42 2013 +1100
8151
8152 - djm@cvs.openbsd.org 2013/11/21 03:15:46
8153 [regress/krl.sh]
8154 add some reminders for additional tests that I'd like to implement
8155
8156commit fa7a20bc289f09b334808d988746bc260a2f60c9
8157Author: Damien Miller <djm@mindrot.org>
8158Date: Thu Nov 21 14:24:08 2013 +1100
8159
8160 - naddy@cvs.openbsd.org 2013/11/18 05:09:32
8161 [regress/forward-control.sh]
8162 bump timeout to 10 seconds to allow slow machines (e.g. Alpha PC164)
8163 to successfully run this; ok djm@
8164 (ID sync only; our timeouts are already longer)
8165
8166commit 0fde8acdad78a4d20cadae974376cc0165f645ee
8167Author: Damien Miller <djm@mindrot.org>
8168Date: Thu Nov 21 14:12:23 2013 +1100
8169
8170 - djm@cvs.openbsd.org 2013/11/21 00:45:44
8171 [Makefile.in PROTOCOL PROTOCOL.chacha20poly1305 authfile.c chacha.c]
8172 [chacha.h cipher-chachapoly.c cipher-chachapoly.h cipher.c cipher.h]
8173 [dh.c myproposal.h packet.c poly1305.c poly1305.h servconf.c ssh.1]
8174 [ssh.c ssh_config.5 sshd_config.5] Add a new protocol 2 transport
8175 cipher "chacha20-poly1305@openssh.com" that combines Daniel
8176 Bernstein's ChaCha20 stream cipher and Poly1305 MAC to build an
8177 authenticated encryption mode.
8178
8179 Inspired by and similar to Adam Langley's proposal for TLS:
8180 http://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-03
8181 but differs in layout used for the MAC calculation and the use of a
8182 second ChaCha20 instance to separately encrypt packet lengths.
8183 Details are in the PROTOCOL.chacha20poly1305 file.
8184
8185 Feedback markus@, naddy@; manpage bits Loganden Velvindron @ AfriNIC
8186 ok markus@ naddy@
8187
8188commit fdb2306acdc3eb2bc46b6dfdaaf6005c650af22a
8189Author: Damien Miller <djm@mindrot.org>
8190Date: Thu Nov 21 13:57:15 2013 +1100
8191
8192 - deraadt@cvs.openbsd.org 2013/11/20 20:54:10
8193 [canohost.c clientloop.c match.c readconf.c sftp.c]
8194 unsigned casts for ctype macros where neccessary
8195 ok guenther millert markus
8196
8197commit e00167307e4d3692695441e9bd712f25950cb894
8198Author: Damien Miller <djm@mindrot.org>
8199Date: Thu Nov 21 13:56:49 2013 +1100
8200
8201 - deraadt@cvs.openbsd.org 2013/11/20 20:53:10
8202 [scp.c]
8203 unsigned casts for ctype macros where neccessary
8204 ok guenther millert markus
8205
8206commit 23e00aa6ba9eee0e0c218f2026bf405ad4625832
8207Author: Damien Miller <djm@mindrot.org>
8208Date: Thu Nov 21 13:56:28 2013 +1100
8209
8210 - djm@cvs.openbsd.org 2013/11/20 02:19:01
8211 [sshd.c]
8212 delay closure of in/out fds until after "Bad protocol version
8213 identification..." message, as get_remote_ipaddr/get_remote_port
8214 require them open.
8215
8216commit 867e6934be6521f87f04a5ab86702e2d1b314245
8217Author: Damien Miller <djm@mindrot.org>
8218Date: Thu Nov 21 13:56:06 2013 +1100
8219
8220 - markus@cvs.openbsd.org 2013/11/13 13:48:20
8221 [ssh-pkcs11.c]
8222 add missing braces found by pedro
8223
8224commit 0600c7020f4fe68a780bd7cf21ff541a8d4b568a
8225Author: Damien Miller <djm@mindrot.org>
8226Date: Thu Nov 21 13:55:43 2013 +1100
8227
8228 - dtucker@cvs.openbsd.org 2013/11/08 11:15:19
8229 [bufaux.c bufbn.c buffer.c sftp-client.c sftp-common.c sftp-glob.c]
8230 [uidswap.c] Include stdlib.h for free() as per the man page.
8231
8232commit b6a75b0b93b8faa6f79c3a395ab6c71f3f880b80
8233Author: Darren Tucker <dtucker@zip.com.au>
8234Date: Sun Nov 10 20:25:22 2013 +1100
8235
8236 - (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
8237 querying the ones that are compiled in.
8238
8239commit 2c89430119367eb1bc96ea5ee55de83357e4c926
8240Author: Darren Tucker <dtucker@zip.com.au>
8241Date: Sun Nov 10 12:38:42 2013 +1100
8242
8243 - (dtucker) [key.c] Check for the correct defines for NID_secp521r1.
8244
8245commit dd5264db5f641dbd03186f9e5e83e4b14b3d0003
8246Author: Darren Tucker <dtucker@zip.com.au>
8247Date: Sat Nov 9 22:32:51 2013 +1100
8248
8249 - (dtucker) [configure.ac] Add missing "test".
8250
8251commit 95cb2d4eb08117be061f3ff076adef3e9a5372c3
8252Author: Darren Tucker <dtucker@zip.com.au>
8253Date: Sat Nov 9 22:02:31 2013 +1100
8254
8255 - (dtucker) [configure.ac] Fix brackets in NID_secp521r1 test.
8256
8257commit 37bcef51b3d9d496caecea6394814d2f49a1357f
8258Author: Darren Tucker <dtucker@zip.com.au>
8259Date: Sat Nov 9 18:39:25 2013 +1100
8260
8261 - (dtucker) [configure.ac kex.c key.c myproposal.h] Test for the presence of
8262 NID_X9_62_prime256v1, NID_secp384r1 and NID_secp521r1 and test that the
8263 latter actually works before using it. Fedora (at least) has NID_secp521r1
8264 that doesn't work (see https://bugzilla.redhat.com/show_bug.cgi?id=1021897).
8265
8266commit 6e2fe81f926d995bae4be4a6b5b3c88c1c525187
8267Author: Darren Tucker <dtucker@zip.com.au>
8268Date: Sat Nov 9 16:55:03 2013 +1100
8269
8270 - dtucker@cvs.openbsd.org 2013/11/09 05:41:34
8271 [regress/test-exec.sh regress/rekey.sh]
8272 Use smaller test data files to speed up tests. Grow test datafiles
8273 where necessary for a specific test.
8274
8275commit aff7ef1bb8b7c1eeb1f4812129091c5adbf51848
8276Author: Darren Tucker <dtucker@zip.com.au>
8277Date: Sat Nov 9 00:19:22 2013 +1100
8278
8279 - (dtucker) [contrib/cygwin/ssh-host-config] Simplify host key generation:
8280 rather than testing and generating each key, call ssh-keygen -A.
8281 Patch from vinschen at redhat.com.
8282
8283commit 882abfd3fb3c98cfe70b4fc79224770468b570a5
8284Author: Darren Tucker <dtucker@zip.com.au>
8285Date: Sat Nov 9 00:17:41 2013 +1100
8286
8287 - (dtucker) [Makefile.in configure.ac] Set MALLOC_OPTIONS per platform
8288 and pass in TEST_ENV. Unknown options cause stderr to get polluted
8289 and the stderr-data test to fail.
8290
8291commit 8c333ec23bdf7da917aa20ac6803a2cdd79182c5
8292Author: Darren Tucker <dtucker@zip.com.au>
8293Date: Fri Nov 8 21:12:58 2013 +1100
8294
8295 - (dtucker) [openbsd-compat/bsd-poll.c] Add headers to prevent compile
8296 warnings.
8297
8298commit d94240b2f6b376b6e9de187e4a0cd4b89dfc48cb
8299Author: Darren Tucker <dtucker@zip.com.au>
8300Date: Fri Nov 8 21:10:04 2013 +1100
8301
8302 - (dtucker) [myproposal.h] Conditionally enable CURVE25519_SHA256.
8303
8304commit 1c8ce34909886288a3932dce770deec5449f7bb5
8305Author: Darren Tucker <dtucker@zip.com.au>
8306Date: Fri Nov 8 19:50:32 2013 +1100
8307
8308 - (dtucker) [kex.c] Only enable CURVE25519_SHA256 if we actually have
8309 EVP_sha256.
8310
8311commit ccdb9bec46bcc88549b26a94aa0bae2b9f51031c
8312Author: Darren Tucker <dtucker@zip.com.au>
8313Date: Fri Nov 8 18:54:38 2013 +1100
8314
8315 - (dtucker) [openbsd-compat/openbsd-compat.h] Add null implementation of
8316 arc4random_stir for platforms that have arc4random but don't have
8317 arc4random_stir (right now this is only OpenBSD -current).
8318
8319commit 3420a50169b52cc8d2775d51316f9f866c73398f
8320Author: Damien Miller <djm@mindrot.org>
8321Date: Fri Nov 8 16:48:13 2013 +1100
8322
8323 - (djm) [README contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
8324 [contrib/suse/openssh.spec] Update version numbers following release.
8325
8326commit 3ac4a234df842fd8c94d9cb0ad198e1fe84b895b
8327Author: Damien Miller <djm@mindrot.org>
8328Date: Fri Nov 8 12:39:49 2013 +1100
8329
8330 - djm@cvs.openbsd.org 2013/11/08 01:38:11
8331 [version.h]
8332 openssh-6.4
8333
8334commit 6c81fee693038de7d4a5559043350391db2a2761
8335Author: Damien Miller <djm@mindrot.org>
8336Date: Fri Nov 8 12:19:55 2013 +1100
8337
8338 - djm@cvs.openbsd.org 2013/11/08 00:39:15
8339 [auth-options.c auth2-chall.c authfd.c channels.c cipher-3des1.c]
8340 [clientloop.c gss-genr.c monitor_mm.c packet.c schnorr.c umac.c]
8341 [sftp-client.c sftp-glob.c]
8342 use calloc for all structure allocations; from markus@
8343
8344commit 690d989008e18af3603a5e03f1276c9bad090370
8345Author: Damien Miller <djm@mindrot.org>
8346Date: Fri Nov 8 12:16:49 2013 +1100
8347
8348 - dtucker@cvs.openbsd.org 2013/11/07 11:58:27
8349 [cipher.c cipher.h kex.c kex.h mac.c mac.h servconf.c ssh.c]
8350 Output the effective values of Ciphers, MACs and KexAlgorithms when
8351 the default has not been overridden. ok markus@
8352
8353commit 08998c5fb9c7c1d248caa73b76e02ca0482e6d85
8354Author: Darren Tucker <dtucker@zip.com.au>
8355Date: Fri Nov 8 12:11:46 2013 +1100
8356
8357 - dtucker@cvs.openbsd.org 2013/11/08 01:06:14
8358 [regress/rekey.sh]
8359 Rekey less frequently during tests to speed them up
8360
8361commit 4bf7e50e533aa956366df7402c132f202e841a48
8362Author: Darren Tucker <dtucker@zip.com.au>
8363Date: Thu Nov 7 22:33:48 2013 +1100
8364
8365 - (dtucker) [Makefile.in configure.ac] Remove TEST_SSH_SHA256 environment
8366 variable. It's no longer used now that we get the supported MACs from
8367 ssh -Q.
8368
8369commit 6e9d6f411288374d1dee4b7debbfa90bc7e73035
8370Author: Darren Tucker <dtucker@zip.com.au>
8371Date: Thu Nov 7 15:32:37 2013 +1100
8372
8373 - dtucker@cvs.openbsd.org 2013/11/07 04:26:56
8374 [regress/kextype.sh]
8375 trailing space
8376
8377commit 74cbc22529f3e5de756e1b7677b7624efb28f62c
8378Author: Darren Tucker <dtucker@zip.com.au>
8379Date: Thu Nov 7 15:26:12 2013 +1100
8380
8381 - dtucker@cvs.openbsd.org 2013/11/07 03:55:41
8382 [regress/kextype.sh]
8383 Use ssh -Q to get kex types instead of a static list.
8384
8385commit a955041c930e63405159ff7d25ef14272f36eab3
8386Author: Darren Tucker <dtucker@zip.com.au>
8387Date: Thu Nov 7 15:21:19 2013 +1100
8388
8389 - dtucker@cvs.openbsd.org 2013/11/07 02:48:38
8390 [regress/integrity.sh regress/cipher-speed.sh regress/try-ciphers.sh]
8391 Use ssh -Q instead of hardcoding lists of ciphers or MACs.
8392
8393commit 06595d639577577bc15d359e037a31eb83563269
8394Author: Darren Tucker <dtucker@zip.com.au>
8395Date: Thu Nov 7 15:08:02 2013 +1100
8396
8397 - dtucker@cvs.openbsd.org 2013/11/07 01:12:51
8398 [regress/rekey.sh]
8399 Factor out the data transfer rekey tests
8400
8401commit 651dc8b2592202dac6b16ee3b82ce5b331be7da3
8402Author: Darren Tucker <dtucker@zip.com.au>
8403Date: Thu Nov 7 15:04:44 2013 +1100
8404
8405 - dtucker@cvs.openbsd.org 2013/11/07 00:12:05
8406 [regress/rekey.sh]
8407 Test rekeying for every Cipher, MAC and KEX, plus test every KEX with
8408 the GCM ciphers.
8409
8410commit 234557762ba1096a867ca6ebdec07efebddb5153
8411Author: Darren Tucker <dtucker@zip.com.au>
8412Date: Thu Nov 7 15:00:51 2013 +1100
8413
8414 - dtucker@cvs.openbsd.org 2013/11/04 12:27:42
8415 [regress/rekey.sh]
8416 Test rekeying with all KexAlgorithms.
8417
8418commit bbfb9b0f386aab0c3e19d11f136199ef1b9ad0ef
8419Author: Darren Tucker <dtucker@zip.com.au>
8420Date: Thu Nov 7 14:56:43 2013 +1100
8421
8422 - markus@cvs.openbsd.org 2013/11/02 22:39:53
8423 [regress/kextype.sh]
8424 add curve25519-sha256@libssh.org
8425
8426commit aa19548a98c0f89283ebd7354abd746ca6bc4fdf
8427Author: Darren Tucker <dtucker@zip.com.au>
8428Date: Thu Nov 7 14:50:09 2013 +1100
8429
8430 - djm@cvs.openbsd.org 2013/10/09 23:44:14
8431 [regress/Makefile] (ID sync only)
8432 regression test for sftp request white/blacklisting and readonly mode.
8433
8434commit c8908aabff252f5da772d4e679479c2b7d18cac1
8435Author: Damien Miller <djm@mindrot.org>
8436Date: Thu Nov 7 13:38:35 2013 +1100
8437
8438 - djm@cvs.openbsd.org 2013/11/06 23:05:59
8439 [ssh-pkcs11.c]
8440 from portable: s/true/true_val/ to avoid name collisions on dump platforms
8441 RCSID sync only
8442
8443commit 49c145c5e89b9d7d48e84328d6347d5ad640b567
8444Author: Damien Miller <djm@mindrot.org>
8445Date: Thu Nov 7 13:35:39 2013 +1100
8446
8447 - markus@cvs.openbsd.org 2013/11/06 16:52:11
8448 [monitor_wrap.c]
8449 fix rekeying for AES-GCM modes; ok deraadt
8450
8451commit 67a8800f290b39fd60e379988c700656ae3f2539
8452Author: Damien Miller <djm@mindrot.org>
8453Date: Thu Nov 7 13:32:51 2013 +1100
8454
8455 - markus@cvs.openbsd.org 2013/11/04 11:51:16
8456 [monitor.c]
8457 fix rekeying for KEX_C25519_SHA256; noted by dtucker@
8458 RCSID sync only; I thought this was a merge botch and fixed it already
8459
8460commit df8b030b15fcec7baf38ec7944f309f9ca8cc9a7
8461Author: Damien Miller <djm@mindrot.org>
8462Date: Thu Nov 7 13:28:16 2013 +1100
8463
8464 - (djm) [configure.ac defines.h] Skip arc4random_stir() calls on platforms
8465 that lack it but have arc4random_uniform()
8466
8467commit a6fd1d3c38a562709374a70fa76423859160aa90
8468Author: Damien Miller <djm@mindrot.org>
8469Date: Thu Nov 7 12:03:26 2013 +1100
8470
8471 - (djm) [regress/modpipe.c regress/rekey.sh] Never intended to commit these
8472
8473commit c98319750b0bbdd0d1794420ec97d65dd9244613
8474Author: Damien Miller <djm@mindrot.org>
8475Date: Thu Nov 7 12:00:23 2013 +1100
8476
8477 - (djm) [Makefile.in monitor.c] Missed chunks of curve25519 KEX diff
8478
8479commit 61c5c2319e84a58210810d39b062c8b8e3321160
8480Author: Damien Miller <djm@mindrot.org>
8481Date: Thu Nov 7 11:34:14 2013 +1100
8482
8483 - (djm) [ssh-pkcs11.c] Bring back "non-constant initialiser" fix (rev 1.5)
8484 that got lost in recent merge.
8485
8486commit 094003f5454a9f5a607674b2739824a7e91835f4
8487Author: Damien Miller <djm@mindrot.org>
8488Date: Mon Nov 4 22:59:27 2013 +1100
8489
8490 - (djm) [kexc25519.c kexc25519c.c kexc25519s.c] Import missed files from
8491 KEX/curve25519 change
8492
8493commit ca67a7eaf8766499ba67801d0be8cdaa550b9a50
8494Author: Damien Miller <djm@mindrot.org>
8495Date: Mon Nov 4 09:05:17 2013 +1100
8496
8497 - djm@cvs.openbsd.org 2013/11/03 10:37:19
8498 [roaming_common.c]
8499 fix a couple of function definitions foo() -> foo(void)
8500 (-Wold-style-definition)
8501
8502commit 0bd8f1519d51af8d4229be81e8f2f4903a1d440b
8503Author: Damien Miller <djm@mindrot.org>
8504Date: Mon Nov 4 08:55:43 2013 +1100
8505
8506 - markus@cvs.openbsd.org 2013/11/02 22:39:19
8507 [ssh_config.5 sshd_config.5]
8508 the default kex is now curve25519-sha256@libssh.org
8509
8510commit 4c3ba0767fbe4a8a2a748df4035aaf86651f6b30
8511Author: Damien Miller <djm@mindrot.org>
8512Date: Mon Nov 4 08:40:13 2013 +1100
8513
8514 - markus@cvs.openbsd.org 2013/11/02 22:34:01
8515 [auth-options.c]
8516 no need to include monitor_wrap.h and ssh-gss.h
8517
8518commit 660621b2106b987b874c2f120218bec249d0f6ba
8519Author: Damien Miller <djm@mindrot.org>
8520Date: Mon Nov 4 08:37:51 2013 +1100
8521
8522 - markus@cvs.openbsd.org 2013/11/02 22:24:24
8523 [kexdhs.c kexecdhs.c]
8524 no need to include ssh-gss.h
8525
8526commit abdca986decfbbc008c895195b85e879ed460ada
8527Author: Damien Miller <djm@mindrot.org>
8528Date: Mon Nov 4 08:30:05 2013 +1100
8529
8530 - markus@cvs.openbsd.org 2013/11/02 22:10:15
8531 [kexdhs.c kexecdhs.c]
8532 no need to include monitor_wrap.h
8533
8534commit 1e1242604eb0fd510fe93f81245c529237ffc513
8535Author: Damien Miller <djm@mindrot.org>
8536Date: Mon Nov 4 08:26:52 2013 +1100
8537
8538 - markus@cvs.openbsd.org 2013/11/02 21:59:15
8539 [kex.c kex.h myproposal.h ssh-keyscan.c sshconnect2.c sshd.c]
8540 use curve25519 for default key exchange (curve25519-sha256@libssh.org);
8541 initial patch from Aris Adamantiadis; ok djm@
8542
8543commit d2252c79191d069372ed6effce7c7a2de93448cd
8544Author: Damien Miller <djm@mindrot.org>
8545Date: Mon Nov 4 07:41:48 2013 +1100
8546
8547 - markus@cvs.openbsd.org 2013/11/02 20:03:54
8548 [ssh-pkcs11.c]
8549 support pkcs#11 tokes that only provide x509 zerts instead of raw pubkeys;
8550 fixes bz#1908; based on patch from Laurent Barbe; ok djm
8551
8552commit 007e3b357e880caa974d5adf9669298ba0751c78
8553Author: Darren Tucker <dtucker@zip.com.au>
8554Date: Sun Nov 3 18:43:55 2013 +1100
8555
8556 - (dtucker) [configure.ac defines.h] Add typedefs for intmax_t and uintmax_t
8557 for platforms that don't have them.
8558
8559commit 710f3747352fb93a63e5b69b12379da37f5b3fa9
8560Author: Darren Tucker <dtucker@zip.com.au>
8561Date: Sun Nov 3 17:20:34 2013 +1100
8562
8563 - (dtucker) [openbsd-compat/setproctitle.c] Handle error case form the 2nd
8564 vsnprintf. From eric at openbsd via chl@.
8565
8566commit d52770452308e5c2e99f4da6edaaa77ef078b610
8567Author: Darren Tucker <dtucker@zip.com.au>
8568Date: Sun Nov 3 16:30:46 2013 +1100
8569
8570 - (dtucker) [openbsd-compat/bsd-misc.c] Include time.h for nanosleep.
8571 From OpenSMTPD where it prevents "implicit declaration" warnings (it's
8572 a no-op in OpenSSH). From chl at openbsd.
8573
8574commit 63857c9340d3482746a5622ffdacc756751f6448
8575Author: Damien Miller <djm@mindrot.org>
8576Date: Wed Oct 30 22:31:06 2013 +1100
8577
8578 - jmc@cvs.openbsd.org 2013/10/29 18:49:32
8579 [sshd_config.5]
8580 pty(4), not pty(7);
8581
8582commit 5ff30c6b68adeee767dd29bf2369763c6a13c0b3
8583Author: Damien Miller <djm@mindrot.org>
8584Date: Wed Oct 30 22:21:50 2013 +1100
8585
8586 - djm@cvs.openbsd.org 2013/10/29 09:48:02
8587 [servconf.c servconf.h session.c sshd_config sshd_config.5]
8588 shd_config PermitTTY to disallow TTY allocation, mirroring the
8589 longstanding no-pty authorized_keys option;
8590 bz#2070, patch from Teran McKinney; ok markus@
8591
8592commit 4a3a9d4bbf8048473f5cc202cd8db7164d5e6b8d
8593Author: Damien Miller <djm@mindrot.org>
8594Date: Wed Oct 30 22:19:47 2013 +1100
8595
8596 - djm@cvs.openbsd.org 2013/10/29 09:42:11
8597 [key.c key.h]
8598 fix potential stack exhaustion caused by nested certificates;
8599 report by Mateusz Kocielski; ok dtucker@ markus@
8600
8601commit 28631ceaa7acd9bc500f924614431542893c6a21
8602Author: Damien Miller <djm@mindrot.org>
8603Date: Sat Oct 26 10:07:56 2013 +1100
8604
8605 - djm@cvs.openbsd.org 2013/10/25 23:04:51
8606 [ssh.c]
8607 fix crash when using ProxyCommand caused by previous commit - was calling
8608 freeaddrinfo(NULL); spotted by sthen@ and Tim Ruehsen, patch by sthen@
8609
8610commit 26506ad29350c5681815745cc90b3952a84cf118
8611Author: Damien Miller <djm@mindrot.org>
8612Date: Sat Oct 26 10:05:46 2013 +1100
8613
8614 - (djm) [ssh-keygen.c ssh-keysign.c sshconnect1.c sshd.c] Remove
8615 unnecessary arc4random_stir() calls. The only ones left are to ensure
8616 that the PRNG gets a different state after fork() for platforms that
8617 have broken the API.
8618
8619commit bd43e8872325e9bbb3319c89da593614709f317c
8620Author: Tim Rice <tim@multitalents.net>
8621Date: Thu Oct 24 12:22:49 2013 -0700
8622
8623 - (tim) [regress/sftp-perm.sh] We need a shell that understands "! somecmd"
8624
8625commit a90c0338083ee0e4064c4bdf61f497293a699be0
8626Author: Damien Miller <djm@mindrot.org>
8627Date: Thu Oct 24 21:03:17 2013 +1100
8628
8629 - djm@cvs.openbsd.org 2013/10/24 08:19:36
8630 [ssh.c]
8631 fix bug introduced in hostname canonicalisation commit: don't try to
8632 resolve hostnames when a ProxyCommand is set unless the user has forced
8633 canonicalisation; spotted by Iain Morgan
8634
8635commit cf31f3863425453ffcda540fbefa9df80088c8d1
8636Author: Damien Miller <djm@mindrot.org>
8637Date: Thu Oct 24 21:02:56 2013 +1100
8638
8639 - dtucker@cvs.openbsd.org 2013/10/24 00:51:48
8640 [readconf.c servconf.c ssh_config.5 sshd_config.5]
8641 Disallow empty Match statements and add "Match all" which matches
8642 everything. ok djm, man page help jmc@
8643
8644commit 4bedd4032a09ce87322ae5ea80f193f109e5c607
8645Author: Damien Miller <djm@mindrot.org>
8646Date: Thu Oct 24 21:02:26 2013 +1100
8647
8648 - dtucker@cvs.openbsd.org 2013/10/24 00:49:49
8649 [moduli.c]
8650 Periodically print progress and, if possible, expected time to completion
8651 when screening moduli for DH groups. ok deraadt djm
8652
8653commit 5ecb41629860687b145be63b8877fabb6bae5eda
8654Author: Damien Miller <djm@mindrot.org>
8655Date: Thu Oct 24 21:02:02 2013 +1100
8656
8657 - djm@cvs.openbsd.org 2013/10/23 23:35:32
8658 [sshd.c]
8659 include local address and port in "Connection from ..." message (only
8660 shown at loglevel>=verbose)
8661
8662commit 03bf2e61ad6ac59a362a1f11b105586cb755c147
8663Author: Damien Miller <djm@mindrot.org>
8664Date: Thu Oct 24 21:01:26 2013 +1100
8665
8666 - dtucker@cvs.openbsd.org 2013/10/23 05:40:58
8667 [servconf.c]
8668 fix comment
8669
8670commit 8f1873191478847773906af961c8984d02a49dd6
8671Author: Damien Miller <djm@mindrot.org>
8672Date: Thu Oct 24 10:53:02 2013 +1100
8673
8674 - (djm) [auth-krb5.c] bz#2032 - use local username in krb5_kuserok check
8675 rather than full client name which may be of form user@REALM;
8676 patch from Miguel Sanders; ok dtucker@
8677
8678commit 5b01b0dcb417eb615df77e7ce1b59319bf04342c
8679Author: Damien Miller <djm@mindrot.org>
8680Date: Wed Oct 23 16:31:31 2013 +1100
8681
8682 - djm@cvs.openbsd.org 2013/10/23 04:16:22
8683 [ssh-keygen.c]
8684 Make code match documentation: relative-specified certificate expiry time
8685 should be relative to current time and not the validity start time.
8686 Reported by Petr Lautrbach; ok deraadt@
8687
8688commit eff5cada589f25793dbe63a76aba9da39837a148
8689Author: Damien Miller <djm@mindrot.org>
8690Date: Wed Oct 23 16:31:10 2013 +1100
8691
8692 - djm@cvs.openbsd.org 2013/10/23 03:05:19
8693 [readconf.c ssh.c]
8694 comment
8695
8696commit 084bcd24e9fe874020e4df4e073e7408e1b17fb7
8697Author: Damien Miller <djm@mindrot.org>
8698Date: Wed Oct 23 16:30:51 2013 +1100
8699
8700 - djm@cvs.openbsd.org 2013/10/23 03:03:07
8701 [readconf.c]
8702 Hostname may have %h sequences that should be expanded prior to Match
8703 evaluation; spotted by Iain Morgan
8704
8705commit 8e5a67f46916def40b2758bb7755350dd2eee843
8706Author: Damien Miller <djm@mindrot.org>
8707Date: Wed Oct 23 16:30:25 2013 +1100
8708
8709 - jmc@cvs.openbsd.org 2013/10/20 18:00:13
8710 [ssh_config.5]
8711 tweak the "exec" description, as worded by djm;
8712
8713commit c0049bd0bca02890cd792babc594771c563f91f2
8714Author: Damien Miller <djm@mindrot.org>
8715Date: Wed Oct 23 16:29:59 2013 +1100
8716
8717 - djm@cvs.openbsd.org 2013/10/20 09:51:26
8718 [scp.1 sftp.1]
8719 add canonicalisation options to -o lists
8720
8721commit 8a04be795fc28514a09e55a54b2e67968f2e1b3a
8722Author: Damien Miller <djm@mindrot.org>
8723Date: Wed Oct 23 16:29:40 2013 +1100
8724
8725 - djm@cvs.openbsd.org 2013/10/20 06:19:28
8726 [readconf.c ssh_config.5]
8727 rename "command" subclause of the recently-added "Match" keyword to
8728 "exec"; it's shorter, clearer in intent and we might want to add the
8729 ability to match against the command being executed at the remote end in
8730 the future.
8731
8732commit 5c86ebdf83b636b6741db4b03569ef4a53b89a58
8733Author: Damien Miller <djm@mindrot.org>
8734Date: Wed Oct 23 16:29:12 2013 +1100
8735
8736 - djm@cvs.openbsd.org 2013/10/20 04:39:28
8737 [ssh_config.5]
8738 document % expansions performed by "Match command ..."
8739
8740commit 4502f88774edc56194707167443f94026d3c7cfa
8741Author: Damien Miller <djm@mindrot.org>
8742Date: Fri Oct 18 10:17:36 2013 +1100
8743
8744 - djm@cvs.openbsd.org 2013/10/17 22:08:04
8745 [sshd.c]
8746 include remote port in bad banner message; bz#2162
8747
8748commit 1edcbf65ebd2febeaf10a836468f35e519eed7ca
8749Author: Damien Miller <djm@mindrot.org>
8750Date: Fri Oct 18 10:17:17 2013 +1100
8751
8752 - jmc@cvs.openbsd.org 2013/10/17 07:35:48
8753 [sftp.1 sftp.c]
8754 tweak previous;
8755
8756commit a176e1823013dd8533a20235b3a5131f0626f46b
8757Author: Damien Miller <djm@mindrot.org>
8758Date: Fri Oct 18 09:05:41 2013 +1100
8759
8760 - djm@cvs.openbsd.org 2013/10/09 23:44:14
8761 [regress/Makefile regress/sftp-perm.sh]
8762 regression test for sftp request white/blacklisting and readonly mode.
8763
8764commit e3ea09494dcfe7ba76536e95765c8328ecfc18fb
8765Author: Damien Miller <djm@mindrot.org>
8766Date: Thu Oct 17 11:57:23 2013 +1100
8767
8768 - djm@cvs.openbsd.org 2013/10/17 00:46:49
8769 [ssh.c]
8770 rearrange check to reduce diff against -portable
8771 (Id sync only)
8772
8773commit f29238e67471a7f1088a99c3c3dbafce76b790cf
8774Author: Damien Miller <djm@mindrot.org>
8775Date: Thu Oct 17 11:48:52 2013 +1100
8776
8777 - djm@cvs.openbsd.org 2013/10/17 00:30:13
8778 [PROTOCOL sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c]
8779 fsync@openssh.com protocol extension for sftp-server
8780 client support to allow calling fsync() faster successful transfer
8781 patch mostly by imorgan AT nas.nasa.gov; bz#1798
8782 "fine" markus@ "grumble OK" deraadt@ "doesn't sound bad to me" millert@
8783
8784commit 51682faa599550a69d8120e5e2bdbdc0625ef4be
8785Author: Damien Miller <djm@mindrot.org>
8786Date: Thu Oct 17 11:48:31 2013 +1100
8787
8788 - djm@cvs.openbsd.org 2013/10/16 22:58:01
8789 [ssh.c ssh_config.5]
8790 one I missed in previous: s/isation/ization/
8791
8792commit 3850559be93f1a442ae9ed370e8c389889dd5f72
8793Author: Damien Miller <djm@mindrot.org>
8794Date: Thu Oct 17 11:48:13 2013 +1100
8795
8796 - djm@cvs.openbsd.org 2013/10/16 22:49:39
8797 [readconf.c readconf.h ssh.1 ssh.c ssh_config.5]
8798 s/canonicalise/canonicalize/ for consistency with existing spelling,
8799 e.g. authorized_keys; pointed out by naddy@
8800
8801commit 607af3434b75acc7199a5d99d5a9c11068c01f27
8802Author: Damien Miller <djm@mindrot.org>
8803Date: Thu Oct 17 11:47:51 2013 +1100
8804
8805 - jmc@cvs.openbsd.org 2013/10/16 06:42:25
8806 [ssh_config.5]
8807 tweak previous;
8808
8809commit 0faf747e2f77f0f7083bcd59cbed30c4b5448444
8810Author: Damien Miller <djm@mindrot.org>
8811Date: Thu Oct 17 11:47:23 2013 +1100
8812
8813 - djm@cvs.openbsd.org 2013/10/16 02:31:47
8814 [readconf.c readconf.h roaming_client.c ssh.1 ssh.c ssh_config.5]
8815 [sshconnect.c sshconnect.h]
8816 Implement client-side hostname canonicalisation to allow an explicit
8817 search path of domain suffixes to use to convert unqualified host names
8818 to fully-qualified ones for host key matching.
8819 This is particularly useful for host certificates, which would otherwise
8820 need to list unqualified names alongside fully-qualified ones (and this
8821 causes a number of problems).
8822 "looks fine" markus@
8823
8824commit d77b81f856e078714ec6b0f86f61c20249b7ead4
8825Author: Damien Miller <djm@mindrot.org>
8826Date: Thu Oct 17 11:39:00 2013 +1100
8827
8828 - jmc@cvs.openbsd.org 2013/10/15 14:10:25
8829 [ssh.1 ssh_config.5]
8830 tweak previous;
8831
8832commit dcd39f29ce3308dc74a0ff27a9056205a932ce05
8833Author: Damien Miller <djm@mindrot.org>
8834Date: Thu Oct 17 11:31:40 2013 +1100
8835
8836 - [ssh.c] g/c unused variable.
8837
8838commit 5359a628ce3763408da25d83271a8eddec597a0c
8839Author: Damien Miller <djm@mindrot.org>
8840Date: Tue Oct 15 12:20:37 2013 +1100
8841
8842 - [ssh.c] g/c unused variable.
8843
8844commit 386feab0c4736b054585ee8ee372865d5cde8d69
8845Author: Damien Miller <djm@mindrot.org>
8846Date: Tue Oct 15 12:14:49 2013 +1100
8847
8848 - djm@cvs.openbsd.org 2013/10/14 23:31:01
8849 [ssh.c]
8850 whitespace at EOL; pointed out by markus@
8851
8852commit e9fc72edd6c313b670558cd5219601c38a949b67
8853Author: Damien Miller <djm@mindrot.org>
8854Date: Tue Oct 15 12:14:12 2013 +1100
8855
8856 - djm@cvs.openbsd.org 2013/10/14 23:28:23
8857 [canohost.c misc.c misc.h readconf.c sftp-server.c ssh.c]
8858 refactor client config code a little:
8859 add multistate option partsing to readconf.c, similar to servconf.c's
8860 existing code.
8861 move checking of options that accept "none" as an argument to readconf.c
8862 add a lowercase() function and use it instead of explicit tolower() in
8863 loops
8864 part of a larger diff that was ok markus@
8865
8866commit 194fd904d8597a274b93e075b2047afdf5a175d4
8867Author: Damien Miller <djm@mindrot.org>
8868Date: Tue Oct 15 12:13:05 2013 +1100
8869
8870 - djm@cvs.openbsd.org 2013/10/14 22:22:05
8871 [readconf.c readconf.h ssh-keysign.c ssh.c ssh_config.5]
8872 add a "Match" keyword to ssh_config that allows matching on hostname,
8873 user and result of arbitrary commands. "nice work" markus@
8874
8875commit 71df752de2a04f423b1cd18d961a79f4fbccbcee
8876Author: Damien Miller <djm@mindrot.org>
8877Date: Tue Oct 15 12:12:02 2013 +1100
8878
8879 - djm@cvs.openbsd.org 2013/10/14 21:20:52
8880 [session.c session.h]
8881 Add logging of session starts in a useful format; ok markus@ feedback and
8882 ok dtucker@
8883
8884commit 6efab27109b82820e8d32a5d811adb7bfc354f65
8885Author: Damien Miller <djm@mindrot.org>
8886Date: Tue Oct 15 12:07:05 2013 +1100
8887
8888 - jmc@cvs.openbsd.org 2013/10/14 14:18:56
8889 [sftp-server.8 sftp-server.c]
8890 tweak previous;
8891 ok djm
8892
8893commit 61c7de8a94156f6d7e9718ded9be8c65bb902b66
8894Author: Damien Miller <djm@mindrot.org>
8895Date: Tue Oct 15 12:06:45 2013 +1100
8896
8897 - djm@cvs.openbsd.org 2013/10/11 02:53:45
8898 [sftp-client.h]
8899 obsolete comment
8900
8901commit 2f93d0556e4892208c9b072624caa8cc5ddd839d
8902Author: Damien Miller <djm@mindrot.org>
8903Date: Tue Oct 15 12:06:27 2013 +1100
8904
8905 - djm@cvs.openbsd.org 2013/10/11 02:52:23
8906 [sftp-client.c]
8907 missed one arg reorder
8908
8909commit bda5c8445713ae592d969a5105ed1a65da22bc96
8910Author: Damien Miller <djm@mindrot.org>
8911Date: Tue Oct 15 12:05:58 2013 +1100
8912
8913 - djm@cvs.openbsd.org 2013/10/11 02:45:36
8914 [sftp-client.c]
8915 rename flag arguments to be more clear and consistent.
8916 reorder some internal function arguments to make adding additional flags
8917 easier.
8918 no functional change
8919
8920commit 61ee4d68ca0fcc793a826fc7ec70f3b8ffd12ab6
8921Author: Damien Miller <djm@mindrot.org>
8922Date: Tue Oct 15 11:56:47 2013 +1100
8923
8924 - djm@cvs.openbsd.org 2013/10/10 01:43:03
8925 [sshd.c]
8926 bz#2139: fix re-exec fallback by ensuring that startup_pipe is correctly
8927 updated; ok dtucker@
8928
8929commit 73600e51af9ee734a19767e0c084bbbc5eb5b8da
8930Author: Damien Miller <djm@mindrot.org>
8931Date: Tue Oct 15 11:56:25 2013 +1100
8932
8933 - djm@cvs.openbsd.org 2013/10/10 00:53:25
8934 [sftp-server.c]
8935 add -Q, -P and -p to usage() before jmc@ catches me
8936
8937commit 6eaeebf27d92f39a38c772aa3f20c2250af2dd29
8938Author: Damien Miller <djm@mindrot.org>
8939Date: Tue Oct 15 11:55:57 2013 +1100
8940
8941 - djm@cvs.openbsd.org 2013/10/09 23:42:17
8942 [sftp-server.8 sftp-server.c]
8943 Add ability to whitelist and/or blacklist sftp protocol requests by name.
8944 Refactor dispatch loop and consolidate read-only mode checks.
8945 Make global variables static, since sftp-server is linked into sshd(8).
8946 ok dtucker@
8947
8948commit df62d71e64d29d1054e7a53d1a801075ef70335f
8949Author: Darren Tucker <dtucker@zip.com.au>
8950Date: Thu Oct 10 10:32:39 2013 +1100
8951
8952 - dtucker@cvs.openbsd.org 2013/10/08 11:42:13
8953 [dh.c dh.h]
8954 Increase the size of the Diffie-Hellman groups requested for a each
8955 symmetric key size. New values from NIST Special Publication 800-57 with
8956 the upper limit specified by RFC4419. Pointed out by Peter Backes, ok
8957 djm@.
8958
8959commit e6e52f8c5dc89a6767702e65bb595aaf7bc8991c
8960Author: Darren Tucker <dtucker@zip.com.au>
8961Date: Thu Oct 10 10:28:07 2013 +1100
8962
8963 - djm@cvs.openbsd.org 2013/09/19 01:26:29
8964 [sshconnect.c]
8965 bz#1211: make BindAddress work with UsePrivilegedPort=yes; patch from
8966 swp AT swp.pp.ru; ok dtucker@
8967
8968commit 71152bc9911bc34a98810b2398dac20df3fe8de3
8969Author: Darren Tucker <dtucker@zip.com.au>
8970Date: Thu Oct 10 10:27:21 2013 +1100
8971
8972 - djm@cvs.openbsd.org 2013/09/19 01:24:46
8973 [channels.c]
8974 bz#1297 - tell the client (via packet_send_debug) when their preferred
8975 listen address has been overridden by the server's GatewayPorts;
8976 ok dtucker@
8977
8978commit b59aaf3c4f3f449a4b86d8528668bd979be9aa5f
8979Author: Darren Tucker <dtucker@zip.com.au>
8980Date: Thu Oct 10 10:26:21 2013 +1100
8981
8982 - djm@cvs.openbsd.org 2013/09/19 00:49:12
8983 [sftp-client.c]
8984 fix swapped pflag and printflag in sftp upload_dir; from Iain Morgan
8985
8986commit 5d80e4522d6238bdefe9d0c634f0e6d35a241e41
8987Author: Darren Tucker <dtucker@zip.com.au>
8988Date: Thu Oct 10 10:25:09 2013 +1100
8989
8990 - djm@cvs.openbsd.org 2013/09/19 00:24:52
8991 [progressmeter.c]
8992 store the initial file offset so the progress meter doesn't freak out
8993 when resuming sftp transfers. bz#2137; patch from Iain Morgan; ok dtucker@
8994
8995commit ad92df7e5ed26fea85adfb3f95352d6cd8e86344
8996Author: Darren Tucker <dtucker@zip.com.au>
8997Date: Thu Oct 10 10:24:11 2013 +1100
8998
8999 - sthen@cvs.openbsd.org 2013/09/16 11:35:43
9000 [ssh_config]
9001 Remove gssapi config parts from ssh_config, as was already done for
9002 sshd_config. Req by/ok ajacoutot@
9003 ID SYNC ONLY for portable; kerberos/gssapi is still pretty popular
9004
9005commit 720711960b130d36dfdd3d50eb25ef482bdd000e
9006Author: Damien Miller <djm@mindrot.org>
9007Date: Wed Oct 9 10:44:47 2013 +1100
9008
9009 - (djm) [openbsd-compat/Makefile.in openbsd-compat/arc4random.c]
9010 [openbsd-compat/bsd-arc4random.c] Replace old RC4-based arc4random
9011 implementation with recent OpenBSD's ChaCha-based PRNG. ok dtucker@,
9012 tested tim@
9013
9014commit 9159310087a218e28940a592896808b8eb76a039
9015Author: Damien Miller <djm@mindrot.org>
9016Date: Wed Oct 9 10:42:32 2013 +1100
9017
9018 - (djm) [openbsd-compat/arc4random.c openbsd-compat/chacha_private.h] Pull
9019 in OpenBSD implementation of arc4random, shortly to replace the existing
9020 bsd-arc4random.c
9021
9022commit 67f1d557a68d6fa8966a327d7b6dee3408cf0e72
9023Author: Damien Miller <djm@mindrot.org>
9024Date: Wed Oct 9 09:33:08 2013 +1100
9025
9026 correct incorrect years in datestamps; from des
9027
9028commit f2bf36c3eb4d969f85ec8aa342e9aecb61cc8bb1
9029Author: Darren Tucker <dtucker@zip.com.au>
9030Date: Sun Sep 22 19:02:40 2013 +1000
9031
9032 - (dtucker) [platform.c platform.h sshd.c] bz#2156: restore Linux oom_adj
9033 setting when handling SIGHUP to maintain behaviour over retart. Patch
9034 from Matthew Ife.
9035
9036commit e90a06ae570fd259a2f5ced873c7f17390f535a5
9037Author: Darren Tucker <dtucker@zip.com.au>
9038Date: Wed Sep 18 15:09:38 2013 +1000
9039
9040 - (dtucker) [sshd_config] Trailing whitespace; from jstjohn at purdue edu.
9041
9042commit 13840e0103946982cee2a05c40697be7e57dca41
9043Author: Damien Miller <djm@mindrot.org>
9044Date: Sat Sep 14 09:49:43 2013 +1000
9045
9046 - djm@cvs.openbsd.org 2013/09/13 06:54:34
9047 [channels.c]
9048 avoid unaligned access in code that reused a buffer to send a
9049 struct in_addr in a reply; simpler just use use buffer_put_int();
9050 from portable; spotted by and ok dtucker@
9051
9052commit 70182522a47d283513a010338cd028cb80dac2ab
9053Author: Damien Miller <djm@mindrot.org>
9054Date: Sat Sep 14 09:49:19 2013 +1000
9055
9056 - djm@cvs.openbsd.org 2013/09/12 01:41:12
9057 [clientloop.c]
9058 fix connection crash when sending break (~B) on ControlPersist'd session;
9059 ok dtucker@
9060
9061commit ff9d6c2a4171ee32e8fe28fc3b86eb33bd5c845b
9062Author: Damien Miller <djm@mindrot.org>
9063Date: Sat Sep 14 09:48:55 2013 +1000
9064
9065 - sthen@cvs.openbsd.org 2013/09/07 13:53:11
9066 [sshd_config]
9067 Remove commented-out kerberos/gssapi config options from sample config,
9068 kerberos support is currently not enabled in ssh in OpenBSD. Discussed with
9069 various people; ok deraadt@
9070 ID SYNC ONLY for portable; kerberos/gssapi is still pretty popular
9071
9072commit 8bab5e7b5ff6721d926b5ebf05a3a24489889c58
9073Author: Damien Miller <djm@mindrot.org>
9074Date: Sat Sep 14 09:47:00 2013 +1000
9075
9076 - deraadt@cvs.openbsd.org 2013/09/02 22:00:34
9077 [ssh-keygen.c sshconnect1.c sshd.c]
9078 All the instances of arc4random_stir() are bogus, since arc4random()
9079 does this itself, inside itself, and has for a very long time.. Actually,
9080 this was probably reducing the entropy available.
9081 ok djm
9082 ID SYNC ONLY for portable; we don't trust other arc4random implementations
9083 to do this right.
9084
9085commit 61353b3208d548fab863e0e0ac5d2400ee5bb340
9086Author: Damien Miller <djm@mindrot.org>
9087Date: Sat Sep 14 09:45:32 2013 +1000
9088
9089 - djm@cvs.openbsd.org 2013/08/31 00:13:54
9090 [sftp.c]
9091 make ^w match ksh behaviour (delete previous word instead of entire line)
9092
9093commit 660854859cad31d234edb9353fb7ca2780df8128
9094Author: Damien Miller <djm@mindrot.org>
9095Date: Sat Sep 14 09:45:03 2013 +1000
9096
9097 - mikeb@cvs.openbsd.org 2013/08/28 12:34:27
9098 [ssh-keygen.c]
9099 improve batch processing a bit by making use of the quite flag a bit
9100 more often and exit with a non zero code if asked to find a hostname
9101 in a known_hosts file and it wasn't there;
9102 originally from reyk@, ok djm
9103
9104commit 045bda5cb8acf0eb9d71c275ee1247e3154fc9e5
9105Author: Damien Miller <djm@mindrot.org>
9106Date: Sat Sep 14 09:44:37 2013 +1000
9107
9108 - djm@cvs.openbsd.org 2013/08/22 19:02:21
9109 [sshd.c]
9110 Stir PRNG after post-accept fork. The child gets a different PRNG state
9111 anyway via rexec and explicit privsep reseeds, but it's good to be sure.
9112 ok markus@
9113
9114commit ed4af412da60a084891b20412433a27966613fb8
9115Author: Damien Miller <djm@mindrot.org>
9116Date: Sat Sep 14 09:40:51 2013 +1000
9117
9118 add marker for 6.3p1 release at the point of the last included change
9119
9120commit 43968a8e66a0aa1afefb11665bf96f86b113f5d9
9121Author: Damien Miller <djm@mindrot.org>
9122Date: Wed Aug 28 14:00:54 2013 +1000
9123
9124 - (djm) [openbsd-compat/bsd-snprintf.c] #ifdef noytet for intmax_t bits
9125 until we have configure support.
9126
9127commit 04be8b9e53f8388c94b531ebc5d1bd6e10e930d1
9128Author: Damien Miller <djm@mindrot.org>
9129Date: Wed Aug 28 12:49:43 2013 +1000
9130
9131 - (djm) [openbsd-compat/bsd-snprintf.c] teach our local snprintf code the
9132 'j' (intmax_t/uintmax_t) and 'z' (size_t/ssize_t) conversions in case we
9133 start to use them in the future.
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..7500df532
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1707 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2
3/* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address
4 */
5#undef AIX_GETNAMEINFO_HACK
6
7/* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */
8#undef AIX_LOGINFAILED_4ARG
9
10/* System only supports IPv4 audit records */
11#undef AU_IPv4
12
13/* Define if your resolver libs need this for getrrsetbyname */
14#undef BIND_8_COMPAT
15
16/* The system has incomplete BSM API */
17#undef BROKEN_BSM_API
18
19/* Define if cmsg_type is not passed correctly */
20#undef BROKEN_CMSG_TYPE
21
22/* getaddrinfo is broken (if present) */
23#undef BROKEN_GETADDRINFO
24
25/* getgroups(0,NULL) will return -1 */
26#undef BROKEN_GETGROUPS
27
28/* FreeBSD glob does not do what we need */
29#undef BROKEN_GLOB
30
31/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
32#undef BROKEN_INET_NTOA
33
34/* ia_uinfo routines not supported by OS yet */
35#undef BROKEN_LIBIAF
36
37/* Ultrix mmap can't map files */
38#undef BROKEN_MMAP
39
40/* Define if your struct dirent expects you to allocate extra space for d_name
41 */
42#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
43
44/* Can't do comparisons on readv */
45#undef BROKEN_READV_COMPARISON
46
47/* NetBSD read function is sometimes redirected, breaking atomicio comparisons
48 against it */
49#undef BROKEN_READ_COMPARISON
50
51/* 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 `nsl' library (-lnsl). */
698#undef HAVE_LIBNSL
699
700/* Define to 1 if you have the `pam' library (-lpam). */
701#undef HAVE_LIBPAM
702
703/* Define to 1 if you have the `socket' library (-lsocket). */
704#undef HAVE_LIBSOCKET
705
706/* Define to 1 if you have the <libutil.h> header file. */
707#undef HAVE_LIBUTIL_H
708
709/* Define to 1 if you have the `xnet' library (-lxnet). */
710#undef HAVE_LIBXNET
711
712/* Define to 1 if you have the `z' library (-lz). */
713#undef HAVE_LIBZ
714
715/* Define to 1 if you have the <limits.h> header file. */
716#undef HAVE_LIMITS_H
717
718/* Define to 1 if you have the <linux/audit.h> header file. */
719#undef HAVE_LINUX_AUDIT_H
720
721/* Define to 1 if you have the <linux/filter.h> header file. */
722#undef HAVE_LINUX_FILTER_H
723
724/* Define to 1 if you have the <linux/if_tun.h> header file. */
725#undef HAVE_LINUX_IF_TUN_H
726
727/* Define to 1 if you have the <linux/seccomp.h> header file. */
728#undef HAVE_LINUX_SECCOMP_H
729
730/* Define to 1 if you have the <locale.h> header file. */
731#undef HAVE_LOCALE_H
732
733/* Define to 1 if you have the `login' function. */
734#undef HAVE_LOGIN
735
736/* Define to 1 if you have the <login_cap.h> header file. */
737#undef HAVE_LOGIN_CAP_H
738
739/* Define to 1 if you have the `login_getcapbool' function. */
740#undef HAVE_LOGIN_GETCAPBOOL
741
742/* Define to 1 if you have the <login.h> header file. */
743#undef HAVE_LOGIN_H
744
745/* Define to 1 if you have the `logout' function. */
746#undef HAVE_LOGOUT
747
748/* Define to 1 if you have the `logwtmp' function. */
749#undef HAVE_LOGWTMP
750
751/* Define to 1 if the system has the type `long double'. */
752#undef HAVE_LONG_DOUBLE
753
754/* Define to 1 if the system has the type `long long'. */
755#undef HAVE_LONG_LONG
756
757/* Define to 1 if you have the <maillock.h> header file. */
758#undef HAVE_MAILLOCK_H
759
760/* Define to 1 if you have the `mblen' function. */
761#undef HAVE_MBLEN
762
763/* Define to 1 if you have the `md5_crypt' function. */
764#undef HAVE_MD5_CRYPT
765
766/* Define if you want to allow MD5 passwords */
767#undef HAVE_MD5_PASSWORDS
768
769/* Define to 1 if you have the `memmove' function. */
770#undef HAVE_MEMMOVE
771
772/* Define to 1 if you have the <memory.h> header file. */
773#undef HAVE_MEMORY_H
774
775/* Define to 1 if you have the `memset_s' function. */
776#undef HAVE_MEMSET_S
777
778/* Define to 1 if you have the `mkdtemp' function. */
779#undef HAVE_MKDTEMP
780
781/* Define to 1 if you have the `mmap' function. */
782#undef HAVE_MMAP
783
784/* define if you have mode_t data type */
785#undef HAVE_MODE_T
786
787/* Some systems put nanosleep outside of libc */
788#undef HAVE_NANOSLEEP
789
790/* Define to 1 if you have the <ndir.h> header file. */
791#undef HAVE_NDIR_H
792
793/* Define to 1 if you have the <netdb.h> header file. */
794#undef HAVE_NETDB_H
795
796/* Define to 1 if you have the <netgroup.h> header file. */
797#undef HAVE_NETGROUP_H
798
799/* Define to 1 if you have the <net/if_tun.h> header file. */
800#undef HAVE_NET_IF_TUN_H
801
802/* Define if you are on NeXT */
803#undef HAVE_NEXT
804
805/* Define to 1 if you have the `ngetaddrinfo' function. */
806#undef HAVE_NGETADDRINFO
807
808/* Define to 1 if you have the `nsleep' function. */
809#undef HAVE_NSLEEP
810
811/* Define to 1 if you have the `ogetaddrinfo' function. */
812#undef HAVE_OGETADDRINFO
813
814/* Define if you have an old version of PAM which takes only one argument to
815 pam_strerror */
816#undef HAVE_OLD_PAM
817
818/* Define to 1 if you have the `openlog_r' function. */
819#undef HAVE_OPENLOG_R
820
821/* Define to 1 if you have the `openpty' function. */
822#undef HAVE_OPENPTY
823
824/* Define if your ssl headers are included with #include <openssl/header.h> */
825#undef HAVE_OPENSSL
826
827/* Define if you have Digital Unix Security Integration Architecture */
828#undef HAVE_OSF_SIA
829
830/* Define to 1 if you have the `pam_getenvlist' function. */
831#undef HAVE_PAM_GETENVLIST
832
833/* Define to 1 if you have the <pam/pam_appl.h> header file. */
834#undef HAVE_PAM_PAM_APPL_H
835
836/* Define to 1 if you have the `pam_putenv' function. */
837#undef HAVE_PAM_PUTENV
838
839/* Define to 1 if you have the <paths.h> header file. */
840#undef HAVE_PATHS_H
841
842/* Define if you have ut_pid in utmp.h */
843#undef HAVE_PID_IN_UTMP
844
845/* define if you have pid_t data type */
846#undef HAVE_PID_T
847
848/* Define to 1 if you have the `poll' function. */
849#undef HAVE_POLL
850
851/* Define to 1 if you have the <poll.h> header file. */
852#undef HAVE_POLL_H
853
854/* Define to 1 if you have the `prctl' function. */
855#undef HAVE_PRCTL
856
857/* Define if you have /proc/$pid/fd */
858#undef HAVE_PROC_PID
859
860/* Define to 1 if you have the `pstat' function. */
861#undef HAVE_PSTAT
862
863/* Define to 1 if you have the <pty.h> header file. */
864#undef HAVE_PTY_H
865
866/* Define to 1 if you have the `pututline' function. */
867#undef HAVE_PUTUTLINE
868
869/* Define to 1 if you have the `pututxline' function. */
870#undef HAVE_PUTUTXLINE
871
872/* Define to 1 if you have the `readpassphrase' function. */
873#undef HAVE_READPASSPHRASE
874
875/* Define to 1 if you have the <readpassphrase.h> header file. */
876#undef HAVE_READPASSPHRASE_H
877
878/* Define to 1 if you have the `reallocarray' function. */
879#undef HAVE_REALLOCARRAY
880
881/* Define to 1 if you have the `realpath' function. */
882#undef HAVE_REALPATH
883
884/* Define to 1 if you have the `recvmsg' function. */
885#undef HAVE_RECVMSG
886
887/* sys/resource.h has RLIMIT_NPROC */
888#undef HAVE_RLIMIT_NPROC
889
890/* Define to 1 if you have the <rpc/types.h> header file. */
891#undef HAVE_RPC_TYPES_H
892
893/* Define to 1 if you have the `rresvport_af' function. */
894#undef HAVE_RRESVPORT_AF
895
896/* Define to 1 if you have the `RSA_generate_key_ex' function. */
897#undef HAVE_RSA_GENERATE_KEY_EX
898
899/* Define to 1 if you have the `RSA_get_default_method' function. */
900#undef HAVE_RSA_GET_DEFAULT_METHOD
901
902/* Define to 1 if you have the <sandbox.h> header file. */
903#undef HAVE_SANDBOX_H
904
905/* Define to 1 if you have the `sandbox_init' function. */
906#undef HAVE_SANDBOX_INIT
907
908/* define if you have sa_family_t data type */
909#undef HAVE_SA_FAMILY_T
910
911/* Define to 1 if you have the `scan_scaled' function. */
912#undef HAVE_SCAN_SCALED
913
914/* Define if you have SecureWare-based protected password database */
915#undef HAVE_SECUREWARE
916
917/* Define to 1 if you have the <security/pam_appl.h> header file. */
918#undef HAVE_SECURITY_PAM_APPL_H
919
920/* Define to 1 if you have the `sendmsg' function. */
921#undef HAVE_SENDMSG
922
923/* Define to 1 if you have the `setauthdb' function. */
924#undef HAVE_SETAUTHDB
925
926/* Define to 1 if you have the `setdtablesize' function. */
927#undef HAVE_SETDTABLESIZE
928
929/* Define to 1 if you have the `setegid' function. */
930#undef HAVE_SETEGID
931
932/* Define to 1 if you have the `setenv' function. */
933#undef HAVE_SETENV
934
935/* Define to 1 if you have the `seteuid' function. */
936#undef HAVE_SETEUID
937
938/* Define to 1 if you have the `setgroupent' function. */
939#undef HAVE_SETGROUPENT
940
941/* Define to 1 if you have the `setgroups' function. */
942#undef HAVE_SETGROUPS
943
944/* Define to 1 if you have the `setlinebuf' function. */
945#undef HAVE_SETLINEBUF
946
947/* Define to 1 if you have the `setlogin' function. */
948#undef HAVE_SETLOGIN
949
950/* Define to 1 if you have the `setluid' function. */
951#undef HAVE_SETLUID
952
953/* Define to 1 if you have the `setpassent' function. */
954#undef HAVE_SETPASSENT
955
956/* Define to 1 if you have the `setpcred' function. */
957#undef HAVE_SETPCRED
958
959/* Define to 1 if you have the `setproctitle' function. */
960#undef HAVE_SETPROCTITLE
961
962/* Define to 1 if you have the `setregid' function. */
963#undef HAVE_SETREGID
964
965/* Define to 1 if you have the `setresgid' function. */
966#undef HAVE_SETRESGID
967
968/* Define to 1 if you have the `setresuid' function. */
969#undef HAVE_SETRESUID
970
971/* Define to 1 if you have the `setreuid' function. */
972#undef HAVE_SETREUID
973
974/* Define to 1 if you have the `setrlimit' function. */
975#undef HAVE_SETRLIMIT
976
977/* Define to 1 if you have the `setsid' function. */
978#undef HAVE_SETSID
979
980/* Define to 1 if you have the `setutent' function. */
981#undef HAVE_SETUTENT
982
983/* Define to 1 if you have the `setutxdb' function. */
984#undef HAVE_SETUTXDB
985
986/* Define to 1 if you have the `setutxent' function. */
987#undef HAVE_SETUTXENT
988
989/* Define to 1 if you have the `setvbuf' function. */
990#undef HAVE_SETVBUF
991
992/* Define to 1 if you have the `set_id' function. */
993#undef HAVE_SET_ID
994
995/* Define to 1 if you have the `SHA256_Update' function. */
996#undef HAVE_SHA256_UPDATE
997
998/* Define to 1 if you have the <sha2.h> header file. */
999#undef HAVE_SHA2_H
1000
1001/* Define to 1 if you have the <shadow.h> header file. */
1002#undef HAVE_SHADOW_H
1003
1004/* Define to 1 if you have the `sigaction' function. */
1005#undef HAVE_SIGACTION
1006
1007/* Define to 1 if you have the `sigvec' function. */
1008#undef HAVE_SIGVEC
1009
1010/* Define to 1 if the system has the type `sig_atomic_t'. */
1011#undef HAVE_SIG_ATOMIC_T
1012
1013/* define if you have size_t data type */
1014#undef HAVE_SIZE_T
1015
1016/* Define to 1 if you have the `snprintf' function. */
1017#undef HAVE_SNPRINTF
1018
1019/* Define to 1 if you have the `socketpair' function. */
1020#undef HAVE_SOCKETPAIR
1021
1022/* Have PEERCRED socket option */
1023#undef HAVE_SO_PEERCRED
1024
1025/* define if you have ssize_t data type */
1026#undef HAVE_SSIZE_T
1027
1028/* Fields in struct sockaddr_storage */
1029#undef HAVE_SS_FAMILY_IN_SS
1030
1031/* Define to 1 if you have the `statfs' function. */
1032#undef HAVE_STATFS
1033
1034/* Define to 1 if you have the `statvfs' function. */
1035#undef HAVE_STATVFS
1036
1037/* Define to 1 if you have the <stddef.h> header file. */
1038#undef HAVE_STDDEF_H
1039
1040/* Define to 1 if you have the <stdint.h> header file. */
1041#undef HAVE_STDINT_H
1042
1043/* Define to 1 if you have the <stdlib.h> header file. */
1044#undef HAVE_STDLIB_H
1045
1046/* Define to 1 if you have the `strdup' function. */
1047#undef HAVE_STRDUP
1048
1049/* Define to 1 if you have the `strerror' function. */
1050#undef HAVE_STRERROR
1051
1052/* Define to 1 if you have the `strftime' function. */
1053#undef HAVE_STRFTIME
1054
1055/* Silly mkstemp() */
1056#undef HAVE_STRICT_MKSTEMP
1057
1058/* Define to 1 if you have the <strings.h> header file. */
1059#undef HAVE_STRINGS_H
1060
1061/* Define to 1 if you have the <string.h> header file. */
1062#undef HAVE_STRING_H
1063
1064/* Define to 1 if you have the `strlcat' function. */
1065#undef HAVE_STRLCAT
1066
1067/* Define to 1 if you have the `strlcpy' function. */
1068#undef HAVE_STRLCPY
1069
1070/* Define to 1 if you have the `strmode' function. */
1071#undef HAVE_STRMODE
1072
1073/* Define to 1 if you have the `strnlen' function. */
1074#undef HAVE_STRNLEN
1075
1076/* Define to 1 if you have the `strnvis' function. */
1077#undef HAVE_STRNVIS
1078
1079/* Define to 1 if you have the `strptime' function. */
1080#undef HAVE_STRPTIME
1081
1082/* Define to 1 if you have the `strsep' function. */
1083#undef HAVE_STRSEP
1084
1085/* Define to 1 if you have the `strtoll' function. */
1086#undef HAVE_STRTOLL
1087
1088/* Define to 1 if you have the `strtonum' function. */
1089#undef HAVE_STRTONUM
1090
1091/* Define to 1 if you have the `strtoul' function. */
1092#undef HAVE_STRTOUL
1093
1094/* Define to 1 if you have the `strtoull' function. */
1095#undef HAVE_STRTOULL
1096
1097/* define if you have struct addrinfo data type */
1098#undef HAVE_STRUCT_ADDRINFO
1099
1100/* define if you have struct in6_addr data type */
1101#undef HAVE_STRUCT_IN6_ADDR
1102
1103/* Define to 1 if `pw_change' is member of `struct passwd'. */
1104#undef HAVE_STRUCT_PASSWD_PW_CHANGE
1105
1106/* Define to 1 if `pw_class' is member of `struct passwd'. */
1107#undef HAVE_STRUCT_PASSWD_PW_CLASS
1108
1109/* Define to 1 if `pw_expire' is member of `struct passwd'. */
1110#undef HAVE_STRUCT_PASSWD_PW_EXPIRE
1111
1112/* Define to 1 if `pw_gecos' is member of `struct passwd'. */
1113#undef HAVE_STRUCT_PASSWD_PW_GECOS
1114
1115/* define if you have struct sockaddr_in6 data type */
1116#undef HAVE_STRUCT_SOCKADDR_IN6
1117
1118/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
1119#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
1120
1121/* define if you have struct sockaddr_storage data type */
1122#undef HAVE_STRUCT_SOCKADDR_STORAGE
1123
1124/* Define to 1 if `st_blksize' is member of `struct stat'. */
1125#undef HAVE_STRUCT_STAT_ST_BLKSIZE
1126
1127/* Define to 1 if the system has the type `struct timespec'. */
1128#undef HAVE_STRUCT_TIMESPEC
1129
1130/* define if you have struct timeval */
1131#undef HAVE_STRUCT_TIMEVAL
1132
1133/* Define to 1 if you have the `swap32' function. */
1134#undef HAVE_SWAP32
1135
1136/* Define to 1 if you have the `sysconf' function. */
1137#undef HAVE_SYSCONF
1138
1139/* Define if you have syslen in utmpx.h */
1140#undef HAVE_SYSLEN_IN_UTMPX
1141
1142/* Define to 1 if you have the <sys/audit.h> header file. */
1143#undef HAVE_SYS_AUDIT_H
1144
1145/* Define to 1 if you have the <sys/bitypes.h> header file. */
1146#undef HAVE_SYS_BITYPES_H
1147
1148/* Define to 1 if you have the <sys/bsdtty.h> header file. */
1149#undef HAVE_SYS_BSDTTY_H
1150
1151/* Define to 1 if you have the <sys/capability.h> header file. */
1152#undef HAVE_SYS_CAPABILITY_H
1153
1154/* Define to 1 if you have the <sys/cdefs.h> header file. */
1155#undef HAVE_SYS_CDEFS_H
1156
1157/* Define to 1 if you have the <sys/dir.h> header file. */
1158#undef HAVE_SYS_DIR_H
1159
1160/* Define if your system defines sys_errlist[] */
1161#undef HAVE_SYS_ERRLIST
1162
1163/* Define to 1 if you have the <sys/mman.h> header file. */
1164#undef HAVE_SYS_MMAN_H
1165
1166/* Define to 1 if you have the <sys/mount.h> header file. */
1167#undef HAVE_SYS_MOUNT_H
1168
1169/* Define to 1 if you have the <sys/ndir.h> header file. */
1170#undef HAVE_SYS_NDIR_H
1171
1172/* Define if your system defines sys_nerr */
1173#undef HAVE_SYS_NERR
1174
1175/* Define to 1 if you have the <sys/poll.h> header file. */
1176#undef HAVE_SYS_POLL_H
1177
1178/* Define to 1 if you have the <sys/prctl.h> header file. */
1179#undef HAVE_SYS_PRCTL_H
1180
1181/* Define to 1 if you have the <sys/pstat.h> header file. */
1182#undef HAVE_SYS_PSTAT_H
1183
1184/* Define to 1 if you have the <sys/ptms.h> header file. */
1185#undef HAVE_SYS_PTMS_H
1186
1187/* Define to 1 if you have the <sys/select.h> header file. */
1188#undef HAVE_SYS_SELECT_H
1189
1190/* Define to 1 if you have the <sys/statvfs.h> header file. */
1191#undef HAVE_SYS_STATVFS_H
1192
1193/* Define to 1 if you have the <sys/stat.h> header file. */
1194#undef HAVE_SYS_STAT_H
1195
1196/* Define to 1 if you have the <sys/stream.h> header file. */
1197#undef HAVE_SYS_STREAM_H
1198
1199/* Define to 1 if you have the <sys/stropts.h> header file. */
1200#undef HAVE_SYS_STROPTS_H
1201
1202/* Define to 1 if you have the <sys/strtio.h> header file. */
1203#undef HAVE_SYS_STRTIO_H
1204
1205/* Force use of sys/syslog.h on Ultrix */
1206#undef HAVE_SYS_SYSLOG_H
1207
1208/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1209#undef HAVE_SYS_SYSMACROS_H
1210
1211/* Define to 1 if you have the <sys/timers.h> header file. */
1212#undef HAVE_SYS_TIMERS_H
1213
1214/* Define to 1 if you have the <sys/time.h> header file. */
1215#undef HAVE_SYS_TIME_H
1216
1217/* Define to 1 if you have the <sys/types.h> header file. */
1218#undef HAVE_SYS_TYPES_H
1219
1220/* Define to 1 if you have the <sys/un.h> header file. */
1221#undef HAVE_SYS_UN_H
1222
1223/* Define to 1 if you have the `tcgetpgrp' function. */
1224#undef HAVE_TCGETPGRP
1225
1226/* Define to 1 if you have the `tcsendbreak' function. */
1227#undef HAVE_TCSENDBREAK
1228
1229/* Define to 1 if you have the `time' function. */
1230#undef HAVE_TIME
1231
1232/* Define to 1 if you have the <time.h> header file. */
1233#undef HAVE_TIME_H
1234
1235/* Define if you have ut_time in utmp.h */
1236#undef HAVE_TIME_IN_UTMP
1237
1238/* Define if you have ut_time in utmpx.h */
1239#undef HAVE_TIME_IN_UTMPX
1240
1241/* Define to 1 if you have the `timingsafe_bcmp' function. */
1242#undef HAVE_TIMINGSAFE_BCMP
1243
1244/* Define to 1 if you have the <tmpdir.h> header file. */
1245#undef HAVE_TMPDIR_H
1246
1247/* Define to 1 if you have the `truncate' function. */
1248#undef HAVE_TRUNCATE
1249
1250/* Define to 1 if you have the <ttyent.h> header file. */
1251#undef HAVE_TTYENT_H
1252
1253/* Define if you have ut_tv in utmp.h */
1254#undef HAVE_TV_IN_UTMP
1255
1256/* Define if you have ut_tv in utmpx.h */
1257#undef HAVE_TV_IN_UTMPX
1258
1259/* Define if you have ut_type in utmp.h */
1260#undef HAVE_TYPE_IN_UTMP
1261
1262/* Define if you have ut_type in utmpx.h */
1263#undef HAVE_TYPE_IN_UTMPX
1264
1265/* Define to 1 if you have the <ucred.h> header file. */
1266#undef HAVE_UCRED_H
1267
1268/* Define to 1 if the system has the type `uintmax_t'. */
1269#undef HAVE_UINTMAX_T
1270
1271/* define if you have uintxx_t data type */
1272#undef HAVE_UINTXX_T
1273
1274/* Define to 1 if you have the <unistd.h> header file. */
1275#undef HAVE_UNISTD_H
1276
1277/* Define to 1 if you have the `unsetenv' function. */
1278#undef HAVE_UNSETENV
1279
1280/* Define to 1 if the system has the type `unsigned long long'. */
1281#undef HAVE_UNSIGNED_LONG_LONG
1282
1283/* Define to 1 if you have the `updwtmp' function. */
1284#undef HAVE_UPDWTMP
1285
1286/* Define to 1 if you have the `updwtmpx' function. */
1287#undef HAVE_UPDWTMPX
1288
1289/* Define to 1 if you have the <usersec.h> header file. */
1290#undef HAVE_USERSEC_H
1291
1292/* Define to 1 if you have the `user_from_uid' function. */
1293#undef HAVE_USER_FROM_UID
1294
1295/* Define to 1 if you have the `usleep' function. */
1296#undef HAVE_USLEEP
1297
1298/* Define to 1 if you have the <util.h> header file. */
1299#undef HAVE_UTIL_H
1300
1301/* Define to 1 if you have the `utimes' function. */
1302#undef HAVE_UTIMES
1303
1304/* Define to 1 if you have the <utime.h> header file. */
1305#undef HAVE_UTIME_H
1306
1307/* Define to 1 if you have the `utmpname' function. */
1308#undef HAVE_UTMPNAME
1309
1310/* Define to 1 if you have the `utmpxname' function. */
1311#undef HAVE_UTMPXNAME
1312
1313/* Define to 1 if you have the <utmpx.h> header file. */
1314#undef HAVE_UTMPX_H
1315
1316/* Define to 1 if you have the <utmp.h> header file. */
1317#undef HAVE_UTMP_H
1318
1319/* define if you have u_char data type */
1320#undef HAVE_U_CHAR
1321
1322/* define if you have u_int data type */
1323#undef HAVE_U_INT
1324
1325/* define if you have u_int64_t data type */
1326#undef HAVE_U_INT64_T
1327
1328/* define if you have u_intxx_t data type */
1329#undef HAVE_U_INTXX_T
1330
1331/* Define to 1 if you have the `vasprintf' function. */
1332#undef HAVE_VASPRINTF
1333
1334/* Define if va_copy exists */
1335#undef HAVE_VA_COPY
1336
1337/* Define to 1 if you have the <vis.h> header file. */
1338#undef HAVE_VIS_H
1339
1340/* Define to 1 if you have the `vsnprintf' function. */
1341#undef HAVE_VSNPRINTF
1342
1343/* Define to 1 if you have the `waitpid' function. */
1344#undef HAVE_WAITPID
1345
1346/* Define to 1 if you have the `_getlong' function. */
1347#undef HAVE__GETLONG
1348
1349/* Define to 1 if you have the `_getpty' function. */
1350#undef HAVE__GETPTY
1351
1352/* Define to 1 if you have the `_getshort' function. */
1353#undef HAVE__GETSHORT
1354
1355/* Define if you have struct __res_state _res as an extern */
1356#undef HAVE__RES_EXTERN
1357
1358/* Define to 1 if you have the `__b64_ntop' function. */
1359#undef HAVE___B64_NTOP
1360
1361/* Define to 1 if you have the `__b64_pton' function. */
1362#undef HAVE___B64_PTON
1363
1364/* Define if compiler implements __FUNCTION__ */
1365#undef HAVE___FUNCTION__
1366
1367/* Define if libc defines __progname */
1368#undef HAVE___PROGNAME
1369
1370/* Fields in struct sockaddr_storage */
1371#undef HAVE___SS_FAMILY_IN_SS
1372
1373/* Define if __va_copy exists */
1374#undef HAVE___VA_COPY
1375
1376/* Define if compiler implements __func__ */
1377#undef HAVE___func__
1378
1379/* Define this if you are using the Heimdal version of Kerberos V5 */
1380#undef HEIMDAL
1381
1382/* Define if you need to use IP address instead of hostname in $DISPLAY */
1383#undef IPADDR_IN_DISPLAY
1384
1385/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1386#undef IPV4_IN_IPV6
1387
1388/* Define if your system choked on IP TOS setting */
1389#undef IP_TOS_IS_BROKEN
1390
1391/* Define if you want Kerberos 5 support */
1392#undef KRB5
1393
1394/* Define if pututxline updates lastlog too */
1395#undef LASTLOG_WRITE_PUTUTXLINE
1396
1397/* Define to whatever link() returns for "not supported" if it doesn't return
1398 EOPNOTSUPP. */
1399#undef LINK_OPNOTSUPP_ERRNO
1400
1401/* Adjust Linux out-of-memory killer */
1402#undef LINUX_OOM_ADJUST
1403
1404/* max value of long long calculated by configure */
1405#undef LLONG_MAX
1406
1407/* min value of long long calculated by configure */
1408#undef LLONG_MIN
1409
1410/* Account locked with pw(1) */
1411#undef LOCKED_PASSWD_PREFIX
1412
1413/* String used in /etc/passwd to denote locked account */
1414#undef LOCKED_PASSWD_STRING
1415
1416/* String used in /etc/passwd to denote locked account */
1417#undef LOCKED_PASSWD_SUBSTR
1418
1419/* Some versions of /bin/login need the TERM supplied on the commandline */
1420#undef LOGIN_NEEDS_TERM
1421
1422/* Some systems need a utmpx entry for /bin/login to work */
1423#undef LOGIN_NEEDS_UTMPX
1424
1425/* Define if your login program cannot handle end of options ("--") */
1426#undef LOGIN_NO_ENDOPT
1427
1428/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1429 from environment and PATH */
1430#undef LOGIN_PROGRAM_FALLBACK
1431
1432/* Set this to your mail directory if you do not have _PATH_MAILDIR */
1433#undef MAIL_DIRECTORY
1434
1435/* Need setpgrp to acquire controlling tty */
1436#undef NEED_SETPGRP
1437
1438/* compiler does not accept __attribute__ on return types */
1439#undef NO_ATTRIBUTE_ON_RETURN_TYPE
1440
1441/* Define if the concept of ports only accessible to superusers isn't known */
1442#undef NO_IPPORT_RESERVED_CONCEPT
1443
1444/* Define if you don't want to use lastlog in session.c */
1445#undef NO_SSH_LASTLOG
1446
1447/* Define if X11 doesn't support AF_UNIX sockets on that system */
1448#undef NO_X11_UNIX_SOCKETS
1449
1450/* Define if EVP_DigestUpdate returns void */
1451#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1452
1453/* OpenSSL has ECC */
1454#undef OPENSSL_HAS_ECC
1455
1456/* libcrypto has NID_X9_62_prime256v1 */
1457#undef OPENSSL_HAS_NISTP256
1458
1459/* libcrypto has NID_secp384r1 */
1460#undef OPENSSL_HAS_NISTP384
1461
1462/* libcrypto has NID_secp521r1 */
1463#undef OPENSSL_HAS_NISTP521
1464
1465/* libcrypto has EVP AES CTR */
1466#undef OPENSSL_HAVE_EVPCTR
1467
1468/* libcrypto has EVP AES GCM */
1469#undef OPENSSL_HAVE_EVPGCM
1470
1471/* libcrypto is missing AES 192 and 256 bit functions */
1472#undef OPENSSL_LOBOTOMISED_AES
1473
1474/* Define if you want the OpenSSL internally seeded PRNG only */
1475#undef OPENSSL_PRNG_ONLY
1476
1477/* Define to the address where bug reports for this package should be sent. */
1478#undef PACKAGE_BUGREPORT
1479
1480/* Define to the full name of this package. */
1481#undef PACKAGE_NAME
1482
1483/* Define to the full name and version of this package. */
1484#undef PACKAGE_STRING
1485
1486/* Define to the one symbol short name of this package. */
1487#undef PACKAGE_TARNAME
1488
1489/* Define to the version of this package. */
1490#undef PACKAGE_VERSION
1491
1492/* Define if you are using Solaris-derived PAM which passes pam_messages to
1493 the conversation function with an extra level of indirection */
1494#undef PAM_SUN_CODEBASE
1495
1496/* Work around problematic Linux PAM modules handling of PAM_TTY */
1497#undef PAM_TTY_KLUDGE
1498
1499/* must supply username to passwd */
1500#undef PASSWD_NEEDS_USERNAME
1501
1502/* System dirs owned by bin (uid 2) */
1503#undef PLATFORM_SYS_DIR_UID
1504
1505/* Port number of PRNGD/EGD random number socket */
1506#undef PRNGD_PORT
1507
1508/* Location of PRNGD/EGD random number socket */
1509#undef PRNGD_SOCKET
1510
1511/* read(1) can return 0 for a non-closed fd */
1512#undef PTY_ZEROREAD
1513
1514/* Sandbox using capsicum */
1515#undef SANDBOX_CAPSICUM
1516
1517/* Sandbox using Darwin sandbox_init(3) */
1518#undef SANDBOX_DARWIN
1519
1520/* no privsep sandboxing */
1521#undef SANDBOX_NULL
1522
1523/* Sandbox using setrlimit(2) */
1524#undef SANDBOX_RLIMIT
1525
1526/* Sandbox using seccomp filter */
1527#undef SANDBOX_SECCOMP_FILTER
1528
1529/* setrlimit RLIMIT_FSIZE works */
1530#undef SANDBOX_SKIP_RLIMIT_FSIZE
1531
1532/* define if setrlimit RLIMIT_NOFILE breaks things */
1533#undef SANDBOX_SKIP_RLIMIT_NOFILE
1534
1535/* Sandbox using systrace(4) */
1536#undef SANDBOX_SYSTRACE
1537
1538/* Specify the system call convention in use */
1539#undef SECCOMP_AUDIT_ARCH
1540
1541/* Define if your platform breaks doing a seteuid before a setuid */
1542#undef SETEUID_BREAKS_SETUID
1543
1544/* The size of `int', as computed by sizeof. */
1545#undef SIZEOF_INT
1546
1547/* The size of `long int', as computed by sizeof. */
1548#undef SIZEOF_LONG_INT
1549
1550/* The size of `long long int', as computed by sizeof. */
1551#undef SIZEOF_LONG_LONG_INT
1552
1553/* The size of `short int', as computed by sizeof. */
1554#undef SIZEOF_SHORT_INT
1555
1556/* Define if you want S/Key support */
1557#undef SKEY
1558
1559/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1560#undef SKEYCHALLENGE_4ARG
1561
1562/* Define as const if snprintf() can declare const char *fmt */
1563#undef SNPRINTF_CONST
1564
1565/* Define to a Set Process Title type if your system is supported by
1566 bsd-setproctitle.c */
1567#undef SPT_TYPE
1568
1569/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1570#undef SSHD_ACQUIRES_CTTY
1571
1572/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1573#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1574
1575/* Use audit debugging module */
1576#undef SSH_AUDIT_EVENTS
1577
1578/* Windows is sensitive to read buffer size */
1579#undef SSH_IOBUFSZ
1580
1581/* non-privileged user for privilege separation */
1582#undef SSH_PRIVSEP_USER
1583
1584/* Use tunnel device compatibility to OpenBSD */
1585#undef SSH_TUN_COMPAT_AF
1586
1587/* Open tunnel devices the FreeBSD way */
1588#undef SSH_TUN_FREEBSD
1589
1590/* Open tunnel devices the Linux tun/tap way */
1591#undef SSH_TUN_LINUX
1592
1593/* No layer 2 tunnel support */
1594#undef SSH_TUN_NO_L2
1595
1596/* Open tunnel devices the OpenBSD way */
1597#undef SSH_TUN_OPENBSD
1598
1599/* Prepend the address family to IP tunnel traffic */
1600#undef SSH_TUN_PREPEND_AF
1601
1602/* Define to 1 if you have the ANSI C header files. */
1603#undef STDC_HEADERS
1604
1605/* Define if you want a different $PATH for the superuser */
1606#undef SUPERUSER_PATH
1607
1608/* syslog_r function is safe to use in in a signal handler */
1609#undef SYSLOG_R_SAFE_IN_SIGHAND
1610
1611/* Support passwords > 8 chars */
1612#undef UNIXWARE_LONG_PASSWORDS
1613
1614/* Specify default $PATH */
1615#undef USER_PATH
1616
1617/* Define this if you want to use libkafs' AFS support */
1618#undef USE_AFS
1619
1620/* Use BSM audit module */
1621#undef USE_BSM_AUDIT
1622
1623/* Use btmp to log bad logins */
1624#undef USE_BTMP
1625
1626/* Use libedit for sftp */
1627#undef USE_LIBEDIT
1628
1629/* Use Linux audit module */
1630#undef USE_LINUX_AUDIT
1631
1632/* Enable OpenSSL engine support */
1633#undef USE_OPENSSL_ENGINE
1634
1635/* Define if you want to enable PAM support */
1636#undef USE_PAM
1637
1638/* Use PIPES instead of a socketpair() */
1639#undef USE_PIPES
1640
1641/* Define if you have Solaris process contracts */
1642#undef USE_SOLARIS_PROCESS_CONTRACTS
1643
1644/* Define if you have Solaris projects */
1645#undef USE_SOLARIS_PROJECTS
1646
1647/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1648#undef WITH_ABBREV_NO_TTY
1649
1650/* Define if you want to enable AIX4's authenticate function */
1651#undef WITH_AIXAUTHENTICATE
1652
1653/* Define if you have/want arrays (cluster-wide session managment, not C
1654 arrays) */
1655#undef WITH_IRIX_ARRAY
1656
1657/* Define if you want IRIX audit trails */
1658#undef WITH_IRIX_AUDIT
1659
1660/* Define if you want IRIX kernel jobs */
1661#undef WITH_IRIX_JOBS
1662
1663/* Define if you want IRIX project management */
1664#undef WITH_IRIX_PROJECT
1665
1666/* use libcrypto for cryptography */
1667#undef WITH_OPENSSL
1668
1669/* Define if you want SELinux support. */
1670#undef WITH_SELINUX
1671
1672/* include SSH protocol version 1 support */
1673#undef WITH_SSH1
1674
1675/* Define to 1 if your processor stores words with the most significant byte
1676 first (like Motorola and SPARC, unlike Intel and VAX). */
1677#undef WORDS_BIGENDIAN
1678
1679/* Define if xauth is found in your path */
1680#undef XAUTH_PATH
1681
1682/* Number of bits in a file offset, on hosts where this is settable. */
1683#undef _FILE_OFFSET_BITS
1684
1685/* Define for large files, on AIX-style hosts. */
1686#undef _LARGE_FILES
1687
1688/* log for bad login attempts */
1689#undef _PATH_BTMP
1690
1691/* Full path of your "passwd" program */
1692#undef _PATH_PASSWD_PROG
1693
1694/* Specify location of ssh.pid */
1695#undef _PATH_SSH_PIDDIR
1696
1697/* Define if we don't have struct __res_state in resolv.h */
1698#undef __res_state
1699
1700/* Define to `__inline__' or `__inline' if that's what the C compiler
1701 calls it, or to nothing if 'inline' is not supported under any name. */
1702#ifndef __cplusplus
1703#undef inline
1704#endif
1705
1706/* type to use in place of socklen_t if not defined */
1707#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..0d7a5b97e
--- /dev/null
+++ b/configure
@@ -0,0 +1,36863 @@
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 --without-ssh1 Enable support for SSH protocol 1
1324 --without-stackprotect Don't use compiler's stack protection
1325 --without-hardening Don't use toolchain hardening flags
1326 --without-rpath Disable auto-added -R linker paths
1327 --with-cflags Specify additional flags to pass to compiler
1328 --with-cppflags Specify additional flags to pass to preprocessor
1329 --with-ldflags Specify additional flags to pass to linker
1330 --with-libs Specify additional libraries to link with
1331 --with-Werror Build main code with -Werror
1332 --with-solaris-contracts Enable Solaris process contracts (experimental)
1333 --with-solaris-projects Enable Solaris projects (experimental)
1334 --with-osfsia Enable Digital Unix SIA
1335 --with-zlib=PATH Use zlib in PATH
1336 --without-zlib-version-check Disable zlib version check
1337 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1338 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1339 --with-libedit[=PATH] Enable libedit support for sftp
1340 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1341 --with-pie Build Position Independent Executables if possible
1342 --with-ssl-dir=PATH Specify path to OpenSSL installation
1343 --without-openssl-header-check Disable OpenSSL version consistency check
1344 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1345 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1346 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1347 --with-pam Enable PAM support
1348 --with-privsep-user=user Specify non-privileged user for privilege separation
1349 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum)
1350 --with-selinux Enable SELinux support
1351 --with-kerberos5=PATH Enable Kerberos 5 support
1352 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1353 --with-xauth=PATH Specify path to xauth program
1354 --with-maildir=/path/to/mail Specify your system mail directory
1355 --with-mantype=man|cat|doc Set man page type
1356 --with-md5-passwords Enable use of MD5 passwords
1357 --without-shadow Disable shadow password support
1358 --with-ipaddr-display Use ip address instead of hostname in $DISPLAY
1359 --with-default-path= Specify default $PATH environment for server
1360 --with-superuser-path= Specify different path for super-user
1361 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1362 --with-bsd-auth Enable BSD auth support
1363 --with-pid-dir=PATH Specify location of ssh.pid file
1364 --with-lastlog=FILE|DIR specify lastlog location common locations
1365
1366Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CPP C preprocessor
1375
1376Use these variables to override the choices made by `configure' or to help
1377it to find libraries and programs with nonstandard names/locations.
1378
1379Report bugs to <openssh-unix-dev@mindrot.org>.
1380_ACEOF
1381ac_status=$?
1382fi
1383
1384if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" || continue
1388 ac_builddir=.
1389
1390case "$ac_dir" in
1391.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392*)
1393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400esac
1401ac_abs_top_builddir=$ac_pwd
1402ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403# for backward compatibility:
1404ac_top_builddir=$ac_top_build_prefix
1405
1406case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419esac
1420ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435fi
1436
1437test -n "$ac_init_help" && exit $ac_status
1438if $ac_init_version; then
1439 cat <<\_ACEOF
1440OpenSSH configure Portable
1441generated by GNU Autoconf 2.61
1442
1443Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445This configure script is free software; the Free Software Foundation
1446gives unlimited permission to copy, distribute and modify it.
1447_ACEOF
1448 exit
1449fi
1450cat >config.log <<_ACEOF
1451This file contains any messages produced by compilers while
1452running configure, to aid debugging if configure makes a mistake.
1453
1454It was created by OpenSSH $as_me Portable, which was
1455generated by GNU Autoconf 2.61. Invocation command line was
1456
1457 $ $0 $@
1458
1459_ACEOF
1460exec 5>>config.log
1461{
1462cat <<_ASUNAME
1463## --------- ##
1464## Platform. ##
1465## --------- ##
1466
1467hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1475
1476/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1483
1484_ASUNAME
1485
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 echo "PATH: $as_dir"
1492done
1493IFS=$as_save_IFS
1494
1495} >&5
1496
1497cat >&5 <<_ACEOF
1498
1499
1500## ----------- ##
1501## Core tests. ##
1502## ----------- ##
1503
1504_ACEOF
1505
1506
1507# Keep a trace of the command line.
1508# Strip out --no-create and --no-recursion so they do not pile up.
1509# Strip out --silent because we don't want to record it for future runs.
1510# Also quote any args containing shell meta-characters.
1511# Make two passes to allow for proper duplicate-argument suppression.
1512ac_configure_args=
1513ac_configure_args0=
1514ac_configure_args1=
1515ac_must_keep_next=false
1516for ac_pass in 1 2
1517do
1518 for ac_arg
1519 do
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530 2)
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1543 ;;
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1546 fi
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 ;;
1549 esac
1550 done
1551done
1552$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555# When interrupted or exit'd, cleanup temporary files, and complete
1556# config.log. We remove comments because anyway the quotes in there
1557# would cause problems or look ugly.
1558# WARNING: Use '\'' to represent an apostrophe within the trap.
1559# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1562 {
1563 echo
1564
1565 cat <<\_ASBOX
1566## ---------------- ##
1567## Cache variables. ##
1568## ---------------- ##
1569_ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1572(
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1584 esac ;;
1585 esac
1586 done
1587 (set) 2>&1 |
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1590 sed -n \
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 ;; #(
1594 *)
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ;;
1597 esac |
1598 sort
1599)
1600 echo
1601
1602 cat <<\_ASBOX
1603## ----------------- ##
1604## Output variables. ##
1605## ----------------- ##
1606_ASBOX
1607 echo
1608 for ac_var in $ac_subst_vars
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617
1618 if test -n "$ac_subst_files"; then
1619 cat <<\_ASBOX
1620## ------------------- ##
1621## File substitutions. ##
1622## ------------------- ##
1623_ASBOX
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 cat <<\_ASBOX
1638## ----------- ##
1639## confdefs.h. ##
1640## ----------- ##
1641_ASBOX
1642 echo
1643 cat confdefs.h
1644 echo
1645 fi
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1653' 0
1654for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656done
1657ac_signal=0
1658
1659# confdefs.h avoids OS command line length limits that DEFS can exceed.
1660rm -f -r conftest* confdefs.h
1661
1662# Predefined preprocessor variables.
1663
1664cat >>confdefs.h <<_ACEOF
1665#define PACKAGE_NAME "$PACKAGE_NAME"
1666_ACEOF
1667
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_VERSION "$PACKAGE_VERSION"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_STRING "$PACKAGE_STRING"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686_ACEOF
1687
1688
1689# Let the site file select an alternate cache file if it wants to.
1690# Prefer explicitly selected file to automatically selected ones.
1691if test -n "$CONFIG_SITE"; then
1692 set x "$CONFIG_SITE"
1693elif test "x$prefix" != xNONE; then
1694 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695else
1696 set x "$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1698fi
1699shift
1700for ac_site_file
1701do
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1706 . "$ac_site_file"
1707 fi
1708done
1709
1710if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715echo "$as_me: loading cache $cache_file" >&6;}
1716 case $cache_file in
1717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718 *) . "./$cache_file";;
1719 esac
1720 fi
1721else
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723echo "$as_me: creating cache $cache_file" >&6;}
1724 >$cache_file
1725fi
1726
1727# Check that the precious variables saved in the cache have kept the same
1728# value.
1729ac_cache_corrupted=false
1730for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1736 set,)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,set)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,);;
1745 *)
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1750echo "$as_me: former value: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1752echo "$as_me: current value: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1754 fi;;
1755 esac
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1758 case $ac_new_val in
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1761 esac
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765 esac
1766 fi
1767done
1768if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1774fi
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800ac_ext=c
1801ac_cpp='$CPP $CPPFLAGS'
1802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805
1806
1807
1808
1809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814
1815
1816ac_config_headers="$ac_config_headers config.h"
1817
1818ac_ext=c
1819ac_cpp='$CPP $CPPFLAGS'
1820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823if test -n "$ac_tool_prefix"; then
1824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1825set dummy ${ac_tool_prefix}gcc; ac_word=$2
1826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
1840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843 break 2
1844 fi
1845done
1846done
1847IFS=$as_save_IFS
1848
1849fi
1850fi
1851CC=$ac_cv_prog_CC
1852if test -n "$CC"; then
1853 { echo "$as_me:$LINENO: result: $CC" >&5
1854echo "${ECHO_T}$CC" >&6; }
1855else
1856 { echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6; }
1858fi
1859
1860
1861fi
1862if test -z "$ac_cv_prog_CC"; then
1863 ac_ct_CC=$CC
1864 # Extract the first word of "gcc", so it can be a program name with args.
1865set dummy gcc; ac_word=$2
1866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873else
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1881 ac_cv_prog_ac_ct_CC="gcc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 break 2
1884 fi
1885done
1886done
1887IFS=$as_save_IFS
1888
1889fi
1890fi
1891ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892if test -n "$ac_ct_CC"; then
1893 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894echo "${ECHO_T}$ac_ct_CC" >&6; }
1895else
1896 { echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6; }
1898fi
1899
1900 if test "x$ac_ct_CC" = x; then
1901 CC=""
1902 else
1903 case $cross_compiling:$ac_tool_warned in
1904yes:)
1905{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1906whose name does not start with the host triplet. If you think this
1907configuration is useful to you, please write to autoconf@gnu.org." >&5
1908echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1909whose name does not start with the host triplet. If you think this
1910configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1911ac_tool_warned=yes ;;
1912esac
1913 CC=$ac_ct_CC
1914 fi
1915else
1916 CC="$ac_cv_prog_CC"
1917fi
1918
1919if test -z "$CC"; then
1920 if test -n "$ac_tool_prefix"; then
1921 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1922set dummy ${ac_tool_prefix}cc; ac_word=$2
1923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1925if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934 IFS=$as_save_IFS
1935 test -z "$as_dir" && as_dir=.
1936 for ac_exec_ext in '' $ac_executable_extensions; do
1937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1938 ac_cv_prog_CC="${ac_tool_prefix}cc"
1939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 break 2
1941 fi
1942done
1943done
1944IFS=$as_save_IFS
1945
1946fi
1947fi
1948CC=$ac_cv_prog_CC
1949if test -n "$CC"; then
1950 { echo "$as_me:$LINENO: result: $CC" >&5
1951echo "${ECHO_T}$CC" >&6; }
1952else
1953 { echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6; }
1955fi
1956
1957
1958 fi
1959fi
1960if test -z "$CC"; then
1961 # Extract the first word of "cc", so it can be a program name with args.
1962set dummy cc; ac_word=$2
1963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1965if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967else
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1970else
1971 ac_prog_rejected=no
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980 ac_prog_rejected=yes
1981 continue
1982 fi
1983 ac_cv_prog_CC="cc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987done
1988done
1989IFS=$as_save_IFS
1990
1991if test $ac_prog_rejected = yes; then
1992 # We found a bogon in the path, so make sure we never use it.
1993 set dummy $ac_cv_prog_CC
1994 shift
1995 if test $# != 0; then
1996 # We chose a different compiler from the bogus one.
1997 # However, it has the same basename, so the bogon will be chosen
1998 # first if we set CC to just the basename; use the full file name.
1999 shift
2000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2001 fi
2002fi
2003fi
2004fi
2005CC=$ac_cv_prog_CC
2006if test -n "$CC"; then
2007 { echo "$as_me:$LINENO: result: $CC" >&5
2008echo "${ECHO_T}$CC" >&6; }
2009else
2010 { echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6; }
2012fi
2013
2014
2015fi
2016if test -z "$CC"; then
2017 if test -n "$ac_tool_prefix"; then
2018 for ac_prog in cl.exe
2019 do
2020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041done
2042done
2043IFS=$as_save_IFS
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049 { echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6; }
2051else
2052 { echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6; }
2054fi
2055
2056
2057 test -n "$CC" && break
2058 done
2059fi
2060if test -z "$CC"; then
2061 ac_ct_CC=$CC
2062 for ac_prog in cl.exe
2063do
2064 # Extract the first word of "$ac_prog", so it can be a program name with args.
2065set dummy $ac_prog; ac_word=$2
2066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070else
2071 if test -n "$ac_ct_CC"; then
2072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073else
2074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075for as_dir in $PATH
2076do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_ac_ct_CC="$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085done
2086done
2087IFS=$as_save_IFS
2088
2089fi
2090fi
2091ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092if test -n "$ac_ct_CC"; then
2093 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094echo "${ECHO_T}$ac_ct_CC" >&6; }
2095else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6; }
2098fi
2099
2100
2101 test -n "$ac_ct_CC" && break
2102done
2103
2104 if test "x$ac_ct_CC" = x; then
2105 CC=""
2106 else
2107 case $cross_compiling:$ac_tool_warned in
2108yes:)
2109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet. If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&5
2112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113whose name does not start with the host triplet. If you think this
2114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115ac_tool_warned=yes ;;
2116esac
2117 CC=$ac_ct_CC
2118 fi
2119fi
2120
2121fi
2122
2123
2124test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2125See \`config.log' for more details." >&5
2126echo "$as_me: error: no acceptable C compiler found in \$PATH
2127See \`config.log' for more details." >&2;}
2128 { (exit 1); exit 1; }; }
2129
2130# Provide some information about the compiler.
2131echo "$as_me:$LINENO: checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (ac_try="$ac_compiler --version >&5"
2134case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137esac
2138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler --version >&5") 2>&5
2140 ac_status=$?
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143{ (ac_try="$ac_compiler -v >&5"
2144case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147esac
2148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_compiler -v >&5") 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153{ (ac_try="$ac_compiler -V >&5"
2154case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157esac
2158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159 (eval "$ac_compiler -V >&5") 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h. */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h. */
2170
2171int
2172main ()
2173{
2174
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187#
2188# List of possible output files, starting from the most likely.
2189# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2190# only as a last resort. b.out is created by i960 compilers.
2191ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2192#
2193# The IRIX 6 linker writes into existing files which may not be
2194# executable, retaining their permissions. Remove them first so a
2195# subsequent execution test works.
2196ac_rmfiles=
2197for ac_file in $ac_files
2198do
2199 case $ac_file in
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2201 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2202 esac
2203done
2204rm -f $ac_rmfiles
2205
2206if { (ac_try="$ac_link_default"
2207case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210esac
2211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_link_default") 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2217# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2218# in a Makefile. We should not override ac_cv_exeext if it was cached,
2219# so that the user can short-circuit this test for compilers unknown to
2220# Autoconf.
2221for ac_file in $ac_files ''
2222do
2223 test -f "$ac_file" || continue
2224 case $ac_file in
2225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2226 ;;
2227 [ab].out )
2228 # We found the default executable, but exeext='' is most
2229 # certainly right.
2230 break;;
2231 *.* )
2232 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2233 then :; else
2234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235 fi
2236 # We set ac_cv_exeext here because the later test for it is not
2237 # safe: cross compilers may not add the suffix if given an `-o'
2238 # argument, so we may need to know it at that point already.
2239 # Even if this section looks crufty: it has the advantage of
2240 # actually working.
2241 break;;
2242 * )
2243 break;;
2244 esac
2245done
2246test "$ac_cv_exeext" = no && ac_cv_exeext=
2247
2248else
2249 ac_file=''
2250fi
2251
2252{ echo "$as_me:$LINENO: result: $ac_file" >&5
2253echo "${ECHO_T}$ac_file" >&6; }
2254if test -z "$ac_file"; then
2255 echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: C compiler cannot create executables
2261See \`config.log' for more details." >&2;}
2262 { (exit 77); exit 77; }; }
2263fi
2264
2265ac_exeext=$ac_cv_exeext
2266
2267# Check that the compiler produces executables we can run. If not, either
2268# the compiler is broken, or we cross compile.
2269{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2270echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2271# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2272# If not cross compiling, check that we can run a simple program.
2273if test "$cross_compiling" != yes; then
2274 if { ac_try='./$ac_file'
2275 { (case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
2279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_try") 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 cross_compiling=no
2285 else
2286 if test "$cross_compiling" = maybe; then
2287 cross_compiling=yes
2288 else
2289 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2290If you meant to cross compile, use \`--host'.
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot run C compiled programs.
2293If you meant to cross compile, use \`--host'.
2294See \`config.log' for more details." >&2;}
2295 { (exit 1); exit 1; }; }
2296 fi
2297 fi
2298fi
2299{ echo "$as_me:$LINENO: result: yes" >&5
2300echo "${ECHO_T}yes" >&6; }
2301
2302rm -f a.out a.exe conftest$ac_cv_exeext b.out
2303ac_clean_files=$ac_clean_files_save
2304# Check that the compiler produces executables we can run. If not, either
2305# the compiler is broken, or we cross compile.
2306{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2307echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2308{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2309echo "${ECHO_T}$cross_compiling" >&6; }
2310
2311{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2312echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2313if { (ac_try="$ac_link"
2314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
2318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_link") 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325# work properly (i.e., refer to `conftest.exe'), while it won't with
2326# `rm'.
2327for ac_file in conftest.exe conftest conftest.*; do
2328 test -f "$ac_file" || continue
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 break;;
2333 * ) break;;
2334 esac
2335done
2336else
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest$ac_cv_exeext
2345{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2346echo "${ECHO_T}$ac_cv_exeext" >&6; }
2347
2348rm -f conftest.$ac_ext
2349EXEEXT=$ac_cv_exeext
2350ac_exeext=$EXEEXT
2351{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2352echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2353if test "${ac_cv_objext+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355else
2356 cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h. */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h. */
2362
2363int
2364main ()
2365{
2366
2367 ;
2368 return 0;
2369}
2370_ACEOF
2371rm -f conftest.o conftest.obj
2372if { (ac_try="$ac_compile"
2373case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376esac
2377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; then
2382 for ac_file in conftest.o conftest.obj conftest.*; do
2383 test -f "$ac_file" || continue;
2384 case $ac_file in
2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2386 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2387 break;;
2388 esac
2389done
2390else
2391 echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2395See \`config.log' for more details." >&5
2396echo "$as_me: error: cannot compute suffix of object files: cannot compile
2397See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2399fi
2400
2401rm -f conftest.$ac_cv_objext conftest.$ac_ext
2402fi
2403{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2404echo "${ECHO_T}$ac_cv_objext" >&6; }
2405OBJEXT=$ac_cv_objext
2406ac_objext=$OBJEXT
2407{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2408echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2409if test "${ac_cv_c_compiler_gnu+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
2418
2419int
2420main ()
2421{
2422#ifndef __GNUC__
2423 choke me
2424#endif
2425
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430rm -f conftest.$ac_objext
2431if { (ac_try="$ac_compile"
2432case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435esac
2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_compile") 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } && {
2444 test -z "$ac_c_werror_flag" ||
2445 test ! -s conftest.err
2446 } && test -s conftest.$ac_objext; then
2447 ac_compiler_gnu=yes
2448else
2449 echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_compiler_gnu=no
2453fi
2454
2455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2466if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 ac_save_c_werror_flag=$ac_c_werror_flag
2470 ac_c_werror_flag=yes
2471 ac_cv_prog_cc_g=no
2472 CFLAGS="-g"
2473 cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479
2480int
2481main ()
2482{
2483
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488rm -f conftest.$ac_objext
2489if { (ac_try="$ac_compile"
2490case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493esac
2494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_compile") 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } && {
2502 test -z "$ac_c_werror_flag" ||
2503 test ! -s conftest.err
2504 } && test -s conftest.$ac_objext; then
2505 ac_cv_prog_cc_g=yes
2506else
2507 echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 CFLAGS=""
2511 cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h. */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h. */
2517
2518int
2519main ()
2520{
2521
2522 ;
2523 return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
2527if { (ac_try="$ac_compile"
2528case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compile") 2>conftest.er1
2534 ac_status=$?
2535 grep -v '^ *+' conftest.er1 >conftest.err
2536 rm -f conftest.er1
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } && {
2540 test -z "$ac_c_werror_flag" ||
2541 test ! -s conftest.err
2542 } && test -s conftest.$ac_objext; then
2543 :
2544else
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_c_werror_flag=$ac_save_c_werror_flag
2549 CFLAGS="-g"
2550 cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h. */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h. */
2556
2557int
2558main ()
2559{
2560
2561 ;
2562 return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (ac_try="$ac_compile"
2567case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570esac
2571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_compile") 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } && {
2579 test -z "$ac_c_werror_flag" ||
2580 test ! -s conftest.err
2581 } && test -s conftest.$ac_objext; then
2582 ac_cv_prog_cc_g=yes
2583else
2584 echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587
2588fi
2589
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595
2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2598fi
2599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2601if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
2606 else
2607 CFLAGS="-g"
2608 fi
2609else
2610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
2612 else
2613 CFLAGS=
2614 fi
2615fi
2616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2618if test "${ac_cv_prog_cc_c89+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 ac_cv_prog_cc_c89=no
2622ac_save_CC=$CC
2623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629#include <stdarg.h>
2630#include <stdio.h>
2631#include <sys/types.h>
2632#include <sys/stat.h>
2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634struct buf { int x; };
2635FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636static char *e (p, i)
2637 char **p;
2638 int i;
2639{
2640 return p[i];
2641}
2642static char *f (char * (*g) (char **, int), char **p, ...)
2643{
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2650}
2651
2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std. */
2659int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2660
2661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2662 inside strings and character constants. */
2663#define FOO(x) 'x'
2664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2665
2666int test (int i, double x);
2667struct s1 {int (*f) (int a);};
2668struct s2 {int (*f) (double a);};
2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670int argc;
2671char **argv;
2672int
2673main ()
2674{
2675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676 ;
2677 return 0;
2678}
2679_ACEOF
2680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2682do
2683 CC="$ac_save_CC $ac_arg"
2684 rm -f conftest.$ac_objext
2685if { (ac_try="$ac_compile"
2686case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689esac
2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compile") 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } && {
2698 test -z "$ac_c_werror_flag" ||
2699 test ! -s conftest.err
2700 } && test -s conftest.$ac_objext; then
2701 ac_cv_prog_cc_c89=$ac_arg
2702else
2703 echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706
2707fi
2708
2709rm -f core conftest.err conftest.$ac_objext
2710 test "x$ac_cv_prog_cc_c89" != "xno" && break
2711done
2712rm -f conftest.$ac_ext
2713CC=$ac_save_CC
2714
2715fi
2716# AC_CACHE_VAL
2717case "x$ac_cv_prog_cc_c89" in
2718 x)
2719 { echo "$as_me:$LINENO: result: none needed" >&5
2720echo "${ECHO_T}none needed" >&6; } ;;
2721 xno)
2722 { echo "$as_me:$LINENO: result: unsupported" >&5
2723echo "${ECHO_T}unsupported" >&6; } ;;
2724 *)
2725 CC="$CC $ac_cv_prog_cc_c89"
2726 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2727echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2728esac
2729
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736
2737ac_aux_dir=
2738for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 break
2751 fi
2752done
2753if test -z "$ac_aux_dir"; then
2754 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2755echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2756 { (exit 1); exit 1; }; }
2757fi
2758
2759# These three variables are undocumented and unsupported,
2760# and are intended to be withdrawn in a future Autoconf release.
2761# They can cause serious problems if a builder's source tree is in a directory
2762# whose full name contains unusual characters.
2763ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766
2767
2768# Make sure we can run config.sub.
2769$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2770 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2771echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2772 { (exit 1); exit 1; }; }
2773
2774{ echo "$as_me:$LINENO: checking build system type" >&5
2775echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2776if test "${ac_cv_build+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779 ac_build_alias=$build_alias
2780test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782test "x$ac_build_alias" = x &&
2783 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2784echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2785 { (exit 1); exit 1; }; }
2786ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2788echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2789 { (exit 1); exit 1; }; }
2790
2791fi
2792{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2793echo "${ECHO_T}$ac_cv_build" >&6; }
2794case $ac_cv_build in
2795*-*-*) ;;
2796*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2797echo "$as_me: error: invalid value of canonical build" >&2;}
2798 { (exit 1); exit 1; }; };;
2799esac
2800build=$ac_cv_build
2801ac_save_IFS=$IFS; IFS='-'
2802set x $ac_cv_build
2803shift
2804build_cpu=$1
2805build_vendor=$2
2806shift; shift
2807# Remember, the first character of IFS is used to create $*,
2808# except with old shells:
2809build_os=$*
2810IFS=$ac_save_IFS
2811case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812
2813
2814{ echo "$as_me:$LINENO: checking host system type" >&5
2815echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2816if test "${ac_cv_host+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else
2819 if test "x$host_alias" = x; then
2820 ac_cv_host=$ac_cv_build
2821else
2822 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2823 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2824echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2825 { (exit 1); exit 1; }; }
2826fi
2827
2828fi
2829{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2830echo "${ECHO_T}$ac_cv_host" >&6; }
2831case $ac_cv_host in
2832*-*-*) ;;
2833*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2834echo "$as_me: error: invalid value of canonical host" >&2;}
2835 { (exit 1); exit 1; }; };;
2836esac
2837host=$ac_cv_host
2838ac_save_IFS=$IFS; IFS='-'
2839set x $ac_cv_host
2840shift
2841host_cpu=$1
2842host_vendor=$2
2843shift; shift
2844# Remember, the first character of IFS is used to create $*,
2845# except with old shells:
2846host_os=$*
2847IFS=$ac_save_IFS
2848case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2849
2850
2851
2852ac_ext=c
2853ac_cpp='$CPP $CPPFLAGS'
2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2858echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2859# On Suns, sometimes $CPP names a directory.
2860if test -n "$CPP" && test -d "$CPP"; then
2861 CPP=
2862fi
2863if test -z "$CPP"; then
2864 if test "${ac_cv_prog_CPP+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866else
2867 # Double quotes because CPP needs to be expanded
2868 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2869 do
2870 ac_preproc_ok=false
2871for ac_c_preproc_warn_flag in '' yes
2872do
2873 # Use a header file that comes with gcc, so configuring glibc
2874 # with a fresh cross-compiler works.
2875 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2876 # <limits.h> exists even on freestanding compilers.
2877 # On the NeXT, cc -E runs the code through the compiler's parser,
2878 # not just through cpp. "Syntax error" is here to catch this case.
2879 cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h. */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h. */
2885#ifdef __STDC__
2886# include <limits.h>
2887#else
2888# include <assert.h>
2889#endif
2890 Syntax error
2891_ACEOF
2892if { (ac_try="$ac_cpp conftest.$ac_ext"
2893case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896esac
2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } >/dev/null && {
2905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 }; then
2908 :
2909else
2910 echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 # Broken: fails on valid input.
2914continue
2915fi
2916
2917rm -f conftest.err conftest.$ac_ext
2918
2919 # OK, works on sane cases. Now check whether nonexistent headers
2920 # can be detected and how.
2921 cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927#include <ac_nonexistent.h>
2928_ACEOF
2929if { (ac_try="$ac_cpp conftest.$ac_ext"
2930case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933esac
2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null && {
2942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 }; then
2945 # Broken: success on invalid input.
2946continue
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 # Passes both tests.
2952ac_preproc_ok=:
2953break
2954fi
2955
2956rm -f conftest.err conftest.$ac_ext
2957
2958done
2959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2960rm -f conftest.err conftest.$ac_ext
2961if $ac_preproc_ok; then
2962 break
2963fi
2964
2965 done
2966 ac_cv_prog_CPP=$CPP
2967
2968fi
2969 CPP=$ac_cv_prog_CPP
2970else
2971 ac_cv_prog_CPP=$CPP
2972fi
2973{ echo "$as_me:$LINENO: result: $CPP" >&5
2974echo "${ECHO_T}$CPP" >&6; }
2975ac_preproc_ok=false
2976for ac_c_preproc_warn_flag in '' yes
2977do
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
2982 # On the NeXT, cc -E runs the code through the compiler's parser,
2983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
2990#ifdef __STDC__
2991# include <limits.h>
2992#else
2993# include <assert.h>
2994#endif
2995 Syntax error
2996_ACEOF
2997if { (ac_try="$ac_cpp conftest.$ac_ext"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null && {
3010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 }; then
3013 :
3014else
3015 echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 # Broken: fails on valid input.
3019continue
3020fi
3021
3022rm -f conftest.err conftest.$ac_ext
3023
3024 # OK, works on sane cases. Now check whether nonexistent headers
3025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h. */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h. */
3032#include <ac_nonexistent.h>
3033_ACEOF
3034if { (ac_try="$ac_cpp conftest.$ac_ext"
3035case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null && {
3047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 }; then
3050 # Broken: success on invalid input.
3051continue
3052else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 # Passes both tests.
3057ac_preproc_ok=:
3058break
3059fi
3060
3061rm -f conftest.err conftest.$ac_ext
3062
3063done
3064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065rm -f conftest.err conftest.$ac_ext
3066if $ac_preproc_ok; then
3067 :
3068else
3069 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3070See \`config.log' for more details." >&5
3071echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3072See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }
3074fi
3075
3076ac_ext=c
3077ac_cpp='$CPP $CPPFLAGS'
3078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081
3082
3083{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3084echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3085if test "${ac_cv_path_GREP+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088 # Extract the first word of "grep ggrep" to use in msg output
3089if test -z "$GREP"; then
3090set dummy grep ggrep; ac_prog_name=$2
3091if test "${ac_cv_path_GREP+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3093else
3094 ac_path_GREP_found=false
3095# Loop through the user's path and test for each of PROGNAME-LIST
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_prog in grep ggrep; do
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3104 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3105 # Check for GNU ac_path_GREP and select it if it is found.
3106 # Check for GNU $ac_path_GREP
3107case `"$ac_path_GREP" --version 2>&1` in
3108*GNU*)
3109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3110*)
3111 ac_count=0
3112 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3113 while :
3114 do
3115 cat "conftest.in" "conftest.in" >"conftest.tmp"
3116 mv "conftest.tmp" "conftest.in"
3117 cp "conftest.in" "conftest.nl"
3118 echo 'GREP' >> "conftest.nl"
3119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3121 ac_count=`expr $ac_count + 1`
3122 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3123 # Best one so far, save it but keep looking for a better one
3124 ac_cv_path_GREP="$ac_path_GREP"
3125 ac_path_GREP_max=$ac_count
3126 fi
3127 # 10*(2^10) chars as input seems more than enough
3128 test $ac_count -gt 10 && break
3129 done
3130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3131esac
3132
3133
3134 $ac_path_GREP_found && break 3
3135 done
3136done
3137
3138done
3139IFS=$as_save_IFS
3140
3141
3142fi
3143
3144GREP="$ac_cv_path_GREP"
3145if test -z "$GREP"; then
3146 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3147echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3148 { (exit 1); exit 1; }; }
3149fi
3150
3151else
3152 ac_cv_path_GREP=$GREP
3153fi
3154
3155
3156fi
3157{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3158echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3159 GREP="$ac_cv_path_GREP"
3160
3161
3162{ echo "$as_me:$LINENO: checking for egrep" >&5
3163echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3164if test "${ac_cv_path_EGREP+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3168 then ac_cv_path_EGREP="$GREP -E"
3169 else
3170 # Extract the first word of "egrep" to use in msg output
3171if test -z "$EGREP"; then
3172set dummy egrep; ac_prog_name=$2
3173if test "${ac_cv_path_EGREP+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 ac_path_EGREP_found=false
3177# Loop through the user's path and test for each of PROGNAME-LIST
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3180do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_prog in egrep; do
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3186 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3187 # Check for GNU ac_path_EGREP and select it if it is found.
3188 # Check for GNU $ac_path_EGREP
3189case `"$ac_path_EGREP" --version 2>&1` in
3190*GNU*)
3191 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3192*)
3193 ac_count=0
3194 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3195 while :
3196 do
3197 cat "conftest.in" "conftest.in" >"conftest.tmp"
3198 mv "conftest.tmp" "conftest.in"
3199 cp "conftest.in" "conftest.nl"
3200 echo 'EGREP' >> "conftest.nl"
3201 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3202 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3203 ac_count=`expr $ac_count + 1`
3204 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3205 # Best one so far, save it but keep looking for a better one
3206 ac_cv_path_EGREP="$ac_path_EGREP"
3207 ac_path_EGREP_max=$ac_count
3208 fi
3209 # 10*(2^10) chars as input seems more than enough
3210 test $ac_count -gt 10 && break
3211 done
3212 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3213esac
3214
3215
3216 $ac_path_EGREP_found && break 3
3217 done
3218done
3219
3220done
3221IFS=$as_save_IFS
3222
3223
3224fi
3225
3226EGREP="$ac_cv_path_EGREP"
3227if test -z "$EGREP"; then
3228 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3229echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3230 { (exit 1); exit 1; }; }
3231fi
3232
3233else
3234 ac_cv_path_EGREP=$EGREP
3235fi
3236
3237
3238 fi
3239fi
3240{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3241echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3242 EGREP="$ac_cv_path_EGREP"
3243
3244
3245{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3246echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3247if test "${ac_cv_header_stdc+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250 cat >conftest.$ac_ext <<_ACEOF
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
3256#include <stdlib.h>
3257#include <stdarg.h>
3258#include <string.h>
3259#include <float.h>
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (ac_try="$ac_compile"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } && {
3283 test -z "$ac_c_werror_flag" ||
3284 test ! -s conftest.err
3285 } && test -s conftest.$ac_objext; then
3286 ac_cv_header_stdc=yes
3287else
3288 echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 ac_cv_header_stdc=no
3292fi
3293
3294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295
3296if test $ac_cv_header_stdc = yes; then
3297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3298 cat >conftest.$ac_ext <<_ACEOF
3299/* confdefs.h. */
3300_ACEOF
3301cat confdefs.h >>conftest.$ac_ext
3302cat >>conftest.$ac_ext <<_ACEOF
3303/* end confdefs.h. */
3304#include <string.h>
3305
3306_ACEOF
3307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "memchr" >/dev/null 2>&1; then
3309 :
3310else
3311 ac_cv_header_stdc=no
3312fi
3313rm -f conftest*
3314
3315fi
3316
3317if test $ac_cv_header_stdc = yes; then
3318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3319 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
3325#include <stdlib.h>
3326
3327_ACEOF
3328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 $EGREP "free" >/dev/null 2>&1; then
3330 :
3331else
3332 ac_cv_header_stdc=no
3333fi
3334rm -f conftest*
3335
3336fi
3337
3338if test $ac_cv_header_stdc = yes; then
3339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3340 if test "$cross_compiling" = yes; then
3341 :
3342else
3343 cat >conftest.$ac_ext <<_ACEOF
3344/* confdefs.h. */
3345_ACEOF
3346cat confdefs.h >>conftest.$ac_ext
3347cat >>conftest.$ac_ext <<_ACEOF
3348/* end confdefs.h. */
3349#include <ctype.h>
3350#include <stdlib.h>
3351#if ((' ' & 0x0FF) == 0x020)
3352# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3353# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3354#else
3355# define ISLOWER(c) \
3356 (('a' <= (c) && (c) <= 'i') \
3357 || ('j' <= (c) && (c) <= 'r') \
3358 || ('s' <= (c) && (c) <= 'z'))
3359# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3360#endif
3361
3362#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3363int
3364main ()
3365{
3366 int i;
3367 for (i = 0; i < 256; i++)
3368 if (XOR (islower (i), ISLOWER (i))
3369 || toupper (i) != TOUPPER (i))
3370 return 2;
3371 return 0;
3372}
3373_ACEOF
3374rm -f conftest$ac_exeext
3375if { (ac_try="$ac_link"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388esac
3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 :
3395else
3396 echo "$as_me: program exited with status $ac_status" >&5
3397echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400( exit $ac_status )
3401ac_cv_header_stdc=no
3402fi
3403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3404fi
3405
3406
3407fi
3408fi
3409{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3410echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3411if test $ac_cv_header_stdc = yes; then
3412
3413cat >>confdefs.h <<\_ACEOF
3414#define STDC_HEADERS 1
3415_ACEOF
3416
3417fi
3418
3419# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3430 inttypes.h stdint.h unistd.h
3431do
3432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3433{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438 cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h. */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h. */
3444$ac_includes_default
3445
3446#include <$ac_header>
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
3454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_compile") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } && {
3462 test -z "$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3464 } && test -s conftest.$ac_objext; then
3465 eval "$as_ac_Header=yes"
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 eval "$as_ac_Header=no"
3471fi
3472
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474fi
3475ac_res=`eval echo '${'$as_ac_Header'}'`
3476 { echo "$as_me:$LINENO: result: $ac_res" >&5
3477echo "${ECHO_T}$ac_res" >&6; }
3478if test `eval echo '${'$as_ac_Header'}'` = yes; then
3479 cat >>confdefs.h <<_ACEOF
3480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3481_ACEOF
3482
3483fi
3484
3485done
3486
3487
3488{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3489echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3490if test "${ac_cv_c_bigendian+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 # See if sys/param.h defines the BYTE_ORDER macro.
3494cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h. */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h. */
3500#include <sys/types.h>
3501#include <sys/param.h>
3502
3503int
3504main ()
3505{
3506#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3507 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3508 bogus endian macros
3509#endif
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
3515rm -f conftest.$ac_objext
3516if { (ac_try="$ac_compile"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 # It does; now see whether it defined to BIG_ENDIAN or not.
3533cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
3539#include <sys/types.h>
3540#include <sys/param.h>
3541
3542int
3543main ()
3544{
3545#if BYTE_ORDER != BIG_ENDIAN
3546 not big endian
3547#endif
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (ac_try="$ac_compile"
3555case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558esac
3559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3570 ac_cv_c_bigendian=yes
3571else
3572 echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_cv_c_bigendian=no
3576fi
3577
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579else
3580 echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 # It does not; compile a test program.
3584if test "$cross_compiling" = yes; then
3585 # try to guess the endianness by grepping values into an object file
3586 ac_cv_c_bigendian=unknown
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3594short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3595void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3596short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3597short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3598void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3599int
3600main ()
3601{
3602 _ascii (); _ebcdic ();
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (ac_try="$ac_compile"
3609case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612esac
3613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3625 ac_cv_c_bigendian=yes
3626fi
3627if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3628 if test "$ac_cv_c_bigendian" = unknown; then
3629 ac_cv_c_bigendian=no
3630 else
3631 # finding both strings is unlikely to happen, but who knows?
3632 ac_cv_c_bigendian=unknown
3633 fi
3634fi
3635else
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639
3640fi
3641
3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643else
3644 cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
3650$ac_includes_default
3651int
3652main ()
3653{
3654
3655 /* Are we little or big endian? From Harbison&Steele. */
3656 union
3657 {
3658 long int l;
3659 char c[sizeof (long int)];
3660 } u;
3661 u.l = 1;
3662 return u.c[sizeof (long int) - 1] == 1;
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
3668rm -f conftest$ac_exeext
3669if { (ac_try="$ac_link"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_link") 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3679 { (case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682esac
3683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_try") 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_c_bigendian=no
3689else
3690 echo "$as_me: program exited with status $ac_status" >&5
3691echo "$as_me: failed program was:" >&5
3692sed 's/^/| /' conftest.$ac_ext >&5
3693
3694( exit $ac_status )
3695ac_cv_c_bigendian=yes
3696fi
3697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3698fi
3699
3700
3701fi
3702
3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704fi
3705{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3706echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3707case $ac_cv_c_bigendian in
3708 yes)
3709
3710cat >>confdefs.h <<\_ACEOF
3711#define WORDS_BIGENDIAN 1
3712_ACEOF
3713 ;;
3714 no)
3715 ;;
3716 *)
3717 { { echo "$as_me:$LINENO: error: unknown endianness
3718presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3719echo "$as_me: error: unknown endianness
3720presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3721 { (exit 1); exit 1; }; } ;;
3722esac
3723
3724
3725# Checks for programs.
3726for ac_prog in gawk mawk nawk awk
3727do
3728 # Extract the first word of "$ac_prog", so it can be a program name with args.
3729set dummy $ac_prog; ac_word=$2
3730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3732if test "${ac_cv_prog_AWK+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 if test -n "$AWK"; then
3736 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_AWK="$ac_prog"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749done
3750done
3751IFS=$as_save_IFS
3752
3753fi
3754fi
3755AWK=$ac_cv_prog_AWK
3756if test -n "$AWK"; then
3757 { echo "$as_me:$LINENO: result: $AWK" >&5
3758echo "${ECHO_T}$AWK" >&6; }
3759else
3760 { echo "$as_me:$LINENO: result: no" >&5
3761echo "${ECHO_T}no" >&6; }
3762fi
3763
3764
3765 test -n "$AWK" && break
3766done
3767
3768ac_ext=c
3769ac_cpp='$CPP $CPPFLAGS'
3770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_c_compiler_gnu
3773{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3774echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3775# On Suns, sometimes $CPP names a directory.
3776if test -n "$CPP" && test -d "$CPP"; then
3777 CPP=
3778fi
3779if test -z "$CPP"; then
3780 if test "${ac_cv_prog_CPP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 # Double quotes because CPP needs to be expanded
3784 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3785 do
3786 ac_preproc_ok=false
3787for ac_c_preproc_warn_flag in '' yes
3788do
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801#ifdef __STDC__
3802# include <limits.h>
3803#else
3804# include <assert.h>
3805#endif
3806 Syntax error
3807_ACEOF
3808if { (ac_try="$ac_cpp conftest.$ac_ext"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null && {
3821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 }; then
3824 :
3825else
3826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 # Broken: fails on valid input.
3830continue
3831fi
3832
3833rm -f conftest.err conftest.$ac_ext
3834
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if { (ac_try="$ac_cpp conftest.$ac_ext"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } >/dev/null && {
3858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 }; then
3861 # Broken: success on invalid input.
3862continue
3863else
3864 echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 # Passes both tests.
3868ac_preproc_ok=:
3869break
3870fi
3871
3872rm -f conftest.err conftest.$ac_ext
3873
3874done
3875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876rm -f conftest.err conftest.$ac_ext
3877if $ac_preproc_ok; then
3878 break
3879fi
3880
3881 done
3882 ac_cv_prog_CPP=$CPP
3883
3884fi
3885 CPP=$ac_cv_prog_CPP
3886else
3887 ac_cv_prog_CPP=$CPP
3888fi
3889{ echo "$as_me:$LINENO: result: $CPP" >&5
3890echo "${ECHO_T}$CPP" >&6; }
3891ac_preproc_ok=false
3892for ac_c_preproc_warn_flag in '' yes
3893do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906#ifdef __STDC__
3907# include <limits.h>
3908#else
3909# include <assert.h>
3910#endif
3911 Syntax error
3912_ACEOF
3913if { (ac_try="$ac_cpp conftest.$ac_ext"
3914case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917esac
3918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 }; then
3929 :
3930else
3931 echo "$as_me: failed program was:" >&5
3932sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 # Broken: fails on valid input.
3935continue
3936fi
3937
3938rm -f conftest.err conftest.$ac_ext
3939
3940 # OK, works on sane cases. Now check whether nonexistent headers
3941 # can be detected and how.
3942 cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948#include <ac_nonexistent.h>
3949_ACEOF
3950if { (ac_try="$ac_cpp conftest.$ac_ext"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } >/dev/null && {
3963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 }; then
3966 # Broken: success on invalid input.
3967continue
3968else
3969 echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 # Passes both tests.
3973ac_preproc_ok=:
3974break
3975fi
3976
3977rm -f conftest.err conftest.$ac_ext
3978
3979done
3980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3981rm -f conftest.err conftest.$ac_ext
3982if $ac_preproc_ok; then
3983 :
3984else
3985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3986See \`config.log' for more details." >&5
3987echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3988See \`config.log' for more details." >&2;}
3989 { (exit 1); exit 1; }; }
3990fi
3991
3992ac_ext=c
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4001{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4003if test "${ac_cv_prog_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006 if test -n "$RANLIB"; then
4007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008else
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020done
4021done
4022IFS=$as_save_IFS
4023
4024fi
4025fi
4026RANLIB=$ac_cv_prog_RANLIB
4027if test -n "$RANLIB"; then
4028 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4029echo "${ECHO_T}$RANLIB" >&6; }
4030else
4031 { echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6; }
4033fi
4034
4035
4036fi
4037if test -z "$ac_cv_prog_RANLIB"; then
4038 ac_ct_RANLIB=$RANLIB
4039 # Extract the first word of "ranlib", so it can be a program name with args.
4040set dummy ranlib; ac_word=$2
4041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 if test -n "$ac_ct_RANLIB"; then
4047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_prog_ac_ct_RANLIB="ranlib"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4067if test -n "$ac_ct_RANLIB"; then
4068 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4069echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4070else
4071 { echo "$as_me:$LINENO: result: no" >&5
4072echo "${ECHO_T}no" >&6; }
4073fi
4074
4075 if test "x$ac_ct_RANLIB" = x; then
4076 RANLIB=":"
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079yes:)
4080{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4081whose name does not start with the host triplet. If you think this
4082configuration is useful to you, please write to autoconf@gnu.org." >&5
4083echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4084whose name does not start with the host triplet. If you think this
4085configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4086ac_tool_warned=yes ;;
4087esac
4088 RANLIB=$ac_ct_RANLIB
4089 fi
4090else
4091 RANLIB="$ac_cv_prog_RANLIB"
4092fi
4093
4094# Find a good install program. We prefer a C program (faster),
4095# so one script is as good as another. But avoid the broken or
4096# incompatible versions:
4097# SysV /etc/install, /usr/sbin/install
4098# SunOS /usr/etc/install
4099# IRIX /sbin/install
4100# AIX /bin/install
4101# AmigaOS /C/install, which installs bootblocks on floppy discs
4102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4103# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4105# OS/2's system install, which has a completely different semantic
4106# ./install, which can be erroneously created by make from ./install.sh.
4107{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4108echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4109if test -z "$INSTALL"; then
4110if test "${ac_cv_path_install+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
4118 # Account for people who put trailing slashes in PATH elements.
4119case $as_dir/ in
4120 ./ | .// | /cC/* | \
4121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4123 /usr/ucb/* ) ;;
4124 *)
4125 # OSF1 and SCO ODT 3.0 have their own names for install.
4126 # Don't use installbsd from OSF since it installs stuff as root
4127 # by default.
4128 for ac_prog in ginstall scoinst install; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4131 if test $ac_prog = install &&
4132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4133 # AIX install. It has an incompatible calling convention.
4134 :
4135 elif test $ac_prog = install &&
4136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4137 # program-specific install script used by HP pwplus--don't use.
4138 :
4139 else
4140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4141 break 3
4142 fi
4143 fi
4144 done
4145 done
4146 ;;
4147esac
4148done
4149IFS=$as_save_IFS
4150
4151
4152fi
4153 if test "${ac_cv_path_install+set}" = set; then
4154 INSTALL=$ac_cv_path_install
4155 else
4156 # As a last resort, use the slow shell script. Don't cache a
4157 # value for INSTALL within a source directory, because that will
4158 # break other packages using the cache if that directory is
4159 # removed, or if the value is a relative name.
4160 INSTALL=$ac_install_sh
4161 fi
4162fi
4163{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4164echo "${ECHO_T}$INSTALL" >&6; }
4165
4166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167# It thinks the first close brace ends the variable substitution.
4168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4169
4170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4171
4172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4173
4174{ echo "$as_me:$LINENO: checking for egrep" >&5
4175echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4176if test "${ac_cv_path_EGREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180 then ac_cv_path_EGREP="$GREP -E"
4181 else
4182 # Extract the first word of "egrep" to use in msg output
4183if test -z "$EGREP"; then
4184set dummy egrep; ac_prog_name=$2
4185if test "${ac_cv_path_EGREP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 ac_path_EGREP_found=false
4189# Loop through the user's path and test for each of PROGNAME-LIST
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in egrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4199 # Check for GNU ac_path_EGREP and select it if it is found.
4200 # Check for GNU $ac_path_EGREP
4201case `"$ac_path_EGREP" --version 2>&1` in
4202*GNU*)
4203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4204*)
4205 ac_count=0
4206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4207 while :
4208 do
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 echo 'EGREP' >> "conftest.nl"
4213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 ac_count=`expr $ac_count + 1`
4216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_EGREP="$ac_path_EGREP"
4219 ac_path_EGREP_max=$ac_count
4220 fi
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225esac
4226
4227
4228 $ac_path_EGREP_found && break 3
4229 done
4230done
4231
4232done
4233IFS=$as_save_IFS
4234
4235
4236fi
4237
4238EGREP="$ac_cv_path_EGREP"
4239if test -z "$EGREP"; then
4240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4241echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4242 { (exit 1); exit 1; }; }
4243fi
4244
4245else
4246 ac_cv_path_EGREP=$EGREP
4247fi
4248
4249
4250 fi
4251fi
4252{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4253echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4254 EGREP="$ac_cv_path_EGREP"
4255
4256
4257if test -n "$ac_tool_prefix"; then
4258 for ac_prog in ar
4259 do
4260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264if test "${ac_cv_prog_AR+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267 if test -n "$AR"; then
4268 ac_cv_prog_AR="$AR" # Let the user override the test.
4269else
4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271for as_dir in $PATH
4272do
4273 IFS=$as_save_IFS
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281done
4282done
4283IFS=$as_save_IFS
4284
4285fi
4286fi
4287AR=$ac_cv_prog_AR
4288if test -n "$AR"; then
4289 { echo "$as_me:$LINENO: result: $AR" >&5
4290echo "${ECHO_T}$AR" >&6; }
4291else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6; }
4294fi
4295
4296
4297 test -n "$AR" && break
4298 done
4299fi
4300if test -z "$AR"; then
4301 ac_ct_AR=$AR
4302 for ac_prog in ar
4303do
4304 # Extract the first word of "$ac_prog", so it can be a program name with args.
4305set dummy $ac_prog; ac_word=$2
4306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 if test -n "$ac_ct_AR"; then
4312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_AR="$ac_prog"
4322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326done
4327IFS=$as_save_IFS
4328
4329fi
4330fi
4331ac_ct_AR=$ac_cv_prog_ac_ct_AR
4332if test -n "$ac_ct_AR"; then
4333 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4334echo "${ECHO_T}$ac_ct_AR" >&6; }
4335else
4336 { echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6; }
4338fi
4339
4340
4341 test -n "$ac_ct_AR" && break
4342done
4343
4344 if test "x$ac_ct_AR" = x; then
4345 AR=""
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348yes:)
4349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4350whose name does not start with the host triplet. If you think this
4351configuration is useful to you, please write to autoconf@gnu.org." >&5
4352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4353whose name does not start with the host triplet. If you think this
4354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357 AR=$ac_ct_AR
4358 fi
4359fi
4360
4361# Extract the first word of "cat", so it can be a program name with args.
4362set dummy cat; ac_word=$2
4363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365if test "${ac_cv_path_CAT+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 case $CAT in
4369 [\\/]* | ?:[\\/]*)
4370 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4371 ;;
4372 *)
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384done
4385done
4386IFS=$as_save_IFS
4387
4388 ;;
4389esac
4390fi
4391CAT=$ac_cv_path_CAT
4392if test -n "$CAT"; then
4393 { echo "$as_me:$LINENO: result: $CAT" >&5
4394echo "${ECHO_T}$CAT" >&6; }
4395else
4396 { echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6; }
4398fi
4399
4400
4401# Extract the first word of "kill", so it can be a program name with args.
4402set dummy kill; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_path_KILL+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 case $KILL in
4409 [\\/]* | ?:[\\/]*)
4410 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4411 ;;
4412 *)
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425done
4426IFS=$as_save_IFS
4427
4428 ;;
4429esac
4430fi
4431KILL=$ac_cv_path_KILL
4432if test -n "$KILL"; then
4433 { echo "$as_me:$LINENO: result: $KILL" >&5
4434echo "${ECHO_T}$KILL" >&6; }
4435else
4436 { echo "$as_me:$LINENO: result: no" >&5
4437echo "${ECHO_T}no" >&6; }
4438fi
4439
4440
4441for ac_prog in perl5 perl
4442do
4443 # Extract the first word of "$ac_prog", so it can be a program name with args.
4444set dummy $ac_prog; ac_word=$2
4445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447if test "${ac_cv_path_PERL+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 case $PERL in
4451 [\\/]* | ?:[\\/]*)
4452 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4453 ;;
4454 *)
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466done
4467done
4468IFS=$as_save_IFS
4469
4470 ;;
4471esac
4472fi
4473PERL=$ac_cv_path_PERL
4474if test -n "$PERL"; then
4475 { echo "$as_me:$LINENO: result: $PERL" >&5
4476echo "${ECHO_T}$PERL" >&6; }
4477else
4478 { echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6; }
4480fi
4481
4482
4483 test -n "$PERL" && break
4484done
4485
4486# Extract the first word of "sed", so it can be a program name with args.
4487set dummy sed; ac_word=$2
4488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490if test "${ac_cv_path_SED+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 case $SED in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4496 ;;
4497 *)
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511IFS=$as_save_IFS
4512
4513 ;;
4514esac
4515fi
4516SED=$ac_cv_path_SED
4517if test -n "$SED"; then
4518 { echo "$as_me:$LINENO: result: $SED" >&5
4519echo "${ECHO_T}$SED" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526
4527# Extract the first word of "ent", so it can be a program name with args.
4528set dummy ent; ac_word=$2
4529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531if test "${ac_cv_path_ENT+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 case $ENT in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4537 ;;
4538 *)
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551done
4552IFS=$as_save_IFS
4553
4554 ;;
4555esac
4556fi
4557ENT=$ac_cv_path_ENT
4558if test -n "$ENT"; then
4559 { echo "$as_me:$LINENO: result: $ENT" >&5
4560echo "${ECHO_T}$ENT" >&6; }
4561else
4562 { echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6; }
4564fi
4565
4566
4567
4568# Extract the first word of "bash", so it can be a program name with args.
4569set dummy bash; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 case $TEST_MINUS_S_SH in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593IFS=$as_save_IFS
4594
4595 ;;
4596esac
4597fi
4598TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4599if test -n "$TEST_MINUS_S_SH"; then
4600 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4601echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4602else
4603 { echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6; }
4605fi
4606
4607
4608# Extract the first word of "ksh", so it can be a program name with args.
4609set dummy ksh; ac_word=$2
4610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615 case $TEST_MINUS_S_SH in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4618 ;;
4619 *)
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635 ;;
4636esac
4637fi
4638TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4639if test -n "$TEST_MINUS_S_SH"; then
4640 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4641echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4642else
4643 { echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6; }
4645fi
4646
4647
4648# Extract the first word of "sh", so it can be a program name with args.
4649set dummy sh; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 case $TEST_MINUS_S_SH in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675 ;;
4676esac
4677fi
4678TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4679if test -n "$TEST_MINUS_S_SH"; then
4680 { echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4681echo "${ECHO_T}$TEST_MINUS_S_SH" >&6; }
4682else
4683 { echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6; }
4685fi
4686
4687
4688# Extract the first word of "sh", so it can be a program name with args.
4689set dummy sh; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_path_SH+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case $SH in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
4713IFS=$as_save_IFS
4714
4715 ;;
4716esac
4717fi
4718SH=$ac_cv_path_SH
4719if test -n "$SH"; then
4720 { echo "$as_me:$LINENO: result: $SH" >&5
4721echo "${ECHO_T}$SH" >&6; }
4722else
4723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
4725fi
4726
4727
4728# Extract the first word of "groff", so it can be a program name with args.
4729set dummy groff; ac_word=$2
4730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732if test "${ac_cv_path_GROFF+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 case $GROFF in
4736 [\\/]* | ?:[\\/]*)
4737 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4738 ;;
4739 *)
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
4752done
4753IFS=$as_save_IFS
4754
4755 ;;
4756esac
4757fi
4758GROFF=$ac_cv_path_GROFF
4759if test -n "$GROFF"; then
4760 { echo "$as_me:$LINENO: result: $GROFF" >&5
4761echo "${ECHO_T}$GROFF" >&6; }
4762else
4763 { echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6; }
4765fi
4766
4767
4768# Extract the first word of "nroff", so it can be a program name with args.
4769set dummy nroff; ac_word=$2
4770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772if test "${ac_cv_path_NROFF+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 case $NROFF in
4776 [\\/]* | ?:[\\/]*)
4777 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4778 ;;
4779 *)
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795 ;;
4796esac
4797fi
4798NROFF=$ac_cv_path_NROFF
4799if test -n "$NROFF"; then
4800 { echo "$as_me:$LINENO: result: $NROFF" >&5
4801echo "${ECHO_T}$NROFF" >&6; }
4802else
4803 { echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6; }
4805fi
4806
4807
4808# Extract the first word of "mandoc", so it can be a program name with args.
4809set dummy mandoc; ac_word=$2
4810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812if test "${ac_cv_path_MANDOC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 case $MANDOC in
4816 [\\/]* | ?:[\\/]*)
4817 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
4818 ;;
4819 *)
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832done
4833IFS=$as_save_IFS
4834
4835 ;;
4836esac
4837fi
4838MANDOC=$ac_cv_path_MANDOC
4839if test -n "$MANDOC"; then
4840 { echo "$as_me:$LINENO: result: $MANDOC" >&5
4841echo "${ECHO_T}$MANDOC" >&6; }
4842else
4843 { echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6; }
4845fi
4846
4847
4848TEST_SHELL=sh
4849
4850
4851if test "x$MANDOC" != "x" ; then
4852 MANFMT="$MANDOC"
4853elif test "x$NROFF" != "x" ; then
4854 MANFMT="$NROFF -mandoc"
4855elif test "x$GROFF" != "x" ; then
4856 MANFMT="$GROFF -mandoc -Tascii"
4857else
4858 { echo "$as_me:$LINENO: WARNING: no manpage formatted found" >&5
4859echo "$as_me: WARNING: no manpage formatted found" >&2;}
4860 MANFMT="false"
4861fi
4862
4863
4864# Extract the first word of "groupadd", so it can be a program name with args.
4865set dummy groupadd; ac_word=$2
4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871 case $PATH_GROUPADD_PROG in
4872 [\\/]* | ?:[\\/]*)
4873 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4874 ;;
4875 *)
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887done
4888done
4889IFS=$as_save_IFS
4890
4891 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4892 ;;
4893esac
4894fi
4895PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4896if test -n "$PATH_GROUPADD_PROG"; then
4897 { echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
4898echo "${ECHO_T}$PATH_GROUPADD_PROG" >&6; }
4899else
4900 { echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6; }
4902fi
4903
4904
4905# Extract the first word of "useradd", so it can be a program name with args.
4906set dummy useradd; ac_word=$2
4907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 case $PATH_USERADD_PROG in
4913 [\\/]* | ?:[\\/]*)
4914 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4915 ;;
4916 *)
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928done
4929done
4930IFS=$as_save_IFS
4931
4932 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
4933 ;;
4934esac
4935fi
4936PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
4937if test -n "$PATH_USERADD_PROG"; then
4938 { echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
4939echo "${ECHO_T}$PATH_USERADD_PROG" >&6; }
4940else
4941 { echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6; }
4943fi
4944
4945
4946# Extract the first word of "pkgmk", so it can be a program name with args.
4947set dummy pkgmk; ac_word=$2
4948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952else
4953 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4954 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
4955else
4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957for as_dir in $PATH
4958do
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4966 fi
4967done
4968done
4969IFS=$as_save_IFS
4970
4971 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
4972fi
4973fi
4974MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
4975if test -n "$MAKE_PACKAGE_SUPPORTED"; then
4976 { echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
4977echo "${ECHO_T}$MAKE_PACKAGE_SUPPORTED" >&6; }
4978else
4979 { echo "$as_me:$LINENO: result: no" >&5
4980echo "${ECHO_T}no" >&6; }
4981fi
4982
4983
4984if test -x /sbin/sh; then
4985 STARTUP_SCRIPT_SHELL=/sbin/sh
4986
4987else
4988 STARTUP_SCRIPT_SHELL=/bin/sh
4989
4990fi
4991
4992# System features
4993# Check whether --enable-largefile was given.
4994if test "${enable_largefile+set}" = set; then
4995 enableval=$enable_largefile;
4996fi
4997
4998if test "$enable_largefile" != no; then
4999
5000 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5001echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5002if test "${ac_cv_sys_largefile_CC+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 ac_cv_sys_largefile_CC=no
5006 if test "$GCC" != yes; then
5007 ac_save_CC=$CC
5008 while :; do
5009 # IRIX 6.2 and later do not support large files by default,
5010 # so use the C compiler's -n32 option if that helps.
5011 cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017#include <sys/types.h>
5018 /* Check that off_t can represent 2**63 - 1 correctly.
5019 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5020 since some C++ compilers masquerading as C compilers
5021 incorrectly reject 9223372036854775807. */
5022#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5023 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5024 && LARGE_OFF_T % 2147483647 == 1)
5025 ? 1 : -1];
5026int
5027main ()
5028{
5029
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034 rm -f conftest.$ac_objext
5035if { (ac_try="$ac_compile"
5036case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_compile") 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && {
5048 test -z "$ac_c_werror_flag" ||
5049 test ! -s conftest.err
5050 } && test -s conftest.$ac_objext; then
5051 break
5052else
5053 echo "$as_me: failed program was:" >&5
5054sed 's/^/| /' conftest.$ac_ext >&5
5055
5056
5057fi
5058
5059rm -f core conftest.err conftest.$ac_objext
5060 CC="$CC -n32"
5061 rm -f conftest.$ac_objext
5062if { (ac_try="$ac_compile"
5063case "(($ac_try" in
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5066esac
5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } && {
5075 test -z "$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 } && test -s conftest.$ac_objext; then
5078 ac_cv_sys_largefile_CC=' -n32'; break
5079else
5080 echo "$as_me: failed program was:" >&5
5081sed 's/^/| /' conftest.$ac_ext >&5
5082
5083
5084fi
5085
5086rm -f core conftest.err conftest.$ac_objext
5087 break
5088 done
5089 CC=$ac_save_CC
5090 rm -f conftest.$ac_ext
5091 fi
5092fi
5093{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5094echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5095 if test "$ac_cv_sys_largefile_CC" != no; then
5096 CC=$CC$ac_cv_sys_largefile_CC
5097 fi
5098
5099 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5100echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5101if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 while :; do
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111#include <sys/types.h>
5112 /* Check that off_t can represent 2**63 - 1 correctly.
5113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5114 since some C++ compilers masquerading as C compilers
5115 incorrectly reject 9223372036854775807. */
5116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5118 && LARGE_OFF_T % 2147483647 == 1)
5119 ? 1 : -1];
5120int
5121main ()
5122{
5123
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext
5129if { (ac_try="$ac_compile"
5130case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest.$ac_objext; then
5145 ac_cv_sys_file_offset_bits=no; break
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150
5151fi
5152
5153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5154 cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160#define _FILE_OFFSET_BITS 64
5161#include <sys/types.h>
5162 /* Check that off_t can represent 2**63 - 1 correctly.
5163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5164 since some C++ compilers masquerading as C compilers
5165 incorrectly reject 9223372036854775807. */
5166#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5168 && LARGE_OFF_T % 2147483647 == 1)
5169 ? 1 : -1];
5170int
5171main ()
5172{
5173
5174 ;
5175 return 0;
5176}
5177_ACEOF
5178rm -f conftest.$ac_objext
5179if { (ac_try="$ac_compile"
5180case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_compile") 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && {
5192 test -z "$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5194 } && test -s conftest.$ac_objext; then
5195 ac_cv_sys_file_offset_bits=64; break
5196else
5197 echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200
5201fi
5202
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ac_cv_sys_file_offset_bits=unknown
5205 break
5206done
5207fi
5208{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5209echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5210case $ac_cv_sys_file_offset_bits in #(
5211 no | unknown) ;;
5212 *)
5213cat >>confdefs.h <<_ACEOF
5214#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5215_ACEOF
5216;;
5217esac
5218rm -f conftest*
5219 if test $ac_cv_sys_file_offset_bits = unknown; then
5220 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5221echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5222if test "${ac_cv_sys_large_files+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 while :; do
5226 cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
5232#include <sys/types.h>
5233 /* Check that off_t can represent 2**63 - 1 correctly.
5234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5235 since some C++ compilers masquerading as C compilers
5236 incorrectly reject 9223372036854775807. */
5237#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5239 && LARGE_OFF_T % 2147483647 == 1)
5240 ? 1 : -1];
5241int
5242main ()
5243{
5244
5245 ;
5246 return 0;
5247}
5248_ACEOF
5249rm -f conftest.$ac_objext
5250if { (ac_try="$ac_compile"
5251case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_compile") 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && {
5263 test -z "$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 } && test -s conftest.$ac_objext; then
5266 ac_cv_sys_large_files=no; break
5267else
5268 echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271
5272fi
5273
5274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 cat >conftest.$ac_ext <<_ACEOF
5276/* confdefs.h. */
5277_ACEOF
5278cat confdefs.h >>conftest.$ac_ext
5279cat >>conftest.$ac_ext <<_ACEOF
5280/* end confdefs.h. */
5281#define _LARGE_FILES 1
5282#include <sys/types.h>
5283 /* Check that off_t can represent 2**63 - 1 correctly.
5284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5285 since some C++ compilers masquerading as C compilers
5286 incorrectly reject 9223372036854775807. */
5287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5289 && LARGE_OFF_T % 2147483647 == 1)
5290 ? 1 : -1];
5291int
5292main ()
5293{
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext
5300if { (ac_try="$ac_compile"
5301case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && {
5313 test -z "$ac_c_werror_flag" ||
5314 test ! -s conftest.err
5315 } && test -s conftest.$ac_objext; then
5316 ac_cv_sys_large_files=1; break
5317else
5318 echo "$as_me: failed program was:" >&5
5319sed 's/^/| /' conftest.$ac_ext >&5
5320
5321
5322fi
5323
5324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 ac_cv_sys_large_files=unknown
5326 break
5327done
5328fi
5329{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5330echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5331case $ac_cv_sys_large_files in #(
5332 no | unknown) ;;
5333 *)
5334cat >>confdefs.h <<_ACEOF
5335#define _LARGE_FILES $ac_cv_sys_large_files
5336_ACEOF
5337;;
5338esac
5339rm -f conftest*
5340 fi
5341fi
5342
5343
5344if test -z "$AR" ; then
5345 { { echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5346echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5347 { (exit 1); exit 1; }; }
5348fi
5349
5350# Use LOGIN_PROGRAM from environment if possible
5351if test ! -z "$LOGIN_PROGRAM" ; then
5352
5353cat >>confdefs.h <<_ACEOF
5354#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5355_ACEOF
5356
5357else
5358 # Search for login
5359 # Extract the first word of "login", so it can be a program name with args.
5360set dummy login; ac_word=$2
5361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5363if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 case $LOGIN_PROGRAM_FALLBACK in
5367 [\\/]* | ?:[\\/]*)
5368 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5369 ;;
5370 *)
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382done
5383done
5384IFS=$as_save_IFS
5385
5386 ;;
5387esac
5388fi
5389LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5390if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5391 { echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5392echo "${ECHO_T}$LOGIN_PROGRAM_FALLBACK" >&6; }
5393else
5394 { echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6; }
5396fi
5397
5398
5399 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5400 cat >>confdefs.h <<_ACEOF
5401#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5402_ACEOF
5403
5404 fi
5405fi
5406
5407# Extract the first word of "passwd", so it can be a program name with args.
5408set dummy passwd; ac_word=$2
5409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5411if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 case $PATH_PASSWD_PROG in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5417 ;;
5418 *)
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430done
5431done
5432IFS=$as_save_IFS
5433
5434 ;;
5435esac
5436fi
5437PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5438if test -n "$PATH_PASSWD_PROG"; then
5439 { echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5440echo "${ECHO_T}$PATH_PASSWD_PROG" >&6; }
5441else
5442 { echo "$as_me:$LINENO: result: no" >&5
5443echo "${ECHO_T}no" >&6; }
5444fi
5445
5446
5447if test ! -z "$PATH_PASSWD_PROG" ; then
5448
5449cat >>confdefs.h <<_ACEOF
5450#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5451_ACEOF
5452
5453fi
5454
5455if test -z "$LD" ; then
5456 LD=$CC
5457fi
5458
5459
5460{ echo "$as_me:$LINENO: checking for inline" >&5
5461echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5462if test "${ac_cv_c_inline+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 ac_cv_c_inline=no
5466for ac_kw in inline __inline__ __inline; do
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473#ifndef __cplusplus
5474typedef int foo_t;
5475static $ac_kw foo_t static_foo () {return 0; }
5476$ac_kw foo_t foo () {return 0; }
5477#endif
5478
5479_ACEOF
5480rm -f conftest.$ac_objext
5481if { (ac_try="$ac_compile"
5482case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compile") 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest.$ac_objext; then
5497 ac_cv_c_inline=$ac_kw
5498else
5499 echo "$as_me: failed program was:" >&5
5500sed 's/^/| /' conftest.$ac_ext >&5
5501
5502
5503fi
5504
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 test "$ac_cv_c_inline" != no && break
5507done
5508
5509fi
5510{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5511echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5512
5513
5514case $ac_cv_c_inline in
5515 inline | yes) ;;
5516 *)
5517 case $ac_cv_c_inline in
5518 no) ac_val=;;
5519 *) ac_val=$ac_cv_c_inline;;
5520 esac
5521 cat >>confdefs.h <<_ACEOF
5522#ifndef __cplusplus
5523#define inline $ac_val
5524#endif
5525_ACEOF
5526 ;;
5527esac
5528
5529
5530{ echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5531echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
5532if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
5541#include <limits.h>
5542
5543int
5544main ()
5545{
5546#ifndef LLONG_MAX
5547 (void) LLONG_MAX;
5548#endif
5549
5550 ;
5551 return 0;
5552}
5553_ACEOF
5554rm -f conftest.$ac_objext
5555if { (ac_try="$ac_compile"
5556case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5571 ac_cv_have_decl_LLONG_MAX=yes
5572else
5573 echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576 ac_cv_have_decl_LLONG_MAX=no
5577fi
5578
5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580fi
5581{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5582echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
5583if test $ac_cv_have_decl_LLONG_MAX = yes; then
5584 have_llong_max=1
5585fi
5586
5587{ echo "$as_me:$LINENO: checking whether SYSTR_POLICY_KILL is declared" >&5
5588echo $ECHO_N "checking whether SYSTR_POLICY_KILL is declared... $ECHO_C" >&6; }
5589if test "${ac_cv_have_decl_SYSTR_POLICY_KILL+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592 cat >conftest.$ac_ext <<_ACEOF
5593/* confdefs.h. */
5594_ACEOF
5595cat confdefs.h >>conftest.$ac_ext
5596cat >>conftest.$ac_ext <<_ACEOF
5597/* end confdefs.h. */
5598
5599 #include <sys/types.h>
5600 #include <sys/param.h>
5601 #include <dev/systrace.h>
5602
5603
5604int
5605main ()
5606{
5607#ifndef SYSTR_POLICY_KILL
5608 (void) SYSTR_POLICY_KILL;
5609#endif
5610
5611 ;
5612 return 0;
5613}
5614_ACEOF
5615rm -f conftest.$ac_objext
5616if { (ac_try="$ac_compile"
5617case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_cv_have_decl_SYSTR_POLICY_KILL=yes
5633else
5634 echo "$as_me: failed program was:" >&5
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637 ac_cv_have_decl_SYSTR_POLICY_KILL=no
5638fi
5639
5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641fi
5642{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SYSTR_POLICY_KILL" >&5
5643echo "${ECHO_T}$ac_cv_have_decl_SYSTR_POLICY_KILL" >&6; }
5644if test $ac_cv_have_decl_SYSTR_POLICY_KILL = yes; then
5645 have_systr_policy_kill=1
5646fi
5647
5648{ echo "$as_me:$LINENO: checking whether RLIMIT_NPROC is declared" >&5
5649echo $ECHO_N "checking whether RLIMIT_NPROC is declared... $ECHO_C" >&6; }
5650if test "${ac_cv_have_decl_RLIMIT_NPROC+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659
5660 #include <sys/types.h>
5661 #include <sys/resource.h>
5662
5663
5664int
5665main ()
5666{
5667#ifndef RLIMIT_NPROC
5668 (void) RLIMIT_NPROC;
5669#endif
5670
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5683 ac_status=$?
5684 grep -v '^ *+' conftest.er1 >conftest.err
5685 rm -f conftest.er1
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 ac_cv_have_decl_RLIMIT_NPROC=yes
5693else
5694 echo "$as_me: failed program was:" >&5
5695sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_have_decl_RLIMIT_NPROC=no
5698fi
5699
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701fi
5702{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_RLIMIT_NPROC" >&5
5703echo "${ECHO_T}$ac_cv_have_decl_RLIMIT_NPROC" >&6; }
5704if test $ac_cv_have_decl_RLIMIT_NPROC = yes; then
5705
5706cat >>confdefs.h <<\_ACEOF
5707#define HAVE_RLIMIT_NPROC
5708_ACEOF
5709
5710fi
5711
5712{ echo "$as_me:$LINENO: checking whether PR_SET_NO_NEW_PRIVS is declared" >&5
5713echo $ECHO_N "checking whether PR_SET_NO_NEW_PRIVS is declared... $ECHO_C" >&6; }
5714if test "${ac_cv_have_decl_PR_SET_NO_NEW_PRIVS+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724 #include <sys/types.h>
5725 #include <linux/prctl.h>
5726
5727
5728int
5729main ()
5730{
5731#ifndef PR_SET_NO_NEW_PRIVS
5732 (void) PR_SET_NO_NEW_PRIVS;
5733#endif
5734
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext
5740if { (ac_try="$ac_compile"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=yes
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 ac_cv_have_decl_PR_SET_NO_NEW_PRIVS=no
5762fi
5763
5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765fi
5766{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&5
5767echo "${ECHO_T}$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" >&6; }
5768if test $ac_cv_have_decl_PR_SET_NO_NEW_PRIVS = yes; then
5769 have_linux_no_new_privs=1
5770fi
5771
5772
5773openssl=yes
5774ssh1=no
5775
5776# Check whether --with-openssl was given.
5777if test "${with_openssl+set}" = set; then
5778 withval=$with_openssl; if test "x$withval" = "xno" ; then
5779 openssl=no
5780 ssh1=no
5781 fi
5782
5783
5784fi
5785
5786{ echo "$as_me:$LINENO: checking whether OpenSSL will be used for cryptography" >&5
5787echo $ECHO_N "checking whether OpenSSL will be used for cryptography... $ECHO_C" >&6; }
5788if test "x$openssl" = "xyes" ; then
5789 { echo "$as_me:$LINENO: result: yes" >&5
5790echo "${ECHO_T}yes" >&6; }
5791
5792cat >>confdefs.h <<_ACEOF
5793#define WITH_OPENSSL 1
5794_ACEOF
5795
5796else
5797 { echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6; }
5799fi
5800
5801
5802# Check whether --with-ssh1 was given.
5803if test "${with_ssh1+set}" = set; then
5804 withval=$with_ssh1;
5805 if test "x$withval" = "xyes" ; then
5806 if test "x$openssl" = "xno" ; then
5807 { { echo "$as_me:$LINENO: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&5
5808echo "$as_me: error: Cannot enable SSH protocol 1 with OpenSSL disabled" >&2;}
5809 { (exit 1); exit 1; }; }
5810 fi
5811 ssh1=yes
5812 elif test "x$withval" = "xno" ; then
5813 ssh1=no
5814 else
5815 { { echo "$as_me:$LINENO: error: unknown --with-ssh1 argument" >&5
5816echo "$as_me: error: unknown --with-ssh1 argument" >&2;}
5817 { (exit 1); exit 1; }; }
5818 fi
5819
5820
5821fi
5822
5823{ echo "$as_me:$LINENO: checking whether SSH protocol 1 support is enabled" >&5
5824echo $ECHO_N "checking whether SSH protocol 1 support is enabled... $ECHO_C" >&6; }
5825if test "x$ssh1" = "xyes" ; then
5826 { echo "$as_me:$LINENO: result: yes" >&5
5827echo "${ECHO_T}yes" >&6; }
5828
5829cat >>confdefs.h <<_ACEOF
5830#define WITH_SSH1 1
5831_ACEOF
5832
5833else
5834 { echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6; }
5836fi
5837
5838use_stack_protector=1
5839use_toolchain_hardening=1
5840
5841# Check whether --with-stackprotect was given.
5842if test "${with_stackprotect+set}" = set; then
5843 withval=$with_stackprotect;
5844 if test "x$withval" = "xno"; then
5845 use_stack_protector=0
5846 fi
5847fi
5848
5849
5850# Check whether --with-hardening was given.
5851if test "${with_hardening+set}" = set; then
5852 withval=$with_hardening;
5853 if test "x$withval" = "xno"; then
5854 use_toolchain_hardening=0
5855 fi
5856fi
5857
5858
5859# We use -Werror for the tests only so that we catch warnings like "this is
5860# on by default" for things like -fPIE.
5861{ echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
5862echo $ECHO_N "checking if $CC supports -Werror... $ECHO_C" >&6; }
5863saved_CFLAGS="$CFLAGS"
5864CFLAGS="$CFLAGS -Werror"
5865cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h. */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h. */
5871int main(void) { return 0; }
5872_ACEOF
5873rm -f conftest.$ac_objext
5874if { (ac_try="$ac_compile"
5875case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_compile") 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } && {
5887 test -z "$ac_c_werror_flag" ||
5888 test ! -s conftest.err
5889 } && test -s conftest.$ac_objext; then
5890 { echo "$as_me:$LINENO: result: yes" >&5
5891echo "${ECHO_T}yes" >&6; }
5892 WERROR="-Werror"
5893else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 { echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6; }
5899 WERROR=""
5900
5901fi
5902
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904CFLAGS="$saved_CFLAGS"
5905
5906if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5907 {
5908 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Qunused-arguments" >&5
5909echo $ECHO_N "checking if $CC supports compile flag -Qunused-arguments... $ECHO_C" >&6; }
5910 saved_CFLAGS="$CFLAGS"
5911 CFLAGS="$CFLAGS $WERROR -Qunused-arguments"
5912 _define_flag=""
5913 test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments"
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
5920
5921#include <stdlib.h>
5922#include <stdio.h>
5923int main(int argc, char **argv) {
5924 /* Some math to catch -ftrapv problems in the toolchain */
5925 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5926 float l = i * 2.1;
5927 double m = l / 0.5;
5928 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5929 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5930 exit(0);
5931}
5932
5933_ACEOF
5934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951
5952if `grep -i "unrecognized option" conftest.err >/dev/null`
5953then
5954 { echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
5956 CFLAGS="$saved_CFLAGS"
5957else
5958 { echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6; }
5960 CFLAGS="$saved_CFLAGS $_define_flag"
5961fi
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 { echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6; }
5968 CFLAGS="$saved_CFLAGS"
5969
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973}
5974 {
5975 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunknown-warning-option" >&5
5976echo $ECHO_N "checking if $CC supports compile flag -Wunknown-warning-option... $ECHO_C" >&6; }
5977 saved_CFLAGS="$CFLAGS"
5978 CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option"
5979 _define_flag=""
5980 test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option"
5981 cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h. */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */
5987
5988#include <stdlib.h>
5989#include <stdio.h>
5990int main(int argc, char **argv) {
5991 /* Some math to catch -ftrapv problems in the toolchain */
5992 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
5993 float l = i * 2.1;
5994 double m = l / 0.5;
5995 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
5996 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
5997 exit(0);
5998}
5999
6000_ACEOF
6001rm -f conftest.$ac_objext
6002if { (ac_try="$ac_compile"
6003case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6018
6019if `grep -i "unrecognized option" conftest.err >/dev/null`
6020then
6021 { echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
6023 CFLAGS="$saved_CFLAGS"
6024else
6025 { echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6; }
6027 CFLAGS="$saved_CFLAGS $_define_flag"
6028fi
6029else
6030 echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 { echo "$as_me:$LINENO: result: no" >&5
6034echo "${ECHO_T}no" >&6; }
6035 CFLAGS="$saved_CFLAGS"
6036
6037fi
6038
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040}
6041 {
6042 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wall" >&5
6043echo $ECHO_N "checking if $CC supports compile flag -Wall... $ECHO_C" >&6; }
6044 saved_CFLAGS="$CFLAGS"
6045 CFLAGS="$CFLAGS $WERROR -Wall"
6046 _define_flag=""
6047 test "x$_define_flag" = "x" && _define_flag="-Wall"
6048 cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
6053/* end confdefs.h. */
6054
6055#include <stdlib.h>
6056#include <stdio.h>
6057int main(int argc, char **argv) {
6058 /* Some math to catch -ftrapv problems in the toolchain */
6059 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6060 float l = i * 2.1;
6061 double m = l / 0.5;
6062 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6063 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6064 exit(0);
6065}
6066
6067_ACEOF
6068rm -f conftest.$ac_objext
6069if { (ac_try="$ac_compile"
6070case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073esac
6074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6076 ac_status=$?
6077 grep -v '^ *+' conftest.er1 >conftest.err
6078 rm -f conftest.er1
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6085
6086if `grep -i "unrecognized option" conftest.err >/dev/null`
6087then
6088 { echo "$as_me:$LINENO: result: no" >&5
6089echo "${ECHO_T}no" >&6; }
6090 CFLAGS="$saved_CFLAGS"
6091else
6092 { echo "$as_me:$LINENO: result: yes" >&5
6093echo "${ECHO_T}yes" >&6; }
6094 CFLAGS="$saved_CFLAGS $_define_flag"
6095fi
6096else
6097 echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 { echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6; }
6102 CFLAGS="$saved_CFLAGS"
6103
6104fi
6105
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107}
6108 {
6109 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-arith" >&5
6110echo $ECHO_N "checking if $CC supports compile flag -Wpointer-arith... $ECHO_C" >&6; }
6111 saved_CFLAGS="$CFLAGS"
6112 CFLAGS="$CFLAGS $WERROR -Wpointer-arith"
6113 _define_flag=""
6114 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
6115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h. */
6121
6122#include <stdlib.h>
6123#include <stdio.h>
6124int main(int argc, char **argv) {
6125 /* Some math to catch -ftrapv problems in the toolchain */
6126 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6127 float l = i * 2.1;
6128 double m = l / 0.5;
6129 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6130 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6131 exit(0);
6132}
6133
6134_ACEOF
6135rm -f conftest.$ac_objext
6136if { (ac_try="$ac_compile"
6137case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140esac
6141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6143 ac_status=$?
6144 grep -v '^ *+' conftest.er1 >conftest.err
6145 rm -f conftest.er1
6146 cat conftest.err >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.$ac_objext; then
6152
6153if `grep -i "unrecognized option" conftest.err >/dev/null`
6154then
6155 { echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157 CFLAGS="$saved_CFLAGS"
6158else
6159 { echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6; }
6161 CFLAGS="$saved_CFLAGS $_define_flag"
6162fi
6163else
6164 echo "$as_me: failed program was:" >&5
6165sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
6169 CFLAGS="$saved_CFLAGS"
6170
6171fi
6172
6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174}
6175 {
6176 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wuninitialized" >&5
6177echo $ECHO_N "checking if $CC supports compile flag -Wuninitialized... $ECHO_C" >&6; }
6178 saved_CFLAGS="$CFLAGS"
6179 CFLAGS="$CFLAGS $WERROR -Wuninitialized"
6180 _define_flag=""
6181 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
6182 cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h. */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h. */
6188
6189#include <stdlib.h>
6190#include <stdio.h>
6191int main(int argc, char **argv) {
6192 /* Some math to catch -ftrapv problems in the toolchain */
6193 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6194 float l = i * 2.1;
6195 double m = l / 0.5;
6196 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6197 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6198 exit(0);
6199}
6200
6201_ACEOF
6202rm -f conftest.$ac_objext
6203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6219
6220if `grep -i "unrecognized option" conftest.err >/dev/null`
6221then
6222 { echo "$as_me:$LINENO: result: no" >&5
6223echo "${ECHO_T}no" >&6; }
6224 CFLAGS="$saved_CFLAGS"
6225else
6226 { echo "$as_me:$LINENO: result: yes" >&5
6227echo "${ECHO_T}yes" >&6; }
6228 CFLAGS="$saved_CFLAGS $_define_flag"
6229fi
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 { echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6; }
6236 CFLAGS="$saved_CFLAGS"
6237
6238fi
6239
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241}
6242 {
6243 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsign-compare" >&5
6244echo $ECHO_N "checking if $CC supports compile flag -Wsign-compare... $ECHO_C" >&6; }
6245 saved_CFLAGS="$CFLAGS"
6246 CFLAGS="$CFLAGS $WERROR -Wsign-compare"
6247 _define_flag=""
6248 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255
6256#include <stdlib.h>
6257#include <stdio.h>
6258int main(int argc, char **argv) {
6259 /* Some math to catch -ftrapv problems in the toolchain */
6260 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6261 float l = i * 2.1;
6262 double m = l / 0.5;
6263 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6264 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6265 exit(0);
6266}
6267
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274esac
6275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_compile") 2>conftest.er1
6277 ac_status=$?
6278 grep -v '^ *+' conftest.er1 >conftest.err
6279 rm -f conftest.er1
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } && {
6283 test -z "$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 } && test -s conftest.$ac_objext; then
6286
6287if `grep -i "unrecognized option" conftest.err >/dev/null`
6288then
6289 { echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6; }
6291 CFLAGS="$saved_CFLAGS"
6292else
6293 { echo "$as_me:$LINENO: result: yes" >&5
6294echo "${ECHO_T}yes" >&6; }
6295 CFLAGS="$saved_CFLAGS $_define_flag"
6296fi
6297else
6298 echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 { echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6; }
6303 CFLAGS="$saved_CFLAGS"
6304
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308}
6309 {
6310 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wformat-security" >&5
6311echo $ECHO_N "checking if $CC supports compile flag -Wformat-security... $ECHO_C" >&6; }
6312 saved_CFLAGS="$CFLAGS"
6313 CFLAGS="$CFLAGS $WERROR -Wformat-security"
6314 _define_flag=""
6315 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
6316 cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322
6323#include <stdlib.h>
6324#include <stdio.h>
6325int main(int argc, char **argv) {
6326 /* Some math to catch -ftrapv problems in the toolchain */
6327 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6328 float l = i * 2.1;
6329 double m = l / 0.5;
6330 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6331 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6332 exit(0);
6333}
6334
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compile") 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest.$ac_objext; then
6353
6354if `grep -i "unrecognized option" conftest.err >/dev/null`
6355then
6356 { echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6; }
6358 CFLAGS="$saved_CFLAGS"
6359else
6360 { echo "$as_me:$LINENO: result: yes" >&5
6361echo "${ECHO_T}yes" >&6; }
6362 CFLAGS="$saved_CFLAGS $_define_flag"
6363fi
6364else
6365 echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 { echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6; }
6370 CFLAGS="$saved_CFLAGS"
6371
6372fi
6373
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375}
6376 {
6377 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5
6378echo $ECHO_N "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... $ECHO_C" >&6; }
6379 saved_CFLAGS="$CFLAGS"
6380 CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess"
6381 _define_flag=""
6382 test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess"
6383 cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h. */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h. */
6389
6390#include <stdlib.h>
6391#include <stdio.h>
6392int main(int argc, char **argv) {
6393 /* Some math to catch -ftrapv problems in the toolchain */
6394 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6395 float l = i * 2.1;
6396 double m = l / 0.5;
6397 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6398 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6399 exit(0);
6400}
6401
6402_ACEOF
6403rm -f conftest.$ac_objext
6404if { (ac_try="$ac_compile"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420
6421if `grep -i "unrecognized option" conftest.err >/dev/null`
6422then
6423 { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
6425 CFLAGS="$saved_CFLAGS"
6426else
6427 { echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6; }
6429 CFLAGS="$saved_CFLAGS $_define_flag"
6430fi
6431else
6432 echo "$as_me: failed program was:" >&5
6433sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 { echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6; }
6437 CFLAGS="$saved_CFLAGS"
6438
6439fi
6440
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442}
6443 {
6444 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wpointer-sign" >&5
6445echo $ECHO_N "checking if $CC supports compile flag -Wpointer-sign... $ECHO_C" >&6; }
6446 saved_CFLAGS="$CFLAGS"
6447 CFLAGS="$CFLAGS $WERROR -Wpointer-sign"
6448 _define_flag="-Wno-pointer-sign"
6449 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
6450 cat >conftest.$ac_ext <<_ACEOF
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
6456
6457#include <stdlib.h>
6458#include <stdio.h>
6459int main(int argc, char **argv) {
6460 /* Some math to catch -ftrapv problems in the toolchain */
6461 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6462 float l = i * 2.1;
6463 double m = l / 0.5;
6464 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6465 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6466 exit(0);
6467}
6468
6469_ACEOF
6470rm -f conftest.$ac_objext
6471if { (ac_try="$ac_compile"
6472case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475esac
6476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6487
6488if `grep -i "unrecognized option" conftest.err >/dev/null`
6489then
6490 { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
6492 CFLAGS="$saved_CFLAGS"
6493else
6494 { echo "$as_me:$LINENO: result: yes" >&5
6495echo "${ECHO_T}yes" >&6; }
6496 CFLAGS="$saved_CFLAGS $_define_flag"
6497fi
6498else
6499 echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504 CFLAGS="$saved_CFLAGS"
6505
6506fi
6507
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509}
6510 {
6511 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wunused-result" >&5
6512echo $ECHO_N "checking if $CC supports compile flag -Wunused-result... $ECHO_C" >&6; }
6513 saved_CFLAGS="$CFLAGS"
6514 CFLAGS="$CFLAGS $WERROR -Wunused-result"
6515 _define_flag="-Wno-unused-result"
6516 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
6517 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h. */
6523
6524#include <stdlib.h>
6525#include <stdio.h>
6526int main(int argc, char **argv) {
6527 /* Some math to catch -ftrapv problems in the toolchain */
6528 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6529 float l = i * 2.1;
6530 double m = l / 0.5;
6531 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6532 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6533 exit(0);
6534}
6535
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554
6555if `grep -i "unrecognized option" conftest.err >/dev/null`
6556then
6557 { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559 CFLAGS="$saved_CFLAGS"
6560else
6561 { echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6; }
6563 CFLAGS="$saved_CFLAGS $_define_flag"
6564fi
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 { echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6; }
6571 CFLAGS="$saved_CFLAGS"
6572
6573fi
6574
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576}
6577 {
6578 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fno-strict-aliasing" >&5
6579echo $ECHO_N "checking if $CC supports compile flag -fno-strict-aliasing... $ECHO_C" >&6; }
6580 saved_CFLAGS="$CFLAGS"
6581 CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing"
6582 _define_flag=""
6583 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
6584 cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590
6591#include <stdlib.h>
6592#include <stdio.h>
6593int main(int argc, char **argv) {
6594 /* Some math to catch -ftrapv problems in the toolchain */
6595 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6596 float l = i * 2.1;
6597 double m = l / 0.5;
6598 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6599 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6600 exit(0);
6601}
6602
6603_ACEOF
6604rm -f conftest.$ac_objext
6605if { (ac_try="$ac_compile"
6606case "(($ac_try" in
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6609esac
6610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611 (eval "$ac_compile") 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } && {
6618 test -z "$ac_c_werror_flag" ||
6619 test ! -s conftest.err
6620 } && test -s conftest.$ac_objext; then
6621
6622if `grep -i "unrecognized option" conftest.err >/dev/null`
6623then
6624 { echo "$as_me:$LINENO: result: no" >&5
6625echo "${ECHO_T}no" >&6; }
6626 CFLAGS="$saved_CFLAGS"
6627else
6628 { echo "$as_me:$LINENO: result: yes" >&5
6629echo "${ECHO_T}yes" >&6; }
6630 CFLAGS="$saved_CFLAGS $_define_flag"
6631fi
6632else
6633 echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
6638 CFLAGS="$saved_CFLAGS"
6639
6640fi
6641
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643}
6644 {
6645 { echo "$as_me:$LINENO: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5
6646echo $ECHO_N "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... $ECHO_C" >&6; }
6647 saved_CFLAGS="$CFLAGS"
6648 CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2"
6649 _define_flag=""
6650 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
6651 cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h. */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h. */
6657
6658#include <stdlib.h>
6659#include <stdio.h>
6660int main(int argc, char **argv) {
6661 /* Some math to catch -ftrapv problems in the toolchain */
6662 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6663 float l = i * 2.1;
6664 double m = l / 0.5;
6665 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6666 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6667 exit(0);
6668}
6669
6670_ACEOF
6671rm -f conftest.$ac_objext
6672if { (ac_try="$ac_compile"
6673case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676esac
6677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_compile") 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 } && test -s conftest.$ac_objext; then
6688
6689if `grep -i "unrecognized option" conftest.err >/dev/null`
6690then
6691 { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693 CFLAGS="$saved_CFLAGS"
6694else
6695 { echo "$as_me:$LINENO: result: yes" >&5
6696echo "${ECHO_T}yes" >&6; }
6697 CFLAGS="$saved_CFLAGS $_define_flag"
6698fi
6699else
6700 echo "$as_me: failed program was:" >&5
6701sed 's/^/| /' conftest.$ac_ext >&5
6702
6703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
6705 CFLAGS="$saved_CFLAGS"
6706
6707fi
6708
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710}
6711 if test "x$use_toolchain_hardening" = "x1"; then
6712 {
6713 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,relro" >&5
6714echo $ECHO_N "checking if $LD supports link flag -Wl,-z,relro... $ECHO_C" >&6; }
6715 saved_LDFLAGS="$LDFLAGS"
6716 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro"
6717 _define_flag=""
6718 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro"
6719 cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h. */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h. */
6725
6726#include <stdlib.h>
6727#include <stdio.h>
6728int main(int argc, char **argv) {
6729 /* Some math to catch -ftrapv problems in the toolchain */
6730 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6731 float l = i * 2.1;
6732 double m = l / 0.5;
6733 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6734 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6735 exit(0);
6736}
6737
6738_ACEOF
6739rm -f conftest.$ac_objext conftest$ac_exeext
6740if { (ac_try="$ac_link"
6741case "(($ac_try" in
6742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6744esac
6745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_link") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } && {
6753 test -z "$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 } && test -s conftest$ac_exeext &&
6756 $as_test_x conftest$ac_exeext; then
6757 { echo "$as_me:$LINENO: result: yes" >&5
6758echo "${ECHO_T}yes" >&6; }
6759 LDFLAGS="$saved_LDFLAGS $_define_flag"
6760else
6761 echo "$as_me: failed program was:" >&5
6762sed 's/^/| /' conftest.$ac_ext >&5
6763
6764 { echo "$as_me:$LINENO: result: no" >&5
6765echo "${ECHO_T}no" >&6; }
6766 LDFLAGS="$saved_LDFLAGS"
6767
6768fi
6769
6770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6771 conftest$ac_exeext conftest.$ac_ext
6772}
6773 {
6774 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,now" >&5
6775echo $ECHO_N "checking if $LD supports link flag -Wl,-z,now... $ECHO_C" >&6; }
6776 saved_LDFLAGS="$LDFLAGS"
6777 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now"
6778 _define_flag=""
6779 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now"
6780 cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h. */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h. */
6786
6787#include <stdlib.h>
6788#include <stdio.h>
6789int main(int argc, char **argv) {
6790 /* Some math to catch -ftrapv problems in the toolchain */
6791 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6792 float l = i * 2.1;
6793 double m = l / 0.5;
6794 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6795 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6796 exit(0);
6797}
6798
6799_ACEOF
6800rm -f conftest.$ac_objext conftest$ac_exeext
6801if { (ac_try="$ac_link"
6802case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805esac
6806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_link") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest$ac_exeext &&
6817 $as_test_x conftest$ac_exeext; then
6818 { echo "$as_me:$LINENO: result: yes" >&5
6819echo "${ECHO_T}yes" >&6; }
6820 LDFLAGS="$saved_LDFLAGS $_define_flag"
6821else
6822 echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
6827 LDFLAGS="$saved_LDFLAGS"
6828
6829fi
6830
6831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833}
6834 {
6835 { echo "$as_me:$LINENO: checking if $LD supports link flag -Wl,-z,noexecstack" >&5
6836echo $ECHO_N "checking if $LD supports link flag -Wl,-z,noexecstack... $ECHO_C" >&6; }
6837 saved_LDFLAGS="$LDFLAGS"
6838 LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack"
6839 _define_flag=""
6840 test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack"
6841 cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
6847
6848#include <stdlib.h>
6849#include <stdio.h>
6850int main(int argc, char **argv) {
6851 /* Some math to catch -ftrapv problems in the toolchain */
6852 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6853 float l = i * 2.1;
6854 double m = l / 0.5;
6855 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6856 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6857 exit(0);
6858}
6859
6860_ACEOF
6861rm -f conftest.$ac_objext conftest$ac_exeext
6862if { (ac_try="$ac_link"
6863case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866esac
6867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest$ac_exeext &&
6878 $as_test_x conftest$ac_exeext; then
6879 { echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6; }
6881 LDFLAGS="$saved_LDFLAGS $_define_flag"
6882else
6883 echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888 LDFLAGS="$saved_LDFLAGS"
6889
6890fi
6891
6892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6893 conftest$ac_exeext conftest.$ac_ext
6894}
6895 # NB. -ftrapv expects certain support functions to be present in
6896 # the compiler library (libgcc or similar) to detect integer operations
6897 # that can overflow. We must check that the result of enabling it
6898 # actually links. The test program compiled/linked includes a number
6899 # of integer operations that should exercise this.
6900 {
6901 { echo "$as_me:$LINENO: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5
6902echo $ECHO_N "checking if $CC supports compile flag -ftrapv and linking succeeds... $ECHO_C" >&6; }
6903 saved_CFLAGS="$CFLAGS"
6904 CFLAGS="$CFLAGS $WERROR -ftrapv"
6905 _define_flag=""
6906 test "x$_define_flag" = "x" && _define_flag="-ftrapv"
6907 cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h. */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h. */
6913
6914#include <stdlib.h>
6915#include <stdio.h>
6916int main(int argc, char **argv) {
6917 /* Some math to catch -ftrapv problems in the toolchain */
6918 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
6919 float l = i * 2.1;
6920 double m = l / 0.5;
6921 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
6922 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
6923 exit(0);
6924}
6925
6926_ACEOF
6927rm -f conftest.$ac_objext conftest$ac_exeext
6928if { (ac_try="$ac_link"
6929case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_link") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } && {
6941 test -z "$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 } && test -s conftest$ac_exeext &&
6944 $as_test_x conftest$ac_exeext; then
6945
6946if `grep -i "unrecognized option" conftest.err >/dev/null`
6947then
6948 { echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6; }
6950 CFLAGS="$saved_CFLAGS"
6951else
6952 { echo "$as_me:$LINENO: result: yes" >&5
6953echo "${ECHO_T}yes" >&6; }
6954 CFLAGS="$saved_CFLAGS $_define_flag"
6955fi
6956else
6957 echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962 CFLAGS="$saved_CFLAGS"
6963
6964fi
6965
6966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6967 conftest$ac_exeext conftest.$ac_ext
6968}
6969 fi
6970 { echo "$as_me:$LINENO: checking gcc version" >&5
6971echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
6972 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
6973 case $GCC_VER in
6974 1.*) no_attrib_nonnull=1 ;;
6975 2.8* | 2.9*)
6976 no_attrib_nonnull=1
6977 ;;
6978 2.*) no_attrib_nonnull=1 ;;
6979 *) ;;
6980 esac
6981 { echo "$as_me:$LINENO: result: $GCC_VER" >&5
6982echo "${ECHO_T}$GCC_VER" >&6; }
6983
6984 { echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
6985echo $ECHO_N "checking if $CC accepts -fno-builtin-memset... $ECHO_C" >&6; }
6986 saved_CFLAGS="$CFLAGS"
6987 CFLAGS="$CFLAGS -fno-builtin-memset"
6988 cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
6994 #include <string.h>
6995int
6996main ()
6997{
6998 char b[10]; memset(b, 0, sizeof(b));
6999 ;
7000 return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (ac_try="$ac_link"
7005case "(($ac_try" in
7006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007 *) ac_try_echo=$ac_try;;
7008esac
7009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_link") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest$ac_exeext &&
7020 $as_test_x conftest$ac_exeext; then
7021 { echo "$as_me:$LINENO: result: yes" >&5
7022echo "${ECHO_T}yes" >&6; }
7023else
7024 echo "$as_me: failed program was:" >&5
7025sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 { echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6; }
7029 CFLAGS="$saved_CFLAGS"
7030
7031fi
7032
7033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7034 conftest$ac_exeext conftest.$ac_ext
7035
7036 # -fstack-protector-all doesn't always work for some GCC versions
7037 # and/or platforms, so we test if we can. If it's not supported
7038 # on a given platform gcc will emit a warning so we use -Werror.
7039 if test "x$use_stack_protector" = "x1"; then
7040 for t in -fstack-protector-strong -fstack-protector-all \
7041 -fstack-protector; do
7042 { echo "$as_me:$LINENO: checking if $CC supports $t" >&5
7043echo $ECHO_N "checking if $CC supports $t... $ECHO_C" >&6; }
7044 saved_CFLAGS="$CFLAGS"
7045 saved_LDFLAGS="$LDFLAGS"
7046 CFLAGS="$CFLAGS $t -Werror"
7047 LDFLAGS="$LDFLAGS $t -Werror"
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054 #include <stdio.h>
7055int
7056main ()
7057{
7058
7059 char x[256];
7060 snprintf(x, sizeof(x), "XXX");
7061
7062 ;
7063 return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext conftest$ac_exeext
7067if { (ac_try="$ac_link"
7068case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest$ac_exeext &&
7083 $as_test_x conftest$ac_exeext; then
7084 { echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6; }
7086 CFLAGS="$saved_CFLAGS $t"
7087 LDFLAGS="$saved_LDFLAGS $t"
7088 { echo "$as_me:$LINENO: checking if $t works" >&5
7089echo $ECHO_N "checking if $t works... $ECHO_C" >&6; }
7090 if test "$cross_compiling" = yes; then
7091 { echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
7092echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
7093 break
7094
7095else
7096 cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h. */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h. */
7102 #include <stdio.h>
7103int
7104main ()
7105{
7106
7107 char x[256];
7108 snprintf(x, sizeof(x), "XXX");
7109
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114rm -f conftest$ac_exeext
7115if { (ac_try="$ac_link"
7116case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119esac
7120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_link") 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7125 { (case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128esac
7129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_try") 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 { echo "$as_me:$LINENO: result: yes" >&5
7135echo "${ECHO_T}yes" >&6; }
7136 break
7137else
7138 echo "$as_me: program exited with status $ac_status" >&5
7139echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142( exit $ac_status )
7143 { echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6; }
7145fi
7146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7147fi
7148
7149
7150
7151else
7152 echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157
7158fi
7159
7160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7161 conftest$ac_exeext conftest.$ac_ext
7162 CFLAGS="$saved_CFLAGS"
7163 LDFLAGS="$saved_LDFLAGS"
7164 done
7165 fi
7166
7167 if test -z "$have_llong_max"; then
7168 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
7169 unset ac_cv_have_decl_LLONG_MAX
7170 saved_CFLAGS="$CFLAGS"
7171 CFLAGS="$CFLAGS -std=gnu99"
7172 { echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
7173echo $ECHO_N "checking whether LLONG_MAX is declared... $ECHO_C" >&6; }
7174if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
7182/* end confdefs.h. */
7183#include <limits.h>
7184
7185
7186int
7187main ()
7188{
7189#ifndef LLONG_MAX
7190 (void) LLONG_MAX;
7191#endif
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197rm -f conftest.$ac_objext
7198if { (ac_try="$ac_compile"
7199case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202esac
7203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
7214 ac_cv_have_decl_LLONG_MAX=yes
7215else
7216 echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_cv_have_decl_LLONG_MAX=no
7220fi
7221
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223fi
7224{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
7225echo "${ECHO_T}$ac_cv_have_decl_LLONG_MAX" >&6; }
7226if test $ac_cv_have_decl_LLONG_MAX = yes; then
7227 have_llong_max=1
7228else
7229 CFLAGS="$saved_CFLAGS"
7230fi
7231
7232 fi
7233fi
7234
7235{ echo "$as_me:$LINENO: checking if compiler allows __attribute__ on return types" >&5
7236echo $ECHO_N "checking if compiler allows __attribute__ on return types... $ECHO_C" >&6; }
7237cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h. */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h. */
7243
7244#include <stdlib.h>
7245__attribute__((__unused__)) static void foo(void){return;}
7246int
7247main ()
7248{
7249 exit(0);
7250 ;
7251 return 0;
7252}
7253_ACEOF
7254rm -f conftest.$ac_objext
7255if { (ac_try="$ac_compile"
7256case "(($ac_try" in
7257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7259esac
7260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261 (eval "$ac_compile") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest.$ac_objext; then
7271 { echo "$as_me:$LINENO: result: yes" >&5
7272echo "${ECHO_T}yes" >&6; }
7273else
7274 echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 { echo "$as_me:$LINENO: result: no" >&5
7278echo "${ECHO_T}no" >&6; }
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define NO_ATTRIBUTE_ON_RETURN_TYPE 1
7282_ACEOF
7283
7284
7285fi
7286
7287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288
7289if test "x$no_attrib_nonnull" != "x1" ; then
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define HAVE_ATTRIBUTE__NONNULL__ 1
7293_ACEOF
7294
7295fi
7296
7297
7298# Check whether --with-rpath was given.
7299if test "${with_rpath+set}" = set; then
7300 withval=$with_rpath;
7301 if test "x$withval" = "xno" ; then
7302 need_dash_r=""
7303 fi
7304 if test "x$withval" = "xyes" ; then
7305 need_dash_r=1
7306 fi
7307
7308
7309fi
7310
7311
7312# Allow user to specify flags
7313
7314# Check whether --with-cflags was given.
7315if test "${with_cflags+set}" = set; then
7316 withval=$with_cflags;
7317 if test -n "$withval" && test "x$withval" != "xno" && \
7318 test "x${withval}" != "xyes"; then
7319 CFLAGS="$CFLAGS $withval"
7320 fi
7321
7322
7323fi
7324
7325
7326# Check whether --with-cppflags was given.
7327if test "${with_cppflags+set}" = set; then
7328 withval=$with_cppflags;
7329 if test -n "$withval" && test "x$withval" != "xno" && \
7330 test "x${withval}" != "xyes"; then
7331 CPPFLAGS="$CPPFLAGS $withval"
7332 fi
7333
7334
7335fi
7336
7337
7338# Check whether --with-ldflags was given.
7339if test "${with_ldflags+set}" = set; then
7340 withval=$with_ldflags;
7341 if test -n "$withval" && test "x$withval" != "xno" && \
7342 test "x${withval}" != "xyes"; then
7343 LDFLAGS="$LDFLAGS $withval"
7344 fi
7345
7346
7347fi
7348
7349
7350# Check whether --with-libs was given.
7351if test "${with_libs+set}" = set; then
7352 withval=$with_libs;
7353 if test -n "$withval" && test "x$withval" != "xno" && \
7354 test "x${withval}" != "xyes"; then
7355 LIBS="$LIBS $withval"
7356 fi
7357
7358
7359fi
7360
7361
7362# Check whether --with-Werror was given.
7363if test "${with_Werror+set}" = set; then
7364 withval=$with_Werror;
7365 if test -n "$withval" && test "x$withval" != "xno"; then
7366 werror_flags="-Werror"
7367 if test "x${withval}" != "xyes"; then
7368 werror_flags="$withval"
7369 fi
7370 fi
7371
7372
7373fi
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443for ac_header in \
7444 blf.h \
7445 bstring.h \
7446 crypt.h \
7447 crypto/sha2.h \
7448 dirent.h \
7449 endian.h \
7450 elf.h \
7451 features.h \
7452 fcntl.h \
7453 floatingpoint.h \
7454 getopt.h \
7455 glob.h \
7456 ia.h \
7457 iaf.h \
7458 inttypes.h \
7459 limits.h \
7460 locale.h \
7461 login.h \
7462 maillock.h \
7463 ndir.h \
7464 net/if_tun.h \
7465 netdb.h \
7466 netgroup.h \
7467 pam/pam_appl.h \
7468 paths.h \
7469 poll.h \
7470 pty.h \
7471 readpassphrase.h \
7472 rpc/types.h \
7473 security/pam_appl.h \
7474 sha2.h \
7475 shadow.h \
7476 stddef.h \
7477 stdint.h \
7478 string.h \
7479 strings.h \
7480 sys/audit.h \
7481 sys/bitypes.h \
7482 sys/bsdtty.h \
7483 sys/capability.h \
7484 sys/cdefs.h \
7485 sys/dir.h \
7486 sys/mman.h \
7487 sys/ndir.h \
7488 sys/poll.h \
7489 sys/prctl.h \
7490 sys/pstat.h \
7491 sys/select.h \
7492 sys/stat.h \
7493 sys/stream.h \
7494 sys/stropts.h \
7495 sys/strtio.h \
7496 sys/statvfs.h \
7497 sys/sysmacros.h \
7498 sys/time.h \
7499 sys/timers.h \
7500 time.h \
7501 tmpdir.h \
7502 ttyent.h \
7503 ucred.h \
7504 unistd.h \
7505 usersec.h \
7506 util.h \
7507 utime.h \
7508 utmp.h \
7509 utmpx.h \
7510 vis.h \
7511
7512do
7513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519fi
7520ac_res=`eval echo '${'$as_ac_Header'}'`
7521 { echo "$as_me:$LINENO: result: $ac_res" >&5
7522echo "${ECHO_T}$ac_res" >&6; }
7523else
7524 # Is the header compilable?
7525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7527cat >conftest.$ac_ext <<_ACEOF
7528/* confdefs.h. */
7529_ACEOF
7530cat confdefs.h >>conftest.$ac_ext
7531cat >>conftest.$ac_ext <<_ACEOF
7532/* end confdefs.h. */
7533$ac_includes_default
7534#include <$ac_header>
7535_ACEOF
7536rm -f conftest.$ac_objext
7537if { (ac_try="$ac_compile"
7538case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541esac
7542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 ac_header_compiler=yes
7554else
7555 echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 ac_header_compiler=no
7559fi
7560
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7563echo "${ECHO_T}$ac_header_compiler" >&6; }
7564
7565# Is the header present?
7566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7568cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
7574#include <$ac_header>
7575_ACEOF
7576if { (ac_try="$ac_cpp conftest.$ac_ext"
7577case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580esac
7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } >/dev/null && {
7589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 }; then
7592 ac_header_preproc=yes
7593else
7594 echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 ac_header_preproc=no
7598fi
7599
7600rm -f conftest.err conftest.$ac_ext
7601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7602echo "${ECHO_T}$ac_header_preproc" >&6; }
7603
7604# So? What about this header?
7605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7606 yes:no: )
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7611 ac_header_preproc=yes
7612 ;;
7613 no:yes:* )
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7626 ( cat <<\_ASBOX
7627## ------------------------------------------- ##
7628## Report this to openssh-unix-dev@mindrot.org ##
7629## ------------------------------------------- ##
7630_ASBOX
7631 ) | sed "s/^/$as_me: WARNING: /" >&2
7632 ;;
7633esac
7634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 eval "$as_ac_Header=\$ac_header_preproc"
7640fi
7641ac_res=`eval echo '${'$as_ac_Header'}'`
7642 { echo "$as_me:$LINENO: result: $ac_res" >&5
7643echo "${ECHO_T}$ac_res" >&6; }
7644
7645fi
7646if test `eval echo '${'$as_ac_Header'}'` = yes; then
7647 cat >>confdefs.h <<_ACEOF
7648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7649_ACEOF
7650
7651fi
7652
7653done
7654
7655
7656# lastlog.h requires sys/time.h to be included first on Solaris
7657
7658for ac_header in lastlog.h
7659do
7660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666 cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */
7672
7673#ifdef HAVE_SYS_TIME_H
7674# include <sys/time.h>
7675#endif
7676
7677
7678#include <$ac_header>
7679_ACEOF
7680rm -f conftest.$ac_objext
7681if { (ac_try="$ac_compile"
7682case "(($ac_try" in
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.$ac_objext; then
7697 eval "$as_ac_Header=yes"
7698else
7699 echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702 eval "$as_ac_Header=no"
7703fi
7704
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706fi
7707ac_res=`eval echo '${'$as_ac_Header'}'`
7708 { echo "$as_me:$LINENO: result: $ac_res" >&5
7709echo "${ECHO_T}$ac_res" >&6; }
7710if test `eval echo '${'$as_ac_Header'}'` = yes; then
7711 cat >>confdefs.h <<_ACEOF
7712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713_ACEOF
7714
7715fi
7716
7717done
7718
7719
7720# sys/ptms.h requires sys/stream.h to be included first on Solaris
7721
7722for ac_header in sys/ptms.h
7723do
7724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736
7737#ifdef HAVE_SYS_STREAM_H
7738# include <sys/stream.h>
7739#endif
7740
7741
7742#include <$ac_header>
7743_ACEOF
7744rm -f conftest.$ac_objext
7745if { (ac_try="$ac_compile"
7746case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
7750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_compile") 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest.$ac_objext; then
7761 eval "$as_ac_Header=yes"
7762else
7763 echo "$as_me: failed program was:" >&5
7764sed 's/^/| /' conftest.$ac_ext >&5
7765
7766 eval "$as_ac_Header=no"
7767fi
7768
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771ac_res=`eval echo '${'$as_ac_Header'}'`
7772 { echo "$as_me:$LINENO: result: $ac_res" >&5
7773echo "${ECHO_T}$ac_res" >&6; }
7774if test `eval echo '${'$as_ac_Header'}'` = yes; then
7775 cat >>confdefs.h <<_ACEOF
7776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7777_ACEOF
7778
7779fi
7780
7781done
7782
7783
7784# login_cap.h requires sys/types.h on NetBSD
7785
7786for ac_header in login_cap.h
7787do
7788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800
7801#include <sys/types.h>
7802
7803
7804#include <$ac_header>
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (ac_try="$ac_compile"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 eval "$as_ac_Header=yes"
7824else
7825 echo "$as_me: failed program was:" >&5
7826sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 eval "$as_ac_Header=no"
7829fi
7830
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833ac_res=`eval echo '${'$as_ac_Header'}'`
7834 { echo "$as_me:$LINENO: result: $ac_res" >&5
7835echo "${ECHO_T}$ac_res" >&6; }
7836if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839_ACEOF
7840
7841fi
7842
7843done
7844
7845
7846# older BSDs need sys/param.h before sys/mount.h
7847
7848for ac_header in sys/mount.h
7849do
7850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h. */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h. */
7862
7863#include <sys/param.h>
7864
7865
7866#include <$ac_header>
7867_ACEOF
7868rm -f conftest.$ac_objext
7869if { (ac_try="$ac_compile"
7870case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.$ac_objext; then
7885 eval "$as_ac_Header=yes"
7886else
7887 echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 eval "$as_ac_Header=no"
7891fi
7892
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894fi
7895ac_res=`eval echo '${'$as_ac_Header'}'`
7896 { echo "$as_me:$LINENO: result: $ac_res" >&5
7897echo "${ECHO_T}$ac_res" >&6; }
7898if test `eval echo '${'$as_ac_Header'}'` = yes; then
7899 cat >>confdefs.h <<_ACEOF
7900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901_ACEOF
7902
7903fi
7904
7905done
7906
7907
7908# Android requires sys/socket.h to be included before sys/un.h
7909
7910for ac_header in sys/un.h
7911do
7912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7913{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918 cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924
7925#include <sys/types.h>
7926#include <sys/socket.h>
7927
7928
7929#include <$ac_header>
7930_ACEOF
7931rm -f conftest.$ac_objext
7932if { (ac_try="$ac_compile"
7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 eval "$as_ac_Header=yes"
7949else
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 eval "$as_ac_Header=no"
7954fi
7955
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958ac_res=`eval echo '${'$as_ac_Header'}'`
7959 { echo "$as_me:$LINENO: result: $ac_res" >&5
7960echo "${ECHO_T}$ac_res" >&6; }
7961if test `eval echo '${'$as_ac_Header'}'` = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7964_ACEOF
7965
7966fi
7967
7968done
7969
7970
7971# Messages for features tested for in target-specific section
7972SIA_MSG="no"
7973SPC_MSG="no"
7974SP_MSG="no"
7975
7976# Check for some target-specific stuff
7977case "$host" in
7978*-*-aix*)
7979 # Some versions of VAC won't allow macro redefinitions at
7980 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
7981 # particularly with older versions of vac or xlc.
7982 # It also throws errors about null macro argments, but these are
7983 # not fatal.
7984 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
7985echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
7986 cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
7992
7993#define testmacro foo
7994#define testmacro bar
7995int
7996main ()
7997{
7998 exit(0);
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext
8004if { (ac_try="$ac_compile"
8005case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008esac
8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 { echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6; }
8022else
8023 echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 { echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6; }
8028 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
8029 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
8030 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8031 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
8032
8033
8034fi
8035
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037
8038 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
8039echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
8040 if (test -z "$blibpath"); then
8041 blibpath="/usr/lib:/lib"
8042 fi
8043 saved_LDFLAGS="$LDFLAGS"
8044 if test "$GCC" = "yes"; then
8045 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
8046 else
8047 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
8048 fi
8049 for tryflags in $flags ;do
8050 if (test -z "$blibflags"); then
8051 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
8052 cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h. */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h. */
8058
8059int
8060main ()
8061{
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
8068if { (ac_try="$ac_link"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_link") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest$ac_exeext &&
8084 $as_test_x conftest$ac_exeext; then
8085 blibflags=$tryflags
8086else
8087 echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090
8091fi
8092
8093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8094 conftest$ac_exeext conftest.$ac_ext
8095 fi
8096 done
8097 if (test -z "$blibflags"); then
8098 { echo "$as_me:$LINENO: result: not found" >&5
8099echo "${ECHO_T}not found" >&6; }
8100 { { echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
8101echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
8102 { (exit 1); exit 1; }; }
8103 else
8104 { echo "$as_me:$LINENO: result: $blibflags" >&5
8105echo "${ECHO_T}$blibflags" >&6; }
8106 fi
8107 LDFLAGS="$saved_LDFLAGS"
8108 { echo "$as_me:$LINENO: checking for authenticate" >&5
8109echo $ECHO_N "checking for authenticate... $ECHO_C" >&6; }
8110if test "${ac_cv_func_authenticate+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112else
8113 cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
8120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8121#define authenticate innocuous_authenticate
8122
8123/* System header to define __stub macros and hopefully few prototypes,
8124 which can conflict with char authenticate (); below.
8125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8126 <limits.h> exists even on freestanding compilers. */
8127
8128#ifdef __STDC__
8129# include <limits.h>
8130#else
8131# include <assert.h>
8132#endif
8133
8134#undef authenticate
8135
8136/* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
8139#ifdef __cplusplus
8140extern "C"
8141#endif
8142char authenticate ();
8143/* The GNU C library defines this for functions which it implements
8144 to always fail with ENOSYS. Some functions are actually named
8145 something starting with __ and the normal name is an alias. */
8146#if defined __stub_authenticate || defined __stub___authenticate
8147choke me
8148#endif
8149
8150int
8151main ()
8152{
8153return authenticate ();
8154 ;
8155 return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext conftest$ac_exeext
8159if { (ac_try="$ac_link"
8160case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_link") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest$ac_exeext &&
8175 $as_test_x conftest$ac_exeext; then
8176 ac_cv_func_authenticate=yes
8177else
8178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_cv_func_authenticate=no
8182fi
8183
8184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8185 conftest$ac_exeext conftest.$ac_ext
8186fi
8187{ echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
8188echo "${ECHO_T}$ac_cv_func_authenticate" >&6; }
8189if test $ac_cv_func_authenticate = yes; then
8190
8191cat >>confdefs.h <<\_ACEOF
8192#define WITH_AIXAUTHENTICATE 1
8193_ACEOF
8194
8195else
8196 { echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
8197echo $ECHO_N "checking for authenticate in -ls... $ECHO_C" >&6; }
8198if test "${ac_cv_lib_s_authenticate+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 ac_check_lib_save_LIBS=$LIBS
8202LIBS="-ls $LIBS"
8203cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */
8205_ACEOF
8206cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */
8209
8210/* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8213#ifdef __cplusplus
8214extern "C"
8215#endif
8216char authenticate ();
8217int
8218main ()
8219{
8220return authenticate ();
8221 ;
8222 return 0;
8223}
8224_ACEOF
8225rm -f conftest.$ac_objext conftest$ac_exeext
8226if { (ac_try="$ac_link"
8227case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_link") 2>conftest.er1
8233 ac_status=$?
8234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest$ac_exeext &&
8242 $as_test_x conftest$ac_exeext; then
8243 ac_cv_lib_s_authenticate=yes
8244else
8245 echo "$as_me: failed program was:" >&5
8246sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 ac_cv_lib_s_authenticate=no
8249fi
8250
8251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8252 conftest$ac_exeext conftest.$ac_ext
8253LIBS=$ac_check_lib_save_LIBS
8254fi
8255{ echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
8256echo "${ECHO_T}$ac_cv_lib_s_authenticate" >&6; }
8257if test $ac_cv_lib_s_authenticate = yes; then
8258 cat >>confdefs.h <<\_ACEOF
8259#define WITH_AIXAUTHENTICATE 1
8260_ACEOF
8261
8262 LIBS="$LIBS -ls"
8263
8264fi
8265
8266
8267fi
8268
8269 { echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
8270echo $ECHO_N "checking whether authenticate is declared... $ECHO_C" >&6; }
8271if test "${ac_cv_have_decl_authenticate+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280#include <usersec.h>
8281
8282int
8283main ()
8284{
8285#ifndef authenticate
8286 (void) authenticate;
8287#endif
8288
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293rm -f conftest.$ac_objext
8294if { (ac_try="$ac_compile"
8295case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_have_decl_authenticate=yes
8311else
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_have_decl_authenticate=no
8316fi
8317
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319fi
8320{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
8321echo "${ECHO_T}$ac_cv_have_decl_authenticate" >&6; }
8322if test $ac_cv_have_decl_authenticate = yes; then
8323
8324cat >>confdefs.h <<_ACEOF
8325#define HAVE_DECL_AUTHENTICATE 1
8326_ACEOF
8327
8328
8329else
8330 cat >>confdefs.h <<_ACEOF
8331#define HAVE_DECL_AUTHENTICATE 0
8332_ACEOF
8333
8334
8335fi
8336{ echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
8337echo $ECHO_N "checking whether loginrestrictions is declared... $ECHO_C" >&6; }
8338if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341 cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
8347#include <usersec.h>
8348
8349int
8350main ()
8351{
8352#ifndef loginrestrictions
8353 (void) loginrestrictions;
8354#endif
8355
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext
8361if { (ac_try="$ac_compile"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_have_decl_loginrestrictions=yes
8378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_have_decl_loginrestrictions=no
8383fi
8384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386fi
8387{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
8388echo "${ECHO_T}$ac_cv_have_decl_loginrestrictions" >&6; }
8389if test $ac_cv_have_decl_loginrestrictions = yes; then
8390
8391cat >>confdefs.h <<_ACEOF
8392#define HAVE_DECL_LOGINRESTRICTIONS 1
8393_ACEOF
8394
8395
8396else
8397 cat >>confdefs.h <<_ACEOF
8398#define HAVE_DECL_LOGINRESTRICTIONS 0
8399_ACEOF
8400
8401
8402fi
8403{ echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
8404echo $ECHO_N "checking whether loginsuccess is declared... $ECHO_C" >&6; }
8405if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
8414#include <usersec.h>
8415
8416int
8417main ()
8418{
8419#ifndef loginsuccess
8420 (void) loginsuccess;
8421#endif
8422
8423 ;
8424 return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (ac_try="$ac_compile"
8429case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_have_decl_loginsuccess=yes
8445else
8446 echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_have_decl_loginsuccess=no
8450fi
8451
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453fi
8454{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
8455echo "${ECHO_T}$ac_cv_have_decl_loginsuccess" >&6; }
8456if test $ac_cv_have_decl_loginsuccess = yes; then
8457
8458cat >>confdefs.h <<_ACEOF
8459#define HAVE_DECL_LOGINSUCCESS 1
8460_ACEOF
8461
8462
8463else
8464 cat >>confdefs.h <<_ACEOF
8465#define HAVE_DECL_LOGINSUCCESS 0
8466_ACEOF
8467
8468
8469fi
8470{ echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
8471echo $ECHO_N "checking whether passwdexpired is declared... $ECHO_C" >&6; }
8472if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474else
8475 cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
8481#include <usersec.h>
8482
8483int
8484main ()
8485{
8486#ifndef passwdexpired
8487 (void) passwdexpired;
8488#endif
8489
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (ac_try="$ac_compile"
8496case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499esac
8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_have_decl_passwdexpired=yes
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_have_decl_passwdexpired=no
8517fi
8518
8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520fi
8521{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
8522echo "${ECHO_T}$ac_cv_have_decl_passwdexpired" >&6; }
8523if test $ac_cv_have_decl_passwdexpired = yes; then
8524
8525cat >>confdefs.h <<_ACEOF
8526#define HAVE_DECL_PASSWDEXPIRED 1
8527_ACEOF
8528
8529
8530else
8531 cat >>confdefs.h <<_ACEOF
8532#define HAVE_DECL_PASSWDEXPIRED 0
8533_ACEOF
8534
8535
8536fi
8537{ echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
8538echo $ECHO_N "checking whether setauthdb is declared... $ECHO_C" >&6; }
8539if test "${ac_cv_have_decl_setauthdb+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542 cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h. */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h. */
8548#include <usersec.h>
8549
8550int
8551main ()
8552{
8553#ifndef setauthdb
8554 (void) setauthdb;
8555#endif
8556
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext
8562if { (ac_try="$ac_compile"
8563case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_have_decl_setauthdb=yes
8579else
8580 echo "$as_me: failed program was:" >&5
8581sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_have_decl_setauthdb=no
8584fi
8585
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
8589echo "${ECHO_T}$ac_cv_have_decl_setauthdb" >&6; }
8590if test $ac_cv_have_decl_setauthdb = yes; then
8591
8592cat >>confdefs.h <<_ACEOF
8593#define HAVE_DECL_SETAUTHDB 1
8594_ACEOF
8595
8596
8597else
8598 cat >>confdefs.h <<_ACEOF
8599#define HAVE_DECL_SETAUTHDB 0
8600_ACEOF
8601
8602
8603fi
8604
8605
8606 { echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
8607echo $ECHO_N "checking whether loginfailed is declared... $ECHO_C" >&6; }
8608if test "${ac_cv_have_decl_loginfailed+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611 cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617#include <usersec.h>
8618
8619
8620int
8621main ()
8622{
8623#ifndef loginfailed
8624 (void) loginfailed;
8625#endif
8626
8627 ;
8628 return 0;
8629}
8630_ACEOF
8631rm -f conftest.$ac_objext
8632if { (ac_try="$ac_compile"
8633case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_have_decl_loginfailed=yes
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_cv_have_decl_loginfailed=no
8654fi
8655
8656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657fi
8658{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
8659echo "${ECHO_T}$ac_cv_have_decl_loginfailed" >&6; }
8660if test $ac_cv_have_decl_loginfailed = yes; then
8661
8662cat >>confdefs.h <<_ACEOF
8663#define HAVE_DECL_LOGINFAILED 1
8664_ACEOF
8665
8666{ echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
8667echo $ECHO_N "checking if loginfailed takes 4 arguments... $ECHO_C" >&6; }
8668 cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h. */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h. */
8674 #include <usersec.h>
8675int
8676main ()
8677{
8678 (void)loginfailed("user","host","tty",0);
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext
8684if { (ac_try="$ac_compile"
8685case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688esac
8689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 { echo "$as_me:$LINENO: result: yes" >&5
8701echo "${ECHO_T}yes" >&6; }
8702
8703cat >>confdefs.h <<\_ACEOF
8704#define AIX_LOGINFAILED_4ARG 1
8705_ACEOF
8706
8707else
8708 echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
8711 { echo "$as_me:$LINENO: result: no" >&5
8712echo "${ECHO_T}no" >&6; }
8713
8714fi
8715
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717else
8718 cat >>confdefs.h <<_ACEOF
8719#define HAVE_DECL_LOGINFAILED 0
8720_ACEOF
8721
8722
8723fi
8724
8725
8726
8727
8728for ac_func in getgrset setauthdb
8729do
8730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8731{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735else
8736 cat >conftest.$ac_ext <<_ACEOF
8737/* confdefs.h. */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h. */
8742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8744#define $ac_func innocuous_$ac_func
8745
8746/* System header to define __stub macros and hopefully few prototypes,
8747 which can conflict with char $ac_func (); below.
8748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8749 <limits.h> exists even on freestanding compilers. */
8750
8751#ifdef __STDC__
8752# include <limits.h>
8753#else
8754# include <assert.h>
8755#endif
8756
8757#undef $ac_func
8758
8759/* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8762#ifdef __cplusplus
8763extern "C"
8764#endif
8765char $ac_func ();
8766/* The GNU C library defines this for functions which it implements
8767 to always fail with ENOSYS. Some functions are actually named
8768 something starting with __ and the normal name is an alias. */
8769#if defined __stub_$ac_func || defined __stub___$ac_func
8770choke me
8771#endif
8772
8773int
8774main ()
8775{
8776return $ac_func ();
8777 ;
8778 return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext conftest$ac_exeext
8782if { (ac_try="$ac_link"
8783case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_link") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_c_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest$ac_exeext &&
8798 $as_test_x conftest$ac_exeext; then
8799 eval "$as_ac_var=yes"
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 eval "$as_ac_var=no"
8805fi
8806
8807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8808 conftest$ac_exeext conftest.$ac_ext
8809fi
8810ac_res=`eval echo '${'$as_ac_var'}'`
8811 { echo "$as_me:$LINENO: result: $ac_res" >&5
8812echo "${ECHO_T}$ac_res" >&6; }
8813if test `eval echo '${'$as_ac_var'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816_ACEOF
8817
8818fi
8819done
8820
8821 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
8822echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
8823if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825else
8826 cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h. */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */
8832 #include <limits.h>
8833 #include <fcntl.h>
8834
8835
8836int
8837main ()
8838{
8839#ifndef F_CLOSEM
8840 (void) F_CLOSEM;
8841#endif
8842
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext
8848if { (ac_try="$ac_compile"
8849case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8855 ac_status=$?
8856 grep -v '^ *+' conftest.er1 >conftest.err
8857 rm -f conftest.er1
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest.$ac_objext; then
8864 ac_cv_have_decl_F_CLOSEM=yes
8865else
8866 echo "$as_me: failed program was:" >&5
8867sed 's/^/| /' conftest.$ac_ext >&5
8868
8869 ac_cv_have_decl_F_CLOSEM=no
8870fi
8871
8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873fi
8874{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
8875echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
8876if test $ac_cv_have_decl_F_CLOSEM = yes; then
8877
8878cat >>confdefs.h <<\_ACEOF
8879#define HAVE_FCNTL_CLOSEM 1
8880_ACEOF
8881
8882fi
8883
8884 check_for_aix_broken_getaddrinfo=1
8885
8886cat >>confdefs.h <<\_ACEOF
8887#define BROKEN_REALPATH 1
8888_ACEOF
8889
8890
8891cat >>confdefs.h <<\_ACEOF
8892#define SETEUID_BREAKS_SETUID 1
8893_ACEOF
8894
8895
8896cat >>confdefs.h <<\_ACEOF
8897#define BROKEN_SETREUID 1
8898_ACEOF
8899
8900
8901cat >>confdefs.h <<\_ACEOF
8902#define BROKEN_SETREGID 1
8903_ACEOF
8904
8905
8906cat >>confdefs.h <<\_ACEOF
8907#define DISABLE_LASTLOG 1
8908_ACEOF
8909
8910
8911cat >>confdefs.h <<\_ACEOF
8912#define LOGIN_NEEDS_UTMPX 1
8913_ACEOF
8914
8915
8916cat >>confdefs.h <<\_ACEOF
8917#define SPT_TYPE SPT_REUSEARGV
8918_ACEOF
8919
8920
8921cat >>confdefs.h <<\_ACEOF
8922#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8923_ACEOF
8924
8925
8926cat >>confdefs.h <<\_ACEOF
8927#define PTY_ZEROREAD 1
8928_ACEOF
8929
8930
8931cat >>confdefs.h <<\_ACEOF
8932#define PLATFORM_SYS_DIR_UID 2
8933_ACEOF
8934
8935 ;;
8936*-*-android*)
8937
8938cat >>confdefs.h <<\_ACEOF
8939#define DISABLE_UTMP 1
8940_ACEOF
8941
8942
8943cat >>confdefs.h <<\_ACEOF
8944#define DISABLE_WTMP 1
8945_ACEOF
8946
8947 ;;
8948*-*-cygwin*)
8949 check_for_libcrypt_later=1
8950 LIBS="$LIBS /usr/lib/textreadmode.o"
8951
8952cat >>confdefs.h <<\_ACEOF
8953#define HAVE_CYGWIN 1
8954_ACEOF
8955
8956
8957cat >>confdefs.h <<\_ACEOF
8958#define USE_PIPES 1
8959_ACEOF
8960
8961
8962cat >>confdefs.h <<\_ACEOF
8963#define DISABLE_SHADOW 1
8964_ACEOF
8965
8966
8967cat >>confdefs.h <<\_ACEOF
8968#define NO_X11_UNIX_SOCKETS 1
8969_ACEOF
8970
8971
8972cat >>confdefs.h <<\_ACEOF
8973#define NO_IPPORT_RESERVED_CONCEPT 1
8974_ACEOF
8975
8976
8977cat >>confdefs.h <<\_ACEOF
8978#define DISABLE_FD_PASSING 1
8979_ACEOF
8980
8981
8982cat >>confdefs.h <<\_ACEOF
8983#define SSH_IOBUFSZ 65535
8984_ACEOF
8985
8986
8987cat >>confdefs.h <<\_ACEOF
8988#define FILESYSTEM_NO_BACKSLASH 1
8989_ACEOF
8990
8991 # Cygwin defines optargs, optargs as declspec(dllimport) for historical
8992 # reasons which cause compile warnings, so we disable those warnings.
8993 {
8994 { echo "$as_me:$LINENO: checking if $CC supports compile flag -Wno-attributes" >&5
8995echo $ECHO_N "checking if $CC supports compile flag -Wno-attributes... $ECHO_C" >&6; }
8996 saved_CFLAGS="$CFLAGS"
8997 CFLAGS="$CFLAGS $WERROR -Wno-attributes"
8998 _define_flag=""
8999 test "x$_define_flag" = "x" && _define_flag="-Wno-attributes"
9000 cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h. */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h. */
9006
9007#include <stdlib.h>
9008#include <stdio.h>
9009int main(int argc, char **argv) {
9010 /* Some math to catch -ftrapv problems in the toolchain */
9011 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
9012 float l = i * 2.1;
9013 double m = l / 0.5;
9014 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
9015 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
9016 exit(0);
9017}
9018
9019_ACEOF
9020rm -f conftest.$ac_objext
9021if { (ac_try="$ac_compile"
9022case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025esac
9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_compile") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_c_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest.$ac_objext; then
9037
9038if `grep -i "unrecognized option" conftest.err >/dev/null`
9039then
9040 { echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6; }
9042 CFLAGS="$saved_CFLAGS"
9043else
9044 { echo "$as_me:$LINENO: result: yes" >&5
9045echo "${ECHO_T}yes" >&6; }
9046 CFLAGS="$saved_CFLAGS $_define_flag"
9047fi
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 { echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6; }
9054 CFLAGS="$saved_CFLAGS"
9055
9056fi
9057
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059}
9060 ;;
9061*-*-dgux*)
9062
9063cat >>confdefs.h <<\_ACEOF
9064#define IP_TOS_IS_BROKEN 1
9065_ACEOF
9066
9067 cat >>confdefs.h <<\_ACEOF
9068#define SETEUID_BREAKS_SETUID 1
9069_ACEOF
9070
9071 cat >>confdefs.h <<\_ACEOF
9072#define BROKEN_SETREUID 1
9073_ACEOF
9074
9075 cat >>confdefs.h <<\_ACEOF
9076#define BROKEN_SETREGID 1
9077_ACEOF
9078
9079 ;;
9080*-*-darwin*)
9081 use_pie=auto
9082 { echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
9083echo $ECHO_N "checking if we have working getaddrinfo... $ECHO_C" >&6; }
9084 if test "$cross_compiling" = yes; then
9085 { echo "$as_me:$LINENO: result: assume it is working" >&5
9086echo "${ECHO_T}assume it is working" >&6; }
9087else
9088 cat >conftest.$ac_ext <<_ACEOF
9089/* confdefs.h. */
9090_ACEOF
9091cat confdefs.h >>conftest.$ac_ext
9092cat >>conftest.$ac_ext <<_ACEOF
9093/* end confdefs.h. */
9094 #include <mach-o/dyld.h>
9095main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
9096 exit(0);
9097 else
9098 exit(1);
9099}
9100
9101_ACEOF
9102rm -f conftest$ac_exeext
9103if { (ac_try="$ac_link"
9104case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9107esac
9108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_link") 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9113 { (case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_try") 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 { echo "$as_me:$LINENO: result: working" >&5
9123echo "${ECHO_T}working" >&6; }
9124else
9125 echo "$as_me: program exited with status $ac_status" >&5
9126echo "$as_me: failed program was:" >&5
9127sed 's/^/| /' conftest.$ac_ext >&5
9128
9129( exit $ac_status )
9130{ echo "$as_me:$LINENO: result: buggy" >&5
9131echo "${ECHO_T}buggy" >&6; }
9132
9133cat >>confdefs.h <<\_ACEOF
9134#define BROKEN_GETADDRINFO 1
9135_ACEOF
9136
9137
9138fi
9139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9140fi
9141
9142
9143 cat >>confdefs.h <<\_ACEOF
9144#define SETEUID_BREAKS_SETUID 1
9145_ACEOF
9146
9147 cat >>confdefs.h <<\_ACEOF
9148#define BROKEN_SETREUID 1
9149_ACEOF
9150
9151 cat >>confdefs.h <<\_ACEOF
9152#define BROKEN_SETREGID 1
9153_ACEOF
9154
9155
9156cat >>confdefs.h <<\_ACEOF
9157#define BROKEN_GLOB 1
9158_ACEOF
9159
9160
9161cat >>confdefs.h <<_ACEOF
9162#define BIND_8_COMPAT 1
9163_ACEOF
9164
9165
9166cat >>confdefs.h <<\_ACEOF
9167#define SSH_TUN_FREEBSD 1
9168_ACEOF
9169
9170
9171cat >>confdefs.h <<\_ACEOF
9172#define SSH_TUN_COMPAT_AF 1
9173_ACEOF
9174
9175
9176cat >>confdefs.h <<\_ACEOF
9177#define SSH_TUN_PREPEND_AF 1
9178_ACEOF
9179
9180
9181 { echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
9182echo $ECHO_N "checking whether AU_IPv4 is declared... $ECHO_C" >&6; }
9183if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h. */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h. */
9192$ac_includes_default
9193int
9194main ()
9195{
9196#ifndef AU_IPv4
9197 (void) AU_IPv4;
9198#endif
9199
9200 ;
9201 return 0;
9202}
9203_ACEOF
9204rm -f conftest.$ac_objext
9205if { (ac_try="$ac_compile"
9206case "(($ac_try" in
9207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208 *) ac_try_echo=$ac_try;;
9209esac
9210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211 (eval "$ac_compile") 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } && {
9218 test -z "$ac_c_werror_flag" ||
9219 test ! -s conftest.err
9220 } && test -s conftest.$ac_objext; then
9221 ac_cv_have_decl_AU_IPv4=yes
9222else
9223 echo "$as_me: failed program was:" >&5
9224sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 ac_cv_have_decl_AU_IPv4=no
9227fi
9228
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230fi
9231{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
9232echo "${ECHO_T}$ac_cv_have_decl_AU_IPv4" >&6; }
9233if test $ac_cv_have_decl_AU_IPv4 = yes; then
9234 :
9235else
9236
9237cat >>confdefs.h <<\_ACEOF
9238#define AU_IPv4 0
9239_ACEOF
9240
9241 #include <bsm/audit.h>
9242
9243cat >>confdefs.h <<\_ACEOF
9244#define LASTLOG_WRITE_PUTUTXLINE 1
9245_ACEOF
9246
9247
9248fi
9249
9250
9251cat >>confdefs.h <<\_ACEOF
9252#define SPT_TYPE SPT_REUSEARGV
9253_ACEOF
9254
9255
9256for ac_func in sandbox_init
9257do
9258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9263else
9264 cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h. */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h. */
9270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9272#define $ac_func innocuous_$ac_func
9273
9274/* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func (); below.
9276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277 <limits.h> exists even on freestanding compilers. */
9278
9279#ifdef __STDC__
9280# include <limits.h>
9281#else
9282# include <assert.h>
9283#endif
9284
9285#undef $ac_func
9286
9287/* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9290#ifdef __cplusplus
9291extern "C"
9292#endif
9293char $ac_func ();
9294/* The GNU C library defines this for functions which it implements
9295 to always fail with ENOSYS. Some functions are actually named
9296 something starting with __ and the normal name is an alias. */
9297#if defined __stub_$ac_func || defined __stub___$ac_func
9298choke me
9299#endif
9300
9301int
9302main ()
9303{
9304return $ac_func ();
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (ac_try="$ac_link"
9311case "(($ac_try" in
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9314esac
9315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_link") 2>conftest.er1
9317 ac_status=$?
9318 grep -v '^ *+' conftest.er1 >conftest.err
9319 rm -f conftest.er1
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest$ac_exeext &&
9326 $as_test_x conftest$ac_exeext; then
9327 eval "$as_ac_var=yes"
9328else
9329 echo "$as_me: failed program was:" >&5
9330sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 eval "$as_ac_var=no"
9333fi
9334
9335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9336 conftest$ac_exeext conftest.$ac_ext
9337fi
9338ac_res=`eval echo '${'$as_ac_var'}'`
9339 { echo "$as_me:$LINENO: result: $ac_res" >&5
9340echo "${ECHO_T}$ac_res" >&6; }
9341if test `eval echo '${'$as_ac_var'}'` = yes; then
9342 cat >>confdefs.h <<_ACEOF
9343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9344_ACEOF
9345
9346fi
9347done
9348
9349
9350for ac_header in sandbox.h
9351do
9352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358fi
9359ac_res=`eval echo '${'$as_ac_Header'}'`
9360 { echo "$as_me:$LINENO: result: $ac_res" >&5
9361echo "${ECHO_T}$ac_res" >&6; }
9362else
9363 # Is the header compilable?
9364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9366cat >conftest.$ac_ext <<_ACEOF
9367/* confdefs.h. */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h. */
9372$ac_includes_default
9373#include <$ac_header>
9374_ACEOF
9375rm -f conftest.$ac_objext
9376if { (ac_try="$ac_compile"
9377case "(($ac_try" in
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9380esac
9381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_compile") 2>conftest.er1
9383 ac_status=$?
9384 grep -v '^ *+' conftest.er1 >conftest.err
9385 rm -f conftest.er1
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && {
9389 test -z "$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest.$ac_objext; then
9392 ac_header_compiler=yes
9393else
9394 echo "$as_me: failed program was:" >&5
9395sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 ac_header_compiler=no
9398fi
9399
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9402echo "${ECHO_T}$ac_header_compiler" >&6; }
9403
9404# Is the header present?
9405{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9407cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h. */
9413#include <$ac_header>
9414_ACEOF
9415if { (ac_try="$ac_cpp conftest.$ac_ext"
9416case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } >/dev/null && {
9428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 }; then
9431 ac_header_preproc=yes
9432else
9433 echo "$as_me: failed program was:" >&5
9434sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 ac_header_preproc=no
9437fi
9438
9439rm -f conftest.err conftest.$ac_ext
9440{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441echo "${ECHO_T}$ac_header_preproc" >&6; }
9442
9443# So? What about this header?
9444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9445 yes:no: )
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9450 ac_header_preproc=yes
9451 ;;
9452 no:yes:* )
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465 ( cat <<\_ASBOX
9466## ------------------------------------------- ##
9467## Report this to openssh-unix-dev@mindrot.org ##
9468## ------------------------------------------- ##
9469_ASBOX
9470 ) | sed "s/^/$as_me: WARNING: /" >&2
9471 ;;
9472esac
9473{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478 eval "$as_ac_Header=\$ac_header_preproc"
9479fi
9480ac_res=`eval echo '${'$as_ac_Header'}'`
9481 { echo "$as_me:$LINENO: result: $ac_res" >&5
9482echo "${ECHO_T}$ac_res" >&6; }
9483
9484fi
9485if test `eval echo '${'$as_ac_Header'}'` = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9488_ACEOF
9489
9490fi
9491
9492done
9493
9494 ;;
9495*-*-dragonfly*)
9496 SSHDLIBS="$SSHDLIBS -lcrypt"
9497 TEST_MALLOC_OPTIONS="AFGJPRX"
9498 ;;
9499*-*-haiku*)
9500 LIBS="$LIBS -lbsd "
9501
9502{ echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
9503echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
9504if test "${ac_cv_lib_network_socket+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507 ac_check_lib_save_LIBS=$LIBS
9508LIBS="-lnetwork $LIBS"
9509cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515
9516/* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519#ifdef __cplusplus
9520extern "C"
9521#endif
9522char socket ();
9523int
9524main ()
9525{
9526return socket ();
9527 ;
9528 return 0;
9529}
9530_ACEOF
9531rm -f conftest.$ac_objext conftest$ac_exeext
9532if { (ac_try="$ac_link"
9533case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536esac
9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_link") 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && {
9545 test -z "$ac_c_werror_flag" ||
9546 test ! -s conftest.err
9547 } && test -s conftest$ac_exeext &&
9548 $as_test_x conftest$ac_exeext; then
9549 ac_cv_lib_network_socket=yes
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_cv_lib_network_socket=no
9555fi
9556
9557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9558 conftest$ac_exeext conftest.$ac_ext
9559LIBS=$ac_check_lib_save_LIBS
9560fi
9561{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
9562echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
9563if test $ac_cv_lib_network_socket = yes; then
9564 cat >>confdefs.h <<_ACEOF
9565#define HAVE_LIBNETWORK 1
9566_ACEOF
9567
9568 LIBS="-lnetwork $LIBS"
9569
9570fi
9571
9572 cat >>confdefs.h <<\_ACEOF
9573#define HAVE_U_INT64_T 1
9574_ACEOF
9575
9576 MANTYPE=man
9577 ;;
9578*-*-hpux*)
9579 # first we define all of the options common to all HP-UX releases
9580 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
9581 IPADDR_IN_DISPLAY=yes
9582 cat >>confdefs.h <<\_ACEOF
9583#define USE_PIPES 1
9584_ACEOF
9585
9586
9587cat >>confdefs.h <<\_ACEOF
9588#define LOGIN_NO_ENDOPT 1
9589_ACEOF
9590
9591 cat >>confdefs.h <<\_ACEOF
9592#define LOGIN_NEEDS_UTMPX 1
9593_ACEOF
9594
9595
9596cat >>confdefs.h <<\_ACEOF
9597#define LOCKED_PASSWD_STRING "*"
9598_ACEOF
9599
9600 cat >>confdefs.h <<\_ACEOF
9601#define SPT_TYPE SPT_PSTAT
9602_ACEOF
9603
9604
9605cat >>confdefs.h <<\_ACEOF
9606#define PLATFORM_SYS_DIR_UID 2
9607_ACEOF
9608
9609 maildir="/var/mail"
9610 LIBS="$LIBS -lsec"
9611
9612{ echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
9613echo $ECHO_N "checking for t_error in -lxnet... $ECHO_C" >&6; }
9614if test "${ac_cv_lib_xnet_t_error+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617 ac_check_lib_save_LIBS=$LIBS
9618LIBS="-lxnet $LIBS"
9619cat >conftest.$ac_ext <<_ACEOF
9620/* confdefs.h. */
9621_ACEOF
9622cat confdefs.h >>conftest.$ac_ext
9623cat >>conftest.$ac_ext <<_ACEOF
9624/* end confdefs.h. */
9625
9626/* Override any GCC internal prototype to avoid an error.
9627 Use char because int might match the return type of a GCC
9628 builtin and then its argument prototype would still apply. */
9629#ifdef __cplusplus
9630extern "C"
9631#endif
9632char t_error ();
9633int
9634main ()
9635{
9636return t_error ();
9637 ;
9638 return 0;
9639}
9640_ACEOF
9641rm -f conftest.$ac_objext conftest$ac_exeext
9642if { (ac_try="$ac_link"
9643case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9646esac
9647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } && {
9655 test -z "$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 } && test -s conftest$ac_exeext &&
9658 $as_test_x conftest$ac_exeext; then
9659 ac_cv_lib_xnet_t_error=yes
9660else
9661 echo "$as_me: failed program was:" >&5
9662sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_cv_lib_xnet_t_error=no
9665fi
9666
9667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9668 conftest$ac_exeext conftest.$ac_ext
9669LIBS=$ac_check_lib_save_LIBS
9670fi
9671{ echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
9672echo "${ECHO_T}$ac_cv_lib_xnet_t_error" >&6; }
9673if test $ac_cv_lib_xnet_t_error = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675#define HAVE_LIBXNET 1
9676_ACEOF
9677
9678 LIBS="-lxnet $LIBS"
9679
9680else
9681 { { echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
9682echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
9683 { (exit 1); exit 1; }; }
9684fi
9685
9686
9687 # next, we define all of the options specific to major releases
9688 case "$host" in
9689 *-*-hpux10*)
9690 if test -z "$GCC"; then
9691 CFLAGS="$CFLAGS -Ae"
9692 fi
9693 ;;
9694 *-*-hpux11*)
9695
9696cat >>confdefs.h <<\_ACEOF
9697#define PAM_SUN_CODEBASE 1
9698_ACEOF
9699
9700
9701cat >>confdefs.h <<\_ACEOF
9702#define DISABLE_UTMP 1
9703_ACEOF
9704
9705
9706cat >>confdefs.h <<\_ACEOF
9707#define USE_BTMP 1
9708_ACEOF
9709
9710 check_for_hpux_broken_getaddrinfo=1
9711 check_for_conflicting_getspnam=1
9712 ;;
9713 esac
9714
9715 # lastly, we define options specific to minor releases
9716 case "$host" in
9717 *-*-hpux10.26)
9718
9719cat >>confdefs.h <<\_ACEOF
9720#define HAVE_SECUREWARE 1
9721_ACEOF
9722
9723 disable_ptmx_check=yes
9724 LIBS="$LIBS -lsecpw"
9725 ;;
9726 esac
9727 ;;
9728*-*-irix5*)
9729 PATH="$PATH:/usr/etc"
9730
9731cat >>confdefs.h <<\_ACEOF
9732#define BROKEN_INET_NTOA 1
9733_ACEOF
9734
9735 cat >>confdefs.h <<\_ACEOF
9736#define SETEUID_BREAKS_SETUID 1
9737_ACEOF
9738
9739 cat >>confdefs.h <<\_ACEOF
9740#define BROKEN_SETREUID 1
9741_ACEOF
9742
9743 cat >>confdefs.h <<\_ACEOF
9744#define BROKEN_SETREGID 1
9745_ACEOF
9746
9747
9748cat >>confdefs.h <<\_ACEOF
9749#define WITH_ABBREV_NO_TTY 1
9750_ACEOF
9751
9752 cat >>confdefs.h <<\_ACEOF
9753#define LOCKED_PASSWD_STRING "*LK*"
9754_ACEOF
9755
9756 ;;
9757*-*-irix6*)
9758 PATH="$PATH:/usr/etc"
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define WITH_IRIX_ARRAY 1
9762_ACEOF
9763
9764
9765cat >>confdefs.h <<\_ACEOF
9766#define WITH_IRIX_PROJECT 1
9767_ACEOF
9768
9769
9770cat >>confdefs.h <<\_ACEOF
9771#define WITH_IRIX_AUDIT 1
9772_ACEOF
9773
9774 { echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
9775echo $ECHO_N "checking for jlimit_startjob... $ECHO_C" >&6; }
9776if test "${ac_cv_func_jlimit_startjob+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778else
9779 cat >conftest.$ac_ext <<_ACEOF
9780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
9786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9787#define jlimit_startjob innocuous_jlimit_startjob
9788
9789/* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char jlimit_startjob (); below.
9791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792 <limits.h> exists even on freestanding compilers. */
9793
9794#ifdef __STDC__
9795# include <limits.h>
9796#else
9797# include <assert.h>
9798#endif
9799
9800#undef jlimit_startjob
9801
9802/* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808char jlimit_startjob ();
9809/* The GNU C library defines this for functions which it implements
9810 to always fail with ENOSYS. Some functions are actually named
9811 something starting with __ and the normal name is an alias. */
9812#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
9813choke me
9814#endif
9815
9816int
9817main ()
9818{
9819return jlimit_startjob ();
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext conftest$ac_exeext
9825if { (ac_try="$ac_link"
9826case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
9830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_link") 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest$ac_exeext &&
9841 $as_test_x conftest$ac_exeext; then
9842 ac_cv_func_jlimit_startjob=yes
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_cv_func_jlimit_startjob=no
9848fi
9849
9850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9851 conftest$ac_exeext conftest.$ac_ext
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
9854echo "${ECHO_T}$ac_cv_func_jlimit_startjob" >&6; }
9855if test $ac_cv_func_jlimit_startjob = yes; then
9856
9857cat >>confdefs.h <<\_ACEOF
9858#define WITH_IRIX_JOBS 1
9859_ACEOF
9860
9861fi
9862
9863 cat >>confdefs.h <<\_ACEOF
9864#define BROKEN_INET_NTOA 1
9865_ACEOF
9866
9867 cat >>confdefs.h <<\_ACEOF
9868#define SETEUID_BREAKS_SETUID 1
9869_ACEOF
9870
9871 cat >>confdefs.h <<\_ACEOF
9872#define BROKEN_SETREUID 1
9873_ACEOF
9874
9875 cat >>confdefs.h <<\_ACEOF
9876#define BROKEN_SETREGID 1
9877_ACEOF
9878
9879
9880cat >>confdefs.h <<\_ACEOF
9881#define BROKEN_UPDWTMPX 1
9882_ACEOF
9883
9884 cat >>confdefs.h <<\_ACEOF
9885#define WITH_ABBREV_NO_TTY 1
9886_ACEOF
9887
9888 cat >>confdefs.h <<\_ACEOF
9889#define LOCKED_PASSWD_STRING "*LK*"
9890_ACEOF
9891
9892 ;;
9893*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9894 check_for_libcrypt_later=1
9895 cat >>confdefs.h <<\_ACEOF
9896#define PAM_TTY_KLUDGE 1
9897_ACEOF
9898
9899 cat >>confdefs.h <<\_ACEOF
9900#define LOCKED_PASSWD_PREFIX "!"
9901_ACEOF
9902
9903 cat >>confdefs.h <<\_ACEOF
9904#define SPT_TYPE SPT_REUSEARGV
9905_ACEOF
9906
9907
9908cat >>confdefs.h <<\_ACEOF
9909#define _PATH_BTMP "/var/log/btmp"
9910_ACEOF
9911
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define USE_BTMP 1
9915_ACEOF
9916
9917 ;;
9918*-*-linux*)
9919 no_dev_ptmx=1
9920 use_pie=auto
9921 check_for_libcrypt_later=1
9922 check_for_openpty_ctty_bug=1
9923
9924cat >>confdefs.h <<\_ACEOF
9925#define PAM_TTY_KLUDGE 1
9926_ACEOF
9927
9928
9929cat >>confdefs.h <<\_ACEOF
9930#define LOCKED_PASSWD_PREFIX "!"
9931_ACEOF
9932
9933 cat >>confdefs.h <<\_ACEOF
9934#define SPT_TYPE SPT_REUSEARGV
9935_ACEOF
9936
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define LINK_OPNOTSUPP_ERRNO EPERM
9940_ACEOF
9941
9942
9943cat >>confdefs.h <<\_ACEOF
9944#define _PATH_BTMP "/var/log/btmp"
9945_ACEOF
9946
9947 cat >>confdefs.h <<\_ACEOF
9948#define USE_BTMP 1
9949_ACEOF
9950
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define LINUX_OOM_ADJUST 1
9954_ACEOF
9955
9956 inet6_default_4in6=yes
9957 case `uname -r` in
9958 1.*|2.0.*)
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define BROKEN_CMSG_TYPE 1
9962_ACEOF
9963
9964 ;;
9965 esac
9966 # tun(4) forwarding compat code
9967
9968for ac_header in linux/if_tun.h
9969do
9970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976fi
9977ac_res=`eval echo '${'$as_ac_Header'}'`
9978 { echo "$as_me:$LINENO: result: $ac_res" >&5
9979echo "${ECHO_T}$ac_res" >&6; }
9980else
9981 # Is the header compilable?
9982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9984cat >conftest.$ac_ext <<_ACEOF
9985/* confdefs.h. */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h. */
9990$ac_includes_default
9991#include <$ac_header>
9992_ACEOF
9993rm -f conftest.$ac_objext
9994if { (ac_try="$ac_compile"
9995case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998esac
9999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_compile") 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest.$ac_objext; then
10010 ac_header_compiler=yes
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015 ac_header_compiler=no
10016fi
10017
10018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020echo "${ECHO_T}$ac_header_compiler" >&6; }
10021
10022# Is the header present?
10023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10025cat >conftest.$ac_ext <<_ACEOF
10026/* confdefs.h. */
10027_ACEOF
10028cat confdefs.h >>conftest.$ac_ext
10029cat >>conftest.$ac_ext <<_ACEOF
10030/* end confdefs.h. */
10031#include <$ac_header>
10032_ACEOF
10033if { (ac_try="$ac_cpp conftest.$ac_ext"
10034case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10040 ac_status=$?
10041 grep -v '^ *+' conftest.er1 >conftest.err
10042 rm -f conftest.er1
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } >/dev/null && {
10046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10047 test ! -s conftest.err
10048 }; then
10049 ac_header_preproc=yes
10050else
10051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_header_preproc=no
10055fi
10056
10057rm -f conftest.err conftest.$ac_ext
10058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10059echo "${ECHO_T}$ac_header_preproc" >&6; }
10060
10061# So? What about this header?
10062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10063 yes:no: )
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10068 ac_header_preproc=yes
10069 ;;
10070 no:yes:* )
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10083 ( cat <<\_ASBOX
10084## ------------------------------------------- ##
10085## Report this to openssh-unix-dev@mindrot.org ##
10086## ------------------------------------------- ##
10087_ASBOX
10088 ) | sed "s/^/$as_me: WARNING: /" >&2
10089 ;;
10090esac
10091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096 eval "$as_ac_Header=\$ac_header_preproc"
10097fi
10098ac_res=`eval echo '${'$as_ac_Header'}'`
10099 { echo "$as_me:$LINENO: result: $ac_res" >&5
10100echo "${ECHO_T}$ac_res" >&6; }
10101
10102fi
10103if test `eval echo '${'$as_ac_Header'}'` = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106_ACEOF
10107
10108fi
10109
10110done
10111
10112 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
10113
10114cat >>confdefs.h <<\_ACEOF
10115#define SSH_TUN_LINUX 1
10116_ACEOF
10117
10118
10119cat >>confdefs.h <<\_ACEOF
10120#define SSH_TUN_COMPAT_AF 1
10121_ACEOF
10122
10123
10124cat >>confdefs.h <<\_ACEOF
10125#define SSH_TUN_PREPEND_AF 1
10126_ACEOF
10127
10128 fi
10129
10130
10131
10132for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
10133do
10134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10139else
10140 cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h. */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h. */
10146#include <linux/types.h>
10147
10148#include <$ac_header>
10149_ACEOF
10150rm -f conftest.$ac_objext
10151if { (ac_try="$ac_compile"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_compile") 2>conftest.er1
10158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && {
10164 test -z "$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10166 } && test -s conftest.$ac_objext; then
10167 eval "$as_ac_Header=yes"
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 eval "$as_ac_Header=no"
10173fi
10174
10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176fi
10177ac_res=`eval echo '${'$as_ac_Header'}'`
10178 { echo "$as_me:$LINENO: result: $ac_res" >&5
10179echo "${ECHO_T}$ac_res" >&6; }
10180if test `eval echo '${'$as_ac_Header'}'` = yes; then
10181 cat >>confdefs.h <<_ACEOF
10182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10183_ACEOF
10184
10185fi
10186
10187done
10188
10189
10190for ac_func in prctl
10191do
10192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197else
10198 cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h. */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h. */
10204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10206#define $ac_func innocuous_$ac_func
10207
10208/* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char $ac_func (); below.
10210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211 <limits.h> exists even on freestanding compilers. */
10212
10213#ifdef __STDC__
10214# include <limits.h>
10215#else
10216# include <assert.h>
10217#endif
10218
10219#undef $ac_func
10220
10221/* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224#ifdef __cplusplus
10225extern "C"
10226#endif
10227char $ac_func ();
10228/* The GNU C library defines this for functions which it implements
10229 to always fail with ENOSYS. Some functions are actually named
10230 something starting with __ and the normal name is an alias. */
10231#if defined __stub_$ac_func || defined __stub___$ac_func
10232choke me
10233#endif
10234
10235int
10236main ()
10237{
10238return $ac_func ();
10239 ;
10240 return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
10244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest$ac_exeext &&
10260 $as_test_x conftest$ac_exeext; then
10261 eval "$as_ac_var=yes"
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 eval "$as_ac_var=no"
10267fi
10268
10269rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10270 conftest$ac_exeext conftest.$ac_ext
10271fi
10272ac_res=`eval echo '${'$as_ac_var'}'`
10273 { echo "$as_me:$LINENO: result: $ac_res" >&5
10274echo "${ECHO_T}$ac_res" >&6; }
10275if test `eval echo '${'$as_ac_var'}'` = yes; then
10276 cat >>confdefs.h <<_ACEOF
10277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278_ACEOF
10279
10280fi
10281done
10282
10283 { echo "$as_me:$LINENO: checking for seccomp architecture" >&5
10284echo $ECHO_N "checking for seccomp architecture... $ECHO_C" >&6; }
10285 seccomp_audit_arch=
10286 case "$host" in
10287 x86_64-*)
10288 seccomp_audit_arch=AUDIT_ARCH_X86_64
10289 ;;
10290 i*86-*)
10291 seccomp_audit_arch=AUDIT_ARCH_I386
10292 ;;
10293 arm*-*)
10294 seccomp_audit_arch=AUDIT_ARCH_ARM
10295 ;;
10296 aarch64*-*)
10297 seccomp_audit_arch=AUDIT_ARCH_AARCH64
10298 ;;
10299 esac
10300 if test "x$seccomp_audit_arch" != "x" ; then
10301 { echo "$as_me:$LINENO: result: \"$seccomp_audit_arch\"" >&5
10302echo "${ECHO_T}\"$seccomp_audit_arch\"" >&6; }
10303
10304cat >>confdefs.h <<_ACEOF
10305#define SECCOMP_AUDIT_ARCH $seccomp_audit_arch
10306_ACEOF
10307
10308 else
10309 { echo "$as_me:$LINENO: result: architecture not supported" >&5
10310echo "${ECHO_T}architecture not supported" >&6; }
10311 fi
10312 ;;
10313mips-sony-bsd|mips-sony-newsos4)
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define NEED_SETPGRP 1
10317_ACEOF
10318
10319 SONY=1
10320 ;;
10321*-*-netbsd*)
10322 check_for_libcrypt_before=1
10323 if test "x$withval" != "xno" ; then
10324 need_dash_r=1
10325 fi
10326
10327cat >>confdefs.h <<\_ACEOF
10328#define SSH_TUN_FREEBSD 1
10329_ACEOF
10330
10331 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10332 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10333echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10334if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336fi
10337{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10338echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10339else
10340 # Is the header compilable?
10341{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10342echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10343cat >conftest.$ac_ext <<_ACEOF
10344/* confdefs.h. */
10345_ACEOF
10346cat confdefs.h >>conftest.$ac_ext
10347cat >>conftest.$ac_ext <<_ACEOF
10348/* end confdefs.h. */
10349$ac_includes_default
10350#include <net/if_tap.h>
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (ac_try="$ac_compile"
10354case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_compile") 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest.$ac_objext; then
10369 ac_header_compiler=yes
10370else
10371 echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374 ac_header_compiler=no
10375fi
10376
10377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10379echo "${ECHO_T}$ac_header_compiler" >&6; }
10380
10381# Is the header present?
10382{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10383echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390#include <net/if_tap.h>
10391_ACEOF
10392if { (ac_try="$ac_cpp conftest.$ac_ext"
10393case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null && {
10405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 }; then
10408 ac_header_preproc=yes
10409else
10410 echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ac_header_preproc=no
10414fi
10415
10416rm -f conftest.err conftest.$ac_ext
10417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10418echo "${ECHO_T}$ac_header_preproc" >&6; }
10419
10420# So? What about this header?
10421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10422 yes:no: )
10423 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10424echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10426echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10427 ac_header_preproc=yes
10428 ;;
10429 no:yes:* )
10430 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10431echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10433echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10435echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10437echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10439echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10441echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10442 ( cat <<\_ASBOX
10443## ------------------------------------------- ##
10444## Report this to openssh-unix-dev@mindrot.org ##
10445## ------------------------------------------- ##
10446_ASBOX
10447 ) | sed "s/^/$as_me: WARNING: /" >&2
10448 ;;
10449esac
10450{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10451echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10452if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455 ac_cv_header_net_if_tap_h=$ac_header_preproc
10456fi
10457{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10458echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10459
10460fi
10461if test $ac_cv_header_net_if_tap_h = yes; then
10462 :
10463else
10464
10465cat >>confdefs.h <<\_ACEOF
10466#define SSH_TUN_NO_L2 1
10467_ACEOF
10468
10469fi
10470
10471
10472
10473cat >>confdefs.h <<\_ACEOF
10474#define SSH_TUN_PREPEND_AF 1
10475_ACEOF
10476
10477 TEST_MALLOC_OPTIONS="AJRX"
10478
10479cat >>confdefs.h <<\_ACEOF
10480#define BROKEN_STRNVIS 1
10481_ACEOF
10482
10483
10484cat >>confdefs.h <<\_ACEOF
10485#define BROKEN_READ_COMPARISON 1
10486_ACEOF
10487
10488 ;;
10489*-*-freebsd*)
10490 check_for_libcrypt_later=1
10491
10492cat >>confdefs.h <<\_ACEOF
10493#define LOCKED_PASSWD_PREFIX "*LOCKED*"
10494_ACEOF
10495
10496
10497cat >>confdefs.h <<\_ACEOF
10498#define SSH_TUN_FREEBSD 1
10499_ACEOF
10500
10501 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10502 { echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10503echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10504if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506fi
10507{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10508echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10509else
10510 # Is the header compilable?
10511{ echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
10512echo $ECHO_N "checking net/if_tap.h usability... $ECHO_C" >&6; }
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519$ac_includes_default
10520#include <net/if_tap.h>
10521_ACEOF
10522rm -f conftest.$ac_objext
10523if { (ac_try="$ac_compile"
10524case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10539 ac_header_compiler=yes
10540else
10541 echo "$as_me: failed program was:" >&5
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544 ac_header_compiler=no
10545fi
10546
10547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10549echo "${ECHO_T}$ac_header_compiler" >&6; }
10550
10551# Is the header present?
10552{ echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
10553echo $ECHO_N "checking net/if_tap.h presence... $ECHO_C" >&6; }
10554cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h. */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h. */
10560#include <net/if_tap.h>
10561_ACEOF
10562if { (ac_try="$ac_cpp conftest.$ac_ext"
10563case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566esac
10567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } >/dev/null && {
10575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 }; then
10578 ac_header_preproc=yes
10579else
10580 echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
10582
10583 ac_header_preproc=no
10584fi
10585
10586rm -f conftest.err conftest.$ac_ext
10587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10588echo "${ECHO_T}$ac_header_preproc" >&6; }
10589
10590# So? What about this header?
10591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10592 yes:no: )
10593 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
10594echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10595 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
10596echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
10597 ac_header_preproc=yes
10598 ;;
10599 no:yes:* )
10600 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
10601echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
10603echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
10605echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
10607echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
10609echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
10611echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
10612 ( cat <<\_ASBOX
10613## ------------------------------------------- ##
10614## Report this to openssh-unix-dev@mindrot.org ##
10615## ------------------------------------------- ##
10616_ASBOX
10617 ) | sed "s/^/$as_me: WARNING: /" >&2
10618 ;;
10619esac
10620{ echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
10621echo $ECHO_N "checking for net/if_tap.h... $ECHO_C" >&6; }
10622if test "${ac_cv_header_net_if_tap_h+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 ac_cv_header_net_if_tap_h=$ac_header_preproc
10626fi
10627{ echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
10628echo "${ECHO_T}$ac_cv_header_net_if_tap_h" >&6; }
10629
10630fi
10631if test $ac_cv_header_net_if_tap_h = yes; then
10632 :
10633else
10634
10635cat >>confdefs.h <<\_ACEOF
10636#define SSH_TUN_NO_L2 1
10637_ACEOF
10638
10639fi
10640
10641
10642
10643cat >>confdefs.h <<\_ACEOF
10644#define BROKEN_GLOB 1
10645_ACEOF
10646
10647
10648cat >>confdefs.h <<\_ACEOF
10649#define BROKEN_STRNVIS 1
10650_ACEOF
10651
10652 TEST_MALLOC_OPTIONS="AJRX"
10653 # Preauth crypto occasionally uses file descriptors for crypto offload
10654 # and will crash if they cannot be opened.
10655
10656cat >>confdefs.h <<\_ACEOF
10657#define SANDBOX_SKIP_RLIMIT_NOFILE 1
10658_ACEOF
10659
10660 ;;
10661*-*-bsdi*)
10662 cat >>confdefs.h <<\_ACEOF
10663#define SETEUID_BREAKS_SETUID 1
10664_ACEOF
10665
10666 cat >>confdefs.h <<\_ACEOF
10667#define BROKEN_SETREUID 1
10668_ACEOF
10669
10670 cat >>confdefs.h <<\_ACEOF
10671#define BROKEN_SETREGID 1
10672_ACEOF
10673
10674 ;;
10675*-next-*)
10676 conf_lastlog_location="/usr/adm/lastlog"
10677 conf_utmp_location=/etc/utmp
10678 conf_wtmp_location=/usr/adm/wtmp
10679 maildir=/usr/spool/mail
10680
10681cat >>confdefs.h <<\_ACEOF
10682#define HAVE_NEXT 1
10683_ACEOF
10684
10685 cat >>confdefs.h <<\_ACEOF
10686#define BROKEN_REALPATH 1
10687_ACEOF
10688
10689 cat >>confdefs.h <<\_ACEOF
10690#define USE_PIPES 1
10691_ACEOF
10692
10693
10694cat >>confdefs.h <<\_ACEOF
10695#define BROKEN_SAVED_UIDS 1
10696_ACEOF
10697
10698 ;;
10699*-*-openbsd*)
10700 use_pie=auto
10701
10702cat >>confdefs.h <<\_ACEOF
10703#define HAVE_ATTRIBUTE__SENTINEL__ 1
10704_ACEOF
10705
10706
10707cat >>confdefs.h <<\_ACEOF
10708#define HAVE_ATTRIBUTE__BOUNDED__ 1
10709_ACEOF
10710
10711
10712cat >>confdefs.h <<\_ACEOF
10713#define SSH_TUN_OPENBSD 1
10714_ACEOF
10715
10716
10717cat >>confdefs.h <<\_ACEOF
10718#define SYSLOG_R_SAFE_IN_SIGHAND 1
10719_ACEOF
10720
10721 TEST_MALLOC_OPTIONS="AFGJPRX"
10722 ;;
10723*-*-solaris*)
10724 if test "x$withval" != "xno" ; then
10725 need_dash_r=1
10726 fi
10727 cat >>confdefs.h <<\_ACEOF
10728#define PAM_SUN_CODEBASE 1
10729_ACEOF
10730
10731 cat >>confdefs.h <<\_ACEOF
10732#define LOGIN_NEEDS_UTMPX 1
10733_ACEOF
10734
10735
10736cat >>confdefs.h <<\_ACEOF
10737#define LOGIN_NEEDS_TERM 1
10738_ACEOF
10739
10740 cat >>confdefs.h <<\_ACEOF
10741#define PAM_TTY_KLUDGE 1
10742_ACEOF
10743
10744
10745cat >>confdefs.h <<\_ACEOF
10746#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
10747_ACEOF
10748
10749 cat >>confdefs.h <<\_ACEOF
10750#define LOCKED_PASSWD_STRING "*LK*"
10751_ACEOF
10752
10753 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
10754
10755cat >>confdefs.h <<\_ACEOF
10756#define SSHD_ACQUIRES_CTTY 1
10757_ACEOF
10758
10759
10760cat >>confdefs.h <<\_ACEOF
10761#define PASSWD_NEEDS_USERNAME 1
10762_ACEOF
10763
10764
10765cat >>confdefs.h <<\_ACEOF
10766#define BROKEN_TCGETATTR_ICANON 1
10767_ACEOF
10768
10769 external_path_file=/etc/default/login
10770 # hardwire lastlog location (can't detect it on some versions)
10771 conf_lastlog_location="/var/adm/lastlog"
10772 { echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
10773echo $ECHO_N "checking for obsolete utmp and wtmp in solaris2.x... $ECHO_C" >&6; }
10774 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
10775 if test "$sol2ver" -ge 8; then
10776 { echo "$as_me:$LINENO: result: yes" >&5
10777echo "${ECHO_T}yes" >&6; }
10778 cat >>confdefs.h <<\_ACEOF
10779#define DISABLE_UTMP 1
10780_ACEOF
10781
10782
10783cat >>confdefs.h <<\_ACEOF
10784#define DISABLE_WTMP 1
10785_ACEOF
10786
10787 else
10788 { echo "$as_me:$LINENO: result: no" >&5
10789echo "${ECHO_T}no" >&6; }
10790 fi
10791
10792# Check whether --with-solaris-contracts was given.
10793if test "${with_solaris_contracts+set}" = set; then
10794 withval=$with_solaris_contracts;
10795 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
10796echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
10797if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 ac_check_lib_save_LIBS=$LIBS
10801LIBS="-lcontract $LIBS"
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h. */
10808
10809/* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815char ct_tmpl_activate ();
10816int
10817main ()
10818{
10819return ct_tmpl_activate ();
10820 ;
10821 return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext conftest$ac_exeext
10825if { (ac_try="$ac_link"
10826case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10829esac
10830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest$ac_exeext &&
10841 $as_test_x conftest$ac_exeext; then
10842 ac_cv_lib_contract_ct_tmpl_activate=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_lib_contract_ct_tmpl_activate=no
10848fi
10849
10850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10852LIBS=$ac_check_lib_save_LIBS
10853fi
10854{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
10855echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
10856if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
10857
10858cat >>confdefs.h <<\_ACEOF
10859#define USE_SOLARIS_PROCESS_CONTRACTS 1
10860_ACEOF
10861
10862 SSHDLIBS="$SSHDLIBS -lcontract"
10863 SPC_MSG="yes"
10864fi
10865
10866
10867fi
10868
10869
10870# Check whether --with-solaris-projects was given.
10871if test "${with_solaris_projects+set}" = set; then
10872 withval=$with_solaris_projects;
10873 { echo "$as_me:$LINENO: checking for setproject in -lproject" >&5
10874echo $ECHO_N "checking for setproject in -lproject... $ECHO_C" >&6; }
10875if test "${ac_cv_lib_project_setproject+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 ac_check_lib_save_LIBS=$LIBS
10879LIBS="-lproject $LIBS"
10880cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h. */
10886
10887/* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10890#ifdef __cplusplus
10891extern "C"
10892#endif
10893char setproject ();
10894int
10895main ()
10896{
10897return setproject ();
10898 ;
10899 return 0;
10900}
10901_ACEOF
10902rm -f conftest.$ac_objext conftest$ac_exeext
10903if { (ac_try="$ac_link"
10904case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907esac
10908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_link") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext &&
10919 $as_test_x conftest$ac_exeext; then
10920 ac_cv_lib_project_setproject=yes
10921else
10922 echo "$as_me: failed program was:" >&5
10923sed 's/^/| /' conftest.$ac_ext >&5
10924
10925 ac_cv_lib_project_setproject=no
10926fi
10927
10928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929 conftest$ac_exeext conftest.$ac_ext
10930LIBS=$ac_check_lib_save_LIBS
10931fi
10932{ echo "$as_me:$LINENO: result: $ac_cv_lib_project_setproject" >&5
10933echo "${ECHO_T}$ac_cv_lib_project_setproject" >&6; }
10934if test $ac_cv_lib_project_setproject = yes; then
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define USE_SOLARIS_PROJECTS 1
10938_ACEOF
10939
10940 SSHDLIBS="$SSHDLIBS -lproject"
10941 SP_MSG="yes"
10942fi
10943
10944
10945fi
10946
10947 TEST_SHELL=$SHELL # let configure find us a capable shell
10948 ;;
10949*-*-sunos4*)
10950 CPPFLAGS="$CPPFLAGS -DSUNOS4"
10951
10952for ac_func in getpwanam
10953do
10954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960 cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h. */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
10965/* end confdefs.h. */
10966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10968#define $ac_func innocuous_$ac_func
10969
10970/* System header to define __stub macros and hopefully few prototypes,
10971 which can conflict with char $ac_func (); below.
10972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10973 <limits.h> exists even on freestanding compilers. */
10974
10975#ifdef __STDC__
10976# include <limits.h>
10977#else
10978# include <assert.h>
10979#endif
10980
10981#undef $ac_func
10982
10983/* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
10986#ifdef __cplusplus
10987extern "C"
10988#endif
10989char $ac_func ();
10990/* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993#if defined __stub_$ac_func || defined __stub___$ac_func
10994choke me
10995#endif
10996
10997int
10998main ()
10999{
11000return $ac_func ();
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && {
11019 test -z "$ac_c_werror_flag" ||
11020 test ! -s conftest.err
11021 } && test -s conftest$ac_exeext &&
11022 $as_test_x conftest$ac_exeext; then
11023 eval "$as_ac_var=yes"
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028 eval "$as_ac_var=no"
11029fi
11030
11031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11033fi
11034ac_res=`eval echo '${'$as_ac_var'}'`
11035 { echo "$as_me:$LINENO: result: $ac_res" >&5
11036echo "${ECHO_T}$ac_res" >&6; }
11037if test `eval echo '${'$as_ac_var'}'` = yes; then
11038 cat >>confdefs.h <<_ACEOF
11039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040_ACEOF
11041
11042fi
11043done
11044
11045 cat >>confdefs.h <<\_ACEOF
11046#define PAM_SUN_CODEBASE 1
11047_ACEOF
11048
11049 conf_utmp_location=/etc/utmp
11050 conf_wtmp_location=/var/adm/wtmp
11051 conf_lastlog_location=/var/adm/lastlog
11052 cat >>confdefs.h <<\_ACEOF
11053#define USE_PIPES 1
11054_ACEOF
11055
11056 ;;
11057*-ncr-sysv*)
11058 LIBS="$LIBS -lc89"
11059 cat >>confdefs.h <<\_ACEOF
11060#define USE_PIPES 1
11061_ACEOF
11062
11063 cat >>confdefs.h <<\_ACEOF
11064#define SSHD_ACQUIRES_CTTY 1
11065_ACEOF
11066
11067 cat >>confdefs.h <<\_ACEOF
11068#define SETEUID_BREAKS_SETUID 1
11069_ACEOF
11070
11071 cat >>confdefs.h <<\_ACEOF
11072#define BROKEN_SETREUID 1
11073_ACEOF
11074
11075 cat >>confdefs.h <<\_ACEOF
11076#define BROKEN_SETREGID 1
11077_ACEOF
11078
11079 ;;
11080*-sni-sysv*)
11081 # /usr/ucblib MUST NOT be searched on ReliantUNIX
11082
11083{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11084echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
11085if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087else
11088 ac_check_lib_save_LIBS=$LIBS
11089LIBS="-ldl $LIBS"
11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char dlsym ();
11104int
11105main ()
11106{
11107return dlsym ();
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest$ac_exeext &&
11129 $as_test_x conftest$ac_exeext; then
11130 ac_cv_lib_dl_dlsym=yes
11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135 ac_cv_lib_dl_dlsym=no
11136fi
11137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139 conftest$ac_exeext conftest.$ac_ext
11140LIBS=$ac_check_lib_save_LIBS
11141fi
11142{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11143echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
11144if test $ac_cv_lib_dl_dlsym = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146#define HAVE_LIBDL 1
11147_ACEOF
11148
11149 LIBS="-ldl $LIBS"
11150
11151fi
11152
11153 # -lresolv needs to be at the end of LIBS or DNS lookups break
11154 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11155echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11156if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159 ac_check_lib_save_LIBS=$LIBS
11160LIBS="-lresolv $LIBS"
11161cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167
11168/* Override any GCC internal prototype to avoid an error.
11169 Use char because int might match the return type of a GCC
11170 builtin and then its argument prototype would still apply. */
11171#ifdef __cplusplus
11172extern "C"
11173#endif
11174char res_query ();
11175int
11176main ()
11177{
11178return res_query ();
11179 ;
11180 return 0;
11181}
11182_ACEOF
11183rm -f conftest.$ac_objext conftest$ac_exeext
11184if { (ac_try="$ac_link"
11185case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11188esac
11189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_link") 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && {
11197 test -z "$ac_c_werror_flag" ||
11198 test ! -s conftest.err
11199 } && test -s conftest$ac_exeext &&
11200 $as_test_x conftest$ac_exeext; then
11201 ac_cv_lib_resolv_res_query=yes
11202else
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 ac_cv_lib_resolv_res_query=no
11207fi
11208
11209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210 conftest$ac_exeext conftest.$ac_ext
11211LIBS=$ac_check_lib_save_LIBS
11212fi
11213{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11214echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
11215if test $ac_cv_lib_resolv_res_query = yes; then
11216 LIBS="$LIBS -lresolv"
11217fi
11218
11219 IPADDR_IN_DISPLAY=yes
11220 cat >>confdefs.h <<\_ACEOF
11221#define USE_PIPES 1
11222_ACEOF
11223
11224 cat >>confdefs.h <<\_ACEOF
11225#define IP_TOS_IS_BROKEN 1
11226_ACEOF
11227
11228 cat >>confdefs.h <<\_ACEOF
11229#define SETEUID_BREAKS_SETUID 1
11230_ACEOF
11231
11232 cat >>confdefs.h <<\_ACEOF
11233#define BROKEN_SETREUID 1
11234_ACEOF
11235
11236 cat >>confdefs.h <<\_ACEOF
11237#define BROKEN_SETREGID 1
11238_ACEOF
11239
11240 cat >>confdefs.h <<\_ACEOF
11241#define SSHD_ACQUIRES_CTTY 1
11242_ACEOF
11243
11244 external_path_file=/etc/default/login
11245 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
11246 # Attention: always take care to bind libsocket and libnsl before libc,
11247 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
11248 ;;
11249# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
11250*-*-sysv4.2*)
11251 cat >>confdefs.h <<\_ACEOF
11252#define USE_PIPES 1
11253_ACEOF
11254
11255 cat >>confdefs.h <<\_ACEOF
11256#define SETEUID_BREAKS_SETUID 1
11257_ACEOF
11258
11259 cat >>confdefs.h <<\_ACEOF
11260#define BROKEN_SETREUID 1
11261_ACEOF
11262
11263 cat >>confdefs.h <<\_ACEOF
11264#define BROKEN_SETREGID 1
11265_ACEOF
11266
11267
11268cat >>confdefs.h <<\_ACEOF
11269#define PASSWD_NEEDS_USERNAME 1
11270_ACEOF
11271
11272 cat >>confdefs.h <<\_ACEOF
11273#define LOCKED_PASSWD_STRING "*LK*"
11274_ACEOF
11275
11276 TEST_SHELL=$SHELL # let configure find us a capable shell
11277 ;;
11278# UnixWare 7.x, OpenUNIX 8
11279*-*-sysv5*)
11280 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
11281
11282cat >>confdefs.h <<\_ACEOF
11283#define UNIXWARE_LONG_PASSWORDS 1
11284_ACEOF
11285
11286 cat >>confdefs.h <<\_ACEOF
11287#define USE_PIPES 1
11288_ACEOF
11289
11290 cat >>confdefs.h <<\_ACEOF
11291#define SETEUID_BREAKS_SETUID 1
11292_ACEOF
11293
11294 cat >>confdefs.h <<\_ACEOF
11295#define BROKEN_GETADDRINFO 1
11296_ACEOF
11297
11298 cat >>confdefs.h <<\_ACEOF
11299#define BROKEN_SETREUID 1
11300_ACEOF
11301
11302 cat >>confdefs.h <<\_ACEOF
11303#define BROKEN_SETREGID 1
11304_ACEOF
11305
11306 cat >>confdefs.h <<\_ACEOF
11307#define PASSWD_NEEDS_USERNAME 1
11308_ACEOF
11309
11310 TEST_SHELL=$SHELL # let configure find us a capable shell
11311 case "$host" in
11312 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
11313 maildir=/var/spool/mail
11314
11315cat >>confdefs.h <<\_ACEOF
11316#define BROKEN_LIBIAF 1
11317_ACEOF
11318
11319 cat >>confdefs.h <<\_ACEOF
11320#define BROKEN_UPDWTMPX 1
11321_ACEOF
11322
11323 { echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
11324echo $ECHO_N "checking for getluid in -lprot... $ECHO_C" >&6; }
11325if test "${ac_cv_lib_prot_getluid+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328 ac_check_lib_save_LIBS=$LIBS
11329LIBS="-lprot $LIBS"
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char getluid ();
11344int
11345main ()
11346{
11347return getluid ();
11348 ;
11349 return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
11353if { (ac_try="$ac_link"
11354case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_link") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest$ac_exeext &&
11369 $as_test_x conftest$ac_exeext; then
11370 ac_cv_lib_prot_getluid=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_cv_lib_prot_getluid=no
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11379 conftest$ac_exeext conftest.$ac_ext
11380LIBS=$ac_check_lib_save_LIBS
11381fi
11382{ echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
11383echo "${ECHO_T}$ac_cv_lib_prot_getluid" >&6; }
11384if test $ac_cv_lib_prot_getluid = yes; then
11385 LIBS="$LIBS -lprot"
11386
11387
11388for ac_func in getluid setluid
11389do
11390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404#define $ac_func innocuous_$ac_func
11405
11406/* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11410
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
11416
11417#undef $ac_func
11418
11419/* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422#ifdef __cplusplus
11423extern "C"
11424#endif
11425char $ac_func ();
11426/* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429#if defined __stub_$ac_func || defined __stub___$ac_func
11430choke me
11431#endif
11432
11433int
11434main ()
11435{
11436return $ac_func ();
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext conftest$ac_exeext
11442if { (ac_try="$ac_link"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11459 eval "$as_ac_var=yes"
11460else
11461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 eval "$as_ac_var=no"
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11469fi
11470ac_res=`eval echo '${'$as_ac_var'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472echo "${ECHO_T}$ac_res" >&6; }
11473if test `eval echo '${'$as_ac_var'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11476_ACEOF
11477
11478fi
11479done
11480
11481 cat >>confdefs.h <<\_ACEOF
11482#define HAVE_SECUREWARE 1
11483_ACEOF
11484
11485 cat >>confdefs.h <<\_ACEOF
11486#define DISABLE_SHADOW 1
11487_ACEOF
11488
11489
11490fi
11491
11492 ;;
11493 *) cat >>confdefs.h <<\_ACEOF
11494#define LOCKED_PASSWD_STRING "*LK*"
11495_ACEOF
11496
11497 check_for_libcrypt_later=1
11498 ;;
11499 esac
11500 ;;
11501*-*-sysv*)
11502 ;;
11503# SCO UNIX and OEM versions of SCO UNIX
11504*-*-sco3.2v4*)
11505 { { echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
11506echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
11507 { (exit 1); exit 1; }; }
11508 ;;
11509# SCO OpenServer 5.x
11510*-*-sco3.2v5*)
11511 if test -z "$GCC"; then
11512 CFLAGS="$CFLAGS -belf"
11513 fi
11514 LIBS="$LIBS -lprot -lx -ltinfo -lm"
11515 no_dev_ptmx=1
11516 cat >>confdefs.h <<\_ACEOF
11517#define USE_PIPES 1
11518_ACEOF
11519
11520 cat >>confdefs.h <<\_ACEOF
11521#define HAVE_SECUREWARE 1
11522_ACEOF
11523
11524 cat >>confdefs.h <<\_ACEOF
11525#define DISABLE_SHADOW 1
11526_ACEOF
11527
11528 cat >>confdefs.h <<\_ACEOF
11529#define DISABLE_FD_PASSING 1
11530_ACEOF
11531
11532 cat >>confdefs.h <<\_ACEOF
11533#define SETEUID_BREAKS_SETUID 1
11534_ACEOF
11535
11536 cat >>confdefs.h <<\_ACEOF
11537#define BROKEN_GETADDRINFO 1
11538_ACEOF
11539
11540 cat >>confdefs.h <<\_ACEOF
11541#define BROKEN_SETREUID 1
11542_ACEOF
11543
11544 cat >>confdefs.h <<\_ACEOF
11545#define BROKEN_SETREGID 1
11546_ACEOF
11547
11548 cat >>confdefs.h <<\_ACEOF
11549#define WITH_ABBREV_NO_TTY 1
11550_ACEOF
11551
11552 cat >>confdefs.h <<\_ACEOF
11553#define BROKEN_UPDWTMPX 1
11554_ACEOF
11555
11556 cat >>confdefs.h <<\_ACEOF
11557#define PASSWD_NEEDS_USERNAME 1
11558_ACEOF
11559
11560
11561
11562for ac_func in getluid setluid
11563do
11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578#define $ac_func innocuous_$ac_func
11579
11580/* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11584
11585#ifdef __STDC__
11586# include <limits.h>
11587#else
11588# include <assert.h>
11589#endif
11590
11591#undef $ac_func
11592
11593/* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11596#ifdef __cplusplus
11597extern "C"
11598#endif
11599char $ac_func ();
11600/* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603#if defined __stub_$ac_func || defined __stub___$ac_func
11604choke me
11605#endif
11606
11607int
11608main ()
11609{
11610return $ac_func ();
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (ac_try="$ac_link"
11617case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11620esac
11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest$ac_exeext &&
11632 $as_test_x conftest$ac_exeext; then
11633 eval "$as_ac_var=yes"
11634else
11635 echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 eval "$as_ac_var=no"
11639fi
11640
11641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11642 conftest$ac_exeext conftest.$ac_ext
11643fi
11644ac_res=`eval echo '${'$as_ac_var'}'`
11645 { echo "$as_me:$LINENO: result: $ac_res" >&5
11646echo "${ECHO_T}$ac_res" >&6; }
11647if test `eval echo '${'$as_ac_var'}'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650_ACEOF
11651
11652fi
11653done
11654
11655 MANTYPE=man
11656 TEST_SHELL=$SHELL # let configure find us a capable shell
11657 SKIP_DISABLE_LASTLOG_DEFINE=yes
11658 ;;
11659*-*-unicosmk*)
11660
11661cat >>confdefs.h <<\_ACEOF
11662#define NO_SSH_LASTLOG 1
11663_ACEOF
11664
11665 cat >>confdefs.h <<\_ACEOF
11666#define SETEUID_BREAKS_SETUID 1
11667_ACEOF
11668
11669 cat >>confdefs.h <<\_ACEOF
11670#define BROKEN_SETREUID 1
11671_ACEOF
11672
11673 cat >>confdefs.h <<\_ACEOF
11674#define BROKEN_SETREGID 1
11675_ACEOF
11676
11677 cat >>confdefs.h <<\_ACEOF
11678#define USE_PIPES 1
11679_ACEOF
11680
11681 cat >>confdefs.h <<\_ACEOF
11682#define DISABLE_FD_PASSING 1
11683_ACEOF
11684
11685 LDFLAGS="$LDFLAGS"
11686 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11687 MANTYPE=cat
11688 ;;
11689*-*-unicosmp*)
11690 cat >>confdefs.h <<\_ACEOF
11691#define SETEUID_BREAKS_SETUID 1
11692_ACEOF
11693
11694 cat >>confdefs.h <<\_ACEOF
11695#define BROKEN_SETREUID 1
11696_ACEOF
11697
11698 cat >>confdefs.h <<\_ACEOF
11699#define BROKEN_SETREGID 1
11700_ACEOF
11701
11702 cat >>confdefs.h <<\_ACEOF
11703#define WITH_ABBREV_NO_TTY 1
11704_ACEOF
11705
11706 cat >>confdefs.h <<\_ACEOF
11707#define USE_PIPES 1
11708_ACEOF
11709
11710 cat >>confdefs.h <<\_ACEOF
11711#define DISABLE_FD_PASSING 1
11712_ACEOF
11713
11714 LDFLAGS="$LDFLAGS"
11715 LIBS="$LIBS -lgen -lacid -ldb"
11716 MANTYPE=cat
11717 ;;
11718*-*-unicos*)
11719 cat >>confdefs.h <<\_ACEOF
11720#define SETEUID_BREAKS_SETUID 1
11721_ACEOF
11722
11723 cat >>confdefs.h <<\_ACEOF
11724#define BROKEN_SETREUID 1
11725_ACEOF
11726
11727 cat >>confdefs.h <<\_ACEOF
11728#define BROKEN_SETREGID 1
11729_ACEOF
11730
11731 cat >>confdefs.h <<\_ACEOF
11732#define USE_PIPES 1
11733_ACEOF
11734
11735 cat >>confdefs.h <<\_ACEOF
11736#define DISABLE_FD_PASSING 1
11737_ACEOF
11738
11739 cat >>confdefs.h <<\_ACEOF
11740#define NO_SSH_LASTLOG 1
11741_ACEOF
11742
11743 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
11744 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
11745 MANTYPE=cat
11746 ;;
11747*-dec-osf*)
11748 { echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
11749echo $ECHO_N "checking for Digital Unix SIA... $ECHO_C" >&6; }
11750 no_osfsia=""
11751
11752# Check whether --with-osfsia was given.
11753if test "${with_osfsia+set}" = set; then
11754 withval=$with_osfsia;
11755 if test "x$withval" = "xno" ; then
11756 { echo "$as_me:$LINENO: result: disabled" >&5
11757echo "${ECHO_T}disabled" >&6; }
11758 no_osfsia=1
11759 fi
11760
11761fi
11762
11763 if test -z "$no_osfsia" ; then
11764 if test -f /etc/sia/matrix.conf; then
11765 { echo "$as_me:$LINENO: result: yes" >&5
11766echo "${ECHO_T}yes" >&6; }
11767
11768cat >>confdefs.h <<\_ACEOF
11769#define HAVE_OSF_SIA 1
11770_ACEOF
11771
11772
11773cat >>confdefs.h <<\_ACEOF
11774#define DISABLE_LOGIN 1
11775_ACEOF
11776
11777 cat >>confdefs.h <<\_ACEOF
11778#define DISABLE_FD_PASSING 1
11779_ACEOF
11780
11781 LIBS="$LIBS -lsecurity -ldb -lm -laud"
11782 SIA_MSG="yes"
11783 else
11784 { echo "$as_me:$LINENO: result: no" >&5
11785echo "${ECHO_T}no" >&6; }
11786
11787cat >>confdefs.h <<\_ACEOF
11788#define LOCKED_PASSWD_SUBSTR "Nologin"
11789_ACEOF
11790
11791 fi
11792 fi
11793 cat >>confdefs.h <<\_ACEOF
11794#define BROKEN_GETADDRINFO 1
11795_ACEOF
11796
11797 cat >>confdefs.h <<\_ACEOF
11798#define SETEUID_BREAKS_SETUID 1
11799_ACEOF
11800
11801 cat >>confdefs.h <<\_ACEOF
11802#define BROKEN_SETREUID 1
11803_ACEOF
11804
11805 cat >>confdefs.h <<\_ACEOF
11806#define BROKEN_SETREGID 1
11807_ACEOF
11808
11809
11810cat >>confdefs.h <<\_ACEOF
11811#define BROKEN_READV_COMPARISON 1
11812_ACEOF
11813
11814 ;;
11815
11816*-*-nto-qnx*)
11817 cat >>confdefs.h <<\_ACEOF
11818#define USE_PIPES 1
11819_ACEOF
11820
11821 cat >>confdefs.h <<\_ACEOF
11822#define NO_X11_UNIX_SOCKETS 1
11823_ACEOF
11824
11825 cat >>confdefs.h <<\_ACEOF
11826#define DISABLE_LASTLOG 1
11827_ACEOF
11828
11829 cat >>confdefs.h <<\_ACEOF
11830#define SSHD_ACQUIRES_CTTY 1
11831_ACEOF
11832
11833
11834cat >>confdefs.h <<\_ACEOF
11835#define BROKEN_SHADOW_EXPIRE 1
11836_ACEOF
11837
11838 enable_etc_default_login=no # has incompatible /etc/default/login
11839 case "$host" in
11840 *-*-nto-qnx6*)
11841 cat >>confdefs.h <<\_ACEOF
11842#define DISABLE_FD_PASSING 1
11843_ACEOF
11844
11845 ;;
11846 esac
11847 ;;
11848
11849*-*-ultrix*)
11850
11851cat >>confdefs.h <<\_ACEOF
11852#define BROKEN_GETGROUPS 1
11853_ACEOF
11854
11855
11856cat >>confdefs.h <<\_ACEOF
11857#define BROKEN_MMAP 1
11858_ACEOF
11859
11860 cat >>confdefs.h <<\_ACEOF
11861#define NEED_SETPGRP 1
11862_ACEOF
11863
11864
11865cat >>confdefs.h <<\_ACEOF
11866#define HAVE_SYS_SYSLOG_H 1
11867_ACEOF
11868
11869 ;;
11870
11871*-*-lynxos)
11872 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
11873
11874cat >>confdefs.h <<\_ACEOF
11875#define BROKEN_SETVBUF 1
11876_ACEOF
11877
11878 ;;
11879esac
11880
11881{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
11882echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
11883if test "$cross_compiling" = yes; then
11884 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
11885echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
11886
11887else
11888 cat >conftest.$ac_ext <<_ACEOF
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
11894 #include <stdio.h>
11895int
11896main ()
11897{
11898 exit(0);
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest$ac_exeext
11904if { (ac_try="$ac_link"
11905case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 { echo "$as_me:$LINENO: result: yes" >&5
11924echo "${ECHO_T}yes" >&6; }
11925else
11926 echo "$as_me: program exited with status $ac_status" >&5
11927echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930( exit $ac_status )
11931
11932 { echo "$as_me:$LINENO: result: no" >&5
11933echo "${ECHO_T}no" >&6; }
11934 { { echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
11935echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
11936 { (exit 1); exit 1; }; }
11937
11938fi
11939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11940fi
11941
11942
11943
11944# Checks for libraries.
11945{ echo "$as_me:$LINENO: checking for yp_match" >&5
11946echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
11947if test "${ac_cv_func_yp_match+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
11956/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
11957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11958#define yp_match innocuous_yp_match
11959
11960/* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char yp_match (); below.
11962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11963 <limits.h> exists even on freestanding compilers. */
11964
11965#ifdef __STDC__
11966# include <limits.h>
11967#else
11968# include <assert.h>
11969#endif
11970
11971#undef yp_match
11972
11973/* Override any GCC internal prototype to avoid an error.
11974 Use char because int might match the return type of a GCC
11975 builtin and then its argument prototype would still apply. */
11976#ifdef __cplusplus
11977extern "C"
11978#endif
11979char yp_match ();
11980/* The GNU C library defines this for functions which it implements
11981 to always fail with ENOSYS. Some functions are actually named
11982 something starting with __ and the normal name is an alias. */
11983#if defined __stub_yp_match || defined __stub___yp_match
11984choke me
11985#endif
11986
11987int
11988main ()
11989{
11990return yp_match ();
11991 ;
11992 return 0;
11993}
11994_ACEOF
11995rm -f conftest.$ac_objext conftest$ac_exeext
11996if { (ac_try="$ac_link"
11997case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12000esac
12001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_link") 2>conftest.er1
12003 ac_status=$?
12004 grep -v '^ *+' conftest.er1 >conftest.err
12005 rm -f conftest.er1
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && {
12009 test -z "$ac_c_werror_flag" ||
12010 test ! -s conftest.err
12011 } && test -s conftest$ac_exeext &&
12012 $as_test_x conftest$ac_exeext; then
12013 ac_cv_func_yp_match=yes
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 ac_cv_func_yp_match=no
12019fi
12020
12021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12022 conftest$ac_exeext conftest.$ac_ext
12023fi
12024{ echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
12025echo "${ECHO_T}$ac_cv_func_yp_match" >&6; }
12026if test $ac_cv_func_yp_match = yes; then
12027 :
12028else
12029
12030{ echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
12031echo $ECHO_N "checking for yp_match in -lnsl... $ECHO_C" >&6; }
12032if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 ac_check_lib_save_LIBS=$LIBS
12036LIBS="-lnsl $LIBS"
12037cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043
12044/* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050char yp_match ();
12051int
12052main ()
12053{
12054return yp_match ();
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext conftest$ac_exeext
12060if { (ac_try="$ac_link"
12061case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064esac
12065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12067 ac_status=$?
12068 grep -v '^ *+' conftest.er1 >conftest.err
12069 rm -f conftest.er1
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 ac_cv_lib_nsl_yp_match=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_cv_lib_nsl_yp_match=no
12083fi
12084
12085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12087LIBS=$ac_check_lib_save_LIBS
12088fi
12089{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
12090echo "${ECHO_T}$ac_cv_lib_nsl_yp_match" >&6; }
12091if test $ac_cv_lib_nsl_yp_match = yes; then
12092 cat >>confdefs.h <<_ACEOF
12093#define HAVE_LIBNSL 1
12094_ACEOF
12095
12096 LIBS="-lnsl $LIBS"
12097
12098fi
12099
12100fi
12101
12102{ echo "$as_me:$LINENO: checking for setsockopt" >&5
12103echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; }
12104if test "${ac_cv_func_setsockopt+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106else
12107 cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
12113/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
12114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12115#define setsockopt innocuous_setsockopt
12116
12117/* System header to define __stub macros and hopefully few prototypes,
12118 which can conflict with char setsockopt (); below.
12119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 <limits.h> exists even on freestanding compilers. */
12121
12122#ifdef __STDC__
12123# include <limits.h>
12124#else
12125# include <assert.h>
12126#endif
12127
12128#undef setsockopt
12129
12130/* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133#ifdef __cplusplus
12134extern "C"
12135#endif
12136char setsockopt ();
12137/* The GNU C library defines this for functions which it implements
12138 to always fail with ENOSYS. Some functions are actually named
12139 something starting with __ and the normal name is an alias. */
12140#if defined __stub_setsockopt || defined __stub___setsockopt
12141choke me
12142#endif
12143
12144int
12145main ()
12146{
12147return setsockopt ();
12148 ;
12149 return 0;
12150}
12151_ACEOF
12152rm -f conftest.$ac_objext conftest$ac_exeext
12153if { (ac_try="$ac_link"
12154case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12157esac
12158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_c_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest$ac_exeext &&
12169 $as_test_x conftest$ac_exeext; then
12170 ac_cv_func_setsockopt=yes
12171else
12172 echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_cv_func_setsockopt=no
12176fi
12177
12178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180fi
12181{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
12182echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; }
12183if test $ac_cv_func_setsockopt = yes; then
12184 :
12185else
12186
12187{ echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
12188echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; }
12189if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 ac_check_lib_save_LIBS=$LIBS
12193LIBS="-lsocket $LIBS"
12194cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200
12201/* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204#ifdef __cplusplus
12205extern "C"
12206#endif
12207char setsockopt ();
12208int
12209main ()
12210{
12211return setsockopt ();
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 ac_cv_lib_socket_setsockopt=yes
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_cv_lib_socket_setsockopt=no
12240fi
12241
12242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12244LIBS=$ac_check_lib_save_LIBS
12245fi
12246{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
12247echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; }
12248if test $ac_cv_lib_socket_setsockopt = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250#define HAVE_LIBSOCKET 1
12251_ACEOF
12252
12253 LIBS="-lsocket $LIBS"
12254
12255fi
12256
12257fi
12258
12259
12260
12261for ac_func in dirname
12262do
12263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12264{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12266if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 cat >conftest.$ac_ext <<_ACEOF
12270/* confdefs.h. */
12271_ACEOF
12272cat confdefs.h >>conftest.$ac_ext
12273cat >>conftest.$ac_ext <<_ACEOF
12274/* end confdefs.h. */
12275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12277#define $ac_func innocuous_$ac_func
12278
12279/* System header to define __stub macros and hopefully few prototypes,
12280 which can conflict with char $ac_func (); below.
12281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12282 <limits.h> exists even on freestanding compilers. */
12283
12284#ifdef __STDC__
12285# include <limits.h>
12286#else
12287# include <assert.h>
12288#endif
12289
12290#undef $ac_func
12291
12292/* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295#ifdef __cplusplus
12296extern "C"
12297#endif
12298char $ac_func ();
12299/* The GNU C library defines this for functions which it implements
12300 to always fail with ENOSYS. Some functions are actually named
12301 something starting with __ and the normal name is an alias. */
12302#if defined __stub_$ac_func || defined __stub___$ac_func
12303choke me
12304#endif
12305
12306int
12307main ()
12308{
12309return $ac_func ();
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (ac_try="$ac_link"
12316case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } && {
12328 test -z "$ac_c_werror_flag" ||
12329 test ! -s conftest.err
12330 } && test -s conftest$ac_exeext &&
12331 $as_test_x conftest$ac_exeext; then
12332 eval "$as_ac_var=yes"
12333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 eval "$as_ac_var=no"
12338fi
12339
12340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12341 conftest$ac_exeext conftest.$ac_ext
12342fi
12343ac_res=`eval echo '${'$as_ac_var'}'`
12344 { echo "$as_me:$LINENO: result: $ac_res" >&5
12345echo "${ECHO_T}$ac_res" >&6; }
12346if test `eval echo '${'$as_ac_var'}'` = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12349_ACEOF
12350
12351for ac_header in libgen.h
12352do
12353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 echo $ECHO_N "(cached) $ECHO_C" >&6
12359fi
12360ac_res=`eval echo '${'$as_ac_Header'}'`
12361 { echo "$as_me:$LINENO: result: $ac_res" >&5
12362echo "${ECHO_T}$ac_res" >&6; }
12363else
12364 # Is the header compilable?
12365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12367cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373$ac_includes_default
12374#include <$ac_header>
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (ac_try="$ac_compile"
12378case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_compile") 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } && {
12390 test -z "$ac_c_werror_flag" ||
12391 test ! -s conftest.err
12392 } && test -s conftest.$ac_objext; then
12393 ac_header_compiler=yes
12394else
12395 echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 ac_header_compiler=no
12399fi
12400
12401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12403echo "${ECHO_T}$ac_header_compiler" >&6; }
12404
12405# Is the header present?
12406{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12408cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
12414#include <$ac_header>
12415_ACEOF
12416if { (ac_try="$ac_cpp conftest.$ac_ext"
12417case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420esac
12421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } >/dev/null && {
12429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 }; then
12432 ac_header_preproc=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_header_preproc=no
12438fi
12439
12440rm -f conftest.err conftest.$ac_ext
12441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442echo "${ECHO_T}$ac_header_preproc" >&6; }
12443
12444# So? What about this header?
12445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12446 yes:no: )
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc=yes
12452 ;;
12453 no:yes:* )
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12466 ( cat <<\_ASBOX
12467## ------------------------------------------- ##
12468## Report this to openssh-unix-dev@mindrot.org ##
12469## ------------------------------------------- ##
12470_ASBOX
12471 ) | sed "s/^/$as_me: WARNING: /" >&2
12472 ;;
12473esac
12474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 eval "$as_ac_Header=\$ac_header_preproc"
12480fi
12481ac_res=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483echo "${ECHO_T}$ac_res" >&6; }
12484
12485fi
12486if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12489_ACEOF
12490
12491fi
12492
12493done
12494
12495else
12496
12497 { echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
12498echo $ECHO_N "checking for dirname in -lgen... $ECHO_C" >&6; }
12499if test "${ac_cv_lib_gen_dirname+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501else
12502 ac_check_lib_save_LIBS=$LIBS
12503LIBS="-lgen $LIBS"
12504cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510
12511/* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12514#ifdef __cplusplus
12515extern "C"
12516#endif
12517char dirname ();
12518int
12519main ()
12520{
12521return dirname ();
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext conftest$ac_exeext
12527if { (ac_try="$ac_link"
12528case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531esac
12532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest$ac_exeext &&
12543 $as_test_x conftest$ac_exeext; then
12544 ac_cv_lib_gen_dirname=yes
12545else
12546 echo "$as_me: failed program was:" >&5
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 ac_cv_lib_gen_dirname=no
12550fi
12551
12552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12553 conftest$ac_exeext conftest.$ac_ext
12554LIBS=$ac_check_lib_save_LIBS
12555fi
12556{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
12557echo "${ECHO_T}$ac_cv_lib_gen_dirname" >&6; }
12558if test $ac_cv_lib_gen_dirname = yes; then
12559
12560 { echo "$as_me:$LINENO: checking for broken dirname" >&5
12561echo $ECHO_N "checking for broken dirname... $ECHO_C" >&6; }
12562if test "${ac_cv_have_broken_dirname+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12564else
12565
12566 save_LIBS="$LIBS"
12567 LIBS="$LIBS -lgen"
12568 if test "$cross_compiling" = yes; then
12569 ac_cv_have_broken_dirname="no"
12570else
12571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577
12578#include <libgen.h>
12579#include <string.h>
12580
12581int main(int argc, char **argv) {
12582 char *s, buf[32];
12583
12584 strncpy(buf,"/etc", 32);
12585 s = dirname(buf);
12586 if (!s || strncmp(s, "/", 32) != 0) {
12587 exit(1);
12588 } else {
12589 exit(0);
12590 }
12591}
12592
12593_ACEOF
12594rm -f conftest$ac_exeext
12595if { (ac_try="$ac_link"
12596case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599esac
12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_link") 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12605 { (case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_try") 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_have_broken_dirname="no"
12615else
12616 echo "$as_me: program exited with status $ac_status" >&5
12617echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620( exit $ac_status )
12621 ac_cv_have_broken_dirname="yes"
12622fi
12623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12624fi
12625
12626
12627 LIBS="$save_LIBS"
12628
12629fi
12630{ echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
12631echo "${ECHO_T}$ac_cv_have_broken_dirname" >&6; }
12632 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
12633 LIBS="$LIBS -lgen"
12634 cat >>confdefs.h <<\_ACEOF
12635#define HAVE_DIRNAME 1
12636_ACEOF
12637
12638
12639for ac_header in libgen.h
12640do
12641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647fi
12648ac_res=`eval echo '${'$as_ac_Header'}'`
12649 { echo "$as_me:$LINENO: result: $ac_res" >&5
12650echo "${ECHO_T}$ac_res" >&6; }
12651else
12652 # Is the header compilable?
12653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12655cat >conftest.$ac_ext <<_ACEOF
12656/* confdefs.h. */
12657_ACEOF
12658cat confdefs.h >>conftest.$ac_ext
12659cat >>conftest.$ac_ext <<_ACEOF
12660/* end confdefs.h. */
12661$ac_includes_default
12662#include <$ac_header>
12663_ACEOF
12664rm -f conftest.$ac_objext
12665if { (ac_try="$ac_compile"
12666case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_compile") 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } && {
12678 test -z "$ac_c_werror_flag" ||
12679 test ! -s conftest.err
12680 } && test -s conftest.$ac_objext; then
12681 ac_header_compiler=yes
12682else
12683 echo "$as_me: failed program was:" >&5
12684sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 ac_header_compiler=no
12687fi
12688
12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12691echo "${ECHO_T}$ac_header_compiler" >&6; }
12692
12693# Is the header present?
12694{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12696cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#include <$ac_header>
12703_ACEOF
12704if { (ac_try="$ac_cpp conftest.$ac_ext"
12705case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null && {
12717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 }; then
12720 ac_header_preproc=yes
12721else
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
12725 ac_header_preproc=no
12726fi
12727
12728rm -f conftest.err conftest.$ac_ext
12729{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12730echo "${ECHO_T}$ac_header_preproc" >&6; }
12731
12732# So? What about this header?
12733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12734 yes:no: )
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12739 ac_header_preproc=yes
12740 ;;
12741 no:yes:* )
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12754 ( cat <<\_ASBOX
12755## ------------------------------------------- ##
12756## Report this to openssh-unix-dev@mindrot.org ##
12757## ------------------------------------------- ##
12758_ASBOX
12759 ) | sed "s/^/$as_me: WARNING: /" >&2
12760 ;;
12761esac
12762{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766else
12767 eval "$as_ac_Header=\$ac_header_preproc"
12768fi
12769ac_res=`eval echo '${'$as_ac_Header'}'`
12770 { echo "$as_me:$LINENO: result: $ac_res" >&5
12771echo "${ECHO_T}$ac_res" >&6; }
12772
12773fi
12774if test `eval echo '${'$as_ac_Header'}'` = yes; then
12775 cat >>confdefs.h <<_ACEOF
12776#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12777_ACEOF
12778
12779fi
12780
12781done
12782
12783 fi
12784
12785fi
12786
12787
12788fi
12789done
12790
12791
12792{ echo "$as_me:$LINENO: checking for getspnam" >&5
12793echo $ECHO_N "checking for getspnam... $ECHO_C" >&6; }
12794if test "${ac_cv_func_getspnam+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797 cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h. */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h. */
12803/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
12804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12805#define getspnam innocuous_getspnam
12806
12807/* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char getspnam (); below.
12809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810 <limits.h> exists even on freestanding compilers. */
12811
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
12817
12818#undef getspnam
12819
12820/* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826char getspnam ();
12827/* The GNU C library defines this for functions which it implements
12828 to always fail with ENOSYS. Some functions are actually named
12829 something starting with __ and the normal name is an alias. */
12830#if defined __stub_getspnam || defined __stub___getspnam
12831choke me
12832#endif
12833
12834int
12835main ()
12836{
12837return getspnam ();
12838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (ac_try="$ac_link"
12844case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest$ac_exeext &&
12859 $as_test_x conftest$ac_exeext; then
12860 ac_cv_func_getspnam=yes
12861else
12862 echo "$as_me: failed program was:" >&5
12863sed 's/^/| /' conftest.$ac_ext >&5
12864
12865 ac_cv_func_getspnam=no
12866fi
12867
12868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12869 conftest$ac_exeext conftest.$ac_ext
12870fi
12871{ echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
12872echo "${ECHO_T}$ac_cv_func_getspnam" >&6; }
12873if test $ac_cv_func_getspnam = yes; then
12874 :
12875else
12876 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12877echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
12878if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
12881 ac_check_lib_save_LIBS=$LIBS
12882LIBS="-lgen $LIBS"
12883cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889
12890/* Override any GCC internal prototype to avoid an error.
12891 Use char because int might match the return type of a GCC
12892 builtin and then its argument prototype would still apply. */
12893#ifdef __cplusplus
12894extern "C"
12895#endif
12896char getspnam ();
12897int
12898main ()
12899{
12900return getspnam ();
12901 ;
12902 return 0;
12903}
12904_ACEOF
12905rm -f conftest.$ac_objext conftest$ac_exeext
12906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_link") 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest$ac_exeext &&
12922 $as_test_x conftest$ac_exeext; then
12923 ac_cv_lib_gen_getspnam=yes
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_cv_lib_gen_getspnam=no
12929fi
12930
12931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12932 conftest$ac_exeext conftest.$ac_ext
12933LIBS=$ac_check_lib_save_LIBS
12934fi
12935{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
12936echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
12937if test $ac_cv_lib_gen_getspnam = yes; then
12938 LIBS="$LIBS -lgen"
12939fi
12940
12941fi
12942
12943{ echo "$as_me:$LINENO: checking for library containing basename" >&5
12944echo $ECHO_N "checking for library containing basename... $ECHO_C" >&6; }
12945if test "${ac_cv_search_basename+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 ac_func_search_save_LIBS=$LIBS
12949cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
12955
12956/* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12959#ifdef __cplusplus
12960extern "C"
12961#endif
12962char basename ();
12963int
12964main ()
12965{
12966return basename ();
12967 ;
12968 return 0;
12969}
12970_ACEOF
12971for ac_lib in '' gen; do
12972 if test -z "$ac_lib"; then
12973 ac_res="none required"
12974 else
12975 ac_res=-l$ac_lib
12976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12977 fi
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979if { (ac_try="$ac_link"
12980case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12983esac
12984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest$ac_exeext &&
12995 $as_test_x conftest$ac_exeext; then
12996 ac_cv_search_basename=$ac_res
12997else
12998 echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
13002fi
13003
13004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext
13006 if test "${ac_cv_search_basename+set}" = set; then
13007 break
13008fi
13009done
13010if test "${ac_cv_search_basename+set}" = set; then
13011 :
13012else
13013 ac_cv_search_basename=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
13019echo "${ECHO_T}$ac_cv_search_basename" >&6; }
13020ac_res=$ac_cv_search_basename
13021if test "$ac_res" != no; then
13022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
13024cat >>confdefs.h <<\_ACEOF
13025#define HAVE_BASENAME 1
13026_ACEOF
13027
13028fi
13029
13030
13031
13032# Check whether --with-zlib was given.
13033if test "${with_zlib+set}" = set; then
13034 withval=$with_zlib; if test "x$withval" = "xno" ; then
13035 { { echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
13036echo "$as_me: error: *** zlib is required ***" >&2;}
13037 { (exit 1); exit 1; }; }
13038 elif test "x$withval" != "xyes"; then
13039 if test -d "$withval/lib"; then
13040 if test -n "${need_dash_r}"; then
13041 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
13042 else
13043 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
13044 fi
13045 else
13046 if test -n "${need_dash_r}"; then
13047 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
13048 else
13049 LDFLAGS="-L${withval} ${LDFLAGS}"
13050 fi
13051 fi
13052 if test -d "$withval/include"; then
13053 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
13054 else
13055 CPPFLAGS="-I${withval} ${CPPFLAGS}"
13056 fi
13057 fi
13058
13059fi
13060
13061
13062if test "${ac_cv_header_zlib_h+set}" = set; then
13063 { echo "$as_me:$LINENO: checking for zlib.h" >&5
13064echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13065if test "${ac_cv_header_zlib_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067fi
13068{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13069echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13070else
13071 # Is the header compilable?
13072{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
13073echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
13074cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
13080$ac_includes_default
13081#include <zlib.h>
13082_ACEOF
13083rm -f conftest.$ac_objext
13084if { (ac_try="$ac_compile"
13085case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_compile") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest.$ac_objext; then
13100 ac_header_compiler=yes
13101else
13102 echo "$as_me: failed program was:" >&5
13103sed 's/^/| /' conftest.$ac_ext >&5
13104
13105 ac_header_compiler=no
13106fi
13107
13108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110echo "${ECHO_T}$ac_header_compiler" >&6; }
13111
13112# Is the header present?
13113{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
13114echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
13115cat >conftest.$ac_ext <<_ACEOF
13116/* confdefs.h. */
13117_ACEOF
13118cat confdefs.h >>conftest.$ac_ext
13119cat >>conftest.$ac_ext <<_ACEOF
13120/* end confdefs.h. */
13121#include <zlib.h>
13122_ACEOF
13123if { (ac_try="$ac_cpp conftest.$ac_ext"
13124case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null && {
13136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 }; then
13139 ac_header_preproc=yes
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
13144 ac_header_preproc=no
13145fi
13146
13147rm -f conftest.err conftest.$ac_ext
13148{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149echo "${ECHO_T}$ac_header_preproc" >&6; }
13150
13151# So? What about this header?
13152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13153 yes:no: )
13154 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13157echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13158 ac_header_preproc=yes
13159 ;;
13160 no:yes:* )
13161 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13162echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13164echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13166echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13168echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13170echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13172echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13173 ( cat <<\_ASBOX
13174## ------------------------------------------- ##
13175## Report this to openssh-unix-dev@mindrot.org ##
13176## ------------------------------------------- ##
13177_ASBOX
13178 ) | sed "s/^/$as_me: WARNING: /" >&2
13179 ;;
13180esac
13181{ echo "$as_me:$LINENO: checking for zlib.h" >&5
13182echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
13183if test "${ac_cv_header_zlib_h+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13185else
13186 ac_cv_header_zlib_h=$ac_header_preproc
13187fi
13188{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13189echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
13190
13191fi
13192if test $ac_cv_header_zlib_h = yes; then
13193 :
13194else
13195 { { echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
13196echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
13197 { (exit 1); exit 1; }; }
13198fi
13199
13200
13201
13202{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13203echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
13204if test "${ac_cv_lib_z_deflate+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lz $LIBS"
13209cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
13215
13216/* Override any GCC internal prototype to avoid an error.
13217 Use char because int might match the return type of a GCC
13218 builtin and then its argument prototype would still apply. */
13219#ifdef __cplusplus
13220extern "C"
13221#endif
13222char deflate ();
13223int
13224main ()
13225{
13226return deflate ();
13227 ;
13228 return 0;
13229}
13230_ACEOF
13231rm -f conftest.$ac_objext conftest$ac_exeext
13232if { (ac_try="$ac_link"
13233case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13236esac
13237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest$ac_exeext &&
13248 $as_test_x conftest$ac_exeext; then
13249 ac_cv_lib_z_deflate=yes
13250else
13251 echo "$as_me: failed program was:" >&5
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_cv_lib_z_deflate=no
13255fi
13256
13257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13258 conftest$ac_exeext conftest.$ac_ext
13259LIBS=$ac_check_lib_save_LIBS
13260fi
13261{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13262echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
13263if test $ac_cv_lib_z_deflate = yes; then
13264 cat >>confdefs.h <<_ACEOF
13265#define HAVE_LIBZ 1
13266_ACEOF
13267
13268 LIBS="-lz $LIBS"
13269
13270else
13271
13272 saved_CPPFLAGS="$CPPFLAGS"
13273 saved_LDFLAGS="$LDFLAGS"
13274 save_LIBS="$LIBS"
13275 if test -n "${need_dash_r}"; then
13276 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
13277 else
13278 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
13279 fi
13280 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
13281 LIBS="$LIBS -lz"
13282 cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288
13289/* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13292#ifdef __cplusplus
13293extern "C"
13294#endif
13295char deflate ();
13296int
13297main ()
13298{
13299return deflate ();
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (ac_try="$ac_link"
13306case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309esac
13310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_link") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest$ac_exeext &&
13321 $as_test_x conftest$ac_exeext; then
13322 cat >>confdefs.h <<\_ACEOF
13323#define HAVE_LIBZ 1
13324_ACEOF
13325
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330
13331 { { echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
13332echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
13333 { (exit 1); exit 1; }; }
13334
13335
13336fi
13337
13338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13339 conftest$ac_exeext conftest.$ac_ext
13340
13341
13342fi
13343
13344
13345
13346# Check whether --with-zlib-version-check was given.
13347if test "${with_zlib_version_check+set}" = set; then
13348 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
13349 zlib_check_nonfatal=1
13350 fi
13351
13352
13353fi
13354
13355
13356{ echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
13357echo $ECHO_N "checking for possibly buggy zlib... $ECHO_C" >&6; }
13358if test "$cross_compiling" = yes; then
13359 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
13360echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
13361
13362else
13363 cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
13369
13370#include <stdio.h>
13371#include <stdlib.h>
13372#include <zlib.h>
13373
13374int
13375main ()
13376{
13377
13378 int a=0, b=0, c=0, d=0, n, v;
13379 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
13380 if (n != 3 && n != 4)
13381 exit(1);
13382 v = a*1000000 + b*10000 + c*100 + d;
13383 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
13384
13385 /* 1.1.4 is OK */
13386 if (a == 1 && b == 1 && c >= 4)
13387 exit(0);
13388
13389 /* 1.2.3 and up are OK */
13390 if (v >= 1020300)
13391 exit(0);
13392
13393 exit(2);
13394
13395 ;
13396 return 0;
13397}
13398_ACEOF
13399rm -f conftest$ac_exeext
13400if { (ac_try="$ac_link"
13401case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404esac
13405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_link") 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 { echo "$as_me:$LINENO: result: no" >&5
13420echo "${ECHO_T}no" >&6; }
13421else
13422 echo "$as_me: program exited with status $ac_status" >&5
13423echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426( exit $ac_status )
13427 { echo "$as_me:$LINENO: result: yes" >&5
13428echo "${ECHO_T}yes" >&6; }
13429 if test -z "$zlib_check_nonfatal" ; then
13430 { { echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
13431Your reported zlib version has known security problems. It's possible your
13432vendor has fixed these problems without changing the version number. If you
13433are sure this is the case, you can disable the check by running
13434\"./configure --without-zlib-version-check\".
13435If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13436See http://www.gzip.org/zlib/ for details." >&5
13437echo "$as_me: error: *** zlib too old - check config.log ***
13438Your reported zlib version has known security problems. It's possible your
13439vendor has fixed these problems without changing the version number. If you
13440are sure this is the case, you can disable the check by running
13441\"./configure --without-zlib-version-check\".
13442If you are in doubt, upgrade zlib to version 1.2.3 or greater.
13443See http://www.gzip.org/zlib/ for details." >&2;}
13444 { (exit 1); exit 1; }; }
13445 else
13446 { echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
13447echo "$as_me: WARNING: zlib version may have security problems" >&2;}
13448 fi
13449
13450fi
13451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13452fi
13453
13454
13455
13456{ echo "$as_me:$LINENO: checking for strcasecmp" >&5
13457echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
13458if test "${ac_cv_func_strcasecmp+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461 cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
13467/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
13468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13469#define strcasecmp innocuous_strcasecmp
13470
13471/* System header to define __stub macros and hopefully few prototypes,
13472 which can conflict with char strcasecmp (); below.
13473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474 <limits.h> exists even on freestanding compilers. */
13475
13476#ifdef __STDC__
13477# include <limits.h>
13478#else
13479# include <assert.h>
13480#endif
13481
13482#undef strcasecmp
13483
13484/* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13487#ifdef __cplusplus
13488extern "C"
13489#endif
13490char strcasecmp ();
13491/* The GNU C library defines this for functions which it implements
13492 to always fail with ENOSYS. Some functions are actually named
13493 something starting with __ and the normal name is an alias. */
13494#if defined __stub_strcasecmp || defined __stub___strcasecmp
13495choke me
13496#endif
13497
13498int
13499main ()
13500{
13501return strcasecmp ();
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext conftest$ac_exeext
13507if { (ac_try="$ac_link"
13508case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_link") 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && {
13520 test -z "$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 } && test -s conftest$ac_exeext &&
13523 $as_test_x conftest$ac_exeext; then
13524 ac_cv_func_strcasecmp=yes
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 ac_cv_func_strcasecmp=no
13530fi
13531
13532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13533 conftest$ac_exeext conftest.$ac_ext
13534fi
13535{ echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
13536echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
13537if test $ac_cv_func_strcasecmp = yes; then
13538 :
13539else
13540 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
13541echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6; }
13542if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544else
13545 ac_check_lib_save_LIBS=$LIBS
13546LIBS="-lresolv $LIBS"
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
13553
13554/* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557#ifdef __cplusplus
13558extern "C"
13559#endif
13560char strcasecmp ();
13561int
13562main ()
13563{
13564return strcasecmp ();
13565 ;
13566 return 0;
13567}
13568_ACEOF
13569rm -f conftest.$ac_objext conftest$ac_exeext
13570if { (ac_try="$ac_link"
13571case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext &&
13586 $as_test_x conftest$ac_exeext; then
13587 ac_cv_lib_resolv_strcasecmp=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_cv_lib_resolv_strcasecmp=no
13593fi
13594
13595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596 conftest$ac_exeext conftest.$ac_ext
13597LIBS=$ac_check_lib_save_LIBS
13598fi
13599{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
13600echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6; }
13601if test $ac_cv_lib_resolv_strcasecmp = yes; then
13602 LIBS="$LIBS -lresolv"
13603fi
13604
13605
13606fi
13607
13608
13609for ac_func in utimes
13610do
13611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13612{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13616else
13617 cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13625#define $ac_func innocuous_$ac_func
13626
13627/* System header to define __stub macros and hopefully few prototypes,
13628 which can conflict with char $ac_func (); below.
13629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13630 <limits.h> exists even on freestanding compilers. */
13631
13632#ifdef __STDC__
13633# include <limits.h>
13634#else
13635# include <assert.h>
13636#endif
13637
13638#undef $ac_func
13639
13640/* Override any GCC internal prototype to avoid an error.
13641 Use char because int might match the return type of a GCC
13642 builtin and then its argument prototype would still apply. */
13643#ifdef __cplusplus
13644extern "C"
13645#endif
13646char $ac_func ();
13647/* The GNU C library defines this for functions which it implements
13648 to always fail with ENOSYS. Some functions are actually named
13649 something starting with __ and the normal name is an alias. */
13650#if defined __stub_$ac_func || defined __stub___$ac_func
13651choke me
13652#endif
13653
13654int
13655main ()
13656{
13657return $ac_func ();
13658 ;
13659 return 0;
13660}
13661_ACEOF
13662rm -f conftest.$ac_objext conftest$ac_exeext
13663if { (ac_try="$ac_link"
13664case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13667esac
13668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_link") 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest$ac_exeext &&
13679 $as_test_x conftest$ac_exeext; then
13680 eval "$as_ac_var=yes"
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 eval "$as_ac_var=no"
13686fi
13687
13688rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689 conftest$ac_exeext conftest.$ac_ext
13690fi
13691ac_res=`eval echo '${'$as_ac_var'}'`
13692 { echo "$as_me:$LINENO: result: $ac_res" >&5
13693echo "${ECHO_T}$ac_res" >&6; }
13694if test `eval echo '${'$as_ac_var'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13697_ACEOF
13698
13699else
13700 { echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
13701echo $ECHO_N "checking for utimes in -lc89... $ECHO_C" >&6; }
13702if test "${ac_cv_lib_c89_utimes+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704else
13705 ac_check_lib_save_LIBS=$LIBS
13706LIBS="-lc89 $LIBS"
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713
13714/* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13717#ifdef __cplusplus
13718extern "C"
13719#endif
13720char utimes ();
13721int
13722main ()
13723{
13724return utimes ();
13725 ;
13726 return 0;
13727}
13728_ACEOF
13729rm -f conftest.$ac_objext conftest$ac_exeext
13730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_link") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest$ac_exeext &&
13746 $as_test_x conftest$ac_exeext; then
13747 ac_cv_lib_c89_utimes=yes
13748else
13749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_cv_lib_c89_utimes=no
13753fi
13754
13755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13756 conftest$ac_exeext conftest.$ac_ext
13757LIBS=$ac_check_lib_save_LIBS
13758fi
13759{ echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
13760echo "${ECHO_T}$ac_cv_lib_c89_utimes" >&6; }
13761if test $ac_cv_lib_c89_utimes = yes; then
13762 cat >>confdefs.h <<\_ACEOF
13763#define HAVE_UTIMES 1
13764_ACEOF
13765
13766 LIBS="$LIBS -lc89"
13767fi
13768
13769
13770fi
13771done
13772
13773
13774
13775
13776for ac_header in bsd/libutil.h libutil.h
13777do
13778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784fi
13785ac_res=`eval echo '${'$as_ac_Header'}'`
13786 { echo "$as_me:$LINENO: result: $ac_res" >&5
13787echo "${ECHO_T}$ac_res" >&6; }
13788else
13789 # Is the header compilable?
13790{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792cat >conftest.$ac_ext <<_ACEOF
13793/* confdefs.h. */
13794_ACEOF
13795cat confdefs.h >>conftest.$ac_ext
13796cat >>conftest.$ac_ext <<_ACEOF
13797/* end confdefs.h. */
13798$ac_includes_default
13799#include <$ac_header>
13800_ACEOF
13801rm -f conftest.$ac_objext
13802if { (ac_try="$ac_compile"
13803case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13809 ac_status=$?
13810 grep -v '^ *+' conftest.er1 >conftest.err
13811 rm -f conftest.er1
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 ac_header_compiler=no
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828echo "${ECHO_T}$ac_header_compiler" >&6; }
13829
13830# Is the header present?
13831{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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#include <$ac_header>
13840_ACEOF
13841if { (ac_try="$ac_cpp conftest.$ac_ext"
13842case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null && {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 }; then
13857 ac_header_preproc=yes
13858else
13859 echo "$as_me: failed program was:" >&5
13860sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 ac_header_preproc=no
13863fi
13864
13865rm -f conftest.err conftest.$ac_ext
13866{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867echo "${ECHO_T}$ac_header_preproc" >&6; }
13868
13869# So? What about this header?
13870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13871 yes:no: )
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13876 ac_header_preproc=yes
13877 ;;
13878 no:yes:* )
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13891 ( cat <<\_ASBOX
13892## ------------------------------------------- ##
13893## Report this to openssh-unix-dev@mindrot.org ##
13894## ------------------------------------------- ##
13895_ASBOX
13896 ) | sed "s/^/$as_me: WARNING: /" >&2
13897 ;;
13898esac
13899{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904 eval "$as_ac_Header=\$ac_header_preproc"
13905fi
13906ac_res=`eval echo '${'$as_ac_Header'}'`
13907 { echo "$as_me:$LINENO: result: $ac_res" >&5
13908echo "${ECHO_T}$ac_res" >&6; }
13909
13910fi
13911if test `eval echo '${'$as_ac_Header'}'` = yes; then
13912 cat >>confdefs.h <<_ACEOF
13913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13914_ACEOF
13915
13916fi
13917
13918done
13919
13920{ echo "$as_me:$LINENO: checking for library containing fmt_scaled" >&5
13921echo $ECHO_N "checking for library containing fmt_scaled... $ECHO_C" >&6; }
13922if test "${ac_cv_search_fmt_scaled+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924else
13925 ac_func_search_save_LIBS=$LIBS
13926cat >conftest.$ac_ext <<_ACEOF
13927/* confdefs.h. */
13928_ACEOF
13929cat confdefs.h >>conftest.$ac_ext
13930cat >>conftest.$ac_ext <<_ACEOF
13931/* end confdefs.h. */
13932
13933/* Override any GCC internal prototype to avoid an error.
13934 Use char because int might match the return type of a GCC
13935 builtin and then its argument prototype would still apply. */
13936#ifdef __cplusplus
13937extern "C"
13938#endif
13939char fmt_scaled ();
13940int
13941main ()
13942{
13943return fmt_scaled ();
13944 ;
13945 return 0;
13946}
13947_ACEOF
13948for ac_lib in '' util bsd; do
13949 if test -z "$ac_lib"; then
13950 ac_res="none required"
13951 else
13952 ac_res=-l$ac_lib
13953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13954 fi
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956if { (ac_try="$ac_link"
13957case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13960esac
13961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_link") 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext &&
13972 $as_test_x conftest$ac_exeext; then
13973 ac_cv_search_fmt_scaled=$ac_res
13974else
13975 echo "$as_me: failed program was:" >&5
13976sed 's/^/| /' conftest.$ac_ext >&5
13977
13978
13979fi
13980
13981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13982 conftest$ac_exeext
13983 if test "${ac_cv_search_fmt_scaled+set}" = set; then
13984 break
13985fi
13986done
13987if test "${ac_cv_search_fmt_scaled+set}" = set; then
13988 :
13989else
13990 ac_cv_search_fmt_scaled=no
13991fi
13992rm conftest.$ac_ext
13993LIBS=$ac_func_search_save_LIBS
13994fi
13995{ echo "$as_me:$LINENO: result: $ac_cv_search_fmt_scaled" >&5
13996echo "${ECHO_T}$ac_cv_search_fmt_scaled" >&6; }
13997ac_res=$ac_cv_search_fmt_scaled
13998if test "$ac_res" != no; then
13999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14000
14001fi
14002
14003{ echo "$as_me:$LINENO: checking for library containing scan_scaled" >&5
14004echo $ECHO_N "checking for library containing scan_scaled... $ECHO_C" >&6; }
14005if test "${ac_cv_search_scan_scaled+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 ac_func_search_save_LIBS=$LIBS
14009cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015
14016/* Override any GCC internal prototype to avoid an error.
14017 Use char because int might match the return type of a GCC
14018 builtin and then its argument prototype would still apply. */
14019#ifdef __cplusplus
14020extern "C"
14021#endif
14022char scan_scaled ();
14023int
14024main ()
14025{
14026return scan_scaled ();
14027 ;
14028 return 0;
14029}
14030_ACEOF
14031for ac_lib in '' util bsd; do
14032 if test -z "$ac_lib"; then
14033 ac_res="none required"
14034 else
14035 ac_res=-l$ac_lib
14036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14037 fi
14038 rm -f conftest.$ac_objext conftest$ac_exeext
14039if { (ac_try="$ac_link"
14040case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14043esac
14044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14045 (eval "$ac_link") 2>conftest.er1
14046 ac_status=$?
14047 grep -v '^ *+' conftest.er1 >conftest.err
14048 rm -f conftest.er1
14049 cat conftest.err >&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); } && {
14052 test -z "$ac_c_werror_flag" ||
14053 test ! -s conftest.err
14054 } && test -s conftest$ac_exeext &&
14055 $as_test_x conftest$ac_exeext; then
14056 ac_cv_search_scan_scaled=$ac_res
14057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
14061
14062fi
14063
14064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14065 conftest$ac_exeext
14066 if test "${ac_cv_search_scan_scaled+set}" = set; then
14067 break
14068fi
14069done
14070if test "${ac_cv_search_scan_scaled+set}" = set; then
14071 :
14072else
14073 ac_cv_search_scan_scaled=no
14074fi
14075rm conftest.$ac_ext
14076LIBS=$ac_func_search_save_LIBS
14077fi
14078{ echo "$as_me:$LINENO: result: $ac_cv_search_scan_scaled" >&5
14079echo "${ECHO_T}$ac_cv_search_scan_scaled" >&6; }
14080ac_res=$ac_cv_search_scan_scaled
14081if test "$ac_res" != no; then
14082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14083
14084fi
14085
14086{ echo "$as_me:$LINENO: checking for library containing login" >&5
14087echo $ECHO_N "checking for library containing login... $ECHO_C" >&6; }
14088if test "${ac_cv_search_login+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14090else
14091 ac_func_search_save_LIBS=$LIBS
14092cat >conftest.$ac_ext <<_ACEOF
14093/* confdefs.h. */
14094_ACEOF
14095cat confdefs.h >>conftest.$ac_ext
14096cat >>conftest.$ac_ext <<_ACEOF
14097/* end confdefs.h. */
14098
14099/* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14102#ifdef __cplusplus
14103extern "C"
14104#endif
14105char login ();
14106int
14107main ()
14108{
14109return login ();
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114for ac_lib in '' util bsd; do
14115 if test -z "$ac_lib"; then
14116 ac_res="none required"
14117 else
14118 ac_res=-l$ac_lib
14119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14120 fi
14121 rm -f conftest.$ac_objext conftest$ac_exeext
14122if { (ac_try="$ac_link"
14123case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_link") 2>conftest.er1
14129 ac_status=$?
14130 grep -v '^ *+' conftest.er1 >conftest.err
14131 rm -f conftest.er1
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } && {
14135 test -z "$ac_c_werror_flag" ||
14136 test ! -s conftest.err
14137 } && test -s conftest$ac_exeext &&
14138 $as_test_x conftest$ac_exeext; then
14139 ac_cv_search_login=$ac_res
14140else
14141 echo "$as_me: failed program was:" >&5
14142sed 's/^/| /' conftest.$ac_ext >&5
14143
14144
14145fi
14146
14147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14148 conftest$ac_exeext
14149 if test "${ac_cv_search_login+set}" = set; then
14150 break
14151fi
14152done
14153if test "${ac_cv_search_login+set}" = set; then
14154 :
14155else
14156 ac_cv_search_login=no
14157fi
14158rm conftest.$ac_ext
14159LIBS=$ac_func_search_save_LIBS
14160fi
14161{ echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
14162echo "${ECHO_T}$ac_cv_search_login" >&6; }
14163ac_res=$ac_cv_search_login
14164if test "$ac_res" != no; then
14165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14166
14167fi
14168
14169{ echo "$as_me:$LINENO: checking for library containing logout" >&5
14170echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6; }
14171if test "${ac_cv_search_logout+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 ac_func_search_save_LIBS=$LIBS
14175cat >conftest.$ac_ext <<_ACEOF
14176/* confdefs.h. */
14177_ACEOF
14178cat confdefs.h >>conftest.$ac_ext
14179cat >>conftest.$ac_ext <<_ACEOF
14180/* end confdefs.h. */
14181
14182/* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14185#ifdef __cplusplus
14186extern "C"
14187#endif
14188char logout ();
14189int
14190main ()
14191{
14192return logout ();
14193 ;
14194 return 0;
14195}
14196_ACEOF
14197for ac_lib in '' util bsd; do
14198 if test -z "$ac_lib"; then
14199 ac_res="none required"
14200 else
14201 ac_res=-l$ac_lib
14202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14203 fi
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205if { (ac_try="$ac_link"
14206case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14209esac
14210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_link") 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest$ac_exeext &&
14221 $as_test_x conftest$ac_exeext; then
14222 ac_cv_search_logout=$ac_res
14223else
14224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227
14228fi
14229
14230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14231 conftest$ac_exeext
14232 if test "${ac_cv_search_logout+set}" = set; then
14233 break
14234fi
14235done
14236if test "${ac_cv_search_logout+set}" = set; then
14237 :
14238else
14239 ac_cv_search_logout=no
14240fi
14241rm conftest.$ac_ext
14242LIBS=$ac_func_search_save_LIBS
14243fi
14244{ echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
14245echo "${ECHO_T}$ac_cv_search_logout" >&6; }
14246ac_res=$ac_cv_search_logout
14247if test "$ac_res" != no; then
14248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14249
14250fi
14251
14252{ echo "$as_me:$LINENO: checking for library containing logwtmp" >&5
14253echo $ECHO_N "checking for library containing logwtmp... $ECHO_C" >&6; }
14254if test "${ac_cv_search_logwtmp+set}" = set; then
14255 echo $ECHO_N "(cached) $ECHO_C" >&6
14256else
14257 ac_func_search_save_LIBS=$LIBS
14258cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
14264
14265/* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268#ifdef __cplusplus
14269extern "C"
14270#endif
14271char logwtmp ();
14272int
14273main ()
14274{
14275return logwtmp ();
14276 ;
14277 return 0;
14278}
14279_ACEOF
14280for ac_lib in '' util bsd; do
14281 if test -z "$ac_lib"; then
14282 ac_res="none required"
14283 else
14284 ac_res=-l$ac_lib
14285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14286 fi
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288if { (ac_try="$ac_link"
14289case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_link") 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } && {
14301 test -z "$ac_c_werror_flag" ||
14302 test ! -s conftest.err
14303 } && test -s conftest$ac_exeext &&
14304 $as_test_x conftest$ac_exeext; then
14305 ac_cv_search_logwtmp=$ac_res
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310
14311fi
14312
14313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314 conftest$ac_exeext
14315 if test "${ac_cv_search_logwtmp+set}" = set; then
14316 break
14317fi
14318done
14319if test "${ac_cv_search_logwtmp+set}" = set; then
14320 :
14321else
14322 ac_cv_search_logwtmp=no
14323fi
14324rm conftest.$ac_ext
14325LIBS=$ac_func_search_save_LIBS
14326fi
14327{ echo "$as_me:$LINENO: result: $ac_cv_search_logwtmp" >&5
14328echo "${ECHO_T}$ac_cv_search_logwtmp" >&6; }
14329ac_res=$ac_cv_search_logwtmp
14330if test "$ac_res" != no; then
14331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14332
14333fi
14334
14335{ echo "$as_me:$LINENO: checking for library containing openpty" >&5
14336echo $ECHO_N "checking for library containing openpty... $ECHO_C" >&6; }
14337if test "${ac_cv_search_openpty+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339else
14340 ac_func_search_save_LIBS=$LIBS
14341cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347
14348/* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14351#ifdef __cplusplus
14352extern "C"
14353#endif
14354char openpty ();
14355int
14356main ()
14357{
14358return openpty ();
14359 ;
14360 return 0;
14361}
14362_ACEOF
14363for ac_lib in '' util bsd; do
14364 if test -z "$ac_lib"; then
14365 ac_res="none required"
14366 else
14367 ac_res=-l$ac_lib
14368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14369 fi
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371if { (ac_try="$ac_link"
14372case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375esac
14376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext &&
14387 $as_test_x conftest$ac_exeext; then
14388 ac_cv_search_openpty=$ac_res
14389else
14390 echo "$as_me: failed program was:" >&5
14391sed 's/^/| /' conftest.$ac_ext >&5
14392
14393
14394fi
14395
14396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext
14398 if test "${ac_cv_search_openpty+set}" = set; then
14399 break
14400fi
14401done
14402if test "${ac_cv_search_openpty+set}" = set; then
14403 :
14404else
14405 ac_cv_search_openpty=no
14406fi
14407rm conftest.$ac_ext
14408LIBS=$ac_func_search_save_LIBS
14409fi
14410{ echo "$as_me:$LINENO: result: $ac_cv_search_openpty" >&5
14411echo "${ECHO_T}$ac_cv_search_openpty" >&6; }
14412ac_res=$ac_cv_search_openpty
14413if test "$ac_res" != no; then
14414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416fi
14417
14418{ echo "$as_me:$LINENO: checking for library containing updwtmp" >&5
14419echo $ECHO_N "checking for library containing updwtmp... $ECHO_C" >&6; }
14420if test "${ac_cv_search_updwtmp+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
14423 ac_func_search_save_LIBS=$LIBS
14424cat >conftest.$ac_ext <<_ACEOF
14425/* confdefs.h. */
14426_ACEOF
14427cat confdefs.h >>conftest.$ac_ext
14428cat >>conftest.$ac_ext <<_ACEOF
14429/* end confdefs.h. */
14430
14431/* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14434#ifdef __cplusplus
14435extern "C"
14436#endif
14437char updwtmp ();
14438int
14439main ()
14440{
14441return updwtmp ();
14442 ;
14443 return 0;
14444}
14445_ACEOF
14446for ac_lib in '' util bsd; do
14447 if test -z "$ac_lib"; then
14448 ac_res="none required"
14449 else
14450 ac_res=-l$ac_lib
14451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14452 fi
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454if { (ac_try="$ac_link"
14455case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest$ac_exeext &&
14470 $as_test_x conftest$ac_exeext; then
14471 ac_cv_search_updwtmp=$ac_res
14472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476
14477fi
14478
14479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14480 conftest$ac_exeext
14481 if test "${ac_cv_search_updwtmp+set}" = set; then
14482 break
14483fi
14484done
14485if test "${ac_cv_search_updwtmp+set}" = set; then
14486 :
14487else
14488 ac_cv_search_updwtmp=no
14489fi
14490rm conftest.$ac_ext
14491LIBS=$ac_func_search_save_LIBS
14492fi
14493{ echo "$as_me:$LINENO: result: $ac_cv_search_updwtmp" >&5
14494echo "${ECHO_T}$ac_cv_search_updwtmp" >&6; }
14495ac_res=$ac_cv_search_updwtmp
14496if test "$ac_res" != no; then
14497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498
14499fi
14500
14501
14502
14503
14504
14505
14506
14507
14508for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp
14509do
14510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14513if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
14516 cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h. */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14524#define $ac_func innocuous_$ac_func
14525
14526/* System header to define __stub macros and hopefully few prototypes,
14527 which can conflict with char $ac_func (); below.
14528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14529 <limits.h> exists even on freestanding compilers. */
14530
14531#ifdef __STDC__
14532# include <limits.h>
14533#else
14534# include <assert.h>
14535#endif
14536
14537#undef $ac_func
14538
14539/* Override any GCC internal prototype to avoid an error.
14540 Use char because int might match the return type of a GCC
14541 builtin and then its argument prototype would still apply. */
14542#ifdef __cplusplus
14543extern "C"
14544#endif
14545char $ac_func ();
14546/* The GNU C library defines this for functions which it implements
14547 to always fail with ENOSYS. Some functions are actually named
14548 something starting with __ and the normal name is an alias. */
14549#if defined __stub_$ac_func || defined __stub___$ac_func
14550choke me
14551#endif
14552
14553int
14554main ()
14555{
14556return $ac_func ();
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext conftest$ac_exeext
14562if { (ac_try="$ac_link"
14563case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566esac
14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest$ac_exeext &&
14578 $as_test_x conftest$ac_exeext; then
14579 eval "$as_ac_var=yes"
14580else
14581 echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 eval "$as_ac_var=no"
14585fi
14586
14587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588 conftest$ac_exeext conftest.$ac_ext
14589fi
14590ac_res=`eval echo '${'$as_ac_var'}'`
14591 { echo "$as_me:$LINENO: result: $ac_res" >&5
14592echo "${ECHO_T}$ac_res" >&6; }
14593if test `eval echo '${'$as_ac_var'}'` = yes; then
14594 cat >>confdefs.h <<_ACEOF
14595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14596_ACEOF
14597
14598fi
14599done
14600
14601
14602# On some platforms, inet_ntop may be found in libresolv or libnsl.
14603{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
14604echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
14605if test "${ac_cv_search_inet_ntop+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608 ac_func_search_save_LIBS=$LIBS
14609cat >conftest.$ac_ext <<_ACEOF
14610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
14615
14616/* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14619#ifdef __cplusplus
14620extern "C"
14621#endif
14622char inet_ntop ();
14623int
14624main ()
14625{
14626return inet_ntop ();
14627 ;
14628 return 0;
14629}
14630_ACEOF
14631for ac_lib in '' resolv nsl; do
14632 if test -z "$ac_lib"; then
14633 ac_res="none required"
14634 else
14635 ac_res=-l$ac_lib
14636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14637 fi
14638 rm -f conftest.$ac_objext conftest$ac_exeext
14639if { (ac_try="$ac_link"
14640case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext &&
14655 $as_test_x conftest$ac_exeext; then
14656 ac_cv_search_inet_ntop=$ac_res
14657else
14658 echo "$as_me: failed program was:" >&5
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
14661
14662fi
14663
14664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14665 conftest$ac_exeext
14666 if test "${ac_cv_search_inet_ntop+set}" = set; then
14667 break
14668fi
14669done
14670if test "${ac_cv_search_inet_ntop+set}" = set; then
14671 :
14672else
14673 ac_cv_search_inet_ntop=no
14674fi
14675rm conftest.$ac_ext
14676LIBS=$ac_func_search_save_LIBS
14677fi
14678{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
14679echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
14680ac_res=$ac_cv_search_inet_ntop
14681if test "$ac_res" != no; then
14682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14683
14684fi
14685
14686
14687
14688for ac_func in strftime
14689do
14690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14695else
14696 cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14704#define $ac_func innocuous_$ac_func
14705
14706/* System header to define __stub macros and hopefully few prototypes,
14707 which can conflict with char $ac_func (); below.
14708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709 <limits.h> exists even on freestanding compilers. */
14710
14711#ifdef __STDC__
14712# include <limits.h>
14713#else
14714# include <assert.h>
14715#endif
14716
14717#undef $ac_func
14718
14719/* Override any GCC internal prototype to avoid an error.
14720 Use char because int might match the return type of a GCC
14721 builtin and then its argument prototype would still apply. */
14722#ifdef __cplusplus
14723extern "C"
14724#endif
14725char $ac_func ();
14726/* The GNU C library defines this for functions which it implements
14727 to always fail with ENOSYS. Some functions are actually named
14728 something starting with __ and the normal name is an alias. */
14729#if defined __stub_$ac_func || defined __stub___$ac_func
14730choke me
14731#endif
14732
14733int
14734main ()
14735{
14736return $ac_func ();
14737 ;
14738 return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext conftest$ac_exeext
14742if { (ac_try="$ac_link"
14743case "(($ac_try" in
14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14745 *) ac_try_echo=$ac_try;;
14746esac
14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14748 (eval "$ac_link") 2>conftest.er1
14749 ac_status=$?
14750 grep -v '^ *+' conftest.er1 >conftest.err
14751 rm -f conftest.er1
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } && {
14755 test -z "$ac_c_werror_flag" ||
14756 test ! -s conftest.err
14757 } && test -s conftest$ac_exeext &&
14758 $as_test_x conftest$ac_exeext; then
14759 eval "$as_ac_var=yes"
14760else
14761 echo "$as_me: failed program was:" >&5
14762sed 's/^/| /' conftest.$ac_ext >&5
14763
14764 eval "$as_ac_var=no"
14765fi
14766
14767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14768 conftest$ac_exeext conftest.$ac_ext
14769fi
14770ac_res=`eval echo '${'$as_ac_var'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772echo "${ECHO_T}$ac_res" >&6; }
14773if test `eval echo '${'$as_ac_var'}'` = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14776_ACEOF
14777
14778else
14779 # strftime is in -lintl on SCO UNIX.
14780{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
14781echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
14782if test "${ac_cv_lib_intl_strftime+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784else
14785 ac_check_lib_save_LIBS=$LIBS
14786LIBS="-lintl $LIBS"
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793
14794/* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14797#ifdef __cplusplus
14798extern "C"
14799#endif
14800char strftime ();
14801int
14802main ()
14803{
14804return strftime ();
14805 ;
14806 return 0;
14807}
14808_ACEOF
14809rm -f conftest.$ac_objext conftest$ac_exeext
14810if { (ac_try="$ac_link"
14811case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814esac
14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_link") 2>conftest.er1
14817 ac_status=$?
14818 grep -v '^ *+' conftest.er1 >conftest.err
14819 rm -f conftest.er1
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest$ac_exeext &&
14826 $as_test_x conftest$ac_exeext; then
14827 ac_cv_lib_intl_strftime=yes
14828else
14829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
14832 ac_cv_lib_intl_strftime=no
14833fi
14834
14835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14837LIBS=$ac_check_lib_save_LIBS
14838fi
14839{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
14840echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
14841if test $ac_cv_lib_intl_strftime = yes; then
14842 cat >>confdefs.h <<\_ACEOF
14843#define HAVE_STRFTIME 1
14844_ACEOF
14845
14846LIBS="-lintl $LIBS"
14847fi
14848
14849fi
14850done
14851
14852
14853# Check for ALTDIRFUNC glob() extension
14854{ echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
14855echo $ECHO_N "checking for GLOB_ALTDIRFUNC support... $ECHO_C" >&6; }
14856cat >conftest.$ac_ext <<_ACEOF
14857/* confdefs.h. */
14858_ACEOF
14859cat confdefs.h >>conftest.$ac_ext
14860cat >>conftest.$ac_ext <<_ACEOF
14861/* end confdefs.h. */
14862
14863 #include <glob.h>
14864 #ifdef GLOB_ALTDIRFUNC
14865 FOUNDIT
14866 #endif
14867
14868_ACEOF
14869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14870 $EGREP "FOUNDIT" >/dev/null 2>&1; then
14871
14872
14873cat >>confdefs.h <<\_ACEOF
14874#define GLOB_HAS_ALTDIRFUNC 1
14875_ACEOF
14876
14877 { echo "$as_me:$LINENO: result: yes" >&5
14878echo "${ECHO_T}yes" >&6; }
14879
14880else
14881
14882 { echo "$as_me:$LINENO: result: no" >&5
14883echo "${ECHO_T}no" >&6; }
14884
14885
14886fi
14887rm -f conftest*
14888
14889
14890# Check for g.gl_matchc glob() extension
14891{ echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
14892echo $ECHO_N "checking for gl_matchc field in glob_t... $ECHO_C" >&6; }
14893cat >conftest.$ac_ext <<_ACEOF
14894/* confdefs.h. */
14895_ACEOF
14896cat confdefs.h >>conftest.$ac_ext
14897cat >>conftest.$ac_ext <<_ACEOF
14898/* end confdefs.h. */
14899 #include <glob.h>
14900int
14901main ()
14902{
14903 glob_t g; g.gl_matchc = 1;
14904 ;
14905 return 0;
14906}
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (ac_try="$ac_compile"
14910case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14913esac
14914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_compile") 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest.$ac_objext; then
14925
14926
14927cat >>confdefs.h <<\_ACEOF
14928#define GLOB_HAS_GL_MATCHC 1
14929_ACEOF
14930
14931 { echo "$as_me:$LINENO: result: yes" >&5
14932echo "${ECHO_T}yes" >&6; }
14933
14934else
14935 echo "$as_me: failed program was:" >&5
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
14938
14939 { echo "$as_me:$LINENO: result: no" >&5
14940echo "${ECHO_T}no" >&6; }
14941
14942fi
14943
14944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14945
14946# Check for g.gl_statv glob() extension
14947{ echo "$as_me:$LINENO: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
14948echo $ECHO_N "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... $ECHO_C" >&6; }
14949cat >conftest.$ac_ext <<_ACEOF
14950/* confdefs.h. */
14951_ACEOF
14952cat confdefs.h >>conftest.$ac_ext
14953cat >>conftest.$ac_ext <<_ACEOF
14954/* end confdefs.h. */
14955 #include <glob.h>
14956int
14957main ()
14958{
14959
14960#ifndef GLOB_KEEPSTAT
14961#error "glob does not support GLOB_KEEPSTAT extension"
14962#endif
14963glob_t g;
14964g.gl_statv = NULL;
14965
14966 ;
14967 return 0;
14968}
14969_ACEOF
14970rm -f conftest.$ac_objext
14971if { (ac_try="$ac_compile"
14972case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975esac
14976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_compile") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest.$ac_objext; then
14987
14988
14989cat >>confdefs.h <<\_ACEOF
14990#define GLOB_HAS_GL_STATV 1
14991_ACEOF
14992
14993 { echo "$as_me:$LINENO: result: yes" >&5
14994echo "${ECHO_T}yes" >&6; }
14995
14996else
14997 echo "$as_me: failed program was:" >&5
14998sed 's/^/| /' conftest.$ac_ext >&5
14999
15000
15001 { echo "$as_me:$LINENO: result: no" >&5
15002echo "${ECHO_T}no" >&6; }
15003
15004
15005fi
15006
15007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15008
15009{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
15010echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
15011if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15013else
15014 cat >conftest.$ac_ext <<_ACEOF
15015/* confdefs.h. */
15016_ACEOF
15017cat confdefs.h >>conftest.$ac_ext
15018cat >>conftest.$ac_ext <<_ACEOF
15019/* end confdefs.h. */
15020#include <glob.h>
15021
15022int
15023main ()
15024{
15025#ifndef GLOB_NOMATCH
15026 (void) GLOB_NOMATCH;
15027#endif
15028
15029 ;
15030 return 0;
15031}
15032_ACEOF
15033rm -f conftest.$ac_objext
15034if { (ac_try="$ac_compile"
15035case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest.$ac_objext; then
15050 ac_cv_have_decl_GLOB_NOMATCH=yes
15051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055 ac_cv_have_decl_GLOB_NOMATCH=no
15056fi
15057
15058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059fi
15060{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
15061echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
15062if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
15063
15064cat >>confdefs.h <<_ACEOF
15065#define HAVE_DECL_GLOB_NOMATCH 1
15066_ACEOF
15067
15068
15069else
15070 cat >>confdefs.h <<_ACEOF
15071#define HAVE_DECL_GLOB_NOMATCH 0
15072_ACEOF
15073
15074
15075fi
15076
15077
15078
15079{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
15080echo $ECHO_N "checking whether struct dirent allocates space for d_name... $ECHO_C" >&6; }
15081if test "$cross_compiling" = yes; then
15082
15083 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
15084echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
15085 cat >>confdefs.h <<\_ACEOF
15086#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15087_ACEOF
15088
15089
15090
15091else
15092 cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h. */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h. */
15098
15099#include <sys/types.h>
15100#include <dirent.h>
15101int
15102main ()
15103{
15104
15105 struct dirent d;
15106 exit(sizeof(d.d_name)<=sizeof(char));
15107
15108 ;
15109 return 0;
15110}
15111_ACEOF
15112rm -f conftest$ac_exeext
15113if { (ac_try="$ac_link"
15114case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 { echo "$as_me:$LINENO: result: yes" >&5
15133echo "${ECHO_T}yes" >&6; }
15134else
15135 echo "$as_me: program exited with status $ac_status" >&5
15136echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139( exit $ac_status )
15140
15141 { echo "$as_me:$LINENO: result: no" >&5
15142echo "${ECHO_T}no" >&6; }
15143
15144cat >>confdefs.h <<\_ACEOF
15145#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
15146_ACEOF
15147
15148
15149fi
15150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15151fi
15152
15153
15154
15155{ echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
15156echo $ECHO_N "checking for /proc/pid/fd directory... $ECHO_C" >&6; }
15157if test -d "/proc/$$/fd" ; then
15158
15159cat >>confdefs.h <<\_ACEOF
15160#define HAVE_PROC_PID 1
15161_ACEOF
15162
15163 { echo "$as_me:$LINENO: result: yes" >&5
15164echo "${ECHO_T}yes" >&6; }
15165else
15166 { echo "$as_me:$LINENO: result: no" >&5
15167echo "${ECHO_T}no" >&6; }
15168fi
15169
15170# Check whether user wants S/Key support
15171SKEY_MSG="no"
15172
15173# Check whether --with-skey was given.
15174if test "${with_skey+set}" = set; then
15175 withval=$with_skey;
15176 if test "x$withval" != "xno" ; then
15177
15178 if test "x$withval" != "xyes" ; then
15179 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15180 LDFLAGS="$LDFLAGS -L${withval}/lib"
15181 fi
15182
15183
15184cat >>confdefs.h <<\_ACEOF
15185#define SKEY 1
15186_ACEOF
15187
15188 LIBS="-lskey $LIBS"
15189 SKEY_MSG="yes"
15190
15191 { echo "$as_me:$LINENO: checking for s/key support" >&5
15192echo $ECHO_N "checking for s/key support... $ECHO_C" >&6; }
15193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199
15200#include <stdio.h>
15201#include <skey.h>
15202
15203int
15204main ()
15205{
15206
15207 char *ff = skey_keyinfo(""); ff="";
15208 exit(0);
15209
15210 ;
15211 return 0;
15212}
15213_ACEOF
15214rm -f conftest.$ac_objext conftest$ac_exeext
15215if { (ac_try="$ac_link"
15216case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219esac
15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15221 (eval "$ac_link") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext &&
15231 $as_test_x conftest$ac_exeext; then
15232 { echo "$as_me:$LINENO: result: yes" >&5
15233echo "${ECHO_T}yes" >&6; }
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
15238
15239 { echo "$as_me:$LINENO: result: no" >&5
15240echo "${ECHO_T}no" >&6; }
15241 { { echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
15242echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
15243 { (exit 1); exit 1; }; }
15244
15245fi
15246
15247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248 conftest$ac_exeext conftest.$ac_ext
15249 { echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
15250echo $ECHO_N "checking if skeychallenge takes 4 arguments... $ECHO_C" >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15252/* confdefs.h. */
15253_ACEOF
15254cat confdefs.h >>conftest.$ac_ext
15255cat >>conftest.$ac_ext <<_ACEOF
15256/* end confdefs.h. */
15257
15258#include <stdio.h>
15259#include <skey.h>
15260
15261int
15262main ()
15263{
15264
15265 (void)skeychallenge(NULL,"name","",0);
15266
15267 ;
15268 return 0;
15269}
15270_ACEOF
15271rm -f conftest.$ac_objext
15272if { (ac_try="$ac_compile"
15273case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_compile") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest.$ac_objext; then
15288
15289 { echo "$as_me:$LINENO: result: yes" >&5
15290echo "${ECHO_T}yes" >&6; }
15291
15292cat >>confdefs.h <<\_ACEOF
15293#define SKEYCHALLENGE_4ARG 1
15294_ACEOF
15295
15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300
15301 { echo "$as_me:$LINENO: result: no" >&5
15302echo "${ECHO_T}no" >&6; }
15303
15304fi
15305
15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 fi
15308
15309
15310fi
15311
15312
15313# Check whether user wants to use ldns
15314LDNS_MSG="no"
15315
15316# Check whether --with-ldns was given.
15317if test "${with_ldns+set}" = set; then
15318 withval=$with_ldns;
15319 if test "x$withval" != "xno" ; then
15320
15321 if test "x$withval" != "xyes" ; then
15322 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15323 LDFLAGS="$LDFLAGS -L${withval}/lib"
15324 fi
15325
15326
15327cat >>confdefs.h <<\_ACEOF
15328#define HAVE_LDNS 1
15329_ACEOF
15330
15331 LIBS="-lldns $LIBS"
15332 LDNS_MSG="yes"
15333
15334 { echo "$as_me:$LINENO: checking for ldns support" >&5
15335echo $ECHO_N "checking for ldns support... $ECHO_C" >&6; }
15336 cat >conftest.$ac_ext <<_ACEOF
15337/* confdefs.h. */
15338_ACEOF
15339cat confdefs.h >>conftest.$ac_ext
15340cat >>conftest.$ac_ext <<_ACEOF
15341/* end confdefs.h. */
15342
15343#include <stdio.h>
15344#include <stdlib.h>
15345#include <stdint.h>
15346#include <ldns/ldns.h>
15347int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
15348
15349
15350_ACEOF
15351rm -f conftest.$ac_objext conftest$ac_exeext
15352if { (ac_try="$ac_link"
15353case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356esac
15357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } && {
15365 test -z "$ac_c_werror_flag" ||
15366 test ! -s conftest.err
15367 } && test -s conftest$ac_exeext &&
15368 $as_test_x conftest$ac_exeext; then
15369 { echo "$as_me:$LINENO: result: yes" >&5
15370echo "${ECHO_T}yes" >&6; }
15371else
15372 echo "$as_me: failed program was:" >&5
15373sed 's/^/| /' conftest.$ac_ext >&5
15374
15375
15376 { echo "$as_me:$LINENO: result: no" >&5
15377echo "${ECHO_T}no" >&6; }
15378 { { echo "$as_me:$LINENO: error: ** Incomplete or missing ldns libraries." >&5
15379echo "$as_me: error: ** Incomplete or missing ldns libraries." >&2;}
15380 { (exit 1); exit 1; }; }
15381
15382fi
15383
15384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385 conftest$ac_exeext conftest.$ac_ext
15386 fi
15387
15388
15389fi
15390
15391
15392# Check whether user wants libedit support
15393LIBEDIT_MSG="no"
15394
15395# Check whether --with-libedit was given.
15396if test "${with_libedit+set}" = set; then
15397 withval=$with_libedit; if test "x$withval" != "xno" ; then
15398 if test "x$withval" = "xyes" ; then
15399 if test -n "$ac_tool_prefix"; then
15400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15401set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15404if test "${ac_cv_path_PKGCONFIG+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 case $PKGCONFIG in
15408 [\\/]* | ?:[\\/]*)
15409 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
15410 ;;
15411 *)
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413for as_dir in $PATH
15414do
15415 IFS=$as_save_IFS
15416 test -z "$as_dir" && as_dir=.
15417 for ac_exec_ext in '' $ac_executable_extensions; do
15418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15419 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15421 break 2
15422 fi
15423done
15424done
15425IFS=$as_save_IFS
15426
15427 ;;
15428esac
15429fi
15430PKGCONFIG=$ac_cv_path_PKGCONFIG
15431if test -n "$PKGCONFIG"; then
15432 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
15433echo "${ECHO_T}$PKGCONFIG" >&6; }
15434else
15435 { echo "$as_me:$LINENO: result: no" >&5
15436echo "${ECHO_T}no" >&6; }
15437fi
15438
15439
15440fi
15441if test -z "$ac_cv_path_PKGCONFIG"; then
15442 ac_pt_PKGCONFIG=$PKGCONFIG
15443 # Extract the first word of "pkg-config", so it can be a program name with args.
15444set dummy pkg-config; ac_word=$2
15445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15447if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450 case $ac_pt_PKGCONFIG in
15451 [\\/]* | ?:[\\/]*)
15452 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
15453 ;;
15454 *)
15455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458 IFS=$as_save_IFS
15459 test -z "$as_dir" && as_dir=.
15460 for ac_exec_ext in '' $ac_executable_extensions; do
15461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15462 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
15463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15464 break 2
15465 fi
15466done
15467done
15468IFS=$as_save_IFS
15469
15470 ;;
15471esac
15472fi
15473ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
15474if test -n "$ac_pt_PKGCONFIG"; then
15475 { echo "$as_me:$LINENO: result: $ac_pt_PKGCONFIG" >&5
15476echo "${ECHO_T}$ac_pt_PKGCONFIG" >&6; }
15477else
15478 { echo "$as_me:$LINENO: result: no" >&5
15479echo "${ECHO_T}no" >&6; }
15480fi
15481
15482 if test "x$ac_pt_PKGCONFIG" = x; then
15483 PKGCONFIG="no"
15484 else
15485 case $cross_compiling:$ac_tool_warned in
15486yes:)
15487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15488whose name does not start with the host triplet. If you think this
15489configuration is useful to you, please write to autoconf@gnu.org." >&5
15490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15491whose name does not start with the host triplet. If you think this
15492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15493ac_tool_warned=yes ;;
15494esac
15495 PKGCONFIG=$ac_pt_PKGCONFIG
15496 fi
15497else
15498 PKGCONFIG="$ac_cv_path_PKGCONFIG"
15499fi
15500
15501 if test "x$PKGCONFIG" != "xno"; then
15502 { echo "$as_me:$LINENO: checking if $PKGCONFIG knows about libedit" >&5
15503echo $ECHO_N "checking if $PKGCONFIG knows about libedit... $ECHO_C" >&6; }
15504 if "$PKGCONFIG" libedit; then
15505 { echo "$as_me:$LINENO: result: yes" >&5
15506echo "${ECHO_T}yes" >&6; }
15507 use_pkgconfig_for_libedit=yes
15508 else
15509 { echo "$as_me:$LINENO: result: no" >&5
15510echo "${ECHO_T}no" >&6; }
15511 fi
15512 fi
15513 else
15514 CPPFLAGS="$CPPFLAGS -I${withval}/include"
15515 if test -n "${need_dash_r}"; then
15516 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
15517 else
15518 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
15519 fi
15520 fi
15521 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
15522 LIBEDIT=`$PKGCONFIG --libs libedit`
15523 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
15524 else
15525 LIBEDIT="-ledit -lcurses"
15526 fi
15527 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
15528 { echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
15529echo $ECHO_N "checking for el_init in -ledit... $ECHO_C" >&6; }
15530if test "${ac_cv_lib_edit_el_init+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532else
15533 ac_check_lib_save_LIBS=$LIBS
15534LIBS="-ledit $OTHERLIBS
15535 $LIBS"
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542
15543/* Override any GCC internal prototype to avoid an error.
15544 Use char because int might match the return type of a GCC
15545 builtin and then its argument prototype would still apply. */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549char el_init ();
15550int
15551main ()
15552{
15553return el_init ();
15554 ;
15555 return 0;
15556}
15557_ACEOF
15558rm -f conftest.$ac_objext conftest$ac_exeext
15559if { (ac_try="$ac_link"
15560case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15563esac
15564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_link") 2>conftest.er1
15566 ac_status=$?
15567 grep -v '^ *+' conftest.er1 >conftest.err
15568 rm -f conftest.er1
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && {
15572 test -z "$ac_c_werror_flag" ||
15573 test ! -s conftest.err
15574 } && test -s conftest$ac_exeext &&
15575 $as_test_x conftest$ac_exeext; then
15576 ac_cv_lib_edit_el_init=yes
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_cv_lib_edit_el_init=no
15582fi
15583
15584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585 conftest$ac_exeext conftest.$ac_ext
15586LIBS=$ac_check_lib_save_LIBS
15587fi
15588{ echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
15589echo "${ECHO_T}$ac_cv_lib_edit_el_init" >&6; }
15590if test $ac_cv_lib_edit_el_init = yes; then
15591
15592cat >>confdefs.h <<\_ACEOF
15593#define USE_LIBEDIT 1
15594_ACEOF
15595
15596 LIBEDIT_MSG="yes"
15597
15598
15599else
15600 { { echo "$as_me:$LINENO: error: libedit not found" >&5
15601echo "$as_me: error: libedit not found" >&2;}
15602 { (exit 1); exit 1; }; }
15603fi
15604
15605 { echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
15606echo $ECHO_N "checking if libedit version is compatible... $ECHO_C" >&6; }
15607 cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613 #include <histedit.h>
15614int
15615main ()
15616{
15617
15618 int i = H_SETSIZE;
15619 el_init("", NULL, NULL, NULL);
15620 exit(0);
15621
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext
15627if { (ac_try="$ac_compile"
15628case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631esac
15632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_compile") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && {
15640 test -z "$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 } && test -s conftest.$ac_objext; then
15643 { echo "$as_me:$LINENO: result: yes" >&5
15644echo "${ECHO_T}yes" >&6; }
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 { echo "$as_me:$LINENO: result: no" >&5
15650echo "${ECHO_T}no" >&6; }
15651 { { echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
15652echo "$as_me: error: libedit version is not compatible" >&2;}
15653 { (exit 1); exit 1; }; }
15654
15655fi
15656
15657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658 fi
15659
15660fi
15661
15662
15663AUDIT_MODULE=none
15664
15665# Check whether --with-audit was given.
15666if test "${with_audit+set}" = set; then
15667 withval=$with_audit;
15668 { echo "$as_me:$LINENO: checking for supported audit module" >&5
15669echo $ECHO_N "checking for supported audit module... $ECHO_C" >&6; }
15670 case "$withval" in
15671 bsm)
15672 { echo "$as_me:$LINENO: result: bsm" >&5
15673echo "${ECHO_T}bsm" >&6; }
15674 AUDIT_MODULE=bsm
15675
15676for ac_header in bsm/audit.h
15677do
15678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15679{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
15684 cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690
15691#ifdef HAVE_TIME_H
15692# include <time.h>
15693#endif
15694
15695
15696
15697#include <$ac_header>
15698_ACEOF
15699rm -f conftest.$ac_objext
15700if { (ac_try="$ac_compile"
15701case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_compile") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest.$ac_objext; then
15716 eval "$as_ac_Header=yes"
15717else
15718 echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 eval "$as_ac_Header=no"
15722fi
15723
15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725fi
15726ac_res=`eval echo '${'$as_ac_Header'}'`
15727 { echo "$as_me:$LINENO: result: $ac_res" >&5
15728echo "${ECHO_T}$ac_res" >&6; }
15729if test `eval echo '${'$as_ac_Header'}'` = yes; then
15730 cat >>confdefs.h <<_ACEOF
15731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15732_ACEOF
15733
15734else
15735 { { echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
15736echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
15737 { (exit 1); exit 1; }; }
15738fi
15739
15740done
15741
15742
15743{ echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
15744echo $ECHO_N "checking for getaudit in -lbsm... $ECHO_C" >&6; }
15745if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747else
15748 ac_check_lib_save_LIBS=$LIBS
15749LIBS="-lbsm $LIBS"
15750cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756
15757/* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
15760#ifdef __cplusplus
15761extern "C"
15762#endif
15763char getaudit ();
15764int
15765main ()
15766{
15767return getaudit ();
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772rm -f conftest.$ac_objext conftest$ac_exeext
15773if { (ac_try="$ac_link"
15774case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15777esac
15778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_link") 2>conftest.er1
15780 ac_status=$?
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } && {
15786 test -z "$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest$ac_exeext &&
15789 $as_test_x conftest$ac_exeext; then
15790 ac_cv_lib_bsm_getaudit=yes
15791else
15792 echo "$as_me: failed program was:" >&5
15793sed 's/^/| /' conftest.$ac_ext >&5
15794
15795 ac_cv_lib_bsm_getaudit=no
15796fi
15797
15798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15799 conftest$ac_exeext conftest.$ac_ext
15800LIBS=$ac_check_lib_save_LIBS
15801fi
15802{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
15803echo "${ECHO_T}$ac_cv_lib_bsm_getaudit" >&6; }
15804if test $ac_cv_lib_bsm_getaudit = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806#define HAVE_LIBBSM 1
15807_ACEOF
15808
15809 LIBS="-lbsm $LIBS"
15810
15811else
15812 { { echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
15813echo "$as_me: error: BSM enabled and required library not found" >&2;}
15814 { (exit 1); exit 1; }; }
15815fi
15816
15817
15818for ac_func in getaudit
15819do
15820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826 cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15834#define $ac_func innocuous_$ac_func
15835
15836/* System header to define __stub macros and hopefully few prototypes,
15837 which can conflict with char $ac_func (); below.
15838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15839 <limits.h> exists even on freestanding compilers. */
15840
15841#ifdef __STDC__
15842# include <limits.h>
15843#else
15844# include <assert.h>
15845#endif
15846
15847#undef $ac_func
15848
15849/* Override any GCC internal prototype to avoid an error.
15850 Use char because int might match the return type of a GCC
15851 builtin and then its argument prototype would still apply. */
15852#ifdef __cplusplus
15853extern "C"
15854#endif
15855char $ac_func ();
15856/* The GNU C library defines this for functions which it implements
15857 to always fail with ENOSYS. Some functions are actually named
15858 something starting with __ and the normal name is an alias. */
15859#if defined __stub_$ac_func || defined __stub___$ac_func
15860choke me
15861#endif
15862
15863int
15864main ()
15865{
15866return $ac_func ();
15867 ;
15868 return 0;
15869}
15870_ACEOF
15871rm -f conftest.$ac_objext conftest$ac_exeext
15872if { (ac_try="$ac_link"
15873case "(($ac_try" in
15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15876esac
15877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15878 (eval "$ac_link") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest$ac_exeext &&
15888 $as_test_x conftest$ac_exeext; then
15889 eval "$as_ac_var=yes"
15890else
15891 echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 eval "$as_ac_var=no"
15895fi
15896
15897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15898 conftest$ac_exeext conftest.$ac_ext
15899fi
15900ac_res=`eval echo '${'$as_ac_var'}'`
15901 { echo "$as_me:$LINENO: result: $ac_res" >&5
15902echo "${ECHO_T}$ac_res" >&6; }
15903if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906_ACEOF
15907
15908else
15909 { { echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
15910echo "$as_me: error: BSM enabled and required function not found" >&2;}
15911 { (exit 1); exit 1; }; }
15912fi
15913done
15914
15915 # These are optional
15916
15917
15918for ac_func in getaudit_addr aug_get_machine
15919do
15920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15925else
15926 cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15934#define $ac_func innocuous_$ac_func
15935
15936/* System header to define __stub macros and hopefully few prototypes,
15937 which can conflict with char $ac_func (); below.
15938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15939 <limits.h> exists even on freestanding compilers. */
15940
15941#ifdef __STDC__
15942# include <limits.h>
15943#else
15944# include <assert.h>
15945#endif
15946
15947#undef $ac_func
15948
15949/* Override any GCC internal prototype to avoid an error.
15950 Use char because int might match the return type of a GCC
15951 builtin and then its argument prototype would still apply. */
15952#ifdef __cplusplus
15953extern "C"
15954#endif
15955char $ac_func ();
15956/* The GNU C library defines this for functions which it implements
15957 to always fail with ENOSYS. Some functions are actually named
15958 something starting with __ and the normal name is an alias. */
15959#if defined __stub_$ac_func || defined __stub___$ac_func
15960choke me
15961#endif
15962
15963int
15964main ()
15965{
15966return $ac_func ();
15967 ;
15968 return 0;
15969}
15970_ACEOF
15971rm -f conftest.$ac_objext conftest$ac_exeext
15972if { (ac_try="$ac_link"
15973case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976esac
15977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_link") 2>conftest.er1
15979 ac_status=$?
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } && {
15985 test -z "$ac_c_werror_flag" ||
15986 test ! -s conftest.err
15987 } && test -s conftest$ac_exeext &&
15988 $as_test_x conftest$ac_exeext; then
15989 eval "$as_ac_var=yes"
15990else
15991 echo "$as_me: failed program was:" >&5
15992sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 eval "$as_ac_var=no"
15995fi
15996
15997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15998 conftest$ac_exeext conftest.$ac_ext
15999fi
16000ac_res=`eval echo '${'$as_ac_var'}'`
16001 { echo "$as_me:$LINENO: result: $ac_res" >&5
16002echo "${ECHO_T}$ac_res" >&6; }
16003if test `eval echo '${'$as_ac_var'}'` = yes; then
16004 cat >>confdefs.h <<_ACEOF
16005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16006_ACEOF
16007
16008fi
16009done
16010
16011
16012cat >>confdefs.h <<\_ACEOF
16013#define USE_BSM_AUDIT 1
16014_ACEOF
16015
16016 if test "$sol2ver" -ge 11; then
16017 SSHDLIBS="$SSHDLIBS -lscf"
16018
16019cat >>confdefs.h <<\_ACEOF
16020#define BROKEN_BSM_API 1
16021_ACEOF
16022
16023 fi
16024 ;;
16025 linux)
16026 { echo "$as_me:$LINENO: result: linux" >&5
16027echo "${ECHO_T}linux" >&6; }
16028 AUDIT_MODULE=linux
16029
16030for ac_header in libaudit.h
16031do
16032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038fi
16039ac_res=`eval echo '${'$as_ac_Header'}'`
16040 { echo "$as_me:$LINENO: result: $ac_res" >&5
16041echo "${ECHO_T}$ac_res" >&6; }
16042else
16043 # Is the header compilable?
16044{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
16052$ac_includes_default
16053#include <$ac_header>
16054_ACEOF
16055rm -f conftest.$ac_objext
16056if { (ac_try="$ac_compile"
16057case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060esac
16061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_compile") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest.$ac_objext; then
16072 ac_header_compiler=yes
16073else
16074 echo "$as_me: failed program was:" >&5
16075sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 ac_header_compiler=no
16078fi
16079
16080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16082echo "${ECHO_T}$ac_header_compiler" >&6; }
16083
16084# Is the header present?
16085{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093#include <$ac_header>
16094_ACEOF
16095if { (ac_try="$ac_cpp conftest.$ac_ext"
16096case "(($ac_try" in
16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098 *) ac_try_echo=$ac_try;;
16099esac
16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } >/dev/null && {
16108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 }; then
16111 ac_header_preproc=yes
16112else
16113 echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ac_header_preproc=no
16117fi
16118
16119rm -f conftest.err conftest.$ac_ext
16120{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16121echo "${ECHO_T}$ac_header_preproc" >&6; }
16122
16123# So? What about this header?
16124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125 yes:no: )
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16130 ac_header_preproc=yes
16131 ;;
16132 no:yes:* )
16133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16145 ( cat <<\_ASBOX
16146## ------------------------------------------- ##
16147## Report this to openssh-unix-dev@mindrot.org ##
16148## ------------------------------------------- ##
16149_ASBOX
16150 ) | sed "s/^/$as_me: WARNING: /" >&2
16151 ;;
16152esac
16153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16157else
16158 eval "$as_ac_Header=\$ac_header_preproc"
16159fi
16160ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162echo "${ECHO_T}$ac_res" >&6; }
16163
16164fi
16165if test `eval echo '${'$as_ac_Header'}'` = yes; then
16166 cat >>confdefs.h <<_ACEOF
16167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168_ACEOF
16169
16170fi
16171
16172done
16173
16174 SSHDLIBS="$SSHDLIBS -laudit"
16175
16176cat >>confdefs.h <<\_ACEOF
16177#define USE_LINUX_AUDIT 1
16178_ACEOF
16179
16180 ;;
16181 debug)
16182 AUDIT_MODULE=debug
16183 { echo "$as_me:$LINENO: result: debug" >&5
16184echo "${ECHO_T}debug" >&6; }
16185
16186cat >>confdefs.h <<\_ACEOF
16187#define SSH_AUDIT_EVENTS 1
16188_ACEOF
16189
16190 ;;
16191 no)
16192 { echo "$as_me:$LINENO: result: no" >&5
16193echo "${ECHO_T}no" >&6; }
16194 ;;
16195 *)
16196 { { echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
16197echo "$as_me: error: Unknown audit module $withval" >&2;}
16198 { (exit 1); exit 1; }; }
16199 ;;
16200 esac
16201
16202fi
16203
16204
16205
16206# Check whether --with-pie was given.
16207if test "${with_pie+set}" = set; then
16208 withval=$with_pie;
16209 if test "x$withval" = "xno"; then
16210 use_pie=no
16211 fi
16212 if test "x$withval" = "xyes"; then
16213 use_pie=yes
16214 fi
16215
16216
16217fi
16218
16219if test "x$use_pie" = "x"; then
16220 use_pie=no
16221fi
16222if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then
16223 # Turn off automatic PIE when toolchain hardening is off.
16224 use_pie=no
16225fi
16226if test "x$use_pie" = "xauto"; then
16227 # Automatic PIE requires gcc >= 4.x
16228 { echo "$as_me:$LINENO: checking for gcc >= 4.x" >&5
16229echo $ECHO_N "checking for gcc >= 4.x... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236
16237#if !defined(__GNUC__) || __GNUC__ < 4
16238#error gcc is too old
16239#endif
16240
16241_ACEOF
16242rm -f conftest.$ac_objext
16243if { (ac_try="$ac_compile"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_compile") 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } && {
16256 test -z "$ac_c_werror_flag" ||
16257 test ! -s conftest.err
16258 } && test -s conftest.$ac_objext; then
16259 { echo "$as_me:$LINENO: result: yes" >&5
16260echo "${ECHO_T}yes" >&6; }
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 { echo "$as_me:$LINENO: result: no" >&5
16266echo "${ECHO_T}no" >&6; }
16267 use_pie=no
16268
16269fi
16270
16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272fi
16273if test "x$use_pie" != "xno"; then
16274 SAVED_CFLAGS="$CFLAGS"
16275 SAVED_LDFLAGS="$LDFLAGS"
16276 {
16277 { echo "$as_me:$LINENO: checking if $CC supports compile flag -fPIE" >&5
16278echo $ECHO_N "checking if $CC supports compile flag -fPIE... $ECHO_C" >&6; }
16279 saved_CFLAGS="$CFLAGS"
16280 CFLAGS="$CFLAGS $WERROR -fPIE"
16281 _define_flag=""
16282 test "x$_define_flag" = "x" && _define_flag="-fPIE"
16283 cat >conftest.$ac_ext <<_ACEOF
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289
16290#include <stdlib.h>
16291#include <stdio.h>
16292int main(int argc, char **argv) {
16293 /* Some math to catch -ftrapv problems in the toolchain */
16294 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16295 float l = i * 2.1;
16296 double m = l / 0.5;
16297 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16298 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16299 exit(0);
16300}
16301
16302_ACEOF
16303rm -f conftest.$ac_objext
16304if { (ac_try="$ac_compile"
16305case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_compile") 2>conftest.er1
16311 ac_status=$?
16312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); } && {
16317 test -z "$ac_c_werror_flag" ||
16318 test ! -s conftest.err
16319 } && test -s conftest.$ac_objext; then
16320
16321if `grep -i "unrecognized option" conftest.err >/dev/null`
16322then
16323 { echo "$as_me:$LINENO: result: no" >&5
16324echo "${ECHO_T}no" >&6; }
16325 CFLAGS="$saved_CFLAGS"
16326else
16327 { echo "$as_me:$LINENO: result: yes" >&5
16328echo "${ECHO_T}yes" >&6; }
16329 CFLAGS="$saved_CFLAGS $_define_flag"
16330fi
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 { echo "$as_me:$LINENO: result: no" >&5
16336echo "${ECHO_T}no" >&6; }
16337 CFLAGS="$saved_CFLAGS"
16338
16339fi
16340
16341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342}
16343 {
16344 { echo "$as_me:$LINENO: checking if $LD supports link flag -pie" >&5
16345echo $ECHO_N "checking if $LD supports link flag -pie... $ECHO_C" >&6; }
16346 saved_LDFLAGS="$LDFLAGS"
16347 LDFLAGS="$LDFLAGS $WERROR -pie"
16348 _define_flag=""
16349 test "x$_define_flag" = "x" && _define_flag="-pie"
16350 cat >conftest.$ac_ext <<_ACEOF
16351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
16356
16357#include <stdlib.h>
16358#include <stdio.h>
16359int main(int argc, char **argv) {
16360 /* Some math to catch -ftrapv problems in the toolchain */
16361 int i = 123 * argc, j = 456 + argc, k = 789 - argc;
16362 float l = i * 2.1;
16363 double m = l / 0.5;
16364 long long int n = argc * 12345LL, o = 12345LL * (long long int)argc;
16365 printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o);
16366 exit(0);
16367}
16368
16369_ACEOF
16370rm -f conftest.$ac_objext conftest$ac_exeext
16371if { (ac_try="$ac_link"
16372case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_link") 2>conftest.er1
16378 ac_status=$?
16379 grep -v '^ *+' conftest.er1 >conftest.err
16380 rm -f conftest.er1
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext &&
16387 $as_test_x conftest$ac_exeext; then
16388 { echo "$as_me:$LINENO: result: yes" >&5
16389echo "${ECHO_T}yes" >&6; }
16390 LDFLAGS="$saved_LDFLAGS $_define_flag"
16391else
16392 echo "$as_me: failed program was:" >&5
16393sed 's/^/| /' conftest.$ac_ext >&5
16394
16395 { echo "$as_me:$LINENO: result: no" >&5
16396echo "${ECHO_T}no" >&6; }
16397 LDFLAGS="$saved_LDFLAGS"
16398
16399fi
16400
16401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16403}
16404 # We use both -fPIE and -pie or neither.
16405 { echo "$as_me:$LINENO: checking whether both -fPIE and -pie are supported" >&5
16406echo $ECHO_N "checking whether both -fPIE and -pie are supported... $ECHO_C" >&6; }
16407 if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \
16408 echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then
16409 { echo "$as_me:$LINENO: result: yes" >&5
16410echo "${ECHO_T}yes" >&6; }
16411 else
16412 { echo "$as_me:$LINENO: result: no" >&5
16413echo "${ECHO_T}no" >&6; }
16414 CFLAGS="$SAVED_CFLAGS"
16415 LDFLAGS="$SAVED_LDFLAGS"
16416 fi
16417fi
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527for ac_func in \
16528 Blowfish_initstate \
16529 Blowfish_expandstate \
16530 Blowfish_expand0state \
16531 Blowfish_stream2word \
16532 asprintf \
16533 b64_ntop \
16534 __b64_ntop \
16535 b64_pton \
16536 __b64_pton \
16537 bcopy \
16538 bcrypt_pbkdf \
16539 bindresvport_sa \
16540 blf_enc \
16541 cap_rights_limit \
16542 clock \
16543 closefrom \
16544 dirfd \
16545 endgrent \
16546 explicit_bzero \
16547 fchmod \
16548 fchown \
16549 freeaddrinfo \
16550 fstatfs \
16551 fstatvfs \
16552 futimes \
16553 getaddrinfo \
16554 getcwd \
16555 getgrouplist \
16556 getnameinfo \
16557 getopt \
16558 getpeereid \
16559 getpeerucred \
16560 getpgid \
16561 getpgrp \
16562 _getpty \
16563 getrlimit \
16564 getttyent \
16565 glob \
16566 group_from_gid \
16567 inet_aton \
16568 inet_ntoa \
16569 inet_ntop \
16570 innetgr \
16571 login_getcapbool \
16572 mblen \
16573 md5_crypt \
16574 memmove \
16575 memset_s \
16576 mkdtemp \
16577 mmap \
16578 ngetaddrinfo \
16579 nsleep \
16580 ogetaddrinfo \
16581 openlog_r \
16582 poll \
16583 prctl \
16584 pstat \
16585 readpassphrase \
16586 reallocarray \
16587 recvmsg \
16588 rresvport_af \
16589 sendmsg \
16590 setdtablesize \
16591 setegid \
16592 setenv \
16593 seteuid \
16594 setgroupent \
16595 setgroups \
16596 setlinebuf \
16597 setlogin \
16598 setpassent\
16599 setpcred \
16600 setproctitle \
16601 setregid \
16602 setreuid \
16603 setrlimit \
16604 setsid \
16605 setvbuf \
16606 sigaction \
16607 sigvec \
16608 snprintf \
16609 socketpair \
16610 statfs \
16611 statvfs \
16612 strdup \
16613 strerror \
16614 strlcat \
16615 strlcpy \
16616 strmode \
16617 strnlen \
16618 strnvis \
16619 strptime \
16620 strtonum \
16621 strtoll \
16622 strtoul \
16623 strtoull \
16624 swap32 \
16625 sysconf \
16626 tcgetpgrp \
16627 timingsafe_bcmp \
16628 truncate \
16629 unsetenv \
16630 updwtmpx \
16631 user_from_uid \
16632 usleep \
16633 vasprintf \
16634 vsnprintf \
16635 waitpid \
16636
16637do
16638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16643else
16644 cat >conftest.$ac_ext <<_ACEOF
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
16650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652#define $ac_func innocuous_$ac_func
16653
16654/* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16658
16659#ifdef __STDC__
16660# include <limits.h>
16661#else
16662# include <assert.h>
16663#endif
16664
16665#undef $ac_func
16666
16667/* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16670#ifdef __cplusplus
16671extern "C"
16672#endif
16673char $ac_func ();
16674/* The GNU C library defines this for functions which it implements
16675 to always fail with ENOSYS. Some functions are actually named
16676 something starting with __ and the normal name is an alias. */
16677#if defined __stub_$ac_func || defined __stub___$ac_func
16678choke me
16679#endif
16680
16681int
16682main ()
16683{
16684return $ac_func ();
16685 ;
16686 return 0;
16687}
16688_ACEOF
16689rm -f conftest.$ac_objext conftest$ac_exeext
16690if { (ac_try="$ac_link"
16691case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694esac
16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_link") 2>conftest.er1
16697 ac_status=$?
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } && {
16703 test -z "$ac_c_werror_flag" ||
16704 test ! -s conftest.err
16705 } && test -s conftest$ac_exeext &&
16706 $as_test_x conftest$ac_exeext; then
16707 eval "$as_ac_var=yes"
16708else
16709 echo "$as_me: failed program was:" >&5
16710sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 eval "$as_ac_var=no"
16713fi
16714
16715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16716 conftest$ac_exeext conftest.$ac_ext
16717fi
16718ac_res=`eval echo '${'$as_ac_var'}'`
16719 { echo "$as_me:$LINENO: result: $ac_res" >&5
16720echo "${ECHO_T}$ac_res" >&6; }
16721if test `eval echo '${'$as_ac_var'}'` = yes; then
16722 cat >>confdefs.h <<_ACEOF
16723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16724_ACEOF
16725
16726fi
16727done
16728
16729
16730cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
16736 #include <ctype.h>
16737int
16738main ()
16739{
16740 return (isblank('a'));
16741 ;
16742 return 0;
16743}
16744_ACEOF
16745rm -f conftest.$ac_objext conftest$ac_exeext
16746if { (ac_try="$ac_link"
16747case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_link") 2>conftest.er1
16753 ac_status=$?
16754 grep -v '^ *+' conftest.er1 >conftest.err
16755 rm -f conftest.er1
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } && {
16759 test -z "$ac_c_werror_flag" ||
16760 test ! -s conftest.err
16761 } && test -s conftest$ac_exeext &&
16762 $as_test_x conftest$ac_exeext; then
16763
16764cat >>confdefs.h <<\_ACEOF
16765#define HAVE_ISBLANK 1
16766_ACEOF
16767
16768
16769else
16770 echo "$as_me: failed program was:" >&5
16771sed 's/^/| /' conftest.$ac_ext >&5
16772
16773
16774fi
16775
16776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16777 conftest$ac_exeext conftest.$ac_ext
16778
16779# PKCS11 depends on OpenSSL.
16780if test "x$openssl" = "xyes" ; then
16781 # PKCS#11 support requires dlopen() and co
16782 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16783echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16784if test "${ac_cv_search_dlopen+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786else
16787 ac_func_search_save_LIBS=$LIBS
16788cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794
16795/* Override any GCC internal prototype to avoid an error.
16796 Use char because int might match the return type of a GCC
16797 builtin and then its argument prototype would still apply. */
16798#ifdef __cplusplus
16799extern "C"
16800#endif
16801char dlopen ();
16802int
16803main ()
16804{
16805return dlopen ();
16806 ;
16807 return 0;
16808}
16809_ACEOF
16810for ac_lib in '' dl; do
16811 if test -z "$ac_lib"; then
16812 ac_res="none required"
16813 else
16814 ac_res=-l$ac_lib
16815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16816 fi
16817 rm -f conftest.$ac_objext conftest$ac_exeext
16818if { (ac_try="$ac_link"
16819case "(($ac_try" in
16820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16821 *) ac_try_echo=$ac_try;;
16822esac
16823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16824 (eval "$ac_link") 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } && {
16831 test -z "$ac_c_werror_flag" ||
16832 test ! -s conftest.err
16833 } && test -s conftest$ac_exeext &&
16834 $as_test_x conftest$ac_exeext; then
16835 ac_cv_search_dlopen=$ac_res
16836else
16837 echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840
16841fi
16842
16843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16844 conftest$ac_exeext
16845 if test "${ac_cv_search_dlopen+set}" = set; then
16846 break
16847fi
16848done
16849if test "${ac_cv_search_dlopen+set}" = set; then
16850 :
16851else
16852 ac_cv_search_dlopen=no
16853fi
16854rm conftest.$ac_ext
16855LIBS=$ac_func_search_save_LIBS
16856fi
16857{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16858echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16859ac_res=$ac_cv_search_dlopen
16860if test "$ac_res" != no; then
16861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16862
16863cat >>confdefs.h <<\_ACEOF
16864#define ENABLE_PKCS11
16865_ACEOF
16866
16867
16868fi
16869
16870fi
16871
16872# IRIX has a const char return value for gai_strerror()
16873
16874for ac_func in gai_strerror
16875do
16876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16877{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881else
16882 cat >conftest.$ac_ext <<_ACEOF
16883/* confdefs.h. */
16884_ACEOF
16885cat confdefs.h >>conftest.$ac_ext
16886cat >>conftest.$ac_ext <<_ACEOF
16887/* end confdefs.h. */
16888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16890#define $ac_func innocuous_$ac_func
16891
16892/* System header to define __stub macros and hopefully few prototypes,
16893 which can conflict with char $ac_func (); below.
16894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16895 <limits.h> exists even on freestanding compilers. */
16896
16897#ifdef __STDC__
16898# include <limits.h>
16899#else
16900# include <assert.h>
16901#endif
16902
16903#undef $ac_func
16904
16905/* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16908#ifdef __cplusplus
16909extern "C"
16910#endif
16911char $ac_func ();
16912/* The GNU C library defines this for functions which it implements
16913 to always fail with ENOSYS. Some functions are actually named
16914 something starting with __ and the normal name is an alias. */
16915#if defined __stub_$ac_func || defined __stub___$ac_func
16916choke me
16917#endif
16918
16919int
16920main ()
16921{
16922return $ac_func ();
16923 ;
16924 return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext conftest$ac_exeext
16928if { (ac_try="$ac_link"
16929case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_link") 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext &&
16944 $as_test_x conftest$ac_exeext; then
16945 eval "$as_ac_var=yes"
16946else
16947 echo "$as_me: failed program was:" >&5
16948sed 's/^/| /' conftest.$ac_ext >&5
16949
16950 eval "$as_ac_var=no"
16951fi
16952
16953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16955fi
16956ac_res=`eval echo '${'$as_ac_var'}'`
16957 { echo "$as_me:$LINENO: result: $ac_res" >&5
16958echo "${ECHO_T}$ac_res" >&6; }
16959if test `eval echo '${'$as_ac_var'}'` = yes; then
16960 cat >>confdefs.h <<_ACEOF
16961#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16962_ACEOF
16963
16964 cat >>confdefs.h <<\_ACEOF
16965#define HAVE_GAI_STRERROR 1
16966_ACEOF
16967
16968 cat >conftest.$ac_ext <<_ACEOF
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
16974
16975#include <sys/types.h>
16976#include <sys/socket.h>
16977#include <netdb.h>
16978
16979const char *gai_strerror(int);
16980
16981int
16982main ()
16983{
16984
16985 char *str;
16986 str = gai_strerror(0);
16987
16988 ;
16989 return 0;
16990}
16991_ACEOF
16992rm -f conftest.$ac_objext
16993if { (ac_try="$ac_compile"
16994case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_compile") 2>conftest.er1
17000 ac_status=$?
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } && {
17006 test -z "$ac_c_werror_flag" ||
17007 test ! -s conftest.err
17008 } && test -s conftest.$ac_objext; then
17009
17010
17011cat >>confdefs.h <<\_ACEOF
17012#define HAVE_CONST_GAI_STRERROR_PROTO 1
17013_ACEOF
17014
17015else
17016 echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019
17020fi
17021
17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023fi
17024done
17025
17026
17027{ echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17028echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17029if test "${ac_cv_search_nanosleep+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031else
17032 ac_func_search_save_LIBS=$LIBS
17033cat >conftest.$ac_ext <<_ACEOF
17034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
17039
17040/* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
17043#ifdef __cplusplus
17044extern "C"
17045#endif
17046char nanosleep ();
17047int
17048main ()
17049{
17050return nanosleep ();
17051 ;
17052 return 0;
17053}
17054_ACEOF
17055for ac_lib in '' rt posix4; do
17056 if test -z "$ac_lib"; then
17057 ac_res="none required"
17058 else
17059 ac_res=-l$ac_lib
17060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17061 fi
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063if { (ac_try="$ac_link"
17064case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_link") 2>conftest.er1
17070 ac_status=$?
17071 grep -v '^ *+' conftest.er1 >conftest.err
17072 rm -f conftest.er1
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && {
17076 test -z "$ac_c_werror_flag" ||
17077 test ! -s conftest.err
17078 } && test -s conftest$ac_exeext &&
17079 $as_test_x conftest$ac_exeext; then
17080 ac_cv_search_nanosleep=$ac_res
17081else
17082 echo "$as_me: failed program was:" >&5
17083sed 's/^/| /' conftest.$ac_ext >&5
17084
17085
17086fi
17087
17088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089 conftest$ac_exeext
17090 if test "${ac_cv_search_nanosleep+set}" = set; then
17091 break
17092fi
17093done
17094if test "${ac_cv_search_nanosleep+set}" = set; then
17095 :
17096else
17097 ac_cv_search_nanosleep=no
17098fi
17099rm conftest.$ac_ext
17100LIBS=$ac_func_search_save_LIBS
17101fi
17102{ echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17103echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17104ac_res=$ac_cv_search_nanosleep
17105if test "$ac_res" != no; then
17106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17107
17108cat >>confdefs.h <<\_ACEOF
17109#define HAVE_NANOSLEEP 1
17110_ACEOF
17111
17112fi
17113
17114
17115{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
17116echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
17117if test "${ac_cv_search_clock_gettime+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 ac_func_search_save_LIBS=$LIBS
17121cat >conftest.$ac_ext <<_ACEOF
17122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
17127
17128/* Override any GCC internal prototype to avoid an error.
17129 Use char because int might match the return type of a GCC
17130 builtin and then its argument prototype would still apply. */
17131#ifdef __cplusplus
17132extern "C"
17133#endif
17134char clock_gettime ();
17135int
17136main ()
17137{
17138return clock_gettime ();
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143for ac_lib in '' rt; do
17144 if test -z "$ac_lib"; then
17145 ac_res="none required"
17146 else
17147 ac_res=-l$ac_lib
17148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17149 fi
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151if { (ac_try="$ac_link"
17152case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17155esac
17156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_link") 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } && {
17164 test -z "$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17166 } && test -s conftest$ac_exeext &&
17167 $as_test_x conftest$ac_exeext; then
17168 ac_cv_search_clock_gettime=$ac_res
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
17173
17174fi
17175
17176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17177 conftest$ac_exeext
17178 if test "${ac_cv_search_clock_gettime+set}" = set; then
17179 break
17180fi
17181done
17182if test "${ac_cv_search_clock_gettime+set}" = set; then
17183 :
17184else
17185 ac_cv_search_clock_gettime=no
17186fi
17187rm conftest.$ac_ext
17188LIBS=$ac_func_search_save_LIBS
17189fi
17190{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
17191echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
17192ac_res=$ac_cv_search_clock_gettime
17193if test "$ac_res" != no; then
17194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17195
17196cat >>confdefs.h <<\_ACEOF
17197#define HAVE_CLOCK_GETTIME 1
17198_ACEOF
17199
17200fi
17201
17202
17203{ echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
17204echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6; }
17205if test "${ac_cv_have_decl_getrusage+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208 cat >conftest.$ac_ext <<_ACEOF
17209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
17214$ac_includes_default
17215int
17216main ()
17217{
17218#ifndef getrusage
17219 (void) getrusage;
17220#endif
17221
17222 ;
17223 return 0;
17224}
17225_ACEOF
17226rm -f conftest.$ac_objext
17227if { (ac_try="$ac_compile"
17228case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231esac
17232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_compile") 2>conftest.er1
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest.$ac_objext; then
17243 ac_cv_have_decl_getrusage=yes
17244else
17245 echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ac_cv_have_decl_getrusage=no
17249fi
17250
17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252fi
17253{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
17254echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6; }
17255if test $ac_cv_have_decl_getrusage = yes; then
17256
17257for ac_func in getrusage
17258do
17259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17264else
17265 cat >conftest.$ac_ext <<_ACEOF
17266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
17271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17273#define $ac_func innocuous_$ac_func
17274
17275/* System header to define __stub macros and hopefully few prototypes,
17276 which can conflict with char $ac_func (); below.
17277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17278 <limits.h> exists even on freestanding compilers. */
17279
17280#ifdef __STDC__
17281# include <limits.h>
17282#else
17283# include <assert.h>
17284#endif
17285
17286#undef $ac_func
17287
17288/* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17291#ifdef __cplusplus
17292extern "C"
17293#endif
17294char $ac_func ();
17295/* The GNU C library defines this for functions which it implements
17296 to always fail with ENOSYS. Some functions are actually named
17297 something starting with __ and the normal name is an alias. */
17298#if defined __stub_$ac_func || defined __stub___$ac_func
17299choke me
17300#endif
17301
17302int
17303main ()
17304{
17305return $ac_func ();
17306 ;
17307 return 0;
17308}
17309_ACEOF
17310rm -f conftest.$ac_objext conftest$ac_exeext
17311if { (ac_try="$ac_link"
17312case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315esac
17316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext &&
17327 $as_test_x conftest$ac_exeext; then
17328 eval "$as_ac_var=yes"
17329else
17330 echo "$as_me: failed program was:" >&5
17331sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 eval "$as_ac_var=no"
17334fi
17335
17336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17337 conftest$ac_exeext conftest.$ac_ext
17338fi
17339ac_res=`eval echo '${'$as_ac_var'}'`
17340 { echo "$as_me:$LINENO: result: $ac_res" >&5
17341echo "${ECHO_T}$ac_res" >&6; }
17342if test `eval echo '${'$as_ac_var'}'` = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17345_ACEOF
17346
17347fi
17348done
17349
17350fi
17351
17352{ echo "$as_me:$LINENO: checking whether strsep is declared" >&5
17353echo $ECHO_N "checking whether strsep is declared... $ECHO_C" >&6; }
17354if test "${ac_cv_have_decl_strsep+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17356else
17357 cat >conftest.$ac_ext <<_ACEOF
17358/* confdefs.h. */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h. */
17363
17364#ifdef HAVE_STRING_H
17365# include <string.h>
17366#endif
17367
17368
17369int
17370main ()
17371{
17372#ifndef strsep
17373 (void) strsep;
17374#endif
17375
17376 ;
17377 return 0;
17378}
17379_ACEOF
17380rm -f conftest.$ac_objext
17381if { (ac_try="$ac_compile"
17382case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17385esac
17386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_compile") 2>conftest.er1
17388 ac_status=$?
17389 grep -v '^ *+' conftest.er1 >conftest.err
17390 rm -f conftest.er1
17391 cat conftest.err >&5
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); } && {
17394 test -z "$ac_c_werror_flag" ||
17395 test ! -s conftest.err
17396 } && test -s conftest.$ac_objext; then
17397 ac_cv_have_decl_strsep=yes
17398else
17399 echo "$as_me: failed program was:" >&5
17400sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 ac_cv_have_decl_strsep=no
17403fi
17404
17405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406fi
17407{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
17408echo "${ECHO_T}$ac_cv_have_decl_strsep" >&6; }
17409if test $ac_cv_have_decl_strsep = yes; then
17410
17411for ac_func in strsep
17412do
17413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17416if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
17419 cat >conftest.$ac_ext <<_ACEOF
17420/* confdefs.h. */
17421_ACEOF
17422cat confdefs.h >>conftest.$ac_ext
17423cat >>conftest.$ac_ext <<_ACEOF
17424/* end confdefs.h. */
17425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17427#define $ac_func innocuous_$ac_func
17428
17429/* System header to define __stub macros and hopefully few prototypes,
17430 which can conflict with char $ac_func (); below.
17431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432 <limits.h> exists even on freestanding compilers. */
17433
17434#ifdef __STDC__
17435# include <limits.h>
17436#else
17437# include <assert.h>
17438#endif
17439
17440#undef $ac_func
17441
17442/* Override any GCC internal prototype to avoid an error.
17443 Use char because int might match the return type of a GCC
17444 builtin and then its argument prototype would still apply. */
17445#ifdef __cplusplus
17446extern "C"
17447#endif
17448char $ac_func ();
17449/* The GNU C library defines this for functions which it implements
17450 to always fail with ENOSYS. Some functions are actually named
17451 something starting with __ and the normal name is an alias. */
17452#if defined __stub_$ac_func || defined __stub___$ac_func
17453choke me
17454#endif
17455
17456int
17457main ()
17458{
17459return $ac_func ();
17460 ;
17461 return 0;
17462}
17463_ACEOF
17464rm -f conftest.$ac_objext conftest$ac_exeext
17465if { (ac_try="$ac_link"
17466case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469esac
17470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_link") 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } && {
17478 test -z "$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 } && test -s conftest$ac_exeext &&
17481 $as_test_x conftest$ac_exeext; then
17482 eval "$as_ac_var=yes"
17483else
17484 echo "$as_me: failed program was:" >&5
17485sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 eval "$as_ac_var=no"
17488fi
17489
17490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17491 conftest$ac_exeext conftest.$ac_ext
17492fi
17493ac_res=`eval echo '${'$as_ac_var'}'`
17494 { echo "$as_me:$LINENO: result: $ac_res" >&5
17495echo "${ECHO_T}$ac_res" >&6; }
17496if test `eval echo '${'$as_ac_var'}'` = yes; then
17497 cat >>confdefs.h <<_ACEOF
17498#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17499_ACEOF
17500
17501fi
17502done
17503
17504fi
17505
17506
17507{ echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
17508echo $ECHO_N "checking whether tcsendbreak is declared... $ECHO_C" >&6; }
17509if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17511else
17512 cat >conftest.$ac_ext <<_ACEOF
17513/* confdefs.h. */
17514_ACEOF
17515cat confdefs.h >>conftest.$ac_ext
17516cat >>conftest.$ac_ext <<_ACEOF
17517/* end confdefs.h. */
17518#include <termios.h>
17519
17520
17521int
17522main ()
17523{
17524#ifndef tcsendbreak
17525 (void) tcsendbreak;
17526#endif
17527
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext
17533if { (ac_try="$ac_compile"
17534case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17540 ac_status=$?
17541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest.$ac_objext; then
17549 ac_cv_have_decl_tcsendbreak=yes
17550else
17551 echo "$as_me: failed program was:" >&5
17552sed 's/^/| /' conftest.$ac_ext >&5
17553
17554 ac_cv_have_decl_tcsendbreak=no
17555fi
17556
17557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558fi
17559{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
17560echo "${ECHO_T}$ac_cv_have_decl_tcsendbreak" >&6; }
17561if test $ac_cv_have_decl_tcsendbreak = yes; then
17562 cat >>confdefs.h <<\_ACEOF
17563#define HAVE_TCSENDBREAK 1
17564_ACEOF
17565
17566else
17567
17568for ac_func in tcsendbreak
17569do
17570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17571{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576 cat >conftest.$ac_ext <<_ACEOF
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h. */
17582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17584#define $ac_func innocuous_$ac_func
17585
17586/* System header to define __stub macros and hopefully few prototypes,
17587 which can conflict with char $ac_func (); below.
17588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589 <limits.h> exists even on freestanding compilers. */
17590
17591#ifdef __STDC__
17592# include <limits.h>
17593#else
17594# include <assert.h>
17595#endif
17596
17597#undef $ac_func
17598
17599/* Override any GCC internal prototype to avoid an error.
17600 Use char because int might match the return type of a GCC
17601 builtin and then its argument prototype would still apply. */
17602#ifdef __cplusplus
17603extern "C"
17604#endif
17605char $ac_func ();
17606/* The GNU C library defines this for functions which it implements
17607 to always fail with ENOSYS. Some functions are actually named
17608 something starting with __ and the normal name is an alias. */
17609#if defined __stub_$ac_func || defined __stub___$ac_func
17610choke me
17611#endif
17612
17613int
17614main ()
17615{
17616return $ac_func ();
17617 ;
17618 return 0;
17619}
17620_ACEOF
17621rm -f conftest.$ac_objext conftest$ac_exeext
17622if { (ac_try="$ac_link"
17623case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_link") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && {
17635 test -z "$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17637 } && test -s conftest$ac_exeext &&
17638 $as_test_x conftest$ac_exeext; then
17639 eval "$as_ac_var=yes"
17640else
17641 echo "$as_me: failed program was:" >&5
17642sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 eval "$as_ac_var=no"
17645fi
17646
17647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17648 conftest$ac_exeext conftest.$ac_ext
17649fi
17650ac_res=`eval echo '${'$as_ac_var'}'`
17651 { echo "$as_me:$LINENO: result: $ac_res" >&5
17652echo "${ECHO_T}$ac_res" >&6; }
17653if test `eval echo '${'$as_ac_var'}'` = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17656_ACEOF
17657
17658fi
17659done
17660
17661fi
17662
17663
17664{ echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
17665echo $ECHO_N "checking whether h_errno is declared... $ECHO_C" >&6; }
17666if test "${ac_cv_have_decl_h_errno+set}" = set; then
17667 echo $ECHO_N "(cached) $ECHO_C" >&6
17668else
17669 cat >conftest.$ac_ext <<_ACEOF
17670/* confdefs.h. */
17671_ACEOF
17672cat confdefs.h >>conftest.$ac_ext
17673cat >>conftest.$ac_ext <<_ACEOF
17674/* end confdefs.h. */
17675#include <netdb.h>
17676
17677int
17678main ()
17679{
17680#ifndef h_errno
17681 (void) h_errno;
17682#endif
17683
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext
17689if { (ac_try="$ac_compile"
17690case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17693esac
17694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_compile") 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } && {
17702 test -z "$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17704 } && test -s conftest.$ac_objext; then
17705 ac_cv_have_decl_h_errno=yes
17706else
17707 echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 ac_cv_have_decl_h_errno=no
17711fi
17712
17713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17714fi
17715{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
17716echo "${ECHO_T}$ac_cv_have_decl_h_errno" >&6; }
17717if test $ac_cv_have_decl_h_errno = yes; then
17718
17719cat >>confdefs.h <<_ACEOF
17720#define HAVE_DECL_H_ERRNO 1
17721_ACEOF
17722
17723
17724else
17725 cat >>confdefs.h <<_ACEOF
17726#define HAVE_DECL_H_ERRNO 0
17727_ACEOF
17728
17729
17730fi
17731
17732
17733
17734{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
17735echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
17736if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738else
17739 cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745
17746#include <sys/types.h>
17747#include <sys/socket.h>
17748
17749
17750int
17751main ()
17752{
17753#ifndef SHUT_RD
17754 (void) SHUT_RD;
17755#endif
17756
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext
17762if { (ac_try="$ac_compile"
17763case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_compile") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && {
17775 test -z "$ac_c_werror_flag" ||
17776 test ! -s conftest.err
17777 } && test -s conftest.$ac_objext; then
17778 ac_cv_have_decl_SHUT_RD=yes
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 ac_cv_have_decl_SHUT_RD=no
17784fi
17785
17786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787fi
17788{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
17789echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
17790if test $ac_cv_have_decl_SHUT_RD = yes; then
17791
17792cat >>confdefs.h <<_ACEOF
17793#define HAVE_DECL_SHUT_RD 1
17794_ACEOF
17795
17796
17797else
17798 cat >>confdefs.h <<_ACEOF
17799#define HAVE_DECL_SHUT_RD 0
17800_ACEOF
17801
17802
17803fi
17804
17805
17806
17807{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
17808echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
17809if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811else
17812 cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h. */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
17818
17819#include <sys/types.h>
17820#ifdef HAVE_SYS_STAT_H
17821# include <sys/stat.h>
17822#endif
17823#ifdef HAVE_FCNTL_H
17824# include <fcntl.h>
17825#endif
17826
17827
17828int
17829main ()
17830{
17831#ifndef O_NONBLOCK
17832 (void) O_NONBLOCK;
17833#endif
17834
17835 ;
17836 return 0;
17837}
17838_ACEOF
17839rm -f conftest.$ac_objext
17840if { (ac_try="$ac_compile"
17841case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17844esac
17845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_compile") 2>conftest.er1
17847 ac_status=$?
17848 grep -v '^ *+' conftest.er1 >conftest.err
17849 rm -f conftest.er1
17850 cat conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } && {
17853 test -z "$ac_c_werror_flag" ||
17854 test ! -s conftest.err
17855 } && test -s conftest.$ac_objext; then
17856 ac_cv_have_decl_O_NONBLOCK=yes
17857else
17858 echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
17861 ac_cv_have_decl_O_NONBLOCK=no
17862fi
17863
17864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17865fi
17866{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
17867echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
17868if test $ac_cv_have_decl_O_NONBLOCK = yes; then
17869
17870cat >>confdefs.h <<_ACEOF
17871#define HAVE_DECL_O_NONBLOCK 1
17872_ACEOF
17873
17874
17875else
17876 cat >>confdefs.h <<_ACEOF
17877#define HAVE_DECL_O_NONBLOCK 0
17878_ACEOF
17879
17880
17881fi
17882
17883
17884
17885{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
17886echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
17887if test "${ac_cv_have_decl_writev+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17889else
17890 cat >conftest.$ac_ext <<_ACEOF
17891/* confdefs.h. */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h. */
17896
17897#include <sys/types.h>
17898#include <sys/uio.h>
17899#include <unistd.h>
17900
17901
17902int
17903main ()
17904{
17905#ifndef writev
17906 (void) writev;
17907#endif
17908
17909 ;
17910 return 0;
17911}
17912_ACEOF
17913rm -f conftest.$ac_objext
17914if { (ac_try="$ac_compile"
17915case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_compile") 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && {
17927 test -z "$ac_c_werror_flag" ||
17928 test ! -s conftest.err
17929 } && test -s conftest.$ac_objext; then
17930 ac_cv_have_decl_writev=yes
17931else
17932 echo "$as_me: failed program was:" >&5
17933sed 's/^/| /' conftest.$ac_ext >&5
17934
17935 ac_cv_have_decl_writev=no
17936fi
17937
17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939fi
17940{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
17941echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
17942if test $ac_cv_have_decl_writev = yes; then
17943
17944cat >>confdefs.h <<_ACEOF
17945#define HAVE_DECL_WRITEV 1
17946_ACEOF
17947
17948
17949else
17950 cat >>confdefs.h <<_ACEOF
17951#define HAVE_DECL_WRITEV 0
17952_ACEOF
17953
17954
17955fi
17956
17957
17958
17959{ echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
17960echo $ECHO_N "checking whether MAXSYMLINKS is declared... $ECHO_C" >&6; }
17961if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17963else
17964 cat >conftest.$ac_ext <<_ACEOF
17965/* confdefs.h. */
17966_ACEOF
17967cat confdefs.h >>conftest.$ac_ext
17968cat >>conftest.$ac_ext <<_ACEOF
17969/* end confdefs.h. */
17970
17971#include <sys/param.h>
17972
17973
17974int
17975main ()
17976{
17977#ifndef MAXSYMLINKS
17978 (void) MAXSYMLINKS;
17979#endif
17980
17981 ;
17982 return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext
17986if { (ac_try="$ac_compile"
17987case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_compile") 2>conftest.er1
17993 ac_status=$?
17994 grep -v '^ *+' conftest.er1 >conftest.err
17995 rm -f conftest.er1
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } && {
17999 test -z "$ac_c_werror_flag" ||
18000 test ! -s conftest.err
18001 } && test -s conftest.$ac_objext; then
18002 ac_cv_have_decl_MAXSYMLINKS=yes
18003else
18004 echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
18007 ac_cv_have_decl_MAXSYMLINKS=no
18008fi
18009
18010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011fi
18012{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
18013echo "${ECHO_T}$ac_cv_have_decl_MAXSYMLINKS" >&6; }
18014if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
18015
18016cat >>confdefs.h <<_ACEOF
18017#define HAVE_DECL_MAXSYMLINKS 1
18018_ACEOF
18019
18020
18021else
18022 cat >>confdefs.h <<_ACEOF
18023#define HAVE_DECL_MAXSYMLINKS 0
18024_ACEOF
18025
18026
18027fi
18028
18029
18030
18031{ echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
18032echo $ECHO_N "checking whether offsetof is declared... $ECHO_C" >&6; }
18033if test "${ac_cv_have_decl_offsetof+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18035else
18036 cat >conftest.$ac_ext <<_ACEOF
18037/* confdefs.h. */
18038_ACEOF
18039cat confdefs.h >>conftest.$ac_ext
18040cat >>conftest.$ac_ext <<_ACEOF
18041/* end confdefs.h. */
18042
18043#include <stddef.h>
18044
18045
18046int
18047main ()
18048{
18049#ifndef offsetof
18050 (void) offsetof;
18051#endif
18052
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext
18058if { (ac_try="$ac_compile"
18059case "(($ac_try" in
18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061 *) ac_try_echo=$ac_try;;
18062esac
18063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064 (eval "$ac_compile") 2>conftest.er1
18065 ac_status=$?
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } && {
18071 test -z "$ac_c_werror_flag" ||
18072 test ! -s conftest.err
18073 } && test -s conftest.$ac_objext; then
18074 ac_cv_have_decl_offsetof=yes
18075else
18076 echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 ac_cv_have_decl_offsetof=no
18080fi
18081
18082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18083fi
18084{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
18085echo "${ECHO_T}$ac_cv_have_decl_offsetof" >&6; }
18086if test $ac_cv_have_decl_offsetof = yes; then
18087
18088cat >>confdefs.h <<_ACEOF
18089#define HAVE_DECL_OFFSETOF 1
18090_ACEOF
18091
18092
18093else
18094 cat >>confdefs.h <<_ACEOF
18095#define HAVE_DECL_OFFSETOF 0
18096_ACEOF
18097
18098
18099fi
18100
18101
18102
18103# extra bits for select(2)
18104{ echo "$as_me:$LINENO: checking whether howmany is declared" >&5
18105echo $ECHO_N "checking whether howmany is declared... $ECHO_C" >&6; }
18106if test "${ac_cv_have_decl_howmany+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108else
18109 cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h. */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */
18115
18116#include <sys/param.h>
18117#include <sys/types.h>
18118#ifdef HAVE_SYS_SYSMACROS_H
18119#include <sys/sysmacros.h>
18120#endif
18121#ifdef HAVE_SYS_SELECT_H
18122#include <sys/select.h>
18123#endif
18124#ifdef HAVE_SYS_TIME_H
18125#include <sys/time.h>
18126#endif
18127#ifdef HAVE_UNISTD_H
18128#include <unistd.h>
18129#endif
18130
18131
18132int
18133main ()
18134{
18135#ifndef howmany
18136 (void) howmany;
18137#endif
18138
18139 ;
18140 return 0;
18141}
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (ac_try="$ac_compile"
18145case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18148esac
18149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_compile") 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest.$ac_objext; then
18160 ac_cv_have_decl_howmany=yes
18161else
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_cv_have_decl_howmany=no
18166fi
18167
18168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169fi
18170{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_howmany" >&5
18171echo "${ECHO_T}$ac_cv_have_decl_howmany" >&6; }
18172if test $ac_cv_have_decl_howmany = yes; then
18173
18174cat >>confdefs.h <<_ACEOF
18175#define HAVE_DECL_HOWMANY 1
18176_ACEOF
18177
18178
18179else
18180 cat >>confdefs.h <<_ACEOF
18181#define HAVE_DECL_HOWMANY 0
18182_ACEOF
18183
18184
18185fi
18186{ echo "$as_me:$LINENO: checking whether NFDBITS is declared" >&5
18187echo $ECHO_N "checking whether NFDBITS is declared... $ECHO_C" >&6; }
18188if test "${ac_cv_have_decl_NFDBITS+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190else
18191 cat >conftest.$ac_ext <<_ACEOF
18192/* confdefs.h. */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h. */
18197
18198#include <sys/param.h>
18199#include <sys/types.h>
18200#ifdef HAVE_SYS_SYSMACROS_H
18201#include <sys/sysmacros.h>
18202#endif
18203#ifdef HAVE_SYS_SELECT_H
18204#include <sys/select.h>
18205#endif
18206#ifdef HAVE_SYS_TIME_H
18207#include <sys/time.h>
18208#endif
18209#ifdef HAVE_UNISTD_H
18210#include <unistd.h>
18211#endif
18212
18213
18214int
18215main ()
18216{
18217#ifndef NFDBITS
18218 (void) NFDBITS;
18219#endif
18220
18221 ;
18222 return 0;
18223}
18224_ACEOF
18225rm -f conftest.$ac_objext
18226if { (ac_try="$ac_compile"
18227case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18230esac
18231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232 (eval "$ac_compile") 2>conftest.er1
18233 ac_status=$?
18234 grep -v '^ *+' conftest.er1 >conftest.err
18235 rm -f conftest.er1
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } && {
18239 test -z "$ac_c_werror_flag" ||
18240 test ! -s conftest.err
18241 } && test -s conftest.$ac_objext; then
18242 ac_cv_have_decl_NFDBITS=yes
18243else
18244 echo "$as_me: failed program was:" >&5
18245sed 's/^/| /' conftest.$ac_ext >&5
18246
18247 ac_cv_have_decl_NFDBITS=no
18248fi
18249
18250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251fi
18252{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_NFDBITS" >&5
18253echo "${ECHO_T}$ac_cv_have_decl_NFDBITS" >&6; }
18254if test $ac_cv_have_decl_NFDBITS = yes; then
18255
18256cat >>confdefs.h <<_ACEOF
18257#define HAVE_DECL_NFDBITS 1
18258_ACEOF
18259
18260
18261else
18262 cat >>confdefs.h <<_ACEOF
18263#define HAVE_DECL_NFDBITS 0
18264_ACEOF
18265
18266
18267fi
18268
18269
18270{ echo "$as_me:$LINENO: checking for fd_mask" >&5
18271echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6; }
18272if test "${ac_cv_type_fd_mask+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18274else
18275 cat >conftest.$ac_ext <<_ACEOF
18276/* confdefs.h. */
18277_ACEOF
18278cat confdefs.h >>conftest.$ac_ext
18279cat >>conftest.$ac_ext <<_ACEOF
18280/* end confdefs.h. */
18281
18282#include <sys/param.h>
18283#include <sys/types.h>
18284#ifdef HAVE_SYS_SELECT_H
18285#include <sys/select.h>
18286#endif
18287#ifdef HAVE_SYS_TIME_H
18288#include <sys/time.h>
18289#endif
18290#ifdef HAVE_UNISTD_H
18291#include <unistd.h>
18292#endif
18293
18294
18295typedef fd_mask ac__type_new_;
18296int
18297main ()
18298{
18299if ((ac__type_new_ *) 0)
18300 return 0;
18301if (sizeof (ac__type_new_))
18302 return 0;
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext
18308if { (ac_try="$ac_compile"
18309case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18312esac
18313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_compile") 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } && {
18321 test -z "$ac_c_werror_flag" ||
18322 test ! -s conftest.err
18323 } && test -s conftest.$ac_objext; then
18324 ac_cv_type_fd_mask=yes
18325else
18326 echo "$as_me: failed program was:" >&5
18327sed 's/^/| /' conftest.$ac_ext >&5
18328
18329 ac_cv_type_fd_mask=no
18330fi
18331
18332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333fi
18334{ echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
18335echo "${ECHO_T}$ac_cv_type_fd_mask" >&6; }
18336if test $ac_cv_type_fd_mask = yes; then
18337
18338cat >>confdefs.h <<_ACEOF
18339#define HAVE_FD_MASK 1
18340_ACEOF
18341
18342
18343fi
18344
18345
18346
18347for ac_func in setresuid
18348do
18349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18350{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18353 echo $ECHO_N "(cached) $ECHO_C" >&6
18354else
18355 cat >conftest.$ac_ext <<_ACEOF
18356/* confdefs.h. */
18357_ACEOF
18358cat confdefs.h >>conftest.$ac_ext
18359cat >>conftest.$ac_ext <<_ACEOF
18360/* end confdefs.h. */
18361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18363#define $ac_func innocuous_$ac_func
18364
18365/* System header to define __stub macros and hopefully few prototypes,
18366 which can conflict with char $ac_func (); below.
18367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18368 <limits.h> exists even on freestanding compilers. */
18369
18370#ifdef __STDC__
18371# include <limits.h>
18372#else
18373# include <assert.h>
18374#endif
18375
18376#undef $ac_func
18377
18378/* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18381#ifdef __cplusplus
18382extern "C"
18383#endif
18384char $ac_func ();
18385/* The GNU C library defines this for functions which it implements
18386 to always fail with ENOSYS. Some functions are actually named
18387 something starting with __ and the normal name is an alias. */
18388#if defined __stub_$ac_func || defined __stub___$ac_func
18389choke me
18390#endif
18391
18392int
18393main ()
18394{
18395return $ac_func ();
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext conftest$ac_exeext
18401if { (ac_try="$ac_link"
18402case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18405esac
18406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_link") 2>conftest.er1
18408 ac_status=$?
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } && {
18414 test -z "$ac_c_werror_flag" ||
18415 test ! -s conftest.err
18416 } && test -s conftest$ac_exeext &&
18417 $as_test_x conftest$ac_exeext; then
18418 eval "$as_ac_var=yes"
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 eval "$as_ac_var=no"
18424fi
18425
18426rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18427 conftest$ac_exeext conftest.$ac_ext
18428fi
18429ac_res=`eval echo '${'$as_ac_var'}'`
18430 { echo "$as_me:$LINENO: result: $ac_res" >&5
18431echo "${ECHO_T}$ac_res" >&6; }
18432if test `eval echo '${'$as_ac_var'}'` = yes; then
18433 cat >>confdefs.h <<_ACEOF
18434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18435_ACEOF
18436
18437 { echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
18438echo $ECHO_N "checking if setresuid seems to work... $ECHO_C" >&6; }
18439 if test "$cross_compiling" = yes; then
18440 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18441echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18442
18443else
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450
18451#include <stdlib.h>
18452#include <errno.h>
18453
18454int
18455main ()
18456{
18457
18458 errno=0;
18459 setresuid(0,0,0);
18460 if (errno==ENOSYS)
18461 exit(1);
18462 else
18463 exit(0);
18464
18465 ;
18466 return 0;
18467}
18468_ACEOF
18469rm -f conftest$ac_exeext
18470if { (ac_try="$ac_link"
18471case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_link") 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18480 { (case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18483esac
18484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_try") 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; }; then
18489 { echo "$as_me:$LINENO: result: yes" >&5
18490echo "${ECHO_T}yes" >&6; }
18491else
18492 echo "$as_me: program exited with status $ac_status" >&5
18493echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496( exit $ac_status )
18497
18498cat >>confdefs.h <<\_ACEOF
18499#define BROKEN_SETRESUID 1
18500_ACEOF
18501
18502 { echo "$as_me:$LINENO: result: not implemented" >&5
18503echo "${ECHO_T}not implemented" >&6; }
18504fi
18505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18506fi
18507
18508
18509
18510fi
18511done
18512
18513
18514
18515for ac_func in setresgid
18516do
18517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18522else
18523 cat >conftest.$ac_ext <<_ACEOF
18524/* confdefs.h. */
18525_ACEOF
18526cat confdefs.h >>conftest.$ac_ext
18527cat >>conftest.$ac_ext <<_ACEOF
18528/* end confdefs.h. */
18529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18531#define $ac_func innocuous_$ac_func
18532
18533/* System header to define __stub macros and hopefully few prototypes,
18534 which can conflict with char $ac_func (); below.
18535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18536 <limits.h> exists even on freestanding compilers. */
18537
18538#ifdef __STDC__
18539# include <limits.h>
18540#else
18541# include <assert.h>
18542#endif
18543
18544#undef $ac_func
18545
18546/* Override any GCC internal prototype to avoid an error.
18547 Use char because int might match the return type of a GCC
18548 builtin and then its argument prototype would still apply. */
18549#ifdef __cplusplus
18550extern "C"
18551#endif
18552char $ac_func ();
18553/* The GNU C library defines this for functions which it implements
18554 to always fail with ENOSYS. Some functions are actually named
18555 something starting with __ and the normal name is an alias. */
18556#if defined __stub_$ac_func || defined __stub___$ac_func
18557choke me
18558#endif
18559
18560int
18561main ()
18562{
18563return $ac_func ();
18564 ;
18565 return 0;
18566}
18567_ACEOF
18568rm -f conftest.$ac_objext conftest$ac_exeext
18569if { (ac_try="$ac_link"
18570case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18573esac
18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_link") 2>conftest.er1
18576 ac_status=$?
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest$ac_exeext &&
18585 $as_test_x conftest$ac_exeext; then
18586 eval "$as_ac_var=yes"
18587else
18588 echo "$as_me: failed program was:" >&5
18589sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 eval "$as_ac_var=no"
18592fi
18593
18594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18596fi
18597ac_res=`eval echo '${'$as_ac_var'}'`
18598 { echo "$as_me:$LINENO: result: $ac_res" >&5
18599echo "${ECHO_T}$ac_res" >&6; }
18600if test `eval echo '${'$as_ac_var'}'` = yes; then
18601 cat >>confdefs.h <<_ACEOF
18602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18603_ACEOF
18604
18605 { echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
18606echo $ECHO_N "checking if setresgid seems to work... $ECHO_C" >&6; }
18607 if test "$cross_compiling" = yes; then
18608 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
18609echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
18610
18611else
18612 cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618
18619#include <stdlib.h>
18620#include <errno.h>
18621
18622int
18623main ()
18624{
18625
18626 errno=0;
18627 setresgid(0,0,0);
18628 if (errno==ENOSYS)
18629 exit(1);
18630 else
18631 exit(0);
18632
18633 ;
18634 return 0;
18635}
18636_ACEOF
18637rm -f conftest$ac_exeext
18638if { (ac_try="$ac_link"
18639case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18642esac
18643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 { echo "$as_me:$LINENO: result: yes" >&5
18658echo "${ECHO_T}yes" >&6; }
18659else
18660 echo "$as_me: program exited with status $ac_status" >&5
18661echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664( exit $ac_status )
18665
18666cat >>confdefs.h <<\_ACEOF
18667#define BROKEN_SETRESGID 1
18668_ACEOF
18669
18670 { echo "$as_me:$LINENO: result: not implemented" >&5
18671echo "${ECHO_T}not implemented" >&6; }
18672fi
18673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18674fi
18675
18676
18677
18678fi
18679done
18680
18681
18682
18683for ac_func in realpath
18684do
18685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691 cat >conftest.$ac_ext <<_ACEOF
18692/* confdefs.h. */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h. */
18697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18699#define $ac_func innocuous_$ac_func
18700
18701/* System header to define __stub macros and hopefully few prototypes,
18702 which can conflict with char $ac_func (); below.
18703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18704 <limits.h> exists even on freestanding compilers. */
18705
18706#ifdef __STDC__
18707# include <limits.h>
18708#else
18709# include <assert.h>
18710#endif
18711
18712#undef $ac_func
18713
18714/* Override any GCC internal prototype to avoid an error.
18715 Use char because int might match the return type of a GCC
18716 builtin and then its argument prototype would still apply. */
18717#ifdef __cplusplus
18718extern "C"
18719#endif
18720char $ac_func ();
18721/* The GNU C library defines this for functions which it implements
18722 to always fail with ENOSYS. Some functions are actually named
18723 something starting with __ and the normal name is an alias. */
18724#if defined __stub_$ac_func || defined __stub___$ac_func
18725choke me
18726#endif
18727
18728int
18729main ()
18730{
18731return $ac_func ();
18732 ;
18733 return 0;
18734}
18735_ACEOF
18736rm -f conftest.$ac_objext conftest$ac_exeext
18737if { (ac_try="$ac_link"
18738case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741esac
18742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_link") 2>conftest.er1
18744 ac_status=$?
18745 grep -v '^ *+' conftest.er1 >conftest.err
18746 rm -f conftest.er1
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } && {
18750 test -z "$ac_c_werror_flag" ||
18751 test ! -s conftest.err
18752 } && test -s conftest$ac_exeext &&
18753 $as_test_x conftest$ac_exeext; then
18754 eval "$as_ac_var=yes"
18755else
18756 echo "$as_me: failed program was:" >&5
18757sed 's/^/| /' conftest.$ac_ext >&5
18758
18759 eval "$as_ac_var=no"
18760fi
18761
18762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18763 conftest$ac_exeext conftest.$ac_ext
18764fi
18765ac_res=`eval echo '${'$as_ac_var'}'`
18766 { echo "$as_me:$LINENO: result: $ac_res" >&5
18767echo "${ECHO_T}$ac_res" >&6; }
18768if test `eval echo '${'$as_ac_var'}'` = yes; then
18769 cat >>confdefs.h <<_ACEOF
18770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18771_ACEOF
18772
18773 { echo "$as_me:$LINENO: checking if realpath works with non-existent files" >&5
18774echo $ECHO_N "checking if realpath works with non-existent files... $ECHO_C" >&6; }
18775 if test "$cross_compiling" = yes; then
18776 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming working" >&5
18777echo "$as_me: WARNING: cross compiling: assuming working" >&2;}
18778
18779else
18780 cat >conftest.$ac_ext <<_ACEOF
18781/* confdefs.h. */
18782_ACEOF
18783cat confdefs.h >>conftest.$ac_ext
18784cat >>conftest.$ac_ext <<_ACEOF
18785/* end confdefs.h. */
18786
18787#include <limits.h>
18788#include <stdlib.h>
18789#include <errno.h>
18790
18791int
18792main ()
18793{
18794
18795 char buf[PATH_MAX];
18796 if (realpath("/opensshnonexistentfilename1234", buf) == NULL)
18797 if (errno == ENOENT)
18798 exit(1);
18799 exit(0);
18800
18801 ;
18802 return 0;
18803}
18804_ACEOF
18805rm -f conftest$ac_exeext
18806if { (ac_try="$ac_link"
18807case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_link") 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18816 { (case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18819esac
18820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_try") 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18825 { echo "$as_me:$LINENO: result: yes" >&5
18826echo "${ECHO_T}yes" >&6; }
18827else
18828 echo "$as_me: program exited with status $ac_status" >&5
18829echo "$as_me: failed program was:" >&5
18830sed 's/^/| /' conftest.$ac_ext >&5
18831
18832( exit $ac_status )
18833
18834cat >>confdefs.h <<\_ACEOF
18835#define BROKEN_REALPATH 1
18836_ACEOF
18837
18838 { echo "$as_me:$LINENO: result: no" >&5
18839echo "${ECHO_T}no" >&6; }
18840fi
18841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18842fi
18843
18844
18845
18846fi
18847done
18848
18849
18850
18851
18852for ac_func in gettimeofday time
18853do
18854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18857if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859else
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18868#define $ac_func innocuous_$ac_func
18869
18870/* System header to define __stub macros and hopefully few prototypes,
18871 which can conflict with char $ac_func (); below.
18872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18873 <limits.h> exists even on freestanding compilers. */
18874
18875#ifdef __STDC__
18876# include <limits.h>
18877#else
18878# include <assert.h>
18879#endif
18880
18881#undef $ac_func
18882
18883/* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18886#ifdef __cplusplus
18887extern "C"
18888#endif
18889char $ac_func ();
18890/* The GNU C library defines this for functions which it implements
18891 to always fail with ENOSYS. Some functions are actually named
18892 something starting with __ and the normal name is an alias. */
18893#if defined __stub_$ac_func || defined __stub___$ac_func
18894choke me
18895#endif
18896
18897int
18898main ()
18899{
18900return $ac_func ();
18901 ;
18902 return 0;
18903}
18904_ACEOF
18905rm -f conftest.$ac_objext conftest$ac_exeext
18906if { (ac_try="$ac_link"
18907case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18910esac
18911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } && {
18919 test -z "$ac_c_werror_flag" ||
18920 test ! -s conftest.err
18921 } && test -s conftest$ac_exeext &&
18922 $as_test_x conftest$ac_exeext; then
18923 eval "$as_ac_var=yes"
18924else
18925 echo "$as_me: failed program was:" >&5
18926sed 's/^/| /' conftest.$ac_ext >&5
18927
18928 eval "$as_ac_var=no"
18929fi
18930
18931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18932 conftest$ac_exeext conftest.$ac_ext
18933fi
18934ac_res=`eval echo '${'$as_ac_var'}'`
18935 { echo "$as_me:$LINENO: result: $ac_res" >&5
18936echo "${ECHO_T}$ac_res" >&6; }
18937if test `eval echo '${'$as_ac_var'}'` = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18940_ACEOF
18941
18942fi
18943done
18944
18945
18946
18947
18948
18949
18950
18951for ac_func in endutent getutent getutid getutline pututline setutent
18952do
18953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18956if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18958else
18959 cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18967#define $ac_func innocuous_$ac_func
18968
18969/* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char $ac_func (); below.
18971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972 <limits.h> exists even on freestanding compilers. */
18973
18974#ifdef __STDC__
18975# include <limits.h>
18976#else
18977# include <assert.h>
18978#endif
18979
18980#undef $ac_func
18981
18982/* Override any GCC internal prototype to avoid an error.
18983 Use char because int might match the return type of a GCC
18984 builtin and then its argument prototype would still apply. */
18985#ifdef __cplusplus
18986extern "C"
18987#endif
18988char $ac_func ();
18989/* The GNU C library defines this for functions which it implements
18990 to always fail with ENOSYS. Some functions are actually named
18991 something starting with __ and the normal name is an alias. */
18992#if defined __stub_$ac_func || defined __stub___$ac_func
18993choke me
18994#endif
18995
18996int
18997main ()
18998{
18999return $ac_func ();
19000 ;
19001 return 0;
19002}
19003_ACEOF
19004rm -f conftest.$ac_objext conftest$ac_exeext
19005if { (ac_try="$ac_link"
19006case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009esac
19010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19012 ac_status=$?
19013 grep -v '^ *+' conftest.er1 >conftest.err
19014 rm -f conftest.er1
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && {
19018 test -z "$ac_c_werror_flag" ||
19019 test ! -s conftest.err
19020 } && test -s conftest$ac_exeext &&
19021 $as_test_x conftest$ac_exeext; then
19022 eval "$as_ac_var=yes"
19023else
19024 echo "$as_me: failed program was:" >&5
19025sed 's/^/| /' conftest.$ac_ext >&5
19026
19027 eval "$as_ac_var=no"
19028fi
19029
19030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19031 conftest$ac_exeext conftest.$ac_ext
19032fi
19033ac_res=`eval echo '${'$as_ac_var'}'`
19034 { echo "$as_me:$LINENO: result: $ac_res" >&5
19035echo "${ECHO_T}$ac_res" >&6; }
19036if test `eval echo '${'$as_ac_var'}'` = yes; then
19037 cat >>confdefs.h <<_ACEOF
19038#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19039_ACEOF
19040
19041fi
19042done
19043
19044
19045for ac_func in utmpname
19046do
19047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19051 echo $ECHO_N "(cached) $ECHO_C" >&6
19052else
19053 cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
19059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19061#define $ac_func innocuous_$ac_func
19062
19063/* System header to define __stub macros and hopefully few prototypes,
19064 which can conflict with char $ac_func (); below.
19065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19066 <limits.h> exists even on freestanding compilers. */
19067
19068#ifdef __STDC__
19069# include <limits.h>
19070#else
19071# include <assert.h>
19072#endif
19073
19074#undef $ac_func
19075
19076/* Override any GCC internal prototype to avoid an error.
19077 Use char because int might match the return type of a GCC
19078 builtin and then its argument prototype would still apply. */
19079#ifdef __cplusplus
19080extern "C"
19081#endif
19082char $ac_func ();
19083/* The GNU C library defines this for functions which it implements
19084 to always fail with ENOSYS. Some functions are actually named
19085 something starting with __ and the normal name is an alias. */
19086#if defined __stub_$ac_func || defined __stub___$ac_func
19087choke me
19088#endif
19089
19090int
19091main ()
19092{
19093return $ac_func ();
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext conftest$ac_exeext
19099if { (ac_try="$ac_link"
19100case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103esac
19104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_link") 2>conftest.er1
19106 ac_status=$?
19107 grep -v '^ *+' conftest.er1 >conftest.err
19108 rm -f conftest.er1
19109 cat conftest.err >&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); } && {
19112 test -z "$ac_c_werror_flag" ||
19113 test ! -s conftest.err
19114 } && test -s conftest$ac_exeext &&
19115 $as_test_x conftest$ac_exeext; then
19116 eval "$as_ac_var=yes"
19117else
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 eval "$as_ac_var=no"
19122fi
19123
19124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19125 conftest$ac_exeext conftest.$ac_ext
19126fi
19127ac_res=`eval echo '${'$as_ac_var'}'`
19128 { echo "$as_me:$LINENO: result: $ac_res" >&5
19129echo "${ECHO_T}$ac_res" >&6; }
19130if test `eval echo '${'$as_ac_var'}'` = yes; then
19131 cat >>confdefs.h <<_ACEOF
19132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19133_ACEOF
19134
19135fi
19136done
19137
19138
19139
19140
19141
19142
19143
19144for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
19145do
19146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19147{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19160#define $ac_func innocuous_$ac_func
19161
19162/* System header to define __stub macros and hopefully few prototypes,
19163 which can conflict with char $ac_func (); below.
19164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19165 <limits.h> exists even on freestanding compilers. */
19166
19167#ifdef __STDC__
19168# include <limits.h>
19169#else
19170# include <assert.h>
19171#endif
19172
19173#undef $ac_func
19174
19175/* Override any GCC internal prototype to avoid an error.
19176 Use char because int might match the return type of a GCC
19177 builtin and then its argument prototype would still apply. */
19178#ifdef __cplusplus
19179extern "C"
19180#endif
19181char $ac_func ();
19182/* The GNU C library defines this for functions which it implements
19183 to always fail with ENOSYS. Some functions are actually named
19184 something starting with __ and the normal name is an alias. */
19185#if defined __stub_$ac_func || defined __stub___$ac_func
19186choke me
19187#endif
19188
19189int
19190main ()
19191{
19192return $ac_func ();
19193 ;
19194 return 0;
19195}
19196_ACEOF
19197rm -f conftest.$ac_objext conftest$ac_exeext
19198if { (ac_try="$ac_link"
19199case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19202esac
19203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_link") 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } && {
19211 test -z "$ac_c_werror_flag" ||
19212 test ! -s conftest.err
19213 } && test -s conftest$ac_exeext &&
19214 $as_test_x conftest$ac_exeext; then
19215 eval "$as_ac_var=yes"
19216else
19217 echo "$as_me: failed program was:" >&5
19218sed 's/^/| /' conftest.$ac_ext >&5
19219
19220 eval "$as_ac_var=no"
19221fi
19222
19223rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19224 conftest$ac_exeext conftest.$ac_ext
19225fi
19226ac_res=`eval echo '${'$as_ac_var'}'`
19227 { echo "$as_me:$LINENO: result: $ac_res" >&5
19228echo "${ECHO_T}$ac_res" >&6; }
19229if test `eval echo '${'$as_ac_var'}'` = yes; then
19230 cat >>confdefs.h <<_ACEOF
19231#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19232_ACEOF
19233
19234fi
19235done
19236
19237
19238
19239
19240for ac_func in setutxdb setutxent utmpxname
19241do
19242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19247else
19248 cat >conftest.$ac_ext <<_ACEOF
19249/* confdefs.h. */
19250_ACEOF
19251cat confdefs.h >>conftest.$ac_ext
19252cat >>conftest.$ac_ext <<_ACEOF
19253/* end confdefs.h. */
19254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19256#define $ac_func innocuous_$ac_func
19257
19258/* System header to define __stub macros and hopefully few prototypes,
19259 which can conflict with char $ac_func (); below.
19260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19261 <limits.h> exists even on freestanding compilers. */
19262
19263#ifdef __STDC__
19264# include <limits.h>
19265#else
19266# include <assert.h>
19267#endif
19268
19269#undef $ac_func
19270
19271/* Override any GCC internal prototype to avoid an error.
19272 Use char because int might match the return type of a GCC
19273 builtin and then its argument prototype would still apply. */
19274#ifdef __cplusplus
19275extern "C"
19276#endif
19277char $ac_func ();
19278/* The GNU C library defines this for functions which it implements
19279 to always fail with ENOSYS. Some functions are actually named
19280 something starting with __ and the normal name is an alias. */
19281#if defined __stub_$ac_func || defined __stub___$ac_func
19282choke me
19283#endif
19284
19285int
19286main ()
19287{
19288return $ac_func ();
19289 ;
19290 return 0;
19291}
19292_ACEOF
19293rm -f conftest.$ac_objext conftest$ac_exeext
19294if { (ac_try="$ac_link"
19295case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_link") 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } && {
19307 test -z "$ac_c_werror_flag" ||
19308 test ! -s conftest.err
19309 } && test -s conftest$ac_exeext &&
19310 $as_test_x conftest$ac_exeext; then
19311 eval "$as_ac_var=yes"
19312else
19313 echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316 eval "$as_ac_var=no"
19317fi
19318
19319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19320 conftest$ac_exeext conftest.$ac_ext
19321fi
19322ac_res=`eval echo '${'$as_ac_var'}'`
19323 { echo "$as_me:$LINENO: result: $ac_res" >&5
19324echo "${ECHO_T}$ac_res" >&6; }
19325if test `eval echo '${'$as_ac_var'}'` = yes; then
19326 cat >>confdefs.h <<_ACEOF
19327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19328_ACEOF
19329
19330fi
19331done
19332
19333
19334for ac_func in getlastlogxbyname
19335do
19336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19337{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19341else
19342 cat >conftest.$ac_ext <<_ACEOF
19343/* confdefs.h. */
19344_ACEOF
19345cat confdefs.h >>conftest.$ac_ext
19346cat >>conftest.$ac_ext <<_ACEOF
19347/* end confdefs.h. */
19348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19350#define $ac_func innocuous_$ac_func
19351
19352/* System header to define __stub macros and hopefully few prototypes,
19353 which can conflict with char $ac_func (); below.
19354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19355 <limits.h> exists even on freestanding compilers. */
19356
19357#ifdef __STDC__
19358# include <limits.h>
19359#else
19360# include <assert.h>
19361#endif
19362
19363#undef $ac_func
19364
19365/* Override any GCC internal prototype to avoid an error.
19366 Use char because int might match the return type of a GCC
19367 builtin and then its argument prototype would still apply. */
19368#ifdef __cplusplus
19369extern "C"
19370#endif
19371char $ac_func ();
19372/* The GNU C library defines this for functions which it implements
19373 to always fail with ENOSYS. Some functions are actually named
19374 something starting with __ and the normal name is an alias. */
19375#if defined __stub_$ac_func || defined __stub___$ac_func
19376choke me
19377#endif
19378
19379int
19380main ()
19381{
19382return $ac_func ();
19383 ;
19384 return 0;
19385}
19386_ACEOF
19387rm -f conftest.$ac_objext conftest$ac_exeext
19388if { (ac_try="$ac_link"
19389case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392esac
19393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_link") 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } && {
19401 test -z "$ac_c_werror_flag" ||
19402 test ! -s conftest.err
19403 } && test -s conftest$ac_exeext &&
19404 $as_test_x conftest$ac_exeext; then
19405 eval "$as_ac_var=yes"
19406else
19407 echo "$as_me: failed program was:" >&5
19408sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 eval "$as_ac_var=no"
19411fi
19412
19413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19414 conftest$ac_exeext conftest.$ac_ext
19415fi
19416ac_res=`eval echo '${'$as_ac_var'}'`
19417 { echo "$as_me:$LINENO: result: $ac_res" >&5
19418echo "${ECHO_T}$ac_res" >&6; }
19419if test `eval echo '${'$as_ac_var'}'` = yes; then
19420 cat >>confdefs.h <<_ACEOF
19421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19422_ACEOF
19423
19424fi
19425done
19426
19427
19428{ echo "$as_me:$LINENO: checking for daemon" >&5
19429echo $ECHO_N "checking for daemon... $ECHO_C" >&6; }
19430if test "${ac_cv_func_daemon+set}" = set; then
19431 echo $ECHO_N "(cached) $ECHO_C" >&6
19432else
19433 cat >conftest.$ac_ext <<_ACEOF
19434/* confdefs.h. */
19435_ACEOF
19436cat confdefs.h >>conftest.$ac_ext
19437cat >>conftest.$ac_ext <<_ACEOF
19438/* end confdefs.h. */
19439/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
19440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19441#define daemon innocuous_daemon
19442
19443/* System header to define __stub macros and hopefully few prototypes,
19444 which can conflict with char daemon (); below.
19445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19446 <limits.h> exists even on freestanding compilers. */
19447
19448#ifdef __STDC__
19449# include <limits.h>
19450#else
19451# include <assert.h>
19452#endif
19453
19454#undef daemon
19455
19456/* Override any GCC internal prototype to avoid an error.
19457 Use char because int might match the return type of a GCC
19458 builtin and then its argument prototype would still apply. */
19459#ifdef __cplusplus
19460extern "C"
19461#endif
19462char daemon ();
19463/* The GNU C library defines this for functions which it implements
19464 to always fail with ENOSYS. Some functions are actually named
19465 something starting with __ and the normal name is an alias. */
19466#if defined __stub_daemon || defined __stub___daemon
19467choke me
19468#endif
19469
19470int
19471main ()
19472{
19473return daemon ();
19474 ;
19475 return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext conftest$ac_exeext
19479if { (ac_try="$ac_link"
19480case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19483esac
19484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_link") 2>conftest.er1
19486 ac_status=$?
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } && {
19492 test -z "$ac_c_werror_flag" ||
19493 test ! -s conftest.err
19494 } && test -s conftest$ac_exeext &&
19495 $as_test_x conftest$ac_exeext; then
19496 ac_cv_func_daemon=yes
19497else
19498 echo "$as_me: failed program was:" >&5
19499sed 's/^/| /' conftest.$ac_ext >&5
19500
19501 ac_cv_func_daemon=no
19502fi
19503
19504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19505 conftest$ac_exeext conftest.$ac_ext
19506fi
19507{ echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
19508echo "${ECHO_T}$ac_cv_func_daemon" >&6; }
19509if test $ac_cv_func_daemon = yes; then
19510
19511cat >>confdefs.h <<\_ACEOF
19512#define HAVE_DAEMON 1
19513_ACEOF
19514
19515else
19516 { echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
19517echo $ECHO_N "checking for daemon in -lbsd... $ECHO_C" >&6; }
19518if test "${ac_cv_lib_bsd_daemon+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521 ac_check_lib_save_LIBS=$LIBS
19522LIBS="-lbsd $LIBS"
19523cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529
19530/* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19533#ifdef __cplusplus
19534extern "C"
19535#endif
19536char daemon ();
19537int
19538main ()
19539{
19540return daemon ();
19541 ;
19542 return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext conftest$ac_exeext
19546if { (ac_try="$ac_link"
19547case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_link") 2>conftest.er1
19553 ac_status=$?
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } && {
19559 test -z "$ac_c_werror_flag" ||
19560 test ! -s conftest.err
19561 } && test -s conftest$ac_exeext &&
19562 $as_test_x conftest$ac_exeext; then
19563 ac_cv_lib_bsd_daemon=yes
19564else
19565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
19568 ac_cv_lib_bsd_daemon=no
19569fi
19570
19571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19572 conftest$ac_exeext conftest.$ac_ext
19573LIBS=$ac_check_lib_save_LIBS
19574fi
19575{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
19576echo "${ECHO_T}$ac_cv_lib_bsd_daemon" >&6; }
19577if test $ac_cv_lib_bsd_daemon = yes; then
19578 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
19579#define HAVE_DAEMON 1
19580_ACEOF
19581
19582fi
19583
19584
19585fi
19586
19587
19588{ echo "$as_me:$LINENO: checking for getpagesize" >&5
19589echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
19590if test "${ac_cv_func_getpagesize+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592else
19593 cat >conftest.$ac_ext <<_ACEOF
19594/* confdefs.h. */
19595_ACEOF
19596cat confdefs.h >>conftest.$ac_ext
19597cat >>conftest.$ac_ext <<_ACEOF
19598/* end confdefs.h. */
19599/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
19600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19601#define getpagesize innocuous_getpagesize
19602
19603/* System header to define __stub macros and hopefully few prototypes,
19604 which can conflict with char getpagesize (); below.
19605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19606 <limits.h> exists even on freestanding compilers. */
19607
19608#ifdef __STDC__
19609# include <limits.h>
19610#else
19611# include <assert.h>
19612#endif
19613
19614#undef getpagesize
19615
19616/* Override any GCC internal prototype to avoid an error.
19617 Use char because int might match the return type of a GCC
19618 builtin and then its argument prototype would still apply. */
19619#ifdef __cplusplus
19620extern "C"
19621#endif
19622char getpagesize ();
19623/* The GNU C library defines this for functions which it implements
19624 to always fail with ENOSYS. Some functions are actually named
19625 something starting with __ and the normal name is an alias. */
19626#if defined __stub_getpagesize || defined __stub___getpagesize
19627choke me
19628#endif
19629
19630int
19631main ()
19632{
19633return getpagesize ();
19634 ;
19635 return 0;
19636}
19637_ACEOF
19638rm -f conftest.$ac_objext conftest$ac_exeext
19639if { (ac_try="$ac_link"
19640case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643esac
19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_link") 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && {
19652 test -z "$ac_c_werror_flag" ||
19653 test ! -s conftest.err
19654 } && test -s conftest$ac_exeext &&
19655 $as_test_x conftest$ac_exeext; then
19656 ac_cv_func_getpagesize=yes
19657else
19658 echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ac_cv_func_getpagesize=no
19662fi
19663
19664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19665 conftest$ac_exeext conftest.$ac_ext
19666fi
19667{ echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
19668echo "${ECHO_T}$ac_cv_func_getpagesize" >&6; }
19669if test $ac_cv_func_getpagesize = yes; then
19670
19671cat >>confdefs.h <<\_ACEOF
19672#define HAVE_GETPAGESIZE 1
19673_ACEOF
19674
19675else
19676 { echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
19677echo $ECHO_N "checking for getpagesize in -lucb... $ECHO_C" >&6; }
19678if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19680else
19681 ac_check_lib_save_LIBS=$LIBS
19682LIBS="-lucb $LIBS"
19683cat >conftest.$ac_ext <<_ACEOF
19684/* confdefs.h. */
19685_ACEOF
19686cat confdefs.h >>conftest.$ac_ext
19687cat >>conftest.$ac_ext <<_ACEOF
19688/* end confdefs.h. */
19689
19690/* Override any GCC internal prototype to avoid an error.
19691 Use char because int might match the return type of a GCC
19692 builtin and then its argument prototype would still apply. */
19693#ifdef __cplusplus
19694extern "C"
19695#endif
19696char getpagesize ();
19697int
19698main ()
19699{
19700return getpagesize ();
19701 ;
19702 return 0;
19703}
19704_ACEOF
19705rm -f conftest.$ac_objext conftest$ac_exeext
19706if { (ac_try="$ac_link"
19707case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710esac
19711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712 (eval "$ac_link") 2>conftest.er1
19713 ac_status=$?
19714 grep -v '^ *+' conftest.er1 >conftest.err
19715 rm -f conftest.er1
19716 cat conftest.err >&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); } && {
19719 test -z "$ac_c_werror_flag" ||
19720 test ! -s conftest.err
19721 } && test -s conftest$ac_exeext &&
19722 $as_test_x conftest$ac_exeext; then
19723 ac_cv_lib_ucb_getpagesize=yes
19724else
19725 echo "$as_me: failed program was:" >&5
19726sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 ac_cv_lib_ucb_getpagesize=no
19729fi
19730
19731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19732 conftest$ac_exeext conftest.$ac_ext
19733LIBS=$ac_check_lib_save_LIBS
19734fi
19735{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
19736echo "${ECHO_T}$ac_cv_lib_ucb_getpagesize" >&6; }
19737if test $ac_cv_lib_ucb_getpagesize = yes; then
19738 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
19739#define HAVE_GETPAGESIZE 1
19740_ACEOF
19741
19742fi
19743
19744
19745fi
19746
19747
19748# Check for broken snprintf
19749if test "x$ac_cv_func_snprintf" = "xyes" ; then
19750 { echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
19751echo $ECHO_N "checking whether snprintf correctly terminates long strings... $ECHO_C" >&6; }
19752 if test "$cross_compiling" = yes; then
19753 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
19754echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
19755
19756else
19757 cat >conftest.$ac_ext <<_ACEOF
19758/* confdefs.h. */
19759_ACEOF
19760cat confdefs.h >>conftest.$ac_ext
19761cat >>conftest.$ac_ext <<_ACEOF
19762/* end confdefs.h. */
19763 #include <stdio.h>
19764int
19765main ()
19766{
19767
19768 char b[5];
19769 snprintf(b,5,"123456789");
19770 exit(b[4]!='\0');
19771
19772 ;
19773 return 0;
19774}
19775_ACEOF
19776rm -f conftest$ac_exeext
19777if { (ac_try="$ac_link"
19778case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781esac
19782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>&5
19784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790esac
19791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 { echo "$as_me:$LINENO: result: yes" >&5
19797echo "${ECHO_T}yes" >&6; }
19798else
19799 echo "$as_me: program exited with status $ac_status" >&5
19800echo "$as_me: failed program was:" >&5
19801sed 's/^/| /' conftest.$ac_ext >&5
19802
19803( exit $ac_status )
19804
19805 { echo "$as_me:$LINENO: result: no" >&5
19806echo "${ECHO_T}no" >&6; }
19807
19808cat >>confdefs.h <<\_ACEOF
19809#define BROKEN_SNPRINTF 1
19810_ACEOF
19811
19812 { echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
19813echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
19814
19815fi
19816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19817fi
19818
19819
19820fi
19821
19822# We depend on vsnprintf returning the right thing on overflow: the
19823# number of characters it tried to create (as per SUSv3)
19824if test "x$ac_cv_func_vsnprintf" = "xyes" ; then
19825 { echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
19826echo $ECHO_N "checking whether vsnprintf returns correct values on overflow... $ECHO_C" >&6; }
19827 if test "$cross_compiling" = yes; then
19828 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
19829echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
19830
19831else
19832 cat >conftest.$ac_ext <<_ACEOF
19833/* confdefs.h. */
19834_ACEOF
19835cat confdefs.h >>conftest.$ac_ext
19836cat >>conftest.$ac_ext <<_ACEOF
19837/* end confdefs.h. */
19838
19839#include <sys/types.h>
19840#include <stdio.h>
19841#include <stdarg.h>
19842
19843int x_snprintf(char *str, size_t count, const char *fmt, ...)
19844{
19845 size_t ret;
19846 va_list ap;
19847
19848 va_start(ap, fmt);
19849 ret = vsnprintf(str, count, fmt, ap);
19850 va_end(ap);
19851 return ret;
19852}
19853
19854int
19855main ()
19856{
19857
19858char x[1];
19859if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11)
19860 return 1;
19861if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11)
19862 return 1;
19863return 0;
19864
19865 ;
19866 return 0;
19867}
19868_ACEOF
19869rm -f conftest$ac_exeext
19870if { (ac_try="$ac_link"
19871case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19874esac
19875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_link") 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880 { (case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19883esac
19884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_try") 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 { echo "$as_me:$LINENO: result: yes" >&5
19890echo "${ECHO_T}yes" >&6; }
19891else
19892 echo "$as_me: program exited with status $ac_status" >&5
19893echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896( exit $ac_status )
19897
19898 { echo "$as_me:$LINENO: result: no" >&5
19899echo "${ECHO_T}no" >&6; }
19900
19901cat >>confdefs.h <<\_ACEOF
19902#define BROKEN_SNPRINTF 1
19903_ACEOF
19904
19905 { echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
19906echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
19907
19908fi
19909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19910fi
19911
19912
19913fi
19914
19915# On systems where [v]snprintf is broken, but is declared in stdio,
19916# check that the fmt argument is const char * or just char *.
19917# This is only useful for when BROKEN_SNPRINTF
19918{ echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
19919echo $ECHO_N "checking whether snprintf can declare const char *fmt... $ECHO_C" >&6; }
19920cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h. */
19926
19927#include <stdio.h>
19928int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
19929
19930int
19931main ()
19932{
19933
19934 snprintf(0, 0, 0);
19935
19936 ;
19937 return 0;
19938}
19939_ACEOF
19940rm -f conftest.$ac_objext
19941if { (ac_try="$ac_compile"
19942case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19945esac
19946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_compile") 2>conftest.er1
19948 ac_status=$?
19949 grep -v '^ *+' conftest.er1 >conftest.err
19950 rm -f conftest.er1
19951 cat conftest.err >&5
19952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953 (exit $ac_status); } && {
19954 test -z "$ac_c_werror_flag" ||
19955 test ! -s conftest.err
19956 } && test -s conftest.$ac_objext; then
19957 { echo "$as_me:$LINENO: result: yes" >&5
19958echo "${ECHO_T}yes" >&6; }
19959
19960cat >>confdefs.h <<\_ACEOF
19961#define SNPRINTF_CONST const
19962_ACEOF
19963
19964else
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 { echo "$as_me:$LINENO: result: no" >&5
19969echo "${ECHO_T}no" >&6; }
19970 cat >>confdefs.h <<\_ACEOF
19971#define SNPRINTF_CONST /* not const */
19972_ACEOF
19973
19974fi
19975
19976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977
19978# Check for missing getpeereid (or equiv) support
19979NO_PEERCHECK=""
19980if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
19981 { echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
19982echo $ECHO_N "checking whether system supports SO_PEERCRED getsockopt... $ECHO_C" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h. */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h. */
19989
19990#include <sys/types.h>
19991#include <sys/socket.h>
19992int
19993main ()
19994{
19995int i = SO_PEERCRED;
19996 ;
19997 return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (ac_try="$ac_compile"
20002case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20005esac
20006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_compile") 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest.$ac_objext; then
20017 { echo "$as_me:$LINENO: result: yes" >&5
20018echo "${ECHO_T}yes" >&6; }
20019
20020cat >>confdefs.h <<\_ACEOF
20021#define HAVE_SO_PEERCRED 1
20022_ACEOF
20023
20024
20025else
20026 echo "$as_me: failed program was:" >&5
20027sed 's/^/| /' conftest.$ac_ext >&5
20028
20029 { echo "$as_me:$LINENO: result: no" >&5
20030echo "${ECHO_T}no" >&6; }
20031 NO_PEERCHECK=1
20032
20033fi
20034
20035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036fi
20037
20038if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
20039{ echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
20040echo $ECHO_N "checking for (overly) strict mkstemp... $ECHO_C" >&6; }
20041if test "$cross_compiling" = yes; then
20042
20043 { echo "$as_me:$LINENO: result: yes" >&5
20044echo "${ECHO_T}yes" >&6; }
20045 cat >>confdefs.h <<\_ACEOF
20046#define HAVE_STRICT_MKSTEMP 1
20047_ACEOF
20048
20049
20050
20051else
20052 cat >conftest.$ac_ext <<_ACEOF
20053/* confdefs.h. */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h. */
20058
20059#include <stdlib.h>
20060
20061int
20062main ()
20063{
20064
20065 char template[]="conftest.mkstemp-test";
20066 if (mkstemp(template) == -1)
20067 exit(1);
20068 unlink(template);
20069 exit(0);
20070
20071 ;
20072 return 0;
20073}
20074_ACEOF
20075rm -f conftest$ac_exeext
20076if { (ac_try="$ac_link"
20077case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080esac
20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_link") 2>&5
20083 ac_status=$?
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20086 { (case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20089esac
20090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_try") 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; }; then
20095
20096 { echo "$as_me:$LINENO: result: no" >&5
20097echo "${ECHO_T}no" >&6; }
20098
20099else
20100 echo "$as_me: program exited with status $ac_status" >&5
20101echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104( exit $ac_status )
20105
20106 { echo "$as_me:$LINENO: result: yes" >&5
20107echo "${ECHO_T}yes" >&6; }
20108
20109cat >>confdefs.h <<\_ACEOF
20110#define HAVE_STRICT_MKSTEMP 1
20111_ACEOF
20112
20113
20114fi
20115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20116fi
20117
20118
20119fi
20120
20121if test ! -z "$check_for_openpty_ctty_bug"; then
20122 { echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
20123echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6; }
20124 if test "$cross_compiling" = yes; then
20125
20126 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20127echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20128
20129
20130else
20131 cat >conftest.$ac_ext <<_ACEOF
20132/* confdefs.h. */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h. */
20137
20138#include <stdio.h>
20139#include <sys/fcntl.h>
20140#include <sys/types.h>
20141#include <sys/wait.h>
20142
20143int
20144main ()
20145{
20146
20147 pid_t pid;
20148 int fd, ptyfd, ttyfd, status;
20149
20150 pid = fork();
20151 if (pid < 0) { /* failed */
20152 exit(1);
20153 } else if (pid > 0) { /* parent */
20154 waitpid(pid, &status, 0);
20155 if (WIFEXITED(status))
20156 exit(WEXITSTATUS(status));
20157 else
20158 exit(2);
20159 } else { /* child */
20160 close(0); close(1); close(2);
20161 setsid();
20162 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
20163 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
20164 if (fd >= 0)
20165 exit(3); /* Acquired ctty: broken */
20166 else
20167 exit(0); /* Did not acquire ctty: OK */
20168 }
20169
20170 ;
20171 return 0;
20172}
20173_ACEOF
20174rm -f conftest$ac_exeext
20175if { (ac_try="$ac_link"
20176case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20179esac
20180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_link") 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20185 { (case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20188esac
20189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_try") 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194
20195 { echo "$as_me:$LINENO: result: yes" >&5
20196echo "${ECHO_T}yes" >&6; }
20197
20198else
20199 echo "$as_me: program exited with status $ac_status" >&5
20200echo "$as_me: failed program was:" >&5
20201sed 's/^/| /' conftest.$ac_ext >&5
20202
20203( exit $ac_status )
20204
20205 { echo "$as_me:$LINENO: result: no" >&5
20206echo "${ECHO_T}no" >&6; }
20207 cat >>confdefs.h <<\_ACEOF
20208#define SSHD_ACQUIRES_CTTY 1
20209_ACEOF
20210
20211
20212fi
20213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20214fi
20215
20216
20217fi
20218
20219if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20220 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
20221 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20222echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20223 if test "$cross_compiling" = yes; then
20224
20225 { echo "$as_me:$LINENO: result: cross-compiling, assuming yes" >&5
20226echo "${ECHO_T}cross-compiling, assuming yes" >&6; }
20227
20228
20229else
20230 cat >conftest.$ac_ext <<_ACEOF
20231/* confdefs.h. */
20232_ACEOF
20233cat confdefs.h >>conftest.$ac_ext
20234cat >>conftest.$ac_ext <<_ACEOF
20235/* end confdefs.h. */
20236
20237#include <stdio.h>
20238#include <sys/socket.h>
20239#include <netdb.h>
20240#include <errno.h>
20241#include <netinet/in.h>
20242
20243#define TEST_PORT "2222"
20244
20245int
20246main ()
20247{
20248
20249 int err, sock;
20250 struct addrinfo *gai_ai, *ai, hints;
20251 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20252
20253 memset(&hints, 0, sizeof(hints));
20254 hints.ai_family = PF_UNSPEC;
20255 hints.ai_socktype = SOCK_STREAM;
20256 hints.ai_flags = AI_PASSIVE;
20257
20258 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20259 if (err != 0) {
20260 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20261 exit(1);
20262 }
20263
20264 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20265 if (ai->ai_family != AF_INET6)
20266 continue;
20267
20268 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20269 sizeof(ntop), strport, sizeof(strport),
20270 NI_NUMERICHOST|NI_NUMERICSERV);
20271
20272 if (err != 0) {
20273 if (err == EAI_SYSTEM)
20274 perror("getnameinfo EAI_SYSTEM");
20275 else
20276 fprintf(stderr, "getnameinfo failed: %s\n",
20277 gai_strerror(err));
20278 exit(2);
20279 }
20280
20281 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
20282 if (sock < 0)
20283 perror("socket");
20284 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
20285 if (errno == EBADF)
20286 exit(3);
20287 }
20288 }
20289 exit(0);
20290
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295rm -f conftest$ac_exeext
20296if { (ac_try="$ac_link"
20297case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300esac
20301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_link") 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20306 { (case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309esac
20310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_try") 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; }; then
20315
20316 { echo "$as_me:$LINENO: result: yes" >&5
20317echo "${ECHO_T}yes" >&6; }
20318
20319else
20320 echo "$as_me: program exited with status $ac_status" >&5
20321echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324( exit $ac_status )
20325
20326 { echo "$as_me:$LINENO: result: no" >&5
20327echo "${ECHO_T}no" >&6; }
20328 cat >>confdefs.h <<\_ACEOF
20329#define BROKEN_GETADDRINFO 1
20330_ACEOF
20331
20332
20333fi
20334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20335fi
20336
20337
20338fi
20339
20340if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
20341 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
20342 { echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
20343echo $ECHO_N "checking if getaddrinfo seems to work... $ECHO_C" >&6; }
20344 if test "$cross_compiling" = yes; then
20345
20346 { echo "$as_me:$LINENO: result: cross-compiling, assuming no" >&5
20347echo "${ECHO_T}cross-compiling, assuming no" >&6; }
20348
20349
20350else
20351 cat >conftest.$ac_ext <<_ACEOF
20352/* confdefs.h. */
20353_ACEOF
20354cat confdefs.h >>conftest.$ac_ext
20355cat >>conftest.$ac_ext <<_ACEOF
20356/* end confdefs.h. */
20357
20358#include <stdio.h>
20359#include <sys/socket.h>
20360#include <netdb.h>
20361#include <errno.h>
20362#include <netinet/in.h>
20363
20364#define TEST_PORT "2222"
20365
20366int
20367main ()
20368{
20369
20370 int err, sock;
20371 struct addrinfo *gai_ai, *ai, hints;
20372 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
20373
20374 memset(&hints, 0, sizeof(hints));
20375 hints.ai_family = PF_UNSPEC;
20376 hints.ai_socktype = SOCK_STREAM;
20377 hints.ai_flags = AI_PASSIVE;
20378
20379 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
20380 if (err != 0) {
20381 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
20382 exit(1);
20383 }
20384
20385 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
20386 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
20387 continue;
20388
20389 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
20390 sizeof(ntop), strport, sizeof(strport),
20391 NI_NUMERICHOST|NI_NUMERICSERV);
20392
20393 if (ai->ai_family == AF_INET && err != 0) {
20394 perror("getnameinfo");
20395 exit(2);
20396 }
20397 }
20398 exit(0);
20399
20400 ;
20401 return 0;
20402}
20403_ACEOF
20404rm -f conftest$ac_exeext
20405if { (ac_try="$ac_link"
20406case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20409esac
20410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20415 { (case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418esac
20419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_try") 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424
20425 { echo "$as_me:$LINENO: result: yes" >&5
20426echo "${ECHO_T}yes" >&6; }
20427
20428cat >>confdefs.h <<\_ACEOF
20429#define AIX_GETNAMEINFO_HACK 1
20430_ACEOF
20431
20432
20433else
20434 echo "$as_me: program exited with status $ac_status" >&5
20435echo "$as_me: failed program was:" >&5
20436sed 's/^/| /' conftest.$ac_ext >&5
20437
20438( exit $ac_status )
20439
20440 { echo "$as_me:$LINENO: result: no" >&5
20441echo "${ECHO_T}no" >&6; }
20442 cat >>confdefs.h <<\_ACEOF
20443#define BROKEN_GETADDRINFO 1
20444_ACEOF
20445
20446
20447fi
20448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20449fi
20450
20451
20452fi
20453
20454if test "x$ac_cv_func_getaddrinfo" = "xyes"; then
20455 { echo "$as_me:$LINENO: checking whether AI_NUMERICSERV is declared" >&5
20456echo $ECHO_N "checking whether AI_NUMERICSERV is declared... $ECHO_C" >&6; }
20457if test "${ac_cv_have_decl_AI_NUMERICSERV+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20459else
20460 cat >conftest.$ac_ext <<_ACEOF
20461/* confdefs.h. */
20462_ACEOF
20463cat confdefs.h >>conftest.$ac_ext
20464cat >>conftest.$ac_ext <<_ACEOF
20465/* end confdefs.h. */
20466#include <sys/types.h>
20467 #include <sys/socket.h>
20468 #include <netdb.h>
20469
20470int
20471main ()
20472{
20473#ifndef AI_NUMERICSERV
20474 (void) AI_NUMERICSERV;
20475#endif
20476
20477 ;
20478 return 0;
20479}
20480_ACEOF
20481rm -f conftest.$ac_objext
20482if { (ac_try="$ac_compile"
20483case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486esac
20487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20489 ac_status=$?
20490 grep -v '^ *+' conftest.er1 >conftest.err
20491 rm -f conftest.er1
20492 cat conftest.err >&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && {
20495 test -z "$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 } && test -s conftest.$ac_objext; then
20498 ac_cv_have_decl_AI_NUMERICSERV=yes
20499else
20500 echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ac_cv_have_decl_AI_NUMERICSERV=no
20504fi
20505
20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507fi
20508{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_AI_NUMERICSERV" >&5
20509echo "${ECHO_T}$ac_cv_have_decl_AI_NUMERICSERV" >&6; }
20510if test $ac_cv_have_decl_AI_NUMERICSERV = yes; then
20511
20512cat >>confdefs.h <<_ACEOF
20513#define HAVE_DECL_AI_NUMERICSERV 1
20514_ACEOF
20515
20516
20517else
20518 cat >>confdefs.h <<_ACEOF
20519#define HAVE_DECL_AI_NUMERICSERV 0
20520_ACEOF
20521
20522
20523fi
20524
20525
20526fi
20527
20528if test "x$check_for_conflicting_getspnam" = "x1"; then
20529 { echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
20530echo $ECHO_N "checking for conflicting getspnam in shadow.h... $ECHO_C" >&6; }
20531 cat >conftest.$ac_ext <<_ACEOF
20532/* confdefs.h. */
20533_ACEOF
20534cat confdefs.h >>conftest.$ac_ext
20535cat >>conftest.$ac_ext <<_ACEOF
20536/* end confdefs.h. */
20537 #include <shadow.h>
20538int
20539main ()
20540{
20541 exit(0);
20542 ;
20543 return 0;
20544}
20545_ACEOF
20546rm -f conftest.$ac_objext
20547if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && {
20560 test -z "$ac_c_werror_flag" ||
20561 test ! -s conftest.err
20562 } && test -s conftest.$ac_objext; then
20563
20564 { echo "$as_me:$LINENO: result: no" >&5
20565echo "${ECHO_T}no" >&6; }
20566
20567else
20568 echo "$as_me: failed program was:" >&5
20569sed 's/^/| /' conftest.$ac_ext >&5
20570
20571
20572 { echo "$as_me:$LINENO: result: yes" >&5
20573echo "${ECHO_T}yes" >&6; }
20574
20575cat >>confdefs.h <<\_ACEOF
20576#define GETSPNAM_CONFLICTING_DEFS 1
20577_ACEOF
20578
20579
20580
20581fi
20582
20583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584fi
20585
20586{ echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20587echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
20588if test "${ac_cv_func_getpgrp_void+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20590else
20591 # Use it with a single arg.
20592cat >conftest.$ac_ext <<_ACEOF
20593/* confdefs.h. */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h. */
20598$ac_includes_default
20599int
20600main ()
20601{
20602getpgrp (0);
20603 ;
20604 return 0;
20605}
20606_ACEOF
20607rm -f conftest.$ac_objext
20608if { (ac_try="$ac_compile"
20609case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612esac
20613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_compile") 2>conftest.er1
20615 ac_status=$?
20616 grep -v '^ *+' conftest.er1 >conftest.err
20617 rm -f conftest.er1
20618 cat conftest.err >&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest.$ac_objext; then
20624 ac_cv_func_getpgrp_void=no
20625else
20626 echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ac_cv_func_getpgrp_void=yes
20630fi
20631
20632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20633
20634fi
20635{ echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20636echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20637if test $ac_cv_func_getpgrp_void = yes; then
20638
20639cat >>confdefs.h <<\_ACEOF
20640#define GETPGRP_VOID 1
20641_ACEOF
20642
20643fi
20644
20645
20646# Search for OpenSSL
20647saved_CPPFLAGS="$CPPFLAGS"
20648saved_LDFLAGS="$LDFLAGS"
20649
20650# Check whether --with-ssl-dir was given.
20651if test "${with_ssl_dir+set}" = set; then
20652 withval=$with_ssl_dir;
20653 if test "x$openssl" = "xno" ; then
20654 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-dir when OpenSSL disabled" >&5
20655echo "$as_me: error: cannot use --with-ssl-dir when OpenSSL disabled" >&2;}
20656 { (exit 1); exit 1; }; }
20657 fi
20658 if test "x$withval" != "xno" ; then
20659 case "$withval" in
20660 # Relative paths
20661 ./*|../*) withval="`pwd`/$withval"
20662 esac
20663 if test -d "$withval/lib"; then
20664 if test -n "${need_dash_r}"; then
20665 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
20666 else
20667 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
20668 fi
20669 elif test -d "$withval/lib64"; then
20670 if test -n "${need_dash_r}"; then
20671 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
20672 else
20673 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
20674 fi
20675 else
20676 if test -n "${need_dash_r}"; then
20677 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
20678 else
20679 LDFLAGS="-L${withval} ${LDFLAGS}"
20680 fi
20681 fi
20682 if test -d "$withval/include"; then
20683 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
20684 else
20685 CPPFLAGS="-I${withval} ${CPPFLAGS}"
20686 fi
20687 fi
20688
20689
20690fi
20691
20692
20693
20694# Check whether --with-openssl-header-check was given.
20695if test "${with_openssl_header_check+set}" = set; then
20696 withval=$with_openssl_header_check;
20697 if test "x$withval" = "xno" ; then
20698 openssl_check_nonfatal=1
20699 fi
20700
20701
20702fi
20703
20704
20705openssl_engine=no
20706
20707# Check whether --with-ssl-engine was given.
20708if test "${with_ssl_engine+set}" = set; then
20709 withval=$with_ssl_engine;
20710 if test "x$openssl" = "xno" ; then
20711 { { echo "$as_me:$LINENO: error: cannot use --with-ssl-engine when OpenSSL disabled" >&5
20712echo "$as_me: error: cannot use --with-ssl-engine when OpenSSL disabled" >&2;}
20713 { (exit 1); exit 1; }; }
20714 fi
20715 if test "x$withval" != "xno" ; then
20716 openssl_engine=yes
20717 fi
20718
20719
20720fi
20721
20722
20723if test "x$openssl" = "xyes" ; then
20724 LIBS="-lcrypto $LIBS"
20725 cat >conftest.$ac_ext <<_ACEOF
20726/* confdefs.h. */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h. */
20731
20732/* Override any GCC internal prototype to avoid an error.
20733 Use char because int might match the return type of a GCC
20734 builtin and then its argument prototype would still apply. */
20735#ifdef __cplusplus
20736extern "C"
20737#endif
20738char RAND_add ();
20739int
20740main ()
20741{
20742return RAND_add ();
20743 ;
20744 return 0;
20745}
20746_ACEOF
20747rm -f conftest.$ac_objext conftest$ac_exeext
20748if { (ac_try="$ac_link"
20749case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20752esac
20753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_link") 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } && {
20761 test -z "$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20763 } && test -s conftest$ac_exeext &&
20764 $as_test_x conftest$ac_exeext; then
20765
20766cat >>confdefs.h <<\_ACEOF
20767#define HAVE_OPENSSL 1
20768_ACEOF
20769
20770else
20771 echo "$as_me: failed program was:" >&5
20772sed 's/^/| /' conftest.$ac_ext >&5
20773
20774
20775 if test -n "${need_dash_r}"; then
20776 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
20777 else
20778 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
20779 fi
20780 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
20781 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20782 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20783echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20784if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20786fi
20787{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20788echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20789else
20790 # Is the header compilable?
20791{ echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
20792echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
20793cat >conftest.$ac_ext <<_ACEOF
20794/* confdefs.h. */
20795_ACEOF
20796cat confdefs.h >>conftest.$ac_ext
20797cat >>conftest.$ac_ext <<_ACEOF
20798/* end confdefs.h. */
20799$ac_includes_default
20800#include <openssl/opensslv.h>
20801_ACEOF
20802rm -f conftest.$ac_objext
20803if { (ac_try="$ac_compile"
20804case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807esac
20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_compile") 2>conftest.er1
20810 ac_status=$?
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest.$ac_objext; then
20819 ac_header_compiler=yes
20820else
20821 echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 ac_header_compiler=no
20825fi
20826
20827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20829echo "${ECHO_T}$ac_header_compiler" >&6; }
20830
20831# Is the header present?
20832{ echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
20833echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
20834cat >conftest.$ac_ext <<_ACEOF
20835/* confdefs.h. */
20836_ACEOF
20837cat confdefs.h >>conftest.$ac_ext
20838cat >>conftest.$ac_ext <<_ACEOF
20839/* end confdefs.h. */
20840#include <openssl/opensslv.h>
20841_ACEOF
20842if { (ac_try="$ac_cpp conftest.$ac_ext"
20843case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20846esac
20847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20849 ac_status=$?
20850 grep -v '^ *+' conftest.er1 >conftest.err
20851 rm -f conftest.er1
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); } >/dev/null && {
20855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 }; then
20858 ac_header_preproc=yes
20859else
20860 echo "$as_me: failed program was:" >&5
20861sed 's/^/| /' conftest.$ac_ext >&5
20862
20863 ac_header_preproc=no
20864fi
20865
20866rm -f conftest.err conftest.$ac_ext
20867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20868echo "${ECHO_T}$ac_header_preproc" >&6; }
20869
20870# So? What about this header?
20871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20872 yes:no: )
20873 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20874echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
20876echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
20877 ac_header_preproc=yes
20878 ;;
20879 no:yes:* )
20880 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
20881echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
20882 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
20883echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
20885echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
20887echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
20888 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
20889echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
20890 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
20891echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
20892 ( cat <<\_ASBOX
20893## ------------------------------------------- ##
20894## Report this to openssh-unix-dev@mindrot.org ##
20895## ------------------------------------------- ##
20896_ASBOX
20897 ) | sed "s/^/$as_me: WARNING: /" >&2
20898 ;;
20899esac
20900{ echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20901echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20902if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904else
20905 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
20906fi
20907{ echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20908echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20909
20910fi
20911if test $ac_cv_header_openssl_opensslv_h = yes; then
20912 :
20913else
20914 { { echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
20915echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
20916 { (exit 1); exit 1; }; }
20917fi
20918
20919
20920 cat >conftest.$ac_ext <<_ACEOF
20921/* confdefs.h. */
20922_ACEOF
20923cat confdefs.h >>conftest.$ac_ext
20924cat >>conftest.$ac_ext <<_ACEOF
20925/* end confdefs.h. */
20926
20927/* Override any GCC internal prototype to avoid an error.
20928 Use char because int might match the return type of a GCC
20929 builtin and then its argument prototype would still apply. */
20930#ifdef __cplusplus
20931extern "C"
20932#endif
20933char RAND_add ();
20934int
20935main ()
20936{
20937return RAND_add ();
20938 ;
20939 return 0;
20940}
20941_ACEOF
20942rm -f conftest.$ac_objext conftest$ac_exeext
20943if { (ac_try="$ac_link"
20944case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947esac
20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_link") 2>conftest.er1
20950 ac_status=$?
20951 grep -v '^ *+' conftest.er1 >conftest.err
20952 rm -f conftest.er1
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest$ac_exeext &&
20959 $as_test_x conftest$ac_exeext; then
20960 cat >>confdefs.h <<\_ACEOF
20961#define HAVE_OPENSSL 1
20962_ACEOF
20963
20964else
20965 echo "$as_me: failed program was:" >&5
20966sed 's/^/| /' conftest.$ac_ext >&5
20967
20968
20969 { { echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
20970echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
20971 { (exit 1); exit 1; }; }
20972
20973
20974fi
20975
20976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20977 conftest$ac_exeext conftest.$ac_ext
20978
20979
20980fi
20981
20982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20983 conftest$ac_exeext conftest.$ac_ext
20984
20985 # Determine OpenSSL header version
20986 { echo "$as_me:$LINENO: checking OpenSSL header version" >&5
20987echo $ECHO_N "checking OpenSSL header version... $ECHO_C" >&6; }
20988 if test "$cross_compiling" = yes; then
20989
20990 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
20991echo "$as_me: WARNING: cross compiling: not checking" >&2;}
20992
20993
20994else
20995 cat >conftest.$ac_ext <<_ACEOF
20996/* confdefs.h. */
20997_ACEOF
20998cat confdefs.h >>conftest.$ac_ext
20999cat >>conftest.$ac_ext <<_ACEOF
21000/* end confdefs.h. */
21001
21002 #include <stdio.h>
21003 #include <string.h>
21004 #include <openssl/opensslv.h>
21005 #define DATA "conftest.sslincver"
21006
21007int
21008main ()
21009{
21010
21011 FILE *fd;
21012 int rc;
21013
21014 fd = fopen(DATA,"w");
21015 if(fd == NULL)
21016 exit(1);
21017
21018 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
21019 exit(1);
21020
21021 exit(0);
21022
21023 ;
21024 return 0;
21025}
21026_ACEOF
21027rm -f conftest$ac_exeext
21028if { (ac_try="$ac_link"
21029case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032esac
21033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_link") 2>&5
21035 ac_status=$?
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21038 { (case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_try") 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047
21048 ssl_header_ver=`cat conftest.sslincver`
21049 { echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
21050echo "${ECHO_T}$ssl_header_ver" >&6; }
21051
21052else
21053 echo "$as_me: program exited with status $ac_status" >&5
21054echo "$as_me: failed program was:" >&5
21055sed 's/^/| /' conftest.$ac_ext >&5
21056
21057( exit $ac_status )
21058
21059 { echo "$as_me:$LINENO: result: not found" >&5
21060echo "${ECHO_T}not found" >&6; }
21061 { { echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
21062echo "$as_me: error: OpenSSL version header not found." >&2;}
21063 { (exit 1); exit 1; }; }
21064
21065fi
21066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21067fi
21068
21069
21070
21071 # Determine OpenSSL library version
21072 { echo "$as_me:$LINENO: checking OpenSSL library version" >&5
21073echo $ECHO_N "checking OpenSSL library version... $ECHO_C" >&6; }
21074 if test "$cross_compiling" = yes; then
21075
21076 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21077echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21078
21079
21080else
21081 cat >conftest.$ac_ext <<_ACEOF
21082/* confdefs.h. */
21083_ACEOF
21084cat confdefs.h >>conftest.$ac_ext
21085cat >>conftest.$ac_ext <<_ACEOF
21086/* end confdefs.h. */
21087
21088 #include <stdio.h>
21089 #include <string.h>
21090 #include <openssl/opensslv.h>
21091 #include <openssl/crypto.h>
21092 #define DATA "conftest.ssllibver"
21093
21094int
21095main ()
21096{
21097
21098 FILE *fd;
21099 int rc;
21100
21101 fd = fopen(DATA,"w");
21102 if(fd == NULL)
21103 exit(1);
21104
21105 if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(),
21106 SSLeay_version(SSLEAY_VERSION))) <0)
21107 exit(1);
21108
21109 exit(0);
21110
21111 ;
21112 return 0;
21113}
21114_ACEOF
21115rm -f conftest$ac_exeext
21116if { (ac_try="$ac_link"
21117case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21120esac
21121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126 { (case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129esac
21130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_try") 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135
21136 ssl_library_ver=`cat conftest.ssllibver`
21137 # Check version is supported.
21138 case "$ssl_library_ver" in
21139 0090[0-7]*|009080[0-5]*)
21140 { { echo "$as_me:$LINENO: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&5
21141echo "$as_me: error: OpenSSL >= 0.9.8f required (have \"$ssl_library_ver\")" >&2;}
21142 { (exit 1); exit 1; }; }
21143 ;;
21144 *) ;;
21145 esac
21146 { echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
21147echo "${ECHO_T}$ssl_library_ver" >&6; }
21148
21149else
21150 echo "$as_me: program exited with status $ac_status" >&5
21151echo "$as_me: failed program was:" >&5
21152sed 's/^/| /' conftest.$ac_ext >&5
21153
21154( exit $ac_status )
21155
21156 { echo "$as_me:$LINENO: result: not found" >&5
21157echo "${ECHO_T}not found" >&6; }
21158 { { echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
21159echo "$as_me: error: OpenSSL library not found." >&2;}
21160 { (exit 1); exit 1; }; }
21161
21162fi
21163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21164fi
21165
21166
21167
21168 # Sanity check OpenSSL headers
21169 { echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
21170echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
21171 if test "$cross_compiling" = yes; then
21172
21173 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21174echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21175
21176
21177else
21178 cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h. */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h. */
21184
21185 #include <string.h>
21186 #include <openssl/opensslv.h>
21187
21188int
21189main ()
21190{
21191
21192 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
21193
21194 ;
21195 return 0;
21196}
21197_ACEOF
21198rm -f conftest$ac_exeext
21199if { (ac_try="$ac_link"
21200case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21203esac
21204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_link") 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21209 { (case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21212esac
21213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_try") 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; }; then
21218
21219 { echo "$as_me:$LINENO: result: yes" >&5
21220echo "${ECHO_T}yes" >&6; }
21221
21222else
21223 echo "$as_me: program exited with status $ac_status" >&5
21224echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227( exit $ac_status )
21228
21229 { echo "$as_me:$LINENO: result: no" >&5
21230echo "${ECHO_T}no" >&6; }
21231 if test "x$openssl_check_nonfatal" = "x"; then
21232 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
21233 library. Check config.log for details.
21234 If you are sure your installation is consistent, you can disable the check
21235 by running \"./configure --without-openssl-header-check\".
21236 Also see contrib/findssl.sh for help identifying header/library mismatches.
21237 " >&5
21238echo "$as_me: error: Your OpenSSL headers do not match your
21239 library. Check config.log for details.
21240 If you are sure your installation is consistent, you can disable the check
21241 by running \"./configure --without-openssl-header-check\".
21242 Also see contrib/findssl.sh for help identifying header/library mismatches.
21243 " >&2;}
21244 { (exit 1); exit 1; }; }
21245 else
21246 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
21247 library. Check config.log for details.
21248 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
21249echo "$as_me: WARNING: Your OpenSSL headers do not match your
21250 library. Check config.log for details.
21251 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
21252 fi
21253
21254fi
21255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21256fi
21257
21258
21259
21260 { echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
21261echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
21262 cat >conftest.$ac_ext <<_ACEOF
21263/* confdefs.h. */
21264_ACEOF
21265cat confdefs.h >>conftest.$ac_ext
21266cat >>conftest.$ac_ext <<_ACEOF
21267/* end confdefs.h. */
21268 #include <openssl/evp.h>
21269int
21270main ()
21271{
21272 SSLeay_add_all_algorithms();
21273 ;
21274 return 0;
21275}
21276_ACEOF
21277rm -f conftest.$ac_objext conftest$ac_exeext
21278if { (ac_try="$ac_link"
21279case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21282esac
21283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_link") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest$ac_exeext &&
21294 $as_test_x conftest$ac_exeext; then
21295
21296 { echo "$as_me:$LINENO: result: yes" >&5
21297echo "${ECHO_T}yes" >&6; }
21298
21299else
21300 echo "$as_me: failed program was:" >&5
21301sed 's/^/| /' conftest.$ac_ext >&5
21302
21303
21304 { echo "$as_me:$LINENO: result: no" >&5
21305echo "${ECHO_T}no" >&6; }
21306 saved_LIBS="$LIBS"
21307 LIBS="$LIBS -ldl"
21308 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
21309echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
21310 cat >conftest.$ac_ext <<_ACEOF
21311/* confdefs.h. */
21312_ACEOF
21313cat confdefs.h >>conftest.$ac_ext
21314cat >>conftest.$ac_ext <<_ACEOF
21315/* end confdefs.h. */
21316 #include <openssl/evp.h>
21317int
21318main ()
21319{
21320 SSLeay_add_all_algorithms();
21321 ;
21322 return 0;
21323}
21324_ACEOF
21325rm -f conftest.$ac_objext conftest$ac_exeext
21326if { (ac_try="$ac_link"
21327case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330esac
21331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_link") 2>conftest.er1
21333 ac_status=$?
21334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && {
21339 test -z "$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21341 } && test -s conftest$ac_exeext &&
21342 $as_test_x conftest$ac_exeext; then
21343
21344 { echo "$as_me:$LINENO: result: yes" >&5
21345echo "${ECHO_T}yes" >&6; }
21346
21347else
21348 echo "$as_me: failed program was:" >&5
21349sed 's/^/| /' conftest.$ac_ext >&5
21350
21351
21352 { echo "$as_me:$LINENO: result: no" >&5
21353echo "${ECHO_T}no" >&6; }
21354 LIBS="$saved_LIBS"
21355
21356
21357fi
21358
21359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21360 conftest$ac_exeext conftest.$ac_ext
21361
21362
21363fi
21364
21365rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21366 conftest$ac_exeext conftest.$ac_ext
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378for ac_func in \
21379 BN_is_prime_ex \
21380 DSA_generate_parameters_ex \
21381 EVP_DigestInit_ex \
21382 EVP_DigestFinal_ex \
21383 EVP_MD_CTX_init \
21384 EVP_MD_CTX_cleanup \
21385 EVP_MD_CTX_copy_ex \
21386 HMAC_CTX_init \
21387 RSA_generate_key_ex \
21388 RSA_get_default_method \
21389
21390do
21391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21392{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21394if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396else
21397 cat >conftest.$ac_ext <<_ACEOF
21398/* confdefs.h. */
21399_ACEOF
21400cat confdefs.h >>conftest.$ac_ext
21401cat >>conftest.$ac_ext <<_ACEOF
21402/* end confdefs.h. */
21403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21405#define $ac_func innocuous_$ac_func
21406
21407/* System header to define __stub macros and hopefully few prototypes,
21408 which can conflict with char $ac_func (); below.
21409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21410 <limits.h> exists even on freestanding compilers. */
21411
21412#ifdef __STDC__
21413# include <limits.h>
21414#else
21415# include <assert.h>
21416#endif
21417
21418#undef $ac_func
21419
21420/* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21423#ifdef __cplusplus
21424extern "C"
21425#endif
21426char $ac_func ();
21427/* The GNU C library defines this for functions which it implements
21428 to always fail with ENOSYS. Some functions are actually named
21429 something starting with __ and the normal name is an alias. */
21430#if defined __stub_$ac_func || defined __stub___$ac_func
21431choke me
21432#endif
21433
21434int
21435main ()
21436{
21437return $ac_func ();
21438 ;
21439 return 0;
21440}
21441_ACEOF
21442rm -f conftest.$ac_objext conftest$ac_exeext
21443if { (ac_try="$ac_link"
21444case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447esac
21448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_link") 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext &&
21459 $as_test_x conftest$ac_exeext; then
21460 eval "$as_ac_var=yes"
21461else
21462 echo "$as_me: failed program was:" >&5
21463sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 eval "$as_ac_var=no"
21466fi
21467
21468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21469 conftest$ac_exeext conftest.$ac_ext
21470fi
21471ac_res=`eval echo '${'$as_ac_var'}'`
21472 { echo "$as_me:$LINENO: result: $ac_res" >&5
21473echo "${ECHO_T}$ac_res" >&6; }
21474if test `eval echo '${'$as_ac_var'}'` = yes; then
21475 cat >>confdefs.h <<_ACEOF
21476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21477_ACEOF
21478
21479fi
21480done
21481
21482
21483 if test "x$openssl_engine" = "xyes" ; then
21484 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
21485echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
21486 cat >conftest.$ac_ext <<_ACEOF
21487/* confdefs.h. */
21488_ACEOF
21489cat confdefs.h >>conftest.$ac_ext
21490cat >>conftest.$ac_ext <<_ACEOF
21491/* end confdefs.h. */
21492
21493 #include <openssl/engine.h>
21494
21495int
21496main ()
21497{
21498
21499 ENGINE_load_builtin_engines();
21500 ENGINE_register_all_complete();
21501
21502 ;
21503 return 0;
21504}
21505_ACEOF
21506rm -f conftest.$ac_objext
21507if { (ac_try="$ac_compile"
21508case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21511esac
21512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_compile") 2>conftest.er1
21514 ac_status=$?
21515 grep -v '^ *+' conftest.er1 >conftest.err
21516 rm -f conftest.er1
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } && {
21520 test -z "$ac_c_werror_flag" ||
21521 test ! -s conftest.err
21522 } && test -s conftest.$ac_objext; then
21523 { echo "$as_me:$LINENO: result: yes" >&5
21524echo "${ECHO_T}yes" >&6; }
21525
21526cat >>confdefs.h <<\_ACEOF
21527#define USE_OPENSSL_ENGINE 1
21528_ACEOF
21529
21530
21531else
21532 echo "$as_me: failed program was:" >&5
21533sed 's/^/| /' conftest.$ac_ext >&5
21534
21535 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
21536echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
21537 { (exit 1); exit 1; }; }
21538
21539fi
21540
21541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 fi
21543
21544 # Check for OpenSSL without EVP_aes_{192,256}_cbc
21545 { echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
21546echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21548/* confdefs.h. */
21549_ACEOF
21550cat confdefs.h >>conftest.$ac_ext
21551cat >>conftest.$ac_ext <<_ACEOF
21552/* end confdefs.h. */
21553
21554 #include <string.h>
21555 #include <openssl/evp.h>
21556
21557int
21558main ()
21559{
21560
21561 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
21562
21563 ;
21564 return 0;
21565}
21566_ACEOF
21567rm -f conftest.$ac_objext conftest$ac_exeext
21568if { (ac_try="$ac_link"
21569case "(($ac_try" in
21570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21571 *) ac_try_echo=$ac_try;;
21572esac
21573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_link") 2>conftest.er1
21575 ac_status=$?
21576 grep -v '^ *+' conftest.er1 >conftest.err
21577 rm -f conftest.er1
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } && {
21581 test -z "$ac_c_werror_flag" ||
21582 test ! -s conftest.err
21583 } && test -s conftest$ac_exeext &&
21584 $as_test_x conftest$ac_exeext; then
21585
21586 { echo "$as_me:$LINENO: result: no" >&5
21587echo "${ECHO_T}no" >&6; }
21588
21589else
21590 echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593
21594 { echo "$as_me:$LINENO: result: yes" >&5
21595echo "${ECHO_T}yes" >&6; }
21596
21597cat >>confdefs.h <<\_ACEOF
21598#define OPENSSL_LOBOTOMISED_AES 1
21599_ACEOF
21600
21601
21602
21603fi
21604
21605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21606 conftest$ac_exeext conftest.$ac_ext
21607
21608 # Check for OpenSSL with EVP_aes_*ctr
21609 { echo "$as_me:$LINENO: checking whether OpenSSL has AES CTR via EVP" >&5
21610echo $ECHO_N "checking whether OpenSSL has AES CTR via EVP... $ECHO_C" >&6; }
21611 cat >conftest.$ac_ext <<_ACEOF
21612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
21617
21618 #include <string.h>
21619 #include <openssl/evp.h>
21620
21621int
21622main ()
21623{
21624
21625 exit(EVP_aes_128_ctr() == NULL ||
21626 EVP_aes_192_cbc() == NULL ||
21627 EVP_aes_256_cbc() == NULL);
21628
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext conftest$ac_exeext
21634if { (ac_try="$ac_link"
21635case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638esac
21639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_link") 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } && {
21647 test -z "$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 } && test -s conftest$ac_exeext &&
21650 $as_test_x conftest$ac_exeext; then
21651
21652 { echo "$as_me:$LINENO: result: yes" >&5
21653echo "${ECHO_T}yes" >&6; }
21654
21655cat >>confdefs.h <<\_ACEOF
21656#define OPENSSL_HAVE_EVPCTR 1
21657_ACEOF
21658
21659
21660else
21661 echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
21664
21665 { echo "$as_me:$LINENO: result: no" >&5
21666echo "${ECHO_T}no" >&6; }
21667
21668
21669fi
21670
21671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21672 conftest$ac_exeext conftest.$ac_ext
21673
21674 # Check for OpenSSL with EVP_aes_*gcm
21675 { echo "$as_me:$LINENO: checking whether OpenSSL has AES GCM via EVP" >&5
21676echo $ECHO_N "checking whether OpenSSL has AES GCM via EVP... $ECHO_C" >&6; }
21677 cat >conftest.$ac_ext <<_ACEOF
21678/* confdefs.h. */
21679_ACEOF
21680cat confdefs.h >>conftest.$ac_ext
21681cat >>conftest.$ac_ext <<_ACEOF
21682/* end confdefs.h. */
21683
21684 #include <string.h>
21685 #include <openssl/evp.h>
21686
21687int
21688main ()
21689{
21690
21691 exit(EVP_aes_128_gcm() == NULL ||
21692 EVP_aes_256_gcm() == NULL ||
21693 EVP_CTRL_GCM_SET_IV_FIXED == 0 ||
21694 EVP_CTRL_GCM_IV_GEN == 0 ||
21695 EVP_CTRL_GCM_SET_TAG == 0 ||
21696 EVP_CTRL_GCM_GET_TAG == 0 ||
21697 EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0);
21698
21699 ;
21700 return 0;
21701}
21702_ACEOF
21703rm -f conftest.$ac_objext conftest$ac_exeext
21704if { (ac_try="$ac_link"
21705case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708esac
21709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_link") 2>conftest.er1
21711 ac_status=$?
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } && {
21717 test -z "$ac_c_werror_flag" ||
21718 test ! -s conftest.err
21719 } && test -s conftest$ac_exeext &&
21720 $as_test_x conftest$ac_exeext; then
21721
21722 { echo "$as_me:$LINENO: result: yes" >&5
21723echo "${ECHO_T}yes" >&6; }
21724
21725cat >>confdefs.h <<\_ACEOF
21726#define OPENSSL_HAVE_EVPGCM 1
21727_ACEOF
21728
21729
21730else
21731 echo "$as_me: failed program was:" >&5
21732sed 's/^/| /' conftest.$ac_ext >&5
21733
21734
21735 { echo "$as_me:$LINENO: result: no" >&5
21736echo "${ECHO_T}no" >&6; }
21737 unsupported_algorithms="$unsupported_cipers \
21738 aes128-gcm@openssh.com aes256-gcm@openssh.com"
21739
21740
21741fi
21742
21743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21744 conftest$ac_exeext conftest.$ac_ext
21745
21746 { echo "$as_me:$LINENO: checking for library containing EVP_CIPHER_CTX_ctrl" >&5
21747echo $ECHO_N "checking for library containing EVP_CIPHER_CTX_ctrl... $ECHO_C" >&6; }
21748if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750else
21751 ac_func_search_save_LIBS=$LIBS
21752cat >conftest.$ac_ext <<_ACEOF
21753/* confdefs.h. */
21754_ACEOF
21755cat confdefs.h >>conftest.$ac_ext
21756cat >>conftest.$ac_ext <<_ACEOF
21757/* end confdefs.h. */
21758
21759/* Override any GCC internal prototype to avoid an error.
21760 Use char because int might match the return type of a GCC
21761 builtin and then its argument prototype would still apply. */
21762#ifdef __cplusplus
21763extern "C"
21764#endif
21765char EVP_CIPHER_CTX_ctrl ();
21766int
21767main ()
21768{
21769return EVP_CIPHER_CTX_ctrl ();
21770 ;
21771 return 0;
21772}
21773_ACEOF
21774for ac_lib in '' crypto; do
21775 if test -z "$ac_lib"; then
21776 ac_res="none required"
21777 else
21778 ac_res=-l$ac_lib
21779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21780 fi
21781 rm -f conftest.$ac_objext conftest$ac_exeext
21782if { (ac_try="$ac_link"
21783case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786esac
21787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_link") 2>conftest.er1
21789 ac_status=$?
21790 grep -v '^ *+' conftest.er1 >conftest.err
21791 rm -f conftest.er1
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest$ac_exeext &&
21798 $as_test_x conftest$ac_exeext; then
21799 ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res
21800else
21801 echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
21804
21805fi
21806
21807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21808 conftest$ac_exeext
21809 if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21810 break
21811fi
21812done
21813if test "${ac_cv_search_EVP_CIPHER_CTX_ctrl+set}" = set; then
21814 :
21815else
21816 ac_cv_search_EVP_CIPHER_CTX_ctrl=no
21817fi
21818rm conftest.$ac_ext
21819LIBS=$ac_func_search_save_LIBS
21820fi
21821{ echo "$as_me:$LINENO: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5
21822echo "${ECHO_T}$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; }
21823ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl
21824if test "$ac_res" != no; then
21825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21826
21827cat >>confdefs.h <<\_ACEOF
21828#define HAVE_EVP_CIPHER_CTX_CTRL 1
21829_ACEOF
21830
21831fi
21832
21833
21834 { echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
21835echo $ECHO_N "checking if EVP_DigestUpdate returns an int... $ECHO_C" >&6; }
21836 cat >conftest.$ac_ext <<_ACEOF
21837/* confdefs.h. */
21838_ACEOF
21839cat confdefs.h >>conftest.$ac_ext
21840cat >>conftest.$ac_ext <<_ACEOF
21841/* end confdefs.h. */
21842
21843 #include <string.h>
21844 #include <openssl/evp.h>
21845
21846int
21847main ()
21848{
21849
21850 if(EVP_DigestUpdate(NULL, NULL,0))
21851 exit(0);
21852
21853 ;
21854 return 0;
21855}
21856_ACEOF
21857rm -f conftest.$ac_objext conftest$ac_exeext
21858if { (ac_try="$ac_link"
21859case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862esac
21863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_link") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest$ac_exeext &&
21874 $as_test_x conftest$ac_exeext; then
21875
21876 { echo "$as_me:$LINENO: result: yes" >&5
21877echo "${ECHO_T}yes" >&6; }
21878
21879else
21880 echo "$as_me: failed program was:" >&5
21881sed 's/^/| /' conftest.$ac_ext >&5
21882
21883
21884 { echo "$as_me:$LINENO: result: no" >&5
21885echo "${ECHO_T}no" >&6; }
21886
21887cat >>confdefs.h <<\_ACEOF
21888#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
21889_ACEOF
21890
21891
21892
21893fi
21894
21895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21896 conftest$ac_exeext conftest.$ac_ext
21897
21898 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
21899 # because the system crypt() is more featureful.
21900 if test "x$check_for_libcrypt_before" = "x1"; then
21901
21902{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21903echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21904if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21906else
21907 ac_check_lib_save_LIBS=$LIBS
21908LIBS="-lcrypt $LIBS"
21909cat >conftest.$ac_ext <<_ACEOF
21910/* confdefs.h. */
21911_ACEOF
21912cat confdefs.h >>conftest.$ac_ext
21913cat >>conftest.$ac_ext <<_ACEOF
21914/* end confdefs.h. */
21915
21916/* Override any GCC internal prototype to avoid an error.
21917 Use char because int might match the return type of a GCC
21918 builtin and then its argument prototype would still apply. */
21919#ifdef __cplusplus
21920extern "C"
21921#endif
21922char crypt ();
21923int
21924main ()
21925{
21926return crypt ();
21927 ;
21928 return 0;
21929}
21930_ACEOF
21931rm -f conftest.$ac_objext conftest$ac_exeext
21932if { (ac_try="$ac_link"
21933case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936esac
21937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_link") 2>conftest.er1
21939 ac_status=$?
21940 grep -v '^ *+' conftest.er1 >conftest.err
21941 rm -f conftest.er1
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest$ac_exeext &&
21948 $as_test_x conftest$ac_exeext; then
21949 ac_cv_lib_crypt_crypt=yes
21950else
21951 echo "$as_me: failed program was:" >&5
21952sed 's/^/| /' conftest.$ac_ext >&5
21953
21954 ac_cv_lib_crypt_crypt=no
21955fi
21956
21957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21958 conftest$ac_exeext conftest.$ac_ext
21959LIBS=$ac_check_lib_save_LIBS
21960fi
21961{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
21962echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
21963if test $ac_cv_lib_crypt_crypt = yes; then
21964 cat >>confdefs.h <<_ACEOF
21965#define HAVE_LIBCRYPT 1
21966_ACEOF
21967
21968 LIBS="-lcrypt $LIBS"
21969
21970fi
21971
21972 fi
21973
21974 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
21975 # version in OpenSSL.
21976 if test "x$check_for_libcrypt_later" = "x1"; then
21977 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
21978echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
21979if test "${ac_cv_lib_crypt_crypt+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21981else
21982 ac_check_lib_save_LIBS=$LIBS
21983LIBS="-lcrypt $LIBS"
21984cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h. */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h. */
21990
21991/* Override any GCC internal prototype to avoid an error.
21992 Use char because int might match the return type of a GCC
21993 builtin and then its argument prototype would still apply. */
21994#ifdef __cplusplus
21995extern "C"
21996#endif
21997char crypt ();
21998int
21999main ()
22000{
22001return crypt ();
22002 ;
22003 return 0;
22004}
22005_ACEOF
22006rm -f conftest.$ac_objext conftest$ac_exeext
22007if { (ac_try="$ac_link"
22008case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22011esac
22012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_link") 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest$ac_exeext &&
22023 $as_test_x conftest$ac_exeext; then
22024 ac_cv_lib_crypt_crypt=yes
22025else
22026 echo "$as_me: failed program was:" >&5
22027sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ac_cv_lib_crypt_crypt=no
22030fi
22031
22032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22033 conftest$ac_exeext conftest.$ac_ext
22034LIBS=$ac_check_lib_save_LIBS
22035fi
22036{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22037echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22038if test $ac_cv_lib_crypt_crypt = yes; then
22039 LIBS="$LIBS -lcrypt"
22040fi
22041
22042 fi
22043
22044
22045for ac_func in crypt DES_crypt
22046do
22047as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22048{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22049echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22050if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052else
22053 cat >conftest.$ac_ext <<_ACEOF
22054/* confdefs.h. */
22055_ACEOF
22056cat confdefs.h >>conftest.$ac_ext
22057cat >>conftest.$ac_ext <<_ACEOF
22058/* end confdefs.h. */
22059/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22061#define $ac_func innocuous_$ac_func
22062
22063/* System header to define __stub macros and hopefully few prototypes,
22064 which can conflict with char $ac_func (); below.
22065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22066 <limits.h> exists even on freestanding compilers. */
22067
22068#ifdef __STDC__
22069# include <limits.h>
22070#else
22071# include <assert.h>
22072#endif
22073
22074#undef $ac_func
22075
22076/* Override any GCC internal prototype to avoid an error.
22077 Use char because int might match the return type of a GCC
22078 builtin and then its argument prototype would still apply. */
22079#ifdef __cplusplus
22080extern "C"
22081#endif
22082char $ac_func ();
22083/* The GNU C library defines this for functions which it implements
22084 to always fail with ENOSYS. Some functions are actually named
22085 something starting with __ and the normal name is an alias. */
22086#if defined __stub_$ac_func || defined __stub___$ac_func
22087choke me
22088#endif
22089
22090int
22091main ()
22092{
22093return $ac_func ();
22094 ;
22095 return 0;
22096}
22097_ACEOF
22098rm -f conftest.$ac_objext conftest$ac_exeext
22099if { (ac_try="$ac_link"
22100case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103esac
22104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_link") 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest$ac_exeext &&
22115 $as_test_x conftest$ac_exeext; then
22116 eval "$as_ac_var=yes"
22117else
22118 echo "$as_me: failed program was:" >&5
22119sed 's/^/| /' conftest.$ac_ext >&5
22120
22121 eval "$as_ac_var=no"
22122fi
22123
22124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22125 conftest$ac_exeext conftest.$ac_ext
22126fi
22127ac_res=`eval echo '${'$as_ac_var'}'`
22128 { echo "$as_me:$LINENO: result: $ac_res" >&5
22129echo "${ECHO_T}$ac_res" >&6; }
22130if test `eval echo '${'$as_ac_var'}'` = yes; then
22131 cat >>confdefs.h <<_ACEOF
22132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22133_ACEOF
22134
22135fi
22136done
22137
22138
22139 # Search for SHA256 support in libc and/or OpenSSL
22140
22141
22142for ac_func in SHA256_Update EVP_sha256
22143do
22144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149else
22150 cat >conftest.$ac_ext <<_ACEOF
22151/* confdefs.h. */
22152_ACEOF
22153cat confdefs.h >>conftest.$ac_ext
22154cat >>conftest.$ac_ext <<_ACEOF
22155/* end confdefs.h. */
22156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22158#define $ac_func innocuous_$ac_func
22159
22160/* System header to define __stub macros and hopefully few prototypes,
22161 which can conflict with char $ac_func (); below.
22162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22163 <limits.h> exists even on freestanding compilers. */
22164
22165#ifdef __STDC__
22166# include <limits.h>
22167#else
22168# include <assert.h>
22169#endif
22170
22171#undef $ac_func
22172
22173/* Override any GCC internal prototype to avoid an error.
22174 Use char because int might match the return type of a GCC
22175 builtin and then its argument prototype would still apply. */
22176#ifdef __cplusplus
22177extern "C"
22178#endif
22179char $ac_func ();
22180/* The GNU C library defines this for functions which it implements
22181 to always fail with ENOSYS. Some functions are actually named
22182 something starting with __ and the normal name is an alias. */
22183#if defined __stub_$ac_func || defined __stub___$ac_func
22184choke me
22185#endif
22186
22187int
22188main ()
22189{
22190return $ac_func ();
22191 ;
22192 return 0;
22193}
22194_ACEOF
22195rm -f conftest.$ac_objext conftest$ac_exeext
22196if { (ac_try="$ac_link"
22197case "(($ac_try" in
22198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22200esac
22201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>conftest.er1
22203 ac_status=$?
22204 grep -v '^ *+' conftest.er1 >conftest.err
22205 rm -f conftest.er1
22206 cat conftest.err >&5
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); } && {
22209 test -z "$ac_c_werror_flag" ||
22210 test ! -s conftest.err
22211 } && test -s conftest$ac_exeext &&
22212 $as_test_x conftest$ac_exeext; then
22213 eval "$as_ac_var=yes"
22214else
22215 echo "$as_me: failed program was:" >&5
22216sed 's/^/| /' conftest.$ac_ext >&5
22217
22218 eval "$as_ac_var=no"
22219fi
22220
22221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22222 conftest$ac_exeext conftest.$ac_ext
22223fi
22224ac_res=`eval echo '${'$as_ac_var'}'`
22225 { echo "$as_me:$LINENO: result: $ac_res" >&5
22226echo "${ECHO_T}$ac_res" >&6; }
22227if test `eval echo '${'$as_ac_var'}'` = yes; then
22228 cat >>confdefs.h <<_ACEOF
22229#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22230_ACEOF
22231
22232else
22233 unsupported_algorithms="$unsupported_algorithms \
22234 hmac-sha2-256 hmac-sha2-512 \
22235 diffie-hellman-group-exchange-sha256 \
22236 hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com"
22237
22238
22239fi
22240done
22241
22242 # Search for RIPE-MD support in OpenSSL
22243
22244for ac_func in EVP_ripemd160
22245do
22246as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22247{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22249if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22251else
22252 cat >conftest.$ac_ext <<_ACEOF
22253/* confdefs.h. */
22254_ACEOF
22255cat confdefs.h >>conftest.$ac_ext
22256cat >>conftest.$ac_ext <<_ACEOF
22257/* end confdefs.h. */
22258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22260#define $ac_func innocuous_$ac_func
22261
22262/* System header to define __stub macros and hopefully few prototypes,
22263 which can conflict with char $ac_func (); below.
22264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265 <limits.h> exists even on freestanding compilers. */
22266
22267#ifdef __STDC__
22268# include <limits.h>
22269#else
22270# include <assert.h>
22271#endif
22272
22273#undef $ac_func
22274
22275/* Override any GCC internal prototype to avoid an error.
22276 Use char because int might match the return type of a GCC
22277 builtin and then its argument prototype would still apply. */
22278#ifdef __cplusplus
22279extern "C"
22280#endif
22281char $ac_func ();
22282/* The GNU C library defines this for functions which it implements
22283 to always fail with ENOSYS. Some functions are actually named
22284 something starting with __ and the normal name is an alias. */
22285#if defined __stub_$ac_func || defined __stub___$ac_func
22286choke me
22287#endif
22288
22289int
22290main ()
22291{
22292return $ac_func ();
22293 ;
22294 return 0;
22295}
22296_ACEOF
22297rm -f conftest.$ac_objext conftest$ac_exeext
22298if { (ac_try="$ac_link"
22299case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302esac
22303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_link") 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest$ac_exeext &&
22314 $as_test_x conftest$ac_exeext; then
22315 eval "$as_ac_var=yes"
22316else
22317 echo "$as_me: failed program was:" >&5
22318sed 's/^/| /' conftest.$ac_ext >&5
22319
22320 eval "$as_ac_var=no"
22321fi
22322
22323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22324 conftest$ac_exeext conftest.$ac_ext
22325fi
22326ac_res=`eval echo '${'$as_ac_var'}'`
22327 { echo "$as_me:$LINENO: result: $ac_res" >&5
22328echo "${ECHO_T}$ac_res" >&6; }
22329if test `eval echo '${'$as_ac_var'}'` = yes; then
22330 cat >>confdefs.h <<_ACEOF
22331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22332_ACEOF
22333
22334else
22335 unsupported_algorithms="$unsupported_algorithms \
22336 hmac-ripemd160
22337 hmac-ripemd160@openssh.com
22338 hmac-ripemd160-etm@openssh.com"
22339
22340
22341fi
22342done
22343
22344
22345 # Check complete ECC support in OpenSSL
22346 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_X9_62_prime256v1" >&5
22347echo $ECHO_N "checking whether OpenSSL has NID_X9_62_prime256v1... $ECHO_C" >&6; }
22348 cat >conftest.$ac_ext <<_ACEOF
22349/* confdefs.h. */
22350_ACEOF
22351cat confdefs.h >>conftest.$ac_ext
22352cat >>conftest.$ac_ext <<_ACEOF
22353/* end confdefs.h. */
22354
22355 #include <openssl/ec.h>
22356 #include <openssl/ecdh.h>
22357 #include <openssl/ecdsa.h>
22358 #include <openssl/evp.h>
22359 #include <openssl/objects.h>
22360 #include <openssl/opensslv.h>
22361 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22362 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22363 #endif
22364
22365int
22366main ()
22367{
22368
22369 EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
22370 const EVP_MD *m = EVP_sha256(); /* We need this too */
22371
22372 ;
22373 return 0;
22374}
22375_ACEOF
22376rm -f conftest.$ac_objext conftest$ac_exeext
22377if { (ac_try="$ac_link"
22378case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22381esac
22382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_link") 2>conftest.er1
22384 ac_status=$?
22385 grep -v '^ *+' conftest.er1 >conftest.err
22386 rm -f conftest.er1
22387 cat conftest.err >&5
22388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } && {
22390 test -z "$ac_c_werror_flag" ||
22391 test ! -s conftest.err
22392 } && test -s conftest$ac_exeext &&
22393 $as_test_x conftest$ac_exeext; then
22394 { echo "$as_me:$LINENO: result: yes" >&5
22395echo "${ECHO_T}yes" >&6; }
22396 enable_nistp256=1
22397else
22398 echo "$as_me: failed program was:" >&5
22399sed 's/^/| /' conftest.$ac_ext >&5
22400
22401 { echo "$as_me:$LINENO: result: no" >&5
22402echo "${ECHO_T}no" >&6; }
22403
22404fi
22405
22406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22407 conftest$ac_exeext conftest.$ac_ext
22408
22409 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp384r1" >&5
22410echo $ECHO_N "checking whether OpenSSL has NID_secp384r1... $ECHO_C" >&6; }
22411 cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h. */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h. */
22417
22418 #include <openssl/ec.h>
22419 #include <openssl/ecdh.h>
22420 #include <openssl/ecdsa.h>
22421 #include <openssl/evp.h>
22422 #include <openssl/objects.h>
22423 #include <openssl/opensslv.h>
22424 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22425 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22426 #endif
22427
22428int
22429main ()
22430{
22431
22432 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1);
22433 const EVP_MD *m = EVP_sha384(); /* We need this too */
22434
22435 ;
22436 return 0;
22437}
22438_ACEOF
22439rm -f conftest.$ac_objext conftest$ac_exeext
22440if { (ac_try="$ac_link"
22441case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444esac
22445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_link") 2>conftest.er1
22447 ac_status=$?
22448 grep -v '^ *+' conftest.er1 >conftest.err
22449 rm -f conftest.er1
22450 cat conftest.err >&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } && {
22453 test -z "$ac_c_werror_flag" ||
22454 test ! -s conftest.err
22455 } && test -s conftest$ac_exeext &&
22456 $as_test_x conftest$ac_exeext; then
22457 { echo "$as_me:$LINENO: result: yes" >&5
22458echo "${ECHO_T}yes" >&6; }
22459 enable_nistp384=1
22460else
22461 echo "$as_me: failed program was:" >&5
22462sed 's/^/| /' conftest.$ac_ext >&5
22463
22464 { echo "$as_me:$LINENO: result: no" >&5
22465echo "${ECHO_T}no" >&6; }
22466
22467fi
22468
22469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470 conftest$ac_exeext conftest.$ac_ext
22471
22472 { echo "$as_me:$LINENO: checking whether OpenSSL has NID_secp521r1" >&5
22473echo $ECHO_N "checking whether OpenSSL has NID_secp521r1... $ECHO_C" >&6; }
22474 cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h. */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
22480
22481 #include <openssl/ec.h>
22482 #include <openssl/ecdh.h>
22483 #include <openssl/ecdsa.h>
22484 #include <openssl/evp.h>
22485 #include <openssl/objects.h>
22486 #include <openssl/opensslv.h>
22487 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
22488 # error "OpenSSL < 0.9.8g has unreliable ECC code"
22489 #endif
22490
22491int
22492main ()
22493{
22494
22495 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22496 const EVP_MD *m = EVP_sha512(); /* We need this too */
22497
22498 ;
22499 return 0;
22500}
22501_ACEOF
22502rm -f conftest.$ac_objext conftest$ac_exeext
22503if { (ac_try="$ac_link"
22504case "(($ac_try" in
22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506 *) ac_try_echo=$ac_try;;
22507esac
22508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509 (eval "$ac_link") 2>conftest.er1
22510 ac_status=$?
22511 grep -v '^ *+' conftest.er1 >conftest.err
22512 rm -f conftest.er1
22513 cat conftest.err >&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } && {
22516 test -z "$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22518 } && test -s conftest$ac_exeext &&
22519 $as_test_x conftest$ac_exeext; then
22520 { echo "$as_me:$LINENO: result: yes" >&5
22521echo "${ECHO_T}yes" >&6; }
22522 { echo "$as_me:$LINENO: checking if OpenSSL's NID_secp521r1 is functional" >&5
22523echo $ECHO_N "checking if OpenSSL's NID_secp521r1 is functional... $ECHO_C" >&6; }
22524 if test "$cross_compiling" = yes; then
22525 { echo "$as_me:$LINENO: WARNING: cross-compiling: assuming yes" >&5
22526echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;}
22527 enable_nistp521=1
22528
22529else
22530 cat >conftest.$ac_ext <<_ACEOF
22531/* confdefs.h. */
22532_ACEOF
22533cat confdefs.h >>conftest.$ac_ext
22534cat >>conftest.$ac_ext <<_ACEOF
22535/* end confdefs.h. */
22536
22537 #include <openssl/ec.h>
22538 #include <openssl/ecdh.h>
22539 #include <openssl/ecdsa.h>
22540 #include <openssl/evp.h>
22541 #include <openssl/objects.h>
22542 #include <openssl/opensslv.h>
22543
22544int
22545main ()
22546{
22547
22548 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
22549 const EVP_MD *m = EVP_sha512(); /* We need this too */
22550 exit(e == NULL || m == NULL);
22551
22552 ;
22553 return 0;
22554}
22555_ACEOF
22556rm -f conftest$ac_exeext
22557if { (ac_try="$ac_link"
22558case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22561esac
22562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_link") 2>&5
22564 ac_status=$?
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22567 { (case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22570esac
22571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_try") 2>&5
22573 ac_status=$?
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 { echo "$as_me:$LINENO: result: yes" >&5
22577echo "${ECHO_T}yes" >&6; }
22578 enable_nistp521=1
22579else
22580 echo "$as_me: program exited with status $ac_status" >&5
22581echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
22584( exit $ac_status )
22585 { echo "$as_me:$LINENO: result: no" >&5
22586echo "${ECHO_T}no" >&6; }
22587fi
22588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22589fi
22590
22591
22592else
22593 echo "$as_me: failed program was:" >&5
22594sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 { echo "$as_me:$LINENO: result: no" >&5
22597echo "${ECHO_T}no" >&6; }
22598
22599fi
22600
22601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22602 conftest$ac_exeext conftest.$ac_ext
22603
22604 COMMENT_OUT_ECC="#no ecc#"
22605 TEST_SSH_ECC=no
22606
22607 if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \
22608 test x$enable_nistp521 = x1; then
22609
22610cat >>confdefs.h <<\_ACEOF
22611#define OPENSSL_HAS_ECC 1
22612_ACEOF
22613
22614 fi
22615 if test x$enable_nistp256 = x1; then
22616
22617cat >>confdefs.h <<\_ACEOF
22618#define OPENSSL_HAS_NISTP256 1
22619_ACEOF
22620
22621 TEST_SSH_ECC=yes
22622 COMMENT_OUT_ECC=""
22623 else
22624 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \
22625 ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com"
22626 fi
22627 if test x$enable_nistp384 = x1; then
22628
22629cat >>confdefs.h <<\_ACEOF
22630#define OPENSSL_HAS_NISTP384 1
22631_ACEOF
22632
22633 TEST_SSH_ECC=yes
22634 COMMENT_OUT_ECC=""
22635 else
22636 unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \
22637 ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com"
22638 fi
22639 if test x$enable_nistp521 = x1; then
22640
22641cat >>confdefs.h <<\_ACEOF
22642#define OPENSSL_HAS_NISTP521 1
22643_ACEOF
22644
22645 TEST_SSH_ECC=yes
22646 COMMENT_OUT_ECC=""
22647 else
22648 unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \
22649 ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com"
22650 fi
22651
22652
22653
22654else
22655 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22656echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22657if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22658 echo $ECHO_N "(cached) $ECHO_C" >&6
22659else
22660 ac_check_lib_save_LIBS=$LIBS
22661LIBS="-lcrypt $LIBS"
22662cat >conftest.$ac_ext <<_ACEOF
22663/* confdefs.h. */
22664_ACEOF
22665cat confdefs.h >>conftest.$ac_ext
22666cat >>conftest.$ac_ext <<_ACEOF
22667/* end confdefs.h. */
22668
22669/* Override any GCC internal prototype to avoid an error.
22670 Use char because int might match the return type of a GCC
22671 builtin and then its argument prototype would still apply. */
22672#ifdef __cplusplus
22673extern "C"
22674#endif
22675char crypt ();
22676int
22677main ()
22678{
22679return crypt ();
22680 ;
22681 return 0;
22682}
22683_ACEOF
22684rm -f conftest.$ac_objext conftest$ac_exeext
22685if { (ac_try="$ac_link"
22686case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22689esac
22690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_link") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest$ac_exeext &&
22701 $as_test_x conftest$ac_exeext; then
22702 ac_cv_lib_crypt_crypt=yes
22703else
22704 echo "$as_me: failed program was:" >&5
22705sed 's/^/| /' conftest.$ac_ext >&5
22706
22707 ac_cv_lib_crypt_crypt=no
22708fi
22709
22710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22711 conftest$ac_exeext conftest.$ac_ext
22712LIBS=$ac_check_lib_save_LIBS
22713fi
22714{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22715echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22716if test $ac_cv_lib_crypt_crypt = yes; then
22717 LIBS="$LIBS -lcrypt"
22718fi
22719
22720
22721for ac_func in crypt
22722do
22723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22727 echo $ECHO_N "(cached) $ECHO_C" >&6
22728else
22729 cat >conftest.$ac_ext <<_ACEOF
22730/* confdefs.h. */
22731_ACEOF
22732cat confdefs.h >>conftest.$ac_ext
22733cat >>conftest.$ac_ext <<_ACEOF
22734/* end confdefs.h. */
22735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22737#define $ac_func innocuous_$ac_func
22738
22739/* System header to define __stub macros and hopefully few prototypes,
22740 which can conflict with char $ac_func (); below.
22741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22742 <limits.h> exists even on freestanding compilers. */
22743
22744#ifdef __STDC__
22745# include <limits.h>
22746#else
22747# include <assert.h>
22748#endif
22749
22750#undef $ac_func
22751
22752/* Override any GCC internal prototype to avoid an error.
22753 Use char because int might match the return type of a GCC
22754 builtin and then its argument prototype would still apply. */
22755#ifdef __cplusplus
22756extern "C"
22757#endif
22758char $ac_func ();
22759/* The GNU C library defines this for functions which it implements
22760 to always fail with ENOSYS. Some functions are actually named
22761 something starting with __ and the normal name is an alias. */
22762#if defined __stub_$ac_func || defined __stub___$ac_func
22763choke me
22764#endif
22765
22766int
22767main ()
22768{
22769return $ac_func ();
22770 ;
22771 return 0;
22772}
22773_ACEOF
22774rm -f conftest.$ac_objext conftest$ac_exeext
22775if { (ac_try="$ac_link"
22776case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779esac
22780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781 (eval "$ac_link") 2>conftest.er1
22782 ac_status=$?
22783 grep -v '^ *+' conftest.er1 >conftest.err
22784 rm -f conftest.er1
22785 cat conftest.err >&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); } && {
22788 test -z "$ac_c_werror_flag" ||
22789 test ! -s conftest.err
22790 } && test -s conftest$ac_exeext &&
22791 $as_test_x conftest$ac_exeext; then
22792 eval "$as_ac_var=yes"
22793else
22794 echo "$as_me: failed program was:" >&5
22795sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 eval "$as_ac_var=no"
22798fi
22799
22800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22801 conftest$ac_exeext conftest.$ac_ext
22802fi
22803ac_res=`eval echo '${'$as_ac_var'}'`
22804 { echo "$as_me:$LINENO: result: $ac_res" >&5
22805echo "${ECHO_T}$ac_res" >&6; }
22806if test `eval echo '${'$as_ac_var'}'` = yes; then
22807 cat >>confdefs.h <<_ACEOF
22808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22809_ACEOF
22810
22811fi
22812done
22813
22814fi
22815
22816
22817
22818
22819
22820for ac_func in \
22821 arc4random \
22822 arc4random_buf \
22823 arc4random_stir \
22824 arc4random_uniform \
22825
22826do
22827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22828{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22830if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832else
22833 cat >conftest.$ac_ext <<_ACEOF
22834/* confdefs.h. */
22835_ACEOF
22836cat confdefs.h >>conftest.$ac_ext
22837cat >>conftest.$ac_ext <<_ACEOF
22838/* end confdefs.h. */
22839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22841#define $ac_func innocuous_$ac_func
22842
22843/* System header to define __stub macros and hopefully few prototypes,
22844 which can conflict with char $ac_func (); below.
22845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22846 <limits.h> exists even on freestanding compilers. */
22847
22848#ifdef __STDC__
22849# include <limits.h>
22850#else
22851# include <assert.h>
22852#endif
22853
22854#undef $ac_func
22855
22856/* Override any GCC internal prototype to avoid an error.
22857 Use char because int might match the return type of a GCC
22858 builtin and then its argument prototype would still apply. */
22859#ifdef __cplusplus
22860extern "C"
22861#endif
22862char $ac_func ();
22863/* The GNU C library defines this for functions which it implements
22864 to always fail with ENOSYS. Some functions are actually named
22865 something starting with __ and the normal name is an alias. */
22866#if defined __stub_$ac_func || defined __stub___$ac_func
22867choke me
22868#endif
22869
22870int
22871main ()
22872{
22873return $ac_func ();
22874 ;
22875 return 0;
22876}
22877_ACEOF
22878rm -f conftest.$ac_objext conftest$ac_exeext
22879if { (ac_try="$ac_link"
22880case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22883esac
22884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_link") 2>conftest.er1
22886 ac_status=$?
22887 grep -v '^ *+' conftest.er1 >conftest.err
22888 rm -f conftest.er1
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest$ac_exeext &&
22895 $as_test_x conftest$ac_exeext; then
22896 eval "$as_ac_var=yes"
22897else
22898 echo "$as_me: failed program was:" >&5
22899sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 eval "$as_ac_var=no"
22902fi
22903
22904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22905 conftest$ac_exeext conftest.$ac_ext
22906fi
22907ac_res=`eval echo '${'$as_ac_var'}'`
22908 { echo "$as_me:$LINENO: result: $ac_res" >&5
22909echo "${ECHO_T}$ac_res" >&6; }
22910if test `eval echo '${'$as_ac_var'}'` = yes; then
22911 cat >>confdefs.h <<_ACEOF
22912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22913_ACEOF
22914
22915fi
22916done
22917
22918
22919saved_LIBS="$LIBS"
22920{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
22921echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
22922if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
22923 echo $ECHO_N "(cached) $ECHO_C" >&6
22924else
22925 ac_check_lib_save_LIBS=$LIBS
22926LIBS="-liaf $LIBS"
22927cat >conftest.$ac_ext <<_ACEOF
22928/* confdefs.h. */
22929_ACEOF
22930cat confdefs.h >>conftest.$ac_ext
22931cat >>conftest.$ac_ext <<_ACEOF
22932/* end confdefs.h. */
22933
22934/* Override any GCC internal prototype to avoid an error.
22935 Use char because int might match the return type of a GCC
22936 builtin and then its argument prototype would still apply. */
22937#ifdef __cplusplus
22938extern "C"
22939#endif
22940char ia_openinfo ();
22941int
22942main ()
22943{
22944return ia_openinfo ();
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext conftest$ac_exeext
22950if { (ac_try="$ac_link"
22951case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954esac
22955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_link") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } && {
22963 test -z "$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 } && test -s conftest$ac_exeext &&
22966 $as_test_x conftest$ac_exeext; then
22967 ac_cv_lib_iaf_ia_openinfo=yes
22968else
22969 echo "$as_me: failed program was:" >&5
22970sed 's/^/| /' conftest.$ac_ext >&5
22971
22972 ac_cv_lib_iaf_ia_openinfo=no
22973fi
22974
22975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22976 conftest$ac_exeext conftest.$ac_ext
22977LIBS=$ac_check_lib_save_LIBS
22978fi
22979{ echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
22980echo "${ECHO_T}$ac_cv_lib_iaf_ia_openinfo" >&6; }
22981if test $ac_cv_lib_iaf_ia_openinfo = yes; then
22982
22983 LIBS="$LIBS -liaf"
22984
22985for ac_func in set_id
22986do
22987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22988{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22990if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22991 echo $ECHO_N "(cached) $ECHO_C" >&6
22992else
22993 cat >conftest.$ac_ext <<_ACEOF
22994/* confdefs.h. */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h. */
22999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23001#define $ac_func innocuous_$ac_func
23002
23003/* System header to define __stub macros and hopefully few prototypes,
23004 which can conflict with char $ac_func (); below.
23005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23006 <limits.h> exists even on freestanding compilers. */
23007
23008#ifdef __STDC__
23009# include <limits.h>
23010#else
23011# include <assert.h>
23012#endif
23013
23014#undef $ac_func
23015
23016/* Override any GCC internal prototype to avoid an error.
23017 Use char because int might match the return type of a GCC
23018 builtin and then its argument prototype would still apply. */
23019#ifdef __cplusplus
23020extern "C"
23021#endif
23022char $ac_func ();
23023/* The GNU C library defines this for functions which it implements
23024 to always fail with ENOSYS. Some functions are actually named
23025 something starting with __ and the normal name is an alias. */
23026#if defined __stub_$ac_func || defined __stub___$ac_func
23027choke me
23028#endif
23029
23030int
23031main ()
23032{
23033return $ac_func ();
23034 ;
23035 return 0;
23036}
23037_ACEOF
23038rm -f conftest.$ac_objext conftest$ac_exeext
23039if { (ac_try="$ac_link"
23040case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23043esac
23044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_link") 2>conftest.er1
23046 ac_status=$?
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } && {
23052 test -z "$ac_c_werror_flag" ||
23053 test ! -s conftest.err
23054 } && test -s conftest$ac_exeext &&
23055 $as_test_x conftest$ac_exeext; then
23056 eval "$as_ac_var=yes"
23057else
23058 echo "$as_me: failed program was:" >&5
23059sed 's/^/| /' conftest.$ac_ext >&5
23060
23061 eval "$as_ac_var=no"
23062fi
23063
23064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23065 conftest$ac_exeext conftest.$ac_ext
23066fi
23067ac_res=`eval echo '${'$as_ac_var'}'`
23068 { echo "$as_me:$LINENO: result: $ac_res" >&5
23069echo "${ECHO_T}$ac_res" >&6; }
23070if test `eval echo '${'$as_ac_var'}'` = yes; then
23071 cat >>confdefs.h <<_ACEOF
23072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23073_ACEOF
23074 SSHDLIBS="$SSHDLIBS -liaf"
23075
23076cat >>confdefs.h <<\_ACEOF
23077#define HAVE_LIBIAF 1
23078_ACEOF
23079
23080
23081fi
23082done
23083
23084
23085fi
23086
23087LIBS="$saved_LIBS"
23088
23089### Configure cryptographic random number support
23090
23091# Check wheter OpenSSL seeds itself
23092if test "x$openssl" = "xyes" ; then
23093 { echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
23094echo $ECHO_N "checking whether OpenSSL's PRNG is internally seeded... $ECHO_C" >&6; }
23095 if test "$cross_compiling" = yes; then
23096
23097 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23098echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23099 # This is safe, since we will fatal() at runtime if
23100 # OpenSSL is not seeded correctly.
23101 OPENSSL_SEEDS_ITSELF=yes
23102
23103
23104else
23105 cat >conftest.$ac_ext <<_ACEOF
23106/* confdefs.h. */
23107_ACEOF
23108cat confdefs.h >>conftest.$ac_ext
23109cat >>conftest.$ac_ext <<_ACEOF
23110/* end confdefs.h. */
23111
23112 #include <string.h>
23113 #include <openssl/rand.h>
23114
23115int
23116main ()
23117{
23118
23119 exit(RAND_status() == 1 ? 0 : 1);
23120
23121 ;
23122 return 0;
23123}
23124_ACEOF
23125rm -f conftest$ac_exeext
23126if { (ac_try="$ac_link"
23127case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23130esac
23131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_link") 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23136 { (case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139esac
23140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_try") 2>&5
23142 ac_status=$?
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); }; }; then
23145
23146 OPENSSL_SEEDS_ITSELF=yes
23147 { echo "$as_me:$LINENO: result: yes" >&5
23148echo "${ECHO_T}yes" >&6; }
23149
23150else
23151 echo "$as_me: program exited with status $ac_status" >&5
23152echo "$as_me: failed program was:" >&5
23153sed 's/^/| /' conftest.$ac_ext >&5
23154
23155( exit $ac_status )
23156
23157 { echo "$as_me:$LINENO: result: no" >&5
23158echo "${ECHO_T}no" >&6; }
23159
23160fi
23161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23162fi
23163
23164
23165fi
23166
23167# PRNGD TCP socket
23168
23169# Check whether --with-prngd-port was given.
23170if test "${with_prngd_port+set}" = set; then
23171 withval=$with_prngd_port;
23172 case "$withval" in
23173 no)
23174 withval=""
23175 ;;
23176 [0-9]*)
23177 ;;
23178 *)
23179 { { echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
23180echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
23181 { (exit 1); exit 1; }; }
23182 ;;
23183 esac
23184 if test ! -z "$withval" ; then
23185 PRNGD_PORT="$withval"
23186
23187cat >>confdefs.h <<_ACEOF
23188#define PRNGD_PORT $PRNGD_PORT
23189_ACEOF
23190
23191 fi
23192
23193
23194fi
23195
23196
23197# PRNGD Unix domain socket
23198
23199# Check whether --with-prngd-socket was given.
23200if test "${with_prngd_socket+set}" = set; then
23201 withval=$with_prngd_socket;
23202 case "$withval" in
23203 yes)
23204 withval="/var/run/egd-pool"
23205 ;;
23206 no)
23207 withval=""
23208 ;;
23209 /*)
23210 ;;
23211 *)
23212 { { echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
23213echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
23214 { (exit 1); exit 1; }; }
23215 ;;
23216 esac
23217
23218 if test ! -z "$withval" ; then
23219 if test ! -z "$PRNGD_PORT" ; then
23220 { { echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
23221echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
23222 { (exit 1); exit 1; }; }
23223 fi
23224 if test ! -r "$withval" ; then
23225 { echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
23226echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
23227 fi
23228 PRNGD_SOCKET="$withval"
23229
23230cat >>confdefs.h <<_ACEOF
23231#define PRNGD_SOCKET "$PRNGD_SOCKET"
23232_ACEOF
23233
23234 fi
23235
23236else
23237
23238 # Check for existing socket only if we don't have a random device already
23239 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
23240 { echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
23241echo $ECHO_N "checking for PRNGD/EGD socket... $ECHO_C" >&6; }
23242 # Insert other locations here
23243 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
23244 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
23245 PRNGD_SOCKET="$sock"
23246 cat >>confdefs.h <<_ACEOF
23247#define PRNGD_SOCKET "$PRNGD_SOCKET"
23248_ACEOF
23249
23250 break;
23251 fi
23252 done
23253 if test ! -z "$PRNGD_SOCKET" ; then
23254 { echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
23255echo "${ECHO_T}$PRNGD_SOCKET" >&6; }
23256 else
23257 { echo "$as_me:$LINENO: result: not found" >&5
23258echo "${ECHO_T}not found" >&6; }
23259 fi
23260 fi
23261
23262
23263fi
23264
23265
23266# Which randomness source do we use?
23267if test ! -z "$PRNGD_PORT" ; then
23268 RAND_MSG="PRNGd port $PRNGD_PORT"
23269elif test ! -z "$PRNGD_SOCKET" ; then
23270 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
23271elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
23272
23273cat >>confdefs.h <<\_ACEOF
23274#define OPENSSL_PRNG_ONLY 1
23275_ACEOF
23276
23277 RAND_MSG="OpenSSL internal ONLY"
23278elif test "x$openssl" = "xno" ; then
23279 { 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
23280echo "$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;}
23281else
23282 { { 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
23283echo "$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;}
23284 { (exit 1); exit 1; }; }
23285fi
23286
23287# Check for PAM libs
23288PAM_MSG="no"
23289
23290# Check whether --with-pam was given.
23291if test "${with_pam+set}" = set; then
23292 withval=$with_pam;
23293 if test "x$withval" != "xno" ; then
23294 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
23295 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
23296 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
23297echo "$as_me: error: PAM headers not found" >&2;}
23298 { (exit 1); exit 1; }; }
23299 fi
23300
23301 saved_LIBS="$LIBS"
23302
23303{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23304echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
23305if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307else
23308 ac_check_lib_save_LIBS=$LIBS
23309LIBS="-ldl $LIBS"
23310cat >conftest.$ac_ext <<_ACEOF
23311/* confdefs.h. */
23312_ACEOF
23313cat confdefs.h >>conftest.$ac_ext
23314cat >>conftest.$ac_ext <<_ACEOF
23315/* end confdefs.h. */
23316
23317/* Override any GCC internal prototype to avoid an error.
23318 Use char because int might match the return type of a GCC
23319 builtin and then its argument prototype would still apply. */
23320#ifdef __cplusplus
23321extern "C"
23322#endif
23323char dlopen ();
23324int
23325main ()
23326{
23327return dlopen ();
23328 ;
23329 return 0;
23330}
23331_ACEOF
23332rm -f conftest.$ac_objext conftest$ac_exeext
23333if { (ac_try="$ac_link"
23334case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23337esac
23338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339 (eval "$ac_link") 2>conftest.er1
23340 ac_status=$?
23341 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1
23343 cat conftest.err >&5
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } && {
23346 test -z "$ac_c_werror_flag" ||
23347 test ! -s conftest.err
23348 } && test -s conftest$ac_exeext &&
23349 $as_test_x conftest$ac_exeext; then
23350 ac_cv_lib_dl_dlopen=yes
23351else
23352 echo "$as_me: failed program was:" >&5
23353sed 's/^/| /' conftest.$ac_ext >&5
23354
23355 ac_cv_lib_dl_dlopen=no
23356fi
23357
23358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23359 conftest$ac_exeext conftest.$ac_ext
23360LIBS=$ac_check_lib_save_LIBS
23361fi
23362{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23363echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
23364if test $ac_cv_lib_dl_dlopen = yes; then
23365 cat >>confdefs.h <<_ACEOF
23366#define HAVE_LIBDL 1
23367_ACEOF
23368
23369 LIBS="-ldl $LIBS"
23370
23371fi
23372
23373
23374{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
23375echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
23376if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23378else
23379 ac_check_lib_save_LIBS=$LIBS
23380LIBS="-lpam $LIBS"
23381cat >conftest.$ac_ext <<_ACEOF
23382/* confdefs.h. */
23383_ACEOF
23384cat confdefs.h >>conftest.$ac_ext
23385cat >>conftest.$ac_ext <<_ACEOF
23386/* end confdefs.h. */
23387
23388/* Override any GCC internal prototype to avoid an error.
23389 Use char because int might match the return type of a GCC
23390 builtin and then its argument prototype would still apply. */
23391#ifdef __cplusplus
23392extern "C"
23393#endif
23394char pam_set_item ();
23395int
23396main ()
23397{
23398return pam_set_item ();
23399 ;
23400 return 0;
23401}
23402_ACEOF
23403rm -f conftest.$ac_objext conftest$ac_exeext
23404if { (ac_try="$ac_link"
23405case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23408esac
23409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_link") 2>conftest.er1
23411 ac_status=$?
23412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest$ac_exeext &&
23420 $as_test_x conftest$ac_exeext; then
23421 ac_cv_lib_pam_pam_set_item=yes
23422else
23423 echo "$as_me: failed program was:" >&5
23424sed 's/^/| /' conftest.$ac_ext >&5
23425
23426 ac_cv_lib_pam_pam_set_item=no
23427fi
23428
23429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23430 conftest$ac_exeext conftest.$ac_ext
23431LIBS=$ac_check_lib_save_LIBS
23432fi
23433{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
23434echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
23435if test $ac_cv_lib_pam_pam_set_item = yes; then
23436 cat >>confdefs.h <<_ACEOF
23437#define HAVE_LIBPAM 1
23438_ACEOF
23439
23440 LIBS="-lpam $LIBS"
23441
23442else
23443 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
23444echo "$as_me: error: *** libpam missing" >&2;}
23445 { (exit 1); exit 1; }; }
23446fi
23447
23448
23449for ac_func in pam_getenvlist
23450do
23451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23455 echo $ECHO_N "(cached) $ECHO_C" >&6
23456else
23457 cat >conftest.$ac_ext <<_ACEOF
23458/* confdefs.h. */
23459_ACEOF
23460cat confdefs.h >>conftest.$ac_ext
23461cat >>conftest.$ac_ext <<_ACEOF
23462/* end confdefs.h. */
23463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23465#define $ac_func innocuous_$ac_func
23466
23467/* System header to define __stub macros and hopefully few prototypes,
23468 which can conflict with char $ac_func (); below.
23469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23470 <limits.h> exists even on freestanding compilers. */
23471
23472#ifdef __STDC__
23473# include <limits.h>
23474#else
23475# include <assert.h>
23476#endif
23477
23478#undef $ac_func
23479
23480/* Override any GCC internal prototype to avoid an error.
23481 Use char because int might match the return type of a GCC
23482 builtin and then its argument prototype would still apply. */
23483#ifdef __cplusplus
23484extern "C"
23485#endif
23486char $ac_func ();
23487/* The GNU C library defines this for functions which it implements
23488 to always fail with ENOSYS. Some functions are actually named
23489 something starting with __ and the normal name is an alias. */
23490#if defined __stub_$ac_func || defined __stub___$ac_func
23491choke me
23492#endif
23493
23494int
23495main ()
23496{
23497return $ac_func ();
23498 ;
23499 return 0;
23500}
23501_ACEOF
23502rm -f conftest.$ac_objext conftest$ac_exeext
23503if { (ac_try="$ac_link"
23504case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23507esac
23508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_link") 2>conftest.er1
23510 ac_status=$?
23511 grep -v '^ *+' conftest.er1 >conftest.err
23512 rm -f conftest.er1
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest$ac_exeext &&
23519 $as_test_x conftest$ac_exeext; then
23520 eval "$as_ac_var=yes"
23521else
23522 echo "$as_me: failed program was:" >&5
23523sed 's/^/| /' conftest.$ac_ext >&5
23524
23525 eval "$as_ac_var=no"
23526fi
23527
23528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23529 conftest$ac_exeext conftest.$ac_ext
23530fi
23531ac_res=`eval echo '${'$as_ac_var'}'`
23532 { echo "$as_me:$LINENO: result: $ac_res" >&5
23533echo "${ECHO_T}$ac_res" >&6; }
23534if test `eval echo '${'$as_ac_var'}'` = yes; then
23535 cat >>confdefs.h <<_ACEOF
23536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23537_ACEOF
23538
23539fi
23540done
23541
23542
23543for ac_func in pam_putenv
23544do
23545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23546{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23549 echo $ECHO_N "(cached) $ECHO_C" >&6
23550else
23551 cat >conftest.$ac_ext <<_ACEOF
23552/* confdefs.h. */
23553_ACEOF
23554cat confdefs.h >>conftest.$ac_ext
23555cat >>conftest.$ac_ext <<_ACEOF
23556/* end confdefs.h. */
23557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23559#define $ac_func innocuous_$ac_func
23560
23561/* System header to define __stub macros and hopefully few prototypes,
23562 which can conflict with char $ac_func (); below.
23563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23564 <limits.h> exists even on freestanding compilers. */
23565
23566#ifdef __STDC__
23567# include <limits.h>
23568#else
23569# include <assert.h>
23570#endif
23571
23572#undef $ac_func
23573
23574/* Override any GCC internal prototype to avoid an error.
23575 Use char because int might match the return type of a GCC
23576 builtin and then its argument prototype would still apply. */
23577#ifdef __cplusplus
23578extern "C"
23579#endif
23580char $ac_func ();
23581/* The GNU C library defines this for functions which it implements
23582 to always fail with ENOSYS. Some functions are actually named
23583 something starting with __ and the normal name is an alias. */
23584#if defined __stub_$ac_func || defined __stub___$ac_func
23585choke me
23586#endif
23587
23588int
23589main ()
23590{
23591return $ac_func ();
23592 ;
23593 return 0;
23594}
23595_ACEOF
23596rm -f conftest.$ac_objext conftest$ac_exeext
23597if { (ac_try="$ac_link"
23598case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23601esac
23602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603 (eval "$ac_link") 2>conftest.er1
23604 ac_status=$?
23605 grep -v '^ *+' conftest.er1 >conftest.err
23606 rm -f conftest.er1
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } && {
23610 test -z "$ac_c_werror_flag" ||
23611 test ! -s conftest.err
23612 } && test -s conftest$ac_exeext &&
23613 $as_test_x conftest$ac_exeext; then
23614 eval "$as_ac_var=yes"
23615else
23616 echo "$as_me: failed program was:" >&5
23617sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 eval "$as_ac_var=no"
23620fi
23621
23622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23623 conftest$ac_exeext conftest.$ac_ext
23624fi
23625ac_res=`eval echo '${'$as_ac_var'}'`
23626 { echo "$as_me:$LINENO: result: $ac_res" >&5
23627echo "${ECHO_T}$ac_res" >&6; }
23628if test `eval echo '${'$as_ac_var'}'` = yes; then
23629 cat >>confdefs.h <<_ACEOF
23630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23631_ACEOF
23632
23633fi
23634done
23635
23636 LIBS="$saved_LIBS"
23637
23638 PAM_MSG="yes"
23639
23640 SSHDLIBS="$SSHDLIBS -lpam"
23641
23642cat >>confdefs.h <<\_ACEOF
23643#define USE_PAM 1
23644_ACEOF
23645
23646
23647 if test $ac_cv_lib_dl_dlopen = yes; then
23648 case "$LIBS" in
23649 *-ldl*)
23650 # libdl already in LIBS
23651 ;;
23652 *)
23653 SSHDLIBS="$SSHDLIBS -ldl"
23654 ;;
23655 esac
23656 fi
23657 fi
23658
23659
23660fi
23661
23662
23663# Check for older PAM
23664if test "x$PAM_MSG" = "xyes" ; then
23665 # Check PAM strerror arguments (old PAM)
23666 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
23667echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
23668 cat >conftest.$ac_ext <<_ACEOF
23669/* confdefs.h. */
23670_ACEOF
23671cat confdefs.h >>conftest.$ac_ext
23672cat >>conftest.$ac_ext <<_ACEOF
23673/* end confdefs.h. */
23674
23675#include <stdlib.h>
23676#if defined(HAVE_SECURITY_PAM_APPL_H)
23677#include <security/pam_appl.h>
23678#elif defined (HAVE_PAM_PAM_APPL_H)
23679#include <pam/pam_appl.h>
23680#endif
23681
23682int
23683main ()
23684{
23685
23686(void)pam_strerror((pam_handle_t *)NULL, -1);
23687
23688 ;
23689 return 0;
23690}
23691_ACEOF
23692rm -f conftest.$ac_objext
23693if { (ac_try="$ac_compile"
23694case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23697esac
23698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_compile") 2>conftest.er1
23700 ac_status=$?
23701 grep -v '^ *+' conftest.er1 >conftest.err
23702 rm -f conftest.er1
23703 cat conftest.err >&5
23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } && {
23706 test -z "$ac_c_werror_flag" ||
23707 test ! -s conftest.err
23708 } && test -s conftest.$ac_objext; then
23709 { echo "$as_me:$LINENO: result: no" >&5
23710echo "${ECHO_T}no" >&6; }
23711else
23712 echo "$as_me: failed program was:" >&5
23713sed 's/^/| /' conftest.$ac_ext >&5
23714
23715
23716
23717cat >>confdefs.h <<\_ACEOF
23718#define HAVE_OLD_PAM 1
23719_ACEOF
23720
23721 { echo "$as_me:$LINENO: result: yes" >&5
23722echo "${ECHO_T}yes" >&6; }
23723 PAM_MSG="yes (old library)"
23724
23725
23726fi
23727
23728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23729fi
23730
23731case "$host" in
23732*-*-cygwin*)
23733 SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER
23734 ;;
23735*)
23736 SSH_PRIVSEP_USER=sshd
23737 ;;
23738esac
23739
23740# Check whether --with-privsep-user was given.
23741if test "${with_privsep_user+set}" = set; then
23742 withval=$with_privsep_user;
23743 if test -n "$withval" && test "x$withval" != "xno" && \
23744 test "x${withval}" != "xyes"; then
23745 SSH_PRIVSEP_USER=$withval
23746 fi
23747
23748
23749fi
23750
23751if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then
23752
23753cat >>confdefs.h <<_ACEOF
23754#define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER
23755_ACEOF
23756
23757else
23758
23759cat >>confdefs.h <<_ACEOF
23760#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
23761_ACEOF
23762
23763fi
23764
23765
23766if test "x$have_linux_no_new_privs" = "x1" ; then
23767{ echo "$as_me:$LINENO: checking whether SECCOMP_MODE_FILTER is declared" >&5
23768echo $ECHO_N "checking whether SECCOMP_MODE_FILTER is declared... $ECHO_C" >&6; }
23769if test "${ac_cv_have_decl_SECCOMP_MODE_FILTER+set}" = set; then
23770 echo $ECHO_N "(cached) $ECHO_C" >&6
23771else
23772 cat >conftest.$ac_ext <<_ACEOF
23773/* confdefs.h. */
23774_ACEOF
23775cat confdefs.h >>conftest.$ac_ext
23776cat >>conftest.$ac_ext <<_ACEOF
23777/* end confdefs.h. */
23778
23779 #include <sys/types.h>
23780 #include <linux/seccomp.h>
23781
23782
23783int
23784main ()
23785{
23786#ifndef SECCOMP_MODE_FILTER
23787 (void) SECCOMP_MODE_FILTER;
23788#endif
23789
23790 ;
23791 return 0;
23792}
23793_ACEOF
23794rm -f conftest.$ac_objext
23795if { (ac_try="$ac_compile"
23796case "(($ac_try" in
23797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798 *) ac_try_echo=$ac_try;;
23799esac
23800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23802 ac_status=$?
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 ac_cv_have_decl_SECCOMP_MODE_FILTER=yes
23812else
23813 echo "$as_me: failed program was:" >&5
23814sed 's/^/| /' conftest.$ac_ext >&5
23815
23816 ac_cv_have_decl_SECCOMP_MODE_FILTER=no
23817fi
23818
23819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820fi
23821{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SECCOMP_MODE_FILTER" >&5
23822echo "${ECHO_T}$ac_cv_have_decl_SECCOMP_MODE_FILTER" >&6; }
23823if test $ac_cv_have_decl_SECCOMP_MODE_FILTER = yes; then
23824 have_seccomp_filter=1
23825fi
23826
23827fi
23828if test "x$have_seccomp_filter" = "x1" ; then
23829{ echo "$as_me:$LINENO: checking kernel for seccomp_filter support" >&5
23830echo $ECHO_N "checking kernel for seccomp_filter support... $ECHO_C" >&6; }
23831cat >conftest.$ac_ext <<_ACEOF
23832/* confdefs.h. */
23833_ACEOF
23834cat confdefs.h >>conftest.$ac_ext
23835cat >>conftest.$ac_ext <<_ACEOF
23836/* end confdefs.h. */
23837
23838 #include <errno.h>
23839 #include <elf.h>
23840 #include <linux/audit.h>
23841 #include <linux/seccomp.h>
23842 #include <stdlib.h>
23843 #include <sys/prctl.h>
23844
23845int
23846main ()
23847{
23848 int i = $seccomp_audit_arch;
23849 errno = 0;
23850 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
23851 exit(errno == EFAULT ? 0 : 1);
23852 ;
23853 return 0;
23854}
23855_ACEOF
23856rm -f conftest.$ac_objext conftest$ac_exeext
23857if { (ac_try="$ac_link"
23858case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23861esac
23862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863 (eval "$ac_link") 2>conftest.er1
23864 ac_status=$?
23865 grep -v '^ *+' conftest.er1 >conftest.err
23866 rm -f conftest.er1
23867 cat conftest.err >&5
23868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869 (exit $ac_status); } && {
23870 test -z "$ac_c_werror_flag" ||
23871 test ! -s conftest.err
23872 } && test -s conftest$ac_exeext &&
23873 $as_test_x conftest$ac_exeext; then
23874 { echo "$as_me:$LINENO: result: yes" >&5
23875echo "${ECHO_T}yes" >&6; }
23876else
23877 echo "$as_me: failed program was:" >&5
23878sed 's/^/| /' conftest.$ac_ext >&5
23879
23880
23881 { echo "$as_me:$LINENO: result: no" >&5
23882echo "${ECHO_T}no" >&6; }
23883 # Disable seccomp filter as a target
23884 have_seccomp_filter=0
23885
23886
23887fi
23888
23889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23890 conftest$ac_exeext conftest.$ac_ext
23891fi
23892
23893# Decide which sandbox style to use
23894sandbox_arg=""
23895
23896# Check whether --with-sandbox was given.
23897if test "${with_sandbox+set}" = set; then
23898 withval=$with_sandbox;
23899 if test "x$withval" = "xyes" ; then
23900 sandbox_arg=""
23901 else
23902 sandbox_arg="$withval"
23903 fi
23904
23905
23906fi
23907
23908
23909# Some platforms (seems to be the ones that have a kernel poll(2)-type
23910# function with which they implement select(2)) use an extra file descriptor
23911# when calling select(2), which means we can't use the rlimit sandbox.
23912{ echo "$as_me:$LINENO: checking if select works with descriptor rlimit" >&5
23913echo $ECHO_N "checking if select works with descriptor rlimit... $ECHO_C" >&6; }
23914if test "$cross_compiling" = yes; then
23915 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
23916echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
23917
23918else
23919 cat >conftest.$ac_ext <<_ACEOF
23920/* confdefs.h. */
23921_ACEOF
23922cat confdefs.h >>conftest.$ac_ext
23923cat >>conftest.$ac_ext <<_ACEOF
23924/* end confdefs.h. */
23925
23926#include <sys/types.h>
23927#ifdef HAVE_SYS_TIME_H
23928# include <sys/time.h>
23929#endif
23930#include <sys/resource.h>
23931#ifdef HAVE_SYS_SELECT_H
23932# include <sys/select.h>
23933#endif
23934#include <errno.h>
23935#include <fcntl.h>
23936#include <stdlib.h>
23937
23938int
23939main ()
23940{
23941
23942 struct rlimit rl_zero;
23943 int fd, r;
23944 fd_set fds;
23945 struct timeval tv;
23946
23947 fd = open("/dev/null", O_RDONLY);
23948 FD_ZERO(&fds);
23949 FD_SET(fd, &fds);
23950 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
23951 setrlimit(RLIMIT_FSIZE, &rl_zero);
23952 setrlimit(RLIMIT_NOFILE, &rl_zero);
23953 tv.tv_sec = 1;
23954 tv.tv_usec = 0;
23955 r = select(fd+1, &fds, NULL, NULL, &tv);
23956 exit (r == -1 ? 1 : 0);
23957
23958 ;
23959 return 0;
23960}
23961_ACEOF
23962rm -f conftest$ac_exeext
23963if { (ac_try="$ac_link"
23964case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23967esac
23968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969 (eval "$ac_link") 2>&5
23970 ac_status=$?
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23973 { (case "(($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_try") 2>&5
23979 ac_status=$?
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23982 { echo "$as_me:$LINENO: result: yes" >&5
23983echo "${ECHO_T}yes" >&6; }
23984 select_works_with_rlimit=yes
23985else
23986 echo "$as_me: program exited with status $ac_status" >&5
23987echo "$as_me: failed program was:" >&5
23988sed 's/^/| /' conftest.$ac_ext >&5
23989
23990( exit $ac_status )
23991{ echo "$as_me:$LINENO: result: no" >&5
23992echo "${ECHO_T}no" >&6; }
23993 select_works_with_rlimit=no
23994fi
23995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23996fi
23997
23998
23999
24000{ echo "$as_me:$LINENO: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5
24001echo $ECHO_N "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... $ECHO_C" >&6; }
24002if test "$cross_compiling" = yes; then
24003 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
24004echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
24005
24006else
24007 cat >conftest.$ac_ext <<_ACEOF
24008/* confdefs.h. */
24009_ACEOF
24010cat confdefs.h >>conftest.$ac_ext
24011cat >>conftest.$ac_ext <<_ACEOF
24012/* end confdefs.h. */
24013
24014#include <sys/types.h>
24015#ifdef HAVE_SYS_TIME_H
24016# include <sys/time.h>
24017#endif
24018#include <sys/resource.h>
24019#include <errno.h>
24020#include <stdlib.h>
24021
24022int
24023main ()
24024{
24025
24026 struct rlimit rl_zero;
24027 int fd, r;
24028 fd_set fds;
24029
24030 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
24031 r = setrlimit(RLIMIT_NOFILE, &rl_zero);
24032 exit (r == -1 ? 1 : 0);
24033
24034 ;
24035 return 0;
24036}
24037_ACEOF
24038rm -f conftest$ac_exeext
24039if { (ac_try="$ac_link"
24040case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043esac
24044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_link") 2>&5
24046 ac_status=$?
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24049 { (case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24052esac
24053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_try") 2>&5
24055 ac_status=$?
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; }; then
24058 { echo "$as_me:$LINENO: result: yes" >&5
24059echo "${ECHO_T}yes" >&6; }
24060 rlimit_nofile_zero_works=yes
24061else
24062 echo "$as_me: program exited with status $ac_status" >&5
24063echo "$as_me: failed program was:" >&5
24064sed 's/^/| /' conftest.$ac_ext >&5
24065
24066( exit $ac_status )
24067{ echo "$as_me:$LINENO: result: no" >&5
24068echo "${ECHO_T}no" >&6; }
24069 rlimit_nofile_zero_works=no
24070fi
24071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24072fi
24073
24074
24075
24076{ echo "$as_me:$LINENO: checking if setrlimit RLIMIT_FSIZE works" >&5
24077echo $ECHO_N "checking if setrlimit RLIMIT_FSIZE works... $ECHO_C" >&6; }
24078if test "$cross_compiling" = yes; then
24079 { echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
24080echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
24081
24082else
24083 cat >conftest.$ac_ext <<_ACEOF
24084/* confdefs.h. */
24085_ACEOF
24086cat confdefs.h >>conftest.$ac_ext
24087cat >>conftest.$ac_ext <<_ACEOF
24088/* end confdefs.h. */
24089
24090#include <sys/types.h>
24091#include <sys/resource.h>
24092#include <stdlib.h>
24093
24094int
24095main ()
24096{
24097
24098 struct rlimit rl_zero;
24099
24100 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
24101 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
24102
24103 ;
24104 return 0;
24105}
24106_ACEOF
24107rm -f conftest$ac_exeext
24108if { (ac_try="$ac_link"
24109case "(($ac_try" in
24110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111 *) ac_try_echo=$ac_try;;
24112esac
24113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114 (eval "$ac_link") 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24118 { (case "(($ac_try" in
24119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120 *) ac_try_echo=$ac_try;;
24121esac
24122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24123 (eval "$ac_try") 2>&5
24124 ac_status=$?
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; }; then
24127 { echo "$as_me:$LINENO: result: yes" >&5
24128echo "${ECHO_T}yes" >&6; }
24129else
24130 echo "$as_me: program exited with status $ac_status" >&5
24131echo "$as_me: failed program was:" >&5
24132sed 's/^/| /' conftest.$ac_ext >&5
24133
24134( exit $ac_status )
24135{ echo "$as_me:$LINENO: result: no" >&5
24136echo "${ECHO_T}no" >&6; }
24137
24138cat >>confdefs.h <<\_ACEOF
24139#define SANDBOX_SKIP_RLIMIT_FSIZE 1
24140_ACEOF
24141
24142fi
24143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24144fi
24145
24146
24147
24148if test "x$sandbox_arg" = "xsystrace" || \
24149 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
24150 test "x$have_systr_policy_kill" != "x1" && \
24151 { { echo "$as_me:$LINENO: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&5
24152echo "$as_me: error: systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" >&2;}
24153 { (exit 1); exit 1; }; }
24154 SANDBOX_STYLE="systrace"
24155
24156cat >>confdefs.h <<\_ACEOF
24157#define SANDBOX_SYSTRACE 1
24158_ACEOF
24159
24160elif test "x$sandbox_arg" = "xdarwin" || \
24161 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
24162 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
24163 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
24164 "x$ac_cv_header_sandbox_h" != "xyes" && \
24165 { { echo "$as_me:$LINENO: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&5
24166echo "$as_me: error: Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" >&2;}
24167 { (exit 1); exit 1; }; }
24168 SANDBOX_STYLE="darwin"
24169
24170cat >>confdefs.h <<\_ACEOF
24171#define SANDBOX_DARWIN 1
24172_ACEOF
24173
24174elif test "x$sandbox_arg" = "xseccomp_filter" || \
24175 ( test -z "$sandbox_arg" && \
24176 test "x$have_seccomp_filter" = "x1" && \
24177 test "x$ac_cv_header_elf_h" = "xyes" && \
24178 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
24179 test "x$ac_cv_header_linux_filter_h" = "xyes" && \
24180 test "x$seccomp_audit_arch" != "x" && \
24181 test "x$have_linux_no_new_privs" = "x1" && \
24182 test "x$ac_cv_func_prctl" = "xyes" ) ; then
24183 test "x$seccomp_audit_arch" = "x" && \
24184 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox not supported on $host" >&5
24185echo "$as_me: error: seccomp_filter sandbox not supported on $host" >&2;}
24186 { (exit 1); exit 1; }; }
24187 test "x$have_linux_no_new_privs" != "x1" && \
24188 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&5
24189echo "$as_me: error: seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" >&2;}
24190 { (exit 1); exit 1; }; }
24191 test "x$have_seccomp_filter" != "x1" && \
24192 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires seccomp headers" >&5
24193echo "$as_me: error: seccomp_filter sandbox requires seccomp headers" >&2;}
24194 { (exit 1); exit 1; }; }
24195 test "x$ac_cv_func_prctl" != "xyes" && \
24196 { { echo "$as_me:$LINENO: error: seccomp_filter sandbox requires prctl function" >&5
24197echo "$as_me: error: seccomp_filter sandbox requires prctl function" >&2;}
24198 { (exit 1); exit 1; }; }
24199 SANDBOX_STYLE="seccomp_filter"
24200
24201cat >>confdefs.h <<\_ACEOF
24202#define SANDBOX_SECCOMP_FILTER 1
24203_ACEOF
24204
24205elif test "x$sandbox_arg" = "xcapsicum" || \
24206 ( test -z "$sandbox_arg" && \
24207 test "x$ac_cv_header_sys_capability_h" = "xyes" && \
24208 test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then
24209 test "x$ac_cv_header_sys_capability_h" != "xyes" && \
24210 { { echo "$as_me:$LINENO: error: capsicum sandbox requires sys/capability.h header" >&5
24211echo "$as_me: error: capsicum sandbox requires sys/capability.h header" >&2;}
24212 { (exit 1); exit 1; }; }
24213 test "x$ac_cv_func_cap_rights_limit" != "xyes" && \
24214 { { echo "$as_me:$LINENO: error: capsicum sandbox requires cap_rights_limit function" >&5
24215echo "$as_me: error: capsicum sandbox requires cap_rights_limit function" >&2;}
24216 { (exit 1); exit 1; }; }
24217 SANDBOX_STYLE="capsicum"
24218
24219cat >>confdefs.h <<\_ACEOF
24220#define SANDBOX_CAPSICUM 1
24221_ACEOF
24222
24223elif test "x$sandbox_arg" = "xrlimit" || \
24224 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
24225 test "x$select_works_with_rlimit" = "xyes" && \
24226 test "x$rlimit_nofile_zero_works" = "xyes" ) ; then
24227 test "x$ac_cv_func_setrlimit" != "xyes" && \
24228 { { echo "$as_me:$LINENO: error: rlimit sandbox requires setrlimit function" >&5
24229echo "$as_me: error: rlimit sandbox requires setrlimit function" >&2;}
24230 { (exit 1); exit 1; }; }
24231 test "x$select_works_with_rlimit" != "xyes" && \
24232 { { echo "$as_me:$LINENO: error: rlimit sandbox requires select to work with rlimit" >&5
24233echo "$as_me: error: rlimit sandbox requires select to work with rlimit" >&2;}
24234 { (exit 1); exit 1; }; }
24235 SANDBOX_STYLE="rlimit"
24236
24237cat >>confdefs.h <<\_ACEOF
24238#define SANDBOX_RLIMIT 1
24239_ACEOF
24240
24241elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
24242 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
24243 SANDBOX_STYLE="none"
24244
24245cat >>confdefs.h <<\_ACEOF
24246#define SANDBOX_NULL 1
24247_ACEOF
24248
24249else
24250 { { echo "$as_me:$LINENO: error: unsupported --with-sandbox" >&5
24251echo "$as_me: error: unsupported --with-sandbox" >&2;}
24252 { (exit 1); exit 1; }; }
24253fi
24254
24255# Cheap hack to ensure NEWS-OS libraries are arranged right.
24256if test ! -z "$SONY" ; then
24257 LIBS="$LIBS -liberty";
24258fi
24259
24260# Check for long long datatypes
24261{ echo "$as_me:$LINENO: checking for long long" >&5
24262echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24263if test "${ac_cv_type_long_long+set}" = set; then
24264 echo $ECHO_N "(cached) $ECHO_C" >&6
24265else
24266 cat >conftest.$ac_ext <<_ACEOF
24267/* confdefs.h. */
24268_ACEOF
24269cat confdefs.h >>conftest.$ac_ext
24270cat >>conftest.$ac_ext <<_ACEOF
24271/* end confdefs.h. */
24272$ac_includes_default
24273typedef long long ac__type_new_;
24274int
24275main ()
24276{
24277if ((ac__type_new_ *) 0)
24278 return 0;
24279if (sizeof (ac__type_new_))
24280 return 0;
24281 ;
24282 return 0;
24283}
24284_ACEOF
24285rm -f conftest.$ac_objext
24286if { (ac_try="$ac_compile"
24287case "(($ac_try" in
24288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24290esac
24291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292 (eval "$ac_compile") 2>conftest.er1
24293 ac_status=$?
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest.$ac_objext; then
24302 ac_cv_type_long_long=yes
24303else
24304 echo "$as_me: failed program was:" >&5
24305sed 's/^/| /' conftest.$ac_ext >&5
24306
24307 ac_cv_type_long_long=no
24308fi
24309
24310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311fi
24312{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24313echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24314if test $ac_cv_type_long_long = yes; then
24315
24316cat >>confdefs.h <<_ACEOF
24317#define HAVE_LONG_LONG 1
24318_ACEOF
24319
24320
24321fi
24322{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
24323echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
24324if test "${ac_cv_type_unsigned_long_long+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24326else
24327 cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
24333$ac_includes_default
24334typedef unsigned long long ac__type_new_;
24335int
24336main ()
24337{
24338if ((ac__type_new_ *) 0)
24339 return 0;
24340if (sizeof (ac__type_new_))
24341 return 0;
24342 ;
24343 return 0;
24344}
24345_ACEOF
24346rm -f conftest.$ac_objext
24347if { (ac_try="$ac_compile"
24348case "(($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_compile") 2>conftest.er1
24354 ac_status=$?
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } && {
24360 test -z "$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 } && test -s conftest.$ac_objext; then
24363 ac_cv_type_unsigned_long_long=yes
24364else
24365 echo "$as_me: failed program was:" >&5
24366sed 's/^/| /' conftest.$ac_ext >&5
24367
24368 ac_cv_type_unsigned_long_long=no
24369fi
24370
24371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372fi
24373{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
24374echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
24375if test $ac_cv_type_unsigned_long_long = yes; then
24376
24377cat >>confdefs.h <<_ACEOF
24378#define HAVE_UNSIGNED_LONG_LONG 1
24379_ACEOF
24380
24381
24382fi
24383{ echo "$as_me:$LINENO: checking for long double" >&5
24384echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
24385if test "${ac_cv_type_long_double+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24387else
24388 cat >conftest.$ac_ext <<_ACEOF
24389/* confdefs.h. */
24390_ACEOF
24391cat confdefs.h >>conftest.$ac_ext
24392cat >>conftest.$ac_ext <<_ACEOF
24393/* end confdefs.h. */
24394$ac_includes_default
24395typedef long double ac__type_new_;
24396int
24397main ()
24398{
24399if ((ac__type_new_ *) 0)
24400 return 0;
24401if (sizeof (ac__type_new_))
24402 return 0;
24403 ;
24404 return 0;
24405}
24406_ACEOF
24407rm -f conftest.$ac_objext
24408if { (ac_try="$ac_compile"
24409case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24412esac
24413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414 (eval "$ac_compile") 2>conftest.er1
24415 ac_status=$?
24416 grep -v '^ *+' conftest.er1 >conftest.err
24417 rm -f conftest.er1
24418 cat conftest.err >&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && {
24421 test -z "$ac_c_werror_flag" ||
24422 test ! -s conftest.err
24423 } && test -s conftest.$ac_objext; then
24424 ac_cv_type_long_double=yes
24425else
24426 echo "$as_me: failed program was:" >&5
24427sed 's/^/| /' conftest.$ac_ext >&5
24428
24429 ac_cv_type_long_double=no
24430fi
24431
24432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24433fi
24434{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
24435echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
24436if test $ac_cv_type_long_double = yes; then
24437
24438cat >>confdefs.h <<_ACEOF
24439#define HAVE_LONG_DOUBLE 1
24440_ACEOF
24441
24442
24443fi
24444
24445
24446# Check datatype sizes
24447{ echo "$as_me:$LINENO: checking for short int" >&5
24448echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24449if test "${ac_cv_type_short_int+set}" = set; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
24451else
24452 cat >conftest.$ac_ext <<_ACEOF
24453/* confdefs.h. */
24454_ACEOF
24455cat confdefs.h >>conftest.$ac_ext
24456cat >>conftest.$ac_ext <<_ACEOF
24457/* end confdefs.h. */
24458$ac_includes_default
24459typedef short int ac__type_new_;
24460int
24461main ()
24462{
24463if ((ac__type_new_ *) 0)
24464 return 0;
24465if (sizeof (ac__type_new_))
24466 return 0;
24467 ;
24468 return 0;
24469}
24470_ACEOF
24471rm -f conftest.$ac_objext
24472if { (ac_try="$ac_compile"
24473case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24476esac
24477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_compile") 2>conftest.er1
24479 ac_status=$?
24480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } && {
24485 test -z "$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 } && test -s conftest.$ac_objext; then
24488 ac_cv_type_short_int=yes
24489else
24490 echo "$as_me: failed program was:" >&5
24491sed 's/^/| /' conftest.$ac_ext >&5
24492
24493 ac_cv_type_short_int=no
24494fi
24495
24496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24497fi
24498{ echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24499echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24500
24501# The cast to long int works around a bug in the HP C Compiler
24502# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24503# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24504# This bug is HP SR number 8606223364.
24505{ echo "$as_me:$LINENO: checking size of short int" >&5
24506echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24507if test "${ac_cv_sizeof_short_int+set}" = set; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24509else
24510 if test "$cross_compiling" = yes; then
24511 # Depending upon the size, compute the lo and hi bounds.
24512cat >conftest.$ac_ext <<_ACEOF
24513/* confdefs.h. */
24514_ACEOF
24515cat confdefs.h >>conftest.$ac_ext
24516cat >>conftest.$ac_ext <<_ACEOF
24517/* end confdefs.h. */
24518$ac_includes_default
24519 typedef short int ac__type_sizeof_;
24520int
24521main ()
24522{
24523static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24524test_array [0] = 0
24525
24526 ;
24527 return 0;
24528}
24529_ACEOF
24530rm -f conftest.$ac_objext
24531if { (ac_try="$ac_compile"
24532case "(($ac_try" in
24533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534 *) ac_try_echo=$ac_try;;
24535esac
24536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24538 ac_status=$?
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24547 ac_lo=0 ac_mid=0
24548 while :; do
24549 cat >conftest.$ac_ext <<_ACEOF
24550/* confdefs.h. */
24551_ACEOF
24552cat confdefs.h >>conftest.$ac_ext
24553cat >>conftest.$ac_ext <<_ACEOF
24554/* end confdefs.h. */
24555$ac_includes_default
24556 typedef short int ac__type_sizeof_;
24557int
24558main ()
24559{
24560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24561test_array [0] = 0
24562
24563 ;
24564 return 0;
24565}
24566_ACEOF
24567rm -f conftest.$ac_objext
24568if { (ac_try="$ac_compile"
24569case "(($ac_try" in
24570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571 *) ac_try_echo=$ac_try;;
24572esac
24573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574 (eval "$ac_compile") 2>conftest.er1
24575 ac_status=$?
24576 grep -v '^ *+' conftest.er1 >conftest.err
24577 rm -f conftest.er1
24578 cat conftest.err >&5
24579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580 (exit $ac_status); } && {
24581 test -z "$ac_c_werror_flag" ||
24582 test ! -s conftest.err
24583 } && test -s conftest.$ac_objext; then
24584 ac_hi=$ac_mid; break
24585else
24586 echo "$as_me: failed program was:" >&5
24587sed 's/^/| /' conftest.$ac_ext >&5
24588
24589 ac_lo=`expr $ac_mid + 1`
24590 if test $ac_lo -le $ac_mid; then
24591 ac_lo= ac_hi=
24592 break
24593 fi
24594 ac_mid=`expr 2 '*' $ac_mid + 1`
24595fi
24596
24597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598 done
24599else
24600 echo "$as_me: failed program was:" >&5
24601sed 's/^/| /' conftest.$ac_ext >&5
24602
24603 cat >conftest.$ac_ext <<_ACEOF
24604/* confdefs.h. */
24605_ACEOF
24606cat confdefs.h >>conftest.$ac_ext
24607cat >>conftest.$ac_ext <<_ACEOF
24608/* end confdefs.h. */
24609$ac_includes_default
24610 typedef short int ac__type_sizeof_;
24611int
24612main ()
24613{
24614static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24615test_array [0] = 0
24616
24617 ;
24618 return 0;
24619}
24620_ACEOF
24621rm -f conftest.$ac_objext
24622if { (ac_try="$ac_compile"
24623case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24626esac
24627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_compile") 2>conftest.er1
24629 ac_status=$?
24630 grep -v '^ *+' conftest.er1 >conftest.err
24631 rm -f conftest.er1
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest.$ac_objext; then
24638 ac_hi=-1 ac_mid=-1
24639 while :; do
24640 cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
24646$ac_includes_default
24647 typedef short int ac__type_sizeof_;
24648int
24649main ()
24650{
24651static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24652test_array [0] = 0
24653
24654 ;
24655 return 0;
24656}
24657_ACEOF
24658rm -f conftest.$ac_objext
24659if { (ac_try="$ac_compile"
24660case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24663esac
24664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_compile") 2>conftest.er1
24666 ac_status=$?
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && {
24672 test -z "$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24674 } && test -s conftest.$ac_objext; then
24675 ac_lo=$ac_mid; break
24676else
24677 echo "$as_me: failed program was:" >&5
24678sed 's/^/| /' conftest.$ac_ext >&5
24679
24680 ac_hi=`expr '(' $ac_mid ')' - 1`
24681 if test $ac_mid -le $ac_hi; then
24682 ac_lo= ac_hi=
24683 break
24684 fi
24685 ac_mid=`expr 2 '*' $ac_mid`
24686fi
24687
24688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689 done
24690else
24691 echo "$as_me: failed program was:" >&5
24692sed 's/^/| /' conftest.$ac_ext >&5
24693
24694 ac_lo= ac_hi=
24695fi
24696
24697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698fi
24699
24700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24701# Binary search between lo and hi bounds.
24702while test "x$ac_lo" != "x$ac_hi"; do
24703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24704 cat >conftest.$ac_ext <<_ACEOF
24705/* confdefs.h. */
24706_ACEOF
24707cat confdefs.h >>conftest.$ac_ext
24708cat >>conftest.$ac_ext <<_ACEOF
24709/* end confdefs.h. */
24710$ac_includes_default
24711 typedef short int ac__type_sizeof_;
24712int
24713main ()
24714{
24715static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24716test_array [0] = 0
24717
24718 ;
24719 return 0;
24720}
24721_ACEOF
24722rm -f conftest.$ac_objext
24723if { (ac_try="$ac_compile"
24724case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24727esac
24728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729 (eval "$ac_compile") 2>conftest.er1
24730 ac_status=$?
24731 grep -v '^ *+' conftest.er1 >conftest.err
24732 rm -f conftest.er1
24733 cat conftest.err >&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } && {
24736 test -z "$ac_c_werror_flag" ||
24737 test ! -s conftest.err
24738 } && test -s conftest.$ac_objext; then
24739 ac_hi=$ac_mid
24740else
24741 echo "$as_me: failed program was:" >&5
24742sed 's/^/| /' conftest.$ac_ext >&5
24743
24744 ac_lo=`expr '(' $ac_mid ')' + 1`
24745fi
24746
24747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748done
24749case $ac_lo in
24750?*) ac_cv_sizeof_short_int=$ac_lo;;
24751'') if test "$ac_cv_type_short_int" = yes; then
24752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24753See \`config.log' for more details." >&5
24754echo "$as_me: error: cannot compute sizeof (short int)
24755See \`config.log' for more details." >&2;}
24756 { (exit 77); exit 77; }; }
24757 else
24758 ac_cv_sizeof_short_int=0
24759 fi ;;
24760esac
24761else
24762 cat >conftest.$ac_ext <<_ACEOF
24763/* confdefs.h. */
24764_ACEOF
24765cat confdefs.h >>conftest.$ac_ext
24766cat >>conftest.$ac_ext <<_ACEOF
24767/* end confdefs.h. */
24768$ac_includes_default
24769 typedef short int ac__type_sizeof_;
24770static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24771static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24772#include <stdio.h>
24773#include <stdlib.h>
24774int
24775main ()
24776{
24777
24778 FILE *f = fopen ("conftest.val", "w");
24779 if (! f)
24780 return 1;
24781 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24782 {
24783 long int i = longval ();
24784 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24785 return 1;
24786 fprintf (f, "%ld\n", i);
24787 }
24788 else
24789 {
24790 unsigned long int i = ulongval ();
24791 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24792 return 1;
24793 fprintf (f, "%lu\n", i);
24794 }
24795 return ferror (f) || fclose (f) != 0;
24796
24797 ;
24798 return 0;
24799}
24800_ACEOF
24801rm -f conftest$ac_exeext
24802if { (ac_try="$ac_link"
24803case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806esac
24807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_link") 2>&5
24809 ac_status=$?
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812 { (case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24815esac
24816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817 (eval "$ac_try") 2>&5
24818 ac_status=$?
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 ac_cv_sizeof_short_int=`cat conftest.val`
24822else
24823 echo "$as_me: program exited with status $ac_status" >&5
24824echo "$as_me: failed program was:" >&5
24825sed 's/^/| /' conftest.$ac_ext >&5
24826
24827( exit $ac_status )
24828if test "$ac_cv_type_short_int" = yes; then
24829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24830See \`config.log' for more details." >&5
24831echo "$as_me: error: cannot compute sizeof (short int)
24832See \`config.log' for more details." >&2;}
24833 { (exit 77); exit 77; }; }
24834 else
24835 ac_cv_sizeof_short_int=0
24836 fi
24837fi
24838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839fi
24840rm -f conftest.val
24841fi
24842{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24843echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24844
24845
24846
24847cat >>confdefs.h <<_ACEOF
24848#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24849_ACEOF
24850
24851
24852{ echo "$as_me:$LINENO: checking for int" >&5
24853echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24854if test "${ac_cv_type_int+set}" = set; then
24855 echo $ECHO_N "(cached) $ECHO_C" >&6
24856else
24857 cat >conftest.$ac_ext <<_ACEOF
24858/* confdefs.h. */
24859_ACEOF
24860cat confdefs.h >>conftest.$ac_ext
24861cat >>conftest.$ac_ext <<_ACEOF
24862/* end confdefs.h. */
24863$ac_includes_default
24864typedef int ac__type_new_;
24865int
24866main ()
24867{
24868if ((ac__type_new_ *) 0)
24869 return 0;
24870if (sizeof (ac__type_new_))
24871 return 0;
24872 ;
24873 return 0;
24874}
24875_ACEOF
24876rm -f conftest.$ac_objext
24877if { (ac_try="$ac_compile"
24878case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24881esac
24882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883 (eval "$ac_compile") 2>conftest.er1
24884 ac_status=$?
24885 grep -v '^ *+' conftest.er1 >conftest.err
24886 rm -f conftest.er1
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } && {
24890 test -z "$ac_c_werror_flag" ||
24891 test ! -s conftest.err
24892 } && test -s conftest.$ac_objext; then
24893 ac_cv_type_int=yes
24894else
24895 echo "$as_me: failed program was:" >&5
24896sed 's/^/| /' conftest.$ac_ext >&5
24897
24898 ac_cv_type_int=no
24899fi
24900
24901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902fi
24903{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24904echo "${ECHO_T}$ac_cv_type_int" >&6; }
24905
24906# The cast to long int works around a bug in the HP C Compiler
24907# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24908# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24909# This bug is HP SR number 8606223364.
24910{ echo "$as_me:$LINENO: checking size of int" >&5
24911echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24912if test "${ac_cv_sizeof_int+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24914else
24915 if test "$cross_compiling" = yes; then
24916 # Depending upon the size, compute the lo and hi bounds.
24917cat >conftest.$ac_ext <<_ACEOF
24918/* confdefs.h. */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h. */
24923$ac_includes_default
24924 typedef int ac__type_sizeof_;
24925int
24926main ()
24927{
24928static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24929test_array [0] = 0
24930
24931 ;
24932 return 0;
24933}
24934_ACEOF
24935rm -f conftest.$ac_objext
24936if { (ac_try="$ac_compile"
24937case "(($ac_try" in
24938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939 *) ac_try_echo=$ac_try;;
24940esac
24941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942 (eval "$ac_compile") 2>conftest.er1
24943 ac_status=$?
24944 grep -v '^ *+' conftest.er1 >conftest.err
24945 rm -f conftest.er1
24946 cat conftest.err >&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } && {
24949 test -z "$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24951 } && test -s conftest.$ac_objext; then
24952 ac_lo=0 ac_mid=0
24953 while :; do
24954 cat >conftest.$ac_ext <<_ACEOF
24955/* confdefs.h. */
24956_ACEOF
24957cat confdefs.h >>conftest.$ac_ext
24958cat >>conftest.$ac_ext <<_ACEOF
24959/* end confdefs.h. */
24960$ac_includes_default
24961 typedef int ac__type_sizeof_;
24962int
24963main ()
24964{
24965static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24966test_array [0] = 0
24967
24968 ;
24969 return 0;
24970}
24971_ACEOF
24972rm -f conftest.$ac_objext
24973if { (ac_try="$ac_compile"
24974case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24977esac
24978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979 (eval "$ac_compile") 2>conftest.er1
24980 ac_status=$?
24981 grep -v '^ *+' conftest.er1 >conftest.err
24982 rm -f conftest.er1
24983 cat conftest.err >&5
24984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985 (exit $ac_status); } && {
24986 test -z "$ac_c_werror_flag" ||
24987 test ! -s conftest.err
24988 } && test -s conftest.$ac_objext; then
24989 ac_hi=$ac_mid; break
24990else
24991 echo "$as_me: failed program was:" >&5
24992sed 's/^/| /' conftest.$ac_ext >&5
24993
24994 ac_lo=`expr $ac_mid + 1`
24995 if test $ac_lo -le $ac_mid; then
24996 ac_lo= ac_hi=
24997 break
24998 fi
24999 ac_mid=`expr 2 '*' $ac_mid + 1`
25000fi
25001
25002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003 done
25004else
25005 echo "$as_me: failed program was:" >&5
25006sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 cat >conftest.$ac_ext <<_ACEOF
25009/* confdefs.h. */
25010_ACEOF
25011cat confdefs.h >>conftest.$ac_ext
25012cat >>conftest.$ac_ext <<_ACEOF
25013/* end confdefs.h. */
25014$ac_includes_default
25015 typedef int ac__type_sizeof_;
25016int
25017main ()
25018{
25019static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25020test_array [0] = 0
25021
25022 ;
25023 return 0;
25024}
25025_ACEOF
25026rm -f conftest.$ac_objext
25027if { (ac_try="$ac_compile"
25028case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25031esac
25032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_compile") 2>conftest.er1
25034 ac_status=$?
25035 grep -v '^ *+' conftest.er1 >conftest.err
25036 rm -f conftest.er1
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest.$ac_objext; then
25043 ac_hi=-1 ac_mid=-1
25044 while :; do
25045 cat >conftest.$ac_ext <<_ACEOF
25046/* confdefs.h. */
25047_ACEOF
25048cat confdefs.h >>conftest.$ac_ext
25049cat >>conftest.$ac_ext <<_ACEOF
25050/* end confdefs.h. */
25051$ac_includes_default
25052 typedef int ac__type_sizeof_;
25053int
25054main ()
25055{
25056static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25057test_array [0] = 0
25058
25059 ;
25060 return 0;
25061}
25062_ACEOF
25063rm -f conftest.$ac_objext
25064if { (ac_try="$ac_compile"
25065case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25068esac
25069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_compile") 2>conftest.er1
25071 ac_status=$?
25072 grep -v '^ *+' conftest.er1 >conftest.err
25073 rm -f conftest.er1
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest.$ac_objext; then
25080 ac_lo=$ac_mid; break
25081else
25082 echo "$as_me: failed program was:" >&5
25083sed 's/^/| /' conftest.$ac_ext >&5
25084
25085 ac_hi=`expr '(' $ac_mid ')' - 1`
25086 if test $ac_mid -le $ac_hi; then
25087 ac_lo= ac_hi=
25088 break
25089 fi
25090 ac_mid=`expr 2 '*' $ac_mid`
25091fi
25092
25093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094 done
25095else
25096 echo "$as_me: failed program was:" >&5
25097sed 's/^/| /' conftest.$ac_ext >&5
25098
25099 ac_lo= ac_hi=
25100fi
25101
25102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25103fi
25104
25105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106# Binary search between lo and hi bounds.
25107while test "x$ac_lo" != "x$ac_hi"; do
25108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25109 cat >conftest.$ac_ext <<_ACEOF
25110/* confdefs.h. */
25111_ACEOF
25112cat confdefs.h >>conftest.$ac_ext
25113cat >>conftest.$ac_ext <<_ACEOF
25114/* end confdefs.h. */
25115$ac_includes_default
25116 typedef int ac__type_sizeof_;
25117int
25118main ()
25119{
25120static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25121test_array [0] = 0
25122
25123 ;
25124 return 0;
25125}
25126_ACEOF
25127rm -f conftest.$ac_objext
25128if { (ac_try="$ac_compile"
25129case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25132esac
25133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134 (eval "$ac_compile") 2>conftest.er1
25135 ac_status=$?
25136 grep -v '^ *+' conftest.er1 >conftest.err
25137 rm -f conftest.er1
25138 cat conftest.err >&5
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); } && {
25141 test -z "$ac_c_werror_flag" ||
25142 test ! -s conftest.err
25143 } && test -s conftest.$ac_objext; then
25144 ac_hi=$ac_mid
25145else
25146 echo "$as_me: failed program was:" >&5
25147sed 's/^/| /' conftest.$ac_ext >&5
25148
25149 ac_lo=`expr '(' $ac_mid ')' + 1`
25150fi
25151
25152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153done
25154case $ac_lo in
25155?*) ac_cv_sizeof_int=$ac_lo;;
25156'') if test "$ac_cv_type_int" = yes; then
25157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25158See \`config.log' for more details." >&5
25159echo "$as_me: error: cannot compute sizeof (int)
25160See \`config.log' for more details." >&2;}
25161 { (exit 77); exit 77; }; }
25162 else
25163 ac_cv_sizeof_int=0
25164 fi ;;
25165esac
25166else
25167 cat >conftest.$ac_ext <<_ACEOF
25168/* confdefs.h. */
25169_ACEOF
25170cat confdefs.h >>conftest.$ac_ext
25171cat >>conftest.$ac_ext <<_ACEOF
25172/* end confdefs.h. */
25173$ac_includes_default
25174 typedef int ac__type_sizeof_;
25175static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25176static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25177#include <stdio.h>
25178#include <stdlib.h>
25179int
25180main ()
25181{
25182
25183 FILE *f = fopen ("conftest.val", "w");
25184 if (! f)
25185 return 1;
25186 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25187 {
25188 long int i = longval ();
25189 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25190 return 1;
25191 fprintf (f, "%ld\n", i);
25192 }
25193 else
25194 {
25195 unsigned long int i = ulongval ();
25196 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25197 return 1;
25198 fprintf (f, "%lu\n", i);
25199 }
25200 return ferror (f) || fclose (f) != 0;
25201
25202 ;
25203 return 0;
25204}
25205_ACEOF
25206rm -f conftest$ac_exeext
25207if { (ac_try="$ac_link"
25208case "(($ac_try" in
25209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210 *) ac_try_echo=$ac_try;;
25211esac
25212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213 (eval "$ac_link") 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217 { (case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25220esac
25221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222 (eval "$ac_try") 2>&5
25223 ac_status=$?
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_sizeof_int=`cat conftest.val`
25227else
25228 echo "$as_me: program exited with status $ac_status" >&5
25229echo "$as_me: failed program was:" >&5
25230sed 's/^/| /' conftest.$ac_ext >&5
25231
25232( exit $ac_status )
25233if test "$ac_cv_type_int" = yes; then
25234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25235See \`config.log' for more details." >&5
25236echo "$as_me: error: cannot compute sizeof (int)
25237See \`config.log' for more details." >&2;}
25238 { (exit 77); exit 77; }; }
25239 else
25240 ac_cv_sizeof_int=0
25241 fi
25242fi
25243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25244fi
25245rm -f conftest.val
25246fi
25247{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25248echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25249
25250
25251
25252cat >>confdefs.h <<_ACEOF
25253#define SIZEOF_INT $ac_cv_sizeof_int
25254_ACEOF
25255
25256
25257{ echo "$as_me:$LINENO: checking for long int" >&5
25258echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
25259if test "${ac_cv_type_long_int+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25261else
25262 cat >conftest.$ac_ext <<_ACEOF
25263/* confdefs.h. */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h. */
25268$ac_includes_default
25269typedef long int ac__type_new_;
25270int
25271main ()
25272{
25273if ((ac__type_new_ *) 0)
25274 return 0;
25275if (sizeof (ac__type_new_))
25276 return 0;
25277 ;
25278 return 0;
25279}
25280_ACEOF
25281rm -f conftest.$ac_objext
25282if { (ac_try="$ac_compile"
25283case "(($ac_try" in
25284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285 *) ac_try_echo=$ac_try;;
25286esac
25287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25288 (eval "$ac_compile") 2>conftest.er1
25289 ac_status=$?
25290 grep -v '^ *+' conftest.er1 >conftest.err
25291 rm -f conftest.er1
25292 cat conftest.err >&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } && {
25295 test -z "$ac_c_werror_flag" ||
25296 test ! -s conftest.err
25297 } && test -s conftest.$ac_objext; then
25298 ac_cv_type_long_int=yes
25299else
25300 echo "$as_me: failed program was:" >&5
25301sed 's/^/| /' conftest.$ac_ext >&5
25302
25303 ac_cv_type_long_int=no
25304fi
25305
25306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25307fi
25308{ echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
25309echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
25310
25311# The cast to long int works around a bug in the HP C Compiler
25312# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25313# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25314# This bug is HP SR number 8606223364.
25315{ echo "$as_me:$LINENO: checking size of long int" >&5
25316echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
25317if test "${ac_cv_sizeof_long_int+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25319else
25320 if test "$cross_compiling" = yes; then
25321 # Depending upon the size, compute the lo and hi bounds.
25322cat >conftest.$ac_ext <<_ACEOF
25323/* confdefs.h. */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h. */
25328$ac_includes_default
25329 typedef long int ac__type_sizeof_;
25330int
25331main ()
25332{
25333static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25334test_array [0] = 0
25335
25336 ;
25337 return 0;
25338}
25339_ACEOF
25340rm -f conftest.$ac_objext
25341if { (ac_try="$ac_compile"
25342case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25345esac
25346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347 (eval "$ac_compile") 2>conftest.er1
25348 ac_status=$?
25349 grep -v '^ *+' conftest.er1 >conftest.err
25350 rm -f conftest.er1
25351 cat conftest.err >&5
25352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } && {
25354 test -z "$ac_c_werror_flag" ||
25355 test ! -s conftest.err
25356 } && test -s conftest.$ac_objext; then
25357 ac_lo=0 ac_mid=0
25358 while :; do
25359 cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h. */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h. */
25365$ac_includes_default
25366 typedef long int ac__type_sizeof_;
25367int
25368main ()
25369{
25370static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25371test_array [0] = 0
25372
25373 ;
25374 return 0;
25375}
25376_ACEOF
25377rm -f conftest.$ac_objext
25378if { (ac_try="$ac_compile"
25379case "(($ac_try" in
25380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381 *) ac_try_echo=$ac_try;;
25382esac
25383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25384 (eval "$ac_compile") 2>conftest.er1
25385 ac_status=$?
25386 grep -v '^ *+' conftest.er1 >conftest.err
25387 rm -f conftest.er1
25388 cat conftest.err >&5
25389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390 (exit $ac_status); } && {
25391 test -z "$ac_c_werror_flag" ||
25392 test ! -s conftest.err
25393 } && test -s conftest.$ac_objext; then
25394 ac_hi=$ac_mid; break
25395else
25396 echo "$as_me: failed program was:" >&5
25397sed 's/^/| /' conftest.$ac_ext >&5
25398
25399 ac_lo=`expr $ac_mid + 1`
25400 if test $ac_lo -le $ac_mid; then
25401 ac_lo= ac_hi=
25402 break
25403 fi
25404 ac_mid=`expr 2 '*' $ac_mid + 1`
25405fi
25406
25407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408 done
25409else
25410 echo "$as_me: failed program was:" >&5
25411sed 's/^/| /' conftest.$ac_ext >&5
25412
25413 cat >conftest.$ac_ext <<_ACEOF
25414/* confdefs.h. */
25415_ACEOF
25416cat confdefs.h >>conftest.$ac_ext
25417cat >>conftest.$ac_ext <<_ACEOF
25418/* end confdefs.h. */
25419$ac_includes_default
25420 typedef long int ac__type_sizeof_;
25421int
25422main ()
25423{
25424static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25425test_array [0] = 0
25426
25427 ;
25428 return 0;
25429}
25430_ACEOF
25431rm -f conftest.$ac_objext
25432if { (ac_try="$ac_compile"
25433case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25436esac
25437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_compile") 2>conftest.er1
25439 ac_status=$?
25440 grep -v '^ *+' conftest.er1 >conftest.err
25441 rm -f conftest.er1
25442 cat conftest.err >&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } && {
25445 test -z "$ac_c_werror_flag" ||
25446 test ! -s conftest.err
25447 } && test -s conftest.$ac_objext; then
25448 ac_hi=-1 ac_mid=-1
25449 while :; do
25450 cat >conftest.$ac_ext <<_ACEOF
25451/* confdefs.h. */
25452_ACEOF
25453cat confdefs.h >>conftest.$ac_ext
25454cat >>conftest.$ac_ext <<_ACEOF
25455/* end confdefs.h. */
25456$ac_includes_default
25457 typedef long int ac__type_sizeof_;
25458int
25459main ()
25460{
25461static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25462test_array [0] = 0
25463
25464 ;
25465 return 0;
25466}
25467_ACEOF
25468rm -f conftest.$ac_objext
25469if { (ac_try="$ac_compile"
25470case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25473esac
25474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_compile") 2>conftest.er1
25476 ac_status=$?
25477 grep -v '^ *+' conftest.er1 >conftest.err
25478 rm -f conftest.er1
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest.$ac_objext; then
25485 ac_lo=$ac_mid; break
25486else
25487 echo "$as_me: failed program was:" >&5
25488sed 's/^/| /' conftest.$ac_ext >&5
25489
25490 ac_hi=`expr '(' $ac_mid ')' - 1`
25491 if test $ac_mid -le $ac_hi; then
25492 ac_lo= ac_hi=
25493 break
25494 fi
25495 ac_mid=`expr 2 '*' $ac_mid`
25496fi
25497
25498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25499 done
25500else
25501 echo "$as_me: failed program was:" >&5
25502sed 's/^/| /' conftest.$ac_ext >&5
25503
25504 ac_lo= ac_hi=
25505fi
25506
25507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508fi
25509
25510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511# Binary search between lo and hi bounds.
25512while test "x$ac_lo" != "x$ac_hi"; do
25513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25514 cat >conftest.$ac_ext <<_ACEOF
25515/* confdefs.h. */
25516_ACEOF
25517cat confdefs.h >>conftest.$ac_ext
25518cat >>conftest.$ac_ext <<_ACEOF
25519/* end confdefs.h. */
25520$ac_includes_default
25521 typedef long int ac__type_sizeof_;
25522int
25523main ()
25524{
25525static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25526test_array [0] = 0
25527
25528 ;
25529 return 0;
25530}
25531_ACEOF
25532rm -f conftest.$ac_objext
25533if { (ac_try="$ac_compile"
25534case "(($ac_try" in
25535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536 *) ac_try_echo=$ac_try;;
25537esac
25538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539 (eval "$ac_compile") 2>conftest.er1
25540 ac_status=$?
25541 grep -v '^ *+' conftest.er1 >conftest.err
25542 rm -f conftest.er1
25543 cat conftest.err >&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); } && {
25546 test -z "$ac_c_werror_flag" ||
25547 test ! -s conftest.err
25548 } && test -s conftest.$ac_objext; then
25549 ac_hi=$ac_mid
25550else
25551 echo "$as_me: failed program was:" >&5
25552sed 's/^/| /' conftest.$ac_ext >&5
25553
25554 ac_lo=`expr '(' $ac_mid ')' + 1`
25555fi
25556
25557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558done
25559case $ac_lo in
25560?*) ac_cv_sizeof_long_int=$ac_lo;;
25561'') if test "$ac_cv_type_long_int" = yes; then
25562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25563See \`config.log' for more details." >&5
25564echo "$as_me: error: cannot compute sizeof (long int)
25565See \`config.log' for more details." >&2;}
25566 { (exit 77); exit 77; }; }
25567 else
25568 ac_cv_sizeof_long_int=0
25569 fi ;;
25570esac
25571else
25572 cat >conftest.$ac_ext <<_ACEOF
25573/* confdefs.h. */
25574_ACEOF
25575cat confdefs.h >>conftest.$ac_ext
25576cat >>conftest.$ac_ext <<_ACEOF
25577/* end confdefs.h. */
25578$ac_includes_default
25579 typedef long int ac__type_sizeof_;
25580static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25581static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25582#include <stdio.h>
25583#include <stdlib.h>
25584int
25585main ()
25586{
25587
25588 FILE *f = fopen ("conftest.val", "w");
25589 if (! f)
25590 return 1;
25591 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25592 {
25593 long int i = longval ();
25594 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25595 return 1;
25596 fprintf (f, "%ld\n", i);
25597 }
25598 else
25599 {
25600 unsigned long int i = ulongval ();
25601 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25602 return 1;
25603 fprintf (f, "%lu\n", i);
25604 }
25605 return ferror (f) || fclose (f) != 0;
25606
25607 ;
25608 return 0;
25609}
25610_ACEOF
25611rm -f conftest$ac_exeext
25612if { (ac_try="$ac_link"
25613case "(($ac_try" in
25614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25616esac
25617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 (eval "$ac_link") 2>&5
25619 ac_status=$?
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25622 { (case "(($ac_try" in
25623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624 *) ac_try_echo=$ac_try;;
25625esac
25626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25627 (eval "$ac_try") 2>&5
25628 ac_status=$?
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); }; }; then
25631 ac_cv_sizeof_long_int=`cat conftest.val`
25632else
25633 echo "$as_me: program exited with status $ac_status" >&5
25634echo "$as_me: failed program was:" >&5
25635sed 's/^/| /' conftest.$ac_ext >&5
25636
25637( exit $ac_status )
25638if test "$ac_cv_type_long_int" = yes; then
25639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25640See \`config.log' for more details." >&5
25641echo "$as_me: error: cannot compute sizeof (long int)
25642See \`config.log' for more details." >&2;}
25643 { (exit 77); exit 77; }; }
25644 else
25645 ac_cv_sizeof_long_int=0
25646 fi
25647fi
25648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25649fi
25650rm -f conftest.val
25651fi
25652{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25653echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25654
25655
25656
25657cat >>confdefs.h <<_ACEOF
25658#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25659_ACEOF
25660
25661
25662{ echo "$as_me:$LINENO: checking for long long int" >&5
25663echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25664if test "${ac_cv_type_long_long_int+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25666else
25667 cat >conftest.$ac_ext <<_ACEOF
25668/* confdefs.h. */
25669_ACEOF
25670cat confdefs.h >>conftest.$ac_ext
25671cat >>conftest.$ac_ext <<_ACEOF
25672/* end confdefs.h. */
25673$ac_includes_default
25674typedef long long int ac__type_new_;
25675int
25676main ()
25677{
25678if ((ac__type_new_ *) 0)
25679 return 0;
25680if (sizeof (ac__type_new_))
25681 return 0;
25682 ;
25683 return 0;
25684}
25685_ACEOF
25686rm -f conftest.$ac_objext
25687if { (ac_try="$ac_compile"
25688case "(($ac_try" in
25689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690 *) ac_try_echo=$ac_try;;
25691esac
25692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25693 (eval "$ac_compile") 2>conftest.er1
25694 ac_status=$?
25695 grep -v '^ *+' conftest.er1 >conftest.err
25696 rm -f conftest.er1
25697 cat conftest.err >&5
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } && {
25700 test -z "$ac_c_werror_flag" ||
25701 test ! -s conftest.err
25702 } && test -s conftest.$ac_objext; then
25703 ac_cv_type_long_long_int=yes
25704else
25705 echo "$as_me: failed program was:" >&5
25706sed 's/^/| /' conftest.$ac_ext >&5
25707
25708 ac_cv_type_long_long_int=no
25709fi
25710
25711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25712fi
25713{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25714echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25715
25716# The cast to long int works around a bug in the HP C Compiler
25717# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25718# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25719# This bug is HP SR number 8606223364.
25720{ echo "$as_me:$LINENO: checking size of long long int" >&5
25721echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25722if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25723 echo $ECHO_N "(cached) $ECHO_C" >&6
25724else
25725 if test "$cross_compiling" = yes; then
25726 # Depending upon the size, compute the lo and hi bounds.
25727cat >conftest.$ac_ext <<_ACEOF
25728/* confdefs.h. */
25729_ACEOF
25730cat confdefs.h >>conftest.$ac_ext
25731cat >>conftest.$ac_ext <<_ACEOF
25732/* end confdefs.h. */
25733$ac_includes_default
25734 typedef long long int ac__type_sizeof_;
25735int
25736main ()
25737{
25738static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25739test_array [0] = 0
25740
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (ac_try="$ac_compile"
25747case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25750esac
25751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752 (eval "$ac_compile") 2>conftest.er1
25753 ac_status=$?
25754 grep -v '^ *+' conftest.er1 >conftest.err
25755 rm -f conftest.er1
25756 cat conftest.err >&5
25757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758 (exit $ac_status); } && {
25759 test -z "$ac_c_werror_flag" ||
25760 test ! -s conftest.err
25761 } && test -s conftest.$ac_objext; then
25762 ac_lo=0 ac_mid=0
25763 while :; do
25764 cat >conftest.$ac_ext <<_ACEOF
25765/* confdefs.h. */
25766_ACEOF
25767cat confdefs.h >>conftest.$ac_ext
25768cat >>conftest.$ac_ext <<_ACEOF
25769/* end confdefs.h. */
25770$ac_includes_default
25771 typedef long long int ac__type_sizeof_;
25772int
25773main ()
25774{
25775static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25776test_array [0] = 0
25777
25778 ;
25779 return 0;
25780}
25781_ACEOF
25782rm -f conftest.$ac_objext
25783if { (ac_try="$ac_compile"
25784case "(($ac_try" in
25785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25786 *) ac_try_echo=$ac_try;;
25787esac
25788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25789 (eval "$ac_compile") 2>conftest.er1
25790 ac_status=$?
25791 grep -v '^ *+' conftest.er1 >conftest.err
25792 rm -f conftest.er1
25793 cat conftest.err >&5
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } && {
25796 test -z "$ac_c_werror_flag" ||
25797 test ! -s conftest.err
25798 } && test -s conftest.$ac_objext; then
25799 ac_hi=$ac_mid; break
25800else
25801 echo "$as_me: failed program was:" >&5
25802sed 's/^/| /' conftest.$ac_ext >&5
25803
25804 ac_lo=`expr $ac_mid + 1`
25805 if test $ac_lo -le $ac_mid; then
25806 ac_lo= ac_hi=
25807 break
25808 fi
25809 ac_mid=`expr 2 '*' $ac_mid + 1`
25810fi
25811
25812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25813 done
25814else
25815 echo "$as_me: failed program was:" >&5
25816sed 's/^/| /' conftest.$ac_ext >&5
25817
25818 cat >conftest.$ac_ext <<_ACEOF
25819/* confdefs.h. */
25820_ACEOF
25821cat confdefs.h >>conftest.$ac_ext
25822cat >>conftest.$ac_ext <<_ACEOF
25823/* end confdefs.h. */
25824$ac_includes_default
25825 typedef long long int ac__type_sizeof_;
25826int
25827main ()
25828{
25829static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25830test_array [0] = 0
25831
25832 ;
25833 return 0;
25834}
25835_ACEOF
25836rm -f conftest.$ac_objext
25837if { (ac_try="$ac_compile"
25838case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25841esac
25842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843 (eval "$ac_compile") 2>conftest.er1
25844 ac_status=$?
25845 grep -v '^ *+' conftest.er1 >conftest.err
25846 rm -f conftest.er1
25847 cat conftest.err >&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); } && {
25850 test -z "$ac_c_werror_flag" ||
25851 test ! -s conftest.err
25852 } && test -s conftest.$ac_objext; then
25853 ac_hi=-1 ac_mid=-1
25854 while :; do
25855 cat >conftest.$ac_ext <<_ACEOF
25856/* confdefs.h. */
25857_ACEOF
25858cat confdefs.h >>conftest.$ac_ext
25859cat >>conftest.$ac_ext <<_ACEOF
25860/* end confdefs.h. */
25861$ac_includes_default
25862 typedef long long int ac__type_sizeof_;
25863int
25864main ()
25865{
25866static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25867test_array [0] = 0
25868
25869 ;
25870 return 0;
25871}
25872_ACEOF
25873rm -f conftest.$ac_objext
25874if { (ac_try="$ac_compile"
25875case "(($ac_try" in
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877 *) ac_try_echo=$ac_try;;
25878esac
25879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25880 (eval "$ac_compile") 2>conftest.er1
25881 ac_status=$?
25882 grep -v '^ *+' conftest.er1 >conftest.err
25883 rm -f conftest.er1
25884 cat conftest.err >&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } && {
25887 test -z "$ac_c_werror_flag" ||
25888 test ! -s conftest.err
25889 } && test -s conftest.$ac_objext; then
25890 ac_lo=$ac_mid; break
25891else
25892 echo "$as_me: failed program was:" >&5
25893sed 's/^/| /' conftest.$ac_ext >&5
25894
25895 ac_hi=`expr '(' $ac_mid ')' - 1`
25896 if test $ac_mid -le $ac_hi; then
25897 ac_lo= ac_hi=
25898 break
25899 fi
25900 ac_mid=`expr 2 '*' $ac_mid`
25901fi
25902
25903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25904 done
25905else
25906 echo "$as_me: failed program was:" >&5
25907sed 's/^/| /' conftest.$ac_ext >&5
25908
25909 ac_lo= ac_hi=
25910fi
25911
25912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25913fi
25914
25915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25916# Binary search between lo and hi bounds.
25917while test "x$ac_lo" != "x$ac_hi"; do
25918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25919 cat >conftest.$ac_ext <<_ACEOF
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925$ac_includes_default
25926 typedef long long int ac__type_sizeof_;
25927int
25928main ()
25929{
25930static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25931test_array [0] = 0
25932
25933 ;
25934 return 0;
25935}
25936_ACEOF
25937rm -f conftest.$ac_objext
25938if { (ac_try="$ac_compile"
25939case "(($ac_try" in
25940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25941 *) ac_try_echo=$ac_try;;
25942esac
25943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25944 (eval "$ac_compile") 2>conftest.er1
25945 ac_status=$?
25946 grep -v '^ *+' conftest.er1 >conftest.err
25947 rm -f conftest.er1
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } && {
25951 test -z "$ac_c_werror_flag" ||
25952 test ! -s conftest.err
25953 } && test -s conftest.$ac_objext; then
25954 ac_hi=$ac_mid
25955else
25956 echo "$as_me: failed program was:" >&5
25957sed 's/^/| /' conftest.$ac_ext >&5
25958
25959 ac_lo=`expr '(' $ac_mid ')' + 1`
25960fi
25961
25962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25963done
25964case $ac_lo in
25965?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25966'') if test "$ac_cv_type_long_long_int" = yes; then
25967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25968See \`config.log' for more details." >&5
25969echo "$as_me: error: cannot compute sizeof (long long int)
25970See \`config.log' for more details." >&2;}
25971 { (exit 77); exit 77; }; }
25972 else
25973 ac_cv_sizeof_long_long_int=0
25974 fi ;;
25975esac
25976else
25977 cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h. */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h. */
25983$ac_includes_default
25984 typedef long long int ac__type_sizeof_;
25985static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25986static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25987#include <stdio.h>
25988#include <stdlib.h>
25989int
25990main ()
25991{
25992
25993 FILE *f = fopen ("conftest.val", "w");
25994 if (! f)
25995 return 1;
25996 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25997 {
25998 long int i = longval ();
25999 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26000 return 1;
26001 fprintf (f, "%ld\n", i);
26002 }
26003 else
26004 {
26005 unsigned long int i = ulongval ();
26006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26007 return 1;
26008 fprintf (f, "%lu\n", i);
26009 }
26010 return ferror (f) || fclose (f) != 0;
26011
26012 ;
26013 return 0;
26014}
26015_ACEOF
26016rm -f conftest$ac_exeext
26017if { (ac_try="$ac_link"
26018case "(($ac_try" in
26019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020 *) ac_try_echo=$ac_try;;
26021esac
26022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26023 (eval "$ac_link") 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26027 { (case "(($ac_try" in
26028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029 *) ac_try_echo=$ac_try;;
26030esac
26031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032 (eval "$ac_try") 2>&5
26033 ac_status=$?
26034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035 (exit $ac_status); }; }; then
26036 ac_cv_sizeof_long_long_int=`cat conftest.val`
26037else
26038 echo "$as_me: program exited with status $ac_status" >&5
26039echo "$as_me: failed program was:" >&5
26040sed 's/^/| /' conftest.$ac_ext >&5
26041
26042( exit $ac_status )
26043if test "$ac_cv_type_long_long_int" = yes; then
26044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
26045See \`config.log' for more details." >&5
26046echo "$as_me: error: cannot compute sizeof (long long int)
26047See \`config.log' for more details." >&2;}
26048 { (exit 77); exit 77; }; }
26049 else
26050 ac_cv_sizeof_long_long_int=0
26051 fi
26052fi
26053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26054fi
26055rm -f conftest.val
26056fi
26057{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
26058echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
26059
26060
26061
26062cat >>confdefs.h <<_ACEOF
26063#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26064_ACEOF
26065
26066
26067
26068# Sanity check long long for some platforms (AIX)
26069if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
26070 ac_cv_sizeof_long_long_int=0
26071fi
26072
26073# compute LLONG_MIN and LLONG_MAX if we don't know them.
26074if test -z "$have_llong_max"; then
26075 { echo "$as_me:$LINENO: checking for max value of long long" >&5
26076echo $ECHO_N "checking for max value of long long... $ECHO_C" >&6; }
26077 if test "$cross_compiling" = yes; then
26078
26079 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
26080echo "$as_me: WARNING: cross compiling: not checking" >&2;}
26081
26082
26083else
26084 cat >conftest.$ac_ext <<_ACEOF
26085/* confdefs.h. */
26086_ACEOF
26087cat confdefs.h >>conftest.$ac_ext
26088cat >>conftest.$ac_ext <<_ACEOF
26089/* end confdefs.h. */
26090
26091#include <stdio.h>
26092/* Why is this so damn hard? */
26093#ifdef __GNUC__
26094# undef __GNUC__
26095#endif
26096#define __USE_ISOC99
26097#include <limits.h>
26098#define DATA "conftest.llminmax"
26099#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
26100
26101/*
26102 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
26103 * we do this the hard way.
26104 */
26105static int
26106fprint_ll(FILE *f, long long n)
26107{
26108 unsigned int i;
26109 int l[sizeof(long long) * 8];
26110
26111 if (n < 0)
26112 if (fprintf(f, "-") < 0)
26113 return -1;
26114 for (i = 0; n != 0; i++) {
26115 l[i] = my_abs(n % 10);
26116 n /= 10;
26117 }
26118 do {
26119 if (fprintf(f, "%d", l[--i]) < 0)
26120 return -1;
26121 } while (i != 0);
26122 if (fprintf(f, " ") < 0)
26123 return -1;
26124 return 0;
26125}
26126
26127int
26128main ()
26129{
26130
26131 FILE *f;
26132 long long i, llmin, llmax = 0;
26133
26134 if((f = fopen(DATA,"w")) == NULL)
26135 exit(1);
26136
26137#if defined(LLONG_MIN) && defined(LLONG_MAX)
26138 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
26139 llmin = LLONG_MIN;
26140 llmax = LLONG_MAX;
26141#else
26142 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
26143 /* This will work on one's complement and two's complement */
26144 for (i = 1; i > llmax; i <<= 1, i++)
26145 llmax = i;
26146 llmin = llmax + 1LL; /* wrap */
26147#endif
26148
26149 /* Sanity check */
26150 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
26151 || llmax - 1 > llmax || llmin == llmax || llmin == 0
26152 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
26153 fprintf(f, "unknown unknown\n");
26154 exit(2);
26155 }
26156
26157 if (fprint_ll(f, llmin) < 0)
26158 exit(3);
26159 if (fprint_ll(f, llmax) < 0)
26160 exit(4);
26161 if (fclose(f) < 0)
26162 exit(5);
26163 exit(0);
26164
26165 ;
26166 return 0;
26167}
26168_ACEOF
26169rm -f conftest$ac_exeext
26170if { (ac_try="$ac_link"
26171case "(($ac_try" in
26172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26173 *) ac_try_echo=$ac_try;;
26174esac
26175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26176 (eval "$ac_link") 2>&5
26177 ac_status=$?
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26180 { (case "(($ac_try" in
26181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182 *) ac_try_echo=$ac_try;;
26183esac
26184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185 (eval "$ac_try") 2>&5
26186 ac_status=$?
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; }; then
26189
26190 llong_min=`$AWK '{print $1}' conftest.llminmax`
26191 llong_max=`$AWK '{print $2}' conftest.llminmax`
26192
26193 { echo "$as_me:$LINENO: result: $llong_max" >&5
26194echo "${ECHO_T}$llong_max" >&6; }
26195
26196cat >>confdefs.h <<_ACEOF
26197#define LLONG_MAX ${llong_max}LL
26198_ACEOF
26199
26200 { echo "$as_me:$LINENO: checking for min value of long long" >&5
26201echo $ECHO_N "checking for min value of long long... $ECHO_C" >&6; }
26202 { echo "$as_me:$LINENO: result: $llong_min" >&5
26203echo "${ECHO_T}$llong_min" >&6; }
26204
26205cat >>confdefs.h <<_ACEOF
26206#define LLONG_MIN ${llong_min}LL
26207_ACEOF
26208
26209
26210else
26211 echo "$as_me: program exited with status $ac_status" >&5
26212echo "$as_me: failed program was:" >&5
26213sed 's/^/| /' conftest.$ac_ext >&5
26214
26215( exit $ac_status )
26216
26217 { echo "$as_me:$LINENO: result: not found" >&5
26218echo "${ECHO_T}not found" >&6; }
26219
26220fi
26221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26222fi
26223
26224
26225fi
26226
26227
26228# More checks for data types
26229{ echo "$as_me:$LINENO: checking for u_int type" >&5
26230echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26231if test "${ac_cv_have_u_int+set}" = set; then
26232 echo $ECHO_N "(cached) $ECHO_C" >&6
26233else
26234
26235 cat >conftest.$ac_ext <<_ACEOF
26236/* confdefs.h. */
26237_ACEOF
26238cat confdefs.h >>conftest.$ac_ext
26239cat >>conftest.$ac_ext <<_ACEOF
26240/* end confdefs.h. */
26241 #include <sys/types.h>
26242int
26243main ()
26244{
26245 u_int a; a = 1;
26246 ;
26247 return 0;
26248}
26249_ACEOF
26250rm -f conftest.$ac_objext
26251if { (ac_try="$ac_compile"
26252case "(($ac_try" in
26253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254 *) ac_try_echo=$ac_try;;
26255esac
26256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257 (eval "$ac_compile") 2>conftest.er1
26258 ac_status=$?
26259 grep -v '^ *+' conftest.er1 >conftest.err
26260 rm -f conftest.er1
26261 cat conftest.err >&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } && {
26264 test -z "$ac_c_werror_flag" ||
26265 test ! -s conftest.err
26266 } && test -s conftest.$ac_objext; then
26267 ac_cv_have_u_int="yes"
26268else
26269 echo "$as_me: failed program was:" >&5
26270sed 's/^/| /' conftest.$ac_ext >&5
26271
26272 ac_cv_have_u_int="no"
26273
26274fi
26275
26276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277
26278fi
26279{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26280echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26281if test "x$ac_cv_have_u_int" = "xyes" ; then
26282
26283cat >>confdefs.h <<\_ACEOF
26284#define HAVE_U_INT 1
26285_ACEOF
26286
26287 have_u_int=1
26288fi
26289
26290{ echo "$as_me:$LINENO: checking for intXX_t types" >&5
26291echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26292if test "${ac_cv_have_intxx_t+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294else
26295
26296 cat >conftest.$ac_ext <<_ACEOF
26297/* confdefs.h. */
26298_ACEOF
26299cat confdefs.h >>conftest.$ac_ext
26300cat >>conftest.$ac_ext <<_ACEOF
26301/* end confdefs.h. */
26302 #include <sys/types.h>
26303int
26304main ()
26305{
26306 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26307 ;
26308 return 0;
26309}
26310_ACEOF
26311rm -f conftest.$ac_objext
26312if { (ac_try="$ac_compile"
26313case "(($ac_try" in
26314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26315 *) ac_try_echo=$ac_try;;
26316esac
26317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26318 (eval "$ac_compile") 2>conftest.er1
26319 ac_status=$?
26320 grep -v '^ *+' conftest.er1 >conftest.err
26321 rm -f conftest.er1
26322 cat conftest.err >&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); } && {
26325 test -z "$ac_c_werror_flag" ||
26326 test ! -s conftest.err
26327 } && test -s conftest.$ac_objext; then
26328 ac_cv_have_intxx_t="yes"
26329else
26330 echo "$as_me: failed program was:" >&5
26331sed 's/^/| /' conftest.$ac_ext >&5
26332
26333 ac_cv_have_intxx_t="no"
26334
26335fi
26336
26337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26338
26339fi
26340{ echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26341echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26342if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26343
26344cat >>confdefs.h <<\_ACEOF
26345#define HAVE_INTXX_T 1
26346_ACEOF
26347
26348 have_intxx_t=1
26349fi
26350
26351if (test -z "$have_intxx_t" && \
26352 test "x$ac_cv_header_stdint_h" = "xyes")
26353then
26354 { echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
26355echo $ECHO_N "checking for intXX_t types in stdint.h... $ECHO_C" >&6; }
26356 cat >conftest.$ac_ext <<_ACEOF
26357/* confdefs.h. */
26358_ACEOF
26359cat confdefs.h >>conftest.$ac_ext
26360cat >>conftest.$ac_ext <<_ACEOF
26361/* end confdefs.h. */
26362 #include <stdint.h>
26363int
26364main ()
26365{
26366 int8_t a; int16_t b; int32_t c; a = b = c = 1;
26367 ;
26368 return 0;
26369}
26370_ACEOF
26371rm -f conftest.$ac_objext
26372if { (ac_try="$ac_compile"
26373case "(($ac_try" in
26374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26375 *) ac_try_echo=$ac_try;;
26376esac
26377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26378 (eval "$ac_compile") 2>conftest.er1
26379 ac_status=$?
26380 grep -v '^ *+' conftest.er1 >conftest.err
26381 rm -f conftest.er1
26382 cat conftest.err >&5
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } && {
26385 test -z "$ac_c_werror_flag" ||
26386 test ! -s conftest.err
26387 } && test -s conftest.$ac_objext; then
26388
26389 cat >>confdefs.h <<\_ACEOF
26390#define HAVE_INTXX_T 1
26391_ACEOF
26392
26393 { echo "$as_me:$LINENO: result: yes" >&5
26394echo "${ECHO_T}yes" >&6; }
26395
26396else
26397 echo "$as_me: failed program was:" >&5
26398sed 's/^/| /' conftest.$ac_ext >&5
26399
26400 { echo "$as_me:$LINENO: result: no" >&5
26401echo "${ECHO_T}no" >&6; }
26402
26403fi
26404
26405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26406fi
26407
26408{ echo "$as_me:$LINENO: checking for int64_t type" >&5
26409echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26410if test "${ac_cv_have_int64_t+set}" = set; then
26411 echo $ECHO_N "(cached) $ECHO_C" >&6
26412else
26413
26414 cat >conftest.$ac_ext <<_ACEOF
26415/* confdefs.h. */
26416_ACEOF
26417cat confdefs.h >>conftest.$ac_ext
26418cat >>conftest.$ac_ext <<_ACEOF
26419/* end confdefs.h. */
26420
26421#include <sys/types.h>
26422#ifdef HAVE_STDINT_H
26423# include <stdint.h>
26424#endif
26425#include <sys/socket.h>
26426#ifdef HAVE_SYS_BITYPES_H
26427# include <sys/bitypes.h>
26428#endif
26429
26430int
26431main ()
26432{
26433
26434int64_t a; a = 1;
26435
26436 ;
26437 return 0;
26438}
26439_ACEOF
26440rm -f conftest.$ac_objext
26441if { (ac_try="$ac_compile"
26442case "(($ac_try" in
26443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26444 *) ac_try_echo=$ac_try;;
26445esac
26446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26447 (eval "$ac_compile") 2>conftest.er1
26448 ac_status=$?
26449 grep -v '^ *+' conftest.er1 >conftest.err
26450 rm -f conftest.er1
26451 cat conftest.err >&5
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); } && {
26454 test -z "$ac_c_werror_flag" ||
26455 test ! -s conftest.err
26456 } && test -s conftest.$ac_objext; then
26457 ac_cv_have_int64_t="yes"
26458else
26459 echo "$as_me: failed program was:" >&5
26460sed 's/^/| /' conftest.$ac_ext >&5
26461
26462 ac_cv_have_int64_t="no"
26463
26464fi
26465
26466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467
26468fi
26469{ echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26470echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26471if test "x$ac_cv_have_int64_t" = "xyes" ; then
26472
26473cat >>confdefs.h <<\_ACEOF
26474#define HAVE_INT64_T 1
26475_ACEOF
26476
26477fi
26478
26479{ echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26480echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26481if test "${ac_cv_have_u_intxx_t+set}" = set; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26483else
26484
26485 cat >conftest.$ac_ext <<_ACEOF
26486/* confdefs.h. */
26487_ACEOF
26488cat confdefs.h >>conftest.$ac_ext
26489cat >>conftest.$ac_ext <<_ACEOF
26490/* end confdefs.h. */
26491 #include <sys/types.h>
26492int
26493main ()
26494{
26495 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26496 ;
26497 return 0;
26498}
26499_ACEOF
26500rm -f conftest.$ac_objext
26501if { (ac_try="$ac_compile"
26502case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26505esac
26506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_compile") 2>conftest.er1
26508 ac_status=$?
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } && {
26514 test -z "$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26516 } && test -s conftest.$ac_objext; then
26517 ac_cv_have_u_intxx_t="yes"
26518else
26519 echo "$as_me: failed program was:" >&5
26520sed 's/^/| /' conftest.$ac_ext >&5
26521
26522 ac_cv_have_u_intxx_t="no"
26523
26524fi
26525
26526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26527
26528fi
26529{ echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26530echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26531if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26532
26533cat >>confdefs.h <<\_ACEOF
26534#define HAVE_U_INTXX_T 1
26535_ACEOF
26536
26537 have_u_intxx_t=1
26538fi
26539
26540if test -z "$have_u_intxx_t" ; then
26541 { echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
26542echo $ECHO_N "checking for u_intXX_t types in sys/socket.h... $ECHO_C" >&6; }
26543 cat >conftest.$ac_ext <<_ACEOF
26544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
26549 #include <sys/socket.h>
26550int
26551main ()
26552{
26553 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26554 ;
26555 return 0;
26556}
26557_ACEOF
26558rm -f conftest.$ac_objext
26559if { (ac_try="$ac_compile"
26560case "(($ac_try" in
26561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562 *) ac_try_echo=$ac_try;;
26563esac
26564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565 (eval "$ac_compile") 2>conftest.er1
26566 ac_status=$?
26567 grep -v '^ *+' conftest.er1 >conftest.err
26568 rm -f conftest.er1
26569 cat conftest.err >&5
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); } && {
26572 test -z "$ac_c_werror_flag" ||
26573 test ! -s conftest.err
26574 } && test -s conftest.$ac_objext; then
26575
26576 cat >>confdefs.h <<\_ACEOF
26577#define HAVE_U_INTXX_T 1
26578_ACEOF
26579
26580 { echo "$as_me:$LINENO: result: yes" >&5
26581echo "${ECHO_T}yes" >&6; }
26582
26583else
26584 echo "$as_me: failed program was:" >&5
26585sed 's/^/| /' conftest.$ac_ext >&5
26586
26587 { echo "$as_me:$LINENO: result: no" >&5
26588echo "${ECHO_T}no" >&6; }
26589
26590fi
26591
26592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26593fi
26594
26595{ echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26596echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26597if test "${ac_cv_have_u_int64_t+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26599else
26600
26601 cat >conftest.$ac_ext <<_ACEOF
26602/* confdefs.h. */
26603_ACEOF
26604cat confdefs.h >>conftest.$ac_ext
26605cat >>conftest.$ac_ext <<_ACEOF
26606/* end confdefs.h. */
26607 #include <sys/types.h>
26608int
26609main ()
26610{
26611 u_int64_t a; a = 1;
26612 ;
26613 return 0;
26614}
26615_ACEOF
26616rm -f conftest.$ac_objext
26617if { (ac_try="$ac_compile"
26618case "(($ac_try" in
26619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26620 *) ac_try_echo=$ac_try;;
26621esac
26622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26623 (eval "$ac_compile") 2>conftest.er1
26624 ac_status=$?
26625 grep -v '^ *+' conftest.er1 >conftest.err
26626 rm -f conftest.er1
26627 cat conftest.err >&5
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } && {
26630 test -z "$ac_c_werror_flag" ||
26631 test ! -s conftest.err
26632 } && test -s conftest.$ac_objext; then
26633 ac_cv_have_u_int64_t="yes"
26634else
26635 echo "$as_me: failed program was:" >&5
26636sed 's/^/| /' conftest.$ac_ext >&5
26637
26638 ac_cv_have_u_int64_t="no"
26639
26640fi
26641
26642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643
26644fi
26645{ echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26646echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26647if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26648
26649cat >>confdefs.h <<\_ACEOF
26650#define HAVE_U_INT64_T 1
26651_ACEOF
26652
26653 have_u_int64_t=1
26654fi
26655
26656if (test -z "$have_u_int64_t" && \
26657 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26658then
26659 { echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
26660echo $ECHO_N "checking for u_int64_t type in sys/bitypes.h... $ECHO_C" >&6; }
26661 cat >conftest.$ac_ext <<_ACEOF
26662/* confdefs.h. */
26663_ACEOF
26664cat confdefs.h >>conftest.$ac_ext
26665cat >>conftest.$ac_ext <<_ACEOF
26666/* end confdefs.h. */
26667 #include <sys/bitypes.h>
26668int
26669main ()
26670{
26671 u_int64_t a; a = 1
26672 ;
26673 return 0;
26674}
26675_ACEOF
26676rm -f conftest.$ac_objext
26677if { (ac_try="$ac_compile"
26678case "(($ac_try" in
26679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680 *) ac_try_echo=$ac_try;;
26681esac
26682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683 (eval "$ac_compile") 2>conftest.er1
26684 ac_status=$?
26685 grep -v '^ *+' conftest.er1 >conftest.err
26686 rm -f conftest.er1
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } && {
26690 test -z "$ac_c_werror_flag" ||
26691 test ! -s conftest.err
26692 } && test -s conftest.$ac_objext; then
26693
26694 cat >>confdefs.h <<\_ACEOF
26695#define HAVE_U_INT64_T 1
26696_ACEOF
26697
26698 { echo "$as_me:$LINENO: result: yes" >&5
26699echo "${ECHO_T}yes" >&6; }
26700
26701else
26702 echo "$as_me: failed program was:" >&5
26703sed 's/^/| /' conftest.$ac_ext >&5
26704
26705 { echo "$as_me:$LINENO: result: no" >&5
26706echo "${ECHO_T}no" >&6; }
26707
26708fi
26709
26710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26711fi
26712
26713if test -z "$have_u_intxx_t" ; then
26714 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26715echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26716if test "${ac_cv_have_uintxx_t+set}" = set; then
26717 echo $ECHO_N "(cached) $ECHO_C" >&6
26718else
26719
26720 cat >conftest.$ac_ext <<_ACEOF
26721/* confdefs.h. */
26722_ACEOF
26723cat confdefs.h >>conftest.$ac_ext
26724cat >>conftest.$ac_ext <<_ACEOF
26725/* end confdefs.h. */
26726
26727#include <sys/types.h>
26728
26729int
26730main ()
26731{
26732
26733 uint8_t a;
26734 uint16_t b;
26735 uint32_t c;
26736 a = b = c = 1;
26737
26738 ;
26739 return 0;
26740}
26741_ACEOF
26742rm -f conftest.$ac_objext
26743if { (ac_try="$ac_compile"
26744case "(($ac_try" in
26745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26747esac
26748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749 (eval "$ac_compile") 2>conftest.er1
26750 ac_status=$?
26751 grep -v '^ *+' conftest.er1 >conftest.err
26752 rm -f conftest.er1
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } && {
26756 test -z "$ac_c_werror_flag" ||
26757 test ! -s conftest.err
26758 } && test -s conftest.$ac_objext; then
26759 ac_cv_have_uintxx_t="yes"
26760else
26761 echo "$as_me: failed program was:" >&5
26762sed 's/^/| /' conftest.$ac_ext >&5
26763
26764 ac_cv_have_uintxx_t="no"
26765
26766fi
26767
26768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26769
26770fi
26771{ echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26772echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26773 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26774
26775cat >>confdefs.h <<\_ACEOF
26776#define HAVE_UINTXX_T 1
26777_ACEOF
26778
26779 fi
26780fi
26781
26782if (test -z "$have_uintxx_t" && \
26783 test "x$ac_cv_header_stdint_h" = "xyes")
26784then
26785 { echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
26786echo $ECHO_N "checking for uintXX_t types in stdint.h... $ECHO_C" >&6; }
26787 cat >conftest.$ac_ext <<_ACEOF
26788/* confdefs.h. */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h. */
26793 #include <stdint.h>
26794int
26795main ()
26796{
26797 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26798 ;
26799 return 0;
26800}
26801_ACEOF
26802rm -f conftest.$ac_objext
26803if { (ac_try="$ac_compile"
26804case "(($ac_try" in
26805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806 *) ac_try_echo=$ac_try;;
26807esac
26808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26809 (eval "$ac_compile") 2>conftest.er1
26810 ac_status=$?
26811 grep -v '^ *+' conftest.er1 >conftest.err
26812 rm -f conftest.er1
26813 cat conftest.err >&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } && {
26816 test -z "$ac_c_werror_flag" ||
26817 test ! -s conftest.err
26818 } && test -s conftest.$ac_objext; then
26819
26820 cat >>confdefs.h <<\_ACEOF
26821#define HAVE_UINTXX_T 1
26822_ACEOF
26823
26824 { echo "$as_me:$LINENO: result: yes" >&5
26825echo "${ECHO_T}yes" >&6; }
26826
26827else
26828 echo "$as_me: failed program was:" >&5
26829sed 's/^/| /' conftest.$ac_ext >&5
26830
26831 { echo "$as_me:$LINENO: result: no" >&5
26832echo "${ECHO_T}no" >&6; }
26833
26834fi
26835
26836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26837fi
26838
26839if (test -z "$have_uintxx_t" && \
26840 test "x$ac_cv_header_inttypes_h" = "xyes")
26841then
26842 { echo "$as_me:$LINENO: checking for uintXX_t types in inttypes.h" >&5
26843echo $ECHO_N "checking for uintXX_t types in inttypes.h... $ECHO_C" >&6; }
26844 cat >conftest.$ac_ext <<_ACEOF
26845/* confdefs.h. */
26846_ACEOF
26847cat confdefs.h >>conftest.$ac_ext
26848cat >>conftest.$ac_ext <<_ACEOF
26849/* end confdefs.h. */
26850 #include <inttypes.h>
26851int
26852main ()
26853{
26854 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
26855 ;
26856 return 0;
26857}
26858_ACEOF
26859rm -f conftest.$ac_objext
26860if { (ac_try="$ac_compile"
26861case "(($ac_try" in
26862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26863 *) ac_try_echo=$ac_try;;
26864esac
26865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26866 (eval "$ac_compile") 2>conftest.er1
26867 ac_status=$?
26868 grep -v '^ *+' conftest.er1 >conftest.err
26869 rm -f conftest.er1
26870 cat conftest.err >&5
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); } && {
26873 test -z "$ac_c_werror_flag" ||
26874 test ! -s conftest.err
26875 } && test -s conftest.$ac_objext; then
26876
26877 cat >>confdefs.h <<\_ACEOF
26878#define HAVE_UINTXX_T 1
26879_ACEOF
26880
26881 { echo "$as_me:$LINENO: result: yes" >&5
26882echo "${ECHO_T}yes" >&6; }
26883
26884else
26885 echo "$as_me: failed program was:" >&5
26886sed 's/^/| /' conftest.$ac_ext >&5
26887
26888 { echo "$as_me:$LINENO: result: no" >&5
26889echo "${ECHO_T}no" >&6; }
26890
26891fi
26892
26893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26894fi
26895
26896if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26897 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26898then
26899 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26900echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26901 cat >conftest.$ac_ext <<_ACEOF
26902/* confdefs.h. */
26903_ACEOF
26904cat confdefs.h >>conftest.$ac_ext
26905cat >>conftest.$ac_ext <<_ACEOF
26906/* end confdefs.h. */
26907
26908#include <sys/bitypes.h>
26909
26910int
26911main ()
26912{
26913
26914 int8_t a; int16_t b; int32_t c;
26915 u_int8_t e; u_int16_t f; u_int32_t g;
26916 a = b = c = e = f = g = 1;
26917
26918 ;
26919 return 0;
26920}
26921_ACEOF
26922rm -f conftest.$ac_objext
26923if { (ac_try="$ac_compile"
26924case "(($ac_try" in
26925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926 *) ac_try_echo=$ac_try;;
26927esac
26928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929 (eval "$ac_compile") 2>conftest.er1
26930 ac_status=$?
26931 grep -v '^ *+' conftest.er1 >conftest.err
26932 rm -f conftest.er1
26933 cat conftest.err >&5
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); } && {
26936 test -z "$ac_c_werror_flag" ||
26937 test ! -s conftest.err
26938 } && test -s conftest.$ac_objext; then
26939
26940 cat >>confdefs.h <<\_ACEOF
26941#define HAVE_U_INTXX_T 1
26942_ACEOF
26943
26944 cat >>confdefs.h <<\_ACEOF
26945#define HAVE_INTXX_T 1
26946_ACEOF
26947
26948 { echo "$as_me:$LINENO: result: yes" >&5
26949echo "${ECHO_T}yes" >&6; }
26950
26951else
26952 echo "$as_me: failed program was:" >&5
26953sed 's/^/| /' conftest.$ac_ext >&5
26954
26955 { echo "$as_me:$LINENO: result: no" >&5
26956echo "${ECHO_T}no" >&6; }
26957
26958fi
26959
26960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26961fi
26962
26963
26964{ echo "$as_me:$LINENO: checking for u_char" >&5
26965echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
26966if test "${ac_cv_have_u_char+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26968else
26969
26970 cat >conftest.$ac_ext <<_ACEOF
26971/* confdefs.h. */
26972_ACEOF
26973cat confdefs.h >>conftest.$ac_ext
26974cat >>conftest.$ac_ext <<_ACEOF
26975/* end confdefs.h. */
26976 #include <sys/types.h>
26977int
26978main ()
26979{
26980 u_char foo; foo = 125;
26981 ;
26982 return 0;
26983}
26984_ACEOF
26985rm -f conftest.$ac_objext
26986if { (ac_try="$ac_compile"
26987case "(($ac_try" in
26988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989 *) ac_try_echo=$ac_try;;
26990esac
26991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992 (eval "$ac_compile") 2>conftest.er1
26993 ac_status=$?
26994 grep -v '^ *+' conftest.er1 >conftest.err
26995 rm -f conftest.er1
26996 cat conftest.err >&5
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); } && {
26999 test -z "$ac_c_werror_flag" ||
27000 test ! -s conftest.err
27001 } && test -s conftest.$ac_objext; then
27002 ac_cv_have_u_char="yes"
27003else
27004 echo "$as_me: failed program was:" >&5
27005sed 's/^/| /' conftest.$ac_ext >&5
27006
27007 ac_cv_have_u_char="no"
27008
27009fi
27010
27011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27012
27013fi
27014{ echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
27015echo "${ECHO_T}$ac_cv_have_u_char" >&6; }
27016if test "x$ac_cv_have_u_char" = "xyes" ; then
27017
27018cat >>confdefs.h <<\_ACEOF
27019#define HAVE_U_CHAR 1
27020_ACEOF
27021
27022fi
27023
27024{ echo "$as_me:$LINENO: checking for intmax_t" >&5
27025echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
27026if test "${ac_cv_type_intmax_t+set}" = set; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028else
27029 cat >conftest.$ac_ext <<_ACEOF
27030/* confdefs.h. */
27031_ACEOF
27032cat confdefs.h >>conftest.$ac_ext
27033cat >>conftest.$ac_ext <<_ACEOF
27034/* end confdefs.h. */
27035
27036#include <sys/types.h>
27037#include <stdint.h>
27038
27039
27040typedef intmax_t ac__type_new_;
27041int
27042main ()
27043{
27044if ((ac__type_new_ *) 0)
27045 return 0;
27046if (sizeof (ac__type_new_))
27047 return 0;
27048 ;
27049 return 0;
27050}
27051_ACEOF
27052rm -f conftest.$ac_objext
27053if { (ac_try="$ac_compile"
27054case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27057esac
27058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_compile") 2>conftest.er1
27060 ac_status=$?
27061 grep -v '^ *+' conftest.er1 >conftest.err
27062 rm -f conftest.er1
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } && {
27066 test -z "$ac_c_werror_flag" ||
27067 test ! -s conftest.err
27068 } && test -s conftest.$ac_objext; then
27069 ac_cv_type_intmax_t=yes
27070else
27071 echo "$as_me: failed program was:" >&5
27072sed 's/^/| /' conftest.$ac_ext >&5
27073
27074 ac_cv_type_intmax_t=no
27075fi
27076
27077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078fi
27079{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
27080echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
27081if test $ac_cv_type_intmax_t = yes; then
27082
27083cat >>confdefs.h <<_ACEOF
27084#define HAVE_INTMAX_T 1
27085_ACEOF
27086
27087
27088fi
27089{ echo "$as_me:$LINENO: checking for uintmax_t" >&5
27090echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; }
27091if test "${ac_cv_type_uintmax_t+set}" = set; then
27092 echo $ECHO_N "(cached) $ECHO_C" >&6
27093else
27094 cat >conftest.$ac_ext <<_ACEOF
27095/* confdefs.h. */
27096_ACEOF
27097cat confdefs.h >>conftest.$ac_ext
27098cat >>conftest.$ac_ext <<_ACEOF
27099/* end confdefs.h. */
27100
27101#include <sys/types.h>
27102#include <stdint.h>
27103
27104
27105typedef uintmax_t ac__type_new_;
27106int
27107main ()
27108{
27109if ((ac__type_new_ *) 0)
27110 return 0;
27111if (sizeof (ac__type_new_))
27112 return 0;
27113 ;
27114 return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext
27118if { (ac_try="$ac_compile"
27119case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122esac
27123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_compile") 2>conftest.er1
27125 ac_status=$?
27126 grep -v '^ *+' conftest.er1 >conftest.err
27127 rm -f conftest.er1
27128 cat conftest.err >&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } && {
27131 test -z "$ac_c_werror_flag" ||
27132 test ! -s conftest.err
27133 } && test -s conftest.$ac_objext; then
27134 ac_cv_type_uintmax_t=yes
27135else
27136 echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
27139 ac_cv_type_uintmax_t=no
27140fi
27141
27142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27143fi
27144{ echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
27145echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; }
27146if test $ac_cv_type_uintmax_t = yes; then
27147
27148cat >>confdefs.h <<_ACEOF
27149#define HAVE_UINTMAX_T 1
27150_ACEOF
27151
27152
27153fi
27154
27155
27156
27157 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27158echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27159if test "${ac_cv_type_socklen_t+set}" = set; then
27160 echo $ECHO_N "(cached) $ECHO_C" >&6
27161else
27162 cat >conftest.$ac_ext <<_ACEOF
27163/* confdefs.h. */
27164_ACEOF
27165cat confdefs.h >>conftest.$ac_ext
27166cat >>conftest.$ac_ext <<_ACEOF
27167/* end confdefs.h. */
27168#include <sys/types.h>
27169#include <sys/socket.h>
27170
27171typedef socklen_t ac__type_new_;
27172int
27173main ()
27174{
27175if ((ac__type_new_ *) 0)
27176 return 0;
27177if (sizeof (ac__type_new_))
27178 return 0;
27179 ;
27180 return 0;
27181}
27182_ACEOF
27183rm -f conftest.$ac_objext
27184if { (ac_try="$ac_compile"
27185case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27188esac
27189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190 (eval "$ac_compile") 2>conftest.er1
27191 ac_status=$?
27192 grep -v '^ *+' conftest.er1 >conftest.err
27193 rm -f conftest.er1
27194 cat conftest.err >&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } && {
27197 test -z "$ac_c_werror_flag" ||
27198 test ! -s conftest.err
27199 } && test -s conftest.$ac_objext; then
27200 ac_cv_type_socklen_t=yes
27201else
27202 echo "$as_me: failed program was:" >&5
27203sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 ac_cv_type_socklen_t=no
27206fi
27207
27208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27209fi
27210{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27211echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27212if test $ac_cv_type_socklen_t = yes; then
27213 :
27214else
27215
27216 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27217echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
27218 if test "${curl_cv_socklen_t_equiv+set}" = set; then
27219 echo $ECHO_N "(cached) $ECHO_C" >&6
27220else
27221
27222 # Systems have either "struct sockaddr *" or
27223 # "void *" as the second argument to getpeername
27224 curl_cv_socklen_t_equiv=
27225 for arg2 in "struct sockaddr" void; do
27226 for t in int size_t unsigned long "unsigned long"; do
27227 cat >conftest.$ac_ext <<_ACEOF
27228/* confdefs.h. */
27229_ACEOF
27230cat confdefs.h >>conftest.$ac_ext
27231cat >>conftest.$ac_ext <<_ACEOF
27232/* end confdefs.h. */
27233
27234 #include <sys/types.h>
27235 #include <sys/socket.h>
27236
27237 int getpeername (int, $arg2 *, $t *);
27238
27239int
27240main ()
27241{
27242
27243 $t len;
27244 getpeername(0,0,&len);
27245
27246 ;
27247 return 0;
27248}
27249_ACEOF
27250rm -f conftest.$ac_objext
27251if { (ac_try="$ac_compile"
27252case "(($ac_try" in
27253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254 *) ac_try_echo=$ac_try;;
27255esac
27256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27257 (eval "$ac_compile") 2>conftest.er1
27258 ac_status=$?
27259 grep -v '^ *+' conftest.er1 >conftest.err
27260 rm -f conftest.er1
27261 cat conftest.err >&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } && {
27264 test -z "$ac_c_werror_flag" ||
27265 test ! -s conftest.err
27266 } && test -s conftest.$ac_objext; then
27267
27268 curl_cv_socklen_t_equiv="$t"
27269 break
27270
27271else
27272 echo "$as_me: failed program was:" >&5
27273sed 's/^/| /' conftest.$ac_ext >&5
27274
27275
27276fi
27277
27278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27279 done
27280 done
27281
27282 if test "x$curl_cv_socklen_t_equiv" = x; then
27283 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27284echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27285 { (exit 1); exit 1; }; }
27286 fi
27287
27288fi
27289
27290 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
27291echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
27292
27293cat >>confdefs.h <<_ACEOF
27294#define socklen_t $curl_cv_socklen_t_equiv
27295_ACEOF
27296
27297fi
27298
27299
27300
27301{ echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27302echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
27303if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27304 echo $ECHO_N "(cached) $ECHO_C" >&6
27305else
27306 cat >conftest.$ac_ext <<_ACEOF
27307/* confdefs.h. */
27308_ACEOF
27309cat confdefs.h >>conftest.$ac_ext
27310cat >>conftest.$ac_ext <<_ACEOF
27311/* end confdefs.h. */
27312#include <signal.h>
27313
27314typedef sig_atomic_t ac__type_new_;
27315int
27316main ()
27317{
27318if ((ac__type_new_ *) 0)
27319 return 0;
27320if (sizeof (ac__type_new_))
27321 return 0;
27322 ;
27323 return 0;
27324}
27325_ACEOF
27326rm -f conftest.$ac_objext
27327if { (ac_try="$ac_compile"
27328case "(($ac_try" in
27329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330 *) ac_try_echo=$ac_try;;
27331esac
27332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333 (eval "$ac_compile") 2>conftest.er1
27334 ac_status=$?
27335 grep -v '^ *+' conftest.er1 >conftest.err
27336 rm -f conftest.er1
27337 cat conftest.err >&5
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } && {
27340 test -z "$ac_c_werror_flag" ||
27341 test ! -s conftest.err
27342 } && test -s conftest.$ac_objext; then
27343 ac_cv_type_sig_atomic_t=yes
27344else
27345 echo "$as_me: failed program was:" >&5
27346sed 's/^/| /' conftest.$ac_ext >&5
27347
27348 ac_cv_type_sig_atomic_t=no
27349fi
27350
27351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27352fi
27353{ echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27354echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
27355if test $ac_cv_type_sig_atomic_t = yes; then
27356
27357cat >>confdefs.h <<_ACEOF
27358#define HAVE_SIG_ATOMIC_T 1
27359_ACEOF
27360
27361
27362fi
27363
27364{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
27365echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
27366if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27368else
27369 cat >conftest.$ac_ext <<_ACEOF
27370/* confdefs.h. */
27371_ACEOF
27372cat confdefs.h >>conftest.$ac_ext
27373cat >>conftest.$ac_ext <<_ACEOF
27374/* end confdefs.h. */
27375
27376#include <sys/types.h>
27377#ifdef HAVE_SYS_BITYPES_H
27378#include <sys/bitypes.h>
27379#endif
27380#ifdef HAVE_SYS_STATFS_H
27381#include <sys/statfs.h>
27382#endif
27383#ifdef HAVE_SYS_STATVFS_H
27384#include <sys/statvfs.h>
27385#endif
27386
27387
27388typedef fsblkcnt_t ac__type_new_;
27389int
27390main ()
27391{
27392if ((ac__type_new_ *) 0)
27393 return 0;
27394if (sizeof (ac__type_new_))
27395 return 0;
27396 ;
27397 return 0;
27398}
27399_ACEOF
27400rm -f conftest.$ac_objext
27401if { (ac_try="$ac_compile"
27402case "(($ac_try" in
27403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404 *) ac_try_echo=$ac_try;;
27405esac
27406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407 (eval "$ac_compile") 2>conftest.er1
27408 ac_status=$?
27409 grep -v '^ *+' conftest.er1 >conftest.err
27410 rm -f conftest.er1
27411 cat conftest.err >&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } && {
27414 test -z "$ac_c_werror_flag" ||
27415 test ! -s conftest.err
27416 } && test -s conftest.$ac_objext; then
27417 ac_cv_type_fsblkcnt_t=yes
27418else
27419 echo "$as_me: failed program was:" >&5
27420sed 's/^/| /' conftest.$ac_ext >&5
27421
27422 ac_cv_type_fsblkcnt_t=no
27423fi
27424
27425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27426fi
27427{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
27428echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
27429if test $ac_cv_type_fsblkcnt_t = yes; then
27430
27431cat >>confdefs.h <<_ACEOF
27432#define HAVE_FSBLKCNT_T 1
27433_ACEOF
27434
27435
27436fi
27437{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
27438echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
27439if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
27440 echo $ECHO_N "(cached) $ECHO_C" >&6
27441else
27442 cat >conftest.$ac_ext <<_ACEOF
27443/* confdefs.h. */
27444_ACEOF
27445cat confdefs.h >>conftest.$ac_ext
27446cat >>conftest.$ac_ext <<_ACEOF
27447/* end confdefs.h. */
27448
27449#include <sys/types.h>
27450#ifdef HAVE_SYS_BITYPES_H
27451#include <sys/bitypes.h>
27452#endif
27453#ifdef HAVE_SYS_STATFS_H
27454#include <sys/statfs.h>
27455#endif
27456#ifdef HAVE_SYS_STATVFS_H
27457#include <sys/statvfs.h>
27458#endif
27459
27460
27461typedef fsfilcnt_t ac__type_new_;
27462int
27463main ()
27464{
27465if ((ac__type_new_ *) 0)
27466 return 0;
27467if (sizeof (ac__type_new_))
27468 return 0;
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext
27474if { (ac_try="$ac_compile"
27475case "(($ac_try" in
27476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477 *) ac_try_echo=$ac_try;;
27478esac
27479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_compile") 2>conftest.er1
27481 ac_status=$?
27482 grep -v '^ *+' conftest.er1 >conftest.err
27483 rm -f conftest.er1
27484 cat conftest.err >&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); } && {
27487 test -z "$ac_c_werror_flag" ||
27488 test ! -s conftest.err
27489 } && test -s conftest.$ac_objext; then
27490 ac_cv_type_fsfilcnt_t=yes
27491else
27492 echo "$as_me: failed program was:" >&5
27493sed 's/^/| /' conftest.$ac_ext >&5
27494
27495 ac_cv_type_fsfilcnt_t=no
27496fi
27497
27498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499fi
27500{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
27501echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
27502if test $ac_cv_type_fsfilcnt_t = yes; then
27503
27504cat >>confdefs.h <<_ACEOF
27505#define HAVE_FSFILCNT_T 1
27506_ACEOF
27507
27508
27509fi
27510
27511
27512{ echo "$as_me:$LINENO: checking for in_addr_t" >&5
27513echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
27514if test "${ac_cv_type_in_addr_t+set}" = set; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
27516else
27517 cat >conftest.$ac_ext <<_ACEOF
27518/* confdefs.h. */
27519_ACEOF
27520cat confdefs.h >>conftest.$ac_ext
27521cat >>conftest.$ac_ext <<_ACEOF
27522/* end confdefs.h. */
27523#include <sys/types.h>
27524#include <netinet/in.h>
27525
27526typedef in_addr_t ac__type_new_;
27527int
27528main ()
27529{
27530if ((ac__type_new_ *) 0)
27531 return 0;
27532if (sizeof (ac__type_new_))
27533 return 0;
27534 ;
27535 return 0;
27536}
27537_ACEOF
27538rm -f conftest.$ac_objext
27539if { (ac_try="$ac_compile"
27540case "(($ac_try" in
27541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542 *) ac_try_echo=$ac_try;;
27543esac
27544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545 (eval "$ac_compile") 2>conftest.er1
27546 ac_status=$?
27547 grep -v '^ *+' conftest.er1 >conftest.err
27548 rm -f conftest.er1
27549 cat conftest.err >&5
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); } && {
27552 test -z "$ac_c_werror_flag" ||
27553 test ! -s conftest.err
27554 } && test -s conftest.$ac_objext; then
27555 ac_cv_type_in_addr_t=yes
27556else
27557 echo "$as_me: failed program was:" >&5
27558sed 's/^/| /' conftest.$ac_ext >&5
27559
27560 ac_cv_type_in_addr_t=no
27561fi
27562
27563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27564fi
27565{ echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
27566echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
27567if test $ac_cv_type_in_addr_t = yes; then
27568
27569cat >>confdefs.h <<_ACEOF
27570#define HAVE_IN_ADDR_T 1
27571_ACEOF
27572
27573
27574fi
27575{ echo "$as_me:$LINENO: checking for in_port_t" >&5
27576echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
27577if test "${ac_cv_type_in_port_t+set}" = set; then
27578 echo $ECHO_N "(cached) $ECHO_C" >&6
27579else
27580 cat >conftest.$ac_ext <<_ACEOF
27581/* confdefs.h. */
27582_ACEOF
27583cat confdefs.h >>conftest.$ac_ext
27584cat >>conftest.$ac_ext <<_ACEOF
27585/* end confdefs.h. */
27586#include <sys/types.h>
27587#include <netinet/in.h>
27588
27589typedef in_port_t ac__type_new_;
27590int
27591main ()
27592{
27593if ((ac__type_new_ *) 0)
27594 return 0;
27595if (sizeof (ac__type_new_))
27596 return 0;
27597 ;
27598 return 0;
27599}
27600_ACEOF
27601rm -f conftest.$ac_objext
27602if { (ac_try="$ac_compile"
27603case "(($ac_try" in
27604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605 *) ac_try_echo=$ac_try;;
27606esac
27607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608 (eval "$ac_compile") 2>conftest.er1
27609 ac_status=$?
27610 grep -v '^ *+' conftest.er1 >conftest.err
27611 rm -f conftest.er1
27612 cat conftest.err >&5
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); } && {
27615 test -z "$ac_c_werror_flag" ||
27616 test ! -s conftest.err
27617 } && test -s conftest.$ac_objext; then
27618 ac_cv_type_in_port_t=yes
27619else
27620 echo "$as_me: failed program was:" >&5
27621sed 's/^/| /' conftest.$ac_ext >&5
27622
27623 ac_cv_type_in_port_t=no
27624fi
27625
27626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627fi
27628{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
27629echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
27630if test $ac_cv_type_in_port_t = yes; then
27631
27632cat >>confdefs.h <<_ACEOF
27633#define HAVE_IN_PORT_T 1
27634_ACEOF
27635
27636
27637fi
27638
27639
27640{ echo "$as_me:$LINENO: checking for size_t" >&5
27641echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27642if test "${ac_cv_have_size_t+set}" = set; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27644else
27645
27646 cat >conftest.$ac_ext <<_ACEOF
27647/* confdefs.h. */
27648_ACEOF
27649cat confdefs.h >>conftest.$ac_ext
27650cat >>conftest.$ac_ext <<_ACEOF
27651/* end confdefs.h. */
27652 #include <sys/types.h>
27653int
27654main ()
27655{
27656 size_t foo; foo = 1235;
27657 ;
27658 return 0;
27659}
27660_ACEOF
27661rm -f conftest.$ac_objext
27662if { (ac_try="$ac_compile"
27663case "(($ac_try" in
27664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27665 *) ac_try_echo=$ac_try;;
27666esac
27667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27668 (eval "$ac_compile") 2>conftest.er1
27669 ac_status=$?
27670 grep -v '^ *+' conftest.er1 >conftest.err
27671 rm -f conftest.er1
27672 cat conftest.err >&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } && {
27675 test -z "$ac_c_werror_flag" ||
27676 test ! -s conftest.err
27677 } && test -s conftest.$ac_objext; then
27678 ac_cv_have_size_t="yes"
27679else
27680 echo "$as_me: failed program was:" >&5
27681sed 's/^/| /' conftest.$ac_ext >&5
27682
27683 ac_cv_have_size_t="no"
27684
27685fi
27686
27687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27688
27689fi
27690{ echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
27691echo "${ECHO_T}$ac_cv_have_size_t" >&6; }
27692if test "x$ac_cv_have_size_t" = "xyes" ; then
27693
27694cat >>confdefs.h <<\_ACEOF
27695#define HAVE_SIZE_T 1
27696_ACEOF
27697
27698fi
27699
27700{ echo "$as_me:$LINENO: checking for ssize_t" >&5
27701echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27702if test "${ac_cv_have_ssize_t+set}" = set; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27704else
27705
27706 cat >conftest.$ac_ext <<_ACEOF
27707/* confdefs.h. */
27708_ACEOF
27709cat confdefs.h >>conftest.$ac_ext
27710cat >>conftest.$ac_ext <<_ACEOF
27711/* end confdefs.h. */
27712 #include <sys/types.h>
27713int
27714main ()
27715{
27716 ssize_t foo; foo = 1235;
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_have_ssize_t="yes"
27739else
27740 echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743 ac_cv_have_ssize_t="no"
27744
27745fi
27746
27747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27748
27749fi
27750{ echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
27751echo "${ECHO_T}$ac_cv_have_ssize_t" >&6; }
27752if test "x$ac_cv_have_ssize_t" = "xyes" ; then
27753
27754cat >>confdefs.h <<\_ACEOF
27755#define HAVE_SSIZE_T 1
27756_ACEOF
27757
27758fi
27759
27760{ echo "$as_me:$LINENO: checking for clock_t" >&5
27761echo $ECHO_N "checking for clock_t... $ECHO_C" >&6; }
27762if test "${ac_cv_have_clock_t+set}" = set; then
27763 echo $ECHO_N "(cached) $ECHO_C" >&6
27764else
27765
27766 cat >conftest.$ac_ext <<_ACEOF
27767/* confdefs.h. */
27768_ACEOF
27769cat confdefs.h >>conftest.$ac_ext
27770cat >>conftest.$ac_ext <<_ACEOF
27771/* end confdefs.h. */
27772 #include <time.h>
27773int
27774main ()
27775{
27776 clock_t foo; foo = 1235;
27777 ;
27778 return 0;
27779}
27780_ACEOF
27781rm -f conftest.$ac_objext
27782if { (ac_try="$ac_compile"
27783case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27786esac
27787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_compile") 2>conftest.er1
27789 ac_status=$?
27790 grep -v '^ *+' conftest.er1 >conftest.err
27791 rm -f conftest.er1
27792 cat conftest.err >&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } && {
27795 test -z "$ac_c_werror_flag" ||
27796 test ! -s conftest.err
27797 } && test -s conftest.$ac_objext; then
27798 ac_cv_have_clock_t="yes"
27799else
27800 echo "$as_me: failed program was:" >&5
27801sed 's/^/| /' conftest.$ac_ext >&5
27802
27803 ac_cv_have_clock_t="no"
27804
27805fi
27806
27807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27808
27809fi
27810{ echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
27811echo "${ECHO_T}$ac_cv_have_clock_t" >&6; }
27812if test "x$ac_cv_have_clock_t" = "xyes" ; then
27813
27814cat >>confdefs.h <<\_ACEOF
27815#define HAVE_CLOCK_T 1
27816_ACEOF
27817
27818fi
27819
27820{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
27821echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
27822if test "${ac_cv_have_sa_family_t+set}" = set; then
27823 echo $ECHO_N "(cached) $ECHO_C" >&6
27824else
27825
27826 cat >conftest.$ac_ext <<_ACEOF
27827/* confdefs.h. */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h. */
27832
27833#include <sys/types.h>
27834#include <sys/socket.h>
27835
27836int
27837main ()
27838{
27839 sa_family_t foo; foo = 1235;
27840 ;
27841 return 0;
27842}
27843_ACEOF
27844rm -f conftest.$ac_objext
27845if { (ac_try="$ac_compile"
27846case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_compile") 2>conftest.er1
27852 ac_status=$?
27853 grep -v '^ *+' conftest.er1 >conftest.err
27854 rm -f conftest.er1
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } && {
27858 test -z "$ac_c_werror_flag" ||
27859 test ! -s conftest.err
27860 } && test -s conftest.$ac_objext; then
27861 ac_cv_have_sa_family_t="yes"
27862else
27863 echo "$as_me: failed program was:" >&5
27864sed 's/^/| /' conftest.$ac_ext >&5
27865
27866 cat >conftest.$ac_ext <<_ACEOF
27867/* confdefs.h. */
27868_ACEOF
27869cat confdefs.h >>conftest.$ac_ext
27870cat >>conftest.$ac_ext <<_ACEOF
27871/* end confdefs.h. */
27872
27873#include <sys/types.h>
27874#include <sys/socket.h>
27875#include <netinet/in.h>
27876
27877int
27878main ()
27879{
27880 sa_family_t foo; foo = 1235;
27881 ;
27882 return 0;
27883}
27884_ACEOF
27885rm -f conftest.$ac_objext
27886if { (ac_try="$ac_compile"
27887case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27890esac
27891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892 (eval "$ac_compile") 2>conftest.er1
27893 ac_status=$?
27894 grep -v '^ *+' conftest.er1 >conftest.err
27895 rm -f conftest.er1
27896 cat conftest.err >&5
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); } && {
27899 test -z "$ac_c_werror_flag" ||
27900 test ! -s conftest.err
27901 } && test -s conftest.$ac_objext; then
27902 ac_cv_have_sa_family_t="yes"
27903else
27904 echo "$as_me: failed program was:" >&5
27905sed 's/^/| /' conftest.$ac_ext >&5
27906
27907 ac_cv_have_sa_family_t="no"
27908
27909fi
27910
27911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912
27913fi
27914
27915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916
27917fi
27918{ echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
27919echo "${ECHO_T}$ac_cv_have_sa_family_t" >&6; }
27920if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
27921
27922cat >>confdefs.h <<\_ACEOF
27923#define HAVE_SA_FAMILY_T 1
27924_ACEOF
27925
27926fi
27927
27928{ echo "$as_me:$LINENO: checking for pid_t" >&5
27929echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
27930if test "${ac_cv_have_pid_t+set}" = set; then
27931 echo $ECHO_N "(cached) $ECHO_C" >&6
27932else
27933
27934 cat >conftest.$ac_ext <<_ACEOF
27935/* confdefs.h. */
27936_ACEOF
27937cat confdefs.h >>conftest.$ac_ext
27938cat >>conftest.$ac_ext <<_ACEOF
27939/* end confdefs.h. */
27940 #include <sys/types.h>
27941int
27942main ()
27943{
27944 pid_t foo; foo = 1235;
27945 ;
27946 return 0;
27947}
27948_ACEOF
27949rm -f conftest.$ac_objext
27950if { (ac_try="$ac_compile"
27951case "(($ac_try" in
27952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953 *) ac_try_echo=$ac_try;;
27954esac
27955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956 (eval "$ac_compile") 2>conftest.er1
27957 ac_status=$?
27958 grep -v '^ *+' conftest.er1 >conftest.err
27959 rm -f conftest.er1
27960 cat conftest.err >&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } && {
27963 test -z "$ac_c_werror_flag" ||
27964 test ! -s conftest.err
27965 } && test -s conftest.$ac_objext; then
27966 ac_cv_have_pid_t="yes"
27967else
27968 echo "$as_me: failed program was:" >&5
27969sed 's/^/| /' conftest.$ac_ext >&5
27970
27971 ac_cv_have_pid_t="no"
27972
27973fi
27974
27975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976
27977fi
27978{ echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
27979echo "${ECHO_T}$ac_cv_have_pid_t" >&6; }
27980if test "x$ac_cv_have_pid_t" = "xyes" ; then
27981
27982cat >>confdefs.h <<\_ACEOF
27983#define HAVE_PID_T 1
27984_ACEOF
27985
27986fi
27987
27988{ echo "$as_me:$LINENO: checking for mode_t" >&5
27989echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
27990if test "${ac_cv_have_mode_t+set}" = set; then
27991 echo $ECHO_N "(cached) $ECHO_C" >&6
27992else
27993
27994 cat >conftest.$ac_ext <<_ACEOF
27995/* confdefs.h. */
27996_ACEOF
27997cat confdefs.h >>conftest.$ac_ext
27998cat >>conftest.$ac_ext <<_ACEOF
27999/* end confdefs.h. */
28000 #include <sys/types.h>
28001int
28002main ()
28003{
28004 mode_t foo; foo = 1235;
28005 ;
28006 return 0;
28007}
28008_ACEOF
28009rm -f conftest.$ac_objext
28010if { (ac_try="$ac_compile"
28011case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28014esac
28015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_compile") 2>conftest.er1
28017 ac_status=$?
28018 grep -v '^ *+' conftest.er1 >conftest.err
28019 rm -f conftest.er1
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } && {
28023 test -z "$ac_c_werror_flag" ||
28024 test ! -s conftest.err
28025 } && test -s conftest.$ac_objext; then
28026 ac_cv_have_mode_t="yes"
28027else
28028 echo "$as_me: failed program was:" >&5
28029sed 's/^/| /' conftest.$ac_ext >&5
28030
28031 ac_cv_have_mode_t="no"
28032
28033fi
28034
28035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28036
28037fi
28038{ echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
28039echo "${ECHO_T}$ac_cv_have_mode_t" >&6; }
28040if test "x$ac_cv_have_mode_t" = "xyes" ; then
28041
28042cat >>confdefs.h <<\_ACEOF
28043#define HAVE_MODE_T 1
28044_ACEOF
28045
28046fi
28047
28048
28049{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
28050echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
28051if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28053else
28054
28055 cat >conftest.$ac_ext <<_ACEOF
28056/* confdefs.h. */
28057_ACEOF
28058cat confdefs.h >>conftest.$ac_ext
28059cat >>conftest.$ac_ext <<_ACEOF
28060/* end confdefs.h. */
28061
28062#include <sys/types.h>
28063#include <sys/socket.h>
28064
28065int
28066main ()
28067{
28068 struct sockaddr_storage s;
28069 ;
28070 return 0;
28071}
28072_ACEOF
28073rm -f conftest.$ac_objext
28074if { (ac_try="$ac_compile"
28075case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_compile") 2>conftest.er1
28081 ac_status=$?
28082 grep -v '^ *+' conftest.er1 >conftest.err
28083 rm -f conftest.er1
28084 cat conftest.err >&5
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); } && {
28087 test -z "$ac_c_werror_flag" ||
28088 test ! -s conftest.err
28089 } && test -s conftest.$ac_objext; then
28090 ac_cv_have_struct_sockaddr_storage="yes"
28091else
28092 echo "$as_me: failed program was:" >&5
28093sed 's/^/| /' conftest.$ac_ext >&5
28094
28095 ac_cv_have_struct_sockaddr_storage="no"
28096
28097fi
28098
28099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28100
28101fi
28102{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
28103echo "${ECHO_T}$ac_cv_have_struct_sockaddr_storage" >&6; }
28104if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
28105
28106cat >>confdefs.h <<\_ACEOF
28107#define HAVE_STRUCT_SOCKADDR_STORAGE 1
28108_ACEOF
28109
28110fi
28111
28112{ echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
28113echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
28114if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28116else
28117
28118 cat >conftest.$ac_ext <<_ACEOF
28119/* confdefs.h. */
28120_ACEOF
28121cat confdefs.h >>conftest.$ac_ext
28122cat >>conftest.$ac_ext <<_ACEOF
28123/* end confdefs.h. */
28124
28125#include <sys/types.h>
28126#include <netinet/in.h>
28127
28128int
28129main ()
28130{
28131 struct sockaddr_in6 s; s.sin6_family = 0;
28132 ;
28133 return 0;
28134}
28135_ACEOF
28136rm -f conftest.$ac_objext
28137if { (ac_try="$ac_compile"
28138case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28141esac
28142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143 (eval "$ac_compile") 2>conftest.er1
28144 ac_status=$?
28145 grep -v '^ *+' conftest.er1 >conftest.err
28146 rm -f conftest.er1
28147 cat conftest.err >&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); } && {
28150 test -z "$ac_c_werror_flag" ||
28151 test ! -s conftest.err
28152 } && test -s conftest.$ac_objext; then
28153 ac_cv_have_struct_sockaddr_in6="yes"
28154else
28155 echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
28158 ac_cv_have_struct_sockaddr_in6="no"
28159
28160fi
28161
28162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163
28164fi
28165{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
28166echo "${ECHO_T}$ac_cv_have_struct_sockaddr_in6" >&6; }
28167if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
28168
28169cat >>confdefs.h <<\_ACEOF
28170#define HAVE_STRUCT_SOCKADDR_IN6 1
28171_ACEOF
28172
28173fi
28174
28175{ echo "$as_me:$LINENO: checking for struct in6_addr" >&5
28176echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
28177if test "${ac_cv_have_struct_in6_addr+set}" = set; then
28178 echo $ECHO_N "(cached) $ECHO_C" >&6
28179else
28180
28181 cat >conftest.$ac_ext <<_ACEOF
28182/* confdefs.h. */
28183_ACEOF
28184cat confdefs.h >>conftest.$ac_ext
28185cat >>conftest.$ac_ext <<_ACEOF
28186/* end confdefs.h. */
28187
28188#include <sys/types.h>
28189#include <netinet/in.h>
28190
28191int
28192main ()
28193{
28194 struct in6_addr s; s.s6_addr[0] = 0;
28195 ;
28196 return 0;
28197}
28198_ACEOF
28199rm -f conftest.$ac_objext
28200if { (ac_try="$ac_compile"
28201case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28204esac
28205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_compile") 2>conftest.er1
28207 ac_status=$?
28208 grep -v '^ *+' conftest.er1 >conftest.err
28209 rm -f conftest.er1
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } && {
28213 test -z "$ac_c_werror_flag" ||
28214 test ! -s conftest.err
28215 } && test -s conftest.$ac_objext; then
28216 ac_cv_have_struct_in6_addr="yes"
28217else
28218 echo "$as_me: failed program was:" >&5
28219sed 's/^/| /' conftest.$ac_ext >&5
28220
28221 ac_cv_have_struct_in6_addr="no"
28222
28223fi
28224
28225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28226
28227fi
28228{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
28229echo "${ECHO_T}$ac_cv_have_struct_in6_addr" >&6; }
28230if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
28231
28232cat >>confdefs.h <<\_ACEOF
28233#define HAVE_STRUCT_IN6_ADDR 1
28234_ACEOF
28235
28236
28237 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
28238echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
28239if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
28240 echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242 cat >conftest.$ac_ext <<_ACEOF
28243/* confdefs.h. */
28244_ACEOF
28245cat confdefs.h >>conftest.$ac_ext
28246cat >>conftest.$ac_ext <<_ACEOF
28247/* end confdefs.h. */
28248
28249#ifdef HAVE_SYS_TYPES_H
28250#include <sys/types.h>
28251#endif
28252#include <netinet/in.h>
28253
28254
28255int
28256main ()
28257{
28258static struct sockaddr_in6 ac_aggr;
28259if (ac_aggr.sin6_scope_id)
28260return 0;
28261 ;
28262 return 0;
28263}
28264_ACEOF
28265rm -f conftest.$ac_objext
28266if { (ac_try="$ac_compile"
28267case "(($ac_try" in
28268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28269 *) ac_try_echo=$ac_try;;
28270esac
28271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28272 (eval "$ac_compile") 2>conftest.er1
28273 ac_status=$?
28274 grep -v '^ *+' conftest.er1 >conftest.err
28275 rm -f conftest.er1
28276 cat conftest.err >&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); } && {
28279 test -z "$ac_c_werror_flag" ||
28280 test ! -s conftest.err
28281 } && test -s conftest.$ac_objext; then
28282 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28283else
28284 echo "$as_me: failed program was:" >&5
28285sed 's/^/| /' conftest.$ac_ext >&5
28286
28287 cat >conftest.$ac_ext <<_ACEOF
28288/* confdefs.h. */
28289_ACEOF
28290cat confdefs.h >>conftest.$ac_ext
28291cat >>conftest.$ac_ext <<_ACEOF
28292/* end confdefs.h. */
28293
28294#ifdef HAVE_SYS_TYPES_H
28295#include <sys/types.h>
28296#endif
28297#include <netinet/in.h>
28298
28299
28300int
28301main ()
28302{
28303static struct sockaddr_in6 ac_aggr;
28304if (sizeof ac_aggr.sin6_scope_id)
28305return 0;
28306 ;
28307 return 0;
28308}
28309_ACEOF
28310rm -f conftest.$ac_objext
28311if { (ac_try="$ac_compile"
28312case "(($ac_try" in
28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314 *) ac_try_echo=$ac_try;;
28315esac
28316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317 (eval "$ac_compile") 2>conftest.er1
28318 ac_status=$?
28319 grep -v '^ *+' conftest.er1 >conftest.err
28320 rm -f conftest.er1
28321 cat conftest.err >&5
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); } && {
28324 test -z "$ac_c_werror_flag" ||
28325 test ! -s conftest.err
28326 } && test -s conftest.$ac_objext; then
28327 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
28328else
28329 echo "$as_me: failed program was:" >&5
28330sed 's/^/| /' conftest.$ac_ext >&5
28331
28332 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
28333fi
28334
28335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28336fi
28337
28338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28339fi
28340{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
28341echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
28342if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
28343
28344cat >>confdefs.h <<_ACEOF
28345#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
28346_ACEOF
28347
28348
28349fi
28350
28351fi
28352
28353{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5
28354echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
28355if test "${ac_cv_have_struct_addrinfo+set}" = set; then
28356 echo $ECHO_N "(cached) $ECHO_C" >&6
28357else
28358
28359 cat >conftest.$ac_ext <<_ACEOF
28360/* confdefs.h. */
28361_ACEOF
28362cat confdefs.h >>conftest.$ac_ext
28363cat >>conftest.$ac_ext <<_ACEOF
28364/* end confdefs.h. */
28365
28366#include <sys/types.h>
28367#include <sys/socket.h>
28368#include <netdb.h>
28369
28370int
28371main ()
28372{
28373 struct addrinfo s; s.ai_flags = AI_PASSIVE;
28374 ;
28375 return 0;
28376}
28377_ACEOF
28378rm -f conftest.$ac_objext
28379if { (ac_try="$ac_compile"
28380case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28383esac
28384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_compile") 2>conftest.er1
28386 ac_status=$?
28387 grep -v '^ *+' conftest.er1 >conftest.err
28388 rm -f conftest.er1
28389 cat conftest.err >&5
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); } && {
28392 test -z "$ac_c_werror_flag" ||
28393 test ! -s conftest.err
28394 } && test -s conftest.$ac_objext; then
28395 ac_cv_have_struct_addrinfo="yes"
28396else
28397 echo "$as_me: failed program was:" >&5
28398sed 's/^/| /' conftest.$ac_ext >&5
28399
28400 ac_cv_have_struct_addrinfo="no"
28401
28402fi
28403
28404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28405
28406fi
28407{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
28408echo "${ECHO_T}$ac_cv_have_struct_addrinfo" >&6; }
28409if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
28410
28411cat >>confdefs.h <<\_ACEOF
28412#define HAVE_STRUCT_ADDRINFO 1
28413_ACEOF
28414
28415fi
28416
28417{ echo "$as_me:$LINENO: checking for struct timeval" >&5
28418echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28419if test "${ac_cv_have_struct_timeval+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28421else
28422
28423 cat >conftest.$ac_ext <<_ACEOF
28424/* confdefs.h. */
28425_ACEOF
28426cat confdefs.h >>conftest.$ac_ext
28427cat >>conftest.$ac_ext <<_ACEOF
28428/* end confdefs.h. */
28429 #include <sys/time.h>
28430int
28431main ()
28432{
28433 struct timeval tv; tv.tv_sec = 1;
28434 ;
28435 return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext
28439if { (ac_try="$ac_compile"
28440case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443esac
28444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_compile") 2>conftest.er1
28446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } && {
28452 test -z "$ac_c_werror_flag" ||
28453 test ! -s conftest.err
28454 } && test -s conftest.$ac_objext; then
28455 ac_cv_have_struct_timeval="yes"
28456else
28457 echo "$as_me: failed program was:" >&5
28458sed 's/^/| /' conftest.$ac_ext >&5
28459
28460 ac_cv_have_struct_timeval="no"
28461
28462fi
28463
28464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28465
28466fi
28467{ echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
28468echo "${ECHO_T}$ac_cv_have_struct_timeval" >&6; }
28469if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
28470
28471cat >>confdefs.h <<\_ACEOF
28472#define HAVE_STRUCT_TIMEVAL 1
28473_ACEOF
28474
28475 have_struct_timeval=1
28476fi
28477
28478{ echo "$as_me:$LINENO: checking for struct timespec" >&5
28479echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
28480if test "${ac_cv_type_struct_timespec+set}" = set; then
28481 echo $ECHO_N "(cached) $ECHO_C" >&6
28482else
28483 cat >conftest.$ac_ext <<_ACEOF
28484/* confdefs.h. */
28485_ACEOF
28486cat confdefs.h >>conftest.$ac_ext
28487cat >>conftest.$ac_ext <<_ACEOF
28488/* end confdefs.h. */
28489$ac_includes_default
28490typedef struct timespec ac__type_new_;
28491int
28492main ()
28493{
28494if ((ac__type_new_ *) 0)
28495 return 0;
28496if (sizeof (ac__type_new_))
28497 return 0;
28498 ;
28499 return 0;
28500}
28501_ACEOF
28502rm -f conftest.$ac_objext
28503if { (ac_try="$ac_compile"
28504case "(($ac_try" in
28505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28506 *) ac_try_echo=$ac_try;;
28507esac
28508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28509 (eval "$ac_compile") 2>conftest.er1
28510 ac_status=$?
28511 grep -v '^ *+' conftest.er1 >conftest.err
28512 rm -f conftest.er1
28513 cat conftest.err >&5
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); } && {
28516 test -z "$ac_c_werror_flag" ||
28517 test ! -s conftest.err
28518 } && test -s conftest.$ac_objext; then
28519 ac_cv_type_struct_timespec=yes
28520else
28521 echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524 ac_cv_type_struct_timespec=no
28525fi
28526
28527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28528fi
28529{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
28530echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
28531if test $ac_cv_type_struct_timespec = yes; then
28532
28533cat >>confdefs.h <<_ACEOF
28534#define HAVE_STRUCT_TIMESPEC 1
28535_ACEOF
28536
28537
28538fi
28539
28540
28541# We need int64_t or else certian parts of the compile will fail.
28542if test "x$ac_cv_have_int64_t" = "xno" && \
28543 test "x$ac_cv_sizeof_long_int" != "x8" && \
28544 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
28545 echo "OpenSSH requires int64_t support. Contact your vendor or install"
28546 echo "an alternative compiler (I.E., GCC) before continuing."
28547 echo ""
28548 exit 1;
28549else
28550 if test "$cross_compiling" = yes; then
28551 { echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
28552echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
28553
28554else
28555 cat >conftest.$ac_ext <<_ACEOF
28556/* confdefs.h. */
28557_ACEOF
28558cat confdefs.h >>conftest.$ac_ext
28559cat >>conftest.$ac_ext <<_ACEOF
28560/* end confdefs.h. */
28561
28562#include <stdio.h>
28563#include <string.h>
28564#ifdef HAVE_SNPRINTF
28565main()
28566{
28567 char buf[50];
28568 char expected_out[50];
28569 int mazsize = 50 ;
28570#if (SIZEOF_LONG_INT == 8)
28571 long int num = 0x7fffffffffffffff;
28572#else
28573 long long num = 0x7fffffffffffffffll;
28574#endif
28575 strcpy(expected_out, "9223372036854775807");
28576 snprintf(buf, mazsize, "%lld", num);
28577 if(strcmp(buf, expected_out) != 0)
28578 exit(1);
28579 exit(0);
28580}
28581#else
28582main() { exit(0); }
28583#endif
28584
28585_ACEOF
28586rm -f conftest$ac_exeext
28587if { (ac_try="$ac_link"
28588case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_link") 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28597 { (case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_try") 2>&5
28603 ac_status=$?
28604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605 (exit $ac_status); }; }; then
28606 true
28607else
28608 echo "$as_me: program exited with status $ac_status" >&5
28609echo "$as_me: failed program was:" >&5
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
28612( exit $ac_status )
28613 cat >>confdefs.h <<\_ACEOF
28614#define BROKEN_SNPRINTF 1
28615_ACEOF
28616
28617fi
28618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28619fi
28620
28621
28622fi
28623
28624
28625# look for field 'ut_host' in header 'utmp.h'
28626 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28627 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28628 { echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
28629echo $ECHO_N "checking for ut_host field in utmp.h... $ECHO_C" >&6; }
28630 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28631 echo $ECHO_N "(cached) $ECHO_C" >&6
28632else
28633
28634 cat >conftest.$ac_ext <<_ACEOF
28635/* confdefs.h. */
28636_ACEOF
28637cat confdefs.h >>conftest.$ac_ext
28638cat >>conftest.$ac_ext <<_ACEOF
28639/* end confdefs.h. */
28640#include <utmp.h>
28641
28642_ACEOF
28643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28644 $EGREP "ut_host" >/dev/null 2>&1; then
28645 eval "$ossh_varname=yes"
28646else
28647 eval "$ossh_varname=no"
28648fi
28649rm -f conftest*
28650
28651fi
28652
28653 ossh_result=`eval 'echo $'"$ossh_varname"`
28654 if test -n "`echo $ossh_varname`"; then
28655 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28656echo "${ECHO_T}$ossh_result" >&6; }
28657 if test "x$ossh_result" = "xyes"; then
28658
28659cat >>confdefs.h <<\_ACEOF
28660#define HAVE_HOST_IN_UTMP 1
28661_ACEOF
28662
28663 fi
28664 else
28665 { echo "$as_me:$LINENO: result: no" >&5
28666echo "${ECHO_T}no" >&6; }
28667 fi
28668
28669
28670# look for field 'ut_host' in header 'utmpx.h'
28671 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28672 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
28673 { echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
28674echo $ECHO_N "checking for ut_host field in utmpx.h... $ECHO_C" >&6; }
28675 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28676 echo $ECHO_N "(cached) $ECHO_C" >&6
28677else
28678
28679 cat >conftest.$ac_ext <<_ACEOF
28680/* confdefs.h. */
28681_ACEOF
28682cat confdefs.h >>conftest.$ac_ext
28683cat >>conftest.$ac_ext <<_ACEOF
28684/* end confdefs.h. */
28685#include <utmpx.h>
28686
28687_ACEOF
28688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28689 $EGREP "ut_host" >/dev/null 2>&1; then
28690 eval "$ossh_varname=yes"
28691else
28692 eval "$ossh_varname=no"
28693fi
28694rm -f conftest*
28695
28696fi
28697
28698 ossh_result=`eval 'echo $'"$ossh_varname"`
28699 if test -n "`echo $ossh_varname`"; then
28700 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28701echo "${ECHO_T}$ossh_result" >&6; }
28702 if test "x$ossh_result" = "xyes"; then
28703
28704cat >>confdefs.h <<\_ACEOF
28705#define HAVE_HOST_IN_UTMPX 1
28706_ACEOF
28707
28708 fi
28709 else
28710 { echo "$as_me:$LINENO: result: no" >&5
28711echo "${ECHO_T}no" >&6; }
28712 fi
28713
28714
28715# look for field 'syslen' in header 'utmpx.h'
28716 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28717 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
28718 { echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
28719echo $ECHO_N "checking for syslen field in utmpx.h... $ECHO_C" >&6; }
28720 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28721 echo $ECHO_N "(cached) $ECHO_C" >&6
28722else
28723
28724 cat >conftest.$ac_ext <<_ACEOF
28725/* confdefs.h. */
28726_ACEOF
28727cat confdefs.h >>conftest.$ac_ext
28728cat >>conftest.$ac_ext <<_ACEOF
28729/* end confdefs.h. */
28730#include <utmpx.h>
28731
28732_ACEOF
28733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28734 $EGREP "syslen" >/dev/null 2>&1; then
28735 eval "$ossh_varname=yes"
28736else
28737 eval "$ossh_varname=no"
28738fi
28739rm -f conftest*
28740
28741fi
28742
28743 ossh_result=`eval 'echo $'"$ossh_varname"`
28744 if test -n "`echo $ossh_varname`"; then
28745 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28746echo "${ECHO_T}$ossh_result" >&6; }
28747 if test "x$ossh_result" = "xyes"; then
28748
28749cat >>confdefs.h <<\_ACEOF
28750#define HAVE_SYSLEN_IN_UTMPX 1
28751_ACEOF
28752
28753 fi
28754 else
28755 { echo "$as_me:$LINENO: result: no" >&5
28756echo "${ECHO_T}no" >&6; }
28757 fi
28758
28759
28760# look for field 'ut_pid' in header 'utmp.h'
28761 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28762 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
28763 { echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
28764echo $ECHO_N "checking for ut_pid field in utmp.h... $ECHO_C" >&6; }
28765 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28766 echo $ECHO_N "(cached) $ECHO_C" >&6
28767else
28768
28769 cat >conftest.$ac_ext <<_ACEOF
28770/* confdefs.h. */
28771_ACEOF
28772cat confdefs.h >>conftest.$ac_ext
28773cat >>conftest.$ac_ext <<_ACEOF
28774/* end confdefs.h. */
28775#include <utmp.h>
28776
28777_ACEOF
28778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28779 $EGREP "ut_pid" >/dev/null 2>&1; then
28780 eval "$ossh_varname=yes"
28781else
28782 eval "$ossh_varname=no"
28783fi
28784rm -f conftest*
28785
28786fi
28787
28788 ossh_result=`eval 'echo $'"$ossh_varname"`
28789 if test -n "`echo $ossh_varname`"; then
28790 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28791echo "${ECHO_T}$ossh_result" >&6; }
28792 if test "x$ossh_result" = "xyes"; then
28793
28794cat >>confdefs.h <<\_ACEOF
28795#define HAVE_PID_IN_UTMP 1
28796_ACEOF
28797
28798 fi
28799 else
28800 { echo "$as_me:$LINENO: result: no" >&5
28801echo "${ECHO_T}no" >&6; }
28802 fi
28803
28804
28805# look for field 'ut_type' in header 'utmp.h'
28806 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28807 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28808 { echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
28809echo $ECHO_N "checking for ut_type field in utmp.h... $ECHO_C" >&6; }
28810 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28812else
28813
28814 cat >conftest.$ac_ext <<_ACEOF
28815/* confdefs.h. */
28816_ACEOF
28817cat confdefs.h >>conftest.$ac_ext
28818cat >>conftest.$ac_ext <<_ACEOF
28819/* end confdefs.h. */
28820#include <utmp.h>
28821
28822_ACEOF
28823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28824 $EGREP "ut_type" >/dev/null 2>&1; then
28825 eval "$ossh_varname=yes"
28826else
28827 eval "$ossh_varname=no"
28828fi
28829rm -f conftest*
28830
28831fi
28832
28833 ossh_result=`eval 'echo $'"$ossh_varname"`
28834 if test -n "`echo $ossh_varname`"; then
28835 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28836echo "${ECHO_T}$ossh_result" >&6; }
28837 if test "x$ossh_result" = "xyes"; then
28838
28839cat >>confdefs.h <<\_ACEOF
28840#define HAVE_TYPE_IN_UTMP 1
28841_ACEOF
28842
28843 fi
28844 else
28845 { echo "$as_me:$LINENO: result: no" >&5
28846echo "${ECHO_T}no" >&6; }
28847 fi
28848
28849
28850# look for field 'ut_type' in header 'utmpx.h'
28851 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28852 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
28853 { echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
28854echo $ECHO_N "checking for ut_type field in utmpx.h... $ECHO_C" >&6; }
28855 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28857else
28858
28859 cat >conftest.$ac_ext <<_ACEOF
28860/* confdefs.h. */
28861_ACEOF
28862cat confdefs.h >>conftest.$ac_ext
28863cat >>conftest.$ac_ext <<_ACEOF
28864/* end confdefs.h. */
28865#include <utmpx.h>
28866
28867_ACEOF
28868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28869 $EGREP "ut_type" >/dev/null 2>&1; then
28870 eval "$ossh_varname=yes"
28871else
28872 eval "$ossh_varname=no"
28873fi
28874rm -f conftest*
28875
28876fi
28877
28878 ossh_result=`eval 'echo $'"$ossh_varname"`
28879 if test -n "`echo $ossh_varname`"; then
28880 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28881echo "${ECHO_T}$ossh_result" >&6; }
28882 if test "x$ossh_result" = "xyes"; then
28883
28884cat >>confdefs.h <<\_ACEOF
28885#define HAVE_TYPE_IN_UTMPX 1
28886_ACEOF
28887
28888 fi
28889 else
28890 { echo "$as_me:$LINENO: result: no" >&5
28891echo "${ECHO_T}no" >&6; }
28892 fi
28893
28894
28895# look for field 'ut_tv' in header 'utmp.h'
28896 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28897 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
28898 { echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
28899echo $ECHO_N "checking for ut_tv field in utmp.h... $ECHO_C" >&6; }
28900 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28901 echo $ECHO_N "(cached) $ECHO_C" >&6
28902else
28903
28904 cat >conftest.$ac_ext <<_ACEOF
28905/* confdefs.h. */
28906_ACEOF
28907cat confdefs.h >>conftest.$ac_ext
28908cat >>conftest.$ac_ext <<_ACEOF
28909/* end confdefs.h. */
28910#include <utmp.h>
28911
28912_ACEOF
28913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28914 $EGREP "ut_tv" >/dev/null 2>&1; then
28915 eval "$ossh_varname=yes"
28916else
28917 eval "$ossh_varname=no"
28918fi
28919rm -f conftest*
28920
28921fi
28922
28923 ossh_result=`eval 'echo $'"$ossh_varname"`
28924 if test -n "`echo $ossh_varname`"; then
28925 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28926echo "${ECHO_T}$ossh_result" >&6; }
28927 if test "x$ossh_result" = "xyes"; then
28928
28929cat >>confdefs.h <<\_ACEOF
28930#define HAVE_TV_IN_UTMP 1
28931_ACEOF
28932
28933 fi
28934 else
28935 { echo "$as_me:$LINENO: result: no" >&5
28936echo "${ECHO_T}no" >&6; }
28937 fi
28938
28939
28940# look for field 'ut_id' in header 'utmp.h'
28941 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
28942 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28943 { echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
28944echo $ECHO_N "checking for ut_id field in utmp.h... $ECHO_C" >&6; }
28945 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28947else
28948
28949 cat >conftest.$ac_ext <<_ACEOF
28950/* confdefs.h. */
28951_ACEOF
28952cat confdefs.h >>conftest.$ac_ext
28953cat >>conftest.$ac_ext <<_ACEOF
28954/* end confdefs.h. */
28955#include <utmp.h>
28956
28957_ACEOF
28958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28959 $EGREP "ut_id" >/dev/null 2>&1; then
28960 eval "$ossh_varname=yes"
28961else
28962 eval "$ossh_varname=no"
28963fi
28964rm -f conftest*
28965
28966fi
28967
28968 ossh_result=`eval 'echo $'"$ossh_varname"`
28969 if test -n "`echo $ossh_varname`"; then
28970 { echo "$as_me:$LINENO: result: $ossh_result" >&5
28971echo "${ECHO_T}$ossh_result" >&6; }
28972 if test "x$ossh_result" = "xyes"; then
28973
28974cat >>confdefs.h <<\_ACEOF
28975#define HAVE_ID_IN_UTMP 1
28976_ACEOF
28977
28978 fi
28979 else
28980 { echo "$as_me:$LINENO: result: no" >&5
28981echo "${ECHO_T}no" >&6; }
28982 fi
28983
28984
28985# look for field 'ut_id' in header 'utmpx.h'
28986 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
28987 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
28988 { echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
28989echo $ECHO_N "checking for ut_id field in utmpx.h... $ECHO_C" >&6; }
28990 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
28991 echo $ECHO_N "(cached) $ECHO_C" >&6
28992else
28993
28994 cat >conftest.$ac_ext <<_ACEOF
28995/* confdefs.h. */
28996_ACEOF
28997cat confdefs.h >>conftest.$ac_ext
28998cat >>conftest.$ac_ext <<_ACEOF
28999/* end confdefs.h. */
29000#include <utmpx.h>
29001
29002_ACEOF
29003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29004 $EGREP "ut_id" >/dev/null 2>&1; then
29005 eval "$ossh_varname=yes"
29006else
29007 eval "$ossh_varname=no"
29008fi
29009rm -f conftest*
29010
29011fi
29012
29013 ossh_result=`eval 'echo $'"$ossh_varname"`
29014 if test -n "`echo $ossh_varname`"; then
29015 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29016echo "${ECHO_T}$ossh_result" >&6; }
29017 if test "x$ossh_result" = "xyes"; then
29018
29019cat >>confdefs.h <<\_ACEOF
29020#define HAVE_ID_IN_UTMPX 1
29021_ACEOF
29022
29023 fi
29024 else
29025 { echo "$as_me:$LINENO: result: no" >&5
29026echo "${ECHO_T}no" >&6; }
29027 fi
29028
29029
29030# look for field 'ut_addr' in header 'utmp.h'
29031 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29032 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
29033 { echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
29034echo $ECHO_N "checking for ut_addr field in utmp.h... $ECHO_C" >&6; }
29035 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29036 echo $ECHO_N "(cached) $ECHO_C" >&6
29037else
29038
29039 cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h. */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h. */
29045#include <utmp.h>
29046
29047_ACEOF
29048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29049 $EGREP "ut_addr" >/dev/null 2>&1; then
29050 eval "$ossh_varname=yes"
29051else
29052 eval "$ossh_varname=no"
29053fi
29054rm -f conftest*
29055
29056fi
29057
29058 ossh_result=`eval 'echo $'"$ossh_varname"`
29059 if test -n "`echo $ossh_varname`"; then
29060 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29061echo "${ECHO_T}$ossh_result" >&6; }
29062 if test "x$ossh_result" = "xyes"; then
29063
29064cat >>confdefs.h <<\_ACEOF
29065#define HAVE_ADDR_IN_UTMP 1
29066_ACEOF
29067
29068 fi
29069 else
29070 { echo "$as_me:$LINENO: result: no" >&5
29071echo "${ECHO_T}no" >&6; }
29072 fi
29073
29074
29075# look for field 'ut_addr' in header 'utmpx.h'
29076 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29077 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
29078 { echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
29079echo $ECHO_N "checking for ut_addr field in utmpx.h... $ECHO_C" >&6; }
29080 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29081 echo $ECHO_N "(cached) $ECHO_C" >&6
29082else
29083
29084 cat >conftest.$ac_ext <<_ACEOF
29085/* confdefs.h. */
29086_ACEOF
29087cat confdefs.h >>conftest.$ac_ext
29088cat >>conftest.$ac_ext <<_ACEOF
29089/* end confdefs.h. */
29090#include <utmpx.h>
29091
29092_ACEOF
29093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29094 $EGREP "ut_addr" >/dev/null 2>&1; then
29095 eval "$ossh_varname=yes"
29096else
29097 eval "$ossh_varname=no"
29098fi
29099rm -f conftest*
29100
29101fi
29102
29103 ossh_result=`eval 'echo $'"$ossh_varname"`
29104 if test -n "`echo $ossh_varname`"; then
29105 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29106echo "${ECHO_T}$ossh_result" >&6; }
29107 if test "x$ossh_result" = "xyes"; then
29108
29109cat >>confdefs.h <<\_ACEOF
29110#define HAVE_ADDR_IN_UTMPX 1
29111_ACEOF
29112
29113 fi
29114 else
29115 { echo "$as_me:$LINENO: result: no" >&5
29116echo "${ECHO_T}no" >&6; }
29117 fi
29118
29119
29120# look for field 'ut_addr_v6' in header 'utmp.h'
29121 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29122 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29123 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
29124echo $ECHO_N "checking for ut_addr_v6 field in utmp.h... $ECHO_C" >&6; }
29125 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29126 echo $ECHO_N "(cached) $ECHO_C" >&6
29127else
29128
29129 cat >conftest.$ac_ext <<_ACEOF
29130/* confdefs.h. */
29131_ACEOF
29132cat confdefs.h >>conftest.$ac_ext
29133cat >>conftest.$ac_ext <<_ACEOF
29134/* end confdefs.h. */
29135#include <utmp.h>
29136
29137_ACEOF
29138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29139 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29140 eval "$ossh_varname=yes"
29141else
29142 eval "$ossh_varname=no"
29143fi
29144rm -f conftest*
29145
29146fi
29147
29148 ossh_result=`eval 'echo $'"$ossh_varname"`
29149 if test -n "`echo $ossh_varname`"; then
29150 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29151echo "${ECHO_T}$ossh_result" >&6; }
29152 if test "x$ossh_result" = "xyes"; then
29153
29154cat >>confdefs.h <<\_ACEOF
29155#define HAVE_ADDR_V6_IN_UTMP 1
29156_ACEOF
29157
29158 fi
29159 else
29160 { echo "$as_me:$LINENO: result: no" >&5
29161echo "${ECHO_T}no" >&6; }
29162 fi
29163
29164
29165# look for field 'ut_addr_v6' in header 'utmpx.h'
29166 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29167 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
29168 { echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
29169echo $ECHO_N "checking for ut_addr_v6 field in utmpx.h... $ECHO_C" >&6; }
29170 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29172else
29173
29174 cat >conftest.$ac_ext <<_ACEOF
29175/* confdefs.h. */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h. */
29180#include <utmpx.h>
29181
29182_ACEOF
29183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29184 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
29185 eval "$ossh_varname=yes"
29186else
29187 eval "$ossh_varname=no"
29188fi
29189rm -f conftest*
29190
29191fi
29192
29193 ossh_result=`eval 'echo $'"$ossh_varname"`
29194 if test -n "`echo $ossh_varname`"; then
29195 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29196echo "${ECHO_T}$ossh_result" >&6; }
29197 if test "x$ossh_result" = "xyes"; then
29198
29199cat >>confdefs.h <<\_ACEOF
29200#define HAVE_ADDR_V6_IN_UTMPX 1
29201_ACEOF
29202
29203 fi
29204 else
29205 { echo "$as_me:$LINENO: result: no" >&5
29206echo "${ECHO_T}no" >&6; }
29207 fi
29208
29209
29210# look for field 'ut_exit' in header 'utmp.h'
29211 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29212 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
29213 { echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
29214echo $ECHO_N "checking for ut_exit field in utmp.h... $ECHO_C" >&6; }
29215 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29216 echo $ECHO_N "(cached) $ECHO_C" >&6
29217else
29218
29219 cat >conftest.$ac_ext <<_ACEOF
29220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
29225#include <utmp.h>
29226
29227_ACEOF
29228if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29229 $EGREP "ut_exit" >/dev/null 2>&1; then
29230 eval "$ossh_varname=yes"
29231else
29232 eval "$ossh_varname=no"
29233fi
29234rm -f conftest*
29235
29236fi
29237
29238 ossh_result=`eval 'echo $'"$ossh_varname"`
29239 if test -n "`echo $ossh_varname`"; then
29240 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29241echo "${ECHO_T}$ossh_result" >&6; }
29242 if test "x$ossh_result" = "xyes"; then
29243
29244cat >>confdefs.h <<\_ACEOF
29245#define HAVE_EXIT_IN_UTMP 1
29246_ACEOF
29247
29248 fi
29249 else
29250 { echo "$as_me:$LINENO: result: no" >&5
29251echo "${ECHO_T}no" >&6; }
29252 fi
29253
29254
29255# look for field 'ut_time' in header 'utmp.h'
29256 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
29257 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29258 { echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
29259echo $ECHO_N "checking for ut_time field in utmp.h... $ECHO_C" >&6; }
29260 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29261 echo $ECHO_N "(cached) $ECHO_C" >&6
29262else
29263
29264 cat >conftest.$ac_ext <<_ACEOF
29265/* confdefs.h. */
29266_ACEOF
29267cat confdefs.h >>conftest.$ac_ext
29268cat >>conftest.$ac_ext <<_ACEOF
29269/* end confdefs.h. */
29270#include <utmp.h>
29271
29272_ACEOF
29273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29274 $EGREP "ut_time" >/dev/null 2>&1; then
29275 eval "$ossh_varname=yes"
29276else
29277 eval "$ossh_varname=no"
29278fi
29279rm -f conftest*
29280
29281fi
29282
29283 ossh_result=`eval 'echo $'"$ossh_varname"`
29284 if test -n "`echo $ossh_varname`"; then
29285 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29286echo "${ECHO_T}$ossh_result" >&6; }
29287 if test "x$ossh_result" = "xyes"; then
29288
29289cat >>confdefs.h <<\_ACEOF
29290#define HAVE_TIME_IN_UTMP 1
29291_ACEOF
29292
29293 fi
29294 else
29295 { echo "$as_me:$LINENO: result: no" >&5
29296echo "${ECHO_T}no" >&6; }
29297 fi
29298
29299
29300# look for field 'ut_time' in header 'utmpx.h'
29301 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29302 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
29303 { echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
29304echo $ECHO_N "checking for ut_time field in utmpx.h... $ECHO_C" >&6; }
29305 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29307else
29308
29309 cat >conftest.$ac_ext <<_ACEOF
29310/* confdefs.h. */
29311_ACEOF
29312cat confdefs.h >>conftest.$ac_ext
29313cat >>conftest.$ac_ext <<_ACEOF
29314/* end confdefs.h. */
29315#include <utmpx.h>
29316
29317_ACEOF
29318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29319 $EGREP "ut_time" >/dev/null 2>&1; then
29320 eval "$ossh_varname=yes"
29321else
29322 eval "$ossh_varname=no"
29323fi
29324rm -f conftest*
29325
29326fi
29327
29328 ossh_result=`eval 'echo $'"$ossh_varname"`
29329 if test -n "`echo $ossh_varname`"; then
29330 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29331echo "${ECHO_T}$ossh_result" >&6; }
29332 if test "x$ossh_result" = "xyes"; then
29333
29334cat >>confdefs.h <<\_ACEOF
29335#define HAVE_TIME_IN_UTMPX 1
29336_ACEOF
29337
29338 fi
29339 else
29340 { echo "$as_me:$LINENO: result: no" >&5
29341echo "${ECHO_T}no" >&6; }
29342 fi
29343
29344
29345# look for field 'ut_tv' in header 'utmpx.h'
29346 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
29347 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
29348 { echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
29349echo $ECHO_N "checking for ut_tv field in utmpx.h... $ECHO_C" >&6; }
29350 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
29351 echo $ECHO_N "(cached) $ECHO_C" >&6
29352else
29353
29354 cat >conftest.$ac_ext <<_ACEOF
29355/* confdefs.h. */
29356_ACEOF
29357cat confdefs.h >>conftest.$ac_ext
29358cat >>conftest.$ac_ext <<_ACEOF
29359/* end confdefs.h. */
29360#include <utmpx.h>
29361
29362_ACEOF
29363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29364 $EGREP "ut_tv" >/dev/null 2>&1; then
29365 eval "$ossh_varname=yes"
29366else
29367 eval "$ossh_varname=no"
29368fi
29369rm -f conftest*
29370
29371fi
29372
29373 ossh_result=`eval 'echo $'"$ossh_varname"`
29374 if test -n "`echo $ossh_varname`"; then
29375 { echo "$as_me:$LINENO: result: $ossh_result" >&5
29376echo "${ECHO_T}$ossh_result" >&6; }
29377 if test "x$ossh_result" = "xyes"; then
29378
29379cat >>confdefs.h <<\_ACEOF
29380#define HAVE_TV_IN_UTMPX 1
29381_ACEOF
29382
29383 fi
29384 else
29385 { echo "$as_me:$LINENO: result: no" >&5
29386echo "${ECHO_T}no" >&6; }
29387 fi
29388
29389
29390{ echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29391echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
29392if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29393 echo $ECHO_N "(cached) $ECHO_C" >&6
29394else
29395 cat >conftest.$ac_ext <<_ACEOF
29396/* confdefs.h. */
29397_ACEOF
29398cat confdefs.h >>conftest.$ac_ext
29399cat >>conftest.$ac_ext <<_ACEOF
29400/* end confdefs.h. */
29401$ac_includes_default
29402int
29403main ()
29404{
29405static struct stat ac_aggr;
29406if (ac_aggr.st_blksize)
29407return 0;
29408 ;
29409 return 0;
29410}
29411_ACEOF
29412rm -f conftest.$ac_objext
29413if { (ac_try="$ac_compile"
29414case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29417esac
29418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_compile") 2>conftest.er1
29420 ac_status=$?
29421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } && {
29426 test -z "$ac_c_werror_flag" ||
29427 test ! -s conftest.err
29428 } && test -s conftest.$ac_objext; then
29429 ac_cv_member_struct_stat_st_blksize=yes
29430else
29431 echo "$as_me: failed program was:" >&5
29432sed 's/^/| /' conftest.$ac_ext >&5
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$ac_includes_default
29441int
29442main ()
29443{
29444static struct stat ac_aggr;
29445if (sizeof ac_aggr.st_blksize)
29446return 0;
29447 ;
29448 return 0;
29449}
29450_ACEOF
29451rm -f conftest.$ac_objext
29452if { (ac_try="$ac_compile"
29453case "(($ac_try" in
29454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455 *) ac_try_echo=$ac_try;;
29456esac
29457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458 (eval "$ac_compile") 2>conftest.er1
29459 ac_status=$?
29460 grep -v '^ *+' conftest.er1 >conftest.err
29461 rm -f conftest.er1
29462 cat conftest.err >&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } && {
29465 test -z "$ac_c_werror_flag" ||
29466 test ! -s conftest.err
29467 } && test -s conftest.$ac_objext; then
29468 ac_cv_member_struct_stat_st_blksize=yes
29469else
29470 echo "$as_me: failed program was:" >&5
29471sed 's/^/| /' conftest.$ac_ext >&5
29472
29473 ac_cv_member_struct_stat_st_blksize=no
29474fi
29475
29476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29477fi
29478
29479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29480fi
29481{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29482echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
29483if test $ac_cv_member_struct_stat_st_blksize = yes; then
29484
29485cat >>confdefs.h <<_ACEOF
29486#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29487_ACEOF
29488
29489
29490fi
29491
29492{ echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
29493echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
29494if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29496else
29497 cat >conftest.$ac_ext <<_ACEOF
29498/* confdefs.h. */
29499_ACEOF
29500cat confdefs.h >>conftest.$ac_ext
29501cat >>conftest.$ac_ext <<_ACEOF
29502/* end confdefs.h. */
29503
29504#include <sys/types.h>
29505#include <pwd.h>
29506
29507
29508int
29509main ()
29510{
29511static struct passwd ac_aggr;
29512if (ac_aggr.pw_gecos)
29513return 0;
29514 ;
29515 return 0;
29516}
29517_ACEOF
29518rm -f conftest.$ac_objext
29519if { (ac_try="$ac_compile"
29520case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29523esac
29524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_compile") 2>conftest.er1
29526 ac_status=$?
29527 grep -v '^ *+' conftest.er1 >conftest.err
29528 rm -f conftest.er1
29529 cat conftest.err >&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); } && {
29532 test -z "$ac_c_werror_flag" ||
29533 test ! -s conftest.err
29534 } && test -s conftest.$ac_objext; then
29535 ac_cv_member_struct_passwd_pw_gecos=yes
29536else
29537 echo "$as_me: failed program was:" >&5
29538sed 's/^/| /' conftest.$ac_ext >&5
29539
29540 cat >conftest.$ac_ext <<_ACEOF
29541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
29546
29547#include <sys/types.h>
29548#include <pwd.h>
29549
29550
29551int
29552main ()
29553{
29554static struct passwd ac_aggr;
29555if (sizeof ac_aggr.pw_gecos)
29556return 0;
29557 ;
29558 return 0;
29559}
29560_ACEOF
29561rm -f conftest.$ac_objext
29562if { (ac_try="$ac_compile"
29563case "(($ac_try" in
29564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29565 *) ac_try_echo=$ac_try;;
29566esac
29567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29568 (eval "$ac_compile") 2>conftest.er1
29569 ac_status=$?
29570 grep -v '^ *+' conftest.er1 >conftest.err
29571 rm -f conftest.er1
29572 cat conftest.err >&5
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574 (exit $ac_status); } && {
29575 test -z "$ac_c_werror_flag" ||
29576 test ! -s conftest.err
29577 } && test -s conftest.$ac_objext; then
29578 ac_cv_member_struct_passwd_pw_gecos=yes
29579else
29580 echo "$as_me: failed program was:" >&5
29581sed 's/^/| /' conftest.$ac_ext >&5
29582
29583 ac_cv_member_struct_passwd_pw_gecos=no
29584fi
29585
29586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29587fi
29588
29589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29590fi
29591{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
29592echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
29593if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
29594
29595cat >>confdefs.h <<_ACEOF
29596#define HAVE_STRUCT_PASSWD_PW_GECOS 1
29597_ACEOF
29598
29599
29600fi
29601{ echo "$as_me:$LINENO: checking for struct passwd.pw_class" >&5
29602echo $ECHO_N "checking for struct passwd.pw_class... $ECHO_C" >&6; }
29603if test "${ac_cv_member_struct_passwd_pw_class+set}" = set; then
29604 echo $ECHO_N "(cached) $ECHO_C" >&6
29605else
29606 cat >conftest.$ac_ext <<_ACEOF
29607/* confdefs.h. */
29608_ACEOF
29609cat confdefs.h >>conftest.$ac_ext
29610cat >>conftest.$ac_ext <<_ACEOF
29611/* end confdefs.h. */
29612
29613#include <sys/types.h>
29614#include <pwd.h>
29615
29616
29617int
29618main ()
29619{
29620static struct passwd ac_aggr;
29621if (ac_aggr.pw_class)
29622return 0;
29623 ;
29624 return 0;
29625}
29626_ACEOF
29627rm -f conftest.$ac_objext
29628if { (ac_try="$ac_compile"
29629case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29632esac
29633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_compile") 2>conftest.er1
29635 ac_status=$?
29636 grep -v '^ *+' conftest.er1 >conftest.err
29637 rm -f conftest.er1
29638 cat conftest.err >&5
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); } && {
29641 test -z "$ac_c_werror_flag" ||
29642 test ! -s conftest.err
29643 } && test -s conftest.$ac_objext; then
29644 ac_cv_member_struct_passwd_pw_class=yes
29645else
29646 echo "$as_me: failed program was:" >&5
29647sed 's/^/| /' conftest.$ac_ext >&5
29648
29649 cat >conftest.$ac_ext <<_ACEOF
29650/* confdefs.h. */
29651_ACEOF
29652cat confdefs.h >>conftest.$ac_ext
29653cat >>conftest.$ac_ext <<_ACEOF
29654/* end confdefs.h. */
29655
29656#include <sys/types.h>
29657#include <pwd.h>
29658
29659
29660int
29661main ()
29662{
29663static struct passwd ac_aggr;
29664if (sizeof ac_aggr.pw_class)
29665return 0;
29666 ;
29667 return 0;
29668}
29669_ACEOF
29670rm -f conftest.$ac_objext
29671if { (ac_try="$ac_compile"
29672case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
29678 ac_status=$?
29679 grep -v '^ *+' conftest.er1 >conftest.err
29680 rm -f conftest.er1
29681 cat conftest.err >&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); } && {
29684 test -z "$ac_c_werror_flag" ||
29685 test ! -s conftest.err
29686 } && test -s conftest.$ac_objext; then
29687 ac_cv_member_struct_passwd_pw_class=yes
29688else
29689 echo "$as_me: failed program was:" >&5
29690sed 's/^/| /' conftest.$ac_ext >&5
29691
29692 ac_cv_member_struct_passwd_pw_class=no
29693fi
29694
29695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29696fi
29697
29698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29699fi
29700{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_class" >&5
29701echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_class" >&6; }
29702if test $ac_cv_member_struct_passwd_pw_class = yes; then
29703
29704cat >>confdefs.h <<_ACEOF
29705#define HAVE_STRUCT_PASSWD_PW_CLASS 1
29706_ACEOF
29707
29708
29709fi
29710{ echo "$as_me:$LINENO: checking for struct passwd.pw_change" >&5
29711echo $ECHO_N "checking for struct passwd.pw_change... $ECHO_C" >&6; }
29712if test "${ac_cv_member_struct_passwd_pw_change+set}" = set; then
29713 echo $ECHO_N "(cached) $ECHO_C" >&6
29714else
29715 cat >conftest.$ac_ext <<_ACEOF
29716/* confdefs.h. */
29717_ACEOF
29718cat confdefs.h >>conftest.$ac_ext
29719cat >>conftest.$ac_ext <<_ACEOF
29720/* end confdefs.h. */
29721
29722#include <sys/types.h>
29723#include <pwd.h>
29724
29725
29726int
29727main ()
29728{
29729static struct passwd ac_aggr;
29730if (ac_aggr.pw_change)
29731return 0;
29732 ;
29733 return 0;
29734}
29735_ACEOF
29736rm -f conftest.$ac_objext
29737if { (ac_try="$ac_compile"
29738case "(($ac_try" in
29739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740 *) ac_try_echo=$ac_try;;
29741esac
29742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743 (eval "$ac_compile") 2>conftest.er1
29744 ac_status=$?
29745 grep -v '^ *+' conftest.er1 >conftest.err
29746 rm -f conftest.er1
29747 cat conftest.err >&5
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); } && {
29750 test -z "$ac_c_werror_flag" ||
29751 test ! -s conftest.err
29752 } && test -s conftest.$ac_objext; then
29753 ac_cv_member_struct_passwd_pw_change=yes
29754else
29755 echo "$as_me: failed program was:" >&5
29756sed 's/^/| /' conftest.$ac_ext >&5
29757
29758 cat >conftest.$ac_ext <<_ACEOF
29759/* confdefs.h. */
29760_ACEOF
29761cat confdefs.h >>conftest.$ac_ext
29762cat >>conftest.$ac_ext <<_ACEOF
29763/* end confdefs.h. */
29764
29765#include <sys/types.h>
29766#include <pwd.h>
29767
29768
29769int
29770main ()
29771{
29772static struct passwd ac_aggr;
29773if (sizeof ac_aggr.pw_change)
29774return 0;
29775 ;
29776 return 0;
29777}
29778_ACEOF
29779rm -f conftest.$ac_objext
29780if { (ac_try="$ac_compile"
29781case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29784esac
29785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_compile") 2>conftest.er1
29787 ac_status=$?
29788 grep -v '^ *+' conftest.er1 >conftest.err
29789 rm -f conftest.er1
29790 cat conftest.err >&5
29791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); } && {
29793 test -z "$ac_c_werror_flag" ||
29794 test ! -s conftest.err
29795 } && test -s conftest.$ac_objext; then
29796 ac_cv_member_struct_passwd_pw_change=yes
29797else
29798 echo "$as_me: failed program was:" >&5
29799sed 's/^/| /' conftest.$ac_ext >&5
29800
29801 ac_cv_member_struct_passwd_pw_change=no
29802fi
29803
29804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805fi
29806
29807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29808fi
29809{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_change" >&5
29810echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_change" >&6; }
29811if test $ac_cv_member_struct_passwd_pw_change = yes; then
29812
29813cat >>confdefs.h <<_ACEOF
29814#define HAVE_STRUCT_PASSWD_PW_CHANGE 1
29815_ACEOF
29816
29817
29818fi
29819{ echo "$as_me:$LINENO: checking for struct passwd.pw_expire" >&5
29820echo $ECHO_N "checking for struct passwd.pw_expire... $ECHO_C" >&6; }
29821if test "${ac_cv_member_struct_passwd_pw_expire+set}" = set; then
29822 echo $ECHO_N "(cached) $ECHO_C" >&6
29823else
29824 cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h. */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h. */
29830
29831#include <sys/types.h>
29832#include <pwd.h>
29833
29834
29835int
29836main ()
29837{
29838static struct passwd ac_aggr;
29839if (ac_aggr.pw_expire)
29840return 0;
29841 ;
29842 return 0;
29843}
29844_ACEOF
29845rm -f conftest.$ac_objext
29846if { (ac_try="$ac_compile"
29847case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_compile") 2>conftest.er1
29853 ac_status=$?
29854 grep -v '^ *+' conftest.er1 >conftest.err
29855 rm -f conftest.er1
29856 cat conftest.err >&5
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } && {
29859 test -z "$ac_c_werror_flag" ||
29860 test ! -s conftest.err
29861 } && test -s conftest.$ac_objext; then
29862 ac_cv_member_struct_passwd_pw_expire=yes
29863else
29864 echo "$as_me: failed program was:" >&5
29865sed 's/^/| /' conftest.$ac_ext >&5
29866
29867 cat >conftest.$ac_ext <<_ACEOF
29868/* confdefs.h. */
29869_ACEOF
29870cat confdefs.h >>conftest.$ac_ext
29871cat >>conftest.$ac_ext <<_ACEOF
29872/* end confdefs.h. */
29873
29874#include <sys/types.h>
29875#include <pwd.h>
29876
29877
29878int
29879main ()
29880{
29881static struct passwd ac_aggr;
29882if (sizeof ac_aggr.pw_expire)
29883return 0;
29884 ;
29885 return 0;
29886}
29887_ACEOF
29888rm -f conftest.$ac_objext
29889if { (ac_try="$ac_compile"
29890case "(($ac_try" in
29891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892 *) ac_try_echo=$ac_try;;
29893esac
29894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895 (eval "$ac_compile") 2>conftest.er1
29896 ac_status=$?
29897 grep -v '^ *+' conftest.er1 >conftest.err
29898 rm -f conftest.er1
29899 cat conftest.err >&5
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); } && {
29902 test -z "$ac_c_werror_flag" ||
29903 test ! -s conftest.err
29904 } && test -s conftest.$ac_objext; then
29905 ac_cv_member_struct_passwd_pw_expire=yes
29906else
29907 echo "$as_me: failed program was:" >&5
29908sed 's/^/| /' conftest.$ac_ext >&5
29909
29910 ac_cv_member_struct_passwd_pw_expire=no
29911fi
29912
29913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29914fi
29915
29916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29917fi
29918{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_expire" >&5
29919echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_expire" >&6; }
29920if test $ac_cv_member_struct_passwd_pw_expire = yes; then
29921
29922cat >>confdefs.h <<_ACEOF
29923#define HAVE_STRUCT_PASSWD_PW_EXPIRE 1
29924_ACEOF
29925
29926
29927fi
29928
29929
29930{ echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
29931echo $ECHO_N "checking for struct __res_state.retrans... $ECHO_C" >&6; }
29932if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
29933 echo $ECHO_N "(cached) $ECHO_C" >&6
29934else
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 <stdio.h>
29943#if HAVE_SYS_TYPES_H
29944# include <sys/types.h>
29945#endif
29946#include <netinet/in.h>
29947#include <arpa/nameser.h>
29948#include <resolv.h>
29949
29950
29951int
29952main ()
29953{
29954static struct __res_state ac_aggr;
29955if (ac_aggr.retrans)
29956return 0;
29957 ;
29958 return 0;
29959}
29960_ACEOF
29961rm -f conftest.$ac_objext
29962if { (ac_try="$ac_compile"
29963case "(($ac_try" in
29964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965 *) ac_try_echo=$ac_try;;
29966esac
29967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29968 (eval "$ac_compile") 2>conftest.er1
29969 ac_status=$?
29970 grep -v '^ *+' conftest.er1 >conftest.err
29971 rm -f conftest.er1
29972 cat conftest.err >&5
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } && {
29975 test -z "$ac_c_werror_flag" ||
29976 test ! -s conftest.err
29977 } && test -s conftest.$ac_objext; then
29978 ac_cv_member_struct___res_state_retrans=yes
29979else
29980 echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983 cat >conftest.$ac_ext <<_ACEOF
29984/* confdefs.h. */
29985_ACEOF
29986cat confdefs.h >>conftest.$ac_ext
29987cat >>conftest.$ac_ext <<_ACEOF
29988/* end confdefs.h. */
29989
29990#include <stdio.h>
29991#if HAVE_SYS_TYPES_H
29992# include <sys/types.h>
29993#endif
29994#include <netinet/in.h>
29995#include <arpa/nameser.h>
29996#include <resolv.h>
29997
29998
29999int
30000main ()
30001{
30002static struct __res_state ac_aggr;
30003if (sizeof ac_aggr.retrans)
30004return 0;
30005 ;
30006 return 0;
30007}
30008_ACEOF
30009rm -f conftest.$ac_objext
30010if { (ac_try="$ac_compile"
30011case "(($ac_try" in
30012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013 *) ac_try_echo=$ac_try;;
30014esac
30015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016 (eval "$ac_compile") 2>conftest.er1
30017 ac_status=$?
30018 grep -v '^ *+' conftest.er1 >conftest.err
30019 rm -f conftest.er1
30020 cat conftest.err >&5
30021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022 (exit $ac_status); } && {
30023 test -z "$ac_c_werror_flag" ||
30024 test ! -s conftest.err
30025 } && test -s conftest.$ac_objext; then
30026 ac_cv_member_struct___res_state_retrans=yes
30027else
30028 echo "$as_me: failed program was:" >&5
30029sed 's/^/| /' conftest.$ac_ext >&5
30030
30031 ac_cv_member_struct___res_state_retrans=no
30032fi
30033
30034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30035fi
30036
30037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30038fi
30039{ echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
30040echo "${ECHO_T}$ac_cv_member_struct___res_state_retrans" >&6; }
30041if test $ac_cv_member_struct___res_state_retrans = yes; then
30042 :
30043else
30044
30045cat >>confdefs.h <<\_ACEOF
30046#define __res_state state
30047_ACEOF
30048
30049fi
30050
30051
30052{ echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
30053echo $ECHO_N "checking for ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
30054if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
30055 echo $ECHO_N "(cached) $ECHO_C" >&6
30056else
30057
30058 cat >conftest.$ac_ext <<_ACEOF
30059/* confdefs.h. */
30060_ACEOF
30061cat confdefs.h >>conftest.$ac_ext
30062cat >>conftest.$ac_ext <<_ACEOF
30063/* end confdefs.h. */
30064
30065#include <sys/types.h>
30066#include <sys/socket.h>
30067
30068int
30069main ()
30070{
30071 struct sockaddr_storage s; s.ss_family = 1;
30072 ;
30073 return 0;
30074}
30075_ACEOF
30076rm -f conftest.$ac_objext
30077if { (ac_try="$ac_compile"
30078case "(($ac_try" in
30079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30081esac
30082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_compile") 2>conftest.er1
30084 ac_status=$?
30085 grep -v '^ *+' conftest.er1 >conftest.err
30086 rm -f conftest.er1
30087 cat conftest.err >&5
30088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089 (exit $ac_status); } && {
30090 test -z "$ac_c_werror_flag" ||
30091 test ! -s conftest.err
30092 } && test -s conftest.$ac_objext; then
30093 ac_cv_have_ss_family_in_struct_ss="yes"
30094else
30095 echo "$as_me: failed program was:" >&5
30096sed 's/^/| /' conftest.$ac_ext >&5
30097
30098 ac_cv_have_ss_family_in_struct_ss="no"
30099fi
30100
30101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30102
30103fi
30104{ echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
30105echo "${ECHO_T}$ac_cv_have_ss_family_in_struct_ss" >&6; }
30106if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
30107
30108cat >>confdefs.h <<\_ACEOF
30109#define HAVE_SS_FAMILY_IN_SS 1
30110_ACEOF
30111
30112fi
30113
30114{ echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
30115echo $ECHO_N "checking for __ss_family field in struct sockaddr_storage... $ECHO_C" >&6; }
30116if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
30117 echo $ECHO_N "(cached) $ECHO_C" >&6
30118else
30119
30120 cat >conftest.$ac_ext <<_ACEOF
30121/* confdefs.h. */
30122_ACEOF
30123cat confdefs.h >>conftest.$ac_ext
30124cat >>conftest.$ac_ext <<_ACEOF
30125/* end confdefs.h. */
30126
30127#include <sys/types.h>
30128#include <sys/socket.h>
30129
30130int
30131main ()
30132{
30133 struct sockaddr_storage s; s.__ss_family = 1;
30134 ;
30135 return 0;
30136}
30137_ACEOF
30138rm -f conftest.$ac_objext
30139if { (ac_try="$ac_compile"
30140case "(($ac_try" in
30141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142 *) ac_try_echo=$ac_try;;
30143esac
30144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145 (eval "$ac_compile") 2>conftest.er1
30146 ac_status=$?
30147 grep -v '^ *+' conftest.er1 >conftest.err
30148 rm -f conftest.er1
30149 cat conftest.err >&5
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); } && {
30152 test -z "$ac_c_werror_flag" ||
30153 test ! -s conftest.err
30154 } && test -s conftest.$ac_objext; then
30155 ac_cv_have___ss_family_in_struct_ss="yes"
30156else
30157 echo "$as_me: failed program was:" >&5
30158sed 's/^/| /' conftest.$ac_ext >&5
30159
30160 ac_cv_have___ss_family_in_struct_ss="no"
30161
30162fi
30163
30164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30165
30166fi
30167{ echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
30168echo "${ECHO_T}$ac_cv_have___ss_family_in_struct_ss" >&6; }
30169if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
30170
30171cat >>confdefs.h <<\_ACEOF
30172#define HAVE___SS_FAMILY_IN_SS 1
30173_ACEOF
30174
30175fi
30176
30177{ echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
30178echo $ECHO_N "checking for msg_accrights field in struct msghdr... $ECHO_C" >&6; }
30179if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
30180 echo $ECHO_N "(cached) $ECHO_C" >&6
30181else
30182
30183 cat >conftest.$ac_ext <<_ACEOF
30184/* confdefs.h. */
30185_ACEOF
30186cat confdefs.h >>conftest.$ac_ext
30187cat >>conftest.$ac_ext <<_ACEOF
30188/* end confdefs.h. */
30189
30190#include <sys/types.h>
30191#include <sys/socket.h>
30192#include <sys/uio.h>
30193
30194int
30195main ()
30196{
30197
30198#ifdef msg_accrights
30199#error "msg_accrights is a macro"
30200exit(1);
30201#endif
30202struct msghdr m;
30203m.msg_accrights = 0;
30204exit(0);
30205
30206 ;
30207 return 0;
30208}
30209_ACEOF
30210rm -f conftest.$ac_objext
30211if { (ac_try="$ac_compile"
30212case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30215esac
30216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217 (eval "$ac_compile") 2>conftest.er1
30218 ac_status=$?
30219 grep -v '^ *+' conftest.er1 >conftest.err
30220 rm -f conftest.er1
30221 cat conftest.err >&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); } && {
30224 test -z "$ac_c_werror_flag" ||
30225 test ! -s conftest.err
30226 } && test -s conftest.$ac_objext; then
30227 ac_cv_have_accrights_in_msghdr="yes"
30228else
30229 echo "$as_me: failed program was:" >&5
30230sed 's/^/| /' conftest.$ac_ext >&5
30231
30232 ac_cv_have_accrights_in_msghdr="no"
30233
30234fi
30235
30236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30237
30238fi
30239{ echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
30240echo "${ECHO_T}$ac_cv_have_accrights_in_msghdr" >&6; }
30241if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
30242
30243cat >>confdefs.h <<\_ACEOF
30244#define HAVE_ACCRIGHTS_IN_MSGHDR 1
30245_ACEOF
30246
30247fi
30248
30249{ echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
30250echo $ECHO_N "checking if struct statvfs.f_fsid is integral type... $ECHO_C" >&6; }
30251cat >conftest.$ac_ext <<_ACEOF
30252/* confdefs.h. */
30253_ACEOF
30254cat confdefs.h >>conftest.$ac_ext
30255cat >>conftest.$ac_ext <<_ACEOF
30256/* end confdefs.h. */
30257
30258#include <sys/param.h>
30259#include <sys/stat.h>
30260#ifdef HAVE_SYS_TIME_H
30261# include <sys/time.h>
30262#endif
30263#ifdef HAVE_SYS_MOUNT_H
30264#include <sys/mount.h>
30265#endif
30266#ifdef HAVE_SYS_STATVFS_H
30267#include <sys/statvfs.h>
30268#endif
30269
30270int
30271main ()
30272{
30273 struct statvfs s; s.f_fsid = 0;
30274 ;
30275 return 0;
30276}
30277_ACEOF
30278rm -f conftest.$ac_objext
30279if { (ac_try="$ac_compile"
30280case "(($ac_try" in
30281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282 *) ac_try_echo=$ac_try;;
30283esac
30284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30285 (eval "$ac_compile") 2>conftest.er1
30286 ac_status=$?
30287 grep -v '^ *+' conftest.er1 >conftest.err
30288 rm -f conftest.er1
30289 cat conftest.err >&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } && {
30292 test -z "$ac_c_werror_flag" ||
30293 test ! -s conftest.err
30294 } && test -s conftest.$ac_objext; then
30295 { echo "$as_me:$LINENO: result: yes" >&5
30296echo "${ECHO_T}yes" >&6; }
30297else
30298 echo "$as_me: failed program was:" >&5
30299sed 's/^/| /' conftest.$ac_ext >&5
30300
30301 { echo "$as_me:$LINENO: result: no" >&5
30302echo "${ECHO_T}no" >&6; }
30303
30304 { echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
30305echo $ECHO_N "checking if fsid_t has member val... $ECHO_C" >&6; }
30306 cat >conftest.$ac_ext <<_ACEOF
30307/* confdefs.h. */
30308_ACEOF
30309cat confdefs.h >>conftest.$ac_ext
30310cat >>conftest.$ac_ext <<_ACEOF
30311/* end confdefs.h. */
30312
30313#include <sys/types.h>
30314#include <sys/statvfs.h>
30315
30316int
30317main ()
30318{
30319 fsid_t t; t.val[0] = 0;
30320 ;
30321 return 0;
30322}
30323_ACEOF
30324rm -f conftest.$ac_objext
30325if { (ac_try="$ac_compile"
30326case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30329esac
30330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_compile") 2>conftest.er1
30332 ac_status=$?
30333 grep -v '^ *+' conftest.er1 >conftest.err
30334 rm -f conftest.er1
30335 cat conftest.err >&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); } && {
30338 test -z "$ac_c_werror_flag" ||
30339 test ! -s conftest.err
30340 } && test -s conftest.$ac_objext; then
30341 { echo "$as_me:$LINENO: result: yes" >&5
30342echo "${ECHO_T}yes" >&6; }
30343
30344cat >>confdefs.h <<\_ACEOF
30345#define FSID_HAS_VAL 1
30346_ACEOF
30347
30348else
30349 echo "$as_me: failed program was:" >&5
30350sed 's/^/| /' conftest.$ac_ext >&5
30351
30352 { echo "$as_me:$LINENO: result: no" >&5
30353echo "${ECHO_T}no" >&6; }
30354fi
30355
30356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30357
30358 { echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
30359echo $ECHO_N "checking if f_fsid has member __val... $ECHO_C" >&6; }
30360 cat >conftest.$ac_ext <<_ACEOF
30361/* confdefs.h. */
30362_ACEOF
30363cat confdefs.h >>conftest.$ac_ext
30364cat >>conftest.$ac_ext <<_ACEOF
30365/* end confdefs.h. */
30366
30367#include <sys/types.h>
30368#include <sys/statvfs.h>
30369
30370int
30371main ()
30372{
30373 fsid_t t; t.__val[0] = 0;
30374 ;
30375 return 0;
30376}
30377_ACEOF
30378rm -f conftest.$ac_objext
30379if { (ac_try="$ac_compile"
30380case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30383esac
30384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_compile") 2>conftest.er1
30386 ac_status=$?
30387 grep -v '^ *+' conftest.er1 >conftest.err
30388 rm -f conftest.er1
30389 cat conftest.err >&5
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); } && {
30392 test -z "$ac_c_werror_flag" ||
30393 test ! -s conftest.err
30394 } && test -s conftest.$ac_objext; then
30395 { echo "$as_me:$LINENO: result: yes" >&5
30396echo "${ECHO_T}yes" >&6; }
30397
30398cat >>confdefs.h <<\_ACEOF
30399#define FSID_HAS___VAL 1
30400_ACEOF
30401
30402else
30403 echo "$as_me: failed program was:" >&5
30404sed 's/^/| /' conftest.$ac_ext >&5
30405
30406 { echo "$as_me:$LINENO: result: no" >&5
30407echo "${ECHO_T}no" >&6; }
30408fi
30409
30410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30411
30412fi
30413
30414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30415
30416{ echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
30417echo $ECHO_N "checking for msg_control field in struct msghdr... $ECHO_C" >&6; }
30418if test "${ac_cv_have_control_in_msghdr+set}" = set; then
30419 echo $ECHO_N "(cached) $ECHO_C" >&6
30420else
30421
30422 cat >conftest.$ac_ext <<_ACEOF
30423/* confdefs.h. */
30424_ACEOF
30425cat confdefs.h >>conftest.$ac_ext
30426cat >>conftest.$ac_ext <<_ACEOF
30427/* end confdefs.h. */
30428
30429#include <sys/types.h>
30430#include <sys/socket.h>
30431#include <sys/uio.h>
30432
30433int
30434main ()
30435{
30436
30437#ifdef msg_control
30438#error "msg_control is a macro"
30439exit(1);
30440#endif
30441struct msghdr m;
30442m.msg_control = 0;
30443exit(0);
30444
30445 ;
30446 return 0;
30447}
30448_ACEOF
30449rm -f conftest.$ac_objext
30450if { (ac_try="$ac_compile"
30451case "(($ac_try" in
30452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453 *) ac_try_echo=$ac_try;;
30454esac
30455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456 (eval "$ac_compile") 2>conftest.er1
30457 ac_status=$?
30458 grep -v '^ *+' conftest.er1 >conftest.err
30459 rm -f conftest.er1
30460 cat conftest.err >&5
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); } && {
30463 test -z "$ac_c_werror_flag" ||
30464 test ! -s conftest.err
30465 } && test -s conftest.$ac_objext; then
30466 ac_cv_have_control_in_msghdr="yes"
30467else
30468 echo "$as_me: failed program was:" >&5
30469sed 's/^/| /' conftest.$ac_ext >&5
30470
30471 ac_cv_have_control_in_msghdr="no"
30472
30473fi
30474
30475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30476
30477fi
30478{ echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
30479echo "${ECHO_T}$ac_cv_have_control_in_msghdr" >&6; }
30480if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
30481
30482cat >>confdefs.h <<\_ACEOF
30483#define HAVE_CONTROL_IN_MSGHDR 1
30484_ACEOF
30485
30486fi
30487
30488{ echo "$as_me:$LINENO: checking if libc defines __progname" >&5
30489echo $ECHO_N "checking if libc defines __progname... $ECHO_C" >&6; }
30490if test "${ac_cv_libc_defines___progname+set}" = set; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493
30494 cat >conftest.$ac_ext <<_ACEOF
30495/* confdefs.h. */
30496_ACEOF
30497cat confdefs.h >>conftest.$ac_ext
30498cat >>conftest.$ac_ext <<_ACEOF
30499/* end confdefs.h. */
30500
30501int
30502main ()
30503{
30504 extern char *__progname; printf("%s", __progname);
30505 ;
30506 return 0;
30507}
30508_ACEOF
30509rm -f conftest.$ac_objext conftest$ac_exeext
30510if { (ac_try="$ac_link"
30511case "(($ac_try" in
30512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30513 *) ac_try_echo=$ac_try;;
30514esac
30515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30516 (eval "$ac_link") 2>conftest.er1
30517 ac_status=$?
30518 grep -v '^ *+' conftest.er1 >conftest.err
30519 rm -f conftest.er1
30520 cat conftest.err >&5
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); } && {
30523 test -z "$ac_c_werror_flag" ||
30524 test ! -s conftest.err
30525 } && test -s conftest$ac_exeext &&
30526 $as_test_x conftest$ac_exeext; then
30527 ac_cv_libc_defines___progname="yes"
30528else
30529 echo "$as_me: failed program was:" >&5
30530sed 's/^/| /' conftest.$ac_ext >&5
30531
30532 ac_cv_libc_defines___progname="no"
30533
30534fi
30535
30536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30537 conftest$ac_exeext conftest.$ac_ext
30538
30539fi
30540{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
30541echo "${ECHO_T}$ac_cv_libc_defines___progname" >&6; }
30542if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
30543
30544cat >>confdefs.h <<\_ACEOF
30545#define HAVE___PROGNAME 1
30546_ACEOF
30547
30548fi
30549
30550{ echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
30551echo $ECHO_N "checking whether $CC implements __FUNCTION__... $ECHO_C" >&6; }
30552if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
30553 echo $ECHO_N "(cached) $ECHO_C" >&6
30554else
30555
30556 cat >conftest.$ac_ext <<_ACEOF
30557/* confdefs.h. */
30558_ACEOF
30559cat confdefs.h >>conftest.$ac_ext
30560cat >>conftest.$ac_ext <<_ACEOF
30561/* end confdefs.h. */
30562 #include <stdio.h>
30563int
30564main ()
30565{
30566 printf("%s", __FUNCTION__);
30567 ;
30568 return 0;
30569}
30570_ACEOF
30571rm -f conftest.$ac_objext conftest$ac_exeext
30572if { (ac_try="$ac_link"
30573case "(($ac_try" in
30574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575 *) ac_try_echo=$ac_try;;
30576esac
30577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578 (eval "$ac_link") 2>conftest.er1
30579 ac_status=$?
30580 grep -v '^ *+' conftest.er1 >conftest.err
30581 rm -f conftest.er1
30582 cat conftest.err >&5
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); } && {
30585 test -z "$ac_c_werror_flag" ||
30586 test ! -s conftest.err
30587 } && test -s conftest$ac_exeext &&
30588 $as_test_x conftest$ac_exeext; then
30589 ac_cv_cc_implements___FUNCTION__="yes"
30590else
30591 echo "$as_me: failed program was:" >&5
30592sed 's/^/| /' conftest.$ac_ext >&5
30593
30594 ac_cv_cc_implements___FUNCTION__="no"
30595
30596fi
30597
30598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30599 conftest$ac_exeext conftest.$ac_ext
30600
30601fi
30602{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
30603echo "${ECHO_T}$ac_cv_cc_implements___FUNCTION__" >&6; }
30604if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
30605
30606cat >>confdefs.h <<\_ACEOF
30607#define HAVE___FUNCTION__ 1
30608_ACEOF
30609
30610fi
30611
30612{ echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
30613echo $ECHO_N "checking whether $CC implements __func__... $ECHO_C" >&6; }
30614if test "${ac_cv_cc_implements___func__+set}" = set; then
30615 echo $ECHO_N "(cached) $ECHO_C" >&6
30616else
30617
30618 cat >conftest.$ac_ext <<_ACEOF
30619/* confdefs.h. */
30620_ACEOF
30621cat confdefs.h >>conftest.$ac_ext
30622cat >>conftest.$ac_ext <<_ACEOF
30623/* end confdefs.h. */
30624 #include <stdio.h>
30625int
30626main ()
30627{
30628 printf("%s", __func__);
30629 ;
30630 return 0;
30631}
30632_ACEOF
30633rm -f conftest.$ac_objext conftest$ac_exeext
30634if { (ac_try="$ac_link"
30635case "(($ac_try" in
30636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30637 *) ac_try_echo=$ac_try;;
30638esac
30639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30640 (eval "$ac_link") 2>conftest.er1
30641 ac_status=$?
30642 grep -v '^ *+' conftest.er1 >conftest.err
30643 rm -f conftest.er1
30644 cat conftest.err >&5
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); } && {
30647 test -z "$ac_c_werror_flag" ||
30648 test ! -s conftest.err
30649 } && test -s conftest$ac_exeext &&
30650 $as_test_x conftest$ac_exeext; then
30651 ac_cv_cc_implements___func__="yes"
30652else
30653 echo "$as_me: failed program was:" >&5
30654sed 's/^/| /' conftest.$ac_ext >&5
30655
30656 ac_cv_cc_implements___func__="no"
30657
30658fi
30659
30660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30661 conftest$ac_exeext conftest.$ac_ext
30662
30663fi
30664{ echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
30665echo "${ECHO_T}$ac_cv_cc_implements___func__" >&6; }
30666if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
30667
30668cat >>confdefs.h <<\_ACEOF
30669#define HAVE___func__ 1
30670_ACEOF
30671
30672fi
30673
30674{ echo "$as_me:$LINENO: checking whether va_copy exists" >&5
30675echo $ECHO_N "checking whether va_copy exists... $ECHO_C" >&6; }
30676if test "${ac_cv_have_va_copy+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678else
30679
30680 cat >conftest.$ac_ext <<_ACEOF
30681/* confdefs.h. */
30682_ACEOF
30683cat confdefs.h >>conftest.$ac_ext
30684cat >>conftest.$ac_ext <<_ACEOF
30685/* end confdefs.h. */
30686
30687#include <stdarg.h>
30688va_list x,y;
30689
30690int
30691main ()
30692{
30693 va_copy(x,y);
30694 ;
30695 return 0;
30696}
30697_ACEOF
30698rm -f conftest.$ac_objext conftest$ac_exeext
30699if { (ac_try="$ac_link"
30700case "(($ac_try" in
30701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702 *) ac_try_echo=$ac_try;;
30703esac
30704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705 (eval "$ac_link") 2>conftest.er1
30706 ac_status=$?
30707 grep -v '^ *+' conftest.er1 >conftest.err
30708 rm -f conftest.er1
30709 cat conftest.err >&5
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); } && {
30712 test -z "$ac_c_werror_flag" ||
30713 test ! -s conftest.err
30714 } && test -s conftest$ac_exeext &&
30715 $as_test_x conftest$ac_exeext; then
30716 ac_cv_have_va_copy="yes"
30717else
30718 echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721 ac_cv_have_va_copy="no"
30722
30723fi
30724
30725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30726 conftest$ac_exeext conftest.$ac_ext
30727
30728fi
30729{ echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
30730echo "${ECHO_T}$ac_cv_have_va_copy" >&6; }
30731if test "x$ac_cv_have_va_copy" = "xyes" ; then
30732
30733cat >>confdefs.h <<\_ACEOF
30734#define HAVE_VA_COPY 1
30735_ACEOF
30736
30737fi
30738
30739{ echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
30740echo $ECHO_N "checking whether __va_copy exists... $ECHO_C" >&6; }
30741if test "${ac_cv_have___va_copy+set}" = set; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30743else
30744
30745 cat >conftest.$ac_ext <<_ACEOF
30746/* confdefs.h. */
30747_ACEOF
30748cat confdefs.h >>conftest.$ac_ext
30749cat >>conftest.$ac_ext <<_ACEOF
30750/* end confdefs.h. */
30751
30752#include <stdarg.h>
30753va_list x,y;
30754
30755int
30756main ()
30757{
30758 __va_copy(x,y);
30759 ;
30760 return 0;
30761}
30762_ACEOF
30763rm -f conftest.$ac_objext conftest$ac_exeext
30764if { (ac_try="$ac_link"
30765case "(($ac_try" in
30766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30767 *) ac_try_echo=$ac_try;;
30768esac
30769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30770 (eval "$ac_link") 2>conftest.er1
30771 ac_status=$?
30772 grep -v '^ *+' conftest.er1 >conftest.err
30773 rm -f conftest.er1
30774 cat conftest.err >&5
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); } && {
30777 test -z "$ac_c_werror_flag" ||
30778 test ! -s conftest.err
30779 } && test -s conftest$ac_exeext &&
30780 $as_test_x conftest$ac_exeext; then
30781 ac_cv_have___va_copy="yes"
30782else
30783 echo "$as_me: failed program was:" >&5
30784sed 's/^/| /' conftest.$ac_ext >&5
30785
30786 ac_cv_have___va_copy="no"
30787
30788fi
30789
30790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30791 conftest$ac_exeext conftest.$ac_ext
30792
30793fi
30794{ echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
30795echo "${ECHO_T}$ac_cv_have___va_copy" >&6; }
30796if test "x$ac_cv_have___va_copy" = "xyes" ; then
30797
30798cat >>confdefs.h <<\_ACEOF
30799#define HAVE___VA_COPY 1
30800_ACEOF
30801
30802fi
30803
30804{ echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
30805echo $ECHO_N "checking whether getopt has optreset support... $ECHO_C" >&6; }
30806if test "${ac_cv_have_getopt_optreset+set}" = set; then
30807 echo $ECHO_N "(cached) $ECHO_C" >&6
30808else
30809
30810 cat >conftest.$ac_ext <<_ACEOF
30811/* confdefs.h. */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h. */
30816 #include <getopt.h>
30817int
30818main ()
30819{
30820 extern int optreset; optreset = 0;
30821 ;
30822 return 0;
30823}
30824_ACEOF
30825rm -f conftest.$ac_objext conftest$ac_exeext
30826if { (ac_try="$ac_link"
30827case "(($ac_try" in
30828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30829 *) ac_try_echo=$ac_try;;
30830esac
30831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30832 (eval "$ac_link") 2>conftest.er1
30833 ac_status=$?
30834 grep -v '^ *+' conftest.er1 >conftest.err
30835 rm -f conftest.er1
30836 cat conftest.err >&5
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); } && {
30839 test -z "$ac_c_werror_flag" ||
30840 test ! -s conftest.err
30841 } && test -s conftest$ac_exeext &&
30842 $as_test_x conftest$ac_exeext; then
30843 ac_cv_have_getopt_optreset="yes"
30844else
30845 echo "$as_me: failed program was:" >&5
30846sed 's/^/| /' conftest.$ac_ext >&5
30847
30848 ac_cv_have_getopt_optreset="no"
30849
30850fi
30851
30852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30853 conftest$ac_exeext conftest.$ac_ext
30854
30855fi
30856{ echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
30857echo "${ECHO_T}$ac_cv_have_getopt_optreset" >&6; }
30858if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
30859
30860cat >>confdefs.h <<\_ACEOF
30861#define HAVE_GETOPT_OPTRESET 1
30862_ACEOF
30863
30864fi
30865
30866{ echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
30867echo $ECHO_N "checking if libc defines sys_errlist... $ECHO_C" >&6; }
30868if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
30869 echo $ECHO_N "(cached) $ECHO_C" >&6
30870else
30871
30872 cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h. */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h. */
30878
30879int
30880main ()
30881{
30882 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
30883 ;
30884 return 0;
30885}
30886_ACEOF
30887rm -f conftest.$ac_objext conftest$ac_exeext
30888if { (ac_try="$ac_link"
30889case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30892esac
30893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_link") 2>conftest.er1
30895 ac_status=$?
30896 grep -v '^ *+' conftest.er1 >conftest.err
30897 rm -f conftest.er1
30898 cat conftest.err >&5
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); } && {
30901 test -z "$ac_c_werror_flag" ||
30902 test ! -s conftest.err
30903 } && test -s conftest$ac_exeext &&
30904 $as_test_x conftest$ac_exeext; then
30905 ac_cv_libc_defines_sys_errlist="yes"
30906else
30907 echo "$as_me: failed program was:" >&5
30908sed 's/^/| /' conftest.$ac_ext >&5
30909
30910 ac_cv_libc_defines_sys_errlist="no"
30911
30912fi
30913
30914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30915 conftest$ac_exeext conftest.$ac_ext
30916
30917fi
30918{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
30919echo "${ECHO_T}$ac_cv_libc_defines_sys_errlist" >&6; }
30920if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
30921
30922cat >>confdefs.h <<\_ACEOF
30923#define HAVE_SYS_ERRLIST 1
30924_ACEOF
30925
30926fi
30927
30928
30929{ echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
30930echo $ECHO_N "checking if libc defines sys_nerr... $ECHO_C" >&6; }
30931if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
30932 echo $ECHO_N "(cached) $ECHO_C" >&6
30933else
30934
30935 cat >conftest.$ac_ext <<_ACEOF
30936/* confdefs.h. */
30937_ACEOF
30938cat confdefs.h >>conftest.$ac_ext
30939cat >>conftest.$ac_ext <<_ACEOF
30940/* end confdefs.h. */
30941
30942int
30943main ()
30944{
30945 extern int sys_nerr; printf("%i", sys_nerr);
30946 ;
30947 return 0;
30948}
30949_ACEOF
30950rm -f conftest.$ac_objext conftest$ac_exeext
30951if { (ac_try="$ac_link"
30952case "(($ac_try" in
30953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30954 *) ac_try_echo=$ac_try;;
30955esac
30956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30957 (eval "$ac_link") 2>conftest.er1
30958 ac_status=$?
30959 grep -v '^ *+' conftest.er1 >conftest.err
30960 rm -f conftest.er1
30961 cat conftest.err >&5
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } && {
30964 test -z "$ac_c_werror_flag" ||
30965 test ! -s conftest.err
30966 } && test -s conftest$ac_exeext &&
30967 $as_test_x conftest$ac_exeext; then
30968 ac_cv_libc_defines_sys_nerr="yes"
30969else
30970 echo "$as_me: failed program was:" >&5
30971sed 's/^/| /' conftest.$ac_ext >&5
30972
30973 ac_cv_libc_defines_sys_nerr="no"
30974
30975fi
30976
30977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30978 conftest$ac_exeext conftest.$ac_ext
30979
30980fi
30981{ echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
30982echo "${ECHO_T}$ac_cv_libc_defines_sys_nerr" >&6; }
30983if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
30984
30985cat >>confdefs.h <<\_ACEOF
30986#define HAVE_SYS_NERR 1
30987_ACEOF
30988
30989fi
30990
30991# Check libraries needed by DNS fingerprint support
30992{ echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
30993echo $ECHO_N "checking for library containing getrrsetbyname... $ECHO_C" >&6; }
30994if test "${ac_cv_search_getrrsetbyname+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30996else
30997 ac_func_search_save_LIBS=$LIBS
30998cat >conftest.$ac_ext <<_ACEOF
30999/* confdefs.h. */
31000_ACEOF
31001cat confdefs.h >>conftest.$ac_ext
31002cat >>conftest.$ac_ext <<_ACEOF
31003/* end confdefs.h. */
31004
31005/* Override any GCC internal prototype to avoid an error.
31006 Use char because int might match the return type of a GCC
31007 builtin and then its argument prototype would still apply. */
31008#ifdef __cplusplus
31009extern "C"
31010#endif
31011char getrrsetbyname ();
31012int
31013main ()
31014{
31015return getrrsetbyname ();
31016 ;
31017 return 0;
31018}
31019_ACEOF
31020for ac_lib in '' resolv; do
31021 if test -z "$ac_lib"; then
31022 ac_res="none required"
31023 else
31024 ac_res=-l$ac_lib
31025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31026 fi
31027 rm -f conftest.$ac_objext conftest$ac_exeext
31028if { (ac_try="$ac_link"
31029case "(($ac_try" in
31030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31031 *) ac_try_echo=$ac_try;;
31032esac
31033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31034 (eval "$ac_link") 2>conftest.er1
31035 ac_status=$?
31036 grep -v '^ *+' conftest.er1 >conftest.err
31037 rm -f conftest.er1
31038 cat conftest.err >&5
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); } && {
31041 test -z "$ac_c_werror_flag" ||
31042 test ! -s conftest.err
31043 } && test -s conftest$ac_exeext &&
31044 $as_test_x conftest$ac_exeext; then
31045 ac_cv_search_getrrsetbyname=$ac_res
31046else
31047 echo "$as_me: failed program was:" >&5
31048sed 's/^/| /' conftest.$ac_ext >&5
31049
31050
31051fi
31052
31053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31054 conftest$ac_exeext
31055 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
31056 break
31057fi
31058done
31059if test "${ac_cv_search_getrrsetbyname+set}" = set; then
31060 :
31061else
31062 ac_cv_search_getrrsetbyname=no
31063fi
31064rm conftest.$ac_ext
31065LIBS=$ac_func_search_save_LIBS
31066fi
31067{ echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
31068echo "${ECHO_T}$ac_cv_search_getrrsetbyname" >&6; }
31069ac_res=$ac_cv_search_getrrsetbyname
31070if test "$ac_res" != no; then
31071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31072
31073cat >>confdefs.h <<\_ACEOF
31074#define HAVE_GETRRSETBYNAME 1
31075_ACEOF
31076
31077else
31078
31079 # Needed by our getrrsetbyname()
31080 { echo "$as_me:$LINENO: checking for library containing res_query" >&5
31081echo $ECHO_N "checking for library containing res_query... $ECHO_C" >&6; }
31082if test "${ac_cv_search_res_query+set}" = set; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31084else
31085 ac_func_search_save_LIBS=$LIBS
31086cat >conftest.$ac_ext <<_ACEOF
31087/* confdefs.h. */
31088_ACEOF
31089cat confdefs.h >>conftest.$ac_ext
31090cat >>conftest.$ac_ext <<_ACEOF
31091/* end confdefs.h. */
31092
31093/* Override any GCC internal prototype to avoid an error.
31094 Use char because int might match the return type of a GCC
31095 builtin and then its argument prototype would still apply. */
31096#ifdef __cplusplus
31097extern "C"
31098#endif
31099char res_query ();
31100int
31101main ()
31102{
31103return res_query ();
31104 ;
31105 return 0;
31106}
31107_ACEOF
31108for ac_lib in '' resolv; do
31109 if test -z "$ac_lib"; then
31110 ac_res="none required"
31111 else
31112 ac_res=-l$ac_lib
31113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31114 fi
31115 rm -f conftest.$ac_objext conftest$ac_exeext
31116if { (ac_try="$ac_link"
31117case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_link") 2>conftest.er1
31123 ac_status=$?
31124 grep -v '^ *+' conftest.er1 >conftest.err
31125 rm -f conftest.er1
31126 cat conftest.err >&5
31127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128 (exit $ac_status); } && {
31129 test -z "$ac_c_werror_flag" ||
31130 test ! -s conftest.err
31131 } && test -s conftest$ac_exeext &&
31132 $as_test_x conftest$ac_exeext; then
31133 ac_cv_search_res_query=$ac_res
31134else
31135 echo "$as_me: failed program was:" >&5
31136sed 's/^/| /' conftest.$ac_ext >&5
31137
31138
31139fi
31140
31141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31142 conftest$ac_exeext
31143 if test "${ac_cv_search_res_query+set}" = set; then
31144 break
31145fi
31146done
31147if test "${ac_cv_search_res_query+set}" = set; then
31148 :
31149else
31150 ac_cv_search_res_query=no
31151fi
31152rm conftest.$ac_ext
31153LIBS=$ac_func_search_save_LIBS
31154fi
31155{ echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
31156echo "${ECHO_T}$ac_cv_search_res_query" >&6; }
31157ac_res=$ac_cv_search_res_query
31158if test "$ac_res" != no; then
31159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31160
31161fi
31162
31163 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
31164echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
31165if test "${ac_cv_search_dn_expand+set}" = set; then
31166 echo $ECHO_N "(cached) $ECHO_C" >&6
31167else
31168 ac_func_search_save_LIBS=$LIBS
31169cat >conftest.$ac_ext <<_ACEOF
31170/* confdefs.h. */
31171_ACEOF
31172cat confdefs.h >>conftest.$ac_ext
31173cat >>conftest.$ac_ext <<_ACEOF
31174/* end confdefs.h. */
31175
31176/* Override any GCC internal prototype to avoid an error.
31177 Use char because int might match the return type of a GCC
31178 builtin and then its argument prototype would still apply. */
31179#ifdef __cplusplus
31180extern "C"
31181#endif
31182char dn_expand ();
31183int
31184main ()
31185{
31186return dn_expand ();
31187 ;
31188 return 0;
31189}
31190_ACEOF
31191for ac_lib in '' resolv; do
31192 if test -z "$ac_lib"; then
31193 ac_res="none required"
31194 else
31195 ac_res=-l$ac_lib
31196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31197 fi
31198 rm -f conftest.$ac_objext conftest$ac_exeext
31199if { (ac_try="$ac_link"
31200case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31203esac
31204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_link") 2>conftest.er1
31206 ac_status=$?
31207 grep -v '^ *+' conftest.er1 >conftest.err
31208 rm -f conftest.er1
31209 cat conftest.err >&5
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); } && {
31212 test -z "$ac_c_werror_flag" ||
31213 test ! -s conftest.err
31214 } && test -s conftest$ac_exeext &&
31215 $as_test_x conftest$ac_exeext; then
31216 ac_cv_search_dn_expand=$ac_res
31217else
31218 echo "$as_me: failed program was:" >&5
31219sed 's/^/| /' conftest.$ac_ext >&5
31220
31221
31222fi
31223
31224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31225 conftest$ac_exeext
31226 if test "${ac_cv_search_dn_expand+set}" = set; then
31227 break
31228fi
31229done
31230if test "${ac_cv_search_dn_expand+set}" = set; then
31231 :
31232else
31233 ac_cv_search_dn_expand=no
31234fi
31235rm conftest.$ac_ext
31236LIBS=$ac_func_search_save_LIBS
31237fi
31238{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
31239echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
31240ac_res=$ac_cv_search_dn_expand
31241if test "$ac_res" != no; then
31242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31243
31244fi
31245
31246 { echo "$as_me:$LINENO: checking if res_query will link" >&5
31247echo $ECHO_N "checking if res_query will link... $ECHO_C" >&6; }
31248 cat >conftest.$ac_ext <<_ACEOF
31249/* confdefs.h. */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h. */
31254
31255#include <sys/types.h>
31256#include <netinet/in.h>
31257#include <arpa/nameser.h>
31258#include <netdb.h>
31259#include <resolv.h>
31260
31261int
31262main ()
31263{
31264
31265 res_query (0, 0, 0, 0, 0);
31266
31267 ;
31268 return 0;
31269}
31270_ACEOF
31271rm -f conftest.$ac_objext conftest$ac_exeext
31272if { (ac_try="$ac_link"
31273case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31276esac
31277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_link") 2>conftest.er1
31279 ac_status=$?
31280 grep -v '^ *+' conftest.er1 >conftest.err
31281 rm -f conftest.er1
31282 cat conftest.err >&5
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); } && {
31285 test -z "$ac_c_werror_flag" ||
31286 test ! -s conftest.err
31287 } && test -s conftest$ac_exeext &&
31288 $as_test_x conftest$ac_exeext; then
31289 { echo "$as_me:$LINENO: result: yes" >&5
31290echo "${ECHO_T}yes" >&6; }
31291else
31292 echo "$as_me: failed program was:" >&5
31293sed 's/^/| /' conftest.$ac_ext >&5
31294
31295 { echo "$as_me:$LINENO: result: no" >&5
31296echo "${ECHO_T}no" >&6; }
31297 saved_LIBS="$LIBS"
31298 LIBS="$LIBS -lresolv"
31299 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
31300echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
31301 cat >conftest.$ac_ext <<_ACEOF
31302/* confdefs.h. */
31303_ACEOF
31304cat confdefs.h >>conftest.$ac_ext
31305cat >>conftest.$ac_ext <<_ACEOF
31306/* end confdefs.h. */
31307
31308#include <sys/types.h>
31309#include <netinet/in.h>
31310#include <arpa/nameser.h>
31311#include <netdb.h>
31312#include <resolv.h>
31313
31314int
31315main ()
31316{
31317
31318 res_query (0, 0, 0, 0, 0);
31319
31320 ;
31321 return 0;
31322}
31323_ACEOF
31324rm -f conftest.$ac_objext conftest$ac_exeext
31325if { (ac_try="$ac_link"
31326case "(($ac_try" in
31327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31329esac
31330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331 (eval "$ac_link") 2>conftest.er1
31332 ac_status=$?
31333 grep -v '^ *+' conftest.er1 >conftest.err
31334 rm -f conftest.er1
31335 cat conftest.err >&5
31336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337 (exit $ac_status); } && {
31338 test -z "$ac_c_werror_flag" ||
31339 test ! -s conftest.err
31340 } && test -s conftest$ac_exeext &&
31341 $as_test_x conftest$ac_exeext; then
31342 { echo "$as_me:$LINENO: result: yes" >&5
31343echo "${ECHO_T}yes" >&6; }
31344else
31345 echo "$as_me: failed program was:" >&5
31346sed 's/^/| /' conftest.$ac_ext >&5
31347
31348 LIBS="$saved_LIBS"
31349 { echo "$as_me:$LINENO: result: no" >&5
31350echo "${ECHO_T}no" >&6; }
31351fi
31352
31353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31354 conftest$ac_exeext conftest.$ac_ext
31355
31356fi
31357
31358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31359 conftest$ac_exeext conftest.$ac_ext
31360
31361
31362for ac_func in _getshort _getlong
31363do
31364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31365{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31367if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
31370 cat >conftest.$ac_ext <<_ACEOF
31371/* confdefs.h. */
31372_ACEOF
31373cat confdefs.h >>conftest.$ac_ext
31374cat >>conftest.$ac_ext <<_ACEOF
31375/* end confdefs.h. */
31376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31378#define $ac_func innocuous_$ac_func
31379
31380/* System header to define __stub macros and hopefully few prototypes,
31381 which can conflict with char $ac_func (); below.
31382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31383 <limits.h> exists even on freestanding compilers. */
31384
31385#ifdef __STDC__
31386# include <limits.h>
31387#else
31388# include <assert.h>
31389#endif
31390
31391#undef $ac_func
31392
31393/* Override any GCC internal prototype to avoid an error.
31394 Use char because int might match the return type of a GCC
31395 builtin and then its argument prototype would still apply. */
31396#ifdef __cplusplus
31397extern "C"
31398#endif
31399char $ac_func ();
31400/* The GNU C library defines this for functions which it implements
31401 to always fail with ENOSYS. Some functions are actually named
31402 something starting with __ and the normal name is an alias. */
31403#if defined __stub_$ac_func || defined __stub___$ac_func
31404choke me
31405#endif
31406
31407int
31408main ()
31409{
31410return $ac_func ();
31411 ;
31412 return 0;
31413}
31414_ACEOF
31415rm -f conftest.$ac_objext conftest$ac_exeext
31416if { (ac_try="$ac_link"
31417case "(($ac_try" in
31418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31419 *) ac_try_echo=$ac_try;;
31420esac
31421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31422 (eval "$ac_link") 2>conftest.er1
31423 ac_status=$?
31424 grep -v '^ *+' conftest.er1 >conftest.err
31425 rm -f conftest.er1
31426 cat conftest.err >&5
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } && {
31429 test -z "$ac_c_werror_flag" ||
31430 test ! -s conftest.err
31431 } && test -s conftest$ac_exeext &&
31432 $as_test_x conftest$ac_exeext; then
31433 eval "$as_ac_var=yes"
31434else
31435 echo "$as_me: failed program was:" >&5
31436sed 's/^/| /' conftest.$ac_ext >&5
31437
31438 eval "$as_ac_var=no"
31439fi
31440
31441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31442 conftest$ac_exeext conftest.$ac_ext
31443fi
31444ac_res=`eval echo '${'$as_ac_var'}'`
31445 { echo "$as_me:$LINENO: result: $ac_res" >&5
31446echo "${ECHO_T}$ac_res" >&6; }
31447if test `eval echo '${'$as_ac_var'}'` = yes; then
31448 cat >>confdefs.h <<_ACEOF
31449#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31450_ACEOF
31451
31452fi
31453done
31454
31455 { echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
31456echo $ECHO_N "checking whether _getshort is declared... $ECHO_C" >&6; }
31457if test "${ac_cv_have_decl__getshort+set}" = set; then
31458 echo $ECHO_N "(cached) $ECHO_C" >&6
31459else
31460 cat >conftest.$ac_ext <<_ACEOF
31461/* confdefs.h. */
31462_ACEOF
31463cat confdefs.h >>conftest.$ac_ext
31464cat >>conftest.$ac_ext <<_ACEOF
31465/* end confdefs.h. */
31466#include <sys/types.h>
31467 #include <arpa/nameser.h>
31468
31469int
31470main ()
31471{
31472#ifndef _getshort
31473 (void) _getshort;
31474#endif
31475
31476 ;
31477 return 0;
31478}
31479_ACEOF
31480rm -f conftest.$ac_objext
31481if { (ac_try="$ac_compile"
31482case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31485esac
31486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_compile") 2>conftest.er1
31488 ac_status=$?
31489 grep -v '^ *+' conftest.er1 >conftest.err
31490 rm -f conftest.er1
31491 cat conftest.err >&5
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); } && {
31494 test -z "$ac_c_werror_flag" ||
31495 test ! -s conftest.err
31496 } && test -s conftest.$ac_objext; then
31497 ac_cv_have_decl__getshort=yes
31498else
31499 echo "$as_me: failed program was:" >&5
31500sed 's/^/| /' conftest.$ac_ext >&5
31501
31502 ac_cv_have_decl__getshort=no
31503fi
31504
31505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31506fi
31507{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
31508echo "${ECHO_T}$ac_cv_have_decl__getshort" >&6; }
31509if test $ac_cv_have_decl__getshort = yes; then
31510
31511cat >>confdefs.h <<_ACEOF
31512#define HAVE_DECL__GETSHORT 1
31513_ACEOF
31514
31515
31516else
31517 cat >>confdefs.h <<_ACEOF
31518#define HAVE_DECL__GETSHORT 0
31519_ACEOF
31520
31521
31522fi
31523{ echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
31524echo $ECHO_N "checking whether _getlong is declared... $ECHO_C" >&6; }
31525if test "${ac_cv_have_decl__getlong+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527else
31528 cat >conftest.$ac_ext <<_ACEOF
31529/* confdefs.h. */
31530_ACEOF
31531cat confdefs.h >>conftest.$ac_ext
31532cat >>conftest.$ac_ext <<_ACEOF
31533/* end confdefs.h. */
31534#include <sys/types.h>
31535 #include <arpa/nameser.h>
31536
31537int
31538main ()
31539{
31540#ifndef _getlong
31541 (void) _getlong;
31542#endif
31543
31544 ;
31545 return 0;
31546}
31547_ACEOF
31548rm -f conftest.$ac_objext
31549if { (ac_try="$ac_compile"
31550case "(($ac_try" in
31551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552 *) ac_try_echo=$ac_try;;
31553esac
31554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555 (eval "$ac_compile") 2>conftest.er1
31556 ac_status=$?
31557 grep -v '^ *+' conftest.er1 >conftest.err
31558 rm -f conftest.er1
31559 cat conftest.err >&5
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); } && {
31562 test -z "$ac_c_werror_flag" ||
31563 test ! -s conftest.err
31564 } && test -s conftest.$ac_objext; then
31565 ac_cv_have_decl__getlong=yes
31566else
31567 echo "$as_me: failed program was:" >&5
31568sed 's/^/| /' conftest.$ac_ext >&5
31569
31570 ac_cv_have_decl__getlong=no
31571fi
31572
31573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31574fi
31575{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
31576echo "${ECHO_T}$ac_cv_have_decl__getlong" >&6; }
31577if test $ac_cv_have_decl__getlong = yes; then
31578
31579cat >>confdefs.h <<_ACEOF
31580#define HAVE_DECL__GETLONG 1
31581_ACEOF
31582
31583
31584else
31585 cat >>confdefs.h <<_ACEOF
31586#define HAVE_DECL__GETLONG 0
31587_ACEOF
31588
31589
31590fi
31591
31592
31593 { echo "$as_me:$LINENO: checking for HEADER.ad" >&5
31594echo $ECHO_N "checking for HEADER.ad... $ECHO_C" >&6; }
31595if test "${ac_cv_member_HEADER_ad+set}" = set; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31597else
31598 cat >conftest.$ac_ext <<_ACEOF
31599/* confdefs.h. */
31600_ACEOF
31601cat confdefs.h >>conftest.$ac_ext
31602cat >>conftest.$ac_ext <<_ACEOF
31603/* end confdefs.h. */
31604#include <arpa/nameser.h>
31605
31606int
31607main ()
31608{
31609static HEADER ac_aggr;
31610if (ac_aggr.ad)
31611return 0;
31612 ;
31613 return 0;
31614}
31615_ACEOF
31616rm -f conftest.$ac_objext
31617if { (ac_try="$ac_compile"
31618case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31621esac
31622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_compile") 2>conftest.er1
31624 ac_status=$?
31625 grep -v '^ *+' conftest.er1 >conftest.err
31626 rm -f conftest.er1
31627 cat conftest.err >&5
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); } && {
31630 test -z "$ac_c_werror_flag" ||
31631 test ! -s conftest.err
31632 } && test -s conftest.$ac_objext; then
31633 ac_cv_member_HEADER_ad=yes
31634else
31635 echo "$as_me: failed program was:" >&5
31636sed 's/^/| /' conftest.$ac_ext >&5
31637
31638 cat >conftest.$ac_ext <<_ACEOF
31639/* confdefs.h. */
31640_ACEOF
31641cat confdefs.h >>conftest.$ac_ext
31642cat >>conftest.$ac_ext <<_ACEOF
31643/* end confdefs.h. */
31644#include <arpa/nameser.h>
31645
31646int
31647main ()
31648{
31649static HEADER ac_aggr;
31650if (sizeof ac_aggr.ad)
31651return 0;
31652 ;
31653 return 0;
31654}
31655_ACEOF
31656rm -f conftest.$ac_objext
31657if { (ac_try="$ac_compile"
31658case "(($ac_try" in
31659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660 *) ac_try_echo=$ac_try;;
31661esac
31662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663 (eval "$ac_compile") 2>conftest.er1
31664 ac_status=$?
31665 grep -v '^ *+' conftest.er1 >conftest.err
31666 rm -f conftest.er1
31667 cat conftest.err >&5
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); } && {
31670 test -z "$ac_c_werror_flag" ||
31671 test ! -s conftest.err
31672 } && test -s conftest.$ac_objext; then
31673 ac_cv_member_HEADER_ad=yes
31674else
31675 echo "$as_me: failed program was:" >&5
31676sed 's/^/| /' conftest.$ac_ext >&5
31677
31678 ac_cv_member_HEADER_ad=no
31679fi
31680
31681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31682fi
31683
31684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31685fi
31686{ echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
31687echo "${ECHO_T}$ac_cv_member_HEADER_ad" >&6; }
31688if test $ac_cv_member_HEADER_ad = yes; then
31689
31690cat >>confdefs.h <<\_ACEOF
31691#define HAVE_HEADER_AD 1
31692_ACEOF
31693
31694fi
31695
31696
31697fi
31698
31699
31700{ echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
31701echo $ECHO_N "checking if struct __res_state _res is an extern... $ECHO_C" >&6; }
31702cat >conftest.$ac_ext <<_ACEOF
31703/* confdefs.h. */
31704_ACEOF
31705cat confdefs.h >>conftest.$ac_ext
31706cat >>conftest.$ac_ext <<_ACEOF
31707/* end confdefs.h. */
31708
31709#include <stdio.h>
31710#if HAVE_SYS_TYPES_H
31711# include <sys/types.h>
31712#endif
31713#include <netinet/in.h>
31714#include <arpa/nameser.h>
31715#include <resolv.h>
31716extern struct __res_state _res;
31717
31718int
31719main ()
31720{
31721
31722 ;
31723 return 0;
31724}
31725_ACEOF
31726rm -f conftest.$ac_objext conftest$ac_exeext
31727if { (ac_try="$ac_link"
31728case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31731esac
31732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_link") 2>conftest.er1
31734 ac_status=$?
31735 grep -v '^ *+' conftest.er1 >conftest.err
31736 rm -f conftest.er1
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } && {
31740 test -z "$ac_c_werror_flag" ||
31741 test ! -s conftest.err
31742 } && test -s conftest$ac_exeext &&
31743 $as_test_x conftest$ac_exeext; then
31744 { echo "$as_me:$LINENO: result: yes" >&5
31745echo "${ECHO_T}yes" >&6; }
31746
31747cat >>confdefs.h <<\_ACEOF
31748#define HAVE__RES_EXTERN 1
31749_ACEOF
31750
31751
31752else
31753 echo "$as_me: failed program was:" >&5
31754sed 's/^/| /' conftest.$ac_ext >&5
31755
31756 { echo "$as_me:$LINENO: result: no" >&5
31757echo "${ECHO_T}no" >&6; }
31758
31759fi
31760
31761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31762 conftest$ac_exeext conftest.$ac_ext
31763
31764# Check whether user wants SELinux support
31765SELINUX_MSG="no"
31766LIBSELINUX=""
31767
31768# Check whether --with-selinux was given.
31769if test "${with_selinux+set}" = set; then
31770 withval=$with_selinux; if test "x$withval" != "xno" ; then
31771 save_LIBS="$LIBS"
31772
31773cat >>confdefs.h <<\_ACEOF
31774#define WITH_SELINUX 1
31775_ACEOF
31776
31777 SELINUX_MSG="yes"
31778 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31779 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31780echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31781if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783fi
31784{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31785echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31786else
31787 # Is the header compilable?
31788{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
31789echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
31790cat >conftest.$ac_ext <<_ACEOF
31791/* confdefs.h. */
31792_ACEOF
31793cat confdefs.h >>conftest.$ac_ext
31794cat >>conftest.$ac_ext <<_ACEOF
31795/* end confdefs.h. */
31796$ac_includes_default
31797#include <selinux/selinux.h>
31798_ACEOF
31799rm -f conftest.$ac_objext
31800if { (ac_try="$ac_compile"
31801case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31804esac
31805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_compile") 2>conftest.er1
31807 ac_status=$?
31808 grep -v '^ *+' conftest.er1 >conftest.err
31809 rm -f conftest.er1
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } && {
31813 test -z "$ac_c_werror_flag" ||
31814 test ! -s conftest.err
31815 } && test -s conftest.$ac_objext; then
31816 ac_header_compiler=yes
31817else
31818 echo "$as_me: failed program was:" >&5
31819sed 's/^/| /' conftest.$ac_ext >&5
31820
31821 ac_header_compiler=no
31822fi
31823
31824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31826echo "${ECHO_T}$ac_header_compiler" >&6; }
31827
31828# Is the header present?
31829{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
31830echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
31831cat >conftest.$ac_ext <<_ACEOF
31832/* confdefs.h. */
31833_ACEOF
31834cat confdefs.h >>conftest.$ac_ext
31835cat >>conftest.$ac_ext <<_ACEOF
31836/* end confdefs.h. */
31837#include <selinux/selinux.h>
31838_ACEOF
31839if { (ac_try="$ac_cpp conftest.$ac_ext"
31840case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31843esac
31844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31846 ac_status=$?
31847 grep -v '^ *+' conftest.er1 >conftest.err
31848 rm -f conftest.er1
31849 cat conftest.err >&5
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); } >/dev/null && {
31852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31853 test ! -s conftest.err
31854 }; then
31855 ac_header_preproc=yes
31856else
31857 echo "$as_me: failed program was:" >&5
31858sed 's/^/| /' conftest.$ac_ext >&5
31859
31860 ac_header_preproc=no
31861fi
31862
31863rm -f conftest.err conftest.$ac_ext
31864{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31865echo "${ECHO_T}$ac_header_preproc" >&6; }
31866
31867# So? What about this header?
31868case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31869 yes:no: )
31870 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
31871echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31872 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
31873echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
31874 ac_header_preproc=yes
31875 ;;
31876 no:yes:* )
31877 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
31878echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
31879 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
31880echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
31881 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
31882echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
31883 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
31884echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
31885 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
31886echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
31887 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
31888echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
31889 ( cat <<\_ASBOX
31890## ------------------------------------------- ##
31891## Report this to openssh-unix-dev@mindrot.org ##
31892## ------------------------------------------- ##
31893_ASBOX
31894 ) | sed "s/^/$as_me: WARNING: /" >&2
31895 ;;
31896esac
31897{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
31898echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
31899if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
31900 echo $ECHO_N "(cached) $ECHO_C" >&6
31901else
31902 ac_cv_header_selinux_selinux_h=$ac_header_preproc
31903fi
31904{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
31905echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
31906
31907fi
31908if test $ac_cv_header_selinux_selinux_h = yes; then
31909 :
31910else
31911 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
31912echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
31913 { (exit 1); exit 1; }; }
31914fi
31915
31916
31917 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
31918echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
31919if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
31920 echo $ECHO_N "(cached) $ECHO_C" >&6
31921else
31922 ac_check_lib_save_LIBS=$LIBS
31923LIBS="-lselinux $LIBS"
31924cat >conftest.$ac_ext <<_ACEOF
31925/* confdefs.h. */
31926_ACEOF
31927cat confdefs.h >>conftest.$ac_ext
31928cat >>conftest.$ac_ext <<_ACEOF
31929/* end confdefs.h. */
31930
31931/* Override any GCC internal prototype to avoid an error.
31932 Use char because int might match the return type of a GCC
31933 builtin and then its argument prototype would still apply. */
31934#ifdef __cplusplus
31935extern "C"
31936#endif
31937char setexeccon ();
31938int
31939main ()
31940{
31941return setexeccon ();
31942 ;
31943 return 0;
31944}
31945_ACEOF
31946rm -f conftest.$ac_objext conftest$ac_exeext
31947if { (ac_try="$ac_link"
31948case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31951esac
31952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_link") 2>conftest.er1
31954 ac_status=$?
31955 grep -v '^ *+' conftest.er1 >conftest.err
31956 rm -f conftest.er1
31957 cat conftest.err >&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); } && {
31960 test -z "$ac_c_werror_flag" ||
31961 test ! -s conftest.err
31962 } && test -s conftest$ac_exeext &&
31963 $as_test_x conftest$ac_exeext; then
31964 ac_cv_lib_selinux_setexeccon=yes
31965else
31966 echo "$as_me: failed program was:" >&5
31967sed 's/^/| /' conftest.$ac_ext >&5
31968
31969 ac_cv_lib_selinux_setexeccon=no
31970fi
31971
31972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31973 conftest$ac_exeext conftest.$ac_ext
31974LIBS=$ac_check_lib_save_LIBS
31975fi
31976{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
31977echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
31978if test $ac_cv_lib_selinux_setexeccon = yes; then
31979 LIBSELINUX="-lselinux"
31980 LIBS="$LIBS -lselinux"
31981
31982else
31983 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
31984echo "$as_me: error: SELinux support requires libselinux library" >&2;}
31985 { (exit 1); exit 1; }; }
31986fi
31987
31988 SSHLIBS="$SSHLIBS $LIBSELINUX"
31989 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
31990
31991
31992for ac_func in getseuserbyname get_default_context_with_level
31993do
31994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
31999else
32000 cat >conftest.$ac_ext <<_ACEOF
32001/* confdefs.h. */
32002_ACEOF
32003cat confdefs.h >>conftest.$ac_ext
32004cat >>conftest.$ac_ext <<_ACEOF
32005/* end confdefs.h. */
32006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32008#define $ac_func innocuous_$ac_func
32009
32010/* System header to define __stub macros and hopefully few prototypes,
32011 which can conflict with char $ac_func (); below.
32012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013 <limits.h> exists even on freestanding compilers. */
32014
32015#ifdef __STDC__
32016# include <limits.h>
32017#else
32018# include <assert.h>
32019#endif
32020
32021#undef $ac_func
32022
32023/* Override any GCC internal prototype to avoid an error.
32024 Use char because int might match the return type of a GCC
32025 builtin and then its argument prototype would still apply. */
32026#ifdef __cplusplus
32027extern "C"
32028#endif
32029char $ac_func ();
32030/* The GNU C library defines this for functions which it implements
32031 to always fail with ENOSYS. Some functions are actually named
32032 something starting with __ and the normal name is an alias. */
32033#if defined __stub_$ac_func || defined __stub___$ac_func
32034choke me
32035#endif
32036
32037int
32038main ()
32039{
32040return $ac_func ();
32041 ;
32042 return 0;
32043}
32044_ACEOF
32045rm -f conftest.$ac_objext conftest$ac_exeext
32046if { (ac_try="$ac_link"
32047case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32050esac
32051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_link") 2>conftest.er1
32053 ac_status=$?
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } && {
32059 test -z "$ac_c_werror_flag" ||
32060 test ! -s conftest.err
32061 } && test -s conftest$ac_exeext &&
32062 $as_test_x conftest$ac_exeext; then
32063 eval "$as_ac_var=yes"
32064else
32065 echo "$as_me: failed program was:" >&5
32066sed 's/^/| /' conftest.$ac_ext >&5
32067
32068 eval "$as_ac_var=no"
32069fi
32070
32071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32072 conftest$ac_exeext conftest.$ac_ext
32073fi
32074ac_res=`eval echo '${'$as_ac_var'}'`
32075 { echo "$as_me:$LINENO: result: $ac_res" >&5
32076echo "${ECHO_T}$ac_res" >&6; }
32077if test `eval echo '${'$as_ac_var'}'` = yes; then
32078 cat >>confdefs.h <<_ACEOF
32079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32080_ACEOF
32081
32082fi
32083done
32084
32085 LIBS="$save_LIBS"
32086 fi
32087
32088fi
32089
32090
32091
32092
32093# Check whether user wants Kerberos 5 support
32094KRB5_MSG="no"
32095
32096# Check whether --with-kerberos5 was given.
32097if test "${with_kerberos5+set}" = set; then
32098 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
32099 if test "x$withval" = "xyes" ; then
32100 KRB5ROOT="/usr/local"
32101 else
32102 KRB5ROOT=${withval}
32103 fi
32104
32105
32106cat >>confdefs.h <<\_ACEOF
32107#define KRB5 1
32108_ACEOF
32109
32110 KRB5_MSG="yes"
32111
32112 # Extract the first word of "krb5-config", so it can be a program name with args.
32113set dummy krb5-config; ac_word=$2
32114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
32115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32116if test "${ac_cv_path_KRB5CONF+set}" = set; then
32117 echo $ECHO_N "(cached) $ECHO_C" >&6
32118else
32119 case $KRB5CONF in
32120 [\\/]* | ?:[\\/]*)
32121 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
32122 ;;
32123 *)
32124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32125as_dummy="$KRB5ROOT/bin:$PATH"
32126for as_dir in $as_dummy
32127do
32128 IFS=$as_save_IFS
32129 test -z "$as_dir" && as_dir=.
32130 for ac_exec_ext in '' $ac_executable_extensions; do
32131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32132 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
32133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32134 break 2
32135 fi
32136done
32137done
32138IFS=$as_save_IFS
32139
32140 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
32141 ;;
32142esac
32143fi
32144KRB5CONF=$ac_cv_path_KRB5CONF
32145if test -n "$KRB5CONF"; then
32146 { echo "$as_me:$LINENO: result: $KRB5CONF" >&5
32147echo "${ECHO_T}$KRB5CONF" >&6; }
32148else
32149 { echo "$as_me:$LINENO: result: no" >&5
32150echo "${ECHO_T}no" >&6; }
32151fi
32152
32153
32154 if test -x $KRB5CONF ; then
32155 K5CFLAGS="`$KRB5CONF --cflags`"
32156 K5LIBS="`$KRB5CONF --libs`"
32157 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
32158
32159 { echo "$as_me:$LINENO: checking for gssapi support" >&5
32160echo $ECHO_N "checking for gssapi support... $ECHO_C" >&6; }
32161 if $KRB5CONF | grep gssapi >/dev/null ; then
32162 { echo "$as_me:$LINENO: result: yes" >&5
32163echo "${ECHO_T}yes" >&6; }
32164
32165cat >>confdefs.h <<\_ACEOF
32166#define GSSAPI 1
32167_ACEOF
32168
32169 GSSCFLAGS="`$KRB5CONF --cflags gssapi`"
32170 GSSLIBS="`$KRB5CONF --libs gssapi`"
32171 CPPFLAGS="$CPPFLAGS $GSSCFLAGS"
32172 else
32173 { echo "$as_me:$LINENO: result: no" >&5
32174echo "${ECHO_T}no" >&6; }
32175 fi
32176 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32177echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32178 cat >conftest.$ac_ext <<_ACEOF
32179/* confdefs.h. */
32180_ACEOF
32181cat confdefs.h >>conftest.$ac_ext
32182cat >>conftest.$ac_ext <<_ACEOF
32183/* end confdefs.h. */
32184 #include <krb5.h>
32185
32186int
32187main ()
32188{
32189 char *tmp = heimdal_version;
32190 ;
32191 return 0;
32192}
32193_ACEOF
32194rm -f conftest.$ac_objext
32195if { (ac_try="$ac_compile"
32196case "(($ac_try" in
32197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198 *) ac_try_echo=$ac_try;;
32199esac
32200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201 (eval "$ac_compile") 2>conftest.er1
32202 ac_status=$?
32203 grep -v '^ *+' conftest.er1 >conftest.err
32204 rm -f conftest.er1
32205 cat conftest.err >&5
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); } && {
32208 test -z "$ac_c_werror_flag" ||
32209 test ! -s conftest.err
32210 } && test -s conftest.$ac_objext; then
32211 { echo "$as_me:$LINENO: result: yes" >&5
32212echo "${ECHO_T}yes" >&6; }
32213
32214cat >>confdefs.h <<\_ACEOF
32215#define HEIMDAL 1
32216_ACEOF
32217
32218else
32219 echo "$as_me: failed program was:" >&5
32220sed 's/^/| /' conftest.$ac_ext >&5
32221
32222 { echo "$as_me:$LINENO: result: no" >&5
32223echo "${ECHO_T}no" >&6; }
32224
32225fi
32226
32227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32228 else
32229 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
32230 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
32231 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
32232echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
32233 cat >conftest.$ac_ext <<_ACEOF
32234/* confdefs.h. */
32235_ACEOF
32236cat confdefs.h >>conftest.$ac_ext
32237cat >>conftest.$ac_ext <<_ACEOF
32238/* end confdefs.h. */
32239 #include <krb5.h>
32240
32241int
32242main ()
32243{
32244 char *tmp = heimdal_version;
32245 ;
32246 return 0;
32247}
32248_ACEOF
32249rm -f conftest.$ac_objext
32250if { (ac_try="$ac_compile"
32251case "(($ac_try" in
32252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32253 *) ac_try_echo=$ac_try;;
32254esac
32255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32256 (eval "$ac_compile") 2>conftest.er1
32257 ac_status=$?
32258 grep -v '^ *+' conftest.er1 >conftest.err
32259 rm -f conftest.er1
32260 cat conftest.err >&5
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); } && {
32263 test -z "$ac_c_werror_flag" ||
32264 test ! -s conftest.err
32265 } && test -s conftest.$ac_objext; then
32266 { echo "$as_me:$LINENO: result: yes" >&5
32267echo "${ECHO_T}yes" >&6; }
32268 cat >>confdefs.h <<\_ACEOF
32269#define HEIMDAL 1
32270_ACEOF
32271
32272 K5LIBS="-lkrb5"
32273 K5LIBS="$K5LIBS -lcom_err -lasn1"
32274 { echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
32275echo $ECHO_N "checking for net_write in -lroken... $ECHO_C" >&6; }
32276if test "${ac_cv_lib_roken_net_write+set}" = set; then
32277 echo $ECHO_N "(cached) $ECHO_C" >&6
32278else
32279 ac_check_lib_save_LIBS=$LIBS
32280LIBS="-lroken $LIBS"
32281cat >conftest.$ac_ext <<_ACEOF
32282/* confdefs.h. */
32283_ACEOF
32284cat confdefs.h >>conftest.$ac_ext
32285cat >>conftest.$ac_ext <<_ACEOF
32286/* end confdefs.h. */
32287
32288/* Override any GCC internal prototype to avoid an error.
32289 Use char because int might match the return type of a GCC
32290 builtin and then its argument prototype would still apply. */
32291#ifdef __cplusplus
32292extern "C"
32293#endif
32294char net_write ();
32295int
32296main ()
32297{
32298return net_write ();
32299 ;
32300 return 0;
32301}
32302_ACEOF
32303rm -f conftest.$ac_objext conftest$ac_exeext
32304if { (ac_try="$ac_link"
32305case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32308esac
32309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_link") 2>conftest.er1
32311 ac_status=$?
32312 grep -v '^ *+' conftest.er1 >conftest.err
32313 rm -f conftest.er1
32314 cat conftest.err >&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } && {
32317 test -z "$ac_c_werror_flag" ||
32318 test ! -s conftest.err
32319 } && test -s conftest$ac_exeext &&
32320 $as_test_x conftest$ac_exeext; then
32321 ac_cv_lib_roken_net_write=yes
32322else
32323 echo "$as_me: failed program was:" >&5
32324sed 's/^/| /' conftest.$ac_ext >&5
32325
32326 ac_cv_lib_roken_net_write=no
32327fi
32328
32329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32330 conftest$ac_exeext conftest.$ac_ext
32331LIBS=$ac_check_lib_save_LIBS
32332fi
32333{ echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
32334echo "${ECHO_T}$ac_cv_lib_roken_net_write" >&6; }
32335if test $ac_cv_lib_roken_net_write = yes; then
32336 K5LIBS="$K5LIBS -lroken"
32337fi
32338
32339 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
32340echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
32341if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
32342 echo $ECHO_N "(cached) $ECHO_C" >&6
32343else
32344 ac_check_lib_save_LIBS=$LIBS
32345LIBS="-ldes $LIBS"
32346cat >conftest.$ac_ext <<_ACEOF
32347/* confdefs.h. */
32348_ACEOF
32349cat confdefs.h >>conftest.$ac_ext
32350cat >>conftest.$ac_ext <<_ACEOF
32351/* end confdefs.h. */
32352
32353/* Override any GCC internal prototype to avoid an error.
32354 Use char because int might match the return type of a GCC
32355 builtin and then its argument prototype would still apply. */
32356#ifdef __cplusplus
32357extern "C"
32358#endif
32359char des_cbc_encrypt ();
32360int
32361main ()
32362{
32363return des_cbc_encrypt ();
32364 ;
32365 return 0;
32366}
32367_ACEOF
32368rm -f conftest.$ac_objext conftest$ac_exeext
32369if { (ac_try="$ac_link"
32370case "(($ac_try" in
32371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32372 *) ac_try_echo=$ac_try;;
32373esac
32374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32375 (eval "$ac_link") 2>conftest.er1
32376 ac_status=$?
32377 grep -v '^ *+' conftest.er1 >conftest.err
32378 rm -f conftest.er1
32379 cat conftest.err >&5
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); } && {
32382 test -z "$ac_c_werror_flag" ||
32383 test ! -s conftest.err
32384 } && test -s conftest$ac_exeext &&
32385 $as_test_x conftest$ac_exeext; then
32386 ac_cv_lib_des_des_cbc_encrypt=yes
32387else
32388 echo "$as_me: failed program was:" >&5
32389sed 's/^/| /' conftest.$ac_ext >&5
32390
32391 ac_cv_lib_des_des_cbc_encrypt=no
32392fi
32393
32394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32395 conftest$ac_exeext conftest.$ac_ext
32396LIBS=$ac_check_lib_save_LIBS
32397fi
32398{ echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
32399echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
32400if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
32401 K5LIBS="$K5LIBS -ldes"
32402fi
32403
32404
32405else
32406 echo "$as_me: failed program was:" >&5
32407sed 's/^/| /' conftest.$ac_ext >&5
32408
32409 { echo "$as_me:$LINENO: result: no" >&5
32410echo "${ECHO_T}no" >&6; }
32411 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
32412
32413
32414fi
32415
32416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32417 { echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
32418echo $ECHO_N "checking for library containing dn_expand... $ECHO_C" >&6; }
32419if test "${ac_cv_search_dn_expand+set}" = set; then
32420 echo $ECHO_N "(cached) $ECHO_C" >&6
32421else
32422 ac_func_search_save_LIBS=$LIBS
32423cat >conftest.$ac_ext <<_ACEOF
32424/* confdefs.h. */
32425_ACEOF
32426cat confdefs.h >>conftest.$ac_ext
32427cat >>conftest.$ac_ext <<_ACEOF
32428/* end confdefs.h. */
32429
32430/* Override any GCC internal prototype to avoid an error.
32431 Use char because int might match the return type of a GCC
32432 builtin and then its argument prototype would still apply. */
32433#ifdef __cplusplus
32434extern "C"
32435#endif
32436char dn_expand ();
32437int
32438main ()
32439{
32440return dn_expand ();
32441 ;
32442 return 0;
32443}
32444_ACEOF
32445for ac_lib in '' resolv; do
32446 if test -z "$ac_lib"; then
32447 ac_res="none required"
32448 else
32449 ac_res=-l$ac_lib
32450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32451 fi
32452 rm -f conftest.$ac_objext conftest$ac_exeext
32453if { (ac_try="$ac_link"
32454case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32457esac
32458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_link") 2>conftest.er1
32460 ac_status=$?
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } && {
32466 test -z "$ac_c_werror_flag" ||
32467 test ! -s conftest.err
32468 } && test -s conftest$ac_exeext &&
32469 $as_test_x conftest$ac_exeext; then
32470 ac_cv_search_dn_expand=$ac_res
32471else
32472 echo "$as_me: failed program was:" >&5
32473sed 's/^/| /' conftest.$ac_ext >&5
32474
32475
32476fi
32477
32478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32479 conftest$ac_exeext
32480 if test "${ac_cv_search_dn_expand+set}" = set; then
32481 break
32482fi
32483done
32484if test "${ac_cv_search_dn_expand+set}" = set; then
32485 :
32486else
32487 ac_cv_search_dn_expand=no
32488fi
32489rm conftest.$ac_ext
32490LIBS=$ac_func_search_save_LIBS
32491fi
32492{ echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
32493echo "${ECHO_T}$ac_cv_search_dn_expand" >&6; }
32494ac_res=$ac_cv_search_dn_expand
32495if test "$ac_res" != no; then
32496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32497
32498fi
32499
32500
32501 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
32502echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6; }
32503if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
32504 echo $ECHO_N "(cached) $ECHO_C" >&6
32505else
32506 ac_check_lib_save_LIBS=$LIBS
32507LIBS="-lgssapi_krb5 $LIBS"
32508cat >conftest.$ac_ext <<_ACEOF
32509/* confdefs.h. */
32510_ACEOF
32511cat confdefs.h >>conftest.$ac_ext
32512cat >>conftest.$ac_ext <<_ACEOF
32513/* end confdefs.h. */
32514
32515/* Override any GCC internal prototype to avoid an error.
32516 Use char because int might match the return type of a GCC
32517 builtin and then its argument prototype would still apply. */
32518#ifdef __cplusplus
32519extern "C"
32520#endif
32521char gss_init_sec_context ();
32522int
32523main ()
32524{
32525return gss_init_sec_context ();
32526 ;
32527 return 0;
32528}
32529_ACEOF
32530rm -f conftest.$ac_objext conftest$ac_exeext
32531if { (ac_try="$ac_link"
32532case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32535esac
32536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_link") 2>conftest.er1
32538 ac_status=$?
32539 grep -v '^ *+' conftest.er1 >conftest.err
32540 rm -f conftest.er1
32541 cat conftest.err >&5
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } && {
32544 test -z "$ac_c_werror_flag" ||
32545 test ! -s conftest.err
32546 } && test -s conftest$ac_exeext &&
32547 $as_test_x conftest$ac_exeext; then
32548 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
32549else
32550 echo "$as_me: failed program was:" >&5
32551sed 's/^/| /' conftest.$ac_ext >&5
32552
32553 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
32554fi
32555
32556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32557 conftest$ac_exeext conftest.$ac_ext
32558LIBS=$ac_check_lib_save_LIBS
32559fi
32560{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
32561echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
32562if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
32563 cat >>confdefs.h <<\_ACEOF
32564#define GSSAPI 1
32565_ACEOF
32566
32567 GSSLIBS="-lgssapi_krb5"
32568else
32569 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
32570echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6; }
32571if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
32572 echo $ECHO_N "(cached) $ECHO_C" >&6
32573else
32574 ac_check_lib_save_LIBS=$LIBS
32575LIBS="-lgssapi $LIBS"
32576cat >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
32583/* Override any GCC internal prototype to avoid an error.
32584 Use char because int might match the return type of a GCC
32585 builtin and then its argument prototype would still apply. */
32586#ifdef __cplusplus
32587extern "C"
32588#endif
32589char gss_init_sec_context ();
32590int
32591main ()
32592{
32593return gss_init_sec_context ();
32594 ;
32595 return 0;
32596}
32597_ACEOF
32598rm -f conftest.$ac_objext conftest$ac_exeext
32599if { (ac_try="$ac_link"
32600case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603esac
32604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_link") 2>conftest.er1
32606 ac_status=$?
32607 grep -v '^ *+' conftest.er1 >conftest.err
32608 rm -f conftest.er1
32609 cat conftest.err >&5
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); } && {
32612 test -z "$ac_c_werror_flag" ||
32613 test ! -s conftest.err
32614 } && test -s conftest$ac_exeext &&
32615 $as_test_x conftest$ac_exeext; then
32616 ac_cv_lib_gssapi_gss_init_sec_context=yes
32617else
32618 echo "$as_me: failed program was:" >&5
32619sed 's/^/| /' conftest.$ac_ext >&5
32620
32621 ac_cv_lib_gssapi_gss_init_sec_context=no
32622fi
32623
32624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32625 conftest$ac_exeext conftest.$ac_ext
32626LIBS=$ac_check_lib_save_LIBS
32627fi
32628{ echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
32629echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
32630if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
32631 cat >>confdefs.h <<\_ACEOF
32632#define GSSAPI 1
32633_ACEOF
32634
32635 GSSLIBS="-lgssapi"
32636else
32637 { echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgss" >&5
32638echo $ECHO_N "checking for gss_init_sec_context in -lgss... $ECHO_C" >&6; }
32639if test "${ac_cv_lib_gss_gss_init_sec_context+set}" = set; then
32640 echo $ECHO_N "(cached) $ECHO_C" >&6
32641else
32642 ac_check_lib_save_LIBS=$LIBS
32643LIBS="-lgss $LIBS"
32644cat >conftest.$ac_ext <<_ACEOF
32645/* confdefs.h. */
32646_ACEOF
32647cat confdefs.h >>conftest.$ac_ext
32648cat >>conftest.$ac_ext <<_ACEOF
32649/* end confdefs.h. */
32650
32651/* Override any GCC internal prototype to avoid an error.
32652 Use char because int might match the return type of a GCC
32653 builtin and then its argument prototype would still apply. */
32654#ifdef __cplusplus
32655extern "C"
32656#endif
32657char gss_init_sec_context ();
32658int
32659main ()
32660{
32661return gss_init_sec_context ();
32662 ;
32663 return 0;
32664}
32665_ACEOF
32666rm -f conftest.$ac_objext conftest$ac_exeext
32667if { (ac_try="$ac_link"
32668case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32671esac
32672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_link") 2>conftest.er1
32674 ac_status=$?
32675 grep -v '^ *+' conftest.er1 >conftest.err
32676 rm -f conftest.er1
32677 cat conftest.err >&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } && {
32680 test -z "$ac_c_werror_flag" ||
32681 test ! -s conftest.err
32682 } && test -s conftest$ac_exeext &&
32683 $as_test_x conftest$ac_exeext; then
32684 ac_cv_lib_gss_gss_init_sec_context=yes
32685else
32686 echo "$as_me: failed program was:" >&5
32687sed 's/^/| /' conftest.$ac_ext >&5
32688
32689 ac_cv_lib_gss_gss_init_sec_context=no
32690fi
32691
32692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32693 conftest$ac_exeext conftest.$ac_ext
32694LIBS=$ac_check_lib_save_LIBS
32695fi
32696{ echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_init_sec_context" >&5
32697echo "${ECHO_T}$ac_cv_lib_gss_gss_init_sec_context" >&6; }
32698if test $ac_cv_lib_gss_gss_init_sec_context = yes; then
32699 cat >>confdefs.h <<\_ACEOF
32700#define GSSAPI 1
32701_ACEOF
32702
32703 GSSLIBS="-lgss"
32704else
32705 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
32706echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
32707fi
32708
32709
32710fi
32711
32712
32713fi
32714
32715
32716 if test "${ac_cv_header_gssapi_h+set}" = set; then
32717 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
32718echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32719if test "${ac_cv_header_gssapi_h+set}" = set; then
32720 echo $ECHO_N "(cached) $ECHO_C" >&6
32721fi
32722{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32723echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32724else
32725 # Is the header compilable?
32726{ echo "$as_me:$LINENO: checking gssapi.h usability" >&5
32727echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
32728cat >conftest.$ac_ext <<_ACEOF
32729/* confdefs.h. */
32730_ACEOF
32731cat confdefs.h >>conftest.$ac_ext
32732cat >>conftest.$ac_ext <<_ACEOF
32733/* end confdefs.h. */
32734$ac_includes_default
32735#include <gssapi.h>
32736_ACEOF
32737rm -f conftest.$ac_objext
32738if { (ac_try="$ac_compile"
32739case "(($ac_try" in
32740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741 *) ac_try_echo=$ac_try;;
32742esac
32743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744 (eval "$ac_compile") 2>conftest.er1
32745 ac_status=$?
32746 grep -v '^ *+' conftest.er1 >conftest.err
32747 rm -f conftest.er1
32748 cat conftest.err >&5
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); } && {
32751 test -z "$ac_c_werror_flag" ||
32752 test ! -s conftest.err
32753 } && test -s conftest.$ac_objext; then
32754 ac_header_compiler=yes
32755else
32756 echo "$as_me: failed program was:" >&5
32757sed 's/^/| /' conftest.$ac_ext >&5
32758
32759 ac_header_compiler=no
32760fi
32761
32762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32764echo "${ECHO_T}$ac_header_compiler" >&6; }
32765
32766# Is the header present?
32767{ echo "$as_me:$LINENO: checking gssapi.h presence" >&5
32768echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
32769cat >conftest.$ac_ext <<_ACEOF
32770/* confdefs.h. */
32771_ACEOF
32772cat confdefs.h >>conftest.$ac_ext
32773cat >>conftest.$ac_ext <<_ACEOF
32774/* end confdefs.h. */
32775#include <gssapi.h>
32776_ACEOF
32777if { (ac_try="$ac_cpp conftest.$ac_ext"
32778case "(($ac_try" in
32779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780 *) ac_try_echo=$ac_try;;
32781esac
32782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32784 ac_status=$?
32785 grep -v '^ *+' conftest.er1 >conftest.err
32786 rm -f conftest.er1
32787 cat conftest.err >&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } >/dev/null && {
32790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32791 test ! -s conftest.err
32792 }; then
32793 ac_header_preproc=yes
32794else
32795 echo "$as_me: failed program was:" >&5
32796sed 's/^/| /' conftest.$ac_ext >&5
32797
32798 ac_header_preproc=no
32799fi
32800
32801rm -f conftest.err conftest.$ac_ext
32802{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32803echo "${ECHO_T}$ac_header_preproc" >&6; }
32804
32805# So? What about this header?
32806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32807 yes:no: )
32808 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
32809echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32810 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
32811echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
32812 ac_header_preproc=yes
32813 ;;
32814 no:yes:* )
32815 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
32816echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
32817 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
32818echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
32819 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
32820echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
32821 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
32822echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
32823 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
32824echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
32825 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
32826echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
32827 ( cat <<\_ASBOX
32828## ------------------------------------------- ##
32829## Report this to openssh-unix-dev@mindrot.org ##
32830## ------------------------------------------- ##
32831_ASBOX
32832 ) | sed "s/^/$as_me: WARNING: /" >&2
32833 ;;
32834esac
32835{ echo "$as_me:$LINENO: checking for gssapi.h" >&5
32836echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
32837if test "${ac_cv_header_gssapi_h+set}" = set; then
32838 echo $ECHO_N "(cached) $ECHO_C" >&6
32839else
32840 ac_cv_header_gssapi_h=$ac_header_preproc
32841fi
32842{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
32843echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
32844
32845fi
32846if test $ac_cv_header_gssapi_h = yes; then
32847 :
32848else
32849 unset ac_cv_header_gssapi_h
32850 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
32851
32852for ac_header in gssapi.h
32853do
32854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32859 echo $ECHO_N "(cached) $ECHO_C" >&6
32860fi
32861ac_res=`eval echo '${'$as_ac_Header'}'`
32862 { echo "$as_me:$LINENO: result: $ac_res" >&5
32863echo "${ECHO_T}$ac_res" >&6; }
32864else
32865 # Is the header compilable?
32866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32868cat >conftest.$ac_ext <<_ACEOF
32869/* confdefs.h. */
32870_ACEOF
32871cat confdefs.h >>conftest.$ac_ext
32872cat >>conftest.$ac_ext <<_ACEOF
32873/* end confdefs.h. */
32874$ac_includes_default
32875#include <$ac_header>
32876_ACEOF
32877rm -f conftest.$ac_objext
32878if { (ac_try="$ac_compile"
32879case "(($ac_try" in
32880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881 *) ac_try_echo=$ac_try;;
32882esac
32883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_compile") 2>conftest.er1
32885 ac_status=$?
32886 grep -v '^ *+' conftest.er1 >conftest.err
32887 rm -f conftest.er1
32888 cat conftest.err >&5
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); } && {
32891 test -z "$ac_c_werror_flag" ||
32892 test ! -s conftest.err
32893 } && test -s conftest.$ac_objext; then
32894 ac_header_compiler=yes
32895else
32896 echo "$as_me: failed program was:" >&5
32897sed 's/^/| /' conftest.$ac_ext >&5
32898
32899 ac_header_compiler=no
32900fi
32901
32902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32904echo "${ECHO_T}$ac_header_compiler" >&6; }
32905
32906# Is the header present?
32907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32909cat >conftest.$ac_ext <<_ACEOF
32910/* confdefs.h. */
32911_ACEOF
32912cat confdefs.h >>conftest.$ac_ext
32913cat >>conftest.$ac_ext <<_ACEOF
32914/* end confdefs.h. */
32915#include <$ac_header>
32916_ACEOF
32917if { (ac_try="$ac_cpp conftest.$ac_ext"
32918case "(($ac_try" in
32919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920 *) ac_try_echo=$ac_try;;
32921esac
32922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32924 ac_status=$?
32925 grep -v '^ *+' conftest.er1 >conftest.err
32926 rm -f conftest.er1
32927 cat conftest.err >&5
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); } >/dev/null && {
32930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32931 test ! -s conftest.err
32932 }; then
32933 ac_header_preproc=yes
32934else
32935 echo "$as_me: failed program was:" >&5
32936sed 's/^/| /' conftest.$ac_ext >&5
32937
32938 ac_header_preproc=no
32939fi
32940
32941rm -f conftest.err conftest.$ac_ext
32942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32943echo "${ECHO_T}$ac_header_preproc" >&6; }
32944
32945# So? What about this header?
32946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32947 yes:no: )
32948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32952 ac_header_preproc=yes
32953 ;;
32954 no:yes:* )
32955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32967 ( cat <<\_ASBOX
32968## ------------------------------------------- ##
32969## Report this to openssh-unix-dev@mindrot.org ##
32970## ------------------------------------------- ##
32971_ASBOX
32972 ) | sed "s/^/$as_me: WARNING: /" >&2
32973 ;;
32974esac
32975{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32978 echo $ECHO_N "(cached) $ECHO_C" >&6
32979else
32980 eval "$as_ac_Header=\$ac_header_preproc"
32981fi
32982ac_res=`eval echo '${'$as_ac_Header'}'`
32983 { echo "$as_me:$LINENO: result: $ac_res" >&5
32984echo "${ECHO_T}$ac_res" >&6; }
32985
32986fi
32987if test `eval echo '${'$as_ac_Header'}'` = yes; then
32988 cat >>confdefs.h <<_ACEOF
32989#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32990_ACEOF
32991
32992else
32993 { echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
32994echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
32995
32996fi
32997
32998done
32999
33000
33001
33002fi
33003
33004
33005
33006 oldCPP="$CPPFLAGS"
33007 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
33008 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33009 { echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
33010echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
33011if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33012 echo $ECHO_N "(cached) $ECHO_C" >&6
33013fi
33014{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
33015echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
33016else
33017 # Is the header compilable?
33018{ echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
33019echo $ECHO_N "checking gssapi_krb5.h usability... $ECHO_C" >&6; }
33020cat >conftest.$ac_ext <<_ACEOF
33021/* confdefs.h. */
33022_ACEOF
33023cat confdefs.h >>conftest.$ac_ext
33024cat >>conftest.$ac_ext <<_ACEOF
33025/* end confdefs.h. */
33026$ac_includes_default
33027#include <gssapi_krb5.h>
33028_ACEOF
33029rm -f conftest.$ac_objext
33030if { (ac_try="$ac_compile"
33031case "(($ac_try" in
33032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33033 *) ac_try_echo=$ac_try;;
33034esac
33035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33036 (eval "$ac_compile") 2>conftest.er1
33037 ac_status=$?
33038 grep -v '^ *+' conftest.er1 >conftest.err
33039 rm -f conftest.er1
33040 cat conftest.err >&5
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } && {
33043 test -z "$ac_c_werror_flag" ||
33044 test ! -s conftest.err
33045 } && test -s conftest.$ac_objext; then
33046 ac_header_compiler=yes
33047else
33048 echo "$as_me: failed program was:" >&5
33049sed 's/^/| /' conftest.$ac_ext >&5
33050
33051 ac_header_compiler=no
33052fi
33053
33054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33056echo "${ECHO_T}$ac_header_compiler" >&6; }
33057
33058# Is the header present?
33059{ echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
33060echo $ECHO_N "checking gssapi_krb5.h presence... $ECHO_C" >&6; }
33061cat >conftest.$ac_ext <<_ACEOF
33062/* confdefs.h. */
33063_ACEOF
33064cat confdefs.h >>conftest.$ac_ext
33065cat >>conftest.$ac_ext <<_ACEOF
33066/* end confdefs.h. */
33067#include <gssapi_krb5.h>
33068_ACEOF
33069if { (ac_try="$ac_cpp conftest.$ac_ext"
33070case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33073esac
33074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33076 ac_status=$?
33077 grep -v '^ *+' conftest.er1 >conftest.err
33078 rm -f conftest.er1
33079 cat conftest.err >&5
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); } >/dev/null && {
33082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33083 test ! -s conftest.err
33084 }; then
33085 ac_header_preproc=yes
33086else
33087 echo "$as_me: failed program was:" >&5
33088sed 's/^/| /' conftest.$ac_ext >&5
33089
33090 ac_header_preproc=no
33091fi
33092
33093rm -f conftest.err conftest.$ac_ext
33094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33095echo "${ECHO_T}$ac_header_preproc" >&6; }
33096
33097# So? What about this header?
33098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33099 yes:no: )
33100 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
33101echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33102 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
33103echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
33104 ac_header_preproc=yes
33105 ;;
33106 no:yes:* )
33107 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
33108echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
33109 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
33110echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
33111 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
33112echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
33113 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
33114echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
33115 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
33116echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
33117 { echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
33118echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
33119 ( cat <<\_ASBOX
33120## ------------------------------------------- ##
33121## Report this to openssh-unix-dev@mindrot.org ##
33122## ------------------------------------------- ##
33123_ASBOX
33124 ) | sed "s/^/$as_me: WARNING: /" >&2
33125 ;;
33126esac
33127{ echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
33128echo $ECHO_N "checking for gssapi_krb5.h... $ECHO_C" >&6; }
33129if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33131else
33132 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
33133fi
33134{ echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
33135echo "${ECHO_T}$ac_cv_header_gssapi_krb5_h" >&6; }
33136
33137fi
33138if test $ac_cv_header_gssapi_krb5_h = yes; then
33139 :
33140else
33141 CPPFLAGS="$oldCPP"
33142fi
33143
33144
33145
33146 fi
33147 if test ! -z "$need_dash_r" ; then
33148 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
33149 fi
33150 if test ! -z "$blibpath" ; then
33151 blibpath="$blibpath:${KRB5ROOT}/lib"
33152 fi
33153
33154
33155
33156for ac_header in gssapi.h gssapi/gssapi.h
33157do
33158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33163 echo $ECHO_N "(cached) $ECHO_C" >&6
33164fi
33165ac_res=`eval echo '${'$as_ac_Header'}'`
33166 { echo "$as_me:$LINENO: result: $ac_res" >&5
33167echo "${ECHO_T}$ac_res" >&6; }
33168else
33169 # Is the header compilable?
33170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33172cat >conftest.$ac_ext <<_ACEOF
33173/* confdefs.h. */
33174_ACEOF
33175cat confdefs.h >>conftest.$ac_ext
33176cat >>conftest.$ac_ext <<_ACEOF
33177/* end confdefs.h. */
33178$ac_includes_default
33179#include <$ac_header>
33180_ACEOF
33181rm -f conftest.$ac_objext
33182if { (ac_try="$ac_compile"
33183case "(($ac_try" in
33184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33185 *) ac_try_echo=$ac_try;;
33186esac
33187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33188 (eval "$ac_compile") 2>conftest.er1
33189 ac_status=$?
33190 grep -v '^ *+' conftest.er1 >conftest.err
33191 rm -f conftest.er1
33192 cat conftest.err >&5
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); } && {
33195 test -z "$ac_c_werror_flag" ||
33196 test ! -s conftest.err
33197 } && test -s conftest.$ac_objext; then
33198 ac_header_compiler=yes
33199else
33200 echo "$as_me: failed program was:" >&5
33201sed 's/^/| /' conftest.$ac_ext >&5
33202
33203 ac_header_compiler=no
33204fi
33205
33206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33207{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33208echo "${ECHO_T}$ac_header_compiler" >&6; }
33209
33210# Is the header present?
33211{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33213cat >conftest.$ac_ext <<_ACEOF
33214/* confdefs.h. */
33215_ACEOF
33216cat confdefs.h >>conftest.$ac_ext
33217cat >>conftest.$ac_ext <<_ACEOF
33218/* end confdefs.h. */
33219#include <$ac_header>
33220_ACEOF
33221if { (ac_try="$ac_cpp conftest.$ac_ext"
33222case "(($ac_try" in
33223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224 *) ac_try_echo=$ac_try;;
33225esac
33226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33228 ac_status=$?
33229 grep -v '^ *+' conftest.er1 >conftest.err
33230 rm -f conftest.er1
33231 cat conftest.err >&5
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } >/dev/null && {
33234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33235 test ! -s conftest.err
33236 }; then
33237 ac_header_preproc=yes
33238else
33239 echo "$as_me: failed program was:" >&5
33240sed 's/^/| /' conftest.$ac_ext >&5
33241
33242 ac_header_preproc=no
33243fi
33244
33245rm -f conftest.err conftest.$ac_ext
33246{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33247echo "${ECHO_T}$ac_header_preproc" >&6; }
33248
33249# So? What about this header?
33250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33251 yes:no: )
33252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33256 ac_header_preproc=yes
33257 ;;
33258 no:yes:* )
33259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33271 ( cat <<\_ASBOX
33272## ------------------------------------------- ##
33273## Report this to openssh-unix-dev@mindrot.org ##
33274## ------------------------------------------- ##
33275_ASBOX
33276 ) | sed "s/^/$as_me: WARNING: /" >&2
33277 ;;
33278esac
33279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33282 echo $ECHO_N "(cached) $ECHO_C" >&6
33283else
33284 eval "$as_ac_Header=\$ac_header_preproc"
33285fi
33286ac_res=`eval echo '${'$as_ac_Header'}'`
33287 { echo "$as_me:$LINENO: result: $ac_res" >&5
33288echo "${ECHO_T}$ac_res" >&6; }
33289
33290fi
33291if test `eval echo '${'$as_ac_Header'}'` = yes; then
33292 cat >>confdefs.h <<_ACEOF
33293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33294_ACEOF
33295
33296fi
33297
33298done
33299
33300
33301
33302for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
33303do
33304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33310fi
33311ac_res=`eval echo '${'$as_ac_Header'}'`
33312 { echo "$as_me:$LINENO: result: $ac_res" >&5
33313echo "${ECHO_T}$ac_res" >&6; }
33314else
33315 # Is the header compilable?
33316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33318cat >conftest.$ac_ext <<_ACEOF
33319/* confdefs.h. */
33320_ACEOF
33321cat confdefs.h >>conftest.$ac_ext
33322cat >>conftest.$ac_ext <<_ACEOF
33323/* end confdefs.h. */
33324$ac_includes_default
33325#include <$ac_header>
33326_ACEOF
33327rm -f conftest.$ac_objext
33328if { (ac_try="$ac_compile"
33329case "(($ac_try" in
33330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33331 *) ac_try_echo=$ac_try;;
33332esac
33333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33334 (eval "$ac_compile") 2>conftest.er1
33335 ac_status=$?
33336 grep -v '^ *+' conftest.er1 >conftest.err
33337 rm -f conftest.er1
33338 cat conftest.err >&5
33339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); } && {
33341 test -z "$ac_c_werror_flag" ||
33342 test ! -s conftest.err
33343 } && test -s conftest.$ac_objext; then
33344 ac_header_compiler=yes
33345else
33346 echo "$as_me: failed program was:" >&5
33347sed 's/^/| /' conftest.$ac_ext >&5
33348
33349 ac_header_compiler=no
33350fi
33351
33352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33353{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33354echo "${ECHO_T}$ac_header_compiler" >&6; }
33355
33356# Is the header present?
33357{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33359cat >conftest.$ac_ext <<_ACEOF
33360/* confdefs.h. */
33361_ACEOF
33362cat confdefs.h >>conftest.$ac_ext
33363cat >>conftest.$ac_ext <<_ACEOF
33364/* end confdefs.h. */
33365#include <$ac_header>
33366_ACEOF
33367if { (ac_try="$ac_cpp conftest.$ac_ext"
33368case "(($ac_try" in
33369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370 *) ac_try_echo=$ac_try;;
33371esac
33372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33374 ac_status=$?
33375 grep -v '^ *+' conftest.er1 >conftest.err
33376 rm -f conftest.er1
33377 cat conftest.err >&5
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } >/dev/null && {
33380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33381 test ! -s conftest.err
33382 }; then
33383 ac_header_preproc=yes
33384else
33385 echo "$as_me: failed program was:" >&5
33386sed 's/^/| /' conftest.$ac_ext >&5
33387
33388 ac_header_preproc=no
33389fi
33390
33391rm -f conftest.err conftest.$ac_ext
33392{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33393echo "${ECHO_T}$ac_header_preproc" >&6; }
33394
33395# So? What about this header?
33396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33397 yes:no: )
33398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33402 ac_header_preproc=yes
33403 ;;
33404 no:yes:* )
33405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33417 ( cat <<\_ASBOX
33418## ------------------------------------------- ##
33419## Report this to openssh-unix-dev@mindrot.org ##
33420## ------------------------------------------- ##
33421_ASBOX
33422 ) | sed "s/^/$as_me: WARNING: /" >&2
33423 ;;
33424esac
33425{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33428 echo $ECHO_N "(cached) $ECHO_C" >&6
33429else
33430 eval "$as_ac_Header=\$ac_header_preproc"
33431fi
33432ac_res=`eval echo '${'$as_ac_Header'}'`
33433 { echo "$as_me:$LINENO: result: $ac_res" >&5
33434echo "${ECHO_T}$ac_res" >&6; }
33435
33436fi
33437if test `eval echo '${'$as_ac_Header'}'` = yes; then
33438 cat >>confdefs.h <<_ACEOF
33439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33440_ACEOF
33441
33442fi
33443
33444done
33445
33446
33447
33448for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
33449do
33450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33455 echo $ECHO_N "(cached) $ECHO_C" >&6
33456fi
33457ac_res=`eval echo '${'$as_ac_Header'}'`
33458 { echo "$as_me:$LINENO: result: $ac_res" >&5
33459echo "${ECHO_T}$ac_res" >&6; }
33460else
33461 # Is the header compilable?
33462{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33464cat >conftest.$ac_ext <<_ACEOF
33465/* confdefs.h. */
33466_ACEOF
33467cat confdefs.h >>conftest.$ac_ext
33468cat >>conftest.$ac_ext <<_ACEOF
33469/* end confdefs.h. */
33470$ac_includes_default
33471#include <$ac_header>
33472_ACEOF
33473rm -f conftest.$ac_objext
33474if { (ac_try="$ac_compile"
33475case "(($ac_try" in
33476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33477 *) ac_try_echo=$ac_try;;
33478esac
33479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33480 (eval "$ac_compile") 2>conftest.er1
33481 ac_status=$?
33482 grep -v '^ *+' conftest.er1 >conftest.err
33483 rm -f conftest.er1
33484 cat conftest.err >&5
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); } && {
33487 test -z "$ac_c_werror_flag" ||
33488 test ! -s conftest.err
33489 } && test -s conftest.$ac_objext; then
33490 ac_header_compiler=yes
33491else
33492 echo "$as_me: failed program was:" >&5
33493sed 's/^/| /' conftest.$ac_ext >&5
33494
33495 ac_header_compiler=no
33496fi
33497
33498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33499{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33500echo "${ECHO_T}$ac_header_compiler" >&6; }
33501
33502# Is the header present?
33503{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33504echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33505cat >conftest.$ac_ext <<_ACEOF
33506/* confdefs.h. */
33507_ACEOF
33508cat confdefs.h >>conftest.$ac_ext
33509cat >>conftest.$ac_ext <<_ACEOF
33510/* end confdefs.h. */
33511#include <$ac_header>
33512_ACEOF
33513if { (ac_try="$ac_cpp conftest.$ac_ext"
33514case "(($ac_try" in
33515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33516 *) ac_try_echo=$ac_try;;
33517esac
33518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33520 ac_status=$?
33521 grep -v '^ *+' conftest.er1 >conftest.err
33522 rm -f conftest.er1
33523 cat conftest.err >&5
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); } >/dev/null && {
33526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33527 test ! -s conftest.err
33528 }; then
33529 ac_header_preproc=yes
33530else
33531 echo "$as_me: failed program was:" >&5
33532sed 's/^/| /' conftest.$ac_ext >&5
33533
33534 ac_header_preproc=no
33535fi
33536
33537rm -f conftest.err conftest.$ac_ext
33538{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33539echo "${ECHO_T}$ac_header_preproc" >&6; }
33540
33541# So? What about this header?
33542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33543 yes:no: )
33544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33545echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33547echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33548 ac_header_preproc=yes
33549 ;;
33550 no:yes:* )
33551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33552echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33554echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33556echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33558echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33560echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33562echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33563 ( cat <<\_ASBOX
33564## ------------------------------------------- ##
33565## Report this to openssh-unix-dev@mindrot.org ##
33566## ------------------------------------------- ##
33567_ASBOX
33568 ) | sed "s/^/$as_me: WARNING: /" >&2
33569 ;;
33570esac
33571{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33575else
33576 eval "$as_ac_Header=\$ac_header_preproc"
33577fi
33578ac_res=`eval echo '${'$as_ac_Header'}'`
33579 { echo "$as_me:$LINENO: result: $ac_res" >&5
33580echo "${ECHO_T}$ac_res" >&6; }
33581
33582fi
33583if test `eval echo '${'$as_ac_Header'}'` = yes; then
33584 cat >>confdefs.h <<_ACEOF
33585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33586_ACEOF
33587
33588fi
33589
33590done
33591
33592
33593 { echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
33594echo $ECHO_N "checking for library containing k_hasafs... $ECHO_C" >&6; }
33595if test "${ac_cv_search_k_hasafs+set}" = set; then
33596 echo $ECHO_N "(cached) $ECHO_C" >&6
33597else
33598 ac_func_search_save_LIBS=$LIBS
33599cat >conftest.$ac_ext <<_ACEOF
33600/* confdefs.h. */
33601_ACEOF
33602cat confdefs.h >>conftest.$ac_ext
33603cat >>conftest.$ac_ext <<_ACEOF
33604/* end confdefs.h. */
33605
33606/* Override any GCC internal prototype to avoid an error.
33607 Use char because int might match the return type of a GCC
33608 builtin and then its argument prototype would still apply. */
33609#ifdef __cplusplus
33610extern "C"
33611#endif
33612char k_hasafs ();
33613int
33614main ()
33615{
33616return k_hasafs ();
33617 ;
33618 return 0;
33619}
33620_ACEOF
33621for ac_lib in '' kafs; do
33622 if test -z "$ac_lib"; then
33623 ac_res="none required"
33624 else
33625 ac_res=-l$ac_lib
33626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
33627 fi
33628 rm -f conftest.$ac_objext conftest$ac_exeext
33629if { (ac_try="$ac_link"
33630case "(($ac_try" in
33631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33632 *) ac_try_echo=$ac_try;;
33633esac
33634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33635 (eval "$ac_link") 2>conftest.er1
33636 ac_status=$?
33637 grep -v '^ *+' conftest.er1 >conftest.err
33638 rm -f conftest.er1
33639 cat conftest.err >&5
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } && {
33642 test -z "$ac_c_werror_flag" ||
33643 test ! -s conftest.err
33644 } && test -s conftest$ac_exeext &&
33645 $as_test_x conftest$ac_exeext; then
33646 ac_cv_search_k_hasafs=$ac_res
33647else
33648 echo "$as_me: failed program was:" >&5
33649sed 's/^/| /' conftest.$ac_ext >&5
33650
33651
33652fi
33653
33654rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33655 conftest$ac_exeext
33656 if test "${ac_cv_search_k_hasafs+set}" = set; then
33657 break
33658fi
33659done
33660if test "${ac_cv_search_k_hasafs+set}" = set; then
33661 :
33662else
33663 ac_cv_search_k_hasafs=no
33664fi
33665rm conftest.$ac_ext
33666LIBS=$ac_func_search_save_LIBS
33667fi
33668{ echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
33669echo "${ECHO_T}$ac_cv_search_k_hasafs" >&6; }
33670ac_res=$ac_cv_search_k_hasafs
33671if test "$ac_res" != no; then
33672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33673
33674cat >>confdefs.h <<\_ACEOF
33675#define USE_AFS 1
33676_ACEOF
33677
33678fi
33679
33680
33681 { echo "$as_me:$LINENO: checking whether GSS_C_NT_HOSTBASED_SERVICE is declared" >&5
33682echo $ECHO_N "checking whether GSS_C_NT_HOSTBASED_SERVICE is declared... $ECHO_C" >&6; }
33683if test "${ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE+set}" = set; then
33684 echo $ECHO_N "(cached) $ECHO_C" >&6
33685else
33686 cat >conftest.$ac_ext <<_ACEOF
33687/* confdefs.h. */
33688_ACEOF
33689cat confdefs.h >>conftest.$ac_ext
33690cat >>conftest.$ac_ext <<_ACEOF
33691/* end confdefs.h. */
33692
33693#ifdef HAVE_GSSAPI_H
33694# include <gssapi.h>
33695#elif defined(HAVE_GSSAPI_GSSAPI_H)
33696# include <gssapi/gssapi.h>
33697#endif
33698
33699#ifdef HAVE_GSSAPI_GENERIC_H
33700# include <gssapi_generic.h>
33701#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H)
33702# include <gssapi/gssapi_generic.h>
33703#endif
33704
33705
33706int
33707main ()
33708{
33709#ifndef GSS_C_NT_HOSTBASED_SERVICE
33710 (void) GSS_C_NT_HOSTBASED_SERVICE;
33711#endif
33712
33713 ;
33714 return 0;
33715}
33716_ACEOF
33717rm -f conftest.$ac_objext
33718if { (ac_try="$ac_compile"
33719case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33722esac
33723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_compile") 2>conftest.er1
33725 ac_status=$?
33726 grep -v '^ *+' conftest.er1 >conftest.err
33727 rm -f conftest.er1
33728 cat conftest.err >&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } && {
33731 test -z "$ac_c_werror_flag" ||
33732 test ! -s conftest.err
33733 } && test -s conftest.$ac_objext; then
33734 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=yes
33735else
33736 echo "$as_me: failed program was:" >&5
33737sed 's/^/| /' conftest.$ac_ext >&5
33738
33739 ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE=no
33740fi
33741
33742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33743fi
33744{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&5
33745echo "${ECHO_T}$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" >&6; }
33746if test $ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE = yes; then
33747
33748cat >>confdefs.h <<_ACEOF
33749#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 1
33750_ACEOF
33751
33752
33753else
33754 cat >>confdefs.h <<_ACEOF
33755#define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE 0
33756_ACEOF
33757
33758
33759fi
33760
33761
33762 saved_LIBS="$LIBS"
33763 LIBS="$LIBS $K5LIBS"
33764
33765
33766
33767for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message
33768do
33769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33770{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33772if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33773 echo $ECHO_N "(cached) $ECHO_C" >&6
33774else
33775 cat >conftest.$ac_ext <<_ACEOF
33776/* confdefs.h. */
33777_ACEOF
33778cat confdefs.h >>conftest.$ac_ext
33779cat >>conftest.$ac_ext <<_ACEOF
33780/* end confdefs.h. */
33781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33783#define $ac_func innocuous_$ac_func
33784
33785/* System header to define __stub macros and hopefully few prototypes,
33786 which can conflict with char $ac_func (); below.
33787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33788 <limits.h> exists even on freestanding compilers. */
33789
33790#ifdef __STDC__
33791# include <limits.h>
33792#else
33793# include <assert.h>
33794#endif
33795
33796#undef $ac_func
33797
33798/* Override any GCC internal prototype to avoid an error.
33799 Use char because int might match the return type of a GCC
33800 builtin and then its argument prototype would still apply. */
33801#ifdef __cplusplus
33802extern "C"
33803#endif
33804char $ac_func ();
33805/* The GNU C library defines this for functions which it implements
33806 to always fail with ENOSYS. Some functions are actually named
33807 something starting with __ and the normal name is an alias. */
33808#if defined __stub_$ac_func || defined __stub___$ac_func
33809choke me
33810#endif
33811
33812int
33813main ()
33814{
33815return $ac_func ();
33816 ;
33817 return 0;
33818}
33819_ACEOF
33820rm -f conftest.$ac_objext conftest$ac_exeext
33821if { (ac_try="$ac_link"
33822case "(($ac_try" in
33823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824 *) ac_try_echo=$ac_try;;
33825esac
33826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827 (eval "$ac_link") 2>conftest.er1
33828 ac_status=$?
33829 grep -v '^ *+' conftest.er1 >conftest.err
33830 rm -f conftest.er1
33831 cat conftest.err >&5
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); } && {
33834 test -z "$ac_c_werror_flag" ||
33835 test ! -s conftest.err
33836 } && test -s conftest$ac_exeext &&
33837 $as_test_x conftest$ac_exeext; then
33838 eval "$as_ac_var=yes"
33839else
33840 echo "$as_me: failed program was:" >&5
33841sed 's/^/| /' conftest.$ac_ext >&5
33842
33843 eval "$as_ac_var=no"
33844fi
33845
33846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33847 conftest$ac_exeext conftest.$ac_ext
33848fi
33849ac_res=`eval echo '${'$as_ac_var'}'`
33850 { echo "$as_me:$LINENO: result: $ac_res" >&5
33851echo "${ECHO_T}$ac_res" >&6; }
33852if test `eval echo '${'$as_ac_var'}'` = yes; then
33853 cat >>confdefs.h <<_ACEOF
33854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33855_ACEOF
33856
33857fi
33858done
33859
33860 LIBS="$saved_LIBS"
33861
33862 fi
33863
33864
33865fi
33866
33867
33868
33869
33870# Looking for programs, paths and files
33871
33872PRIVSEP_PATH=/var/empty
33873
33874# Check whether --with-privsep-path was given.
33875if test "${with_privsep_path+set}" = set; then
33876 withval=$with_privsep_path;
33877 if test -n "$withval" && test "x$withval" != "xno" && \
33878 test "x${withval}" != "xyes"; then
33879 PRIVSEP_PATH=$withval
33880 fi
33881
33882
33883fi
33884
33885
33886
33887
33888# Check whether --with-xauth was given.
33889if test "${with_xauth+set}" = set; then
33890 withval=$with_xauth;
33891 if test -n "$withval" && test "x$withval" != "xno" && \
33892 test "x${withval}" != "xyes"; then
33893 xauth_path=$withval
33894 fi
33895
33896else
33897
33898 TestPath="$PATH"
33899 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
33900 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
33901 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
33902 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
33903 # Extract the first word of "xauth", so it can be a program name with args.
33904set dummy xauth; ac_word=$2
33905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33907if test "${ac_cv_path_xauth_path+set}" = set; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33909else
33910 case $xauth_path in
33911 [\\/]* | ?:[\\/]*)
33912 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
33913 ;;
33914 *)
33915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33916for as_dir in $TestPath
33917do
33918 IFS=$as_save_IFS
33919 test -z "$as_dir" && as_dir=.
33920 for ac_exec_ext in '' $ac_executable_extensions; do
33921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33922 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
33923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33924 break 2
33925 fi
33926done
33927done
33928IFS=$as_save_IFS
33929
33930 ;;
33931esac
33932fi
33933xauth_path=$ac_cv_path_xauth_path
33934if test -n "$xauth_path"; then
33935 { echo "$as_me:$LINENO: result: $xauth_path" >&5
33936echo "${ECHO_T}$xauth_path" >&6; }
33937else
33938 { echo "$as_me:$LINENO: result: no" >&5
33939echo "${ECHO_T}no" >&6; }
33940fi
33941
33942
33943 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
33944 xauth_path="/usr/openwin/bin/xauth"
33945 fi
33946
33947
33948fi
33949
33950
33951STRIP_OPT=-s
33952# Check whether --enable-strip was given.
33953if test "${enable_strip+set}" = set; then
33954 enableval=$enable_strip;
33955 if test "x$enableval" = "xno" ; then
33956 STRIP_OPT=
33957 fi
33958
33959
33960fi
33961
33962
33963
33964if test -z "$xauth_path" ; then
33965 XAUTH_PATH="undefined"
33966
33967else
33968
33969cat >>confdefs.h <<_ACEOF
33970#define XAUTH_PATH "$xauth_path"
33971_ACEOF
33972
33973 XAUTH_PATH=$xauth_path
33974
33975fi
33976
33977# Check for mail directory
33978
33979# Check whether --with-maildir was given.
33980if test "${with_maildir+set}" = set; then
33981 withval=$with_maildir;
33982 if test "X$withval" != X && test "x$withval" != xno && \
33983 test "x${withval}" != xyes; then
33984
33985cat >>confdefs.h <<_ACEOF
33986#define MAIL_DIRECTORY "$withval"
33987_ACEOF
33988
33989 fi
33990
33991else
33992
33993 if test "X$maildir" != "X"; then
33994 cat >>confdefs.h <<_ACEOF
33995#define MAIL_DIRECTORY "$maildir"
33996_ACEOF
33997
33998 else
33999 { echo "$as_me:$LINENO: checking Discovering system mail directory" >&5
34000echo $ECHO_N "checking Discovering system mail directory... $ECHO_C" >&6; }
34001 if test "$cross_compiling" = yes; then
34002
34003 { echo "$as_me:$LINENO: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
34004echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
34005
34006
34007else
34008 cat >conftest.$ac_ext <<_ACEOF
34009/* confdefs.h. */
34010_ACEOF
34011cat confdefs.h >>conftest.$ac_ext
34012cat >>conftest.$ac_ext <<_ACEOF
34013/* end confdefs.h. */
34014
34015#include <stdio.h>
34016#include <string.h>
34017#ifdef HAVE_PATHS_H
34018#include <paths.h>
34019#endif
34020#ifdef HAVE_MAILLOCK_H
34021#include <maillock.h>
34022#endif
34023#define DATA "conftest.maildir"
34024
34025int
34026main ()
34027{
34028
34029 FILE *fd;
34030 int rc;
34031
34032 fd = fopen(DATA,"w");
34033 if(fd == NULL)
34034 exit(1);
34035
34036#if defined (_PATH_MAILDIR)
34037 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
34038 exit(1);
34039#elif defined (MAILDIR)
34040 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
34041 exit(1);
34042#elif defined (_PATH_MAIL)
34043 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
34044 exit(1);
34045#else
34046 exit (2);
34047#endif
34048
34049 exit(0);
34050
34051 ;
34052 return 0;
34053}
34054_ACEOF
34055rm -f conftest$ac_exeext
34056if { (ac_try="$ac_link"
34057case "(($ac_try" in
34058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059 *) ac_try_echo=$ac_try;;
34060esac
34061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062 (eval "$ac_link") 2>&5
34063 ac_status=$?
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34066 { (case "(($ac_try" in
34067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34068 *) ac_try_echo=$ac_try;;
34069esac
34070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34071 (eval "$ac_try") 2>&5
34072 ac_status=$?
34073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074 (exit $ac_status); }; }; then
34075
34076 maildir_what=`awk -F: '{print $1}' conftest.maildir`
34077 maildir=`awk -F: '{print $2}' conftest.maildir \
34078 | sed 's|/$||'`
34079 { echo "$as_me:$LINENO: result: Using: $maildir from $maildir_what" >&5
34080echo "${ECHO_T}Using: $maildir from $maildir_what" >&6; }
34081 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
34082 cat >>confdefs.h <<_ACEOF
34083#define MAIL_DIRECTORY "$maildir"
34084_ACEOF
34085
34086 fi
34087
34088else
34089 echo "$as_me: program exited with status $ac_status" >&5
34090echo "$as_me: failed program was:" >&5
34091sed 's/^/| /' conftest.$ac_ext >&5
34092
34093( exit $ac_status )
34094
34095 if test "X$ac_status" = "X2";then
34096# our test program didn't find it. Default to /var/spool/mail
34097 { echo "$as_me:$LINENO: result: Using: default value of /var/spool/mail" >&5
34098echo "${ECHO_T}Using: default value of /var/spool/mail" >&6; }
34099 cat >>confdefs.h <<_ACEOF
34100#define MAIL_DIRECTORY "/var/spool/mail"
34101_ACEOF
34102
34103 else
34104 { echo "$as_me:$LINENO: result: *** not found ***" >&5
34105echo "${ECHO_T}*** not found ***" >&6; }
34106 fi
34107
34108fi
34109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34110fi
34111
34112
34113 fi
34114
34115
34116fi
34117 # maildir
34118
34119if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
34120 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
34121echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
34122 disable_ptmx_check=yes
34123fi
34124if test -z "$no_dev_ptmx" ; then
34125 if test "x$disable_ptmx_check" != "xyes" ; then
34126 { echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
34127echo $ECHO_N "checking for \"/dev/ptmx\"... $ECHO_C" >&6; }
34128if test "${ac_cv_file___dev_ptmx_+set}" = set; then
34129 echo $ECHO_N "(cached) $ECHO_C" >&6
34130else
34131 test "$cross_compiling" = yes &&
34132 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34133echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34134 { (exit 1); exit 1; }; }
34135if test -r ""/dev/ptmx""; then
34136 ac_cv_file___dev_ptmx_=yes
34137else
34138 ac_cv_file___dev_ptmx_=no
34139fi
34140fi
34141{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
34142echo "${ECHO_T}$ac_cv_file___dev_ptmx_" >&6; }
34143if test $ac_cv_file___dev_ptmx_ = yes; then
34144
34145
34146cat >>confdefs.h <<_ACEOF
34147#define HAVE_DEV_PTMX 1
34148_ACEOF
34149
34150 have_dev_ptmx=1
34151
34152
34153fi
34154
34155 fi
34156fi
34157
34158if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
34159 { echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
34160echo $ECHO_N "checking for \"/dev/ptc\"... $ECHO_C" >&6; }
34161if test "${ac_cv_file___dev_ptc_+set}" = set; then
34162 echo $ECHO_N "(cached) $ECHO_C" >&6
34163else
34164 test "$cross_compiling" = yes &&
34165 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34166echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34167 { (exit 1); exit 1; }; }
34168if test -r ""/dev/ptc""; then
34169 ac_cv_file___dev_ptc_=yes
34170else
34171 ac_cv_file___dev_ptc_=no
34172fi
34173fi
34174{ echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
34175echo "${ECHO_T}$ac_cv_file___dev_ptc_" >&6; }
34176if test $ac_cv_file___dev_ptc_ = yes; then
34177
34178
34179cat >>confdefs.h <<_ACEOF
34180#define HAVE_DEV_PTS_AND_PTC 1
34181_ACEOF
34182
34183 have_dev_ptc=1
34184
34185
34186fi
34187
34188else
34189 { echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
34190echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
34191fi
34192
34193# Options from here on. Some of these are preset by platform above
34194
34195# Check whether --with-mantype was given.
34196if test "${with_mantype+set}" = set; then
34197 withval=$with_mantype;
34198 case "$withval" in
34199 man|cat|doc)
34200 MANTYPE=$withval
34201 ;;
34202 *)
34203 { { echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
34204echo "$as_me: error: invalid man type: $withval" >&2;}
34205 { (exit 1); exit 1; }; }
34206 ;;
34207 esac
34208
34209
34210fi
34211
34212if test -z "$MANTYPE"; then
34213 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
34214 for ac_prog in nroff awf
34215do
34216 # Extract the first word of "$ac_prog", so it can be a program name with args.
34217set dummy $ac_prog; ac_word=$2
34218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34220if test "${ac_cv_path_NROFF+set}" = set; then
34221 echo $ECHO_N "(cached) $ECHO_C" >&6
34222else
34223 case $NROFF in
34224 [\\/]* | ?:[\\/]*)
34225 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
34226 ;;
34227 *)
34228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34229for as_dir in $TestPath
34230do
34231 IFS=$as_save_IFS
34232 test -z "$as_dir" && as_dir=.
34233 for ac_exec_ext in '' $ac_executable_extensions; do
34234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34235 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
34236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34237 break 2
34238 fi
34239done
34240done
34241IFS=$as_save_IFS
34242
34243 ;;
34244esac
34245fi
34246NROFF=$ac_cv_path_NROFF
34247if test -n "$NROFF"; then
34248 { echo "$as_me:$LINENO: result: $NROFF" >&5
34249echo "${ECHO_T}$NROFF" >&6; }
34250else
34251 { echo "$as_me:$LINENO: result: no" >&5
34252echo "${ECHO_T}no" >&6; }
34253fi
34254
34255
34256 test -n "$NROFF" && break
34257done
34258test -n "$NROFF" || NROFF="/bin/false"
34259
34260 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
34261 MANTYPE=doc
34262 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
34263 MANTYPE=man
34264 else
34265 MANTYPE=cat
34266 fi
34267fi
34268
34269if test "$MANTYPE" = "doc"; then
34270 mansubdir=man;
34271else
34272 mansubdir=$MANTYPE;
34273fi
34274
34275
34276# Check whether to enable MD5 passwords
34277MD5_MSG="no"
34278
34279# Check whether --with-md5-passwords was given.
34280if test "${with_md5_passwords+set}" = set; then
34281 withval=$with_md5_passwords;
34282 if test "x$withval" != "xno" ; then
34283
34284cat >>confdefs.h <<\_ACEOF
34285#define HAVE_MD5_PASSWORDS 1
34286_ACEOF
34287
34288 MD5_MSG="yes"
34289 fi
34290
34291
34292fi
34293
34294
34295# Whether to disable shadow password support
34296
34297# Check whether --with-shadow was given.
34298if test "${with_shadow+set}" = set; then
34299 withval=$with_shadow;
34300 if test "x$withval" = "xno" ; then
34301 cat >>confdefs.h <<\_ACEOF
34302#define DISABLE_SHADOW 1
34303_ACEOF
34304
34305 disable_shadow=yes
34306 fi
34307
34308
34309fi
34310
34311
34312if test -z "$disable_shadow" ; then
34313 { echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
34314echo $ECHO_N "checking if the systems has expire shadow information... $ECHO_C" >&6; }
34315 cat >conftest.$ac_ext <<_ACEOF
34316/* confdefs.h. */
34317_ACEOF
34318cat confdefs.h >>conftest.$ac_ext
34319cat >>conftest.$ac_ext <<_ACEOF
34320/* end confdefs.h. */
34321
34322#include <sys/types.h>
34323#include <shadow.h>
34324struct spwd sp;
34325
34326int
34327main ()
34328{
34329 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
34330 ;
34331 return 0;
34332}
34333_ACEOF
34334rm -f conftest.$ac_objext
34335if { (ac_try="$ac_compile"
34336case "(($ac_try" in
34337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34338 *) ac_try_echo=$ac_try;;
34339esac
34340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34341 (eval "$ac_compile") 2>conftest.er1
34342 ac_status=$?
34343 grep -v '^ *+' conftest.er1 >conftest.err
34344 rm -f conftest.er1
34345 cat conftest.err >&5
34346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347 (exit $ac_status); } && {
34348 test -z "$ac_c_werror_flag" ||
34349 test ! -s conftest.err
34350 } && test -s conftest.$ac_objext; then
34351 sp_expire_available=yes
34352else
34353 echo "$as_me: failed program was:" >&5
34354sed 's/^/| /' conftest.$ac_ext >&5
34355
34356
34357
34358fi
34359
34360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34361
34362 if test "x$sp_expire_available" = "xyes" ; then
34363 { echo "$as_me:$LINENO: result: yes" >&5
34364echo "${ECHO_T}yes" >&6; }
34365
34366cat >>confdefs.h <<\_ACEOF
34367#define HAS_SHADOW_EXPIRE 1
34368_ACEOF
34369
34370 else
34371 { echo "$as_me:$LINENO: result: no" >&5
34372echo "${ECHO_T}no" >&6; }
34373 fi
34374fi
34375
34376# Use ip address instead of hostname in $DISPLAY
34377if test ! -z "$IPADDR_IN_DISPLAY" ; then
34378 DISPLAY_HACK_MSG="yes"
34379
34380cat >>confdefs.h <<\_ACEOF
34381#define IPADDR_IN_DISPLAY 1
34382_ACEOF
34383
34384else
34385 DISPLAY_HACK_MSG="no"
34386
34387# Check whether --with-ipaddr-display was given.
34388if test "${with_ipaddr_display+set}" = set; then
34389 withval=$with_ipaddr_display;
34390 if test "x$withval" != "xno" ; then
34391 cat >>confdefs.h <<\_ACEOF
34392#define IPADDR_IN_DISPLAY 1
34393_ACEOF
34394
34395 DISPLAY_HACK_MSG="yes"
34396 fi
34397
34398
34399fi
34400
34401fi
34402
34403# check for /etc/default/login and use it if present.
34404# Check whether --enable-etc-default-login was given.
34405if test "${enable_etc_default_login+set}" = set; then
34406 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
34407 { echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
34408echo "$as_me: /etc/default/login handling disabled" >&6;}
34409 etc_default_login=no
34410 else
34411 etc_default_login=yes
34412 fi
34413else
34414 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
34415 then
34416 { echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
34417echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
34418 etc_default_login=no
34419 else
34420 etc_default_login=yes
34421 fi
34422
34423fi
34424
34425
34426if test "x$etc_default_login" != "xno"; then
34427 { echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
34428echo $ECHO_N "checking for \"/etc/default/login\"... $ECHO_C" >&6; }
34429if test "${ac_cv_file___etc_default_login_+set}" = set; then
34430 echo $ECHO_N "(cached) $ECHO_C" >&6
34431else
34432 test "$cross_compiling" = yes &&
34433 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
34434echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
34435 { (exit 1); exit 1; }; }
34436if test -r ""/etc/default/login""; then
34437 ac_cv_file___etc_default_login_=yes
34438else
34439 ac_cv_file___etc_default_login_=no
34440fi
34441fi
34442{ echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
34443echo "${ECHO_T}$ac_cv_file___etc_default_login_" >&6; }
34444if test $ac_cv_file___etc_default_login_ = yes; then
34445 external_path_file=/etc/default/login
34446fi
34447
34448 if test "x$external_path_file" = "x/etc/default/login"; then
34449
34450cat >>confdefs.h <<\_ACEOF
34451#define HAVE_ETC_DEFAULT_LOGIN 1
34452_ACEOF
34453
34454 fi
34455fi
34456
34457if test $ac_cv_func_login_getcapbool = "yes" && \
34458 test $ac_cv_header_login_cap_h = "yes" ; then
34459 external_path_file=/etc/login.conf
34460fi
34461
34462# Whether to mess with the default path
34463SERVER_PATH_MSG="(default)"
34464
34465# Check whether --with-default-path was given.
34466if test "${with_default_path+set}" = set; then
34467 withval=$with_default_path;
34468 if test "x$external_path_file" = "x/etc/login.conf" ; then
34469 { echo "$as_me:$LINENO: WARNING:
34470--with-default-path=PATH has no effect on this system.
34471Edit /etc/login.conf instead." >&5
34472echo "$as_me: WARNING:
34473--with-default-path=PATH has no effect on this system.
34474Edit /etc/login.conf instead." >&2;}
34475 elif test "x$withval" != "xno" ; then
34476 if test ! -z "$external_path_file" ; then
34477 { echo "$as_me:$LINENO: WARNING:
34478--with-default-path=PATH will only be used if PATH is not defined in
34479$external_path_file ." >&5
34480echo "$as_me: WARNING:
34481--with-default-path=PATH will only be used if PATH is not defined in
34482$external_path_file ." >&2;}
34483 fi
34484 user_path="$withval"
34485 SERVER_PATH_MSG="$withval"
34486 fi
34487
34488else
34489 if test "x$external_path_file" = "x/etc/login.conf" ; then
34490 { echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
34491echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
34492 else
34493 if test ! -z "$external_path_file" ; then
34494 { echo "$as_me:$LINENO: WARNING:
34495If PATH is defined in $external_path_file, ensure the path to scp is included,
34496otherwise scp will not work." >&5
34497echo "$as_me: WARNING:
34498If PATH is defined in $external_path_file, ensure the path to scp is included,
34499otherwise scp will not work." >&2;}
34500 fi
34501 if test "$cross_compiling" = yes; then
34502 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34503
34504else
34505 cat >conftest.$ac_ext <<_ACEOF
34506/* confdefs.h. */
34507_ACEOF
34508cat confdefs.h >>conftest.$ac_ext
34509cat >>conftest.$ac_ext <<_ACEOF
34510/* end confdefs.h. */
34511
34512/* find out what STDPATH is */
34513#include <stdio.h>
34514#ifdef HAVE_PATHS_H
34515# include <paths.h>
34516#endif
34517#ifndef _PATH_STDPATH
34518# ifdef _PATH_USERPATH /* Irix */
34519# define _PATH_STDPATH _PATH_USERPATH
34520# else
34521# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
34522# endif
34523#endif
34524#include <sys/types.h>
34525#include <sys/stat.h>
34526#include <fcntl.h>
34527#define DATA "conftest.stdpath"
34528
34529int
34530main ()
34531{
34532
34533 FILE *fd;
34534 int rc;
34535
34536 fd = fopen(DATA,"w");
34537 if(fd == NULL)
34538 exit(1);
34539
34540 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
34541 exit(1);
34542
34543 exit(0);
34544
34545 ;
34546 return 0;
34547}
34548_ACEOF
34549rm -f conftest$ac_exeext
34550if { (ac_try="$ac_link"
34551case "(($ac_try" in
34552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553 *) ac_try_echo=$ac_try;;
34554esac
34555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34556 (eval "$ac_link") 2>&5
34557 ac_status=$?
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34560 { (case "(($ac_try" in
34561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34562 *) ac_try_echo=$ac_try;;
34563esac
34564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34565 (eval "$ac_try") 2>&5
34566 ac_status=$?
34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 (exit $ac_status); }; }; then
34569 user_path=`cat conftest.stdpath`
34570else
34571 echo "$as_me: program exited with status $ac_status" >&5
34572echo "$as_me: failed program was:" >&5
34573sed 's/^/| /' conftest.$ac_ext >&5
34574
34575( exit $ac_status )
34576 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
34577fi
34578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34579fi
34580
34581
34582# make sure $bindir is in USER_PATH so scp will work
34583 t_bindir="${bindir}"
34584 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
34585 t_bindir=`eval echo ${t_bindir}`
34586 case $t_bindir in
34587 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
34588 esac
34589 case $t_bindir in
34590 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
34591 esac
34592 done
34593 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
34594 if test $? -ne 0 ; then
34595 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
34596 if test $? -ne 0 ; then
34597 user_path=$user_path:$t_bindir
34598 { echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
34599echo "${ECHO_T}Adding $t_bindir to USER_PATH so scp will work" >&6; }
34600 fi
34601 fi
34602 fi
34603
34604fi
34605
34606if test "x$external_path_file" != "x/etc/login.conf" ; then
34607
34608cat >>confdefs.h <<_ACEOF
34609#define USER_PATH "$user_path"
34610_ACEOF
34611
34612
34613fi
34614
34615# Set superuser path separately to user path
34616
34617# Check whether --with-superuser-path was given.
34618if test "${with_superuser_path+set}" = set; then
34619 withval=$with_superuser_path;
34620 if test -n "$withval" && test "x$withval" != "xno" && \
34621 test "x${withval}" != "xyes"; then
34622
34623cat >>confdefs.h <<_ACEOF
34624#define SUPERUSER_PATH "$withval"
34625_ACEOF
34626
34627 superuser_path=$withval
34628 fi
34629
34630
34631fi
34632
34633
34634
34635{ echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
34636echo $ECHO_N "checking if we need to convert IPv4 in IPv6-mapped addresses... $ECHO_C" >&6; }
34637IPV4_IN6_HACK_MSG="no"
34638
34639# Check whether --with-4in6 was given.
34640if test "${with_4in6+set}" = set; then
34641 withval=$with_4in6;
34642 if test "x$withval" != "xno" ; then
34643 { echo "$as_me:$LINENO: result: yes" >&5
34644echo "${ECHO_T}yes" >&6; }
34645
34646cat >>confdefs.h <<\_ACEOF
34647#define IPV4_IN_IPV6 1
34648_ACEOF
34649
34650 IPV4_IN6_HACK_MSG="yes"
34651 else
34652 { echo "$as_me:$LINENO: result: no" >&5
34653echo "${ECHO_T}no" >&6; }
34654 fi
34655
34656else
34657
34658 if test "x$inet6_default_4in6" = "xyes"; then
34659 { echo "$as_me:$LINENO: result: yes (default)" >&5
34660echo "${ECHO_T}yes (default)" >&6; }
34661 cat >>confdefs.h <<\_ACEOF
34662#define IPV4_IN_IPV6 1
34663_ACEOF
34664
34665 IPV4_IN6_HACK_MSG="yes"
34666 else
34667 { echo "$as_me:$LINENO: result: no (default)" >&5
34668echo "${ECHO_T}no (default)" >&6; }
34669 fi
34670
34671
34672fi
34673
34674
34675# Whether to enable BSD auth support
34676BSD_AUTH_MSG=no
34677
34678# Check whether --with-bsd-auth was given.
34679if test "${with_bsd_auth+set}" = set; then
34680 withval=$with_bsd_auth;
34681 if test "x$withval" != "xno" ; then
34682
34683cat >>confdefs.h <<\_ACEOF
34684#define BSD_AUTH 1
34685_ACEOF
34686
34687 BSD_AUTH_MSG=yes
34688 fi
34689
34690
34691fi
34692
34693
34694# Where to place sshd.pid
34695piddir=/var/run
34696# make sure the directory exists
34697if test ! -d $piddir ; then
34698 piddir=`eval echo ${sysconfdir}`
34699 case $piddir in
34700 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
34701 esac
34702fi
34703
34704
34705# Check whether --with-pid-dir was given.
34706if test "${with_pid_dir+set}" = set; then
34707 withval=$with_pid_dir;
34708 if test -n "$withval" && test "x$withval" != "xno" && \
34709 test "x${withval}" != "xyes"; then
34710 piddir=$withval
34711 if test ! -d $piddir ; then
34712 { echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
34713echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
34714 fi
34715 fi
34716
34717
34718fi
34719
34720
34721
34722cat >>confdefs.h <<_ACEOF
34723#define _PATH_SSH_PIDDIR "$piddir"
34724_ACEOF
34725
34726
34727
34728# Check whether --enable-lastlog was given.
34729if test "${enable_lastlog+set}" = set; then
34730 enableval=$enable_lastlog;
34731 if test "x$enableval" = "xno" ; then
34732 cat >>confdefs.h <<\_ACEOF
34733#define DISABLE_LASTLOG 1
34734_ACEOF
34735
34736 fi
34737
34738
34739fi
34740
34741# Check whether --enable-utmp was given.
34742if test "${enable_utmp+set}" = set; then
34743 enableval=$enable_utmp;
34744 if test "x$enableval" = "xno" ; then
34745 cat >>confdefs.h <<\_ACEOF
34746#define DISABLE_UTMP 1
34747_ACEOF
34748
34749 fi
34750
34751
34752fi
34753
34754# Check whether --enable-utmpx was given.
34755if test "${enable_utmpx+set}" = set; then
34756 enableval=$enable_utmpx;
34757 if test "x$enableval" = "xno" ; then
34758
34759cat >>confdefs.h <<\_ACEOF
34760#define DISABLE_UTMPX 1
34761_ACEOF
34762
34763 fi
34764
34765
34766fi
34767
34768# Check whether --enable-wtmp was given.
34769if test "${enable_wtmp+set}" = set; then
34770 enableval=$enable_wtmp;
34771 if test "x$enableval" = "xno" ; then
34772 cat >>confdefs.h <<\_ACEOF
34773#define DISABLE_WTMP 1
34774_ACEOF
34775
34776 fi
34777
34778
34779fi
34780
34781# Check whether --enable-wtmpx was given.
34782if test "${enable_wtmpx+set}" = set; then
34783 enableval=$enable_wtmpx;
34784 if test "x$enableval" = "xno" ; then
34785
34786cat >>confdefs.h <<\_ACEOF
34787#define DISABLE_WTMPX 1
34788_ACEOF
34789
34790 fi
34791
34792
34793fi
34794
34795# Check whether --enable-libutil was given.
34796if test "${enable_libutil+set}" = set; then
34797 enableval=$enable_libutil;
34798 if test "x$enableval" = "xno" ; then
34799 cat >>confdefs.h <<\_ACEOF
34800#define DISABLE_LOGIN 1
34801_ACEOF
34802
34803 fi
34804
34805
34806fi
34807
34808# Check whether --enable-pututline was given.
34809if test "${enable_pututline+set}" = set; then
34810 enableval=$enable_pututline;
34811 if test "x$enableval" = "xno" ; then
34812
34813cat >>confdefs.h <<\_ACEOF
34814#define DISABLE_PUTUTLINE 1
34815_ACEOF
34816
34817 fi
34818
34819
34820fi
34821
34822# Check whether --enable-pututxline was given.
34823if test "${enable_pututxline+set}" = set; then
34824 enableval=$enable_pututxline;
34825 if test "x$enableval" = "xno" ; then
34826
34827cat >>confdefs.h <<\_ACEOF
34828#define DISABLE_PUTUTXLINE 1
34829_ACEOF
34830
34831 fi
34832
34833
34834fi
34835
34836
34837# Check whether --with-lastlog was given.
34838if test "${with_lastlog+set}" = set; then
34839 withval=$with_lastlog;
34840 if test "x$withval" = "xno" ; then
34841 cat >>confdefs.h <<\_ACEOF
34842#define DISABLE_LASTLOG 1
34843_ACEOF
34844
34845 elif test -n "$withval" && test "x${withval}" != "xyes"; then
34846 conf_lastlog_location=$withval
34847 fi
34848
34849
34850fi
34851
34852
34853
34854{ echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
34855echo $ECHO_N "checking if your system defines LASTLOG_FILE... $ECHO_C" >&6; }
34856cat >conftest.$ac_ext <<_ACEOF
34857/* confdefs.h. */
34858_ACEOF
34859cat confdefs.h >>conftest.$ac_ext
34860cat >>conftest.$ac_ext <<_ACEOF
34861/* end confdefs.h. */
34862
34863#include <sys/types.h>
34864#include <utmp.h>
34865#ifdef HAVE_LASTLOG_H
34866# include <lastlog.h>
34867#endif
34868#ifdef HAVE_PATHS_H
34869# include <paths.h>
34870#endif
34871#ifdef HAVE_LOGIN_H
34872# include <login.h>
34873#endif
34874
34875int
34876main ()
34877{
34878 char *lastlog = LASTLOG_FILE;
34879 ;
34880 return 0;
34881}
34882_ACEOF
34883rm -f conftest.$ac_objext
34884if { (ac_try="$ac_compile"
34885case "(($ac_try" in
34886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34887 *) ac_try_echo=$ac_try;;
34888esac
34889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34890 (eval "$ac_compile") 2>conftest.er1
34891 ac_status=$?
34892 grep -v '^ *+' conftest.er1 >conftest.err
34893 rm -f conftest.er1
34894 cat conftest.err >&5
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); } && {
34897 test -z "$ac_c_werror_flag" ||
34898 test ! -s conftest.err
34899 } && test -s conftest.$ac_objext; then
34900 { echo "$as_me:$LINENO: result: yes" >&5
34901echo "${ECHO_T}yes" >&6; }
34902else
34903 echo "$as_me: failed program was:" >&5
34904sed 's/^/| /' conftest.$ac_ext >&5
34905
34906
34907 { echo "$as_me:$LINENO: result: no" >&5
34908echo "${ECHO_T}no" >&6; }
34909 { echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
34910echo $ECHO_N "checking if your system defines _PATH_LASTLOG... $ECHO_C" >&6; }
34911 cat >conftest.$ac_ext <<_ACEOF
34912/* confdefs.h. */
34913_ACEOF
34914cat confdefs.h >>conftest.$ac_ext
34915cat >>conftest.$ac_ext <<_ACEOF
34916/* end confdefs.h. */
34917
34918#include <sys/types.h>
34919#include <utmp.h>
34920#ifdef HAVE_LASTLOG_H
34921# include <lastlog.h>
34922#endif
34923#ifdef HAVE_PATHS_H
34924# include <paths.h>
34925#endif
34926
34927int
34928main ()
34929{
34930 char *lastlog = _PATH_LASTLOG;
34931 ;
34932 return 0;
34933}
34934_ACEOF
34935rm -f conftest.$ac_objext
34936if { (ac_try="$ac_compile"
34937case "(($ac_try" in
34938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939 *) ac_try_echo=$ac_try;;
34940esac
34941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942 (eval "$ac_compile") 2>conftest.er1
34943 ac_status=$?
34944 grep -v '^ *+' conftest.er1 >conftest.err
34945 rm -f conftest.er1
34946 cat conftest.err >&5
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); } && {
34949 test -z "$ac_c_werror_flag" ||
34950 test ! -s conftest.err
34951 } && test -s conftest.$ac_objext; then
34952 { echo "$as_me:$LINENO: result: yes" >&5
34953echo "${ECHO_T}yes" >&6; }
34954else
34955 echo "$as_me: failed program was:" >&5
34956sed 's/^/| /' conftest.$ac_ext >&5
34957
34958
34959 { echo "$as_me:$LINENO: result: no" >&5
34960echo "${ECHO_T}no" >&6; }
34961 system_lastlog_path=no
34962
34963fi
34964
34965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34966
34967fi
34968
34969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34970
34971if test -z "$conf_lastlog_location"; then
34972 if test x"$system_lastlog_path" = x"no" ; then
34973 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
34974 if (test -d "$f" || test -f "$f") ; then
34975 conf_lastlog_location=$f
34976 fi
34977 done
34978 if test -z "$conf_lastlog_location"; then
34979 { echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
34980echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
34981 fi
34982 fi
34983fi
34984
34985if test -n "$conf_lastlog_location"; then
34986
34987cat >>confdefs.h <<_ACEOF
34988#define CONF_LASTLOG_FILE "$conf_lastlog_location"
34989_ACEOF
34990
34991fi
34992
34993{ echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
34994echo $ECHO_N "checking if your system defines UTMP_FILE... $ECHO_C" >&6; }
34995cat >conftest.$ac_ext <<_ACEOF
34996/* confdefs.h. */
34997_ACEOF
34998cat confdefs.h >>conftest.$ac_ext
34999cat >>conftest.$ac_ext <<_ACEOF
35000/* end confdefs.h. */
35001
35002#include <sys/types.h>
35003#include <utmp.h>
35004#ifdef HAVE_PATHS_H
35005# include <paths.h>
35006#endif
35007
35008int
35009main ()
35010{
35011 char *utmp = UTMP_FILE;
35012 ;
35013 return 0;
35014}
35015_ACEOF
35016rm -f conftest.$ac_objext
35017if { (ac_try="$ac_compile"
35018case "(($ac_try" in
35019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35020 *) ac_try_echo=$ac_try;;
35021esac
35022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35023 (eval "$ac_compile") 2>conftest.er1
35024 ac_status=$?
35025 grep -v '^ *+' conftest.er1 >conftest.err
35026 rm -f conftest.er1
35027 cat conftest.err >&5
35028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029 (exit $ac_status); } && {
35030 test -z "$ac_c_werror_flag" ||
35031 test ! -s conftest.err
35032 } && test -s conftest.$ac_objext; then
35033 { echo "$as_me:$LINENO: result: yes" >&5
35034echo "${ECHO_T}yes" >&6; }
35035else
35036 echo "$as_me: failed program was:" >&5
35037sed 's/^/| /' conftest.$ac_ext >&5
35038
35039 { echo "$as_me:$LINENO: result: no" >&5
35040echo "${ECHO_T}no" >&6; }
35041 system_utmp_path=no
35042
35043fi
35044
35045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35046if test -z "$conf_utmp_location"; then
35047 if test x"$system_utmp_path" = x"no" ; then
35048 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
35049 if test -f $f ; then
35050 conf_utmp_location=$f
35051 fi
35052 done
35053 if test -z "$conf_utmp_location"; then
35054 cat >>confdefs.h <<\_ACEOF
35055#define DISABLE_UTMP 1
35056_ACEOF
35057
35058 fi
35059 fi
35060fi
35061if test -n "$conf_utmp_location"; then
35062
35063cat >>confdefs.h <<_ACEOF
35064#define CONF_UTMP_FILE "$conf_utmp_location"
35065_ACEOF
35066
35067fi
35068
35069{ echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
35070echo $ECHO_N "checking if your system defines WTMP_FILE... $ECHO_C" >&6; }
35071cat >conftest.$ac_ext <<_ACEOF
35072/* confdefs.h. */
35073_ACEOF
35074cat confdefs.h >>conftest.$ac_ext
35075cat >>conftest.$ac_ext <<_ACEOF
35076/* end confdefs.h. */
35077
35078#include <sys/types.h>
35079#include <utmp.h>
35080#ifdef HAVE_PATHS_H
35081# include <paths.h>
35082#endif
35083
35084int
35085main ()
35086{
35087 char *wtmp = WTMP_FILE;
35088 ;
35089 return 0;
35090}
35091_ACEOF
35092rm -f conftest.$ac_objext
35093if { (ac_try="$ac_compile"
35094case "(($ac_try" in
35095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35096 *) ac_try_echo=$ac_try;;
35097esac
35098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35099 (eval "$ac_compile") 2>conftest.er1
35100 ac_status=$?
35101 grep -v '^ *+' conftest.er1 >conftest.err
35102 rm -f conftest.er1
35103 cat conftest.err >&5
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); } && {
35106 test -z "$ac_c_werror_flag" ||
35107 test ! -s conftest.err
35108 } && test -s conftest.$ac_objext; then
35109 { echo "$as_me:$LINENO: result: yes" >&5
35110echo "${ECHO_T}yes" >&6; }
35111else
35112 echo "$as_me: failed program was:" >&5
35113sed 's/^/| /' conftest.$ac_ext >&5
35114
35115 { echo "$as_me:$LINENO: result: no" >&5
35116echo "${ECHO_T}no" >&6; }
35117 system_wtmp_path=no
35118
35119fi
35120
35121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35122if test -z "$conf_wtmp_location"; then
35123 if test x"$system_wtmp_path" = x"no" ; then
35124 for f in /usr/adm/wtmp /var/log/wtmp; do
35125 if test -f $f ; then
35126 conf_wtmp_location=$f
35127 fi
35128 done
35129 if test -z "$conf_wtmp_location"; then
35130 cat >>confdefs.h <<\_ACEOF
35131#define DISABLE_WTMP 1
35132_ACEOF
35133
35134 fi
35135 fi
35136fi
35137if test -n "$conf_wtmp_location"; then
35138
35139cat >>confdefs.h <<_ACEOF
35140#define CONF_WTMP_FILE "$conf_wtmp_location"
35141_ACEOF
35142
35143fi
35144
35145{ echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
35146echo $ECHO_N "checking if your system defines WTMPX_FILE... $ECHO_C" >&6; }
35147cat >conftest.$ac_ext <<_ACEOF
35148/* confdefs.h. */
35149_ACEOF
35150cat confdefs.h >>conftest.$ac_ext
35151cat >>conftest.$ac_ext <<_ACEOF
35152/* end confdefs.h. */
35153
35154#include <sys/types.h>
35155#include <utmp.h>
35156#ifdef HAVE_UTMPX_H
35157#include <utmpx.h>
35158#endif
35159#ifdef HAVE_PATHS_H
35160# include <paths.h>
35161#endif
35162
35163int
35164main ()
35165{
35166 char *wtmpx = WTMPX_FILE;
35167 ;
35168 return 0;
35169}
35170_ACEOF
35171rm -f conftest.$ac_objext
35172if { (ac_try="$ac_compile"
35173case "(($ac_try" in
35174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175 *) ac_try_echo=$ac_try;;
35176esac
35177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178 (eval "$ac_compile") 2>conftest.er1
35179 ac_status=$?
35180 grep -v '^ *+' conftest.er1 >conftest.err
35181 rm -f conftest.er1
35182 cat conftest.err >&5
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); } && {
35185 test -z "$ac_c_werror_flag" ||
35186 test ! -s conftest.err
35187 } && test -s conftest.$ac_objext; then
35188 { echo "$as_me:$LINENO: result: yes" >&5
35189echo "${ECHO_T}yes" >&6; }
35190else
35191 echo "$as_me: failed program was:" >&5
35192sed 's/^/| /' conftest.$ac_ext >&5
35193
35194 { echo "$as_me:$LINENO: result: no" >&5
35195echo "${ECHO_T}no" >&6; }
35196 system_wtmpx_path=no
35197
35198fi
35199
35200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35201if test -z "$conf_wtmpx_location"; then
35202 if test x"$system_wtmpx_path" = x"no" ; then
35203 cat >>confdefs.h <<\_ACEOF
35204#define DISABLE_WTMPX 1
35205_ACEOF
35206
35207 fi
35208else
35209
35210cat >>confdefs.h <<_ACEOF
35211#define CONF_WTMPX_FILE "$conf_wtmpx_location"
35212_ACEOF
35213
35214fi
35215
35216
35217if test ! -z "$blibpath" ; then
35218 LDFLAGS="$LDFLAGS $blibflags$blibpath"
35219 { echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
35220echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
35221fi
35222
35223{ echo "$as_me:$LINENO: checking for struct lastlog.ll_line" >&5
35224echo $ECHO_N "checking for struct lastlog.ll_line... $ECHO_C" >&6; }
35225if test "${ac_cv_member_struct_lastlog_ll_line+set}" = set; then
35226 echo $ECHO_N "(cached) $ECHO_C" >&6
35227else
35228 cat >conftest.$ac_ext <<_ACEOF
35229/* confdefs.h. */
35230_ACEOF
35231cat confdefs.h >>conftest.$ac_ext
35232cat >>conftest.$ac_ext <<_ACEOF
35233/* end confdefs.h. */
35234
35235#ifdef HAVE_SYS_TYPES_H
35236#include <sys/types.h>
35237#endif
35238#ifdef HAVE_UTMP_H
35239#include <utmp.h>
35240#endif
35241#ifdef HAVE_UTMPX_H
35242#include <utmpx.h>
35243#endif
35244#ifdef HAVE_LASTLOG_H
35245#include <lastlog.h>
35246#endif
35247
35248
35249int
35250main ()
35251{
35252static struct lastlog ac_aggr;
35253if (ac_aggr.ll_line)
35254return 0;
35255 ;
35256 return 0;
35257}
35258_ACEOF
35259rm -f conftest.$ac_objext
35260if { (ac_try="$ac_compile"
35261case "(($ac_try" in
35262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35263 *) ac_try_echo=$ac_try;;
35264esac
35265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35266 (eval "$ac_compile") 2>conftest.er1
35267 ac_status=$?
35268 grep -v '^ *+' conftest.er1 >conftest.err
35269 rm -f conftest.er1
35270 cat conftest.err >&5
35271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35272 (exit $ac_status); } && {
35273 test -z "$ac_c_werror_flag" ||
35274 test ! -s conftest.err
35275 } && test -s conftest.$ac_objext; then
35276 ac_cv_member_struct_lastlog_ll_line=yes
35277else
35278 echo "$as_me: failed program was:" >&5
35279sed 's/^/| /' conftest.$ac_ext >&5
35280
35281 cat >conftest.$ac_ext <<_ACEOF
35282/* confdefs.h. */
35283_ACEOF
35284cat confdefs.h >>conftest.$ac_ext
35285cat >>conftest.$ac_ext <<_ACEOF
35286/* end confdefs.h. */
35287
35288#ifdef HAVE_SYS_TYPES_H
35289#include <sys/types.h>
35290#endif
35291#ifdef HAVE_UTMP_H
35292#include <utmp.h>
35293#endif
35294#ifdef HAVE_UTMPX_H
35295#include <utmpx.h>
35296#endif
35297#ifdef HAVE_LASTLOG_H
35298#include <lastlog.h>
35299#endif
35300
35301
35302int
35303main ()
35304{
35305static struct lastlog ac_aggr;
35306if (sizeof ac_aggr.ll_line)
35307return 0;
35308 ;
35309 return 0;
35310}
35311_ACEOF
35312rm -f conftest.$ac_objext
35313if { (ac_try="$ac_compile"
35314case "(($ac_try" in
35315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35316 *) ac_try_echo=$ac_try;;
35317esac
35318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35319 (eval "$ac_compile") 2>conftest.er1
35320 ac_status=$?
35321 grep -v '^ *+' conftest.er1 >conftest.err
35322 rm -f conftest.er1
35323 cat conftest.err >&5
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); } && {
35326 test -z "$ac_c_werror_flag" ||
35327 test ! -s conftest.err
35328 } && test -s conftest.$ac_objext; then
35329 ac_cv_member_struct_lastlog_ll_line=yes
35330else
35331 echo "$as_me: failed program was:" >&5
35332sed 's/^/| /' conftest.$ac_ext >&5
35333
35334 ac_cv_member_struct_lastlog_ll_line=no
35335fi
35336
35337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35338fi
35339
35340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35341fi
35342{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_lastlog_ll_line" >&5
35343echo "${ECHO_T}$ac_cv_member_struct_lastlog_ll_line" >&6; }
35344if test $ac_cv_member_struct_lastlog_ll_line = yes; then
35345 :
35346else
35347
35348 if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then
35349 cat >>confdefs.h <<\_ACEOF
35350#define DISABLE_LASTLOG 1
35351_ACEOF
35352
35353 fi
35354
35355fi
35356
35357
35358{ echo "$as_me:$LINENO: checking for struct utmp.ut_line" >&5
35359echo $ECHO_N "checking for struct utmp.ut_line... $ECHO_C" >&6; }
35360if test "${ac_cv_member_struct_utmp_ut_line+set}" = set; then
35361 echo $ECHO_N "(cached) $ECHO_C" >&6
35362else
35363 cat >conftest.$ac_ext <<_ACEOF
35364/* confdefs.h. */
35365_ACEOF
35366cat confdefs.h >>conftest.$ac_ext
35367cat >>conftest.$ac_ext <<_ACEOF
35368/* end confdefs.h. */
35369
35370#ifdef HAVE_SYS_TYPES_H
35371#include <sys/types.h>
35372#endif
35373#ifdef HAVE_UTMP_H
35374#include <utmp.h>
35375#endif
35376#ifdef HAVE_UTMPX_H
35377#include <utmpx.h>
35378#endif
35379#ifdef HAVE_LASTLOG_H
35380#include <lastlog.h>
35381#endif
35382
35383
35384int
35385main ()
35386{
35387static struct utmp ac_aggr;
35388if (ac_aggr.ut_line)
35389return 0;
35390 ;
35391 return 0;
35392}
35393_ACEOF
35394rm -f conftest.$ac_objext
35395if { (ac_try="$ac_compile"
35396case "(($ac_try" in
35397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35398 *) ac_try_echo=$ac_try;;
35399esac
35400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35401 (eval "$ac_compile") 2>conftest.er1
35402 ac_status=$?
35403 grep -v '^ *+' conftest.er1 >conftest.err
35404 rm -f conftest.er1
35405 cat conftest.err >&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } && {
35408 test -z "$ac_c_werror_flag" ||
35409 test ! -s conftest.err
35410 } && test -s conftest.$ac_objext; then
35411 ac_cv_member_struct_utmp_ut_line=yes
35412else
35413 echo "$as_me: failed program was:" >&5
35414sed 's/^/| /' conftest.$ac_ext >&5
35415
35416 cat >conftest.$ac_ext <<_ACEOF
35417/* confdefs.h. */
35418_ACEOF
35419cat confdefs.h >>conftest.$ac_ext
35420cat >>conftest.$ac_ext <<_ACEOF
35421/* end confdefs.h. */
35422
35423#ifdef HAVE_SYS_TYPES_H
35424#include <sys/types.h>
35425#endif
35426#ifdef HAVE_UTMP_H
35427#include <utmp.h>
35428#endif
35429#ifdef HAVE_UTMPX_H
35430#include <utmpx.h>
35431#endif
35432#ifdef HAVE_LASTLOG_H
35433#include <lastlog.h>
35434#endif
35435
35436
35437int
35438main ()
35439{
35440static struct utmp ac_aggr;
35441if (sizeof ac_aggr.ut_line)
35442return 0;
35443 ;
35444 return 0;
35445}
35446_ACEOF
35447rm -f conftest.$ac_objext
35448if { (ac_try="$ac_compile"
35449case "(($ac_try" in
35450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35451 *) ac_try_echo=$ac_try;;
35452esac
35453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35454 (eval "$ac_compile") 2>conftest.er1
35455 ac_status=$?
35456 grep -v '^ *+' conftest.er1 >conftest.err
35457 rm -f conftest.er1
35458 cat conftest.err >&5
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); } && {
35461 test -z "$ac_c_werror_flag" ||
35462 test ! -s conftest.err
35463 } && test -s conftest.$ac_objext; then
35464 ac_cv_member_struct_utmp_ut_line=yes
35465else
35466 echo "$as_me: failed program was:" >&5
35467sed 's/^/| /' conftest.$ac_ext >&5
35468
35469 ac_cv_member_struct_utmp_ut_line=no
35470fi
35471
35472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35473fi
35474
35475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35476fi
35477{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_line" >&5
35478echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_line" >&6; }
35479if test $ac_cv_member_struct_utmp_ut_line = yes; then
35480 :
35481else
35482
35483 cat >>confdefs.h <<\_ACEOF
35484#define DISABLE_UTMP 1
35485_ACEOF
35486
35487 cat >>confdefs.h <<\_ACEOF
35488#define DISABLE_WTMP 1
35489_ACEOF
35490
35491
35492fi
35493
35494
35495CFLAGS="$CFLAGS $werror_flags"
35496
35497if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
35498 TEST_SSH_IPV6=no
35499else
35500 TEST_SSH_IPV6=yes
35501fi
35502{ echo "$as_me:$LINENO: checking whether BROKEN_GETADDRINFO is declared" >&5
35503echo $ECHO_N "checking whether BROKEN_GETADDRINFO is declared... $ECHO_C" >&6; }
35504if test "${ac_cv_have_decl_BROKEN_GETADDRINFO+set}" = set; then
35505 echo $ECHO_N "(cached) $ECHO_C" >&6
35506else
35507 cat >conftest.$ac_ext <<_ACEOF
35508/* confdefs.h. */
35509_ACEOF
35510cat confdefs.h >>conftest.$ac_ext
35511cat >>conftest.$ac_ext <<_ACEOF
35512/* end confdefs.h. */
35513$ac_includes_default
35514int
35515main ()
35516{
35517#ifndef BROKEN_GETADDRINFO
35518 (void) BROKEN_GETADDRINFO;
35519#endif
35520
35521 ;
35522 return 0;
35523}
35524_ACEOF
35525rm -f conftest.$ac_objext
35526if { (ac_try="$ac_compile"
35527case "(($ac_try" in
35528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35529 *) ac_try_echo=$ac_try;;
35530esac
35531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35532 (eval "$ac_compile") 2>conftest.er1
35533 ac_status=$?
35534 grep -v '^ *+' conftest.er1 >conftest.err
35535 rm -f conftest.er1
35536 cat conftest.err >&5
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); } && {
35539 test -z "$ac_c_werror_flag" ||
35540 test ! -s conftest.err
35541 } && test -s conftest.$ac_objext; then
35542 ac_cv_have_decl_BROKEN_GETADDRINFO=yes
35543else
35544 echo "$as_me: failed program was:" >&5
35545sed 's/^/| /' conftest.$ac_ext >&5
35546
35547 ac_cv_have_decl_BROKEN_GETADDRINFO=no
35548fi
35549
35550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35551fi
35552{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_BROKEN_GETADDRINFO" >&5
35553echo "${ECHO_T}$ac_cv_have_decl_BROKEN_GETADDRINFO" >&6; }
35554if test $ac_cv_have_decl_BROKEN_GETADDRINFO = yes; then
35555 TEST_SSH_IPV6=no
35556fi
35557
35558TEST_SSH_IPV6=$TEST_SSH_IPV6
35559
35560TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS
35561
35562UNSUPPORTED_ALGORITHMS=$unsupported_algorithms
35563
35564
35565
35566ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
35567
35568cat >confcache <<\_ACEOF
35569# This file is a shell script that caches the results of configure
35570# tests run on this system so they can be shared between configure
35571# scripts and configure runs, see configure's option --config-cache.
35572# It is not useful on other systems. If it contains results you don't
35573# want to keep, you may remove or edit it.
35574#
35575# config.status only pays attention to the cache file if you give it
35576# the --recheck option to rerun configure.
35577#
35578# `ac_cv_env_foo' variables (set or unset) will be overridden when
35579# loading this file, other *unset* `ac_cv_foo' will be assigned the
35580# following values.
35581
35582_ACEOF
35583
35584# The following way of writing the cache mishandles newlines in values,
35585# but we know of no workaround that is simple, portable, and efficient.
35586# So, we kill variables containing newlines.
35587# Ultrix sh set writes to stderr and can't be redirected directly,
35588# and sets the high bit in the cache file unless we assign to the vars.
35589(
35590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35591 eval ac_val=\$$ac_var
35592 case $ac_val in #(
35593 *${as_nl}*)
35594 case $ac_var in #(
35595 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35596echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35597 esac
35598 case $ac_var in #(
35599 _ | IFS | as_nl) ;; #(
35600 *) $as_unset $ac_var ;;
35601 esac ;;
35602 esac
35603 done
35604
35605 (set) 2>&1 |
35606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35607 *${as_nl}ac_space=\ *)
35608 # `set' does not quote correctly, so add quotes (double-quote
35609 # substitution turns \\\\ into \\, and sed turns \\ into \).
35610 sed -n \
35611 "s/'/'\\\\''/g;
35612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35613 ;; #(
35614 *)
35615 # `set' quotes correctly as required by POSIX, so do not add quotes.
35616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35617 ;;
35618 esac |
35619 sort
35620) |
35621 sed '
35622 /^ac_cv_env_/b end
35623 t clear
35624 :clear
35625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35626 t end
35627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35628 :end' >>confcache
35629if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35630 if test -w "$cache_file"; then
35631 test "x$cache_file" != "x/dev/null" &&
35632 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35633echo "$as_me: updating cache $cache_file" >&6;}
35634 cat confcache >$cache_file
35635 else
35636 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35637echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35638 fi
35639fi
35640rm -f confcache
35641
35642test "x$prefix" = xNONE && prefix=$ac_default_prefix
35643# Let make expand exec_prefix.
35644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35645
35646DEFS=-DHAVE_CONFIG_H
35647
35648ac_libobjs=
35649ac_ltlibobjs=
35650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35651 # 1. Remove the extension, and $U if already installed.
35652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35653 ac_i=`echo "$ac_i" | sed "$ac_script"`
35654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35655 # will be set to the directory where LIBOBJS objects are built.
35656 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35657 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35658done
35659LIBOBJS=$ac_libobjs
35660
35661LTLIBOBJS=$ac_ltlibobjs
35662
35663
35664
35665: ${CONFIG_STATUS=./config.status}
35666ac_clean_files_save=$ac_clean_files
35667ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35668{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35669echo "$as_me: creating $CONFIG_STATUS" >&6;}
35670cat >$CONFIG_STATUS <<_ACEOF
35671#! $SHELL
35672# Generated by $as_me.
35673# Run this file to recreate the current configuration.
35674# Compiler output produced by configure, useful for debugging
35675# configure, is in config.log if it exists.
35676
35677debug=false
35678ac_cs_recheck=false
35679ac_cs_silent=false
35680SHELL=\${CONFIG_SHELL-$SHELL}
35681_ACEOF
35682
35683cat >>$CONFIG_STATUS <<\_ACEOF
35684## --------------------- ##
35685## M4sh Initialization. ##
35686## --------------------- ##
35687
35688# Be more Bourne compatible
35689DUALCASE=1; export DUALCASE # for MKS sh
35690if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35691 emulate sh
35692 NULLCMD=:
35693 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35694 # is contrary to our usage. Disable this feature.
35695 alias -g '${1+"$@"}'='"$@"'
35696 setopt NO_GLOB_SUBST
35697else
35698 case `(set -o) 2>/dev/null` in
35699 *posix*) set -o posix ;;
35700esac
35701
35702fi
35703
35704
35705
35706
35707# PATH needs CR
35708# Avoid depending upon Character Ranges.
35709as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35710as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35711as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35712as_cr_digits='0123456789'
35713as_cr_alnum=$as_cr_Letters$as_cr_digits
35714
35715# The user is always right.
35716if test "${PATH_SEPARATOR+set}" != set; then
35717 echo "#! /bin/sh" >conf$$.sh
35718 echo "exit 0" >>conf$$.sh
35719 chmod +x conf$$.sh
35720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35721 PATH_SEPARATOR=';'
35722 else
35723 PATH_SEPARATOR=:
35724 fi
35725 rm -f conf$$.sh
35726fi
35727
35728# Support unset when possible.
35729if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35730 as_unset=unset
35731else
35732 as_unset=false
35733fi
35734
35735
35736# IFS
35737# We need space, tab and new line, in precisely that order. Quoting is
35738# there to prevent editors from complaining about space-tab.
35739# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35740# splitting by setting IFS to empty value.)
35741as_nl='
35742'
35743IFS=" "" $as_nl"
35744
35745# Find who we are. Look in the path if we contain no directory separator.
35746case $0 in
35747 *[\\/]* ) as_myself=$0 ;;
35748 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35749for as_dir in $PATH
35750do
35751 IFS=$as_save_IFS
35752 test -z "$as_dir" && as_dir=.
35753 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35754done
35755IFS=$as_save_IFS
35756
35757 ;;
35758esac
35759# We did not find ourselves, most probably we were run as `sh COMMAND'
35760# in which case we are not to be found in the path.
35761if test "x$as_myself" = x; then
35762 as_myself=$0
35763fi
35764if test ! -f "$as_myself"; then
35765 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35766 { (exit 1); exit 1; }
35767fi
35768
35769# Work around bugs in pre-3.0 UWIN ksh.
35770for as_var in ENV MAIL MAILPATH
35771do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35772done
35773PS1='$ '
35774PS2='> '
35775PS4='+ '
35776
35777# NLS nuisances.
35778for as_var in \
35779 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35780 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35781 LC_TELEPHONE LC_TIME
35782do
35783 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35784 eval $as_var=C; export $as_var
35785 else
35786 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35787 fi
35788done
35789
35790# Required to use basename.
35791if expr a : '\(a\)' >/dev/null 2>&1 &&
35792 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35793 as_expr=expr
35794else
35795 as_expr=false
35796fi
35797
35798if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35799 as_basename=basename
35800else
35801 as_basename=false
35802fi
35803
35804
35805# Name of the executable.
35806as_me=`$as_basename -- "$0" ||
35807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35808 X"$0" : 'X\(//\)$' \| \
35809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35810echo X/"$0" |
35811 sed '/^.*\/\([^/][^/]*\)\/*$/{
35812 s//\1/
35813 q
35814 }
35815 /^X\/\(\/\/\)$/{
35816 s//\1/
35817 q
35818 }
35819 /^X\/\(\/\).*/{
35820 s//\1/
35821 q
35822 }
35823 s/.*/./; q'`
35824
35825# CDPATH.
35826$as_unset CDPATH
35827
35828
35829
35830 as_lineno_1=$LINENO
35831 as_lineno_2=$LINENO
35832 test "x$as_lineno_1" != "x$as_lineno_2" &&
35833 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35834
35835 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35836 # uniformly replaced by the line number. The first 'sed' inserts a
35837 # line-number line after each line using $LINENO; the second 'sed'
35838 # does the real work. The second script uses 'N' to pair each
35839 # line-number line with the line containing $LINENO, and appends
35840 # trailing '-' during substitution so that $LINENO is not a special
35841 # case at line end.
35842 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35843 # scripts with optimization help from Paolo Bonzini. Blame Lee
35844 # E. McMahon (1931-1989) for sed's syntax. :-)
35845 sed -n '
35846 p
35847 /[$]LINENO/=
35848 ' <$as_myself |
35849 sed '
35850 s/[$]LINENO.*/&-/
35851 t lineno
35852 b
35853 :lineno
35854 N
35855 :loop
35856 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35857 t loop
35858 s/-\n.*//
35859 ' >$as_me.lineno &&
35860 chmod +x "$as_me.lineno" ||
35861 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35862 { (exit 1); exit 1; }; }
35863
35864 # Don't try to exec as it changes $[0], causing all sort of problems
35865 # (the dirname of $[0] is not the place where we might find the
35866 # original and so on. Autoconf is especially sensitive to this).
35867 . "./$as_me.lineno"
35868 # Exit status is that of the last command.
35869 exit
35870}
35871
35872
35873if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35874 as_dirname=dirname
35875else
35876 as_dirname=false
35877fi
35878
35879ECHO_C= ECHO_N= ECHO_T=
35880case `echo -n x` in
35881-n*)
35882 case `echo 'x\c'` in
35883 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35884 *) ECHO_C='\c';;
35885 esac;;
35886*)
35887 ECHO_N='-n';;
35888esac
35889
35890if expr a : '\(a\)' >/dev/null 2>&1 &&
35891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35892 as_expr=expr
35893else
35894 as_expr=false
35895fi
35896
35897rm -f conf$$ conf$$.exe conf$$.file
35898if test -d conf$$.dir; then
35899 rm -f conf$$.dir/conf$$.file
35900else
35901 rm -f conf$$.dir
35902 mkdir conf$$.dir
35903fi
35904echo >conf$$.file
35905if ln -s conf$$.file conf$$ 2>/dev/null; then
35906 as_ln_s='ln -s'
35907 # ... but there are two gotchas:
35908 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35909 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35910 # In both cases, we have to default to `cp -p'.
35911 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35912 as_ln_s='cp -p'
35913elif ln conf$$.file conf$$ 2>/dev/null; then
35914 as_ln_s=ln
35915else
35916 as_ln_s='cp -p'
35917fi
35918rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35919rmdir conf$$.dir 2>/dev/null
35920
35921if mkdir -p . 2>/dev/null; then
35922 as_mkdir_p=:
35923else
35924 test -d ./-p && rmdir ./-p
35925 as_mkdir_p=false
35926fi
35927
35928if test -x / >/dev/null 2>&1; then
35929 as_test_x='test -x'
35930else
35931 if ls -dL / >/dev/null 2>&1; then
35932 as_ls_L_option=L
35933 else
35934 as_ls_L_option=
35935 fi
35936 as_test_x='
35937 eval sh -c '\''
35938 if test -d "$1"; then
35939 test -d "$1/.";
35940 else
35941 case $1 in
35942 -*)set "./$1";;
35943 esac;
35944 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35945 ???[sx]*):;;*)false;;esac;fi
35946 '\'' sh
35947 '
35948fi
35949as_executable_p=$as_test_x
35950
35951# Sed expression to map a string onto a valid CPP name.
35952as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35953
35954# Sed expression to map a string onto a valid variable name.
35955as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35956
35957
35958exec 6>&1
35959
35960# Save the log message, to keep $[0] and so on meaningful, and to
35961# report actual input values of CONFIG_FILES etc. instead of their
35962# values after options handling.
35963ac_log="
35964This file was extended by OpenSSH $as_me Portable, which was
35965generated by GNU Autoconf 2.61. Invocation command line was
35966
35967 CONFIG_FILES = $CONFIG_FILES
35968 CONFIG_HEADERS = $CONFIG_HEADERS
35969 CONFIG_LINKS = $CONFIG_LINKS
35970 CONFIG_COMMANDS = $CONFIG_COMMANDS
35971 $ $0 $@
35972
35973on `(hostname || uname -n) 2>/dev/null | sed 1q`
35974"
35975
35976_ACEOF
35977
35978cat >>$CONFIG_STATUS <<_ACEOF
35979# Files that config.status was made for.
35980config_files="$ac_config_files"
35981config_headers="$ac_config_headers"
35982
35983_ACEOF
35984
35985cat >>$CONFIG_STATUS <<\_ACEOF
35986ac_cs_usage="\
35987\`$as_me' instantiates files from templates according to the
35988current configuration.
35989
35990Usage: $0 [OPTIONS] [FILE]...
35991
35992 -h, --help print this help, then exit
35993 -V, --version print version number and configuration settings, then exit
35994 -q, --quiet do not print progress messages
35995 -d, --debug don't remove temporary files
35996 --recheck update $as_me by reconfiguring in the same conditions
35997 --file=FILE[:TEMPLATE]
35998 instantiate the configuration file FILE
35999 --header=FILE[:TEMPLATE]
36000 instantiate the configuration header FILE
36001
36002Configuration files:
36003$config_files
36004
36005Configuration headers:
36006$config_headers
36007
36008Report bugs to <bug-autoconf@gnu.org>."
36009
36010_ACEOF
36011cat >>$CONFIG_STATUS <<_ACEOF
36012ac_cs_version="\\
36013OpenSSH config.status Portable
36014configured by $0, generated by GNU Autoconf 2.61,
36015 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
36016
36017Copyright (C) 2006 Free Software Foundation, Inc.
36018This config.status script is free software; the Free Software Foundation
36019gives unlimited permission to copy, distribute and modify it."
36020
36021ac_pwd='$ac_pwd'
36022srcdir='$srcdir'
36023INSTALL='$INSTALL'
36024_ACEOF
36025
36026cat >>$CONFIG_STATUS <<\_ACEOF
36027# If no file are specified by the user, then we need to provide default
36028# value. By we need to know if files were specified by the user.
36029ac_need_defaults=:
36030while test $# != 0
36031do
36032 case $1 in
36033 --*=*)
36034 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36035 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36036 ac_shift=:
36037 ;;
36038 *)
36039 ac_option=$1
36040 ac_optarg=$2
36041 ac_shift=shift
36042 ;;
36043 esac
36044
36045 case $ac_option in
36046 # Handling of the options.
36047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36048 ac_cs_recheck=: ;;
36049 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36050 echo "$ac_cs_version"; exit ;;
36051 --debug | --debu | --deb | --de | --d | -d )
36052 debug=: ;;
36053 --file | --fil | --fi | --f )
36054 $ac_shift
36055 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36056 ac_need_defaults=false;;
36057 --header | --heade | --head | --hea )
36058 $ac_shift
36059 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36060 ac_need_defaults=false;;
36061 --he | --h)
36062 # Conflict between --help and --header
36063 { echo "$as_me: error: ambiguous option: $1
36064Try \`$0 --help' for more information." >&2
36065 { (exit 1); exit 1; }; };;
36066 --help | --hel | -h )
36067 echo "$ac_cs_usage"; exit ;;
36068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36069 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36070 ac_cs_silent=: ;;
36071
36072 # This is an error.
36073 -*) { echo "$as_me: error: unrecognized option: $1
36074Try \`$0 --help' for more information." >&2
36075 { (exit 1); exit 1; }; } ;;
36076
36077 *) ac_config_targets="$ac_config_targets $1"
36078 ac_need_defaults=false ;;
36079
36080 esac
36081 shift
36082done
36083
36084ac_configure_extra_args=
36085
36086if $ac_cs_silent; then
36087 exec 6>/dev/null
36088 ac_configure_extra_args="$ac_configure_extra_args --silent"
36089fi
36090
36091_ACEOF
36092cat >>$CONFIG_STATUS <<_ACEOF
36093if \$ac_cs_recheck; then
36094 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36095 CONFIG_SHELL=$SHELL
36096 export CONFIG_SHELL
36097 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36098fi
36099
36100_ACEOF
36101cat >>$CONFIG_STATUS <<\_ACEOF
36102exec 5>>config.log
36103{
36104 echo
36105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36106## Running $as_me. ##
36107_ASBOX
36108 echo "$ac_log"
36109} >&5
36110
36111_ACEOF
36112cat >>$CONFIG_STATUS <<_ACEOF
36113_ACEOF
36114
36115cat >>$CONFIG_STATUS <<\_ACEOF
36116
36117# Handling of arguments.
36118for ac_config_target in $ac_config_targets
36119do
36120 case $ac_config_target in
36121 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36123 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
36124 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
36125 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
36126 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
36127 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
36128 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
36129
36130 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36131echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36132 { (exit 1); exit 1; }; };;
36133 esac
36134done
36135
36136
36137# If the user did not use the arguments to specify the items to instantiate,
36138# then the envvar interface is used. Set only those that are not.
36139# We use the long form for the default assignment because of an extremely
36140# bizarre bug on SunOS 4.1.3.
36141if $ac_need_defaults; then
36142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36144fi
36145
36146# Have a temporary directory for convenience. Make it in the build tree
36147# simply because there is no reason against having it here, and in addition,
36148# creating and moving files from /tmp can sometimes cause problems.
36149# Hook for its removal unless debugging.
36150# Note that there is a small window in which the directory will not be cleaned:
36151# after its creation but before its name has been assigned to `$tmp'.
36152$debug ||
36153{
36154 tmp=
36155 trap 'exit_status=$?
36156 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36157' 0
36158 trap '{ (exit 1); exit 1; }' 1 2 13 15
36159}
36160# Create a (secure) tmp directory for tmp files.
36161
36162{
36163 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36164 test -n "$tmp" && test -d "$tmp"
36165} ||
36166{
36167 tmp=./conf$$-$RANDOM
36168 (umask 077 && mkdir "$tmp")
36169} ||
36170{
36171 echo "$me: cannot create a temporary directory in ." >&2
36172 { (exit 1); exit 1; }
36173}
36174
36175#
36176# Set up the sed scripts for CONFIG_FILES section.
36177#
36178
36179# No need to generate the scripts if there are no CONFIG_FILES.
36180# This happens for instance when ./config.status config.h
36181if test -n "$CONFIG_FILES"; then
36182
36183_ACEOF
36184
36185
36186
36187ac_delim='%!_!# '
36188for ac_last_try in false false false false false :; do
36189 cat >conf$$subs.sed <<_ACEOF
36190SHELL!$SHELL$ac_delim
36191PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36192PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36193PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36194PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36195PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36196PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36197exec_prefix!$exec_prefix$ac_delim
36198prefix!$prefix$ac_delim
36199program_transform_name!$program_transform_name$ac_delim
36200bindir!$bindir$ac_delim
36201sbindir!$sbindir$ac_delim
36202libexecdir!$libexecdir$ac_delim
36203datarootdir!$datarootdir$ac_delim
36204datadir!$datadir$ac_delim
36205sysconfdir!$sysconfdir$ac_delim
36206sharedstatedir!$sharedstatedir$ac_delim
36207localstatedir!$localstatedir$ac_delim
36208includedir!$includedir$ac_delim
36209oldincludedir!$oldincludedir$ac_delim
36210docdir!$docdir$ac_delim
36211infodir!$infodir$ac_delim
36212htmldir!$htmldir$ac_delim
36213dvidir!$dvidir$ac_delim
36214pdfdir!$pdfdir$ac_delim
36215psdir!$psdir$ac_delim
36216libdir!$libdir$ac_delim
36217localedir!$localedir$ac_delim
36218mandir!$mandir$ac_delim
36219DEFS!$DEFS$ac_delim
36220ECHO_C!$ECHO_C$ac_delim
36221ECHO_N!$ECHO_N$ac_delim
36222ECHO_T!$ECHO_T$ac_delim
36223LIBS!$LIBS$ac_delim
36224build_alias!$build_alias$ac_delim
36225host_alias!$host_alias$ac_delim
36226target_alias!$target_alias$ac_delim
36227CC!$CC$ac_delim
36228CFLAGS!$CFLAGS$ac_delim
36229LDFLAGS!$LDFLAGS$ac_delim
36230CPPFLAGS!$CPPFLAGS$ac_delim
36231ac_ct_CC!$ac_ct_CC$ac_delim
36232EXEEXT!$EXEEXT$ac_delim
36233OBJEXT!$OBJEXT$ac_delim
36234build!$build$ac_delim
36235build_cpu!$build_cpu$ac_delim
36236build_vendor!$build_vendor$ac_delim
36237build_os!$build_os$ac_delim
36238host!$host$ac_delim
36239host_cpu!$host_cpu$ac_delim
36240host_vendor!$host_vendor$ac_delim
36241host_os!$host_os$ac_delim
36242CPP!$CPP$ac_delim
36243GREP!$GREP$ac_delim
36244EGREP!$EGREP$ac_delim
36245AWK!$AWK$ac_delim
36246RANLIB!$RANLIB$ac_delim
36247INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36248INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36249INSTALL_DATA!$INSTALL_DATA$ac_delim
36250AR!$AR$ac_delim
36251ac_ct_AR!$ac_ct_AR$ac_delim
36252CAT!$CAT$ac_delim
36253KILL!$KILL$ac_delim
36254PERL!$PERL$ac_delim
36255SED!$SED$ac_delim
36256ENT!$ENT$ac_delim
36257TEST_MINUS_S_SH!$TEST_MINUS_S_SH$ac_delim
36258SH!$SH$ac_delim
36259GROFF!$GROFF$ac_delim
36260NROFF!$NROFF$ac_delim
36261MANDOC!$MANDOC$ac_delim
36262TEST_SHELL!$TEST_SHELL$ac_delim
36263MANFMT!$MANFMT$ac_delim
36264PATH_GROUPADD_PROG!$PATH_GROUPADD_PROG$ac_delim
36265PATH_USERADD_PROG!$PATH_USERADD_PROG$ac_delim
36266MAKE_PACKAGE_SUPPORTED!$MAKE_PACKAGE_SUPPORTED$ac_delim
36267STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
36268LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
36269PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
36270LD!$LD$ac_delim
36271PKGCONFIG!$PKGCONFIG$ac_delim
36272LIBEDIT!$LIBEDIT$ac_delim
36273TEST_SSH_ECC!$TEST_SSH_ECC$ac_delim
36274COMMENT_OUT_ECC!$COMMENT_OUT_ECC$ac_delim
36275SSH_PRIVSEP_USER!$SSH_PRIVSEP_USER$ac_delim
36276SSHLIBS!$SSHLIBS$ac_delim
36277SSHDLIBS!$SSHDLIBS$ac_delim
36278KRB5CONF!$KRB5CONF$ac_delim
36279GSSLIBS!$GSSLIBS$ac_delim
36280K5LIBS!$K5LIBS$ac_delim
36281PRIVSEP_PATH!$PRIVSEP_PATH$ac_delim
36282xauth_path!$xauth_path$ac_delim
36283STRIP_OPT!$STRIP_OPT$ac_delim
36284XAUTH_PATH!$XAUTH_PATH$ac_delim
36285MANTYPE!$MANTYPE$ac_delim
36286mansubdir!$mansubdir$ac_delim
36287_ACEOF
36288
36289 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36290 break
36291 elif $ac_last_try; then
36292 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36293echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36294 { (exit 1); exit 1; }; }
36295 else
36296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36297 fi
36298done
36299
36300ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36301if test -n "$ac_eof"; then
36302 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36303 ac_eof=`expr $ac_eof + 1`
36304fi
36305
36306cat >>$CONFIG_STATUS <<_ACEOF
36307cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36308/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36309_ACEOF
36310sed '
36311s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36312s/^/s,@/; s/!/@,|#_!!_#|/
36313:n
36314t n
36315s/'"$ac_delim"'$/,g/; t
36316s/$/\\/; p
36317N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36318' >>$CONFIG_STATUS <conf$$subs.sed
36319rm -f conf$$subs.sed
36320cat >>$CONFIG_STATUS <<_ACEOF
36321CEOF$ac_eof
36322_ACEOF
36323
36324
36325ac_delim='%!_!# '
36326for ac_last_try in false false false false false :; do
36327 cat >conf$$subs.sed <<_ACEOF
36328user_path!$user_path$ac_delim
36329piddir!$piddir$ac_delim
36330TEST_SSH_IPV6!$TEST_SSH_IPV6$ac_delim
36331TEST_MALLOC_OPTIONS!$TEST_MALLOC_OPTIONS$ac_delim
36332UNSUPPORTED_ALGORITHMS!$UNSUPPORTED_ALGORITHMS$ac_delim
36333LIBOBJS!$LIBOBJS$ac_delim
36334LTLIBOBJS!$LTLIBOBJS$ac_delim
36335_ACEOF
36336
36337 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
36338 break
36339 elif $ac_last_try; then
36340 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36341echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36342 { (exit 1); exit 1; }; }
36343 else
36344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36345 fi
36346done
36347
36348ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36349if test -n "$ac_eof"; then
36350 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36351 ac_eof=`expr $ac_eof + 1`
36352fi
36353
36354cat >>$CONFIG_STATUS <<_ACEOF
36355cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36356/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36357_ACEOF
36358sed '
36359s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36360s/^/s,@/; s/!/@,|#_!!_#|/
36361:n
36362t n
36363s/'"$ac_delim"'$/,g/; t
36364s/$/\\/; p
36365N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36366' >>$CONFIG_STATUS <conf$$subs.sed
36367rm -f conf$$subs.sed
36368cat >>$CONFIG_STATUS <<_ACEOF
36369:end
36370s/|#_!!_#|//g
36371CEOF$ac_eof
36372_ACEOF
36373
36374
36375# VPATH may cause trouble with some makes, so we remove $(srcdir),
36376# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36377# trailing colons and then remove the whole line if VPATH becomes empty
36378# (actually we leave an empty line to preserve line numbers).
36379if test "x$srcdir" = x.; then
36380 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36381s/:*\$(srcdir):*/:/
36382s/:*\${srcdir}:*/:/
36383s/:*@srcdir@:*/:/
36384s/^\([^=]*=[ ]*\):*/\1/
36385s/:*$//
36386s/^[^=]*=[ ]*$//
36387}'
36388fi
36389
36390cat >>$CONFIG_STATUS <<\_ACEOF
36391fi # test -n "$CONFIG_FILES"
36392
36393
36394for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
36395do
36396 case $ac_tag in
36397 :[FHLC]) ac_mode=$ac_tag; continue;;
36398 esac
36399 case $ac_mode$ac_tag in
36400 :[FHL]*:*);;
36401 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36402echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36403 { (exit 1); exit 1; }; };;
36404 :[FH]-) ac_tag=-:-;;
36405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36406 esac
36407 ac_save_IFS=$IFS
36408 IFS=:
36409 set x $ac_tag
36410 IFS=$ac_save_IFS
36411 shift
36412 ac_file=$1
36413 shift
36414
36415 case $ac_mode in
36416 :L) ac_source=$1;;
36417 :[FH])
36418 ac_file_inputs=
36419 for ac_f
36420 do
36421 case $ac_f in
36422 -) ac_f="$tmp/stdin";;
36423 *) # Look for the file first in the build tree, then in the source tree
36424 # (if the path is not absolute). The absolute path cannot be DOS-style,
36425 # because $ac_f cannot contain `:'.
36426 test -f "$ac_f" ||
36427 case $ac_f in
36428 [\\/$]*) false;;
36429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36430 esac ||
36431 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36432echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36433 { (exit 1); exit 1; }; };;
36434 esac
36435 ac_file_inputs="$ac_file_inputs $ac_f"
36436 done
36437
36438 # Let's still pretend it is `configure' which instantiates (i.e., don't
36439 # use $as_me), people would be surprised to read:
36440 # /* config.h. Generated by config.status. */
36441 configure_input="Generated from "`IFS=:
36442 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36443 if test x"$ac_file" != x-; then
36444 configure_input="$ac_file. $configure_input"
36445 { echo "$as_me:$LINENO: creating $ac_file" >&5
36446echo "$as_me: creating $ac_file" >&6;}
36447 fi
36448
36449 case $ac_tag in
36450 *:-:* | *:-) cat >"$tmp/stdin";;
36451 esac
36452 ;;
36453 esac
36454
36455 ac_dir=`$as_dirname -- "$ac_file" ||
36456$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36457 X"$ac_file" : 'X\(//\)[^/]' \| \
36458 X"$ac_file" : 'X\(//\)$' \| \
36459 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36460echo X"$ac_file" |
36461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36462 s//\1/
36463 q
36464 }
36465 /^X\(\/\/\)[^/].*/{
36466 s//\1/
36467 q
36468 }
36469 /^X\(\/\/\)$/{
36470 s//\1/
36471 q
36472 }
36473 /^X\(\/\).*/{
36474 s//\1/
36475 q
36476 }
36477 s/.*/./; q'`
36478 { as_dir="$ac_dir"
36479 case $as_dir in #(
36480 -*) as_dir=./$as_dir;;
36481 esac
36482 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36483 as_dirs=
36484 while :; do
36485 case $as_dir in #(
36486 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36487 *) as_qdir=$as_dir;;
36488 esac
36489 as_dirs="'$as_qdir' $as_dirs"
36490 as_dir=`$as_dirname -- "$as_dir" ||
36491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36492 X"$as_dir" : 'X\(//\)[^/]' \| \
36493 X"$as_dir" : 'X\(//\)$' \| \
36494 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36495echo X"$as_dir" |
36496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36497 s//\1/
36498 q
36499 }
36500 /^X\(\/\/\)[^/].*/{
36501 s//\1/
36502 q
36503 }
36504 /^X\(\/\/\)$/{
36505 s//\1/
36506 q
36507 }
36508 /^X\(\/\).*/{
36509 s//\1/
36510 q
36511 }
36512 s/.*/./; q'`
36513 test -d "$as_dir" && break
36514 done
36515 test -z "$as_dirs" || eval "mkdir $as_dirs"
36516 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36517echo "$as_me: error: cannot create directory $as_dir" >&2;}
36518 { (exit 1); exit 1; }; }; }
36519 ac_builddir=.
36520
36521case "$ac_dir" in
36522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36523*)
36524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36525 # A ".." for each directory in $ac_dir_suffix.
36526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36527 case $ac_top_builddir_sub in
36528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36530 esac ;;
36531esac
36532ac_abs_top_builddir=$ac_pwd
36533ac_abs_builddir=$ac_pwd$ac_dir_suffix
36534# for backward compatibility:
36535ac_top_builddir=$ac_top_build_prefix
36536
36537case $srcdir in
36538 .) # We are building in place.
36539 ac_srcdir=.
36540 ac_top_srcdir=$ac_top_builddir_sub
36541 ac_abs_top_srcdir=$ac_pwd ;;
36542 [\\/]* | ?:[\\/]* ) # Absolute name.
36543 ac_srcdir=$srcdir$ac_dir_suffix;
36544 ac_top_srcdir=$srcdir
36545 ac_abs_top_srcdir=$srcdir ;;
36546 *) # Relative name.
36547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36548 ac_top_srcdir=$ac_top_build_prefix$srcdir
36549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36550esac
36551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36552
36553
36554 case $ac_mode in
36555 :F)
36556 #
36557 # CONFIG_FILE
36558 #
36559
36560 case $INSTALL in
36561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36562 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36563 esac
36564_ACEOF
36565
36566cat >>$CONFIG_STATUS <<\_ACEOF
36567# If the template does not know about datarootdir, expand it.
36568# FIXME: This hack should be removed a few years after 2.60.
36569ac_datarootdir_hack=; ac_datarootdir_seen=
36570
36571case `sed -n '/datarootdir/ {
36572 p
36573 q
36574}
36575/@datadir@/p
36576/@docdir@/p
36577/@infodir@/p
36578/@localedir@/p
36579/@mandir@/p
36580' $ac_file_inputs` in
36581*datarootdir*) ac_datarootdir_seen=yes;;
36582*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36583 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36584echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36585_ACEOF
36586cat >>$CONFIG_STATUS <<_ACEOF
36587 ac_datarootdir_hack='
36588 s&@datadir@&$datadir&g
36589 s&@docdir@&$docdir&g
36590 s&@infodir@&$infodir&g
36591 s&@localedir@&$localedir&g
36592 s&@mandir@&$mandir&g
36593 s&\\\${datarootdir}&$datarootdir&g' ;;
36594esac
36595_ACEOF
36596
36597# Neutralize VPATH when `$srcdir' = `.'.
36598# Shell code in configure.ac might set extrasub.
36599# FIXME: do we really want to maintain this feature?
36600cat >>$CONFIG_STATUS <<_ACEOF
36601 sed "$ac_vpsub
36602$extrasub
36603_ACEOF
36604cat >>$CONFIG_STATUS <<\_ACEOF
36605:t
36606/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36607s&@configure_input@&$configure_input&;t t
36608s&@top_builddir@&$ac_top_builddir_sub&;t t
36609s&@srcdir@&$ac_srcdir&;t t
36610s&@abs_srcdir@&$ac_abs_srcdir&;t t
36611s&@top_srcdir@&$ac_top_srcdir&;t t
36612s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36613s&@builddir@&$ac_builddir&;t t
36614s&@abs_builddir@&$ac_abs_builddir&;t t
36615s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36616s&@INSTALL@&$ac_INSTALL&;t t
36617$ac_datarootdir_hack
36618" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36619
36620test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36621 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36623 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36624which seems to be undefined. Please make sure it is defined." >&5
36625echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36626which seems to be undefined. Please make sure it is defined." >&2;}
36627
36628 rm -f "$tmp/stdin"
36629 case $ac_file in
36630 -) cat "$tmp/out"; rm -f "$tmp/out";;
36631 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36632 esac
36633 ;;
36634 :H)
36635 #
36636 # CONFIG_HEADER
36637 #
36638_ACEOF
36639
36640# Transform confdefs.h into a sed script `conftest.defines', that
36641# substitutes the proper values into config.h.in to produce config.h.
36642rm -f conftest.defines conftest.tail
36643# First, append a space to every undef/define line, to ease matching.
36644echo 's/$/ /' >conftest.defines
36645# Then, protect against being on the right side of a sed subst, or in
36646# an unquoted here document, in config.status. If some macros were
36647# called several times there might be several #defines for the same
36648# symbol, which is useless. But do not sort them, since the last
36649# AC_DEFINE must be honored.
36650ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36651# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36652# NAME is the cpp macro being defined, VALUE is the value it is being given.
36653# PARAMS is the parameter list in the macro definition--in most cases, it's
36654# just an empty string.
36655ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36656ac_dB='\\)[ (].*,\\1define\\2'
36657ac_dC=' '
36658ac_dD=' ,'
36659
36660uniq confdefs.h |
36661 sed -n '
36662 t rset
36663 :rset
36664 s/^[ ]*#[ ]*define[ ][ ]*//
36665 t ok
36666 d
36667 :ok
36668 s/[\\&,]/\\&/g
36669 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36670 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36671 ' >>conftest.defines
36672
36673# Remove the space that was appended to ease matching.
36674# Then replace #undef with comments. This is necessary, for
36675# example, in the case of _POSIX_SOURCE, which is predefined and required
36676# on some systems where configure will not decide to define it.
36677# (The regexp can be short, since the line contains either #define or #undef.)
36678echo 's/ $//
36679s,^[ #]*u.*,/* & */,' >>conftest.defines
36680
36681# Break up conftest.defines:
36682ac_max_sed_lines=50
36683
36684# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36685# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36686# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36687# et cetera.
36688ac_in='$ac_file_inputs'
36689ac_out='"$tmp/out1"'
36690ac_nxt='"$tmp/out2"'
36691
36692while :
36693do
36694 # Write a here document:
36695 cat >>$CONFIG_STATUS <<_ACEOF
36696 # First, check the format of the line:
36697 cat >"\$tmp/defines.sed" <<\\CEOF
36698/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36699/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36700b
36701:def
36702_ACEOF
36703 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36704 echo 'CEOF
36705 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36706 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36707 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36708 grep . conftest.tail >/dev/null || break
36709 rm -f conftest.defines
36710 mv conftest.tail conftest.defines
36711done
36712rm -f conftest.defines conftest.tail
36713
36714echo "ac_result=$ac_in" >>$CONFIG_STATUS
36715cat >>$CONFIG_STATUS <<\_ACEOF
36716 if test x"$ac_file" != x-; then
36717 echo "/* $configure_input */" >"$tmp/config.h"
36718 cat "$ac_result" >>"$tmp/config.h"
36719 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36720 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36721echo "$as_me: $ac_file is unchanged" >&6;}
36722 else
36723 rm -f $ac_file
36724 mv "$tmp/config.h" $ac_file
36725 fi
36726 else
36727 echo "/* $configure_input */"
36728 cat "$ac_result"
36729 fi
36730 rm -f "$tmp/out12"
36731 ;;
36732
36733
36734 esac
36735
36736done # for ac_tag
36737
36738
36739{ (exit 0); exit 0; }
36740_ACEOF
36741chmod +x $CONFIG_STATUS
36742ac_clean_files=$ac_clean_files_save
36743
36744
36745# configure is writing to config.log, and then calls config.status.
36746# config.status does its own redirection, appending to config.log.
36747# Unfortunately, on DOS this fails, as config.log is still kept open
36748# by configure, so config.status won't be able to write to it; its
36749# output is simply discarded. So we exec the FD to /dev/null,
36750# effectively closing config.log, so it can be properly (re)opened and
36751# appended to by config.status. When coming back to configure, we
36752# need to make the FD available again.
36753if test "$no_create" != yes; then
36754 ac_cs_success=:
36755 ac_config_status_args=
36756 test "$silent" = yes &&
36757 ac_config_status_args="$ac_config_status_args --quiet"
36758 exec 5>/dev/null
36759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36760 exec 5>>config.log
36761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36762 # would make configure fail if this is the last instruction.
36763 $ac_cs_success || { (exit 1); exit 1; }
36764fi
36765
36766
36767# Print summary of options
36768
36769# Someone please show me a better way :)
36770A=`eval echo ${prefix}` ; A=`eval echo ${A}`
36771B=`eval echo ${bindir}` ; B=`eval echo ${B}`
36772C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
36773D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
36774E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
36775F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
36776G=`eval echo ${piddir}` ; G=`eval echo ${G}`
36777H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
36778I=`eval echo ${user_path}` ; I=`eval echo ${I}`
36779J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
36780
36781echo ""
36782echo "OpenSSH has been configured with the following options:"
36783echo " User binaries: $B"
36784echo " System binaries: $C"
36785echo " Configuration files: $D"
36786echo " Askpass program: $E"
36787echo " Manual pages: $F"
36788echo " PID file: $G"
36789echo " Privilege separation chroot path: $H"
36790if test "x$external_path_file" = "x/etc/login.conf" ; then
36791echo " At runtime, sshd will use the path defined in $external_path_file"
36792echo " Make sure the path to scp is present, otherwise scp will not work"
36793else
36794echo " sshd default user PATH: $I"
36795 if test ! -z "$external_path_file"; then
36796echo " (If PATH is set in $external_path_file it will be used instead. If"
36797echo " used, ensure the path to scp is present, otherwise scp will not work.)"
36798 fi
36799fi
36800if test ! -z "$superuser_path" ; then
36801echo " sshd superuser user PATH: $J"
36802fi
36803echo " Manpage format: $MANTYPE"
36804echo " PAM support: $PAM_MSG"
36805echo " OSF SIA support: $SIA_MSG"
36806echo " KerberosV support: $KRB5_MSG"
36807echo " SELinux support: $SELINUX_MSG"
36808echo " Smartcard support: $SCARD_MSG"
36809echo " S/KEY support: $SKEY_MSG"
36810echo " MD5 password support: $MD5_MSG"
36811echo " libedit support: $LIBEDIT_MSG"
36812echo " Solaris process contract support: $SPC_MSG"
36813echo " Solaris project support: $SP_MSG"
36814echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
36815echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
36816echo " BSD Auth support: $BSD_AUTH_MSG"
36817echo " Random number source: $RAND_MSG"
36818echo " Privsep sandbox style: $SANDBOX_STYLE"
36819
36820echo ""
36821
36822echo " Host: ${host}"
36823echo " Compiler: ${CC}"
36824echo " Compiler flags: ${CFLAGS}"
36825echo "Preprocessor flags: ${CPPFLAGS}"
36826echo " Linker flags: ${LDFLAGS}"
36827echo " Libraries: ${LIBS}"
36828if test ! -z "${SSHDLIBS}"; then
36829echo " +for sshd: ${SSHDLIBS}"
36830fi
36831if test ! -z "${SSHLIBS}"; then
36832echo " +for ssh: ${SSHLIBS}"
36833fi
36834
36835echo ""
36836
36837if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
36838 echo "SVR4 style packages are supported with \"make package\""
36839 echo ""
36840fi
36841
36842if test "x$PAM_MSG" = "xyes" ; then
36843 echo "PAM is enabled. You may need to install a PAM control file "
36844 echo "for sshd, otherwise password authentication may fail. "
36845 echo "Example PAM control files can be found in the contrib/ "
36846 echo "subdirectory"
36847 echo ""
36848fi
36849
36850if test ! -z "$NO_PEERCHECK" ; then
36851 echo "WARNING: the operating system that you are using does not"
36852 echo "appear to support getpeereid(), getpeerucred() or the"
36853 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
36854 echo "enforce security checks to prevent unauthorised connections to"
36855 echo "ssh-agent. Their absence increases the risk that a malicious"
36856 echo "user can connect to your agent."
36857 echo ""
36858fi
36859
36860if test "$AUDIT_MODULE" = "bsm" ; then
36861 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
36862 echo "See the Solaris section in README.platform for details."
36863fi
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..087e5963e
--- /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.8 September 26, 2012 OpenBSD 5.8
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..8f41f6140
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,165 @@
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 ChallengeResponseAuthentication
76 CheckHostIP
77 Cipher
78 Ciphers
79 Compression
80 CompressionLevel
81 ConnectionAttempts
82 ConnectTimeout
83 ControlMaster
84 ControlPath
85 ControlPersist
86 GlobalKnownHostsFile
87 GSSAPIAuthentication
88 GSSAPIDelegateCredentials
89 HashKnownHosts
90 Host
91 HostbasedAuthentication
92 HostbasedKeyTypes
93 HostKeyAlgorithms
94 HostKeyAlias
95 HostName
96 IdentityFile
97 IdentitiesOnly
98 IPQoS
99 KbdInteractiveAuthentication
100 KbdInteractiveDevices
101 KexAlgorithms
102 LogLevel
103 MACs
104 NoHostAuthenticationForLocalhost
105 NumberOfPasswordPrompts
106 PasswordAuthentication
107 PKCS11Provider
108 Port
109 PreferredAuthentications
110 Protocol
111 ProxyCommand
112 PubkeyAcceptedKeyTypes
113 PubkeyAuthentication
114 RekeyLimit
115 RhostsRSAAuthentication
116 RSAAuthentication
117 SendEnv
118 ServerAliveInterval
119 ServerAliveCountMax
120 StrictHostKeyChecking
121 TCPKeepAlive
122 UpdateHostKeys
123 UsePrivilegedPort
124 User
125 UserKnownHostsFile
126 VerifyHostKeyDNS
127
128 -P port
129 Specifies the port to connect to on the remote host. Note that
130 this option is written with a capital M-bM-^@M-^XPM-bM-^@M-^Y, because -p is already
131 reserved for preserving the times and modes of the file.
132
133 -p Preserves modification times, access times, and modes from the
134 original file.
135
136 -q Quiet mode: disables the progress meter as well as warning and
137 diagnostic messages from ssh(1).
138
139 -r Recursively copy entire directories. Note that scp follows
140 symbolic links encountered in the tree traversal.
141
142 -S program
143 Name of program to use for the encrypted connection. The program
144 must understand ssh(1) options.
145
146 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
147 about their progress. This is helpful in debugging connection,
148 authentication, and configuration problems.
149
150EXIT STATUS
151 The scp utility exitsM-BM- 0 on success, andM-BM- >0 if an error occurs.
152
153SEE ALSO
154 sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5),
155 sshd(8)
156
157HISTORY
158 scp is based on the rcp program in BSD source code from the Regents of
159 the University of California.
160
161AUTHORS
162 Timo Rinne <tri@iki.fi>
163 Tatu Ylonen <ylo@cs.hut.fi>
164
165OpenBSD 5.8 July 10, 2015 OpenBSD 5.8
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..b971cef40
--- /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.8 December 11, 2014 OpenBSD 5.8
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..550f27648
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,383 @@
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 ChallengeResponseAuthentication
112 CheckHostIP
113 Cipher
114 Ciphers
115 Compression
116 CompressionLevel
117 ConnectionAttempts
118 ConnectTimeout
119 ControlMaster
120 ControlPath
121 ControlPersist
122 GlobalKnownHostsFile
123 GSSAPIAuthentication
124 GSSAPIDelegateCredentials
125 HashKnownHosts
126 Host
127 HostbasedAuthentication
128 HostbasedKeyTypes
129 HostKeyAlgorithms
130 HostKeyAlias
131 HostName
132 IdentityFile
133 IdentitiesOnly
134 IPQoS
135 KbdInteractiveAuthentication
136 KbdInteractiveDevices
137 KexAlgorithms
138 LogLevel
139 MACs
140 NoHostAuthenticationForLocalhost
141 NumberOfPasswordPrompts
142 PasswordAuthentication
143 PKCS11Provider
144 Port
145 PreferredAuthentications
146 Protocol
147 ProxyCommand
148 PubkeyAuthentication
149 RekeyLimit
150 RhostsRSAAuthentication
151 RSAAuthentication
152 SendEnv
153 ServerAliveInterval
154 ServerAliveCountMax
155 StrictHostKeyChecking
156 TCPKeepAlive
157 UpdateHostKeys
158 UsePrivilegedPort
159 User
160 UserKnownHostsFile
161 VerifyHostKeyDNS
162
163 -P port
164 Specifies the port to connect to on the remote host.
165
166 -p Preserves modification times, access times, and modes from the
167 original files transferred.
168
169 -q Quiet mode: disables the progress meter as well as warning and
170 diagnostic messages from ssh(1).
171
172 -R num_requests
173 Specify how many requests may be outstanding at any one time.
174 Increasing this may slightly improve file transfer speed but will
175 increase memory usage. The default is 64 outstanding requests.
176
177 -r Recursively copy entire directories when uploading and
178 downloading. Note that sftp does not follow symbolic links
179 encountered in the tree traversal.
180
181 -S program
182 Name of the program to use for the encrypted connection. The
183 program must understand ssh(1) options.
184
185 -s subsystem | sftp_server
186 Specifies the SSH2 subsystem or the path for an sftp server on
187 the remote host. A path is useful for using sftp over protocol
188 version 1, or when the remote sshd(8) does not have an sftp
189 subsystem configured.
190
191 -v Raise logging level. This option is also passed to ssh.
192
193INTERACTIVE COMMANDS
194 Once in interactive mode, sftp understands a set of commands similar to
195 those of ftp(1). Commands are case insensitive. Pathnames that contain
196 spaces must be enclosed in quotes. Any special characters contained
197 within pathnames that are recognized by glob(3) must be escaped with
198 backslashes (M-bM-^@M-^X\M-bM-^@M-^Y).
199
200 bye Quit sftp.
201
202 cd path
203 Change remote directory to path.
204
205 chgrp grp path
206 Change group of file path to grp. path may contain glob(3)
207 characters and may match multiple files. grp must be a numeric
208 GID.
209
210 chmod mode path
211 Change permissions of file path to mode. path may contain
212 glob(3) characters and may match multiple files.
213
214 chown own path
215 Change owner of file path to own. path may contain glob(3)
216 characters and may match multiple files. own must be a numeric
217 UID.
218
219 df [-hi] [path]
220 Display usage information for the filesystem holding the current
221 directory (or path if specified). If the -h flag is specified,
222 the capacity information will be displayed using "human-readable"
223 suffixes. The -i flag requests display of inode information in
224 addition to capacity information. This command is only supported
225 on servers that implement the M-bM-^@M-^\statvfs@openssh.comM-bM-^@M-^] extension.
226
227 exit Quit sftp.
228
229 get [-afPpr] remote-path [local-path]
230 Retrieve the remote-path and store it on the local machine. If
231 the local path name is not specified, it is given the same name
232 it has on the remote machine. remote-path may contain glob(3)
233 characters and may match multiple files. If it does and
234 local-path is specified, then local-path must specify a
235 directory.
236
237 If the -a flag is specified, then attempt to resume partial
238 transfers of existing files. Note that resumption assumes that
239 any partial copy of the local file matches the remote copy. If
240 the remote file contents differ from the partial local copy then
241 the resultant file is likely to be corrupt.
242
243 If the -f flag is specified, then fsync(2) will be called after
244 the file transfer has completed to flush the file to disk.
245
246 If either the -P or -p flag is specified, then full file
247 permissions and access times are copied too.
248
249 If the -r flag is specified then directories will be copied
250 recursively. Note that sftp does not follow symbolic links when
251 performing recursive transfers.
252
253 help Display help text.
254
255 lcd path
256 Change local directory to path.
257
258 lls [ls-options [path]]
259 Display local directory listing of either path or current
260 directory if path is not specified. ls-options may contain any
261 flags supported by the local system's ls(1) command. path may
262 contain glob(3) characters and may match multiple files.
263
264 lmkdir path
265 Create local directory specified by path.
266
267 ln [-s] oldpath newpath
268 Create a link from oldpath to newpath. If the -s flag is
269 specified the created link is a symbolic link, otherwise it is a
270 hard link.
271
272 lpwd Print local working directory.
273
274 ls [-1afhlnrSt] [path]
275 Display a remote directory listing of either path or the current
276 directory if path is not specified. path may contain glob(3)
277 characters and may match multiple files.
278
279 The following flags are recognized and alter the behaviour of ls
280 accordingly:
281
282 -1 Produce single columnar output.
283
284 -a List files beginning with a dot (M-bM-^@M-^X.M-bM-^@M-^Y).
285
286 -f Do not sort the listing. The default sort order is
287 lexicographical.
288
289 -h When used with a long format option, use unit suffixes:
290 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
291 and Exabyte in order to reduce the number of digits to
292 four or fewer using powers of 2 for sizes (K=1024,
293 M=1048576, etc.).
294
295 -l Display additional details including permissions and
296 ownership information.
297
298 -n Produce a long listing with user and group information
299 presented numerically.
300
301 -r Reverse the sort order of the listing.
302
303 -S Sort the listing by file size.
304
305 -t Sort the listing by last modification time.
306
307 lumask umask
308 Set local umask to umask.
309
310 mkdir path
311 Create remote directory specified by path.
312
313 progress
314 Toggle display of progress meter.
315
316 put [-afPpr] local-path [remote-path]
317 Upload local-path and store it on the remote machine. If the
318 remote path name is not specified, it is given the same name it
319 has on the local machine. local-path may contain glob(3)
320 characters and may match multiple files. If it does and
321 remote-path is specified, then remote-path must specify a
322 directory.
323
324 If the -a flag is specified, then attempt to resume partial
325 transfers of existing files. Note that resumption assumes that
326 any partial copy of the remote file matches the local copy. If
327 the local file contents differ from the remote local copy then
328 the resultant file is likely to be corrupt.
329
330 If the -f flag is specified, then a request will be sent to the
331 server to call fsync(2) after the file has been transferred.
332 Note that this is only supported by servers that implement the
333 "fsync@openssh.com" extension.
334
335 If either the -P or -p flag is specified, then full file
336 permissions and access times are copied too.
337
338 If the -r flag is specified then directories will be copied
339 recursively. Note that sftp does not follow symbolic links when
340 performing recursive transfers.
341
342 pwd Display remote working directory.
343
344 quit Quit sftp.
345
346 reget [-Ppr] remote-path [local-path]
347 Resume download of remote-path. Equivalent to get with the -a
348 flag set.
349
350 reput [-Ppr] [local-path] remote-path
351 Resume upload of [local-path]. Equivalent to put with the -a
352 flag set.
353
354 rename oldpath newpath
355 Rename remote file from oldpath to newpath.
356
357 rm path
358 Delete remote file specified by path.
359
360 rmdir path
361 Remove remote directory specified by path.
362
363 symlink oldpath newpath
364 Create a symbolic link from oldpath to newpath.
365
366 version
367 Display the sftp protocol version.
368
369 !command
370 Execute command in local shell.
371
372 ! Escape to local shell.
373
374 ? Synonym for help.
375
376SEE ALSO
377 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
378 ssh_config(5), sftp-server(8), sshd(8)
379
380 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
381 filexfer-00.txt, January 2001, work in progress material.
382
383OpenBSD 5.8 January 30, 2015 OpenBSD 5.8
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..29db710ab
--- /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.8 March 30, 2015 OpenBSD 5.8
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..65bf6e70f
--- /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-add(1). Multiple identities may be stored in ssh-agent concurrently
22 and ssh(1) will automatically use them if present. ssh-add(1) is also
23 used to remove keys from ssh-agent and to query the keys that are held in
24 one.
25
26 The options are as follows:
27
28 -a bind_address
29 Bind the agent to the UNIX-domain socket bind_address. The
30 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
31
32 -c Generate C-shell commands on stdout. This is the default if
33 SHELL looks like it's a csh style of shell.
34
35 -D Foreground mode. When this option is specified ssh-agent will
36 not fork.
37
38 -d Debug mode. When this option is specified ssh-agent will not
39 fork and will write debug information to standard error.
40
41 -E fingerprint_hash
42 Specifies the hash algorithm used when displaying key
43 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
44 default is M-bM-^@M-^\sha256M-bM-^@M-^].
45
46 -k Kill the current agent (given by the SSH_AGENT_PID environment
47 variable).
48
49 -s Generate Bourne shell commands on stdout. This is the default if
50 SHELL does not look like it's a csh style of shell.
51
52 -t life
53 Set a default value for the maximum lifetime of identities added
54 to the agent. The lifetime may be specified in seconds or in a
55 time format specified in sshd_config(5). A lifetime specified
56 for an identity with ssh-add(1) overrides this value. Without
57 this option the default maximum lifetime is forever.
58
59 If a commandline is given, this is executed as a subprocess of the agent.
60 When the command dies, so does the agent.
61
62 The idea is that the agent is run in the user's local PC, laptop, or
63 terminal. Authentication data need not be stored on any other machine,
64 and authentication passphrases never go over the network. However, the
65 connection to the agent is forwarded over SSH remote logins, and the user
66 can thus use the privileges given by the identities anywhere in the
67 network in a secure way.
68
69 There are two main ways to get an agent set up: The first is that the
70 agent starts a new subcommand into which some environment variables are
71 exported, eg ssh-agent xterm &. The second is that the agent prints the
72 needed shell commands (either sh(1) or csh(1) syntax can be generated)
73 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
74 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
75 csh(1) and derivatives.
76
77 Later ssh(1) looks at these variables and uses them to establish a
78 connection to the agent.
79
80 The agent will never send a private key over its request channel.
81 Instead, operations that require a private key will be performed by the
82 agent, and the result will be returned to the requester. This way,
83 private keys are not exposed to clients using the agent.
84
85 A UNIX-domain socket is created and the name of this socket is stored in
86 the SSH_AUTH_SOCK environment variable. The socket is made accessible
87 only to the current user. This method is easily abused by root or
88 another instance of the same user.
89
90 The SSH_AGENT_PID environment variable holds the agent's process ID.
91
92 The agent exits automatically when the command given on the command line
93 terminates.
94
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.8 April 24, 2015 OpenBSD 5.8
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..07a45b36b
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,566 @@
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 RSA keys for use by SSH protocol version 1
35 and DSA, ECDSA, Ed25519 or RSA keys for use by SSH protocol version 2.
36 The type of key to be generated is specified with the -t option. If
37 invoked without any arguments, ssh-keygen will generate an RSA key for
38 use in SSH protocol 2 connections.
39
40 ssh-keygen is also used to generate groups for use in Diffie-Hellman
41 group exchange (DH-GEX). See the MODULI GENERATION section for details.
42
43 Finally, ssh-keygen can be used to generate and update Key Revocation
44 Lists, and to test whether given keys have been revoked by one. See the
45 KEY REVOCATION LISTS section for details.
46
47 Normally each user wishing to use SSH with public key authentication runs
48 this once to create the authentication key in ~/.ssh/identity,
49 ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 or ~/.ssh/id_rsa.
50 Additionally, the system administrator may use this to generate host
51 keys, as seen in /etc/rc.
52
53 Normally this program generates the key and asks for a file in which to
54 store the private key. The public key is stored in a file with the same
55 name but M-bM-^@M-^\.pubM-bM-^@M-^] appended. The program also asks for a passphrase. The
56 passphrase may be empty to indicate no passphrase (host keys must have an
57 empty passphrase), or it may be a string of arbitrary length. A
58 passphrase is similar to a password, except it can be a phrase with a
59 series of words, punctuation, numbers, whitespace, or any string of
60 characters you want. Good passphrases are 10-30 characters long, are not
61 simple sentences or otherwise easily guessable (English prose has only
62 1-2 bits of entropy per character, and provides very bad passphrases),
63 and contain a mix of upper and lowercase letters, numbers, and non-
64 alphanumeric characters. The passphrase can be changed later by using
65 the -p option.
66
67 There is no way to recover a lost passphrase. If the passphrase is lost
68 or forgotten, a new key must be generated and the corresponding public
69 key copied to other machines.
70
71 For RSA1 keys, there is also a comment field in the key file that is only
72 for convenience to the user to help identify the key. The comment can
73 tell what the key is for, or whatever is useful. The comment is
74 initialized to M-bM-^@M-^\user@hostM-bM-^@M-^] when the key is created, but can be changed
75 using the -c option.
76
77 After a key is generated, instructions below detail where the keys should
78 be placed to be activated.
79
80 The options are as follows:
81
82 -A For each of the key types (rsa1, rsa, dsa, ecdsa and ed25519) for
83 which host keys do not exist, generate the host keys with the
84 default key file path, an empty passphrase, default bits for the
85 key type, and default comment. This is used by /etc/rc to
86 generate new host keys.
87
88 -a rounds
89 When saving a new-format private key (i.e. an ed25519 key or any
90 SSH protocol 2 key when the -o flag is set), this option
91 specifies the number of KDF (key derivation function) rounds
92 used. Higher numbers result in slower passphrase verification
93 and increased resistance to brute-force password cracking (should
94 the keys be stolen).
95
96 When screening DH-GEX candidates ( using the -T command). This
97 option specifies the number of primality tests to perform.
98
99 -B Show the bubblebabble digest of specified private or public key
100 file.
101
102 -b bits
103 Specifies the number of bits in the key to create. For RSA keys,
104 the minimum size is 1024 bits and the default is 2048 bits.
105 Generally, 2048 bits is considered sufficient. DSA keys must be
106 exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys,
107 the -b flag determines the key length by selecting from one of
108 three elliptic curve sizes: 256, 384 or 521 bits. Attempting to
109 use bit lengths other than these three values for ECDSA keys will
110 fail. Ed25519 keys have a fixed length and the -b flag will be
111 ignored.
112
113 -C comment
114 Provides a new comment.
115
116 -c Requests changing the comment in the private and public key
117 files. This operation is only supported for RSA1 keys. The
118 program will prompt for the file containing the private keys, for
119 the passphrase if the key has one, and for the new comment.
120
121 -D pkcs11
122 Download the RSA public keys provided by the PKCS#11 shared
123 library pkcs11. When used in combination with -s, this option
124 indicates that a CA key resides in a PKCS#11 token (see the
125 CERTIFICATES section for details).
126
127 -E fingerprint_hash
128 Specifies the hash algorithm used when displaying key
129 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
130 default is M-bM-^@M-^\sha256M-bM-^@M-^].
131
132 -e This option will read a private or public OpenSSH key file and
133 print to stdout the key in one of the formats specified by the -m
134 option. The default export format is M-bM-^@M-^\RFC4716M-bM-^@M-^]. This option
135 allows exporting OpenSSH keys for use by other programs,
136 including several commercial SSH implementations.
137
138 -F hostname
139 Search for the specified hostname in a known_hosts file, listing
140 any occurrences found. This option is useful to find hashed host
141 names or addresses and may also be used in conjunction with the
142 -H option to print found keys in a hashed format.
143
144 -f filename
145 Specifies the filename of the key file.
146
147 -G output_file
148 Generate candidate primes for DH-GEX. These primes must be
149 screened for safety (using the -T option) before use.
150
151 -g Use generic DNS format when printing fingerprint resource records
152 using the -r command.
153
154 -H Hash a known_hosts file. This replaces all hostnames and
155 addresses with hashed representations within the specified file;
156 the original content is moved to a file with a .old suffix.
157 These hashes may be used normally by ssh and sshd, but they do
158 not reveal identifying information should the file's contents be
159 disclosed. This option will not modify existing hashed hostnames
160 and is therefore safe to use on files that mix hashed and non-
161 hashed names.
162
163 -h When signing a key, create a host certificate instead of a user
164 certificate. Please see the CERTIFICATES section for details.
165
166 -I certificate_identity
167 Specify the key identity when signing a public key. Please see
168 the CERTIFICATES section for details.
169
170 -i This option will read an unencrypted private (or public) key file
171 in the format specified by the -m option and print an OpenSSH
172 compatible private (or public) key to stdout. This option allows
173 importing keys from other software, including several commercial
174 SSH implementations. The default import format is M-bM-^@M-^\RFC4716M-bM-^@M-^].
175
176 -J num_lines
177 Exit after screening the specified number of lines while
178 performing DH candidate screening using the -T option.
179
180 -j start_line
181 Start screening at the specified line number while performing DH
182 candidate screening using the -T option.
183
184 -K checkpt
185 Write the last line processed to the file checkpt while
186 performing DH candidate screening using the -T option. This will
187 be used to skip lines in the input file that have already been
188 processed if the job is restarted.
189
190 -k Generate a KRL file. In this mode, ssh-keygen will generate a
191 KRL file at the location specified via the -f flag that revokes
192 every key or certificate presented on the command line.
193 Keys/certificates to be revoked may be specified by public key
194 file or using the format described in the KEY REVOCATION LISTS
195 section.
196
197 -L Prints the contents of a certificate.
198
199 -l Show fingerprint of specified public key file. Private RSA1 keys
200 are also supported. For RSA and DSA keys ssh-keygen tries to
201 find the matching public key file and prints its fingerprint. If
202 combined with -v, an ASCII art representation of the key is
203 supplied with the fingerprint.
204
205 -M memory
206 Specify the amount of memory to use (in megabytes) when
207 generating candidate moduli for DH-GEX.
208
209 -m key_format
210 Specify a key format for the -i (import) or -e (export)
211 conversion options. The supported key formats are: M-bM-^@M-^\RFC4716M-bM-^@M-^]
212 (RFC 4716/SSH2 public or private key), M-bM-^@M-^\PKCS8M-bM-^@M-^] (PEM PKCS8 public
213 key) or M-bM-^@M-^\PEMM-bM-^@M-^] (PEM public key). The default conversion format is
214 M-bM-^@M-^\RFC4716M-bM-^@M-^].
215
216 -N new_passphrase
217 Provides the new passphrase.
218
219 -n principals
220 Specify one or more principals (user or host names) to be
221 included in a certificate when signing a key. Multiple
222 principals may be specified, separated by commas. Please see the
223 CERTIFICATES section for details.
224
225 -O option
226 Specify a certificate option when signing a key. This option may
227 be specified multiple times. Please see the CERTIFICATES section
228 for details. The options that are valid for user certificates
229 are:
230
231 clear Clear all enabled permissions. This is useful for
232 clearing the default set of permissions so permissions
233 may be added individually.
234
235 force-command=command
236 Forces the execution of command instead of any shell or
237 command specified by the user when the certificate is
238 used for authentication.
239
240 no-agent-forwarding
241 Disable ssh-agent(1) forwarding (permitted by default).
242
243 no-port-forwarding
244 Disable port forwarding (permitted by default).
245
246 no-pty Disable PTY allocation (permitted by default).
247
248 no-user-rc
249 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
250 default).
251
252 no-x11-forwarding
253 Disable X11 forwarding (permitted by default).
254
255 permit-agent-forwarding
256 Allows ssh-agent(1) forwarding.
257
258 permit-port-forwarding
259 Allows port forwarding.
260
261 permit-pty
262 Allows PTY allocation.
263
264 permit-user-rc
265 Allows execution of ~/.ssh/rc by sshd(8).
266
267 permit-x11-forwarding
268 Allows X11 forwarding.
269
270 source-address=address_list
271 Restrict the source addresses from which the certificate
272 is considered valid. The address_list is a comma-
273 separated list of one or more address/netmask pairs in
274 CIDR format.
275
276 At present, no options are valid for host keys.
277
278 -o Causes ssh-keygen to save SSH protocol 2 private keys using the
279 new OpenSSH format rather than the more compatible PEM format.
280 The new format has increased resistance to brute-force password
281 cracking but is not supported by versions of OpenSSH prior to
282 6.5. Ed25519 keys always use the new private key format.
283
284 -P passphrase
285 Provides the (old) passphrase.
286
287 -p Requests changing the passphrase of a private key file instead of
288 creating a new private key. The program will prompt for the file
289 containing the private key, for the old passphrase, and twice for
290 the new passphrase.
291
292 -Q Test whether keys have been revoked in a KRL.
293
294 -q Silence ssh-keygen.
295
296 -R hostname
297 Removes all keys belonging to hostname from a known_hosts file.
298 This option is useful to delete hashed hosts (see the -H option
299 above).
300
301 -r hostname
302 Print the SSHFP fingerprint resource record named hostname for
303 the specified public key file.
304
305 -S start
306 Specify start point (in hex) when generating candidate moduli for
307 DH-GEX.
308
309 -s ca_key
310 Certify (sign) a public key using the specified CA key. Please
311 see the CERTIFICATES section for details.
312
313 When generating a KRL, -s specifies a path to a CA public key
314 file used to revoke certificates directly by key ID or serial
315 number. See the KEY REVOCATION LISTS section for details.
316
317 -T output_file
318 Test DH group exchange candidate primes (generated using the -G
319 option) for safety.
320
321 -t dsa | ecdsa | ed25519 | rsa | rsa1
322 Specifies the type of key to create. The possible values are
323 M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or
324 M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2.
325
326 -u Update a KRL. When specified with -k, keys listed via the
327 command line are added to the existing KRL rather than a new KRL
328 being created.
329
330 -V validity_interval
331 Specify a validity interval when signing a certificate. A
332 validity interval may consist of a single time, indicating that
333 the certificate is valid beginning now and expiring at that time,
334 or may consist of two times separated by a colon to indicate an
335 explicit time interval. The start time may be specified as a
336 date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a
337 relative time (to the current time) consisting of a minus sign
338 followed by a relative time in the format described in the TIME
339 FORMATS section of sshd_config(5). The end time may be specified
340 as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time
341 starting with a plus character.
342
343 For example: M-bM-^@M-^\+52w1dM-bM-^@M-^] (valid from now to 52 weeks and one day
344 from now), M-bM-^@M-^\-4w:+4wM-bM-^@M-^] (valid from four weeks ago to four weeks
345 from now), M-bM-^@M-^\20100101123000:20110101123000M-bM-^@M-^] (valid from 12:30 PM,
346 January 1st, 2010 to 12:30 PM, January 1st, 2011), M-bM-^@M-^\-1d:20110101M-bM-^@M-^]
347 (valid from yesterday to midnight, January 1st, 2011).
348
349 -v Verbose mode. Causes ssh-keygen to print debugging messages
350 about its progress. This is helpful for debugging moduli
351 generation. Multiple -v options increase the verbosity. The
352 maximum is 3.
353
354 -W generator
355 Specify desired generator when testing candidate moduli for DH-
356 GEX.
357
358 -y This option will read a private OpenSSH format file and print an
359 OpenSSH public key to stdout.
360
361 -z serial_number
362 Specifies a serial number to be embedded in the certificate to
363 distinguish this certificate from others from the same CA. The
364 default serial number is zero.
365
366 When generating a KRL, the -z flag is used to specify a KRL
367 version number.
368
369MODULI GENERATION
370 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
371 Exchange (DH-GEX) protocol. Generating these groups is a two-step
372 process: first, candidate primes are generated using a fast, but memory
373 intensive process. These candidate primes are then tested for
374 suitability (a CPU-intensive process).
375
376 Generation of primes is performed using the -G option. The desired
377 length of the primes may be specified by the -b option. For example:
378
379 # ssh-keygen -G moduli-2048.candidates -b 2048
380
381 By default, the search for primes begins at a random point in the desired
382 length range. This may be overridden using the -S option, which
383 specifies a different start point (in hex).
384
385 Once a set of candidates have been generated, they must be screened for
386 suitability. This may be performed using the -T option. In this mode
387 ssh-keygen will read candidates from standard input (or a file specified
388 using the -f option). For example:
389
390 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
391
392 By default, each candidate will be subjected to 100 primality tests.
393 This may be overridden using the -a option. The DH generator value will
394 be chosen automatically for the prime under consideration. If a specific
395 generator is desired, it may be requested using the -W option. Valid
396 generator values are 2, 3, and 5.
397
398 Screened DH groups may be installed in /etc/moduli. It is important that
399 this file contains moduli of a range of bit lengths and that both ends of
400 a connection share common moduli.
401
402CERTIFICATES
403 ssh-keygen supports signing of keys to produce certificates that may be
404 used for user or host authentication. Certificates consist of a public
405 key, some identity information, zero or more principal (user or host)
406 names and a set of options that are signed by a Certification Authority
407 (CA) key. Clients or servers may then trust only the CA key and verify
408 its signature on a certificate rather than trusting many user/host keys.
409 Note that OpenSSH certificates are a different, and much simpler, format
410 to the X.509 certificates used in ssl(8).
411
412 ssh-keygen supports two types of certificates: user and host. User
413 certificates authenticate users to servers, whereas host certificates
414 authenticate server hosts to users. To generate a user certificate:
415
416 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
417
418 The resultant certificate will be placed in /path/to/user_key-cert.pub.
419 A host certificate requires the -h option:
420
421 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
422
423 The host certificate will be output to /path/to/host_key-cert.pub.
424
425 It is possible to sign using a CA key stored in a PKCS#11 token by
426 providing the token library using -D and identifying the CA key by
427 providing its public half as an argument to -s:
428
429 $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id user_key.pub
430
431 In all cases, key_id is a "key identifier" that is logged by the server
432 when the certificate is used for authentication.
433
434 Certificates may be limited to be valid for a set of principal
435 (user/host) names. By default, generated certificates are valid for all
436 users or hosts. To generate a certificate for a specified set of
437 principals:
438
439 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
440 $ ssh-keygen -s ca_key -I key_id -h -n host.domain host_key.pub
441
442 Additional limitations on the validity and use of user certificates may
443 be specified through certificate options. A certificate option may
444 disable features of the SSH session, may be valid only when presented
445 from particular source addresses or may force the use of a specific
446 command. For a list of valid certificate options, see the documentation
447 for the -O option above.
448
449 Finally, certificates may be defined with a validity lifetime. The -V
450 option allows specification of certificate start and end times. A
451 certificate that is presented at a time outside this range will not be
452 considered valid. By default, certificates are valid from UNIX Epoch to
453 the distant future.
454
455 For certificates to be used for user or host authentication, the CA
456 public key must be trusted by sshd(8) or ssh(1). Please refer to those
457 manual pages for details.
458
459KEY REVOCATION LISTS
460 ssh-keygen is able to manage OpenSSH format Key Revocation Lists (KRLs).
461 These binary files specify keys or certificates to be revoked using a
462 compact format, taking as little as one bit per certificate if they are
463 being revoked by serial number.
464
465 KRLs may be generated using the -k flag. This option reads one or more
466 files from the command line and generates a new KRL. The files may
467 either contain a KRL specification (see below) or public keys, listed one
468 per line. Plain public keys are revoked by listing their hash or
469 contents in the KRL and certificates revoked by serial number or key ID
470 (if the serial is zero or not available).
471
472 Revoking keys using a KRL specification offers explicit control over the
473 types of record used to revoke keys and may be used to directly revoke
474 certificates by serial number or key ID without having the complete
475 original certificate on hand. A KRL specification consists of lines
476 containing one of the following directives followed by a colon and some
477 directive-specific information.
478
479 serial: serial_number[-serial_number]
480 Revokes a certificate with the specified serial number. Serial
481 numbers are 64-bit values, not including zero and may be
482 expressed in decimal, hex or octal. If two serial numbers are
483 specified separated by a hyphen, then the range of serial numbers
484 including and between each is revoked. The CA key must have been
485 specified on the ssh-keygen command line using the -s option.
486
487 id: key_id
488 Revokes a certificate with the specified key ID string. The CA
489 key must have been specified on the ssh-keygen command line using
490 the -s option.
491
492 key: public_key
493 Revokes the specified key. If a certificate is listed, then it
494 is revoked as a plain public key.
495
496 sha1: public_key
497 Revokes the specified key by its SHA1 hash.
498
499 KRLs may be updated using the -u flag in addition to -k. When this
500 option is specified, keys listed via the command line are merged into the
501 KRL, adding to those already there.
502
503 It is also possible, given a KRL, to test whether it revokes a particular
504 key (or keys). The -Q flag will query an existing KRL, testing each key
505 specified on the commandline. If any key listed on the command line has
506 been revoked (or an error encountered) then ssh-keygen will exit with a
507 non-zero exit status. A zero exit status will only be returned if no key
508 was revoked.
509
510FILES
511 ~/.ssh/identity
512 Contains the protocol version 1 RSA authentication identity of
513 the user. This file should not be readable by anyone but the
514 user. It is possible to specify a passphrase when generating the
515 key; that passphrase will be used to encrypt the private part of
516 this file using 3DES. This file is not automatically accessed by
517 ssh-keygen but it is offered as the default file for the private
518 key. ssh(1) will read this file when a login attempt is made.
519
520 ~/.ssh/identity.pub
521 Contains the protocol version 1 RSA public key for
522 authentication. The contents of this file should be added to
523 ~/.ssh/authorized_keys on all machines where the user wishes to
524 log in using RSA authentication. There is no need to keep the
525 contents of this file secret.
526
527 ~/.ssh/id_dsa
528 ~/.ssh/id_ecdsa
529 ~/.ssh/id_ed25519
530 ~/.ssh/id_rsa
531 Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA
532 authentication identity of the user. This file should not be
533 readable by anyone but the user. It is possible to specify a
534 passphrase when generating the key; that passphrase will be used
535 to encrypt the private part of this file using 128-bit AES. This
536 file is not automatically accessed by ssh-keygen but it is
537 offered as the default file for the private key. ssh(1) will
538 read this file when a login attempt is made.
539
540 ~/.ssh/id_dsa.pub
541 ~/.ssh/id_ecdsa.pub
542 ~/.ssh/id_ed25519.pub
543 ~/.ssh/id_rsa.pub
544 Contains the protocol version 2 DSA, ECDSA, Ed25519 or RSA public
545 key for authentication. The contents of this file should be
546 added to ~/.ssh/authorized_keys on all machines where the user
547 wishes to log in using public key authentication. There is no
548 need to keep the contents of this file secret.
549
550 /etc/moduli
551 Contains Diffie-Hellman groups used for DH-GEX. The file format
552 is described in moduli(5).
553
554SEE ALSO
555 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
556
557 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
558
559AUTHORS
560 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
561 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
562 de Raadt and Dug Song removed many bugs, re-added newer features and
563 created OpenSSH. Markus Friedl contributed the support for SSH protocol
564 versions 1.5 and 2.0.
565
566OpenBSD 5.8 August 20, 2015 OpenBSD 5.8
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..500c1dd30
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,109 @@
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 [-46Hv] [-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 -f file
30 Read hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from file, one per line.
31 If - is supplied instead of a filename, ssh-keyscan will read
32 hosts or M-bM-^@M-^\addrlist namelistM-bM-^@M-^] pairs from the standard input.
33
34 -H Hash all hostnames and addresses in the output. Hashed names may
35 be used normally by ssh and sshd, but they do not reveal
36 identifying information should the file's contents be disclosed.
37
38 -p port
39 Port to connect to on the remote host.
40
41 -T timeout
42 Set the timeout for connection attempts. If timeout seconds have
43 elapsed since a connection was initiated to a host or since the
44 last time anything was read from that host, then the connection
45 is closed and the host in question considered unavailable.
46 Default is 5 seconds.
47
48 -t type
49 Specifies the type of the key to fetch from the scanned hosts.
50 The possible values are M-bM-^@M-^\rsa1M-bM-^@M-^] for protocol version 1 and M-bM-^@M-^\dsaM-bM-^@M-^],
51 M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^], or M-bM-^@M-^\rsaM-bM-^@M-^] for protocol version 2. Multiple
52 values may be specified by separating them with commas. The
53 default is to fetch M-bM-^@M-^\rsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], and M-bM-^@M-^\ed25519M-bM-^@M-^] keys.
54
55 -v Verbose mode. Causes ssh-keyscan to print debugging messages
56 about its progress.
57
58SECURITY
59 If an ssh_known_hosts file is constructed using ssh-keyscan without
60 verifying the keys, users will be vulnerable to man in the middle
61 attacks. On the other hand, if the security model allows such a risk,
62 ssh-keyscan can help in the detection of tampered keyfiles or man in the
63 middle attacks which have begun after the ssh_known_hosts file was
64 created.
65
66FILES
67 Input format:
68
69 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
70
71 Output format for RSA1 keys:
72
73 host-or-namelist bits exponent modulus
74
75 Output format for RSA, DSA, ECDSA, and Ed25519 keys:
76
77 host-or-namelist keytype base64-encoded-key
78
79 Where keytype is either M-bM-^@M-^\ecdsa-sha2-nistp256M-bM-^@M-^], M-bM-^@M-^\ecdsa-sha2-nistp384M-bM-^@M-^],
80 M-bM-^@M-^\ecdsa-sha2-nistp521M-bM-^@M-^], M-bM-^@M-^\ssh-ed25519M-bM-^@M-^], M-bM-^@M-^\ssh-dssM-bM-^@M-^] or M-bM-^@M-^\ssh-rsaM-bM-^@M-^].
81
82 /etc/ssh/ssh_known_hosts
83
84EXAMPLES
85 Print the rsa host key for machine hostname:
86
87 $ ssh-keyscan hostname
88
89 Find all hosts from the file ssh_hosts which have new or different keys
90 from those in the sorted file ssh_known_hosts:
91
92 $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519 -f ssh_hosts | \
93 sort -u - ssh_known_hosts | diff ssh_known_hosts -
94
95SEE ALSO
96 ssh(1), sshd(8)
97
98AUTHORS
99 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
100 Davison <wayned@users.sourceforge.net> added support for protocol version
101 2.
102
103BUGS
104 It generates "Connection closed by remote host" messages on the consoles
105 of all the machines it scans if the server is older than version 2.9.
106 This is because it opens a connection to the ssh port, reads the public
107 key, and drops the connection as soon as it gets the key.
108
109OpenBSD 5.8 August 30, 2014 OpenBSD 5.8
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..7db72c714
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,53 @@
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 with SSH
12 protocol version 2.
13
14 ssh-keysign is disabled by default and can only be enabled in the global
15 client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign
16 to M-bM-^@M-^\yesM-bM-^@M-^].
17
18 ssh-keysign is not intended to be invoked by the user, but from ssh(1).
19 See ssh(1) and sshd(8) for more information about host-based
20 authentication.
21
22FILES
23 /etc/ssh/ssh_config
24 Controls whether ssh-keysign is enabled.
25
26 /etc/ssh/ssh_host_dsa_key
27 /etc/ssh/ssh_host_ecdsa_key
28 /etc/ssh/ssh_host_ed25519_key
29 /etc/ssh/ssh_host_rsa_key
30 These files contain the private parts of the host keys used to
31 generate the digital signature. They should be owned by root,
32 readable only by root, and not accessible to others. Since they
33 are readable only by root, ssh-keysign must be set-uid root if
34 host-based authentication is used.
35
36 /etc/ssh/ssh_host_dsa_key-cert.pub
37 /etc/ssh/ssh_host_ecdsa_key-cert.pub
38 /etc/ssh/ssh_host_ed25519_key-cert.pub
39 /etc/ssh/ssh_host_rsa_key-cert.pub
40 If these files exist they are assumed to contain public
41 certificate information corresponding with the private keys
42 above.
43
44SEE ALSO
45 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
46
47HISTORY
48 ssh-keysign first appeared in OpenBSD 3.2.
49
50AUTHORS
51 Markus Friedl <markus@openbsd.org>
52
53OpenBSD 5.8 December 7, 2013 OpenBSD 5.8
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..7fac805ff
--- /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.8 July 16, 2013 OpenBSD 5.8
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..ad4817aff
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,972 @@
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 cipher | cipher-auth | mac | kex | key | protocol-version]
12 [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
13 [user@]hostname [command]
14
15DESCRIPTION
16 ssh (SSH client) is a program for logging into a remote machine and for
17 executing commands on a remote machine. It is intended to replace rlogin
18 and rsh, and provide secure encrypted communications between two
19 untrusted hosts over an insecure network. X11 connections, arbitrary TCP
20 ports and UNIX-domain sockets can also be forwarded over the secure
21 channel.
22
23 ssh connects and logs into the specified hostname (with optional user
24 name). The user must prove his/her identity to the remote machine using
25 one of several methods depending on the protocol version used (see
26 below).
27
28 If command is specified, it is executed on the remote host instead of a
29 login shell.
30
31 The options are as follows:
32
33 -1 Forces ssh to try protocol version 1 only.
34
35 -2 Forces ssh to try protocol version 2 only.
36
37 -4 Forces ssh to use IPv4 addresses only.
38
39 -6 Forces ssh to use IPv6 addresses only.
40
41 -A Enables forwarding of the authentication agent connection. This
42 can also be specified on a per-host basis in a configuration
43 file.
44
45 Agent forwarding should be enabled with caution. Users with the
46 ability to bypass file permissions on the remote host (for the
47 agent's UNIX-domain socket) can access the local agent through
48 the forwarded connection. An attacker cannot obtain key material
49 from the agent, however they can perform operations on the keys
50 that enable them to authenticate using the identities loaded into
51 the agent.
52
53 -a Disables forwarding of the authentication agent connection.
54
55 -b bind_address
56 Use bind_address on the local machine as the source address of
57 the connection. Only useful on systems with more than one
58 address.
59
60 -C Requests compression of all data (including stdin, stdout,
61 stderr, and data for forwarded X11, TCP and UNIX-domain
62 connections). The compression algorithm is the same used by
63 gzip(1), and the M-bM-^@M-^\levelM-bM-^@M-^] can be controlled by the
64 CompressionLevel option for protocol version 1. Compression is
65 desirable on modem lines and other slow connections, but will
66 only slow down things on fast networks. The default value can be
67 set on a host-by-host basis in the configuration files; see the
68 Compression option.
69
70 -c cipher_spec
71 Selects the cipher specification for encrypting the session.
72
73 Protocol version 1 allows specification of a single cipher. The
74 supported values are M-bM-^@M-^\3desM-bM-^@M-^], M-bM-^@M-^\blowfishM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^]. For protocol
75 version 2, cipher_spec is a comma-separated list of ciphers
76 listed in order of preference. See the Ciphers keyword in
77 ssh_config(5) for more information.
78
79 -D [bind_address:]port
80 Specifies a local M-bM-^@M-^\dynamicM-bM-^@M-^] application-level port forwarding.
81 This works by allocating a socket to listen to port on the local
82 side, optionally bound to the specified bind_address. Whenever a
83 connection is made to this port, the connection is forwarded over
84 the secure channel, and the application protocol is then used to
85 determine where to connect to from the remote machine. Currently
86 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
87 as a SOCKS server. Only root can forward privileged ports.
88 Dynamic port forwardings can also be specified in the
89 configuration file.
90
91 IPv6 addresses can be specified by enclosing the address in
92 square brackets. Only the superuser can forward privileged
93 ports. By default, the local port is bound in accordance with
94 the GatewayPorts setting. However, an explicit bind_address may
95 be used to bind the connection to a specific address. The
96 bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be
97 bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates
98 that the port should be available from all interfaces.
99
100 -E log_file
101 Append debug logs to log_file instead of standard error.
102
103 -e escape_char
104 Sets the escape character for sessions with a pty (default: M-bM-^@M-^X~M-bM-^@M-^Y).
105 The escape character is only recognized at the beginning of a
106 line. The escape character followed by a dot (M-bM-^@M-^X.M-bM-^@M-^Y) closes the
107 connection; followed by control-Z suspends the connection; and
108 followed by itself sends the escape character once. Setting the
109 character to M-bM-^@M-^\noneM-bM-^@M-^] disables any escapes and makes the session
110 fully transparent.
111
112 -F configfile
113 Specifies an alternative per-user configuration file. If a
114 configuration file is given on the command line, the system-wide
115 configuration file (/etc/ssh/ssh_config) will be ignored. The
116 default for the per-user configuration file is ~/.ssh/config.
117
118 -f Requests ssh to go to background just before command execution.
119 This is useful if ssh is going to ask for passwords or
120 passphrases, but the user wants it in the background. This
121 implies -n. The recommended way to start X11 programs at a
122 remote site is with something like ssh -f host xterm.
123
124 If the ExitOnForwardFailure configuration option is set to M-bM-^@M-^\yesM-bM-^@M-^],
125 then a client started with -f will wait for all remote port
126 forwards to be successfully established before placing itself in
127 the background.
128
129 -G Causes ssh to print its configuration after evaluating Host and
130 Match blocks and exit.
131
132 -g Allows remote hosts to connect to local forwarded ports. If used
133 on a multiplexed connection, then this option must be specified
134 on the master process.
135
136 -I pkcs11
137 Specify the PKCS#11 shared library ssh should use to communicate
138 with a PKCS#11 token providing the user's private RSA key.
139
140 -i identity_file
141 Selects a file from which the identity (private key) for public
142 key authentication is read. The default is ~/.ssh/identity for
143 protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
144 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
145 Identity files may also be specified on a per-host basis in the
146 configuration file. It is possible to have multiple -i options
147 (and multiple identities specified in configuration files). ssh
148 will also try to load certificate information from the filename
149 obtained by appending -cert.pub to identity filenames.
150
151 -K Enables GSSAPI-based authentication and forwarding (delegation)
152 of GSSAPI credentials to the server.
153
154 -k Disables forwarding (delegation) of GSSAPI credentials to the
155 server.
156
157 -L [bind_address:]port:host:hostport
158 -L [bind_address:]port:remote_socket
159 -L local_socket:host:hostport
160 -L local_socket:remote_socket
161 Specifies that connections to the given TCP port or Unix socket
162 on the local (client) host are to be forwarded to the given host
163 and port, or Unix socket, on the remote side. This works by
164 allocating a socket to listen to either a TCP port on the local
165 side, optionally bound to the specified bind_address, or to a
166 Unix socket. Whenever a connection is made to the local port or
167 socket, the connection is forwarded over the secure channel, and
168 a connection is made to either host port hostport, or the Unix
169 socket remote_socket, from the remote machine.
170
171 Port forwardings can also be specified in the configuration file.
172 Only the superuser can forward privileged ports. IPv6 addresses
173 can be specified by enclosing the address in square brackets.
174
175 By default, the local port is bound in accordance with the
176 GatewayPorts setting. However, an explicit bind_address may be
177 used to bind the connection to a specific address. The
178 bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be
179 bound for local use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates
180 that the port should be available from all interfaces.
181
182 -l login_name
183 Specifies the user to log in as on the remote machine. This also
184 may be specified on a per-host basis in the configuration file.
185
186 -M Places the ssh client into M-bM-^@M-^\masterM-bM-^@M-^] mode for connection sharing.
187 Multiple -M options places ssh into M-bM-^@M-^\masterM-bM-^@M-^] mode with
188 confirmation required before slave connections are accepted.
189 Refer to the description of ControlMaster in ssh_config(5) for
190 details.
191
192 -m mac_spec
193 Additionally, for protocol version 2 a comma-separated list of
194 MAC (message authentication code) algorithms can be specified in
195 order of preference. See the MACs keyword for more information.
196
197 -N Do not execute a remote command. This is useful for just
198 forwarding ports (protocol version 2 only).
199
200 -n Redirects stdin from /dev/null (actually, prevents reading from
201 stdin). This must be used when ssh is run in the background. A
202 common trick is to use this to run X11 programs on a remote
203 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
204 start an emacs on shadows.cs.hut.fi, and the X11 connection will
205 be automatically forwarded over an encrypted channel. The ssh
206 program will be put in the background. (This does not work if
207 ssh needs to ask for a password or passphrase; see also the -f
208 option.)
209
210 -O ctl_cmd
211 Control an active connection multiplexing master process. When
212 the -O option is specified, the ctl_cmd argument is interpreted
213 and passed to the master process. Valid commands are: M-bM-^@M-^\checkM-bM-^@M-^]
214 (check that the master process is running), M-bM-^@M-^\forwardM-bM-^@M-^] (request
215 forwardings without command execution), M-bM-^@M-^\cancelM-bM-^@M-^] (cancel
216 forwardings), M-bM-^@M-^\exitM-bM-^@M-^] (request the master to exit), and M-bM-^@M-^\stopM-bM-^@M-^]
217 (request the master to stop accepting further multiplexing
218 requests).
219
220 -o option
221 Can be used to give options in the format used in the
222 configuration file. This is useful for specifying options for
223 which there is no separate command-line flag. For full details
224 of the options listed below, and their possible values, see
225 ssh_config(5).
226
227 AddressFamily
228 BatchMode
229 BindAddress
230 CanonicalDomains
231 CanonicalizeFallbackLocal
232 CanonicalizeHostname
233 CanonicalizeMaxDots
234 CanonicalizePermittedCNAMEs
235 ChallengeResponseAuthentication
236 CheckHostIP
237 Cipher
238 Ciphers
239 ClearAllForwardings
240 Compression
241 CompressionLevel
242 ConnectionAttempts
243 ConnectTimeout
244 ControlMaster
245 ControlPath
246 ControlPersist
247 DynamicForward
248 EscapeChar
249 ExitOnForwardFailure
250 FingerprintHash
251 ForwardAgent
252 ForwardX11
253 ForwardX11Timeout
254 ForwardX11Trusted
255 GatewayPorts
256 GlobalKnownHostsFile
257 GSSAPIAuthentication
258 GSSAPIDelegateCredentials
259 HashKnownHosts
260 Host
261 HostbasedAuthentication
262 HostbasedKeyTypes
263 HostKeyAlgorithms
264 HostKeyAlias
265 HostName
266 IdentityFile
267 IdentitiesOnly
268 IPQoS
269 KbdInteractiveAuthentication
270 KbdInteractiveDevices
271 KexAlgorithms
272 LocalCommand
273 LocalForward
274 LogLevel
275 MACs
276 Match
277 NoHostAuthenticationForLocalhost
278 NumberOfPasswordPrompts
279 PasswordAuthentication
280 PermitLocalCommand
281 PKCS11Provider
282 Port
283 PreferredAuthentications
284 Protocol
285 ProxyCommand
286 ProxyUseFdpass
287 PubkeyAcceptedKeyTypes
288 PubkeyAuthentication
289 RekeyLimit
290 RemoteForward
291 RequestTTY
292 RhostsRSAAuthentication
293 RSAAuthentication
294 SendEnv
295 ServerAliveInterval
296 ServerAliveCountMax
297 StreamLocalBindMask
298 StreamLocalBindUnlink
299 StrictHostKeyChecking
300 TCPKeepAlive
301 Tunnel
302 TunnelDevice
303 UpdateHostKeys
304 UsePrivilegedPort
305 User
306 UserKnownHostsFile
307 VerifyHostKeyDNS
308 VisualHostKey
309 XAuthLocation
310
311 -p port
312 Port to connect to on the remote host. This can be specified on
313 a per-host basis in the configuration file.
314
315 -Q cipher | cipher-auth | mac | kex | key | protocol-version
316 Queries ssh for the algorithms supported for the specified
317 version 2. The available features are: cipher (supported
318 symmetric ciphers), cipher-auth (supported symmetric ciphers that
319 support authenticated encryption), mac (supported message
320 integrity codes), kex (key exchange algorithms), key (key types)
321 and protocol-version (supported SSH protocol versions).
322
323 -q Quiet mode. Causes most warning and diagnostic messages to be
324 suppressed.
325
326 -R [bind_address:]port:host:hostport
327 -R [bind_address:]port:local_socket
328 -R remote_socket:host:hostport
329 -R remote_socket:local_socket
330 Specifies that connections to the given TCP port or Unix socket
331 on the remote (server) host are to be forwarded to the given host
332 and port, or Unix socket, on the local side. This works by
333 allocating a socket to listen to either a TCP port or to a Unix
334 socket on the remote side. Whenever a connection is made to this
335 port or Unix socket, the connection is forwarded over the secure
336 channel, and a connection is made to either host port hostport,
337 or local_socket, from the local machine.
338
339 Port forwardings can also be specified in the configuration file.
340 Privileged ports can be forwarded only when logging in as root on
341 the remote machine. IPv6 addresses can be specified by enclosing
342 the address in square brackets.
343
344 By default, TCP listening sockets on the server will be bound to
345 the loopback interface only. This may be overridden by
346 specifying a bind_address. An empty bind_address, or the address
347 M-bM-^@M-^X*M-bM-^@M-^Y, indicates that the remote socket should listen on all
348 interfaces. Specifying a remote bind_address will only succeed
349 if the server's GatewayPorts option is enabled (see
350 sshd_config(5)).
351
352 If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically
353 allocated on the server and reported to the client at run time.
354 When used together with -O forward the allocated port will be
355 printed to the standard output.
356
357 -S ctl_path
358 Specifies the location of a control socket for connection
359 sharing, or the string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing.
360 Refer to the description of ControlPath and ControlMaster in
361 ssh_config(5) for details.
362
363 -s May be used to request invocation of a subsystem on the remote
364 system. Subsystems are a feature of the SSH2 protocol which
365 facilitate the use of SSH as a secure transport for other
366 applications (eg. sftp(1)). The subsystem is specified as the
367 remote command.
368
369 -T Disable pseudo-terminal allocation.
370
371 -t Force pseudo-terminal allocation. This can be used to execute
372 arbitrary screen-based programs on a remote machine, which can be
373 very useful, e.g. when implementing menu services. Multiple -t
374 options force tty allocation, even if ssh has no local tty.
375
376 -V Display the version number and exit.
377
378 -v Verbose mode. Causes ssh to print debugging messages about its
379 progress. This is helpful in debugging connection,
380 authentication, and configuration problems. Multiple -v options
381 increase the verbosity. The maximum is 3.
382
383 -W host:port
384 Requests that standard input and output on the client be
385 forwarded to host on port over the secure channel. Implies -N,
386 -T, ExitOnForwardFailure and ClearAllForwardings. Works with
387 Protocol version 2 only.
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). Both protocols
431 support similar authentication methods, but protocol 2 is the default
432 since it provides additional mechanisms for confidentiality (the traffic
433 is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
434 integrity (hmac-md5, hmac-sha1, hmac-sha2-256, hmac-sha2-512, umac-64,
435 umac-128, hmac-ripemd160). Protocol 1 lacks a strong mechanism for
436 ensuring the integrity of the connection.
437
438 The methods available for authentication are: GSSAPI-based
439 authentication, host-based authentication, public key authentication,
440 challenge-response authentication, and password authentication.
441 Authentication methods are tried in the order specified above, though
442 protocol 2 has a configuration option to change the default order:
443 PreferredAuthentications.
444
445 Host-based authentication works as follows: If the machine the user logs
446 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
447 machine, and the user names are the same on both sides, or if the files
448 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
449 machine and contain a line containing the name of the client machine and
450 the name of the user on that machine, the user is considered for login.
451 Additionally, the server must be able to verify the client's host key
452 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
453 below) for login to be permitted. This authentication method closes
454 security holes due to IP spoofing, DNS spoofing, and routing spoofing.
455 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
456 rlogin/rsh protocol in general, are inherently insecure and should be
457 disabled if security is desired.]
458
459 Public key authentication works as follows: The scheme is based on
460 public-key cryptography, using cryptosystems where encryption and
461 decryption are done using separate keys, and it is unfeasible to derive
462 the decryption key from the encryption key. The idea is that each user
463 creates a public/private key pair for authentication purposes. The
464 server knows the public key, and only the user knows the private key.
465 ssh implements public key authentication protocol automatically, using
466 one of the DSA, ECDSA, Ed25519 or RSA algorithms. Protocol 1 is
467 restricted to using only RSA keys, but protocol 2 may use any. The
468 HISTORY section of ssl(8) contains a brief discussion of the DSA and RSA
469 algorithms.
470
471 The file ~/.ssh/authorized_keys lists the public keys that are permitted
472 for logging in. When the user logs in, the ssh program tells the server
473 which key pair it would like to use for authentication. The client
474 proves that it has access to the private key and the server checks that
475 the corresponding public key is authorized to accept the account.
476
477 The user creates his/her key pair by running ssh-keygen(1). This stores
478 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
479 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), ~/.ssh/id_ed25519 (protocol 2
480 Ed25519), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in
481 ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA),
482 ~/.ssh/id_ecdsa.pub (protocol 2 ECDSA), ~/.ssh/id_ed25519.pub (protocol 2
483 Ed25519), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home
484 directory. The user should then copy the public key to
485 ~/.ssh/authorized_keys in his/her home directory on the remote machine.
486 The authorized_keys file corresponds to the conventional ~/.rhosts file,
487 and has one key per line, though the lines can be very long. After this,
488 the user can log in without giving the password.
489
490 A variation on public key authentication is available in the form of
491 certificate authentication: instead of a set of public/private keys,
492 signed certificates are used. This has the advantage that a single
493 trusted certification authority can be used in place of many
494 public/private keys. See the CERTIFICATES section of ssh-keygen(1) for
495 more information.
496
497 The most convenient way to use public key or certificate authentication
498 may be with an authentication agent. See ssh-agent(1) for more
499 information.
500
501 Challenge-response authentication works as follows: The server sends an
502 arbitrary "challenge" text, and prompts for a response. Protocol 2
503 allows multiple challenges and responses; protocol 1 is restricted to
504 just one challenge/response. Examples of challenge-response
505 authentication include BSD Authentication (see login.conf(5)) and PAM
506 (some non-OpenBSD systems).
507
508 Finally, if other authentication methods fail, ssh prompts the user for a
509 password. The password is sent to the remote host for checking; however,
510 since all communications are encrypted, the password cannot be seen by
511 someone listening on the network.
512
513 ssh automatically maintains and checks a database containing
514 identification for all hosts it has ever been used with. Host keys are
515 stored in ~/.ssh/known_hosts in the user's home directory. Additionally,
516 the file /etc/ssh/ssh_known_hosts is automatically checked for known
517 hosts. Any new hosts are automatically added to the user's file. If a
518 host's identification ever changes, ssh warns about this and disables
519 password authentication to prevent server spoofing or man-in-the-middle
520 attacks, which could otherwise be used to circumvent the encryption. The
521 StrictHostKeyChecking option can be used to control logins to machines
522 whose host key is not known or has changed.
523
524 When the user's identity has been accepted by the server, the server
525 either executes the given command in a non-interactive session or, if no
526 command has been specified, logs into the machine and gives the user a
527 normal shell as an interactive session. All communication with the
528 remote command or shell will be automatically encrypted.
529
530 If an interactive session is requested ssh by default will only request a
531 pseudo-terminal (pty) for interactive sessions when the client has one.
532 The flags -T and -t can be used to override this behaviour.
533
534 If a pseudo-terminal has been allocated the user may use the escape
535 characters noted below.
536
537 If no pseudo-terminal has been allocated, the session is transparent and
538 can be used to reliably transfer binary data. On most systems, setting
539 the escape character to M-bM-^@M-^\noneM-bM-^@M-^] will also make the session transparent
540 even if a tty is used.
541
542 The session terminates when the command or shell on the remote machine
543 exits and all X11 and TCP connections have been closed.
544
545ESCAPE CHARACTERS
546 When a pseudo-terminal has been requested, ssh supports a number of
547 functions through the use of an escape character.
548
549 A single tilde character can be sent as ~~ or by following the tilde by a
550 character other than those described below. The escape character must
551 always follow a newline to be interpreted as special. The escape
552 character can be changed in configuration files using the EscapeChar
553 configuration directive or on the command line by the -e option.
554
555 The supported escapes (assuming the default M-bM-^@M-^X~M-bM-^@M-^Y) are:
556
557 ~. Disconnect.
558
559 ~^Z Background ssh.
560
561 ~# List forwarded connections.
562
563 ~& Background ssh at logout when waiting for forwarded connection /
564 X11 sessions to terminate.
565
566 ~? Display a list of escape characters.
567
568 ~B Send a BREAK to the remote system (only useful for SSH protocol
569 version 2 and if the peer supports it).
570
571 ~C Open command line. Currently this allows the addition of port
572 forwardings using the -L, -R and -D options (see above). It also
573 allows the cancellation of existing port-forwardings with
574 -KL[bind_address:]port for local, -KR[bind_address:]port for
575 remote and -KD[bind_address:]port for dynamic port-forwardings.
576 !command allows the user to execute a local command if the
577 PermitLocalCommand option is enabled in ssh_config(5). Basic
578 help is available, using the -h option.
579
580 ~R Request rekeying of the connection (only useful for SSH protocol
581 version 2 and if the peer supports it).
582
583 ~V Decrease the verbosity (LogLevel) when errors are being written
584 to stderr.
585
586 ~v Increase the verbosity (LogLevel) when errors are being written
587 to stderr.
588
589TCP FORWARDING
590 Forwarding of arbitrary TCP connections over the secure channel can be
591 specified either on the command line or in a configuration file. One
592 possible application of TCP forwarding is a secure connection to a mail
593 server; another is going through firewalls.
594
595 In the example below, we look at encrypting communication between an IRC
596 client and server, even though the IRC server does not directly support
597 encrypted communications. This works as follows: the user connects to
598 the remote host using ssh, specifying a port to be used to forward
599 connections to the remote server. After that it is possible to start the
600 service which is to be encrypted on the client machine, connecting to the
601 same local port, and ssh will encrypt and forward the connection.
602
603 The following example tunnels an IRC session from client machine
604 M-bM-^@M-^\127.0.0.1M-bM-^@M-^] (localhost) to remote server M-bM-^@M-^\server.example.comM-bM-^@M-^]:
605
606 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
607 $ irc -c '#users' -p 1234 pinky 127.0.0.1
608
609 This tunnels a connection to IRC server M-bM-^@M-^\server.example.comM-bM-^@M-^], joining
610 channel M-bM-^@M-^\#usersM-bM-^@M-^], nickname M-bM-^@M-^\pinkyM-bM-^@M-^], using port 1234. It doesn't matter
611 which port is used, as long as it's greater than 1023 (remember, only
612 root can open sockets on privileged ports) and doesn't conflict with any
613 ports already in use. The connection is forwarded to port 6667 on the
614 remote server, since that's the standard port for IRC services.
615
616 The -f option backgrounds ssh and the remote command M-bM-^@M-^\sleep 10M-bM-^@M-^] is
617 specified to allow an amount of time (10 seconds, in the example) to
618 start the service which is to be tunnelled. If no connections are made
619 within the time specified, ssh will exit.
620
621X11 FORWARDING
622 If the ForwardX11 variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of the
623 -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
624 environment variable is set), the connection to the X11 display is
625 automatically forwarded to the remote side in such a way that any X11
626 programs started from the shell (or command) will go through the
627 encrypted channel, and the connection to the real X server will be made
628 from the local machine. The user should not manually set DISPLAY.
629 Forwarding of X11 connections can be configured on the command line or in
630 configuration files.
631
632 The DISPLAY value set by ssh will point to the server machine, but with a
633 display number greater than zero. This is normal, and happens because
634 ssh creates a M-bM-^@M-^\proxyM-bM-^@M-^] X server on the server machine for forwarding the
635 connections over the encrypted channel.
636
637 ssh will also automatically set up Xauthority data on the server machine.
638 For this purpose, it will generate a random authorization cookie, store
639 it in Xauthority on the server, and verify that any forwarded connections
640 carry this cookie and replace it by the real cookie when the connection
641 is opened. The real authentication cookie is never sent to the server
642 machine (and no cookies are sent in the plain).
643
644 If the ForwardAgent variable is set to M-bM-^@M-^\yesM-bM-^@M-^] (or see the description of
645 the -A and -a options above) and the user is using an authentication
646 agent, the connection to the agent is automatically forwarded to the
647 remote side.
648
649VERIFYING HOST KEYS
650 When connecting to a server for the first time, a fingerprint of the
651 server's public key is presented to the user (unless the option
652 StrictHostKeyChecking has been disabled). Fingerprints can be determined
653 using ssh-keygen(1):
654
655 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
656
657 If the fingerprint is already known, it can be matched and the key can be
658 accepted or rejected. If only legacy (MD5) fingerprints for the server
659 are available, the ssh-keygen(1) -E option may be used to downgrade the
660 fingerprint algorithm to match.
661
662 Because of the difficulty of comparing host keys just by looking at
663 fingerprint strings, there is also support to compare host keys visually,
664 using random art. By setting the VisualHostKey option to M-bM-^@M-^\yesM-bM-^@M-^], a small
665 ASCII graphic gets displayed on every login to a server, no matter if the
666 session itself is interactive or not. By learning the pattern a known
667 server produces, a user can easily find out that the host key has changed
668 when a completely different pattern is displayed. Because these patterns
669 are not unambiguous however, a pattern that looks similar to the pattern
670 remembered only gives a good probability that the host key is the same,
671 not guaranteed proof.
672
673 To get a listing of the fingerprints along with their random art for all
674 known hosts, the following command line can be used:
675
676 $ ssh-keygen -lv -f ~/.ssh/known_hosts
677
678 If the fingerprint is unknown, an alternative method of verification is
679 available: SSH fingerprints verified by DNS. An additional resource
680 record (RR), SSHFP, is added to a zonefile and the connecting client is
681 able to match the fingerprint with that of the key presented.
682
683 In this example, we are connecting a client to a server,
684 M-bM-^@M-^\host.example.comM-bM-^@M-^]. The SSHFP resource records should first be added to
685 the zonefile for host.example.com:
686
687 $ ssh-keygen -r host.example.com.
688
689 The output lines will have to be added to the zonefile. To check that
690 the zone is answering fingerprint queries:
691
692 $ dig -t SSHFP host.example.com
693
694 Finally the client connects:
695
696 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
697 [...]
698 Matching host key fingerprint found in DNS.
699 Are you sure you want to continue connecting (yes/no)?
700
701 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
702
703SSH-BASED VIRTUAL PRIVATE NETWORKS
704 ssh contains support for Virtual Private Network (VPN) tunnelling using
705 the tun(4) network pseudo-device, allowing two networks to be joined
706 securely. The sshd_config(5) configuration option PermitTunnel controls
707 whether the server supports this, and at what level (layer 2 or 3
708 traffic).
709
710 The following example would connect client network 10.0.50.0/24 with
711 remote network 10.0.99.0/24 using a point-to-point connection from
712 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway
713 to the remote network, at 192.168.1.15, allows it.
714
715 On the client:
716
717 # ssh -f -w 0:1 192.168.1.15 true
718 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
719 # route add 10.0.99.0/24 10.1.1.2
720
721 On the server:
722
723 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
724 # route add 10.0.50.0/24 10.1.1.1
725
726 Client access may be more finely tuned via the /root/.ssh/authorized_keys
727 file (see below) and the PermitRootLogin server option. The following
728 entry would permit connections on tun(4) device 1 from user M-bM-^@M-^\janeM-bM-^@M-^] and on
729 tun device 2 from user M-bM-^@M-^\johnM-bM-^@M-^], if PermitRootLogin is set to
730 M-bM-^@M-^\forced-commands-onlyM-bM-^@M-^]:
731
732 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
733 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
734
735 Since an SSH-based setup entails a fair amount of overhead, it may be
736 more suited to temporary setups, such as for wireless VPNs. More
737 permanent VPNs are better provided by tools such as ipsecctl(8) and
738 isakmpd(8).
739
740ENVIRONMENT
741 ssh will normally set the following environment variables:
742
743 DISPLAY The DISPLAY variable indicates the location of the
744 X11 server. It is automatically set by ssh to
745 point to a value of the form M-bM-^@M-^\hostname:nM-bM-^@M-^], where
746 M-bM-^@M-^\hostnameM-bM-^@M-^] indicates the host where the shell runs,
747 and M-bM-^@M-^XnM-bM-^@M-^Y is an integer M-bM-^IM-% 1. ssh uses this special
748 value to forward X11 connections over the secure
749 channel. The user should normally not set DISPLAY
750 explicitly, as that will render the X11 connection
751 insecure (and will require the user to manually
752 copy any required authorization cookies).
753
754 HOME Set to the path of the user's home directory.
755
756 LOGNAME Synonym for USER; set for compatibility with
757 systems that use this variable.
758
759 MAIL Set to the path of the user's mailbox.
760
761 PATH Set to the default PATH, as specified when
762 compiling ssh.
763
764 SSH_ASKPASS If ssh needs a passphrase, it will read the
765 passphrase from the current terminal if it was run
766 from a terminal. If ssh does not have a terminal
767 associated with it but DISPLAY and SSH_ASKPASS are
768 set, it will execute the program specified by
769 SSH_ASKPASS and open an X11 window to read the
770 passphrase. This is particularly useful when
771 calling ssh from a .xsession or related script.
772 (Note that on some machines it may be necessary to
773 redirect the input from /dev/null to make this
774 work.)
775
776 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
777 communicate with the agent.
778
779 SSH_CONNECTION Identifies the client and server ends of the
780 connection. The variable contains four space-
781 separated values: client IP address, client port
782 number, server IP address, and server port number.
783
784 SSH_ORIGINAL_COMMAND This variable contains the original command line if
785 a forced command is executed. It can be used to
786 extract the original arguments.
787
788 SSH_TTY This is set to the name of the tty (path to the
789 device) associated with the current shell or
790 command. If the current session has no tty, this
791 variable is not set.
792
793 TZ This variable is set to indicate the present time
794 zone if it was set when the daemon was started
795 (i.e. the daemon passes the value on to new
796 connections).
797
798 USER Set to the name of the user logging in.
799
800 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
801 M-bM-^@M-^\VARNAME=valueM-bM-^@M-^] to the environment if the file exists and users are
802 allowed to change their environment. For more information, see the
803 PermitUserEnvironment option in sshd_config(5).
804
805FILES
806 ~/.rhosts
807 This file is used for host-based authentication (see above). On
808 some machines this file may need to be world-readable if the
809 user's home directory is on an NFS partition, because sshd(8)
810 reads it as root. Additionally, this file must be owned by the
811 user, and must not have write permissions for anyone else. The
812 recommended permission for most machines is read/write for the
813 user, and not accessible by others.
814
815 ~/.shosts
816 This file is used in exactly the same way as .rhosts, but allows
817 host-based authentication without permitting login with
818 rlogin/rsh.
819
820 ~/.ssh/
821 This directory is the default location for all user-specific
822 configuration and authentication information. There is no
823 general requirement to keep the entire contents of this directory
824 secret, but the recommended permissions are read/write/execute
825 for the user, and not accessible by others.
826
827 ~/.ssh/authorized_keys
828 Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used
829 for logging in as this user. The format of this file is
830 described in the sshd(8) manual page. This file is not highly
831 sensitive, but the recommended permissions are read/write for the
832 user, and not accessible by others.
833
834 ~/.ssh/config
835 This is the per-user configuration file. The file format and
836 configuration options are described in ssh_config(5). Because of
837 the potential for abuse, this file must have strict permissions:
838 read/write for the user, and not writable by others.
839
840 ~/.ssh/environment
841 Contains additional definitions for environment variables; see
842 ENVIRONMENT, above.
843
844 ~/.ssh/identity
845 ~/.ssh/id_dsa
846 ~/.ssh/id_ecdsa
847 ~/.ssh/id_ed25519
848 ~/.ssh/id_rsa
849 Contains the private key for authentication. These files contain
850 sensitive data and should be readable by the user but not
851 accessible by others (read/write/execute). ssh will simply
852 ignore a private key file if it is accessible by others. It is
853 possible to specify a passphrase when generating the key which
854 will be used to encrypt the sensitive part of this file using
855 3DES.
856
857 ~/.ssh/identity.pub
858 ~/.ssh/id_dsa.pub
859 ~/.ssh/id_ecdsa.pub
860 ~/.ssh/id_ed25519.pub
861 ~/.ssh/id_rsa.pub
862 Contains the public key for authentication. These files are not
863 sensitive and can (but need not) be readable by anyone.
864
865 ~/.ssh/known_hosts
866 Contains a list of host keys for all hosts the user has logged
867 into that are not already in the systemwide list of known host
868 keys. See sshd(8) for further details of the format of this
869 file.
870
871 ~/.ssh/rc
872 Commands in this file are executed by ssh when the user logs in,
873 just before the user's shell (or command) is started. See the
874 sshd(8) manual page for more information.
875
876 /etc/hosts.equiv
877 This file is for host-based authentication (see above). It
878 should only be writable by root.
879
880 /etc/shosts.equiv
881 This file is used in exactly the same way as hosts.equiv, but
882 allows host-based authentication without permitting login with
883 rlogin/rsh.
884
885 /etc/ssh/ssh_config
886 Systemwide configuration file. The file format and configuration
887 options are described in ssh_config(5).
888
889 /etc/ssh/ssh_host_key
890 /etc/ssh/ssh_host_dsa_key
891 /etc/ssh/ssh_host_ecdsa_key
892 /etc/ssh/ssh_host_ed25519_key
893 /etc/ssh/ssh_host_rsa_key
894 These files contain the private parts of the host keys and are
895 used for host-based authentication. If protocol version 1 is
896 used, ssh must be setuid root, since the host key is readable
897 only by root. For protocol version 2, ssh uses ssh-keysign(8) to
898 access the host keys, eliminating the requirement that ssh be
899 setuid root when host-based authentication is used. By default
900 ssh is not setuid root.
901
902 /etc/ssh/ssh_known_hosts
903 Systemwide list of known host keys. This file should be prepared
904 by the system administrator to contain the public host keys of
905 all machines in the organization. It should be world-readable.
906 See sshd(8) for further details of the format of this file.
907
908 /etc/ssh/sshrc
909 Commands in this file are executed by ssh when the user logs in,
910 just before the user's shell (or command) is started. See the
911 sshd(8) manual page for more information.
912
913EXIT STATUS
914 ssh exits with the exit status of the remote command or with 255 if an
915 error occurred.
916
917SEE ALSO
918 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
919 tun(4), ssh_config(5), ssh-keysign(8), sshd(8)
920
921STANDARDS
922 S. Lehtinen and C. Lonvick, The Secure Shell (SSH) Protocol Assigned
923 Numbers, RFC 4250, January 2006.
924
925 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol Architecture,
926 RFC 4251, January 2006.
927
928 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication Protocol,
929 RFC 4252, January 2006.
930
931 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer
932 Protocol, RFC 4253, January 2006.
933
934 T. Ylonen and C. Lonvick, The Secure Shell (SSH) Connection Protocol, RFC
935 4254, January 2006.
936
937 J. Schlyter and W. Griffin, Using DNS to Securely Publish Secure Shell
938 (SSH) Key Fingerprints, RFC 4255, January 2006.
939
940 F. Cusack and M. Forssen, Generic Message Exchange Authentication for the
941 Secure Shell Protocol (SSH), RFC 4256, January 2006.
942
943 J. Galbraith and P. Remaker, The Secure Shell (SSH) Session Channel Break
944 Extension, RFC 4335, January 2006.
945
946 M. Bellare, T. Kohno, and C. Namprempre, The Secure Shell (SSH) Transport
947 Layer Encryption Modes, RFC 4344, January 2006.
948
949 B. Harris, Improved Arcfour Modes for the Secure Shell (SSH) Transport
950 Layer Protocol, RFC 4345, January 2006.
951
952 M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for
953 the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006.
954
955 J. Galbraith and R. Thayer, The Secure Shell (SSH) Public Key File
956 Format, RFC 4716, November 2006.
957
958 D. Stebila and J. Green, Elliptic Curve Algorithm Integration in the
959 Secure Shell Transport Layer, RFC 5656, December 2009.
960
961 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
962 Real-World Security, 1999, International Workshop on Cryptographic
963 Techniques and E-Commerce (CrypTEC '99).
964
965AUTHORS
966 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
967 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
968 de Raadt and Dug Song removed many bugs, re-added newer features and
969 created OpenSSH. Markus Friedl contributed the support for SSH protocol
970 versions 1.5 and 2.0.
971
972OpenBSD 5.8 July 20, 2015 OpenBSD 5.8
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..67133cd4d
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,1026 @@
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 critera or the single token all which always
63 matches. The available criteria keywords are: canonical, exec,
64 host, originalhost, user, and localuser. The all criteria must
65 appear alone or immediately after canonical. Other criteria may
66 be combined arbitrarily. All criteria but all and canonical
67 require an argument. Criteria may be negated by prepending an
68 exclamation mark (M-bM-^@M-^X!M-bM-^@M-^Y).
69
70 The canonical keyword matches only when the configuration file is
71 being re-parsed after hostname canonicalization (see the
72 CanonicalizeHostname option.) This may be useful to specify
73 conditions that work with canonical host names only. The exec
74 keyword executes the specified command under the user's shell.
75 If the command returns a zero exit status then the condition is
76 considered true. Commands containing whitespace characters must
77 be quoted. The following character sequences in the command will
78 be expanded prior to execution: M-bM-^@M-^X%LM-bM-^@M-^Y will be substituted by the
79 first component of the local host name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted
80 by the local host name (including any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be
81 substituted by the target host name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by
82 the original target host name specified on the command-line, M-bM-^@M-^X%pM-bM-^@M-^Y
83 the destination port, M-bM-^@M-^X%rM-bM-^@M-^Y by the remote login username, and M-bM-^@M-^X%uM-bM-^@M-^Y
84 by the username of the user running ssh(1).
85
86 The other keywords' criteria must be single entries or comma-
87 separated lists and may use the wildcard and negation operators
88 described in the PATTERNS section. The criteria for the host
89 keyword are matched against the target hostname, after any
90 substitution by the Hostname or CanonicalizeHostname options.
91 The originalhost keyword matches against the hostname as it was
92 specified on the command-line. The user keyword matches against
93 the target username on the remote host. The localuser keyword
94 matches against the name of the local user running ssh(1) (this
95 keyword may be useful in system-wide ssh_config files).
96
97 AddressFamily
98 Specifies which address family to use when connecting. Valid
99 arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6
100 only).
101
102 BatchMode
103 If set to M-bM-^@M-^\yesM-bM-^@M-^], passphrase/password querying will be disabled.
104 This option is useful in scripts and other batch jobs where no
105 user is present to supply the password. The argument must be
106 M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
107
108 BindAddress
109 Use the specified address on the local machine as the source
110 address of the connection. Only useful on systems with more than
111 one address. Note that this option does not work if
112 UsePrivilegedPort is set to M-bM-^@M-^\yesM-bM-^@M-^].
113
114 CanonicalDomains
115 When CanonicalizeHostname is enabled, this option specifies the
116 list of domain suffixes in which to search for the specified
117 destination host.
118
119 CanonicalizeFallbackLocal
120 Specifies whether to fail with an error when hostname
121 canonicalization fails. The default, M-bM-^@M-^\yesM-bM-^@M-^], will attempt to look
122 up the unqualified hostname using the system resolver's search
123 rules. A value of M-bM-^@M-^\noM-bM-^@M-^] will cause ssh(1) to fail instantly if
124 CanonicalizeHostname is enabled and the target hostname cannot be
125 found in any of the domains specified by CanonicalDomains.
126
127 CanonicalizeHostname
128 Controls whether explicit hostname canonicalization is performed.
129 The default, M-bM-^@M-^\noM-bM-^@M-^], is not to perform any name rewriting and let
130 the system resolver handle all hostname lookups. If set to M-bM-^@M-^\yesM-bM-^@M-^]
131 then, for connections that do not use a ProxyCommand, ssh(1) will
132 attempt to canonicalize the hostname specified on the command
133 line using the CanonicalDomains suffixes and
134 CanonicalizePermittedCNAMEs rules. If CanonicalizeHostname is
135 set to M-bM-^@M-^\alwaysM-bM-^@M-^], then canonicalization is applied to proxied
136 connections too.
137
138 If this option is enabled, then the configuration files are
139 processed again using the new target name to pick up any new
140 configuration in matching Host and Match stanzas.
141
142 CanonicalizeMaxDots
143 Specifies the maximum number of dot characters in a hostname
144 before canonicalization is disabled. The default, M-bM-^@M-^\1M-bM-^@M-^], allows a
145 single dot (i.e. hostname.subdomain).
146
147 CanonicalizePermittedCNAMEs
148 Specifies rules to determine whether CNAMEs should be followed
149 when canonicalizing hostnames. The rules consist of one or more
150 arguments of source_domain_list:target_domain_list, where
151 source_domain_list is a pattern-list of domains that may follow
152 CNAMEs in canonicalization, and target_domain_list is a pattern-
153 list of domains that they may resolve to.
154
155 For example, M-bM-^@M-^\*.a.example.com:*.b.example.com,*.c.example.comM-bM-^@M-^]
156 will allow hostnames matching M-bM-^@M-^\*.a.example.comM-bM-^@M-^] to be
157 canonicalized to names in the M-bM-^@M-^\*.b.example.comM-bM-^@M-^] or
158 M-bM-^@M-^\*.c.example.comM-bM-^@M-^] domains.
159
160 ChallengeResponseAuthentication
161 Specifies whether to use challenge-response authentication. The
162 argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
163 M-bM-^@M-^\yesM-bM-^@M-^].
164
165 CheckHostIP
166 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will additionally check the
167 host IP address in the known_hosts file. This allows ssh to
168 detect if a host key changed due to DNS spoofing and will add
169 addresses of destination hosts to ~/.ssh/known_hosts in the
170 process, regardless of the setting of StrictHostKeyChecking. If
171 the option is set to M-bM-^@M-^\noM-bM-^@M-^], the check will not be executed. The
172 default is M-bM-^@M-^\yesM-bM-^@M-^].
173
174 Cipher Specifies the cipher to use for encrypting the session in
175 protocol version 1. Currently, M-bM-^@M-^\blowfishM-bM-^@M-^], M-bM-^@M-^\3desM-bM-^@M-^], and M-bM-^@M-^\desM-bM-^@M-^] are
176 supported. des is only supported in the ssh(1) client for
177 interoperability with legacy protocol 1 implementations that do
178 not support the 3des cipher. Its use is strongly discouraged due
179 to cryptographic weaknesses. The default is M-bM-^@M-^\3desM-bM-^@M-^].
180
181 Ciphers
182 Specifies the ciphers allowed for protocol version 2 in order of
183 preference. Multiple ciphers must be comma-separated. If the
184 specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified
185 ciphers will be appended to the default set instead of replacing
186 them.
187
188 The supported ciphers are:
189
190 3des-cbc
191 aes128-cbc
192 aes192-cbc
193 aes256-cbc
194 aes128-ctr
195 aes192-ctr
196 aes256-ctr
197 aes128-gcm@openssh.com
198 aes256-gcm@openssh.com
199 arcfour
200 arcfour128
201 arcfour256
202 blowfish-cbc
203 cast128-cbc
204 chacha20-poly1305@openssh.com
205
206 The default is:
207
208 chacha20-poly1305@openssh.com,
209 aes128-ctr,aes192-ctr,aes256-ctr,
210 aes128-gcm@openssh.com,aes256-gcm@openssh.com,
211 arcfour256,arcfour128,
212 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,
213 aes192-cbc,aes256-cbc,arcfour
214
215 The list of available ciphers may also be obtained using the -Q
216 option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^].
217
218 ClearAllForwardings
219 Specifies that all local, remote, and dynamic port forwardings
220 specified in the configuration files or on the command line be
221 cleared. This option is primarily useful when used from the
222 ssh(1) command line to clear port forwardings set in
223 configuration files, and is automatically set by scp(1) and
224 sftp(1). The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
225 M-bM-^@M-^\noM-bM-^@M-^].
226
227 Compression
228 Specifies whether to use compression. The argument must be M-bM-^@M-^\yesM-bM-^@M-^]
229 or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
230
231 CompressionLevel
232 Specifies the compression level to use if compression is enabled.
233 The argument must be an integer from 1 (fast) to 9 (slow, best).
234 The default level is 6, which is good for most applications. The
235 meaning of the values is the same as in gzip(1). Note that this
236 option applies to protocol version 1 only.
237
238 ConnectionAttempts
239 Specifies the number of tries (one per second) to make before
240 exiting. The argument must be an integer. This may be useful in
241 scripts if the connection sometimes fails. The default is 1.
242
243 ConnectTimeout
244 Specifies the timeout (in seconds) used when connecting to the
245 SSH server, instead of using the default system TCP timeout.
246 This value is used only when the target is down or really
247 unreachable, not when it refuses the connection.
248
249 ControlMaster
250 Enables the sharing of multiple sessions over a single network
251 connection. When set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will listen for
252 connections on a control socket specified using the ControlPath
253 argument. Additional sessions can connect to this socket using
254 the same ControlPath with ControlMaster set to M-bM-^@M-^\noM-bM-^@M-^] (the
255 default). These sessions will try to reuse the master instance's
256 network connection rather than initiating new ones, but will fall
257 back to connecting normally if the control socket does not exist,
258 or is not listening.
259
260 Setting this to M-bM-^@M-^\askM-bM-^@M-^] will cause ssh to listen for control
261 connections, but require confirmation using ssh-askpass(1). If
262 the ControlPath cannot be opened, ssh will continue without
263 connecting to a master instance.
264
265 X11 and ssh-agent(1) forwarding is supported over these
266 multiplexed connections, however the display and agent forwarded
267 will be the one belonging to the master connection i.e. it is not
268 possible to forward multiple displays or agents.
269
270 Two additional options allow for opportunistic multiplexing: try
271 to use a master connection but fall back to creating a new one if
272 one does not already exist. These options are: M-bM-^@M-^\autoM-bM-^@M-^] and
273 M-bM-^@M-^\autoaskM-bM-^@M-^]. The latter requires confirmation like the M-bM-^@M-^\askM-bM-^@M-^]
274 option.
275
276 ControlPath
277 Specify the path to the control socket used for connection
278 sharing as described in the ControlMaster section above or the
279 string M-bM-^@M-^\noneM-bM-^@M-^] to disable connection sharing. In the path, M-bM-^@M-^X%LM-bM-^@M-^Y
280 will be substituted by the first component of the local host
281 name, M-bM-^@M-^X%lM-bM-^@M-^Y will be substituted by the local host name (including
282 any domain name), M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted by the target host
283 name, M-bM-^@M-^X%nM-bM-^@M-^Y will be substituted by the original target host name
284 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
285 the remote login username, M-bM-^@M-^X%uM-bM-^@M-^Y by the username of the user
286 running ssh(1), and M-bM-^@M-^X%CM-bM-^@M-^Y by a hash of the concatenation:
287 %l%h%p%r. It is recommended that any ControlPath used for
288 opportunistic connection sharing include at least %h, %p, and %r
289 (or alternatively %C) and be placed in a directory that is not
290 writable by other users. This ensures that shared connections
291 are uniquely identified.
292
293 ControlPersist
294 When used in conjunction with ControlMaster, specifies that the
295 master connection should remain open in the background (waiting
296 for future client connections) after the initial client
297 connection has been closed. If set to M-bM-^@M-^\noM-bM-^@M-^], then the master
298 connection will not be placed into the background, and will close
299 as soon as the initial client connection is closed. If set to
300 M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\0M-bM-^@M-^], then the master connection will remain in the
301 background indefinitely (until killed or closed via a mechanism
302 such as the ssh(1) M-bM-^@M-^\-O exitM-bM-^@M-^] option). If set to a time in
303 seconds, or a time in any of the formats documented in
304 sshd_config(5), then the backgrounded master connection will
305 automatically terminate after it has remained idle (with no
306 client connections) for the specified time.
307
308 DynamicForward
309 Specifies that a TCP port on the local machine be forwarded over
310 the secure channel, and the application protocol is then used to
311 determine where to connect to from the remote machine.
312
313 The argument must be [bind_address:]port. IPv6 addresses can be
314 specified by enclosing addresses in square brackets. By default,
315 the local port is bound in accordance with the GatewayPorts
316 setting. However, an explicit bind_address may be used to bind
317 the connection to a specific address. The bind_address of
318 M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the listening port be bound for local
319 use only, while an empty address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port
320 should be available from all interfaces.
321
322 Currently the SOCKS4 and SOCKS5 protocols are supported, and
323 ssh(1) will act as a SOCKS server. Multiple forwardings may be
324 specified, and additional forwardings can be given on the command
325 line. Only the superuser can forward privileged ports.
326
327 EnableSSHKeysign
328 Setting this option to M-bM-^@M-^\yesM-bM-^@M-^] in the global client configuration
329 file /etc/ssh/ssh_config enables the use of the helper program
330 ssh-keysign(8) during HostbasedAuthentication. The argument must
331 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
332 placed in the non-hostspecific section. See ssh-keysign(8) for
333 more information.
334
335 EscapeChar
336 Sets the escape character (default: M-bM-^@M-^X~M-bM-^@M-^Y). The escape character
337 can also be set on the command line. The argument should be a
338 single character, M-bM-^@M-^X^M-bM-^@M-^Y followed by a letter, or M-bM-^@M-^\noneM-bM-^@M-^] to disable
339 the escape character entirely (making the connection transparent
340 for binary data).
341
342 ExitOnForwardFailure
343 Specifies whether ssh(1) should terminate the connection if it
344 cannot set up all requested dynamic, tunnel, local, and remote
345 port forwardings. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
346 default is M-bM-^@M-^\noM-bM-^@M-^].
347
348 FingerprintHash
349 Specifies the hash algorithm used when displaying key
350 fingerprints. Valid options are: M-bM-^@M-^\md5M-bM-^@M-^] and M-bM-^@M-^\sha256M-bM-^@M-^]. The
351 default is M-bM-^@M-^\sha256M-bM-^@M-^].
352
353 ForwardAgent
354 Specifies whether the connection to the authentication agent (if
355 any) will be forwarded to the remote machine. The argument must
356 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
357
358 Agent forwarding should be enabled with caution. Users with the
359 ability to bypass file permissions on the remote host (for the
360 agent's Unix-domain socket) can access the local agent through
361 the forwarded connection. An attacker cannot obtain key material
362 from the agent, however they can perform operations on the keys
363 that enable them to authenticate using the identities loaded into
364 the agent.
365
366 ForwardX11
367 Specifies whether X11 connections will be automatically
368 redirected over the secure channel and DISPLAY set. The argument
369 must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
370
371 X11 forwarding should be enabled with caution. Users with the
372 ability to bypass file permissions on the remote host (for the
373 user's X11 authorization database) can access the local X11
374 display through the forwarded connection. An attacker may then
375 be able to perform activities such as keystroke monitoring if the
376 ForwardX11Trusted option is also enabled.
377
378 ForwardX11Timeout
379 Specify a timeout for untrusted X11 forwarding using the format
380 described in the TIME FORMATS section of sshd_config(5). X11
381 connections received by ssh(1) after this time will be refused.
382 The default is to disable untrusted X11 forwarding after twenty
383 minutes has elapsed.
384
385 ForwardX11Trusted
386 If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], remote X11 clients will have full
387 access to the original X11 display.
388
389 If this option is set to M-bM-^@M-^\noM-bM-^@M-^], remote X11 clients will be
390 considered untrusted and prevented from stealing or tampering
391 with data belonging to trusted X11 clients. Furthermore, the
392 xauth(1) token used for the session will be set to expire after
393 20 minutes. Remote clients will be refused access after this
394 time.
395
396 The default is M-bM-^@M-^\noM-bM-^@M-^].
397
398 See the X11 SECURITY extension specification for full details on
399 the restrictions imposed on untrusted clients.
400
401 GatewayPorts
402 Specifies whether remote hosts are allowed to connect to local
403 forwarded ports. By default, ssh(1) binds local port forwardings
404 to the loopback address. This prevents other remote hosts from
405 connecting to forwarded ports. GatewayPorts can be used to
406 specify that ssh should bind local port forwardings to the
407 wildcard address, thus allowing remote hosts to connect to
408 forwarded ports. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
409 default is M-bM-^@M-^\noM-bM-^@M-^].
410
411 GlobalKnownHostsFile
412 Specifies one or more files to use for the global host key
413 database, separated by whitespace. The default is
414 /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2.
415
416 GSSAPIAuthentication
417 Specifies whether user authentication based on GSSAPI is allowed.
418 The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol
419 version 2 only.
420
421 GSSAPIDelegateCredentials
422 Forward (delegate) credentials to the server. The default is
423 M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol version 2 only.
424
425 HashKnownHosts
426 Indicates that ssh(1) should hash host names and addresses when
427 they are added to ~/.ssh/known_hosts. These hashed names may be
428 used normally by ssh(1) and sshd(8), but they do not reveal
429 identifying information should the file's contents be disclosed.
430 The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that existing names and addresses in
431 known hosts files will not be converted automatically, but may be
432 manually hashed using ssh-keygen(1).
433
434 HostbasedAuthentication
435 Specifies whether to try rhosts based authentication with public
436 key authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
437 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 2 only
438 and is similar to RhostsRSAAuthentication.
439
440 HostbasedKeyTypes
441 Specifies the key types that will be used for hostbased
442 authentication as a comma-separated pattern list. Alternately if
443 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the
444 specified key types will be appended to the default set instead
445 of replacing them. The default for this option is:
446
447 ecdsa-sha2-nistp256-cert-v01@openssh.com,
448 ecdsa-sha2-nistp384-cert-v01@openssh.com,
449 ecdsa-sha2-nistp521-cert-v01@openssh.com,
450 ssh-ed25519-cert-v01@openssh.com,
451 ssh-rsa-cert-v01@openssh.com,
452 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
453 ssh-ed25519,ssh-rsa
454
455 The -Q option of ssh(1) may be used to list supported key types.
456
457 HostKeyAlgorithms
458 Specifies the protocol version 2 host key algorithms that the
459 client wants to use in order of preference. Alternately if the
460 specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified
461 key types will be appended to the default set instead of
462 replacing them. The default for this option is:
463
464 ecdsa-sha2-nistp256-cert-v01@openssh.com,
465 ecdsa-sha2-nistp384-cert-v01@openssh.com,
466 ecdsa-sha2-nistp521-cert-v01@openssh.com,
467 ssh-ed25519-cert-v01@openssh.com,
468 ssh-rsa-cert-v01@openssh.com,
469 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
470 ssh-ed25519,ssh-rsa
471
472 If hostkeys are known for the destination host then this default
473 is modified to prefer their algorithms.
474
475 The list of available key types may also be obtained using the -Q
476 option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^].
477
478 HostKeyAlias
479 Specifies an alias that should be used instead of the real host
480 name when looking up or saving the host key in the host key
481 database files. This option is useful for tunneling SSH
482 connections or for multiple servers running on a single host.
483
484 HostName
485 Specifies the real host name to log into. This can be used to
486 specify nicknames or abbreviations for hosts. If the hostname
487 contains the character sequence M-bM-^@M-^X%hM-bM-^@M-^Y, then this will be replaced
488 with the host name specified on the command line (this is useful
489 for manipulating unqualified names). The character sequence M-bM-^@M-^X%%M-bM-^@M-^Y
490 will be replaced by a single M-bM-^@M-^X%M-bM-^@M-^Y character, which may be used
491 when specifying IPv6 link-local addresses.
492
493 The default is the name given on the command line. Numeric IP
494 addresses are also permitted (both on the command line and in
495 HostName specifications).
496
497 IdentitiesOnly
498 Specifies that ssh(1) should only use the authentication identity
499 files configured in the ssh_config files, even if ssh-agent(1) or
500 a PKCS11Provider offers more identities. The argument to this
501 keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. This option is intended for
502 situations where ssh-agent offers many different identities. The
503 default is M-bM-^@M-^\noM-bM-^@M-^].
504
505 IdentityFile
506 Specifies a file from which the user's DSA, ECDSA, Ed25519 or RSA
507 authentication identity is read. The default is ~/.ssh/identity
508 for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
509 ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
510 Additionally, any identities represented by the authentication
511 agent will be used for authentication unless IdentitiesOnly is
512 set. ssh(1) will try to load certificate information from the
513 filename obtained by appending -cert.pub to the path of a
514 specified IdentityFile.
515
516 The file name may use the tilde syntax to refer to a user's home
517 directory or one of the following escape characters: M-bM-^@M-^X%dM-bM-^@M-^Y (local
518 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
519 name), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host name) or M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name).
520
521 It is possible to have multiple identity files specified in
522 configuration files; all these identities will be tried in
523 sequence. Multiple IdentityFile directives will add to the list
524 of identities tried (this behaviour differs from that of other
525 configuration directives).
526
527 IdentityFile may be used in conjunction with IdentitiesOnly to
528 select which identities in an agent are offered during
529 authentication.
530
531 IgnoreUnknown
532 Specifies a pattern-list of unknown options to be ignored if they
533 are encountered in configuration parsing. This may be used to
534 suppress errors if ssh_config contains options that are
535 unrecognised by ssh(1). It is recommended that IgnoreUnknown be
536 listed early in the configuration file as it will not be applied
537 to unknown options that appear before it.
538
539 IPQoS Specifies the IPv4 type-of-service or DSCP class for connections.
540 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-^],
541 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-^],
542 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-^],
543 M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value.
544 This option may take one or two arguments, separated by
545 whitespace. If one argument is specified, it is used as the
546 packet class unconditionally. If two values are specified, the
547 first is automatically selected for interactive sessions and the
548 second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^]
549 for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive
550 sessions.
551
552 KbdInteractiveAuthentication
553 Specifies whether to use keyboard-interactive authentication.
554 The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default
555 is M-bM-^@M-^\yesM-bM-^@M-^].
556
557 KbdInteractiveDevices
558 Specifies the list of methods to use in keyboard-interactive
559 authentication. Multiple method names must be comma-separated.
560 The default is to use the server specified list. The methods
561 available vary depending on what the server supports. For an
562 OpenSSH server, it may be zero or more of: M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], and
563 M-bM-^@M-^\skeyM-bM-^@M-^].
564
565 KexAlgorithms
566 Specifies the available KEX (Key Exchange) algorithms. Multiple
567 algorithms must be comma-separated. Alternately if the specified
568 value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified methods
569 will be appended to the default set instead of replacing them.
570 The default is:
571
572 curve25519-sha256@libssh.org,
573 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
574 diffie-hellman-group-exchange-sha256,
575 diffie-hellman-group-exchange-sha1,
576 diffie-hellman-group14-sha1
577
578 The list of available key exchange algorithms may also be
579 obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^].
580
581 LocalCommand
582 Specifies a command to execute on the local machine after
583 successfully connecting to the server. The command string
584 extends to the end of the line, and is executed with the user's
585 shell. The following escape character substitutions will be
586 performed: M-bM-^@M-^X%dM-bM-^@M-^Y (local user's home directory), M-bM-^@M-^X%hM-bM-^@M-^Y (remote host
587 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
588 command line), M-bM-^@M-^X%pM-bM-^@M-^Y (remote port), M-bM-^@M-^X%rM-bM-^@M-^Y (remote user name) or
589 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:
590 %l%h%p%r.
591
592 The command is run synchronously and does not have access to the
593 session of the ssh(1) that spawned it. It should not be used for
594 interactive commands.
595
596 This directive is ignored unless PermitLocalCommand has been
597 enabled.
598
599 LocalForward
600 Specifies that a TCP port on the local machine be forwarded over
601 the secure channel to the specified host and port from the remote
602 machine. The first argument must be [bind_address:]port and the
603 second argument must be host:hostport. IPv6 addresses can be
604 specified by enclosing addresses in square brackets. Multiple
605 forwardings may be specified, and additional forwardings can be
606 given on the command line. Only the superuser can forward
607 privileged ports. By default, the local port is bound in
608 accordance with the GatewayPorts setting. However, an explicit
609 bind_address may be used to bind the connection to a specific
610 address. The bind_address of M-bM-^@M-^\localhostM-bM-^@M-^] indicates that the
611 listening port be bound for local use only, while an empty
612 address or M-bM-^@M-^X*M-bM-^@M-^Y indicates that the port should be available from
613 all interfaces.
614
615 LogLevel
616 Gives the verbosity level that is used when logging messages from
617 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO,
618 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
619 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
620 higher levels of verbose output.
621
622 MACs Specifies the MAC (message authentication code) algorithms in
623 order of preference. The MAC algorithm is used in protocol
624 version 2 for data integrity protection. Multiple algorithms
625 must be comma-separated. If the specified value begins with a
626 M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified algorithms will be appended to
627 the default set instead of replacing them.
628
629 The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC after
630 encryption (encrypt-then-mac). These are considered safer and
631 their use recommended.
632
633 The default is:
634
635 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
636 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
637 umac-64@openssh.com,umac-128@openssh.com,
638 hmac-sha2-256,hmac-sha2-512,
639 hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com,
640 hmac-ripemd160-etm@openssh.com,
641 hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com,
642 hmac-md5,hmac-sha1,hmac-ripemd160,
643 hmac-sha1-96,hmac-md5-96
644
645 The list of available MAC algorithms may also be obtained using
646 the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^].
647
648 NoHostAuthenticationForLocalhost
649 This option can be used if the home directory is shared across
650 machines. In this case localhost will refer to a different
651 machine on each of the machines and the user will get many
652 warnings about changed host keys. However, this option disables
653 host authentication for localhost. The argument to this keyword
654 must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is to check the host key for
655 localhost.
656
657 NumberOfPasswordPrompts
658 Specifies the number of password prompts before giving up. The
659 argument to this keyword must be an integer. The default is 3.
660
661 PasswordAuthentication
662 Specifies whether to use password authentication. The argument
663 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-^].
664
665 PermitLocalCommand
666 Allow local command execution via the LocalCommand option or
667 using the !command escape sequence in ssh(1). The argument must
668 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
669
670 PKCS11Provider
671 Specifies which PKCS#11 provider to use. The argument to this
672 keyword is the PKCS#11 shared library ssh(1) should use to
673 communicate with a PKCS#11 token providing the user's private RSA
674 key.
675
676 Port Specifies the port number to connect on the remote host. The
677 default is 22.
678
679 PreferredAuthentications
680 Specifies the order in which the client should try protocol 2
681 authentication methods. This allows a client to prefer one
682 method (e.g. keyboard-interactive) over another method (e.g.
683 password). The default is:
684
685 gssapi-with-mic,hostbased,publickey,
686 keyboard-interactive,password
687
688 Protocol
689 Specifies the protocol versions ssh(1) should support in order of
690 preference. The possible values are M-bM-^@M-^X1M-bM-^@M-^Y and M-bM-^@M-^X2M-bM-^@M-^Y. Multiple
691 versions must be comma-separated. When this option is set to
692 M-bM-^@M-^\2,1M-bM-^@M-^] ssh will try version 2 and fall back to version 1 if
693 version 2 is not available. The default is M-bM-^@M-^X2M-bM-^@M-^Y.
694
695 ProxyCommand
696 Specifies the command to use to connect to the server. The
697 command string extends to the end of the line, and is executed
698 using the user's shell M-bM-^@M-^XexecM-bM-^@M-^Y directive to avoid a lingering
699 shell process.
700
701 In the command string, any occurrence of M-bM-^@M-^X%hM-bM-^@M-^Y will be substituted
702 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
703 remote user name. The command can be basically anything, and
704 should read from its standard input and write to its standard
705 output. It should eventually connect an sshd(8) server running
706 on some machine, or execute sshd -i somewhere. Host key
707 management will be done using the HostName of the host being
708 connected (defaulting to the name typed by the user). Setting
709 the command to M-bM-^@M-^\noneM-bM-^@M-^] disables this option entirely. Note that
710 CheckHostIP is not available for connects with a proxy command.
711
712 This directive is useful in conjunction with nc(1) and its proxy
713 support. For example, the following directive would connect via
714 an HTTP proxy at 192.0.2.0:
715
716 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
717
718 ProxyUseFdpass
719 Specifies that ProxyCommand will pass a connected file descriptor
720 back to ssh(1) instead of continuing to execute and pass data.
721 The default is M-bM-^@M-^\noM-bM-^@M-^].
722
723 PubkeyAcceptedKeyTypes
724 Specifies the key types that will be used for public key
725 authentication as a comma-separated pattern list. Alternately if
726 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the key
727 types after it will be appended to the default instead of
728 replacing it. The default for this option is:
729
730 ecdsa-sha2-nistp256-cert-v01@openssh.com,
731 ecdsa-sha2-nistp384-cert-v01@openssh.com,
732 ecdsa-sha2-nistp521-cert-v01@openssh.com,
733 ssh-ed25519-cert-v01@openssh.com,
734 ssh-rsa-cert-v01@openssh.com,
735 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
736 ssh-ed25519,ssh-rsa
737
738 The -Q option of ssh(1) may be used to list supported key types.
739
740 PubkeyAuthentication
741 Specifies whether to try public key authentication. The argument
742 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-^].
743 This option applies to protocol version 2 only.
744
745 RekeyLimit
746 Specifies the maximum amount of data that may be transmitted
747 before the session key is renegotiated, optionally followed a
748 maximum amount of time that may pass before the session key is
749 renegotiated. The first argument is specified in bytes and may
750 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,
751 Megabytes, or Gigabytes, respectively. The default is between
752 M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second
753 value is specified in seconds and may use any of the units
754 documented in the TIME FORMATS section of sshd_config(5). The
755 default value for RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that
756 rekeying is performed after the cipher's default amount of data
757 has been sent or received and no time based rekeying is done.
758 This option applies to protocol version 2 only.
759
760 RemoteForward
761 Specifies that a TCP port on the remote machine be forwarded over
762 the secure channel to the specified host and port from the local
763 machine. The first argument must be [bind_address:]port and the
764 second argument must be host:hostport. IPv6 addresses can be
765 specified by enclosing addresses in square brackets. Multiple
766 forwardings may be specified, and additional forwardings can be
767 given on the command line. Privileged ports can be forwarded
768 only when logging in as root on the remote machine.
769
770 If the port argument is M-bM-^@M-^X0M-bM-^@M-^Y, the listen port will be dynamically
771 allocated on the server and reported to the client at run time.
772
773 If the bind_address is not specified, the default is to only bind
774 to loopback addresses. If the bind_address is M-bM-^@M-^X*M-bM-^@M-^Y or an empty
775 string, then the forwarding is requested to listen on all
776 interfaces. Specifying a remote bind_address will only succeed
777 if the server's GatewayPorts option is enabled (see
778 sshd_config(5)).
779
780 RequestTTY
781 Specifies whether to request a pseudo-tty for the session. The
782 argument may be one of: M-bM-^@M-^\noM-bM-^@M-^] (never request a TTY), M-bM-^@M-^\yesM-bM-^@M-^] (always
783 request a TTY when standard input is a TTY), M-bM-^@M-^\forceM-bM-^@M-^] (always
784 request a TTY) or M-bM-^@M-^\autoM-bM-^@M-^] (request a TTY when opening a login
785 session). This option mirrors the -t and -T flags for ssh(1).
786
787 RevokedHostKeys
788 Specifies revoked host public keys. Keys listed in this file
789 will be refused for host authentication. Note that if this file
790 does not exist or is not readable, then host authentication will
791 be refused for all hosts. Keys may be specified as a text file,
792 listing one public key per line, or as an OpenSSH Key Revocation
793 List (KRL) as generated by ssh-keygen(1). For more information
794 on KRLs, see the KEY REVOCATION LISTS section in ssh-keygen(1).
795
796 RhostsRSAAuthentication
797 Specifies whether to try rhosts based authentication with RSA
798 host authentication. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
799 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only
800 and requires ssh(1) to be setuid root.
801
802 RSAAuthentication
803 Specifies whether to try RSA authentication. The argument to
804 this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. RSA authentication will only
805 be attempted if the identity file exists, or an authentication
806 agent is running. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option
807 applies to protocol version 1 only.
808
809 SendEnv
810 Specifies what variables from the local environ(7) should be sent
811 to the server. Note that environment passing is only supported
812 for protocol 2. The server must also support it, and the server
813 must be configured to accept these environment variables. Note
814 that the TERM environment variable is always sent whenever a
815 pseudo-terminal is requested as it is required by the protocol.
816 Refer to AcceptEnv in sshd_config(5) for how to configure the
817 server. Variables are specified by name, which may contain
818 wildcard characters. Multiple environment variables may be
819 separated by whitespace or spread across multiple SendEnv
820 directives. The default is not to send any environment
821 variables.
822
823 See PATTERNS for more information on patterns.
824
825 ServerAliveCountMax
826 Sets the number of server alive messages (see below) which may be
827 sent without ssh(1) receiving any messages back from the server.
828 If this threshold is reached while server alive messages are
829 being sent, ssh will disconnect from the server, terminating the
830 session. It is important to note that the use of server alive
831 messages is very different from TCPKeepAlive (below). The server
832 alive messages are sent through the encrypted channel and
833 therefore will not be spoofable. The TCP keepalive option
834 enabled by TCPKeepAlive is spoofable. The server alive mechanism
835 is valuable when the client or server depend on knowing when a
836 connection has become inactive.
837
838 The default value is 3. If, for example, ServerAliveInterval
839 (see below) is set to 15 and ServerAliveCountMax is left at the
840 default, if the server becomes unresponsive, ssh will disconnect
841 after approximately 45 seconds. This option applies to protocol
842 version 2 only.
843
844 ServerAliveInterval
845 Sets a timeout interval in seconds after which if no data has
846 been received from the server, ssh(1) will send a message through
847 the encrypted channel to request a response from the server. The
848 default is 0, indicating that these messages will not be sent to
849 the server. This option applies to protocol version 2 only.
850
851 StreamLocalBindMask
852 Sets the octal file creation mode mask (umask) used when creating
853 a Unix-domain socket file for local or remote port forwarding.
854 This option is only used for port forwarding to a Unix-domain
855 socket file.
856
857 The default value is 0177, which creates a Unix-domain socket
858 file that is readable and writable only by the owner. Note that
859 not all operating systems honor the file mode on Unix-domain
860 socket files.
861
862 StreamLocalBindUnlink
863 Specifies whether to remove an existing Unix-domain socket file
864 for local or remote port forwarding before creating a new one.
865 If the socket file already exists and StreamLocalBindUnlink is
866 not enabled, ssh will be unable to forward the port to the Unix-
867 domain socket file. This option is only used for port forwarding
868 to a Unix-domain socket file.
869
870 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-^].
871
872 StrictHostKeyChecking
873 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) will never automatically add
874 host keys to the ~/.ssh/known_hosts file, and refuses to connect
875 to hosts whose host key has changed. This provides maximum
876 protection against trojan horse attacks, though it can be
877 annoying when the /etc/ssh/ssh_known_hosts file is poorly
878 maintained or when connections to new hosts are frequently made.
879 This option forces the user to manually add all new hosts. If
880 this flag is set to M-bM-^@M-^\noM-bM-^@M-^], ssh will automatically add new host
881 keys to the user known hosts files. If this flag is set to
882 M-bM-^@M-^\askM-bM-^@M-^], new host keys will be added to the user known host files
883 only after the user has confirmed that is what they really want
884 to do, and ssh will refuse to connect to hosts whose host key has
885 changed. The host keys of known hosts will be verified
886 automatically in all cases. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\noM-bM-^@M-^], or
887 M-bM-^@M-^\askM-bM-^@M-^]. The default is M-bM-^@M-^\askM-bM-^@M-^].
888
889 TCPKeepAlive
890 Specifies whether the system should send TCP keepalive messages
891 to the other side. If they are sent, death of the connection or
892 crash of one of the machines will be properly noticed. However,
893 this means that connections will die if the route is down
894 temporarily, and some people find it annoying.
895
896 The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the
897 client will notice if the network goes down or the remote host
898 dies. This is important in scripts, and many users want it too.
899
900 To disable TCP keepalive messages, the value should be set to
901 M-bM-^@M-^\noM-bM-^@M-^].
902
903 Tunnel Request tun(4) device forwarding between the client and the
904 server. The argument must be M-bM-^@M-^\yesM-bM-^@M-^], M-bM-^@M-^\point-to-pointM-bM-^@M-^] (layer 3),
905 M-bM-^@M-^\ethernetM-bM-^@M-^] (layer 2), or M-bM-^@M-^\noM-bM-^@M-^]. Specifying M-bM-^@M-^\yesM-bM-^@M-^] requests the
906 default tunnel mode, which is M-bM-^@M-^\point-to-pointM-bM-^@M-^]. The default is
907 M-bM-^@M-^\noM-bM-^@M-^].
908
909 TunnelDevice
910 Specifies the tun(4) devices to open on the client (local_tun)
911 and the server (remote_tun).
912
913 The argument must be local_tun[:remote_tun]. The devices may be
914 specified by numerical ID or the keyword M-bM-^@M-^\anyM-bM-^@M-^], which uses the
915 next available tunnel device. If remote_tun is not specified, it
916 defaults to M-bM-^@M-^\anyM-bM-^@M-^]. The default is M-bM-^@M-^\any:anyM-bM-^@M-^].
917
918 UpdateHostKeys
919 Specifies whether ssh(1) should accept notifications of
920 additional hostkeys from the server sent after authentication has
921 completed and add them to UserKnownHostsFile. The argument must
922 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
923 allows learning alternate hostkeys for a server and supports
924 graceful key rotation by allowing a server to send replacement
925 public keys before old ones are removed. Additional hostkeys are
926 only accepted if the key used to authenticate the host was
927 already trusted or explicity accepted by the user. If
928 UpdateHostKeys is set to M-bM-^@M-^\askM-bM-^@M-^], then the user is asked to confirm
929 the modifications to the known_hosts file. Confirmation is
930 currently incompatible with ControlPersist, and will be disabled
931 if it is enabled.
932
933 Presently, only sshd(8) from OpenSSH 6.8 and greater support the
934 M-bM-^@M-^\hostkeys@openssh.comM-bM-^@M-^] protocol extension used to inform the
935 client of all the server's hostkeys.
936
937 UsePrivilegedPort
938 Specifies whether to use a privileged port for outgoing
939 connections. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is
940 M-bM-^@M-^\noM-bM-^@M-^]. If set to M-bM-^@M-^\yesM-bM-^@M-^], ssh(1) must be setuid root. Note that
941 this option must be set to M-bM-^@M-^\yesM-bM-^@M-^] for RhostsRSAAuthentication with
942 older servers.
943
944 User Specifies the user to log in as. This can be useful when a
945 different user name is used on different machines. This saves
946 the trouble of having to remember to give the user name on the
947 command line.
948
949 UserKnownHostsFile
950 Specifies one or more files to use for the user host key
951 database, separated by whitespace. The default is
952 ~/.ssh/known_hosts, ~/.ssh/known_hosts2.
953
954 VerifyHostKeyDNS
955 Specifies whether to verify the remote key using DNS and SSHFP
956 resource records. If this option is set to M-bM-^@M-^\yesM-bM-^@M-^], the client
957 will implicitly trust keys that match a secure fingerprint from
958 DNS. Insecure fingerprints will be handled as if this option was
959 set to M-bM-^@M-^\askM-bM-^@M-^]. If this option is set to M-bM-^@M-^\askM-bM-^@M-^], information on
960 fingerprint match will be displayed, but the user will still need
961 to confirm new host keys according to the StrictHostKeyChecking
962 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
963 is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol version 2
964 only.
965
966 See also VERIFYING HOST KEYS in ssh(1).
967
968 VisualHostKey
969 If this flag is set to M-bM-^@M-^\yesM-bM-^@M-^], an ASCII art representation of the
970 remote host key fingerprint is printed in addition to the
971 fingerprint string at login and for unknown host keys. If this
972 flag is set to M-bM-^@M-^\noM-bM-^@M-^], no fingerprint strings are printed at login
973 and only the fingerprint string will be printed for unknown host
974 keys. The default is M-bM-^@M-^\noM-bM-^@M-^].
975
976 XAuthLocation
977 Specifies the full pathname of the xauth(1) program. The default
978 is /usr/X11R6/bin/xauth.
979
980PATTERNS
981 A pattern consists of zero or more non-whitespace characters, M-bM-^@M-^X*M-bM-^@M-^Y (a
982 wildcard that matches zero or more characters), or M-bM-^@M-^X?M-bM-^@M-^Y (a wildcard that
983 matches exactly one character). For example, to specify a set of
984 declarations for any host in the M-bM-^@M-^\.co.ukM-bM-^@M-^] set of domains, the following
985 pattern could be used:
986
987 Host *.co.uk
988
989 The following pattern would match any host in the 192.168.0.[0-9] network
990 range:
991
992 Host 192.168.0.?
993
994 A pattern-list is a comma-separated list of patterns. Patterns within
995 pattern-lists may be negated by preceding them with an exclamation mark
996 (M-bM-^@M-^X!M-bM-^@M-^Y). For example, to allow a key to be used from anywhere within an
997 organization except from the M-bM-^@M-^\dialupM-bM-^@M-^] pool, the following entry (in
998 authorized_keys) could be used:
999
1000 from="!*.dialup.example.com,*.example.com"
1001
1002FILES
1003 ~/.ssh/config
1004 This is the per-user configuration file. The format of this file
1005 is described above. This file is used by the SSH client.
1006 Because of the potential for abuse, this file must have strict
1007 permissions: read/write for the user, and not accessible by
1008 others.
1009
1010 /etc/ssh/ssh_config
1011 Systemwide configuration file. This file provides defaults for
1012 those values that are not specified in the user's configuration
1013 file, and for those users who do not have a configuration file.
1014 This file must be world-readable.
1015
1016SEE ALSO
1017 ssh(1)
1018
1019AUTHORS
1020 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
1021 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
1022 de Raadt and Dug Song removed many bugs, re-added newer features and
1023 created OpenSSH. Markus Friedl contributed the support for SSH protocol
1024 versions 1.5 and 2.0.
1025
1026OpenBSD 5.8 August 14, 2015 OpenBSD 5.8
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..798022568
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,635 @@
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 2 supports DSA, ECDSA, Ed25519 and RSA keys;
150 protocol 1 only supports RSA keys. For both protocols, each host has a
151 host-specific key, normally 2048 bits, used to identify the host.
152
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 none is 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 cert-authority
302 Specifies that the listed key is a certification authority (CA)
303 that is trusted to validate signed certificates for user
304 authentication.
305
306 Certificates may encode access restrictions similar to these key
307 options. If both certificate restrictions and key options are
308 present, the most restrictive union of the two is applied.
309
310 command="command"
311 Specifies that the command is executed whenever this key is used
312 for authentication. The command supplied by the user (if any) is
313 ignored. The command is run on a pty if the client requests a
314 pty; otherwise it is run without a tty. If an 8-bit clean
315 channel is required, one must not request a pty or should specify
316 no-pty. A quote may be included in the command by quoting it
317 with a backslash. This option might be useful to restrict
318 certain public keys to perform just a specific operation. An
319 example might be a key that permits remote backups but nothing
320 else. Note that the client may specify TCP and/or X11 forwarding
321 unless they are explicitly prohibited. The command originally
322 supplied by the client is available in the SSH_ORIGINAL_COMMAND
323 environment variable. Note that this option applies to shell,
324 command or subsystem execution. Also note that this command may
325 be superseded by either a sshd_config(5) ForceCommand directive
326 or a command embedded in a certificate.
327
328 environment="NAME=value"
329 Specifies that the string is to be added to the environment when
330 logging in using this key. Environment variables set this way
331 override other default environment values. Multiple options of
332 this type are permitted. Environment processing is disabled by
333 default and is controlled via the PermitUserEnvironment option.
334 This option is automatically disabled if UseLogin is enabled.
335
336 from="pattern-list"
337 Specifies that in addition to public key authentication, either
338 the canonical name of the remote host or its IP address must be
339 present in the comma-separated list of patterns. See PATTERNS in
340 ssh_config(5) for more information on patterns.
341
342 In addition to the wildcard matching that may be applied to
343 hostnames or addresses, a from stanza may match IP addresses
344 using CIDR address/masklen notation.
345
346 The purpose of this option is to optionally increase security:
347 public key authentication by itself does not trust the network or
348 name servers or anything (but the key); however, if somebody
349 somehow steals the key, the key permits an intruder to log in
350 from anywhere in the world. This additional option makes using a
351 stolen key more difficult (name servers and/or routers would have
352 to be compromised in addition to just the key).
353
354 no-agent-forwarding
355 Forbids authentication agent forwarding when this key is used for
356 authentication.
357
358 no-port-forwarding
359 Forbids TCP forwarding when this key is used for authentication.
360 Any port forward requests by the client will return an error.
361 This might be used, e.g. in connection with the command option.
362
363 no-pty Prevents tty allocation (a request to allocate a pty will fail).
364
365 no-user-rc
366 Disables execution of ~/.ssh/rc.
367
368 no-X11-forwarding
369 Forbids X11 forwarding when this key is used for authentication.
370 Any X11 forward requests by the client will return an error.
371
372 permitopen="host:port"
373 Limit local port forwarding with ssh(1) -L such that it may only
374 connect to the specified host and port. IPv6 addresses can be
375 specified by enclosing the address in square brackets. Multiple
376 permitopen options may be applied separated by commas. No
377 pattern matching is performed on the specified hostnames, they
378 must be literal domains or addresses. A port specification of *
379 matches any port.
380
381 principals="principals"
382 On a cert-authority line, specifies allowed principals for
383 certificate authentication as a comma-separated list. At least
384 one name from the list must appear in the certificate's list of
385 principals for the certificate to be accepted. This option is
386 ignored for keys that are not marked as trusted certificate
387 signers using the cert-authority option.
388
389 tunnel="n"
390 Force a tun(4) device on the server. Without this option, the
391 next available device will be used if the client requests a
392 tunnel.
393
394 An example authorized_keys file:
395
396 # Comments allowed at start of line
397 ssh-rsa AAAAB3Nza...LiPk== user@example.net
398 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
399 AAAAB2...19Q== john@example.net
400 command="dump /home",no-pty,no-port-forwarding ssh-dss
401 AAAAC3...51R== example.net
402 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
403 AAAAB5...21S==
404 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
405 jane@example.net
406
407SSH_KNOWN_HOSTS FILE FORMAT
408 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
409 public keys for all known hosts. The global file should be prepared by
410 the administrator (optional), and the per-user file is maintained
411 automatically: whenever the user connects from an unknown host, its key
412 is added to the per-user file.
413
414 Each line in these files contains the following fields: markers
415 (optional), hostnames, bits, exponent, modulus, comment. The fields are
416 separated by spaces.
417
418 The marker is optional, but if it is present then it must be one of
419 M-bM-^@M-^\@cert-authorityM-bM-^@M-^], to indicate that the line contains a certification
420 authority (CA) key, or M-bM-^@M-^\@revokedM-bM-^@M-^], to indicate that the key contained on
421 the line is revoked and must not ever be accepted. Only one marker
422 should be used on a key line.
423
424 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
425 wildcards); each pattern in turn is matched against the canonical host
426 name (when authenticating a client) or against the user-supplied name
427 (when authenticating a server). A pattern may also be preceded by M-bM-^@M-^X!M-bM-^@M-^Y to
428 indicate negation: if the host name matches a negated pattern, it is not
429 accepted (by that line) even if it matched another pattern on the line.
430 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
431 brackets then followed by M-bM-^@M-^X:M-bM-^@M-^Y and a non-standard port number.
432
433 Alternately, hostnames may be stored in a hashed form which hides host
434 names and addresses should the file's contents be disclosed. Hashed
435 hostnames start with a M-bM-^@M-^X|M-bM-^@M-^Y character. Only one hashed hostname may
436 appear on a single line and none of the above negation or wildcard
437 operators may be applied.
438
439 Bits, exponent, and modulus are taken directly from the RSA host key;
440 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
441 optional comment field continues to the end of the line, and is not used.
442
443 Lines starting with M-bM-^@M-^X#M-bM-^@M-^Y and empty lines are ignored as comments.
444
445 When performing host authentication, authentication is accepted if any
446 matching line has the proper key; either one that matches exactly or, if
447 the server has presented a certificate for authentication, the key of the
448 certification authority that signed the certificate. For a key to be
449 trusted as a certification authority, it must use the M-bM-^@M-^\@cert-authorityM-bM-^@M-^]
450 marker described above.
451
452 The known hosts file also provides a facility to mark keys as revoked,
453 for example when it is known that the associated private key has been
454 stolen. Revoked keys are specified by including the M-bM-^@M-^\@revokedM-bM-^@M-^] marker at
455 the beginning of the key line, and are never accepted for authentication
456 or as certification authorities, but instead will produce a warning from
457 ssh(1) when they are encountered.
458
459 It is permissible (but not recommended) to have several lines or
460 different host keys for the same names. This will inevitably happen when
461 short forms of host names from different domains are put in the file. It
462 is possible that the files contain conflicting information;
463 authentication is accepted if valid information can be found from either
464 file.
465
466 Note that the lines in these files are typically hundreds of characters
467 long, and you definitely don't want to type in the host keys by hand.
468 Rather, generate them by a script, ssh-keyscan(1) or by taking
469 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
470 ssh-keygen(1) also offers some basic automated editing for
471 ~/.ssh/known_hosts including removing hosts matching a host name and
472 converting all host names to their hashed representations.
473
474 An example ssh_known_hosts file:
475
476 # Comments allowed at start of line
477 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
478 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
479 # A hashed hostname
480 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
481 AAAA1234.....=
482 # A revoked key
483 @revoked * ssh-rsa AAAAB5W...
484 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
485 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
486
487FILES
488 ~/.hushlogin
489 This file is used to suppress printing the last login time and
490 /etc/motd, if PrintLastLog and PrintMotd, respectively, are
491 enabled. It does not suppress printing of the banner specified
492 by Banner.
493
494 ~/.rhosts
495 This file is used for host-based authentication (see ssh(1) for
496 more information). On some machines this file may need to be
497 world-readable if the user's home directory is on an NFS
498 partition, because sshd reads it as root. Additionally, this
499 file must be owned by the user, and must not have write
500 permissions for anyone else. The recommended permission for most
501 machines is read/write for the user, and not accessible by
502 others.
503
504 ~/.shosts
505 This file is used in exactly the same way as .rhosts, but allows
506 host-based authentication without permitting login with
507 rlogin/rsh.
508
509 ~/.ssh/
510 This directory is the default location for all user-specific
511 configuration and authentication information. There is no
512 general requirement to keep the entire contents of this directory
513 secret, but the recommended permissions are read/write/execute
514 for the user, and not accessible by others.
515
516 ~/.ssh/authorized_keys
517 Lists the public keys (DSA, ECDSA, Ed25519, RSA) that can be used
518 for logging in as this user. The format of this file is
519 described above. The content of the file is not highly
520 sensitive, but the recommended permissions are read/write for the
521 user, and not accessible by others.
522
523 If this file, the ~/.ssh directory, or the user's home directory
524 are writable by other users, then the file could be modified or
525 replaced by unauthorized users. In this case, sshd will not
526 allow it to be used unless the StrictModes option has been set to
527 M-bM-^@M-^\noM-bM-^@M-^].
528
529 ~/.ssh/environment
530 This file is read into the environment at login (if it exists).
531 It can only contain empty lines, comment lines (that start with
532 M-bM-^@M-^X#M-bM-^@M-^Y), and assignment lines of the form name=value. The file
533 should be writable only by the user; it need not be readable by
534 anyone else. Environment processing is disabled by default and
535 is controlled via the PermitUserEnvironment option.
536
537 ~/.ssh/known_hosts
538 Contains a list of host keys for all hosts the user has logged
539 into that are not already in the systemwide list of known host
540 keys. The format of this file is described above. This file
541 should be writable only by root/the owner and can, but need not
542 be, world-readable.
543
544 ~/.ssh/rc
545 Contains initialization routines to be run before the user's home
546 directory becomes accessible. This file should be writable only
547 by the user, and need not be readable by anyone else.
548
549 /etc/hosts.equiv
550 This file is for host-based authentication (see ssh(1)). It
551 should only be writable by root.
552
553 /etc/moduli
554 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
555 Exchange". The file format is described in moduli(5).
556
557 /etc/motd
558 See motd(5).
559
560 /etc/nologin
561 If this file exists, sshd refuses to let anyone except root log
562 in. The contents of the file are displayed to anyone trying to
563 log in, and non-root connections are refused. The file should be
564 world-readable.
565
566 /etc/shosts.equiv
567 This file is used in exactly the same way as hosts.equiv, but
568 allows host-based authentication without permitting login with
569 rlogin/rsh.
570
571 /etc/ssh/ssh_host_key
572 /etc/ssh/ssh_host_dsa_key
573 /etc/ssh/ssh_host_ecdsa_key
574 /etc/ssh/ssh_host_ed25519_key
575 /etc/ssh/ssh_host_rsa_key
576 These files contain the private parts of the host keys. These
577 files should only be owned by root, readable only by root, and
578 not accessible to others. Note that sshd does not start if these
579 files are group/world-accessible.
580
581 /etc/ssh/ssh_host_key.pub
582 /etc/ssh/ssh_host_dsa_key.pub
583 /etc/ssh/ssh_host_ecdsa_key.pub
584 /etc/ssh/ssh_host_ed25519_key.pub
585 /etc/ssh/ssh_host_rsa_key.pub
586 These files contain the public parts of the host keys. These
587 files should be world-readable but writable only by root. Their
588 contents should match the respective private parts. These files
589 are not really used for anything; they are provided for the
590 convenience of the user so their contents can be copied to known
591 hosts files. These files are created using ssh-keygen(1).
592
593 /etc/ssh/ssh_known_hosts
594 Systemwide list of known host keys. This file should be prepared
595 by the system administrator to contain the public host keys of
596 all machines in the organization. The format of this file is
597 described above. This file should be writable only by root/the
598 owner and should be world-readable.
599
600 /etc/ssh/sshd_config
601 Contains configuration data for sshd. The file format and
602 configuration options are described in sshd_config(5).
603
604 /etc/ssh/sshrc
605 Similar to ~/.ssh/rc, it can be used to specify machine-specific
606 login-time initializations globally. This file should be
607 writable only by root, and should be world-readable.
608
609 /var/empty
610 chroot(2) directory used by sshd during privilege separation in
611 the pre-authentication phase. The directory should not contain
612 any files and must be owned by root and not group or world-
613 writable.
614
615 /var/run/sshd.pid
616 Contains the process ID of the sshd listening for connections (if
617 there are several daemons running concurrently for different
618 ports, this contains the process ID of the one started last).
619 The content of this file is not sensitive; it can be world-
620 readable.
621
622SEE ALSO
623 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
624 ssh-keyscan(1), chroot(2), login.conf(5), moduli(5), sshd_config(5),
625 inetd(8), sftp-server(8)
626
627AUTHORS
628 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
629 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
630 de Raadt and Dug Song removed many bugs, re-added newer features and
631 created OpenSSH. Markus Friedl contributed the support for SSH protocol
632 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
633 for privilege separation.
634
635OpenBSD 5.8 July 3, 2015 OpenBSD 5.8
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..aae7fb6af
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,1052 @@
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. Note that
23 environment passing is only supported for protocol 2, and that
24 the TERM environment variable is always sent whenever the client
25 requests a pseudo-terminal as it is required by the protocol.
26 Variables are specified by name, which may contain the wildcard
27 characters M-bM-^@M-^X*M-bM-^@M-^Y and M-bM-^@M-^X?M-bM-^@M-^Y. Multiple environment variables may be
28 separated by whitespace or spread across multiple AcceptEnv
29 directives. Be warned that some environment variables could be
30 used to bypass restricted user environments. For this reason,
31 care should be taken in the use of this directive. The default
32 is not to accept any environment variables.
33
34 AddressFamily
35 Specifies which address family should be used by sshd(8). Valid
36 arguments are M-bM-^@M-^\anyM-bM-^@M-^], M-bM-^@M-^\inetM-bM-^@M-^] (use IPv4 only), or M-bM-^@M-^\inet6M-bM-^@M-^] (use IPv6
37 only). The default is M-bM-^@M-^\anyM-bM-^@M-^].
38
39 AllowAgentForwarding
40 Specifies whether ssh-agent(1) forwarding is permitted. The
41 default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling agent forwarding does not
42 improve security unless users are also denied shell access, as
43 they can always install their own forwarders.
44
45 AllowGroups
46 This keyword can be followed by a list of group name patterns,
47 separated by spaces. If specified, login is allowed only for
48 users whose primary group or supplementary group list matches one
49 of the patterns. Only group names are valid; a numerical group
50 ID is not recognized. By default, login is allowed for all
51 groups. The allow/deny directives are processed in the following
52 order: DenyUsers, AllowUsers, DenyGroups, and finally
53 AllowGroups.
54
55 See PATTERNS in ssh_config(5) for more information on patterns.
56
57 AllowTcpForwarding
58 Specifies whether TCP forwarding is permitted. The available
59 options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow TCP forwarding, M-bM-^@M-^\noM-bM-^@M-^] to
60 prevent all TCP forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the
61 perspective of ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow
62 remote forwarding only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that
63 disabling TCP forwarding does not improve security unless users
64 are also denied shell access, as they can always install their
65 own forwarders.
66
67 AllowStreamLocalForwarding
68 Specifies whether StreamLocal (Unix-domain socket) forwarding is
69 permitted. The available options are M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\allM-bM-^@M-^] to allow
70 StreamLocal forwarding, M-bM-^@M-^\noM-bM-^@M-^] to prevent all StreamLocal
71 forwarding, M-bM-^@M-^\localM-bM-^@M-^] to allow local (from the perspective of
72 ssh(1)) forwarding only or M-bM-^@M-^\remoteM-bM-^@M-^] to allow remote forwarding
73 only. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that disabling StreamLocal
74 forwarding does not improve security unless users are also denied
75 shell access, as they can always install their own forwarders.
76
77 AllowUsers
78 This keyword can be followed by a list of user name patterns,
79 separated by spaces. If specified, login is allowed only for
80 user names that match one of the patterns. Only user names are
81 valid; a numerical user ID is not recognized. By default, login
82 is allowed for all users. If the pattern takes the form
83 USER@HOST then USER and HOST are separately checked, restricting
84 logins to particular users from particular hosts. The allow/deny
85 directives are processed in the following order: DenyUsers,
86 AllowUsers, DenyGroups, and finally AllowGroups.
87
88 See PATTERNS in ssh_config(5) for more information on patterns.
89
90 AuthenticationMethods
91 Specifies the authentication methods that must be successfully
92 completed for a user to be granted access. This option must be
93 followed by one or more comma-separated lists of authentication
94 method names. Successful authentication requires completion of
95 every method in at least one of these lists.
96
97 For example, an argument of M-bM-^@M-^\publickey,password
98 publickey,keyboard-interactiveM-bM-^@M-^] would require the user to
99 complete public key authentication, followed by either password
100 or keyboard interactive authentication. Only methods that are
101 next in one or more lists are offered at each stage, so for this
102 example, it would not be possible to attempt password or
103 keyboard-interactive authentication before public key.
104
105 For keyboard interactive authentication it is also possible to
106 restrict authentication to a specific device by appending a colon
107 followed by the device identifier M-bM-^@M-^\bsdauthM-bM-^@M-^], M-bM-^@M-^\pamM-bM-^@M-^], or M-bM-^@M-^\skeyM-bM-^@M-^],
108 depending on the server configuration. For example,
109 M-bM-^@M-^\keyboard-interactive:bsdauthM-bM-^@M-^] would restrict keyboard
110 interactive authentication to the M-bM-^@M-^\bsdauthM-bM-^@M-^] device.
111
112 If the M-bM-^@M-^\publickeyM-bM-^@M-^] method is listed more than once, sshd(8)
113 verifies that keys that have been used successfully are not
114 reused for subsequent authentications. For example, an
115 AuthenticationMethods of M-bM-^@M-^\publickey,publickeyM-bM-^@M-^] will require
116 successful authentication using two different public keys.
117
118 This option is only available for SSH protocol 2 and will yield a
119 fatal error if enabled if protocol 1 is also enabled. Note that
120 each authentication method listed should also be explicitly
121 enabled in the configuration. The default is not to require
122 multiple authentication; successful completion of a single
123 authentication method is sufficient.
124
125 AuthorizedKeysCommand
126 Specifies a program to be used to look up the user's public keys.
127 The program must be owned by root, not writable by group or
128 others and specified by an absolute path.
129
130 Arguments to AuthorizedKeysCommand may be provided using the
131 following tokens, which will be expanded at runtime: %% is
132 replaced by a literal '%', %u is replaced by the username being
133 authenticated, %h is replaced by the home directory of the user
134 being authenticated, %t is replaced with the key type offered for
135 authentication, %f is replaced with the fingerprint of the key,
136 and %k is replaced with the key being offered for authentication.
137 If no arguments are specified then the username of the target
138 user will be supplied.
139
140 The program should produce on standard output zero or more lines
141 of authorized_keys output (see AUTHORIZED_KEYS in sshd(8)). If a
142 key supplied by AuthorizedKeysCommand does not successfully
143 authenticate and authorize the user then public key
144 authentication continues using the usual AuthorizedKeysFile
145 files. By default, no AuthorizedKeysCommand is run.
146
147 AuthorizedKeysCommandUser
148 Specifies the user under whose account the AuthorizedKeysCommand
149 is run. It is recommended to use a dedicated user that has no
150 other role on the host than running authorized keys commands. If
151 AuthorizedKeysCommand is specified but AuthorizedKeysCommandUser
152 is not, then sshd(8) will refuse to start.
153
154 AuthorizedKeysFile
155 Specifies the file that contains the public keys that can be used
156 for user authentication. The format is described in the
157 AUTHORIZED_KEYS FILE FORMAT section of sshd(8).
158 AuthorizedKeysFile may contain tokens of the form %T which are
159 substituted during connection setup. The following tokens are
160 defined: %% is replaced by a literal '%', %h is replaced by the
161 home directory of the user being authenticated, and %u is
162 replaced by the username of that user. After expansion,
163 AuthorizedKeysFile is taken to be an absolute path or one
164 relative to the user's home directory. Multiple files may be
165 listed, separated by whitespace. The default is
166 M-bM-^@M-^\.ssh/authorized_keys .ssh/authorized_keys2M-bM-^@M-^].
167
168 AuthorizedPrincipalsCommand
169 Specifies a program to be used to generate the list of allowed
170 certificate principals as per AuthorizedPrincipalsFile. The
171 program must be owned by root, not writable by group or others
172 and specified by an absolute path.
173
174 Arguments to AuthorizedPrincipalsCommand may be provided using
175 the following tokens, which will be expanded at runtime: %% is
176 replaced by a literal '%', %u is replaced by the username being
177 authenticated and %h is replaced by the home directory of the
178 user being authenticated.
179
180 The program should produce on standard output zero or more lines
181 of AuthorizedPrincipalsFile output. If either
182 AuthorizedPrincipalsCommand or AuthorizedPrincipalsFile is
183 specified, then certificates offered by the client for
184 authentication must contain a principal that is listed. By
185 default, no AuthorizedPrincipalsCommand is run.
186
187 AuthorizedPrincipalsCommandUser
188 Specifies the user under whose account the
189 AuthorizedPrincipalsCommand is run. It is recommended to use a
190 dedicated user that has no other role on the host than running
191 authorized principals commands. If AuthorizedPrincipalsCommand
192 is specified but AuthorizedPrincipalsCommandUser is not, then
193 sshd(8) will refuse to start.
194
195 AuthorizedPrincipalsFile
196 Specifies a file that lists principal names that are accepted for
197 certificate authentication. When using certificates signed by a
198 key listed in TrustedUserCAKeys, this file lists names, one of
199 which must appear in the certificate for it to be accepted for
200 authentication. Names are listed one per line preceded by key
201 options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)).
202 Empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are ignored.
203
204 AuthorizedPrincipalsFile may contain tokens of the form %T which
205 are substituted during connection setup. The following tokens
206 are defined: %% is replaced by a literal '%', %h is replaced by
207 the home directory of the user being authenticated, and %u is
208 replaced by the username of that user. After expansion,
209 AuthorizedPrincipalsFile is taken to be an absolute path or one
210 relative to the user's home directory.
211
212 The default is M-bM-^@M-^\noneM-bM-^@M-^], i.e. not to use a principals file M-bM-^@M-^S in
213 this case, the username of the user must appear in a
214 certificate's principals list for it to be accepted. Note that
215 AuthorizedPrincipalsFile is only used when authentication
216 proceeds using a CA listed in TrustedUserCAKeys and is not
217 consulted for certification authorities trusted via
218 ~/.ssh/authorized_keys, though the principals= key option offers
219 a similar facility (see sshd(8) for details).
220
221 Banner The contents of the specified file are sent to the remote user
222 before authentication is allowed. If the argument is M-bM-^@M-^\noneM-bM-^@M-^] then
223 no banner is displayed. This option is only available for
224 protocol version 2. By default, no banner is displayed.
225
226 ChallengeResponseAuthentication
227 Specifies whether challenge-response authentication is allowed
228 (e.g. via PAM or through authentication styles supported in
229 login.conf(5)) The default is M-bM-^@M-^\yesM-bM-^@M-^].
230
231 ChrootDirectory
232 Specifies the pathname of a directory to chroot(2) to after
233 authentication. At session startup sshd(8) checks that all
234 components of the pathname are root-owned directories which are
235 not writable by any other user or group. After the chroot,
236 sshd(8) changes the working directory to the user's home
237 directory.
238
239 The pathname may contain the following tokens that are expanded
240 at runtime once the connecting user has been authenticated: %% is
241 replaced by a literal '%', %h is replaced by the home directory
242 of the user being authenticated, and %u is replaced by the
243 username of that user.
244
245 The ChrootDirectory must contain the necessary files and
246 directories to support the user's session. For an interactive
247 session this requires at least a shell, typically sh(1), and
248 basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
249 stderr(4), and tty(4) devices. For file transfer sessions using
250 M-bM-^@M-^\sftpM-bM-^@M-^], no additional configuration of the environment is
251 necessary if the in-process sftp server is used, though sessions
252 which use logging may require /dev/log inside the chroot
253 directory on some operating systems (see sftp-server(8) for
254 details).
255
256 For safety, it is very important that the directory hierarchy be
257 prevented from modification by other processes on the system
258 (especially those outside the jail). Misconfiguration can lead
259 to unsafe environments which sshd(8) cannot detect.
260
261 The default is not to chroot(2).
262
263 Ciphers
264 Specifies the ciphers allowed for protocol version 2. Multiple
265 ciphers must be comma-separated. If the specified value begins
266 with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified ciphers will be appended
267 to the default set instead of replacing them.
268
269 The supported ciphers are:
270
271 3des-cbc
272 aes128-cbc
273 aes192-cbc
274 aes256-cbc
275 aes128-ctr
276 aes192-ctr
277 aes256-ctr
278 aes128-gcm@openssh.com
279 aes256-gcm@openssh.com
280 arcfour
281 arcfour128
282 arcfour256
283 blowfish-cbc
284 cast128-cbc
285 chacha20-poly1305@openssh.com
286
287 The default is:
288
289 chacha20-poly1305@openssh.com,
290 aes128-ctr,aes192-ctr,aes256-ctr,
291 aes128-gcm@openssh.com,aes256-gcm@openssh.com
292
293 The list of available ciphers may also be obtained using the -Q
294 option of ssh(1) with an argument of M-bM-^@M-^\cipherM-bM-^@M-^].
295
296 ClientAliveCountMax
297 Sets the number of client alive messages (see below) which may be
298 sent without sshd(8) receiving any messages back from the client.
299 If this threshold is reached while client alive messages are
300 being sent, sshd will disconnect the client, terminating the
301 session. It is important to note that the use of client alive
302 messages is very different from TCPKeepAlive (below). The client
303 alive messages are sent through the encrypted channel and
304 therefore will not be spoofable. The TCP keepalive option
305 enabled by TCPKeepAlive is spoofable. The client alive mechanism
306 is valuable when the client or server depend on knowing when a
307 connection has become inactive.
308
309 The default value is 3. If ClientAliveInterval (see below) is
310 set to 15, and ClientAliveCountMax is left at the default,
311 unresponsive SSH clients will be disconnected after approximately
312 45 seconds. This option applies to protocol version 2 only.
313
314 ClientAliveInterval
315 Sets a timeout interval in seconds after which if no data has
316 been received from the client, sshd(8) will send a message
317 through the encrypted channel to request a response from the
318 client. The default is 0, indicating that these messages will
319 not be sent to the client. This option applies to protocol
320 version 2 only.
321
322 Compression
323 Specifies whether compression is allowed, or delayed until the
324 user has authenticated successfully. The argument must be M-bM-^@M-^\yesM-bM-^@M-^],
325 M-bM-^@M-^\delayedM-bM-^@M-^], or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\delayedM-bM-^@M-^].
326
327 DenyGroups
328 This keyword can be followed by a list of group name patterns,
329 separated by spaces. Login is disallowed for users whose primary
330 group or supplementary group list matches one of the patterns.
331 Only group names are valid; a numerical group ID is not
332 recognized. By default, login is allowed for all groups. The
333 allow/deny directives are processed in the following order:
334 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
335
336 See PATTERNS in ssh_config(5) for more information on patterns.
337
338 DenyUsers
339 This keyword can be followed by a list of user name patterns,
340 separated by spaces. Login is disallowed for user names that
341 match one of the patterns. Only user names are valid; a
342 numerical user ID is not recognized. By default, login is
343 allowed for all users. If the pattern takes the form USER@HOST
344 then USER and HOST are separately checked, restricting logins to
345 particular users from particular hosts. The allow/deny
346 directives are processed in the following order: DenyUsers,
347 AllowUsers, DenyGroups, and finally AllowGroups.
348
349 See PATTERNS in ssh_config(5) for more information on patterns.
350
351 FingerprintHash
352 Specifies the hash algorithm used when logging key fingerprints.
353 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-^].
354
355 ForceCommand
356 Forces the execution of the command specified by ForceCommand,
357 ignoring any command supplied by the client and ~/.ssh/rc if
358 present. The command is invoked by using the user's login shell
359 with the -c option. This applies to shell, command, or subsystem
360 execution. It is most useful inside a Match block. The command
361 originally supplied by the client is available in the
362 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
363 of M-bM-^@M-^\internal-sftpM-bM-^@M-^] will force the use of an in-process sftp
364 server that requires no support files when used with
365 ChrootDirectory.
366
367 GatewayPorts
368 Specifies whether remote hosts are allowed to connect to ports
369 forwarded for the client. By default, sshd(8) binds remote port
370 forwardings to the loopback address. This prevents other remote
371 hosts from connecting to forwarded ports. GatewayPorts can be
372 used to specify that sshd should allow remote port forwardings to
373 bind to non-loopback addresses, thus allowing other hosts to
374 connect. The argument may be M-bM-^@M-^\noM-bM-^@M-^] to force remote port
375 forwardings to be available to the local host only, M-bM-^@M-^\yesM-bM-^@M-^] to
376 force remote port forwardings to bind to the wildcard address, or
377 M-bM-^@M-^\clientspecifiedM-bM-^@M-^] to allow the client to select the address to
378 which the forwarding is bound. The default is M-bM-^@M-^\noM-bM-^@M-^].
379
380 GSSAPIAuthentication
381 Specifies whether user authentication based on GSSAPI is allowed.
382 The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that this option applies to protocol
383 version 2 only.
384
385 GSSAPICleanupCredentials
386 Specifies whether to automatically destroy the user's credentials
387 cache on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option
388 applies to protocol version 2 only.
389
390 GSSAPIStrictAcceptorCheck
391 Determines whether to be strict about the identity of the GSSAPI
392 acceptor a client authenticates against. If set to M-bM-^@M-^\yesM-bM-^@M-^] then
393 the client must authenticate against the host service on the
394 current hostname. If set to M-bM-^@M-^\noM-bM-^@M-^] then the client may
395 authenticate against any service key stored in the machine's
396 default store. This facility is provided to assist with
397 operation on multi homed machines. The default is M-bM-^@M-^\yesM-bM-^@M-^].
398
399 HostbasedAcceptedKeyTypes
400 Specifies the key types that will be accepted for hostbased
401 authentication as a comma-separated pattern list. Alternately if
402 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the
403 specified key types will be appended to the default set instead
404 of replacing them. The default for this option is:
405
406 ecdsa-sha2-nistp256-cert-v01@openssh.com,
407 ecdsa-sha2-nistp384-cert-v01@openssh.com,
408 ecdsa-sha2-nistp521-cert-v01@openssh.com,
409 ssh-ed25519-cert-v01@openssh.com,
410 ssh-rsa-cert-v01@openssh.com,
411 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
412 ssh-ed25519,ssh-rsa
413
414 The -Q option of ssh(1) may be used to list supported key types.
415
416 HostbasedAuthentication
417 Specifies whether rhosts or /etc/hosts.equiv authentication
418 together with successful public key client host authentication is
419 allowed (host-based authentication). This option is similar to
420 RhostsRSAAuthentication and applies to protocol version 2 only.
421 The default is M-bM-^@M-^\noM-bM-^@M-^].
422
423 HostbasedUsesNameFromPacketOnly
424 Specifies whether or not the server will attempt to perform a
425 reverse name lookup when matching the name in the ~/.shosts,
426 ~/.rhosts, and /etc/hosts.equiv files during
427 HostbasedAuthentication. A setting of M-bM-^@M-^\yesM-bM-^@M-^] means that sshd(8)
428 uses the name supplied by the client rather than attempting to
429 resolve the name from the TCP connection itself. The default is
430 M-bM-^@M-^\noM-bM-^@M-^].
431
432 HostCertificate
433 Specifies a file containing a public host certificate. The
434 certificate's public key must match a private host key already
435 specified by HostKey. The default behaviour of sshd(8) is not to
436 load any certificates.
437
438 HostKey
439 Specifies a file containing a private host key used by SSH. The
440 default is /etc/ssh/ssh_host_key for protocol version 1, and
441 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key,
442 /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for
443 protocol version 2.
444
445 Note that sshd(8) will refuse to use a file if it is group/world-
446 accessible and that the HostKeyAlgorithms option restricts which
447 of the keys are actually used by sshd(8).
448
449 It is possible to have multiple host key files. M-bM-^@M-^\rsa1M-bM-^@M-^] keys are
450 used for version 1 and M-bM-^@M-^\dsaM-bM-^@M-^], M-bM-^@M-^\ecdsaM-bM-^@M-^], M-bM-^@M-^\ed25519M-bM-^@M-^] or M-bM-^@M-^\rsaM-bM-^@M-^] are
451 used for version 2 of the SSH protocol. It is also possible to
452 specify public host key files instead. In this case operations
453 on the private key will be delegated to an ssh-agent(1).
454
455 HostKeyAgent
456 Identifies the UNIX-domain socket used to communicate with an
457 agent that has access to the private host keys. If
458 M-bM-^@M-^\SSH_AUTH_SOCKM-bM-^@M-^] is specified, the location of the socket will be
459 read from the SSH_AUTH_SOCK environment variable.
460
461 HostKeyAlgorithms
462 Specifies the protocol version 2 host key algorithms that the
463 server offers. The default for this option is:
464
465 ecdsa-sha2-nistp256-cert-v01@openssh.com,
466 ecdsa-sha2-nistp384-cert-v01@openssh.com,
467 ecdsa-sha2-nistp521-cert-v01@openssh.com,
468 ssh-ed25519-cert-v01@openssh.com,
469 ssh-rsa-cert-v01@openssh.com,
470 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
471 ssh-ed25519,ssh-rsa
472
473 The list of available key types may also be obtained using the -Q
474 option of ssh(1) with an argument of M-bM-^@M-^\keyM-bM-^@M-^].
475
476 IgnoreRhosts
477 Specifies that .rhosts and .shosts files will not be used in
478 RhostsRSAAuthentication or HostbasedAuthentication.
479
480 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
481 default is M-bM-^@M-^\yesM-bM-^@M-^].
482
483 IgnoreUserKnownHosts
484 Specifies whether sshd(8) should ignore the user's
485 ~/.ssh/known_hosts during RhostsRSAAuthentication or
486 HostbasedAuthentication. The default is M-bM-^@M-^\noM-bM-^@M-^].
487
488 IPQoS Specifies the IPv4 type-of-service or DSCP class for the
489 connection. Accepted values are M-bM-^@M-^\af11M-bM-^@M-^], M-bM-^@M-^\af12M-bM-^@M-^], M-bM-^@M-^\af13M-bM-^@M-^], M-bM-^@M-^\af21M-bM-^@M-^],
490 M-bM-^@M-^\af22M-bM-^@M-^], M-bM-^@M-^\af23M-bM-^@M-^], M-bM-^@M-^\af31M-bM-^@M-^], M-bM-^@M-^\af32M-bM-^@M-^], M-bM-^@M-^\af33M-bM-^@M-^], M-bM-^@M-^\af41M-bM-^@M-^], M-bM-^@M-^\af42M-bM-^@M-^], M-bM-^@M-^\af43M-bM-^@M-^],
491 M-bM-^@M-^\cs0M-bM-^@M-^], M-bM-^@M-^\cs1M-bM-^@M-^], M-bM-^@M-^\cs2M-bM-^@M-^], M-bM-^@M-^\cs3M-bM-^@M-^], M-bM-^@M-^\cs4M-bM-^@M-^], M-bM-^@M-^\cs5M-bM-^@M-^], M-bM-^@M-^\cs6M-bM-^@M-^], M-bM-^@M-^\cs7M-bM-^@M-^], M-bM-^@M-^\efM-bM-^@M-^],
492 M-bM-^@M-^\lowdelayM-bM-^@M-^], M-bM-^@M-^\throughputM-bM-^@M-^], M-bM-^@M-^\reliabilityM-bM-^@M-^], or a numeric value.
493 This option may take one or two arguments, separated by
494 whitespace. If one argument is specified, it is used as the
495 packet class unconditionally. If two values are specified, the
496 first is automatically selected for interactive sessions and the
497 second for non-interactive sessions. The default is M-bM-^@M-^\lowdelayM-bM-^@M-^]
498 for interactive sessions and M-bM-^@M-^\throughputM-bM-^@M-^] for non-interactive
499 sessions.
500
501 KbdInteractiveAuthentication
502 Specifies whether to allow keyboard-interactive authentication.
503 The argument to this keyword must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default
504 is to use whatever value ChallengeResponseAuthentication is set
505 to (by default M-bM-^@M-^\yesM-bM-^@M-^]).
506
507 KerberosAuthentication
508 Specifies whether the password provided by the user for
509 PasswordAuthentication will be validated through the Kerberos
510 KDC. To use this option, the server needs a Kerberos servtab
511 which allows the verification of the KDC's identity. The default
512 is M-bM-^@M-^\noM-bM-^@M-^].
513
514 KerberosGetAFSToken
515 If AFS is active and the user has a Kerberos 5 TGT, attempt to
516 acquire an AFS token before accessing the user's home directory.
517 The default is M-bM-^@M-^\noM-bM-^@M-^].
518
519 KerberosOrLocalPasswd
520 If password authentication through Kerberos fails then the
521 password will be validated via any additional local mechanism
522 such as /etc/passwd. The default is M-bM-^@M-^\yesM-bM-^@M-^].
523
524 KerberosTicketCleanup
525 Specifies whether to automatically destroy the user's ticket
526 cache file on logout. The default is M-bM-^@M-^\yesM-bM-^@M-^].
527
528 KexAlgorithms
529 Specifies the available KEX (Key Exchange) algorithms. Multiple
530 algorithms must be comma-separated. Alternately if the specified
531 value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the specified methods
532 will be appended to the default set instead of replacing them.
533 The supported algorithms are:
534
535 curve25519-sha256@libssh.org
536 diffie-hellman-group1-sha1
537 diffie-hellman-group14-sha1
538 diffie-hellman-group-exchange-sha1
539 diffie-hellman-group-exchange-sha256
540 ecdh-sha2-nistp256
541 ecdh-sha2-nistp384
542 ecdh-sha2-nistp521
543
544 The default is:
545
546 curve25519-sha256@libssh.org,
547 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
548 diffie-hellman-group-exchange-sha256,
549 diffie-hellman-group14-sha1
550
551 The list of available key exchange algorithms may also be
552 obtained using the -Q option of ssh(1) with an argument of M-bM-^@M-^\kexM-bM-^@M-^].
553
554 KeyRegenerationInterval
555 In protocol version 1, the ephemeral server key is automatically
556 regenerated after this many seconds (if it has been used). The
557 purpose of regeneration is to prevent decrypting captured
558 sessions by later breaking into the machine and stealing the
559 keys. The key is never stored anywhere. If the value is 0, the
560 key is never regenerated. The default is 3600 (seconds).
561
562 ListenAddress
563 Specifies the local addresses sshd(8) should listen on. The
564 following forms may be used:
565
566 ListenAddress host|IPv4_addr|IPv6_addr
567 ListenAddress host|IPv4_addr:port
568 ListenAddress [host|IPv6_addr]:port
569
570 If port is not specified, sshd will listen on the address and all
571 Port options specified. The default is to listen on all local
572 addresses. Multiple ListenAddress options are permitted.
573
574 LoginGraceTime
575 The server disconnects after this time if the user has not
576 successfully logged in. If the value is 0, there is no time
577 limit. The default is 120 seconds.
578
579 LogLevel
580 Gives the verbosity level that is used when logging messages from
581 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
582 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
583 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
584 higher levels of debugging output. Logging with a DEBUG level
585 violates the privacy of users and is not recommended.
586
587 MACs Specifies the available MAC (message authentication code)
588 algorithms. The MAC algorithm is used in protocol version 2 for
589 data integrity protection. Multiple algorithms must be comma-
590 separated. If the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character,
591 then the specified algorithms will be appended to the default set
592 instead of replacing them.
593
594 The algorithms that contain M-bM-^@M-^\-etmM-bM-^@M-^] calculate the MAC after
595 encryption (encrypt-then-mac). These are considered safer and
596 their use recommended. The supported MACs are:
597
598 hmac-md5
599 hmac-md5-96
600 hmac-ripemd160
601 hmac-sha1
602 hmac-sha1-96
603 hmac-sha2-256
604 hmac-sha2-512
605 umac-64@openssh.com
606 umac-128@openssh.com
607 hmac-md5-etm@openssh.com
608 hmac-md5-96-etm@openssh.com
609 hmac-ripemd160-etm@openssh.com
610 hmac-sha1-etm@openssh.com
611 hmac-sha1-96-etm@openssh.com
612 hmac-sha2-256-etm@openssh.com
613 hmac-sha2-512-etm@openssh.com
614 umac-64-etm@openssh.com
615 umac-128-etm@openssh.com
616
617 The default is:
618
619 umac-64-etm@openssh.com,umac-128-etm@openssh.com,
620 hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,
621 umac-64@openssh.com,umac-128@openssh.com,
622 hmac-sha2-256,hmac-sha2-512
623
624 The list of available MAC algorithms may also be obtained using
625 the -Q option of ssh(1) with an argument of M-bM-^@M-^\macM-bM-^@M-^].
626
627 Match Introduces a conditional block. If all of the criteria on the
628 Match line are satisfied, the keywords on the following lines
629 override those set in the global section of the config file,
630 until either another Match line or the end of the file. If a
631 keyword appears in multiple Match blocks that are satisfied, only
632 the first instance of the keyword is applied.
633
634 The arguments to Match are one or more criteria-pattern pairs or
635 the single token All which matches all criteria. The available
636 criteria are User, Group, Host, LocalAddress, LocalPort, and
637 Address. The match patterns may consist of single entries or
638 comma-separated lists and may use the wildcard and negation
639 operators described in the PATTERNS section of ssh_config(5).
640
641 The patterns in an Address criteria may additionally contain
642 addresses to match in CIDR address/masklen format, e.g.
643 M-bM-^@M-^\192.0.2.0/24M-bM-^@M-^] or M-bM-^@M-^\3ffe:ffff::/32M-bM-^@M-^]. Note that the mask length
644 provided must be consistent with the address - it is an error to
645 specify a mask length that is too long for the address or one
646 with bits set in this host portion of the address. For example,
647 M-bM-^@M-^\192.0.2.0/33M-bM-^@M-^] and M-bM-^@M-^\192.0.2.0/8M-bM-^@M-^] respectively.
648
649 Only a subset of keywords may be used on the lines following a
650 Match keyword. Available keywords are AcceptEnv,
651 AllowAgentForwarding, AllowGroups, AllowStreamLocalForwarding,
652 AllowTcpForwarding, AllowUsers, AuthenticationMethods,
653 AuthorizedKeysCommand, AuthorizedKeysCommandUser,
654 AuthorizedKeysFile, AuthorizedPrincipalsFile, Banner,
655 ChrootDirectory, DenyGroups, DenyUsers, ForceCommand,
656 GatewayPorts, GSSAPIAuthentication, HostbasedAcceptedKeyTypes,
657 HostbasedAuthentication, HostbasedUsesNameFromPacketOnly, IPQoS,
658 KbdInteractiveAuthentication, KerberosAuthentication,
659 MaxAuthTries, MaxSessions, PasswordAuthentication,
660 PermitEmptyPasswords, PermitOpen, PermitRootLogin, PermitTTY,
661 PermitTunnel, PermitUserRC, PubkeyAcceptedKeyTypes,
662 PubkeyAuthentication, RekeyLimit, RevokedKeys,
663 RhostsRSAAuthentication, RSAAuthentication, StreamLocalBindMask,
664 StreamLocalBindUnlink, TrustedUserCAKeys, X11DisplayOffset,
665 X11Forwarding and X11UseLocalHost.
666
667 MaxAuthTries
668 Specifies the maximum number of authentication attempts permitted
669 per connection. Once the number of failures reaches half this
670 value, additional failures are logged. The default is 6.
671
672 MaxSessions
673 Specifies the maximum number of open sessions permitted per
674 network connection. 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. Note that the order of the
779 protocol list does not indicate preference, because the client
780 selects among multiple protocol versions offered by the server.
781 Specifying M-bM-^@M-^\2,1M-bM-^@M-^] is identical to M-bM-^@M-^\1,2M-bM-^@M-^].
782
783 PubkeyAcceptedKeyTypes
784 Specifies the key types that will be accepted for public key
785 authentication as a comma-separated pattern list. Alternately if
786 the specified value begins with a M-bM-^@M-^X+M-bM-^@M-^Y character, then the
787 specified key types will be appended to the default set instead
788 of replacing them. The default for this option is:
789
790 ecdsa-sha2-nistp256-cert-v01@openssh.com,
791 ecdsa-sha2-nistp384-cert-v01@openssh.com,
792 ecdsa-sha2-nistp521-cert-v01@openssh.com,
793 ssh-ed25519-cert-v01@openssh.com,
794 ssh-rsa-cert-v01@openssh.com,
795 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
796 ssh-ed25519,ssh-rsa
797
798 The -Q option of ssh(1) may be used to list supported key types.
799
800 PubkeyAuthentication
801 Specifies whether public key authentication is allowed. The
802 default is M-bM-^@M-^\yesM-bM-^@M-^]. Note that this option applies to protocol
803 version 2 only.
804
805 RekeyLimit
806 Specifies the maximum amount of data that may be transmitted
807 before the session key is renegotiated, optionally followed a
808 maximum amount of time that may pass before the session key is
809 renegotiated. The first argument is specified in bytes and may
810 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,
811 Megabytes, or Gigabytes, respectively. The default is between
812 M-bM-^@M-^X1GM-bM-^@M-^Y and M-bM-^@M-^X4GM-bM-^@M-^Y, depending on the cipher. The optional second
813 value is specified in seconds and may use any of the units
814 documented in the TIME FORMATS section. The default value for
815 RekeyLimit is M-bM-^@M-^\default noneM-bM-^@M-^], which means that rekeying is
816 performed after the cipher's default amount of data has been sent
817 or received and no time based rekeying is done. This option
818 applies to protocol version 2 only.
819
820 RevokedKeys
821 Specifies revoked public keys file, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one.
822 Keys listed in this file will be refused for public key
823 authentication. Note that if this file is not readable, then
824 public key authentication will be refused for all users. Keys
825 may be specified as a text file, listing one public key per line,
826 or as an OpenSSH Key Revocation List (KRL) as generated by
827 ssh-keygen(1). For more information on KRLs, see the KEY
828 REVOCATION LISTS section in ssh-keygen(1).
829
830 RhostsRSAAuthentication
831 Specifies whether rhosts or /etc/hosts.equiv authentication
832 together with successful RSA host authentication is allowed. The
833 default is M-bM-^@M-^\noM-bM-^@M-^]. This option applies to protocol version 1 only.
834
835 RSAAuthentication
836 Specifies whether pure RSA authentication is allowed. The
837 default is M-bM-^@M-^\yesM-bM-^@M-^]. This option applies to protocol version 1
838 only.
839
840 ServerKeyBits
841 Defines the number of bits in the ephemeral protocol version 1
842 server key. The default and minimum value is 1024.
843
844 StreamLocalBindMask
845 Sets the octal file creation mode mask (umask) used when creating
846 a Unix-domain socket file for local or remote port forwarding.
847 This option is only used for port forwarding to a Unix-domain
848 socket file.
849
850 The default value is 0177, which creates a Unix-domain socket
851 file that is readable and writable only by the owner. Note that
852 not all operating systems honor the file mode on Unix-domain
853 socket files.
854
855 StreamLocalBindUnlink
856 Specifies whether to remove an existing Unix-domain socket file
857 for local or remote port forwarding before creating a new one.
858 If the socket file already exists and StreamLocalBindUnlink is
859 not enabled, sshd will be unable to forward the port to the Unix-
860 domain socket file. This option is only used for port forwarding
861 to a Unix-domain socket file.
862
863 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-^].
864
865 StrictModes
866 Specifies whether sshd(8) should check file modes and ownership
867 of the user's files and home directory before accepting login.
868 This is normally desirable because novices sometimes accidentally
869 leave their directory or files world-writable. The default is
870 M-bM-^@M-^\yesM-bM-^@M-^]. Note that this does not apply to ChrootDirectory, whose
871 permissions and ownership are checked unconditionally.
872
873 Subsystem
874 Configures an external subsystem (e.g. file transfer daemon).
875 Arguments should be a subsystem name and a command (with optional
876 arguments) to execute upon subsystem request.
877
878 The command sftp-server(8) implements the M-bM-^@M-^\sftpM-bM-^@M-^] file transfer
879 subsystem.
880
881 Alternately the name M-bM-^@M-^\internal-sftpM-bM-^@M-^] implements an in-process
882 M-bM-^@M-^\sftpM-bM-^@M-^] server. This may simplify configurations using
883 ChrootDirectory to force a different filesystem root on clients.
884
885 By default no subsystems are defined. Note that this option
886 applies to protocol version 2 only.
887
888 SyslogFacility
889 Gives the facility code that is used when logging messages from
890 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
891 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
892 default is AUTH.
893
894 TCPKeepAlive
895 Specifies whether the system should send TCP keepalive messages
896 to the other side. If they are sent, death of the connection or
897 crash of one of the machines will be properly noticed. However,
898 this means that connections will die if the route is down
899 temporarily, and some people find it annoying. On the other
900 hand, if TCP keepalives are not sent, sessions may hang
901 indefinitely on the server, leaving M-bM-^@M-^\ghostM-bM-^@M-^] users and consuming
902 server resources.
903
904 The default is M-bM-^@M-^\yesM-bM-^@M-^] (to send TCP keepalive messages), and the
905 server will notice if the network goes down or the client host
906 crashes. This avoids infinitely hanging sessions.
907
908 To disable TCP keepalive messages, the value should be set to
909 M-bM-^@M-^\noM-bM-^@M-^].
910
911 TrustedUserCAKeys
912 Specifies a file containing public keys of certificate
913 authorities that are trusted to sign user certificates for
914 authentication, or M-bM-^@M-^\noneM-bM-^@M-^] to not use one. Keys are listed one
915 per line; empty lines and comments starting with M-bM-^@M-^X#M-bM-^@M-^Y are allowed.
916 If a certificate is presented for authentication and has its
917 signing CA key listed in this file, then it may be used for
918 authentication for any user listed in the certificate's
919 principals list. Note that certificates that lack a list of
920 principals will not be permitted for authentication using
921 TrustedUserCAKeys. For more details on certificates, see the
922 CERTIFICATES section in ssh-keygen(1).
923
924 UseDNS Specifies whether sshd(8) should look up the remote host name,
925 and to check that the resolved host name for the remote IP
926 address maps back to the very same IP address.
927
928 If this option is set to M-bM-^@M-^\noM-bM-^@M-^] (the default) then only addresses
929 and not host names may be used in ~/.ssh/known_hosts from and
930 sshd_config Match Host directives.
931
932 UseLogin
933 Specifies whether login(1) is used for interactive login
934 sessions. The default is M-bM-^@M-^\noM-bM-^@M-^]. Note that login(1) is never used
935 for remote command execution. Note also, that if this is
936 enabled, X11Forwarding will be disabled because login(1) does not
937 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
938 is specified, it will be disabled after authentication.
939
940 UsePAM Enables the Pluggable Authentication Module interface. If set to
941 M-bM-^@M-^\yesM-bM-^@M-^] this will enable PAM authentication using
942 ChallengeResponseAuthentication and PasswordAuthentication in
943 addition to PAM account and session module processing for all
944 authentication types.
945
946 Because PAM challenge-response authentication usually serves an
947 equivalent role to password authentication, you should disable
948 either PasswordAuthentication or ChallengeResponseAuthentication.
949
950 If UsePAM is enabled, you will not be able to run sshd(8) as a
951 non-root user. The default is M-bM-^@M-^\noM-bM-^@M-^].
952
953 UsePrivilegeSeparation
954 Specifies whether sshd(8) separates privileges by creating an
955 unprivileged child process to deal with incoming network traffic.
956 After successful authentication, another process will be created
957 that has the privilege of the authenticated user. The goal of
958 privilege separation is to prevent privilege escalation by
959 containing any corruption within the unprivileged processes. The
960 default is M-bM-^@M-^\yesM-bM-^@M-^]. If UsePrivilegeSeparation is set to M-bM-^@M-^\sandboxM-bM-^@M-^]
961 then the pre-authentication unprivileged process is subject to
962 additional restrictions.
963
964 VersionAddendum
965 Optionally specifies additional text to append to the SSH
966 protocol banner sent by the server upon connection. The default
967 is M-bM-^@M-^\noneM-bM-^@M-^].
968
969 X11DisplayOffset
970 Specifies the first display number available for sshd(8)'s X11
971 forwarding. This prevents sshd from interfering with real X11
972 servers. The default is 10.
973
974 X11Forwarding
975 Specifies whether X11 forwarding is permitted. The argument must
976 be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The default is M-bM-^@M-^\noM-bM-^@M-^].
977
978 When X11 forwarding is enabled, there may be additional exposure
979 to the server and to client displays if the sshd(8) proxy display
980 is configured to listen on the wildcard address (see
981 X11UseLocalhost below), though this is not the default.
982 Additionally, the authentication spoofing and authentication data
983 verification and substitution occur on the client side. The
984 security risk of using X11 forwarding is that the client's X11
985 display server may be exposed to attack when the SSH client
986 requests forwarding (see the warnings for ForwardX11 in
987 ssh_config(5)). A system administrator may have a stance in
988 which they want to protect clients that may expose themselves to
989 attack by unwittingly requesting X11 forwarding, which can
990 warrant a M-bM-^@M-^\noM-bM-^@M-^] setting.
991
992 Note that disabling X11 forwarding does not prevent users from
993 forwarding X11 traffic, as users can always install their own
994 forwarders. X11 forwarding is automatically disabled if UseLogin
995 is enabled.
996
997 X11UseLocalhost
998 Specifies whether sshd(8) should bind the X11 forwarding server
999 to the loopback address or to the wildcard address. By default,
1000 sshd binds the forwarding server to the loopback address and sets
1001 the hostname part of the DISPLAY environment variable to
1002 M-bM-^@M-^\localhostM-bM-^@M-^]. This prevents remote hosts from connecting to the
1003 proxy display. However, some older X11 clients may not function
1004 with this configuration. X11UseLocalhost may be set to M-bM-^@M-^\noM-bM-^@M-^] to
1005 specify that the forwarding server should be bound to the
1006 wildcard address. The argument must be M-bM-^@M-^\yesM-bM-^@M-^] or M-bM-^@M-^\noM-bM-^@M-^]. The
1007 default is M-bM-^@M-^\yesM-bM-^@M-^].
1008
1009 XAuthLocation
1010 Specifies the full pathname of the xauth(1) program, or M-bM-^@M-^\noneM-bM-^@M-^] to
1011 not use one. The default is /usr/X11R6/bin/xauth.
1012
1013TIME FORMATS
1014 sshd(8) command-line arguments and configuration file options that
1015 specify time may be expressed using a sequence of the form:
1016 time[qualifier], where time is a positive integer value and qualifier is
1017 one of the following:
1018
1019 M-bM-^_M-(noneM-bM-^_M-) seconds
1020 s | S seconds
1021 m | M minutes
1022 h | H hours
1023 d | D days
1024 w | W weeks
1025
1026 Each member of the sequence is added together to calculate the total time
1027 value.
1028
1029 Time format examples:
1030
1031 600 600 seconds (10 minutes)
1032 10m 10 minutes
1033 1h30m 1 hour 30 minutes (90 minutes)
1034
1035FILES
1036 /etc/ssh/sshd_config
1037 Contains configuration data for sshd(8). This file should be
1038 writable by root only, but it is recommended (though not
1039 necessary) that it be world-readable.
1040
1041SEE ALSO
1042 sshd(8)
1043
1044AUTHORS
1045 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
1046 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
1047 de Raadt and Dug Song removed many bugs, re-added newer features and
1048 created OpenSSH. Markus Friedl contributed the support for SSH protocol
1049 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
1050 for privilege separation.
1051
1052OpenBSD 5.8 August 14, 2015 OpenBSD 5.8