summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cvsignore28
-rw-r--r--config.h.in1557
-rwxr-xr-xconfigure18150
-rw-r--r--moduli.072
-rw-r--r--openbsd-compat/.cvsignore1
-rw-r--r--openbsd-compat/regress/.cvsignore5
-rw-r--r--regress/.cvsignore1
-rw-r--r--scard/.cvsignore2
-rw-r--r--scp.0158
-rw-r--r--sftp-server.064
-rw-r--r--sftp.0339
-rw-r--r--ssh-add.0118
-rw-r--r--ssh-agent.0123
-rw-r--r--ssh-keygen.0468
-rw-r--r--ssh-keyscan.0109
-rw-r--r--ssh-keysign.051
-rw-r--r--ssh-pkcs11-helper.025
-rw-r--r--ssh.0907
-rw-r--r--ssh_config.0766
-rw-r--r--sshd.0637
-rw-r--r--sshd_config.0725
21 files changed, 24269 insertions, 37 deletions
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index 9baaa3b4e..000000000
--- a/.cvsignore
+++ /dev/null
@@ -1,28 +0,0 @@
1*.0
2*.out
3Makefile
4autom4te.cache
5buildit.sh
6buildpkg.sh
7config.cache
8config.h
9config.h.in
10config.log
11config.status
12configure
13openssh.xml
14opensshd.init
15scp
16sftp
17sftp-server
18ssh
19ssh-add
20ssh-agent
21ssh-keygen
22ssh-keyscan
23ssh-keysign
24ssh-pkcs11-helper
25sshd
26stamp-h.in
27survey
28survey.sh
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..2834a473d
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1557 @@
1/* config.h.in. Generated from configure.ac by autoheader. */
2
3/* Define if building universal (internal helper macro) */
4#undef AC_APPLE_UNIVERSAL_BUILD
5
6/* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address
7 */
8#undef AIX_GETNAMEINFO_HACK
9
10/* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */
11#undef AIX_LOGINFAILED_4ARG
12
13/* System only supports IPv4 audit records */
14#undef AU_IPv4
15
16/* Define if your resolver libs need this for getrrsetbyname */
17#undef BIND_8_COMPAT
18
19/* The system has incomplete BSM API */
20#undef BROKEN_BSM_API
21
22/* Define if cmsg_type is not passed correctly */
23#undef BROKEN_CMSG_TYPE
24
25/* getaddrinfo is broken (if present) */
26#undef BROKEN_GETADDRINFO
27
28/* getgroups(0,NULL) will return -1 */
29#undef BROKEN_GETGROUPS
30
31/* FreeBSD glob does not do what we need */
32#undef BROKEN_GLOB
33
34/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
35#undef BROKEN_INET_NTOA
36
37/* ia_uinfo routines not supported by OS yet */
38#undef BROKEN_LIBIAF
39
40/* Ultrix mmap can't map files */
41#undef BROKEN_MMAP
42
43/* Define if your struct dirent expects you to allocate extra space for d_name
44 */
45#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
46
47/* Can't do comparisons on readv */
48#undef BROKEN_READV_COMPARISON
49
50/* Define if you have a broken realpath. */
51#undef BROKEN_REALPATH
52
53/* Needed for NeXT */
54#undef BROKEN_SAVED_UIDS
55
56/* Define if your setregid() is broken */
57#undef BROKEN_SETREGID
58
59/* Define if your setresgid() is broken */
60#undef BROKEN_SETRESGID
61
62/* Define if your setresuid() is broken */
63#undef BROKEN_SETRESUID
64
65/* Define if your setreuid() is broken */
66#undef BROKEN_SETREUID
67
68/* LynxOS has broken setvbuf() implementation */
69#undef BROKEN_SETVBUF
70
71/* QNX shadow support is broken */
72#undef BROKEN_SHADOW_EXPIRE
73
74/* Define if your snprintf is busted */
75#undef BROKEN_SNPRINTF
76
77/* tcgetattr with ICANON may hang */
78#undef BROKEN_TCGETATTR_ICANON
79
80/* updwtmpx is broken (if present) */
81#undef BROKEN_UPDWTMPX
82
83/* Define if you have BSD auth support */
84#undef BSD_AUTH
85
86/* Define if you want to specify the path to your lastlog file */
87#undef CONF_LASTLOG_FILE
88
89/* Define if you want to specify the path to your utmp file */
90#undef CONF_UTMP_FILE
91
92/* Define if you want to specify the path to your wtmpx file */
93#undef CONF_WTMPX_FILE
94
95/* Define if you want to specify the path to your wtmp file */
96#undef CONF_WTMP_FILE
97
98/* Define if your platform needs to skip post auth file descriptor passing */
99#undef DISABLE_FD_PASSING
100
101/* Define if you don't want to use lastlog */
102#undef DISABLE_LASTLOG
103
104/* Define if you don't want to use your system's login() call */
105#undef DISABLE_LOGIN
106
107/* Define if you don't want to use pututline() etc. to write [uw]tmp */
108#undef DISABLE_PUTUTLINE
109
110/* Define if you don't want to use pututxline() etc. to write [uw]tmpx */
111#undef DISABLE_PUTUTXLINE
112
113/* Define if you want to disable shadow passwords */
114#undef DISABLE_SHADOW
115
116/* Define if you don't want to use utmp */
117#undef DISABLE_UTMP
118
119/* Define if you don't want to use utmpx */
120#undef DISABLE_UTMPX
121
122/* Define if you don't want to use wtmp */
123#undef DISABLE_WTMP
124
125/* Define if you don't want to use wtmpx */
126#undef DISABLE_WTMPX
127
128/* Enable for PKCS#11 support */
129#undef ENABLE_PKCS11
130
131/* File names may not contain backslash characters */
132#undef FILESYSTEM_NO_BACKSLASH
133
134/* fsid_t has member val */
135#undef FSID_HAS_VAL
136
137/* fsid_t has member __val */
138#undef FSID_HAS___VAL
139
140/* Define to 1 if the `getpgrp' function requires zero arguments. */
141#undef GETPGRP_VOID
142
143/* Conflicting defs for getspnam */
144#undef GETSPNAM_CONFLICTING_DEFS
145
146/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
147#undef GLOB_HAS_ALTDIRFUNC
148
149/* Define if your system glob() function has gl_matchc options in glob_t */
150#undef GLOB_HAS_GL_MATCHC
151
152/* Define if your system glob() function has gl_statv options in glob_t */
153#undef GLOB_HAS_GL_STATV
154
155/* Define this if you want GSSAPI support in the version 2 protocol */
156#undef GSSAPI
157
158/* Define if you want to use shadow password expire field */
159#undef HAS_SHADOW_EXPIRE
160
161/* Define if your system uses access rights style file descriptor passing */
162#undef HAVE_ACCRIGHTS_IN_MSGHDR
163
164/* Define if you have ut_addr in utmp.h */
165#undef HAVE_ADDR_IN_UTMP
166
167/* Define if you have ut_addr in utmpx.h */
168#undef HAVE_ADDR_IN_UTMPX
169
170/* Define if you have ut_addr_v6 in utmp.h */
171#undef HAVE_ADDR_V6_IN_UTMP
172
173/* Define if you have ut_addr_v6 in utmpx.h */
174#undef HAVE_ADDR_V6_IN_UTMPX
175
176/* Define to 1 if you have the `arc4random' function. */
177#undef HAVE_ARC4RANDOM
178
179/* Define to 1 if you have the `arc4random_buf' function. */
180#undef HAVE_ARC4RANDOM_BUF
181
182/* Define to 1 if you have the `arc4random_uniform' function. */
183#undef HAVE_ARC4RANDOM_UNIFORM
184
185/* Define to 1 if you have the `asprintf' function. */
186#undef HAVE_ASPRINTF
187
188/* OpenBSD's gcc has bounded */
189#undef HAVE_ATTRIBUTE__BOUNDED__
190
191/* Have attribute nonnull */
192#undef HAVE_ATTRIBUTE__NONNULL__
193
194/* OpenBSD's gcc has sentinel */
195#undef HAVE_ATTRIBUTE__SENTINEL__
196
197/* Define to 1 if you have the `aug_get_machine' function. */
198#undef HAVE_AUG_GET_MACHINE
199
200/* Define to 1 if you have the `b64_ntop' function. */
201#undef HAVE_B64_NTOP
202
203/* Define to 1 if you have the `b64_pton' function. */
204#undef HAVE_B64_PTON
205
206/* Define if you have the basename function. */
207#undef HAVE_BASENAME
208
209/* Define to 1 if you have the `bcopy' function. */
210#undef HAVE_BCOPY
211
212/* Define to 1 if you have the `bindresvport_sa' function. */
213#undef HAVE_BINDRESVPORT_SA
214
215/* Define to 1 if you have the `BN_is_prime_ex' function. */
216#undef HAVE_BN_IS_PRIME_EX
217
218/* Define to 1 if you have the <bsm/audit.h> header file. */
219#undef HAVE_BSM_AUDIT_H
220
221/* Define to 1 if you have the <bstring.h> header file. */
222#undef HAVE_BSTRING_H
223
224/* Define to 1 if you have the `clock' function. */
225#undef HAVE_CLOCK
226
227/* define if you have clock_t data type */
228#undef HAVE_CLOCK_T
229
230/* Define to 1 if you have the `closefrom' function. */
231#undef HAVE_CLOSEFROM
232
233/* Define if gai_strerror() returns const char * */
234#undef HAVE_CONST_GAI_STRERROR_PROTO
235
236/* Define if your system uses ancillary data style file descriptor passing */
237#undef HAVE_CONTROL_IN_MSGHDR
238
239/* Define to 1 if you have the <crypto/sha2.h> header file. */
240#undef HAVE_CRYPTO_SHA2_H
241
242/* Define to 1 if you have the <crypt.h> header file. */
243#undef HAVE_CRYPT_H
244
245/* Define if you are on Cygwin */
246#undef HAVE_CYGWIN
247
248/* Define if your libraries define daemon() */
249#undef HAVE_DAEMON
250
251/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
252 don't. */
253#undef HAVE_DECL_AUTHENTICATE
254
255/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
256 don't. */
257#undef HAVE_DECL_GLOB_NOMATCH
258
259/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
260 don't. */
261#undef HAVE_DECL_H_ERRNO
262
263/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
264 don't. */
265#undef HAVE_DECL_LOGINFAILED
266
267/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
268 you don't. */
269#undef HAVE_DECL_LOGINRESTRICTIONS
270
271/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
272 don't. */
273#undef HAVE_DECL_LOGINSUCCESS
274
275/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
276 don't. */
277#undef HAVE_DECL_MAXSYMLINKS
278
279/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
280 don't. */
281#undef HAVE_DECL_OFFSETOF
282
283/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
284 don't. */
285#undef HAVE_DECL_O_NONBLOCK
286
287/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
288 don't. */
289#undef HAVE_DECL_PASSWDEXPIRED
290
291/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
292 don't. */
293#undef HAVE_DECL_SETAUTHDB
294
295/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
296 don't. */
297#undef HAVE_DECL_SHUT_RD
298
299/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
300 */
301#undef HAVE_DECL_WRITEV
302
303/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
304 don't. */
305#undef HAVE_DECL__GETLONG
306
307/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
308 don't. */
309#undef HAVE_DECL__GETSHORT
310
311/* Define if you have /dev/ptmx */
312#undef HAVE_DEV_PTMX
313
314/* Define if you have /dev/ptc */
315#undef HAVE_DEV_PTS_AND_PTC
316
317/* Define to 1 if you have the <dirent.h> header file. */
318#undef HAVE_DIRENT_H
319
320/* Define to 1 if you have the `dirfd' function. */
321#undef HAVE_DIRFD
322
323/* Define to 1 if you have the `dirname' function. */
324#undef HAVE_DIRNAME
325
326/* Define to 1 if you have the `DSA_generate_parameters_ex' function. */
327#undef HAVE_DSA_GENERATE_PARAMETERS_EX
328
329/* Define to 1 if you have the <endian.h> header file. */
330#undef HAVE_ENDIAN_H
331
332/* Define to 1 if you have the `endutent' function. */
333#undef HAVE_ENDUTENT
334
335/* Define to 1 if you have the `endutxent' function. */
336#undef HAVE_ENDUTXENT
337
338/* Define if your system has /etc/default/login */
339#undef HAVE_ETC_DEFAULT_LOGIN
340
341/* Define to 1 if you have the `EVP_sha256' function. */
342#undef HAVE_EVP_SHA256
343
344/* Define if you have ut_exit in utmp.h */
345#undef HAVE_EXIT_IN_UTMP
346
347/* Define to 1 if you have the `fchmod' function. */
348#undef HAVE_FCHMOD
349
350/* Define to 1 if you have the `fchown' function. */
351#undef HAVE_FCHOWN
352
353/* Use F_CLOSEM fcntl for closefrom */
354#undef HAVE_FCNTL_CLOSEM
355
356/* Define to 1 if you have the <fcntl.h> header file. */
357#undef HAVE_FCNTL_H
358
359/* Define to 1 if you have the <features.h> header file. */
360#undef HAVE_FEATURES_H
361
362/* Define to 1 if you have the <floatingpoint.h> header file. */
363#undef HAVE_FLOATINGPOINT_H
364
365/* Define to 1 if you have the `fmt_scaled' function. */
366#undef HAVE_FMT_SCALED
367
368/* Define to 1 if you have the `freeaddrinfo' function. */
369#undef HAVE_FREEADDRINFO
370
371/* Define to 1 if the system has the type `fsblkcnt_t'. */
372#undef HAVE_FSBLKCNT_T
373
374/* Define to 1 if the system has the type `fsfilcnt_t'. */
375#undef HAVE_FSFILCNT_T
376
377/* Define to 1 if you have the `fstatvfs' function. */
378#undef HAVE_FSTATVFS
379
380/* Define to 1 if you have the `futimes' function. */
381#undef HAVE_FUTIMES
382
383/* Define to 1 if you have the `gai_strerror' function. */
384#undef HAVE_GAI_STRERROR
385
386/* Define to 1 if you have the `getaddrinfo' function. */
387#undef HAVE_GETADDRINFO
388
389/* Define to 1 if you have the `getaudit' function. */
390#undef HAVE_GETAUDIT
391
392/* Define to 1 if you have the `getaudit_addr' function. */
393#undef HAVE_GETAUDIT_ADDR
394
395/* Define to 1 if you have the `getcwd' function. */
396#undef HAVE_GETCWD
397
398/* Define to 1 if you have the `getgrouplist' function. */
399#undef HAVE_GETGROUPLIST
400
401/* Define to 1 if you have the `getgrset' function. */
402#undef HAVE_GETGRSET
403
404/* Define to 1 if you have the `getlastlogxbyname' function. */
405#undef HAVE_GETLASTLOGXBYNAME
406
407/* Define to 1 if you have the `getluid' function. */
408#undef HAVE_GETLUID
409
410/* Define to 1 if you have the `getnameinfo' function. */
411#undef HAVE_GETNAMEINFO
412
413/* Define to 1 if you have the `getopt' function. */
414#undef HAVE_GETOPT
415
416/* Define to 1 if you have the <getopt.h> header file. */
417#undef HAVE_GETOPT_H
418
419/* Define if your getopt(3) defines and uses optreset */
420#undef HAVE_GETOPT_OPTRESET
421
422/* Define if your libraries define getpagesize() */
423#undef HAVE_GETPAGESIZE
424
425/* Define to 1 if you have the `getpeereid' function. */
426#undef HAVE_GETPEEREID
427
428/* Define to 1 if you have the `getpeerucred' function. */
429#undef HAVE_GETPEERUCRED
430
431/* Define to 1 if you have the `getpwanam' function. */
432#undef HAVE_GETPWANAM
433
434/* Define to 1 if you have the `getrlimit' function. */
435#undef HAVE_GETRLIMIT
436
437/* Define if getrrsetbyname() exists */
438#undef HAVE_GETRRSETBYNAME
439
440/* Define to 1 if you have the `getrusage' function. */
441#undef HAVE_GETRUSAGE
442
443/* Define to 1 if you have the `getseuserbyname' function. */
444#undef HAVE_GETSEUSERBYNAME
445
446/* Define to 1 if you have the `gettimeofday' function. */
447#undef HAVE_GETTIMEOFDAY
448
449/* Define to 1 if you have the `getttyent' function. */
450#undef HAVE_GETTTYENT
451
452/* Define to 1 if you have the `getutent' function. */
453#undef HAVE_GETUTENT
454
455/* Define to 1 if you have the `getutid' function. */
456#undef HAVE_GETUTID
457
458/* Define to 1 if you have the `getutline' function. */
459#undef HAVE_GETUTLINE
460
461/* Define to 1 if you have the `getutxent' function. */
462#undef HAVE_GETUTXENT
463
464/* Define to 1 if you have the `getutxid' function. */
465#undef HAVE_GETUTXID
466
467/* Define to 1 if you have the `getutxline' function. */
468#undef HAVE_GETUTXLINE
469
470/* Define to 1 if you have the `getutxuser' function. */
471#undef HAVE_GETUTXUSER
472
473/* Define to 1 if you have the `get_default_context_with_level' function. */
474#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
475
476/* Define to 1 if you have the `glob' function. */
477#undef HAVE_GLOB
478
479/* Define to 1 if you have the <glob.h> header file. */
480#undef HAVE_GLOB_H
481
482/* Define to 1 if you have the `group_from_gid' function. */
483#undef HAVE_GROUP_FROM_GID
484
485/* Define to 1 if you have the <gssapi_generic.h> header file. */
486#undef HAVE_GSSAPI_GENERIC_H
487
488/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
489#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
490
491/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
492#undef HAVE_GSSAPI_GSSAPI_H
493
494/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
495#undef HAVE_GSSAPI_GSSAPI_KRB5_H
496
497/* Define to 1 if you have the <gssapi.h> header file. */
498#undef HAVE_GSSAPI_H
499
500/* Define to 1 if you have the <gssapi_krb5.h> header file. */
501#undef HAVE_GSSAPI_KRB5_H
502
503/* Define if HEADER.ad exists in arpa/nameser.h */
504#undef HAVE_HEADER_AD
505
506/* Define to 1 if you have the `HMAC_CTX_init' function. */
507#undef HAVE_HMAC_CTX_INIT
508
509/* Define if you have ut_host in utmp.h */
510#undef HAVE_HOST_IN_UTMP
511
512/* Define if you have ut_host in utmpx.h */
513#undef HAVE_HOST_IN_UTMPX
514
515/* Define to 1 if you have the <iaf.h> header file. */
516#undef HAVE_IAF_H
517
518/* Define to 1 if you have the <ia.h> header file. */
519#undef HAVE_IA_H
520
521/* Define if you have ut_id in utmp.h */
522#undef HAVE_ID_IN_UTMP
523
524/* Define if you have ut_id in utmpx.h */
525#undef HAVE_ID_IN_UTMPX
526
527/* Define to 1 if you have the `inet_aton' function. */
528#undef HAVE_INET_ATON
529
530/* Define to 1 if you have the `inet_ntoa' function. */
531#undef HAVE_INET_NTOA
532
533/* Define to 1 if you have the `inet_ntop' function. */
534#undef HAVE_INET_NTOP
535
536/* Define to 1 if you have the `innetgr' function. */
537#undef HAVE_INNETGR
538
539/* define if you have int64_t data type */
540#undef HAVE_INT64_T
541
542/* Define to 1 if you have the <inttypes.h> header file. */
543#undef HAVE_INTTYPES_H
544
545/* define if you have intxx_t data type */
546#undef HAVE_INTXX_T
547
548/* Define to 1 if the system has the type `in_addr_t'. */
549#undef HAVE_IN_ADDR_T
550
551/* Define to 1 if the system has the type `in_port_t'. */
552#undef HAVE_IN_PORT_T
553
554/* Define if you have isblank(3C). */
555#undef HAVE_ISBLANK
556
557/* Define to 1 if you have the <lastlog.h> header file. */
558#undef HAVE_LASTLOG_H
559
560/* Define if you want ldns support */
561#undef HAVE_LDNS
562
563/* Define to 1 if you have the <libaudit.h> header file. */
564#undef HAVE_LIBAUDIT_H
565
566/* Define to 1 if you have the `bsm' library (-lbsm). */
567#undef HAVE_LIBBSM
568
569/* Define to 1 if you have the `crypt' library (-lcrypt). */
570#undef HAVE_LIBCRYPT
571
572/* Define to 1 if you have the `dl' library (-ldl). */
573#undef HAVE_LIBDL
574
575/* Define to 1 if you have the <libgen.h> header file. */
576#undef HAVE_LIBGEN_H
577
578/* Define if system has libiaf that supports set_id */
579#undef HAVE_LIBIAF
580
581/* Define to 1 if you have the `network' library (-lnetwork). */
582#undef HAVE_LIBNETWORK
583
584/* Define to 1 if you have the `nsl' library (-lnsl). */
585#undef HAVE_LIBNSL
586
587/* Define to 1 if you have the `pam' library (-lpam). */
588#undef HAVE_LIBPAM
589
590/* Define to 1 if you have the `socket' library (-lsocket). */
591#undef HAVE_LIBSOCKET
592
593/* Define to 1 if you have the <libutil.h> header file. */
594#undef HAVE_LIBUTIL_H
595
596/* Define to 1 if you have the `xnet' library (-lxnet). */
597#undef HAVE_LIBXNET
598
599/* Define to 1 if you have the `z' library (-lz). */
600#undef HAVE_LIBZ
601
602/* Define to 1 if you have the <limits.h> header file. */
603#undef HAVE_LIMITS_H
604
605/* Define to 1 if you have the <linux/audit.h> header file. */
606#undef HAVE_LINUX_AUDIT_H
607
608/* Define to 1 if you have the <linux/filter.h> header file. */
609#undef HAVE_LINUX_FILTER_H
610
611/* Define to 1 if you have the <linux/if_tun.h> header file. */
612#undef HAVE_LINUX_IF_TUN_H
613
614/* Define to 1 if you have the <linux/seccomp.h> header file. */
615#undef HAVE_LINUX_SECCOMP_H
616
617/* Define to 1 if you have the `login' function. */
618#undef HAVE_LOGIN
619
620/* Define to 1 if you have the <login_cap.h> header file. */
621#undef HAVE_LOGIN_CAP_H
622
623/* Define to 1 if you have the `login_getcapbool' function. */
624#undef HAVE_LOGIN_GETCAPBOOL
625
626/* Define to 1 if you have the <login.h> header file. */
627#undef HAVE_LOGIN_H
628
629/* Define to 1 if you have the `logout' function. */
630#undef HAVE_LOGOUT
631
632/* Define to 1 if you have the `logwtmp' function. */
633#undef HAVE_LOGWTMP
634
635/* Define to 1 if the system has the type `long double'. */
636#undef HAVE_LONG_DOUBLE
637
638/* Define to 1 if the system has the type `long long'. */
639#undef HAVE_LONG_LONG
640
641/* Define to 1 if you have the <maillock.h> header file. */
642#undef HAVE_MAILLOCK_H
643
644/* Define to 1 if you have the `md5_crypt' function. */
645#undef HAVE_MD5_CRYPT
646
647/* Define if you want to allow MD5 passwords */
648#undef HAVE_MD5_PASSWORDS
649
650/* Define to 1 if you have the `memmove' function. */
651#undef HAVE_MEMMOVE
652
653/* Define to 1 if you have the <memory.h> header file. */
654#undef HAVE_MEMORY_H
655
656/* Define to 1 if you have the `mkdtemp' function. */
657#undef HAVE_MKDTEMP
658
659/* Define to 1 if you have the `mmap' function. */
660#undef HAVE_MMAP
661
662/* define if you have mode_t data type */
663#undef HAVE_MODE_T
664
665/* Some systems put nanosleep outside of libc */
666#undef HAVE_NANOSLEEP
667
668/* Define to 1 if you have the <ndir.h> header file. */
669#undef HAVE_NDIR_H
670
671/* Define to 1 if you have the <netdb.h> header file. */
672#undef HAVE_NETDB_H
673
674/* Define to 1 if you have the <netgroup.h> header file. */
675#undef HAVE_NETGROUP_H
676
677/* Define to 1 if you have the <net/if_tun.h> header file. */
678#undef HAVE_NET_IF_TUN_H
679
680/* Define if you are on NeXT */
681#undef HAVE_NEXT
682
683/* Define to 1 if you have the `ngetaddrinfo' function. */
684#undef HAVE_NGETADDRINFO
685
686/* Define to 1 if you have the `nsleep' function. */
687#undef HAVE_NSLEEP
688
689/* Define to 1 if you have the `ogetaddrinfo' function. */
690#undef HAVE_OGETADDRINFO
691
692/* Define if you have an old version of PAM which takes only one argument to
693 pam_strerror */
694#undef HAVE_OLD_PAM
695
696/* Define to 1 if you have the `openlog_r' function. */
697#undef HAVE_OPENLOG_R
698
699/* Define to 1 if you have the `openpty' function. */
700#undef HAVE_OPENPTY
701
702/* Define if your ssl headers are included with #include <openssl/header.h> */
703#undef HAVE_OPENSSL
704
705/* Define if you have Digital Unix Security Integration Architecture */
706#undef HAVE_OSF_SIA
707
708/* Define to 1 if you have the `pam_getenvlist' function. */
709#undef HAVE_PAM_GETENVLIST
710
711/* Define to 1 if you have the <pam/pam_appl.h> header file. */
712#undef HAVE_PAM_PAM_APPL_H
713
714/* Define to 1 if you have the `pam_putenv' function. */
715#undef HAVE_PAM_PUTENV
716
717/* Define to 1 if you have the <paths.h> header file. */
718#undef HAVE_PATHS_H
719
720/* Define if you have ut_pid in utmp.h */
721#undef HAVE_PID_IN_UTMP
722
723/* define if you have pid_t data type */
724#undef HAVE_PID_T
725
726/* Define to 1 if you have the `poll' function. */
727#undef HAVE_POLL
728
729/* Define to 1 if you have the <poll.h> header file. */
730#undef HAVE_POLL_H
731
732/* Define to 1 if you have the `prctl' function. */
733#undef HAVE_PRCTL
734
735/* Define if you have /proc/$pid/fd */
736#undef HAVE_PROC_PID
737
738/* Define to 1 if you have the `pstat' function. */
739#undef HAVE_PSTAT
740
741/* Define to 1 if you have the <pty.h> header file. */
742#undef HAVE_PTY_H
743
744/* Define to 1 if you have the `pututline' function. */
745#undef HAVE_PUTUTLINE
746
747/* Define to 1 if you have the `pututxline' function. */
748#undef HAVE_PUTUTXLINE
749
750/* Define if your password has a pw_change field */
751#undef HAVE_PW_CHANGE_IN_PASSWD
752
753/* Define if your password has a pw_class field */
754#undef HAVE_PW_CLASS_IN_PASSWD
755
756/* Define if your password has a pw_expire field */
757#undef HAVE_PW_EXPIRE_IN_PASSWD
758
759/* Define to 1 if you have the `readpassphrase' function. */
760#undef HAVE_READPASSPHRASE
761
762/* Define to 1 if you have the <readpassphrase.h> header file. */
763#undef HAVE_READPASSPHRASE_H
764
765/* Define to 1 if you have the `realpath' function. */
766#undef HAVE_REALPATH
767
768/* Define to 1 if you have the `recvmsg' function. */
769#undef HAVE_RECVMSG
770
771/* sys/resource.h has RLIMIT_NPROC */
772#undef HAVE_RLIMIT_NPROC
773
774/* Define to 1 if you have the <rpc/types.h> header file. */
775#undef HAVE_RPC_TYPES_H
776
777/* Define to 1 if you have the `rresvport_af' function. */
778#undef HAVE_RRESVPORT_AF
779
780/* Define to 1 if you have the `RSA_generate_key_ex' function. */
781#undef HAVE_RSA_GENERATE_KEY_EX
782
783/* Define to 1 if you have the `RSA_get_default_method' function. */
784#undef HAVE_RSA_GET_DEFAULT_METHOD
785
786/* Define to 1 if you have the <sandbox.h> header file. */
787#undef HAVE_SANDBOX_H
788
789/* Define to 1 if you have the `sandbox_init' function. */
790#undef HAVE_SANDBOX_INIT
791
792/* define if you have sa_family_t data type */
793#undef HAVE_SA_FAMILY_T
794
795/* Define if you have SecureWare-based protected password database */
796#undef HAVE_SECUREWARE
797
798/* Define to 1 if you have the <security/pam_appl.h> header file. */
799#undef HAVE_SECURITY_PAM_APPL_H
800
801/* Define to 1 if you have the `sendmsg' function. */
802#undef HAVE_SENDMSG
803
804/* Define to 1 if you have the `setauthdb' function. */
805#undef HAVE_SETAUTHDB
806
807/* Define to 1 if you have the `setdtablesize' function. */
808#undef HAVE_SETDTABLESIZE
809
810/* Define to 1 if you have the `setegid' function. */
811#undef HAVE_SETEGID
812
813/* Define to 1 if you have the `setenv' function. */
814#undef HAVE_SETENV
815
816/* Define to 1 if you have the `seteuid' function. */
817#undef HAVE_SETEUID
818
819/* Define to 1 if you have the `setgroupent' function. */
820#undef HAVE_SETGROUPENT
821
822/* Define to 1 if you have the `setgroups' function. */
823#undef HAVE_SETGROUPS
824
825/* Define to 1 if you have the `setlinebuf' function. */
826#undef HAVE_SETLINEBUF
827
828/* Define to 1 if you have the `setlogin' function. */
829#undef HAVE_SETLOGIN
830
831/* Define to 1 if you have the `setluid' function. */
832#undef HAVE_SETLUID
833
834/* Define to 1 if you have the `setpassent' function. */
835#undef HAVE_SETPASSENT
836
837/* Define to 1 if you have the `setpcred' function. */
838#undef HAVE_SETPCRED
839
840/* Define to 1 if you have the `setproctitle' function. */
841#undef HAVE_SETPROCTITLE
842
843/* Define to 1 if you have the `setregid' function. */
844#undef HAVE_SETREGID
845
846/* Define to 1 if you have the `setresgid' function. */
847#undef HAVE_SETRESGID
848
849/* Define to 1 if you have the `setresuid' function. */
850#undef HAVE_SETRESUID
851
852/* Define to 1 if you have the `setreuid' function. */
853#undef HAVE_SETREUID
854
855/* Define to 1 if you have the `setrlimit' function. */
856#undef HAVE_SETRLIMIT
857
858/* Define to 1 if you have the `setsid' function. */
859#undef HAVE_SETSID
860
861/* Define to 1 if you have the `setutent' function. */
862#undef HAVE_SETUTENT
863
864/* Define to 1 if you have the `setutxdb' function. */
865#undef HAVE_SETUTXDB
866
867/* Define to 1 if you have the `setutxent' function. */
868#undef HAVE_SETUTXENT
869
870/* Define to 1 if you have the `setvbuf' function. */
871#undef HAVE_SETVBUF
872
873/* Define to 1 if you have the `set_id' function. */
874#undef HAVE_SET_ID
875
876/* Define to 1 if you have the `SHA256_Update' function. */
877#undef HAVE_SHA256_UPDATE
878
879/* Define to 1 if you have the <sha2.h> header file. */
880#undef HAVE_SHA2_H
881
882/* Define to 1 if you have the <shadow.h> header file. */
883#undef HAVE_SHADOW_H
884
885/* Define to 1 if you have the `sigaction' function. */
886#undef HAVE_SIGACTION
887
888/* Define to 1 if you have the `sigvec' function. */
889#undef HAVE_SIGVEC
890
891/* Define to 1 if the system has the type `sig_atomic_t'. */
892#undef HAVE_SIG_ATOMIC_T
893
894/* define if you have size_t data type */
895#undef HAVE_SIZE_T
896
897/* Define to 1 if you have the `snprintf' function. */
898#undef HAVE_SNPRINTF
899
900/* Define to 1 if you have the `socketpair' function. */
901#undef HAVE_SOCKETPAIR
902
903/* Have PEERCRED socket option */
904#undef HAVE_SO_PEERCRED
905
906/* define if you have ssize_t data type */
907#undef HAVE_SSIZE_T
908
909/* Fields in struct sockaddr_storage */
910#undef HAVE_SS_FAMILY_IN_SS
911
912/* Define to 1 if you have the `statfs' function. */
913#undef HAVE_STATFS
914
915/* Define to 1 if you have the `statvfs' function. */
916#undef HAVE_STATVFS
917
918/* Define to 1 if you have the <stddef.h> header file. */
919#undef HAVE_STDDEF_H
920
921/* Define to 1 if you have the <stdint.h> header file. */
922#undef HAVE_STDINT_H
923
924/* Define to 1 if you have the <stdlib.h> header file. */
925#undef HAVE_STDLIB_H
926
927/* Define to 1 if you have the `strdup' function. */
928#undef HAVE_STRDUP
929
930/* Define to 1 if you have the `strerror' function. */
931#undef HAVE_STRERROR
932
933/* Define to 1 if you have the `strftime' function. */
934#undef HAVE_STRFTIME
935
936/* Silly mkstemp() */
937#undef HAVE_STRICT_MKSTEMP
938
939/* Define to 1 if you have the <strings.h> header file. */
940#undef HAVE_STRINGS_H
941
942/* Define to 1 if you have the <string.h> header file. */
943#undef HAVE_STRING_H
944
945/* Define to 1 if you have the `strlcat' function. */
946#undef HAVE_STRLCAT
947
948/* Define to 1 if you have the `strlcpy' function. */
949#undef HAVE_STRLCPY
950
951/* Define to 1 if you have the `strmode' function. */
952#undef HAVE_STRMODE
953
954/* Define to 1 if you have the `strnlen' function. */
955#undef HAVE_STRNLEN
956
957/* Define to 1 if you have the `strnvis' function. */
958#undef HAVE_STRNVIS
959
960/* Define to 1 if you have the `strptime' function. */
961#undef HAVE_STRPTIME
962
963/* Define to 1 if you have the `strsep' function. */
964#undef HAVE_STRSEP
965
966/* Define to 1 if you have the `strtoll' function. */
967#undef HAVE_STRTOLL
968
969/* Define to 1 if you have the `strtonum' function. */
970#undef HAVE_STRTONUM
971
972/* Define to 1 if you have the `strtoul' function. */
973#undef HAVE_STRTOUL
974
975/* define if you have struct addrinfo data type */
976#undef HAVE_STRUCT_ADDRINFO
977
978/* define if you have struct in6_addr data type */
979#undef HAVE_STRUCT_IN6_ADDR
980
981/* define if you have struct sockaddr_in6 data type */
982#undef HAVE_STRUCT_SOCKADDR_IN6
983
984/* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */
985#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
986
987/* define if you have struct sockaddr_storage data type */
988#undef HAVE_STRUCT_SOCKADDR_STORAGE
989
990/* Define to 1 if `st_blksize' is a member of `struct stat'. */
991#undef HAVE_STRUCT_STAT_ST_BLKSIZE
992
993/* Define to 1 if the system has the type `struct timespec'. */
994#undef HAVE_STRUCT_TIMESPEC
995
996/* define if you have struct timeval */
997#undef HAVE_STRUCT_TIMEVAL
998
999/* Define to 1 if you have the `swap32' function. */
1000#undef HAVE_SWAP32
1001
1002/* Define to 1 if you have the `sysconf' function. */
1003#undef HAVE_SYSCONF
1004
1005/* Define if you have syslen in utmpx.h */
1006#undef HAVE_SYSLEN_IN_UTMPX
1007
1008/* Define to 1 if you have the <sys/audit.h> header file. */
1009#undef HAVE_SYS_AUDIT_H
1010
1011/* Define to 1 if you have the <sys/bitypes.h> header file. */
1012#undef HAVE_SYS_BITYPES_H
1013
1014/* Define to 1 if you have the <sys/bsdtty.h> header file. */
1015#undef HAVE_SYS_BSDTTY_H
1016
1017/* Define to 1 if you have the <sys/cdefs.h> header file. */
1018#undef HAVE_SYS_CDEFS_H
1019
1020/* Define to 1 if you have the <sys/dir.h> header file. */
1021#undef HAVE_SYS_DIR_H
1022
1023/* Define if your system defines sys_errlist[] */
1024#undef HAVE_SYS_ERRLIST
1025
1026/* Define to 1 if you have the <sys/mman.h> header file. */
1027#undef HAVE_SYS_MMAN_H
1028
1029/* Define to 1 if you have the <sys/mount.h> header file. */
1030#undef HAVE_SYS_MOUNT_H
1031
1032/* Define to 1 if you have the <sys/ndir.h> header file. */
1033#undef HAVE_SYS_NDIR_H
1034
1035/* Define if your system defines sys_nerr */
1036#undef HAVE_SYS_NERR
1037
1038/* Define to 1 if you have the <sys/poll.h> header file. */
1039#undef HAVE_SYS_POLL_H
1040
1041/* Define to 1 if you have the <sys/prctl.h> header file. */
1042#undef HAVE_SYS_PRCTL_H
1043
1044/* Define to 1 if you have the <sys/pstat.h> header file. */
1045#undef HAVE_SYS_PSTAT_H
1046
1047/* Define to 1 if you have the <sys/ptms.h> header file. */
1048#undef HAVE_SYS_PTMS_H
1049
1050/* Define to 1 if you have the <sys/select.h> header file. */
1051#undef HAVE_SYS_SELECT_H
1052
1053/* Define to 1 if you have the <sys/statvfs.h> header file. */
1054#undef HAVE_SYS_STATVFS_H
1055
1056/* Define to 1 if you have the <sys/stat.h> header file. */
1057#undef HAVE_SYS_STAT_H
1058
1059/* Define to 1 if you have the <sys/stream.h> header file. */
1060#undef HAVE_SYS_STREAM_H
1061
1062/* Define to 1 if you have the <sys/stropts.h> header file. */
1063#undef HAVE_SYS_STROPTS_H
1064
1065/* Define to 1 if you have the <sys/strtio.h> header file. */
1066#undef HAVE_SYS_STRTIO_H
1067
1068/* Force use of sys/syslog.h on Ultrix */
1069#undef HAVE_SYS_SYSLOG_H
1070
1071/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1072#undef HAVE_SYS_SYSMACROS_H
1073
1074/* Define to 1 if you have the <sys/timers.h> header file. */
1075#undef HAVE_SYS_TIMERS_H
1076
1077/* Define to 1 if you have the <sys/time.h> header file. */
1078#undef HAVE_SYS_TIME_H
1079
1080/* Define to 1 if you have the <sys/types.h> header file. */
1081#undef HAVE_SYS_TYPES_H
1082
1083/* Define to 1 if you have the <sys/un.h> header file. */
1084#undef HAVE_SYS_UN_H
1085
1086/* Define to 1 if you have the `tcgetpgrp' function. */
1087#undef HAVE_TCGETPGRP
1088
1089/* Define to 1 if you have the `tcsendbreak' function. */
1090#undef HAVE_TCSENDBREAK
1091
1092/* Define to 1 if you have the `time' function. */
1093#undef HAVE_TIME
1094
1095/* Define to 1 if you have the <time.h> header file. */
1096#undef HAVE_TIME_H
1097
1098/* Define if you have ut_time in utmp.h */
1099#undef HAVE_TIME_IN_UTMP
1100
1101/* Define if you have ut_time in utmpx.h */
1102#undef HAVE_TIME_IN_UTMPX
1103
1104/* Define to 1 if you have the `timingsafe_bcmp' function. */
1105#undef HAVE_TIMINGSAFE_BCMP
1106
1107/* Define to 1 if you have the <tmpdir.h> header file. */
1108#undef HAVE_TMPDIR_H
1109
1110/* Define to 1 if you have the `truncate' function. */
1111#undef HAVE_TRUNCATE
1112
1113/* Define to 1 if you have the <ttyent.h> header file. */
1114#undef HAVE_TTYENT_H
1115
1116/* Define if you have ut_tv in utmp.h */
1117#undef HAVE_TV_IN_UTMP
1118
1119/* Define if you have ut_tv in utmpx.h */
1120#undef HAVE_TV_IN_UTMPX
1121
1122/* Define if you have ut_type in utmp.h */
1123#undef HAVE_TYPE_IN_UTMP
1124
1125/* Define if you have ut_type in utmpx.h */
1126#undef HAVE_TYPE_IN_UTMPX
1127
1128/* Define to 1 if you have the <ucred.h> header file. */
1129#undef HAVE_UCRED_H
1130
1131/* define if you have uintxx_t data type */
1132#undef HAVE_UINTXX_T
1133
1134/* Define to 1 if you have the <unistd.h> header file. */
1135#undef HAVE_UNISTD_H
1136
1137/* Define to 1 if you have the `unsetenv' function. */
1138#undef HAVE_UNSETENV
1139
1140/* Define to 1 if the system has the type `unsigned long long'. */
1141#undef HAVE_UNSIGNED_LONG_LONG
1142
1143/* Define to 1 if you have the `updwtmp' function. */
1144#undef HAVE_UPDWTMP
1145
1146/* Define to 1 if you have the `updwtmpx' function. */
1147#undef HAVE_UPDWTMPX
1148
1149/* Define to 1 if you have the <usersec.h> header file. */
1150#undef HAVE_USERSEC_H
1151
1152/* Define to 1 if you have the `user_from_uid' function. */
1153#undef HAVE_USER_FROM_UID
1154
1155/* Define to 1 if you have the <util.h> header file. */
1156#undef HAVE_UTIL_H
1157
1158/* Define to 1 if you have the `utimes' function. */
1159#undef HAVE_UTIMES
1160
1161/* Define to 1 if you have the <utime.h> header file. */
1162#undef HAVE_UTIME_H
1163
1164/* Define to 1 if you have the `utmpname' function. */
1165#undef HAVE_UTMPNAME
1166
1167/* Define to 1 if you have the `utmpxname' function. */
1168#undef HAVE_UTMPXNAME
1169
1170/* Define to 1 if you have the <utmpx.h> header file. */
1171#undef HAVE_UTMPX_H
1172
1173/* Define to 1 if you have the <utmp.h> header file. */
1174#undef HAVE_UTMP_H
1175
1176/* define if you have u_char data type */
1177#undef HAVE_U_CHAR
1178
1179/* define if you have u_int data type */
1180#undef HAVE_U_INT
1181
1182/* define if you have u_int64_t data type */
1183#undef HAVE_U_INT64_T
1184
1185/* define if you have u_intxx_t data type */
1186#undef HAVE_U_INTXX_T
1187
1188/* Define to 1 if you have the `vasprintf' function. */
1189#undef HAVE_VASPRINTF
1190
1191/* Define if va_copy exists */
1192#undef HAVE_VA_COPY
1193
1194/* Define to 1 if you have the `vhangup' function. */
1195#undef HAVE_VHANGUP
1196
1197/* Define to 1 if you have the <vis.h> header file. */
1198#undef HAVE_VIS_H
1199
1200/* Define to 1 if you have the `vsnprintf' function. */
1201#undef HAVE_VSNPRINTF
1202
1203/* Define to 1 if you have the `waitpid' function. */
1204#undef HAVE_WAITPID
1205
1206/* Define to 1 if you have the `_getlong' function. */
1207#undef HAVE__GETLONG
1208
1209/* Define to 1 if you have the `_getpty' function. */
1210#undef HAVE__GETPTY
1211
1212/* Define to 1 if you have the `_getshort' function. */
1213#undef HAVE__GETSHORT
1214
1215/* Define if you have struct __res_state _res as an extern */
1216#undef HAVE__RES_EXTERN
1217
1218/* Define to 1 if you have the `__b64_ntop' function. */
1219#undef HAVE___B64_NTOP
1220
1221/* Define to 1 if you have the `__b64_pton' function. */
1222#undef HAVE___B64_PTON
1223
1224/* Define if compiler implements __FUNCTION__ */
1225#undef HAVE___FUNCTION__
1226
1227/* Define if libc defines __progname */
1228#undef HAVE___PROGNAME
1229
1230/* Fields in struct sockaddr_storage */
1231#undef HAVE___SS_FAMILY_IN_SS
1232
1233/* Define if __va_copy exists */
1234#undef HAVE___VA_COPY
1235
1236/* Define if compiler implements __func__ */
1237#undef HAVE___func__
1238
1239/* Define this if you are using the Heimdal version of Kerberos V5 */
1240#undef HEIMDAL
1241
1242/* Define if you need to use IP address instead of hostname in $DISPLAY */
1243#undef IPADDR_IN_DISPLAY
1244
1245/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1246#undef IPV4_IN_IPV6
1247
1248/* Define if your system choked on IP TOS setting */
1249#undef IP_TOS_IS_BROKEN
1250
1251/* Define if you want Kerberos 5 support */
1252#undef KRB5
1253
1254/* Define if pututxline updates lastlog too */
1255#undef LASTLOG_WRITE_PUTUTXLINE
1256
1257/* Define if you want TCP Wrappers support */
1258#undef LIBWRAP
1259
1260/* Define to whatever link() returns for "not supported" if it doesn't return
1261 EOPNOTSUPP. */
1262#undef LINK_OPNOTSUPP_ERRNO
1263
1264/* Adjust Linux out-of-memory killer */
1265#undef LINUX_OOM_ADJUST
1266
1267/* max value of long long calculated by configure */
1268#undef LLONG_MAX
1269
1270/* min value of long long calculated by configure */
1271#undef LLONG_MIN
1272
1273/* Account locked with pw(1) */
1274#undef LOCKED_PASSWD_PREFIX
1275
1276/* String used in /etc/passwd to denote locked account */
1277#undef LOCKED_PASSWD_STRING
1278
1279/* String used in /etc/passwd to denote locked account */
1280#undef LOCKED_PASSWD_SUBSTR
1281
1282/* Some versions of /bin/login need the TERM supplied on the commandline */
1283#undef LOGIN_NEEDS_TERM
1284
1285/* Some systems need a utmpx entry for /bin/login to work */
1286#undef LOGIN_NEEDS_UTMPX
1287
1288/* Define if your login program cannot handle end of options ("--") */
1289#undef LOGIN_NO_ENDOPT
1290
1291/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1292 from environment and PATH */
1293#undef LOGIN_PROGRAM_FALLBACK
1294
1295/* Set this to your mail directory if you do not have _PATH_MAILDIR */
1296#undef MAIL_DIRECTORY
1297
1298/* Define on *nto-qnx systems */
1299#undef MISSING_FD_MASK
1300
1301/* Define on *nto-qnx systems */
1302#undef MISSING_HOWMANY
1303
1304/* Define on *nto-qnx systems */
1305#undef MISSING_NFDBITS
1306
1307/* Need setpgrp to acquire controlling tty */
1308#undef NEED_SETPGRP
1309
1310/* Define if the concept of ports only accessible to superusers isn't known */
1311#undef NO_IPPORT_RESERVED_CONCEPT
1312
1313/* Define if you don't want to use lastlog in session.c */
1314#undef NO_SSH_LASTLOG
1315
1316/* Define if X11 doesn't support AF_UNIX sockets on that system */
1317#undef NO_X11_UNIX_SOCKETS
1318
1319/* Define if EVP_DigestUpdate returns void */
1320#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1321
1322/* libcrypto includes complete ECC support */
1323#undef OPENSSL_HAS_ECC
1324
1325/* libcrypto is missing AES 192 and 256 bit functions */
1326#undef OPENSSL_LOBOTOMISED_AES
1327
1328/* Define if you want OpenSSL's internally seeded PRNG only */
1329#undef OPENSSL_PRNG_ONLY
1330
1331/* Define to the address where bug reports for this package should be sent. */
1332#undef PACKAGE_BUGREPORT
1333
1334/* Define to the full name of this package. */
1335#undef PACKAGE_NAME
1336
1337/* Define to the full name and version of this package. */
1338#undef PACKAGE_STRING
1339
1340/* Define to the one symbol short name of this package. */
1341#undef PACKAGE_TARNAME
1342
1343/* Define to the home page for this package. */
1344#undef PACKAGE_URL
1345
1346/* Define to the version of this package. */
1347#undef PACKAGE_VERSION
1348
1349/* Define if you are using Solaris-derived PAM which passes pam_messages to
1350 the conversation function with an extra level of indirection */
1351#undef PAM_SUN_CODEBASE
1352
1353/* Work around problematic Linux PAM modules handling of PAM_TTY */
1354#undef PAM_TTY_KLUDGE
1355
1356/* must supply username to passwd */
1357#undef PASSWD_NEEDS_USERNAME
1358
1359/* Port number of PRNGD/EGD random number socket */
1360#undef PRNGD_PORT
1361
1362/* Location of PRNGD/EGD random number socket */
1363#undef PRNGD_SOCKET
1364
1365/* read(1) can return 0 for a non-closed fd */
1366#undef PTY_ZEROREAD
1367
1368/* Sandbox using Darwin sandbox_init(3) */
1369#undef SANDBOX_DARWIN
1370
1371/* no privsep sandboxing */
1372#undef SANDBOX_NULL
1373
1374/* Sandbox using setrlimit(2) */
1375#undef SANDBOX_RLIMIT
1376
1377/* Sandbox using seccomp filter */
1378#undef SANDBOX_SECCOMP_FILTER
1379
1380/* setrlimit RLIMIT_FSIZE works */
1381#undef SANDBOX_SKIP_RLIMIT_FSIZE
1382
1383/* Sandbox using systrace(4) */
1384#undef SANDBOX_SYSTRACE
1385
1386/* Specify the system call convention in use */
1387#undef SECCOMP_AUDIT_ARCH
1388
1389/* Define if your platform breaks doing a seteuid before a setuid */
1390#undef SETEUID_BREAKS_SETUID
1391
1392/* The size of `int', as computed by sizeof. */
1393#undef SIZEOF_INT
1394
1395/* The size of `long int', as computed by sizeof. */
1396#undef SIZEOF_LONG_INT
1397
1398/* The size of `long long int', as computed by sizeof. */
1399#undef SIZEOF_LONG_LONG_INT
1400
1401/* The size of `short int', as computed by sizeof. */
1402#undef SIZEOF_SHORT_INT
1403
1404/* Define if you want S/Key support */
1405#undef SKEY
1406
1407/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1408#undef SKEYCHALLENGE_4ARG
1409
1410/* Define as const if snprintf() can declare const char *fmt */
1411#undef SNPRINTF_CONST
1412
1413/* Define to a Set Process Title type if your system is supported by
1414 bsd-setproctitle.c */
1415#undef SPT_TYPE
1416
1417/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1418#undef SSHD_ACQUIRES_CTTY
1419
1420/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1421#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1422
1423/* Use audit debugging module */
1424#undef SSH_AUDIT_EVENTS
1425
1426/* Windows is sensitive to read buffer size */
1427#undef SSH_IOBUFSZ
1428
1429/* non-privileged user for privilege separation */
1430#undef SSH_PRIVSEP_USER
1431
1432/* Use tunnel device compatibility to OpenBSD */
1433#undef SSH_TUN_COMPAT_AF
1434
1435/* Open tunnel devices the FreeBSD way */
1436#undef SSH_TUN_FREEBSD
1437
1438/* Open tunnel devices the Linux tun/tap way */
1439#undef SSH_TUN_LINUX
1440
1441/* No layer 2 tunnel support */
1442#undef SSH_TUN_NO_L2
1443
1444/* Open tunnel devices the OpenBSD way */
1445#undef SSH_TUN_OPENBSD
1446
1447/* Prepend the address family to IP tunnel traffic */
1448#undef SSH_TUN_PREPEND_AF
1449
1450/* Define to 1 if you have the ANSI C header files. */
1451#undef STDC_HEADERS
1452
1453/* Define if you want a different $PATH for the superuser */
1454#undef SUPERUSER_PATH
1455
1456/* syslog_r function is safe to use in in a signal handler */
1457#undef SYSLOG_R_SAFE_IN_SIGHAND
1458
1459/* Support passwords > 8 chars */
1460#undef UNIXWARE_LONG_PASSWORDS
1461
1462/* Specify default $PATH */
1463#undef USER_PATH
1464
1465/* Define this if you want to use libkafs' AFS support */
1466#undef USE_AFS
1467
1468/* Use BSM audit module */
1469#undef USE_BSM_AUDIT
1470
1471/* Use btmp to log bad logins */
1472#undef USE_BTMP
1473
1474/* Use libedit for sftp */
1475#undef USE_LIBEDIT
1476
1477/* Use Linux audit module */
1478#undef USE_LINUX_AUDIT
1479
1480/* Enable OpenSSL engine support */
1481#undef USE_OPENSSL_ENGINE
1482
1483/* Define if you want to enable PAM support */
1484#undef USE_PAM
1485
1486/* Use PIPES instead of a socketpair() */
1487#undef USE_PIPES
1488
1489/* Define if you have Solaris process contracts */
1490#undef USE_SOLARIS_PROCESS_CONTRACTS
1491
1492/* Define if you have Solaris projects */
1493#undef USE_SOLARIS_PROJECTS
1494
1495/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1496#undef WITH_ABBREV_NO_TTY
1497
1498/* Define if you want to enable AIX4's authenticate function */
1499#undef WITH_AIXAUTHENTICATE
1500
1501/* Define if you have/want arrays (cluster-wide session managment, not C
1502 arrays) */
1503#undef WITH_IRIX_ARRAY
1504
1505/* Define if you want IRIX audit trails */
1506#undef WITH_IRIX_AUDIT
1507
1508/* Define if you want IRIX kernel jobs */
1509#undef WITH_IRIX_JOBS
1510
1511/* Define if you want IRIX project management */
1512#undef WITH_IRIX_PROJECT
1513
1514/* Define if you want SELinux support. */
1515#undef WITH_SELINUX
1516
1517/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
1518 significant byte first (like Motorola and SPARC, unlike Intel). */
1519#if defined AC_APPLE_UNIVERSAL_BUILD
1520# if defined __BIG_ENDIAN__
1521# define WORDS_BIGENDIAN 1
1522# endif
1523#else
1524# ifndef WORDS_BIGENDIAN
1525# undef WORDS_BIGENDIAN
1526# endif
1527#endif
1528
1529/* Define if xauth is found in your path */
1530#undef XAUTH_PATH
1531
1532/* Number of bits in a file offset, on hosts where this is settable. */
1533#undef _FILE_OFFSET_BITS
1534
1535/* Define for large files, on AIX-style hosts. */
1536#undef _LARGE_FILES
1537
1538/* log for bad login attempts */
1539#undef _PATH_BTMP
1540
1541/* Full path of your "passwd" program */
1542#undef _PATH_PASSWD_PROG
1543
1544/* Specify location of ssh.pid */
1545#undef _PATH_SSH_PIDDIR
1546
1547/* Define if we don't have struct __res_state in resolv.h */
1548#undef __res_state
1549
1550/* Define to `__inline__' or `__inline' if that's what the C compiler
1551 calls it, or to nothing if 'inline' is not supported under any name. */
1552#ifndef __cplusplus
1553#undef inline
1554#endif
1555
1556/* type to use in place of socklen_t if not defined */
1557#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..4eeaa4e56
--- /dev/null
+++ b/configure
@@ -0,0 +1,18150 @@
1#! /bin/sh
2# From configure.ac Revision: 1.496 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.68 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8#
9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11# Foundation, Inc.
12#
13#
14# This configure script is free software; the Free Software Foundation
15# gives unlimited permission to copy, distribute and modify it.
16## -------------------- ##
17## M4sh Initialization. ##
18## -------------------- ##
19
20# Be more Bourne compatible
21DUALCASE=1; export DUALCASE # for MKS sh
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35esac
36fi
37
38
39as_nl='
40'
41export as_nl
42# Printing a long string crashes Solaris 7 /usr/bin/printf.
43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46# Prefer a ksh shell builtin over an external printf program on Solaris,
47# but without wasting forks for bash or zsh.
48if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75fi
76
77# The user is always right.
78if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# IFS
88# We need space, tab and new line, in precisely that order. Quoting is
89# there to prevent editors from complaining about space-tab.
90# (If _AS_PATH_WALK were called with IFS unset, it would disable word
91# splitting by setting IFS to empty value.)
92IFS=" "" $as_nl"
93
94# Find who we are. Look in the path if we contain no directory separator.
95as_myself=
96case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99for as_dir in $PATH
100do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105IFS=$as_save_IFS
106
107 ;;
108esac
109# We did not find ourselves, most probably we were run as `sh COMMAND'
110# in which case we are not to be found in the path.
111if test "x$as_myself" = x; then
112 as_myself=$0
113fi
114if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117fi
118
119# Unset variables that we do not need and which cause bugs (e.g. in
120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121# suppresses any "Segmentation fault" message there. '((' could
122# trigger a bug in pdksh 5.2.14.
123for as_var in BASH_ENV ENV MAIL MAILPATH
124do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# CDPATH.
138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154esac
155fi
156"
157 as_required="as_fn_return () { (exit \$1); }
158as_fn_success () { as_fn_return 0; }
159as_fn_failure () { as_fn_return 1; }
160as_fn_ret_success () { return 0; }
161as_fn_ret_failure () { return 1; }
162
163exitcode=0
164as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170else
171 exitcode=1; echo positional parameters were not saved.
172fi
173test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
180 as_have_required=yes
181else
182 as_have_required=no
183fi
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186else
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188as_found=false
189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190do
191 IFS=$as_save_IFS
192 test -z "$as_dir" && as_dir=.
193 as_found=:
194 case $as_dir in #(
195 /*)
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 break 2
204fi
205fi
206 done;;
207 esac
208 as_found=false
209done
210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
213fi; }
214IFS=$as_save_IFS
215
216
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
222 BASH_ENV=/dev/null
223 ENV=/dev/null
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 export CONFIG_SHELL
226 case $- in # ((((
227 *v*x* | *x*v* ) as_opts=-vx ;;
228 *v* ) as_opts=-v ;;
229 *x* ) as_opts=-x ;;
230 * ) as_opts= ;;
231 esac
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233fi
234
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243$0: openssh-unix-dev@mindrot.org about your system,
244$0: including any error possibly output before this
245$0: message. Then install a modern shell, or manually run
246$0: the script under such a shell if you do have one."
247 fi
248 exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266 { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275 return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283 set +e
284 as_fn_set_status $1
285 exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390else
391 as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396else
397 as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402else
403 as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473*)
474 ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498else
499 as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='OpenSSH'
563PACKAGE_TARNAME='openssh'
564PACKAGE_VERSION='Portable'
565PACKAGE_STRING='OpenSSH Portable'
566PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
567PACKAGE_URL=''
568
569ac_unique_file="ssh.c"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584# include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589# include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='LTLIBOBJS
607LIBOBJS
608TEST_SSH_IPV6
609piddir
610user_path
611mansubdir
612MANTYPE
613XAUTH_PATH
614STRIP_OPT
615xauth_path
616PRIVSEP_PATH
617KRB5CONF
618SSHDLIBS
619SSHLIBS
620SSH_PRIVSEP_USER
621COMMENT_OUT_ECC
622TEST_SSH_ECC
623TEST_SSH_SHA256
624LIBEDIT
625PKGCONFIG
626LD
627PATH_PASSWD_PROG
628LOGIN_PROGRAM_FALLBACK
629STARTUP_SCRIPT_SHELL
630MAKE_PACKAGE_SUPPORTED
631PATH_USERADD_PROG
632PATH_GROUPADD_PROG
633MANFMT
634TEST_SHELL
635MANDOC
636NROFF
637GROFF
638SH
639TEST_MINUS_S_SH
640ENT
641SED
642PERL
643KILL
644CAT
645AR
646INSTALL_DATA
647INSTALL_SCRIPT
648INSTALL_PROGRAM
649RANLIB
650AWK
651EGREP
652GREP
653CPP
654host_os
655host_vendor
656host_cpu
657host
658build_os
659build_vendor
660build_cpu
661build
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669target_alias
670host_alias
671build_alias
672LIBS
673ECHO_T
674ECHO_N
675ECHO_C
676DEFS
677mandir
678localedir
679libdir
680psdir
681pdfdir
682dvidir
683htmldir
684infodir
685docdir
686oldincludedir
687includedir
688localstatedir
689sharedstatedir
690sysconfdir
691datadir
692datarootdir
693libexecdir
694sbindir
695bindir
696program_transform_name
697prefix
698exec_prefix
699PACKAGE_URL
700PACKAGE_BUGREPORT
701PACKAGE_STRING
702PACKAGE_VERSION
703PACKAGE_TARNAME
704PACKAGE_NAME
705PATH_SEPARATOR
706SHELL'
707ac_subst_files=''
708ac_user_opts='
709enable_option_checking
710enable_largefile
711with_stackprotect
712with_rpath
713with_cflags
714with_cppflags
715with_ldflags
716with_libs
717with_Werror
718with_solaris_contracts
719with_solaris_projects
720with_osfsia
721with_zlib
722with_zlib_version_check
723with_skey
724with_tcp_wrappers
725with_ldns
726with_libedit
727with_audit
728with_ssl_dir
729with_openssl_header_check
730with_ssl_engine
731with_prngd_port
732with_prngd_socket
733with_pam
734with_privsep_user
735with_sandbox
736with_selinux
737with_kerberos5
738with_privsep_path
739with_xauth
740enable_strip
741with_maildir
742with_mantype
743with_md5_passwords
744with_shadow
745with_ipaddr_display
746enable_etc_default_login
747with_default_path
748with_superuser_path
749with_4in6
750with_bsd_auth
751with_pid_dir
752enable_lastlog
753enable_utmp
754enable_utmpx
755enable_wtmp
756enable_wtmpx
757enable_libutil
758enable_pututline
759enable_pututxline
760with_lastlog
761'
762 ac_precious_vars='build_alias
763host_alias
764target_alias
765CC
766CFLAGS
767LDFLAGS
768LIBS
769CPPFLAGS
770CPP'
771
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
830 fi
831
832 case $ac_option in
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
836 esac
837
838 # Accept the important Cygnus configure options, so we can diagnose typos.
839
840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
843
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
848
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
853
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
860
861 --config-cache | -C)
862 cache_file=config.cache ;;
863
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885"enable_$ac_useropt"
886"*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
901
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
937
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
989
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1010
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1077
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1087
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1094
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1105
1106 -with-* | --with-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115"with_$ac_useropt"
1116"*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1121
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
1137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166 esac
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 ;;
1177
1178 esac
1179done
1180
1181if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $? "missing argument to $ac_option"
1184fi
1185
1186if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1192fi
1193
1194# Check all directory arguments for consistency.
1195for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1199do
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used" >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1230 fi
1231fi
1232
1233ac_tool_prefix=
1234test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236test "$silent" = yes && exec 6>/dev/null
1237
1238
1239ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240ac_ls_di=`ls -di .` &&
1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1245
1246
1247# Find the source files, if location was not specified.
1248if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256$as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\).*/{
1270 s//\1/
1271 q
1272 }
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1277 fi
1278else
1279 ac_srcdir_defaulted=no
1280fi
1281if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284fi
1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 pwd)`
1289# When building in place, set srcdir=.
1290if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1292fi
1293# Remove unnecessary trailing slashes from srcdir.
1294# Double slashes in file names in object file debugging info
1295# mess up M-x gdb in Emacs.
1296case $srcdir in
1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298esac
1299for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304done
1305
1306#
1307# Report the --help message.
1308#
1309if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1314
1315Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318VAR=VALUE. See below for descriptions of some of the useful variables.
1319
1320Defaults for the options are specified in brackets.
1321
1322Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332
1333Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1338
1339By default, \`make install' will install all the files in
1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342for instance \`--prefix=\$HOME'.
1343
1344For better control, use the options below.
1345
1346Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366_ACEOF
1367
1368 cat <<\_ACEOF
1369
1370System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373_ACEOF
1374fi
1375
1376if test -n "$ac_init_help"; then
1377 case $ac_init_help in
1378 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1379 esac
1380 cat <<\_ACEOF
1381
1382Optional Features:
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-largefile omit support for large files
1387 --disable-strip Disable calling strip(1) on install
1388 --disable-etc-default-login Disable using PATH from /etc/default/login no
1389 --disable-lastlog disable use of lastlog even if detected no
1390 --disable-utmp disable use of utmp even if detected no
1391 --disable-utmpx disable use of utmpx even if detected no
1392 --disable-wtmp disable use of wtmp even if detected no
1393 --disable-wtmpx disable use of wtmpx even if detected no
1394 --disable-libutil disable use of libutil (login() etc.) no
1395 --disable-pututline disable use of pututline() etc. (uwtmp) no
1396 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1397
1398Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --without-stackprotect Don't use compiler's stack protection
1402 --without-rpath Disable auto-added -R linker paths
1403 --with-cflags Specify additional flags to pass to compiler
1404 --with-cppflags Specify additional flags to pass to preprocessor
1405 --with-ldflags Specify additional flags to pass to linker
1406 --with-libs Specify additional libraries to link with
1407 --with-Werror Build main code with -Werror
1408 --with-solaris-contracts Enable Solaris process contracts (experimental)
1409 --with-solaris-projects Enable Solaris projects (experimental)
1410 --with-osfsia Enable Digital Unix SIA
1411 --with-zlib=PATH Use zlib in PATH
1412 --without-zlib-version-check Disable zlib version check
1413 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1414 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1415 --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH)
1416 --with-libedit[=PATH] Enable libedit support for sftp
1417 --with-audit=module Enable audit support (modules=debug,bsm,linux)
1418 --with-ssl-dir=PATH Specify path to OpenSSL installation
1419 --without-openssl-header-check Disable OpenSSL version consistency check
1420 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1421 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1422 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1423 --with-pam Enable PAM support
1424 --with-privsep-user=user Specify non-privileged user for privilege separation
1425 --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter)
1426 --with-selinux Enable SELinux support
1427 --with-kerberos5=PATH Enable Kerberos 5 support
1428 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1429 --with-xauth=PATH Specify path to xauth program
1430 --with-maildir=/path/to/mail Specify your system mail directory
1431 --with-mantype=man|cat|doc Set man page type
1432 --with-md5-passwords Enable use of MD5 passwords
1433 --without-shadow Disable shadow password support
1434 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1435 --with-default-path= Specify default \$PATH environment for server
1436 --with-superuser-path= Specify different path for super-user
1437 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1438 --with-bsd-auth Enable BSD auth support
1439 --with-pid-dir=PATH Specify location of ssh.pid file
1440 --with-lastlog=FILE|DIR specify lastlog location common locations
1441
1442Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <openssh-unix-dev@mindrot.org>.
1456_ACEOF
1457ac_status=$?
1458fi
1459
1460if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1467
1468case "$ac_dir" in
1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470*)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478esac
1479ac_abs_top_builddir=$ac_pwd
1480ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481# for backward compatibility:
1482ac_top_builddir=$ac_top_build_prefix
1483
1484case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497esac
1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1513fi
1514
1515test -n "$ac_init_help" && exit $ac_status
1516if $ac_init_version; then
1517 cat <<\_ACEOF
1518OpenSSH configure Portable
1519generated by GNU Autoconf 2.68
1520
1521Copyright (C) 2010 Free Software Foundation, Inc.
1522This configure script is free software; the Free Software Foundation
1523gives unlimited permission to copy, distribute and modify it.
1524_ACEOF
1525 exit
1526fi
1527
1528## ------------------------ ##
1529## Autoconf initialization. ##
1530## ------------------------ ##
1531
1532# ac_fn_c_try_compile LINENO
1533# --------------------------
1534# Try to compile conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_compile ()
1536{
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543esac
1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545$as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559else
1560 $as_echo "$as_me: failed program was:" >&5
1561sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564fi
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1567
1568} # ac_fn_c_try_compile
1569
1570# ac_fn_c_try_run LINENO
1571# ----------------------
1572# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1573# that executables *can* be run.
1574ac_fn_c_try_run ()
1575{
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { { ac_try="$ac_link"
1578case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581esac
1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583$as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>&5
1585 ac_status=$?
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1588 { { case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_try") 2>&5
1595 ac_status=$?
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; }; }; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: program exited with status $ac_status" >&5
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=$ac_status
1605fi
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_run
1611
1612# ac_fn_c_try_cpp LINENO
1613# ----------------------
1614# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_cpp ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } > conftest.i && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 }; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_cpp
1648
1649# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650# -------------------------------------------------------
1651# Tests whether HEADER exists and can be compiled using the include files in
1652# INCLUDES, setting the cache variable VAR accordingly.
1653ac_fn_c_check_header_compile ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657$as_echo_n "checking for $2... " >&6; }
1658if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1660else
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662/* end confdefs.h. */
1663$4
1664#include <$2>
1665_ACEOF
1666if ac_fn_c_try_compile "$LINENO"; then :
1667 eval "$3=yes"
1668else
1669 eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672fi
1673eval ac_res=\$$3
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675$as_echo "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_c_check_header_compile
1679
1680# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1681# ---------------------------------------------
1682# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1683# accordingly.
1684ac_fn_c_check_decl ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 as_decl_name=`echo $2|sed 's/ *(.*//'`
1688 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1690$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1691if eval \${$3+:} false; then :
1692 $as_echo_n "(cached) " >&6
1693else
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h. */
1696$4
1697int
1698main ()
1699{
1700#ifndef $as_decl_name
1701#ifdef __cplusplus
1702 (void) $as_decl_use;
1703#else
1704 (void) $as_decl_name;
1705#endif
1706#endif
1707
1708 ;
1709 return 0;
1710}
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714else
1715 eval "$3=no"
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718fi
1719eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721$as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724} # ac_fn_c_check_decl
1725
1726# ac_fn_c_try_link LINENO
1727# -----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_link ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 $as_test_x conftest$ac_exeext
1754 }; then :
1755 ac_retval=0
1756else
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761fi
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770} # ac_fn_c_try_link
1771
1772# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1773# -------------------------------------------------------
1774# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1775# the include files in INCLUDES and setting the cache variable VAR
1776# accordingly.
1777ac_fn_c_check_header_mongrel ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if eval \${$3+:} false; then :
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1785fi
1786eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788$as_echo "$ac_res" >&6; }
1789else
1790 # Is the header compilable?
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1792$as_echo_n "checking $2 usability... " >&6; }
1793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h. */
1795$4
1796#include <$2>
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 ac_header_compiler=yes
1800else
1801 ac_header_compiler=no
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1805$as_echo "$ac_header_compiler" >&6; }
1806
1807# Is the header present?
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1809$as_echo_n "checking $2 presence... " >&6; }
1810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_cpp "$LINENO"; then :
1815 ac_header_preproc=yes
1816else
1817 ac_header_preproc=no
1818fi
1819rm -f conftest.err conftest.i conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1821$as_echo "$ac_header_preproc" >&6; }
1822
1823# So? What about this header?
1824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1825 yes:no: )
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1827$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 ;;
1831 no:yes:* )
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1833$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1835$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1837$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1839$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842( $as_echo "## ------------------------------------------- ##
1843## Report this to openssh-unix-dev@mindrot.org ##
1844## ------------------------------------------- ##"
1845 ) | sed "s/^/$as_me: WARNING: /" >&2
1846 ;;
1847esac
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1852else
1853 eval "$3=\$ac_header_compiler"
1854fi
1855eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858fi
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_c_check_header_mongrel
1862
1863# ac_fn_c_check_func LINENO FUNC VAR
1864# ----------------------------------
1865# Tests whether FUNC exists, setting the cache variable VAR accordingly
1866ac_fn_c_check_func ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878#define $2 innocuous_$2
1879
1880/* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1884
1885#ifdef __STDC__
1886# include <limits.h>
1887#else
1888# include <assert.h>
1889#endif
1890
1891#undef $2
1892
1893/* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1896#ifdef __cplusplus
1897extern "C"
1898#endif
1899char $2 ();
1900/* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903#if defined __stub_$2 || defined __stub___$2
1904choke me
1905#endif
1906
1907int
1908main ()
1909{
1910return $2 ();
1911 ;
1912 return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_link "$LINENO"; then :
1916 eval "$3=yes"
1917else
1918 eval "$3=no"
1919fi
1920rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1922fi
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} # ac_fn_c_check_func
1929
1930# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931# -------------------------------------------
1932# Tests whether TYPE exists after having included INCLUDES, setting cache
1933# variable VAR accordingly.
1934ac_fn_c_check_type ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 eval "$3=no"
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946int
1947main ()
1948{
1949if (sizeof ($2))
1950 return 0;
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h. */
1958$4
1959int
1960main ()
1961{
1962if (sizeof (($2)))
1963 return 0;
1964 ;
1965 return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969
1970else
1971 eval "$3=yes"
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976fi
1977eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982} # ac_fn_c_check_type
1983
1984# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1985# --------------------------------------------
1986# Tries to find the compile-time value of EXPR in a program that includes
1987# INCLUDES, setting VAR accordingly. Returns whether the value could be
1988# computed
1989ac_fn_c_compute_int ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if test "$cross_compiling" = yes; then
1993 # Depending upon the size, compute the lo and hi bounds.
1994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996$4
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !(($2) >= 0)];
2001test_array [0] = 0
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_lo=0 ac_mid=0
2009 while :; do
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017test_array [0] = 0
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=$ac_mid; break
2025else
2026 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2027 if test $ac_lo -le $ac_mid; then
2028 ac_lo= ac_hi=
2029 break
2030 fi
2031 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 done
2035else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h. */
2038$4
2039int
2040main ()
2041{
2042static int test_array [1 - 2 * !(($2) < 0)];
2043test_array [0] = 0
2044
2045 ;
2046 return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050 ac_hi=-1 ac_mid=-1
2051 while :; do
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
2058static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2059test_array [0] = 0
2060
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_lo=$ac_mid; break
2067else
2068 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2069 if test $ac_mid -le $ac_hi; then
2070 ac_lo= ac_hi=
2071 break
2072 fi
2073 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 done
2077else
2078 ac_lo= ac_hi=
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083# Binary search between lo and hi bounds.
2084while test "x$ac_lo" != "x$ac_hi"; do
2085 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$4
2089int
2090main ()
2091{
2092static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093test_array [0] = 0
2094
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid
2101else
2102 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105done
2106case $ac_lo in #((
2107?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2108'') ac_retval=1 ;;
2109esac
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h. */
2113$4
2114static long int longval () { return $2; }
2115static unsigned long int ulongval () { return $2; }
2116#include <stdio.h>
2117#include <stdlib.h>
2118int
2119main ()
2120{
2121
2122 FILE *f = fopen ("conftest.val", "w");
2123 if (! f)
2124 return 1;
2125 if (($2) < 0)
2126 {
2127 long int i = longval ();
2128 if (i != ($2))
2129 return 1;
2130 fprintf (f, "%ld", i);
2131 }
2132 else
2133 {
2134 unsigned long int i = ulongval ();
2135 if (i != ($2))
2136 return 1;
2137 fprintf (f, "%lu", i);
2138 }
2139 /* Do not output a trailing newline, as this causes \r\n confusion
2140 on some platforms. */
2141 return ferror (f) || fclose (f) != 0;
2142
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_run "$LINENO"; then :
2148 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2149else
2150 ac_retval=1
2151fi
2152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2153 conftest.$ac_objext conftest.beam conftest.$ac_ext
2154rm -f conftest.val
2155
2156 fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2159
2160} # ac_fn_c_compute_int
2161
2162# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2163# ----------------------------------------------------
2164# Tries to find if the field MEMBER exists in type AGGR, after including
2165# INCLUDES, setting cache variable VAR accordingly.
2166ac_fn_c_check_member ()
2167{
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2170$as_echo_n "checking for $2.$3... " >&6; }
2171if eval \${$4+:} false; then :
2172 $as_echo_n "(cached) " >&6
2173else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$5
2177int
2178main ()
2179{
2180static $2 ac_aggr;
2181if (ac_aggr.$3)
2182return 0;
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188 eval "$4=yes"
2189else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h. */
2192$5
2193int
2194main ()
2195{
2196static $2 ac_aggr;
2197if (sizeof ac_aggr.$3)
2198return 0;
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 eval "$4=yes"
2205else
2206 eval "$4=no"
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211fi
2212eval ac_res=\$$4
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214$as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217} # ac_fn_c_check_member
2218cat >config.log <<_ACEOF
2219This file contains any messages produced by compilers while
2220running configure, to aid debugging if configure makes a mistake.
2221
2222It was created by OpenSSH $as_me Portable, which was
2223generated by GNU Autoconf 2.68. Invocation command line was
2224
2225 $ $0 $@
2226
2227_ACEOF
2228exec 5>>config.log
2229{
2230cat <<_ASUNAME
2231## --------- ##
2232## Platform. ##
2233## --------- ##
2234
2235hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2236uname -m = `(uname -m) 2>/dev/null || echo unknown`
2237uname -r = `(uname -r) 2>/dev/null || echo unknown`
2238uname -s = `(uname -s) 2>/dev/null || echo unknown`
2239uname -v = `(uname -v) 2>/dev/null || echo unknown`
2240
2241/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2242/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2243
2244/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2245/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2246/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2247/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2248/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2249/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2250/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2251
2252_ASUNAME
2253
2254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255for as_dir in $PATH
2256do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 $as_echo "PATH: $as_dir"
2260 done
2261IFS=$as_save_IFS
2262
2263} >&5
2264
2265cat >&5 <<_ACEOF
2266
2267
2268## ----------- ##
2269## Core tests. ##
2270## ----------- ##
2271
2272_ACEOF
2273
2274
2275# Keep a trace of the command line.
2276# Strip out --no-create and --no-recursion so they do not pile up.
2277# Strip out --silent because we don't want to record it for future runs.
2278# Also quote any args containing shell meta-characters.
2279# Make two passes to allow for proper duplicate-argument suppression.
2280ac_configure_args=
2281ac_configure_args0=
2282ac_configure_args1=
2283ac_must_keep_next=false
2284for ac_pass in 1 2
2285do
2286 for ac_arg
2287 do
2288 case $ac_arg in
2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291 | -silent | --silent | --silen | --sile | --sil)
2292 continue ;;
2293 *\'*)
2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 esac
2296 case $ac_pass in
2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2298 2)
2299 as_fn_append ac_configure_args1 " '$ac_arg'"
2300 if test $ac_must_keep_next = true; then
2301 ac_must_keep_next=false # Got value, back to normal.
2302 else
2303 case $ac_arg in
2304 *=* | --config-cache | -C | -disable-* | --disable-* \
2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307 | -with-* | --with-* | -without-* | --without-* | --x)
2308 case "$ac_configure_args0 " in
2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310 esac
2311 ;;
2312 -* ) ac_must_keep_next=true ;;
2313 esac
2314 fi
2315 as_fn_append ac_configure_args " '$ac_arg'"
2316 ;;
2317 esac
2318 done
2319done
2320{ ac_configure_args0=; unset ac_configure_args0;}
2321{ ac_configure_args1=; unset ac_configure_args1;}
2322
2323# When interrupted or exit'd, cleanup temporary files, and complete
2324# config.log. We remove comments because anyway the quotes in there
2325# would cause problems or look ugly.
2326# WARNING: Use '\'' to represent an apostrophe within the trap.
2327# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328trap 'exit_status=$?
2329 # Save into config.log some information that might help in debugging.
2330 {
2331 echo
2332
2333 $as_echo "## ---------------- ##
2334## Cache variables. ##
2335## ---------------- ##"
2336 echo
2337 # The following way of writing the cache mishandles newlines in values,
2338(
2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in #(
2342 *${as_nl}*)
2343 case $ac_var in #(
2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346 esac
2347 case $ac_var in #(
2348 _ | IFS | as_nl) ;; #(
2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350 *) { eval $ac_var=; unset $ac_var;} ;;
2351 esac ;;
2352 esac
2353 done
2354 (set) 2>&1 |
2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356 *${as_nl}ac_space=\ *)
2357 sed -n \
2358 "s/'\''/'\''\\\\'\'''\''/g;
2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360 ;; #(
2361 *)
2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2363 ;;
2364 esac |
2365 sort
2366)
2367 echo
2368
2369 $as_echo "## ----------------- ##
2370## Output variables. ##
2371## ----------------- ##"
2372 echo
2373 for ac_var in $ac_subst_vars
2374 do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2380 done | sort
2381 echo
2382
2383 if test -n "$ac_subst_files"; then
2384 $as_echo "## ------------------- ##
2385## File substitutions. ##
2386## ------------------- ##"
2387 echo
2388 for ac_var in $ac_subst_files
2389 do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in
2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393 esac
2394 $as_echo "$ac_var='\''$ac_val'\''"
2395 done | sort
2396 echo
2397 fi
2398
2399 if test -s confdefs.h; then
2400 $as_echo "## ----------- ##
2401## confdefs.h. ##
2402## ----------- ##"
2403 echo
2404 cat confdefs.h
2405 echo
2406 fi
2407 test "$ac_signal" != 0 &&
2408 $as_echo "$as_me: caught signal $ac_signal"
2409 $as_echo "$as_me: exit $exit_status"
2410 } >&5
2411 rm -f core *.core core.conftest.* &&
2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413 exit $exit_status
2414' 0
2415for ac_signal in 1 2 13 15; do
2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2417done
2418ac_signal=0
2419
2420# confdefs.h avoids OS command line length limits that DEFS can exceed.
2421rm -f -r conftest* confdefs.h
2422
2423$as_echo "/* confdefs.h */" > confdefs.h
2424
2425# Predefined preprocessor variables.
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_NAME "$PACKAGE_NAME"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_VERSION "$PACKAGE_VERSION"
2437_ACEOF
2438
2439cat >>confdefs.h <<_ACEOF
2440#define PACKAGE_STRING "$PACKAGE_STRING"
2441_ACEOF
2442
2443cat >>confdefs.h <<_ACEOF
2444#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2445_ACEOF
2446
2447cat >>confdefs.h <<_ACEOF
2448#define PACKAGE_URL "$PACKAGE_URL"
2449_ACEOF
2450
2451
2452# Let the site file select an alternate cache file if it wants to.
2453# Prefer an explicitly selected file to automatically selected ones.
2454ac_site_file1=NONE
2455ac_site_file2=NONE
2456if test -n "$CONFIG_SITE"; then
2457 # We do not want a PATH search for config.site.
2458 case $CONFIG_SITE in #((
2459 -*) ac_site_file1=./$CONFIG_SITE;;
2460 */*) ac_site_file1=$CONFIG_SITE;;
2461 *) ac_site_file1=./$CONFIG_SITE;;
2462 esac
2463elif test "x$prefix" != xNONE; then
2464 ac_site_file1=$prefix/share/config.site
2465 ac_site_file2=$prefix/etc/config.site
2466else
2467 ac_site_file1=$ac_default_prefix/share/config.site
2468 ac_site_file2=$ac_default_prefix/etc/config.site
2469fi
2470for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471do
2472 test "x$ac_site_file" = xNONE && continue
2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 sed 's/^/| /' "$ac_site_file" >&5
2477 . "$ac_site_file" \
2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480as_fn_error $? "failed to load site script $ac_site_file
2481See \`config.log' for more details" "$LINENO" 5; }
2482 fi
2483done
2484
2485if test -r "$cache_file"; then
2486 # Some versions of bash will fail to source /dev/null (special files
2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490$as_echo "$as_me: loading cache $cache_file" >&6;}
2491 case $cache_file in
2492 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493 *) . "./$cache_file";;
2494 esac
2495 fi
2496else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498$as_echo "$as_me: creating cache $cache_file" >&6;}
2499 >$cache_file
2500fi
2501
2502# Check that the precious variables saved in the cache have kept the same
2503# value.
2504ac_cache_corrupted=false
2505for ac_var in $ac_precious_vars; do
2506 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507 eval ac_new_set=\$ac_env_${ac_var}_set
2508 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509 eval ac_new_val=\$ac_env_${ac_var}_value
2510 case $ac_old_set,$ac_new_set in
2511 set,)
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2515 ,set)
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518 ac_cache_corrupted=: ;;
2519 ,);;
2520 *)
2521 if test "x$ac_old_val" != "x$ac_new_val"; then
2522 # differences in whitespace do not lead to failure.
2523 ac_old_val_w=`echo x $ac_old_val`
2524 ac_new_val_w=`echo x $ac_new_val`
2525 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528 ac_cache_corrupted=:
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532 eval $ac_var=\$ac_old_val
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2535$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2537$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2538 fi;;
2539 esac
2540 # Pass precious variables to config.status.
2541 if test "$ac_new_set" = set; then
2542 case $ac_new_val in
2543 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544 *) ac_arg=$ac_var=$ac_new_val ;;
2545 esac
2546 case " $ac_configure_args " in
2547 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2548 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2549 esac
2550 fi
2551done
2552if $ac_cache_corrupted; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2557 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2558fi
2559## -------------------- ##
2560## Main body of script. ##
2561## -------------------- ##
2562
2563ac_ext=c
2564ac_cpp='$CPP $CPPFLAGS'
2565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570
2571
2572ac_ext=c
2573ac_cpp='$CPP $CPPFLAGS'
2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577
2578
2579ac_config_headers="$ac_config_headers config.h"
2580
2581ac_ext=c
2582ac_cpp='$CPP $CPPFLAGS'
2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2588set dummy ${ac_tool_prefix}gcc; ac_word=$2
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if ${ac_cv_prog_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593else
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608done
2609 done
2610IFS=$as_save_IFS
2611
2612fi
2613fi
2614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2617$as_echo "$CC" >&6; }
2618else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621fi
2622
2623
2624fi
2625if test -z "$ac_cv_prog_CC"; then
2626 ac_ct_CC=$CC
2627 # Extract the first word of "gcc", so it can be a program name with args.
2628set dummy gcc; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
2631if ${ac_cv_prog_ac_ct_CC+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633else
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_CC="gcc"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2647 fi
2648done
2649 done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655if test -n "$ac_ct_CC"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2657$as_echo "$ac_ct_CC" >&6; }
2658else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663 if test "x$ac_ct_CC" = x; then
2664 CC=""
2665 else
2666 case $cross_compiling:$ac_tool_warned in
2667yes:)
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670ac_tool_warned=yes ;;
2671esac
2672 CC=$ac_ct_CC
2673 fi
2674else
2675 CC="$ac_cv_prog_CC"
2676fi
2677
2678if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681set dummy ${ac_tool_prefix}cc; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_CC+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}cc"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702 done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707CC=$ac_cv_prog_CC
2708if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710$as_echo "$CC" >&6; }
2711else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717 fi
2718fi
2719if test -z "$CC"; then
2720 # Extract the first word of "cc", so it can be a program name with args.
2721set dummy cc; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
2724if ${ac_cv_prog_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2726else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729else
2730 ac_prog_rejected=no
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739 ac_prog_rejected=yes
2740 continue
2741 fi
2742 ac_cv_prog_CC="cc"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746done
2747 done
2748IFS=$as_save_IFS
2749
2750if test $ac_prog_rejected = yes; then
2751 # We found a bogon in the path, so make sure we never use it.
2752 set dummy $ac_cv_prog_CC
2753 shift
2754 if test $# != 0; then
2755 # We chose a different compiler from the bogus one.
2756 # However, it has the same basename, so the bogon will be chosen
2757 # first if we set CC to just the basename; use the full file name.
2758 shift
2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2760 fi
2761fi
2762fi
2763fi
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767$as_echo "$CC" >&6; }
2768else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773
2774fi
2775if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in cl.exe
2778 do
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800done
2801 done
2802IFS=$as_save_IFS
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809$as_echo "$CC" >&6; }
2810else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812$as_echo "no" >&6; }
2813fi
2814
2815
2816 test -n "$CC" && break
2817 done
2818fi
2819if test -z "$CC"; then
2820 ac_ct_CC=$CC
2821 for ac_prog in cl.exe
2822do
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824set dummy $ac_prog; ac_word=$2
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844done
2845 done
2846IFS=$as_save_IFS
2847
2848fi
2849fi
2850ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853$as_echo "$ac_ct_CC" >&6; }
2854else
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
2857fi
2858
2859
2860 test -n "$ac_ct_CC" && break
2861done
2862
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867yes:)
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870ac_tool_warned=yes ;;
2871esac
2872 CC=$ac_ct_CC
2873 fi
2874fi
2875
2876fi
2877
2878
2879test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2881as_fn_error $? "no acceptable C compiler found in \$PATH
2882See \`config.log' for more details" "$LINENO" 5; }
2883
2884# Provide some information about the compiler.
2885$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2886set X $ac_compile
2887ac_compiler=$2
2888for ac_option in --version -v -V -qversion; do
2889 { { ac_try="$ac_compiler $ac_option >&5"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895$as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2897 ac_status=$?
2898 if test -s conftest.err; then
2899 sed '10a\
2900... rest of stderr output deleted ...
2901 10q' conftest.err >conftest.er1
2902 cat conftest.er1 >&5
2903 fi
2904 rm -f conftest.er1 conftest.err
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }
2907done
2908
2909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h. */
2911
2912int
2913main ()
2914{
2915
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920ac_clean_files_save=$ac_clean_files
2921ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2922# Try to create an executable without -o first, disregard a.out.
2923# It will help us diagnose broken compilers, and finding out an intuition
2924# of exeext.
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2926$as_echo_n "checking whether the C compiler works... " >&6; }
2927ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2928
2929# The possible output files:
2930ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2931
2932ac_rmfiles=
2933for ac_file in $ac_files
2934do
2935 case $ac_file in
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2937 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2938 esac
2939done
2940rm -f $ac_rmfiles
2941
2942if { { ac_try="$ac_link_default"
2943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948$as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_link_default") 2>&5
2950 ac_status=$?
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }; then :
2953 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2954# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2955# in a Makefile. We should not override ac_cv_exeext if it was cached,
2956# so that the user can short-circuit this test for compilers unknown to
2957# Autoconf.
2958for ac_file in $ac_files ''
2959do
2960 test -f "$ac_file" || continue
2961 case $ac_file in
2962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2963 ;;
2964 [ab].out )
2965 # We found the default executable, but exeext='' is most
2966 # certainly right.
2967 break;;
2968 *.* )
2969 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2970 then :; else
2971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2972 fi
2973 # We set ac_cv_exeext here because the later test for it is not
2974 # safe: cross compilers may not add the suffix if given an `-o'
2975 # argument, so we may need to know it at that point already.
2976 # Even if this section looks crufty: it has the advantage of
2977 # actually working.
2978 break;;
2979 * )
2980 break;;
2981 esac
2982done
2983test "$ac_cv_exeext" = no && ac_cv_exeext=
2984
2985else
2986 ac_file=''
2987fi
2988if test -z "$ac_file"; then :
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990$as_echo "no" >&6; }
2991$as_echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996as_fn_error 77 "C compiler cannot create executables
2997See \`config.log' for more details" "$LINENO" 5; }
2998else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3000$as_echo "yes" >&6; }
3001fi
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3003$as_echo_n "checking for C compiler default output file name... " >&6; }
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3005$as_echo "$ac_file" >&6; }
3006ac_exeext=$ac_cv_exeext
3007
3008rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3009ac_clean_files=$ac_clean_files_save
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3011$as_echo_n "checking for suffix of executables... " >&6; }
3012if { { ac_try="$ac_link"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018$as_echo "$ac_try_echo"; } >&5
3019 (eval "$ac_link") 2>&5
3020 ac_status=$?
3021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }; then :
3023 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3024# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3025# work properly (i.e., refer to `conftest.exe'), while it won't with
3026# `rm'.
3027for ac_file in conftest.exe conftest conftest.*; do
3028 test -f "$ac_file" || continue
3029 case $ac_file in
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3032 break;;
3033 * ) break;;
3034 esac
3035done
3036else
3037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3040See \`config.log' for more details" "$LINENO" 5; }
3041fi
3042rm -f conftest conftest$ac_cv_exeext
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3044$as_echo "$ac_cv_exeext" >&6; }
3045
3046rm -f conftest.$ac_ext
3047EXEEXT=$ac_cv_exeext
3048ac_exeext=$EXEEXT
3049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050/* end confdefs.h. */
3051#include <stdio.h>
3052int
3053main ()
3054{
3055FILE *f = fopen ("conftest.out", "w");
3056 return ferror (f) || fclose (f) != 0;
3057
3058 ;
3059 return 0;
3060}
3061_ACEOF
3062ac_clean_files="$ac_clean_files conftest.out"
3063# Check that the compiler produces executables we can run. If not, either
3064# the compiler is broken, or we cross compile.
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3066$as_echo_n "checking whether we are cross compiling... " >&6; }
3067if test "$cross_compiling" != yes; then
3068 { { ac_try="$ac_link"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074$as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_link") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }
3079 if { ac_try='./conftest$ac_cv_exeext'
3080 { { case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085$as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_try") 2>&5
3087 ac_status=$?
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; }; then
3090 cross_compiling=no
3091 else
3092 if test "$cross_compiling" = maybe; then
3093 cross_compiling=yes
3094 else
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097as_fn_error $? "cannot run C compiled programs.
3098If you meant to cross compile, use \`--host'.
3099See \`config.log' for more details" "$LINENO" 5; }
3100 fi
3101 fi
3102fi
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3104$as_echo "$cross_compiling" >&6; }
3105
3106rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3107ac_clean_files=$ac_clean_files_save
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3109$as_echo_n "checking for suffix of object files... " >&6; }
3110if ${ac_cv_objext+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112else
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.o conftest.obj
3125if { { ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131$as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_compile") 2>&5
3133 ac_status=$?
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 for ac_file in conftest.o conftest.obj conftest.*; do
3137 test -f "$ac_file" || continue;
3138 case $ac_file in
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3141 break;;
3142 esac
3143done
3144else
3145 $as_echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150as_fn_error $? "cannot compute suffix of object files: cannot compile
3151See \`config.log' for more details" "$LINENO" 5; }
3152fi
3153rm -f conftest.$ac_cv_objext conftest.$ac_ext
3154fi
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3156$as_echo "$ac_cv_objext" >&6; }
3157OBJEXT=$ac_cv_objext
3158ac_objext=$OBJEXT
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3160$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3161if ${ac_cv_c_compiler_gnu+:} false; then :
3162 $as_echo_n "(cached) " >&6
3163else
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170#ifndef __GNUC__
3171 choke me
3172#endif
3173
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178if ac_fn_c_try_compile "$LINENO"; then :
3179 ac_compiler_gnu=yes
3180else
3181 ac_compiler_gnu=no
3182fi
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184ac_cv_c_compiler_gnu=$ac_compiler_gnu
3185
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3188$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3189if test $ac_compiler_gnu = yes; then
3190 GCC=yes
3191else
3192 GCC=
3193fi
3194ac_test_CFLAGS=${CFLAGS+set}
3195ac_save_CFLAGS=$CFLAGS
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3197$as_echo_n "checking whether $CC accepts -g... " >&6; }
3198if ${ac_cv_prog_cc_g+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200else
3201 ac_save_c_werror_flag=$ac_c_werror_flag
3202 ac_c_werror_flag=yes
3203 ac_cv_prog_cc_g=no
3204 CFLAGS="-g"
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h. */
3207
3208int
3209main ()
3210{
3211
3212 ;
3213 return 0;
3214}
3215_ACEOF
3216if ac_fn_c_try_compile "$LINENO"; then :
3217 ac_cv_prog_cc_g=yes
3218else
3219 CFLAGS=""
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221/* end confdefs.h. */
3222
3223int
3224main ()
3225{
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
3231if ac_fn_c_try_compile "$LINENO"; then :
3232
3233else
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235 CFLAGS="-g"
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h. */
3238
3239int
3240main ()
3241{
3242
3243 ;
3244 return 0;
3245}
3246_ACEOF
3247if ac_fn_c_try_compile "$LINENO"; then :
3248 ac_cv_prog_cc_g=yes
3249fi
3250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251fi
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253fi
3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_c_werror_flag=$ac_save_c_werror_flag
3256fi
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3258$as_echo "$ac_cv_prog_cc_g" >&6; }
3259if test "$ac_test_CFLAGS" = set; then
3260 CFLAGS=$ac_save_CFLAGS
3261elif test $ac_cv_prog_cc_g = yes; then
3262 if test "$GCC" = yes; then
3263 CFLAGS="-g -O2"
3264 else
3265 CFLAGS="-g"
3266 fi
3267else
3268 if test "$GCC" = yes; then
3269 CFLAGS="-O2"
3270 else
3271 CFLAGS=
3272 fi
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3275$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3276if ${ac_cv_prog_cc_c89+:} false; then :
3277 $as_echo_n "(cached) " >&6
3278else
3279 ac_cv_prog_cc_c89=no
3280ac_save_CC=$CC
3281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282/* end confdefs.h. */
3283#include <stdarg.h>
3284#include <stdio.h>
3285#include <sys/types.h>
3286#include <sys/stat.h>
3287/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3288struct buf { int x; };
3289FILE * (*rcsopen) (struct buf *, struct stat *, int);
3290static char *e (p, i)
3291 char **p;
3292 int i;
3293{
3294 return p[i];
3295}
3296static char *f (char * (*g) (char **, int), char **p, ...)
3297{
3298 char *s;
3299 va_list v;
3300 va_start (v,p);
3301 s = g (p, va_arg (v,int));
3302 va_end (v);
3303 return s;
3304}
3305
3306/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3307 function prototypes and stuff, but not '\xHH' hex character constants.
3308 These don't provoke an error unfortunately, instead are silently treated
3309 as 'x'. The following induces an error, until -std is added to get
3310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3311 array size at least. It's necessary to write '\x00'==0 to get something
3312 that's true only with -std. */
3313int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3314
3315/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3316 inside strings and character constants. */
3317#define FOO(x) 'x'
3318int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3319
3320int test (int i, double x);
3321struct s1 {int (*f) (int a);};
3322struct s2 {int (*f) (double a);};
3323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324int argc;
3325char **argv;
3326int
3327main ()
3328{
3329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3330 ;
3331 return 0;
3332}
3333_ACEOF
3334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3336do
3337 CC="$ac_save_CC $ac_arg"
3338 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_cv_prog_cc_c89=$ac_arg
3340fi
3341rm -f core conftest.err conftest.$ac_objext
3342 test "x$ac_cv_prog_cc_c89" != "xno" && break
3343done
3344rm -f conftest.$ac_ext
3345CC=$ac_save_CC
3346
3347fi
3348# AC_CACHE_VAL
3349case "x$ac_cv_prog_cc_c89" in
3350 x)
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3352$as_echo "none needed" >&6; } ;;
3353 xno)
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3355$as_echo "unsupported" >&6; } ;;
3356 *)
3357 CC="$CC $ac_cv_prog_cc_c89"
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3359$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3360esac
3361if test "x$ac_cv_prog_cc_c89" != xno; then :
3362
3363fi
3364
3365ac_ext=c
3366ac_cpp='$CPP $CPPFLAGS'
3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371ac_aux_dir=
3372for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3373 if test -f "$ac_dir/install-sh"; then
3374 ac_aux_dir=$ac_dir
3375 ac_install_sh="$ac_aux_dir/install-sh -c"
3376 break
3377 elif test -f "$ac_dir/install.sh"; then
3378 ac_aux_dir=$ac_dir
3379 ac_install_sh="$ac_aux_dir/install.sh -c"
3380 break
3381 elif test -f "$ac_dir/shtool"; then
3382 ac_aux_dir=$ac_dir
3383 ac_install_sh="$ac_aux_dir/shtool install -c"
3384 break
3385 fi
3386done
3387if test -z "$ac_aux_dir"; then
3388 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3389fi
3390
3391# These three variables are undocumented and unsupported,
3392# and are intended to be withdrawn in a future Autoconf release.
3393# They can cause serious problems if a builder's source tree is in a directory
3394# whose full name contains unusual characters.
3395ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3396ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3397ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3398
3399
3400# Make sure we can run config.sub.
3401$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3402 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3403
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3405$as_echo_n "checking build system type... " >&6; }
3406if ${ac_cv_build+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408else
3409 ac_build_alias=$build_alias
3410test "x$ac_build_alias" = x &&
3411 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3412test "x$ac_build_alias" = x &&
3413 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3414ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3416
3417fi
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3419$as_echo "$ac_cv_build" >&6; }
3420case $ac_cv_build in
3421*-*-*) ;;
3422*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3423esac
3424build=$ac_cv_build
3425ac_save_IFS=$IFS; IFS='-'
3426set x $ac_cv_build
3427shift
3428build_cpu=$1
3429build_vendor=$2
3430shift; shift
3431# Remember, the first character of IFS is used to create $*,
3432# except with old shells:
3433build_os=$*
3434IFS=$ac_save_IFS
3435case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3436
3437
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3439$as_echo_n "checking host system type... " >&6; }
3440if ${ac_cv_host+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442else
3443 if test "x$host_alias" = x; then
3444 ac_cv_host=$ac_cv_build
3445else
3446 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3448fi
3449
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3452$as_echo "$ac_cv_host" >&6; }
3453case $ac_cv_host in
3454*-*-*) ;;
3455*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3456esac
3457host=$ac_cv_host
3458ac_save_IFS=$IFS; IFS='-'
3459set x $ac_cv_host
3460shift
3461host_cpu=$1
3462host_vendor=$2
3463shift; shift
3464# Remember, the first character of IFS is used to create $*,
3465# except with old shells:
3466host_os=$*
3467IFS=$ac_save_IFS
3468case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3469
3470
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3478$as_echo_n "checking how to run the C preprocessor... " >&6; }
3479# On Suns, sometimes $CPP names a directory.
3480if test -n "$CPP" && test -d "$CPP"; then
3481 CPP=
3482fi
3483if test -z "$CPP"; then
3484 if ${ac_cv_prog_CPP+:} false; then :
3485 $as_echo_n "(cached) " >&6
3486else
3487 # Double quotes because CPP needs to be expanded
3488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3489 do
3490 ac_preproc_ok=false
3491for ac_c_preproc_warn_flag in '' yes
3492do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h. */
3501#ifdef __STDC__
3502# include <limits.h>
3503#else
3504# include <assert.h>
3505#endif
3506 Syntax error
3507_ACEOF
3508if ac_fn_c_try_cpp "$LINENO"; then :
3509
3510else
3511 # Broken: fails on valid input.
3512continue
3513fi
3514rm -f conftest.err conftest.i conftest.$ac_ext
3515
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h. */
3520#include <ac_nonexistent.h>
3521_ACEOF
3522if ac_fn_c_try_cpp "$LINENO"; then :
3523 # Broken: success on invalid input.
3524continue
3525else
3526 # Passes both tests.
3527ac_preproc_ok=:
3528break
3529fi
3530rm -f conftest.err conftest.i conftest.$ac_ext
3531
3532done
3533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534rm -f conftest.i conftest.err conftest.$ac_ext
3535if $ac_preproc_ok; then :
3536 break
3537fi
3538
3539 done
3540 ac_cv_prog_CPP=$CPP
3541
3542fi
3543 CPP=$ac_cv_prog_CPP
3544else
3545 ac_cv_prog_CPP=$CPP
3546fi
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3548$as_echo "$CPP" >&6; }
3549ac_preproc_ok=false
3550for ac_c_preproc_warn_flag in '' yes
3551do
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h. */
3560#ifdef __STDC__
3561# include <limits.h>
3562#else
3563# include <assert.h>
3564#endif
3565 Syntax error
3566_ACEOF
3567if ac_fn_c_try_cpp "$LINENO"; then :
3568
3569else
3570 # Broken: fails on valid input.
3571continue
3572fi
3573rm -f conftest.err conftest.i conftest.$ac_ext
3574
3575 # OK, works on sane cases. Now check whether nonexistent headers
3576 # can be detected and how.
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h. */
3579#include <ac_nonexistent.h>
3580_ACEOF
3581if ac_fn_c_try_cpp "$LINENO"; then :
3582 # Broken: success on invalid input.
3583continue
3584else
3585 # Passes both tests.
3586ac_preproc_ok=:
3587break
3588fi
3589rm -f conftest.err conftest.i conftest.$ac_ext
3590
3591done
3592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593rm -f conftest.i conftest.err conftest.$ac_ext
3594if $ac_preproc_ok; then :
3595
3596else
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3600See \`config.log' for more details" "$LINENO" 5; }
3601fi
3602
3603ac_ext=c
3604ac_cpp='$CPP $CPPFLAGS'
3605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608
3609
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3611$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3612if ${ac_cv_path_GREP+:} false; then :
3613 $as_echo_n "(cached) " >&6
3614else
3615 if test -z "$GREP"; then
3616 ac_path_GREP_found=false
3617 # Loop through the user's path and test for each of PROGNAME-LIST
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3620do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_prog in grep ggrep; do
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3626 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3627# Check for GNU ac_path_GREP and select it if it is found.
3628 # Check for GNU $ac_path_GREP
3629case `"$ac_path_GREP" --version 2>&1` in
3630*GNU*)
3631 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3632*)
3633 ac_count=0
3634 $as_echo_n 0123456789 >"conftest.in"
3635 while :
3636 do
3637 cat "conftest.in" "conftest.in" >"conftest.tmp"
3638 mv "conftest.tmp" "conftest.in"
3639 cp "conftest.in" "conftest.nl"
3640 $as_echo 'GREP' >> "conftest.nl"
3641 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3643 as_fn_arith $ac_count + 1 && ac_count=$as_val
3644 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3645 # Best one so far, save it but keep looking for a better one
3646 ac_cv_path_GREP="$ac_path_GREP"
3647 ac_path_GREP_max=$ac_count
3648 fi
3649 # 10*(2^10) chars as input seems more than enough
3650 test $ac_count -gt 10 && break
3651 done
3652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3653esac
3654
3655 $ac_path_GREP_found && break 3
3656 done
3657 done
3658 done
3659IFS=$as_save_IFS
3660 if test -z "$ac_cv_path_GREP"; then
3661 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3662 fi
3663else
3664 ac_cv_path_GREP=$GREP
3665fi
3666
3667fi
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3669$as_echo "$ac_cv_path_GREP" >&6; }
3670 GREP="$ac_cv_path_GREP"
3671
3672
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3674$as_echo_n "checking for egrep... " >&6; }
3675if ${ac_cv_path_EGREP+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677else
3678 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3679 then ac_cv_path_EGREP="$GREP -E"
3680 else
3681 if test -z "$EGREP"; then
3682 ac_path_EGREP_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_prog in egrep; do
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3692 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3693# Check for GNU ac_path_EGREP and select it if it is found.
3694 # Check for GNU $ac_path_EGREP
3695case `"$ac_path_EGREP" --version 2>&1` in
3696*GNU*)
3697 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3698*)
3699 ac_count=0
3700 $as_echo_n 0123456789 >"conftest.in"
3701 while :
3702 do
3703 cat "conftest.in" "conftest.in" >"conftest.tmp"
3704 mv "conftest.tmp" "conftest.in"
3705 cp "conftest.in" "conftest.nl"
3706 $as_echo 'EGREP' >> "conftest.nl"
3707 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709 as_fn_arith $ac_count + 1 && ac_count=$as_val
3710 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3711 # Best one so far, save it but keep looking for a better one
3712 ac_cv_path_EGREP="$ac_path_EGREP"
3713 ac_path_EGREP_max=$ac_count
3714 fi
3715 # 10*(2^10) chars as input seems more than enough
3716 test $ac_count -gt 10 && break
3717 done
3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719esac
3720
3721 $ac_path_EGREP_found && break 3
3722 done
3723 done
3724 done
3725IFS=$as_save_IFS
3726 if test -z "$ac_cv_path_EGREP"; then
3727 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3728 fi
3729else
3730 ac_cv_path_EGREP=$EGREP
3731fi
3732
3733 fi
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3736$as_echo "$ac_cv_path_EGREP" >&6; }
3737 EGREP="$ac_cv_path_EGREP"
3738
3739
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3741$as_echo_n "checking for ANSI C header files... " >&6; }
3742if ${ac_cv_header_stdc+:} false; then :
3743 $as_echo_n "(cached) " >&6
3744else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h. */
3747#include <stdlib.h>
3748#include <stdarg.h>
3749#include <string.h>
3750#include <float.h>
3751
3752int
3753main ()
3754{
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_header_stdc=yes
3762else
3763 ac_cv_header_stdc=no
3764fi
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766
3767if test $ac_cv_header_stdc = yes; then
3768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770/* end confdefs.h. */
3771#include <string.h>
3772
3773_ACEOF
3774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 $EGREP "memchr" >/dev/null 2>&1; then :
3776
3777else
3778 ac_cv_header_stdc=no
3779fi
3780rm -f conftest*
3781
3782fi
3783
3784if test $ac_cv_header_stdc = yes; then
3785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h. */
3788#include <stdlib.h>
3789
3790_ACEOF
3791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 $EGREP "free" >/dev/null 2>&1; then :
3793
3794else
3795 ac_cv_header_stdc=no
3796fi
3797rm -f conftest*
3798
3799fi
3800
3801if test $ac_cv_header_stdc = yes; then
3802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3803 if test "$cross_compiling" = yes; then :
3804 :
3805else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h. */
3808#include <ctype.h>
3809#include <stdlib.h>
3810#if ((' ' & 0x0FF) == 0x020)
3811# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3812# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3813#else
3814# define ISLOWER(c) \
3815 (('a' <= (c) && (c) <= 'i') \
3816 || ('j' <= (c) && (c) <= 'r') \
3817 || ('s' <= (c) && (c) <= 'z'))
3818# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3819#endif
3820
3821#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3822int
3823main ()
3824{
3825 int i;
3826 for (i = 0; i < 256; i++)
3827 if (XOR (islower (i), ISLOWER (i))
3828 || toupper (i) != TOUPPER (i))
3829 return 2;
3830 return 0;
3831}
3832_ACEOF
3833if ac_fn_c_try_run "$LINENO"; then :
3834
3835else
3836 ac_cv_header_stdc=no
3837fi
3838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3839 conftest.$ac_objext conftest.beam conftest.$ac_ext
3840fi
3841
3842fi
3843fi
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3845$as_echo "$ac_cv_header_stdc" >&6; }
3846if test $ac_cv_header_stdc = yes; then
3847
3848$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3849
3850fi
3851
3852# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3853for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3854 inttypes.h stdint.h unistd.h
3855do :
3856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3857ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3858"
3859if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3860 cat >>confdefs.h <<_ACEOF
3861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3862_ACEOF
3863
3864fi
3865
3866done
3867
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3870$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3871if ${ac_cv_c_bigendian+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873else
3874 ac_cv_c_bigendian=unknown
3875 # See if we're dealing with a universal compiler.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h. */
3878#ifndef __APPLE_CC__
3879 not a universal capable compiler
3880 #endif
3881 typedef int dummy;
3882
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885
3886 # Check for potential -arch flags. It is not universal unless
3887 # there are at least two -arch flags with different values.
3888 ac_arch=
3889 ac_prev=
3890 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3891 if test -n "$ac_prev"; then
3892 case $ac_word in
3893 i?86 | x86_64 | ppc | ppc64)
3894 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3895 ac_arch=$ac_word
3896 else
3897 ac_cv_c_bigendian=universal
3898 break
3899 fi
3900 ;;
3901 esac
3902 ac_prev=
3903 elif test "x$ac_word" = "x-arch"; then
3904 ac_prev=arch
3905 fi
3906 done
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 if test $ac_cv_c_bigendian = unknown; then
3910 # See if sys/param.h defines the BYTE_ORDER macro.
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912/* end confdefs.h. */
3913#include <sys/types.h>
3914 #include <sys/param.h>
3915
3916int
3917main ()
3918{
3919#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3920 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3921 && LITTLE_ENDIAN)
3922 bogus endian macros
3923 #endif
3924
3925 ;
3926 return 0;
3927}
3928_ACEOF
3929if ac_fn_c_try_compile "$LINENO"; then :
3930 # It does; now see whether it defined to BIG_ENDIAN or not.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932/* end confdefs.h. */
3933#include <sys/types.h>
3934 #include <sys/param.h>
3935
3936int
3937main ()
3938{
3939#if BYTE_ORDER != BIG_ENDIAN
3940 not big endian
3941 #endif
3942
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_c_bigendian=yes
3949else
3950 ac_cv_c_bigendian=no
3951fi
3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953fi
3954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 fi
3956 if test $ac_cv_c_bigendian = unknown; then
3957 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h. */
3960#include <limits.h>
3961
3962int
3963main ()
3964{
3965#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3966 bogus endian macros
3967 #endif
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973if ac_fn_c_try_compile "$LINENO"; then :
3974 # It does; now see whether it defined to _BIG_ENDIAN or not.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h. */
3977#include <limits.h>
3978
3979int
3980main ()
3981{
3982#ifndef _BIG_ENDIAN
3983 not big endian
3984 #endif
3985
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_cv_c_bigendian=yes
3992else
3993 ac_cv_c_bigendian=no
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996fi
3997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 fi
3999 if test $ac_cv_c_bigendian = unknown; then
4000 # Compile a test program.
4001 if test "$cross_compiling" = yes; then :
4002 # Try to guess by grepping values from an object file.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004/* end confdefs.h. */
4005short int ascii_mm[] =
4006 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4007 short int ascii_ii[] =
4008 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4009 int use_ascii (int i) {
4010 return ascii_mm[i] + ascii_ii[i];
4011 }
4012 short int ebcdic_ii[] =
4013 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4014 short int ebcdic_mm[] =
4015 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4016 int use_ebcdic (int i) {
4017 return ebcdic_mm[i] + ebcdic_ii[i];
4018 }
4019 extern int foo;
4020
4021int
4022main ()
4023{
4024return use_ascii (foo) == use_ebcdic (foo);
4025 ;
4026 return 0;
4027}
4028_ACEOF
4029if ac_fn_c_try_compile "$LINENO"; then :
4030 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4031 ac_cv_c_bigendian=yes
4032 fi
4033 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4034 if test "$ac_cv_c_bigendian" = unknown; then
4035 ac_cv_c_bigendian=no
4036 else
4037 # finding both strings is unlikely to happen, but who knows?
4038 ac_cv_c_bigendian=unknown
4039 fi
4040 fi
4041fi
4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h. */
4046$ac_includes_default
4047int
4048main ()
4049{
4050
4051 /* Are we little or big endian? From Harbison&Steele. */
4052 union
4053 {
4054 long int l;
4055 char c[sizeof (long int)];
4056 } u;
4057 u.l = 1;
4058 return u.c[sizeof (long int) - 1] == 1;
4059
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064if ac_fn_c_try_run "$LINENO"; then :
4065 ac_cv_c_bigendian=no
4066else
4067 ac_cv_c_bigendian=yes
4068fi
4069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4070 conftest.$ac_objext conftest.beam conftest.$ac_ext
4071fi
4072
4073 fi
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4076$as_echo "$ac_cv_c_bigendian" >&6; }
4077 case $ac_cv_c_bigendian in #(
4078 yes)
4079 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4080;; #(
4081 no)
4082 ;; #(
4083 universal)
4084
4085$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4086
4087 ;; #(
4088 *)
4089 as_fn_error $? "unknown endianness
4090 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4091 esac
4092
4093
4094# Checks for programs.
4095for ac_prog in gawk mawk nawk awk
4096do
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098set dummy $ac_prog; ac_word=$2
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if ${ac_cv_prog_AWK+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103else
4104 if test -n "$AWK"; then
4105 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4106else
4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_AWK="$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118done
4119 done
4120IFS=$as_save_IFS
4121
4122fi
4123fi
4124AWK=$ac_cv_prog_AWK
4125if test -n "$AWK"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4127$as_echo "$AWK" >&6; }
4128else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130$as_echo "no" >&6; }
4131fi
4132
4133
4134 test -n "$AWK" && break
4135done
4136
4137ac_ext=c
4138ac_cpp='$CPP $CPPFLAGS'
4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4143$as_echo_n "checking how to run the C preprocessor... " >&6; }
4144# On Suns, sometimes $CPP names a directory.
4145if test -n "$CPP" && test -d "$CPP"; then
4146 CPP=
4147fi
4148if test -z "$CPP"; then
4149 if ${ac_cv_prog_CPP+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151else
4152 # Double quotes because CPP needs to be expanded
4153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4154 do
4155 ac_preproc_ok=false
4156for ac_c_preproc_warn_flag in '' yes
4157do
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h. */
4166#ifdef __STDC__
4167# include <limits.h>
4168#else
4169# include <assert.h>
4170#endif
4171 Syntax error
4172_ACEOF
4173if ac_fn_c_try_cpp "$LINENO"; then :
4174
4175else
4176 # Broken: fails on valid input.
4177continue
4178fi
4179rm -f conftest.err conftest.i conftest.$ac_ext
4180
4181 # OK, works on sane cases. Now check whether nonexistent headers
4182 # can be detected and how.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h. */
4185#include <ac_nonexistent.h>
4186_ACEOF
4187if ac_fn_c_try_cpp "$LINENO"; then :
4188 # Broken: success on invalid input.
4189continue
4190else
4191 # Passes both tests.
4192ac_preproc_ok=:
4193break
4194fi
4195rm -f conftest.err conftest.i conftest.$ac_ext
4196
4197done
4198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199rm -f conftest.i conftest.err conftest.$ac_ext
4200if $ac_preproc_ok; then :
4201 break
4202fi
4203
4204 done
4205 ac_cv_prog_CPP=$CPP
4206
4207fi
4208 CPP=$ac_cv_prog_CPP
4209else
4210 ac_cv_prog_CPP=$CPP
4211fi
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4213$as_echo "$CPP" >&6; }
4214ac_preproc_ok=false
4215for ac_c_preproc_warn_flag in '' yes
4216do
4217 # Use a header file that comes with gcc, so configuring glibc
4218 # with a fresh cross-compiler works.
4219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220 # <limits.h> exists even on freestanding compilers.
4221 # On the NeXT, cc -E runs the code through the compiler's parser,
4222 # not just through cpp. "Syntax error" is here to catch this case.
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h. */
4225#ifdef __STDC__
4226# include <limits.h>
4227#else
4228# include <assert.h>
4229#endif
4230 Syntax error
4231_ACEOF
4232if ac_fn_c_try_cpp "$LINENO"; then :
4233
4234else
4235 # Broken: fails on valid input.
4236continue
4237fi
4238rm -f conftest.err conftest.i conftest.$ac_ext
4239
4240 # OK, works on sane cases. Now check whether nonexistent headers
4241 # can be detected and how.
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243/* end confdefs.h. */
4244#include <ac_nonexistent.h>
4245_ACEOF
4246if ac_fn_c_try_cpp "$LINENO"; then :
4247 # Broken: success on invalid input.
4248continue
4249else
4250 # Passes both tests.
4251ac_preproc_ok=:
4252break
4253fi
4254rm -f conftest.err conftest.i conftest.$ac_ext
4255
4256done
4257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258rm -f conftest.i conftest.err conftest.$ac_ext
4259if $ac_preproc_ok; then :
4260
4261else
4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4265See \`config.log' for more details" "$LINENO" 5; }
4266fi
4267
4268ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4276set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278$as_echo_n "checking for $ac_word... " >&6; }
4279if ${ac_cv_prog_RANLIB+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281else
4282 if test -n "$RANLIB"; then
4283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4284else
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296done
4297 done
4298IFS=$as_save_IFS
4299
4300fi
4301fi
4302RANLIB=$ac_cv_prog_RANLIB
4303if test -n "$RANLIB"; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4305$as_echo "$RANLIB" >&6; }
4306else
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308$as_echo "no" >&6; }
4309fi
4310
4311
4312fi
4313if test -z "$ac_cv_prog_RANLIB"; then
4314 ac_ct_RANLIB=$RANLIB
4315 # Extract the first word of "ranlib", so it can be a program name with args.
4316set dummy ranlib; ac_word=$2
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318$as_echo_n "checking for $ac_word... " >&6; }
4319if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321else
4322 if test -n "$ac_ct_RANLIB"; then
4323 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_ac_ct_RANLIB="ranlib"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336done
4337 done
4338IFS=$as_save_IFS
4339
4340fi
4341fi
4342ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4343if test -n "$ac_ct_RANLIB"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4345$as_echo "$ac_ct_RANLIB" >&6; }
4346else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
4349fi
4350
4351 if test "x$ac_ct_RANLIB" = x; then
4352 RANLIB=":"
4353 else
4354 case $cross_compiling:$ac_tool_warned in
4355yes:)
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4358ac_tool_warned=yes ;;
4359esac
4360 RANLIB=$ac_ct_RANLIB
4361 fi
4362else
4363 RANLIB="$ac_cv_prog_RANLIB"
4364fi
4365
4366# Find a good install program. We prefer a C program (faster),
4367# so one script is as good as another. But avoid the broken or
4368# incompatible versions:
4369# SysV /etc/install, /usr/sbin/install
4370# SunOS /usr/etc/install
4371# IRIX /sbin/install
4372# AIX /bin/install
4373# AmigaOS /C/install, which installs bootblocks on floppy discs
4374# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4375# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4376# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4377# OS/2's system install, which has a completely different semantic
4378# ./install, which can be erroneously created by make from ./install.sh.
4379# Reject install programs that cannot install multiple files.
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4381$as_echo_n "checking for a BSD-compatible install... " >&6; }
4382if test -z "$INSTALL"; then
4383if ${ac_cv_path_install+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 # Account for people who put trailing slashes in PATH elements.
4392case $as_dir/ in #((
4393 ./ | .// | /[cC]/* | \
4394 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4395 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4396 /usr/ucb/* ) ;;
4397 *)
4398 # OSF1 and SCO ODT 3.0 have their own names for install.
4399 # Don't use installbsd from OSF since it installs stuff as root
4400 # by default.
4401 for ac_prog in ginstall scoinst install; do
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4404 if test $ac_prog = install &&
4405 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4406 # AIX install. It has an incompatible calling convention.
4407 :
4408 elif test $ac_prog = install &&
4409 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4410 # program-specific install script used by HP pwplus--don't use.
4411 :
4412 else
4413 rm -rf conftest.one conftest.two conftest.dir
4414 echo one > conftest.one
4415 echo two > conftest.two
4416 mkdir conftest.dir
4417 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4418 test -s conftest.one && test -s conftest.two &&
4419 test -s conftest.dir/conftest.one &&
4420 test -s conftest.dir/conftest.two
4421 then
4422 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4423 break 3
4424 fi
4425 fi
4426 fi
4427 done
4428 done
4429 ;;
4430esac
4431
4432 done
4433IFS=$as_save_IFS
4434
4435rm -rf conftest.one conftest.two conftest.dir
4436
4437fi
4438 if test "${ac_cv_path_install+set}" = set; then
4439 INSTALL=$ac_cv_path_install
4440 else
4441 # As a last resort, use the slow shell script. Don't cache a
4442 # value for INSTALL within a source directory, because that will
4443 # break other packages using the cache if that directory is
4444 # removed, or if the value is a relative name.
4445 INSTALL=$ac_install_sh
4446 fi
4447fi
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4449$as_echo "$INSTALL" >&6; }
4450
4451# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4452# It thinks the first close brace ends the variable substitution.
4453test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4454
4455test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4456
4457test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4458
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4460$as_echo_n "checking for egrep... " >&6; }
4461if ${ac_cv_path_EGREP+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463else
4464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4465 then ac_cv_path_EGREP="$GREP -E"
4466 else
4467 if test -z "$EGREP"; then
4468 ac_path_EGREP_found=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_prog in egrep; do
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4479# Check for GNU ac_path_EGREP and select it if it is found.
4480 # Check for GNU $ac_path_EGREP
4481case `"$ac_path_EGREP" --version 2>&1` in
4482*GNU*)
4483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4484*)
4485 ac_count=0
4486 $as_echo_n 0123456789 >"conftest.in"
4487 while :
4488 do
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 $as_echo 'EGREP' >> "conftest.nl"
4493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4495 as_fn_arith $ac_count + 1 && ac_count=$as_val
4496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_EGREP="$ac_path_EGREP"
4499 ac_path_EGREP_max=$ac_count
4500 fi
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4503 done
4504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4505esac
4506
4507 $ac_path_EGREP_found && break 3
4508 done
4509 done
4510 done
4511IFS=$as_save_IFS
4512 if test -z "$ac_cv_path_EGREP"; then
4513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4514 fi
4515else
4516 ac_cv_path_EGREP=$EGREP
4517fi
4518
4519 fi
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4522$as_echo "$ac_cv_path_EGREP" >&6; }
4523 EGREP="$ac_cv_path_EGREP"
4524
4525
4526# Extract the first word of "ar", so it can be a program name with args.
4527set dummy ar; ac_word=$2
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529$as_echo_n "checking for $ac_word... " >&6; }
4530if ${ac_cv_path_AR+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532else
4533 case $AR in
4534 [\\/]* | ?:[\\/]*)
4535 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4536 ;;
4537 *)
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549done
4550 done
4551IFS=$as_save_IFS
4552
4553 ;;
4554esac
4555fi
4556AR=$ac_cv_path_AR
4557if test -n "$AR"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4559$as_echo "$AR" >&6; }
4560else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562$as_echo "no" >&6; }
4563fi
4564
4565
4566# Extract the first word of "cat", so it can be a program name with args.
4567set dummy cat; ac_word=$2
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
4570if ${ac_cv_path_CAT+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572else
4573 case $CAT in
4574 [\\/]* | ?:[\\/]*)
4575 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4576 ;;
4577 *)
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590 done
4591IFS=$as_save_IFS
4592
4593 ;;
4594esac
4595fi
4596CAT=$ac_cv_path_CAT
4597if test -n "$CAT"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4599$as_echo "$CAT" >&6; }
4600else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602$as_echo "no" >&6; }
4603fi
4604
4605
4606# Extract the first word of "kill", so it can be a program name with args.
4607set dummy kill; ac_word=$2
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609$as_echo_n "checking for $ac_word... " >&6; }
4610if ${ac_cv_path_KILL+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612else
4613 case $KILL in
4614 [\\/]* | ?:[\\/]*)
4615 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4616 ;;
4617 *)
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629done
4630 done
4631IFS=$as_save_IFS
4632
4633 ;;
4634esac
4635fi
4636KILL=$ac_cv_path_KILL
4637if test -n "$KILL"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4639$as_echo "$KILL" >&6; }
4640else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642$as_echo "no" >&6; }
4643fi
4644
4645
4646for ac_prog in perl5 perl
4647do
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649set dummy $ac_prog; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if ${ac_cv_path_PERL+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654else
4655 case $PERL in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_PERL="$PERL" # 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_PERL="$as_dir/$ac_word$ac_exec_ext"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672 done
4673IFS=$as_save_IFS
4674
4675 ;;
4676esac
4677fi
4678PERL=$ac_cv_path_PERL
4679if test -n "$PERL"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4681$as_echo "$PERL" >&6; }
4682else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
4686
4687
4688 test -n "$PERL" && break
4689done
4690
4691# Extract the first word of "sed", so it can be a program name with args.
4692set dummy sed; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if ${ac_cv_path_SED+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697else
4698 case $SED in
4699 [\\/]* | ?:[\\/]*)
4700 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4701 ;;
4702 *)
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714done
4715 done
4716IFS=$as_save_IFS
4717
4718 ;;
4719esac
4720fi
4721SED=$ac_cv_path_SED
4722if test -n "$SED"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4724$as_echo "$SED" >&6; }
4725else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727$as_echo "no" >&6; }
4728fi
4729
4730
4731
4732# Extract the first word of "ent", so it can be a program name with args.
4733set dummy ent; ac_word=$2
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735$as_echo_n "checking for $ac_word... " >&6; }
4736if ${ac_cv_path_ENT+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738else
4739 case $ENT in
4740 [\\/]* | ?:[\\/]*)
4741 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4742 ;;
4743 *)
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755done
4756 done
4757IFS=$as_save_IFS
4758
4759 ;;
4760esac
4761fi
4762ENT=$ac_cv_path_ENT
4763if test -n "$ENT"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4765$as_echo "$ENT" >&6; }
4766else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
4769fi
4770
4771
4772
4773# Extract the first word of "bash", so it can be a program name with args.
4774set dummy bash; ac_word=$2
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776$as_echo_n "checking for $ac_word... " >&6; }
4777if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779else
4780 case $TEST_MINUS_S_SH in
4781 [\\/]* | ?:[\\/]*)
4782 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4783 ;;
4784 *)
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796done
4797 done
4798IFS=$as_save_IFS
4799
4800 ;;
4801esac
4802fi
4803TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4804if test -n "$TEST_MINUS_S_SH"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4806$as_echo "$TEST_MINUS_S_SH" >&6; }
4807else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809$as_echo "no" >&6; }
4810fi
4811
4812
4813# Extract the first word of "ksh", so it can be a program name with args.
4814set dummy ksh; ac_word=$2
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
4817if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819else
4820 case $TEST_MINUS_S_SH in
4821 [\\/]* | ?:[\\/]*)
4822 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4823 ;;
4824 *)
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837 done
4838IFS=$as_save_IFS
4839
4840 ;;
4841esac
4842fi
4843TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4844if test -n "$TEST_MINUS_S_SH"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4846$as_echo "$TEST_MINUS_S_SH" >&6; }
4847else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849$as_echo "no" >&6; }
4850fi
4851
4852
4853# Extract the first word of "sh", so it can be a program name with args.
4854set dummy sh; ac_word=$2
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856$as_echo_n "checking for $ac_word... " >&6; }
4857if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859else
4860 case $TEST_MINUS_S_SH in
4861 [\\/]* | ?:[\\/]*)
4862 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4863 ;;
4864 *)
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876done
4877 done
4878IFS=$as_save_IFS
4879
4880 ;;
4881esac
4882fi
4883TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4884if test -n "$TEST_MINUS_S_SH"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4886$as_echo "$TEST_MINUS_S_SH" >&6; }
4887else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
4890fi
4891
4892
4893# Extract the first word of "sh", so it can be a program name with args.
4894set dummy sh; ac_word=$2
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896$as_echo_n "checking for $ac_word... " >&6; }
4897if ${ac_cv_path_SH+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899else
4900 case $SH in
4901 [\\/]* | ?:[\\/]*)
4902 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4903 ;;
4904 *)
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916done
4917 done
4918IFS=$as_save_IFS
4919
4920 ;;
4921esac
4922fi
4923SH=$ac_cv_path_SH
4924if test -n "$SH"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4926$as_echo "$SH" >&6; }
4927else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929$as_echo "no" >&6; }
4930fi
4931
4932
4933# Extract the first word of "groff", so it can be a program name with args.
4934set dummy groff; ac_word=$2
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936$as_echo_n "checking for $ac_word... " >&6; }
4937if ${ac_cv_path_GROFF+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939else
4940 case $GROFF in
4941 [\\/]* | ?:[\\/]*)
4942 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4943 ;;
4944 *)
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956done
4957 done
4958IFS=$as_save_IFS
4959
4960 ;;
4961esac
4962fi
4963GROFF=$ac_cv_path_GROFF
4964if test -n "$GROFF"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4966$as_echo "$GROFF" >&6; }
4967else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969$as_echo "no" >&6; }
4970fi
4971
4972
4973# Extract the first word of "nroff", so it can be a program name with args.
4974set dummy nroff; ac_word=$2
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976$as_echo_n "checking for $ac_word... " >&6; }
4977if ${ac_cv_path_NROFF+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979else
4980 case $NROFF in
4981 [\\/]* | ?:[\\/]*)
4982 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4983 ;;
4984 *)
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997 done
4998IFS=$as_save_IFS
4999
5000 ;;
5001esac
5002fi
5003NROFF=$ac_cv_path_NROFF
5004if test -n "$NROFF"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5006$as_echo "$NROFF" >&6; }
5007else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
5010fi
5011
5012
5013# Extract the first word of "mandoc", so it can be a program name with args.
5014set dummy mandoc; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_path_MANDOC+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019else
5020 case $MANDOC in
5021 [\\/]* | ?:[\\/]*)
5022 ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5023 ;;
5024 *)
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026for as_dir in $PATH
5027do
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036done
5037 done
5038IFS=$as_save_IFS
5039
5040 ;;
5041esac
5042fi
5043MANDOC=$ac_cv_path_MANDOC
5044if test -n "$MANDOC"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5046$as_echo "$MANDOC" >&6; }
5047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
5050fi
5051
5052
5053TEST_SHELL=sh
5054
5055
5056if test "x$MANDOC" != "x" ; then
5057 MANFMT="$MANDOC"
5058elif test "x$NROFF" != "x" ; then
5059 MANFMT="$NROFF -mandoc"
5060elif test "x$GROFF" != "x" ; then
5061 MANFMT="$GROFF -mandoc -Tascii"
5062else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5064$as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5065 MANFMT="false"
5066fi
5067
5068
5069# Extract the first word of "groupadd", so it can be a program name with args.
5070set dummy groupadd; ac_word=$2
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072$as_echo_n "checking for $ac_word... " >&6; }
5073if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075else
5076 case $PATH_GROUPADD_PROG in
5077 [\\/]* | ?:[\\/]*)
5078 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5079 ;;
5080 *)
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5083do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092done
5093 done
5094IFS=$as_save_IFS
5095
5096 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5097 ;;
5098esac
5099fi
5100PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5101if test -n "$PATH_GROUPADD_PROG"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5103$as_echo "$PATH_GROUPADD_PROG" >&6; }
5104else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106$as_echo "no" >&6; }
5107fi
5108
5109
5110# Extract the first word of "useradd", so it can be a program name with args.
5111set dummy useradd; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 case $PATH_USERADD_PROG in
5118 [\\/]* | ?:[\\/]*)
5119 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5120 ;;
5121 *)
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133done
5134 done
5135IFS=$as_save_IFS
5136
5137 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5138 ;;
5139esac
5140fi
5141PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5142if test -n "$PATH_USERADD_PROG"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5144$as_echo "$PATH_USERADD_PROG" >&6; }
5145else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
5148fi
5149
5150
5151# Extract the first word of "pkgmk", so it can be a program name with args.
5152set dummy pkgmk; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
5155if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157else
5158 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5159 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172done
5173 done
5174IFS=$as_save_IFS
5175
5176 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5177fi
5178fi
5179MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5180if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5182$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5183else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
5186fi
5187
5188
5189if test -x /sbin/sh; then
5190 STARTUP_SCRIPT_SHELL=/sbin/sh
5191
5192else
5193 STARTUP_SCRIPT_SHELL=/bin/sh
5194
5195fi
5196
5197# System features
5198# Check whether --enable-largefile was given.
5199if test "${enable_largefile+set}" = set; then :
5200 enableval=$enable_largefile;
5201fi
5202
5203if test "$enable_largefile" != no; then
5204
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5206$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5207if ${ac_cv_sys_largefile_CC+:} false; then :
5208 $as_echo_n "(cached) " >&6
5209else
5210 ac_cv_sys_largefile_CC=no
5211 if test "$GCC" != yes; then
5212 ac_save_CC=$CC
5213 while :; do
5214 # IRIX 6.2 and later do not support large files by default,
5215 # so use the C compiler's -n32 option if that helps.
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217/* end confdefs.h. */
5218#include <sys/types.h>
5219 /* Check that off_t can represent 2**63 - 1 correctly.
5220 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5221 since some C++ compilers masquerading as C compilers
5222 incorrectly reject 9223372036854775807. */
5223#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5225 && LARGE_OFF_T % 2147483647 == 1)
5226 ? 1 : -1];
5227int
5228main ()
5229{
5230
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 break
5237fi
5238rm -f core conftest.err conftest.$ac_objext
5239 CC="$CC -n32"
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 ac_cv_sys_largefile_CC=' -n32'; break
5242fi
5243rm -f core conftest.err conftest.$ac_objext
5244 break
5245 done
5246 CC=$ac_save_CC
5247 rm -f conftest.$ac_ext
5248 fi
5249fi
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5251$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5252 if test "$ac_cv_sys_largefile_CC" != no; then
5253 CC=$CC$ac_cv_sys_largefile_CC
5254 fi
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5257$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5258if ${ac_cv_sys_file_offset_bits+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260else
5261 while :; do
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h. */
5264#include <sys/types.h>
5265 /* Check that off_t can represent 2**63 - 1 correctly.
5266 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5267 since some C++ compilers masquerading as C compilers
5268 incorrectly reject 9223372036854775807. */
5269#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5271 && LARGE_OFF_T % 2147483647 == 1)
5272 ? 1 : -1];
5273int
5274main ()
5275{
5276
5277 ;
5278 return 0;
5279}
5280_ACEOF
5281if ac_fn_c_try_compile "$LINENO"; then :
5282 ac_cv_sys_file_offset_bits=no; break
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h. */
5287#define _FILE_OFFSET_BITS 64
5288#include <sys/types.h>
5289 /* Check that off_t can represent 2**63 - 1 correctly.
5290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5291 since some C++ compilers masquerading as C compilers
5292 incorrectly reject 9223372036854775807. */
5293#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5295 && LARGE_OFF_T % 2147483647 == 1)
5296 ? 1 : -1];
5297int
5298main ()
5299{
5300
5301 ;
5302 return 0;
5303}
5304_ACEOF
5305if ac_fn_c_try_compile "$LINENO"; then :
5306 ac_cv_sys_file_offset_bits=64; break
5307fi
5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 ac_cv_sys_file_offset_bits=unknown
5310 break
5311done
5312fi
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5314$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5315case $ac_cv_sys_file_offset_bits in #(
5316 no | unknown) ;;
5317 *)
5318cat >>confdefs.h <<_ACEOF
5319#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5320_ACEOF
5321;;
5322esac
5323rm -rf conftest*
5324 if test $ac_cv_sys_file_offset_bits = unknown; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5326$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5327if ${ac_cv_sys_large_files+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 while :; do
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h. */
5333#include <sys/types.h>
5334 /* Check that off_t can represent 2**63 - 1 correctly.
5335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5336 since some C++ compilers masquerading as C compilers
5337 incorrectly reject 9223372036854775807. */
5338#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5340 && LARGE_OFF_T % 2147483647 == 1)
5341 ? 1 : -1];
5342int
5343main ()
5344{
5345
5346 ;
5347 return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_sys_large_files=no; break
5352fi
5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356#define _LARGE_FILES 1
5357#include <sys/types.h>
5358 /* Check that off_t can represent 2**63 - 1 correctly.
5359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5360 since some C++ compilers masquerading as C compilers
5361 incorrectly reject 9223372036854775807. */
5362#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5364 && LARGE_OFF_T % 2147483647 == 1)
5365 ? 1 : -1];
5366int
5367main ()
5368{
5369
5370 ;
5371 return 0;
5372}
5373_ACEOF
5374if ac_fn_c_try_compile "$LINENO"; then :
5375 ac_cv_sys_large_files=1; break
5376fi
5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 ac_cv_sys_large_files=unknown
5379 break
5380done
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5383$as_echo "$ac_cv_sys_large_files" >&6; }
5384case $ac_cv_sys_large_files in #(
5385 no | unknown) ;;
5386 *)
5387cat >>confdefs.h <<_ACEOF
5388#define _LARGE_FILES $ac_cv_sys_large_files
5389_ACEOF
5390;;
5391esac
5392rm -rf conftest*
5393 fi
5394fi
5395
5396
5397if test -z "$AR" ; then
5398 as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5399fi
5400
5401# Use LOGIN_PROGRAM from environment if possible
5402if test ! -z "$LOGIN_PROGRAM" ; then
5403
5404cat >>confdefs.h <<_ACEOF
5405#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5406_ACEOF
5407
5408else
5409 # Search for login
5410 # Extract the first word of "login", so it can be a program name with args.
5411set dummy login; ac_word=$2
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
5414if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416else
5417 case $LOGIN_PROGRAM_FALLBACK in
5418 [\\/]* | ?:[\\/]*)
5419 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5420 ;;
5421 *)
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433done
5434 done
5435IFS=$as_save_IFS
5436
5437 ;;
5438esac
5439fi
5440LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5441if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5443$as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5444else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446$as_echo "no" >&6; }
5447fi
5448
5449
5450 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5451 cat >>confdefs.h <<_ACEOF
5452#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5453_ACEOF
5454
5455 fi
5456fi
5457
5458# Extract the first word of "passwd", so it can be a program name with args.
5459set dummy passwd; ac_word=$2
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461$as_echo_n "checking for $ac_word... " >&6; }
5462if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464else
5465 case $PATH_PASSWD_PROG in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5468 ;;
5469 *)
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482 done
5483IFS=$as_save_IFS
5484
5485 ;;
5486esac
5487fi
5488PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5489if test -n "$PATH_PASSWD_PROG"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5491$as_echo "$PATH_PASSWD_PROG" >&6; }
5492else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494$as_echo "no" >&6; }
5495fi
5496
5497
5498if test ! -z "$PATH_PASSWD_PROG" ; then
5499
5500cat >>confdefs.h <<_ACEOF
5501#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5502_ACEOF
5503
5504fi
5505
5506if test -z "$LD" ; then
5507 LD=$CC
5508fi
5509
5510
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5512$as_echo_n "checking for inline... " >&6; }
5513if ${ac_cv_c_inline+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515else
5516 ac_cv_c_inline=no
5517for ac_kw in inline __inline__ __inline; do
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h. */
5520#ifndef __cplusplus
5521typedef int foo_t;
5522static $ac_kw foo_t static_foo () {return 0; }
5523$ac_kw foo_t foo () {return 0; }
5524#endif
5525
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528 ac_cv_c_inline=$ac_kw
5529fi
5530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 test "$ac_cv_c_inline" != no && break
5532done
5533
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5536$as_echo "$ac_cv_c_inline" >&6; }
5537
5538case $ac_cv_c_inline in
5539 inline | yes) ;;
5540 *)
5541 case $ac_cv_c_inline in
5542 no) ac_val=;;
5543 *) ac_val=$ac_cv_c_inline;;
5544 esac
5545 cat >>confdefs.h <<_ACEOF
5546#ifndef __cplusplus
5547#define inline $ac_val
5548#endif
5549_ACEOF
5550 ;;
5551esac
5552
5553
5554ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5555"
5556if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5557 have_llong_max=1
5558fi
5559
5560ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5561 #include <sys/types.h>
5562 #include <sys/param.h>
5563 #include <dev/systrace.h>
5564
5565"
5566if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5567 have_systr_policy_kill=1
5568fi
5569
5570ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5571 #include <sys/types.h>
5572 #include <sys/resource.h>
5573
5574"
5575if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5576
5577$as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5578
5579fi
5580
5581ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" "
5582 #include <sys/types.h>
5583 #include <linux/prctl.h>
5584
5585"
5586if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then :
5587 have_linux_no_new_privs=1
5588fi
5589
5590if test "x$have_linux_no_new_privs" = "x1" ; then
5591ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" "
5592 #include <sys/types.h>
5593 #include <linux/seccomp.h>
5594
5595"
5596if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then :
5597 have_seccomp_filter=1
5598fi
5599
5600fi
5601if test "x$have_seccomp_filter" = "x1" ; then
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5
5603$as_echo_n "checking kernel for seccomp_filter support... " >&6; }
5604if test "$cross_compiling" = yes; then :
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
5606$as_echo "cross-compiling, assuming yes" >&6; }
5607
5608else
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610/* end confdefs.h. */
5611
5612 #include <errno.h>
5613 #include <linux/seccomp.h>
5614 #include <stdlib.h>
5615 #include <sys/prctl.h>
5616
5617int
5618main ()
5619{
5620 errno = 0;
5621 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
5622 exit(errno == EFAULT ? 0 : 1);
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_run "$LINENO"; then :
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5629$as_echo "yes" >&6; }
5630else
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633$as_echo "no" >&6; }
5634 # Disable seccomp filter as a target
5635 have_seccomp_filter=0
5636
5637fi
5638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5639 conftest.$ac_objext conftest.beam conftest.$ac_ext
5640fi
5641
5642fi
5643
5644use_stack_protector=1
5645
5646# Check whether --with-stackprotect was given.
5647if test "${with_stackprotect+set}" = set; then :
5648 withval=$with_stackprotect;
5649 if test "x$withval" = "xno"; then
5650 use_stack_protector=0
5651 fi
5652fi
5653
5654
5655
5656if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5657 {
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5659$as_echo_n "checking if $CC supports -Wall... " >&6; }
5660 saved_CFLAGS="$CFLAGS"
5661 CFLAGS="$CFLAGS -Wall"
5662 _define_flag=""
5663 test "x$_define_flag" = "x" && _define_flag="-Wall"
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665/* end confdefs.h. */
5666int main(void) { return 0; }
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"; then :
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670$as_echo "yes" >&6; }
5671 CFLAGS="$saved_CFLAGS $_define_flag"
5672else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675 CFLAGS="$saved_CFLAGS"
5676
5677fi
5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679}
5680 {
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5682$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5683 saved_CFLAGS="$CFLAGS"
5684 CFLAGS="$CFLAGS -Wpointer-arith"
5685 _define_flag=""
5686 test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h. */
5689int main(void) { return 0; }
5690_ACEOF
5691if ac_fn_c_try_compile "$LINENO"; then :
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693$as_echo "yes" >&6; }
5694 CFLAGS="$saved_CFLAGS $_define_flag"
5695else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698 CFLAGS="$saved_CFLAGS"
5699
5700fi
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702}
5703 {
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5705$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5706 saved_CFLAGS="$CFLAGS"
5707 CFLAGS="$CFLAGS -Wuninitialized"
5708 _define_flag=""
5709 test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h. */
5712int main(void) { return 0; }
5713_ACEOF
5714if ac_fn_c_try_compile "$LINENO"; then :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716$as_echo "yes" >&6; }
5717 CFLAGS="$saved_CFLAGS $_define_flag"
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721 CFLAGS="$saved_CFLAGS"
5722
5723fi
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725}
5726 {
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5728$as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5729 saved_CFLAGS="$CFLAGS"
5730 CFLAGS="$CFLAGS -Wsign-compare"
5731 _define_flag=""
5732 test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h. */
5735int main(void) { return 0; }
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739$as_echo "yes" >&6; }
5740 CFLAGS="$saved_CFLAGS $_define_flag"
5741else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }
5744 CFLAGS="$saved_CFLAGS"
5745
5746fi
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748}
5749 {
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5751$as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5752 saved_CFLAGS="$CFLAGS"
5753 CFLAGS="$CFLAGS -Wformat-security"
5754 _define_flag=""
5755 test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h. */
5758int main(void) { return 0; }
5759_ACEOF
5760if ac_fn_c_try_compile "$LINENO"; then :
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5762$as_echo "yes" >&6; }
5763 CFLAGS="$saved_CFLAGS $_define_flag"
5764else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766$as_echo "no" >&6; }
5767 CFLAGS="$saved_CFLAGS"
5768
5769fi
5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771}
5772 {
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5774$as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5775 saved_CFLAGS="$CFLAGS"
5776 CFLAGS="$CFLAGS -Wpointer-sign"
5777 _define_flag="-Wno-pointer-sign"
5778 test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h. */
5781int main(void) { return 0; }
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"; then :
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785$as_echo "yes" >&6; }
5786 CFLAGS="$saved_CFLAGS $_define_flag"
5787else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789$as_echo "no" >&6; }
5790 CFLAGS="$saved_CFLAGS"
5791
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794}
5795 {
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5797$as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5798 saved_CFLAGS="$CFLAGS"
5799 CFLAGS="$CFLAGS -Wunused-result"
5800 _define_flag="-Wno-unused-result"
5801 test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h. */
5804int main(void) { return 0; }
5805_ACEOF
5806if ac_fn_c_try_compile "$LINENO"; then :
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5808$as_echo "yes" >&6; }
5809 CFLAGS="$saved_CFLAGS $_define_flag"
5810else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812$as_echo "no" >&6; }
5813 CFLAGS="$saved_CFLAGS"
5814
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817}
5818 {
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5820$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5821 saved_CFLAGS="$CFLAGS"
5822 CFLAGS="$CFLAGS -fno-strict-aliasing"
5823 _define_flag=""
5824 test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h. */
5827int main(void) { return 0; }
5828_ACEOF
5829if ac_fn_c_try_compile "$LINENO"; then :
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5831$as_echo "yes" >&6; }
5832 CFLAGS="$saved_CFLAGS $_define_flag"
5833else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835$as_echo "no" >&6; }
5836 CFLAGS="$saved_CFLAGS"
5837
5838fi
5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840}
5841 {
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -D_FORTIFY_SOURCE=2" >&5
5843$as_echo_n "checking if $CC supports -D_FORTIFY_SOURCE=2... " >&6; }
5844 saved_CFLAGS="$CFLAGS"
5845 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
5846 _define_flag=""
5847 test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h. */
5850int main(void) { return 0; }
5851_ACEOF
5852if ac_fn_c_try_compile "$LINENO"; then :
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5854$as_echo "yes" >&6; }
5855 CFLAGS="$saved_CFLAGS $_define_flag"
5856else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858$as_echo "no" >&6; }
5859 CFLAGS="$saved_CFLAGS"
5860
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863}
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5865$as_echo_n "checking gcc version... " >&6; }
5866 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5867 case $GCC_VER in
5868 1.*) no_attrib_nonnull=1 ;;
5869 2.8* | 2.9*)
5870 no_attrib_nonnull=1
5871 ;;
5872 2.*) no_attrib_nonnull=1 ;;
5873 *) ;;
5874 esac
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5876$as_echo "$GCC_VER" >&6; }
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5879$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5880 saved_CFLAGS="$CFLAGS"
5881 CFLAGS="$CFLAGS -fno-builtin-memset"
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h. */
5884 #include <string.h>
5885int
5886main ()
5887{
5888 char b[10]; memset(b, 0, sizeof(b));
5889 ;
5890 return 0;
5891}
5892_ACEOF
5893if ac_fn_c_try_link "$LINENO"; then :
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895$as_echo "yes" >&6; }
5896else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898$as_echo "no" >&6; }
5899 CFLAGS="$saved_CFLAGS"
5900
5901fi
5902rm -f core conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5904
5905 # -fstack-protector-all doesn't always work for some GCC versions
5906 # and/or platforms, so we test if we can. If it's not supported
5907 # on a given platform gcc will emit a warning so we use -Werror.
5908 if test "x$use_stack_protector" = "x1"; then
5909 for t in -fstack-protector-all -fstack-protector; do
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5911$as_echo_n "checking if $CC supports $t... " >&6; }
5912 saved_CFLAGS="$CFLAGS"
5913 saved_LDFLAGS="$LDFLAGS"
5914 CFLAGS="$CFLAGS $t -Werror"
5915 LDFLAGS="$LDFLAGS $t -Werror"
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h. */
5918 #include <stdio.h>
5919int
5920main ()
5921{
5922
5923 char x[256];
5924 snprintf(x, sizeof(x), "XXX");
5925
5926 ;
5927 return 0;
5928}
5929_ACEOF
5930if ac_fn_c_try_link "$LINENO"; then :
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5932$as_echo "yes" >&6; }
5933 CFLAGS="$saved_CFLAGS $t"
5934 LDFLAGS="$saved_LDFLAGS $t"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5936$as_echo_n "checking if $t works... " >&6; }
5937 if test "$cross_compiling" = yes; then :
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5939$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5940 break
5941
5942else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945 #include <stdio.h>
5946int
5947main ()
5948{
5949
5950 char x[256];
5951 snprintf(x, sizeof(x), "XXX");
5952
5953 ;
5954 return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_run "$LINENO"; then :
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5959$as_echo "yes" >&6; }
5960 break
5961else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963$as_echo "no" >&6; }
5964fi
5965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5966 conftest.$ac_objext conftest.beam conftest.$ac_ext
5967fi
5968
5969
5970else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972$as_echo "no" >&6; }
5973
5974fi
5975rm -f core conftest.err conftest.$ac_objext \
5976 conftest$ac_exeext conftest.$ac_ext
5977 CFLAGS="$saved_CFLAGS"
5978 LDFLAGS="$saved_LDFLAGS"
5979 done
5980 fi
5981
5982 if test -z "$have_llong_max"; then
5983 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5984 unset ac_cv_have_decl_LLONG_MAX
5985 saved_CFLAGS="$CFLAGS"
5986 CFLAGS="$CFLAGS -std=gnu99"
5987 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5988
5989"
5990if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5991 have_llong_max=1
5992else
5993 CFLAGS="$saved_CFLAGS"
5994fi
5995
5996 fi
5997fi
5998
5999if test "x$no_attrib_nonnull" != "x1" ; then
6000
6001$as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
6002
6003fi
6004
6005
6006# Check whether --with-rpath was given.
6007if test "${with_rpath+set}" = set; then :
6008 withval=$with_rpath;
6009 if test "x$withval" = "xno" ; then
6010 need_dash_r=""
6011 fi
6012 if test "x$withval" = "xyes" ; then
6013 need_dash_r=1
6014 fi
6015
6016
6017fi
6018
6019
6020# Allow user to specify flags
6021
6022# Check whether --with-cflags was given.
6023if test "${with_cflags+set}" = set; then :
6024 withval=$with_cflags;
6025 if test -n "$withval" && test "x$withval" != "xno" && \
6026 test "x${withval}" != "xyes"; then
6027 CFLAGS="$CFLAGS $withval"
6028 fi
6029
6030
6031fi
6032
6033
6034# Check whether --with-cppflags was given.
6035if test "${with_cppflags+set}" = set; then :
6036 withval=$with_cppflags;
6037 if test -n "$withval" && test "x$withval" != "xno" && \
6038 test "x${withval}" != "xyes"; then
6039 CPPFLAGS="$CPPFLAGS $withval"
6040 fi
6041
6042
6043fi
6044
6045
6046# Check whether --with-ldflags was given.
6047if test "${with_ldflags+set}" = set; then :
6048 withval=$with_ldflags;
6049 if test -n "$withval" && test "x$withval" != "xno" && \
6050 test "x${withval}" != "xyes"; then
6051 LDFLAGS="$LDFLAGS $withval"
6052 fi
6053
6054
6055fi
6056
6057
6058# Check whether --with-libs was given.
6059if test "${with_libs+set}" = set; then :
6060 withval=$with_libs;
6061 if test -n "$withval" && test "x$withval" != "xno" && \
6062 test "x${withval}" != "xyes"; then
6063 LIBS="$LIBS $withval"
6064 fi
6065
6066
6067fi
6068
6069
6070# Check whether --with-Werror was given.
6071if test "${with_Werror+set}" = set; then :
6072 withval=$with_Werror;
6073 if test -n "$withval" && test "x$withval" != "xno"; then
6074 werror_flags="-Werror"
6075 if test "x${withval}" != "xyes"; then
6076 werror_flags="$withval"
6077 fi
6078 fi
6079
6080
6081fi
6082
6083
6084for ac_header in \
6085 bstring.h \
6086 crypt.h \
6087 crypto/sha2.h \
6088 dirent.h \
6089 endian.h \
6090 features.h \
6091 fcntl.h \
6092 floatingpoint.h \
6093 getopt.h \
6094 glob.h \
6095 ia.h \
6096 iaf.h \
6097 limits.h \
6098 login.h \
6099 maillock.h \
6100 ndir.h \
6101 net/if_tun.h \
6102 netdb.h \
6103 netgroup.h \
6104 pam/pam_appl.h \
6105 paths.h \
6106 poll.h \
6107 pty.h \
6108 readpassphrase.h \
6109 rpc/types.h \
6110 security/pam_appl.h \
6111 sha2.h \
6112 shadow.h \
6113 stddef.h \
6114 stdint.h \
6115 string.h \
6116 strings.h \
6117 sys/audit.h \
6118 sys/bitypes.h \
6119 sys/bsdtty.h \
6120 sys/cdefs.h \
6121 sys/dir.h \
6122 sys/mman.h \
6123 sys/ndir.h \
6124 sys/poll.h \
6125 sys/prctl.h \
6126 sys/pstat.h \
6127 sys/select.h \
6128 sys/stat.h \
6129 sys/stream.h \
6130 sys/stropts.h \
6131 sys/strtio.h \
6132 sys/statvfs.h \
6133 sys/sysmacros.h \
6134 sys/time.h \
6135 sys/timers.h \
6136 sys/un.h \
6137 time.h \
6138 tmpdir.h \
6139 ttyent.h \
6140 ucred.h \
6141 unistd.h \
6142 usersec.h \
6143 util.h \
6144 utime.h \
6145 utmp.h \
6146 utmpx.h \
6147 vis.h \
6148
6149do :
6150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6151ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6152if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6153 cat >>confdefs.h <<_ACEOF
6154#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6155_ACEOF
6156
6157fi
6158
6159done
6160
6161
6162# lastlog.h requires sys/time.h to be included first on Solaris
6163for ac_header in lastlog.h
6164do :
6165 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6166#ifdef HAVE_SYS_TIME_H
6167# include <sys/time.h>
6168#endif
6169
6170"
6171if test "x$ac_cv_header_lastlog_h" = xyes; then :
6172 cat >>confdefs.h <<_ACEOF
6173#define HAVE_LASTLOG_H 1
6174_ACEOF
6175
6176fi
6177
6178done
6179
6180
6181# sys/ptms.h requires sys/stream.h to be included first on Solaris
6182for ac_header in sys/ptms.h
6183do :
6184 ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6185#ifdef HAVE_SYS_STREAM_H
6186# include <sys/stream.h>
6187#endif
6188
6189"
6190if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192#define HAVE_SYS_PTMS_H 1
6193_ACEOF
6194
6195fi
6196
6197done
6198
6199
6200# login_cap.h requires sys/types.h on NetBSD
6201for ac_header in login_cap.h
6202do :
6203 ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6204#include <sys/types.h>
6205
6206"
6207if test "x$ac_cv_header_login_cap_h" = xyes; then :
6208 cat >>confdefs.h <<_ACEOF
6209#define HAVE_LOGIN_CAP_H 1
6210_ACEOF
6211
6212fi
6213
6214done
6215
6216
6217# older BSDs need sys/param.h before sys/mount.h
6218for ac_header in sys/mount.h
6219do :
6220 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6221#include <sys/param.h>
6222
6223"
6224if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6225 cat >>confdefs.h <<_ACEOF
6226#define HAVE_SYS_MOUNT_H 1
6227_ACEOF
6228
6229fi
6230
6231done
6232
6233
6234# Messages for features tested for in target-specific section
6235SIA_MSG="no"
6236SPC_MSG="no"
6237SP_MSG="no"
6238
6239# Check for some target-specific stuff
6240case "$host" in
6241*-*-aix*)
6242 # Some versions of VAC won't allow macro redefinitions at
6243 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6244 # particularly with older versions of vac or xlc.
6245 # It also throws errors about null macro argments, but these are
6246 # not fatal.
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6248$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250/* end confdefs.h. */
6251
6252#define testmacro foo
6253#define testmacro bar
6254int
6255main ()
6256{
6257 exit(0);
6258 ;
6259 return 0;
6260}
6261_ACEOF
6262if ac_fn_c_try_compile "$LINENO"; then :
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264$as_echo "yes" >&6; }
6265else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267$as_echo "no" >&6; }
6268 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6269 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6270 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6271 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6272
6273
6274fi
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6278$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6279 if (test -z "$blibpath"); then
6280 blibpath="/usr/lib:/lib"
6281 fi
6282 saved_LDFLAGS="$LDFLAGS"
6283 if test "$GCC" = "yes"; then
6284 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6285 else
6286 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6287 fi
6288 for tryflags in $flags ;do
6289 if (test -z "$blibflags"); then
6290 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h. */
6293
6294int
6295main ()
6296{
6297
6298 ;
6299 return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_link "$LINENO"; then :
6303 blibflags=$tryflags
6304fi
6305rm -f core conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307 fi
6308 done
6309 if (test -z "$blibflags"); then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6311$as_echo "not found" >&6; }
6312 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6315$as_echo "$blibflags" >&6; }
6316 fi
6317 LDFLAGS="$saved_LDFLAGS"
6318 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6319if test "x$ac_cv_func_authenticate" = xyes; then :
6320
6321$as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6322
6323else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6325$as_echo_n "checking for authenticate in -ls... " >&6; }
6326if ${ac_cv_lib_s_authenticate+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328else
6329 ac_check_lib_save_LIBS=$LIBS
6330LIBS="-ls $LIBS"
6331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h. */
6333
6334/* Override any GCC internal prototype to avoid an error.
6335 Use char because int might match the return type of a GCC
6336 builtin and then its argument prototype would still apply. */
6337#ifdef __cplusplus
6338extern "C"
6339#endif
6340char authenticate ();
6341int
6342main ()
6343{
6344return authenticate ();
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349if ac_fn_c_try_link "$LINENO"; then :
6350 ac_cv_lib_s_authenticate=yes
6351else
6352 ac_cv_lib_s_authenticate=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356LIBS=$ac_check_lib_save_LIBS
6357fi
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6359$as_echo "$ac_cv_lib_s_authenticate" >&6; }
6360if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6361 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6362
6363 LIBS="$LIBS -ls"
6364
6365fi
6366
6367
6368fi
6369
6370 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6371"
6372if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6373 ac_have_decl=1
6374else
6375 ac_have_decl=0
6376fi
6377
6378cat >>confdefs.h <<_ACEOF
6379#define HAVE_DECL_AUTHENTICATE $ac_have_decl
6380_ACEOF
6381ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6382"
6383if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6384 ac_have_decl=1
6385else
6386 ac_have_decl=0
6387fi
6388
6389cat >>confdefs.h <<_ACEOF
6390#define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6391_ACEOF
6392ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6393"
6394if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6395 ac_have_decl=1
6396else
6397 ac_have_decl=0
6398fi
6399
6400cat >>confdefs.h <<_ACEOF
6401#define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6402_ACEOF
6403ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6404"
6405if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6406 ac_have_decl=1
6407else
6408 ac_have_decl=0
6409fi
6410
6411cat >>confdefs.h <<_ACEOF
6412#define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6413_ACEOF
6414ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6415"
6416if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6417 ac_have_decl=1
6418else
6419 ac_have_decl=0
6420fi
6421
6422cat >>confdefs.h <<_ACEOF
6423#define HAVE_DECL_SETAUTHDB $ac_have_decl
6424_ACEOF
6425
6426 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6427
6428"
6429if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6430 ac_have_decl=1
6431else
6432 ac_have_decl=0
6433fi
6434
6435cat >>confdefs.h <<_ACEOF
6436#define HAVE_DECL_LOGINFAILED $ac_have_decl
6437_ACEOF
6438if test $ac_have_decl = 1; then :
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6440$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h. */
6443 #include <usersec.h>
6444int
6445main ()
6446{
6447 (void)loginfailed("user","host","tty",0);
6448 ;
6449 return 0;
6450}
6451_ACEOF
6452if ac_fn_c_try_compile "$LINENO"; then :
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6454$as_echo "yes" >&6; }
6455
6456$as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6457
6458else
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464fi
6465
6466 for ac_func in getgrset setauthdb
6467do :
6468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6469ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6470if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6471 cat >>confdefs.h <<_ACEOF
6472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6473_ACEOF
6474
6475fi
6476done
6477
6478 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6479 #include <fcntl.h>
6480
6481"
6482if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6483
6484$as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6485
6486fi
6487
6488 check_for_aix_broken_getaddrinfo=1
6489
6490$as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6491
6492
6493$as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6494
6495
6496$as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6497
6498
6499$as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6500
6501
6502$as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6503
6504
6505$as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6506
6507
6508$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6509
6510
6511$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6512
6513
6514$as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6515
6516 ;;
6517*-*-cygwin*)
6518 check_for_libcrypt_later=1
6519 LIBS="$LIBS /usr/lib/textreadmode.o"
6520
6521$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6522
6523
6524$as_echo "#define USE_PIPES 1" >>confdefs.h
6525
6526
6527$as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6528
6529
6530$as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6531
6532
6533$as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6534
6535
6536$as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6537
6538
6539$as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6540
6541
6542$as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6543
6544 ;;
6545*-*-dgux*)
6546
6547$as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6548
6549 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6550
6551 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6552
6553 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6554
6555 ;;
6556*-*-darwin*)
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6558$as_echo_n "checking if we have working getaddrinfo... " >&6; }
6559 if test "$cross_compiling" = yes; then :
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6561$as_echo "assume it is working" >&6; }
6562else
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h. */
6565 #include <mach-o/dyld.h>
6566main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6567 exit(0);
6568 else
6569 exit(1);
6570}
6571
6572_ACEOF
6573if ac_fn_c_try_run "$LINENO"; then :
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6575$as_echo "working" >&6; }
6576else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6578$as_echo "buggy" >&6; }
6579
6580$as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6581
6582
6583fi
6584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6585 conftest.$ac_objext conftest.beam conftest.$ac_ext
6586fi
6587
6588 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6589
6590 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6591
6592 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6593
6594
6595$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6596
6597
6598cat >>confdefs.h <<_ACEOF
6599#define BIND_8_COMPAT 1
6600_ACEOF
6601
6602
6603$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6604
6605
6606$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6607
6608
6609$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6610
6611
6612 ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6613if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
6614
6615else
6616
6617$as_echo "#define AU_IPv4 0" >>confdefs.h
6618
6619 #include <bsm/audit.h>
6620
6621$as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6622
6623
6624fi
6625
6626
6627$as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6628
6629 for ac_func in sandbox_init
6630do :
6631 ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6632if test "x$ac_cv_func_sandbox_init" = xyes; then :
6633 cat >>confdefs.h <<_ACEOF
6634#define HAVE_SANDBOX_INIT 1
6635_ACEOF
6636
6637fi
6638done
6639
6640 for ac_header in sandbox.h
6641do :
6642 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6643if test "x$ac_cv_header_sandbox_h" = xyes; then :
6644 cat >>confdefs.h <<_ACEOF
6645#define HAVE_SANDBOX_H 1
6646_ACEOF
6647
6648fi
6649
6650done
6651
6652 ;;
6653*-*-dragonfly*)
6654 SSHDLIBS="$SSHDLIBS -lcrypt"
6655 ;;
6656*-*-haiku*)
6657 LIBS="$LIBS -lbsd "
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6659$as_echo_n "checking for socket in -lnetwork... " >&6; }
6660if ${ac_cv_lib_network_socket+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662else
6663 ac_check_lib_save_LIBS=$LIBS
6664LIBS="-lnetwork $LIBS"
6665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h. */
6667
6668/* Override any GCC internal prototype to avoid an error.
6669 Use char because int might match the return type of a GCC
6670 builtin and then its argument prototype would still apply. */
6671#ifdef __cplusplus
6672extern "C"
6673#endif
6674char socket ();
6675int
6676main ()
6677{
6678return socket ();
6679 ;
6680 return 0;
6681}
6682_ACEOF
6683if ac_fn_c_try_link "$LINENO"; then :
6684 ac_cv_lib_network_socket=yes
6685else
6686 ac_cv_lib_network_socket=no
6687fi
6688rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690LIBS=$ac_check_lib_save_LIBS
6691fi
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6693$as_echo "$ac_cv_lib_network_socket" >&6; }
6694if test "x$ac_cv_lib_network_socket" = xyes; then :
6695 cat >>confdefs.h <<_ACEOF
6696#define HAVE_LIBNETWORK 1
6697_ACEOF
6698
6699 LIBS="-lnetwork $LIBS"
6700
6701fi
6702
6703 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6704
6705 MANTYPE=man
6706 ;;
6707*-*-hpux*)
6708 # first we define all of the options common to all HP-UX releases
6709 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6710 IPADDR_IN_DISPLAY=yes
6711 $as_echo "#define USE_PIPES 1" >>confdefs.h
6712
6713
6714$as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6715
6716 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6717
6718
6719$as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6720
6721 $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6722
6723 maildir="/var/mail"
6724 LIBS="$LIBS -lsec"
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6726$as_echo_n "checking for t_error in -lxnet... " >&6; }
6727if ${ac_cv_lib_xnet_t_error+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729else
6730 ac_check_lib_save_LIBS=$LIBS
6731LIBS="-lxnet $LIBS"
6732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733/* end confdefs.h. */
6734
6735/* Override any GCC internal prototype to avoid an error.
6736 Use char because int might match the return type of a GCC
6737 builtin and then its argument prototype would still apply. */
6738#ifdef __cplusplus
6739extern "C"
6740#endif
6741char t_error ();
6742int
6743main ()
6744{
6745return t_error ();
6746 ;
6747 return 0;
6748}
6749_ACEOF
6750if ac_fn_c_try_link "$LINENO"; then :
6751 ac_cv_lib_xnet_t_error=yes
6752else
6753 ac_cv_lib_xnet_t_error=no
6754fi
6755rm -f core conftest.err conftest.$ac_objext \
6756 conftest$ac_exeext conftest.$ac_ext
6757LIBS=$ac_check_lib_save_LIBS
6758fi
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6760$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6761if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763#define HAVE_LIBXNET 1
6764_ACEOF
6765
6766 LIBS="-lxnet $LIBS"
6767
6768else
6769 as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6770fi
6771
6772
6773 # next, we define all of the options specific to major releases
6774 case "$host" in
6775 *-*-hpux10*)
6776 if test -z "$GCC"; then
6777 CFLAGS="$CFLAGS -Ae"
6778 fi
6779 ;;
6780 *-*-hpux11*)
6781
6782$as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6783
6784
6785$as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6786
6787
6788$as_echo "#define USE_BTMP 1" >>confdefs.h
6789
6790 check_for_hpux_broken_getaddrinfo=1
6791 check_for_conflicting_getspnam=1
6792 ;;
6793 esac
6794
6795 # lastly, we define options specific to minor releases
6796 case "$host" in
6797 *-*-hpux10.26)
6798
6799$as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6800
6801 disable_ptmx_check=yes
6802 LIBS="$LIBS -lsecpw"
6803 ;;
6804 esac
6805 ;;
6806*-*-irix5*)
6807 PATH="$PATH:/usr/etc"
6808
6809$as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6810
6811 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6812
6813 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6814
6815 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6816
6817
6818$as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6819
6820 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6821
6822 ;;
6823*-*-irix6*)
6824 PATH="$PATH:/usr/etc"
6825
6826$as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6827
6828
6829$as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6830
6831
6832$as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6833
6834 ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6835if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
6836
6837$as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6838
6839fi
6840
6841 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6842
6843 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6844
6845 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6846
6847 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6848
6849
6850$as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6851
6852 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6853
6854 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6855
6856 ;;
6857*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6858 check_for_libcrypt_later=1
6859 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6860
6861 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6862
6863 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6864
6865
6866$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6867
6868
6869$as_echo "#define USE_BTMP 1" >>confdefs.h
6870
6871 ;;
6872*-*-linux*)
6873 no_dev_ptmx=1
6874 check_for_libcrypt_later=1
6875 check_for_openpty_ctty_bug=1
6876
6877$as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6878
6879
6880$as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6881
6882 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6883
6884
6885$as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6886
6887
6888$as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6889
6890 $as_echo "#define USE_BTMP 1" >>confdefs.h
6891
6892
6893$as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6894
6895 inet6_default_4in6=yes
6896 case `uname -r` in
6897 1.*|2.0.*)
6898
6899$as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6900
6901 ;;
6902 esac
6903 # tun(4) forwarding compat code
6904 for ac_header in linux/if_tun.h
6905do :
6906 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6907if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
6908 cat >>confdefs.h <<_ACEOF
6909#define HAVE_LINUX_IF_TUN_H 1
6910_ACEOF
6911
6912fi
6913
6914done
6915
6916 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6917
6918$as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6919
6920
6921$as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6922
6923
6924$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6925
6926 fi
6927 for ac_header in linux/seccomp.h linux/filter.h linux/audit.h
6928do :
6929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6930ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h>
6931"
6932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6933 cat >>confdefs.h <<_ACEOF
6934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6935_ACEOF
6936
6937fi
6938
6939done
6940
6941 for ac_func in prctl
6942do :
6943 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
6944if test "x$ac_cv_func_prctl" = xyes; then :
6945 cat >>confdefs.h <<_ACEOF
6946#define HAVE_PRCTL 1
6947_ACEOF
6948
6949fi
6950done
6951
6952 have_seccomp_audit_arch=1
6953 case "$host" in
6954 x86_64-*)
6955
6956$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64" >>confdefs.h
6957
6958 ;;
6959 i*86-*)
6960
6961$as_echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386" >>confdefs.h
6962
6963 ;;
6964 *)
6965 have_seccomp_audit_arch=0
6966 ;;
6967 esac
6968 ;;
6969mips-sony-bsd|mips-sony-newsos4)
6970
6971$as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6972
6973 SONY=1
6974 ;;
6975*-*-netbsd*)
6976 check_for_libcrypt_before=1
6977 if test "x$withval" != "xno" ; then
6978 need_dash_r=1
6979 fi
6980
6981$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6982
6983 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6984if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6985
6986else
6987
6988$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6989
6990fi
6991
6992
6993
6994$as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6995
6996 ;;
6997*-*-freebsd*)
6998 check_for_libcrypt_later=1
6999
7000$as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
7001
7002
7003$as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
7004
7005 ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
7006if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
7007
7008else
7009
7010$as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
7011
7012fi
7013
7014
7015
7016$as_echo "#define BROKEN_GLOB 1" >>confdefs.h
7017
7018 ;;
7019*-*-bsdi*)
7020 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7021
7022 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7023
7024 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7025
7026 ;;
7027*-next-*)
7028 conf_lastlog_location="/usr/adm/lastlog"
7029 conf_utmp_location=/etc/utmp
7030 conf_wtmp_location=/usr/adm/wtmp
7031 maildir=/usr/spool/mail
7032
7033$as_echo "#define HAVE_NEXT 1" >>confdefs.h
7034
7035 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
7036
7037 $as_echo "#define USE_PIPES 1" >>confdefs.h
7038
7039
7040$as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
7041
7042 ;;
7043*-*-openbsd*)
7044
7045$as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
7046
7047
7048$as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
7049
7050
7051$as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
7052
7053
7054$as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
7055
7056 ;;
7057*-*-solaris*)
7058 if test "x$withval" != "xno" ; then
7059 need_dash_r=1
7060 fi
7061 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7062
7063 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
7064
7065
7066$as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
7067
7068 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
7069
7070
7071$as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7072
7073 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7074
7075 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7076
7077$as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7078
7079
7080$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7081
7082
7083$as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7084
7085 external_path_file=/etc/default/login
7086 # hardwire lastlog location (can't detect it on some versions)
7087 conf_lastlog_location="/var/adm/lastlog"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7089$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7090 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7091 if test "$sol2ver" -ge 8; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7093$as_echo "yes" >&6; }
7094 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7095
7096
7097$as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7098
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102 fi
7103
7104# Check whether --with-solaris-contracts was given.
7105if test "${with_solaris_contracts+set}" = set; then :
7106 withval=$with_solaris_contracts;
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7108$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7109if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111else
7112 ac_check_lib_save_LIBS=$LIBS
7113LIBS="-lcontract $LIBS"
7114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h. */
7116
7117/* Override any GCC internal prototype to avoid an error.
7118 Use char because int might match the return type of a GCC
7119 builtin and then its argument prototype would still apply. */
7120#ifdef __cplusplus
7121extern "C"
7122#endif
7123char ct_tmpl_activate ();
7124int
7125main ()
7126{
7127return ct_tmpl_activate ();
7128 ;
7129 return 0;
7130}
7131_ACEOF
7132if ac_fn_c_try_link "$LINENO"; then :
7133 ac_cv_lib_contract_ct_tmpl_activate=yes
7134else
7135 ac_cv_lib_contract_ct_tmpl_activate=no
7136fi
7137rm -f core conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139LIBS=$ac_check_lib_save_LIBS
7140fi
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7142$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7143if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7144
7145$as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7146
7147 SSHDLIBS="$SSHDLIBS -lcontract"
7148 SPC_MSG="yes"
7149fi
7150
7151
7152fi
7153
7154
7155# Check whether --with-solaris-projects was given.
7156if test "${with_solaris_projects+set}" = set; then :
7157 withval=$with_solaris_projects;
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7159$as_echo_n "checking for setproject in -lproject... " >&6; }
7160if ${ac_cv_lib_project_setproject+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162else
7163 ac_check_lib_save_LIBS=$LIBS
7164LIBS="-lproject $LIBS"
7165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h. */
7167
7168/* Override any GCC internal prototype to avoid an error.
7169 Use char because int might match the return type of a GCC
7170 builtin and then its argument prototype would still apply. */
7171#ifdef __cplusplus
7172extern "C"
7173#endif
7174char setproject ();
7175int
7176main ()
7177{
7178return setproject ();
7179 ;
7180 return 0;
7181}
7182_ACEOF
7183if ac_fn_c_try_link "$LINENO"; then :
7184 ac_cv_lib_project_setproject=yes
7185else
7186 ac_cv_lib_project_setproject=no
7187fi
7188rm -f core conftest.err conftest.$ac_objext \
7189 conftest$ac_exeext conftest.$ac_ext
7190LIBS=$ac_check_lib_save_LIBS
7191fi
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7193$as_echo "$ac_cv_lib_project_setproject" >&6; }
7194if test "x$ac_cv_lib_project_setproject" = xyes; then :
7195
7196$as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7197
7198 SSHDLIBS="$SSHDLIBS -lproject"
7199 SP_MSG="yes"
7200fi
7201
7202
7203fi
7204
7205 ;;
7206*-*-sunos4*)
7207 CPPFLAGS="$CPPFLAGS -DSUNOS4"
7208 for ac_func in getpwanam
7209do :
7210 ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7211if test "x$ac_cv_func_getpwanam" = xyes; then :
7212 cat >>confdefs.h <<_ACEOF
7213#define HAVE_GETPWANAM 1
7214_ACEOF
7215
7216fi
7217done
7218
7219 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7220
7221 conf_utmp_location=/etc/utmp
7222 conf_wtmp_location=/var/adm/wtmp
7223 conf_lastlog_location=/var/adm/lastlog
7224 $as_echo "#define USE_PIPES 1" >>confdefs.h
7225
7226 ;;
7227*-ncr-sysv*)
7228 LIBS="$LIBS -lc89"
7229 $as_echo "#define USE_PIPES 1" >>confdefs.h
7230
7231 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7232
7233 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7234
7235 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7236
7237 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7238
7239 ;;
7240*-sni-sysv*)
7241 # /usr/ucblib MUST NOT be searched on ReliantUNIX
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7243$as_echo_n "checking for dlsym in -ldl... " >&6; }
7244if ${ac_cv_lib_dl_dlsym+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246else
7247 ac_check_lib_save_LIBS=$LIBS
7248LIBS="-ldl $LIBS"
7249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250/* end confdefs.h. */
7251
7252/* Override any GCC internal prototype to avoid an error.
7253 Use char because int might match the return type of a GCC
7254 builtin and then its argument prototype would still apply. */
7255#ifdef __cplusplus
7256extern "C"
7257#endif
7258char dlsym ();
7259int
7260main ()
7261{
7262return dlsym ();
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267if ac_fn_c_try_link "$LINENO"; then :
7268 ac_cv_lib_dl_dlsym=yes
7269else
7270 ac_cv_lib_dl_dlsym=no
7271fi
7272rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7274LIBS=$ac_check_lib_save_LIBS
7275fi
7276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7277$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7278if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7279 cat >>confdefs.h <<_ACEOF
7280#define HAVE_LIBDL 1
7281_ACEOF
7282
7283 LIBS="-ldl $LIBS"
7284
7285fi
7286
7287 # -lresolv needs to be at the end of LIBS or DNS lookups break
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7289$as_echo_n "checking for res_query in -lresolv... " >&6; }
7290if ${ac_cv_lib_resolv_res_query+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292else
7293 ac_check_lib_save_LIBS=$LIBS
7294LIBS="-lresolv $LIBS"
7295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h. */
7297
7298/* Override any GCC internal prototype to avoid an error.
7299 Use char because int might match the return type of a GCC
7300 builtin and then its argument prototype would still apply. */
7301#ifdef __cplusplus
7302extern "C"
7303#endif
7304char res_query ();
7305int
7306main ()
7307{
7308return res_query ();
7309 ;
7310 return 0;
7311}
7312_ACEOF
7313if ac_fn_c_try_link "$LINENO"; then :
7314 ac_cv_lib_resolv_res_query=yes
7315else
7316 ac_cv_lib_resolv_res_query=no
7317fi
7318rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320LIBS=$ac_check_lib_save_LIBS
7321fi
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7323$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7324if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7325 LIBS="$LIBS -lresolv"
7326fi
7327
7328 IPADDR_IN_DISPLAY=yes
7329 $as_echo "#define USE_PIPES 1" >>confdefs.h
7330
7331 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7332
7333 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7334
7335 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7336
7337 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7338
7339 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7340
7341 external_path_file=/etc/default/login
7342 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7343 # Attention: always take care to bind libsocket and libnsl before libc,
7344 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7345 ;;
7346# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7347*-*-sysv4.2*)
7348 $as_echo "#define USE_PIPES 1" >>confdefs.h
7349
7350 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7351
7352 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7353
7354 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7355
7356
7357$as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7358
7359 $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7360
7361 ;;
7362# UnixWare 7.x, OpenUNIX 8
7363*-*-sysv5*)
7364 CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7365
7366$as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7367
7368 $as_echo "#define USE_PIPES 1" >>confdefs.h
7369
7370 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7371
7372 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7373
7374 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7375
7376 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7377
7378 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7379
7380 case "$host" in
7381 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
7382 maildir=/var/spool/mail
7383 TEST_SHELL=/u95/bin/sh
7384
7385$as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7386
7387 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7388
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7390$as_echo_n "checking for getluid in -lprot... " >&6; }
7391if ${ac_cv_lib_prot_getluid+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393else
7394 ac_check_lib_save_LIBS=$LIBS
7395LIBS="-lprot $LIBS"
7396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h. */
7398
7399/* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7402#ifdef __cplusplus
7403extern "C"
7404#endif
7405char getluid ();
7406int
7407main ()
7408{
7409return getluid ();
7410 ;
7411 return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_link "$LINENO"; then :
7415 ac_cv_lib_prot_getluid=yes
7416else
7417 ac_cv_lib_prot_getluid=no
7418fi
7419rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421LIBS=$ac_check_lib_save_LIBS
7422fi
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7424$as_echo "$ac_cv_lib_prot_getluid" >&6; }
7425if test "x$ac_cv_lib_prot_getluid" = xyes; then :
7426 LIBS="$LIBS -lprot"
7427 for ac_func in getluid setluid
7428do :
7429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7430ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7431if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7432 cat >>confdefs.h <<_ACEOF
7433#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7434_ACEOF
7435
7436fi
7437done
7438
7439 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7440
7441 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7442
7443
7444fi
7445
7446 ;;
7447 *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7448
7449 check_for_libcrypt_later=1
7450 ;;
7451 esac
7452 ;;
7453*-*-sysv*)
7454 ;;
7455# SCO UNIX and OEM versions of SCO UNIX
7456*-*-sco3.2v4*)
7457 as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7458 ;;
7459# SCO OpenServer 5.x
7460*-*-sco3.2v5*)
7461 if test -z "$GCC"; then
7462 CFLAGS="$CFLAGS -belf"
7463 fi
7464 LIBS="$LIBS -lprot -lx -ltinfo -lm"
7465 no_dev_ptmx=1
7466 $as_echo "#define USE_PIPES 1" >>confdefs.h
7467
7468 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7469
7470 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7471
7472 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7473
7474 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7475
7476 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7477
7478 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7479
7480 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7481
7482 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7483
7484 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7485
7486 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7487
7488 for ac_func in getluid setluid
7489do :
7490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7491ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7492if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7493 cat >>confdefs.h <<_ACEOF
7494#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7495_ACEOF
7496
7497fi
7498done
7499
7500 MANTYPE=man
7501 TEST_SHELL=ksh
7502 ;;
7503*-*-unicosmk*)
7504
7505$as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7506
7507 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7508
7509 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7510
7511 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7512
7513 $as_echo "#define USE_PIPES 1" >>confdefs.h
7514
7515 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7516
7517 LDFLAGS="$LDFLAGS"
7518 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7519 MANTYPE=cat
7520 ;;
7521*-*-unicosmp*)
7522 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7523
7524 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7525
7526 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7527
7528 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7529
7530 $as_echo "#define USE_PIPES 1" >>confdefs.h
7531
7532 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7533
7534 LDFLAGS="$LDFLAGS"
7535 LIBS="$LIBS -lgen -lacid -ldb"
7536 MANTYPE=cat
7537 ;;
7538*-*-unicos*)
7539 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7540
7541 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7542
7543 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7544
7545 $as_echo "#define USE_PIPES 1" >>confdefs.h
7546
7547 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7548
7549 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7550
7551 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7552 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7553 MANTYPE=cat
7554 ;;
7555*-dec-osf*)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7557$as_echo_n "checking for Digital Unix SIA... " >&6; }
7558 no_osfsia=""
7559
7560# Check whether --with-osfsia was given.
7561if test "${with_osfsia+set}" = set; then :
7562 withval=$with_osfsia;
7563 if test "x$withval" = "xno" ; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7565$as_echo "disabled" >&6; }
7566 no_osfsia=1
7567 fi
7568
7569fi
7570
7571 if test -z "$no_osfsia" ; then
7572 if test -f /etc/sia/matrix.conf; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574$as_echo "yes" >&6; }
7575
7576$as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7577
7578
7579$as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7580
7581 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7582
7583 LIBS="$LIBS -lsecurity -ldb -lm -laud"
7584 SIA_MSG="yes"
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587$as_echo "no" >&6; }
7588
7589$as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7590
7591 fi
7592 fi
7593 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7594
7595 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7596
7597 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7598
7599 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7600
7601
7602$as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7603
7604 ;;
7605
7606*-*-nto-qnx*)
7607 $as_echo "#define USE_PIPES 1" >>confdefs.h
7608
7609 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7610
7611
7612$as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7613
7614
7615$as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7616
7617
7618$as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7619
7620 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7621
7622 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7623
7624
7625$as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7626
7627 enable_etc_default_login=no # has incompatible /etc/default/login
7628 case "$host" in
7629 *-*-nto-qnx6*)
7630 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7631
7632 ;;
7633 esac
7634 ;;
7635
7636*-*-ultrix*)
7637
7638$as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7639
7640
7641$as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7642
7643 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7644
7645
7646$as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7647
7648 ;;
7649
7650*-*-lynxos)
7651 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7652 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7653
7654
7655$as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7656
7657 ;;
7658esac
7659
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7661$as_echo_n "checking compiler and flags for sanity... " >&6; }
7662if test "$cross_compiling" = yes; then :
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7664$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7665
7666else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h. */
7669 #include <stdio.h>
7670int
7671main ()
7672{
7673 exit(0);
7674 ;
7675 return 0;
7676}
7677_ACEOF
7678if ac_fn_c_try_run "$LINENO"; then :
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7680$as_echo "yes" >&6; }
7681else
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
7685 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7686
7687fi
7688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7689 conftest.$ac_objext conftest.beam conftest.$ac_ext
7690fi
7691
7692
7693# Checks for libraries.
7694ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7695if test "x$ac_cv_func_yp_match" = xyes; then :
7696
7697else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7699$as_echo_n "checking for yp_match in -lnsl... " >&6; }
7700if ${ac_cv_lib_nsl_yp_match+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702else
7703 ac_check_lib_save_LIBS=$LIBS
7704LIBS="-lnsl $LIBS"
7705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h. */
7707
7708/* Override any GCC internal prototype to avoid an error.
7709 Use char because int might match the return type of a GCC
7710 builtin and then its argument prototype would still apply. */
7711#ifdef __cplusplus
7712extern "C"
7713#endif
7714char yp_match ();
7715int
7716main ()
7717{
7718return yp_match ();
7719 ;
7720 return 0;
7721}
7722_ACEOF
7723if ac_fn_c_try_link "$LINENO"; then :
7724 ac_cv_lib_nsl_yp_match=yes
7725else
7726 ac_cv_lib_nsl_yp_match=no
7727fi
7728rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730LIBS=$ac_check_lib_save_LIBS
7731fi
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7733$as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7734if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
7735 cat >>confdefs.h <<_ACEOF
7736#define HAVE_LIBNSL 1
7737_ACEOF
7738
7739 LIBS="-lnsl $LIBS"
7740
7741fi
7742
7743fi
7744
7745ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7746if test "x$ac_cv_func_setsockopt" = xyes; then :
7747
7748else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7750$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7751if ${ac_cv_lib_socket_setsockopt+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753else
7754 ac_check_lib_save_LIBS=$LIBS
7755LIBS="-lsocket $LIBS"
7756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h. */
7758
7759/* Override any GCC internal prototype to avoid an error.
7760 Use char because int might match the return type of a GCC
7761 builtin and then its argument prototype would still apply. */
7762#ifdef __cplusplus
7763extern "C"
7764#endif
7765char setsockopt ();
7766int
7767main ()
7768{
7769return setsockopt ();
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774if ac_fn_c_try_link "$LINENO"; then :
7775 ac_cv_lib_socket_setsockopt=yes
7776else
7777 ac_cv_lib_socket_setsockopt=no
7778fi
7779rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781LIBS=$ac_check_lib_save_LIBS
7782fi
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7784$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7785if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7786 cat >>confdefs.h <<_ACEOF
7787#define HAVE_LIBSOCKET 1
7788_ACEOF
7789
7790 LIBS="-lsocket $LIBS"
7791
7792fi
7793
7794fi
7795
7796
7797for ac_func in dirname
7798do :
7799 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7800if test "x$ac_cv_func_dirname" = xyes; then :
7801 cat >>confdefs.h <<_ACEOF
7802#define HAVE_DIRNAME 1
7803_ACEOF
7804 for ac_header in libgen.h
7805do :
7806 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7807if test "x$ac_cv_header_libgen_h" = xyes; then :
7808 cat >>confdefs.h <<_ACEOF
7809#define HAVE_LIBGEN_H 1
7810_ACEOF
7811
7812fi
7813
7814done
7815
7816else
7817
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7819$as_echo_n "checking for dirname in -lgen... " >&6; }
7820if ${ac_cv_lib_gen_dirname+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822else
7823 ac_check_lib_save_LIBS=$LIBS
7824LIBS="-lgen $LIBS"
7825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h. */
7827
7828/* Override any GCC internal prototype to avoid an error.
7829 Use char because int might match the return type of a GCC
7830 builtin and then its argument prototype would still apply. */
7831#ifdef __cplusplus
7832extern "C"
7833#endif
7834char dirname ();
7835int
7836main ()
7837{
7838return dirname ();
7839 ;
7840 return 0;
7841}
7842_ACEOF
7843if ac_fn_c_try_link "$LINENO"; then :
7844 ac_cv_lib_gen_dirname=yes
7845else
7846 ac_cv_lib_gen_dirname=no
7847fi
7848rm -f core conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
7850LIBS=$ac_check_lib_save_LIBS
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7853$as_echo "$ac_cv_lib_gen_dirname" >&6; }
7854if test "x$ac_cv_lib_gen_dirname" = xyes; then :
7855
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7857$as_echo_n "checking for broken dirname... " >&6; }
7858if ${ac_cv_have_broken_dirname+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860else
7861
7862 save_LIBS="$LIBS"
7863 LIBS="$LIBS -lgen"
7864 if test "$cross_compiling" = yes; then :
7865 ac_cv_have_broken_dirname="no"
7866else
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h. */
7869
7870#include <libgen.h>
7871#include <string.h>
7872
7873int main(int argc, char **argv) {
7874 char *s, buf[32];
7875
7876 strncpy(buf,"/etc", 32);
7877 s = dirname(buf);
7878 if (!s || strncmp(s, "/", 32) != 0) {
7879 exit(1);
7880 } else {
7881 exit(0);
7882 }
7883}
7884
7885_ACEOF
7886if ac_fn_c_try_run "$LINENO"; then :
7887 ac_cv_have_broken_dirname="no"
7888else
7889 ac_cv_have_broken_dirname="yes"
7890fi
7891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7892 conftest.$ac_objext conftest.beam conftest.$ac_ext
7893fi
7894
7895 LIBS="$save_LIBS"
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7899$as_echo "$ac_cv_have_broken_dirname" >&6; }
7900 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7901 LIBS="$LIBS -lgen"
7902 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7903
7904 for ac_header in libgen.h
7905do :
7906 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7907if test "x$ac_cv_header_libgen_h" = xyes; then :
7908 cat >>confdefs.h <<_ACEOF
7909#define HAVE_LIBGEN_H 1
7910_ACEOF
7911
7912fi
7913
7914done
7915
7916 fi
7917
7918fi
7919
7920
7921fi
7922done
7923
7924
7925ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7926if test "x$ac_cv_func_getspnam" = xyes; then :
7927
7928else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7930$as_echo_n "checking for getspnam in -lgen... " >&6; }
7931if ${ac_cv_lib_gen_getspnam+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933else
7934 ac_check_lib_save_LIBS=$LIBS
7935LIBS="-lgen $LIBS"
7936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937/* end confdefs.h. */
7938
7939/* Override any GCC internal prototype to avoid an error.
7940 Use char because int might match the return type of a GCC
7941 builtin and then its argument prototype would still apply. */
7942#ifdef __cplusplus
7943extern "C"
7944#endif
7945char getspnam ();
7946int
7947main ()
7948{
7949return getspnam ();
7950 ;
7951 return 0;
7952}
7953_ACEOF
7954if ac_fn_c_try_link "$LINENO"; then :
7955 ac_cv_lib_gen_getspnam=yes
7956else
7957 ac_cv_lib_gen_getspnam=no
7958fi
7959rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961LIBS=$ac_check_lib_save_LIBS
7962fi
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7964$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7965if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
7966 LIBS="$LIBS -lgen"
7967fi
7968
7969fi
7970
7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7972$as_echo_n "checking for library containing basename... " >&6; }
7973if ${ac_cv_search_basename+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975else
7976 ac_func_search_save_LIBS=$LIBS
7977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h. */
7979
7980/* Override any GCC internal prototype to avoid an error.
7981 Use char because int might match the return type of a GCC
7982 builtin and then its argument prototype would still apply. */
7983#ifdef __cplusplus
7984extern "C"
7985#endif
7986char basename ();
7987int
7988main ()
7989{
7990return basename ();
7991 ;
7992 return 0;
7993}
7994_ACEOF
7995for ac_lib in '' gen; do
7996 if test -z "$ac_lib"; then
7997 ac_res="none required"
7998 else
7999 ac_res=-l$ac_lib
8000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8001 fi
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 ac_cv_search_basename=$ac_res
8004fi
8005rm -f core conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext
8007 if ${ac_cv_search_basename+:} false; then :
8008 break
8009fi
8010done
8011if ${ac_cv_search_basename+:} false; then :
8012
8013else
8014 ac_cv_search_basename=no
8015fi
8016rm conftest.$ac_ext
8017LIBS=$ac_func_search_save_LIBS
8018fi
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
8020$as_echo "$ac_cv_search_basename" >&6; }
8021ac_res=$ac_cv_search_basename
8022if test "$ac_res" != no; then :
8023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8024
8025$as_echo "#define HAVE_BASENAME 1" >>confdefs.h
8026
8027fi
8028
8029
8030
8031# Check whether --with-zlib was given.
8032if test "${with_zlib+set}" = set; then :
8033 withval=$with_zlib; if test "x$withval" = "xno" ; then
8034 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
8035 elif test "x$withval" != "xyes"; then
8036 if test -d "$withval/lib"; then
8037 if test -n "${need_dash_r}"; then
8038 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8039 else
8040 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8041 fi
8042 else
8043 if test -n "${need_dash_r}"; then
8044 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8045 else
8046 LDFLAGS="-L${withval} ${LDFLAGS}"
8047 fi
8048 fi
8049 if test -d "$withval/include"; then
8050 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8051 else
8052 CPPFLAGS="-I${withval} ${CPPFLAGS}"
8053 fi
8054 fi
8055
8056fi
8057
8058
8059ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8060if test "x$ac_cv_header_zlib_h" = xyes; then :
8061
8062else
8063 as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
8064fi
8065
8066
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
8068$as_echo_n "checking for deflate in -lz... " >&6; }
8069if ${ac_cv_lib_z_deflate+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071else
8072 ac_check_lib_save_LIBS=$LIBS
8073LIBS="-lz $LIBS"
8074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h. */
8076
8077/* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
8080#ifdef __cplusplus
8081extern "C"
8082#endif
8083char deflate ();
8084int
8085main ()
8086{
8087return deflate ();
8088 ;
8089 return 0;
8090}
8091_ACEOF
8092if ac_fn_c_try_link "$LINENO"; then :
8093 ac_cv_lib_z_deflate=yes
8094else
8095 ac_cv_lib_z_deflate=no
8096fi
8097rm -f core conftest.err conftest.$ac_objext \
8098 conftest$ac_exeext conftest.$ac_ext
8099LIBS=$ac_check_lib_save_LIBS
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8102$as_echo "$ac_cv_lib_z_deflate" >&6; }
8103if test "x$ac_cv_lib_z_deflate" = xyes; then :
8104 cat >>confdefs.h <<_ACEOF
8105#define HAVE_LIBZ 1
8106_ACEOF
8107
8108 LIBS="-lz $LIBS"
8109
8110else
8111
8112 saved_CPPFLAGS="$CPPFLAGS"
8113 saved_LDFLAGS="$LDFLAGS"
8114 save_LIBS="$LIBS"
8115 if test -n "${need_dash_r}"; then
8116 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8117 else
8118 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8119 fi
8120 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8121 LIBS="$LIBS -lz"
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h. */
8124
8125/* Override any GCC internal prototype to avoid an error.
8126 Use char because int might match the return type of a GCC
8127 builtin and then its argument prototype would still apply. */
8128#ifdef __cplusplus
8129extern "C"
8130#endif
8131char deflate ();
8132int
8133main ()
8134{
8135return deflate ();
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140if ac_fn_c_try_link "$LINENO"; then :
8141 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8142
8143else
8144
8145 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8146
8147
8148fi
8149rm -f core conftest.err conftest.$ac_objext \
8150 conftest$ac_exeext conftest.$ac_ext
8151
8152
8153fi
8154
8155
8156
8157# Check whether --with-zlib-version-check was given.
8158if test "${with_zlib_version_check+set}" = set; then :
8159 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
8160 zlib_check_nonfatal=1
8161 fi
8162
8163
8164fi
8165
8166
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8168$as_echo_n "checking for possibly buggy zlib... " >&6; }
8169if test "$cross_compiling" = yes; then :
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8171$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8172
8173else
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176
8177#include <stdio.h>
8178#include <zlib.h>
8179
8180int
8181main ()
8182{
8183
8184 int a=0, b=0, c=0, d=0, n, v;
8185 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8186 if (n != 3 && n != 4)
8187 exit(1);
8188 v = a*1000000 + b*10000 + c*100 + d;
8189 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8190
8191 /* 1.1.4 is OK */
8192 if (a == 1 && b == 1 && c >= 4)
8193 exit(0);
8194
8195 /* 1.2.3 and up are OK */
8196 if (v >= 1020300)
8197 exit(0);
8198
8199 exit(2);
8200
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205if ac_fn_c_try_run "$LINENO"; then :
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
8208else
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8210$as_echo "yes" >&6; }
8211 if test -z "$zlib_check_nonfatal" ; then
8212 as_fn_error $? "*** zlib too old - check config.log ***
8213Your reported zlib version has known security problems. It's possible your
8214vendor has fixed these problems without changing the version number. If you
8215are sure this is the case, you can disable the check by running
8216\"./configure --without-zlib-version-check\".
8217If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8218See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8221$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8222 fi
8223
8224fi
8225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8226 conftest.$ac_objext conftest.beam conftest.$ac_ext
8227fi
8228
8229
8230ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8231if test "x$ac_cv_func_strcasecmp" = xyes; then :
8232
8233else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8235$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8236if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8237 $as_echo_n "(cached) " >&6
8238else
8239 ac_check_lib_save_LIBS=$LIBS
8240LIBS="-lresolv $LIBS"
8241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8242/* end confdefs.h. */
8243
8244/* Override any GCC internal prototype to avoid an error.
8245 Use char because int might match the return type of a GCC
8246 builtin and then its argument prototype would still apply. */
8247#ifdef __cplusplus
8248extern "C"
8249#endif
8250char strcasecmp ();
8251int
8252main ()
8253{
8254return strcasecmp ();
8255 ;
8256 return 0;
8257}
8258_ACEOF
8259if ac_fn_c_try_link "$LINENO"; then :
8260 ac_cv_lib_resolv_strcasecmp=yes
8261else
8262 ac_cv_lib_resolv_strcasecmp=no
8263fi
8264rm -f core conftest.err conftest.$ac_objext \
8265 conftest$ac_exeext conftest.$ac_ext
8266LIBS=$ac_check_lib_save_LIBS
8267fi
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8269$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8270if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8271 LIBS="$LIBS -lresolv"
8272fi
8273
8274
8275fi
8276
8277for ac_func in utimes
8278do :
8279 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8280if test "x$ac_cv_func_utimes" = xyes; then :
8281 cat >>confdefs.h <<_ACEOF
8282#define HAVE_UTIMES 1
8283_ACEOF
8284
8285else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8287$as_echo_n "checking for utimes in -lc89... " >&6; }
8288if ${ac_cv_lib_c89_utimes+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290else
8291 ac_check_lib_save_LIBS=$LIBS
8292LIBS="-lc89 $LIBS"
8293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294/* end confdefs.h. */
8295
8296/* Override any GCC internal prototype to avoid an error.
8297 Use char because int might match the return type of a GCC
8298 builtin and then its argument prototype would still apply. */
8299#ifdef __cplusplus
8300extern "C"
8301#endif
8302char utimes ();
8303int
8304main ()
8305{
8306return utimes ();
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311if ac_fn_c_try_link "$LINENO"; then :
8312 ac_cv_lib_c89_utimes=yes
8313else
8314 ac_cv_lib_c89_utimes=no
8315fi
8316rm -f core conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
8318LIBS=$ac_check_lib_save_LIBS
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8321$as_echo "$ac_cv_lib_c89_utimes" >&6; }
8322if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8323 $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8324
8325 LIBS="$LIBS -lc89"
8326fi
8327
8328
8329fi
8330done
8331
8332
8333for ac_header in libutil.h
8334do :
8335 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8336if test "x$ac_cv_header_libutil_h" = xyes; then :
8337 cat >>confdefs.h <<_ACEOF
8338#define HAVE_LIBUTIL_H 1
8339_ACEOF
8340
8341fi
8342
8343done
8344
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5
8346$as_echo_n "checking for library containing fmt_scaled... " >&6; }
8347if ${ac_cv_search_fmt_scaled+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349else
8350 ac_func_search_save_LIBS=$LIBS
8351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h. */
8353
8354/* Override any GCC internal prototype to avoid an error.
8355 Use char because int might match the return type of a GCC
8356 builtin and then its argument prototype would still apply. */
8357#ifdef __cplusplus
8358extern "C"
8359#endif
8360char fmt_scaled ();
8361int
8362main ()
8363{
8364return fmt_scaled ();
8365 ;
8366 return 0;
8367}
8368_ACEOF
8369for ac_lib in '' util bsd; do
8370 if test -z "$ac_lib"; then
8371 ac_res="none required"
8372 else
8373 ac_res=-l$ac_lib
8374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8375 fi
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 ac_cv_search_fmt_scaled=$ac_res
8378fi
8379rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext
8381 if ${ac_cv_search_fmt_scaled+:} false; then :
8382 break
8383fi
8384done
8385if ${ac_cv_search_fmt_scaled+:} false; then :
8386
8387else
8388 ac_cv_search_fmt_scaled=no
8389fi
8390rm conftest.$ac_ext
8391LIBS=$ac_func_search_save_LIBS
8392fi
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5
8394$as_echo "$ac_cv_search_fmt_scaled" >&6; }
8395ac_res=$ac_cv_search_fmt_scaled
8396if test "$ac_res" != no; then :
8397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8398
8399fi
8400
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8402$as_echo_n "checking for library containing login... " >&6; }
8403if ${ac_cv_search_login+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405else
8406 ac_func_search_save_LIBS=$LIBS
8407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h. */
8409
8410/* Override any GCC internal prototype to avoid an error.
8411 Use char because int might match the return type of a GCC
8412 builtin and then its argument prototype would still apply. */
8413#ifdef __cplusplus
8414extern "C"
8415#endif
8416char login ();
8417int
8418main ()
8419{
8420return login ();
8421 ;
8422 return 0;
8423}
8424_ACEOF
8425for ac_lib in '' util bsd; do
8426 if test -z "$ac_lib"; then
8427 ac_res="none required"
8428 else
8429 ac_res=-l$ac_lib
8430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8431 fi
8432 if ac_fn_c_try_link "$LINENO"; then :
8433 ac_cv_search_login=$ac_res
8434fi
8435rm -f core conftest.err conftest.$ac_objext \
8436 conftest$ac_exeext
8437 if ${ac_cv_search_login+:} false; then :
8438 break
8439fi
8440done
8441if ${ac_cv_search_login+:} false; then :
8442
8443else
8444 ac_cv_search_login=no
8445fi
8446rm conftest.$ac_ext
8447LIBS=$ac_func_search_save_LIBS
8448fi
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8450$as_echo "$ac_cv_search_login" >&6; }
8451ac_res=$ac_cv_search_login
8452if test "$ac_res" != no; then :
8453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8454
8455fi
8456
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5
8458$as_echo_n "checking for library containing logout... " >&6; }
8459if ${ac_cv_search_logout+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461else
8462 ac_func_search_save_LIBS=$LIBS
8463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h. */
8465
8466/* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8469#ifdef __cplusplus
8470extern "C"
8471#endif
8472char logout ();
8473int
8474main ()
8475{
8476return logout ();
8477 ;
8478 return 0;
8479}
8480_ACEOF
8481for ac_lib in '' util bsd; do
8482 if test -z "$ac_lib"; then
8483 ac_res="none required"
8484 else
8485 ac_res=-l$ac_lib
8486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8487 fi
8488 if ac_fn_c_try_link "$LINENO"; then :
8489 ac_cv_search_logout=$ac_res
8490fi
8491rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext
8493 if ${ac_cv_search_logout+:} false; then :
8494 break
8495fi
8496done
8497if ${ac_cv_search_logout+:} false; then :
8498
8499else
8500 ac_cv_search_logout=no
8501fi
8502rm conftest.$ac_ext
8503LIBS=$ac_func_search_save_LIBS
8504fi
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5
8506$as_echo "$ac_cv_search_logout" >&6; }
8507ac_res=$ac_cv_search_logout
8508if test "$ac_res" != no; then :
8509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8510
8511fi
8512
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5
8514$as_echo_n "checking for library containing logwtmp... " >&6; }
8515if ${ac_cv_search_logwtmp+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517else
8518 ac_func_search_save_LIBS=$LIBS
8519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520/* end confdefs.h. */
8521
8522/* Override any GCC internal prototype to avoid an error.
8523 Use char because int might match the return type of a GCC
8524 builtin and then its argument prototype would still apply. */
8525#ifdef __cplusplus
8526extern "C"
8527#endif
8528char logwtmp ();
8529int
8530main ()
8531{
8532return logwtmp ();
8533 ;
8534 return 0;
8535}
8536_ACEOF
8537for ac_lib in '' util bsd; do
8538 if test -z "$ac_lib"; then
8539 ac_res="none required"
8540 else
8541 ac_res=-l$ac_lib
8542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8543 fi
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 ac_cv_search_logwtmp=$ac_res
8546fi
8547rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext
8549 if ${ac_cv_search_logwtmp+:} false; then :
8550 break
8551fi
8552done
8553if ${ac_cv_search_logwtmp+:} false; then :
8554
8555else
8556 ac_cv_search_logwtmp=no
8557fi
8558rm conftest.$ac_ext
8559LIBS=$ac_func_search_save_LIBS
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5
8562$as_echo "$ac_cv_search_logwtmp" >&6; }
8563ac_res=$ac_cv_search_logwtmp
8564if test "$ac_res" != no; then :
8565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8566
8567fi
8568
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
8570$as_echo_n "checking for library containing openpty... " >&6; }
8571if ${ac_cv_search_openpty+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573else
8574 ac_func_search_save_LIBS=$LIBS
8575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h. */
8577
8578/* Override any GCC internal prototype to avoid an error.
8579 Use char because int might match the return type of a GCC
8580 builtin and then its argument prototype would still apply. */
8581#ifdef __cplusplus
8582extern "C"
8583#endif
8584char openpty ();
8585int
8586main ()
8587{
8588return openpty ();
8589 ;
8590 return 0;
8591}
8592_ACEOF
8593for ac_lib in '' util bsd; do
8594 if test -z "$ac_lib"; then
8595 ac_res="none required"
8596 else
8597 ac_res=-l$ac_lib
8598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8599 fi
8600 if ac_fn_c_try_link "$LINENO"; then :
8601 ac_cv_search_openpty=$ac_res
8602fi
8603rm -f core conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext
8605 if ${ac_cv_search_openpty+:} false; then :
8606 break
8607fi
8608done
8609if ${ac_cv_search_openpty+:} false; then :
8610
8611else
8612 ac_cv_search_openpty=no
8613fi
8614rm conftest.$ac_ext
8615LIBS=$ac_func_search_save_LIBS
8616fi
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
8618$as_echo "$ac_cv_search_openpty" >&6; }
8619ac_res=$ac_cv_search_openpty
8620if test "$ac_res" != no; then :
8621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8622
8623fi
8624
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5
8626$as_echo_n "checking for library containing updwtmp... " >&6; }
8627if ${ac_cv_search_updwtmp+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629else
8630 ac_func_search_save_LIBS=$LIBS
8631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632/* end confdefs.h. */
8633
8634/* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8637#ifdef __cplusplus
8638extern "C"
8639#endif
8640char updwtmp ();
8641int
8642main ()
8643{
8644return updwtmp ();
8645 ;
8646 return 0;
8647}
8648_ACEOF
8649for ac_lib in '' util bsd; do
8650 if test -z "$ac_lib"; then
8651 ac_res="none required"
8652 else
8653 ac_res=-l$ac_lib
8654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8655 fi
8656 if ac_fn_c_try_link "$LINENO"; then :
8657 ac_cv_search_updwtmp=$ac_res
8658fi
8659rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext
8661 if ${ac_cv_search_updwtmp+:} false; then :
8662 break
8663fi
8664done
8665if ${ac_cv_search_updwtmp+:} false; then :
8666
8667else
8668 ac_cv_search_updwtmp=no
8669fi
8670rm conftest.$ac_ext
8671LIBS=$ac_func_search_save_LIBS
8672fi
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5
8674$as_echo "$ac_cv_search_updwtmp" >&6; }
8675ac_res=$ac_cv_search_updwtmp
8676if test "$ac_res" != no; then :
8677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8678
8679fi
8680
8681for ac_func in fmt_scaled login logout openpty updwtmp logwtmp
8682do :
8683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8684ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8685if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8686 cat >>confdefs.h <<_ACEOF
8687#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8688_ACEOF
8689
8690fi
8691done
8692
8693
8694for ac_func in strftime
8695do :
8696 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8697if test "x$ac_cv_func_strftime" = xyes; then :
8698 cat >>confdefs.h <<_ACEOF
8699#define HAVE_STRFTIME 1
8700_ACEOF
8701
8702else
8703 # strftime is in -lintl on SCO UNIX.
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8705$as_echo_n "checking for strftime in -lintl... " >&6; }
8706if ${ac_cv_lib_intl_strftime+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708else
8709 ac_check_lib_save_LIBS=$LIBS
8710LIBS="-lintl $LIBS"
8711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712/* end confdefs.h. */
8713
8714/* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717#ifdef __cplusplus
8718extern "C"
8719#endif
8720char strftime ();
8721int
8722main ()
8723{
8724return strftime ();
8725 ;
8726 return 0;
8727}
8728_ACEOF
8729if ac_fn_c_try_link "$LINENO"; then :
8730 ac_cv_lib_intl_strftime=yes
8731else
8732 ac_cv_lib_intl_strftime=no
8733fi
8734rm -f core conftest.err conftest.$ac_objext \
8735 conftest$ac_exeext conftest.$ac_ext
8736LIBS=$ac_check_lib_save_LIBS
8737fi
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8739$as_echo "$ac_cv_lib_intl_strftime" >&6; }
8740if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8741 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8742
8743LIBS="-lintl $LIBS"
8744fi
8745
8746fi
8747done
8748
8749
8750# Check for ALTDIRFUNC glob() extension
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8752$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h. */
8755
8756 #include <glob.h>
8757 #ifdef GLOB_ALTDIRFUNC
8758 FOUNDIT
8759 #endif
8760
8761_ACEOF
8762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8764
8765
8766$as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8769$as_echo "yes" >&6; }
8770
8771else
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774$as_echo "no" >&6; }
8775
8776
8777fi
8778rm -f conftest*
8779
8780
8781# Check for g.gl_matchc glob() extension
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8783$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785/* end confdefs.h. */
8786 #include <glob.h>
8787int
8788main ()
8789{
8790 glob_t g; g.gl_matchc = 1;
8791 ;
8792 return 0;
8793}
8794_ACEOF
8795if ac_fn_c_try_compile "$LINENO"; then :
8796
8797
8798$as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801$as_echo "yes" >&6; }
8802
8803else
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806$as_echo "no" >&6; }
8807
8808fi
8809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810
8811# Check for g.gl_statv glob() extension
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8813$as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815/* end confdefs.h. */
8816 #include <glob.h>
8817int
8818main ()
8819{
8820
8821#ifndef GLOB_KEEPSTAT
8822#error "glob does not support GLOB_KEEPSTAT extension"
8823#endif
8824glob_t g;
8825g.gl_statv = NULL;
8826
8827 ;
8828 return 0;
8829}
8830_ACEOF
8831if ac_fn_c_try_compile "$LINENO"; then :
8832
8833
8834$as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837$as_echo "yes" >&6; }
8838
8839else
8840
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843
8844
8845fi
8846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847
8848ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8849"
8850if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
8851 ac_have_decl=1
8852else
8853 ac_have_decl=0
8854fi
8855
8856cat >>confdefs.h <<_ACEOF
8857#define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8858_ACEOF
8859
8860
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8862$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8863if test "$cross_compiling" = yes; then :
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8866$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8867 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8868
8869
8870
8871else
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873/* end confdefs.h. */
8874
8875#include <sys/types.h>
8876#include <dirent.h>
8877int
8878main ()
8879{
8880
8881 struct dirent d;
8882 exit(sizeof(d.d_name)<=sizeof(char));
8883
8884 ;
8885 return 0;
8886}
8887_ACEOF
8888if ac_fn_c_try_run "$LINENO"; then :
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8890$as_echo "yes" >&6; }
8891else
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894$as_echo "no" >&6; }
8895
8896$as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8897
8898
8899fi
8900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901 conftest.$ac_objext conftest.beam conftest.$ac_ext
8902fi
8903
8904
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8906$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8907if test -d "/proc/$$/fd" ; then
8908
8909$as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8910
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8912$as_echo "yes" >&6; }
8913else
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915$as_echo "no" >&6; }
8916fi
8917
8918# Check whether user wants S/Key support
8919SKEY_MSG="no"
8920
8921# Check whether --with-skey was given.
8922if test "${with_skey+set}" = set; then :
8923 withval=$with_skey;
8924 if test "x$withval" != "xno" ; then
8925
8926 if test "x$withval" != "xyes" ; then
8927 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8928 LDFLAGS="$LDFLAGS -L${withval}/lib"
8929 fi
8930
8931
8932$as_echo "#define SKEY 1" >>confdefs.h
8933
8934 LIBS="-lskey $LIBS"
8935 SKEY_MSG="yes"
8936
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8938$as_echo_n "checking for s/key support... " >&6; }
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h. */
8941
8942#include <stdio.h>
8943#include <skey.h>
8944
8945int
8946main ()
8947{
8948
8949 char *ff = skey_keyinfo(""); ff="";
8950 exit(0);
8951
8952 ;
8953 return 0;
8954}
8955_ACEOF
8956if ac_fn_c_try_link "$LINENO"; then :
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8958$as_echo "yes" >&6; }
8959else
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962$as_echo "no" >&6; }
8963 as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8964
8965fi
8966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8969$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971/* end confdefs.h. */
8972
8973#include <stdio.h>
8974#include <skey.h>
8975
8976int
8977main ()
8978{
8979
8980 (void)skeychallenge(NULL,"name","",0);
8981
8982 ;
8983 return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_compile "$LINENO"; then :
8987
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8989$as_echo "yes" >&6; }
8990
8991$as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8992
8993else
8994
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996$as_echo "no" >&6; }
8997
8998fi
8999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001
9002
9003fi
9004
9005
9006# Check whether user wants TCP wrappers support
9007TCPW_MSG="no"
9008
9009# Check whether --with-tcp-wrappers was given.
9010if test "${with_tcp_wrappers+set}" = set; then :
9011 withval=$with_tcp_wrappers;
9012 if test "x$withval" != "xno" ; then
9013 saved_LIBS="$LIBS"
9014 saved_LDFLAGS="$LDFLAGS"
9015 saved_CPPFLAGS="$CPPFLAGS"
9016 if test -n "${withval}" && \
9017 test "x${withval}" != "xyes"; then
9018 if test -d "${withval}/lib"; then
9019 if test -n "${need_dash_r}"; then
9020 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9021 else
9022 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9023 fi
9024 else
9025 if test -n "${need_dash_r}"; then
9026 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9027 else
9028 LDFLAGS="-L${withval} ${LDFLAGS}"
9029 fi
9030 fi
9031 if test -d "${withval}/include"; then
9032 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9033 else
9034 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9035 fi
9036 fi
9037 LIBS="-lwrap $LIBS"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
9039$as_echo_n "checking for libwrap... " >&6; }
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h. */
9042
9043#include <sys/types.h>
9044#include <sys/socket.h>
9045#include <netinet/in.h>
9046#include <tcpd.h>
9047int deny_severity = 0, allow_severity = 0;
9048
9049int
9050main ()
9051{
9052
9053 hosts_access(0);
9054
9055 ;
9056 return 0;
9057}
9058_ACEOF
9059if ac_fn_c_try_link "$LINENO"; then :
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9062$as_echo "yes" >&6; }
9063
9064$as_echo "#define LIBWRAP 1" >>confdefs.h
9065
9066 SSHDLIBS="$SSHDLIBS -lwrap"
9067 TCPW_MSG="yes"
9068
9069else
9070
9071 as_fn_error $? "*** libwrap missing" "$LINENO" 5
9072
9073
9074fi
9075rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS="$saved_LIBS"
9078 fi
9079
9080
9081fi
9082
9083
9084# Check whether user wants to use ldns
9085LDNS_MSG="no"
9086
9087# Check whether --with-ldns was given.
9088if test "${with_ldns+set}" = set; then :
9089 withval=$with_ldns;
9090 if test "x$withval" != "xno" ; then
9091
9092 if test "x$withval" != "xyes" ; then
9093 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9094 LDFLAGS="$LDFLAGS -L${withval}/lib"
9095 fi
9096
9097
9098$as_echo "#define HAVE_LDNS 1" >>confdefs.h
9099
9100 LIBS="-lldns $LIBS"
9101 LDNS_MSG="yes"
9102
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5
9104$as_echo_n "checking for ldns support... " >&6; }
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h. */
9107
9108#include <stdio.h>
9109#include <stdlib.h>
9110#include <stdint.h>
9111#include <ldns/ldns.h>
9112int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); }
9113
9114
9115_ACEOF
9116if ac_fn_c_try_link "$LINENO"; then :
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9118$as_echo "yes" >&6; }
9119else
9120
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122$as_echo "no" >&6; }
9123 as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5
9124
9125fi
9126rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9128 fi
9129
9130
9131fi
9132
9133
9134# Check whether user wants libedit support
9135LIBEDIT_MSG="no"
9136
9137# Check whether --with-libedit was given.
9138if test "${with_libedit+set}" = set; then :
9139 withval=$with_libedit; if test "x$withval" != "xno" ; then
9140 if test "x$withval" = "xyes" ; then
9141 if test -n "$ac_tool_prefix"; then
9142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9143set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145$as_echo_n "checking for $ac_word... " >&6; }
9146if ${ac_cv_path_PKGCONFIG+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148else
9149 case $PKGCONFIG in
9150 [\\/]* | ?:[\\/]*)
9151 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
9152 ;;
9153 *)
9154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157 IFS=$as_save_IFS
9158 test -z "$as_dir" && as_dir=.
9159 for ac_exec_ext in '' $ac_executable_extensions; do
9160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9161 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9163 break 2
9164 fi
9165done
9166 done
9167IFS=$as_save_IFS
9168
9169 ;;
9170esac
9171fi
9172PKGCONFIG=$ac_cv_path_PKGCONFIG
9173if test -n "$PKGCONFIG"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
9175$as_echo "$PKGCONFIG" >&6; }
9176else
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178$as_echo "no" >&6; }
9179fi
9180
9181
9182fi
9183if test -z "$ac_cv_path_PKGCONFIG"; then
9184 ac_pt_PKGCONFIG=$PKGCONFIG
9185 # Extract the first word of "pkg-config", so it can be a program name with args.
9186set dummy pkg-config; ac_word=$2
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188$as_echo_n "checking for $ac_word... " >&6; }
9189if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
9190 $as_echo_n "(cached) " >&6
9191else
9192 case $ac_pt_PKGCONFIG in
9193 [\\/]* | ?:[\\/]*)
9194 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
9195 ;;
9196 *)
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198for as_dir in $PATH
9199do
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9207 fi
9208done
9209 done
9210IFS=$as_save_IFS
9211
9212 ;;
9213esac
9214fi
9215ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
9216if test -n "$ac_pt_PKGCONFIG"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
9218$as_echo "$ac_pt_PKGCONFIG" >&6; }
9219else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221$as_echo "no" >&6; }
9222fi
9223
9224 if test "x$ac_pt_PKGCONFIG" = x; then
9225 PKGCONFIG="no"
9226 else
9227 case $cross_compiling:$ac_tool_warned in
9228yes:)
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231ac_tool_warned=yes ;;
9232esac
9233 PKGCONFIG=$ac_pt_PKGCONFIG
9234 fi
9235else
9236 PKGCONFIG="$ac_cv_path_PKGCONFIG"
9237fi
9238
9239 if test "x$PKGCONFIG" != "xno"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
9241$as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
9242 if "$PKGCONFIG" libedit; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9244$as_echo "yes" >&6; }
9245 use_pkgconfig_for_libedit=yes
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
9249 fi
9250 fi
9251 else
9252 CPPFLAGS="$CPPFLAGS -I${withval}/include"
9253 if test -n "${need_dash_r}"; then
9254 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9255 else
9256 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9257 fi
9258 fi
9259 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
9260 LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
9261 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
9262 else
9263 LIBEDIT="-ledit -lcurses"
9264 fi
9265 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
9267$as_echo_n "checking for el_init in -ledit... " >&6; }
9268if ${ac_cv_lib_edit_el_init+:} false; then :
9269 $as_echo_n "(cached) " >&6
9270else
9271 ac_check_lib_save_LIBS=$LIBS
9272LIBS="-ledit $OTHERLIBS
9273 $LIBS"
9274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h. */
9276
9277/* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9280#ifdef __cplusplus
9281extern "C"
9282#endif
9283char el_init ();
9284int
9285main ()
9286{
9287return el_init ();
9288 ;
9289 return 0;
9290}
9291_ACEOF
9292if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_lib_edit_el_init=yes
9294else
9295 ac_cv_lib_edit_el_init=no
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299LIBS=$ac_check_lib_save_LIBS
9300fi
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
9302$as_echo "$ac_cv_lib_edit_el_init" >&6; }
9303if test "x$ac_cv_lib_edit_el_init" = xyes; then :
9304
9305$as_echo "#define USE_LIBEDIT 1" >>confdefs.h
9306
9307 LIBEDIT_MSG="yes"
9308
9309
9310else
9311 as_fn_error $? "libedit not found" "$LINENO" 5
9312fi
9313
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
9315$as_echo_n "checking if libedit version is compatible... " >&6; }
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h. */
9318 #include <histedit.h>
9319int
9320main ()
9321{
9322
9323 int i = H_SETSIZE;
9324 el_init("", NULL, NULL, NULL);
9325 exit(0);
9326
9327 ;
9328 return 0;
9329}
9330_ACEOF
9331if ac_fn_c_try_compile "$LINENO"; then :
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333$as_echo "yes" >&6; }
9334else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336$as_echo "no" >&6; }
9337 as_fn_error $? "libedit version is not compatible" "$LINENO" 5
9338
9339fi
9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341 fi
9342
9343fi
9344
9345
9346AUDIT_MODULE=none
9347
9348# Check whether --with-audit was given.
9349if test "${with_audit+set}" = set; then :
9350 withval=$with_audit;
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
9352$as_echo_n "checking for supported audit module... " >&6; }
9353 case "$withval" in
9354 bsm)
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
9356$as_echo "bsm" >&6; }
9357 AUDIT_MODULE=bsm
9358 for ac_header in bsm/audit.h
9359do :
9360 ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
9361#ifdef HAVE_TIME_H
9362# include <time.h>
9363#endif
9364
9365
9366"
9367if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
9368 cat >>confdefs.h <<_ACEOF
9369#define HAVE_BSM_AUDIT_H 1
9370_ACEOF
9371
9372else
9373 as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
9374fi
9375
9376done
9377
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
9379$as_echo_n "checking for getaudit in -lbsm... " >&6; }
9380if ${ac_cv_lib_bsm_getaudit+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382else
9383 ac_check_lib_save_LIBS=$LIBS
9384LIBS="-lbsm $LIBS"
9385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h. */
9387
9388/* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9391#ifdef __cplusplus
9392extern "C"
9393#endif
9394char getaudit ();
9395int
9396main ()
9397{
9398return getaudit ();
9399 ;
9400 return 0;
9401}
9402_ACEOF
9403if ac_fn_c_try_link "$LINENO"; then :
9404 ac_cv_lib_bsm_getaudit=yes
9405else
9406 ac_cv_lib_bsm_getaudit=no
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410LIBS=$ac_check_lib_save_LIBS
9411fi
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
9413$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
9414if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
9415 cat >>confdefs.h <<_ACEOF
9416#define HAVE_LIBBSM 1
9417_ACEOF
9418
9419 LIBS="-lbsm $LIBS"
9420
9421else
9422 as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
9423fi
9424
9425 for ac_func in getaudit
9426do :
9427 ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
9428if test "x$ac_cv_func_getaudit" = xyes; then :
9429 cat >>confdefs.h <<_ACEOF
9430#define HAVE_GETAUDIT 1
9431_ACEOF
9432
9433else
9434 as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
9435fi
9436done
9437
9438 # These are optional
9439 for ac_func in getaudit_addr aug_get_machine
9440do :
9441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9443if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9444 cat >>confdefs.h <<_ACEOF
9445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9446_ACEOF
9447
9448fi
9449done
9450
9451
9452$as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
9453
9454 if test "$sol2ver" -eq 11; then
9455 SSHDLIBS="$SSHDLIBS -lscf"
9456
9457$as_echo "#define BROKEN_BSM_API 1" >>confdefs.h
9458
9459 fi
9460 ;;
9461 linux)
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
9463$as_echo "linux" >&6; }
9464 AUDIT_MODULE=linux
9465 for ac_header in libaudit.h
9466do :
9467 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
9468if test "x$ac_cv_header_libaudit_h" = xyes; then :
9469 cat >>confdefs.h <<_ACEOF
9470#define HAVE_LIBAUDIT_H 1
9471_ACEOF
9472
9473fi
9474
9475done
9476
9477 SSHDLIBS="$SSHDLIBS -laudit"
9478
9479$as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
9480
9481 ;;
9482 debug)
9483 AUDIT_MODULE=debug
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
9485$as_echo "debug" >&6; }
9486
9487$as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
9488
9489 ;;
9490 no)
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492$as_echo "no" >&6; }
9493 ;;
9494 *)
9495 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
9496 ;;
9497 esac
9498
9499fi
9500
9501
9502for ac_func in \
9503 arc4random \
9504 arc4random_buf \
9505 arc4random_uniform \
9506 asprintf \
9507 b64_ntop \
9508 __b64_ntop \
9509 b64_pton \
9510 __b64_pton \
9511 bcopy \
9512 bindresvport_sa \
9513 clock \
9514 closefrom \
9515 dirfd \
9516 fchmod \
9517 fchown \
9518 freeaddrinfo \
9519 fstatvfs \
9520 futimes \
9521 getaddrinfo \
9522 getcwd \
9523 getgrouplist \
9524 getnameinfo \
9525 getopt \
9526 getpeereid \
9527 getpeerucred \
9528 _getpty \
9529 getrlimit \
9530 getttyent \
9531 glob \
9532 group_from_gid \
9533 inet_aton \
9534 inet_ntoa \
9535 inet_ntop \
9536 innetgr \
9537 login_getcapbool \
9538 md5_crypt \
9539 memmove \
9540 mkdtemp \
9541 mmap \
9542 ngetaddrinfo \
9543 nsleep \
9544 ogetaddrinfo \
9545 openlog_r \
9546 poll \
9547 prctl \
9548 pstat \
9549 readpassphrase \
9550 realpath \
9551 recvmsg \
9552 rresvport_af \
9553 sendmsg \
9554 setdtablesize \
9555 setegid \
9556 setenv \
9557 seteuid \
9558 setgroupent \
9559 setgroups \
9560 setlinebuf \
9561 setlogin \
9562 setpassent\
9563 setpcred \
9564 setproctitle \
9565 setregid \
9566 setreuid \
9567 setrlimit \
9568 setsid \
9569 setvbuf \
9570 sigaction \
9571 sigvec \
9572 snprintf \
9573 socketpair \
9574 statfs \
9575 statvfs \
9576 strdup \
9577 strerror \
9578 strlcat \
9579 strlcpy \
9580 strmode \
9581 strnlen \
9582 strnvis \
9583 strptime \
9584 strtonum \
9585 strtoll \
9586 strtoul \
9587 swap32 \
9588 sysconf \
9589 tcgetpgrp \
9590 timingsafe_bcmp \
9591 truncate \
9592 unsetenv \
9593 updwtmpx \
9594 user_from_uid \
9595 vasprintf \
9596 vhangup \
9597 vsnprintf \
9598 waitpid \
9599
9600do :
9601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9603if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9604 cat >>confdefs.h <<_ACEOF
9605#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9606_ACEOF
9607
9608fi
9609done
9610
9611
9612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h. */
9614 #include <ctype.h>
9615int
9616main ()
9617{
9618 return (isblank('a'));
9619 ;
9620 return 0;
9621}
9622_ACEOF
9623if ac_fn_c_try_link "$LINENO"; then :
9624
9625$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9626
9627
9628fi
9629rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631
9632# PKCS#11 support requires dlopen() and co
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9634$as_echo_n "checking for library containing dlopen... " >&6; }
9635if ${ac_cv_search_dlopen+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637else
9638 ac_func_search_save_LIBS=$LIBS
9639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641
9642/* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9645#ifdef __cplusplus
9646extern "C"
9647#endif
9648char dlopen ();
9649int
9650main ()
9651{
9652return dlopen ();
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657for ac_lib in '' dl; do
9658 if test -z "$ac_lib"; then
9659 ac_res="none required"
9660 else
9661 ac_res=-l$ac_lib
9662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9663 fi
9664 if ac_fn_c_try_link "$LINENO"; then :
9665 ac_cv_search_dlopen=$ac_res
9666fi
9667rm -f core conftest.err conftest.$ac_objext \
9668 conftest$ac_exeext
9669 if ${ac_cv_search_dlopen+:} false; then :
9670 break
9671fi
9672done
9673if ${ac_cv_search_dlopen+:} false; then :
9674
9675else
9676 ac_cv_search_dlopen=no
9677fi
9678rm conftest.$ac_ext
9679LIBS=$ac_func_search_save_LIBS
9680fi
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9682$as_echo "$ac_cv_search_dlopen" >&6; }
9683ac_res=$ac_cv_search_dlopen
9684if test "$ac_res" != no; then :
9685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9686
9687$as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9688
9689
9690fi
9691
9692
9693# IRIX has a const char return value for gai_strerror()
9694for ac_func in gai_strerror
9695do :
9696 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9697if test "x$ac_cv_func_gai_strerror" = xyes; then :
9698 cat >>confdefs.h <<_ACEOF
9699#define HAVE_GAI_STRERROR 1
9700_ACEOF
9701
9702 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9703
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705/* end confdefs.h. */
9706
9707#include <sys/types.h>
9708#include <sys/socket.h>
9709#include <netdb.h>
9710
9711const char *gai_strerror(int);
9712
9713int
9714main ()
9715{
9716
9717 char *str;
9718 str = gai_strerror(0);
9719
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724if ac_fn_c_try_compile "$LINENO"; then :
9725
9726
9727$as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9728
9729fi
9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731fi
9732done
9733
9734
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9736$as_echo_n "checking for library containing nanosleep... " >&6; }
9737if ${ac_cv_search_nanosleep+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739else
9740 ac_func_search_save_LIBS=$LIBS
9741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742/* end confdefs.h. */
9743
9744/* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
9747#ifdef __cplusplus
9748extern "C"
9749#endif
9750char nanosleep ();
9751int
9752main ()
9753{
9754return nanosleep ();
9755 ;
9756 return 0;
9757}
9758_ACEOF
9759for ac_lib in '' rt posix4; do
9760 if test -z "$ac_lib"; then
9761 ac_res="none required"
9762 else
9763 ac_res=-l$ac_lib
9764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9765 fi
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 ac_cv_search_nanosleep=$ac_res
9768fi
9769rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext
9771 if ${ac_cv_search_nanosleep+:} false; then :
9772 break
9773fi
9774done
9775if ${ac_cv_search_nanosleep+:} false; then :
9776
9777else
9778 ac_cv_search_nanosleep=no
9779fi
9780rm conftest.$ac_ext
9781LIBS=$ac_func_search_save_LIBS
9782fi
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9784$as_echo "$ac_cv_search_nanosleep" >&6; }
9785ac_res=$ac_cv_search_nanosleep
9786if test "$ac_res" != no; then :
9787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9788
9789$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9790
9791fi
9792
9793
9794ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9795if test "x$ac_cv_have_decl_getrusage" = xyes; then :
9796 for ac_func in getrusage
9797do :
9798 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9799if test "x$ac_cv_func_getrusage" = xyes; then :
9800 cat >>confdefs.h <<_ACEOF
9801#define HAVE_GETRUSAGE 1
9802_ACEOF
9803
9804fi
9805done
9806
9807fi
9808
9809ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9810#ifdef HAVE_STRING_H
9811# include <string.h>
9812#endif
9813
9814"
9815if test "x$ac_cv_have_decl_strsep" = xyes; then :
9816 for ac_func in strsep
9817do :
9818 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9819if test "x$ac_cv_func_strsep" = xyes; then :
9820 cat >>confdefs.h <<_ACEOF
9821#define HAVE_STRSEP 1
9822_ACEOF
9823
9824fi
9825done
9826
9827fi
9828
9829
9830ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9831
9832"
9833if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
9834 $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9835
9836else
9837 for ac_func in tcsendbreak
9838do :
9839 ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9840if test "x$ac_cv_func_tcsendbreak" = xyes; then :
9841 cat >>confdefs.h <<_ACEOF
9842#define HAVE_TCSENDBREAK 1
9843_ACEOF
9844
9845fi
9846done
9847
9848fi
9849
9850
9851ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9852"
9853if test "x$ac_cv_have_decl_h_errno" = xyes; then :
9854 ac_have_decl=1
9855else
9856 ac_have_decl=0
9857fi
9858
9859cat >>confdefs.h <<_ACEOF
9860#define HAVE_DECL_H_ERRNO $ac_have_decl
9861_ACEOF
9862
9863
9864ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9865#include <sys/types.h>
9866#include <sys/socket.h>
9867
9868"
9869if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
9870 ac_have_decl=1
9871else
9872 ac_have_decl=0
9873fi
9874
9875cat >>confdefs.h <<_ACEOF
9876#define HAVE_DECL_SHUT_RD $ac_have_decl
9877_ACEOF
9878
9879
9880ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9881#include <sys/types.h>
9882#ifdef HAVE_SYS_STAT_H
9883# include <sys/stat.h>
9884#endif
9885#ifdef HAVE_FCNTL_H
9886# include <fcntl.h>
9887#endif
9888
9889"
9890if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
9891 ac_have_decl=1
9892else
9893 ac_have_decl=0
9894fi
9895
9896cat >>confdefs.h <<_ACEOF
9897#define HAVE_DECL_O_NONBLOCK $ac_have_decl
9898_ACEOF
9899
9900
9901ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9902#include <sys/types.h>
9903#include <sys/uio.h>
9904#include <unistd.h>
9905
9906"
9907if test "x$ac_cv_have_decl_writev" = xyes; then :
9908 ac_have_decl=1
9909else
9910 ac_have_decl=0
9911fi
9912
9913cat >>confdefs.h <<_ACEOF
9914#define HAVE_DECL_WRITEV $ac_have_decl
9915_ACEOF
9916
9917
9918ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9919#include <sys/param.h>
9920
9921"
9922if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
9923 ac_have_decl=1
9924else
9925 ac_have_decl=0
9926fi
9927
9928cat >>confdefs.h <<_ACEOF
9929#define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9930_ACEOF
9931
9932
9933ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9934#include <stddef.h>
9935
9936"
9937if test "x$ac_cv_have_decl_offsetof" = xyes; then :
9938 ac_have_decl=1
9939else
9940 ac_have_decl=0
9941fi
9942
9943cat >>confdefs.h <<_ACEOF
9944#define HAVE_DECL_OFFSETOF $ac_have_decl
9945_ACEOF
9946
9947
9948for ac_func in setresuid
9949do :
9950 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9951if test "x$ac_cv_func_setresuid" = xyes; then :
9952 cat >>confdefs.h <<_ACEOF
9953#define HAVE_SETRESUID 1
9954_ACEOF
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9957$as_echo_n "checking if setresuid seems to work... " >&6; }
9958 if test "$cross_compiling" = yes; then :
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9960$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9961
9962else
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964/* end confdefs.h. */
9965
9966#include <stdlib.h>
9967#include <errno.h>
9968
9969int
9970main ()
9971{
9972
9973 errno=0;
9974 setresuid(0,0,0);
9975 if (errno==ENOSYS)
9976 exit(1);
9977 else
9978 exit(0);
9979
9980 ;
9981 return 0;
9982}
9983_ACEOF
9984if ac_fn_c_try_run "$LINENO"; then :
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9986$as_echo "yes" >&6; }
9987else
9988
9989$as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9990
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9992$as_echo "not implemented" >&6; }
9993fi
9994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9995 conftest.$ac_objext conftest.beam conftest.$ac_ext
9996fi
9997
9998
9999fi
10000done
10001
10002
10003for ac_func in setresgid
10004do :
10005 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
10006if test "x$ac_cv_func_setresgid" = xyes; then :
10007 cat >>confdefs.h <<_ACEOF
10008#define HAVE_SETRESGID 1
10009_ACEOF
10010
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
10012$as_echo_n "checking if setresgid seems to work... " >&6; }
10013 if test "$cross_compiling" = yes; then :
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
10015$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
10016
10017else
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019/* end confdefs.h. */
10020
10021#include <stdlib.h>
10022#include <errno.h>
10023
10024int
10025main ()
10026{
10027
10028 errno=0;
10029 setresgid(0,0,0);
10030 if (errno==ENOSYS)
10031 exit(1);
10032 else
10033 exit(0);
10034
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039if ac_fn_c_try_run "$LINENO"; then :
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041$as_echo "yes" >&6; }
10042else
10043
10044$as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
10045
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
10047$as_echo "not implemented" >&6; }
10048fi
10049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10050 conftest.$ac_objext conftest.beam conftest.$ac_ext
10051fi
10052
10053
10054fi
10055done
10056
10057
10058for ac_func in gettimeofday time
10059do :
10060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10061ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10062if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10063 cat >>confdefs.h <<_ACEOF
10064#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065_ACEOF
10066
10067fi
10068done
10069
10070for ac_func in endutent getutent getutid getutline pututline setutent
10071do :
10072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10073ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10074if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10075 cat >>confdefs.h <<_ACEOF
10076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077_ACEOF
10078
10079fi
10080done
10081
10082for ac_func in utmpname
10083do :
10084 ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
10085if test "x$ac_cv_func_utmpname" = xyes; then :
10086 cat >>confdefs.h <<_ACEOF
10087#define HAVE_UTMPNAME 1
10088_ACEOF
10089
10090fi
10091done
10092
10093for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
10094do :
10095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10096ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10097if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10098 cat >>confdefs.h <<_ACEOF
10099#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10100_ACEOF
10101
10102fi
10103done
10104
10105for ac_func in setutxdb setutxent utmpxname
10106do :
10107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10108ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10109if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10110 cat >>confdefs.h <<_ACEOF
10111#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10112_ACEOF
10113
10114fi
10115done
10116
10117for ac_func in getlastlogxbyname
10118do :
10119 ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
10120if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
10121 cat >>confdefs.h <<_ACEOF
10122#define HAVE_GETLASTLOGXBYNAME 1
10123_ACEOF
10124
10125fi
10126done
10127
10128
10129ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
10130if test "x$ac_cv_func_daemon" = xyes; then :
10131
10132$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
10133
10134else
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
10136$as_echo_n "checking for daemon in -lbsd... " >&6; }
10137if ${ac_cv_lib_bsd_daemon+:} false; then :
10138 $as_echo_n "(cached) " >&6
10139else
10140 ac_check_lib_save_LIBS=$LIBS
10141LIBS="-lbsd $LIBS"
10142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10143/* end confdefs.h. */
10144
10145/* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10148#ifdef __cplusplus
10149extern "C"
10150#endif
10151char daemon ();
10152int
10153main ()
10154{
10155return daemon ();
10156 ;
10157 return 0;
10158}
10159_ACEOF
10160if ac_fn_c_try_link "$LINENO"; then :
10161 ac_cv_lib_bsd_daemon=yes
10162else
10163 ac_cv_lib_bsd_daemon=no
10164fi
10165rm -f core conftest.err conftest.$ac_objext \
10166 conftest$ac_exeext conftest.$ac_ext
10167LIBS=$ac_check_lib_save_LIBS
10168fi
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
10170$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
10171if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
10172 LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
10173
10174fi
10175
10176
10177fi
10178
10179
10180ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10181if test "x$ac_cv_func_getpagesize" = xyes; then :
10182
10183$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10184
10185else
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
10187$as_echo_n "checking for getpagesize in -lucb... " >&6; }
10188if ${ac_cv_lib_ucb_getpagesize+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190else
10191 ac_check_lib_save_LIBS=$LIBS
10192LIBS="-lucb $LIBS"
10193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194/* end confdefs.h. */
10195
10196/* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199#ifdef __cplusplus
10200extern "C"
10201#endif
10202char getpagesize ();
10203int
10204main ()
10205{
10206return getpagesize ();
10207 ;
10208 return 0;
10209}
10210_ACEOF
10211if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_ucb_getpagesize=yes
10213else
10214 ac_cv_lib_ucb_getpagesize=no
10215fi
10216rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218LIBS=$ac_check_lib_save_LIBS
10219fi
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
10221$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
10222if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
10223 LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
10224
10225fi
10226
10227
10228fi
10229
10230
10231# Check for broken snprintf
10232if test "x$ac_cv_func_snprintf" = "xyes" ; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
10234$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
10235 if test "$cross_compiling" = yes; then :
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
10237$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
10238
10239else
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h. */
10242 #include <stdio.h>
10243int
10244main ()
10245{
10246
10247 char b[5];
10248 snprintf(b,5,"123456789");
10249 exit(b[4]!='\0');
10250
10251 ;
10252 return 0;
10253}
10254_ACEOF
10255if ac_fn_c_try_run "$LINENO"; then :
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10257$as_echo "yes" >&6; }
10258else
10259
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261$as_echo "no" >&6; }
10262
10263$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
10264
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
10266$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
10267
10268fi
10269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10270 conftest.$ac_objext conftest.beam conftest.$ac_ext
10271fi
10272
10273fi
10274
10275# If we don't have a working asprintf, then we strongly depend on vsnprintf
10276# returning the right thing on overflow: the number of characters it tried to
10277# create (as per SUSv3)
10278if test "x$ac_cv_func_asprintf" != "xyes" && \
10279 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
10281$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
10282 if test "$cross_compiling" = yes; then :
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
10284$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
10285
10286else
10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h. */
10289
10290#include <sys/types.h>
10291#include <stdio.h>
10292#include <stdarg.h>
10293
10294int x_snprintf(char *str,size_t count,const char *fmt,...)
10295{
10296 size_t ret; va_list ap;
10297 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
10298 return ret;
10299}
10300
10301int
10302main ()
10303{
10304
10305 char x[1];
10306 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
10307
10308 ;
10309 return 0;
10310}
10311_ACEOF
10312if ac_fn_c_try_run "$LINENO"; then :
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10314$as_echo "yes" >&6; }
10315else
10316
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
10319
10320$as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
10321
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
10323$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
10324
10325fi
10326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10327 conftest.$ac_objext conftest.beam conftest.$ac_ext
10328fi
10329
10330fi
10331
10332# On systems where [v]snprintf is broken, but is declared in stdio,
10333# check that the fmt argument is const char * or just char *.
10334# This is only useful for when BROKEN_SNPRINTF
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
10336$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
10337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h. */
10339
10340#include <stdio.h>
10341int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
10342
10343int
10344main ()
10345{
10346
10347 snprintf(0, 0, 0);
10348
10349 ;
10350 return 0;
10351}
10352_ACEOF
10353if ac_fn_c_try_compile "$LINENO"; then :
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10355$as_echo "yes" >&6; }
10356
10357$as_echo "#define SNPRINTF_CONST const" >>confdefs.h
10358
10359else
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361$as_echo "no" >&6; }
10362 $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
10363
10364fi
10365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366
10367# Check for missing getpeereid (or equiv) support
10368NO_PEERCHECK=""
10369if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
10371$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373/* end confdefs.h. */
10374
10375#include <sys/types.h>
10376#include <sys/socket.h>
10377int
10378main ()
10379{
10380int i = SO_PEERCRED;
10381 ;
10382 return 0;
10383}
10384_ACEOF
10385if ac_fn_c_try_compile "$LINENO"; then :
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387$as_echo "yes" >&6; }
10388
10389$as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
10390
10391
10392else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394$as_echo "no" >&6; }
10395 NO_PEERCHECK=1
10396
10397fi
10398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399fi
10400
10401if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
10403$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
10404if test "$cross_compiling" = yes; then :
10405
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407$as_echo "yes" >&6; }
10408 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10409
10410
10411
10412else
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h. */
10415
10416#include <stdlib.h>
10417
10418int
10419main ()
10420{
10421
10422 char template[]="conftest.mkstemp-test";
10423 if (mkstemp(template) == -1)
10424 exit(1);
10425 unlink(template);
10426 exit(0);
10427
10428 ;
10429 return 0;
10430}
10431_ACEOF
10432if ac_fn_c_try_run "$LINENO"; then :
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435$as_echo "no" >&6; }
10436
10437else
10438
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10440$as_echo "yes" >&6; }
10441
10442$as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10443
10444
10445fi
10446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10447 conftest.$ac_objext conftest.beam conftest.$ac_ext
10448fi
10449
10450fi
10451
10452if test ! -z "$check_for_openpty_ctty_bug"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
10454$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
10455 if test "$cross_compiling" = yes; then :
10456
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10458$as_echo "cross-compiling, assuming yes" >&6; }
10459
10460
10461else
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463/* end confdefs.h. */
10464
10465#include <stdio.h>
10466#include <sys/fcntl.h>
10467#include <sys/types.h>
10468#include <sys/wait.h>
10469
10470int
10471main ()
10472{
10473
10474 pid_t pid;
10475 int fd, ptyfd, ttyfd, status;
10476
10477 pid = fork();
10478 if (pid < 0) { /* failed */
10479 exit(1);
10480 } else if (pid > 0) { /* parent */
10481 waitpid(pid, &status, 0);
10482 if (WIFEXITED(status))
10483 exit(WEXITSTATUS(status));
10484 else
10485 exit(2);
10486 } else { /* child */
10487 close(0); close(1); close(2);
10488 setsid();
10489 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
10490 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
10491 if (fd >= 0)
10492 exit(3); /* Acquired ctty: broken */
10493 else
10494 exit(0); /* Did not acquire ctty: OK */
10495 }
10496
10497 ;
10498 return 0;
10499}
10500_ACEOF
10501if ac_fn_c_try_run "$LINENO"; then :
10502
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10504$as_echo "yes" >&6; }
10505
10506else
10507
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509$as_echo "no" >&6; }
10510 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
10511
10512
10513fi
10514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10515 conftest.$ac_objext conftest.beam conftest.$ac_ext
10516fi
10517
10518fi
10519
10520if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10521 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10523$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10524 if test "$cross_compiling" = yes; then :
10525
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10527$as_echo "cross-compiling, assuming yes" >&6; }
10528
10529
10530else
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h. */
10533
10534#include <stdio.h>
10535#include <sys/socket.h>
10536#include <netdb.h>
10537#include <errno.h>
10538#include <netinet/in.h>
10539
10540#define TEST_PORT "2222"
10541
10542int
10543main ()
10544{
10545
10546 int err, sock;
10547 struct addrinfo *gai_ai, *ai, hints;
10548 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10549
10550 memset(&hints, 0, sizeof(hints));
10551 hints.ai_family = PF_UNSPEC;
10552 hints.ai_socktype = SOCK_STREAM;
10553 hints.ai_flags = AI_PASSIVE;
10554
10555 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10556 if (err != 0) {
10557 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10558 exit(1);
10559 }
10560
10561 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10562 if (ai->ai_family != AF_INET6)
10563 continue;
10564
10565 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10566 sizeof(ntop), strport, sizeof(strport),
10567 NI_NUMERICHOST|NI_NUMERICSERV);
10568
10569 if (err != 0) {
10570 if (err == EAI_SYSTEM)
10571 perror("getnameinfo EAI_SYSTEM");
10572 else
10573 fprintf(stderr, "getnameinfo failed: %s\n",
10574 gai_strerror(err));
10575 exit(2);
10576 }
10577
10578 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10579 if (sock < 0)
10580 perror("socket");
10581 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10582 if (errno == EBADF)
10583 exit(3);
10584 }
10585 }
10586 exit(0);
10587
10588 ;
10589 return 0;
10590}
10591_ACEOF
10592if ac_fn_c_try_run "$LINENO"; then :
10593
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595$as_echo "yes" >&6; }
10596
10597else
10598
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600$as_echo "no" >&6; }
10601 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10602
10603
10604fi
10605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10606 conftest.$ac_objext conftest.beam conftest.$ac_ext
10607fi
10608
10609fi
10610
10611if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10612 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10614$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10615 if test "$cross_compiling" = yes; then :
10616
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10618$as_echo "cross-compiling, assuming no" >&6; }
10619
10620
10621else
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623/* end confdefs.h. */
10624
10625#include <stdio.h>
10626#include <sys/socket.h>
10627#include <netdb.h>
10628#include <errno.h>
10629#include <netinet/in.h>
10630
10631#define TEST_PORT "2222"
10632
10633int
10634main ()
10635{
10636
10637 int err, sock;
10638 struct addrinfo *gai_ai, *ai, hints;
10639 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10640
10641 memset(&hints, 0, sizeof(hints));
10642 hints.ai_family = PF_UNSPEC;
10643 hints.ai_socktype = SOCK_STREAM;
10644 hints.ai_flags = AI_PASSIVE;
10645
10646 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10647 if (err != 0) {
10648 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10649 exit(1);
10650 }
10651
10652 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10653 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
10654 continue;
10655
10656 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10657 sizeof(ntop), strport, sizeof(strport),
10658 NI_NUMERICHOST|NI_NUMERICSERV);
10659
10660 if (ai->ai_family == AF_INET && err != 0) {
10661 perror("getnameinfo");
10662 exit(2);
10663 }
10664 }
10665 exit(0);
10666
10667 ;
10668 return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_run "$LINENO"; then :
10672
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10674$as_echo "yes" >&6; }
10675
10676$as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
10677
10678
10679else
10680
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682$as_echo "no" >&6; }
10683 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10684
10685
10686fi
10687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10688 conftest.$ac_objext conftest.beam conftest.$ac_ext
10689fi
10690
10691fi
10692
10693if test "x$check_for_conflicting_getspnam" = "x1"; then
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
10695$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697/* end confdefs.h. */
10698 #include <shadow.h>
10699int
10700main ()
10701{
10702 exit(0);
10703 ;
10704 return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_compile "$LINENO"; then :
10708
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710$as_echo "no" >&6; }
10711
10712else
10713
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10715$as_echo "yes" >&6; }
10716
10717$as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10718
10719
10720
10721fi
10722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723fi
10724
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10726$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10727if ${ac_cv_func_getpgrp_void+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729else
10730 # Use it with a single arg.
10731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h. */
10733$ac_includes_default
10734int
10735main ()
10736{
10737getpgrp (0);
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742if ac_fn_c_try_compile "$LINENO"; then :
10743 ac_cv_func_getpgrp_void=no
10744else
10745 ac_cv_func_getpgrp_void=yes
10746fi
10747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748
10749fi
10750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10751$as_echo "$ac_cv_func_getpgrp_void" >&6; }
10752if test $ac_cv_func_getpgrp_void = yes; then
10753
10754$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10755
10756fi
10757
10758
10759# Search for OpenSSL
10760saved_CPPFLAGS="$CPPFLAGS"
10761saved_LDFLAGS="$LDFLAGS"
10762
10763# Check whether --with-ssl-dir was given.
10764if test "${with_ssl_dir+set}" = set; then :
10765 withval=$with_ssl_dir;
10766 if test "x$withval" != "xno" ; then
10767 case "$withval" in
10768 # Relative paths
10769 ./*|../*) withval="`pwd`/$withval"
10770 esac
10771 if test -d "$withval/lib"; then
10772 if test -n "${need_dash_r}"; then
10773 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10774 else
10775 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10776 fi
10777 elif test -d "$withval/lib64"; then
10778 if test -n "${need_dash_r}"; then
10779 LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10780 else
10781 LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10782 fi
10783 else
10784 if test -n "${need_dash_r}"; then
10785 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10786 else
10787 LDFLAGS="-L${withval} ${LDFLAGS}"
10788 fi
10789 fi
10790 if test -d "$withval/include"; then
10791 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10792 else
10793 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10794 fi
10795 fi
10796
10797
10798fi
10799
10800LIBS="-lcrypto $LIBS"
10801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h. */
10803
10804/* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10807#ifdef __cplusplus
10808extern "C"
10809#endif
10810char RAND_add ();
10811int
10812main ()
10813{
10814return RAND_add ();
10815 ;
10816 return 0;
10817}
10818_ACEOF
10819if ac_fn_c_try_link "$LINENO"; then :
10820
10821$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10822
10823else
10824
10825 if test -n "${need_dash_r}"; then
10826 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10827 else
10828 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10829 fi
10830 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10831 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10832if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
10833
10834else
10835 as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10836fi
10837
10838
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840/* end confdefs.h. */
10841
10842/* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845#ifdef __cplusplus
10846extern "C"
10847#endif
10848char RAND_add ();
10849int
10850main ()
10851{
10852return RAND_add ();
10853 ;
10854 return 0;
10855}
10856_ACEOF
10857if ac_fn_c_try_link "$LINENO"; then :
10858 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10859
10860else
10861
10862 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10863
10864
10865fi
10866rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10868
10869
10870fi
10871rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873
10874# Determine OpenSSL header version
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10876$as_echo_n "checking OpenSSL header version... " >&6; }
10877if test "$cross_compiling" = yes; then :
10878
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10880$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10881
10882
10883else
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885/* end confdefs.h. */
10886
10887#include <stdio.h>
10888#include <string.h>
10889#include <openssl/opensslv.h>
10890#define DATA "conftest.sslincver"
10891
10892int
10893main ()
10894{
10895
10896 FILE *fd;
10897 int rc;
10898
10899 fd = fopen(DATA,"w");
10900 if(fd == NULL)
10901 exit(1);
10902
10903 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10904 exit(1);
10905
10906 exit(0);
10907
10908 ;
10909 return 0;
10910}
10911_ACEOF
10912if ac_fn_c_try_run "$LINENO"; then :
10913
10914 ssl_header_ver=`cat conftest.sslincver`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10916$as_echo "$ssl_header_ver" >&6; }
10917
10918else
10919
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10921$as_echo "not found" >&6; }
10922 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10923
10924fi
10925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10926 conftest.$ac_objext conftest.beam conftest.$ac_ext
10927fi
10928
10929
10930# Determine OpenSSL library version
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10932$as_echo_n "checking OpenSSL library version... " >&6; }
10933if test "$cross_compiling" = yes; then :
10934
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10936$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10937
10938
10939else
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h. */
10942
10943#include <stdio.h>
10944#include <string.h>
10945#include <openssl/opensslv.h>
10946#include <openssl/crypto.h>
10947#define DATA "conftest.ssllibver"
10948
10949int
10950main ()
10951{
10952
10953 FILE *fd;
10954 int rc;
10955
10956 fd = fopen(DATA,"w");
10957 if(fd == NULL)
10958 exit(1);
10959
10960 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10961 exit(1);
10962
10963 exit(0);
10964
10965 ;
10966 return 0;
10967}
10968_ACEOF
10969if ac_fn_c_try_run "$LINENO"; then :
10970
10971 ssl_library_ver=`cat conftest.ssllibver`
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10973$as_echo "$ssl_library_ver" >&6; }
10974
10975else
10976
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10978$as_echo "not found" >&6; }
10979 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10980
10981fi
10982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10983 conftest.$ac_objext conftest.beam conftest.$ac_ext
10984fi
10985
10986
10987
10988# Check whether --with-openssl-header-check was given.
10989if test "${with_openssl_header_check+set}" = set; then :
10990 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
10991 openssl_check_nonfatal=1
10992 fi
10993
10994
10995fi
10996
10997
10998# Sanity check OpenSSL headers
10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
11000$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
11001if test "$cross_compiling" = yes; then :
11002
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11004$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11005
11006
11007else
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h. */
11010
11011#include <string.h>
11012#include <openssl/opensslv.h>
11013
11014int
11015main ()
11016{
11017
11018 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
11019
11020 ;
11021 return 0;
11022}
11023_ACEOF
11024if ac_fn_c_try_run "$LINENO"; then :
11025
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027$as_echo "yes" >&6; }
11028
11029else
11030
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032$as_echo "no" >&6; }
11033 if test "x$openssl_check_nonfatal" = "x"; then
11034 as_fn_error $? "Your OpenSSL headers do not match your
11035library. Check config.log for details.
11036If you are sure your installation is consistent, you can disable the check
11037by running \"./configure --without-openssl-header-check\".
11038Also see contrib/findssl.sh for help identifying header/library mismatches.
11039" "$LINENO" 5
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
11042library. Check config.log for details.
11043Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
11044$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
11045library. Check config.log for details.
11046Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
11047 fi
11048
11049fi
11050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11051 conftest.$ac_objext conftest.beam conftest.$ac_ext
11052fi
11053
11054
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
11056$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
11057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058/* end confdefs.h. */
11059 #include <openssl/evp.h>
11060int
11061main ()
11062{
11063 SSLeay_add_all_algorithms();
11064 ;
11065 return 0;
11066}
11067_ACEOF
11068if ac_fn_c_try_link "$LINENO"; then :
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071$as_echo "yes" >&6; }
11072
11073else
11074
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
11077 saved_LIBS="$LIBS"
11078 LIBS="$LIBS -ldl"
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
11080$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082/* end confdefs.h. */
11083 #include <openssl/evp.h>
11084int
11085main ()
11086{
11087 SSLeay_add_all_algorithms();
11088 ;
11089 return 0;
11090}
11091_ACEOF
11092if ac_fn_c_try_link "$LINENO"; then :
11093
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11095$as_echo "yes" >&6; }
11096
11097else
11098
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11100$as_echo "no" >&6; }
11101 LIBS="$saved_LIBS"
11102
11103
11104fi
11105rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107
11108
11109fi
11110rm -f core conftest.err conftest.$ac_objext \
11111 conftest$ac_exeext conftest.$ac_ext
11112
11113for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method HMAC_CTX_init
11114do :
11115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11116ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11117if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11118 cat >>confdefs.h <<_ACEOF
11119#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11120_ACEOF
11121
11122fi
11123done
11124
11125
11126
11127# Check whether --with-ssl-engine was given.
11128if test "${with_ssl_engine+set}" = set; then :
11129 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
11131$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133/* end confdefs.h. */
11134
11135#include <openssl/engine.h>
11136
11137int
11138main ()
11139{
11140
11141 ENGINE_load_builtin_engines();
11142 ENGINE_register_all_complete();
11143
11144 ;
11145 return 0;
11146}
11147_ACEOF
11148if ac_fn_c_try_compile "$LINENO"; then :
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150$as_echo "yes" >&6; }
11151
11152$as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
11153
11154
11155else
11156 as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
11157
11158fi
11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 fi
11161
11162fi
11163
11164
11165# Check for OpenSSL without EVP_aes_{192,256}_cbc
11166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
11167$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
11168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169/* end confdefs.h. */
11170
11171#include <string.h>
11172#include <openssl/evp.h>
11173
11174int
11175main ()
11176{
11177
11178 exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
11179
11180 ;
11181 return 0;
11182}
11183_ACEOF
11184if ac_fn_c_try_link "$LINENO"; then :
11185
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187$as_echo "no" >&6; }
11188
11189else
11190
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192$as_echo "yes" >&6; }
11193
11194$as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
11195
11196
11197
11198fi
11199rm -f core conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11201
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
11203$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
11204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205/* end confdefs.h. */
11206
11207#include <string.h>
11208#include <openssl/evp.h>
11209
11210int
11211main ()
11212{
11213
11214 if(EVP_DigestUpdate(NULL, NULL,0))
11215 exit(0);
11216
11217 ;
11218 return 0;
11219}
11220_ACEOF
11221if ac_fn_c_try_link "$LINENO"; then :
11222
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224$as_echo "yes" >&6; }
11225
11226else
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229$as_echo "no" >&6; }
11230
11231$as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
11232
11233
11234
11235fi
11236rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11238
11239# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
11240# because the system crypt() is more featureful.
11241if test "x$check_for_libcrypt_before" = "x1"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11243$as_echo_n "checking for crypt in -lcrypt... " >&6; }
11244if ${ac_cv_lib_crypt_crypt+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246else
11247 ac_check_lib_save_LIBS=$LIBS
11248LIBS="-lcrypt $LIBS"
11249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250/* end confdefs.h. */
11251
11252/* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255#ifdef __cplusplus
11256extern "C"
11257#endif
11258char crypt ();
11259int
11260main ()
11261{
11262return crypt ();
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_crypt_crypt=yes
11269else
11270 ac_cv_lib_crypt_crypt=no
11271fi
11272rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274LIBS=$ac_check_lib_save_LIBS
11275fi
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11277$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11278if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11279 cat >>confdefs.h <<_ACEOF
11280#define HAVE_LIBCRYPT 1
11281_ACEOF
11282
11283 LIBS="-lcrypt $LIBS"
11284
11285fi
11286
11287fi
11288
11289# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
11290# version in OpenSSL.
11291if test "x$check_for_libcrypt_later" = "x1"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
11293$as_echo_n "checking for crypt in -lcrypt... " >&6; }
11294if ${ac_cv_lib_crypt_crypt+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296else
11297 ac_check_lib_save_LIBS=$LIBS
11298LIBS="-lcrypt $LIBS"
11299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300/* end confdefs.h. */
11301
11302/* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11305#ifdef __cplusplus
11306extern "C"
11307#endif
11308char crypt ();
11309int
11310main ()
11311{
11312return crypt ();
11313 ;
11314 return 0;
11315}
11316_ACEOF
11317if ac_fn_c_try_link "$LINENO"; then :
11318 ac_cv_lib_crypt_crypt=yes
11319else
11320 ac_cv_lib_crypt_crypt=no
11321fi
11322rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
11324LIBS=$ac_check_lib_save_LIBS
11325fi
11326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
11327$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
11328if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
11329 LIBS="$LIBS -lcrypt"
11330fi
11331
11332fi
11333
11334# Search for SHA256 support in libc and/or OpenSSL
11335for ac_func in SHA256_Update EVP_sha256
11336do :
11337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11338ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11339if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11340 cat >>confdefs.h <<_ACEOF
11341#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11342_ACEOF
11343 TEST_SSH_SHA256=yes
11344else
11345 TEST_SSH_SHA256=no
11346fi
11347done
11348
11349
11350
11351# Check complete ECC support in OpenSSL
11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
11353$as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
11354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355/* end confdefs.h. */
11356
11357#include <openssl/ec.h>
11358#include <openssl/ecdh.h>
11359#include <openssl/ecdsa.h>
11360#include <openssl/evp.h>
11361#include <openssl/objects.h>
11362#include <openssl/opensslv.h>
11363#if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
11364# error "OpenSSL < 0.9.8g has unreliable ECC code"
11365#endif
11366
11367int
11368main ()
11369{
11370
11371 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
11372 const EVP_MD *m = EVP_sha512(); /* We need this too */
11373
11374 ;
11375 return 0;
11376}
11377_ACEOF
11378if ac_fn_c_try_link "$LINENO"; then :
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11381$as_echo "yes" >&6; }
11382
11383$as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
11384
11385 TEST_SSH_ECC=yes
11386 COMMENT_OUT_ECC=""
11387
11388else
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
11392 TEST_SSH_ECC=no
11393 COMMENT_OUT_ECC="#no ecc#"
11394
11395
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399
11400
11401
11402saved_LIBS="$LIBS"
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
11404$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
11405if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407else
11408 ac_check_lib_save_LIBS=$LIBS
11409LIBS="-liaf $LIBS"
11410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411/* end confdefs.h. */
11412
11413/* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416#ifdef __cplusplus
11417extern "C"
11418#endif
11419char ia_openinfo ();
11420int
11421main ()
11422{
11423return ia_openinfo ();
11424 ;
11425 return 0;
11426}
11427_ACEOF
11428if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_iaf_ia_openinfo=yes
11430else
11431 ac_cv_lib_iaf_ia_openinfo=no
11432fi
11433rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435LIBS=$ac_check_lib_save_LIBS
11436fi
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
11438$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
11439if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
11440
11441 LIBS="$LIBS -liaf"
11442 for ac_func in set_id
11443do :
11444 ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
11445if test "x$ac_cv_func_set_id" = xyes; then :
11446 cat >>confdefs.h <<_ACEOF
11447#define HAVE_SET_ID 1
11448_ACEOF
11449 SSHDLIBS="$SSHDLIBS -liaf"
11450
11451$as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
11452
11453
11454fi
11455done
11456
11457
11458fi
11459
11460LIBS="$saved_LIBS"
11461
11462### Configure cryptographic random number support
11463
11464# Check wheter OpenSSL seeds itself
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
11466$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
11467if test "$cross_compiling" = yes; then :
11468
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11470$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11471 # This is safe, since we will fatal() at runtime if
11472 # OpenSSL is not seeded correctly.
11473 OPENSSL_SEEDS_ITSELF=yes
11474
11475
11476else
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478/* end confdefs.h. */
11479
11480#include <string.h>
11481#include <openssl/rand.h>
11482
11483int
11484main ()
11485{
11486
11487 exit(RAND_status() == 1 ? 0 : 1);
11488
11489 ;
11490 return 0;
11491}
11492_ACEOF
11493if ac_fn_c_try_run "$LINENO"; then :
11494
11495 OPENSSL_SEEDS_ITSELF=yes
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11497$as_echo "yes" >&6; }
11498
11499else
11500
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502$as_echo "no" >&6; }
11503
11504fi
11505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11506 conftest.$ac_objext conftest.beam conftest.$ac_ext
11507fi
11508
11509
11510# PRNGD TCP socket
11511
11512# Check whether --with-prngd-port was given.
11513if test "${with_prngd_port+set}" = set; then :
11514 withval=$with_prngd_port;
11515 case "$withval" in
11516 no)
11517 withval=""
11518 ;;
11519 [0-9]*)
11520 ;;
11521 *)
11522 as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
11523 ;;
11524 esac
11525 if test ! -z "$withval" ; then
11526 PRNGD_PORT="$withval"
11527
11528cat >>confdefs.h <<_ACEOF
11529#define PRNGD_PORT $PRNGD_PORT
11530_ACEOF
11531
11532 fi
11533
11534
11535fi
11536
11537
11538# PRNGD Unix domain socket
11539
11540# Check whether --with-prngd-socket was given.
11541if test "${with_prngd_socket+set}" = set; then :
11542 withval=$with_prngd_socket;
11543 case "$withval" in
11544 yes)
11545 withval="/var/run/egd-pool"
11546 ;;
11547 no)
11548 withval=""
11549 ;;
11550 /*)
11551 ;;
11552 *)
11553 as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11554 ;;
11555 esac
11556
11557 if test ! -z "$withval" ; then
11558 if test ! -z "$PRNGD_PORT" ; then
11559 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11560 fi
11561 if test ! -r "$withval" ; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11563$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11564 fi
11565 PRNGD_SOCKET="$withval"
11566
11567cat >>confdefs.h <<_ACEOF
11568#define PRNGD_SOCKET "$PRNGD_SOCKET"
11569_ACEOF
11570
11571 fi
11572
11573else
11574
11575 # Check for existing socket only if we don't have a random device already
11576 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11578$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11579 # Insert other locations here
11580 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11581 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11582 PRNGD_SOCKET="$sock"
11583 cat >>confdefs.h <<_ACEOF
11584#define PRNGD_SOCKET "$PRNGD_SOCKET"
11585_ACEOF
11586
11587 break;
11588 fi
11589 done
11590 if test ! -z "$PRNGD_SOCKET" ; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11592$as_echo "$PRNGD_SOCKET" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11595$as_echo "not found" >&6; }
11596 fi
11597 fi
11598
11599
11600fi
11601
11602
11603# Which randomness source do we use?
11604if test ! -z "$PRNGD_PORT" ; then
11605 RAND_MSG="PRNGd port $PRNGD_PORT"
11606elif test ! -z "$PRNGD_SOCKET" ; then
11607 RAND_MSG="PRNGd socket $PRNGD_SOCKET"
11608elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
11609
11610$as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
11611
11612 RAND_MSG="OpenSSL internal ONLY"
11613else
11614 as_fn_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" "$LINENO" 5
11615fi
11616
11617# Check for PAM libs
11618PAM_MSG="no"
11619
11620# Check whether --with-pam was given.
11621if test "${with_pam+set}" = set; then :
11622 withval=$with_pam;
11623 if test "x$withval" != "xno" ; then
11624 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
11625 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
11626 as_fn_error $? "PAM headers not found" "$LINENO" 5
11627 fi
11628
11629 saved_LIBS="$LIBS"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11631$as_echo_n "checking for dlopen in -ldl... " >&6; }
11632if ${ac_cv_lib_dl_dlopen+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634else
11635 ac_check_lib_save_LIBS=$LIBS
11636LIBS="-ldl $LIBS"
11637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638/* end confdefs.h. */
11639
11640/* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11643#ifdef __cplusplus
11644extern "C"
11645#endif
11646char dlopen ();
11647int
11648main ()
11649{
11650return dlopen ();
11651 ;
11652 return 0;
11653}
11654_ACEOF
11655if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_lib_dl_dlopen=yes
11657else
11658 ac_cv_lib_dl_dlopen=no
11659fi
11660rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662LIBS=$ac_check_lib_save_LIBS
11663fi
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11665$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11666if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11667 cat >>confdefs.h <<_ACEOF
11668#define HAVE_LIBDL 1
11669_ACEOF
11670
11671 LIBS="-ldl $LIBS"
11672
11673fi
11674
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
11676$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
11677if ${ac_cv_lib_pam_pam_set_item+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679else
11680 ac_check_lib_save_LIBS=$LIBS
11681LIBS="-lpam $LIBS"
11682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683/* end confdefs.h. */
11684
11685/* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688#ifdef __cplusplus
11689extern "C"
11690#endif
11691char pam_set_item ();
11692int
11693main ()
11694{
11695return pam_set_item ();
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_pam_pam_set_item=yes
11702else
11703 ac_cv_lib_pam_pam_set_item=no
11704fi
11705rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707LIBS=$ac_check_lib_save_LIBS
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
11710$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
11711if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
11712 cat >>confdefs.h <<_ACEOF
11713#define HAVE_LIBPAM 1
11714_ACEOF
11715
11716 LIBS="-lpam $LIBS"
11717
11718else
11719 as_fn_error $? "*** libpam missing" "$LINENO" 5
11720fi
11721
11722 for ac_func in pam_getenvlist
11723do :
11724 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
11725if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
11726 cat >>confdefs.h <<_ACEOF
11727#define HAVE_PAM_GETENVLIST 1
11728_ACEOF
11729
11730fi
11731done
11732
11733 for ac_func in pam_putenv
11734do :
11735 ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
11736if test "x$ac_cv_func_pam_putenv" = xyes; then :
11737 cat >>confdefs.h <<_ACEOF
11738#define HAVE_PAM_PUTENV 1
11739_ACEOF
11740
11741fi
11742done
11743
11744 LIBS="$saved_LIBS"
11745
11746 PAM_MSG="yes"
11747
11748 SSHDLIBS="$SSHDLIBS -lpam"
11749
11750$as_echo "#define USE_PAM 1" >>confdefs.h
11751
11752
11753 if test $ac_cv_lib_dl_dlopen = yes; then
11754 case "$LIBS" in
11755 *-ldl*)
11756 # libdl already in LIBS
11757 ;;
11758 *)
11759 SSHDLIBS="$SSHDLIBS -ldl"
11760 ;;
11761 esac
11762 fi
11763 fi
11764
11765
11766fi
11767
11768
11769# Check for older PAM
11770if test "x$PAM_MSG" = "xyes" ; then
11771 # Check PAM strerror arguments (old PAM)
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
11773$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775/* end confdefs.h. */
11776
11777#include <stdlib.h>
11778#if defined(HAVE_SECURITY_PAM_APPL_H)
11779#include <security/pam_appl.h>
11780#elif defined (HAVE_PAM_PAM_APPL_H)
11781#include <pam/pam_appl.h>
11782#endif
11783
11784int
11785main ()
11786{
11787
11788(void)pam_strerror((pam_handle_t *)NULL, -1);
11789
11790 ;
11791 return 0;
11792}
11793_ACEOF
11794if ac_fn_c_try_compile "$LINENO"; then :
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
11797else
11798
11799
11800$as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11803$as_echo "yes" >&6; }
11804 PAM_MSG="yes (old library)"
11805
11806
11807fi
11808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809fi
11810
11811SSH_PRIVSEP_USER=sshd
11812
11813# Check whether --with-privsep-user was given.
11814if test "${with_privsep_user+set}" = set; then :
11815 withval=$with_privsep_user;
11816 if test -n "$withval" && test "x$withval" != "xno" && \
11817 test "x${withval}" != "xyes"; then
11818 SSH_PRIVSEP_USER=$withval
11819 fi
11820
11821
11822fi
11823
11824
11825cat >>confdefs.h <<_ACEOF
11826#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11827_ACEOF
11828
11829
11830
11831# Decide which sandbox style to use
11832sandbox_arg=""
11833
11834# Check whether --with-sandbox was given.
11835if test "${with_sandbox+set}" = set; then :
11836 withval=$with_sandbox;
11837 if test "x$withval" = "xyes" ; then
11838 sandbox_arg=""
11839 else
11840 sandbox_arg="$withval"
11841 fi
11842
11843
11844fi
11845
11846
11847# Some platforms (seems to be the ones that have a kernel poll(2)-type
11848# function with which they implement select(2)) use an extra file descriptor
11849# when calling select(2), which means we can't use the rlimit sandbox.
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5
11851$as_echo_n "checking if select works with descriptor rlimit... " >&6; }
11852if test "$cross_compiling" = yes; then :
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11854$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11855
11856else
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858/* end confdefs.h. */
11859
11860#include <sys/types.h>
11861#ifdef HAVE_SYS_TIME_H
11862# include <sys/time.h>
11863#endif
11864#include <sys/resource.h>
11865#ifdef HAVE_SYS_SELECT_H
11866# include <sys/select.h>
11867#endif
11868#include <errno.h>
11869#include <fcntl.h>
11870#include <stdlib.h>
11871
11872int
11873main ()
11874{
11875
11876 struct rlimit rl_zero;
11877 int fd, r;
11878 fd_set fds;
11879
11880 fd = open("/dev/null", O_RDONLY);
11881 FD_ZERO(&fds);
11882 FD_SET(fd, &fds);
11883 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
11884 setrlimit(RLIMIT_FSIZE, &rl_zero);
11885 setrlimit(RLIMIT_NOFILE, &rl_zero);
11886 r = select(fd+1, &fds, NULL, NULL, NULL);
11887 exit (r == -1 ? 1 : 0);
11888
11889 ;
11890 return 0;
11891}
11892_ACEOF
11893if ac_fn_c_try_run "$LINENO"; then :
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11895$as_echo "yes" >&6; }
11896 select_works_with_rlimit=yes
11897else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899$as_echo "no" >&6; }
11900 select_works_with_rlimit=no
11901fi
11902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11903 conftest.$ac_objext conftest.beam conftest.$ac_ext
11904fi
11905
11906
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5
11908$as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; }
11909if test "$cross_compiling" = yes; then :
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11911$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11912
11913else
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915/* end confdefs.h. */
11916
11917#include <sys/types.h>
11918#include <sys/resource.h>
11919#include <stdlib.h>
11920
11921int
11922main ()
11923{
11924
11925 struct rlimit rl_zero;
11926
11927 rl_zero.rlim_cur = rl_zero.rlim_max = 0;
11928 exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0);
11929
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934if ac_fn_c_try_run "$LINENO"; then :
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11936$as_echo "yes" >&6; }
11937else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940
11941$as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h
11942
11943fi
11944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11945 conftest.$ac_objext conftest.beam conftest.$ac_ext
11946fi
11947
11948
11949if test "x$sandbox_arg" = "xsystrace" || \
11950 ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
11951 test "x$have_systr_policy_kill" != "x1" && \
11952 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
11953 SANDBOX_STYLE="systrace"
11954
11955$as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
11956
11957elif test "x$sandbox_arg" = "xdarwin" || \
11958 ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
11959 test "x$ac_cv_header_sandbox_h" = "xyes") ; then
11960 test "x$ac_cv_func_sandbox_init" != "xyes" -o \
11961 "x$ac_cv_header_sandbox_h" != "xyes" && \
11962 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
11963 SANDBOX_STYLE="darwin"
11964
11965$as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11966
11967elif test "x$sandbox_arg" = "xseccomp_filter" || \
11968 ( test -z "$sandbox_arg" && \
11969 test "x$have_seccomp_filter" = "x1" && \
11970 test "x$ac_cv_header_linux_audit_h" = "xyes" && \
11971 test "x$have_seccomp_audit_arch" = "x1" && \
11972 test "x$have_linux_no_new_privs" = "x1" && \
11973 test "x$ac_cv_func_prctl" = "xyes" ) ; then
11974 test "x$have_seccomp_audit_arch" != "x1" && \
11975 as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5
11976 test "x$have_linux_no_new_privs" != "x1" && \
11977 as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5
11978 test "x$have_seccomp_filter" != "x1" && \
11979 as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5
11980 test "x$ac_cv_func_prctl" != "xyes" && \
11981 as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5
11982 SANDBOX_STYLE="seccomp_filter"
11983
11984$as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h
11985
11986elif test "x$sandbox_arg" = "xrlimit" || \
11987 ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \
11988 test "x$select_works_with_rlimit" == "xyes" ) ; then
11989 test "x$ac_cv_func_setrlimit" != "xyes" && \
11990 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11991 test "x$select_works_with_rlimit" != "xyes" && \
11992 as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5
11993 SANDBOX_STYLE="rlimit"
11994
11995$as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
11996
11997elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
11998 test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
11999 SANDBOX_STYLE="none"
12000
12001$as_echo "#define SANDBOX_NULL 1" >>confdefs.h
12002
12003else
12004 as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
12005fi
12006
12007# Cheap hack to ensure NEWS-OS libraries are arranged right.
12008if test ! -z "$SONY" ; then
12009 LIBS="$LIBS -liberty";
12010fi
12011
12012# Check for long long datatypes
12013ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12014if test "x$ac_cv_type_long_long" = xyes; then :
12015
12016cat >>confdefs.h <<_ACEOF
12017#define HAVE_LONG_LONG 1
12018_ACEOF
12019
12020
12021fi
12022ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
12023if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
12024
12025cat >>confdefs.h <<_ACEOF
12026#define HAVE_UNSIGNED_LONG_LONG 1
12027_ACEOF
12028
12029
12030fi
12031ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
12032if test "x$ac_cv_type_long_double" = xyes; then :
12033
12034cat >>confdefs.h <<_ACEOF
12035#define HAVE_LONG_DOUBLE 1
12036_ACEOF
12037
12038
12039fi
12040
12041
12042# Check datatype sizes
12043# The cast to long int works around a bug in the HP C Compiler
12044# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12045# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12046# This bug is HP SR number 8606223364.
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
12048$as_echo_n "checking size of short int... " >&6; }
12049if ${ac_cv_sizeof_short_int+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051else
12052 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
12053
12054else
12055 if test "$ac_cv_type_short_int" = yes; then
12056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12058as_fn_error 77 "cannot compute sizeof (short int)
12059See \`config.log' for more details" "$LINENO" 5; }
12060 else
12061 ac_cv_sizeof_short_int=0
12062 fi
12063fi
12064
12065fi
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
12067$as_echo "$ac_cv_sizeof_short_int" >&6; }
12068
12069
12070
12071cat >>confdefs.h <<_ACEOF
12072#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12073_ACEOF
12074
12075
12076# The cast to long int works around a bug in the HP C Compiler
12077# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12078# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12079# This bug is HP SR number 8606223364.
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12081$as_echo_n "checking size of int... " >&6; }
12082if ${ac_cv_sizeof_int+:} false; then :
12083 $as_echo_n "(cached) " >&6
12084else
12085 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12086
12087else
12088 if test "$ac_cv_type_int" = yes; then
12089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12091as_fn_error 77 "cannot compute sizeof (int)
12092See \`config.log' for more details" "$LINENO" 5; }
12093 else
12094 ac_cv_sizeof_int=0
12095 fi
12096fi
12097
12098fi
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12100$as_echo "$ac_cv_sizeof_int" >&6; }
12101
12102
12103
12104cat >>confdefs.h <<_ACEOF
12105#define SIZEOF_INT $ac_cv_sizeof_int
12106_ACEOF
12107
12108
12109# The cast to long int works around a bug in the HP C Compiler
12110# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12111# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12112# This bug is HP SR number 8606223364.
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
12114$as_echo_n "checking size of long int... " >&6; }
12115if ${ac_cv_sizeof_long_int+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117else
12118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
12119
12120else
12121 if test "$ac_cv_type_long_int" = yes; then
12122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12124as_fn_error 77 "cannot compute sizeof (long int)
12125See \`config.log' for more details" "$LINENO" 5; }
12126 else
12127 ac_cv_sizeof_long_int=0
12128 fi
12129fi
12130
12131fi
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
12133$as_echo "$ac_cv_sizeof_long_int" >&6; }
12134
12135
12136
12137cat >>confdefs.h <<_ACEOF
12138#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
12139_ACEOF
12140
12141
12142# The cast to long int works around a bug in the HP C Compiler
12143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12145# This bug is HP SR number 8606223364.
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
12147$as_echo_n "checking size of long long int... " >&6; }
12148if ${ac_cv_sizeof_long_long_int+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150else
12151 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
12152
12153else
12154 if test "$ac_cv_type_long_long_int" = yes; then
12155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12157as_fn_error 77 "cannot compute sizeof (long long int)
12158See \`config.log' for more details" "$LINENO" 5; }
12159 else
12160 ac_cv_sizeof_long_long_int=0
12161 fi
12162fi
12163
12164fi
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
12166$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
12167
12168
12169
12170cat >>confdefs.h <<_ACEOF
12171#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
12172_ACEOF
12173
12174
12175
12176# Sanity check long long for some platforms (AIX)
12177if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
12178 ac_cv_sizeof_long_long_int=0
12179fi
12180
12181# compute LLONG_MIN and LLONG_MAX if we don't know them.
12182if test -z "$have_llong_max"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
12184$as_echo_n "checking for max value of long long... " >&6; }
12185 if test "$cross_compiling" = yes; then :
12186
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12188$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12189
12190
12191else
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h. */
12194
12195#include <stdio.h>
12196/* Why is this so damn hard? */
12197#ifdef __GNUC__
12198# undef __GNUC__
12199#endif
12200#define __USE_ISOC99
12201#include <limits.h>
12202#define DATA "conftest.llminmax"
12203#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
12204
12205/*
12206 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
12207 * we do this the hard way.
12208 */
12209static int
12210fprint_ll(FILE *f, long long n)
12211{
12212 unsigned int i;
12213 int l[sizeof(long long) * 8];
12214
12215 if (n < 0)
12216 if (fprintf(f, "-") < 0)
12217 return -1;
12218 for (i = 0; n != 0; i++) {
12219 l[i] = my_abs(n % 10);
12220 n /= 10;
12221 }
12222 do {
12223 if (fprintf(f, "%d", l[--i]) < 0)
12224 return -1;
12225 } while (i != 0);
12226 if (fprintf(f, " ") < 0)
12227 return -1;
12228 return 0;
12229}
12230
12231int
12232main ()
12233{
12234
12235 FILE *f;
12236 long long i, llmin, llmax = 0;
12237
12238 if((f = fopen(DATA,"w")) == NULL)
12239 exit(1);
12240
12241#if defined(LLONG_MIN) && defined(LLONG_MAX)
12242 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
12243 llmin = LLONG_MIN;
12244 llmax = LLONG_MAX;
12245#else
12246 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
12247 /* This will work on one's complement and two's complement */
12248 for (i = 1; i > llmax; i <<= 1, i++)
12249 llmax = i;
12250 llmin = llmax + 1LL; /* wrap */
12251#endif
12252
12253 /* Sanity check */
12254 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
12255 || llmax - 1 > llmax || llmin == llmax || llmin == 0
12256 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
12257 fprintf(f, "unknown unknown\n");
12258 exit(2);
12259 }
12260
12261 if (fprint_ll(f, llmin) < 0)
12262 exit(3);
12263 if (fprint_ll(f, llmax) < 0)
12264 exit(4);
12265 if (fclose(f) < 0)
12266 exit(5);
12267 exit(0);
12268
12269 ;
12270 return 0;
12271}
12272_ACEOF
12273if ac_fn_c_try_run "$LINENO"; then :
12274
12275 llong_min=`$AWK '{print $1}' conftest.llminmax`
12276 llong_max=`$AWK '{print $2}' conftest.llminmax`
12277
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
12279$as_echo "$llong_max" >&6; }
12280
12281cat >>confdefs.h <<_ACEOF
12282#define LLONG_MAX ${llong_max}LL
12283_ACEOF
12284
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
12286$as_echo_n "checking for min value of long long... " >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
12288$as_echo "$llong_min" >&6; }
12289
12290cat >>confdefs.h <<_ACEOF
12291#define LLONG_MIN ${llong_min}LL
12292_ACEOF
12293
12294
12295else
12296
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12298$as_echo "not found" >&6; }
12299
12300fi
12301rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12302 conftest.$ac_objext conftest.beam conftest.$ac_ext
12303fi
12304
12305fi
12306
12307
12308# More checks for data types
12309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
12310$as_echo_n "checking for u_int type... " >&6; }
12311if ${ac_cv_have_u_int+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313else
12314
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316/* end confdefs.h. */
12317 #include <sys/types.h>
12318int
12319main ()
12320{
12321 u_int a; a = 1;
12322 ;
12323 return 0;
12324}
12325_ACEOF
12326if ac_fn_c_try_compile "$LINENO"; then :
12327 ac_cv_have_u_int="yes"
12328else
12329 ac_cv_have_u_int="no"
12330
12331fi
12332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
12336$as_echo "$ac_cv_have_u_int" >&6; }
12337if test "x$ac_cv_have_u_int" = "xyes" ; then
12338
12339$as_echo "#define HAVE_U_INT 1" >>confdefs.h
12340
12341 have_u_int=1
12342fi
12343
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
12345$as_echo_n "checking for intXX_t types... " >&6; }
12346if ${ac_cv_have_intxx_t+:} false; then :
12347 $as_echo_n "(cached) " >&6
12348else
12349
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351/* end confdefs.h. */
12352 #include <sys/types.h>
12353int
12354main ()
12355{
12356 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361if ac_fn_c_try_compile "$LINENO"; then :
12362 ac_cv_have_intxx_t="yes"
12363else
12364 ac_cv_have_intxx_t="no"
12365
12366fi
12367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368
12369fi
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
12371$as_echo "$ac_cv_have_intxx_t" >&6; }
12372if test "x$ac_cv_have_intxx_t" = "xyes" ; then
12373
12374$as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12375
12376 have_intxx_t=1
12377fi
12378
12379if (test -z "$have_intxx_t" && \
12380 test "x$ac_cv_header_stdint_h" = "xyes")
12381then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
12383$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h. */
12386 #include <stdint.h>
12387int
12388main ()
12389{
12390 int8_t a; int16_t b; int32_t c; a = b = c = 1;
12391 ;
12392 return 0;
12393}
12394_ACEOF
12395if ac_fn_c_try_compile "$LINENO"; then :
12396
12397 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400$as_echo "yes" >&6; }
12401
12402else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404$as_echo "no" >&6; }
12405
12406fi
12407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408fi
12409
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
12411$as_echo_n "checking for int64_t type... " >&6; }
12412if ${ac_cv_have_int64_t+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414else
12415
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417/* end confdefs.h. */
12418
12419#include <sys/types.h>
12420#ifdef HAVE_STDINT_H
12421# include <stdint.h>
12422#endif
12423#include <sys/socket.h>
12424#ifdef HAVE_SYS_BITYPES_H
12425# include <sys/bitypes.h>
12426#endif
12427
12428int
12429main ()
12430{
12431
12432int64_t a; a = 1;
12433
12434 ;
12435 return 0;
12436}
12437_ACEOF
12438if ac_fn_c_try_compile "$LINENO"; then :
12439 ac_cv_have_int64_t="yes"
12440else
12441 ac_cv_have_int64_t="no"
12442
12443fi
12444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
12448$as_echo "$ac_cv_have_int64_t" >&6; }
12449if test "x$ac_cv_have_int64_t" = "xyes" ; then
12450
12451$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
12452
12453fi
12454
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
12456$as_echo_n "checking for u_intXX_t types... " >&6; }
12457if ${ac_cv_have_u_intxx_t+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459else
12460
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462/* end confdefs.h. */
12463 #include <sys/types.h>
12464int
12465main ()
12466{
12467 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12468 ;
12469 return 0;
12470}
12471_ACEOF
12472if ac_fn_c_try_compile "$LINENO"; then :
12473 ac_cv_have_u_intxx_t="yes"
12474else
12475 ac_cv_have_u_intxx_t="no"
12476
12477fi
12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479
12480fi
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
12482$as_echo "$ac_cv_have_u_intxx_t" >&6; }
12483if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
12484
12485$as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12486
12487 have_u_intxx_t=1
12488fi
12489
12490if test -z "$have_u_intxx_t" ; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
12492$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494/* end confdefs.h. */
12495 #include <sys/socket.h>
12496int
12497main ()
12498{
12499 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12500 ;
12501 return 0;
12502}
12503_ACEOF
12504if ac_fn_c_try_compile "$LINENO"; then :
12505
12506 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509$as_echo "yes" >&6; }
12510
12511else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513$as_echo "no" >&6; }
12514
12515fi
12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517fi
12518
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
12520$as_echo_n "checking for u_int64_t types... " >&6; }
12521if ${ac_cv_have_u_int64_t+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523else
12524
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h. */
12527 #include <sys/types.h>
12528int
12529main ()
12530{
12531 u_int64_t a; a = 1;
12532 ;
12533 return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_compile "$LINENO"; then :
12537 ac_cv_have_u_int64_t="yes"
12538else
12539 ac_cv_have_u_int64_t="no"
12540
12541fi
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543
12544fi
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
12546$as_echo "$ac_cv_have_u_int64_t" >&6; }
12547if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12548
12549$as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12550
12551 have_u_int64_t=1
12552fi
12553
12554if test -z "$have_u_int64_t" ; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
12556$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558/* end confdefs.h. */
12559 #include <sys/bitypes.h>
12560int
12561main ()
12562{
12563 u_int64_t a; a = 1
12564 ;
12565 return 0;
12566}
12567_ACEOF
12568if ac_fn_c_try_compile "$LINENO"; then :
12569
12570 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12571
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573$as_echo "yes" >&6; }
12574
12575else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577$as_echo "no" >&6; }
12578
12579fi
12580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581fi
12582
12583if test -z "$have_u_intxx_t" ; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12585$as_echo_n "checking for uintXX_t types... " >&6; }
12586if ${ac_cv_have_uintxx_t+:} false; then :
12587 $as_echo_n "(cached) " >&6
12588else
12589
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591/* end confdefs.h. */
12592
12593#include <sys/types.h>
12594
12595int
12596main ()
12597{
12598
12599 uint8_t a;
12600 uint16_t b;
12601 uint32_t c;
12602 a = b = c = 1;
12603
12604 ;
12605 return 0;
12606}
12607_ACEOF
12608if ac_fn_c_try_compile "$LINENO"; then :
12609 ac_cv_have_uintxx_t="yes"
12610else
12611 ac_cv_have_uintxx_t="no"
12612
12613fi
12614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615
12616fi
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12618$as_echo "$ac_cv_have_uintxx_t" >&6; }
12619 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12620
12621$as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12622
12623 fi
12624fi
12625
12626if test -z "$have_uintxx_t" ; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12628$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630/* end confdefs.h. */
12631 #include <stdint.h>
12632int
12633main ()
12634{
12635 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12636 ;
12637 return 0;
12638}
12639_ACEOF
12640if ac_fn_c_try_compile "$LINENO"; then :
12641
12642 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12645$as_echo "yes" >&6; }
12646
12647else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650
12651fi
12652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653fi
12654
12655if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12656 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12657then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12659$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661/* end confdefs.h. */
12662
12663#include <sys/bitypes.h>
12664
12665int
12666main ()
12667{
12668
12669 int8_t a; int16_t b; int32_t c;
12670 u_int8_t e; u_int16_t f; u_int32_t g;
12671 a = b = c = e = f = g = 1;
12672
12673 ;
12674 return 0;
12675}
12676_ACEOF
12677if ac_fn_c_try_compile "$LINENO"; then :
12678
12679 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12680
12681 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12682
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12684$as_echo "yes" >&6; }
12685
12686else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688$as_echo "no" >&6; }
12689
12690fi
12691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692fi
12693
12694
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12696$as_echo_n "checking for u_char... " >&6; }
12697if ${ac_cv_have_u_char+:} false; then :
12698 $as_echo_n "(cached) " >&6
12699else
12700
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702/* end confdefs.h. */
12703 #include <sys/types.h>
12704int
12705main ()
12706{
12707 u_char foo; foo = 125;
12708 ;
12709 return 0;
12710}
12711_ACEOF
12712if ac_fn_c_try_compile "$LINENO"; then :
12713 ac_cv_have_u_char="yes"
12714else
12715 ac_cv_have_u_char="no"
12716
12717fi
12718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12719
12720fi
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12722$as_echo "$ac_cv_have_u_char" >&6; }
12723if test "x$ac_cv_have_u_char" = "xyes" ; then
12724
12725$as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12726
12727fi
12728
12729
12730 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12731#include <sys/socket.h>
12732"
12733if test "x$ac_cv_type_socklen_t" = xyes; then :
12734
12735else
12736
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12738$as_echo_n "checking for socklen_t equivalent... " >&6; }
12739 if ${curl_cv_socklen_t_equiv+:} false; then :
12740 $as_echo_n "(cached) " >&6
12741else
12742
12743 # Systems have either "struct sockaddr *" or
12744 # "void *" as the second argument to getpeername
12745 curl_cv_socklen_t_equiv=
12746 for arg2 in "struct sockaddr" void; do
12747 for t in int size_t unsigned long "unsigned long"; do
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749/* end confdefs.h. */
12750
12751 #include <sys/types.h>
12752 #include <sys/socket.h>
12753
12754 int getpeername (int, $arg2 *, $t *);
12755
12756int
12757main ()
12758{
12759
12760 $t len;
12761 getpeername(0,0,&len);
12762
12763 ;
12764 return 0;
12765}
12766_ACEOF
12767if ac_fn_c_try_compile "$LINENO"; then :
12768
12769 curl_cv_socklen_t_equiv="$t"
12770 break
12771
12772fi
12773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 done
12775 done
12776
12777 if test "x$curl_cv_socklen_t_equiv" = x; then
12778 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12779 fi
12780
12781fi
12782
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12784$as_echo "$curl_cv_socklen_t_equiv" >&6; }
12785
12786cat >>confdefs.h <<_ACEOF
12787#define socklen_t $curl_cv_socklen_t_equiv
12788_ACEOF
12789
12790fi
12791
12792
12793
12794ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12795"
12796if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
12797
12798cat >>confdefs.h <<_ACEOF
12799#define HAVE_SIG_ATOMIC_T 1
12800_ACEOF
12801
12802
12803fi
12804
12805ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12806#include <sys/types.h>
12807#ifdef HAVE_SYS_BITYPES_H
12808#include <sys/bitypes.h>
12809#endif
12810#ifdef HAVE_SYS_STATFS_H
12811#include <sys/statfs.h>
12812#endif
12813#ifdef HAVE_SYS_STATVFS_H
12814#include <sys/statvfs.h>
12815#endif
12816
12817"
12818if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
12819
12820cat >>confdefs.h <<_ACEOF
12821#define HAVE_FSBLKCNT_T 1
12822_ACEOF
12823
12824
12825fi
12826ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12827#include <sys/types.h>
12828#ifdef HAVE_SYS_BITYPES_H
12829#include <sys/bitypes.h>
12830#endif
12831#ifdef HAVE_SYS_STATFS_H
12832#include <sys/statfs.h>
12833#endif
12834#ifdef HAVE_SYS_STATVFS_H
12835#include <sys/statvfs.h>
12836#endif
12837
12838"
12839if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
12840
12841cat >>confdefs.h <<_ACEOF
12842#define HAVE_FSFILCNT_T 1
12843_ACEOF
12844
12845
12846fi
12847
12848
12849ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12850#include <netinet/in.h>
12851"
12852if test "x$ac_cv_type_in_addr_t" = xyes; then :
12853
12854cat >>confdefs.h <<_ACEOF
12855#define HAVE_IN_ADDR_T 1
12856_ACEOF
12857
12858
12859fi
12860ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12861#include <netinet/in.h>
12862"
12863if test "x$ac_cv_type_in_port_t" = xyes; then :
12864
12865cat >>confdefs.h <<_ACEOF
12866#define HAVE_IN_PORT_T 1
12867_ACEOF
12868
12869
12870fi
12871
12872
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12874$as_echo_n "checking for size_t... " >&6; }
12875if ${ac_cv_have_size_t+:} false; then :
12876 $as_echo_n "(cached) " >&6
12877else
12878
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880/* end confdefs.h. */
12881 #include <sys/types.h>
12882int
12883main ()
12884{
12885 size_t foo; foo = 1235;
12886 ;
12887 return 0;
12888}
12889_ACEOF
12890if ac_fn_c_try_compile "$LINENO"; then :
12891 ac_cv_have_size_t="yes"
12892else
12893 ac_cv_have_size_t="no"
12894
12895fi
12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897
12898fi
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12900$as_echo "$ac_cv_have_size_t" >&6; }
12901if test "x$ac_cv_have_size_t" = "xyes" ; then
12902
12903$as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12904
12905fi
12906
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12908$as_echo_n "checking for ssize_t... " >&6; }
12909if ${ac_cv_have_ssize_t+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911else
12912
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h. */
12915 #include <sys/types.h>
12916int
12917main ()
12918{
12919 ssize_t foo; foo = 1235;
12920 ;
12921 return 0;
12922}
12923_ACEOF
12924if ac_fn_c_try_compile "$LINENO"; then :
12925 ac_cv_have_ssize_t="yes"
12926else
12927 ac_cv_have_ssize_t="no"
12928
12929fi
12930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931
12932fi
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12934$as_echo "$ac_cv_have_ssize_t" >&6; }
12935if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12936
12937$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12938
12939fi
12940
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12942$as_echo_n "checking for clock_t... " >&6; }
12943if ${ac_cv_have_clock_t+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945else
12946
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948/* end confdefs.h. */
12949 #include <time.h>
12950int
12951main ()
12952{
12953 clock_t foo; foo = 1235;
12954 ;
12955 return 0;
12956}
12957_ACEOF
12958if ac_fn_c_try_compile "$LINENO"; then :
12959 ac_cv_have_clock_t="yes"
12960else
12961 ac_cv_have_clock_t="no"
12962
12963fi
12964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12965
12966fi
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12968$as_echo "$ac_cv_have_clock_t" >&6; }
12969if test "x$ac_cv_have_clock_t" = "xyes" ; then
12970
12971$as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12972
12973fi
12974
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12976$as_echo_n "checking for sa_family_t... " >&6; }
12977if ${ac_cv_have_sa_family_t+:} false; then :
12978 $as_echo_n "(cached) " >&6
12979else
12980
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982/* end confdefs.h. */
12983
12984#include <sys/types.h>
12985#include <sys/socket.h>
12986
12987int
12988main ()
12989{
12990 sa_family_t foo; foo = 1235;
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995if ac_fn_c_try_compile "$LINENO"; then :
12996 ac_cv_have_sa_family_t="yes"
12997else
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h. */
13000
13001#include <sys/types.h>
13002#include <sys/socket.h>
13003#include <netinet/in.h>
13004
13005int
13006main ()
13007{
13008 sa_family_t foo; foo = 1235;
13009 ;
13010 return 0;
13011}
13012_ACEOF
13013if ac_fn_c_try_compile "$LINENO"; then :
13014 ac_cv_have_sa_family_t="yes"
13015else
13016 ac_cv_have_sa_family_t="no"
13017
13018fi
13019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020
13021fi
13022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023
13024fi
13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
13026$as_echo "$ac_cv_have_sa_family_t" >&6; }
13027if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
13028
13029$as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
13030
13031fi
13032
13033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
13034$as_echo_n "checking for pid_t... " >&6; }
13035if ${ac_cv_have_pid_t+:} false; then :
13036 $as_echo_n "(cached) " >&6
13037else
13038
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040/* end confdefs.h. */
13041 #include <sys/types.h>
13042int
13043main ()
13044{
13045 pid_t foo; foo = 1235;
13046 ;
13047 return 0;
13048}
13049_ACEOF
13050if ac_fn_c_try_compile "$LINENO"; then :
13051 ac_cv_have_pid_t="yes"
13052else
13053 ac_cv_have_pid_t="no"
13054
13055fi
13056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13057
13058fi
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
13060$as_echo "$ac_cv_have_pid_t" >&6; }
13061if test "x$ac_cv_have_pid_t" = "xyes" ; then
13062
13063$as_echo "#define HAVE_PID_T 1" >>confdefs.h
13064
13065fi
13066
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
13068$as_echo_n "checking for mode_t... " >&6; }
13069if ${ac_cv_have_mode_t+:} false; then :
13070 $as_echo_n "(cached) " >&6
13071else
13072
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074/* end confdefs.h. */
13075 #include <sys/types.h>
13076int
13077main ()
13078{
13079 mode_t foo; foo = 1235;
13080 ;
13081 return 0;
13082}
13083_ACEOF
13084if ac_fn_c_try_compile "$LINENO"; then :
13085 ac_cv_have_mode_t="yes"
13086else
13087 ac_cv_have_mode_t="no"
13088
13089fi
13090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091
13092fi
13093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
13094$as_echo "$ac_cv_have_mode_t" >&6; }
13095if test "x$ac_cv_have_mode_t" = "xyes" ; then
13096
13097$as_echo "#define HAVE_MODE_T 1" >>confdefs.h
13098
13099fi
13100
13101
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
13103$as_echo_n "checking for struct sockaddr_storage... " >&6; }
13104if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106else
13107
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109/* end confdefs.h. */
13110
13111#include <sys/types.h>
13112#include <sys/socket.h>
13113
13114int
13115main ()
13116{
13117 struct sockaddr_storage s;
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122if ac_fn_c_try_compile "$LINENO"; then :
13123 ac_cv_have_struct_sockaddr_storage="yes"
13124else
13125 ac_cv_have_struct_sockaddr_storage="no"
13126
13127fi
13128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129
13130fi
13131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
13132$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
13133if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13134
13135$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
13136
13137fi
13138
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
13140$as_echo_n "checking for struct sockaddr_in6... " >&6; }
13141if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143else
13144
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146/* end confdefs.h. */
13147
13148#include <sys/types.h>
13149#include <netinet/in.h>
13150
13151int
13152main ()
13153{
13154 struct sockaddr_in6 s; s.sin6_family = 0;
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_compile "$LINENO"; then :
13160 ac_cv_have_struct_sockaddr_in6="yes"
13161else
13162 ac_cv_have_struct_sockaddr_in6="no"
13163
13164fi
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166
13167fi
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
13169$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
13170if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13171
13172$as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
13173
13174fi
13175
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
13177$as_echo_n "checking for struct in6_addr... " >&6; }
13178if ${ac_cv_have_struct_in6_addr+:} false; then :
13179 $as_echo_n "(cached) " >&6
13180else
13181
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183/* end confdefs.h. */
13184
13185#include <sys/types.h>
13186#include <netinet/in.h>
13187
13188int
13189main ()
13190{
13191 struct in6_addr s; s.s6_addr[0] = 0;
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_compile "$LINENO"; then :
13197 ac_cv_have_struct_in6_addr="yes"
13198else
13199 ac_cv_have_struct_in6_addr="no"
13200
13201fi
13202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
13206$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
13207if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13208
13209$as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
13210
13211
13212 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
13213#ifdef HAVE_SYS_TYPES_H
13214#include <sys/types.h>
13215#endif
13216#include <netinet/in.h>
13217
13218"
13219if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13220
13221cat >>confdefs.h <<_ACEOF
13222#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13223_ACEOF
13224
13225
13226fi
13227
13228fi
13229
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
13231$as_echo_n "checking for struct addrinfo... " >&6; }
13232if ${ac_cv_have_struct_addrinfo+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234else
13235
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h. */
13238
13239#include <sys/types.h>
13240#include <sys/socket.h>
13241#include <netdb.h>
13242
13243int
13244main ()
13245{
13246 struct addrinfo s; s.ai_flags = AI_PASSIVE;
13247 ;
13248 return 0;
13249}
13250_ACEOF
13251if ac_fn_c_try_compile "$LINENO"; then :
13252 ac_cv_have_struct_addrinfo="yes"
13253else
13254 ac_cv_have_struct_addrinfo="no"
13255
13256fi
13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258
13259fi
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
13261$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
13262if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13263
13264$as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
13265
13266fi
13267
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
13269$as_echo_n "checking for struct timeval... " >&6; }
13270if ${ac_cv_have_struct_timeval+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272else
13273
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275/* end confdefs.h. */
13276 #include <sys/time.h>
13277int
13278main ()
13279{
13280 struct timeval tv; tv.tv_sec = 1;
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285if ac_fn_c_try_compile "$LINENO"; then :
13286 ac_cv_have_struct_timeval="yes"
13287else
13288 ac_cv_have_struct_timeval="no"
13289
13290fi
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292
13293fi
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
13295$as_echo "$ac_cv_have_struct_timeval" >&6; }
13296if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13297
13298$as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
13299
13300 have_struct_timeval=1
13301fi
13302
13303ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
13304if test "x$ac_cv_type_struct_timespec" = xyes; then :
13305
13306cat >>confdefs.h <<_ACEOF
13307#define HAVE_STRUCT_TIMESPEC 1
13308_ACEOF
13309
13310
13311fi
13312
13313
13314# We need int64_t or else certian parts of the compile will fail.
13315if test "x$ac_cv_have_int64_t" = "xno" && \
13316 test "x$ac_cv_sizeof_long_int" != "x8" && \
13317 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13318 echo "OpenSSH requires int64_t support. Contact your vendor or install"
13319 echo "an alternative compiler (I.E., GCC) before continuing."
13320 echo ""
13321 exit 1;
13322else
13323 if test "$cross_compiling" = yes; then :
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
13325$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
13326
13327else
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h. */
13330
13331#include <stdio.h>
13332#include <string.h>
13333#ifdef HAVE_SNPRINTF
13334main()
13335{
13336 char buf[50];
13337 char expected_out[50];
13338 int mazsize = 50 ;
13339#if (SIZEOF_LONG_INT == 8)
13340 long int num = 0x7fffffffffffffff;
13341#else
13342 long long num = 0x7fffffffffffffffll;
13343#endif
13344 strcpy(expected_out, "9223372036854775807");
13345 snprintf(buf, mazsize, "%lld", num);
13346 if(strcmp(buf, expected_out) != 0)
13347 exit(1);
13348 exit(0);
13349}
13350#else
13351main() { exit(0); }
13352#endif
13353
13354_ACEOF
13355if ac_fn_c_try_run "$LINENO"; then :
13356 true
13357else
13358 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
13359
13360fi
13361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13362 conftest.$ac_objext conftest.beam conftest.$ac_ext
13363fi
13364
13365fi
13366
13367
13368# look for field 'ut_host' in header 'utmp.h'
13369 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13370 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
13372$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
13373 if eval \${$ossh_varname+:} false; then :
13374 $as_echo_n "(cached) " >&6
13375else
13376
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378/* end confdefs.h. */
13379#include <utmp.h>
13380
13381_ACEOF
13382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "ut_host" >/dev/null 2>&1; then :
13384 eval "$ossh_varname=yes"
13385else
13386 eval "$ossh_varname=no"
13387fi
13388rm -f conftest*
13389
13390fi
13391
13392 ossh_result=`eval 'echo $'"$ossh_varname"`
13393 if test -n "`echo $ossh_varname`"; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13395$as_echo "$ossh_result" >&6; }
13396 if test "x$ossh_result" = "xyes"; then
13397
13398$as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
13399
13400 fi
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403$as_echo "no" >&6; }
13404 fi
13405
13406
13407# look for field 'ut_host' in header 'utmpx.h'
13408 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13409 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
13411$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
13412 if eval \${$ossh_varname+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414else
13415
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417/* end confdefs.h. */
13418#include <utmpx.h>
13419
13420_ACEOF
13421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422 $EGREP "ut_host" >/dev/null 2>&1; then :
13423 eval "$ossh_varname=yes"
13424else
13425 eval "$ossh_varname=no"
13426fi
13427rm -f conftest*
13428
13429fi
13430
13431 ossh_result=`eval 'echo $'"$ossh_varname"`
13432 if test -n "`echo $ossh_varname`"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13434$as_echo "$ossh_result" >&6; }
13435 if test "x$ossh_result" = "xyes"; then
13436
13437$as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
13438
13439 fi
13440 else
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442$as_echo "no" >&6; }
13443 fi
13444
13445
13446# look for field 'syslen' in header 'utmpx.h'
13447 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13448 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
13450$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
13451 if eval \${$ossh_varname+:} false; then :
13452 $as_echo_n "(cached) " >&6
13453else
13454
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456/* end confdefs.h. */
13457#include <utmpx.h>
13458
13459_ACEOF
13460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13461 $EGREP "syslen" >/dev/null 2>&1; then :
13462 eval "$ossh_varname=yes"
13463else
13464 eval "$ossh_varname=no"
13465fi
13466rm -f conftest*
13467
13468fi
13469
13470 ossh_result=`eval 'echo $'"$ossh_varname"`
13471 if test -n "`echo $ossh_varname`"; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13473$as_echo "$ossh_result" >&6; }
13474 if test "x$ossh_result" = "xyes"; then
13475
13476$as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
13477
13478 fi
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481$as_echo "no" >&6; }
13482 fi
13483
13484
13485# look for field 'ut_pid' in header 'utmp.h'
13486 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13487 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
13489$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
13490 if eval \${$ossh_varname+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492else
13493
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495/* end confdefs.h. */
13496#include <utmp.h>
13497
13498_ACEOF
13499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13500 $EGREP "ut_pid" >/dev/null 2>&1; then :
13501 eval "$ossh_varname=yes"
13502else
13503 eval "$ossh_varname=no"
13504fi
13505rm -f conftest*
13506
13507fi
13508
13509 ossh_result=`eval 'echo $'"$ossh_varname"`
13510 if test -n "`echo $ossh_varname`"; then
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13512$as_echo "$ossh_result" >&6; }
13513 if test "x$ossh_result" = "xyes"; then
13514
13515$as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
13516
13517 fi
13518 else
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520$as_echo "no" >&6; }
13521 fi
13522
13523
13524# look for field 'ut_type' in header 'utmp.h'
13525 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13526 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
13528$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
13529 if eval \${$ossh_varname+:} false; then :
13530 $as_echo_n "(cached) " >&6
13531else
13532
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534/* end confdefs.h. */
13535#include <utmp.h>
13536
13537_ACEOF
13538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13539 $EGREP "ut_type" >/dev/null 2>&1; then :
13540 eval "$ossh_varname=yes"
13541else
13542 eval "$ossh_varname=no"
13543fi
13544rm -f conftest*
13545
13546fi
13547
13548 ossh_result=`eval 'echo $'"$ossh_varname"`
13549 if test -n "`echo $ossh_varname`"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13551$as_echo "$ossh_result" >&6; }
13552 if test "x$ossh_result" = "xyes"; then
13553
13554$as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
13555
13556 fi
13557 else
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560 fi
13561
13562
13563# look for field 'ut_type' in header 'utmpx.h'
13564 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13565 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13567$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13568 if eval \${$ossh_varname+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570else
13571
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h. */
13574#include <utmpx.h>
13575
13576_ACEOF
13577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13578 $EGREP "ut_type" >/dev/null 2>&1; then :
13579 eval "$ossh_varname=yes"
13580else
13581 eval "$ossh_varname=no"
13582fi
13583rm -f conftest*
13584
13585fi
13586
13587 ossh_result=`eval 'echo $'"$ossh_varname"`
13588 if test -n "`echo $ossh_varname`"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13590$as_echo "$ossh_result" >&6; }
13591 if test "x$ossh_result" = "xyes"; then
13592
13593$as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13594
13595 fi
13596 else
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598$as_echo "no" >&6; }
13599 fi
13600
13601
13602# look for field 'ut_tv' in header 'utmp.h'
13603 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13604 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13606$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13607 if eval \${$ossh_varname+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609else
13610
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612/* end confdefs.h. */
13613#include <utmp.h>
13614
13615_ACEOF
13616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "ut_tv" >/dev/null 2>&1; then :
13618 eval "$ossh_varname=yes"
13619else
13620 eval "$ossh_varname=no"
13621fi
13622rm -f conftest*
13623
13624fi
13625
13626 ossh_result=`eval 'echo $'"$ossh_varname"`
13627 if test -n "`echo $ossh_varname`"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13629$as_echo "$ossh_result" >&6; }
13630 if test "x$ossh_result" = "xyes"; then
13631
13632$as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13633
13634 fi
13635 else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637$as_echo "no" >&6; }
13638 fi
13639
13640
13641# look for field 'ut_id' in header 'utmp.h'
13642 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13643 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13645$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13646 if eval \${$ossh_varname+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648else
13649
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h. */
13652#include <utmp.h>
13653
13654_ACEOF
13655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13656 $EGREP "ut_id" >/dev/null 2>&1; then :
13657 eval "$ossh_varname=yes"
13658else
13659 eval "$ossh_varname=no"
13660fi
13661rm -f conftest*
13662
13663fi
13664
13665 ossh_result=`eval 'echo $'"$ossh_varname"`
13666 if test -n "`echo $ossh_varname`"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13668$as_echo "$ossh_result" >&6; }
13669 if test "x$ossh_result" = "xyes"; then
13670
13671$as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13672
13673 fi
13674 else
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
13677 fi
13678
13679
13680# look for field 'ut_id' in header 'utmpx.h'
13681 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13682 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13684$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13685 if eval \${$ossh_varname+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687else
13688
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690/* end confdefs.h. */
13691#include <utmpx.h>
13692
13693_ACEOF
13694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13695 $EGREP "ut_id" >/dev/null 2>&1; then :
13696 eval "$ossh_varname=yes"
13697else
13698 eval "$ossh_varname=no"
13699fi
13700rm -f conftest*
13701
13702fi
13703
13704 ossh_result=`eval 'echo $'"$ossh_varname"`
13705 if test -n "`echo $ossh_varname`"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13707$as_echo "$ossh_result" >&6; }
13708 if test "x$ossh_result" = "xyes"; then
13709
13710$as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13711
13712 fi
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715$as_echo "no" >&6; }
13716 fi
13717
13718
13719# look for field 'ut_addr' in header 'utmp.h'
13720 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13721 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13723$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13724 if eval \${$ossh_varname+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726else
13727
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729/* end confdefs.h. */
13730#include <utmp.h>
13731
13732_ACEOF
13733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13734 $EGREP "ut_addr" >/dev/null 2>&1; then :
13735 eval "$ossh_varname=yes"
13736else
13737 eval "$ossh_varname=no"
13738fi
13739rm -f conftest*
13740
13741fi
13742
13743 ossh_result=`eval 'echo $'"$ossh_varname"`
13744 if test -n "`echo $ossh_varname`"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13746$as_echo "$ossh_result" >&6; }
13747 if test "x$ossh_result" = "xyes"; then
13748
13749$as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13750
13751 fi
13752 else
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754$as_echo "no" >&6; }
13755 fi
13756
13757
13758# look for field 'ut_addr' in header 'utmpx.h'
13759 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13760 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13762$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13763 if eval \${$ossh_varname+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765else
13766
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768/* end confdefs.h. */
13769#include <utmpx.h>
13770
13771_ACEOF
13772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13773 $EGREP "ut_addr" >/dev/null 2>&1; then :
13774 eval "$ossh_varname=yes"
13775else
13776 eval "$ossh_varname=no"
13777fi
13778rm -f conftest*
13779
13780fi
13781
13782 ossh_result=`eval 'echo $'"$ossh_varname"`
13783 if test -n "`echo $ossh_varname`"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13785$as_echo "$ossh_result" >&6; }
13786 if test "x$ossh_result" = "xyes"; then
13787
13788$as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13789
13790 fi
13791 else
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13793$as_echo "no" >&6; }
13794 fi
13795
13796
13797# look for field 'ut_addr_v6' in header 'utmp.h'
13798 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13799 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13801$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13802 if eval \${$ossh_varname+:} false; then :
13803 $as_echo_n "(cached) " >&6
13804else
13805
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h. */
13808#include <utmp.h>
13809
13810_ACEOF
13811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13813 eval "$ossh_varname=yes"
13814else
13815 eval "$ossh_varname=no"
13816fi
13817rm -f conftest*
13818
13819fi
13820
13821 ossh_result=`eval 'echo $'"$ossh_varname"`
13822 if test -n "`echo $ossh_varname`"; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13824$as_echo "$ossh_result" >&6; }
13825 if test "x$ossh_result" = "xyes"; then
13826
13827$as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13828
13829 fi
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832$as_echo "no" >&6; }
13833 fi
13834
13835
13836# look for field 'ut_addr_v6' in header 'utmpx.h'
13837 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13838 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13840$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13841 if eval \${$ossh_varname+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843else
13844
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846/* end confdefs.h. */
13847#include <utmpx.h>
13848
13849_ACEOF
13850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13851 $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13852 eval "$ossh_varname=yes"
13853else
13854 eval "$ossh_varname=no"
13855fi
13856rm -f conftest*
13857
13858fi
13859
13860 ossh_result=`eval 'echo $'"$ossh_varname"`
13861 if test -n "`echo $ossh_varname`"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13863$as_echo "$ossh_result" >&6; }
13864 if test "x$ossh_result" = "xyes"; then
13865
13866$as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13867
13868 fi
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871$as_echo "no" >&6; }
13872 fi
13873
13874
13875# look for field 'ut_exit' in header 'utmp.h'
13876 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13877 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13879$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13880 if eval \${$ossh_varname+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882else
13883
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885/* end confdefs.h. */
13886#include <utmp.h>
13887
13888_ACEOF
13889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13890 $EGREP "ut_exit" >/dev/null 2>&1; then :
13891 eval "$ossh_varname=yes"
13892else
13893 eval "$ossh_varname=no"
13894fi
13895rm -f conftest*
13896
13897fi
13898
13899 ossh_result=`eval 'echo $'"$ossh_varname"`
13900 if test -n "`echo $ossh_varname`"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13902$as_echo "$ossh_result" >&6; }
13903 if test "x$ossh_result" = "xyes"; then
13904
13905$as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13906
13907 fi
13908 else
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13910$as_echo "no" >&6; }
13911 fi
13912
13913
13914# look for field 'ut_time' in header 'utmp.h'
13915 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13916 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13918$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13919 if eval \${$ossh_varname+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921else
13922
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h. */
13925#include <utmp.h>
13926
13927_ACEOF
13928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13929 $EGREP "ut_time" >/dev/null 2>&1; then :
13930 eval "$ossh_varname=yes"
13931else
13932 eval "$ossh_varname=no"
13933fi
13934rm -f conftest*
13935
13936fi
13937
13938 ossh_result=`eval 'echo $'"$ossh_varname"`
13939 if test -n "`echo $ossh_varname`"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13941$as_echo "$ossh_result" >&6; }
13942 if test "x$ossh_result" = "xyes"; then
13943
13944$as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13945
13946 fi
13947 else
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949$as_echo "no" >&6; }
13950 fi
13951
13952
13953# look for field 'ut_time' in header 'utmpx.h'
13954 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13955 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13957$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13958 if eval \${$ossh_varname+:} false; then :
13959 $as_echo_n "(cached) " >&6
13960else
13961
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963/* end confdefs.h. */
13964#include <utmpx.h>
13965
13966_ACEOF
13967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13968 $EGREP "ut_time" >/dev/null 2>&1; then :
13969 eval "$ossh_varname=yes"
13970else
13971 eval "$ossh_varname=no"
13972fi
13973rm -f conftest*
13974
13975fi
13976
13977 ossh_result=`eval 'echo $'"$ossh_varname"`
13978 if test -n "`echo $ossh_varname`"; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13980$as_echo "$ossh_result" >&6; }
13981 if test "x$ossh_result" = "xyes"; then
13982
13983$as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13984
13985 fi
13986 else
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988$as_echo "no" >&6; }
13989 fi
13990
13991
13992# look for field 'ut_tv' in header 'utmpx.h'
13993 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13994 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13996$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13997 if eval \${$ossh_varname+:} false; then :
13998 $as_echo_n "(cached) " >&6
13999else
14000
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002/* end confdefs.h. */
14003#include <utmpx.h>
14004
14005_ACEOF
14006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14007 $EGREP "ut_tv" >/dev/null 2>&1; then :
14008 eval "$ossh_varname=yes"
14009else
14010 eval "$ossh_varname=no"
14011fi
14012rm -f conftest*
14013
14014fi
14015
14016 ossh_result=`eval 'echo $'"$ossh_varname"`
14017 if test -n "`echo $ossh_varname`"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
14019$as_echo "$ossh_result" >&6; }
14020 if test "x$ossh_result" = "xyes"; then
14021
14022$as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
14023
14024 fi
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027$as_echo "no" >&6; }
14028 fi
14029
14030
14031ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14032if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14033
14034cat >>confdefs.h <<_ACEOF
14035#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14036_ACEOF
14037
14038
14039fi
14040
14041ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
14042#include <stdio.h>
14043#if HAVE_SYS_TYPES_H
14044# include <sys/types.h>
14045#endif
14046#include <netinet/in.h>
14047#include <arpa/nameser.h>
14048#include <resolv.h>
14049
14050"
14051if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
14052
14053else
14054
14055$as_echo "#define __res_state state" >>confdefs.h
14056
14057fi
14058
14059
14060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
14061$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
14062if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
14063 $as_echo_n "(cached) " >&6
14064else
14065
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067/* end confdefs.h. */
14068
14069#include <sys/types.h>
14070#include <sys/socket.h>
14071
14072int
14073main ()
14074{
14075 struct sockaddr_storage s; s.ss_family = 1;
14076 ;
14077 return 0;
14078}
14079_ACEOF
14080if ac_fn_c_try_compile "$LINENO"; then :
14081 ac_cv_have_ss_family_in_struct_ss="yes"
14082else
14083 ac_cv_have_ss_family_in_struct_ss="no"
14084fi
14085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14086
14087fi
14088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
14089$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
14090if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
14091
14092$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
14093
14094fi
14095
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
14097$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
14098if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
14099 $as_echo_n "(cached) " >&6
14100else
14101
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103/* end confdefs.h. */
14104
14105#include <sys/types.h>
14106#include <sys/socket.h>
14107
14108int
14109main ()
14110{
14111 struct sockaddr_storage s; s.__ss_family = 1;
14112 ;
14113 return 0;
14114}
14115_ACEOF
14116if ac_fn_c_try_compile "$LINENO"; then :
14117 ac_cv_have___ss_family_in_struct_ss="yes"
14118else
14119 ac_cv_have___ss_family_in_struct_ss="no"
14120
14121fi
14122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14123
14124fi
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14126$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
14127if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14128
14129$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
14130
14131fi
14132
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
14134$as_echo_n "checking for pw_class field in struct passwd... " >&6; }
14135if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137else
14138
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140/* end confdefs.h. */
14141 #include <pwd.h>
14142int
14143main ()
14144{
14145 struct passwd p; p.pw_class = 0;
14146 ;
14147 return 0;
14148}
14149_ACEOF
14150if ac_fn_c_try_compile "$LINENO"; then :
14151 ac_cv_have_pw_class_in_struct_passwd="yes"
14152else
14153 ac_cv_have_pw_class_in_struct_passwd="no"
14154
14155fi
14156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157
14158fi
14159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14160$as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
14161if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14162
14163$as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
14164
14165fi
14166
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
14168$as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
14169if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171else
14172
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174/* end confdefs.h. */
14175 #include <pwd.h>
14176int
14177main ()
14178{
14179 struct passwd p; p.pw_expire = 0;
14180 ;
14181 return 0;
14182}
14183_ACEOF
14184if ac_fn_c_try_compile "$LINENO"; then :
14185 ac_cv_have_pw_expire_in_struct_passwd="yes"
14186else
14187 ac_cv_have_pw_expire_in_struct_passwd="no"
14188
14189fi
14190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14191
14192fi
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14194$as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
14195if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14196
14197$as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
14198
14199fi
14200
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
14202$as_echo_n "checking for pw_change field in struct passwd... " >&6; }
14203if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205else
14206
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208/* end confdefs.h. */
14209 #include <pwd.h>
14210int
14211main ()
14212{
14213 struct passwd p; p.pw_change = 0;
14214 ;
14215 return 0;
14216}
14217_ACEOF
14218if ac_fn_c_try_compile "$LINENO"; then :
14219 ac_cv_have_pw_change_in_struct_passwd="yes"
14220else
14221 ac_cv_have_pw_change_in_struct_passwd="no"
14222
14223fi
14224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14225
14226fi
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14228$as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
14229if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14230
14231$as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
14232
14233fi
14234
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
14236$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
14237if ${ac_cv_have_accrights_in_msghdr+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239else
14240
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242/* end confdefs.h. */
14243
14244#include <sys/types.h>
14245#include <sys/socket.h>
14246#include <sys/uio.h>
14247
14248int
14249main ()
14250{
14251
14252#ifdef msg_accrights
14253#error "msg_accrights is a macro"
14254exit(1);
14255#endif
14256struct msghdr m;
14257m.msg_accrights = 0;
14258exit(0);
14259
14260 ;
14261 return 0;
14262}
14263_ACEOF
14264if ac_fn_c_try_compile "$LINENO"; then :
14265 ac_cv_have_accrights_in_msghdr="yes"
14266else
14267 ac_cv_have_accrights_in_msghdr="no"
14268
14269fi
14270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271
14272fi
14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
14274$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
14275if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14276
14277$as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
14278
14279fi
14280
14281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
14282$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
14283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284/* end confdefs.h. */
14285
14286#include <sys/param.h>
14287#include <sys/stat.h>
14288#ifdef HAVE_SYS_TIME_H
14289# include <sys/time.h>
14290#endif
14291#ifdef HAVE_SYS_MOUNT_H
14292#include <sys/mount.h>
14293#endif
14294#ifdef HAVE_SYS_STATVFS_H
14295#include <sys/statvfs.h>
14296#endif
14297
14298int
14299main ()
14300{
14301 struct statvfs s; s.f_fsid = 0;
14302 ;
14303 return 0;
14304}
14305_ACEOF
14306if ac_fn_c_try_compile "$LINENO"; then :
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14308$as_echo "yes" >&6; }
14309else
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311$as_echo "no" >&6; }
14312
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
14314$as_echo_n "checking if fsid_t has member val... " >&6; }
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316/* end confdefs.h. */
14317
14318#include <sys/types.h>
14319#include <sys/statvfs.h>
14320
14321int
14322main ()
14323{
14324 fsid_t t; t.val[0] = 0;
14325 ;
14326 return 0;
14327}
14328_ACEOF
14329if ac_fn_c_try_compile "$LINENO"; then :
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14331$as_echo "yes" >&6; }
14332
14333$as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
14334
14335else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337$as_echo "no" >&6; }
14338fi
14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
14342$as_echo_n "checking if f_fsid has member __val... " >&6; }
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h. */
14345
14346#include <sys/types.h>
14347#include <sys/statvfs.h>
14348
14349int
14350main ()
14351{
14352 fsid_t t; t.__val[0] = 0;
14353 ;
14354 return 0;
14355}
14356_ACEOF
14357if ac_fn_c_try_compile "$LINENO"; then :
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14359$as_echo "yes" >&6; }
14360
14361$as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
14362
14363else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365$as_echo "no" >&6; }
14366fi
14367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14368
14369fi
14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
14373$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
14374if ${ac_cv_have_control_in_msghdr+:} false; then :
14375 $as_echo_n "(cached) " >&6
14376else
14377
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379/* end confdefs.h. */
14380
14381#include <sys/types.h>
14382#include <sys/socket.h>
14383#include <sys/uio.h>
14384
14385int
14386main ()
14387{
14388
14389#ifdef msg_control
14390#error "msg_control is a macro"
14391exit(1);
14392#endif
14393struct msghdr m;
14394m.msg_control = 0;
14395exit(0);
14396
14397 ;
14398 return 0;
14399}
14400_ACEOF
14401if ac_fn_c_try_compile "$LINENO"; then :
14402 ac_cv_have_control_in_msghdr="yes"
14403else
14404 ac_cv_have_control_in_msghdr="no"
14405
14406fi
14407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408
14409fi
14410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
14411$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
14412if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14413
14414$as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
14415
14416fi
14417
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
14419$as_echo_n "checking if libc defines __progname... " >&6; }
14420if ${ac_cv_libc_defines___progname+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422else
14423
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h. */
14426
14427int
14428main ()
14429{
14430 extern char *__progname; printf("%s", __progname);
14431 ;
14432 return 0;
14433}
14434_ACEOF
14435if ac_fn_c_try_link "$LINENO"; then :
14436 ac_cv_libc_defines___progname="yes"
14437else
14438 ac_cv_libc_defines___progname="no"
14439
14440fi
14441rm -f core conftest.err conftest.$ac_objext \
14442 conftest$ac_exeext conftest.$ac_ext
14443
14444fi
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
14446$as_echo "$ac_cv_libc_defines___progname" >&6; }
14447if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14448
14449$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
14450
14451fi
14452
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
14454$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
14455if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
14456 $as_echo_n "(cached) " >&6
14457else
14458
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460/* end confdefs.h. */
14461 #include <stdio.h>
14462int
14463main ()
14464{
14465 printf("%s", __FUNCTION__);
14466 ;
14467 return 0;
14468}
14469_ACEOF
14470if ac_fn_c_try_link "$LINENO"; then :
14471 ac_cv_cc_implements___FUNCTION__="yes"
14472else
14473 ac_cv_cc_implements___FUNCTION__="no"
14474
14475fi
14476rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14478
14479fi
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
14481$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
14482if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14483
14484$as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
14485
14486fi
14487
14488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
14489$as_echo_n "checking whether $CC implements __func__... " >&6; }
14490if ${ac_cv_cc_implements___func__+:} false; then :
14491 $as_echo_n "(cached) " >&6
14492else
14493
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h. */
14496 #include <stdio.h>
14497int
14498main ()
14499{
14500 printf("%s", __func__);
14501 ;
14502 return 0;
14503}
14504_ACEOF
14505if ac_fn_c_try_link "$LINENO"; then :
14506 ac_cv_cc_implements___func__="yes"
14507else
14508 ac_cv_cc_implements___func__="no"
14509
14510fi
14511rm -f core conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext conftest.$ac_ext
14513
14514fi
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
14516$as_echo "$ac_cv_cc_implements___func__" >&6; }
14517if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14518
14519$as_echo "#define HAVE___func__ 1" >>confdefs.h
14520
14521fi
14522
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
14524$as_echo_n "checking whether va_copy exists... " >&6; }
14525if ${ac_cv_have_va_copy+:} false; then :
14526 $as_echo_n "(cached) " >&6
14527else
14528
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530/* end confdefs.h. */
14531
14532#include <stdarg.h>
14533va_list x,y;
14534
14535int
14536main ()
14537{
14538 va_copy(x,y);
14539 ;
14540 return 0;
14541}
14542_ACEOF
14543if ac_fn_c_try_link "$LINENO"; then :
14544 ac_cv_have_va_copy="yes"
14545else
14546 ac_cv_have_va_copy="no"
14547
14548fi
14549rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14551
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
14554$as_echo "$ac_cv_have_va_copy" >&6; }
14555if test "x$ac_cv_have_va_copy" = "xyes" ; then
14556
14557$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14558
14559fi
14560
14561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
14562$as_echo_n "checking whether __va_copy exists... " >&6; }
14563if ${ac_cv_have___va_copy+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565else
14566
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568/* end confdefs.h. */
14569
14570#include <stdarg.h>
14571va_list x,y;
14572
14573int
14574main ()
14575{
14576 __va_copy(x,y);
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_have___va_copy="yes"
14583else
14584 ac_cv_have___va_copy="no"
14585
14586fi
14587rm -f core conftest.err conftest.$ac_objext \
14588 conftest$ac_exeext conftest.$ac_ext
14589
14590fi
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14592$as_echo "$ac_cv_have___va_copy" >&6; }
14593if test "x$ac_cv_have___va_copy" = "xyes" ; then
14594
14595$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14596
14597fi
14598
14599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14600$as_echo_n "checking whether getopt has optreset support... " >&6; }
14601if ${ac_cv_have_getopt_optreset+:} false; then :
14602 $as_echo_n "(cached) " >&6
14603else
14604
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606/* end confdefs.h. */
14607 #include <getopt.h>
14608int
14609main ()
14610{
14611 extern int optreset; optreset = 0;
14612 ;
14613 return 0;
14614}
14615_ACEOF
14616if ac_fn_c_try_link "$LINENO"; then :
14617 ac_cv_have_getopt_optreset="yes"
14618else
14619 ac_cv_have_getopt_optreset="no"
14620
14621fi
14622rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624
14625fi
14626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14627$as_echo "$ac_cv_have_getopt_optreset" >&6; }
14628if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14629
14630$as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14631
14632fi
14633
14634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14635$as_echo_n "checking if libc defines sys_errlist... " >&6; }
14636if ${ac_cv_libc_defines_sys_errlist+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638else
14639
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641/* end confdefs.h. */
14642
14643int
14644main ()
14645{
14646 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14647 ;
14648 return 0;
14649}
14650_ACEOF
14651if ac_fn_c_try_link "$LINENO"; then :
14652 ac_cv_libc_defines_sys_errlist="yes"
14653else
14654 ac_cv_libc_defines_sys_errlist="no"
14655
14656fi
14657rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14659
14660fi
14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14662$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14663if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14664
14665$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14666
14667fi
14668
14669
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14671$as_echo_n "checking if libc defines sys_nerr... " >&6; }
14672if ${ac_cv_libc_defines_sys_nerr+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674else
14675
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677/* end confdefs.h. */
14678
14679int
14680main ()
14681{
14682 extern int sys_nerr; printf("%i", sys_nerr);
14683 ;
14684 return 0;
14685}
14686_ACEOF
14687if ac_fn_c_try_link "$LINENO"; then :
14688 ac_cv_libc_defines_sys_nerr="yes"
14689else
14690 ac_cv_libc_defines_sys_nerr="no"
14691
14692fi
14693rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695
14696fi
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14698$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14699if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14700
14701$as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14702
14703fi
14704
14705# Check libraries needed by DNS fingerprint support
14706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14707$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14708if ${ac_cv_search_getrrsetbyname+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710else
14711 ac_func_search_save_LIBS=$LIBS
14712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713/* end confdefs.h. */
14714
14715/* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718#ifdef __cplusplus
14719extern "C"
14720#endif
14721char getrrsetbyname ();
14722int
14723main ()
14724{
14725return getrrsetbyname ();
14726 ;
14727 return 0;
14728}
14729_ACEOF
14730for ac_lib in '' resolv; do
14731 if test -z "$ac_lib"; then
14732 ac_res="none required"
14733 else
14734 ac_res=-l$ac_lib
14735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14736 fi
14737 if ac_fn_c_try_link "$LINENO"; then :
14738 ac_cv_search_getrrsetbyname=$ac_res
14739fi
14740rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext
14742 if ${ac_cv_search_getrrsetbyname+:} false; then :
14743 break
14744fi
14745done
14746if ${ac_cv_search_getrrsetbyname+:} false; then :
14747
14748else
14749 ac_cv_search_getrrsetbyname=no
14750fi
14751rm conftest.$ac_ext
14752LIBS=$ac_func_search_save_LIBS
14753fi
14754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14755$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14756ac_res=$ac_cv_search_getrrsetbyname
14757if test "$ac_res" != no; then :
14758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14759
14760$as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14761
14762else
14763
14764 # Needed by our getrrsetbyname()
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14766$as_echo_n "checking for library containing res_query... " >&6; }
14767if ${ac_cv_search_res_query+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769else
14770 ac_func_search_save_LIBS=$LIBS
14771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772/* end confdefs.h. */
14773
14774/* Override any GCC internal prototype to avoid an error.
14775 Use char because int might match the return type of a GCC
14776 builtin and then its argument prototype would still apply. */
14777#ifdef __cplusplus
14778extern "C"
14779#endif
14780char res_query ();
14781int
14782main ()
14783{
14784return res_query ();
14785 ;
14786 return 0;
14787}
14788_ACEOF
14789for ac_lib in '' resolv; do
14790 if test -z "$ac_lib"; then
14791 ac_res="none required"
14792 else
14793 ac_res=-l$ac_lib
14794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14795 fi
14796 if ac_fn_c_try_link "$LINENO"; then :
14797 ac_cv_search_res_query=$ac_res
14798fi
14799rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext
14801 if ${ac_cv_search_res_query+:} false; then :
14802 break
14803fi
14804done
14805if ${ac_cv_search_res_query+:} false; then :
14806
14807else
14808 ac_cv_search_res_query=no
14809fi
14810rm conftest.$ac_ext
14811LIBS=$ac_func_search_save_LIBS
14812fi
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14814$as_echo "$ac_cv_search_res_query" >&6; }
14815ac_res=$ac_cv_search_res_query
14816if test "$ac_res" != no; then :
14817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14818
14819fi
14820
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14822$as_echo_n "checking for library containing dn_expand... " >&6; }
14823if ${ac_cv_search_dn_expand+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825else
14826 ac_func_search_save_LIBS=$LIBS
14827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828/* end confdefs.h. */
14829
14830/* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14833#ifdef __cplusplus
14834extern "C"
14835#endif
14836char dn_expand ();
14837int
14838main ()
14839{
14840return dn_expand ();
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845for ac_lib in '' resolv; do
14846 if test -z "$ac_lib"; then
14847 ac_res="none required"
14848 else
14849 ac_res=-l$ac_lib
14850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14851 fi
14852 if ac_fn_c_try_link "$LINENO"; then :
14853 ac_cv_search_dn_expand=$ac_res
14854fi
14855rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext
14857 if ${ac_cv_search_dn_expand+:} false; then :
14858 break
14859fi
14860done
14861if ${ac_cv_search_dn_expand+:} false; then :
14862
14863else
14864 ac_cv_search_dn_expand=no
14865fi
14866rm conftest.$ac_ext
14867LIBS=$ac_func_search_save_LIBS
14868fi
14869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14870$as_echo "$ac_cv_search_dn_expand" >&6; }
14871ac_res=$ac_cv_search_dn_expand
14872if test "$ac_res" != no; then :
14873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14874
14875fi
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14878$as_echo_n "checking if res_query will link... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880/* end confdefs.h. */
14881
14882#include <sys/types.h>
14883#include <netinet/in.h>
14884#include <arpa/nameser.h>
14885#include <netdb.h>
14886#include <resolv.h>
14887
14888int
14889main ()
14890{
14891
14892 res_query (0, 0, 0, 0, 0);
14893
14894 ;
14895 return 0;
14896}
14897_ACEOF
14898if ac_fn_c_try_link "$LINENO"; then :
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14900$as_echo "yes" >&6; }
14901else
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14903$as_echo "no" >&6; }
14904 saved_LIBS="$LIBS"
14905 LIBS="$LIBS -lresolv"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14907$as_echo_n "checking for res_query in -lresolv... " >&6; }
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909/* end confdefs.h. */
14910
14911#include <sys/types.h>
14912#include <netinet/in.h>
14913#include <arpa/nameser.h>
14914#include <netdb.h>
14915#include <resolv.h>
14916
14917int
14918main ()
14919{
14920
14921 res_query (0, 0, 0, 0, 0);
14922
14923 ;
14924 return 0;
14925}
14926_ACEOF
14927if ac_fn_c_try_link "$LINENO"; then :
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14929$as_echo "yes" >&6; }
14930else
14931 LIBS="$saved_LIBS"
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14933$as_echo "no" >&6; }
14934fi
14935rm -f core conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14937
14938fi
14939rm -f core conftest.err conftest.$ac_objext \
14940 conftest$ac_exeext conftest.$ac_ext
14941 for ac_func in _getshort _getlong
14942do :
14943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14944ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14945if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14946 cat >>confdefs.h <<_ACEOF
14947#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14948_ACEOF
14949
14950fi
14951done
14952
14953 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14954 #include <arpa/nameser.h>
14955"
14956if test "x$ac_cv_have_decl__getshort" = xyes; then :
14957 ac_have_decl=1
14958else
14959 ac_have_decl=0
14960fi
14961
14962cat >>confdefs.h <<_ACEOF
14963#define HAVE_DECL__GETSHORT $ac_have_decl
14964_ACEOF
14965ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14966 #include <arpa/nameser.h>
14967"
14968if test "x$ac_cv_have_decl__getlong" = xyes; then :
14969 ac_have_decl=1
14970else
14971 ac_have_decl=0
14972fi
14973
14974cat >>confdefs.h <<_ACEOF
14975#define HAVE_DECL__GETLONG $ac_have_decl
14976_ACEOF
14977
14978 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14979"
14980if test "x$ac_cv_member_HEADER_ad" = xyes; then :
14981
14982$as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14983
14984fi
14985
14986
14987fi
14988
14989
14990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14991$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993/* end confdefs.h. */
14994
14995#include <stdio.h>
14996#if HAVE_SYS_TYPES_H
14997# include <sys/types.h>
14998#endif
14999#include <netinet/in.h>
15000#include <arpa/nameser.h>
15001#include <resolv.h>
15002extern struct __res_state _res;
15003
15004int
15005main ()
15006{
15007
15008 ;
15009 return 0;
15010}
15011_ACEOF
15012if ac_fn_c_try_link "$LINENO"; then :
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014$as_echo "yes" >&6; }
15015
15016$as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
15017
15018
15019else
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021$as_echo "no" >&6; }
15022
15023fi
15024rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
15026
15027# Check whether user wants SELinux support
15028SELINUX_MSG="no"
15029LIBSELINUX=""
15030
15031# Check whether --with-selinux was given.
15032if test "${with_selinux+set}" = set; then :
15033 withval=$with_selinux; if test "x$withval" != "xno" ; then
15034 save_LIBS="$LIBS"
15035
15036$as_echo "#define WITH_SELINUX 1" >>confdefs.h
15037
15038 SELINUX_MSG="yes"
15039 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
15040if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
15041
15042else
15043 as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
15044fi
15045
15046
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
15048$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
15049if ${ac_cv_lib_selinux_setexeccon+:} false; then :
15050 $as_echo_n "(cached) " >&6
15051else
15052 ac_check_lib_save_LIBS=$LIBS
15053LIBS="-lselinux $LIBS"
15054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h. */
15056
15057/* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15060#ifdef __cplusplus
15061extern "C"
15062#endif
15063char setexeccon ();
15064int
15065main ()
15066{
15067return setexeccon ();
15068 ;
15069 return 0;
15070}
15071_ACEOF
15072if ac_fn_c_try_link "$LINENO"; then :
15073 ac_cv_lib_selinux_setexeccon=yes
15074else
15075 ac_cv_lib_selinux_setexeccon=no
15076fi
15077rm -f core conftest.err conftest.$ac_objext \
15078 conftest$ac_exeext conftest.$ac_ext
15079LIBS=$ac_check_lib_save_LIBS
15080fi
15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
15082$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
15083if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
15084 LIBSELINUX="-lselinux"
15085 LIBS="$LIBS -lselinux"
15086
15087else
15088 as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
15089fi
15090
15091 SSHLIBS="$SSHLIBS $LIBSELINUX"
15092 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
15093 for ac_func in getseuserbyname get_default_context_with_level
15094do :
15095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15096ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15097if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15098 cat >>confdefs.h <<_ACEOF
15099#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15100_ACEOF
15101
15102fi
15103done
15104
15105 LIBS="$save_LIBS"
15106 fi
15107
15108fi
15109
15110
15111
15112
15113# Check whether user wants Kerberos 5 support
15114KRB5_MSG="no"
15115
15116# Check whether --with-kerberos5 was given.
15117if test "${with_kerberos5+set}" = set; then :
15118 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
15119 if test "x$withval" = "xyes" ; then
15120 KRB5ROOT="/usr/local"
15121 else
15122 KRB5ROOT=${withval}
15123 fi
15124
15125
15126$as_echo "#define KRB5 1" >>confdefs.h
15127
15128 KRB5_MSG="yes"
15129
15130 # Extract the first word of "krb5-config", so it can be a program name with args.
15131set dummy krb5-config; ac_word=$2
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15133$as_echo_n "checking for $ac_word... " >&6; }
15134if ${ac_cv_path_KRB5CONF+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136else
15137 case $KRB5CONF in
15138 [\\/]* | ?:[\\/]*)
15139 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
15140 ;;
15141 *)
15142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15143as_dummy="$KRB5ROOT/bin:$PATH"
15144for as_dir in $as_dummy
15145do
15146 IFS=$as_save_IFS
15147 test -z "$as_dir" && as_dir=.
15148 for ac_exec_ext in '' $ac_executable_extensions; do
15149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15150 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
15151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15152 break 2
15153 fi
15154done
15155 done
15156IFS=$as_save_IFS
15157
15158 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
15159 ;;
15160esac
15161fi
15162KRB5CONF=$ac_cv_path_KRB5CONF
15163if test -n "$KRB5CONF"; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
15165$as_echo "$KRB5CONF" >&6; }
15166else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168$as_echo "no" >&6; }
15169fi
15170
15171
15172 if test -x $KRB5CONF ; then
15173
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15175$as_echo_n "checking for gssapi support... " >&6; }
15176 if $KRB5CONF | grep gssapi >/dev/null ; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15178$as_echo "yes" >&6; }
15179
15180$as_echo "#define GSSAPI 1" >>confdefs.h
15181
15182 k5confopts=gssapi
15183 else
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15185$as_echo "no" >&6; }
15186 k5confopts=""
15187 fi
15188 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15189 K5LIBS="`$KRB5CONF --libs $k5confopts`"
15190 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15192$as_echo_n "checking whether we are using Heimdal... " >&6; }
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194/* end confdefs.h. */
15195 #include <krb5.h>
15196
15197int
15198main ()
15199{
15200 char *tmp = heimdal_version;
15201 ;
15202 return 0;
15203}
15204_ACEOF
15205if ac_fn_c_try_compile "$LINENO"; then :
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15207$as_echo "yes" >&6; }
15208
15209$as_echo "#define HEIMDAL 1" >>confdefs.h
15210
15211else
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15213$as_echo "no" >&6; }
15214
15215fi
15216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 else
15218 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15219 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15221$as_echo_n "checking whether we are using Heimdal... " >&6; }
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223/* end confdefs.h. */
15224 #include <krb5.h>
15225
15226int
15227main ()
15228{
15229 char *tmp = heimdal_version;
15230 ;
15231 return 0;
15232}
15233_ACEOF
15234if ac_fn_c_try_compile "$LINENO"; then :
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15236$as_echo "yes" >&6; }
15237 $as_echo "#define HEIMDAL 1" >>confdefs.h
15238
15239 K5LIBS="-lkrb5"
15240 K5LIBS="$K5LIBS -lcom_err -lasn1"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
15242$as_echo_n "checking for net_write in -lroken... " >&6; }
15243if ${ac_cv_lib_roken_net_write+:} false; then :
15244 $as_echo_n "(cached) " >&6
15245else
15246 ac_check_lib_save_LIBS=$LIBS
15247LIBS="-lroken $LIBS"
15248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249/* end confdefs.h. */
15250
15251/* Override any GCC internal prototype to avoid an error.
15252 Use char because int might match the return type of a GCC
15253 builtin and then its argument prototype would still apply. */
15254#ifdef __cplusplus
15255extern "C"
15256#endif
15257char net_write ();
15258int
15259main ()
15260{
15261return net_write ();
15262 ;
15263 return 0;
15264}
15265_ACEOF
15266if ac_fn_c_try_link "$LINENO"; then :
15267 ac_cv_lib_roken_net_write=yes
15268else
15269 ac_cv_lib_roken_net_write=no
15270fi
15271rm -f core conftest.err conftest.$ac_objext \
15272 conftest$ac_exeext conftest.$ac_ext
15273LIBS=$ac_check_lib_save_LIBS
15274fi
15275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
15276$as_echo "$ac_cv_lib_roken_net_write" >&6; }
15277if test "x$ac_cv_lib_roken_net_write" = xyes; then :
15278 K5LIBS="$K5LIBS -lroken"
15279fi
15280
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15282$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15283if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285else
15286 ac_check_lib_save_LIBS=$LIBS
15287LIBS="-ldes $LIBS"
15288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h. */
15290
15291/* Override any GCC internal prototype to avoid an error.
15292 Use char because int might match the return type of a GCC
15293 builtin and then its argument prototype would still apply. */
15294#ifdef __cplusplus
15295extern "C"
15296#endif
15297char des_cbc_encrypt ();
15298int
15299main ()
15300{
15301return des_cbc_encrypt ();
15302 ;
15303 return 0;
15304}
15305_ACEOF
15306if ac_fn_c_try_link "$LINENO"; then :
15307 ac_cv_lib_des_des_cbc_encrypt=yes
15308else
15309 ac_cv_lib_des_des_cbc_encrypt=no
15310fi
15311rm -f core conftest.err conftest.$ac_objext \
15312 conftest$ac_exeext conftest.$ac_ext
15313LIBS=$ac_check_lib_save_LIBS
15314fi
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15316$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15317if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
15318 K5LIBS="$K5LIBS -ldes"
15319fi
15320
15321
15322else
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324$as_echo "no" >&6; }
15325 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15326
15327
15328fi
15329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
15331$as_echo_n "checking for library containing dn_expand... " >&6; }
15332if ${ac_cv_search_dn_expand+:} false; then :
15333 $as_echo_n "(cached) " >&6
15334else
15335 ac_func_search_save_LIBS=$LIBS
15336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337/* end confdefs.h. */
15338
15339/* Override any GCC internal prototype to avoid an error.
15340 Use char because int might match the return type of a GCC
15341 builtin and then its argument prototype would still apply. */
15342#ifdef __cplusplus
15343extern "C"
15344#endif
15345char dn_expand ();
15346int
15347main ()
15348{
15349return dn_expand ();
15350 ;
15351 return 0;
15352}
15353_ACEOF
15354for ac_lib in '' resolv; do
15355 if test -z "$ac_lib"; then
15356 ac_res="none required"
15357 else
15358 ac_res=-l$ac_lib
15359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15360 fi
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 ac_cv_search_dn_expand=$ac_res
15363fi
15364rm -f core conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext
15366 if ${ac_cv_search_dn_expand+:} false; then :
15367 break
15368fi
15369done
15370if ${ac_cv_search_dn_expand+:} false; then :
15371
15372else
15373 ac_cv_search_dn_expand=no
15374fi
15375rm conftest.$ac_ext
15376LIBS=$ac_func_search_save_LIBS
15377fi
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
15379$as_echo "$ac_cv_search_dn_expand" >&6; }
15380ac_res=$ac_cv_search_dn_expand
15381if test "$ac_res" != no; then :
15382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15383
15384fi
15385
15386
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
15388$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
15389if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391else
15392 ac_check_lib_save_LIBS=$LIBS
15393LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
15394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395/* end confdefs.h. */
15396
15397/* Override any GCC internal prototype to avoid an error.
15398 Use char because int might match the return type of a GCC
15399 builtin and then its argument prototype would still apply. */
15400#ifdef __cplusplus
15401extern "C"
15402#endif
15403char gss_init_sec_context ();
15404int
15405main ()
15406{
15407return gss_init_sec_context ();
15408 ;
15409 return 0;
15410}
15411_ACEOF
15412if ac_fn_c_try_link "$LINENO"; then :
15413 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
15414else
15415 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
15416fi
15417rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419LIBS=$ac_check_lib_save_LIBS
15420fi
15421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
15422$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
15423if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
15424 $as_echo "#define GSSAPI 1" >>confdefs.h
15425
15426 K5LIBS="-lgssapi_krb5 $K5LIBS"
15427else
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
15429$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
15430if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432else
15433 ac_check_lib_save_LIBS=$LIBS
15434LIBS="-lgssapi $K5LIBS $LIBS"
15435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h. */
15437
15438/* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15441#ifdef __cplusplus
15442extern "C"
15443#endif
15444char gss_init_sec_context ();
15445int
15446main ()
15447{
15448return gss_init_sec_context ();
15449 ;
15450 return 0;
15451}
15452_ACEOF
15453if ac_fn_c_try_link "$LINENO"; then :
15454 ac_cv_lib_gssapi_gss_init_sec_context=yes
15455else
15456 ac_cv_lib_gssapi_gss_init_sec_context=no
15457fi
15458rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460LIBS=$ac_check_lib_save_LIBS
15461fi
15462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
15463$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
15464if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
15465 $as_echo "#define GSSAPI 1" >>confdefs.h
15466
15467 K5LIBS="-lgssapi $K5LIBS"
15468else
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15470$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
15471fi
15472
15473
15474fi
15475
15476
15477 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15478if test "x$ac_cv_header_gssapi_h" = xyes; then :
15479
15480else
15481 unset ac_cv_header_gssapi_h
15482 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15483 for ac_header in gssapi.h
15484do :
15485 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15486if test "x$ac_cv_header_gssapi_h" = xyes; then :
15487 cat >>confdefs.h <<_ACEOF
15488#define HAVE_GSSAPI_H 1
15489_ACEOF
15490
15491else
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
15493$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15494
15495fi
15496
15497done
15498
15499
15500
15501fi
15502
15503
15504
15505 oldCPP="$CPPFLAGS"
15506 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15507 ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
15508if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
15509
15510else
15511 CPPFLAGS="$oldCPP"
15512fi
15513
15514
15515
15516 fi
15517 if test ! -z "$need_dash_r" ; then
15518 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15519 fi
15520 if test ! -z "$blibpath" ; then
15521 blibpath="$blibpath:${KRB5ROOT}/lib"
15522 fi
15523
15524 for ac_header in gssapi.h gssapi/gssapi.h
15525do :
15526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15527ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15528if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15529 cat >>confdefs.h <<_ACEOF
15530#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15531_ACEOF
15532
15533fi
15534
15535done
15536
15537 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15538do :
15539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15540ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15542 cat >>confdefs.h <<_ACEOF
15543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15544_ACEOF
15545
15546fi
15547
15548done
15549
15550 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
15551do :
15552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15553ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15555 cat >>confdefs.h <<_ACEOF
15556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15557_ACEOF
15558
15559fi
15560
15561done
15562
15563
15564 LIBS="$LIBS $K5LIBS"
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15566$as_echo_n "checking for library containing k_hasafs... " >&6; }
15567if ${ac_cv_search_k_hasafs+:} false; then :
15568 $as_echo_n "(cached) " >&6
15569else
15570 ac_func_search_save_LIBS=$LIBS
15571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15572/* end confdefs.h. */
15573
15574/* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15577#ifdef __cplusplus
15578extern "C"
15579#endif
15580char k_hasafs ();
15581int
15582main ()
15583{
15584return k_hasafs ();
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589for ac_lib in '' kafs; do
15590 if test -z "$ac_lib"; then
15591 ac_res="none required"
15592 else
15593 ac_res=-l$ac_lib
15594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15595 fi
15596 if ac_fn_c_try_link "$LINENO"; then :
15597 ac_cv_search_k_hasafs=$ac_res
15598fi
15599rm -f core conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext
15601 if ${ac_cv_search_k_hasafs+:} false; then :
15602 break
15603fi
15604done
15605if ${ac_cv_search_k_hasafs+:} false; then :
15606
15607else
15608 ac_cv_search_k_hasafs=no
15609fi
15610rm conftest.$ac_ext
15611LIBS=$ac_func_search_save_LIBS
15612fi
15613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15614$as_echo "$ac_cv_search_k_hasafs" >&6; }
15615ac_res=$ac_cv_search_k_hasafs
15616if test "$ac_res" != no; then :
15617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15618
15619$as_echo "#define USE_AFS 1" >>confdefs.h
15620
15621fi
15622
15623 fi
15624
15625
15626fi
15627
15628
15629# Looking for programs, paths and files
15630
15631PRIVSEP_PATH=/var/empty
15632
15633# Check whether --with-privsep-path was given.
15634if test "${with_privsep_path+set}" = set; then :
15635 withval=$with_privsep_path;
15636 if test -n "$withval" && test "x$withval" != "xno" && \
15637 test "x${withval}" != "xyes"; then
15638 PRIVSEP_PATH=$withval
15639 fi
15640
15641
15642fi
15643
15644
15645
15646
15647# Check whether --with-xauth was given.
15648if test "${with_xauth+set}" = set; then :
15649 withval=$with_xauth;
15650 if test -n "$withval" && test "x$withval" != "xno" && \
15651 test "x${withval}" != "xyes"; then
15652 xauth_path=$withval
15653 fi
15654
15655else
15656
15657 TestPath="$PATH"
15658 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15659 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15660 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15661 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15662 # Extract the first word of "xauth", so it can be a program name with args.
15663set dummy xauth; ac_word=$2
15664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15665$as_echo_n "checking for $ac_word... " >&6; }
15666if ${ac_cv_path_xauth_path+:} false; then :
15667 $as_echo_n "(cached) " >&6
15668else
15669 case $xauth_path in
15670 [\\/]* | ?:[\\/]*)
15671 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15672 ;;
15673 *)
15674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15675for as_dir in $TestPath
15676do
15677 IFS=$as_save_IFS
15678 test -z "$as_dir" && as_dir=.
15679 for ac_exec_ext in '' $ac_executable_extensions; do
15680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15681 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15683 break 2
15684 fi
15685done
15686 done
15687IFS=$as_save_IFS
15688
15689 ;;
15690esac
15691fi
15692xauth_path=$ac_cv_path_xauth_path
15693if test -n "$xauth_path"; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15695$as_echo "$xauth_path" >&6; }
15696else
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15698$as_echo "no" >&6; }
15699fi
15700
15701
15702 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15703 xauth_path="/usr/openwin/bin/xauth"
15704 fi
15705
15706
15707fi
15708
15709
15710STRIP_OPT=-s
15711# Check whether --enable-strip was given.
15712if test "${enable_strip+set}" = set; then :
15713 enableval=$enable_strip;
15714 if test "x$enableval" = "xno" ; then
15715 STRIP_OPT=
15716 fi
15717
15718
15719fi
15720
15721
15722
15723if test -z "$xauth_path" ; then
15724 XAUTH_PATH="undefined"
15725
15726else
15727
15728cat >>confdefs.h <<_ACEOF
15729#define XAUTH_PATH "$xauth_path"
15730_ACEOF
15731
15732 XAUTH_PATH=$xauth_path
15733
15734fi
15735
15736# Check for mail directory
15737
15738# Check whether --with-maildir was given.
15739if test "${with_maildir+set}" = set; then :
15740 withval=$with_maildir;
15741 if test "X$withval" != X && test "x$withval" != xno && \
15742 test "x${withval}" != xyes; then
15743
15744cat >>confdefs.h <<_ACEOF
15745#define MAIL_DIRECTORY "$withval"
15746_ACEOF
15747
15748 fi
15749
15750else
15751
15752 if test "X$maildir" != "X"; then
15753 cat >>confdefs.h <<_ACEOF
15754#define MAIL_DIRECTORY "$maildir"
15755_ACEOF
15756
15757 else
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
15759$as_echo_n "checking Discovering system mail directory... " >&6; }
15760 if test "$cross_compiling" = yes; then :
15761
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
15763$as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
15764
15765
15766else
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768/* end confdefs.h. */
15769
15770#include <stdio.h>
15771#include <string.h>
15772#ifdef HAVE_PATHS_H
15773#include <paths.h>
15774#endif
15775#ifdef HAVE_MAILLOCK_H
15776#include <maillock.h>
15777#endif
15778#define DATA "conftest.maildir"
15779
15780int
15781main ()
15782{
15783
15784 FILE *fd;
15785 int rc;
15786
15787 fd = fopen(DATA,"w");
15788 if(fd == NULL)
15789 exit(1);
15790
15791#if defined (_PATH_MAILDIR)
15792 if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
15793 exit(1);
15794#elif defined (MAILDIR)
15795 if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
15796 exit(1);
15797#elif defined (_PATH_MAIL)
15798 if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
15799 exit(1);
15800#else
15801 exit (2);
15802#endif
15803
15804 exit(0);
15805
15806 ;
15807 return 0;
15808}
15809_ACEOF
15810if ac_fn_c_try_run "$LINENO"; then :
15811
15812 maildir_what=`awk -F: '{print $1}' conftest.maildir`
15813 maildir=`awk -F: '{print $2}' conftest.maildir \
15814 | sed 's|/$||'`
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
15816$as_echo "Using: $maildir from $maildir_what" >&6; }
15817 if test "x$maildir_what" != "x_PATH_MAILDIR"; then
15818 cat >>confdefs.h <<_ACEOF
15819#define MAIL_DIRECTORY "$maildir"
15820_ACEOF
15821
15822 fi
15823
15824else
15825
15826 if test "X$ac_status" = "X2";then
15827# our test program didn't find it. Default to /var/spool/mail
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
15829$as_echo "Using: default value of /var/spool/mail" >&6; }
15830 cat >>confdefs.h <<_ACEOF
15831#define MAIL_DIRECTORY "/var/spool/mail"
15832_ACEOF
15833
15834 else
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
15836$as_echo "*** not found ***" >&6; }
15837 fi
15838
15839fi
15840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15841 conftest.$ac_objext conftest.beam conftest.$ac_ext
15842fi
15843
15844 fi
15845
15846
15847fi
15848 # maildir
15849
15850if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15852$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15853 disable_ptmx_check=yes
15854fi
15855if test -z "$no_dev_ptmx" ; then
15856 if test "x$disable_ptmx_check" != "xyes" ; then
15857 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15859$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15860if eval \${$as_ac_File+:} false; then :
15861 $as_echo_n "(cached) " >&6
15862else
15863 test "$cross_compiling" = yes &&
15864 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15865if test -r ""/dev/ptmx""; then
15866 eval "$as_ac_File=yes"
15867else
15868 eval "$as_ac_File=no"
15869fi
15870fi
15871eval ac_res=\$$as_ac_File
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15873$as_echo "$ac_res" >&6; }
15874if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15875
15876
15877cat >>confdefs.h <<_ACEOF
15878#define HAVE_DEV_PTMX 1
15879_ACEOF
15880
15881 have_dev_ptmx=1
15882
15883
15884fi
15885
15886 fi
15887fi
15888
15889if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15890 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15892$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15893if eval \${$as_ac_File+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895else
15896 test "$cross_compiling" = yes &&
15897 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15898if test -r ""/dev/ptc""; then
15899 eval "$as_ac_File=yes"
15900else
15901 eval "$as_ac_File=no"
15902fi
15903fi
15904eval ac_res=\$$as_ac_File
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15906$as_echo "$ac_res" >&6; }
15907if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15908
15909
15910cat >>confdefs.h <<_ACEOF
15911#define HAVE_DEV_PTS_AND_PTC 1
15912_ACEOF
15913
15914 have_dev_ptc=1
15915
15916
15917fi
15918
15919else
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15921$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15922fi
15923
15924# Options from here on. Some of these are preset by platform above
15925
15926# Check whether --with-mantype was given.
15927if test "${with_mantype+set}" = set; then :
15928 withval=$with_mantype;
15929 case "$withval" in
15930 man|cat|doc)
15931 MANTYPE=$withval
15932 ;;
15933 *)
15934 as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15935 ;;
15936 esac
15937
15938
15939fi
15940
15941if test -z "$MANTYPE"; then
15942 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15943 for ac_prog in nroff awf
15944do
15945 # Extract the first word of "$ac_prog", so it can be a program name with args.
15946set dummy $ac_prog; ac_word=$2
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15948$as_echo_n "checking for $ac_word... " >&6; }
15949if ${ac_cv_path_NROFF+:} false; then :
15950 $as_echo_n "(cached) " >&6
15951else
15952 case $NROFF in
15953 [\\/]* | ?:[\\/]*)
15954 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15955 ;;
15956 *)
15957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958for as_dir in $TestPath
15959do
15960 IFS=$as_save_IFS
15961 test -z "$as_dir" && as_dir=.
15962 for ac_exec_ext in '' $ac_executable_extensions; do
15963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15964 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 break 2
15967 fi
15968done
15969 done
15970IFS=$as_save_IFS
15971
15972 ;;
15973esac
15974fi
15975NROFF=$ac_cv_path_NROFF
15976if test -n "$NROFF"; then
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15978$as_echo "$NROFF" >&6; }
15979else
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15981$as_echo "no" >&6; }
15982fi
15983
15984
15985 test -n "$NROFF" && break
15986done
15987test -n "$NROFF" || NROFF="/bin/false"
15988
15989 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15990 MANTYPE=doc
15991 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15992 MANTYPE=man
15993 else
15994 MANTYPE=cat
15995 fi
15996fi
15997
15998if test "$MANTYPE" = "doc"; then
15999 mansubdir=man;
16000else
16001 mansubdir=$MANTYPE;
16002fi
16003
16004
16005# Check whether to enable MD5 passwords
16006MD5_MSG="no"
16007
16008# Check whether --with-md5-passwords was given.
16009if test "${with_md5_passwords+set}" = set; then :
16010 withval=$with_md5_passwords;
16011 if test "x$withval" != "xno" ; then
16012
16013$as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
16014
16015 MD5_MSG="yes"
16016 fi
16017
16018
16019fi
16020
16021
16022# Whether to disable shadow password support
16023
16024# Check whether --with-shadow was given.
16025if test "${with_shadow+set}" = set; then :
16026 withval=$with_shadow;
16027 if test "x$withval" = "xno" ; then
16028 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
16029
16030 disable_shadow=yes
16031 fi
16032
16033
16034fi
16035
16036
16037if test -z "$disable_shadow" ; then
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
16039$as_echo_n "checking if the systems has expire shadow information... " >&6; }
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h. */
16042
16043#include <sys/types.h>
16044#include <shadow.h>
16045struct spwd sp;
16046
16047int
16048main ()
16049{
16050 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
16051 ;
16052 return 0;
16053}
16054_ACEOF
16055if ac_fn_c_try_compile "$LINENO"; then :
16056 sp_expire_available=yes
16057fi
16058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059
16060 if test "x$sp_expire_available" = "xyes" ; then
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16062$as_echo "yes" >&6; }
16063
16064$as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
16065
16066 else
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068$as_echo "no" >&6; }
16069 fi
16070fi
16071
16072# Use ip address instead of hostname in $DISPLAY
16073if test ! -z "$IPADDR_IN_DISPLAY" ; then
16074 DISPLAY_HACK_MSG="yes"
16075
16076$as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
16077
16078else
16079 DISPLAY_HACK_MSG="no"
16080
16081# Check whether --with-ipaddr-display was given.
16082if test "${with_ipaddr_display+set}" = set; then :
16083 withval=$with_ipaddr_display;
16084 if test "x$withval" != "xno" ; then
16085 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
16086
16087 DISPLAY_HACK_MSG="yes"
16088 fi
16089
16090
16091fi
16092
16093fi
16094
16095# check for /etc/default/login and use it if present.
16096# Check whether --enable-etc-default-login was given.
16097if test "${enable_etc_default_login+set}" = set; then :
16098 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
16100$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
16101 etc_default_login=no
16102 else
16103 etc_default_login=yes
16104 fi
16105else
16106 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
16107 then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
16109$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
16110 etc_default_login=no
16111 else
16112 etc_default_login=yes
16113 fi
16114
16115fi
16116
16117
16118if test "x$etc_default_login" != "xno"; then
16119 as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
16120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
16121$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
16122if eval \${$as_ac_File+:} false; then :
16123 $as_echo_n "(cached) " >&6
16124else
16125 test "$cross_compiling" = yes &&
16126 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
16127if test -r ""/etc/default/login""; then
16128 eval "$as_ac_File=yes"
16129else
16130 eval "$as_ac_File=no"
16131fi
16132fi
16133eval ac_res=\$$as_ac_File
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16135$as_echo "$ac_res" >&6; }
16136if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
16137 external_path_file=/etc/default/login
16138fi
16139
16140 if test "x$external_path_file" = "x/etc/default/login"; then
16141
16142$as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
16143
16144 fi
16145fi
16146
16147if test $ac_cv_func_login_getcapbool = "yes" && \
16148 test $ac_cv_header_login_cap_h = "yes" ; then
16149 external_path_file=/etc/login.conf
16150fi
16151
16152# Whether to mess with the default path
16153SERVER_PATH_MSG="(default)"
16154
16155# Check whether --with-default-path was given.
16156if test "${with_default_path+set}" = set; then :
16157 withval=$with_default_path;
16158 if test "x$external_path_file" = "x/etc/login.conf" ; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16160--with-default-path=PATH has no effect on this system.
16161Edit /etc/login.conf instead." >&5
16162$as_echo "$as_me: WARNING:
16163--with-default-path=PATH has no effect on this system.
16164Edit /etc/login.conf instead." >&2;}
16165 elif test "x$withval" != "xno" ; then
16166 if test ! -z "$external_path_file" ; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16168--with-default-path=PATH will only be used if PATH is not defined in
16169$external_path_file ." >&5
16170$as_echo "$as_me: WARNING:
16171--with-default-path=PATH will only be used if PATH is not defined in
16172$external_path_file ." >&2;}
16173 fi
16174 user_path="$withval"
16175 SERVER_PATH_MSG="$withval"
16176 fi
16177
16178else
16179 if test "x$external_path_file" = "x/etc/login.conf" ; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
16181$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
16182 else
16183 if test ! -z "$external_path_file" ; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16185If PATH is defined in $external_path_file, ensure the path to scp is included,
16186otherwise scp will not work." >&5
16187$as_echo "$as_me: WARNING:
16188If PATH is defined in $external_path_file, ensure the path to scp is included,
16189otherwise scp will not work." >&2;}
16190 fi
16191 if test "$cross_compiling" = yes; then :
16192 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16193
16194else
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196/* end confdefs.h. */
16197
16198/* find out what STDPATH is */
16199#include <stdio.h>
16200#ifdef HAVE_PATHS_H
16201# include <paths.h>
16202#endif
16203#ifndef _PATH_STDPATH
16204# ifdef _PATH_USERPATH /* Irix */
16205# define _PATH_STDPATH _PATH_USERPATH
16206# else
16207# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
16208# endif
16209#endif
16210#include <sys/types.h>
16211#include <sys/stat.h>
16212#include <fcntl.h>
16213#define DATA "conftest.stdpath"
16214
16215int
16216main ()
16217{
16218
16219 FILE *fd;
16220 int rc;
16221
16222 fd = fopen(DATA,"w");
16223 if(fd == NULL)
16224 exit(1);
16225
16226 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16227 exit(1);
16228
16229 exit(0);
16230
16231 ;
16232 return 0;
16233}
16234_ACEOF
16235if ac_fn_c_try_run "$LINENO"; then :
16236 user_path=`cat conftest.stdpath`
16237else
16238 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16239fi
16240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16241 conftest.$ac_objext conftest.beam conftest.$ac_ext
16242fi
16243
16244# make sure $bindir is in USER_PATH so scp will work
16245 t_bindir="${bindir}"
16246 while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do
16247 t_bindir=`eval echo ${t_bindir}`
16248 case $t_bindir in
16249 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16250 esac
16251 case $t_bindir in
16252 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16253 esac
16254 done
16255 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
16256 if test $? -ne 0 ; then
16257 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
16258 if test $? -ne 0 ; then
16259 user_path=$user_path:$t_bindir
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16261$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
16262 fi
16263 fi
16264 fi
16265
16266fi
16267
16268if test "x$external_path_file" != "x/etc/login.conf" ; then
16269
16270cat >>confdefs.h <<_ACEOF
16271#define USER_PATH "$user_path"
16272_ACEOF
16273
16274
16275fi
16276
16277# Set superuser path separately to user path
16278
16279# Check whether --with-superuser-path was given.
16280if test "${with_superuser_path+set}" = set; then :
16281 withval=$with_superuser_path;
16282 if test -n "$withval" && test "x$withval" != "xno" && \
16283 test "x${withval}" != "xyes"; then
16284
16285cat >>confdefs.h <<_ACEOF
16286#define SUPERUSER_PATH "$withval"
16287_ACEOF
16288
16289 superuser_path=$withval
16290 fi
16291
16292
16293fi
16294
16295
16296
16297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16298$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
16299IPV4_IN6_HACK_MSG="no"
16300
16301# Check whether --with-4in6 was given.
16302if test "${with_4in6+set}" = set; then :
16303 withval=$with_4in6;
16304 if test "x$withval" != "xno" ; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306$as_echo "yes" >&6; }
16307
16308$as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16309
16310 IPV4_IN6_HACK_MSG="yes"
16311 else
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313$as_echo "no" >&6; }
16314 fi
16315
16316else
16317
16318 if test "x$inet6_default_4in6" = "xyes"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
16320$as_echo "yes (default)" >&6; }
16321 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16322
16323 IPV4_IN6_HACK_MSG="yes"
16324 else
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
16326$as_echo "no (default)" >&6; }
16327 fi
16328
16329
16330fi
16331
16332
16333# Whether to enable BSD auth support
16334BSD_AUTH_MSG=no
16335
16336# Check whether --with-bsd-auth was given.
16337if test "${with_bsd_auth+set}" = set; then :
16338 withval=$with_bsd_auth;
16339 if test "x$withval" != "xno" ; then
16340
16341$as_echo "#define BSD_AUTH 1" >>confdefs.h
16342
16343 BSD_AUTH_MSG=yes
16344 fi
16345
16346
16347fi
16348
16349
16350# Where to place sshd.pid
16351piddir=/var/run
16352# make sure the directory exists
16353if test ! -d $piddir ; then
16354 piddir=`eval echo ${sysconfdir}`
16355 case $piddir in
16356 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16357 esac
16358fi
16359
16360
16361# Check whether --with-pid-dir was given.
16362if test "${with_pid_dir+set}" = set; then :
16363 withval=$with_pid_dir;
16364 if test -n "$withval" && test "x$withval" != "xno" && \
16365 test "x${withval}" != "xyes"; then
16366 piddir=$withval
16367 if test ! -d $piddir ; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
16369$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16370 fi
16371 fi
16372
16373
16374fi
16375
16376
16377
16378cat >>confdefs.h <<_ACEOF
16379#define _PATH_SSH_PIDDIR "$piddir"
16380_ACEOF
16381
16382
16383
16384# Check whether --enable-lastlog was given.
16385if test "${enable_lastlog+set}" = set; then :
16386 enableval=$enable_lastlog;
16387 if test "x$enableval" = "xno" ; then
16388 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16389
16390 fi
16391
16392
16393fi
16394
16395# Check whether --enable-utmp was given.
16396if test "${enable_utmp+set}" = set; then :
16397 enableval=$enable_utmp;
16398 if test "x$enableval" = "xno" ; then
16399 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16400
16401 fi
16402
16403
16404fi
16405
16406# Check whether --enable-utmpx was given.
16407if test "${enable_utmpx+set}" = set; then :
16408 enableval=$enable_utmpx;
16409 if test "x$enableval" = "xno" ; then
16410
16411$as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
16412
16413 fi
16414
16415
16416fi
16417
16418# Check whether --enable-wtmp was given.
16419if test "${enable_wtmp+set}" = set; then :
16420 enableval=$enable_wtmp;
16421 if test "x$enableval" = "xno" ; then
16422 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16423
16424 fi
16425
16426
16427fi
16428
16429# Check whether --enable-wtmpx was given.
16430if test "${enable_wtmpx+set}" = set; then :
16431 enableval=$enable_wtmpx;
16432 if test "x$enableval" = "xno" ; then
16433
16434$as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16435
16436 fi
16437
16438
16439fi
16440
16441# Check whether --enable-libutil was given.
16442if test "${enable_libutil+set}" = set; then :
16443 enableval=$enable_libutil;
16444 if test "x$enableval" = "xno" ; then
16445 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
16446
16447 fi
16448
16449
16450fi
16451
16452# Check whether --enable-pututline was given.
16453if test "${enable_pututline+set}" = set; then :
16454 enableval=$enable_pututline;
16455 if test "x$enableval" = "xno" ; then
16456
16457$as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
16458
16459 fi
16460
16461
16462fi
16463
16464# Check whether --enable-pututxline was given.
16465if test "${enable_pututxline+set}" = set; then :
16466 enableval=$enable_pututxline;
16467 if test "x$enableval" = "xno" ; then
16468
16469$as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
16470
16471 fi
16472
16473
16474fi
16475
16476
16477# Check whether --with-lastlog was given.
16478if test "${with_lastlog+set}" = set; then :
16479 withval=$with_lastlog;
16480 if test "x$withval" = "xno" ; then
16481 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16482
16483 elif test -n "$withval" && test "x${withval}" != "xyes"; then
16484 conf_lastlog_location=$withval
16485 fi
16486
16487
16488fi
16489
16490
16491
16492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
16493$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
16494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495/* end confdefs.h. */
16496
16497#include <sys/types.h>
16498#include <utmp.h>
16499#ifdef HAVE_LASTLOG_H
16500# include <lastlog.h>
16501#endif
16502#ifdef HAVE_PATHS_H
16503# include <paths.h>
16504#endif
16505#ifdef HAVE_LOGIN_H
16506# include <login.h>
16507#endif
16508
16509int
16510main ()
16511{
16512 char *lastlog = LASTLOG_FILE;
16513 ;
16514 return 0;
16515}
16516_ACEOF
16517if ac_fn_c_try_compile "$LINENO"; then :
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16519$as_echo "yes" >&6; }
16520else
16521
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523$as_echo "no" >&6; }
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
16525$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527/* end confdefs.h. */
16528
16529#include <sys/types.h>
16530#include <utmp.h>
16531#ifdef HAVE_LASTLOG_H
16532# include <lastlog.h>
16533#endif
16534#ifdef HAVE_PATHS_H
16535# include <paths.h>
16536#endif
16537
16538int
16539main ()
16540{
16541 char *lastlog = _PATH_LASTLOG;
16542 ;
16543 return 0;
16544}
16545_ACEOF
16546if ac_fn_c_try_compile "$LINENO"; then :
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16548$as_echo "yes" >&6; }
16549else
16550
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552$as_echo "no" >&6; }
16553 system_lastlog_path=no
16554
16555fi
16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557
16558fi
16559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16560
16561if test -z "$conf_lastlog_location"; then
16562 if test x"$system_lastlog_path" = x"no" ; then
16563 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16564 if (test -d "$f" || test -f "$f") ; then
16565 conf_lastlog_location=$f
16566 fi
16567 done
16568 if test -z "$conf_lastlog_location"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16570$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16571 fi
16572 fi
16573fi
16574
16575if test -n "$conf_lastlog_location"; then
16576
16577cat >>confdefs.h <<_ACEOF
16578#define CONF_LASTLOG_FILE "$conf_lastlog_location"
16579_ACEOF
16580
16581fi
16582
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16584$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586/* end confdefs.h. */
16587
16588#include <sys/types.h>
16589#include <utmp.h>
16590#ifdef HAVE_PATHS_H
16591# include <paths.h>
16592#endif
16593
16594int
16595main ()
16596{
16597 char *utmp = UTMP_FILE;
16598 ;
16599 return 0;
16600}
16601_ACEOF
16602if ac_fn_c_try_compile "$LINENO"; then :
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16604$as_echo "yes" >&6; }
16605else
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16607$as_echo "no" >&6; }
16608 system_utmp_path=no
16609
16610fi
16611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612if test -z "$conf_utmp_location"; then
16613 if test x"$system_utmp_path" = x"no" ; then
16614 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16615 if test -f $f ; then
16616 conf_utmp_location=$f
16617 fi
16618 done
16619 if test -z "$conf_utmp_location"; then
16620 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16621
16622 fi
16623 fi
16624fi
16625if test -n "$conf_utmp_location"; then
16626
16627cat >>confdefs.h <<_ACEOF
16628#define CONF_UTMP_FILE "$conf_utmp_location"
16629_ACEOF
16630
16631fi
16632
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16634$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636/* end confdefs.h. */
16637
16638#include <sys/types.h>
16639#include <utmp.h>
16640#ifdef HAVE_PATHS_H
16641# include <paths.h>
16642#endif
16643
16644int
16645main ()
16646{
16647 char *wtmp = WTMP_FILE;
16648 ;
16649 return 0;
16650}
16651_ACEOF
16652if ac_fn_c_try_compile "$LINENO"; then :
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16654$as_echo "yes" >&6; }
16655else
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657$as_echo "no" >&6; }
16658 system_wtmp_path=no
16659
16660fi
16661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662if test -z "$conf_wtmp_location"; then
16663 if test x"$system_wtmp_path" = x"no" ; then
16664 for f in /usr/adm/wtmp /var/log/wtmp; do
16665 if test -f $f ; then
16666 conf_wtmp_location=$f
16667 fi
16668 done
16669 if test -z "$conf_wtmp_location"; then
16670 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16671
16672 fi
16673 fi
16674fi
16675if test -n "$conf_wtmp_location"; then
16676
16677cat >>confdefs.h <<_ACEOF
16678#define CONF_WTMP_FILE "$conf_wtmp_location"
16679_ACEOF
16680
16681fi
16682
16683
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16685$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687/* end confdefs.h. */
16688
16689#include <sys/types.h>
16690#include <utmp.h>
16691#ifdef HAVE_UTMPX_H
16692#include <utmpx.h>
16693#endif
16694#ifdef HAVE_PATHS_H
16695# include <paths.h>
16696#endif
16697
16698int
16699main ()
16700{
16701 char *wtmpx = WTMPX_FILE;
16702 ;
16703 return 0;
16704}
16705_ACEOF
16706if ac_fn_c_try_compile "$LINENO"; then :
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16708$as_echo "yes" >&6; }
16709else
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711$as_echo "no" >&6; }
16712 system_wtmpx_path=no
16713
16714fi
16715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716if test -z "$conf_wtmpx_location"; then
16717 if test x"$system_wtmpx_path" = x"no" ; then
16718 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16719
16720 fi
16721else
16722
16723cat >>confdefs.h <<_ACEOF
16724#define CONF_WTMPX_FILE "$conf_wtmpx_location"
16725_ACEOF
16726
16727fi
16728
16729
16730if test ! -z "$blibpath" ; then
16731 LDFLAGS="$LDFLAGS $blibflags$blibpath"
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16733$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16734fi
16735
16736CFLAGS="$CFLAGS $werror_flags"
16737
16738if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16739 TEST_SSH_IPV6=no
16740else
16741 TEST_SSH_IPV6=yes
16742fi
16743ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16744if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
16745 TEST_SSH_IPV6=no
16746fi
16747
16748TEST_SSH_IPV6=$TEST_SSH_IPV6
16749
16750
16751
16752ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
16753
16754cat >confcache <<\_ACEOF
16755# This file is a shell script that caches the results of configure
16756# tests run on this system so they can be shared between configure
16757# scripts and configure runs, see configure's option --config-cache.
16758# It is not useful on other systems. If it contains results you don't
16759# want to keep, you may remove or edit it.
16760#
16761# config.status only pays attention to the cache file if you give it
16762# the --recheck option to rerun configure.
16763#
16764# `ac_cv_env_foo' variables (set or unset) will be overridden when
16765# loading this file, other *unset* `ac_cv_foo' will be assigned the
16766# following values.
16767
16768_ACEOF
16769
16770# The following way of writing the cache mishandles newlines in values,
16771# but we know of no workaround that is simple, portable, and efficient.
16772# So, we kill variables containing newlines.
16773# Ultrix sh set writes to stderr and can't be redirected directly,
16774# and sets the high bit in the cache file unless we assign to the vars.
16775(
16776 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16777 eval ac_val=\$$ac_var
16778 case $ac_val in #(
16779 *${as_nl}*)
16780 case $ac_var in #(
16781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16782$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16783 esac
16784 case $ac_var in #(
16785 _ | IFS | as_nl) ;; #(
16786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16787 *) { eval $ac_var=; unset $ac_var;} ;;
16788 esac ;;
16789 esac
16790 done
16791
16792 (set) 2>&1 |
16793 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16794 *${as_nl}ac_space=\ *)
16795 # `set' does not quote correctly, so add quotes: double-quote
16796 # substitution turns \\\\ into \\, and sed turns \\ into \.
16797 sed -n \
16798 "s/'/'\\\\''/g;
16799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16800 ;; #(
16801 *)
16802 # `set' quotes correctly as required by POSIX, so do not add quotes.
16803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16804 ;;
16805 esac |
16806 sort
16807) |
16808 sed '
16809 /^ac_cv_env_/b end
16810 t clear
16811 :clear
16812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16813 t end
16814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16815 :end' >>confcache
16816if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16817 if test -w "$cache_file"; then
16818 if test "x$cache_file" != "x/dev/null"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16820$as_echo "$as_me: updating cache $cache_file" >&6;}
16821 if test ! -f "$cache_file" || test -h "$cache_file"; then
16822 cat confcache >"$cache_file"
16823 else
16824 case $cache_file in #(
16825 */* | ?:*)
16826 mv -f confcache "$cache_file"$$ &&
16827 mv -f "$cache_file"$$ "$cache_file" ;; #(
16828 *)
16829 mv -f confcache "$cache_file" ;;
16830 esac
16831 fi
16832 fi
16833 else
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16835$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16836 fi
16837fi
16838rm -f confcache
16839
16840test "x$prefix" = xNONE && prefix=$ac_default_prefix
16841# Let make expand exec_prefix.
16842test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16843
16844DEFS=-DHAVE_CONFIG_H
16845
16846ac_libobjs=
16847ac_ltlibobjs=
16848U=
16849for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16850 # 1. Remove the extension, and $U if already installed.
16851 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16852 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16853 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16854 # will be set to the directory where LIBOBJS objects are built.
16855 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16856 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16857done
16858LIBOBJS=$ac_libobjs
16859
16860LTLIBOBJS=$ac_ltlibobjs
16861
16862
16863
16864
16865: "${CONFIG_STATUS=./config.status}"
16866ac_write_fail=0
16867ac_clean_files_save=$ac_clean_files
16868ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16870$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16871as_write_fail=0
16872cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16873#! $SHELL
16874# Generated by $as_me.
16875# Run this file to recreate the current configuration.
16876# Compiler output produced by configure, useful for debugging
16877# configure, is in config.log if it exists.
16878
16879debug=false
16880ac_cs_recheck=false
16881ac_cs_silent=false
16882
16883SHELL=\${CONFIG_SHELL-$SHELL}
16884export SHELL
16885_ASEOF
16886cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16887## -------------------- ##
16888## M4sh Initialization. ##
16889## -------------------- ##
16890
16891# Be more Bourne compatible
16892DUALCASE=1; export DUALCASE # for MKS sh
16893if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16894 emulate sh
16895 NULLCMD=:
16896 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16897 # is contrary to our usage. Disable this feature.
16898 alias -g '${1+"$@"}'='"$@"'
16899 setopt NO_GLOB_SUBST
16900else
16901 case `(set -o) 2>/dev/null` in #(
16902 *posix*) :
16903 set -o posix ;; #(
16904 *) :
16905 ;;
16906esac
16907fi
16908
16909
16910as_nl='
16911'
16912export as_nl
16913# Printing a long string crashes Solaris 7 /usr/bin/printf.
16914as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16915as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16916as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16917# Prefer a ksh shell builtin over an external printf program on Solaris,
16918# but without wasting forks for bash or zsh.
16919if test -z "$BASH_VERSION$ZSH_VERSION" \
16920 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16921 as_echo='print -r --'
16922 as_echo_n='print -rn --'
16923elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16924 as_echo='printf %s\n'
16925 as_echo_n='printf %s'
16926else
16927 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16928 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16929 as_echo_n='/usr/ucb/echo -n'
16930 else
16931 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16932 as_echo_n_body='eval
16933 arg=$1;
16934 case $arg in #(
16935 *"$as_nl"*)
16936 expr "X$arg" : "X\\(.*\\)$as_nl";
16937 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16938 esac;
16939 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16940 '
16941 export as_echo_n_body
16942 as_echo_n='sh -c $as_echo_n_body as_echo'
16943 fi
16944 export as_echo_body
16945 as_echo='sh -c $as_echo_body as_echo'
16946fi
16947
16948# The user is always right.
16949if test "${PATH_SEPARATOR+set}" != set; then
16950 PATH_SEPARATOR=:
16951 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16952 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16953 PATH_SEPARATOR=';'
16954 }
16955fi
16956
16957
16958# IFS
16959# We need space, tab and new line, in precisely that order. Quoting is
16960# there to prevent editors from complaining about space-tab.
16961# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16962# splitting by setting IFS to empty value.)
16963IFS=" "" $as_nl"
16964
16965# Find who we are. Look in the path if we contain no directory separator.
16966as_myself=
16967case $0 in #((
16968 *[\\/]* ) as_myself=$0 ;;
16969 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16970for as_dir in $PATH
16971do
16972 IFS=$as_save_IFS
16973 test -z "$as_dir" && as_dir=.
16974 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16975 done
16976IFS=$as_save_IFS
16977
16978 ;;
16979esac
16980# We did not find ourselves, most probably we were run as `sh COMMAND'
16981# in which case we are not to be found in the path.
16982if test "x$as_myself" = x; then
16983 as_myself=$0
16984fi
16985if test ! -f "$as_myself"; then
16986 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16987 exit 1
16988fi
16989
16990# Unset variables that we do not need and which cause bugs (e.g. in
16991# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16992# suppresses any "Segmentation fault" message there. '((' could
16993# trigger a bug in pdksh 5.2.14.
16994for as_var in BASH_ENV ENV MAIL MAILPATH
16995do eval test x\${$as_var+set} = xset \
16996 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16997done
16998PS1='$ '
16999PS2='> '
17000PS4='+ '
17001
17002# NLS nuisances.
17003LC_ALL=C
17004export LC_ALL
17005LANGUAGE=C
17006export LANGUAGE
17007
17008# CDPATH.
17009(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17010
17011
17012# as_fn_error STATUS ERROR [LINENO LOG_FD]
17013# ----------------------------------------
17014# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17015# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17016# script with STATUS, using 1 if that was 0.
17017as_fn_error ()
17018{
17019 as_status=$1; test $as_status -eq 0 && as_status=1
17020 if test "$4"; then
17021 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17022 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17023 fi
17024 $as_echo "$as_me: error: $2" >&2
17025 as_fn_exit $as_status
17026} # as_fn_error
17027
17028
17029# as_fn_set_status STATUS
17030# -----------------------
17031# Set $? to STATUS, without forking.
17032as_fn_set_status ()
17033{
17034 return $1
17035} # as_fn_set_status
17036
17037# as_fn_exit STATUS
17038# -----------------
17039# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17040as_fn_exit ()
17041{
17042 set +e
17043 as_fn_set_status $1
17044 exit $1
17045} # as_fn_exit
17046
17047# as_fn_unset VAR
17048# ---------------
17049# Portably unset VAR.
17050as_fn_unset ()
17051{
17052 { eval $1=; unset $1;}
17053}
17054as_unset=as_fn_unset
17055# as_fn_append VAR VALUE
17056# ----------------------
17057# Append the text in VALUE to the end of the definition contained in VAR. Take
17058# advantage of any shell optimizations that allow amortized linear growth over
17059# repeated appends, instead of the typical quadratic growth present in naive
17060# implementations.
17061if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17062 eval 'as_fn_append ()
17063 {
17064 eval $1+=\$2
17065 }'
17066else
17067 as_fn_append ()
17068 {
17069 eval $1=\$$1\$2
17070 }
17071fi # as_fn_append
17072
17073# as_fn_arith ARG...
17074# ------------------
17075# Perform arithmetic evaluation on the ARGs, and store the result in the
17076# global $as_val. Take advantage of shells that can avoid forks. The arguments
17077# must be portable across $(()) and expr.
17078if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17079 eval 'as_fn_arith ()
17080 {
17081 as_val=$(( $* ))
17082 }'
17083else
17084 as_fn_arith ()
17085 {
17086 as_val=`expr "$@" || test $? -eq 1`
17087 }
17088fi # as_fn_arith
17089
17090
17091if expr a : '\(a\)' >/dev/null 2>&1 &&
17092 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17093 as_expr=expr
17094else
17095 as_expr=false
17096fi
17097
17098if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17099 as_basename=basename
17100else
17101 as_basename=false
17102fi
17103
17104if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17105 as_dirname=dirname
17106else
17107 as_dirname=false
17108fi
17109
17110as_me=`$as_basename -- "$0" ||
17111$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17112 X"$0" : 'X\(//\)$' \| \
17113 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17114$as_echo X/"$0" |
17115 sed '/^.*\/\([^/][^/]*\)\/*$/{
17116 s//\1/
17117 q
17118 }
17119 /^X\/\(\/\/\)$/{
17120 s//\1/
17121 q
17122 }
17123 /^X\/\(\/\).*/{
17124 s//\1/
17125 q
17126 }
17127 s/.*/./; q'`
17128
17129# Avoid depending upon Character Ranges.
17130as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17131as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17132as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17133as_cr_digits='0123456789'
17134as_cr_alnum=$as_cr_Letters$as_cr_digits
17135
17136ECHO_C= ECHO_N= ECHO_T=
17137case `echo -n x` in #(((((
17138-n*)
17139 case `echo 'xy\c'` in
17140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17141 xy) ECHO_C='\c';;
17142 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17143 ECHO_T=' ';;
17144 esac;;
17145*)
17146 ECHO_N='-n';;
17147esac
17148
17149rm -f conf$$ conf$$.exe conf$$.file
17150if test -d conf$$.dir; then
17151 rm -f conf$$.dir/conf$$.file
17152else
17153 rm -f conf$$.dir
17154 mkdir conf$$.dir 2>/dev/null
17155fi
17156if (echo >conf$$.file) 2>/dev/null; then
17157 if ln -s conf$$.file conf$$ 2>/dev/null; then
17158 as_ln_s='ln -s'
17159 # ... but there are two gotchas:
17160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17162 # In both cases, we have to default to `cp -p'.
17163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17164 as_ln_s='cp -p'
17165 elif ln conf$$.file conf$$ 2>/dev/null; then
17166 as_ln_s=ln
17167 else
17168 as_ln_s='cp -p'
17169 fi
17170else
17171 as_ln_s='cp -p'
17172fi
17173rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17174rmdir conf$$.dir 2>/dev/null
17175
17176
17177# as_fn_mkdir_p
17178# -------------
17179# Create "$as_dir" as a directory, including parents if necessary.
17180as_fn_mkdir_p ()
17181{
17182
17183 case $as_dir in #(
17184 -*) as_dir=./$as_dir;;
17185 esac
17186 test -d "$as_dir" || eval $as_mkdir_p || {
17187 as_dirs=
17188 while :; do
17189 case $as_dir in #(
17190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17191 *) as_qdir=$as_dir;;
17192 esac
17193 as_dirs="'$as_qdir' $as_dirs"
17194 as_dir=`$as_dirname -- "$as_dir" ||
17195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17196 X"$as_dir" : 'X\(//\)[^/]' \| \
17197 X"$as_dir" : 'X\(//\)$' \| \
17198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17199$as_echo X"$as_dir" |
17200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17201 s//\1/
17202 q
17203 }
17204 /^X\(\/\/\)[^/].*/{
17205 s//\1/
17206 q
17207 }
17208 /^X\(\/\/\)$/{
17209 s//\1/
17210 q
17211 }
17212 /^X\(\/\).*/{
17213 s//\1/
17214 q
17215 }
17216 s/.*/./; q'`
17217 test -d "$as_dir" && break
17218 done
17219 test -z "$as_dirs" || eval "mkdir $as_dirs"
17220 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17221
17222
17223} # as_fn_mkdir_p
17224if mkdir -p . 2>/dev/null; then
17225 as_mkdir_p='mkdir -p "$as_dir"'
17226else
17227 test -d ./-p && rmdir ./-p
17228 as_mkdir_p=false
17229fi
17230
17231if test -x / >/dev/null 2>&1; then
17232 as_test_x='test -x'
17233else
17234 if ls -dL / >/dev/null 2>&1; then
17235 as_ls_L_option=L
17236 else
17237 as_ls_L_option=
17238 fi
17239 as_test_x='
17240 eval sh -c '\''
17241 if test -d "$1"; then
17242 test -d "$1/.";
17243 else
17244 case $1 in #(
17245 -*)set "./$1";;
17246 esac;
17247 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17248 ???[sx]*):;;*)false;;esac;fi
17249 '\'' sh
17250 '
17251fi
17252as_executable_p=$as_test_x
17253
17254# Sed expression to map a string onto a valid CPP name.
17255as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17256
17257# Sed expression to map a string onto a valid variable name.
17258as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17259
17260
17261exec 6>&1
17262## ----------------------------------- ##
17263## Main body of $CONFIG_STATUS script. ##
17264## ----------------------------------- ##
17265_ASEOF
17266test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17267
17268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269# Save the log message, to keep $0 and so on meaningful, and to
17270# report actual input values of CONFIG_FILES etc. instead of their
17271# values after options handling.
17272ac_log="
17273This file was extended by OpenSSH $as_me Portable, which was
17274generated by GNU Autoconf 2.68. Invocation command line was
17275
17276 CONFIG_FILES = $CONFIG_FILES
17277 CONFIG_HEADERS = $CONFIG_HEADERS
17278 CONFIG_LINKS = $CONFIG_LINKS
17279 CONFIG_COMMANDS = $CONFIG_COMMANDS
17280 $ $0 $@
17281
17282on `(hostname || uname -n) 2>/dev/null | sed 1q`
17283"
17284
17285_ACEOF
17286
17287case $ac_config_files in *"
17288"*) set x $ac_config_files; shift; ac_config_files=$*;;
17289esac
17290
17291case $ac_config_headers in *"
17292"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17293esac
17294
17295
17296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17297# Files that config.status was made for.
17298config_files="$ac_config_files"
17299config_headers="$ac_config_headers"
17300
17301_ACEOF
17302
17303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17304ac_cs_usage="\
17305\`$as_me' instantiates files and other configuration actions
17306from templates according to the current configuration. Unless the files
17307and actions are specified as TAGs, all are instantiated by default.
17308
17309Usage: $0 [OPTION]... [TAG]...
17310
17311 -h, --help print this help, then exit
17312 -V, --version print version number and configuration settings, then exit
17313 --config print configuration, then exit
17314 -q, --quiet, --silent
17315 do not print progress messages
17316 -d, --debug don't remove temporary files
17317 --recheck update $as_me by reconfiguring in the same conditions
17318 --file=FILE[:TEMPLATE]
17319 instantiate the configuration file FILE
17320 --header=FILE[:TEMPLATE]
17321 instantiate the configuration header FILE
17322
17323Configuration files:
17324$config_files
17325
17326Configuration headers:
17327$config_headers
17328
17329Report bugs to <openssh-unix-dev@mindrot.org>."
17330
17331_ACEOF
17332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17333ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17334ac_cs_version="\\
17335OpenSSH config.status Portable
17336configured by $0, generated by GNU Autoconf 2.68,
17337 with options \\"\$ac_cs_config\\"
17338
17339Copyright (C) 2010 Free Software Foundation, Inc.
17340This config.status script is free software; the Free Software Foundation
17341gives unlimited permission to copy, distribute and modify it."
17342
17343ac_pwd='$ac_pwd'
17344srcdir='$srcdir'
17345INSTALL='$INSTALL'
17346AWK='$AWK'
17347test -n "\$AWK" || AWK=awk
17348_ACEOF
17349
17350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17351# The default lists apply if the user does not specify any file.
17352ac_need_defaults=:
17353while test $# != 0
17354do
17355 case $1 in
17356 --*=?*)
17357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17359 ac_shift=:
17360 ;;
17361 --*=)
17362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17363 ac_optarg=
17364 ac_shift=:
17365 ;;
17366 *)
17367 ac_option=$1
17368 ac_optarg=$2
17369 ac_shift=shift
17370 ;;
17371 esac
17372
17373 case $ac_option in
17374 # Handling of the options.
17375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17376 ac_cs_recheck=: ;;
17377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17378 $as_echo "$ac_cs_version"; exit ;;
17379 --config | --confi | --conf | --con | --co | --c )
17380 $as_echo "$ac_cs_config"; exit ;;
17381 --debug | --debu | --deb | --de | --d | -d )
17382 debug=: ;;
17383 --file | --fil | --fi | --f )
17384 $ac_shift
17385 case $ac_optarg in
17386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17387 '') as_fn_error $? "missing file argument" ;;
17388 esac
17389 as_fn_append CONFIG_FILES " '$ac_optarg'"
17390 ac_need_defaults=false;;
17391 --header | --heade | --head | --hea )
17392 $ac_shift
17393 case $ac_optarg in
17394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17395 esac
17396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17397 ac_need_defaults=false;;
17398 --he | --h)
17399 # Conflict between --help and --header
17400 as_fn_error $? "ambiguous option: \`$1'
17401Try \`$0 --help' for more information.";;
17402 --help | --hel | -h )
17403 $as_echo "$ac_cs_usage"; exit ;;
17404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17406 ac_cs_silent=: ;;
17407
17408 # This is an error.
17409 -*) as_fn_error $? "unrecognized option: \`$1'
17410Try \`$0 --help' for more information." ;;
17411
17412 *) as_fn_append ac_config_targets " $1"
17413 ac_need_defaults=false ;;
17414
17415 esac
17416 shift
17417done
17418
17419ac_configure_extra_args=
17420
17421if $ac_cs_silent; then
17422 exec 6>/dev/null
17423 ac_configure_extra_args="$ac_configure_extra_args --silent"
17424fi
17425
17426_ACEOF
17427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17428if \$ac_cs_recheck; then
17429 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17430 shift
17431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17432 CONFIG_SHELL='$SHELL'
17433 export CONFIG_SHELL
17434 exec "\$@"
17435fi
17436
17437_ACEOF
17438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17439exec 5>>config.log
17440{
17441 echo
17442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17443## Running $as_me. ##
17444_ASBOX
17445 $as_echo "$ac_log"
17446} >&5
17447
17448_ACEOF
17449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17450_ACEOF
17451
17452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17453
17454# Handling of arguments.
17455for ac_config_target in $ac_config_targets
17456do
17457 case $ac_config_target in
17458 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17460 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
17461 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
17462 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
17463 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17464 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
17465 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
17466
17467 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17468 esac
17469done
17470
17471
17472# If the user did not use the arguments to specify the items to instantiate,
17473# then the envvar interface is used. Set only those that are not.
17474# We use the long form for the default assignment because of an extremely
17475# bizarre bug on SunOS 4.1.3.
17476if $ac_need_defaults; then
17477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17479fi
17480
17481# Have a temporary directory for convenience. Make it in the build tree
17482# simply because there is no reason against having it here, and in addition,
17483# creating and moving files from /tmp can sometimes cause problems.
17484# Hook for its removal unless debugging.
17485# Note that there is a small window in which the directory will not be cleaned:
17486# after its creation but before its name has been assigned to `$tmp'.
17487$debug ||
17488{
17489 tmp= ac_tmp=
17490 trap 'exit_status=$?
17491 : "${ac_tmp:=$tmp}"
17492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17493' 0
17494 trap 'as_fn_exit 1' 1 2 13 15
17495}
17496# Create a (secure) tmp directory for tmp files.
17497
17498{
17499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17500 test -d "$tmp"
17501} ||
17502{
17503 tmp=./conf$$-$RANDOM
17504 (umask 077 && mkdir "$tmp")
17505} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17506ac_tmp=$tmp
17507
17508# Set up the scripts for CONFIG_FILES section.
17509# No need to generate them if there are no CONFIG_FILES.
17510# This happens for instance with `./config.status config.h'.
17511if test -n "$CONFIG_FILES"; then
17512
17513
17514ac_cr=`echo X | tr X '\015'`
17515# On cygwin, bash can eat \r inside `` if the user requested igncr.
17516# But we know of no other shell where ac_cr would be empty at this
17517# point, so we can use a bashism as a fallback.
17518if test "x$ac_cr" = x; then
17519 eval ac_cr=\$\'\\r\'
17520fi
17521ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17522if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17523 ac_cs_awk_cr='\\r'
17524else
17525 ac_cs_awk_cr=$ac_cr
17526fi
17527
17528echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17529_ACEOF
17530
17531
17532{
17533 echo "cat >conf$$subs.awk <<_ACEOF" &&
17534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17535 echo "_ACEOF"
17536} >conf$$subs.sh ||
17537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17538ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17539ac_delim='%!_!# '
17540for ac_last_try in false false false false false :; do
17541 . ./conf$$subs.sh ||
17542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17543
17544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17545 if test $ac_delim_n = $ac_delim_num; then
17546 break
17547 elif $ac_last_try; then
17548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17549 else
17550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17551 fi
17552done
17553rm -f conf$$subs.sh
17554
17555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17556cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17557_ACEOF
17558sed -n '
17559h
17560s/^/S["/; s/!.*/"]=/
17561p
17562g
17563s/^[^!]*!//
17564:repl
17565t repl
17566s/'"$ac_delim"'$//
17567t delim
17568:nl
17569h
17570s/\(.\{148\}\)..*/\1/
17571t more1
17572s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17573p
17574n
17575b repl
17576:more1
17577s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17578p
17579g
17580s/.\{148\}//
17581t nl
17582:delim
17583h
17584s/\(.\{148\}\)..*/\1/
17585t more2
17586s/["\\]/\\&/g; s/^/"/; s/$/"/
17587p
17588b
17589:more2
17590s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17591p
17592g
17593s/.\{148\}//
17594t delim
17595' <conf$$subs.awk | sed '
17596/^[^""]/{
17597 N
17598 s/\n//
17599}
17600' >>$CONFIG_STATUS || ac_write_fail=1
17601rm -f conf$$subs.awk
17602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17603_ACAWK
17604cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17605 for (key in S) S_is_set[key] = 1
17606 FS = ""
17607
17608}
17609{
17610 line = $ 0
17611 nfields = split(line, field, "@")
17612 substed = 0
17613 len = length(field[1])
17614 for (i = 2; i < nfields; i++) {
17615 key = field[i]
17616 keylen = length(key)
17617 if (S_is_set[key]) {
17618 value = S[key]
17619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17620 len += length(value) + length(field[++i])
17621 substed = 1
17622 } else
17623 len += 1 + keylen
17624 }
17625
17626 print line
17627}
17628
17629_ACAWK
17630_ACEOF
17631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17632if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17633 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17634else
17635 cat
17636fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17637 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17638_ACEOF
17639
17640# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17641# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17642# trailing colons and then remove the whole line if VPATH becomes empty
17643# (actually we leave an empty line to preserve line numbers).
17644if test "x$srcdir" = x.; then
17645 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17646h
17647s///
17648s/^/:/
17649s/[ ]*$/:/
17650s/:\$(srcdir):/:/g
17651s/:\${srcdir}:/:/g
17652s/:@srcdir@:/:/g
17653s/^:*//
17654s/:*$//
17655x
17656s/\(=[ ]*\).*/\1/
17657G
17658s/\n//
17659s/^[^=]*=[ ]*$//
17660}'
17661fi
17662
17663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17664fi # test -n "$CONFIG_FILES"
17665
17666# Set up the scripts for CONFIG_HEADERS section.
17667# No need to generate them if there are no CONFIG_HEADERS.
17668# This happens for instance with `./config.status Makefile'.
17669if test -n "$CONFIG_HEADERS"; then
17670cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17671BEGIN {
17672_ACEOF
17673
17674# Transform confdefs.h into an awk script `defines.awk', embedded as
17675# here-document in config.status, that substitutes the proper values into
17676# config.h.in to produce config.h.
17677
17678# Create a delimiter string that does not exist in confdefs.h, to ease
17679# handling of long lines.
17680ac_delim='%!_!# '
17681for ac_last_try in false false :; do
17682 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17683 if test -z "$ac_tt"; then
17684 break
17685 elif $ac_last_try; then
17686 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17687 else
17688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17689 fi
17690done
17691
17692# For the awk script, D is an array of macro values keyed by name,
17693# likewise P contains macro parameters if any. Preserve backslash
17694# newline sequences.
17695
17696ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17697sed -n '
17698s/.\{148\}/&'"$ac_delim"'/g
17699t rset
17700:rset
17701s/^[ ]*#[ ]*define[ ][ ]*/ /
17702t def
17703d
17704:def
17705s/\\$//
17706t bsnl
17707s/["\\]/\\&/g
17708s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17709D["\1"]=" \3"/p
17710s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17711d
17712:bsnl
17713s/["\\]/\\&/g
17714s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17715D["\1"]=" \3\\\\\\n"\\/p
17716t cont
17717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17718t cont
17719d
17720:cont
17721n
17722s/.\{148\}/&'"$ac_delim"'/g
17723t clear
17724:clear
17725s/\\$//
17726t bsnlc
17727s/["\\]/\\&/g; s/^/"/; s/$/"/p
17728d
17729:bsnlc
17730s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17731b cont
17732' <confdefs.h | sed '
17733s/'"$ac_delim"'/"\\\
17734"/g' >>$CONFIG_STATUS || ac_write_fail=1
17735
17736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17737 for (key in D) D_is_set[key] = 1
17738 FS = ""
17739}
17740/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17741 line = \$ 0
17742 split(line, arg, " ")
17743 if (arg[1] == "#") {
17744 defundef = arg[2]
17745 mac1 = arg[3]
17746 } else {
17747 defundef = substr(arg[1], 2)
17748 mac1 = arg[2]
17749 }
17750 split(mac1, mac2, "(") #)
17751 macro = mac2[1]
17752 prefix = substr(line, 1, index(line, defundef) - 1)
17753 if (D_is_set[macro]) {
17754 # Preserve the white space surrounding the "#".
17755 print prefix "define", macro P[macro] D[macro]
17756 next
17757 } else {
17758 # Replace #undef with comments. This is necessary, for example,
17759 # in the case of _POSIX_SOURCE, which is predefined and required
17760 # on some systems where configure will not decide to define it.
17761 if (defundef == "undef") {
17762 print "/*", prefix defundef, macro, "*/"
17763 next
17764 }
17765 }
17766}
17767{ print }
17768_ACAWK
17769_ACEOF
17770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17771 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17772fi # test -n "$CONFIG_HEADERS"
17773
17774
17775eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17776shift
17777for ac_tag
17778do
17779 case $ac_tag in
17780 :[FHLC]) ac_mode=$ac_tag; continue;;
17781 esac
17782 case $ac_mode$ac_tag in
17783 :[FHL]*:*);;
17784 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17785 :[FH]-) ac_tag=-:-;;
17786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17787 esac
17788 ac_save_IFS=$IFS
17789 IFS=:
17790 set x $ac_tag
17791 IFS=$ac_save_IFS
17792 shift
17793 ac_file=$1
17794 shift
17795
17796 case $ac_mode in
17797 :L) ac_source=$1;;
17798 :[FH])
17799 ac_file_inputs=
17800 for ac_f
17801 do
17802 case $ac_f in
17803 -) ac_f="$ac_tmp/stdin";;
17804 *) # Look for the file first in the build tree, then in the source tree
17805 # (if the path is not absolute). The absolute path cannot be DOS-style,
17806 # because $ac_f cannot contain `:'.
17807 test -f "$ac_f" ||
17808 case $ac_f in
17809 [\\/$]*) false;;
17810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17811 esac ||
17812 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17813 esac
17814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17815 as_fn_append ac_file_inputs " '$ac_f'"
17816 done
17817
17818 # Let's still pretend it is `configure' which instantiates (i.e., don't
17819 # use $as_me), people would be surprised to read:
17820 # /* config.h. Generated by config.status. */
17821 configure_input='Generated from '`
17822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17823 `' by configure.'
17824 if test x"$ac_file" != x-; then
17825 configure_input="$ac_file. $configure_input"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17827$as_echo "$as_me: creating $ac_file" >&6;}
17828 fi
17829 # Neutralize special characters interpreted by sed in replacement strings.
17830 case $configure_input in #(
17831 *\&* | *\|* | *\\* )
17832 ac_sed_conf_input=`$as_echo "$configure_input" |
17833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17834 *) ac_sed_conf_input=$configure_input;;
17835 esac
17836
17837 case $ac_tag in
17838 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17840 esac
17841 ;;
17842 esac
17843
17844 ac_dir=`$as_dirname -- "$ac_file" ||
17845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17846 X"$ac_file" : 'X\(//\)[^/]' \| \
17847 X"$ac_file" : 'X\(//\)$' \| \
17848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17849$as_echo X"$ac_file" |
17850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17851 s//\1/
17852 q
17853 }
17854 /^X\(\/\/\)[^/].*/{
17855 s//\1/
17856 q
17857 }
17858 /^X\(\/\/\)$/{
17859 s//\1/
17860 q
17861 }
17862 /^X\(\/\).*/{
17863 s//\1/
17864 q
17865 }
17866 s/.*/./; q'`
17867 as_dir="$ac_dir"; as_fn_mkdir_p
17868 ac_builddir=.
17869
17870case "$ac_dir" in
17871.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17872*)
17873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17874 # A ".." for each directory in $ac_dir_suffix.
17875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17876 case $ac_top_builddir_sub in
17877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17879 esac ;;
17880esac
17881ac_abs_top_builddir=$ac_pwd
17882ac_abs_builddir=$ac_pwd$ac_dir_suffix
17883# for backward compatibility:
17884ac_top_builddir=$ac_top_build_prefix
17885
17886case $srcdir in
17887 .) # We are building in place.
17888 ac_srcdir=.
17889 ac_top_srcdir=$ac_top_builddir_sub
17890 ac_abs_top_srcdir=$ac_pwd ;;
17891 [\\/]* | ?:[\\/]* ) # Absolute name.
17892 ac_srcdir=$srcdir$ac_dir_suffix;
17893 ac_top_srcdir=$srcdir
17894 ac_abs_top_srcdir=$srcdir ;;
17895 *) # Relative name.
17896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17897 ac_top_srcdir=$ac_top_build_prefix$srcdir
17898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17899esac
17900ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17901
17902
17903 case $ac_mode in
17904 :F)
17905 #
17906 # CONFIG_FILE
17907 #
17908
17909 case $INSTALL in
17910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17911 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17912 esac
17913_ACEOF
17914
17915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916# If the template does not know about datarootdir, expand it.
17917# FIXME: This hack should be removed a few years after 2.60.
17918ac_datarootdir_hack=; ac_datarootdir_seen=
17919ac_sed_dataroot='
17920/datarootdir/ {
17921 p
17922 q
17923}
17924/@datadir@/p
17925/@docdir@/p
17926/@infodir@/p
17927/@localedir@/p
17928/@mandir@/p'
17929case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17930*datarootdir*) ac_datarootdir_seen=yes;;
17931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17933$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17934_ACEOF
17935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17936 ac_datarootdir_hack='
17937 s&@datadir@&$datadir&g
17938 s&@docdir@&$docdir&g
17939 s&@infodir@&$infodir&g
17940 s&@localedir@&$localedir&g
17941 s&@mandir@&$mandir&g
17942 s&\\\${datarootdir}&$datarootdir&g' ;;
17943esac
17944_ACEOF
17945
17946# Neutralize VPATH when `$srcdir' = `.'.
17947# Shell code in configure.ac might set extrasub.
17948# FIXME: do we really want to maintain this feature?
17949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17950ac_sed_extra="$ac_vpsub
17951$extrasub
17952_ACEOF
17953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17954:t
17955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17956s|@configure_input@|$ac_sed_conf_input|;t t
17957s&@top_builddir@&$ac_top_builddir_sub&;t t
17958s&@top_build_prefix@&$ac_top_build_prefix&;t t
17959s&@srcdir@&$ac_srcdir&;t t
17960s&@abs_srcdir@&$ac_abs_srcdir&;t t
17961s&@top_srcdir@&$ac_top_srcdir&;t t
17962s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17963s&@builddir@&$ac_builddir&;t t
17964s&@abs_builddir@&$ac_abs_builddir&;t t
17965s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17966s&@INSTALL@&$ac_INSTALL&;t t
17967$ac_datarootdir_hack
17968"
17969eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17970 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17971
17972test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17973 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17974 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17975 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17977which seems to be undefined. Please make sure it is defined" >&5
17978$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17979which seems to be undefined. Please make sure it is defined" >&2;}
17980
17981 rm -f "$ac_tmp/stdin"
17982 case $ac_file in
17983 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17984 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17985 esac \
17986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17987 ;;
17988 :H)
17989 #
17990 # CONFIG_HEADER
17991 #
17992 if test x"$ac_file" != x-; then
17993 {
17994 $as_echo "/* $configure_input */" \
17995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17996 } >"$ac_tmp/config.h" \
17997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17998 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18000$as_echo "$as_me: $ac_file is unchanged" >&6;}
18001 else
18002 rm -f "$ac_file"
18003 mv "$ac_tmp/config.h" "$ac_file" \
18004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18005 fi
18006 else
18007 $as_echo "/* $configure_input */" \
18008 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18009 || as_fn_error $? "could not create -" "$LINENO" 5
18010 fi
18011 ;;
18012
18013
18014 esac
18015
18016done # for ac_tag
18017
18018
18019as_fn_exit 0
18020_ACEOF
18021ac_clean_files=$ac_clean_files_save
18022
18023test $ac_write_fail = 0 ||
18024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18025
18026
18027# configure is writing to config.log, and then calls config.status.
18028# config.status does its own redirection, appending to config.log.
18029# Unfortunately, on DOS this fails, as config.log is still kept open
18030# by configure, so config.status won't be able to write to it; its
18031# output is simply discarded. So we exec the FD to /dev/null,
18032# effectively closing config.log, so it can be properly (re)opened and
18033# appended to by config.status. When coming back to configure, we
18034# need to make the FD available again.
18035if test "$no_create" != yes; then
18036 ac_cs_success=:
18037 ac_config_status_args=
18038 test "$silent" = yes &&
18039 ac_config_status_args="$ac_config_status_args --quiet"
18040 exec 5>/dev/null
18041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18042 exec 5>>config.log
18043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18044 # would make configure fail if this is the last instruction.
18045 $ac_cs_success || as_fn_exit 1
18046fi
18047if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18049$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18050fi
18051
18052
18053# Print summary of options
18054
18055# Someone please show me a better way :)
18056A=`eval echo ${prefix}` ; A=`eval echo ${A}`
18057B=`eval echo ${bindir}` ; B=`eval echo ${B}`
18058C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
18059D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
18060E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
18061F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
18062G=`eval echo ${piddir}` ; G=`eval echo ${G}`
18063H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
18064I=`eval echo ${user_path}` ; I=`eval echo ${I}`
18065J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
18066
18067echo ""
18068echo "OpenSSH has been configured with the following options:"
18069echo " User binaries: $B"
18070echo " System binaries: $C"
18071echo " Configuration files: $D"
18072echo " Askpass program: $E"
18073echo " Manual pages: $F"
18074echo " PID file: $G"
18075echo " Privilege separation chroot path: $H"
18076if test "x$external_path_file" = "x/etc/login.conf" ; then
18077echo " At runtime, sshd will use the path defined in $external_path_file"
18078echo " Make sure the path to scp is present, otherwise scp will not work"
18079else
18080echo " sshd default user PATH: $I"
18081 if test ! -z "$external_path_file"; then
18082echo " (If PATH is set in $external_path_file it will be used instead. If"
18083echo " used, ensure the path to scp is present, otherwise scp will not work.)"
18084 fi
18085fi
18086if test ! -z "$superuser_path" ; then
18087echo " sshd superuser user PATH: $J"
18088fi
18089echo " Manpage format: $MANTYPE"
18090echo " PAM support: $PAM_MSG"
18091echo " OSF SIA support: $SIA_MSG"
18092echo " KerberosV support: $KRB5_MSG"
18093echo " SELinux support: $SELINUX_MSG"
18094echo " Smartcard support: $SCARD_MSG"
18095echo " S/KEY support: $SKEY_MSG"
18096echo " TCP Wrappers support: $TCPW_MSG"
18097echo " MD5 password support: $MD5_MSG"
18098echo " libedit support: $LIBEDIT_MSG"
18099echo " Solaris process contract support: $SPC_MSG"
18100echo " Solaris project support: $SP_MSG"
18101echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
18102echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
18103echo " BSD Auth support: $BSD_AUTH_MSG"
18104echo " Random number source: $RAND_MSG"
18105echo " Privsep sandbox style: $SANDBOX_STYLE"
18106
18107echo ""
18108
18109echo " Host: ${host}"
18110echo " Compiler: ${CC}"
18111echo " Compiler flags: ${CFLAGS}"
18112echo "Preprocessor flags: ${CPPFLAGS}"
18113echo " Linker flags: ${LDFLAGS}"
18114echo " Libraries: ${LIBS}"
18115if test ! -z "${SSHDLIBS}"; then
18116echo " +for sshd: ${SSHDLIBS}"
18117fi
18118if test ! -z "${SSHLIBS}"; then
18119echo " +for ssh: ${SSHLIBS}"
18120fi
18121
18122echo ""
18123
18124if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
18125 echo "SVR4 style packages are supported with \"make package\""
18126 echo ""
18127fi
18128
18129if test "x$PAM_MSG" = "xyes" ; then
18130 echo "PAM is enabled. You may need to install a PAM control file "
18131 echo "for sshd, otherwise password authentication may fail. "
18132 echo "Example PAM control files can be found in the contrib/ "
18133 echo "subdirectory"
18134 echo ""
18135fi
18136
18137if test ! -z "$NO_PEERCHECK" ; then
18138 echo "WARNING: the operating system that you are using does not"
18139 echo "appear to support getpeereid(), getpeerucred() or the"
18140 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
18141 echo "enforce security checks to prevent unauthorised connections to"
18142 echo "ssh-agent. Their absence increases the risk that a malicious"
18143 echo "user can connect to your agent."
18144 echo ""
18145fi
18146
18147if test "$AUDIT_MODULE" = "bsm" ; then
18148 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
18149 echo "See the Solaris section in README.platform for details."
18150fi
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..bf510de32
--- /dev/null
+++ b/moduli.0
@@ -0,0 +1,72 @@
1MODULI(5) OpenBSD Programmer's Manual MODULI(5)
2
3NAME
4 moduli - 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; (p+1)*2 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 - 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
69 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
70 Protocol, RFC 4419, 2006.
71
72OpenBSD 5.2 October 14, 2010 OpenBSD 5.2
diff --git a/openbsd-compat/.cvsignore b/openbsd-compat/.cvsignore
deleted file mode 100644
index f3c7a7c5d..000000000
--- a/openbsd-compat/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
1Makefile
diff --git a/openbsd-compat/regress/.cvsignore b/openbsd-compat/regress/.cvsignore
deleted file mode 100644
index afbf7cc3f..000000000
--- a/openbsd-compat/regress/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
1Makefile
2snprintftest
3strduptest
4strtonumtest
5
diff --git a/regress/.cvsignore b/regress/.cvsignore
deleted file mode 100644
index f3c7a7c5d..000000000
--- a/regress/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
1Makefile
diff --git a/scard/.cvsignore b/scard/.cvsignore
deleted file mode 100644
index 5349d34ae..000000000
--- a/scard/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
1Makefile
2Ssh.bin
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..e612d30ef
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,158 @@
1SCP(1) OpenBSD Reference Manual SCP(1)
2
3NAME
4 scp - 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). Unlike rcp(1), scp will ask for passwords or passphrases if
15 they are needed 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 `:' 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 ChallengeResponseAuthentication
71 CheckHostIP
72 Cipher
73 Ciphers
74 Compression
75 CompressionLevel
76 ConnectionAttempts
77 ConnectTimeout
78 ControlMaster
79 ControlPath
80 ControlPersist
81 GlobalKnownHostsFile
82 GSSAPIAuthentication
83 GSSAPIDelegateCredentials
84 HashKnownHosts
85 Host
86 HostbasedAuthentication
87 HostKeyAlgorithms
88 HostKeyAlias
89 HostName
90 IdentityFile
91 IdentitiesOnly
92 IPQoS
93 KbdInteractiveAuthentication
94 KbdInteractiveDevices
95 KexAlgorithms
96 LogLevel
97 MACs
98 NoHostAuthenticationForLocalhost
99 NumberOfPasswordPrompts
100 PasswordAuthentication
101 PKCS11Provider
102 Port
103 PreferredAuthentications
104 Protocol
105 ProxyCommand
106 PubkeyAuthentication
107 RekeyLimit
108 RhostsRSAAuthentication
109 RSAAuthentication
110 SendEnv
111 ServerAliveInterval
112 ServerAliveCountMax
113 StrictHostKeyChecking
114 TCPKeepAlive
115 UsePrivilegedPort
116 User
117 UserKnownHostsFile
118 VerifyHostKeyDNS
119
120 -P port
121 Specifies the port to connect to on the remote host. Note that
122 this option is written with a capital `P', because -p is already
123 reserved for preserving the times and modes of the file in
124 rcp(1).
125
126 -p Preserves modification times, access times, and modes from the
127 original file.
128
129 -q Quiet mode: disables the progress meter as well as warning and
130 diagnostic messages from ssh(1).
131
132 -r Recursively copy entire directories. Note that scp follows
133 symbolic links encountered in the tree traversal.
134
135 -S program
136 Name of program to use for the encrypted connection. The program
137 must understand ssh(1) options.
138
139 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
140 about their progress. This is helpful in debugging connection,
141 authentication, and configuration problems.
142
143EXIT STATUS
144 The scp utility exits 0 on success, and >0 if an error occurs.
145
146SEE ALSO
147 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
148 ssh_config(5), sshd(8)
149
150HISTORY
151 scp is based on the rcp(1) program in BSD source code from the Regents of
152 the University of California.
153
154AUTHORS
155 Timo Rinne <tri@iki.fi>
156 Tatu Ylonen <ylo@cs.hut.fi>
157
158OpenBSD 5.2 September 5, 2011 OpenBSD 5.2
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..340929d75
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,64 @@
1SFTP-SERVER(8) OpenBSD System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server - SFTP server subsystem
5
6SYNOPSIS
7 sftp-server [-ehR] [-f log_facility] [-l log_level] [-u umask]
8
9DESCRIPTION
10 sftp-server is a program that speaks the server side of SFTP protocol to
11 stdout and expects client requests from stdin. sftp-server is not
12 intended to be called directly, but from sshd(8) using the Subsystem
13 option.
14
15 Command-line flags to sftp-server should be specified in the Subsystem
16 declaration. See sshd_config(5) for more information.
17
18 Valid options are:
19
20 -e Causes sftp-server to print logging information to stderr instead
21 of syslog for debugging.
22
23 -f log_facility
24 Specifies the facility code that is used when logging messages
25 from sftp-server. The possible values are: DAEMON, USER, AUTH,
26 LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
27 The default is AUTH.
28
29 -h Displays sftp-server usage information.
30
31 -l log_level
32 Specifies which messages will be logged by sftp-server. The
33 possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG,
34 DEBUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions
35 that sftp-server performs on behalf of the client. DEBUG and
36 DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher
37 levels of debugging output. The default is ERROR.
38
39 -R Places this instance of sftp-server into a read-only mode.
40 Attempts to open files for writing, as well as other operations
41 that change the state of the filesystem, will be denied.
42
43 -u umask
44 Sets an explicit umask(2) to be applied to newly-created files
45 and directories, instead of the user's default mask.
46
47 For logging to work, sftp-server must be able to access /dev/log. Use of
48 sftp-server in a chroot configuration therefore requires that syslogd(8)
49 establish a logging socket inside the chroot directory.
50
51SEE ALSO
52 sftp(1), ssh(1), sshd_config(5), sshd(8)
53
54 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol,
55 draft-ietf-secsh-filexfer-00.txt, January 2001, work in progress
56 material.
57
58HISTORY
59 sftp-server first appeared in OpenBSD 2.8.
60
61AUTHORS
62 Markus Friedl <markus@openbsd.org>
63
64OpenBSD 5.2 January 9, 2010 OpenBSD 5.2
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..e67b64c48
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,339 @@
1SFTP(1) OpenBSD Reference Manual SFTP(1)
2
3NAME
4 sftp - secure file transfer program
5
6SYNOPSIS
7 sftp [-1246Cpqrv] [-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 -B buffer_size
48 Specify the size of the buffer that sftp uses when transferring
49 files. Larger buffers require fewer round trips at the cost of
50 higher memory consumption. The default is 32768 bytes.
51
52 -b batchfile
53 Batch mode reads a series of commands from an input batchfile
54 instead of stdin. Since it lacks user interaction it should be
55 used in conjunction with non-interactive authentication. A
56 batchfile of `-' may be used to indicate standard input. sftp
57 will abort if any of the following commands fail: get, put,
58 rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp,
59 lpwd, df, symlink, and lmkdir. Termination on error can be
60 suppressed on a command by command basis by prefixing the command
61 with a `-' character (for example, -rm /tmp/blah*).
62
63 -C Enables compression (via ssh's -C flag).
64
65 -c cipher
66 Selects the cipher to use for encrypting the data transfers.
67 This option is directly passed to ssh(1).
68
69 -D sftp_server_path
70 Connect directly to a local sftp server (rather than via ssh(1)).
71 This option may be useful in debugging the client and server.
72
73 -F ssh_config
74 Specifies an alternative per-user configuration file for ssh(1).
75 This option is directly passed to ssh(1).
76
77 -i identity_file
78 Selects the file from which the identity (private key) for public
79 key authentication is read. This option is directly passed to
80 ssh(1).
81
82 -l limit
83 Limits the used bandwidth, specified in Kbit/s.
84
85 -o ssh_option
86 Can be used to pass options to ssh in the format used in
87 ssh_config(5). This is useful for specifying options for which
88 there is no separate sftp command-line flag. For example, to
89 specify an alternate port use: sftp -oPort=24. For full details
90 of the options listed below, and their possible values, see
91 ssh_config(5).
92
93 AddressFamily
94 BatchMode
95 BindAddress
96 ChallengeResponseAuthentication
97 CheckHostIP
98 Cipher
99 Ciphers
100 Compression
101 CompressionLevel
102 ConnectionAttempts
103 ConnectTimeout
104 ControlMaster
105 ControlPath
106 ControlPersist
107 GlobalKnownHostsFile
108 GSSAPIAuthentication
109 GSSAPIDelegateCredentials
110 HashKnownHosts
111 Host
112 HostbasedAuthentication
113 HostKeyAlgorithms
114 HostKeyAlias
115 HostName
116 IdentityFile
117 IdentitiesOnly
118 IPQoS
119 KbdInteractiveAuthentication
120 KbdInteractiveDevices
121 KexAlgorithms
122 LogLevel
123 MACs
124 NoHostAuthenticationForLocalhost
125 NumberOfPasswordPrompts
126 PasswordAuthentication
127 PKCS11Provider
128 Port
129 PreferredAuthentications
130 Protocol
131 ProxyCommand
132 PubkeyAuthentication
133 RekeyLimit
134 RhostsRSAAuthentication
135 RSAAuthentication
136 SendEnv
137 ServerAliveInterval
138 ServerAliveCountMax
139 StrictHostKeyChecking
140 TCPKeepAlive
141 UsePrivilegedPort
142 User
143 UserKnownHostsFile
144 VerifyHostKeyDNS
145
146 -P port
147 Specifies the port to connect to on the remote host.
148
149 -p Preserves modification times, access times, and modes from the
150 original files transferred.
151
152 -q Quiet mode: disables the progress meter as well as warning and
153 diagnostic messages from ssh(1).
154
155 -R num_requests
156 Specify how many requests may be outstanding at any one time.
157 Increasing this may slightly improve file transfer speed but will
158 increase memory usage. The default is 64 outstanding requests.
159
160 -r Recursively copy entire directories when uploading and
161 downloading. Note that sftp does not follow symbolic links
162 encountered in the tree traversal.
163
164 -S program
165 Name of the program to use for the encrypted connection. The
166 program must understand ssh(1) options.
167
168 -s subsystem | sftp_server
169 Specifies the SSH2 subsystem or the path for an sftp server on
170 the remote host. A path is useful for using sftp over protocol
171 version 1, or when the remote sshd(8) does not have an sftp
172 subsystem configured.
173
174 -v Raise logging level. This option is also passed to ssh.
175
176INTERACTIVE COMMANDS
177 Once in interactive mode, sftp understands a set of commands similar to
178 those of ftp(1). Commands are case insensitive. Pathnames that contain
179 spaces must be enclosed in quotes. Any special characters contained
180 within pathnames that are recognized by glob(3) must be escaped with
181 backslashes (`\').
182
183 bye Quit sftp.
184
185 cd path
186 Change remote directory to path.
187
188 chgrp grp path
189 Change group of file path to grp. path may contain glob(3)
190 characters and may match multiple files. grp must be a numeric
191 GID.
192
193 chmod mode path
194 Change permissions of file path to mode. path may contain
195 glob(3) characters and may match multiple files.
196
197 chown own path
198 Change owner of file path to own. path may contain glob(3)
199 characters and may match multiple files. own must be a numeric
200 UID.
201
202 df [-hi] [path]
203 Display usage information for the filesystem holding the current
204 directory (or path if specified). If the -h flag is specified,
205 the capacity information will be displayed using "human-readable"
206 suffixes. The -i flag requests display of inode information in
207 addition to capacity information. This command is only supported
208 on servers that implement the ``statvfs@openssh.com'' extension.
209
210 exit Quit sftp.
211
212 get [-Ppr] remote-path [local-path]
213 Retrieve the remote-path and store it on the local machine. If
214 the local path name is not specified, it is given the same name
215 it has on the remote machine. remote-path may contain glob(3)
216 characters and may match multiple files. If it does and
217 local-path is specified, then local-path must specify a
218 directory.
219
220 If either the -P or -p flag is specified, then full file
221 permissions and access times are copied too.
222
223 If the -r flag is specified then directories will be copied
224 recursively. Note that sftp does not follow symbolic links when
225 performing recursive transfers.
226
227 help Display help text.
228
229 lcd path
230 Change local directory to path.
231
232 lls [ls-options [path]]
233 Display local directory listing of either path or current
234 directory if path is not specified. ls-options may contain any
235 flags supported by the local system's ls(1) command. path may
236 contain glob(3) characters and may match multiple files.
237
238 lmkdir path
239 Create local directory specified by path.
240
241 ln [-s] oldpath newpath
242 Create a link from oldpath to newpath. If the -s flag is
243 specified the created link is a symbolic link, otherwise it is a
244 hard link.
245
246 lpwd Print local working directory.
247
248 ls [-1afhlnrSt] [path]
249 Display a remote directory listing of either path or the current
250 directory if path is not specified. path may contain glob(3)
251 characters and may match multiple files.
252
253 The following flags are recognized and alter the behaviour of ls
254 accordingly:
255
256 -1 Produce single columnar output.
257
258 -a List files beginning with a dot (`.').
259
260 -f Do not sort the listing. The default sort order is
261 lexicographical.
262
263 -h When used with a long format option, use unit suffixes:
264 Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte,
265 and Exabyte in order to reduce the number of digits to
266 four or fewer using powers of 2 for sizes (K=1024,
267 M=1048576, etc.).
268
269 -l Display additional details including permissions and
270 ownership information.
271
272 -n Produce a long listing with user and group information
273 presented numerically.
274
275 -r Reverse the sort order of the listing.
276
277 -S Sort the listing by file size.
278
279 -t Sort the listing by last modification time.
280
281 lumask umask
282 Set local umask to umask.
283
284 mkdir path
285 Create remote directory specified by path.
286
287 progress
288 Toggle display of progress meter.
289
290 put [-Ppr] local-path [remote-path]
291 Upload local-path and store it on the remote machine. If the
292 remote path name is not specified, it is given the same name it
293 has on the local machine. local-path may contain glob(3)
294 characters and may match multiple files. If it does and
295 remote-path is specified, then remote-path must specify a
296 directory.
297
298 If either the -P or -p flag is specified, then full file
299 permissions and access times are copied too.
300
301 If the -r flag is specified then directories will be copied
302 recursively. Note that sftp does not follow symbolic links when
303 performing recursive transfers.
304
305 pwd Display remote working directory.
306
307 quit Quit sftp.
308
309 rename oldpath newpath
310 Rename remote file from oldpath to newpath.
311
312 rm path
313 Delete remote file specified by path.
314
315 rmdir path
316 Remove remote directory specified by path.
317
318 symlink oldpath newpath
319 Create a symbolic link from oldpath to newpath.
320
321 version
322 Display the sftp protocol version.
323
324 !command
325 Execute command in local shell.
326
327 ! Escape to local shell.
328
329 ? Synonym for help.
330
331SEE ALSO
332 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
333 ssh_config(5), sftp-server(8), sshd(8)
334
335 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol,
336 draft-ietf-secsh-filexfer-00.txt, January 2001, work in progress
337 material.
338
339OpenBSD 5.2 September 5, 2011 OpenBSD 5.2
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..2ed59c10e
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,118 @@
1SSH-ADD(1) OpenBSD Reference Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds private key identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdkLlXx] [-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 and ~/.ssh/identity. After
15 loading a private key, ssh-add will try to load corresponding certificate
16 information from the filename obtained by appending -cert.pub to the name
17 of the private key file. Alternative file names can be given on the
18 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 the SSH_ASKPASS program mentioned below. Successful
33 confirmation is signaled by a zero exit status from the
34 SSH_ASKPASS program, rather than text entered into 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 will be removed. Otherwise, the argument list
41 will be interpreted as a list of paths to public key files and
42 matching keys will be removed from the agent. If no public key
43 is found at a given path, ssh-add will append .pub and retry.
44
45 -e pkcs11
46 Remove keys provided by the PKCS#11 shared library pkcs11.
47
48 -k When loading keys into the agent, load plain private keys only
49 and skip certificates.
50
51 -L Lists public key parameters of all identities currently
52 represented by the agent.
53
54 -l Lists fingerprints of all identities currently represented by the
55 agent.
56
57 -s pkcs11
58 Add keys provided by the PKCS#11 shared library pkcs11.
59
60 -t life
61 Set a maximum lifetime when adding identities to an agent. The
62 lifetime may be specified in seconds or in a time format
63 specified in sshd_config(5).
64
65 -X Unlock the agent.
66
67 -x Lock the agent with a password.
68
69ENVIRONMENT
70 DISPLAY and SSH_ASKPASS
71 If ssh-add needs a passphrase, it will read the passphrase from
72 the current terminal if it was run from a terminal. If ssh-add
73 does not have a terminal associated with it but DISPLAY and
74 SSH_ASKPASS are set, it will execute the program specified by
75 SSH_ASKPASS and open an X11 window to read the passphrase. This
76 is particularly useful when calling ssh-add from a .xsession or
77 related script. (Note that on some machines it may be necessary
78 to redirect the input from /dev/null to make this work.)
79
80 SSH_AUTH_SOCK
81 Identifies the path of a UNIX-domain socket used to communicate
82 with the agent.
83
84FILES
85 ~/.ssh/identity
86 Contains the protocol version 1 RSA authentication identity of
87 the user.
88
89 ~/.ssh/id_dsa
90 Contains the protocol version 2 DSA authentication identity of
91 the user.
92
93 ~/.ssh/id_ecdsa
94 Contains the protocol version 2 ECDSA authentication identity of
95 the user.
96
97 ~/.ssh/id_rsa
98 Contains the protocol version 2 RSA authentication identity of
99 the user.
100
101 Identity files should not be readable by anyone but the user. Note that
102 ssh-add ignores identity files if they are accessible by others.
103
104EXIT STATUS
105 Exit status is 0 on success, 1 if the specified command fails, and 2 if
106 ssh-add is unable to contact the authentication agent.
107
108SEE ALSO
109 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
110
111AUTHORS
112 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
113 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
114 de Raadt and Dug Song removed many bugs, re-added newer features and
115 created OpenSSH. Markus Friedl contributed the support for SSH protocol
116 versions 1.5 and 2.0.
117
118OpenBSD 5.2 October 18, 2011 OpenBSD 5.2
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..77930ce42
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,123 @@
1SSH-AGENT(1) OpenBSD Reference Manual SSH-AGENT(1)
2
3NAME
4 ssh-agent - authentication agent
5
6SYNOPSIS
7 ssh-agent [-c | -s] [-d] [-a bind_address] [-t life] [command [arg ...]]
8 ssh-agent [-c | -s] -k
9
10DESCRIPTION
11 ssh-agent is a program to hold private keys used for public key
12 authentication (RSA, DSA, ECDSA). The idea is that ssh-agent is started
13 in the beginning of an X-session or a login session, and all other
14 windows or programs are started as clients to the ssh-agent program.
15 Through use of environment variables the agent can be located and
16 automatically used for authentication when logging in to other machines
17 using ssh(1).
18
19 The options are as follows:
20
21 -a bind_address
22 Bind the agent to the UNIX-domain socket bind_address. The
23 default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>.
24
25 -c Generate C-shell commands on stdout. This is the default if
26 SHELL looks like it's a csh style of shell.
27
28 -d Debug mode. When this option is specified ssh-agent will not
29 fork.
30
31 -k Kill the current agent (given by the SSH_AGENT_PID environment
32 variable).
33
34 -s Generate Bourne shell commands on stdout. This is the default if
35 SHELL does not look like it's a csh style of shell.
36
37 -t life
38 Set a default value for the maximum lifetime of identities added
39 to the agent. The lifetime may be specified in seconds or in a
40 time format specified in sshd_config(5). A lifetime specified
41 for an identity with ssh-add(1) overrides this value. Without
42 this option the default maximum lifetime is forever.
43
44 If a commandline is given, this is executed as a subprocess of the agent.
45 When the command dies, so does the agent.
46
47 The agent initially does not have any private keys. Keys are added using
48 ssh-add(1). When executed without arguments, ssh-add(1) adds the files
49 ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and ~/.ssh/identity. If
50 the identity has a passphrase, ssh-add(1) asks for the passphrase on the
51 terminal if it has one or from a small X11 program if running under X11.
52 If neither of these is the case then the authentication will fail. It
53 then sends the identity to the agent. Several identities can be stored
54 in the agent; the agent can automatically use any of these identities.
55 ssh-add -l displays the identities currently held by the agent.
56
57 The idea is that the agent is run in the user's local PC, laptop, or
58 terminal. Authentication data need not be stored on any other machine,
59 and authentication passphrases never go over the network. However, the
60 connection to the agent is forwarded over SSH remote logins, and the user
61 can thus use the privileges given by the identities anywhere in the
62 network in a secure way.
63
64 There are two main ways to get an agent set up: The first is that the
65 agent starts a new subcommand into which some environment variables are
66 exported, eg ssh-agent xterm &. The second is that the agent prints the
67 needed shell commands (either sh(1) or csh(1) syntax can be generated)
68 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
69 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
70 csh(1) and derivatives.
71
72 Later ssh(1) looks at these variables and uses them to establish a
73 connection to the agent.
74
75 The agent will never send a private key over its request channel.
76 Instead, operations that require a private key will be performed by the
77 agent, and the result will be returned to the requester. This way,
78 private keys are not exposed to clients using the agent.
79
80 A UNIX-domain socket is created and the name of this socket is stored in
81 the SSH_AUTH_SOCK environment variable. The socket is made accessible
82 only to the current user. This method is easily abused by root or
83 another instance of the same user.
84
85 The SSH_AGENT_PID environment variable holds the agent's process ID.
86
87 The agent exits automatically when the command given on the command line
88 terminates.
89
90FILES
91 ~/.ssh/identity
92 Contains the protocol version 1 RSA authentication identity of
93 the user.
94
95 ~/.ssh/id_dsa
96 Contains the protocol version 2 DSA authentication identity of
97 the user.
98
99 ~/.ssh/id_ecdsa
100 Contains the protocol version 2 ECDSA authentication identity of
101 the user.
102
103 ~/.ssh/id_rsa
104 Contains the protocol version 2 RSA authentication identity of
105 the user.
106
107 $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>
108 UNIX-domain sockets used to contain the connection to the
109 authentication agent. These sockets should only be readable by
110 the owner. The sockets should get automatically removed when the
111 agent exits.
112
113SEE ALSO
114 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
115
116AUTHORS
117 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
118 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
119 de Raadt and Dug Song removed many bugs, re-added newer features and
120 created OpenSSH. Markus Friedl contributed the support for SSH protocol
121 versions 1.5 and 2.0.
122
123OpenBSD 5.2 November 21, 2010 OpenBSD 5.2
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..8f9fbd179
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,468 @@
1SSH-KEYGEN(1) OpenBSD Reference Manual SSH-KEYGEN(1)
2
3NAME
4 ssh-keygen - authentication key generation, management and conversion
5
6SYNOPSIS
7 ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment]
8 [-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 [-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 num_trials]
23 [-J num_lines] [-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
29DESCRIPTION
30 ssh-keygen generates, manages and converts authentication keys for
31 ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
32 and DSA, ECDSA or RSA keys for use by SSH protocol version 2. The type
33 of key to be generated is specified with the -t option. If invoked
34 without any arguments, ssh-keygen will generate an RSA key for use in SSH
35 protocol 2 connections.
36
37 ssh-keygen is also used to generate groups for use in Diffie-Hellman
38 group exchange (DH-GEX). See the MODULI GENERATION section for details.
39
40 Normally each user wishing to use SSH with public key authentication runs
41 this once to create the authentication key in ~/.ssh/identity,
42 ~/.ssh/id_ecdsa, ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the
43 system administrator may use this to generate host keys, as seen in
44 /etc/rc.
45
46 Normally this program generates the key and asks for a file in which to
47 store the private key. The public key is stored in a file with the same
48 name but ``.pub'' appended. The program also asks for a passphrase. The
49 passphrase may be empty to indicate no passphrase (host keys must have an
50 empty passphrase), or it may be a string of arbitrary length. A
51 passphrase is similar to a password, except it can be a phrase with a
52 series of words, punctuation, numbers, whitespace, or any string of
53 characters you want. Good passphrases are 10-30 characters long, are not
54 simple sentences or otherwise easily guessable (English prose has only
55 1-2 bits of entropy per character, and provides very bad passphrases),
56 and contain a mix of upper and lowercase letters, numbers, and non-
57 alphanumeric characters. The passphrase can be changed later by using
58 the -p option.
59
60 There is no way to recover a lost passphrase. If the passphrase is lost
61 or forgotten, a new key must be generated and the corresponding public
62 key copied to other machines.
63
64 For RSA1 keys, there is also a comment field in the key file that is only
65 for convenience to the user to help identify the key. The comment can
66 tell what the key is for, or whatever is useful. The comment is
67 initialized to ``user@host'' when the key is created, but can be changed
68 using the -c option.
69
70 After a key is generated, instructions below detail where the keys should
71 be placed to be activated.
72
73 The options are as follows:
74
75 -A For each of the key types (rsa1, rsa, dsa and ecdsa) for which
76 host keys do not exist, generate the host keys with the default
77 key file path, an empty passphrase, default bits for the key
78 type, and default comment. This is used by /etc/rc to generate
79 new host keys.
80
81 -a trials
82 Specifies the number of primality tests to perform when screening
83 DH-GEX candidates using the -T command.
84
85 -B Show the bubblebabble digest of specified private or public key
86 file.
87
88 -b bits
89 Specifies the number of bits in the key to create. For RSA keys,
90 the minimum size is 768 bits and the default is 2048 bits.
91 Generally, 2048 bits is considered sufficient. DSA keys must be
92 exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys,
93 the -b flag determines the key length by selecting from one of
94 three elliptic curve sizes: 256, 384 or 521 bits. Attempting to
95 use bit lengths other than these three values for ECDSA keys will
96 fail.
97
98 -C comment
99 Provides a new comment.
100
101 -c Requests changing the comment in the private and public key
102 files. This operation is only supported for RSA1 keys. The
103 program will prompt for the file containing the private keys, for
104 the passphrase if the key has one, and for the new comment.
105
106 -D pkcs11
107 Download the RSA public keys provided by the PKCS#11 shared
108 library pkcs11. When used in combination with -s, this option
109 indicates that a CA key resides in a PKCS#11 token (see the
110 CERTIFICATES section for details).
111
112 -e This option will read a private or public OpenSSH key file and
113 print to stdout the key in one of the formats specified by the -m
114 option. The default export format is ``RFC4716''. This option
115 allows exporting OpenSSH keys for use by other programs,
116 including several commercial SSH implementations.
117
118 -F hostname
119 Search for the specified hostname in a known_hosts file, listing
120 any occurrences found. This option is useful to find hashed host
121 names or addresses and may also be used in conjunction with the
122 -H option to print found keys in a hashed format.
123
124 -f filename
125 Specifies the filename of the key file.
126
127 -G output_file
128 Generate candidate primes for DH-GEX. These primes must be
129 screened for safety (using the -T option) before use.
130
131 -g Use generic DNS format when printing fingerprint resource records
132 using the -r command.
133
134 -H Hash a known_hosts file. This replaces all hostnames and
135 addresses with hashed representations within the specified file;
136 the original content is moved to a file with a .old suffix.
137 These hashes may be used normally by ssh and sshd, but they do
138 not reveal identifying information should the file's contents be
139 disclosed. This option will not modify existing hashed hostnames
140 and is therefore safe to use on files that mix hashed and non-
141 hashed names.
142
143 -h When signing a key, create a host certificate instead of a user
144 certificate. Please see the CERTIFICATES section for details.
145
146 -I certificate_identity
147 Specify the key identity when signing a public key. Please see
148 the CERTIFICATES section for details.
149
150 -i This option will read an unencrypted private (or public) key file
151 in the format specified by the -m option and print an OpenSSH
152 compatible private (or public) key to stdout.
153
154 -J num_lines
155 Exit after screening the specified number of lines while
156 performing DH candidate screening using the -T option.
157
158 -j start_line
159 Start screening at the specified line number while performing DH
160 candidate screening using the -T option.
161
162 -K checkpt
163 Write the last line processed to the file checkpt while
164 performing DH candidate screening using the -T option. This will
165 be used to skip lines in the input file that have already been
166 processed if the job is restarted. This option allows importing
167 keys from other software, including several commercial SSH
168 implementations. The default import format is ``RFC4716''.
169
170 -L Prints the contents of a certificate.
171
172 -l Show fingerprint of specified public key file. Private RSA1 keys
173 are also supported. For RSA and DSA keys ssh-keygen tries to
174 find the matching public key file and prints its fingerprint. If
175 combined with -v, an ASCII art representation of the key is
176 supplied with the fingerprint.
177
178 -M memory
179 Specify the amount of memory to use (in megabytes) when
180 generating candidate moduli for DH-GEX.
181
182 -m key_format
183 Specify a key format for the -i (import) or -e (export)
184 conversion options. The supported key formats are: ``RFC4716''
185 (RFC 4716/SSH2 public or private key), ``PKCS8'' (PEM PKCS8
186 public key) or ``PEM'' (PEM public key). The default conversion
187 format is ``RFC4716''.
188
189 -N new_passphrase
190 Provides the new passphrase.
191
192 -n principals
193 Specify one or more principals (user or host names) to be
194 included in a certificate when signing a key. Multiple
195 principals may be specified, separated by commas. Please see the
196 CERTIFICATES section for details.
197
198 -O option
199 Specify a certificate option when signing a key. This option may
200 be specified multiple times. Please see the CERTIFICATES section
201 for details. The options that are valid for user certificates
202 are:
203
204 clear Clear all enabled permissions. This is useful for
205 clearing the default set of permissions so permissions
206 may be added individually.
207
208 force-command=command
209 Forces the execution of command instead of any shell or
210 command specified by the user when the certificate is
211 used for authentication.
212
213 no-agent-forwarding
214 Disable ssh-agent(1) forwarding (permitted by default).
215
216 no-port-forwarding
217 Disable port forwarding (permitted by default).
218
219 no-pty Disable PTY allocation (permitted by default).
220
221 no-user-rc
222 Disable execution of ~/.ssh/rc by sshd(8) (permitted by
223 default).
224
225 no-x11-forwarding
226 Disable X11 forwarding (permitted by default).
227
228 permit-agent-forwarding
229 Allows ssh-agent(1) forwarding.
230
231 permit-port-forwarding
232 Allows port forwarding.
233
234 permit-pty
235 Allows PTY allocation.
236
237 permit-user-rc
238 Allows execution of ~/.ssh/rc by sshd(8).
239
240 permit-x11-forwarding
241 Allows X11 forwarding.
242
243 source-address=address_list
244 Restrict the source addresses from which the certificate
245 is considered valid. The address_list is a comma-
246 separated list of one or more address/netmask pairs in
247 CIDR format.
248
249 At present, no options are valid for host keys.
250
251 -P passphrase
252 Provides the (old) passphrase.
253
254 -p Requests changing the passphrase of a private key file instead of
255 creating a new private key. The program will prompt for the file
256 containing the private key, for the old passphrase, and twice for
257 the new passphrase.
258
259 -q Silence ssh-keygen.
260
261 -R hostname
262 Removes all keys belonging to hostname from a known_hosts file.
263 This option is useful to delete hashed hosts (see the -H option
264 above).
265
266 -r hostname
267 Print the SSHFP fingerprint resource record named hostname for
268 the specified public key file.
269
270 -S start
271 Specify start point (in hex) when generating candidate moduli for
272 DH-GEX.
273
274 -s ca_key
275 Certify (sign) a public key using the specified CA key. Please
276 see the CERTIFICATES section for details.
277
278 -T output_file
279 Test DH group exchange candidate primes (generated using the -G
280 option) for safety.
281
282 -t type
283 Specifies the type of key to create. The possible values are
284 ``rsa1'' for protocol version 1 and ``dsa'', ``ecdsa'' or ``rsa''
285 for protocol version 2.
286
287 -V validity_interval
288 Specify a validity interval when signing a certificate. A
289 validity interval may consist of a single time, indicating that
290 the certificate is valid beginning now and expiring at that time,
291 or may consist of two times separated by a colon to indicate an
292 explicit time interval. The start time may be specified as a
293 date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a
294 relative time (to the current time) consisting of a minus sign
295 followed by a relative time in the format described in the TIME
296 FORMATS section of sshd_config(5). The end time may be specified
297 as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time
298 starting with a plus character.
299
300 For example: ``+52w1d'' (valid from now to 52 weeks and one day
301 from now), ``-4w:+4w'' (valid from four weeks ago to four weeks
302 from now), ``20100101123000:20110101123000'' (valid from 12:30
303 PM, January 1st, 2010 to 12:30 PM, January 1st, 2011),
304 ``-1d:20110101'' (valid from yesterday to midnight, January 1st,
305 2011).
306
307 -v Verbose mode. Causes ssh-keygen to print debugging messages
308 about its progress. This is helpful for debugging moduli
309 generation. Multiple -v options increase the verbosity. The
310 maximum is 3.
311
312 -W generator
313 Specify desired generator when testing candidate moduli for DH-
314 GEX.
315
316 -y This option will read a private OpenSSH format file and print an
317 OpenSSH public key to stdout.
318
319 -z serial_number
320 Specifies a serial number to be embedded in the certificate to
321 distinguish this certificate from others from the same CA. The
322 default serial number is zero.
323
324MODULI GENERATION
325 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
326 Exchange (DH-GEX) protocol. Generating these groups is a two-step
327 process: first, candidate primes are generated using a fast, but memory
328 intensive process. These candidate primes are then tested for
329 suitability (a CPU-intensive process).
330
331 Generation of primes is performed using the -G option. The desired
332 length of the primes may be specified by the -b option. For example:
333
334 # ssh-keygen -G moduli-2048.candidates -b 2048
335
336 By default, the search for primes begins at a random point in the desired
337 length range. This may be overridden using the -S option, which
338 specifies a different start point (in hex).
339
340 Once a set of candidates have been generated, they must be screened for
341 suitability. This may be performed using the -T option. In this mode
342 ssh-keygen will read candidates from standard input (or a file specified
343 using the -f option). For example:
344
345 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
346
347 By default, each candidate will be subjected to 100 primality tests.
348 This may be overridden using the -a option. The DH generator value will
349 be chosen automatically for the prime under consideration. If a specific
350 generator is desired, it may be requested using the -W option. Valid
351 generator values are 2, 3, and 5.
352
353 Screened DH groups may be installed in /etc/moduli. It is important that
354 this file contains moduli of a range of bit lengths and that both ends of
355 a connection share common moduli.
356
357CERTIFICATES
358 ssh-keygen supports signing of keys to produce certificates that may be
359 used for user or host authentication. Certificates consist of a public
360 key, some identity information, zero or more principal (user or host)
361 names and a set of options that are signed by a Certification Authority
362 (CA) key. Clients or servers may then trust only the CA key and verify
363 its signature on a certificate rather than trusting many user/host keys.
364 Note that OpenSSH certificates are a different, and much simpler, format
365 to the X.509 certificates used in ssl(8).
366
367 ssh-keygen supports two types of certificates: user and host. User
368 certificates authenticate users to servers, whereas host certificates
369 authenticate server hosts to users. To generate a user certificate:
370
371 $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub
372
373 The resultant certificate will be placed in /path/to/user_key-cert.pub.
374 A host certificate requires the -h option:
375
376 $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub
377
378 The host certificate will be output to /path/to/host_key-cert.pub.
379
380 It is possible to sign using a CA key stored in a PKCS#11 token by
381 providing the token library using -D and identifying the CA key by
382 providing its public half as an argument to -s:
383
384 $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id host_key.pub
385
386 In all cases, key_id is a "key identifier" that is logged by the server
387 when the certificate is used for authentication.
388
389 Certificates may be limited to be valid for a set of principal
390 (user/host) names. By default, generated certificates are valid for all
391 users or hosts. To generate a certificate for a specified set of
392 principals:
393
394 $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub
395 $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub
396
397 Additional limitations on the validity and use of user certificates may
398 be specified through certificate options. A certificate option may
399 disable features of the SSH session, may be valid only when presented
400 from particular source addresses or may force the use of a specific
401 command. For a list of valid certificate options, see the documentation
402 for the -O option above.
403
404 Finally, certificates may be defined with a validity lifetime. The -V
405 option allows specification of certificate start and end times. A
406 certificate that is presented at a time outside this range will not be
407 considered valid. By default, certificates have a maximum validity
408 interval.
409
410 For certificates to be used for user or host authentication, the CA
411 public key must be trusted by sshd(8) or ssh(1). Please refer to those
412 manual pages for details.
413
414FILES
415 ~/.ssh/identity
416 Contains the protocol version 1 RSA authentication identity of
417 the user. This file should not be readable by anyone but the
418 user. It is possible to specify a passphrase when generating the
419 key; that passphrase will be used to encrypt the private part of
420 this file using 3DES. This file is not automatically accessed by
421 ssh-keygen but it is offered as the default file for the private
422 key. ssh(1) will read this file when a login attempt is made.
423
424 ~/.ssh/identity.pub
425 Contains the protocol version 1 RSA public key for
426 authentication. The contents of this file should be added to
427 ~/.ssh/authorized_keys on all machines where the user wishes to
428 log in using RSA authentication. There is no need to keep the
429 contents of this file secret.
430
431 ~/.ssh/id_dsa
432 ~/.ssh/id_ecdsa
433 ~/.ssh/id_rsa
434 Contains the protocol version 2 DSA, ECDSA or RSA authentication
435 identity of the user. This file should not be readable by anyone
436 but the user. It is possible to specify a passphrase when
437 generating the key; that passphrase will be used to encrypt the
438 private part of this file using 128-bit AES. This file is not
439 automatically accessed by ssh-keygen but it is offered as the
440 default file for the private key. ssh(1) will read this file
441 when a login attempt is made.
442
443 ~/.ssh/id_dsa.pub
444 ~/.ssh/id_ecdsa.pub
445 ~/.ssh/id_rsa.pub
446 Contains the protocol version 2 DSA, ECDSA or RSA public key for
447 authentication. The contents of this file should be added to
448 ~/.ssh/authorized_keys on all machines where the user wishes to
449 log in using public key authentication. There is no need to keep
450 the contents of this file secret.
451
452 /etc/moduli
453 Contains Diffie-Hellman groups used for DH-GEX. The file format
454 is described in moduli(5).
455
456SEE ALSO
457 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
458
459 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
460
461AUTHORS
462 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
463 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
464 de Raadt and Dug Song removed many bugs, re-added newer features and
465 created OpenSSH. Markus Friedl contributed the support for SSH protocol
466 versions 1.5 and 2.0.
467
468OpenBSD 5.2 July 6, 2012 OpenBSD 5.2
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..0d8cf3cf4
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,109 @@
1SSH-KEYSCAN(1) OpenBSD Reference Manual SSH-KEYSCAN(1)
2
3NAME
4 ssh-keyscan - 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 addrlist namelist pairs from this file, one per
31 line. If - is supplied instead of a filename, ssh-keyscan will
32 read hosts or addrlist namelist 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 ``rsa1'' for protocol version 1 and
51 ``dsa'', ``ecdsa'' or ``rsa'' for protocol version 2. Multiple
52 values may be specified by separating them with commas. The
53 default is to fetch ``rsa'' and ``ecdsa'' 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 and ecdsa keys:
76
77 host-or-namelist keytype base64-encoded-key
78
79 Where keytype is either ``ecdsa-sha2-nistp256'', ``ecdsa-sha2-nistp384'',
80 ``ecdsa-sha2-nistp521'', ``ssh-dss'' or ``ssh-rsa''.
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 -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.2 April 11, 2012 OpenBSD 5.2
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..50b7162dc
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,51 @@
1SSH-KEYSIGN(8) OpenBSD System Manager's Manual SSH-KEYSIGN(8)
2
3NAME
4 ssh-keysign - 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 ``yes''.
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_rsa_key
29 These files contain the private parts of the host keys used to
30 generate the digital signature. They should be owned by root,
31 readable only by root, and not accessible to others. Since they
32 are readable only by root, ssh-keysign must be set-uid root if
33 host-based authentication is used.
34
35 /etc/ssh/ssh_host_dsa_key-cert.pub
36 /etc/ssh/ssh_host_ecdsa_key-cert.pub
37 /etc/ssh/ssh_host_rsa_key-cert.pub
38 If these files exist they are assumed to contain public
39 certificate information corresponding with the private keys
40 above.
41
42SEE ALSO
43 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
44
45HISTORY
46 ssh-keysign first appeared in OpenBSD 3.2.
47
48AUTHORS
49 Markus Friedl <markus@openbsd.org>
50
51OpenBSD 5.2 August 31, 2010 OpenBSD 5.2
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0
new file mode 100644
index 000000000..2f8a674aa
--- /dev/null
+++ b/ssh-pkcs11-helper.0
@@ -0,0 +1,25 @@
1SSH-PKCS11-HELPER(8) OpenBSD System Manager's Manual SSH-PKCS11-HELPER(8)
2
3NAME
4 ssh-pkcs11-helper - 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.2 February 10, 2010 OpenBSD 5.2
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..7d43f8879
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,907 @@
1SSH(1) OpenBSD Reference Manual SSH(1)
2
3NAME
4 ssh - OpenSSH SSH client (remote login program)
5
6SYNOPSIS
7 ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
8 [-D [bind_address:]port] [-e escape_char] [-F configfile] [-I pkcs11]
9 [-i identity_file] [-L [bind_address:]port:host:hostport]
10 [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
11 [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port]
12 [-w local_tun[:remote_tun]] [user@]hostname [command]
13
14DESCRIPTION
15 ssh (SSH client) is a program for logging into a remote machine and for
16 executing commands on a remote machine. It is intended to replace rlogin
17 and rsh, and provide secure encrypted communications between two
18 untrusted hosts over an insecure network. X11 connections and arbitrary
19 TCP ports can also be forwarded over the secure channel.
20
21 ssh connects and logs into the specified hostname (with optional user
22 name). The user must prove his/her identity to the remote machine using
23 one of several methods depending on the protocol version used (see
24 below).
25
26 If command is specified, it is executed on the remote host instead of a
27 login shell.
28
29 The options are as follows:
30
31 -1 Forces ssh to try protocol version 1 only.
32
33 -2 Forces ssh to try protocol version 2 only.
34
35 -4 Forces ssh to use IPv4 addresses only.
36
37 -6 Forces ssh to use IPv6 addresses only.
38
39 -A Enables forwarding of the authentication agent connection. This
40 can also be specified on a per-host basis in a configuration
41 file.
42
43 Agent forwarding should be enabled with caution. Users with the
44 ability to bypass file permissions on the remote host (for the
45 agent's UNIX-domain socket) can access the local agent through
46 the forwarded connection. An attacker cannot obtain key material
47 from the agent, however they can perform operations on the keys
48 that enable them to authenticate using the identities loaded into
49 the agent.
50
51 -a Disables forwarding of the authentication agent connection.
52
53 -b bind_address
54 Use bind_address on the local machine as the source address of
55 the connection. Only useful on systems with more than one
56 address.
57
58 -C Requests compression of all data (including stdin, stdout,
59 stderr, and data for forwarded X11 and TCP connections). The
60 compression algorithm is the same used by gzip(1), and the
61 ``level'' can be controlled by the CompressionLevel option for
62 protocol version 1. Compression is desirable on modem lines and
63 other slow connections, but will only slow down things on fast
64 networks. The default value can be set on a host-by-host basis
65 in the configuration files; see the Compression option.
66
67 -c cipher_spec
68 Selects the cipher specification for encrypting the session.
69
70 Protocol version 1 allows specification of a single cipher. The
71 supported values are ``3des'', ``blowfish'', and ``des''. 3des
72 (triple-des) is an encrypt-decrypt-encrypt triple with three
73 different keys. It is believed to be secure. blowfish is a fast
74 block cipher; it appears very secure and is much faster than
75 3des. des is only supported in the ssh client for
76 interoperability with legacy protocol 1 implementations that do
77 not support the 3des cipher. Its use is strongly discouraged due
78 to cryptographic weaknesses. The default is ``3des''.
79
80 For protocol version 2, cipher_spec is a comma-separated list of
81 ciphers listed in order of preference. See the Ciphers keyword
82 in ssh_config(5) for more information.
83
84 -D [bind_address:]port
85 Specifies a local ``dynamic'' application-level port forwarding.
86 This works by allocating a socket to listen to port on the local
87 side, optionally bound to the specified bind_address. Whenever a
88 connection is made to this port, the connection is forwarded over
89 the secure channel, and the application protocol is then used to
90 determine where to connect to from the remote machine. Currently
91 the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
92 as a SOCKS server. Only root can forward privileged ports.
93 Dynamic port forwardings can also be specified in the
94 configuration file.
95
96 IPv6 addresses can be specified by enclosing the address in
97 square brackets. Only the superuser can forward privileged
98 ports. By default, the local port is bound in accordance with
99 the GatewayPorts setting. However, an explicit bind_address may
100 be used to bind the connection to a specific address. The
101 bind_address of ``localhost'' indicates that the listening port
102 be bound for local use only, while an empty address or `*'
103 indicates that the port should be available from all interfaces.
104
105 -e escape_char
106 Sets the escape character for sessions with a pty (default: `~').
107 The escape character is only recognized at the beginning of a
108 line. The escape character followed by a dot (`.') closes the
109 connection; followed by control-Z suspends the connection; and
110 followed by itself sends the escape character once. Setting the
111 character to ``none'' disables any escapes and makes the session
112 fully transparent.
113
114 -F configfile
115 Specifies an alternative per-user configuration file. If a
116 configuration file is given on the command line, the system-wide
117 configuration file (/etc/ssh/ssh_config) will be ignored. The
118 default for the per-user configuration file is ~/.ssh/config.
119
120 -f Requests ssh to go to background just before command execution.
121 This is useful if ssh is going to ask for passwords or
122 passphrases, but the user wants it in the background. This
123 implies -n. The recommended way to start X11 programs at a
124 remote site is with something like ssh -f host xterm.
125
126 If the ExitOnForwardFailure configuration option is set to
127 ``yes'', then a client started with -f will wait for all remote
128 port forwards to be successfully established before placing
129 itself in the background.
130
131 -g Allows remote hosts to connect to local forwarded ports.
132
133 -I pkcs11
134 Specify the PKCS#11 shared library ssh should use to communicate
135 with a PKCS#11 token providing the user's private RSA key.
136
137 -i identity_file
138 Selects a file from which the identity (private key) for public
139 key authentication is read. The default is ~/.ssh/identity for
140 protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
141 ~/.ssh/id_rsa for protocol version 2. Identity files may also be
142 specified on a per-host basis in the configuration file. It is
143 possible to have multiple -i options (and multiple identities
144 specified in configuration files). ssh will also try to load
145 certificate information from the filename obtained by appending
146 -cert.pub to identity filenames.
147
148 -K Enables GSSAPI-based authentication and forwarding (delegation)
149 of GSSAPI credentials to the server.
150
151 -k Disables forwarding (delegation) of GSSAPI credentials to the
152 server.
153
154 -L [bind_address:]port:host:hostport
155 Specifies that the given port on the local (client) host is to be
156 forwarded to the given host and port on the remote side. This
157 works by allocating a socket to listen to port on the local side,
158 optionally bound to the specified bind_address. Whenever a
159 connection is made to this port, the connection is forwarded over
160 the secure channel, and a connection is made to host port
161 hostport from the remote machine. Port forwardings can also be
162 specified in the configuration file. IPv6 addresses can be
163 specified by enclosing the address in square brackets. Only the
164 superuser can forward privileged ports. By default, the local
165 port is bound in accordance with the GatewayPorts setting.
166 However, an explicit bind_address may be used to bind the
167 connection to a specific address. The bind_address of
168 ``localhost'' indicates that the listening port be bound for
169 local use only, while an empty address or `*' indicates that the
170 port should be available from all interfaces.
171
172 -l login_name
173 Specifies the user to log in as on the remote machine. This also
174 may be specified on a per-host basis in the configuration file.
175
176 -M Places the ssh client into ``master'' mode for connection
177 sharing. Multiple -M options places ssh into ``master'' mode
178 with confirmation required before slave connections are accepted.
179 Refer to the description of ControlMaster in ssh_config(5) for
180 details.
181
182 -m mac_spec
183 Additionally, for protocol version 2 a comma-separated list of
184 MAC (message authentication code) algorithms can be specified in
185 order of preference. See the MACs keyword for more information.
186
187 -N Do not execute a remote command. This is useful for just
188 forwarding ports (protocol version 2 only).
189
190 -n Redirects stdin from /dev/null (actually, prevents reading from
191 stdin). This must be used when ssh is run in the background. A
192 common trick is to use this to run X11 programs on a remote
193 machine. For example, ssh -n shadows.cs.hut.fi emacs & will
194 start an emacs on shadows.cs.hut.fi, and the X11 connection will
195 be automatically forwarded over an encrypted channel. The ssh
196 program will be put in the background. (This does not work if
197 ssh needs to ask for a password or passphrase; see also the -f
198 option.)
199
200 -O ctl_cmd
201 Control an active connection multiplexing master process. When
202 the -O option is specified, the ctl_cmd argument is interpreted
203 and passed to the master process. Valid commands are: ``check''
204 (check that the master process is running), ``forward'' (request
205 forwardings without command execution), ``cancel'' (cancel
206 forwardings), ``exit'' (request the master to exit), and ``stop''
207 (request the master to stop accepting further multiplexing
208 requests).
209
210 -o option
211 Can be used to give options in the format used in the
212 configuration file. This is useful for specifying options for
213 which there is no separate command-line flag. For full details
214 of the options listed below, and their possible values, see
215 ssh_config(5).
216
217 AddressFamily
218 BatchMode
219 BindAddress
220 ChallengeResponseAuthentication
221 CheckHostIP
222 Cipher
223 Ciphers
224 ClearAllForwardings
225 Compression
226 CompressionLevel
227 ConnectionAttempts
228 ConnectTimeout
229 ControlMaster
230 ControlPath
231 ControlPersist
232 DynamicForward
233 EscapeChar
234 ExitOnForwardFailure
235 ForwardAgent
236 ForwardX11
237 ForwardX11Timeout
238 ForwardX11Trusted
239 GatewayPorts
240 GlobalKnownHostsFile
241 GSSAPIAuthentication
242 GSSAPIDelegateCredentials
243 HashKnownHosts
244 Host
245 HostbasedAuthentication
246 HostKeyAlgorithms
247 HostKeyAlias
248 HostName
249 IdentityFile
250 IdentitiesOnly
251 IPQoS
252 KbdInteractiveAuthentication
253 KbdInteractiveDevices
254 KexAlgorithms
255 LocalCommand
256 LocalForward
257 LogLevel
258 MACs
259 NoHostAuthenticationForLocalhost
260 NumberOfPasswordPrompts
261 PasswordAuthentication
262 PermitLocalCommand
263 PKCS11Provider
264 Port
265 PreferredAuthentications
266 Protocol
267 ProxyCommand
268 PubkeyAuthentication
269 RekeyLimit
270 RemoteForward
271 RequestTTY
272 RhostsRSAAuthentication
273 RSAAuthentication
274 SendEnv
275 ServerAliveInterval
276 ServerAliveCountMax
277 StrictHostKeyChecking
278 TCPKeepAlive
279 Tunnel
280 TunnelDevice
281 UsePrivilegedPort
282 User
283 UserKnownHostsFile
284 VerifyHostKeyDNS
285 VisualHostKey
286 XAuthLocation
287
288 -p port
289 Port to connect to on the remote host. This can be specified on
290 a per-host basis in the configuration file.
291
292 -q Quiet mode. Causes most warning and diagnostic messages to be
293 suppressed.
294
295 -R [bind_address:]port:host:hostport
296 Specifies that the given port on the remote (server) host is to
297 be forwarded to the given host and port on the local side. This
298 works by allocating a socket to listen to port on the remote
299 side, and whenever a connection is made to this port, the
300 connection is forwarded over the secure channel, and a connection
301 is made to host port hostport from the local machine.
302
303 Port forwardings can also be specified in the configuration file.
304 Privileged ports can be forwarded only when logging in as root on
305 the remote machine. IPv6 addresses can be specified by enclosing
306 the address in square brackets.
307
308 By default, the listening socket on the server will be bound to
309 the loopback interface only. This may be overridden by
310 specifying a bind_address. An empty bind_address, or the address
311 `*', indicates that the remote socket should listen on all
312 interfaces. Specifying a remote bind_address will only succeed
313 if the server's GatewayPorts option is enabled (see
314 sshd_config(5)).
315
316 If the port argument is `0', the listen port will be dynamically
317 allocated on the server and reported to the client at run time.
318 When used together with -O forward the allocated port will be
319 printed to the standard output.
320
321 -S ctl_path
322 Specifies the location of a control socket for connection
323 sharing, or the string ``none'' to disable connection sharing.
324 Refer to the description of ControlPath and ControlMaster in
325 ssh_config(5) for details.
326
327 -s May be used to request invocation of a subsystem on the remote
328 system. Subsystems are a feature of the SSH2 protocol which
329 facilitate the use of SSH as a secure transport for other
330 applications (eg. sftp(1)). The subsystem is specified as the
331 remote command.
332
333 -T Disable pseudo-tty allocation.
334
335 -t Force pseudo-tty allocation. This can be used to execute
336 arbitrary screen-based programs on a remote machine, which can be
337 very useful, e.g. when implementing menu services. Multiple -t
338 options force tty allocation, even if ssh has no local tty.
339
340 -V Display the version number and exit.
341
342 -v Verbose mode. Causes ssh to print debugging messages about its
343 progress. This is helpful in debugging connection,
344 authentication, and configuration problems. Multiple -v options
345 increase the verbosity. The maximum is 3.
346
347 -W host:port
348 Requests that standard input and output on the client be
349 forwarded to host on port over the secure channel. Implies -N,
350 -T, ExitOnForwardFailure and ClearAllForwardings. Works with
351 Protocol version 2 only.
352
353 -w local_tun[:remote_tun]
354 Requests tunnel device forwarding with the specified tun(4)
355 devices between the client (local_tun) and the server
356 (remote_tun).
357
358 The devices may be specified by numerical ID or the keyword
359 ``any'', which uses the next available tunnel device. If
360 remote_tun is not specified, it defaults to ``any''. See also
361 the Tunnel and TunnelDevice directives in ssh_config(5). If the
362 Tunnel directive is unset, it is set to the default tunnel mode,
363 which is ``point-to-point''.
364
365 -X Enables X11 forwarding. This can also be specified on a per-host
366 basis in a configuration file.
367
368 X11 forwarding should be enabled with caution. Users with the
369 ability to bypass file permissions on the remote host (for the
370 user's X authorization database) can access the local X11 display
371 through the forwarded connection. An attacker may then be able
372 to perform activities such as keystroke monitoring.
373
374 For this reason, X11 forwarding is subjected to X11 SECURITY
375 extension restrictions by default. Please refer to the ssh -Y
376 option and the ForwardX11Trusted directive in ssh_config(5) for
377 more information.
378
379 -x Disables X11 forwarding.
380
381 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
382 subjected to the X11 SECURITY extension controls.
383
384 -y Send log information using the syslog(3) system module. By
385 default this information is sent to stderr.
386
387 ssh may additionally obtain configuration data from a per-user
388 configuration file and a system-wide configuration file. The file format
389 and configuration options are described in ssh_config(5).
390
391AUTHENTICATION
392 The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to
393 use protocol 2 only, though this can be changed via the Protocol option
394 in ssh_config(5) or the -1 and -2 options (see above). Both protocols
395 support similar authentication methods, but protocol 2 is the default
396 since it provides additional mechanisms for confidentiality (the traffic
397 is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
398 integrity (hmac-md5, hmac-sha1, hmac-sha2-256, hmac-sha2-512, umac-64,
399 hmac-ripemd160). Protocol 1 lacks a strong mechanism for ensuring the
400 integrity of the connection.
401
402 The methods available for authentication are: GSSAPI-based
403 authentication, host-based authentication, public key authentication,
404 challenge-response authentication, and password authentication.
405 Authentication methods are tried in the order specified above, though
406 protocol 2 has a configuration option to change the default order:
407 PreferredAuthentications.
408
409 Host-based authentication works as follows: If the machine the user logs
410 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
411 machine, and the user names are the same on both sides, or if the files
412 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
413 machine and contain a line containing the name of the client machine and
414 the name of the user on that machine, the user is considered for login.
415 Additionally, the server must be able to verify the client's host key
416 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
417 below) for login to be permitted. This authentication method closes
418 security holes due to IP spoofing, DNS spoofing, and routing spoofing.
419 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
420 rlogin/rsh protocol in general, are inherently insecure and should be
421 disabled if security is desired.]
422
423 Public key authentication works as follows: The scheme is based on
424 public-key cryptography, using cryptosystems where encryption and
425 decryption are done using separate keys, and it is unfeasible to derive
426 the decryption key from the encryption key. The idea is that each user
427 creates a public/private key pair for authentication purposes. The
428 server knows the public key, and only the user knows the private key.
429 ssh implements public key authentication protocol automatically, using
430 one of the DSA, ECDSA or RSA algorithms. Protocol 1 is restricted to
431 using only RSA keys, but protocol 2 may use any. The HISTORY section of
432 ssl(8) contains a brief discussion of the DSA and RSA algorithms.
433
434 The file ~/.ssh/authorized_keys lists the public keys that are permitted
435 for logging in. When the user logs in, the ssh program tells the server
436 which key pair it would like to use for authentication. The client
437 proves that it has access to the private key and the server checks that
438 the corresponding public key is authorized to accept the account.
439
440 The user creates his/her key pair by running ssh-keygen(1). This stores
441 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
442 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), or ~/.ssh/id_rsa (protocol 2
443 RSA) and stores the public key in ~/.ssh/identity.pub (protocol 1),
444 ~/.ssh/id_dsa.pub (protocol 2 DSA), ~/.ssh/id_ecdsa.pub (protocol 2
445 ECDSA), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home
446 directory. The user should then copy the public key to
447 ~/.ssh/authorized_keys in his/her home directory on the remote machine.
448 The authorized_keys file corresponds to the conventional ~/.rhosts file,
449 and has one key per line, though the lines can be very long. After this,
450 the user can log in without giving the password.
451
452 A variation on public key authentication is available in the form of
453 certificate authentication: instead of a set of public/private keys,
454 signed certificates are used. This has the advantage that a single
455 trusted certification authority can be used in place of many
456 public/private keys. See the CERTIFICATES section of ssh-keygen(1) for
457 more information.
458
459 The most convenient way to use public key or certificate authentication
460 may be with an authentication agent. See ssh-agent(1) for more
461 information.
462
463 Challenge-response authentication works as follows: The server sends an
464 arbitrary "challenge" text, and prompts for a response. Protocol 2
465 allows multiple challenges and responses; protocol 1 is restricted to
466 just one challenge/response. Examples of challenge-response
467 authentication include BSD Authentication (see login.conf(5)) and PAM
468 (some non-OpenBSD systems).
469
470 Finally, if other authentication methods fail, ssh prompts the user for a
471 password. The password is sent to the remote host for checking; however,
472 since all communications are encrypted, the password cannot be seen by
473 someone listening on the network.
474
475 ssh automatically maintains and checks a database containing
476 identification for all hosts it has ever been used with. Host keys are
477 stored in ~/.ssh/known_hosts in the user's home directory. Additionally,
478 the file /etc/ssh/ssh_known_hosts is automatically checked for known
479 hosts. Any new hosts are automatically added to the user's file. If a
480 host's identification ever changes, ssh warns about this and disables
481 password authentication to prevent server spoofing or man-in-the-middle
482 attacks, which could otherwise be used to circumvent the encryption. The
483 StrictHostKeyChecking option can be used to control logins to machines
484 whose host key is not known or has changed.
485
486 When the user's identity has been accepted by the server, the server
487 either executes the given command, or logs into the machine and gives the
488 user a normal shell on the remote machine. All communication with the
489 remote command or shell will be automatically encrypted.
490
491 If a pseudo-terminal has been allocated (normal login session), the user
492 may use the escape characters noted below.
493
494 If no pseudo-tty has been allocated, the session is transparent and can
495 be used to reliably transfer binary data. On most systems, setting the
496 escape character to ``none'' will also make the session transparent even
497 if a tty is used.
498
499 The session terminates when the command or shell on the remote machine
500 exits and all X11 and TCP connections have been closed.
501
502ESCAPE CHARACTERS
503 When a pseudo-terminal has been requested, ssh supports a number of
504 functions through the use of an escape character.
505
506 A single tilde character can be sent as ~~ or by following the tilde by a
507 character other than those described below. The escape character must
508 always follow a newline to be interpreted as special. The escape
509 character can be changed in configuration files using the EscapeChar
510 configuration directive or on the command line by the -e option.
511
512 The supported escapes (assuming the default `~') are:
513
514 ~. Disconnect.
515
516 ~^Z Background ssh.
517
518 ~# List forwarded connections.
519
520 ~& Background ssh at logout when waiting for forwarded connection /
521 X11 sessions to terminate.
522
523 ~? Display a list of escape characters.
524
525 ~B Send a BREAK to the remote system (only useful for SSH protocol
526 version 2 and if the peer supports it).
527
528 ~C Open command line. Currently this allows the addition of port
529 forwardings using the -L, -R and -D options (see above). It also
530 allows the cancellation of existing port-forwardings with
531 -KL[bind_address:]port for local, -KR[bind_address:]port for
532 remote and -KD[bind_address:]port for dynamic port-forwardings.
533 !command allows the user to execute a local command if the
534 PermitLocalCommand option is enabled in ssh_config(5). Basic
535 help is available, using the -h option.
536
537 ~R Request rekeying of the connection (only useful for SSH protocol
538 version 2 and if the peer supports it).
539
540TCP FORWARDING
541 Forwarding of arbitrary TCP connections over the secure channel can be
542 specified either on the command line or in a configuration file. One
543 possible application of TCP forwarding is a secure connection to a mail
544 server; another is going through firewalls.
545
546 In the example below, we look at encrypting communication between an IRC
547 client and server, even though the IRC server does not directly support
548 encrypted communications. This works as follows: the user connects to
549 the remote host using ssh, specifying a port to be used to forward
550 connections to the remote server. After that it is possible to start the
551 service which is to be encrypted on the client machine, connecting to the
552 same local port, and ssh will encrypt and forward the connection.
553
554 The following example tunnels an IRC session from client machine
555 ``127.0.0.1'' (localhost) to remote server ``server.example.com'':
556
557 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
558 $ irc -c '#users' -p 1234 pinky 127.0.0.1
559
560 This tunnels a connection to IRC server ``server.example.com'', joining
561 channel ``#users'', nickname ``pinky'', using port 1234. It doesn't
562 matter which port is used, as long as it's greater than 1023 (remember,
563 only root can open sockets on privileged ports) and doesn't conflict with
564 any ports already in use. The connection is forwarded to port 6667 on
565 the remote server, since that's the standard port for IRC services.
566
567 The -f option backgrounds ssh and the remote command ``sleep 10'' is
568 specified to allow an amount of time (10 seconds, in the example) to
569 start the service which is to be tunnelled. If no connections are made
570 within the time specified, ssh will exit.
571
572X11 FORWARDING
573 If the ForwardX11 variable is set to ``yes'' (or see the description of
574 the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
575 environment variable is set), the connection to the X11 display is
576 automatically forwarded to the remote side in such a way that any X11
577 programs started from the shell (or command) will go through the
578 encrypted channel, and the connection to the real X server will be made
579 from the local machine. The user should not manually set DISPLAY.
580 Forwarding of X11 connections can be configured on the command line or in
581 configuration files.
582
583 The DISPLAY value set by ssh will point to the server machine, but with a
584 display number greater than zero. This is normal, and happens because
585 ssh creates a ``proxy'' X server on the server machine for forwarding the
586 connections over the encrypted channel.
587
588 ssh will also automatically set up Xauthority data on the server machine.
589 For this purpose, it will generate a random authorization cookie, store
590 it in Xauthority on the server, and verify that any forwarded connections
591 carry this cookie and replace it by the real cookie when the connection
592 is opened. The real authentication cookie is never sent to the server
593 machine (and no cookies are sent in the plain).
594
595 If the ForwardAgent variable is set to ``yes'' (or see the description of
596 the -A and -a options above) and the user is using an authentication
597 agent, the connection to the agent is automatically forwarded to the
598 remote side.
599
600VERIFYING HOST KEYS
601 When connecting to a server for the first time, a fingerprint of the
602 server's public key is presented to the user (unless the option
603 StrictHostKeyChecking has been disabled). Fingerprints can be determined
604 using ssh-keygen(1):
605
606 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
607
608 If the fingerprint is already known, it can be matched and the key can be
609 accepted or rejected. Because of the difficulty of comparing host keys
610 just by looking at hex strings, there is also support to compare host
611 keys visually, using random art. By setting the VisualHostKey option to
612 ``yes'', a small ASCII graphic gets displayed on every login to a server,
613 no matter if the session itself is interactive or not. By learning the
614 pattern a known server produces, a user can easily find out that the host
615 key has changed when a completely different pattern is displayed.
616 Because these patterns are not unambiguous however, a pattern that looks
617 similar to the pattern remembered only gives a good probability that the
618 host key is the same, not guaranteed proof.
619
620 To get a listing of the fingerprints along with their random art for all
621 known hosts, the following command line can be used:
622
623 $ ssh-keygen -lv -f ~/.ssh/known_hosts
624
625 If the fingerprint is unknown, an alternative method of verification is
626 available: SSH fingerprints verified by DNS. An additional resource
627 record (RR), SSHFP, is added to a zonefile and the connecting client is
628 able to match the fingerprint with that of the key presented.
629
630 In this example, we are connecting a client to a server,
631 ``host.example.com''. The SSHFP resource records should first be added
632 to the zonefile for host.example.com:
633
634 $ ssh-keygen -r host.example.com.
635
636 The output lines will have to be added to the zonefile. To check that
637 the zone is answering fingerprint queries:
638
639 $ dig -t SSHFP host.example.com
640
641 Finally the client connects:
642
643 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
644 [...]
645 Matching host key fingerprint found in DNS.
646 Are you sure you want to continue connecting (yes/no)?
647
648 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
649
650SSH-BASED VIRTUAL PRIVATE NETWORKS
651 ssh contains support for Virtual Private Network (VPN) tunnelling using
652 the tun(4) network pseudo-device, allowing two networks to be joined
653 securely. The sshd_config(5) configuration option PermitTunnel controls
654 whether the server supports this, and at what level (layer 2 or 3
655 traffic).
656
657 The following example would connect client network 10.0.50.0/24 with
658 remote network 10.0.99.0/24 using a point-to-point connection from
659 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway
660 to the remote network, at 192.168.1.15, allows it.
661
662 On the client:
663
664 # ssh -f -w 0:1 192.168.1.15 true
665 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
666 # route add 10.0.99.0/24 10.1.1.2
667
668 On the server:
669
670 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
671 # route add 10.0.50.0/24 10.1.1.1
672
673 Client access may be more finely tuned via the /root/.ssh/authorized_keys
674 file (see below) and the PermitRootLogin server option. The following
675 entry would permit connections on tun(4) device 1 from user ``jane'' and
676 on tun device 2 from user ``john'', if PermitRootLogin is set to
677 ``forced-commands-only'':
678
679 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
680 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
681
682 Since an SSH-based setup entails a fair amount of overhead, it may be
683 more suited to temporary setups, such as for wireless VPNs. More
684 permanent VPNs are better provided by tools such as ipsecctl(8) and
685 isakmpd(8).
686
687ENVIRONMENT
688 ssh will normally set the following environment variables:
689
690 DISPLAY The DISPLAY variable indicates the location of the
691 X11 server. It is automatically set by ssh to
692 point to a value of the form ``hostname:n'', where
693 ``hostname'' indicates the host where the shell
694 runs, and `n' is an integer >= 1. ssh uses this
695 special value to forward X11 connections over the
696 secure channel. The user should normally not set
697 DISPLAY explicitly, as that will render the X11
698 connection insecure (and will require the user to
699 manually copy any required authorization cookies).
700
701 HOME Set to the path of the user's home directory.
702
703 LOGNAME Synonym for USER; set for compatibility with
704 systems that use this variable.
705
706 MAIL Set to the path of the user's mailbox.
707
708 PATH Set to the default PATH, as specified when
709 compiling ssh.
710
711 SSH_ASKPASS If ssh needs a passphrase, it will read the
712 passphrase from the current terminal if it was run
713 from a terminal. If ssh does not have a terminal
714 associated with it but DISPLAY and SSH_ASKPASS are
715 set, it will execute the program specified by
716 SSH_ASKPASS and open an X11 window to read the
717 passphrase. This is particularly useful when
718 calling ssh from a .xsession or related script.
719 (Note that on some machines it may be necessary to
720 redirect the input from /dev/null to make this
721 work.)
722
723 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
724 communicate with the agent.
725
726 SSH_CONNECTION Identifies the client and server ends of the
727 connection. The variable contains four space-
728 separated values: client IP address, client port
729 number, server IP address, and server port number.
730
731 SSH_ORIGINAL_COMMAND This variable contains the original command line if
732 a forced command is executed. It can be used to
733 extract the original arguments.
734
735 SSH_TTY This is set to the name of the tty (path to the
736 device) associated with the current shell or
737 command. If the current session has no tty, this
738 variable is not set.
739
740 TZ This variable is set to indicate the present time
741 zone if it was set when the daemon was started
742 (i.e. the daemon passes the value on to new
743 connections).
744
745 USER Set to the name of the user logging in.
746
747 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
748 ``VARNAME=value'' to the environment if the file exists and users are
749 allowed to change their environment. For more information, see the
750 PermitUserEnvironment option in sshd_config(5).
751
752FILES
753 ~/.rhosts
754 This file is used for host-based authentication (see above). On
755 some machines this file may need to be world-readable if the
756 user's home directory is on an NFS partition, because sshd(8)
757 reads it as root. Additionally, this file must be owned by the
758 user, and must not have write permissions for anyone else. The
759 recommended permission for most machines is read/write for the
760 user, and not accessible by others.
761
762 ~/.shosts
763 This file is used in exactly the same way as .rhosts, but allows
764 host-based authentication without permitting login with
765 rlogin/rsh.
766
767 ~/.ssh/
768 This directory is the default location for all user-specific
769 configuration and authentication information. There is no
770 general requirement to keep the entire contents of this directory
771 secret, but the recommended permissions are read/write/execute
772 for the user, and not accessible by others.
773
774 ~/.ssh/authorized_keys
775 Lists the public keys (DSA/ECDSA/RSA) that can be used for
776 logging in as this user. The format of this file is described in
777 the sshd(8) manual page. This file is not highly sensitive, but
778 the recommended permissions are read/write for the user, and not
779 accessible by others.
780
781 ~/.ssh/config
782 This is the per-user configuration file. The file format and
783 configuration options are described in ssh_config(5). Because of
784 the potential for abuse, this file must have strict permissions:
785 read/write for the user, and not accessible by others.
786
787 ~/.ssh/environment
788 Contains additional definitions for environment variables; see
789 ENVIRONMENT, above.
790
791 ~/.ssh/identity
792 ~/.ssh/id_dsa
793 ~/.ssh/id_ecdsa
794 ~/.ssh/id_rsa
795 Contains the private key for authentication. These files contain
796 sensitive data and should be readable by the user but not
797 accessible by others (read/write/execute). ssh will simply
798 ignore a private key file if it is accessible by others. It is
799 possible to specify a passphrase when generating the key which
800 will be used to encrypt the sensitive part of this file using
801 3DES.
802
803 ~/.ssh/identity.pub
804 ~/.ssh/id_dsa.pub
805 ~/.ssh/id_ecdsa.pub
806 ~/.ssh/id_rsa.pub
807 Contains the public key for authentication. These files are not
808 sensitive and can (but need not) be readable by anyone.
809
810 ~/.ssh/known_hosts
811 Contains a list of host keys for all hosts the user has logged
812 into that are not already in the systemwide list of known host
813 keys. See sshd(8) for further details of the format of this
814 file.
815
816 ~/.ssh/rc
817 Commands in this file are executed by ssh when the user logs in,
818 just before the user's shell (or command) is started. See the
819 sshd(8) manual page for more information.
820
821 /etc/hosts.equiv
822 This file is for host-based authentication (see above). It
823 should only be writable by root.
824
825 /etc/shosts.equiv
826 This file is used in exactly the same way as hosts.equiv, but
827 allows host-based authentication without permitting login with
828 rlogin/rsh.
829
830 /etc/ssh/ssh_config
831 Systemwide configuration file. The file format and configuration
832 options are described in ssh_config(5).
833
834 /etc/ssh/ssh_host_key
835 /etc/ssh/ssh_host_dsa_key
836 /etc/ssh/ssh_host_ecdsa_key
837 /etc/ssh/ssh_host_rsa_key
838 These files contain the private parts of the host keys and are
839 used for host-based authentication. If protocol version 1 is
840 used, ssh must be setuid root, since the host key is readable
841 only by root. For protocol version 2, ssh uses ssh-keysign(8) to
842 access the host keys, eliminating the requirement that ssh be
843 setuid root when host-based authentication is used. By default
844 ssh is not setuid root.
845
846 /etc/ssh/ssh_known_hosts
847 Systemwide list of known host keys. This file should be prepared
848 by the system administrator to contain the public host keys of
849 all machines in the organization. It should be world-readable.
850 See sshd(8) for further details of the format of this file.
851
852 /etc/ssh/sshrc
853 Commands in this file are executed by ssh when the user logs in,
854 just before the user's shell (or command) is started. See the
855 sshd(8) manual page for more information.
856
857EXIT STATUS
858 ssh exits with the exit status of the remote command or with 255 if an
859 error occurred.
860
861SEE ALSO
862 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
863 tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8)
864
865 The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006.
866
867 The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006.
868
869 The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006.
870
871 The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006.
872
873 The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006.
874
875 Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC
876 4255, 2006.
877
878 Generic Message Exchange Authentication for the Secure Shell Protocol
879 (SSH), RFC 4256, 2006.
880
881 The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006.
882
883 The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006.
884
885 Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer
886 Protocol, RFC 4345, 2006.
887
888 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
889 Protocol, RFC 4419, 2006.
890
891 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
892
893 Elliptic Curve Algorithm Integration in the Secure Shell Transport Layer,
894 RFC 5656, 2009.
895
896 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
897 Real-World Security, 1999, International Workshop on Cryptographic
898 Techniques and E-Commerce (CrypTEC '99).
899
900AUTHORS
901 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
902 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
903 de Raadt and Dug Song removed many bugs, re-added newer features and
904 created OpenSSH. Markus Friedl contributed the support for SSH protocol
905 versions 1.5 and 2.0.
906
907OpenBSD 5.2 June 18, 2012 OpenBSD 5.2
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..d8256d137
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,766 @@
1SSH_CONFIG(5) OpenBSD Programmer's Manual SSH_CONFIG(5)
2
3NAME
4 ssh_config - 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 ``Host''
20 specifications, and that section is only applied for hosts that match one
21 of the patterns given in the specification. The matched host name is the
22 one given on the command line.
23
24 Since the first obtained value for each parameter is used, more host-
25 specific declarations should be given near the beginning of the file, and
26 general defaults at the end.
27
28 The configuration file has the following format:
29
30 Empty lines and lines starting with `#' are comments. Otherwise a line
31 is of the format ``keyword arguments''. Configuration options may be
32 separated by whitespace or optional whitespace and exactly one `='; the
33 latter format is useful to avoid the need to quote whitespace when
34 specifying configuration options using the ssh, scp, and sftp -o option.
35 Arguments may optionally be enclosed in double quotes (") in order to
36 represent arguments containing spaces.
37
38 The possible keywords and their meanings are as follows (note that
39 keywords are case-insensitive and arguments are case-sensitive):
40
41 Host Restricts the following declarations (up to the next Host
42 keyword) to be only for those hosts that match one of the
43 patterns given after the keyword. If more than one pattern is
44 provided, they should be separated by whitespace. A single `*'
45 as a pattern can be used to provide global defaults for all
46 hosts. The host is the hostname argument given on the command
47 line (i.e. the name is not converted to a canonicalized host name
48 before matching).
49
50 A pattern entry may be negated by prefixing it with an
51 exclamation mark (`!'). If a negated entry is matched, then the
52 Host entry is ignored, regardless of whether any other patterns
53 on the line match. Negated matches are therefore useful to
54 provide exceptions for wildcard matches.
55
56 See PATTERNS for more information on patterns.
57
58 AddressFamily
59 Specifies which address family to use when connecting. Valid
60 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
61 (use IPv6 only).
62
63 BatchMode
64 If set to ``yes'', passphrase/password querying will be disabled.
65 This option is useful in scripts and other batch jobs where no
66 user is present to supply the password. The argument must be
67 ``yes'' or ``no''. The default is ``no''.
68
69 BindAddress
70 Use the specified address on the local machine as the source
71 address of the connection. Only useful on systems with more than
72 one address. Note that this option does not work if
73 UsePrivilegedPort is set to ``yes''.
74
75 ChallengeResponseAuthentication
76 Specifies whether to use challenge-response authentication. The
77 argument to this keyword must be ``yes'' or ``no''. The default
78 is ``yes''.
79
80 CheckHostIP
81 If this flag is set to ``yes'', ssh(1) will additionally check
82 the host IP address in the known_hosts file. This allows ssh to
83 detect if a host key changed due to DNS spoofing. If the option
84 is set to ``no'', the check will not be executed. The default is
85 ``yes''.
86
87 Cipher Specifies the cipher to use for encrypting the session in
88 protocol version 1. Currently, ``blowfish'', ``3des'', and
89 ``des'' are supported. des is only supported in the ssh(1)
90 client for interoperability with legacy protocol 1
91 implementations that do not support the 3des cipher. Its use is
92 strongly discouraged due to cryptographic weaknesses. The
93 default is ``3des''.
94
95 Ciphers
96 Specifies the ciphers allowed for protocol version 2 in order of
97 preference. Multiple ciphers must be comma-separated. The
98 supported ciphers are ``3des-cbc'', ``aes128-cbc'',
99 ``aes192-cbc'', ``aes256-cbc'', ``aes128-ctr'', ``aes192-ctr'',
100 ``aes256-ctr'', ``arcfour128'', ``arcfour256'', ``arcfour'',
101 ``blowfish-cbc'', and ``cast128-cbc''. The default is:
102
103 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
104 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
105 aes256-cbc,arcfour
106
107 ClearAllForwardings
108 Specifies that all local, remote, and dynamic port forwardings
109 specified in the configuration files or on the command line be
110 cleared. This option is primarily useful when used from the
111 ssh(1) command line to clear port forwardings set in
112 configuration files, and is automatically set by scp(1) and
113 sftp(1). The argument must be ``yes'' or ``no''. The default is
114 ``no''.
115
116 Compression
117 Specifies whether to use compression. The argument must be
118 ``yes'' or ``no''. The default is ``no''.
119
120 CompressionLevel
121 Specifies the compression level to use if compression is enabled.
122 The argument must be an integer from 1 (fast) to 9 (slow, best).
123 The default level is 6, which is good for most applications. The
124 meaning of the values is the same as in gzip(1). Note that this
125 option applies to protocol version 1 only.
126
127 ConnectionAttempts
128 Specifies the number of tries (one per second) to make before
129 exiting. The argument must be an integer. This may be useful in
130 scripts if the connection sometimes fails. The default is 1.
131
132 ConnectTimeout
133 Specifies the timeout (in seconds) used when connecting to the
134 SSH server, instead of using the default system TCP timeout.
135 This value is used only when the target is down or really
136 unreachable, not when it refuses the connection.
137
138 ControlMaster
139 Enables the sharing of multiple sessions over a single network
140 connection. When set to ``yes'', ssh(1) will listen for
141 connections on a control socket specified using the ControlPath
142 argument. Additional sessions can connect to this socket using
143 the same ControlPath with ControlMaster set to ``no'' (the
144 default). These sessions will try to reuse the master instance's
145 network connection rather than initiating new ones, but will fall
146 back to connecting normally if the control socket does not exist,
147 or is not listening.
148
149 Setting this to ``ask'' will cause ssh to listen for control
150 connections, but require confirmation using the SSH_ASKPASS
151 program before they are accepted (see ssh-add(1) for details).
152 If the ControlPath cannot be opened, ssh will continue without
153 connecting to a master instance.
154
155 X11 and ssh-agent(1) forwarding is supported over these
156 multiplexed connections, however the display and agent forwarded
157 will be the one belonging to the master connection i.e. it is not
158 possible to forward multiple displays or agents.
159
160 Two additional options allow for opportunistic multiplexing: try
161 to use a master connection but fall back to creating a new one if
162 one does not already exist. These options are: ``auto'' and
163 ``autoask''. The latter requires confirmation like the ``ask''
164 option.
165
166 ControlPath
167 Specify the path to the control socket used for connection
168 sharing as described in the ControlMaster section above or the
169 string ``none'' to disable connection sharing. In the path, `%L'
170 will be substituted by the first component of the local host
171 name, `%l' will be substituted by the local host name (including
172 any domain name), `%h' will be substituted by the target host
173 name, `%n' will be substituted by the original target host name
174 specified on the command line, `%p' the port, `%r' by the remote
175 login username, and `%u' by the username of the user running
176 ssh(1). It is recommended that any ControlPath used for
177 opportunistic connection sharing include at least %h, %p, and %r.
178 This ensures that shared connections are uniquely identified.
179
180 ControlPersist
181 When used in conjunction with ControlMaster, specifies that the
182 master connection should remain open in the background (waiting
183 for future client connections) after the initial client
184 connection has been closed. If set to ``no'', then the master
185 connection will not be placed into the background, and will close
186 as soon as the initial client connection is closed. If set to
187 ``yes'', then the master connection will remain in the background
188 indefinitely (until killed or closed via a mechanism such as the
189 ssh(1) ``-O exit'' option). If set to a time in seconds, or a
190 time in any of the formats documented in sshd_config(5), then the
191 backgrounded master connection will automatically terminate after
192 it has remained idle (with no client connections) for the
193 specified time.
194
195 DynamicForward
196 Specifies that a TCP port on the local machine be forwarded over
197 the secure channel, and the application protocol is then used to
198 determine where to connect to from the remote machine.
199
200 The argument must be [bind_address:]port. IPv6 addresses can be
201 specified by enclosing addresses in square brackets. By default,
202 the local port is bound in accordance with the GatewayPorts
203 setting. However, an explicit bind_address may be used to bind
204 the connection to a specific address. The bind_address of
205 ``localhost'' indicates that the listening port be bound for
206 local use only, while an empty address or `*' indicates that the
207 port should be available from all interfaces.
208
209 Currently the SOCKS4 and SOCKS5 protocols are supported, and
210 ssh(1) will act as a SOCKS server. Multiple forwardings may be
211 specified, and additional forwardings can be given on the command
212 line. Only the superuser can forward privileged ports.
213
214 EnableSSHKeysign
215 Setting this option to ``yes'' in the global client configuration
216 file /etc/ssh/ssh_config enables the use of the helper program
217 ssh-keysign(8) during HostbasedAuthentication. The argument must
218 be ``yes'' or ``no''. The default is ``no''. This option should
219 be placed in the non-hostspecific section. See ssh-keysign(8)
220 for more information.
221
222 EscapeChar
223 Sets the escape character (default: `~'). The escape character
224 can also be set on the command line. The argument should be a
225 single character, `^' followed by a letter, or ``none'' to
226 disable the escape character entirely (making the connection
227 transparent for binary data).
228
229 ExitOnForwardFailure
230 Specifies whether ssh(1) should terminate the connection if it
231 cannot set up all requested dynamic, tunnel, local, and remote
232 port forwardings. The argument must be ``yes'' or ``no''. The
233 default is ``no''.
234
235 ForwardAgent
236 Specifies whether the connection to the authentication agent (if
237 any) will be forwarded to the remote machine. The argument must
238 be ``yes'' or ``no''. The default is ``no''.
239
240 Agent forwarding should be enabled with caution. Users with the
241 ability to bypass file permissions on the remote host (for the
242 agent's Unix-domain socket) can access the local agent through
243 the forwarded connection. An attacker cannot obtain key material
244 from the agent, however they can perform operations on the keys
245 that enable them to authenticate using the identities loaded into
246 the agent.
247
248 ForwardX11
249 Specifies whether X11 connections will be automatically
250 redirected over the secure channel and DISPLAY set. The argument
251 must be ``yes'' or ``no''. The default is ``no''.
252
253 X11 forwarding should be enabled with caution. Users with the
254 ability to bypass file permissions on the remote host (for the
255 user's X11 authorization database) can access the local X11
256 display through the forwarded connection. An attacker may then
257 be able to perform activities such as keystroke monitoring if the
258 ForwardX11Trusted option is also enabled.
259
260 ForwardX11Timeout
261 Specify a timeout for untrusted X11 forwarding using the format
262 described in the TIME FORMATS section of sshd_config(5). X11
263 connections received by ssh(1) after this time will be refused.
264 The default is to disable untrusted X11 forwarding after twenty
265 minutes has elapsed.
266
267 ForwardX11Trusted
268 If this option is set to ``yes'', remote X11 clients will have
269 full access to the original X11 display.
270
271 If this option is set to ``no'', remote X11 clients will be
272 considered untrusted and prevented from stealing or tampering
273 with data belonging to trusted X11 clients. Furthermore, the
274 xauth(1) token used for the session will be set to expire after
275 20 minutes. Remote clients will be refused access after this
276 time.
277
278 The default is ``no''.
279
280 See the X11 SECURITY extension specification for full details on
281 the restrictions imposed on untrusted clients.
282
283 GatewayPorts
284 Specifies whether remote hosts are allowed to connect to local
285 forwarded ports. By default, ssh(1) binds local port forwardings
286 to the loopback address. This prevents other remote hosts from
287 connecting to forwarded ports. GatewayPorts can be used to
288 specify that ssh should bind local port forwardings to the
289 wildcard address, thus allowing remote hosts to connect to
290 forwarded ports. The argument must be ``yes'' or ``no''. The
291 default is ``no''.
292
293 GlobalKnownHostsFile
294 Specifies one or more files to use for the global host key
295 database, separated by whitespace. The default is
296 /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2.
297
298 GSSAPIAuthentication
299 Specifies whether user authentication based on GSSAPI is allowed.
300 The default is ``no''. Note that this option applies to protocol
301 version 2 only.
302
303 GSSAPIDelegateCredentials
304 Forward (delegate) credentials to the server. The default is
305 ``no''. Note that this option applies to protocol version 2
306 only.
307
308 HashKnownHosts
309 Indicates that ssh(1) should hash host names and addresses when
310 they are added to ~/.ssh/known_hosts. These hashed names may be
311 used normally by ssh(1) and sshd(8), but they do not reveal
312 identifying information should the file's contents be disclosed.
313 The default is ``no''. Note that existing names and addresses in
314 known hosts files will not be converted automatically, but may be
315 manually hashed using ssh-keygen(1).
316
317 HostbasedAuthentication
318 Specifies whether to try rhosts based authentication with public
319 key authentication. The argument must be ``yes'' or ``no''. The
320 default is ``no''. This option applies to protocol version 2
321 only and is similar to RhostsRSAAuthentication.
322
323 HostKeyAlgorithms
324 Specifies the protocol version 2 host key algorithms that the
325 client wants to use in order of preference. The default for this
326 option is:
327
328 ecdsa-sha2-nistp256-cert-v01@openssh.com,
329 ecdsa-sha2-nistp384-cert-v01@openssh.com,
330 ecdsa-sha2-nistp521-cert-v01@openssh.com,
331 ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,
332 ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,
333 ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,
334 ssh-rsa,ssh-dss
335
336 If hostkeys are known for the destination host then this default
337 is modified to prefer their algorithms.
338
339 HostKeyAlias
340 Specifies an alias that should be used instead of the real host
341 name when looking up or saving the host key in the host key
342 database files. This option is useful for tunneling SSH
343 connections or for multiple servers running on a single host.
344
345 HostName
346 Specifies the real host name to log into. This can be used to
347 specify nicknames or abbreviations for hosts. If the hostname
348 contains the character sequence `%h', then this will be replaced
349 with the host name specified on the command line (this is useful
350 for manipulating unqualified names). The default is the name
351 given on the command line. Numeric IP addresses are also
352 permitted (both on the command line and in HostName
353 specifications).
354
355 IdentitiesOnly
356 Specifies that ssh(1) should only use the authentication identity
357 files configured in the ssh_config files, even if ssh-agent(1)
358 offers more identities. The argument to this keyword must be
359 ``yes'' or ``no''. This option is intended for situations where
360 ssh-agent offers many different identities. The default is
361 ``no''.
362
363 IdentityFile
364 Specifies a file from which the user's DSA, ECDSA or RSA
365 authentication identity is read. The default is ~/.ssh/identity
366 for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
367 ~/.ssh/id_rsa for protocol version 2. Additionally, any
368 identities represented by the authentication agent will be used
369 for authentication. ssh(1) will try to load certificate
370 information from the filename obtained by appending -cert.pub to
371 the path of a specified IdentityFile.
372
373 The file name may use the tilde syntax to refer to a user's home
374 directory or one of the following escape characters: `%d' (local
375 user's home directory), `%u' (local user name), `%l' (local host
376 name), `%h' (remote host name) or `%r' (remote user name).
377
378 It is possible to have multiple identity files specified in
379 configuration files; all these identities will be tried in
380 sequence. Multiple IdentityFile directives will add to the list
381 of identities tried (this behaviour differs from that of other
382 configuration directives).
383
384 IPQoS Specifies the IPv4 type-of-service or DSCP class for connections.
385 Accepted values are ``af11'', ``af12'', ``af13'', ``af21'',
386 ``af22'', ``af23'', ``af31'', ``af32'', ``af33'', ``af41'',
387 ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'', ``cs4'',
388 ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'', ``throughput'',
389 ``reliability'', or a numeric value. This option may take one or
390 two arguments, separated by whitespace. If one argument is
391 specified, it is used as the packet class unconditionally. If
392 two values are specified, the first is automatically selected for
393 interactive sessions and the second for non-interactive sessions.
394 The default is ``lowdelay'' for interactive sessions and
395 ``throughput'' for non-interactive sessions.
396
397 KbdInteractiveAuthentication
398 Specifies whether to use keyboard-interactive authentication.
399 The argument to this keyword must be ``yes'' or ``no''. The
400 default is ``yes''.
401
402 KbdInteractiveDevices
403 Specifies the list of methods to use in keyboard-interactive
404 authentication. Multiple method names must be comma-separated.
405 The default is to use the server specified list. The methods
406 available vary depending on what the server supports. For an
407 OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'',
408 and ``skey''.
409
410 KexAlgorithms
411 Specifies the available KEX (Key Exchange) algorithms. Multiple
412 algorithms must be comma-separated. The default is:
413
414 ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,
415 diffie-hellman-group-exchange-sha256,
416 diffie-hellman-group-exchange-sha1,
417 diffie-hellman-group14-sha1,
418 diffie-hellman-group1-sha1
419
420 LocalCommand
421 Specifies a command to execute on the local machine after
422 successfully connecting to the server. The command string
423 extends to the end of the line, and is executed with the user's
424 shell. The following escape character substitutions will be
425 performed: `%d' (local user's home directory), `%h' (remote host
426 name), `%l' (local host name), `%n' (host name as provided on the
427 command line), `%p' (remote port), `%r' (remote user name) or
428 `%u' (local user name).
429
430 The command is run synchronously and does not have access to the
431 session of the ssh(1) that spawned it. It should not be used for
432 interactive commands.
433
434 This directive is ignored unless PermitLocalCommand has been
435 enabled.
436
437 LocalForward
438 Specifies that a TCP port on the local machine be forwarded over
439 the secure channel to the specified host and port from the remote
440 machine. The first argument must be [bind_address:]port and the
441 second argument must be host:hostport. IPv6 addresses can be
442 specified by enclosing addresses in square brackets. Multiple
443 forwardings may be specified, and additional forwardings can be
444 given on the command line. Only the superuser can forward
445 privileged ports. By default, the local port is bound in
446 accordance with the GatewayPorts setting. However, an explicit
447 bind_address may be used to bind the connection to a specific
448 address. The bind_address of ``localhost'' indicates that the
449 listening port be bound for local use only, while an empty
450 address or `*' indicates that the port should be available from
451 all interfaces.
452
453 LogLevel
454 Gives the verbosity level that is used when logging messages from
455 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO,
456 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
457 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
458 higher levels of verbose output.
459
460 MACs Specifies the MAC (message authentication code) algorithms in
461 order of preference. The MAC algorithm is used in protocol
462 version 2 for data integrity protection. Multiple algorithms
463 must be comma-separated. The default is:
464
465 hmac-md5,hmac-sha1,umac-64@openssh.com,
466 hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
467 hmac-sha1-96,hmac-md5-96
468
469 NoHostAuthenticationForLocalhost
470 This option can be used if the home directory is shared across
471 machines. In this case localhost will refer to a different
472 machine on each of the machines and the user will get many
473 warnings about changed host keys. However, this option disables
474 host authentication for localhost. The argument to this keyword
475 must be ``yes'' or ``no''. The default is to check the host key
476 for localhost.
477
478 NumberOfPasswordPrompts
479 Specifies the number of password prompts before giving up. The
480 argument to this keyword must be an integer. The default is 3.
481
482 PasswordAuthentication
483 Specifies whether to use password authentication. The argument
484 to this keyword must be ``yes'' or ``no''. The default is
485 ``yes''.
486
487 PermitLocalCommand
488 Allow local command execution via the LocalCommand option or
489 using the !command escape sequence in ssh(1). The argument must
490 be ``yes'' or ``no''. The default is ``no''.
491
492 PKCS11Provider
493 Specifies which PKCS#11 provider to use. The argument to this
494 keyword is the PKCS#11 shared library ssh(1) should use to
495 communicate with a PKCS#11 token providing the user's private RSA
496 key.
497
498 Port Specifies the port number to connect on the remote host. The
499 default is 22.
500
501 PreferredAuthentications
502 Specifies the order in which the client should try protocol 2
503 authentication methods. This allows a client to prefer one
504 method (e.g. keyboard-interactive) over another method (e.g.
505 password). The default is:
506
507 gssapi-with-mic,hostbased,publickey,
508 keyboard-interactive,password
509
510 Protocol
511 Specifies the protocol versions ssh(1) should support in order of
512 preference. The possible values are `1' and `2'. Multiple
513 versions must be comma-separated. When this option is set to
514 ``2,1'' ssh will try version 2 and fall back to version 1 if
515 version 2 is not available. The default is `2'.
516
517 ProxyCommand
518 Specifies the command to use to connect to the server. The
519 command string extends to the end of the line, and is executed
520 with the user's shell. In the command string, any occurrence of
521 `%h' will be substituted by the host name to connect, `%p' by the
522 port, and `%r' by the remote user name. The command can be
523 basically anything, and should read from its standard input and
524 write to its standard output. It should eventually connect an
525 sshd(8) server running on some machine, or execute sshd -i
526 somewhere. Host key management will be done using the HostName
527 of the host being connected (defaulting to the name typed by the
528 user). Setting the command to ``none'' disables this option
529 entirely. Note that CheckHostIP is not available for connects
530 with a proxy command.
531
532 This directive is useful in conjunction with nc(1) and its proxy
533 support. For example, the following directive would connect via
534 an HTTP proxy at 192.0.2.0:
535
536 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
537
538 PubkeyAuthentication
539 Specifies whether to try public key authentication. The argument
540 to this keyword must be ``yes'' or ``no''. The default is
541 ``yes''. This option applies to protocol version 2 only.
542
543 RekeyLimit
544 Specifies the maximum amount of data that may be transmitted
545 before the session key is renegotiated. The argument is the
546 number of bytes, with an optional suffix of `K', `M', or `G' to
547 indicate Kilobytes, Megabytes, or Gigabytes, respectively. The
548 default is between `1G' and `4G', depending on the cipher. This
549 option applies to protocol version 2 only.
550
551 RemoteForward
552 Specifies that a TCP port on the remote machine be forwarded over
553 the secure channel to the specified host and port from the local
554 machine. The first argument must be [bind_address:]port and the
555 second argument must be host:hostport. IPv6 addresses can be
556 specified by enclosing addresses in square brackets. Multiple
557 forwardings may be specified, and additional forwardings can be
558 given on the command line. Privileged ports can be forwarded
559 only when logging in as root on the remote machine.
560
561 If the port argument is `0', the listen port will be dynamically
562 allocated on the server and reported to the client at run time.
563
564 If the bind_address is not specified, the default is to only bind
565 to loopback addresses. If the bind_address is `*' or an empty
566 string, then the forwarding is requested to listen on all
567 interfaces. Specifying a remote bind_address will only succeed
568 if the server's GatewayPorts option is enabled (see
569 sshd_config(5)).
570
571 RequestTTY
572 Specifies whether to request a pseudo-tty for the session. The
573 argument may be one of: ``no'' (never request a TTY), ``yes''
574 (always request a TTY when standard input is a TTY), ``force''
575 (always request a TTY) or ``auto'' (request a TTY when opening a
576 login session). This option mirrors the -t and -T flags for
577 ssh(1).
578
579 RhostsRSAAuthentication
580 Specifies whether to try rhosts based authentication with RSA
581 host authentication. The argument must be ``yes'' or ``no''.
582 The default is ``no''. This option applies to protocol version 1
583 only and requires ssh(1) to be setuid root.
584
585 RSAAuthentication
586 Specifies whether to try RSA authentication. The argument to
587 this keyword must be ``yes'' or ``no''. RSA authentication will
588 only be attempted if the identity file exists, or an
589 authentication agent is running. The default is ``yes''. Note
590 that this option applies to protocol version 1 only.
591
592 SendEnv
593 Specifies what variables from the local environ(7) should be sent
594 to the server. Note that environment passing is only supported
595 for protocol 2. The server must also support it, and the server
596 must be configured to accept these environment variables. Refer
597 to AcceptEnv in sshd_config(5) for how to configure the server.
598 Variables are specified by name, which may contain wildcard
599 characters. Multiple environment variables may be separated by
600 whitespace or spread across multiple SendEnv directives. The
601 default is not to send any environment variables.
602
603 See PATTERNS for more information on patterns.
604
605 ServerAliveCountMax
606 Sets the number of server alive messages (see below) which may be
607 sent without ssh(1) receiving any messages back from the server.
608 If this threshold is reached while server alive messages are
609 being sent, ssh will disconnect from the server, terminating the
610 session. It is important to note that the use of server alive
611 messages is very different from TCPKeepAlive (below). The server
612 alive messages are sent through the encrypted channel and
613 therefore will not be spoofable. The TCP keepalive option
614 enabled by TCPKeepAlive is spoofable. The server alive mechanism
615 is valuable when the client or server depend on knowing when a
616 connection has become inactive.
617
618 The default value is 3. If, for example, ServerAliveInterval
619 (see below) is set to 15 and ServerAliveCountMax is left at the
620 default, if the server becomes unresponsive, ssh will disconnect
621 after approximately 45 seconds. This option applies to protocol
622 version 2 only.
623
624 ServerAliveInterval
625 Sets a timeout interval in seconds after which if no data has
626 been received from the server, ssh(1) will send a message through
627 the encrypted channel to request a response from the server. The
628 default is 0, indicating that these messages will not be sent to
629 the server. This option applies to protocol version 2 only.
630
631 StrictHostKeyChecking
632 If this flag is set to ``yes'', ssh(1) will never automatically
633 add host keys to the ~/.ssh/known_hosts file, and refuses to
634 connect to hosts whose host key has changed. This provides
635 maximum protection against trojan horse attacks, though it can be
636 annoying when the /etc/ssh/ssh_known_hosts file is poorly
637 maintained or when connections to new hosts are frequently made.
638 This option forces the user to manually add all new hosts. If
639 this flag is set to ``no'', ssh will automatically add new host
640 keys to the user known hosts files. If this flag is set to
641 ``ask'', new host keys will be added to the user known host files
642 only after the user has confirmed that is what they really want
643 to do, and ssh will refuse to connect to hosts whose host key has
644 changed. The host keys of known hosts will be verified
645 automatically in all cases. The argument must be ``yes'',
646 ``no'', or ``ask''. The default is ``ask''.
647
648 TCPKeepAlive
649 Specifies whether the system should send TCP keepalive messages
650 to the other side. If they are sent, death of the connection or
651 crash of one of the machines will be properly noticed. However,
652 this means that connections will die if the route is down
653 temporarily, and some people find it annoying.
654
655 The default is ``yes'' (to send TCP keepalive messages), and the
656 client will notice if the network goes down or the remote host
657 dies. This is important in scripts, and many users want it too.
658
659 To disable TCP keepalive messages, the value should be set to
660 ``no''.
661
662 Tunnel Request tun(4) device forwarding between the client and the
663 server. The argument must be ``yes'', ``point-to-point'' (layer
664 3), ``ethernet'' (layer 2), or ``no''. Specifying ``yes''
665 requests the default tunnel mode, which is ``point-to-point''.
666 The default is ``no''.
667
668 TunnelDevice
669 Specifies the tun(4) devices to open on the client (local_tun)
670 and the server (remote_tun).
671
672 The argument must be local_tun[:remote_tun]. The devices may be
673 specified by numerical ID or the keyword ``any'', which uses the
674 next available tunnel device. If remote_tun is not specified, it
675 defaults to ``any''. The default is ``any:any''.
676
677 UsePrivilegedPort
678 Specifies whether to use a privileged port for outgoing
679 connections. The argument must be ``yes'' or ``no''. The
680 default is ``no''. If set to ``yes'', ssh(1) must be setuid
681 root. Note that this option must be set to ``yes'' for
682 RhostsRSAAuthentication with older servers.
683
684 User Specifies the user to log in as. This can be useful when a
685 different user name is used on different machines. This saves
686 the trouble of having to remember to give the user name on the
687 command line.
688
689 UserKnownHostsFile
690 Specifies one or more files to use for the user host key
691 database, separated by whitespace. The default is
692 ~/.ssh/known_hosts, ~/.ssh/known_hosts2.
693
694 VerifyHostKeyDNS
695 Specifies whether to verify the remote key using DNS and SSHFP
696 resource records. If this option is set to ``yes'', the client
697 will implicitly trust keys that match a secure fingerprint from
698 DNS. Insecure fingerprints will be handled as if this option was
699 set to ``ask''. If this option is set to ``ask'', information on
700 fingerprint match will be displayed, but the user will still need
701 to confirm new host keys according to the StrictHostKeyChecking
702 option. The argument must be ``yes'', ``no'', or ``ask''. The
703 default is ``no''. Note that this option applies to protocol
704 version 2 only.
705
706 See also VERIFYING HOST KEYS in ssh(1).
707
708 VisualHostKey
709 If this flag is set to ``yes'', an ASCII art representation of
710 the remote host key fingerprint is printed in addition to the hex
711 fingerprint string at login and for unknown host keys. If this
712 flag is set to ``no'', no fingerprint strings are printed at
713 login and only the hex fingerprint string will be printed for
714 unknown host keys. The default is ``no''.
715
716 XAuthLocation
717 Specifies the full pathname of the xauth(1) program. The default
718 is /usr/X11R6/bin/xauth.
719
720PATTERNS
721 A pattern consists of zero or more non-whitespace characters, `*' (a
722 wildcard that matches zero or more characters), or `?' (a wildcard that
723 matches exactly one character). For example, to specify a set of
724 declarations for any host in the ``.co.uk'' set of domains, the following
725 pattern could be used:
726
727 Host *.co.uk
728
729 The following pattern would match any host in the 192.168.0.[0-9] network
730 range:
731
732 Host 192.168.0.?
733
734 A pattern-list is a comma-separated list of patterns. Patterns within
735 pattern-lists may be negated by preceding them with an exclamation mark
736 (`!'). For example, to allow a key to be used from anywhere within an
737 organisation except from the ``dialup'' pool, the following entry (in
738 authorized_keys) could be used:
739
740 from="!*.dialup.example.com,*.example.com"
741
742FILES
743 ~/.ssh/config
744 This is the per-user configuration file. The format of this file
745 is described above. This file is used by the SSH client.
746 Because of the potential for abuse, this file must have strict
747 permissions: read/write for the user, and not accessible by
748 others.
749
750 /etc/ssh/ssh_config
751 Systemwide configuration file. This file provides defaults for
752 those values that are not specified in the user's configuration
753 file, and for those users who do not have a configuration file.
754 This file must be world-readable.
755
756SEE ALSO
757 ssh(1)
758
759AUTHORS
760 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
761 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
762 de Raadt and Dug Song removed many bugs, re-added newer features and
763 created OpenSSH. Markus Friedl contributed the support for SSH protocol
764 versions 1.5 and 2.0.
765
766OpenBSD 5.2 June 29, 2012 OpenBSD 5.2
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..35093337d
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,637 @@
1SSHD(8) OpenBSD System Manager's Manual SSHD(8)
2
3NAME
4 sshd - OpenSSH SSH daemon
5
6SYNOPSIS
7 sshd [-46DdeiqTt] [-b bits] [-C connection_spec]
8 [-c host_certificate_file] [-f config_file] [-g login_grace_time]
9 [-h host_key_file] [-k key_gen_time] [-o option] [-p port] [-u len]
10
11DESCRIPTION
12 sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these
13 programs replace rlogin(1) and rsh(1), and provide secure encrypted
14 communications between two untrusted hosts over an insecure network.
15
16 sshd listens for connections from clients. It is normally started at
17 boot from /etc/rc. It forks a new daemon for each incoming connection.
18 The forked daemons handle key exchange, encryption, authentication,
19 command execution, and data exchange.
20
21 sshd can be configured using command-line options or a configuration file
22 (by default sshd_config(5)); command-line options override values
23 specified in the configuration file. sshd rereads its configuration file
24 when it receives a hangup signal, SIGHUP, by executing itself with the
25 name and options it was started with, e.g. /usr/sbin/sshd.
26
27 The options are as follows:
28
29 -4 Forces sshd to use IPv4 addresses only.
30
31 -6 Forces sshd to use IPv6 addresses only.
32
33 -b bits
34 Specifies the number of bits in the ephemeral protocol version 1
35 server key (default 1024).
36
37 -C connection_spec
38 Specify the connection parameters to use for the -T extended test
39 mode. If provided, any Match directives in the configuration
40 file that would apply to the specified user, host, and address
41 will be set before the configuration is written to standard
42 output. The connection parameters are supplied as keyword=value
43 pairs. The keywords are ``user'', ``host'', ``laddr'',
44 ``lport'', and ``addr''. All are required and may be supplied in
45 any order, either with multiple -C options or as a comma-
46 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 When this option is specified, sshd will send the output to the
64 standard error instead of the system log.
65
66 -f config_file
67 Specifies the name of the configuration file. The default is
68 /etc/ssh/sshd_config. sshd refuses to start if there is no
69 configuration file.
70
71 -g login_grace_time
72 Gives the grace time for clients to authenticate themselves
73 (default 120 seconds). If the client fails to authenticate the
74 user within this many seconds, the server disconnects and exits.
75 A value of zero indicates no limit.
76
77 -h host_key_file
78 Specifies a file from which a host key is read. This option must
79 be given if sshd is not run as root (as the normal host key files
80 are normally not readable by anyone but root). The default is
81 /etc/ssh/ssh_host_key for protocol version 1, and
82 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key and
83 /etc/ssh/ssh_host_rsa_key for protocol version 2. It is possible
84 to have multiple host key files for the different protocol
85 versions and host key algorithms.
86
87 -i Specifies that sshd is being run from inetd(8). sshd is normally
88 not run from inetd because it needs to generate the server key
89 before it can respond to the client, and this may take tens of
90 seconds. Clients would have to wait too long if the key was
91 regenerated every time. However, with small key sizes (e.g. 512)
92 using sshd from inetd may be feasible.
93
94 -k key_gen_time
95 Specifies how often the ephemeral protocol version 1 server key
96 is regenerated (default 3600 seconds, or one hour). The
97 motivation for regenerating the key fairly often is that the key
98 is not stored anywhere, and after about an hour it becomes
99 impossible to recover the key for decrypting intercepted
100 communications even if the machine is cracked into or physically
101 seized. A value of zero indicates that the key will never be
102 regenerated.
103
104 -o option
105 Can be used to give options in the format used in the
106 configuration file. This is useful for specifying options for
107 which there is no separate command-line flag. For full details
108 of the options, and their values, see sshd_config(5).
109
110 -p port
111 Specifies the port on which the server listens for connections
112 (default 22). Multiple port options are permitted. Ports
113 specified in the configuration file with the Port option are
114 ignored when a command-line port is specified. Ports specified
115 using the ListenAddress option override command-line ports.
116
117 -q Quiet mode. Nothing is sent to the system log. Normally the
118 beginning, authentication, and termination of each connection is
119 logged.
120
121 -T Extended test mode. Check the validity of the configuration
122 file, output the effective configuration to stdout and then exit.
123 Optionally, Match rules may be applied by specifying the
124 connection parameters using one or more -C options.
125
126 -t Test mode. Only check the validity of the configuration file and
127 sanity of the keys. This is useful for updating sshd reliably as
128 configuration options may change.
129
130 -u len This option is used to specify the size of the field in the utmp
131 structure that holds the remote host name. If the resolved host
132 name is longer than len, the dotted decimal value will be used
133 instead. This allows hosts with very long host names that
134 overflow this field to still be uniquely identified. Specifying
135 -u0 indicates that only dotted decimal addresses should be put
136 into the utmp file. -u0 may also be used to prevent sshd from
137 making DNS requests unless the authentication mechanism or
138 configuration requires it. Authentication mechanisms that may
139 require DNS include RhostsRSAAuthentication,
140 HostbasedAuthentication, and using a from="pattern-list" option
141 in a key file. Configuration options that require DNS include
142 using a USER@HOST pattern in AllowUsers or DenyUsers.
143
144AUTHENTICATION
145 The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to
146 use protocol 2 only, though this can be changed via the Protocol option
147 in sshd_config(5). Protocol 2 supports DSA, ECDSA and RSA keys; protocol
148 1 only supports RSA keys. For both protocols, each host has a host-
149 specific key, normally 2048 bits, used to identify the host.
150
151 Forward security for protocol 1 is provided through an additional server
152 key, normally 768 bits, generated when the server starts. This key is
153 normally regenerated every hour if it has been used, and is never stored
154 on disk. Whenever a client connects, the daemon responds with its public
155 host and server keys. The client compares the RSA host key against its
156 own database to verify that it has not changed. The client then
157 generates a 256-bit random number. It encrypts this random number using
158 both the host key and the server key, and sends the encrypted number to
159 the server. Both sides then use this random number as a session key
160 which is used to encrypt all further communications in the session. The
161 rest of the session is encrypted using a conventional cipher, currently
162 Blowfish or 3DES, with 3DES being used by default. The client selects
163 the encryption algorithm to use from those offered by the server.
164
165 For protocol 2, forward security is provided through a Diffie-Hellman key
166 agreement. This key agreement results in a shared session key. The rest
167 of the session is encrypted using a symmetric cipher, currently 128-bit
168 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
169 client selects the encryption algorithm to use from those offered by the
170 server. Additionally, session integrity is provided through a
171 cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64,
172 hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512).
173
174 Finally, the server and the client enter an authentication dialog. The
175 client tries to authenticate itself using host-based authentication,
176 public key authentication, challenge-response authentication, or password
177 authentication.
178
179 Regardless of the authentication type, the account is checked to ensure
180 that it is accessible. An account is not accessible if it is locked,
181 listed in DenyUsers or its group is listed in DenyGroups . The
182 definition of a locked account is system dependant. Some platforms have
183 their own account database (eg AIX) and some modify the passwd field (
184 `*LK*' on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on
185 Tru64, a leading `*LOCKED*' on FreeBSD and a leading `!' on most
186 Linuxes). If there is a requirement to disable password authentication
187 for the account while allowing still public-key, then the passwd field
188 should be set to something other than these values (eg `NP' or `*NP*' ).
189
190 If the client successfully authenticates itself, a dialog for preparing
191 the session is entered. At this time the client may request things like
192 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP
193 connections, or forwarding the authentication agent connection over the
194 secure channel.
195
196 After this, the client either requests a shell or execution of a command.
197 The sides then enter session mode. In this mode, either side may send
198 data at any time, and such data is forwarded to/from the shell or command
199 on the server side, and the user terminal in the client side.
200
201 When the user program terminates and all forwarded X11 and other
202 connections have been closed, the server sends command exit status to the
203 client, and both sides exit.
204
205LOGIN PROCESS
206 When a user successfully logs in, sshd does the following:
207
208 1. If the login is on a tty, and no command has been specified,
209 prints last login time and /etc/motd (unless prevented in the
210 configuration file or by ~/.hushlogin; see the FILES section).
211
212 2. If the login is on a tty, records login time.
213
214 3. Checks /etc/nologin; if it exists, prints contents and quits
215 (unless root).
216
217 4. Changes to run with normal user privileges.
218
219 5. Sets up basic environment.
220
221 6. Reads the file ~/.ssh/environment, if it exists, and users are
222 allowed to change their environment. See the
223 PermitUserEnvironment option in sshd_config(5).
224
225 7. Changes to user's home directory.
226
227 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists,
228 runs it; otherwise runs xauth. The ``rc'' files are given the
229 X11 authentication protocol and cookie in standard input. See
230 SSHRC, below.
231
232 9. Runs user's shell or command.
233
234SSHRC
235 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
236 files but before starting the user's shell or command. It must not
237 produce any output on stdout; stderr must be used instead. If X11
238 forwarding is in use, it will receive the "proto cookie" pair in its
239 standard input (and DISPLAY in its environment). The script must call
240 xauth(1) because sshd will not run xauth automatically to add X11
241 cookies.
242
243 The primary purpose of this file is to run any initialization routines
244 which may be needed before the user's home directory becomes accessible;
245 AFS is a particular example of such an environment.
246
247 This file will probably contain some initialization code followed by
248 something similar to:
249
250 if read proto cookie && [ -n "$DISPLAY" ]; then
251 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
252 # X11UseLocalhost=yes
253 echo add unix:`echo $DISPLAY |
254 cut -c11-` $proto $cookie
255 else
256 # X11UseLocalhost=no
257 echo add $DISPLAY $proto $cookie
258 fi | xauth -q -
259 fi
260
261 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
262 exist either, xauth is used to add the cookie.
263
264AUTHORIZED_KEYS FILE FORMAT
265 AuthorizedKeysFile specifies the files containing public keys for public
266 key authentication; if none is specified, the default is
267 ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the
268 file contains one key (empty lines and lines starting with a `#' are
269 ignored as comments). Protocol 1 public keys consist of the following
270 space-separated fields: options, bits, exponent, modulus, comment.
271 Protocol 2 public key consist of: options, keytype, base64-encoded key,
272 comment. The options field is optional; its presence is determined by
273 whether the line starts with a number or not (the options field never
274 starts with a number). The bits, exponent, modulus, and comment fields
275 give the RSA key for protocol version 1; the comment field is not used
276 for anything (but may be convenient for the user to identify the key).
277 For protocol version 2 the keytype is ``ecdsa-sha2-nistp256'',
278 ``ecdsa-sha2-nistp384'', ``ecdsa-sha2-nistp521'', ``ssh-dss'' or
279 ``ssh-rsa''.
280
281 Note that lines in this file are usually several hundred bytes long
282 (because of the size of the public key encoding) up to a limit of 8
283 kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
284 kilobits. You don't want to type them in; instead, copy the
285 identity.pub, id_dsa.pub, id_ecdsa.pub, or the id_rsa.pub file and edit
286 it.
287
288 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
289 2 keys of 768 bits.
290
291 The options (if present) consist of comma-separated option
292 specifications. No spaces are permitted, except within double quotes.
293 The following option specifications are supported (note that option
294 keywords are case-insensitive):
295
296 cert-authority
297 Specifies that the listed key is a certification authority (CA)
298 that is trusted to validate signed certificates for user
299 authentication.
300
301 Certificates may encode access restrictions similar to these key
302 options. If both certificate restrictions and key options are
303 present, the most restrictive union of the two is applied.
304
305 command="command"
306 Specifies that the command is executed whenever this key is used
307 for authentication. The command supplied by the user (if any) is
308 ignored. The command is run on a pty if the client requests a
309 pty; otherwise it is run without a tty. If an 8-bit clean
310 channel is required, one must not request a pty or should specify
311 no-pty. A quote may be included in the command by quoting it
312 with a backslash. This option might be useful to restrict
313 certain public keys to perform just a specific operation. An
314 example might be a key that permits remote backups but nothing
315 else. Note that the client may specify TCP and/or X11 forwarding
316 unless they are explicitly prohibited. The command originally
317 supplied by the client is available in the SSH_ORIGINAL_COMMAND
318 environment variable. Note that this option applies to shell,
319 command or subsystem execution. Also note that this command may
320 be superseded by either a sshd_config(5) ForceCommand directive
321 or a command embedded in a certificate.
322
323 environment="NAME=value"
324 Specifies that the string is to be added to the environment when
325 logging in using this key. Environment variables set this way
326 override other default environment values. Multiple options of
327 this type are permitted. Environment processing is disabled by
328 default and is controlled via the PermitUserEnvironment option.
329 This option is automatically disabled if UseLogin is enabled.
330
331 from="pattern-list"
332 Specifies that in addition to public key authentication, either
333 the canonical name of the remote host or its IP address must be
334 present in the comma-separated list of patterns. See PATTERNS in
335 ssh_config(5) for more information on patterns.
336
337 In addition to the wildcard matching that may be applied to
338 hostnames or addresses, a from stanza may match IP addresses
339 using CIDR address/masklen notation.
340
341 The purpose of this option is to optionally increase security:
342 public key authentication by itself does not trust the network or
343 name servers or anything (but the key); however, if somebody
344 somehow steals the key, the key permits an intruder to log in
345 from anywhere in the world. This additional option makes using a
346 stolen key more difficult (name servers and/or routers would have
347 to be compromised in addition to just the key).
348
349 no-agent-forwarding
350 Forbids authentication agent forwarding when this key is used for
351 authentication.
352
353 no-port-forwarding
354 Forbids TCP forwarding when this key is used for authentication.
355 Any port forward requests by the client will return an error.
356 This might be used, e.g. in connection with the command option.
357
358 no-pty Prevents tty allocation (a request to allocate a pty will fail).
359
360 no-user-rc
361 Disables execution of ~/.ssh/rc.
362
363 no-X11-forwarding
364 Forbids X11 forwarding when this key is used for authentication.
365 Any X11 forward requests by the client will return an error.
366
367 permitopen="host:port"
368 Limit local ``ssh -L'' port forwarding such that it may only
369 connect to the specified host and port. IPv6 addresses can be
370 specified by enclosing the address in square brackets. Multiple
371 permitopen options may be applied separated by commas. No
372 pattern matching is performed on the specified hostnames, they
373 must be literal domains or addresses. A port specification of *
374 matches any port.
375
376 principals="principals"
377 On a cert-authority line, specifies allowed principals for
378 certificate authentication as a comma-separated list. At least
379 one name from the list must appear in the certificate's list of
380 principals for the certificate to be accepted. This option is
381 ignored for keys that are not marked as trusted certificate
382 signers using the cert-authority option.
383
384 tunnel="n"
385 Force a tun(4) device on the server. Without this option, the
386 next available device will be used if the client requests a
387 tunnel.
388
389 An example authorized_keys file:
390
391 # Comments allowed at start of line
392 ssh-rsa AAAAB3Nza...LiPk== user@example.net
393 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
394 AAAAB2...19Q== john@example.net
395 command="dump /home",no-pty,no-port-forwarding ssh-dss
396 AAAAC3...51R== example.net
397 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
398 AAAAB5...21S==
399 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
400 jane@example.net
401
402SSH_KNOWN_HOSTS FILE FORMAT
403 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
404 public keys for all known hosts. The global file should be prepared by
405 the administrator (optional), and the per-user file is maintained
406 automatically: whenever the user connects from an unknown host, its key
407 is added to the per-user file.
408
409 Each line in these files contains the following fields: markers
410 (optional), hostnames, bits, exponent, modulus, comment. The fields are
411 separated by spaces.
412
413 The marker is optional, but if it is present then it must be one of
414 ``@cert-authority'', to indicate that the line contains a certification
415 authority (CA) key, or ``@revoked'', to indicate that the key contained
416 on the line is revoked and must not ever be accepted. Only one marker
417 should be used on a key line.
418
419 Hostnames is a comma-separated list of patterns (`*' and `?' act as
420 wildcards); each pattern in turn is matched against the canonical host
421 name (when authenticating a client) or against the user-supplied name
422 (when authenticating a server). A pattern may also be preceded by `!' to
423 indicate negation: if the host name matches a negated pattern, it is not
424 accepted (by that line) even if it matched another pattern on the line.
425 A hostname or address may optionally be enclosed within `[' and `]'
426 brackets then followed by `:' and a non-standard port number.
427
428 Alternately, hostnames may be stored in a hashed form which hides host
429 names and addresses should the file's contents be disclosed. Hashed
430 hostnames start with a `|' character. Only one hashed hostname may
431 appear on a single line and none of the above negation or wildcard
432 operators may be applied.
433
434 Bits, exponent, and modulus are taken directly from the RSA host key;
435 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
436 optional comment field continues to the end of the line, and is not used.
437
438 Lines starting with `#' and empty lines are ignored as comments.
439
440 When performing host authentication, authentication is accepted if any
441 matching line has the proper key; either one that matches exactly or, if
442 the server has presented a certificate for authentication, the key of the
443 certification authority that signed the certificate. For a key to be
444 trusted as a certification authority, it must use the ``@cert-authority''
445 marker described above.
446
447 The known hosts file also provides a facility to mark keys as revoked,
448 for example when it is known that the associated private key has been
449 stolen. Revoked keys are specified by including the ``@revoked'' marker
450 at the beginning of the key line, and are never accepted for
451 authentication or as certification authorities, but instead will produce
452 a warning from ssh(1) when they are encountered.
453
454 It is permissible (but not recommended) to have several lines or
455 different host keys for the same names. This will inevitably happen when
456 short forms of host names from different domains are put in the file. It
457 is possible that the files contain conflicting information;
458 authentication is accepted if valid information can be found from either
459 file.
460
461 Note that the lines in these files are typically hundreds of characters
462 long, and you definitely don't want to type in the host keys by hand.
463 Rather, generate them by a script, ssh-keyscan(1) or by taking
464 /etc/ssh/ssh_host_key.pub and adding the host names at the front.
465 ssh-keygen(1) also offers some basic automated editing for
466 ~/.ssh/known_hosts including removing hosts matching a host name and
467 converting all host names to their hashed representations.
468
469 An example ssh_known_hosts file:
470
471 # Comments allowed at start of line
472 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
473 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
474 # A hashed hostname
475 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
476 AAAA1234.....=
477 # A revoked key
478 @revoked * ssh-rsa AAAAB5W...
479 # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org
480 @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W...
481
482FILES
483 ~/.hushlogin
484 This file is used to suppress printing the last login time and
485 /etc/motd, if PrintLastLog and PrintMotd, respectively, are
486 enabled. It does not suppress printing of the banner specified
487 by Banner.
488
489 ~/.rhosts
490 This file is used for host-based authentication (see ssh(1) for
491 more information). On some machines this file may need to be
492 world-readable if the user's home directory is on an NFS
493 partition, because sshd reads it as root. Additionally, this
494 file must be owned by the user, and must not have write
495 permissions for anyone else. The recommended permission for most
496 machines is read/write for the user, and not accessible by
497 others.
498
499 ~/.shosts
500 This file is used in exactly the same way as .rhosts, but allows
501 host-based authentication without permitting login with
502 rlogin/rsh.
503
504 ~/.ssh/
505 This directory is the default location for all user-specific
506 configuration and authentication information. There is no
507 general requirement to keep the entire contents of this directory
508 secret, but the recommended permissions are read/write/execute
509 for the user, and not accessible by others.
510
511 ~/.ssh/authorized_keys
512 Lists the public keys (DSA/ECDSA/RSA) that can be used for
513 logging in as this user. The format of this file is described
514 above. The content of the file is not highly sensitive, but the
515 recommended permissions are read/write for the user, and not
516 accessible by others.
517
518 If this file, the ~/.ssh directory, or the user's home directory
519 are writable by other users, then the file could be modified or
520 replaced by unauthorized users. In this case, sshd will not
521 allow it to be used unless the StrictModes option has been set to
522 ``no''.
523
524 ~/.ssh/environment
525 This file is read into the environment at login (if it exists).
526 It can only contain empty lines, comment lines (that start with
527 `#'), and assignment lines of the form name=value. The file
528 should be writable only by the user; it need not be readable by
529 anyone else. Environment processing is disabled by default and
530 is controlled via the PermitUserEnvironment option.
531
532 ~/.ssh/known_hosts
533 Contains a list of host keys for all hosts the user has logged
534 into that are not already in the systemwide list of known host
535 keys. The format of this file is described above. This file
536 should be writable only by root/the owner and can, but need not
537 be, world-readable.
538
539 ~/.ssh/rc
540 Contains initialization routines to be run before the user's home
541 directory becomes accessible. This file should be writable only
542 by the user, and need not be readable by anyone else.
543
544 /etc/hosts.allow
545 /etc/hosts.deny
546 Access controls that should be enforced by tcp-wrappers are
547 defined here. Further details are described in hosts_access(5).
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_rsa_key
575 These files contain the private parts of the host keys. These
576 files should only be owned by root, readable only by root, and
577 not accessible to others. Note that sshd does not start if these
578 files are group/world-accessible.
579
580 /etc/ssh/ssh_host_key.pub
581 /etc/ssh/ssh_host_dsa_key.pub
582 /etc/ssh/ssh_host_ecdsa_key.pub
583 /etc/ssh/ssh_host_rsa_key.pub
584 These files contain the public parts of the host keys. These
585 files should be world-readable but writable only by root. Their
586 contents should match the respective private parts. These files
587 are not really used for anything; they are provided for the
588 convenience of the user so their contents can be copied to known
589 hosts files. These files are created using ssh-keygen(1).
590
591 /etc/ssh/ssh_known_hosts
592 Systemwide list of known host keys. This file should be prepared
593 by the system administrator to contain the public host keys of
594 all machines in the organization. The format of this file is
595 described above. This file should be writable only by root/the
596 owner and should be world-readable.
597
598 /etc/ssh/sshd_config
599 Contains configuration data for sshd. The file format and
600 configuration options are described in sshd_config(5).
601
602 /etc/ssh/sshrc
603 Similar to ~/.ssh/rc, it can be used to specify machine-specific
604 login-time initializations globally. This file should be
605 writable only by root, and should be world-readable.
606
607 /var/empty
608 chroot(2) directory used by sshd during privilege separation in
609 the pre-authentication phase. The directory should not contain
610 any files and must be owned by root and not group or world-
611 writable.
612
613 /var/run/sshd.pid
614 Contains the process ID of the sshd listening for connections (if
615 there are several daemons running concurrently for different
616 ports, this contains the process ID of the one started last).
617 The content of this file is not sensitive; it can be world-
618 readable.
619
620SEE ALSO
621 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
622 ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5),
623 sshd_config(5), inetd(8), sftp-server(8)
624
625AUTHORS
626 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
627 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
628 de Raadt and Dug Song removed many bugs, re-added newer features and
629 created OpenSSH. Markus Friedl contributed the support for SSH protocol
630 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
631 for privilege separation.
632
633CAVEATS
634 System security is not improved unless rshd, rlogind, and rexecd are
635 disabled (thus completely disabling rlogin and rsh into the machine).
636
637OpenBSD 5.2 June 18, 2012 OpenBSD 5.2
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..d9c87b7a0
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,725 @@
1SSHD_CONFIG(5) OpenBSD Programmer's Manual SSHD_CONFIG(5)
2
3NAME
4 sshd_config - 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 `#' 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. Variables
24 are specified by name, which may contain the wildcard characters
25 `*' and `?'. Multiple environment variables may be separated by
26 whitespace or spread across multiple AcceptEnv directives. Be
27 warned that some environment variables could be used to bypass
28 restricted user environments. For this reason, care should be
29 taken in the use of this directive. The default is not to accept
30 any environment variables.
31
32 AddressFamily
33 Specifies which address family should be used by sshd(8). Valid
34 arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6''
35 (use IPv6 only). The default is ``any''.
36
37 AllowAgentForwarding
38 Specifies whether ssh-agent(1) forwarding is permitted. The
39 default is ``yes''. Note that disabling agent forwarding does
40 not improve security unless users are also denied shell access,
41 as they can always install their own forwarders.
42
43 AllowGroups
44 This keyword can be followed by a list of group name patterns,
45 separated by spaces. If specified, login is allowed only for
46 users whose primary group or supplementary group list matches one
47 of the patterns. Only group names are valid; a numerical group
48 ID is not recognized. By default, login is allowed for all
49 groups. The allow/deny directives are processed in the following
50 order: DenyUsers, AllowUsers, DenyGroups, and finally
51 AllowGroups.
52
53 See PATTERNS in ssh_config(5) for more information on patterns.
54
55 AllowTcpForwarding
56 Specifies whether TCP forwarding is permitted. The default is
57 ``yes''. Note that disabling TCP forwarding does not improve
58 security unless users are also denied shell access, as they can
59 always install their own forwarders.
60
61 AllowUsers
62 This keyword can be followed by a list of user name patterns,
63 separated by spaces. If specified, login is allowed only for
64 user names that match one of the patterns. Only user names are
65 valid; a numerical user ID is not recognized. By default, login
66 is allowed for all users. If the pattern takes the form
67 USER@HOST then USER and HOST are separately checked, restricting
68 logins to particular users from particular hosts. The allow/deny
69 directives are processed in the following order: DenyUsers,
70 AllowUsers, DenyGroups, and finally AllowGroups.
71
72 See PATTERNS in ssh_config(5) for more information on patterns.
73
74 AuthorizedKeysFile
75 Specifies the file that contains the public keys that can be used
76 for user authentication. The format is described in the
77 AUTHORIZED_KEYS FILE FORMAT section of sshd(8).
78 AuthorizedKeysFile may contain tokens of the form %T which are
79 substituted during connection setup. The following tokens are
80 defined: %% is replaced by a literal '%', %h is replaced by the
81 home directory of the user being authenticated, and %u is
82 replaced by the username of that user. After expansion,
83 AuthorizedKeysFile is taken to be an absolute path or one
84 relative to the user's home directory. Multiple files may be
85 listed, separated by whitespace. The default is
86 ``.ssh/authorized_keys .ssh/authorized_keys2''.
87
88 AuthorizedPrincipalsFile
89 Specifies a file that lists principal names that are accepted for
90 certificate authentication. When using certificates signed by a
91 key listed in TrustedUserCAKeys, this file lists names, one of
92 which must appear in the certificate for it to be accepted for
93 authentication. Names are listed one per line preceded by key
94 options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)).
95 Empty lines and comments starting with `#' are ignored.
96
97 AuthorizedPrincipalsFile may contain tokens of the form %T which
98 are substituted during connection setup. The following tokens
99 are defined: %% is replaced by a literal '%', %h is replaced by
100 the home directory of the user being authenticated, and %u is
101 replaced by the username of that user. After expansion,
102 AuthorizedPrincipalsFile is taken to be an absolute path or one
103 relative to the user's home directory.
104
105 The default is ``none'', i.e. not to use a principals file - in
106 this case, the username of the user must appear in a
107 certificate's principals list for it to be accepted. Note that
108 AuthorizedPrincipalsFile is only used when authentication
109 proceeds using a CA listed in TrustedUserCAKeys and is not
110 consulted for certification authorities trusted via
111 ~/.ssh/authorized_keys, though the principals= key option offers
112 a similar facility (see sshd(8) for details).
113
114 Banner The contents of the specified file are sent to the remote user
115 before authentication is allowed. If the argument is ``none''
116 then no banner is displayed. This option is only available for
117 protocol version 2. By default, no banner is displayed.
118
119 ChallengeResponseAuthentication
120 Specifies whether challenge-response authentication is allowed
121 (e.g. via PAM or though authentication styles supported in
122 login.conf(5)) The default is ``yes''.
123
124 ChrootDirectory
125 Specifies the pathname of a directory to chroot(2) to after
126 authentication. All components of the pathname must be root-
127 owned directories that are not writable by any other user or
128 group. After the chroot, sshd(8) changes the working directory
129 to the user's home directory.
130
131 The pathname may contain the following tokens that are expanded
132 at runtime once the connecting user has been authenticated: %% is
133 replaced by a literal '%', %h is replaced by the home directory
134 of the user being authenticated, and %u is replaced by the
135 username of that user.
136
137 The ChrootDirectory must contain the necessary files and
138 directories to support the user's session. For an interactive
139 session this requires at least a shell, typically sh(1), and
140 basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4),
141 stderr(4), arandom(4) and tty(4) devices. For file transfer
142 sessions using ``sftp'', no additional configuration of the
143 environment is necessary if the in-process sftp server is used,
144 though sessions which use logging do require /dev/log inside the
145 chroot directory (see sftp-server(8) for details).
146
147 The default is not to chroot(2).
148
149 Ciphers
150 Specifies the ciphers allowed for protocol version 2. Multiple
151 ciphers must be comma-separated. The supported ciphers are
152 ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'',
153 ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'',
154 ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and
155 ``cast128-cbc''. The default is:
156
157 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
158 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
159 aes256-cbc,arcfour
160
161 ClientAliveCountMax
162 Sets the number of client alive messages (see below) which may be
163 sent without sshd(8) receiving any messages back from the client.
164 If this threshold is reached while client alive messages are
165 being sent, sshd will disconnect the client, terminating the
166 session. It is important to note that the use of client alive
167 messages is very different from TCPKeepAlive (below). The client
168 alive messages are sent through the encrypted channel and
169 therefore will not be spoofable. The TCP keepalive option
170 enabled by TCPKeepAlive is spoofable. The client alive mechanism
171 is valuable when the client or server depend on knowing when a
172 connection has become inactive.
173
174 The default value is 3. If ClientAliveInterval (see below) is
175 set to 15, and ClientAliveCountMax is left at the default,
176 unresponsive SSH clients will be disconnected after approximately
177 45 seconds. This option applies to protocol version 2 only.
178
179 ClientAliveInterval
180 Sets a timeout interval in seconds after which if no data has
181 been received from the client, sshd(8) will send a message
182 through the encrypted channel to request a response from the
183 client. The default is 0, indicating that these messages will
184 not be sent to the client. This option applies to protocol
185 version 2 only.
186
187 Compression
188 Specifies whether compression is allowed, or delayed until the
189 user has authenticated successfully. The argument must be
190 ``yes'', ``delayed'', or ``no''. The default is ``delayed''.
191
192 DenyGroups
193 This keyword can be followed by a list of group name patterns,
194 separated by spaces. Login is disallowed for users whose primary
195 group or supplementary group list matches one of the patterns.
196 Only group names are valid; a numerical group ID is not
197 recognized. By default, login is allowed for all groups. The
198 allow/deny directives are processed in the following order:
199 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
200
201 See PATTERNS in ssh_config(5) for more information on patterns.
202
203 DenyUsers
204 This keyword can be followed by a list of user name patterns,
205 separated by spaces. Login is disallowed for user names that
206 match one of the patterns. Only user names are valid; a
207 numerical user ID is not recognized. By default, login is
208 allowed for all users. If the pattern takes the form USER@HOST
209 then USER and HOST are separately checked, restricting logins to
210 particular users from particular hosts. The allow/deny
211 directives are processed in the following order: DenyUsers,
212 AllowUsers, DenyGroups, and finally AllowGroups.
213
214 See PATTERNS in ssh_config(5) for more information on patterns.
215
216 ForceCommand
217 Forces the execution of the command specified by ForceCommand,
218 ignoring any command supplied by the client and ~/.ssh/rc if
219 present. The command is invoked by using the user's login shell
220 with the -c option. This applies to shell, command, or subsystem
221 execution. It is most useful inside a Match block. The command
222 originally supplied by the client is available in the
223 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
224 of ``internal-sftp'' will force the use of an in-process sftp
225 server that requires no support files when used with
226 ChrootDirectory.
227
228 GatewayPorts
229 Specifies whether remote hosts are allowed to connect to ports
230 forwarded for the client. By default, sshd(8) binds remote port
231 forwardings to the loopback address. This prevents other remote
232 hosts from connecting to forwarded ports. GatewayPorts can be
233 used to specify that sshd should allow remote port forwardings to
234 bind to non-loopback addresses, thus allowing other hosts to
235 connect. The argument may be ``no'' to force remote port
236 forwardings to be available to the local host only, ``yes'' to
237 force remote port forwardings to bind to the wildcard address, or
238 ``clientspecified'' to allow the client to select the address to
239 which the forwarding is bound. The default is ``no''.
240
241 GSSAPIAuthentication
242 Specifies whether user authentication based on GSSAPI is allowed.
243 The default is ``no''. Note that this option applies to protocol
244 version 2 only.
245
246 GSSAPICleanupCredentials
247 Specifies whether to automatically destroy the user's credentials
248 cache on logout. The default is ``yes''. Note that this option
249 applies to protocol version 2 only.
250
251 HostbasedAuthentication
252 Specifies whether rhosts or /etc/hosts.equiv authentication
253 together with successful public key client host authentication is
254 allowed (host-based authentication). This option is similar to
255 RhostsRSAAuthentication and applies to protocol version 2 only.
256 The default is ``no''.
257
258 HostbasedUsesNameFromPacketOnly
259 Specifies whether or not the server will attempt to perform a
260 reverse name lookup when matching the name in the ~/.shosts,
261 ~/.rhosts, and /etc/hosts.equiv files during
262 HostbasedAuthentication. A setting of ``yes'' means that sshd(8)
263 uses the name supplied by the client rather than attempting to
264 resolve the name from the TCP connection itself. The default is
265 ``no''.
266
267 HostCertificate
268 Specifies a file containing a public host certificate. The
269 certificate's public key must match a private host key already
270 specified by HostKey. The default behaviour of sshd(8) is not to
271 load any certificates.
272
273 HostKey
274 Specifies a file containing a private host key used by SSH. The
275 default is /etc/ssh/ssh_host_key for protocol version 1, and
276 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key and
277 /etc/ssh/ssh_host_rsa_key for protocol version 2. Note that
278 sshd(8) will refuse to use a file if it is group/world-
279 accessible. It is possible to have multiple host key files.
280 ``rsa1'' keys are used for version 1 and ``dsa'', ``ecdsa'' or
281 ``rsa'' are used for version 2 of the SSH protocol.
282
283 IgnoreRhosts
284 Specifies that .rhosts and .shosts files will not be used in
285 RhostsRSAAuthentication or HostbasedAuthentication.
286
287 /etc/hosts.equiv and /etc/shosts.equiv are still used. The
288 default is ``yes''.
289
290 IgnoreUserKnownHosts
291 Specifies whether sshd(8) should ignore the user's
292 ~/.ssh/known_hosts during RhostsRSAAuthentication or
293 HostbasedAuthentication. The default is ``no''.
294
295 IPQoS Specifies the IPv4 type-of-service or DSCP class for the
296 connection. Accepted values are ``af11'', ``af12'', ``af13'',
297 ``af21'', ``af22'', ``af23'', ``af31'', ``af32'', ``af33'',
298 ``af41'', ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'',
299 ``cs4'', ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'',
300 ``throughput'', ``reliability'', or a numeric value. This option
301 may take one or two arguments, separated by whitespace. If one
302 argument is specified, it is used as the packet class
303 unconditionally. If two values are specified, the first is
304 automatically selected for interactive sessions and the second
305 for non-interactive sessions. The default is ``lowdelay'' for
306 interactive sessions and ``throughput'' for non-interactive
307 sessions.
308
309 KerberosAuthentication
310 Specifies whether the password provided by the user for
311 PasswordAuthentication will be validated through the Kerberos
312 KDC. To use this option, the server needs a Kerberos servtab
313 which allows the verification of the KDC's identity. The default
314 is ``no''.
315
316 KerberosGetAFSToken
317 If AFS is active and the user has a Kerberos 5 TGT, attempt to
318 acquire an AFS token before accessing the user's home directory.
319 The default is ``no''.
320
321 KerberosOrLocalPasswd
322 If password authentication through Kerberos fails then the
323 password will be validated via any additional local mechanism
324 such as /etc/passwd. The default is ``yes''.
325
326 KerberosTicketCleanup
327 Specifies whether to automatically destroy the user's ticket
328 cache file on logout. The default is ``yes''.
329
330 KexAlgorithms
331 Specifies the available KEX (Key Exchange) algorithms. Multiple
332 algorithms must be comma-separated. The default is
333 ``ecdh-sha2-nistp256'', ``ecdh-sha2-nistp384'',
334 ``ecdh-sha2-nistp521'', ``diffie-hellman-group-exchange-sha256'',
335 ``diffie-hellman-group-exchange-sha1'',
336 ``diffie-hellman-group14-sha1'', ``diffie-hellman-group1-sha1''.
337
338 KeyRegenerationInterval
339 In protocol version 1, the ephemeral server key is automatically
340 regenerated after this many seconds (if it has been used). The
341 purpose of regeneration is to prevent decrypting captured
342 sessions by later breaking into the machine and stealing the
343 keys. The key is never stored anywhere. If the value is 0, the
344 key is never regenerated. The default is 3600 (seconds).
345
346 ListenAddress
347 Specifies the local addresses sshd(8) should listen on. The
348 following forms may be used:
349
350 ListenAddress host|IPv4_addr|IPv6_addr
351 ListenAddress host|IPv4_addr:port
352 ListenAddress [host|IPv6_addr]:port
353
354 If port is not specified, sshd will listen on the address and all
355 prior Port options specified. The default is to listen on all
356 local addresses. Multiple ListenAddress options are permitted.
357 Additionally, any Port options must precede this option for non-
358 port qualified addresses.
359
360 LoginGraceTime
361 The server disconnects after this time if the user has not
362 successfully logged in. If the value is 0, there is no time
363 limit. The default is 120 seconds.
364
365 LogLevel
366 Gives the verbosity level that is used when logging messages from
367 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
368 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
369 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
370 higher levels of debugging output. Logging with a DEBUG level
371 violates the privacy of users and is not recommended.
372
373 MACs Specifies the available MAC (message authentication code)
374 algorithms. The MAC algorithm is used in protocol version 2 for
375 data integrity protection. Multiple algorithms must be comma-
376 separated. The default is:
377
378 hmac-md5,hmac-sha1,umac-64@openssh.com,
379 hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,
380 hmac-sha1-96,hmac-md5-96
381
382 Match Introduces a conditional block. If all of the criteria on the
383 Match line are satisfied, the keywords on the following lines
384 override those set in the global section of the config file,
385 until either another Match line or the end of the file.
386
387 The arguments to Match are one or more criteria-pattern pairs.
388 The available criteria are User, Group, Host, LocalAddress,
389 LocalPort, and Address. The match patterns may consist of single
390 entries or comma-separated lists and may use the wildcard and
391 negation operators described in the PATTERNS section of
392 ssh_config(5).
393
394 The patterns in an Address criteria may additionally contain
395 addresses to match in CIDR address/masklen format, e.g.
396 ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
397 length provided must be consistent with the address - it is an
398 error to specify a mask length that is too long for the address
399 or one with bits set in this host portion of the address. For
400 example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
401
402 Only a subset of keywords may be used on the lines following a
403 Match keyword. Available keywords are AcceptEnv,
404 AllowAgentForwarding, AllowGroups, AllowTcpForwarding,
405 AllowUsers, AuthorizedKeysFile, AuthorizedPrincipalsFile, Banner,
406 ChrootDirectory, DenyGroups, DenyUsers, ForceCommand,
407 GatewayPorts, GSSAPIAuthentication, HostbasedAuthentication,
408 HostbasedUsesNameFromPacketOnly, KbdInteractiveAuthentication,
409 KerberosAuthentication, MaxAuthTries, MaxSessions,
410 PasswordAuthentication, PermitEmptyPasswords, PermitOpen,
411 PermitRootLogin, PermitTunnel, PubkeyAuthentication,
412 RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset,
413 X11Forwarding and X11UseLocalHost.
414
415 MaxAuthTries
416 Specifies the maximum number of authentication attempts permitted
417 per connection. Once the number of failures reaches half this
418 value, additional failures are logged. The default is 6.
419
420 MaxSessions
421 Specifies the maximum number of open sessions permitted per
422 network connection. The default is 10.
423
424 MaxStartups
425 Specifies the maximum number of concurrent unauthenticated
426 connections to the SSH daemon. Additional connections will be
427 dropped until authentication succeeds or the LoginGraceTime
428 expires for a connection. The default is 10.
429
430 Alternatively, random early drop can be enabled by specifying the
431 three colon separated values ``start:rate:full'' (e.g.
432 "10:30:60"). sshd(8) will refuse connection attempts with a
433 probability of ``rate/100'' (30%) if there are currently
434 ``start'' (10) unauthenticated connections. The probability
435 increases linearly and all connection attempts are refused if the
436 number of unauthenticated connections reaches ``full'' (60).
437
438 PasswordAuthentication
439 Specifies whether password authentication is allowed. The
440 default is ``yes''.
441
442 PermitEmptyPasswords
443 When password authentication is allowed, it specifies whether the
444 server allows login to accounts with empty password strings. The
445 default is ``no''.
446
447 PermitOpen
448 Specifies the destinations to which TCP port forwarding is
449 permitted. The forwarding specification must be one of the
450 following forms:
451
452 PermitOpen host:port
453 PermitOpen IPv4_addr:port
454 PermitOpen [IPv6_addr]:port
455
456 Multiple forwards may be specified by separating them with
457 whitespace. An argument of ``any'' can be used to remove all
458 restrictions and permit any forwarding requests. An argument of
459 ``none'' can be used to prohibit all forwarding requests. By
460 default all port forwarding requests are permitted.
461
462 PermitRootLogin
463 Specifies whether root can log in using ssh(1). The argument
464 must be ``yes'', ``without-password'', ``forced-commands-only'',
465 or ``no''. The default is ``yes''.
466
467 If this option is set to ``without-password'', password
468 authentication is disabled for root.
469
470 If this option is set to ``forced-commands-only'', root login
471 with public key authentication will be allowed, but only if the
472 command option has been specified (which may be useful for taking
473 remote backups even if root login is normally not allowed). All
474 other authentication methods are disabled for root.
475
476 If this option is set to ``no'', root is not allowed to log in.
477
478 PermitTunnel
479 Specifies whether tun(4) device forwarding is allowed. The
480 argument must be ``yes'', ``point-to-point'' (layer 3),
481 ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' permits
482 both ``point-to-point'' and ``ethernet''. The default is ``no''.
483
484 PermitUserEnvironment
485 Specifies whether ~/.ssh/environment and environment= options in
486 ~/.ssh/authorized_keys are processed by sshd(8). The default is
487 ``no''. Enabling environment processing may enable users to
488 bypass access restrictions in some configurations using
489 mechanisms such as LD_PRELOAD.
490
491 PidFile
492 Specifies the file that contains the process ID of the SSH
493 daemon. The default is /var/run/sshd.pid.
494
495 Port Specifies the port number that sshd(8) listens on. The default
496 is 22. Multiple options of this type are permitted. See also
497 ListenAddress.
498
499 PrintLastLog
500 Specifies whether sshd(8) should print the date and time of the
501 last user login when a user logs in interactively. The default
502 is ``yes''.
503
504 PrintMotd
505 Specifies whether sshd(8) should print /etc/motd when a user logs
506 in interactively. (On some systems it is also printed by the
507 shell, /etc/profile, or equivalent.) The default is ``yes''.
508
509 Protocol
510 Specifies the protocol versions sshd(8) supports. The possible
511 values are `1' and `2'. Multiple versions must be comma-
512 separated. The default is `2'. Note that the order of the
513 protocol list does not indicate preference, because the client
514 selects among multiple protocol versions offered by the server.
515 Specifying ``2,1'' is identical to ``1,2''.
516
517 PubkeyAuthentication
518 Specifies whether public key authentication is allowed. The
519 default is ``yes''. Note that this option applies to protocol
520 version 2 only.
521
522 RevokedKeys
523 Specifies a list of revoked public keys. Keys listed in this
524 file will be refused for public key authentication. Note that if
525 this file is not readable, then public key authentication will be
526 refused for all users.
527
528 RhostsRSAAuthentication
529 Specifies whether rhosts or /etc/hosts.equiv authentication
530 together with successful RSA host authentication is allowed. The
531 default is ``no''. This option applies to protocol version 1
532 only.
533
534 RSAAuthentication
535 Specifies whether pure RSA authentication is allowed. The
536 default is ``yes''. This option applies to protocol version 1
537 only.
538
539 ServerKeyBits
540 Defines the number of bits in the ephemeral protocol version 1
541 server key. The minimum value is 512, and the default is 1024.
542
543 StrictModes
544 Specifies whether sshd(8) should check file modes and ownership
545 of the user's files and home directory before accepting login.
546 This is normally desirable because novices sometimes accidentally
547 leave their directory or files world-writable. The default is
548 ``yes''. Note that this does not apply to ChrootDirectory, whose
549 permissions and ownership are checked unconditionally.
550
551 Subsystem
552 Configures an external subsystem (e.g. file transfer daemon).
553 Arguments should be a subsystem name and a command (with optional
554 arguments) to execute upon subsystem request.
555
556 The command sftp-server(8) implements the ``sftp'' file transfer
557 subsystem.
558
559 Alternately the name ``internal-sftp'' implements an in-process
560 ``sftp'' server. This may simplify configurations using
561 ChrootDirectory to force a different filesystem root on clients.
562
563 By default no subsystems are defined. Note that this option
564 applies to protocol version 2 only.
565
566 SyslogFacility
567 Gives the facility code that is used when logging messages from
568 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
569 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The
570 default is AUTH.
571
572 TCPKeepAlive
573 Specifies whether the system should send TCP keepalive messages
574 to the other side. If they are sent, death of the connection or
575 crash of one of the machines will be properly noticed. However,
576 this means that connections will die if the route is down
577 temporarily, and some people find it annoying. On the other
578 hand, if TCP keepalives are not sent, sessions may hang
579 indefinitely on the server, leaving ``ghost'' users and consuming
580 server resources.
581
582 The default is ``yes'' (to send TCP keepalive messages), and the
583 server will notice if the network goes down or the client host
584 crashes. This avoids infinitely hanging sessions.
585
586 To disable TCP keepalive messages, the value should be set to
587 ``no''.
588
589 TrustedUserCAKeys
590 Specifies a file containing public keys of certificate
591 authorities that are trusted to sign user certificates for
592 authentication. Keys are listed one per line; empty lines and
593 comments starting with `#' are allowed. If a certificate is
594 presented for authentication and has its signing CA key listed in
595 this file, then it may be used for authentication for any user
596 listed in the certificate's principals list. Note that
597 certificates that lack a list of principals will not be permitted
598 for authentication using TrustedUserCAKeys. For more details on
599 certificates, see the CERTIFICATES section in ssh-keygen(1).
600
601 UseDNS Specifies whether sshd(8) should look up the remote host name and
602 check that the resolved host name for the remote IP address maps
603 back to the very same IP address. The default is ``yes''.
604
605 UseLogin
606 Specifies whether login(1) is used for interactive login
607 sessions. The default is ``no''. Note that login(1) is never
608 used for remote command execution. Note also, that if this is
609 enabled, X11Forwarding will be disabled because login(1) does not
610 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
611 is specified, it will be disabled after authentication.
612
613 UsePAM Enables the Pluggable Authentication Module interface. If set to
614 ``yes'' this will enable PAM authentication using
615 ChallengeResponseAuthentication and PasswordAuthentication in
616 addition to PAM account and session module processing for all
617 authentication types.
618
619 Because PAM challenge-response authentication usually serves an
620 equivalent role to password authentication, you should disable
621 either PasswordAuthentication or ChallengeResponseAuthentication.
622
623 If UsePAM is enabled, you will not be able to run sshd(8) as a
624 non-root user. The default is ``no''.
625
626 UsePrivilegeSeparation
627 Specifies whether sshd(8) separates privileges by creating an
628 unprivileged child process to deal with incoming network traffic.
629 After successful authentication, another process will be created
630 that has the privilege of the authenticated user. The goal of
631 privilege separation is to prevent privilege escalation by
632 containing any corruption within the unprivileged processes. The
633 default is ``yes''. If UsePrivilegeSeparation is set to
634 ``sandbox'' then the pre-authentication unprivileged process is
635 subject to additional restrictions.
636
637 VersionAddendum
638 Optionally specifies additional text to append to the SSH
639 protocol banner sent by the server upon connection. The default
640 is ``none''.
641
642 X11DisplayOffset
643 Specifies the first display number available for sshd(8)'s X11
644 forwarding. This prevents sshd from interfering with real X11
645 servers. The default is 10.
646
647 X11Forwarding
648 Specifies whether X11 forwarding is permitted. The argument must
649 be ``yes'' or ``no''. The default is ``no''.
650
651 When X11 forwarding is enabled, there may be additional exposure
652 to the server and to client displays if the sshd(8) proxy display
653 is configured to listen on the wildcard address (see
654 X11UseLocalhost below), though this is not the default.
655 Additionally, the authentication spoofing and authentication data
656 verification and substitution occur on the client side. The
657 security risk of using X11 forwarding is that the client's X11
658 display server may be exposed to attack when the SSH client
659 requests forwarding (see the warnings for ForwardX11 in
660 ssh_config(5)). A system administrator may have a stance in
661 which they want to protect clients that may expose themselves to
662 attack by unwittingly requesting X11 forwarding, which can
663 warrant a ``no'' setting.
664
665 Note that disabling X11 forwarding does not prevent users from
666 forwarding X11 traffic, as users can always install their own
667 forwarders. X11 forwarding is automatically disabled if UseLogin
668 is enabled.
669
670 X11UseLocalhost
671 Specifies whether sshd(8) should bind the X11 forwarding server
672 to the loopback address or to the wildcard address. By default,
673 sshd binds the forwarding server to the loopback address and sets
674 the hostname part of the DISPLAY environment variable to
675 ``localhost''. This prevents remote hosts from connecting to the
676 proxy display. However, some older X11 clients may not function
677 with this configuration. X11UseLocalhost may be set to ``no'' to
678 specify that the forwarding server should be bound to the
679 wildcard address. The argument must be ``yes'' or ``no''. The
680 default is ``yes''.
681
682 XAuthLocation
683 Specifies the full pathname of the xauth(1) program. The default
684 is /usr/X11R6/bin/xauth.
685
686TIME FORMATS
687 sshd(8) command-line arguments and configuration file options that
688 specify time may be expressed using a sequence of the form:
689 time[qualifier], where time is a positive integer value and qualifier is
690 one of the following:
691
692 <none> seconds
693 s | S seconds
694 m | M minutes
695 h | H hours
696 d | D days
697 w | W weeks
698
699 Each member of the sequence is added together to calculate the total time
700 value.
701
702 Time format examples:
703
704 600 600 seconds (10 minutes)
705 10m 10 minutes
706 1h30m 1 hour 30 minutes (90 minutes)
707
708FILES
709 /etc/ssh/sshd_config
710 Contains configuration data for sshd(8). This file should be
711 writable by root only, but it is recommended (though not
712 necessary) that it be world-readable.
713
714SEE ALSO
715 sshd(8)
716
717AUTHORS
718 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
719 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
720 de Raadt and Dug Song removed many bugs, re-added newer features and
721 created OpenSSH. Markus Friedl contributed the support for SSH protocol
722 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
723 for privilege separation.
724
725OpenBSD 5.2 June 29, 2012 OpenBSD 5.2