summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cvsignore29
-rw-r--r--config.h.in1458
-rwxr-xr-xconfigure32287
-rwxr-xr-x[-rw-r--r--]contrib/solaris/README0
-rw-r--r--moduli.072
-rw-r--r--openbsd-compat/.cvsignore1
-rw-r--r--openbsd-compat/regress/.cvsignore5
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.c0
-rwxr-xr-x[-rw-r--r--]openbsd-compat/sha2.h0
-rw-r--r--regress/.cvsignore1
-rw-r--r--scard/.cvsignore2
-rw-r--r--scard/Ssh.binbin0 -> 600 bytes
-rw-r--r--scp.0148
-rw-r--r--sftp-server.050
-rw-r--r--sftp.0274
-rw-r--r--ssh-add.0106
-rw-r--r--ssh-agent.0117
-rw-r--r--ssh-keygen.0289
-rw-r--r--ssh-keyscan.0107
-rw-r--r--ssh-keysign.042
-rw-r--r--ssh-rand-helper.051
-rw-r--r--ssh.0867
-rw-r--r--ssh_config.0670
-rw-r--r--sshd.0574
-rw-r--r--sshd_config.0634
25 files changed, 37746 insertions, 38 deletions
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index b893c972d..000000000
--- a/.cvsignore
+++ /dev/null
@@ -1,29 +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-rand-helper
25ssh_prng_cmds
26sshd
27stamp-h.in
28survey
29survey.sh
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 000000000..fc195bad5
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,1458 @@
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/* Define if cmsg_type is not passed correctly */
20#undef BROKEN_CMSG_TYPE
21
22/* getaddrinfo is broken (if present) */
23#undef BROKEN_GETADDRINFO
24
25/* getgroups(0,NULL) will return -1 */
26#undef BROKEN_GETGROUPS
27
28/* FreeBSD glob does not do what we need */
29#undef BROKEN_GLOB
30
31/* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */
32#undef BROKEN_INET_NTOA
33
34/* ia_uinfo routines not supported by OS yet */
35#undef BROKEN_LIBIAF
36
37/* Ultrix mmap can't map files */
38#undef BROKEN_MMAP
39
40/* Define if your struct dirent expects you to allocate extra space for d_name
41 */
42#undef BROKEN_ONE_BYTE_DIRENT_D_NAME
43
44/* Can't do comparisons on readv */
45#undef BROKEN_READV_COMPARISON
46
47/* Define if you have a broken realpath. */
48#undef BROKEN_REALPATH
49
50/* Needed for NeXT */
51#undef BROKEN_SAVED_UIDS
52
53/* Define if your setregid() is broken */
54#undef BROKEN_SETREGID
55
56/* Define if your setresgid() is broken */
57#undef BROKEN_SETRESGID
58
59/* Define if your setresuid() is broken */
60#undef BROKEN_SETRESUID
61
62/* Define if your setreuid() is broken */
63#undef BROKEN_SETREUID
64
65/* LynxOS has broken setvbuf() implementation */
66#undef BROKEN_SETVBUF
67
68/* QNX shadow support is broken */
69#undef BROKEN_SHADOW_EXPIRE
70
71/* Define if your snprintf is busted */
72#undef BROKEN_SNPRINTF
73
74/* tcgetattr with ICANON may hang */
75#undef BROKEN_TCGETATTR_ICANON
76
77/* updwtmpx is broken (if present) */
78#undef BROKEN_UPDWTMPX
79
80/* Define if you have BSD auth support */
81#undef BSD_AUTH
82
83/* Define if you want to specify the path to your lastlog file */
84#undef CONF_LASTLOG_FILE
85
86/* Define if you want to specify the path to your utmpx file */
87#undef CONF_UTMPX_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/* Builtin PRNG command timeout */
129#undef ENTROPY_TIMEOUT_MSEC
130
131/* fsid_t has member val */
132#undef FSID_HAS_VAL
133
134/* fsid_t has member __val */
135#undef FSID_HAS___VAL
136
137/* Define to 1 if the `getpgrp' function requires zero arguments. */
138#undef GETPGRP_VOID
139
140/* Conflicting defs for getspnam */
141#undef GETSPNAM_CONFLICTING_DEFS
142
143/* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */
144#undef GLOB_HAS_ALTDIRFUNC
145
146/* Define if your system glob() function has gl_matchc options in glob_t */
147#undef GLOB_HAS_GL_MATCHC
148
149/* Define this if you want GSSAPI support in the version 2 protocol */
150#undef GSSAPI
151
152/* Define if you want to use shadow password expire field */
153#undef HAS_SHADOW_EXPIRE
154
155/* Define if your system uses access rights style file descriptor passing */
156#undef HAVE_ACCRIGHTS_IN_MSGHDR
157
158/* Define if you have ut_addr in utmp.h */
159#undef HAVE_ADDR_IN_UTMP
160
161/* Define if you have ut_addr in utmpx.h */
162#undef HAVE_ADDR_IN_UTMPX
163
164/* Define if you have ut_addr_v6 in utmp.h */
165#undef HAVE_ADDR_V6_IN_UTMP
166
167/* Define if you have ut_addr_v6 in utmpx.h */
168#undef HAVE_ADDR_V6_IN_UTMPX
169
170/* Define to 1 if you have the `arc4random' function. */
171#undef HAVE_ARC4RANDOM
172
173/* Define to 1 if you have the `arc4random_buf' function. */
174#undef HAVE_ARC4RANDOM_BUF
175
176/* Define to 1 if you have the `arc4random_uniform' function. */
177#undef HAVE_ARC4RANDOM_UNIFORM
178
179/* Define to 1 if you have the `asprintf' function. */
180#undef HAVE_ASPRINTF
181
182/* OpenBSD's gcc has bounded */
183#undef HAVE_ATTRIBUTE__BOUNDED__
184
185/* Have attribute nonnull */
186#undef HAVE_ATTRIBUTE__NONNULL__
187
188/* OpenBSD's gcc has sentinel */
189#undef HAVE_ATTRIBUTE__SENTINEL__
190
191/* Define to 1 if you have the `aug_get_machine' function. */
192#undef HAVE_AUG_GET_MACHINE
193
194/* Define to 1 if you have the `b64_ntop' function. */
195#undef HAVE_B64_NTOP
196
197/* Define to 1 if you have the `b64_pton' function. */
198#undef HAVE_B64_PTON
199
200/* Define if you have the basename function. */
201#undef HAVE_BASENAME
202
203/* Define to 1 if you have the `bcopy' function. */
204#undef HAVE_BCOPY
205
206/* Define to 1 if you have the `bindresvport_sa' function. */
207#undef HAVE_BINDRESVPORT_SA
208
209/* Define to 1 if you have the <bsm/audit.h> header file. */
210#undef HAVE_BSM_AUDIT_H
211
212/* Define to 1 if you have the <bstring.h> header file. */
213#undef HAVE_BSTRING_H
214
215/* Define to 1 if you have the `clock' function. */
216#undef HAVE_CLOCK
217
218/* define if you have clock_t data type */
219#undef HAVE_CLOCK_T
220
221/* Define to 1 if you have the `closefrom' function. */
222#undef HAVE_CLOSEFROM
223
224/* Define if gai_strerror() returns const char * */
225#undef HAVE_CONST_GAI_STRERROR_PROTO
226
227/* Define if your system uses ancillary data style file descriptor passing */
228#undef HAVE_CONTROL_IN_MSGHDR
229
230/* Define to 1 if you have the <crypto/sha2.h> header file. */
231#undef HAVE_CRYPTO_SHA2_H
232
233/* Define to 1 if you have the <crypt.h> header file. */
234#undef HAVE_CRYPT_H
235
236/* Define if you are on Cygwin */
237#undef HAVE_CYGWIN
238
239/* Define if your libraries define daemon() */
240#undef HAVE_DAEMON
241
242/* Define to 1 if you have the declaration of `authenticate', and to 0 if you
243 don't. */
244#undef HAVE_DECL_AUTHENTICATE
245
246/* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you
247 don't. */
248#undef HAVE_DECL_GLOB_NOMATCH
249
250/* Define to 1 if you have the declaration of `h_errno', and to 0 if you
251 don't. */
252#undef HAVE_DECL_H_ERRNO
253
254/* Define to 1 if you have the declaration of `loginfailed', and to 0 if you
255 don't. */
256#undef HAVE_DECL_LOGINFAILED
257
258/* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if
259 you don't. */
260#undef HAVE_DECL_LOGINRESTRICTIONS
261
262/* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you
263 don't. */
264#undef HAVE_DECL_LOGINSUCCESS
265
266/* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you
267 don't. */
268#undef HAVE_DECL_MAXSYMLINKS
269
270/* Define to 1 if you have the declaration of `offsetof', and to 0 if you
271 don't. */
272#undef HAVE_DECL_OFFSETOF
273
274/* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you
275 don't. */
276#undef HAVE_DECL_O_NONBLOCK
277
278/* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you
279 don't. */
280#undef HAVE_DECL_PASSWDEXPIRED
281
282/* Define to 1 if you have the declaration of `setauthdb', and to 0 if you
283 don't. */
284#undef HAVE_DECL_SETAUTHDB
285
286/* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you
287 don't. */
288#undef HAVE_DECL_SHUT_RD
289
290/* Define to 1 if you have the declaration of `writev', and to 0 if you don't.
291 */
292#undef HAVE_DECL_WRITEV
293
294/* Define to 1 if you have the declaration of `_getlong', and to 0 if you
295 don't. */
296#undef HAVE_DECL__GETLONG
297
298/* Define to 1 if you have the declaration of `_getshort', and to 0 if you
299 don't. */
300#undef HAVE_DECL__GETSHORT
301
302/* Define if you have /dev/ptmx */
303#undef HAVE_DEV_PTMX
304
305/* Define if you have /dev/ptc */
306#undef HAVE_DEV_PTS_AND_PTC
307
308/* Define to 1 if you have the <dirent.h> header file. */
309#undef HAVE_DIRENT_H
310
311/* Define to 1 if you have the `dirfd' function. */
312#undef HAVE_DIRFD
313
314/* Define to 1 if you have the `dirname' function. */
315#undef HAVE_DIRNAME
316
317/* Define to 1 if you have the <endian.h> header file. */
318#undef HAVE_ENDIAN_H
319
320/* Define to 1 if you have the `endutent' function. */
321#undef HAVE_ENDUTENT
322
323/* Define to 1 if you have the `endutxent' function. */
324#undef HAVE_ENDUTXENT
325
326/* Define if your system has /etc/default/login */
327#undef HAVE_ETC_DEFAULT_LOGIN
328
329/* Define to 1 if you have the `EVP_sha256' function. */
330#undef HAVE_EVP_SHA256
331
332/* Define if you have ut_exit in utmp.h */
333#undef HAVE_EXIT_IN_UTMP
334
335/* Define to 1 if you have the `fchmod' function. */
336#undef HAVE_FCHMOD
337
338/* Define to 1 if you have the `fchown' function. */
339#undef HAVE_FCHOWN
340
341/* Use F_CLOSEM fcntl for closefrom */
342#undef HAVE_FCNTL_CLOSEM
343
344/* Define to 1 if you have the <fcntl.h> header file. */
345#undef HAVE_FCNTL_H
346
347/* Define to 1 if you have the <features.h> header file. */
348#undef HAVE_FEATURES_H
349
350/* Define to 1 if you have the <floatingpoint.h> header file. */
351#undef HAVE_FLOATINGPOINT_H
352
353/* Define to 1 if you have the `fmt_scaled' function. */
354#undef HAVE_FMT_SCALED
355
356/* Define to 1 if you have the `freeaddrinfo' function. */
357#undef HAVE_FREEADDRINFO
358
359/* Define to 1 if the system has the type `fsblkcnt_t'. */
360#undef HAVE_FSBLKCNT_T
361
362/* Define to 1 if the system has the type `fsfilcnt_t'. */
363#undef HAVE_FSFILCNT_T
364
365/* Define to 1 if you have the `fstatvfs' function. */
366#undef HAVE_FSTATVFS
367
368/* Define to 1 if you have the `futimes' function. */
369#undef HAVE_FUTIMES
370
371/* Define to 1 if you have the `gai_strerror' function. */
372#undef HAVE_GAI_STRERROR
373
374/* Define to 1 if you have the `getaddrinfo' function. */
375#undef HAVE_GETADDRINFO
376
377/* Define to 1 if you have the `getaudit' function. */
378#undef HAVE_GETAUDIT
379
380/* Define to 1 if you have the `getaudit_addr' function. */
381#undef HAVE_GETAUDIT_ADDR
382
383/* Define to 1 if you have the `getcwd' function. */
384#undef HAVE_GETCWD
385
386/* Define to 1 if you have the `getgrouplist' function. */
387#undef HAVE_GETGROUPLIST
388
389/* Define to 1 if you have the `getgrset' function. */
390#undef HAVE_GETGRSET
391
392/* Define to 1 if you have the `getlastlogxbyname' function. */
393#undef HAVE_GETLASTLOGXBYNAME
394
395/* Define to 1 if you have the `getluid' function. */
396#undef HAVE_GETLUID
397
398/* Define to 1 if you have the `getnameinfo' function. */
399#undef HAVE_GETNAMEINFO
400
401/* Define to 1 if you have the `getopt' function. */
402#undef HAVE_GETOPT
403
404/* Define to 1 if you have the <getopt.h> header file. */
405#undef HAVE_GETOPT_H
406
407/* Define if your getopt(3) defines and uses optreset */
408#undef HAVE_GETOPT_OPTRESET
409
410/* Define if your libraries define getpagesize() */
411#undef HAVE_GETPAGESIZE
412
413/* Define to 1 if you have the `getpeereid' function. */
414#undef HAVE_GETPEEREID
415
416/* Define to 1 if you have the `getpeerucred' function. */
417#undef HAVE_GETPEERUCRED
418
419/* Define to 1 if you have the `getpwanam' function. */
420#undef HAVE_GETPWANAM
421
422/* Define to 1 if you have the `getrlimit' function. */
423#undef HAVE_GETRLIMIT
424
425/* Define if getrrsetbyname() exists */
426#undef HAVE_GETRRSETBYNAME
427
428/* Define to 1 if you have the `getrusage' function. */
429#undef HAVE_GETRUSAGE
430
431/* Define to 1 if you have the `getseuserbyname' function. */
432#undef HAVE_GETSEUSERBYNAME
433
434/* Define to 1 if you have the `gettimeofday' function. */
435#undef HAVE_GETTIMEOFDAY
436
437/* Define to 1 if you have the `getttyent' function. */
438#undef HAVE_GETTTYENT
439
440/* Define to 1 if you have the `getutent' function. */
441#undef HAVE_GETUTENT
442
443/* Define to 1 if you have the `getutid' function. */
444#undef HAVE_GETUTID
445
446/* Define to 1 if you have the `getutline' function. */
447#undef HAVE_GETUTLINE
448
449/* Define to 1 if you have the `getutxent' function. */
450#undef HAVE_GETUTXENT
451
452/* Define to 1 if you have the `getutxid' function. */
453#undef HAVE_GETUTXID
454
455/* Define to 1 if you have the `getutxline' function. */
456#undef HAVE_GETUTXLINE
457
458/* Define to 1 if you have the `get_default_context_with_level' function. */
459#undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL
460
461/* Define to 1 if you have the `glob' function. */
462#undef HAVE_GLOB
463
464/* Define to 1 if you have the <glob.h> header file. */
465#undef HAVE_GLOB_H
466
467/* Define to 1 if you have the <gssapi_generic.h> header file. */
468#undef HAVE_GSSAPI_GENERIC_H
469
470/* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */
471#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
472
473/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
474#undef HAVE_GSSAPI_GSSAPI_H
475
476/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */
477#undef HAVE_GSSAPI_GSSAPI_KRB5_H
478
479/* Define to 1 if you have the <gssapi.h> header file. */
480#undef HAVE_GSSAPI_H
481
482/* Define to 1 if you have the <gssapi_krb5.h> header file. */
483#undef HAVE_GSSAPI_KRB5_H
484
485/* Define if HEADER.ad exists in arpa/nameser.h */
486#undef HAVE_HEADER_AD
487
488/* Define if you have ut_host in utmp.h */
489#undef HAVE_HOST_IN_UTMP
490
491/* Define if you have ut_host in utmpx.h */
492#undef HAVE_HOST_IN_UTMPX
493
494/* Define to 1 if you have the <iaf.h> header file. */
495#undef HAVE_IAF_H
496
497/* Define to 1 if you have the <ia.h> header file. */
498#undef HAVE_IA_H
499
500/* Define if you have ut_id in utmp.h */
501#undef HAVE_ID_IN_UTMP
502
503/* Define if you have ut_id in utmpx.h */
504#undef HAVE_ID_IN_UTMPX
505
506/* Define to 1 if you have the `inet_aton' function. */
507#undef HAVE_INET_ATON
508
509/* Define to 1 if you have the `inet_ntoa' function. */
510#undef HAVE_INET_NTOA
511
512/* Define to 1 if you have the `inet_ntop' function. */
513#undef HAVE_INET_NTOP
514
515/* Define to 1 if you have the `innetgr' function. */
516#undef HAVE_INNETGR
517
518/* define if you have int64_t data type */
519#undef HAVE_INT64_T
520
521/* Define to 1 if you have the <inttypes.h> header file. */
522#undef HAVE_INTTYPES_H
523
524/* define if you have intxx_t data type */
525#undef HAVE_INTXX_T
526
527/* Define to 1 if the system has the type `in_addr_t'. */
528#undef HAVE_IN_ADDR_T
529
530/* Define to 1 if the system has the type `in_port_t'. */
531#undef HAVE_IN_PORT_T
532
533/* Define to 1 if you have the <lastlog.h> header file. */
534#undef HAVE_LASTLOG_H
535
536/* Define to 1 if you have the `bsm' library (-lbsm). */
537#undef HAVE_LIBBSM
538
539/* Define to 1 if you have the `crypt' library (-lcrypt). */
540#undef HAVE_LIBCRYPT
541
542/* Define to 1 if you have the `dl' library (-ldl). */
543#undef HAVE_LIBDL
544
545/* Define to 1 if you have the <libgen.h> header file. */
546#undef HAVE_LIBGEN_H
547
548/* Define if system has libiaf that supports set_id */
549#undef HAVE_LIBIAF
550
551/* Define to 1 if you have the `nsl' library (-lnsl). */
552#undef HAVE_LIBNSL
553
554/* Define to 1 if you have the `pam' library (-lpam). */
555#undef HAVE_LIBPAM
556
557/* Define to 1 if you have the `sectok' library (-lsectok). */
558#undef HAVE_LIBSECTOK
559
560/* Define to 1 if you have the `socket' library (-lsocket). */
561#undef HAVE_LIBSOCKET
562
563/* Define to 1 if you have the <libutil.h> header file. */
564#undef HAVE_LIBUTIL_H
565
566/* Define to 1 if you have the `xnet' library (-lxnet). */
567#undef HAVE_LIBXNET
568
569/* Define to 1 if you have the `z' library (-lz). */
570#undef HAVE_LIBZ
571
572/* Define to 1 if you have the <limits.h> header file. */
573#undef HAVE_LIMITS_H
574
575/* Define to 1 if you have the <linux/if_tun.h> header file. */
576#undef HAVE_LINUX_IF_TUN_H
577
578/* Define if your libraries define login() */
579#undef HAVE_LOGIN
580
581/* Define to 1 if you have the <login_cap.h> header file. */
582#undef HAVE_LOGIN_CAP_H
583
584/* Define to 1 if you have the `login_getcapbool' function. */
585#undef HAVE_LOGIN_GETCAPBOOL
586
587/* Define to 1 if you have the <login.h> header file. */
588#undef HAVE_LOGIN_H
589
590/* Define to 1 if you have the `logout' function. */
591#undef HAVE_LOGOUT
592
593/* Define to 1 if you have the `logwtmp' function. */
594#undef HAVE_LOGWTMP
595
596/* Define to 1 if the system has the type `long double'. */
597#undef HAVE_LONG_DOUBLE
598
599/* Define to 1 if the system has the type `long long'. */
600#undef HAVE_LONG_LONG
601
602/* Define to 1 if you have the <maillock.h> header file. */
603#undef HAVE_MAILLOCK_H
604
605/* Define to 1 if you have the `md5_crypt' function. */
606#undef HAVE_MD5_CRYPT
607
608/* Define if you want to allow MD5 passwords */
609#undef HAVE_MD5_PASSWORDS
610
611/* Define to 1 if you have the `memmove' function. */
612#undef HAVE_MEMMOVE
613
614/* Define to 1 if you have the <memory.h> header file. */
615#undef HAVE_MEMORY_H
616
617/* Define to 1 if you have the `mkdtemp' function. */
618#undef HAVE_MKDTEMP
619
620/* Define to 1 if you have the `mmap' function. */
621#undef HAVE_MMAP
622
623/* define if you have mode_t data type */
624#undef HAVE_MODE_T
625
626/* Some systems put nanosleep outside of libc */
627#undef HAVE_NANOSLEEP
628
629/* Define to 1 if you have the <ndir.h> header file. */
630#undef HAVE_NDIR_H
631
632/* Define to 1 if you have the <netdb.h> header file. */
633#undef HAVE_NETDB_H
634
635/* Define to 1 if you have the <netgroup.h> header file. */
636#undef HAVE_NETGROUP_H
637
638/* Define to 1 if you have the <net/if_tun.h> header file. */
639#undef HAVE_NET_IF_TUN_H
640
641/* Define if you are on NeXT */
642#undef HAVE_NEXT
643
644/* Define to 1 if you have the `ngetaddrinfo' function. */
645#undef HAVE_NGETADDRINFO
646
647/* Define to 1 if you have the `nsleep' function. */
648#undef HAVE_NSLEEP
649
650/* Define to 1 if you have the `ogetaddrinfo' function. */
651#undef HAVE_OGETADDRINFO
652
653/* Define if you have an old version of PAM which takes only one argument to
654 pam_strerror */
655#undef HAVE_OLD_PAM
656
657/* Define to 1 if you have the `openlog_r' function. */
658#undef HAVE_OPENLOG_R
659
660/* Define to 1 if you have the `openpty' function. */
661#undef HAVE_OPENPTY
662
663/* Define if your ssl headers are included with #include <openssl/header.h> */
664#undef HAVE_OPENSSL
665
666/* Define if you have Digital Unix Security Integration Architecture */
667#undef HAVE_OSF_SIA
668
669/* Define to 1 if you have the `pam_getenvlist' function. */
670#undef HAVE_PAM_GETENVLIST
671
672/* Define to 1 if you have the <pam/pam_appl.h> header file. */
673#undef HAVE_PAM_PAM_APPL_H
674
675/* Define to 1 if you have the `pam_putenv' function. */
676#undef HAVE_PAM_PUTENV
677
678/* Define to 1 if you have the <paths.h> header file. */
679#undef HAVE_PATHS_H
680
681/* Define if you have ut_pid in utmp.h */
682#undef HAVE_PID_IN_UTMP
683
684/* define if you have pid_t data type */
685#undef HAVE_PID_T
686
687/* Define to 1 if you have the `poll' function. */
688#undef HAVE_POLL
689
690/* Define to 1 if you have the <poll.h> header file. */
691#undef HAVE_POLL_H
692
693/* Define to 1 if you have the `prctl' function. */
694#undef HAVE_PRCTL
695
696/* Define if you have /proc/$pid/fd */
697#undef HAVE_PROC_PID
698
699/* Define to 1 if you have the `pstat' function. */
700#undef HAVE_PSTAT
701
702/* Define to 1 if you have the <pty.h> header file. */
703#undef HAVE_PTY_H
704
705/* Define to 1 if you have the `pututline' function. */
706#undef HAVE_PUTUTLINE
707
708/* Define to 1 if you have the `pututxline' function. */
709#undef HAVE_PUTUTXLINE
710
711/* Define if your password has a pw_change field */
712#undef HAVE_PW_CHANGE_IN_PASSWD
713
714/* Define if your password has a pw_class field */
715#undef HAVE_PW_CLASS_IN_PASSWD
716
717/* Define if your password has a pw_expire field */
718#undef HAVE_PW_EXPIRE_IN_PASSWD
719
720/* Define to 1 if you have the `readpassphrase' function. */
721#undef HAVE_READPASSPHRASE
722
723/* Define to 1 if you have the <readpassphrase.h> header file. */
724#undef HAVE_READPASSPHRASE_H
725
726/* Define to 1 if you have the `realpath' function. */
727#undef HAVE_REALPATH
728
729/* Define to 1 if you have the `recvmsg' function. */
730#undef HAVE_RECVMSG
731
732/* Define to 1 if you have the <rpc/types.h> header file. */
733#undef HAVE_RPC_TYPES_H
734
735/* Define to 1 if you have the `rresvport_af' function. */
736#undef HAVE_RRESVPORT_AF
737
738/* define if you have sa_family_t data type */
739#undef HAVE_SA_FAMILY_T
740
741/* Define to 1 if you have the <sectok.h> header file. */
742#undef HAVE_SECTOK_H
743
744/* Define if you have SecureWare-based protected password database */
745#undef HAVE_SECUREWARE
746
747/* Define to 1 if you have the <security/pam_appl.h> header file. */
748#undef HAVE_SECURITY_PAM_APPL_H
749
750/* Define to 1 if you have the `sendmsg' function. */
751#undef HAVE_SENDMSG
752
753/* Define to 1 if you have the `setauthdb' function. */
754#undef HAVE_SETAUTHDB
755
756/* Define to 1 if you have the `setdtablesize' function. */
757#undef HAVE_SETDTABLESIZE
758
759/* Define to 1 if you have the `setegid' function. */
760#undef HAVE_SETEGID
761
762/* Define to 1 if you have the `setenv' function. */
763#undef HAVE_SETENV
764
765/* Define to 1 if you have the `seteuid' function. */
766#undef HAVE_SETEUID
767
768/* Define to 1 if you have the `setgroups' function. */
769#undef HAVE_SETGROUPS
770
771/* Define to 1 if you have the `setlogin' function. */
772#undef HAVE_SETLOGIN
773
774/* Define to 1 if you have the `setluid' function. */
775#undef HAVE_SETLUID
776
777/* Define to 1 if you have the `setpcred' function. */
778#undef HAVE_SETPCRED
779
780/* Define to 1 if you have the `setproctitle' function. */
781#undef HAVE_SETPROCTITLE
782
783/* Define to 1 if you have the `setregid' function. */
784#undef HAVE_SETREGID
785
786/* Define to 1 if you have the `setresgid' function. */
787#undef HAVE_SETRESGID
788
789/* Define to 1 if you have the `setresuid' function. */
790#undef HAVE_SETRESUID
791
792/* Define to 1 if you have the `setreuid' function. */
793#undef HAVE_SETREUID
794
795/* Define to 1 if you have the `setrlimit' function. */
796#undef HAVE_SETRLIMIT
797
798/* Define to 1 if you have the `setsid' function. */
799#undef HAVE_SETSID
800
801/* Define to 1 if you have the `setutent' function. */
802#undef HAVE_SETUTENT
803
804/* Define to 1 if you have the `setutxent' function. */
805#undef HAVE_SETUTXENT
806
807/* Define to 1 if you have the `setvbuf' function. */
808#undef HAVE_SETVBUF
809
810/* Define to 1 if you have the `set_id' function. */
811#undef HAVE_SET_ID
812
813/* Define to 1 if you have the `SHA256_Update' function. */
814#undef HAVE_SHA256_UPDATE
815
816/* Define to 1 if you have the <sha2.h> header file. */
817#undef HAVE_SHA2_H
818
819/* Define to 1 if you have the <shadow.h> header file. */
820#undef HAVE_SHADOW_H
821
822/* Define to 1 if you have the `sigaction' function. */
823#undef HAVE_SIGACTION
824
825/* Define to 1 if you have the `sigvec' function. */
826#undef HAVE_SIGVEC
827
828/* Define to 1 if the system has the type `sig_atomic_t'. */
829#undef HAVE_SIG_ATOMIC_T
830
831/* define if you have size_t data type */
832#undef HAVE_SIZE_T
833
834/* Define to 1 if you have the `snprintf' function. */
835#undef HAVE_SNPRINTF
836
837/* Define to 1 if you have the `socketpair' function. */
838#undef HAVE_SOCKETPAIR
839
840/* Have PEERCRED socket option */
841#undef HAVE_SO_PEERCRED
842
843/* define if you have ssize_t data type */
844#undef HAVE_SSIZE_T
845
846/* Fields in struct sockaddr_storage */
847#undef HAVE_SS_FAMILY_IN_SS
848
849/* Define to 1 if you have the `statfs' function. */
850#undef HAVE_STATFS
851
852/* Define to 1 if you have the `statvfs' function. */
853#undef HAVE_STATVFS
854
855/* Define to 1 if you have the <stddef.h> header file. */
856#undef HAVE_STDDEF_H
857
858/* Define to 1 if you have the <stdint.h> header file. */
859#undef HAVE_STDINT_H
860
861/* Define to 1 if you have the <stdlib.h> header file. */
862#undef HAVE_STDLIB_H
863
864/* Define to 1 if you have the `strdup' function. */
865#undef HAVE_STRDUP
866
867/* Define to 1 if you have the `strerror' function. */
868#undef HAVE_STRERROR
869
870/* Define to 1 if you have the `strftime' function. */
871#undef HAVE_STRFTIME
872
873/* Silly mkstemp() */
874#undef HAVE_STRICT_MKSTEMP
875
876/* Define to 1 if you have the <strings.h> header file. */
877#undef HAVE_STRINGS_H
878
879/* Define to 1 if you have the <string.h> header file. */
880#undef HAVE_STRING_H
881
882/* Define to 1 if you have the `strlcat' function. */
883#undef HAVE_STRLCAT
884
885/* Define to 1 if you have the `strlcpy' function. */
886#undef HAVE_STRLCPY
887
888/* Define to 1 if you have the `strmode' function. */
889#undef HAVE_STRMODE
890
891/* Define to 1 if you have the `strnvis' function. */
892#undef HAVE_STRNVIS
893
894/* Define to 1 if you have the `strsep' function. */
895#undef HAVE_STRSEP
896
897/* Define to 1 if you have the `strtoll' function. */
898#undef HAVE_STRTOLL
899
900/* Define to 1 if you have the `strtonum' function. */
901#undef HAVE_STRTONUM
902
903/* Define to 1 if you have the `strtoul' function. */
904#undef HAVE_STRTOUL
905
906/* define if you have struct addrinfo data type */
907#undef HAVE_STRUCT_ADDRINFO
908
909/* define if you have struct in6_addr data type */
910#undef HAVE_STRUCT_IN6_ADDR
911
912/* define if you have struct sockaddr_in6 data type */
913#undef HAVE_STRUCT_SOCKADDR_IN6
914
915/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */
916#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
917
918/* define if you have struct sockaddr_storage data type */
919#undef HAVE_STRUCT_SOCKADDR_STORAGE
920
921/* Define to 1 if `st_blksize' is member of `struct stat'. */
922#undef HAVE_STRUCT_STAT_ST_BLKSIZE
923
924/* Define to 1 if the system has the type `struct timespec'. */
925#undef HAVE_STRUCT_TIMESPEC
926
927/* define if you have struct timeval */
928#undef HAVE_STRUCT_TIMEVAL
929
930/* Define to 1 if you have the `swap32' function. */
931#undef HAVE_SWAP32
932
933/* Define to 1 if you have the `sysconf' function. */
934#undef HAVE_SYSCONF
935
936/* Define if you have syslen in utmpx.h */
937#undef HAVE_SYSLEN_IN_UTMPX
938
939/* Define to 1 if you have the <sys/audit.h> header file. */
940#undef HAVE_SYS_AUDIT_H
941
942/* Define to 1 if you have the <sys/bitypes.h> header file. */
943#undef HAVE_SYS_BITYPES_H
944
945/* Define to 1 if you have the <sys/bsdtty.h> header file. */
946#undef HAVE_SYS_BSDTTY_H
947
948/* Define to 1 if you have the <sys/cdefs.h> header file. */
949#undef HAVE_SYS_CDEFS_H
950
951/* Define to 1 if you have the <sys/dir.h> header file. */
952#undef HAVE_SYS_DIR_H
953
954/* Define if your system defines sys_errlist[] */
955#undef HAVE_SYS_ERRLIST
956
957/* Define to 1 if you have the <sys/mman.h> header file. */
958#undef HAVE_SYS_MMAN_H
959
960/* Define to 1 if you have the <sys/mount.h> header file. */
961#undef HAVE_SYS_MOUNT_H
962
963/* Define to 1 if you have the <sys/ndir.h> header file. */
964#undef HAVE_SYS_NDIR_H
965
966/* Define if your system defines sys_nerr */
967#undef HAVE_SYS_NERR
968
969/* Define to 1 if you have the <sys/poll.h> header file. */
970#undef HAVE_SYS_POLL_H
971
972/* Define to 1 if you have the <sys/prctl.h> header file. */
973#undef HAVE_SYS_PRCTL_H
974
975/* Define to 1 if you have the <sys/pstat.h> header file. */
976#undef HAVE_SYS_PSTAT_H
977
978/* Define to 1 if you have the <sys/ptms.h> header file. */
979#undef HAVE_SYS_PTMS_H
980
981/* Define to 1 if you have the <sys/select.h> header file. */
982#undef HAVE_SYS_SELECT_H
983
984/* Define to 1 if you have the <sys/statvfs.h> header file. */
985#undef HAVE_SYS_STATVFS_H
986
987/* Define to 1 if you have the <sys/stat.h> header file. */
988#undef HAVE_SYS_STAT_H
989
990/* Define to 1 if you have the <sys/stream.h> header file. */
991#undef HAVE_SYS_STREAM_H
992
993/* Define to 1 if you have the <sys/stropts.h> header file. */
994#undef HAVE_SYS_STROPTS_H
995
996/* Define to 1 if you have the <sys/strtio.h> header file. */
997#undef HAVE_SYS_STRTIO_H
998
999/* Force use of sys/syslog.h on Ultrix */
1000#undef HAVE_SYS_SYSLOG_H
1001
1002/* Define to 1 if you have the <sys/sysmacros.h> header file. */
1003#undef HAVE_SYS_SYSMACROS_H
1004
1005/* Define to 1 if you have the <sys/timers.h> header file. */
1006#undef HAVE_SYS_TIMERS_H
1007
1008/* Define to 1 if you have the <sys/time.h> header file. */
1009#undef HAVE_SYS_TIME_H
1010
1011/* Define to 1 if you have the <sys/types.h> header file. */
1012#undef HAVE_SYS_TYPES_H
1013
1014/* Define to 1 if you have the <sys/un.h> header file. */
1015#undef HAVE_SYS_UN_H
1016
1017/* Define to 1 if you have the `tcgetpgrp' function. */
1018#undef HAVE_TCGETPGRP
1019
1020/* Define to 1 if you have the `tcsendbreak' function. */
1021#undef HAVE_TCSENDBREAK
1022
1023/* Define to 1 if you have the `time' function. */
1024#undef HAVE_TIME
1025
1026/* Define to 1 if you have the <time.h> header file. */
1027#undef HAVE_TIME_H
1028
1029/* Define if you have ut_time in utmp.h */
1030#undef HAVE_TIME_IN_UTMP
1031
1032/* Define if you have ut_time in utmpx.h */
1033#undef HAVE_TIME_IN_UTMPX
1034
1035/* Define to 1 if you have the <tmpdir.h> header file. */
1036#undef HAVE_TMPDIR_H
1037
1038/* Define to 1 if you have the `truncate' function. */
1039#undef HAVE_TRUNCATE
1040
1041/* Define to 1 if you have the <ttyent.h> header file. */
1042#undef HAVE_TTYENT_H
1043
1044/* Define if you have ut_tv in utmp.h */
1045#undef HAVE_TV_IN_UTMP
1046
1047/* Define if you have ut_tv in utmpx.h */
1048#undef HAVE_TV_IN_UTMPX
1049
1050/* Define if you have ut_type in utmp.h */
1051#undef HAVE_TYPE_IN_UTMP
1052
1053/* Define if you have ut_type in utmpx.h */
1054#undef HAVE_TYPE_IN_UTMPX
1055
1056/* Define to 1 if you have the <ucred.h> header file. */
1057#undef HAVE_UCRED_H
1058
1059/* define if you have uintxx_t data type */
1060#undef HAVE_UINTXX_T
1061
1062/* Define to 1 if you have the <unistd.h> header file. */
1063#undef HAVE_UNISTD_H
1064
1065/* Define to 1 if you have the `unsetenv' function. */
1066#undef HAVE_UNSETENV
1067
1068/* Define to 1 if the system has the type `unsigned long long'. */
1069#undef HAVE_UNSIGNED_LONG_LONG
1070
1071/* Define to 1 if you have the `updwtmp' function. */
1072#undef HAVE_UPDWTMP
1073
1074/* Define to 1 if you have the `updwtmpx' function. */
1075#undef HAVE_UPDWTMPX
1076
1077/* Define to 1 if you have the <usersec.h> header file. */
1078#undef HAVE_USERSEC_H
1079
1080/* Define to 1 if you have the <util.h> header file. */
1081#undef HAVE_UTIL_H
1082
1083/* Define to 1 if you have the `utimes' function. */
1084#undef HAVE_UTIMES
1085
1086/* Define to 1 if you have the <utime.h> header file. */
1087#undef HAVE_UTIME_H
1088
1089/* Define to 1 if you have the `utmpname' function. */
1090#undef HAVE_UTMPNAME
1091
1092/* Define to 1 if you have the `utmpxname' function. */
1093#undef HAVE_UTMPXNAME
1094
1095/* Define to 1 if you have the <utmpx.h> header file. */
1096#undef HAVE_UTMPX_H
1097
1098/* Define to 1 if you have the <utmp.h> header file. */
1099#undef HAVE_UTMP_H
1100
1101/* define if you have u_char data type */
1102#undef HAVE_U_CHAR
1103
1104/* define if you have u_int data type */
1105#undef HAVE_U_INT
1106
1107/* define if you have u_int64_t data type */
1108#undef HAVE_U_INT64_T
1109
1110/* define if you have u_intxx_t data type */
1111#undef HAVE_U_INTXX_T
1112
1113/* Define to 1 if you have the `vasprintf' function. */
1114#undef HAVE_VASPRINTF
1115
1116/* Define if va_copy exists */
1117#undef HAVE_VA_COPY
1118
1119/* Define to 1 if you have the `vhangup' function. */
1120#undef HAVE_VHANGUP
1121
1122/* Define to 1 if you have the <vis.h> header file. */
1123#undef HAVE_VIS_H
1124
1125/* Define to 1 if you have the `vsnprintf' function. */
1126#undef HAVE_VSNPRINTF
1127
1128/* Define to 1 if you have the `waitpid' function. */
1129#undef HAVE_WAITPID
1130
1131/* Define to 1 if you have the `_getlong' function. */
1132#undef HAVE__GETLONG
1133
1134/* Define to 1 if you have the `_getpty' function. */
1135#undef HAVE__GETPTY
1136
1137/* Define to 1 if you have the `_getshort' function. */
1138#undef HAVE__GETSHORT
1139
1140/* Define if you have struct __res_state _res as an extern */
1141#undef HAVE__RES_EXTERN
1142
1143/* Define to 1 if you have the `__b64_ntop' function. */
1144#undef HAVE___B64_NTOP
1145
1146/* Define to 1 if you have the `__b64_pton' function. */
1147#undef HAVE___B64_PTON
1148
1149/* Define if compiler implements __FUNCTION__ */
1150#undef HAVE___FUNCTION__
1151
1152/* Define if libc defines __progname */
1153#undef HAVE___PROGNAME
1154
1155/* Fields in struct sockaddr_storage */
1156#undef HAVE___SS_FAMILY_IN_SS
1157
1158/* Define if __va_copy exists */
1159#undef HAVE___VA_COPY
1160
1161/* Define if compiler implements __func__ */
1162#undef HAVE___func__
1163
1164/* Define this if you are using the Heimdal version of Kerberos V5 */
1165#undef HEIMDAL
1166
1167/* Define if you need to use IP address instead of hostname in $DISPLAY */
1168#undef IPADDR_IN_DISPLAY
1169
1170/* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */
1171#undef IPV4_IN_IPV6
1172
1173/* Define if your system choked on IP TOS setting */
1174#undef IP_TOS_IS_BROKEN
1175
1176/* Define if you want Kerberos 5 support */
1177#undef KRB5
1178
1179/* Define if pututxline updates lastlog too */
1180#undef LASTLOG_WRITE_PUTUTXLINE
1181
1182/* Define if you want TCP Wrappers support */
1183#undef LIBWRAP
1184
1185/* Define to whatever link() returns for "not supported" if it doesn't return
1186 EOPNOTSUPP. */
1187#undef LINK_OPNOTSUPP_ERRNO
1188
1189/* max value of long long calculated by configure */
1190#undef LLONG_MAX
1191
1192/* min value of long long calculated by configure */
1193#undef LLONG_MIN
1194
1195/* Account locked with pw(1) */
1196#undef LOCKED_PASSWD_PREFIX
1197
1198/* String used in /etc/passwd to denote locked account */
1199#undef LOCKED_PASSWD_STRING
1200
1201/* String used in /etc/passwd to denote locked account */
1202#undef LOCKED_PASSWD_SUBSTR
1203
1204/* Some versions of /bin/login need the TERM supplied on the commandline */
1205#undef LOGIN_NEEDS_TERM
1206
1207/* Some systems need a utmpx entry for /bin/login to work */
1208#undef LOGIN_NEEDS_UTMPX
1209
1210/* Define if your login program cannot handle end of options ("--") */
1211#undef LOGIN_NO_ENDOPT
1212
1213/* If your header files don't define LOGIN_PROGRAM, then use this (detected)
1214 from environment and PATH */
1215#undef LOGIN_PROGRAM_FALLBACK
1216
1217/* Set this to your mail directory if you don't have maillock.h */
1218#undef MAIL_DIRECTORY
1219
1220/* Define on *nto-qnx systems */
1221#undef MISSING_FD_MASK
1222
1223/* Define on *nto-qnx systems */
1224#undef MISSING_HOWMANY
1225
1226/* Define on *nto-qnx systems */
1227#undef MISSING_NFDBITS
1228
1229/* Need setpgrp to acquire controlling tty */
1230#undef NEED_SETPGRP
1231
1232/* Define if the concept of ports only accessible to superusers isn't known */
1233#undef NO_IPPORT_RESERVED_CONCEPT
1234
1235/* Define if you don't want to use lastlog in session.c */
1236#undef NO_SSH_LASTLOG
1237
1238/* Define if X11 doesn't support AF_UNIX sockets on that system */
1239#undef NO_X11_UNIX_SOCKETS
1240
1241/* Define if EVP_DigestUpdate returns void */
1242#undef OPENSSL_EVP_DIGESTUPDATE_VOID
1243
1244/* libcrypto is missing AES 192 and 256 bit functions */
1245#undef OPENSSL_LOBOTOMISED_AES
1246
1247/* Define if you want OpenSSL's internally seeded PRNG only */
1248#undef OPENSSL_PRNG_ONLY
1249
1250/* Define to the address where bug reports for this package should be sent. */
1251#undef PACKAGE_BUGREPORT
1252
1253/* Define to the full name of this package. */
1254#undef PACKAGE_NAME
1255
1256/* Define to the full name and version of this package. */
1257#undef PACKAGE_STRING
1258
1259/* Define to the one symbol short name of this package. */
1260#undef PACKAGE_TARNAME
1261
1262/* Define to the version of this package. */
1263#undef PACKAGE_VERSION
1264
1265/* Define if you are using Solaris-derived PAM which passes pam_messages to
1266 the conversation function with an extra level of indirection */
1267#undef PAM_SUN_CODEBASE
1268
1269/* Work around problematic Linux PAM modules handling of PAM_TTY */
1270#undef PAM_TTY_KLUDGE
1271
1272/* must supply username to passwd */
1273#undef PASSWD_NEEDS_USERNAME
1274
1275/* Port number of PRNGD/EGD random number socket */
1276#undef PRNGD_PORT
1277
1278/* Location of PRNGD/EGD random number socket */
1279#undef PRNGD_SOCKET
1280
1281/* read(1) can return 0 for a non-closed fd */
1282#undef PTY_ZEROREAD
1283
1284/* Define if your platform breaks doing a seteuid before a setuid */
1285#undef SETEUID_BREAKS_SETUID
1286
1287/* The size of `char', as computed by sizeof. */
1288#undef SIZEOF_CHAR
1289
1290/* The size of `int', as computed by sizeof. */
1291#undef SIZEOF_INT
1292
1293/* The size of `long int', as computed by sizeof. */
1294#undef SIZEOF_LONG_INT
1295
1296/* The size of `long long int', as computed by sizeof. */
1297#undef SIZEOF_LONG_LONG_INT
1298
1299/* The size of `short int', as computed by sizeof. */
1300#undef SIZEOF_SHORT_INT
1301
1302/* Define if you want S/Key support */
1303#undef SKEY
1304
1305/* Define if your skeychallenge() function takes 4 arguments (NetBSD) */
1306#undef SKEYCHALLENGE_4ARG
1307
1308/* Define if you want smartcard support */
1309#undef SMARTCARD
1310
1311/* Define as const if snprintf() can declare const char *fmt */
1312#undef SNPRINTF_CONST
1313
1314/* Define to a Set Process Title type if your system is supported by
1315 bsd-setproctitle.c */
1316#undef SPT_TYPE
1317
1318/* Define if sshd somehow reacquires a controlling TTY after setsid() */
1319#undef SSHD_ACQUIRES_CTTY
1320
1321/* Define if pam_chauthtok wants real uid set to the unpriv'ed user */
1322#undef SSHPAM_CHAUTHTOK_NEEDS_RUID
1323
1324/* Use audit debugging module */
1325#undef SSH_AUDIT_EVENTS
1326
1327/* Windows is sensitive to read buffer size */
1328#undef SSH_IOBUFSZ
1329
1330/* non-privileged user for privilege separation */
1331#undef SSH_PRIVSEP_USER
1332
1333/* Use tunnel device compatibility to OpenBSD */
1334#undef SSH_TUN_COMPAT_AF
1335
1336/* Open tunnel devices the FreeBSD way */
1337#undef SSH_TUN_FREEBSD
1338
1339/* Open tunnel devices the Linux tun/tap way */
1340#undef SSH_TUN_LINUX
1341
1342/* No layer 2 tunnel support */
1343#undef SSH_TUN_NO_L2
1344
1345/* Open tunnel devices the OpenBSD way */
1346#undef SSH_TUN_OPENBSD
1347
1348/* Prepend the address family to IP tunnel traffic */
1349#undef SSH_TUN_PREPEND_AF
1350
1351/* Define to 1 if you have the ANSI C header files. */
1352#undef STDC_HEADERS
1353
1354/* Define if you want a different $PATH for the superuser */
1355#undef SUPERUSER_PATH
1356
1357/* syslog_r function is safe to use in in a signal handler */
1358#undef SYSLOG_R_SAFE_IN_SIGHAND
1359
1360/* Support passwords > 8 chars */
1361#undef UNIXWARE_LONG_PASSWORDS
1362
1363/* Specify default $PATH */
1364#undef USER_PATH
1365
1366/* Define this if you want to use libkafs' AFS support */
1367#undef USE_AFS
1368
1369/* Use BSM audit module */
1370#undef USE_BSM_AUDIT
1371
1372/* Use btmp to log bad logins */
1373#undef USE_BTMP
1374
1375/* Use libedit for sftp */
1376#undef USE_LIBEDIT
1377
1378/* Define if you want smartcard support using OpenSC */
1379#undef USE_OPENSC
1380
1381/* Enable OpenSSL engine support */
1382#undef USE_OPENSSL_ENGINE
1383
1384/* Define if you want to enable PAM support */
1385#undef USE_PAM
1386
1387/* Use PIPES instead of a socketpair() */
1388#undef USE_PIPES
1389
1390/* Define if you want smartcard support using sectok */
1391#undef USE_SECTOK
1392
1393/* Define if you have Solaris process contracts */
1394#undef USE_SOLARIS_PROCESS_CONTRACTS
1395
1396/* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */
1397#undef WITH_ABBREV_NO_TTY
1398
1399/* Define if you want to enable AIX4's authenticate function */
1400#undef WITH_AIXAUTHENTICATE
1401
1402/* Define if you have/want arrays (cluster-wide session managment, not C
1403 arrays) */
1404#undef WITH_IRIX_ARRAY
1405
1406/* Define if you want IRIX audit trails */
1407#undef WITH_IRIX_AUDIT
1408
1409/* Define if you want IRIX kernel jobs */
1410#undef WITH_IRIX_JOBS
1411
1412/* Define if you want IRIX project management */
1413#undef WITH_IRIX_PROJECT
1414
1415/* Define if you want SELinux support. */
1416#undef WITH_SELINUX
1417
1418/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
1419 significant byte first (like Motorola and SPARC, unlike Intel). */
1420#if defined AC_APPLE_UNIVERSAL_BUILD
1421# if defined __BIG_ENDIAN__
1422# define WORDS_BIGENDIAN 1
1423# endif
1424#else
1425# ifndef WORDS_BIGENDIAN
1426# undef WORDS_BIGENDIAN
1427# endif
1428#endif
1429
1430/* Define if xauth is found in your path */
1431#undef XAUTH_PATH
1432
1433/* Number of bits in a file offset, on hosts where this is settable. */
1434#undef _FILE_OFFSET_BITS
1435
1436/* Define for large files, on AIX-style hosts. */
1437#undef _LARGE_FILES
1438
1439/* log for bad login attempts */
1440#undef _PATH_BTMP
1441
1442/* Full path of your "passwd" program */
1443#undef _PATH_PASSWD_PROG
1444
1445/* Specify location of ssh.pid */
1446#undef _PATH_SSH_PIDDIR
1447
1448/* Define if we don't have struct __res_state in resolv.h */
1449#undef __res_state
1450
1451/* Define to `__inline__' or `__inline' if that's what the C compiler
1452 calls it, or to nothing if 'inline' is not supported under any name. */
1453#ifndef __cplusplus
1454#undef inline
1455#endif
1456
1457/* type to use in place of socklen_t if not defined */
1458#undef socklen_t
diff --git a/configure b/configure
new file mode 100755
index 000000000..416ea6f7d
--- /dev/null
+++ b/configure
@@ -0,0 +1,32287 @@
1#! /bin/sh
2# From configure.ac Revision: 1.427 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.62 for OpenSSH Portable.
5#
6# Report bugs to <openssh-unix-dev@mindrot.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84# Support unset when possible.
85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87else
88 as_unset=false
89fi
90
91
92# IFS
93# We need space, tab and new line, in precisely that order. Quoting is
94# there to prevent editors from complaining about space-tab.
95# (If _AS_PATH_WALK were called with IFS unset, it would disable word
96# splitting by setting IFS to empty value.)
97IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
100case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
109IFS=$as_save_IFS
110
111 ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121fi
122
123# Work around bugs in pre-3.0 UWIN ksh.
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# Required to use basename.
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141else
142 as_expr=false
143fi
144
145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147else
148 as_basename=false
149fi
150
151
152# Name of the executable.
153as_me=`$as_basename -- "$0" ||
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157$as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
171
172# CDPATH.
173$as_unset CDPATH
174
175
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182
183 if test $as_have_required = yes && (eval ":
184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
198}
199
200exitcode=0
201if as_func_success; then
202 :
203else
204 exitcode=1
205 echo as_func_success failed.
206fi
207
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211fi
212
213if as_func_ret_success; then
214 :
215else
216 exitcode=1
217 echo as_func_ret_success failed.
218fi
219
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227else
228 exitcode=1
229 echo positional parameters were not saved.
230fi
231
232test \$exitcode = 0) || { (exit 1); exit 1; }
233
234(
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239") 2> /dev/null; then
240 :
241else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
249 /*)
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254done
255IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278_ASEOF
279}; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $exitcode = 0) || { (exit 1); exit 1; }
348
349(
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355_ASEOF
356}; then
357 break
358fi
359
360fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442}
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
470 N
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
486}
487
488
489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
494
495ECHO_C= ECHO_N= ECHO_T=
496case `echo -n x` in
497-n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502*)
503 ECHO_N='-n';;
504esac
505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508else
509 as_expr=false
510fi
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
532 fi
533else
534 as_ln_s='cp -p'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
545
546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566fi
567as_executable_p=$as_test_x
568
569# Sed expression to map a string onto a valid CPP name.
570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572# Sed expression to map a string onto a valid variable name.
573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577exec 7<&0 </dev/null 6>&1
578
579# Name of the host.
580# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581# so uname gets run too.
582ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
584#
585# Initializations.
586#
587ac_default_prefix=/usr/local
588ac_clean_files=
589ac_config_libobj_dir=.
590LIBOBJS=
591cross_compiling=no
592subdirs=
593MFLAGS=
594MAKEFLAGS=
595SHELL=${CONFIG_SHELL-/bin/sh}
596
597# Identity of this package.
598PACKAGE_NAME='OpenSSH'
599PACKAGE_TARNAME='openssh'
600PACKAGE_VERSION='Portable'
601PACKAGE_STRING='OpenSSH Portable'
602PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
603
604ac_unique_file="ssh.c"
605# Factoring default headers for most tests.
606ac_includes_default="\
607#include <stdio.h>
608#ifdef HAVE_SYS_TYPES_H
609# include <sys/types.h>
610#endif
611#ifdef HAVE_SYS_STAT_H
612# include <sys/stat.h>
613#endif
614#ifdef STDC_HEADERS
615# include <stdlib.h>
616# include <stddef.h>
617#else
618# ifdef HAVE_STDLIB_H
619# include <stdlib.h>
620# endif
621#endif
622#ifdef HAVE_STRING_H
623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624# include <memory.h>
625# endif
626# include <string.h>
627#endif
628#ifdef HAVE_STRINGS_H
629# include <strings.h>
630#endif
631#ifdef HAVE_INTTYPES_H
632# include <inttypes.h>
633#endif
634#ifdef HAVE_STDINT_H
635# include <stdint.h>
636#endif
637#ifdef HAVE_UNISTD_H
638# include <unistd.h>
639#endif"
640
641ac_subst_vars='SHELL
642PATH_SEPARATOR
643PACKAGE_NAME
644PACKAGE_TARNAME
645PACKAGE_VERSION
646PACKAGE_STRING
647PACKAGE_BUGREPORT
648exec_prefix
649prefix
650program_transform_name
651bindir
652sbindir
653libexecdir
654datarootdir
655datadir
656sysconfdir
657sharedstatedir
658localstatedir
659includedir
660oldincludedir
661docdir
662infodir
663htmldir
664dvidir
665pdfdir
666psdir
667libdir
668localedir
669mandir
670DEFS
671ECHO_C
672ECHO_N
673ECHO_T
674LIBS
675build_alias
676host_alias
677target_alias
678CC
679CFLAGS
680LDFLAGS
681CPPFLAGS
682ac_ct_CC
683EXEEXT
684OBJEXT
685build
686build_cpu
687build_vendor
688build_os
689host
690host_cpu
691host_vendor
692host_os
693CPP
694GREP
695EGREP
696AWK
697RANLIB
698INSTALL_PROGRAM
699INSTALL_SCRIPT
700INSTALL_DATA
701AR
702CAT
703KILL
704PERL
705SED
706ENT
707TEST_MINUS_S_SH
708SH
709TEST_SHELL
710PATH_GROUPADD_PROG
711PATH_USERADD_PROG
712MAKE_PACKAGE_SUPPORTED
713STARTUP_SCRIPT_SHELL
714LOGIN_PROGRAM_FALLBACK
715PATH_PASSWD_PROG
716LD
717SSHDLIBS
718LIBEDIT
719INSTALL_SSH_RAND_HELPER
720SSH_PRIVSEP_USER
721PROG_LS
722PROG_NETSTAT
723PROG_ARP
724PROG_IFCONFIG
725PROG_JSTAT
726PROG_PS
727PROG_SAR
728PROG_W
729PROG_WHO
730PROG_LAST
731PROG_LASTLOG
732PROG_DF
733PROG_VMSTAT
734PROG_UPTIME
735PROG_IPCS
736PROG_TAIL
737INSTALL_SSH_PRNG_CMDS
738OPENSC_CONFIG
739KRB5CONF
740PRIVSEP_PATH
741xauth_path
742STRIP_OPT
743XAUTH_PATH
744NROFF
745MANTYPE
746mansubdir
747user_path
748piddir
749TEST_SSH_IPV6
750LIBOBJS
751LTLIBOBJS'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_largefile
756with_stackprotect
757with_rpath
758with_cflags
759with_cppflags
760with_ldflags
761with_libs
762with_Werror
763with_solaris_contracts
764with_osfsia
765with_zlib
766with_zlib_version_check
767with_skey
768with_tcp_wrappers
769with_libedit
770with_audit
771with_ssl_dir
772with_openssl_header_check
773with_ssl_engine
774with_pam
775with_rand_helper
776with_prngd_port
777with_prngd_socket
778with_entropy_timeout
779with_privsep_user
780with_sectok
781with_opensc
782with_selinux
783with_kerberos5
784with_privsep_path
785with_xauth
786enable_strip
787with_mantype
788with_md5_passwords
789with_shadow
790with_ipaddr_display
791enable_etc_default_login
792with_default_path
793with_superuser_path
794with_4in6
795with_bsd_auth
796with_pid_dir
797enable_lastlog
798enable_utmp
799enable_utmpx
800enable_wtmp
801enable_wtmpx
802enable_libutil
803enable_pututline
804enable_pututxline
805with_lastlog
806'
807 ac_precious_vars='build_alias
808host_alias
809target_alias
810CC
811CFLAGS
812LDFLAGS
813LIBS
814CPPFLAGS
815CPP'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
912
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
925 { (exit 1); exit 1; }; }
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
952 { (exit 1); exit 1; }; }
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957"enable_$ac_useropt"
958"*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162"with_$ac_useropt"
1163"*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1168
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1205Try \`$0 --help' for more information." >&2
1206 { (exit 1); exit 1; }; }
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1213 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1214 { (exit 1); exit 1; }; }
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 ;;
1225
1226 esac
1227done
1228
1229if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1232 { (exit 1); exit 1; }; }
1233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1239 { (exit 1); exit 1; }; } ;;
1240 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242fi
1243
1244# Check all directory arguments for consistency.
1245for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1249do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1263 { (exit 1); exit 1; }; }
1264done
1265
1266# There might be people who depend on the old broken behavior: `$host'
1267# used to hold the argument of --host etc.
1268# FIXME: To remove some day.
1269build=$build_alias
1270host=$host_alias
1271target=$target_alias
1272
1273# FIXME: To remove some day.
1274if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282fi
1283
1284ac_tool_prefix=
1285test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287test "$silent" = yes && exec 6>/dev/null
1288
1289
1290ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291ac_ls_di=`ls -di .` &&
1292ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1294 { (exit 1); exit 1; }; }
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1297 { (exit 1); exit 1; }; }
1298
1299
1300# Find the source files, if location was not specified.
1301if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309$as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331else
1332 ac_srcdir_defaulted=no
1333fi
1334if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1337 { (exit 1); exit 1; }; }
1338fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1342 { (exit 1); exit 1; }; }
1343 pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
1360
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368\`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
1388Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/openssh]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421_ACEOF
1422
1423 cat <<\_ACEOF
1424
1425System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428_ACEOF
1429fi
1430
1431if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of OpenSSH Portable:";;
1434 esac
1435 cat <<\_ACEOF
1436
1437Optional Features:
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --disable-largefile omit support for large files
1442 --disable-strip Disable calling strip(1) on install
1443 --disable-etc-default-login Disable using PATH from /etc/default/login no
1444 --disable-lastlog disable use of lastlog even if detected no
1445 --disable-utmp disable use of utmp even if detected no
1446 --disable-utmpx disable use of utmpx even if detected no
1447 --disable-wtmp disable use of wtmp even if detected no
1448 --disable-wtmpx disable use of wtmpx even if detected no
1449 --disable-libutil disable use of libutil (login() etc.) no
1450 --disable-pututline disable use of pututline() etc. (uwtmp) no
1451 --disable-pututxline disable use of pututxline() etc. (uwtmpx) no
1452
1453Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --without-stackprotect Don't use compiler's stack protection
1457 --without-rpath Disable auto-added -R linker paths
1458 --with-cflags Specify additional flags to pass to compiler
1459 --with-cppflags Specify additional flags to pass to preprocessor
1460 --with-ldflags Specify additional flags to pass to linker
1461 --with-libs Specify additional libraries to link with
1462 --with-Werror Build main code with -Werror
1463 --with-solaris-contracts Enable Solaris process contracts (experimental)
1464 --with-osfsia Enable Digital Unix SIA
1465 --with-zlib=PATH Use zlib in PATH
1466 --without-zlib-version-check Disable zlib version check
1467 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1468 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1469 --with-libedit[=PATH] Enable libedit support for sftp
1470 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1471 --with-ssl-dir=PATH Specify path to OpenSSL installation
1472 --without-openssl-header-check Disable OpenSSL version consistency check
1473 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1474 --with-pam Enable PAM support
1475 --with-rand-helper Use subprocess to gather strong randomness
1476 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1477 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1478 --with-entropy-timeout Specify entropy gathering command timeout (msec)
1479 --with-privsep-user=user Specify non-privileged user for privilege separation
1480 --with-sectok Enable smartcard support using libsectok
1481 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1482 --with-selinux Enable SELinux support
1483 --with-kerberos5=PATH Enable Kerberos 5 support
1484 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1485 --with-xauth=PATH Specify path to xauth program
1486 --with-mantype=man|cat|doc Set man page type
1487 --with-md5-passwords Enable use of MD5 passwords
1488 --without-shadow Disable shadow password support
1489 --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY
1490 --with-default-path= Specify default \$PATH environment for server
1491 --with-superuser-path= Specify different path for super-user
1492 --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses
1493 --with-bsd-auth Enable BSD auth support
1494 --with-pid-dir=PATH Specify location of ssh.pid file
1495 --with-lastlog=FILE|DIR specify lastlog location common locations
1496
1497Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506
1507Use these variables to override the choices made by `configure' or to help
1508it to find libraries and programs with nonstandard names/locations.
1509
1510Report bugs to <openssh-unix-dev@mindrot.org>.
1511_ACEOF
1512ac_status=$?
1513fi
1514
1515if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 continue
1521 ac_builddir=.
1522
1523case "$ac_dir" in
1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525*)
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533esac
1534ac_abs_top_builddir=$ac_pwd
1535ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536# for backward compatibility:
1537ac_top_builddir=$ac_top_build_prefix
1538
1539case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552esac
1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1568fi
1569
1570test -n "$ac_init_help" && exit $ac_status
1571if $ac_init_version; then
1572 cat <<\_ACEOF
1573OpenSSH configure Portable
1574generated by GNU Autoconf 2.62
1575
1576Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15772002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581 exit
1582fi
1583cat >config.log <<_ACEOF
1584This file contains any messages produced by compilers while
1585running configure, to aid debugging if configure makes a mistake.
1586
1587It was created by OpenSSH $as_me Portable, which was
1588generated by GNU Autoconf 2.62. Invocation command line was
1589
1590 $ $0 $@
1591
1592_ACEOF
1593exec 5>>config.log
1594{
1595cat <<_ASUNAME
1596## --------- ##
1597## Platform. ##
1598## --------- ##
1599
1600hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605
1606/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608
1609/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616
1617_ASUNAME
1618
1619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620for as_dir in $PATH
1621do
1622 IFS=$as_save_IFS
1623 test -z "$as_dir" && as_dir=.
1624 $as_echo "PATH: $as_dir"
1625done
1626IFS=$as_save_IFS
1627
1628} >&5
1629
1630cat >&5 <<_ACEOF
1631
1632
1633## ----------- ##
1634## Core tests. ##
1635## ----------- ##
1636
1637_ACEOF
1638
1639
1640# Keep a trace of the command line.
1641# Strip out --no-create and --no-recursion so they do not pile up.
1642# Strip out --silent because we don't want to record it for future runs.
1643# Also quote any args containing shell meta-characters.
1644# Make two passes to allow for proper duplicate-argument suppression.
1645ac_configure_args=
1646ac_configure_args0=
1647ac_configure_args1=
1648ac_must_keep_next=false
1649for ac_pass in 1 2
1650do
1651 for ac_arg
1652 do
1653 case $ac_arg in
1654 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1656 | -silent | --silent | --silen | --sile | --sil)
1657 continue ;;
1658 *\'*)
1659 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1660 esac
1661 case $ac_pass in
1662 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 2)
1664 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true; then
1666 ac_must_keep_next=false # Got value, back to normal.
1667 else
1668 case $ac_arg in
1669 *=* | --config-cache | -C | -disable-* | --disable-* \
1670 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1671 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1672 | -with-* | --with-* | -without-* | --without-* | --x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1675 esac
1676 ;;
1677 -* ) ac_must_keep_next=true ;;
1678 esac
1679 fi
1680 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 ;;
1682 esac
1683 done
1684done
1685$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1686$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687
1688# When interrupted or exit'd, cleanup temporary files, and complete
1689# config.log. We remove comments because anyway the quotes in there
1690# would cause problems or look ugly.
1691# WARNING: Use '\'' to represent an apostrophe within the trap.
1692# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1695 {
1696 echo
1697
1698 cat <<\_ASBOX
1699## ---------------- ##
1700## Cache variables. ##
1701## ---------------- ##
1702_ASBOX
1703 echo
1704 # The following way of writing the cache mishandles newlines in values,
1705(
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1708 case $ac_val in #(
1709 *${as_nl}*)
1710 case $ac_var in #(
1711 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1713 esac
1714 case $ac_var in #(
1715 _ | IFS | as_nl) ;; #(
1716 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1717 *) $as_unset $ac_var ;;
1718 esac ;;
1719 esac
1720 done
1721 (set) 2>&1 |
1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1723 *${as_nl}ac_space=\ *)
1724 sed -n \
1725 "s/'\''/'\''\\\\'\'''\''/g;
1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727 ;; #(
1728 *)
1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1730 ;;
1731 esac |
1732 sort
1733)
1734 echo
1735
1736 cat <<\_ASBOX
1737## ----------------- ##
1738## Output variables. ##
1739## ----------------- ##
1740_ASBOX
1741 echo
1742 for ac_var in $ac_subst_vars
1743 do
1744 eval ac_val=\$$ac_var
1745 case $ac_val in
1746 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 esac
1748 $as_echo "$ac_var='\''$ac_val'\''"
1749 done | sort
1750 echo
1751
1752 if test -n "$ac_subst_files"; then
1753 cat <<\_ASBOX
1754## ------------------- ##
1755## File substitutions. ##
1756## ------------------- ##
1757_ASBOX
1758 echo
1759 for ac_var in $ac_subst_files
1760 do
1761 eval ac_val=\$$ac_var
1762 case $ac_val in
1763 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 esac
1765 $as_echo "$ac_var='\''$ac_val'\''"
1766 done | sort
1767 echo
1768 fi
1769
1770 if test -s confdefs.h; then
1771 cat <<\_ASBOX
1772## ----------- ##
1773## confdefs.h. ##
1774## ----------- ##
1775_ASBOX
1776 echo
1777 cat confdefs.h
1778 echo
1779 fi
1780 test "$ac_signal" != 0 &&
1781 $as_echo "$as_me: caught signal $ac_signal"
1782 $as_echo "$as_me: exit $exit_status"
1783 } >&5
1784 rm -f core *.core core.conftest.* &&
1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1786 exit $exit_status
1787' 0
1788for ac_signal in 1 2 13 15; do
1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1790done
1791ac_signal=0
1792
1793# confdefs.h avoids OS command line length limits that DEFS can exceed.
1794rm -f -r conftest* confdefs.h
1795
1796# Predefined preprocessor variables.
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_NAME "$PACKAGE_NAME"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_VERSION "$PACKAGE_VERSION"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_STRING "$PACKAGE_STRING"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1820_ACEOF
1821
1822
1823# Let the site file select an alternate cache file if it wants to.
1824# Prefer an explicitly selected file to automatically selected ones.
1825ac_site_file1=NONE
1826ac_site_file2=NONE
1827if test -n "$CONFIG_SITE"; then
1828 ac_site_file1=$CONFIG_SITE
1829elif test "x$prefix" != xNONE; then
1830 ac_site_file1=$prefix/share/config.site
1831 ac_site_file2=$prefix/etc/config.site
1832else
1833 ac_site_file1=$ac_default_prefix/share/config.site
1834 ac_site_file2=$ac_default_prefix/etc/config.site
1835fi
1836for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1837do
1838 test "x$ac_site_file" = xNONE && continue
1839 if test -r "$ac_site_file"; then
1840 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1841$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1842 sed 's/^/| /' "$ac_site_file" >&5
1843 . "$ac_site_file"
1844 fi
1845done
1846
1847if test -r "$cache_file"; then
1848 # Some versions of bash will fail to source /dev/null (special
1849 # files actually), so we avoid doing that.
1850 if test -f "$cache_file"; then
1851 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1852$as_echo "$as_me: loading cache $cache_file" >&6;}
1853 case $cache_file in
1854 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855 *) . "./$cache_file";;
1856 esac
1857 fi
1858else
1859 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1860$as_echo "$as_me: creating cache $cache_file" >&6;}
1861 >$cache_file
1862fi
1863
1864# Check that the precious variables saved in the cache have kept the same
1865# value.
1866ac_cache_corrupted=false
1867for ac_var in $ac_precious_vars; do
1868 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869 eval ac_new_set=\$ac_env_${ac_var}_set
1870 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871 eval ac_new_val=\$ac_env_${ac_var}_value
1872 case $ac_old_set,$ac_new_set in
1873 set,)
1874 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1875$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,set)
1878 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1879$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1881 ,);;
1882 *)
1883 if test "x$ac_old_val" != "x$ac_new_val"; then
1884 # differences in whitespace do not lead to failure.
1885 ac_old_val_w=`echo x $ac_old_val`
1886 ac_new_val_w=`echo x $ac_new_val`
1887 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1888 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 ac_cache_corrupted=:
1891 else
1892 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1893$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1894 eval $ac_var=\$ac_old_val
1895 fi
1896 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1897$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1898 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1899$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1900 fi;;
1901 esac
1902 # Pass precious variables to config.status.
1903 if test "$ac_new_set" = set; then
1904 case $ac_new_val in
1905 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 *) ac_arg=$ac_var=$ac_new_val ;;
1907 esac
1908 case " $ac_configure_args " in
1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 esac
1912 fi
1913done
1914if $ac_cache_corrupted; then
1915 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919 { (exit 1); exit 1; }; }
1920fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954
1955
1956ac_config_headers="$ac_config_headers config.h"
1957
1958ac_ext=c
1959ac_cpp='$CPP $CPPFLAGS'
1960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963if test -n "$ac_tool_prefix"; then
1964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1965set dummy ${ac_tool_prefix}gcc; ac_word=$2
1966{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1967$as_echo_n "checking for $ac_word... " >&6; }
1968if test "${ac_cv_prog_CC+set}" = set; then
1969 $as_echo_n "(cached) " >&6
1970else
1971 if test -n "$CC"; then
1972 ac_cv_prog_CC="$CC" # Let the user override the test.
1973else
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1982 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1984 fi
1985done
1986done
1987IFS=$as_save_IFS
1988
1989fi
1990fi
1991CC=$ac_cv_prog_CC
1992if test -n "$CC"; then
1993 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1994$as_echo "$CC" >&6; }
1995else
1996 { $as_echo "$as_me:$LINENO: result: no" >&5
1997$as_echo "no" >&6; }
1998fi
1999
2000
2001fi
2002if test -z "$ac_cv_prog_CC"; then
2003 ac_ct_CC=$CC
2004 # Extract the first word of "gcc", so it can be a program name with args.
2005set dummy gcc; ac_word=$2
2006{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2007$as_echo_n "checking for $ac_word... " >&6; }
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009 $as_echo_n "(cached) " >&6
2010else
2011 if test -n "$ac_ct_CC"; then
2012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017 IFS=$as_save_IFS
2018 test -z "$as_dir" && as_dir=.
2019 for ac_exec_ext in '' $ac_executable_extensions; do
2020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021 ac_cv_prog_ac_ct_CC="gcc"
2022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 break 2
2024 fi
2025done
2026done
2027IFS=$as_save_IFS
2028
2029fi
2030fi
2031ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032if test -n "$ac_ct_CC"; then
2033 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034$as_echo "$ac_ct_CC" >&6; }
2035else
2036 { $as_echo "$as_me:$LINENO: result: no" >&5
2037$as_echo "no" >&6; }
2038fi
2039
2040 if test "x$ac_ct_CC" = x; then
2041 CC=""
2042 else
2043 case $cross_compiling:$ac_tool_warned in
2044yes:)
2045{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2046whose name does not start with the host triplet. If you think this
2047configuration is useful to you, please write to autoconf@gnu.org." >&5
2048$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2049whose name does not start with the host triplet. If you think this
2050configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2051ac_tool_warned=yes ;;
2052esac
2053 CC=$ac_ct_CC
2054 fi
2055else
2056 CC="$ac_cv_prog_CC"
2057fi
2058
2059if test -z "$CC"; then
2060 if test -n "$ac_tool_prefix"; then
2061 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2062set dummy ${ac_tool_prefix}cc; ac_word=$2
2063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2064$as_echo_n "checking for $ac_word... " >&6; }
2065if test "${ac_cv_prog_CC+set}" = set; then
2066 $as_echo_n "(cached) " >&6
2067else
2068 if test -n "$CC"; then
2069 ac_cv_prog_CC="$CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2078 ac_cv_prog_CC="${ac_tool_prefix}cc"
2079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2081 fi
2082done
2083done
2084IFS=$as_save_IFS
2085
2086fi
2087fi
2088CC=$ac_cv_prog_CC
2089if test -n "$CC"; then
2090 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2091$as_echo "$CC" >&6; }
2092else
2093 { $as_echo "$as_me:$LINENO: result: no" >&5
2094$as_echo "no" >&6; }
2095fi
2096
2097
2098 fi
2099fi
2100if test -z "$CC"; then
2101 # Extract the first word of "cc", so it can be a program name with args.
2102set dummy cc; ac_word=$2
2103{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2104$as_echo_n "checking for $ac_word... " >&6; }
2105if test "${ac_cv_prog_CC+set}" = set; then
2106 $as_echo_n "(cached) " >&6
2107else
2108 if test -n "$CC"; then
2109 ac_cv_prog_CC="$CC" # Let the user override the test.
2110else
2111 ac_prog_rejected=no
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2119 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2120 ac_prog_rejected=yes
2121 continue
2122 fi
2123 ac_cv_prog_CC="cc"
2124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2126 fi
2127done
2128done
2129IFS=$as_save_IFS
2130
2131if test $ac_prog_rejected = yes; then
2132 # We found a bogon in the path, so make sure we never use it.
2133 set dummy $ac_cv_prog_CC
2134 shift
2135 if test $# != 0; then
2136 # We chose a different compiler from the bogus one.
2137 # However, it has the same basename, so the bogon will be chosen
2138 # first if we set CC to just the basename; use the full file name.
2139 shift
2140 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2141 fi
2142fi
2143fi
2144fi
2145CC=$ac_cv_prog_CC
2146if test -n "$CC"; then
2147 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2148$as_echo "$CC" >&6; }
2149else
2150 { $as_echo "$as_me:$LINENO: result: no" >&5
2151$as_echo "no" >&6; }
2152fi
2153
2154
2155fi
2156if test -z "$CC"; then
2157 if test -n "$ac_tool_prefix"; then
2158 for ac_prog in cl.exe
2159 do
2160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2162{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2163$as_echo_n "checking for $ac_word... " >&6; }
2164if test "${ac_cv_prog_CC+set}" = set; then
2165 $as_echo_n "(cached) " >&6
2166else
2167 if test -n "$CC"; then
2168 ac_cv_prog_CC="$CC" # Let the user override the test.
2169else
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2180 fi
2181done
2182done
2183IFS=$as_save_IFS
2184
2185fi
2186fi
2187CC=$ac_cv_prog_CC
2188if test -n "$CC"; then
2189 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2190$as_echo "$CC" >&6; }
2191else
2192 { $as_echo "$as_me:$LINENO: result: no" >&5
2193$as_echo "no" >&6; }
2194fi
2195
2196
2197 test -n "$CC" && break
2198 done
2199fi
2200if test -z "$CC"; then
2201 ac_ct_CC=$CC
2202 for ac_prog in cl.exe
2203do
2204 # Extract the first word of "$ac_prog", so it can be a program name with args.
2205set dummy $ac_prog; ac_word=$2
2206{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2207$as_echo_n "checking for $ac_word... " >&6; }
2208if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209 $as_echo_n "(cached) " >&6
2210else
2211 if test -n "$ac_ct_CC"; then
2212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2213else
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_ac_ct_CC="$ac_prog"
2222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2224 fi
2225done
2226done
2227IFS=$as_save_IFS
2228
2229fi
2230fi
2231ac_ct_CC=$ac_cv_prog_ac_ct_CC
2232if test -n "$ac_ct_CC"; then
2233 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2234$as_echo "$ac_ct_CC" >&6; }
2235else
2236 { $as_echo "$as_me:$LINENO: result: no" >&5
2237$as_echo "no" >&6; }
2238fi
2239
2240
2241 test -n "$ac_ct_CC" && break
2242done
2243
2244 if test "x$ac_ct_CC" = x; then
2245 CC=""
2246 else
2247 case $cross_compiling:$ac_tool_warned in
2248yes:)
2249{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2250whose name does not start with the host triplet. If you think this
2251configuration is useful to you, please write to autoconf@gnu.org." >&5
2252$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2253whose name does not start with the host triplet. If you think this
2254configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2255ac_tool_warned=yes ;;
2256esac
2257 CC=$ac_ct_CC
2258 fi
2259fi
2260
2261fi
2262
2263
2264test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2265See \`config.log' for more details." >&5
2266$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2267See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2269
2270# Provide some information about the compiler.
2271$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2272set X $ac_compile
2273ac_compiler=$2
2274{ (ac_try="$ac_compiler --version >&5"
2275case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
2279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2280$as_echo "$ac_try_echo") >&5
2281 (eval "$ac_compiler --version >&5") 2>&5
2282 ac_status=$?
2283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285{ (ac_try="$ac_compiler -v >&5"
2286case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289esac
2290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2291$as_echo "$ac_try_echo") >&5
2292 (eval "$ac_compiler -v >&5") 2>&5
2293 ac_status=$?
2294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }
2296{ (ac_try="$ac_compiler -V >&5"
2297case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2302$as_echo "$ac_try_echo") >&5
2303 (eval "$ac_compiler -V >&5") 2>&5
2304 ac_status=$?
2305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2307
2308cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h. */
2314
2315int
2316main ()
2317{
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323ac_clean_files_save=$ac_clean_files
2324ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2325# Try to create an executable without -o first, disregard a.out.
2326# It will help us diagnose broken compilers, and finding out an intuition
2327# of exeext.
2328{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2329$as_echo_n "checking for C compiler default output file name... " >&6; }
2330ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2331
2332# The possible output files:
2333ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2334
2335ac_rmfiles=
2336for ac_file in $ac_files
2337do
2338 case $ac_file in
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2340 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2341 esac
2342done
2343rm -f $ac_rmfiles
2344
2345if { (ac_try="$ac_link_default"
2346case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349esac
2350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2351$as_echo "$ac_try_echo") >&5
2352 (eval "$ac_link_default") 2>&5
2353 ac_status=$?
2354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2357# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2358# in a Makefile. We should not override ac_cv_exeext if it was cached,
2359# so that the user can short-circuit this test for compilers unknown to
2360# Autoconf.
2361for ac_file in $ac_files ''
2362do
2363 test -f "$ac_file" || continue
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2366 ;;
2367 [ab].out )
2368 # We found the default executable, but exeext='' is most
2369 # certainly right.
2370 break;;
2371 *.* )
2372 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2373 then :; else
2374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375 fi
2376 # We set ac_cv_exeext here because the later test for it is not
2377 # safe: cross compilers may not add the suffix if given an `-o'
2378 # argument, so we may need to know it at that point already.
2379 # Even if this section looks crufty: it has the advantage of
2380 # actually working.
2381 break;;
2382 * )
2383 break;;
2384 esac
2385done
2386test "$ac_cv_exeext" = no && ac_cv_exeext=
2387
2388else
2389 ac_file=''
2390fi
2391
2392{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2393$as_echo "$ac_file" >&6; }
2394if test -z "$ac_file"; then
2395 $as_echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2399See \`config.log' for more details." >&5
2400$as_echo "$as_me: error: C compiler cannot create executables
2401See \`config.log' for more details." >&2;}
2402 { (exit 77); exit 77; }; }
2403fi
2404
2405ac_exeext=$ac_cv_exeext
2406
2407# Check that the compiler produces executables we can run. If not, either
2408# the compiler is broken, or we cross compile.
2409{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2410$as_echo_n "checking whether the C compiler works... " >&6; }
2411# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2412# If not cross compiling, check that we can run a simple program.
2413if test "$cross_compiling" != yes; then
2414 if { ac_try='./$ac_file'
2415 { (case "(($ac_try" in
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2418esac
2419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2420$as_echo "$ac_try_echo") >&5
2421 (eval "$ac_try") 2>&5
2422 ac_status=$?
2423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 cross_compiling=no
2426 else
2427 if test "$cross_compiling" = maybe; then
2428 cross_compiling=yes
2429 else
2430 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2431If you meant to cross compile, use \`--host'.
2432See \`config.log' for more details." >&5
2433$as_echo "$as_me: error: cannot run C compiled programs.
2434If you meant to cross compile, use \`--host'.
2435See \`config.log' for more details." >&2;}
2436 { (exit 1); exit 1; }; }
2437 fi
2438 fi
2439fi
2440{ $as_echo "$as_me:$LINENO: result: yes" >&5
2441$as_echo "yes" >&6; }
2442
2443rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2444ac_clean_files=$ac_clean_files_save
2445# Check that the compiler produces executables we can run. If not, either
2446# the compiler is broken, or we cross compile.
2447{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2448$as_echo_n "checking whether we are cross compiling... " >&6; }
2449{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2450$as_echo "$cross_compiling" >&6; }
2451
2452{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2453$as_echo_n "checking for suffix of executables... " >&6; }
2454if { (ac_try="$ac_link"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2460$as_echo "$ac_try_echo") >&5
2461 (eval "$ac_link") 2>&5
2462 ac_status=$?
2463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; then
2465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2466# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2467# work properly (i.e., refer to `conftest.exe'), while it won't with
2468# `rm'.
2469for ac_file in conftest.exe conftest conftest.*; do
2470 test -f "$ac_file" || continue
2471 case $ac_file in
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 break;;
2475 * ) break;;
2476 esac
2477done
2478else
2479 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480See \`config.log' for more details." >&5
2481$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2484fi
2485
2486rm -f conftest$ac_cv_exeext
2487{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488$as_echo "$ac_cv_exeext" >&6; }
2489
2490rm -f conftest.$ac_ext
2491EXEEXT=$ac_cv_exeext
2492ac_exeext=$EXEEXT
2493{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494$as_echo_n "checking for suffix of object files... " >&6; }
2495if test "${ac_cv_objext+set}" = set; then
2496 $as_echo_n "(cached) " >&6
2497else
2498 cat >conftest.$ac_ext <<_ACEOF
2499/* confdefs.h. */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
2503/* end confdefs.h. */
2504
2505int
2506main ()
2507{
2508
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513rm -f conftest.o conftest.obj
2514if { (ac_try="$ac_compile"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2520$as_echo "$ac_try_echo") >&5
2521 (eval "$ac_compile") 2>&5
2522 ac_status=$?
2523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; then
2525 for ac_file in conftest.o conftest.obj conftest.*; do
2526 test -f "$ac_file" || continue;
2527 case $ac_file in
2528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2529 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2530 break;;
2531 esac
2532done
2533else
2534 $as_echo "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
2536
2537{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2538See \`config.log' for more details." >&5
2539$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2540See \`config.log' for more details." >&2;}
2541 { (exit 1); exit 1; }; }
2542fi
2543
2544rm -f conftest.$ac_cv_objext conftest.$ac_ext
2545fi
2546{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2547$as_echo "$ac_cv_objext" >&6; }
2548OBJEXT=$ac_cv_objext
2549ac_objext=$OBJEXT
2550{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2551$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2552if test "${ac_cv_c_compiler_gnu+set}" = set; then
2553 $as_echo_n "(cached) " >&6
2554else
2555 cat >conftest.$ac_ext <<_ACEOF
2556/* confdefs.h. */
2557_ACEOF
2558cat confdefs.h >>conftest.$ac_ext
2559cat >>conftest.$ac_ext <<_ACEOF
2560/* end confdefs.h. */
2561
2562int
2563main ()
2564{
2565#ifndef __GNUC__
2566 choke me
2567#endif
2568
2569 ;
2570 return 0;
2571}
2572_ACEOF
2573rm -f conftest.$ac_objext
2574if { (ac_try="$ac_compile"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2580$as_echo "$ac_try_echo") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest.$ac_objext; then
2591 ac_compiler_gnu=yes
2592else
2593 $as_echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 ac_compiler_gnu=no
2597fi
2598
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601
2602fi
2603{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2604$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2605if test $ac_compiler_gnu = yes; then
2606 GCC=yes
2607else
2608 GCC=
2609fi
2610ac_test_CFLAGS=${CFLAGS+set}
2611ac_save_CFLAGS=$CFLAGS
2612{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2613$as_echo_n "checking whether $CC accepts -g... " >&6; }
2614if test "${ac_cv_prog_cc_g+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2616else
2617 ac_save_c_werror_flag=$ac_c_werror_flag
2618 ac_c_werror_flag=yes
2619 ac_cv_prog_cc_g=no
2620 CFLAGS="-g"
2621 cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h. */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
2627
2628int
2629main ()
2630{
2631
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (ac_try="$ac_compile"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2643$as_echo "$ac_try_echo") >&5
2644 (eval "$ac_compile") 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } && {
2651 test -z "$ac_c_werror_flag" ||
2652 test ! -s conftest.err
2653 } && test -s conftest.$ac_objext; then
2654 ac_cv_prog_cc_g=yes
2655else
2656 $as_echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 CFLAGS=""
2660 cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h. */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h. */
2666
2667int
2668main ()
2669{
2670
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext
2676if { (ac_try="$ac_compile"
2677case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680esac
2681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2682$as_echo "$ac_try_echo") >&5
2683 (eval "$ac_compile") 2>conftest.er1
2684 ac_status=$?
2685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
2688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } && {
2690 test -z "$ac_c_werror_flag" ||
2691 test ! -s conftest.err
2692 } && test -s conftest.$ac_objext; then
2693 :
2694else
2695 $as_echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 ac_c_werror_flag=$ac_save_c_werror_flag
2699 CFLAGS="-g"
2700 cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
2706
2707int
2708main ()
2709{
2710
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715rm -f conftest.$ac_objext
2716if { (ac_try="$ac_compile"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2722$as_echo "$ac_try_echo") >&5
2723 (eval "$ac_compile") 2>conftest.er1
2724 ac_status=$?
2725 grep -v '^ *+' conftest.er1 >conftest.err
2726 rm -f conftest.er1
2727 cat conftest.err >&5
2728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } && {
2730 test -z "$ac_c_werror_flag" ||
2731 test ! -s conftest.err
2732 } && test -s conftest.$ac_objext; then
2733 ac_cv_prog_cc_g=yes
2734else
2735 $as_echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738
2739fi
2740
2741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742fi
2743
2744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745fi
2746
2747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 ac_c_werror_flag=$ac_save_c_werror_flag
2749fi
2750{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2751$as_echo "$ac_cv_prog_cc_g" >&6; }
2752if test "$ac_test_CFLAGS" = set; then
2753 CFLAGS=$ac_save_CFLAGS
2754elif test $ac_cv_prog_cc_g = yes; then
2755 if test "$GCC" = yes; then
2756 CFLAGS="-g -O2"
2757 else
2758 CFLAGS="-g"
2759 fi
2760else
2761 if test "$GCC" = yes; then
2762 CFLAGS="-O2"
2763 else
2764 CFLAGS=
2765 fi
2766fi
2767{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2768$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2769if test "${ac_cv_prog_cc_c89+set}" = set; then
2770 $as_echo_n "(cached) " >&6
2771else
2772 ac_cv_prog_cc_c89=no
2773ac_save_CC=$CC
2774cat >conftest.$ac_ext <<_ACEOF
2775/* confdefs.h. */
2776_ACEOF
2777cat confdefs.h >>conftest.$ac_ext
2778cat >>conftest.$ac_ext <<_ACEOF
2779/* end confdefs.h. */
2780#include <stdarg.h>
2781#include <stdio.h>
2782#include <sys/types.h>
2783#include <sys/stat.h>
2784/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2785struct buf { int x; };
2786FILE * (*rcsopen) (struct buf *, struct stat *, int);
2787static char *e (p, i)
2788 char **p;
2789 int i;
2790{
2791 return p[i];
2792}
2793static char *f (char * (*g) (char **, int), char **p, ...)
2794{
2795 char *s;
2796 va_list v;
2797 va_start (v,p);
2798 s = g (p, va_arg (v,int));
2799 va_end (v);
2800 return s;
2801}
2802
2803/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2804 function prototypes and stuff, but not '\xHH' hex character constants.
2805 These don't provoke an error unfortunately, instead are silently treated
2806 as 'x'. The following induces an error, until -std is added to get
2807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2808 array size at least. It's necessary to write '\x00'==0 to get something
2809 that's true only with -std. */
2810int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2811
2812/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2813 inside strings and character constants. */
2814#define FOO(x) 'x'
2815int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2816
2817int test (int i, double x);
2818struct s1 {int (*f) (int a);};
2819struct s2 {int (*f) (double a);};
2820int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2821int argc;
2822char **argv;
2823int
2824main ()
2825{
2826return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2833do
2834 CC="$ac_save_CC $ac_arg"
2835 rm -f conftest.$ac_objext
2836if { (ac_try="$ac_compile"
2837case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842$as_echo "$ac_try_echo") >&5
2843 (eval "$ac_compile") 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } && {
2850 test -z "$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2852 } && test -s conftest.$ac_objext; then
2853 ac_cv_prog_cc_c89=$ac_arg
2854else
2855 $as_echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858
2859fi
2860
2861rm -f core conftest.err conftest.$ac_objext
2862 test "x$ac_cv_prog_cc_c89" != "xno" && break
2863done
2864rm -f conftest.$ac_ext
2865CC=$ac_save_CC
2866
2867fi
2868# AC_CACHE_VAL
2869case "x$ac_cv_prog_cc_c89" in
2870 x)
2871 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2872$as_echo "none needed" >&6; } ;;
2873 xno)
2874 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2875$as_echo "unsupported" >&6; } ;;
2876 *)
2877 CC="$CC $ac_cv_prog_cc_c89"
2878 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2879$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2880esac
2881
2882
2883ac_ext=c
2884ac_cpp='$CPP $CPPFLAGS'
2885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888
2889ac_aux_dir=
2890for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2891 if test -f "$ac_dir/install-sh"; then
2892 ac_aux_dir=$ac_dir
2893 ac_install_sh="$ac_aux_dir/install-sh -c"
2894 break
2895 elif test -f "$ac_dir/install.sh"; then
2896 ac_aux_dir=$ac_dir
2897 ac_install_sh="$ac_aux_dir/install.sh -c"
2898 break
2899 elif test -f "$ac_dir/shtool"; then
2900 ac_aux_dir=$ac_dir
2901 ac_install_sh="$ac_aux_dir/shtool install -c"
2902 break
2903 fi
2904done
2905if test -z "$ac_aux_dir"; then
2906 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2907$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2908 { (exit 1); exit 1; }; }
2909fi
2910
2911# These three variables are undocumented and unsupported,
2912# and are intended to be withdrawn in a future Autoconf release.
2913# They can cause serious problems if a builder's source tree is in a directory
2914# whose full name contains unusual characters.
2915ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2916ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2917ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2918
2919
2920# Make sure we can run config.sub.
2921$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2922 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2923$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2924 { (exit 1); exit 1; }; }
2925
2926{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2927$as_echo_n "checking build system type... " >&6; }
2928if test "${ac_cv_build+set}" = set; then
2929 $as_echo_n "(cached) " >&6
2930else
2931 ac_build_alias=$build_alias
2932test "x$ac_build_alias" = x &&
2933 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2934test "x$ac_build_alias" = x &&
2935 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2936$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2937 { (exit 1); exit 1; }; }
2938ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2939 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2940$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2941 { (exit 1); exit 1; }; }
2942
2943fi
2944{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2945$as_echo "$ac_cv_build" >&6; }
2946case $ac_cv_build in
2947*-*-*) ;;
2948*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2949$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2950 { (exit 1); exit 1; }; };;
2951esac
2952build=$ac_cv_build
2953ac_save_IFS=$IFS; IFS='-'
2954set x $ac_cv_build
2955shift
2956build_cpu=$1
2957build_vendor=$2
2958shift; shift
2959# Remember, the first character of IFS is used to create $*,
2960# except with old shells:
2961build_os=$*
2962IFS=$ac_save_IFS
2963case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2964
2965
2966{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2967$as_echo_n "checking host system type... " >&6; }
2968if test "${ac_cv_host+set}" = set; then
2969 $as_echo_n "(cached) " >&6
2970else
2971 if test "x$host_alias" = x; then
2972 ac_cv_host=$ac_cv_build
2973else
2974 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2975 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2976$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2977 { (exit 1); exit 1; }; }
2978fi
2979
2980fi
2981{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2982$as_echo "$ac_cv_host" >&6; }
2983case $ac_cv_host in
2984*-*-*) ;;
2985*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2986$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2987 { (exit 1); exit 1; }; };;
2988esac
2989host=$ac_cv_host
2990ac_save_IFS=$IFS; IFS='-'
2991set x $ac_cv_host
2992shift
2993host_cpu=$1
2994host_vendor=$2
2995shift; shift
2996# Remember, the first character of IFS is used to create $*,
2997# except with old shells:
2998host_os=$*
2999IFS=$ac_save_IFS
3000case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3001
3002
3003
3004ac_ext=c
3005ac_cpp='$CPP $CPPFLAGS'
3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3010$as_echo_n "checking how to run the C preprocessor... " >&6; }
3011# On Suns, sometimes $CPP names a directory.
3012if test -n "$CPP" && test -d "$CPP"; then
3013 CPP=
3014fi
3015if test -z "$CPP"; then
3016 if test "${ac_cv_prog_CPP+set}" = set; then
3017 $as_echo_n "(cached) " >&6
3018else
3019 # Double quotes because CPP needs to be expanded
3020 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3021 do
3022 ac_preproc_ok=false
3023for ac_c_preproc_warn_flag in '' yes
3024do
3025 # Use a header file that comes with gcc, so configuring glibc
3026 # with a fresh cross-compiler works.
3027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3028 # <limits.h> exists even on freestanding compilers.
3029 # On the NeXT, cc -E runs the code through the compiler's parser,
3030 # not just through cpp. "Syntax error" is here to catch this case.
3031 cat >conftest.$ac_ext <<_ACEOF
3032/* confdefs.h. */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h. */
3037#ifdef __STDC__
3038# include <limits.h>
3039#else
3040# include <assert.h>
3041#endif
3042 Syntax error
3043_ACEOF
3044if { (ac_try="$ac_cpp conftest.$ac_ext"
3045case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048esac
3049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050$as_echo "$ac_try_echo") >&5
3051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3052 ac_status=$?
3053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
3056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } >/dev/null && {
3058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 }; then
3061 :
3062else
3063 $as_echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 # Broken: fails on valid input.
3067continue
3068fi
3069
3070rm -f conftest.err conftest.$ac_ext
3071
3072 # OK, works on sane cases. Now check whether nonexistent headers
3073 # can be detected and how.
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080#include <ac_nonexistent.h>
3081_ACEOF
3082if { (ac_try="$ac_cpp conftest.$ac_ext"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088$as_echo "$ac_try_echo") >&5
3089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } >/dev/null && {
3096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 }; then
3099 # Broken: success on invalid input.
3100continue
3101else
3102 $as_echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 # Passes both tests.
3106ac_preproc_ok=:
3107break
3108fi
3109
3110rm -f conftest.err conftest.$ac_ext
3111
3112done
3113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114rm -f conftest.err conftest.$ac_ext
3115if $ac_preproc_ok; then
3116 break
3117fi
3118
3119 done
3120 ac_cv_prog_CPP=$CPP
3121
3122fi
3123 CPP=$ac_cv_prog_CPP
3124else
3125 ac_cv_prog_CPP=$CPP
3126fi
3127{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3128$as_echo "$CPP" >&6; }
3129ac_preproc_ok=false
3130for ac_c_preproc_warn_flag in '' yes
3131do
3132 # Use a header file that comes with gcc, so configuring glibc
3133 # with a fresh cross-compiler works.
3134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135 # <limits.h> exists even on freestanding compilers.
3136 # On the NeXT, cc -E runs the code through the compiler's parser,
3137 # not just through cpp. "Syntax error" is here to catch this case.
3138 cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h. */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h. */
3144#ifdef __STDC__
3145# include <limits.h>
3146#else
3147# include <assert.h>
3148#endif
3149 Syntax error
3150_ACEOF
3151if { (ac_try="$ac_cpp conftest.$ac_ext"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3157$as_echo "$ac_try_echo") >&5
3158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } >/dev/null && {
3165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3166 test ! -s conftest.err
3167 }; then
3168 :
3169else
3170 $as_echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 # Broken: fails on valid input.
3174continue
3175fi
3176
3177rm -f conftest.err conftest.$ac_ext
3178
3179 # OK, works on sane cases. Now check whether nonexistent headers
3180 # can be detected and how.
3181 cat >conftest.$ac_ext <<_ACEOF
3182/* confdefs.h. */
3183_ACEOF
3184cat confdefs.h >>conftest.$ac_ext
3185cat >>conftest.$ac_ext <<_ACEOF
3186/* end confdefs.h. */
3187#include <ac_nonexistent.h>
3188_ACEOF
3189if { (ac_try="$ac_cpp conftest.$ac_ext"
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3195$as_echo "$ac_try_echo") >&5
3196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } >/dev/null && {
3203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 }; then
3206 # Broken: success on invalid input.
3207continue
3208else
3209 $as_echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 # Passes both tests.
3213ac_preproc_ok=:
3214break
3215fi
3216
3217rm -f conftest.err conftest.$ac_ext
3218
3219done
3220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221rm -f conftest.err conftest.$ac_ext
3222if $ac_preproc_ok; then
3223 :
3224else
3225 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3226See \`config.log' for more details." >&5
3227$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3228See \`config.log' for more details." >&2;}
3229 { (exit 1); exit 1; }; }
3230fi
3231
3232ac_ext=c
3233ac_cpp='$CPP $CPPFLAGS'
3234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238
3239{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3240$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3241if test "${ac_cv_path_GREP+set}" = set; then
3242 $as_echo_n "(cached) " >&6
3243else
3244 if test -z "$GREP"; then
3245 ac_path_GREP_found=false
3246 # Loop through the user's path and test for each of PROGNAME-LIST
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3249do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_prog in grep ggrep; do
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3255 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3256# Check for GNU ac_path_GREP and select it if it is found.
3257 # Check for GNU $ac_path_GREP
3258case `"$ac_path_GREP" --version 2>&1` in
3259*GNU*)
3260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3261*)
3262 ac_count=0
3263 $as_echo_n 0123456789 >"conftest.in"
3264 while :
3265 do
3266 cat "conftest.in" "conftest.in" >"conftest.tmp"
3267 mv "conftest.tmp" "conftest.in"
3268 cp "conftest.in" "conftest.nl"
3269 $as_echo 'GREP' >> "conftest.nl"
3270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3272 ac_count=`expr $ac_count + 1`
3273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3274 # Best one so far, save it but keep looking for a better one
3275 ac_cv_path_GREP="$ac_path_GREP"
3276 ac_path_GREP_max=$ac_count
3277 fi
3278 # 10*(2^10) chars as input seems more than enough
3279 test $ac_count -gt 10 && break
3280 done
3281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3282esac
3283
3284 $ac_path_GREP_found && break 3
3285 done
3286 done
3287done
3288IFS=$as_save_IFS
3289 if test -z "$ac_cv_path_GREP"; then
3290 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3291$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3292 { (exit 1); exit 1; }; }
3293 fi
3294else
3295 ac_cv_path_GREP=$GREP
3296fi
3297
3298fi
3299{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3300$as_echo "$ac_cv_path_GREP" >&6; }
3301 GREP="$ac_cv_path_GREP"
3302
3303
3304{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3305$as_echo_n "checking for egrep... " >&6; }
3306if test "${ac_cv_path_EGREP+set}" = set; then
3307 $as_echo_n "(cached) " >&6
3308else
3309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3310 then ac_cv_path_EGREP="$GREP -E"
3311 else
3312 if test -z "$EGREP"; then
3313 ac_path_EGREP_found=false
3314 # Loop through the user's path and test for each of PROGNAME-LIST
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_prog in egrep; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3323 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3324# Check for GNU ac_path_EGREP and select it if it is found.
3325 # Check for GNU $ac_path_EGREP
3326case `"$ac_path_EGREP" --version 2>&1` in
3327*GNU*)
3328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3329*)
3330 ac_count=0
3331 $as_echo_n 0123456789 >"conftest.in"
3332 while :
3333 do
3334 cat "conftest.in" "conftest.in" >"conftest.tmp"
3335 mv "conftest.tmp" "conftest.in"
3336 cp "conftest.in" "conftest.nl"
3337 $as_echo 'EGREP' >> "conftest.nl"
3338 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3340 ac_count=`expr $ac_count + 1`
3341 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3342 # Best one so far, save it but keep looking for a better one
3343 ac_cv_path_EGREP="$ac_path_EGREP"
3344 ac_path_EGREP_max=$ac_count
3345 fi
3346 # 10*(2^10) chars as input seems more than enough
3347 test $ac_count -gt 10 && break
3348 done
3349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3350esac
3351
3352 $ac_path_EGREP_found && break 3
3353 done
3354 done
3355done
3356IFS=$as_save_IFS
3357 if test -z "$ac_cv_path_EGREP"; then
3358 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3359$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3360 { (exit 1); exit 1; }; }
3361 fi
3362else
3363 ac_cv_path_EGREP=$EGREP
3364fi
3365
3366 fi
3367fi
3368{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3369$as_echo "$ac_cv_path_EGREP" >&6; }
3370 EGREP="$ac_cv_path_EGREP"
3371
3372
3373{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3374$as_echo_n "checking for ANSI C header files... " >&6; }
3375if test "${ac_cv_header_stdc+set}" = set; then
3376 $as_echo_n "(cached) " >&6
3377else
3378 cat >conftest.$ac_ext <<_ACEOF
3379/* confdefs.h. */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h. */
3384#include <stdlib.h>
3385#include <stdarg.h>
3386#include <string.h>
3387#include <float.h>
3388
3389int
3390main ()
3391{
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (ac_try="$ac_compile"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404$as_echo "$ac_try_echo") >&5
3405 (eval "$ac_compile") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } && {
3412 test -z "$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 } && test -s conftest.$ac_objext; then
3415 ac_cv_header_stdc=yes
3416else
3417 $as_echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 ac_cv_header_stdc=no
3421fi
3422
3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424
3425if test $ac_cv_header_stdc = yes; then
3426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433#include <string.h>
3434
3435_ACEOF
3436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 $EGREP "memchr" >/dev/null 2>&1; then
3438 :
3439else
3440 ac_cv_header_stdc=no
3441fi
3442rm -f conftest*
3443
3444fi
3445
3446if test $ac_cv_header_stdc = yes; then
3447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3448 cat >conftest.$ac_ext <<_ACEOF
3449/* confdefs.h. */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h. */
3454#include <stdlib.h>
3455
3456_ACEOF
3457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3458 $EGREP "free" >/dev/null 2>&1; then
3459 :
3460else
3461 ac_cv_header_stdc=no
3462fi
3463rm -f conftest*
3464
3465fi
3466
3467if test $ac_cv_header_stdc = yes; then
3468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3469 if test "$cross_compiling" = yes; then
3470 :
3471else
3472 cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h. */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h. */
3478#include <ctype.h>
3479#include <stdlib.h>
3480#if ((' ' & 0x0FF) == 0x020)
3481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3483#else
3484# define ISLOWER(c) \
3485 (('a' <= (c) && (c) <= 'i') \
3486 || ('j' <= (c) && (c) <= 'r') \
3487 || ('s' <= (c) && (c) <= 'z'))
3488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3489#endif
3490
3491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3492int
3493main ()
3494{
3495 int i;
3496 for (i = 0; i < 256; i++)
3497 if (XOR (islower (i), ISLOWER (i))
3498 || toupper (i) != TOUPPER (i))
3499 return 2;
3500 return 0;
3501}
3502_ACEOF
3503rm -f conftest$ac_exeext
3504if { (ac_try="$ac_link"
3505case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510$as_echo "$ac_try_echo") >&5
3511 (eval "$ac_link") 2>&5
3512 ac_status=$?
3513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3515 { (case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520$as_echo "$ac_try_echo") >&5
3521 (eval "$ac_try") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 :
3526else
3527 $as_echo "$as_me: program exited with status $ac_status" >&5
3528$as_echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531( exit $ac_status )
3532ac_cv_header_stdc=no
3533fi
3534rm -rf conftest.dSYM
3535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3536fi
3537
3538
3539fi
3540fi
3541{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3542$as_echo "$ac_cv_header_stdc" >&6; }
3543if test $ac_cv_header_stdc = yes; then
3544
3545cat >>confdefs.h <<\_ACEOF
3546#define STDC_HEADERS 1
3547_ACEOF
3548
3549fi
3550
3551# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3562 inttypes.h stdint.h unistd.h
3563do
3564as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3565{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3566$as_echo_n "checking for $ac_header... " >&6; }
3567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3568 $as_echo_n "(cached) " >&6
3569else
3570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
3576$ac_includes_default
3577
3578#include <$ac_header>
3579_ACEOF
3580rm -f conftest.$ac_objext
3581if { (ac_try="$ac_compile"
3582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3587$as_echo "$ac_try_echo") >&5
3588 (eval "$ac_compile") 2>conftest.er1
3589 ac_status=$?
3590 grep -v '^ *+' conftest.er1 >conftest.err
3591 rm -f conftest.er1
3592 cat conftest.err >&5
3593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } && {
3595 test -z "$ac_c_werror_flag" ||
3596 test ! -s conftest.err
3597 } && test -s conftest.$ac_objext; then
3598 eval "$as_ac_Header=yes"
3599else
3600 $as_echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603 eval "$as_ac_Header=no"
3604fi
3605
3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607fi
3608ac_res=`eval 'as_val=${'$as_ac_Header'}
3609 $as_echo "$as_val"'`
3610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3611$as_echo "$ac_res" >&6; }
3612if test `eval 'as_val=${'$as_ac_Header'}
3613 $as_echo "$as_val"'` = yes; then
3614 cat >>confdefs.h <<_ACEOF
3615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3616_ACEOF
3617
3618fi
3619
3620done
3621
3622
3623
3624 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3625$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3626if test "${ac_cv_c_bigendian+set}" = set; then
3627 $as_echo_n "(cached) " >&6
3628else
3629 ac_cv_c_bigendian=unknown
3630 # See if we're dealing with a universal compiler.
3631 cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
3637#ifndef __APPLE_CC__
3638 not a universal capable compiler
3639 #endif
3640 typedef int dummy;
3641
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (ac_try="$ac_compile"
3645case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3650$as_echo "$ac_try_echo") >&5
3651 (eval "$ac_compile") 2>conftest.er1
3652 ac_status=$?
3653 grep -v '^ *+' conftest.er1 >conftest.err
3654 rm -f conftest.er1
3655 cat conftest.err >&5
3656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } && {
3658 test -z "$ac_c_werror_flag" ||
3659 test ! -s conftest.err
3660 } && test -s conftest.$ac_objext; then
3661
3662 # Check for potential -arch flags. It is not universal unless
3663 # there are some -arch flags. Note that *ppc* also matches
3664 # ppc64. This check is also rather less than ideal.
3665 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
3666 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
3667 esac
3668else
3669 $as_echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672
3673fi
3674
3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 if test $ac_cv_c_bigendian = unknown; then
3677 # See if sys/param.h defines the BYTE_ORDER macro.
3678 cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h. */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h. */
3684#include <sys/types.h>
3685 #include <sys/param.h>
3686
3687int
3688main ()
3689{
3690#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3691 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3692 && LITTLE_ENDIAN)
3693 bogus endian macros
3694 #endif
3695
3696 ;
3697 return 0;
3698}
3699_ACEOF
3700rm -f conftest.$ac_objext
3701if { (ac_try="$ac_compile"
3702case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705esac
3706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707$as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 # It does; now see whether it defined to BIG_ENDIAN or not.
3719 cat >conftest.$ac_ext <<_ACEOF
3720/* confdefs.h. */
3721_ACEOF
3722cat confdefs.h >>conftest.$ac_ext
3723cat >>conftest.$ac_ext <<_ACEOF
3724/* end confdefs.h. */
3725#include <sys/types.h>
3726 #include <sys/param.h>
3727
3728int
3729main ()
3730{
3731#if BYTE_ORDER != BIG_ENDIAN
3732 not big endian
3733 #endif
3734
3735 ;
3736 return 0;
3737}
3738_ACEOF
3739rm -f conftest.$ac_objext
3740if { (ac_try="$ac_compile"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746$as_echo "$ac_try_echo") >&5
3747 (eval "$ac_compile") 2>conftest.er1
3748 ac_status=$?
3749 grep -v '^ *+' conftest.er1 >conftest.err
3750 rm -f conftest.er1
3751 cat conftest.err >&5
3752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && {
3754 test -z "$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3756 } && test -s conftest.$ac_objext; then
3757 ac_cv_c_bigendian=yes
3758else
3759 $as_echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_cv_c_bigendian=no
3763fi
3764
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766else
3767 $as_echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770
3771fi
3772
3773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 fi
3775 if test $ac_cv_c_bigendian = unknown; then
3776 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3777 cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
3783#include <limits.h>
3784
3785int
3786main ()
3787{
3788#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3789 bogus endian macros
3790 #endif
3791
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext
3797if { (ac_try="$ac_compile"
3798case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801esac
3802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3803$as_echo "$ac_try_echo") >&5
3804 (eval "$ac_compile") 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } && {
3811 test -z "$ac_c_werror_flag" ||
3812 test ! -s conftest.err
3813 } && test -s conftest.$ac_objext; then
3814 # It does; now see whether it defined to _BIG_ENDIAN or not.
3815 cat >conftest.$ac_ext <<_ACEOF
3816/* confdefs.h. */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
3820/* end confdefs.h. */
3821#include <limits.h>
3822
3823int
3824main ()
3825{
3826#ifndef _BIG_ENDIAN
3827 not big endian
3828 #endif
3829
3830 ;
3831 return 0;
3832}
3833_ACEOF
3834rm -f conftest.$ac_objext
3835if { (ac_try="$ac_compile"
3836case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839esac
3840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841$as_echo "$ac_try_echo") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3852 ac_cv_c_bigendian=yes
3853else
3854 $as_echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 ac_cv_c_bigendian=no
3858fi
3859
3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861else
3862 $as_echo "$as_me: failed program was:" >&5
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
3865
3866fi
3867
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 fi
3870 if test $ac_cv_c_bigendian = unknown; then
3871 # Compile a test program.
3872 if test "$cross_compiling" = yes; then
3873 # Try to guess by grepping values from an object file.
3874 cat >conftest.$ac_ext <<_ACEOF
3875/* confdefs.h. */
3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h. */
3880short int ascii_mm[] =
3881 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3882 short int ascii_ii[] =
3883 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3884 int use_ascii (int i) {
3885 return ascii_mm[i] + ascii_ii[i];
3886 }
3887 short int ebcdic_ii[] =
3888 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3889 short int ebcdic_mm[] =
3890 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3891 int use_ebcdic (int i) {
3892 return ebcdic_mm[i] + ebcdic_ii[i];
3893 }
3894 extern int foo;
3895
3896int
3897main ()
3898{
3899return use_ascii (foo) == use_ebcdic (foo);
3900 ;
3901 return 0;
3902}
3903_ACEOF
3904rm -f conftest.$ac_objext
3905if { (ac_try="$ac_compile"
3906case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909esac
3910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911$as_echo "$ac_try_echo") >&5
3912 (eval "$ac_compile") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest.$ac_objext; then
3922 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
3923 ac_cv_c_bigendian=yes
3924 fi
3925 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3926 if test "$ac_cv_c_bigendian" = unknown; then
3927 ac_cv_c_bigendian=no
3928 else
3929 # finding both strings is unlikely to happen, but who knows?
3930 ac_cv_c_bigendian=unknown
3931 fi
3932 fi
3933else
3934 $as_echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937
3938fi
3939
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941else
3942 cat >conftest.$ac_ext <<_ACEOF
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
3948$ac_includes_default
3949int
3950main ()
3951{
3952
3953 /* Are we little or big endian? From Harbison&Steele. */
3954 union
3955 {
3956 long int l;
3957 char c[sizeof (long int)];
3958 } u;
3959 u.l = 1;
3960 return u.c[sizeof (long int) - 1] == 1;
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest$ac_exeext
3967if { (ac_try="$ac_link"
3968case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973$as_echo "$ac_try_echo") >&5
3974 (eval "$ac_link") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3978 { (case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981esac
3982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3983$as_echo "$ac_try_echo") >&5
3984 (eval "$ac_try") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; }; then
3988 ac_cv_c_bigendian=no
3989else
3990 $as_echo "$as_me: program exited with status $ac_status" >&5
3991$as_echo "$as_me: failed program was:" >&5
3992sed 's/^/| /' conftest.$ac_ext >&5
3993
3994( exit $ac_status )
3995ac_cv_c_bigendian=yes
3996fi
3997rm -rf conftest.dSYM
3998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3999fi
4000
4001
4002 fi
4003fi
4004{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4005$as_echo "$ac_cv_c_bigendian" >&6; }
4006 case $ac_cv_c_bigendian in #(
4007 yes)
4008 cat >>confdefs.h <<\_ACEOF
4009#define WORDS_BIGENDIAN 1
4010_ACEOF
4011;; #(
4012 no)
4013 ;; #(
4014 universal)
4015
4016cat >>confdefs.h <<\_ACEOF
4017#define AC_APPLE_UNIVERSAL_BUILD 1
4018_ACEOF
4019
4020 ;; #(
4021 *)
4022 { { $as_echo "$as_me:$LINENO: error: unknown endianness
4023 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4024$as_echo "$as_me: error: unknown endianness
4025 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4026 { (exit 1); exit 1; }; } ;;
4027 esac
4028
4029
4030# Checks for programs.
4031for ac_prog in gawk mawk nawk awk
4032do
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034set dummy $ac_prog; ac_word=$2
4035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
4037if test "${ac_cv_prog_AWK+set}" = set; then
4038 $as_echo_n "(cached) " >&6
4039else
4040 if test -n "$AWK"; then
4041 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4042else
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_AWK="$ac_prog"
4051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054done
4055done
4056IFS=$as_save_IFS
4057
4058fi
4059fi
4060AWK=$ac_cv_prog_AWK
4061if test -n "$AWK"; then
4062 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4063$as_echo "$AWK" >&6; }
4064else
4065 { $as_echo "$as_me:$LINENO: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069
4070 test -n "$AWK" && break
4071done
4072
4073ac_ext=c
4074ac_cpp='$CPP $CPPFLAGS'
4075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4079$as_echo_n "checking how to run the C preprocessor... " >&6; }
4080# On Suns, sometimes $CPP names a directory.
4081if test -n "$CPP" && test -d "$CPP"; then
4082 CPP=
4083fi
4084if test -z "$CPP"; then
4085 if test "${ac_cv_prog_CPP+set}" = set; then
4086 $as_echo_n "(cached) " >&6
4087else
4088 # Double quotes because CPP needs to be expanded
4089 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4090 do
4091 ac_preproc_ok=false
4092for ac_c_preproc_warn_flag in '' yes
4093do
4094 # Use a header file that comes with gcc, so configuring glibc
4095 # with a fresh cross-compiler works.
4096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4097 # <limits.h> exists even on freestanding compilers.
4098 # On the NeXT, cc -E runs the code through the compiler's parser,
4099 # not just through cpp. "Syntax error" is here to catch this case.
4100 cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h. */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h. */
4106#ifdef __STDC__
4107# include <limits.h>
4108#else
4109# include <assert.h>
4110#endif
4111 Syntax error
4112_ACEOF
4113if { (ac_try="$ac_cpp conftest.$ac_ext"
4114case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117esac
4118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4119$as_echo "$ac_try_echo") >&5
4120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } >/dev/null && {
4127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 }; then
4130 :
4131else
4132 $as_echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 # Broken: fails on valid input.
4136continue
4137fi
4138
4139rm -f conftest.err conftest.$ac_ext
4140
4141 # OK, works on sane cases. Now check whether nonexistent headers
4142 # can be detected and how.
4143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
4149#include <ac_nonexistent.h>
4150_ACEOF
4151if { (ac_try="$ac_cpp conftest.$ac_ext"
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157$as_echo "$ac_try_echo") >&5
4158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } >/dev/null && {
4165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 }; then
4168 # Broken: success on invalid input.
4169continue
4170else
4171 $as_echo "$as_me: failed program was:" >&5
4172sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 # Passes both tests.
4175ac_preproc_ok=:
4176break
4177fi
4178
4179rm -f conftest.err conftest.$ac_ext
4180
4181done
4182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4183rm -f conftest.err conftest.$ac_ext
4184if $ac_preproc_ok; then
4185 break
4186fi
4187
4188 done
4189 ac_cv_prog_CPP=$CPP
4190
4191fi
4192 CPP=$ac_cv_prog_CPP
4193else
4194 ac_cv_prog_CPP=$CPP
4195fi
4196{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4197$as_echo "$CPP" >&6; }
4198ac_preproc_ok=false
4199for ac_c_preproc_warn_flag in '' yes
4200do
4201 # Use a header file that comes with gcc, so configuring glibc
4202 # with a fresh cross-compiler works.
4203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204 # <limits.h> exists even on freestanding compilers.
4205 # On the NeXT, cc -E runs the code through the compiler's parser,
4206 # not just through cpp. "Syntax error" is here to catch this case.
4207 cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h. */
4213#ifdef __STDC__
4214# include <limits.h>
4215#else
4216# include <assert.h>
4217#endif
4218 Syntax error
4219_ACEOF
4220if { (ac_try="$ac_cpp conftest.$ac_ext"
4221case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4226$as_echo "$ac_try_echo") >&5
4227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4228 ac_status=$?
4229 grep -v '^ *+' conftest.er1 >conftest.err
4230 rm -f conftest.er1
4231 cat conftest.err >&5
4232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } >/dev/null && {
4234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 }; then
4237 :
4238else
4239 $as_echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 # Broken: fails on valid input.
4243continue
4244fi
4245
4246rm -f conftest.err conftest.$ac_ext
4247
4248 # OK, works on sane cases. Now check whether nonexistent headers
4249 # can be detected and how.
4250 cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256#include <ac_nonexistent.h>
4257_ACEOF
4258if { (ac_try="$ac_cpp conftest.$ac_ext"
4259case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
4263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264$as_echo "$ac_try_echo") >&5
4265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } >/dev/null && {
4272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4273 test ! -s conftest.err
4274 }; then
4275 # Broken: success on invalid input.
4276continue
4277else
4278 $as_echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281 # Passes both tests.
4282ac_preproc_ok=:
4283break
4284fi
4285
4286rm -f conftest.err conftest.$ac_ext
4287
4288done
4289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4290rm -f conftest.err conftest.$ac_ext
4291if $ac_preproc_ok; then
4292 :
4293else
4294 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4295See \`config.log' for more details." >&5
4296$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4297See \`config.log' for more details." >&2;}
4298 { (exit 1); exit 1; }; }
4299fi
4300
4301ac_ext=c
4302ac_cpp='$CPP $CPPFLAGS'
4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306
4307if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4309set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4311$as_echo_n "checking for $ac_word... " >&6; }
4312if test "${ac_cv_prog_RANLIB+set}" = set; then
4313 $as_echo_n "(cached) " >&6
4314else
4315 if test -n "$RANLIB"; then
4316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4328 fi
4329done
4330done
4331IFS=$as_save_IFS
4332
4333fi
4334fi
4335RANLIB=$ac_cv_prog_RANLIB
4336if test -n "$RANLIB"; then
4337 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4338$as_echo "$RANLIB" >&6; }
4339else
4340 { $as_echo "$as_me:$LINENO: result: no" >&5
4341$as_echo "no" >&6; }
4342fi
4343
4344
4345fi
4346if test -z "$ac_cv_prog_RANLIB"; then
4347 ac_ct_RANLIB=$RANLIB
4348 # Extract the first word of "ranlib", so it can be a program name with args.
4349set dummy ranlib; ac_word=$2
4350{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4351$as_echo_n "checking for $ac_word... " >&6; }
4352if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4353 $as_echo_n "(cached) " >&6
4354else
4355 if test -n "$ac_ct_RANLIB"; then
4356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_RANLIB="ranlib"
4366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4368 fi
4369done
4370done
4371IFS=$as_save_IFS
4372
4373fi
4374fi
4375ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4376if test -n "$ac_ct_RANLIB"; then
4377 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4378$as_echo "$ac_ct_RANLIB" >&6; }
4379else
4380 { $as_echo "$as_me:$LINENO: result: no" >&5
4381$as_echo "no" >&6; }
4382fi
4383
4384 if test "x$ac_ct_RANLIB" = x; then
4385 RANLIB=":"
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388yes:)
4389{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4390whose name does not start with the host triplet. If you think this
4391configuration is useful to you, please write to autoconf@gnu.org." >&5
4392$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4393whose name does not start with the host triplet. If you think this
4394configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4395ac_tool_warned=yes ;;
4396esac
4397 RANLIB=$ac_ct_RANLIB
4398 fi
4399else
4400 RANLIB="$ac_cv_prog_RANLIB"
4401fi
4402
4403# Find a good install program. We prefer a C program (faster),
4404# so one script is as good as another. But avoid the broken or
4405# incompatible versions:
4406# SysV /etc/install, /usr/sbin/install
4407# SunOS /usr/etc/install
4408# IRIX /sbin/install
4409# AIX /bin/install
4410# AmigaOS /C/install, which installs bootblocks on floppy discs
4411# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4412# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4413# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4414# OS/2's system install, which has a completely different semantic
4415# ./install, which can be erroneously created by make from ./install.sh.
4416# Reject install programs that cannot install multiple files.
4417{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4418$as_echo_n "checking for a BSD-compatible install... " >&6; }
4419if test -z "$INSTALL"; then
4420if test "${ac_cv_path_install+set}" = set; then
4421 $as_echo_n "(cached) " >&6
4422else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 # Account for people who put trailing slashes in PATH elements.
4429case $as_dir/ in
4430 ./ | .// | /cC/* | \
4431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4432 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4433 /usr/ucb/* ) ;;
4434 *)
4435 # OSF1 and SCO ODT 3.0 have their own names for install.
4436 # Don't use installbsd from OSF since it installs stuff as root
4437 # by default.
4438 for ac_prog in ginstall scoinst install; do
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4441 if test $ac_prog = install &&
4442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4443 # AIX install. It has an incompatible calling convention.
4444 :
4445 elif test $ac_prog = install &&
4446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4447 # program-specific install script used by HP pwplus--don't use.
4448 :
4449 else
4450 rm -rf conftest.one conftest.two conftest.dir
4451 echo one > conftest.one
4452 echo two > conftest.two
4453 mkdir conftest.dir
4454 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4455 test -s conftest.one && test -s conftest.two &&
4456 test -s conftest.dir/conftest.one &&
4457 test -s conftest.dir/conftest.two
4458 then
4459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4460 break 3
4461 fi
4462 fi
4463 fi
4464 done
4465 done
4466 ;;
4467esac
4468
4469done
4470IFS=$as_save_IFS
4471
4472rm -rf conftest.one conftest.two conftest.dir
4473
4474fi
4475 if test "${ac_cv_path_install+set}" = set; then
4476 INSTALL=$ac_cv_path_install
4477 else
4478 # As a last resort, use the slow shell script. Don't cache a
4479 # value for INSTALL within a source directory, because that will
4480 # break other packages using the cache if that directory is
4481 # removed, or if the value is a relative name.
4482 INSTALL=$ac_install_sh
4483 fi
4484fi
4485{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4486$as_echo "$INSTALL" >&6; }
4487
4488# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4489# It thinks the first close brace ends the variable substitution.
4490test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4491
4492test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4493
4494test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4495
4496{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4497$as_echo_n "checking for egrep... " >&6; }
4498if test "${ac_cv_path_EGREP+set}" = set; then
4499 $as_echo_n "(cached) " >&6
4500else
4501 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4502 then ac_cv_path_EGREP="$GREP -E"
4503 else
4504 if test -z "$EGREP"; then
4505 ac_path_EGREP_found=false
4506 # Loop through the user's path and test for each of PROGNAME-LIST
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_prog in egrep; do
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4515 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4516# Check for GNU ac_path_EGREP and select it if it is found.
4517 # Check for GNU $ac_path_EGREP
4518case `"$ac_path_EGREP" --version 2>&1` in
4519*GNU*)
4520 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4521*)
4522 ac_count=0
4523 $as_echo_n 0123456789 >"conftest.in"
4524 while :
4525 do
4526 cat "conftest.in" "conftest.in" >"conftest.tmp"
4527 mv "conftest.tmp" "conftest.in"
4528 cp "conftest.in" "conftest.nl"
4529 $as_echo 'EGREP' >> "conftest.nl"
4530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4532 ac_count=`expr $ac_count + 1`
4533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4534 # Best one so far, save it but keep looking for a better one
4535 ac_cv_path_EGREP="$ac_path_EGREP"
4536 ac_path_EGREP_max=$ac_count
4537 fi
4538 # 10*(2^10) chars as input seems more than enough
4539 test $ac_count -gt 10 && break
4540 done
4541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542esac
4543
4544 $ac_path_EGREP_found && break 3
4545 done
4546 done
4547done
4548IFS=$as_save_IFS
4549 if test -z "$ac_cv_path_EGREP"; then
4550 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4551$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4552 { (exit 1); exit 1; }; }
4553 fi
4554else
4555 ac_cv_path_EGREP=$EGREP
4556fi
4557
4558 fi
4559fi
4560{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4561$as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4563
4564
4565# Extract the first word of "ar", so it can be a program name with args.
4566set dummy ar; ac_word=$2
4567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4568$as_echo_n "checking for $ac_word... " >&6; }
4569if test "${ac_cv_path_AR+set}" = set; then
4570 $as_echo_n "(cached) " >&6
4571else
4572 case $AR in
4573 [\\/]* | ?:[\\/]*)
4574 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4575 ;;
4576 *)
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578for as_dir in $PATH
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588done
4589done
4590IFS=$as_save_IFS
4591
4592 ;;
4593esac
4594fi
4595AR=$ac_cv_path_AR
4596if test -n "$AR"; then
4597 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4598$as_echo "$AR" >&6; }
4599else
4600 { $as_echo "$as_me:$LINENO: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
4603
4604
4605# Extract the first word of "cat", so it can be a program name with args.
4606set dummy cat; ac_word=$2
4607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_path_CAT+set}" = set; then
4610 $as_echo_n "(cached) " >&6
4611else
4612 case $CAT in
4613 [\\/]* | ?:[\\/]*)
4614 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4615 ;;
4616 *)
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628done
4629done
4630IFS=$as_save_IFS
4631
4632 ;;
4633esac
4634fi
4635CAT=$ac_cv_path_CAT
4636if test -n "$CAT"; then
4637 { $as_echo "$as_me:$LINENO: result: $CAT" >&5
4638$as_echo "$CAT" >&6; }
4639else
4640 { $as_echo "$as_me:$LINENO: result: no" >&5
4641$as_echo "no" >&6; }
4642fi
4643
4644
4645# Extract the first word of "kill", so it can be a program name with args.
4646set dummy kill; ac_word=$2
4647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if test "${ac_cv_path_KILL+set}" = set; then
4650 $as_echo_n "(cached) " >&6
4651else
4652 case $KILL in
4653 [\\/]* | ?:[\\/]*)
4654 ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4655 ;;
4656 *)
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670IFS=$as_save_IFS
4671
4672 ;;
4673esac
4674fi
4675KILL=$ac_cv_path_KILL
4676if test -n "$KILL"; then
4677 { $as_echo "$as_me:$LINENO: result: $KILL" >&5
4678$as_echo "$KILL" >&6; }
4679else
4680 { $as_echo "$as_me:$LINENO: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685for ac_prog in perl5 perl
4686do
4687 # Extract the first word of "$ac_prog", so it can be a program name with args.
4688set dummy $ac_prog; ac_word=$2
4689{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if test "${ac_cv_path_PERL+set}" = set; then
4692 $as_echo_n "(cached) " >&6
4693else
4694 case $PERL in
4695 [\\/]* | ?:[\\/]*)
4696 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4697 ;;
4698 *)
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
4711done
4712IFS=$as_save_IFS
4713
4714 ;;
4715esac
4716fi
4717PERL=$ac_cv_path_PERL
4718if test -n "$PERL"; then
4719 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
4720$as_echo "$PERL" >&6; }
4721else
4722 { $as_echo "$as_me:$LINENO: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726
4727 test -n "$PERL" && break
4728done
4729
4730# Extract the first word of "sed", so it can be a program name with args.
4731set dummy sed; ac_word=$2
4732{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4733$as_echo_n "checking for $ac_word... " >&6; }
4734if test "${ac_cv_path_SED+set}" = set; then
4735 $as_echo_n "(cached) " >&6
4736else
4737 case $SED in
4738 [\\/]* | ?:[\\/]*)
4739 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4740 ;;
4741 *)
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4752 fi
4753done
4754done
4755IFS=$as_save_IFS
4756
4757 ;;
4758esac
4759fi
4760SED=$ac_cv_path_SED
4761if test -n "$SED"; then
4762 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4763$as_echo "$SED" >&6; }
4764else
4765 { $as_echo "$as_me:$LINENO: result: no" >&5
4766$as_echo "no" >&6; }
4767fi
4768
4769
4770
4771# Extract the first word of "ent", so it can be a program name with args.
4772set dummy ent; ac_word=$2
4773{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4774$as_echo_n "checking for $ac_word... " >&6; }
4775if test "${ac_cv_path_ENT+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777else
4778 case $ENT in
4779 [\\/]* | ?:[\\/]*)
4780 ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4781 ;;
4782 *)
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794done
4795done
4796IFS=$as_save_IFS
4797
4798 ;;
4799esac
4800fi
4801ENT=$ac_cv_path_ENT
4802if test -n "$ENT"; then
4803 { $as_echo "$as_me:$LINENO: result: $ENT" >&5
4804$as_echo "$ENT" >&6; }
4805else
4806 { $as_echo "$as_me:$LINENO: result: no" >&5
4807$as_echo "no" >&6; }
4808fi
4809
4810
4811
4812# Extract the first word of "bash", so it can be a program name with args.
4813set dummy bash; ac_word=$2
4814{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
4816if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4818else
4819 case $TEST_MINUS_S_SH in
4820 [\\/]* | ?:[\\/]*)
4821 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4822 ;;
4823 *)
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835done
4836done
4837IFS=$as_save_IFS
4838
4839 ;;
4840esac
4841fi
4842TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4843if test -n "$TEST_MINUS_S_SH"; then
4844 { $as_echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4845$as_echo "$TEST_MINUS_S_SH" >&6; }
4846else
4847 { $as_echo "$as_me:$LINENO: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
4852# Extract the first word of "ksh", so it can be a program name with args.
4853set dummy ksh; ac_word=$2
4854{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4858else
4859 case $TEST_MINUS_S_SH in
4860 [\\/]* | ?:[\\/]*)
4861 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4862 ;;
4863 *)
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4874 fi
4875done
4876done
4877IFS=$as_save_IFS
4878
4879 ;;
4880esac
4881fi
4882TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4883if test -n "$TEST_MINUS_S_SH"; then
4884 { $as_echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4885$as_echo "$TEST_MINUS_S_SH" >&6; }
4886else
4887 { $as_echo "$as_me:$LINENO: result: no" >&5
4888$as_echo "no" >&6; }
4889fi
4890
4891
4892# Extract the first word of "sh", so it can be a program name with args.
4893set dummy sh; ac_word=$2
4894{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then
4897 $as_echo_n "(cached) " >&6
4898else
4899 case $TEST_MINUS_S_SH in
4900 [\\/]* | ?:[\\/]*)
4901 ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4902 ;;
4903 *)
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4914 fi
4915done
4916done
4917IFS=$as_save_IFS
4918
4919 ;;
4920esac
4921fi
4922TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4923if test -n "$TEST_MINUS_S_SH"; then
4924 { $as_echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5
4925$as_echo "$TEST_MINUS_S_SH" >&6; }
4926else
4927 { $as_echo "$as_me:$LINENO: result: no" >&5
4928$as_echo "no" >&6; }
4929fi
4930
4931
4932# Extract the first word of "sh", so it can be a program name with args.
4933set dummy sh; ac_word=$2
4934{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4935$as_echo_n "checking for $ac_word... " >&6; }
4936if test "${ac_cv_path_SH+set}" = set; then
4937 $as_echo_n "(cached) " >&6
4938else
4939 case $SH in
4940 [\\/]* | ?:[\\/]*)
4941 ac_cv_path_SH="$SH" # Let the user override the test with a path.
4942 ;;
4943 *)
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4952 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955done
4956done
4957IFS=$as_save_IFS
4958
4959 ;;
4960esac
4961fi
4962SH=$ac_cv_path_SH
4963if test -n "$SH"; then
4964 { $as_echo "$as_me:$LINENO: result: $SH" >&5
4965$as_echo "$SH" >&6; }
4966else
4967 { $as_echo "$as_me:$LINENO: result: no" >&5
4968$as_echo "no" >&6; }
4969fi
4970
4971
4972TEST_SHELL=sh
4973
4974
4975# Extract the first word of "groupadd", so it can be a program name with args.
4976set dummy groupadd; ac_word=$2
4977{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4978$as_echo_n "checking for $ac_word... " >&6; }
4979if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then
4980 $as_echo_n "(cached) " >&6
4981else
4982 case $PATH_GROUPADD_PROG in
4983 [\\/]* | ?:[\\/]*)
4984 ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4985 ;;
4986 *)
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998done
4999done
5000IFS=$as_save_IFS
5001
5002 test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5003 ;;
5004esac
5005fi
5006PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5007if test -n "$PATH_GROUPADD_PROG"; then
5008 { $as_echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5
5009$as_echo "$PATH_GROUPADD_PROG" >&6; }
5010else
5011 { $as_echo "$as_me:$LINENO: result: no" >&5
5012$as_echo "no" >&6; }
5013fi
5014
5015
5016# Extract the first word of "useradd", so it can be a program name with args.
5017set dummy useradd; ac_word=$2
5018{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
5020if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5022else
5023 case $PATH_USERADD_PROG in
5024 [\\/]* | ?:[\\/]*)
5025 ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5026 ;;
5027 *)
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039done
5040done
5041IFS=$as_save_IFS
5042
5043 test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5044 ;;
5045esac
5046fi
5047PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5048if test -n "$PATH_USERADD_PROG"; then
5049 { $as_echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5
5050$as_echo "$PATH_USERADD_PROG" >&6; }
5051else
5052 { $as_echo "$as_me:$LINENO: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056
5057# Extract the first word of "pkgmk", so it can be a program name with args.
5058set dummy pkgmk; ac_word=$2
5059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5063else
5064 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5065 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
5069do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078done
5079done
5080IFS=$as_save_IFS
5081
5082 test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5083fi
5084fi
5085MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5086if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5087 { $as_echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5
5088$as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5089else
5090 { $as_echo "$as_me:$LINENO: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093
5094
5095if test -x /sbin/sh; then
5096 STARTUP_SCRIPT_SHELL=/sbin/sh
5097
5098else
5099 STARTUP_SCRIPT_SHELL=/bin/sh
5100
5101fi
5102
5103# System features
5104# Check whether --enable-largefile was given.
5105if test "${enable_largefile+set}" = set; then
5106 enableval=$enable_largefile;
5107fi
5108
5109if test "$enable_largefile" != no; then
5110
5111 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5112$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5113if test "${ac_cv_sys_largefile_CC+set}" = set; then
5114 $as_echo_n "(cached) " >&6
5115else
5116 ac_cv_sys_largefile_CC=no
5117 if test "$GCC" != yes; then
5118 ac_save_CC=$CC
5119 while :; do
5120 # IRIX 6.2 and later do not support large files by default,
5121 # so use the C compiler's -n32 option if that helps.
5122 cat >conftest.$ac_ext <<_ACEOF
5123/* confdefs.h. */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h. */
5128#include <sys/types.h>
5129 /* Check that off_t can represent 2**63 - 1 correctly.
5130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5131 since some C++ compilers masquerading as C compilers
5132 incorrectly reject 9223372036854775807. */
5133#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5135 && LARGE_OFF_T % 2147483647 == 1)
5136 ? 1 : -1];
5137int
5138main ()
5139{
5140
5141 ;
5142 return 0;
5143}
5144_ACEOF
5145 rm -f conftest.$ac_objext
5146if { (ac_try="$ac_compile"
5147case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5150esac
5151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5152$as_echo "$ac_try_echo") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 break
5164else
5165 $as_echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
5167
5168
5169fi
5170
5171rm -f core conftest.err conftest.$ac_objext
5172 CC="$CC -n32"
5173 rm -f conftest.$ac_objext
5174if { (ac_try="$ac_compile"
5175case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
5179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5180$as_echo "$ac_try_echo") >&5
5181 (eval "$ac_compile") 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } && {
5188 test -z "$ac_c_werror_flag" ||
5189 test ! -s conftest.err
5190 } && test -s conftest.$ac_objext; then
5191 ac_cv_sys_largefile_CC=' -n32'; break
5192else
5193 $as_echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196
5197fi
5198
5199rm -f core conftest.err conftest.$ac_objext
5200 break
5201 done
5202 CC=$ac_save_CC
5203 rm -f conftest.$ac_ext
5204 fi
5205fi
5206{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5207$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5208 if test "$ac_cv_sys_largefile_CC" != no; then
5209 CC=$CC$ac_cv_sys_largefile_CC
5210 fi
5211
5212 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5213$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5214if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5215 $as_echo_n "(cached) " >&6
5216else
5217 while :; do
5218 cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h. */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */
5224#include <sys/types.h>
5225 /* Check that off_t can represent 2**63 - 1 correctly.
5226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5227 since some C++ compilers masquerading as C compilers
5228 incorrectly reject 9223372036854775807. */
5229#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5231 && LARGE_OFF_T % 2147483647 == 1)
5232 ? 1 : -1];
5233int
5234main ()
5235{
5236
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241rm -f conftest.$ac_objext
5242if { (ac_try="$ac_compile"
5243case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5248$as_echo "$ac_try_echo") >&5
5249 (eval "$ac_compile") 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } && {
5256 test -z "$ac_c_werror_flag" ||
5257 test ! -s conftest.err
5258 } && test -s conftest.$ac_objext; then
5259 ac_cv_sys_file_offset_bits=no; break
5260else
5261 $as_echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264
5265fi
5266
5267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 cat >conftest.$ac_ext <<_ACEOF
5269/* confdefs.h. */
5270_ACEOF
5271cat confdefs.h >>conftest.$ac_ext
5272cat >>conftest.$ac_ext <<_ACEOF
5273/* end confdefs.h. */
5274#define _FILE_OFFSET_BITS 64
5275#include <sys/types.h>
5276 /* Check that off_t can represent 2**63 - 1 correctly.
5277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5278 since some C++ compilers masquerading as C compilers
5279 incorrectly reject 9223372036854775807. */
5280#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5282 && LARGE_OFF_T % 2147483647 == 1)
5283 ? 1 : -1];
5284int
5285main ()
5286{
5287
5288 ;
5289 return 0;
5290}
5291_ACEOF
5292rm -f conftest.$ac_objext
5293if { (ac_try="$ac_compile"
5294case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5299$as_echo "$ac_try_echo") >&5
5300 (eval "$ac_compile") 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && {
5307 test -z "$ac_c_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest.$ac_objext; then
5310 ac_cv_sys_file_offset_bits=64; break
5311else
5312 $as_echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315
5316fi
5317
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 ac_cv_sys_file_offset_bits=unknown
5320 break
5321done
5322fi
5323{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5324$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5325case $ac_cv_sys_file_offset_bits in #(
5326 no | unknown) ;;
5327 *)
5328cat >>confdefs.h <<_ACEOF
5329#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5330_ACEOF
5331;;
5332esac
5333rm -rf conftest*
5334 if test $ac_cv_sys_file_offset_bits = unknown; then
5335 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5336$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5337if test "${ac_cv_sys_large_files+set}" = set; then
5338 $as_echo_n "(cached) " >&6
5339else
5340 while :; do
5341 cat >conftest.$ac_ext <<_ACEOF
5342/* confdefs.h. */
5343_ACEOF
5344cat confdefs.h >>conftest.$ac_ext
5345cat >>conftest.$ac_ext <<_ACEOF
5346/* end confdefs.h. */
5347#include <sys/types.h>
5348 /* Check that off_t can represent 2**63 - 1 correctly.
5349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350 since some C++ compilers masquerading as C compilers
5351 incorrectly reject 9223372036854775807. */
5352#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354 && LARGE_OFF_T % 2147483647 == 1)
5355 ? 1 : -1];
5356int
5357main ()
5358{
5359
5360 ;
5361 return 0;
5362}
5363_ACEOF
5364rm -f conftest.$ac_objext
5365if { (ac_try="$ac_compile"
5366case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369esac
5370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5371$as_echo "$ac_try_echo") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_cv_sys_large_files=no; break
5383else
5384 $as_echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387
5388fi
5389
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
5397#define _LARGE_FILES 1
5398#include <sys/types.h>
5399 /* Check that off_t can represent 2**63 - 1 correctly.
5400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5401 since some C++ compilers masquerading as C compilers
5402 incorrectly reject 9223372036854775807. */
5403#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5405 && LARGE_OFF_T % 2147483647 == 1)
5406 ? 1 : -1];
5407int
5408main ()
5409{
5410
5411 ;
5412 return 0;
5413}
5414_ACEOF
5415rm -f conftest.$ac_objext
5416if { (ac_try="$ac_compile"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5422$as_echo "$ac_try_echo") >&5
5423 (eval "$ac_compile") 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && {
5430 test -z "$ac_c_werror_flag" ||
5431 test ! -s conftest.err
5432 } && test -s conftest.$ac_objext; then
5433 ac_cv_sys_large_files=1; break
5434else
5435 $as_echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438
5439fi
5440
5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 ac_cv_sys_large_files=unknown
5443 break
5444done
5445fi
5446{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5447$as_echo "$ac_cv_sys_large_files" >&6; }
5448case $ac_cv_sys_large_files in #(
5449 no | unknown) ;;
5450 *)
5451cat >>confdefs.h <<_ACEOF
5452#define _LARGE_FILES $ac_cv_sys_large_files
5453_ACEOF
5454;;
5455esac
5456rm -rf conftest*
5457 fi
5458fi
5459
5460
5461if test -z "$AR" ; then
5462 { { $as_echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5
5463$as_echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;}
5464 { (exit 1); exit 1; }; }
5465fi
5466
5467# Use LOGIN_PROGRAM from environment if possible
5468if test ! -z "$LOGIN_PROGRAM" ; then
5469
5470cat >>confdefs.h <<_ACEOF
5471#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5472_ACEOF
5473
5474else
5475 # Search for login
5476 # Extract the first word of "login", so it can be a program name with args.
5477set dummy login; ac_word=$2
5478{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5479$as_echo_n "checking for $ac_word... " >&6; }
5480if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then
5481 $as_echo_n "(cached) " >&6
5482else
5483 case $LOGIN_PROGRAM_FALLBACK in
5484 [\\/]* | ?:[\\/]*)
5485 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5486 ;;
5487 *)
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499done
5500done
5501IFS=$as_save_IFS
5502
5503 ;;
5504esac
5505fi
5506LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5507if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5508 { $as_echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5
5509$as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5510else
5511 { $as_echo "$as_me:$LINENO: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515
5516 if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5517 cat >>confdefs.h <<_ACEOF
5518#define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5519_ACEOF
5520
5521 fi
5522fi
5523
5524# Extract the first word of "passwd", so it can be a program name with args.
5525set dummy passwd; ac_word=$2
5526{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5527$as_echo_n "checking for $ac_word... " >&6; }
5528if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5530else
5531 case $PATH_PASSWD_PROG in
5532 [\\/]* | ?:[\\/]*)
5533 ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5534 ;;
5535 *)
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547done
5548done
5549IFS=$as_save_IFS
5550
5551 ;;
5552esac
5553fi
5554PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5555if test -n "$PATH_PASSWD_PROG"; then
5556 { $as_echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5
5557$as_echo "$PATH_PASSWD_PROG" >&6; }
5558else
5559 { $as_echo "$as_me:$LINENO: result: no" >&5
5560$as_echo "no" >&6; }
5561fi
5562
5563
5564if test ! -z "$PATH_PASSWD_PROG" ; then
5565
5566cat >>confdefs.h <<_ACEOF
5567#define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5568_ACEOF
5569
5570fi
5571
5572if test -z "$LD" ; then
5573 LD=$CC
5574fi
5575
5576
5577{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5578$as_echo_n "checking for inline... " >&6; }
5579if test "${ac_cv_c_inline+set}" = set; then
5580 $as_echo_n "(cached) " >&6
5581else
5582 ac_cv_c_inline=no
5583for ac_kw in inline __inline__ __inline; do
5584 cat >conftest.$ac_ext <<_ACEOF
5585/* confdefs.h. */
5586_ACEOF
5587cat confdefs.h >>conftest.$ac_ext
5588cat >>conftest.$ac_ext <<_ACEOF
5589/* end confdefs.h. */
5590#ifndef __cplusplus
5591typedef int foo_t;
5592static $ac_kw foo_t static_foo () {return 0; }
5593$ac_kw foo_t foo () {return 0; }
5594#endif
5595
5596_ACEOF
5597rm -f conftest.$ac_objext
5598if { (ac_try="$ac_compile"
5599case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602esac
5603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5604$as_echo "$ac_try_echo") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5615 ac_cv_c_inline=$ac_kw
5616else
5617 $as_echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
5620
5621fi
5622
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 test "$ac_cv_c_inline" != no && break
5625done
5626
5627fi
5628{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5629$as_echo "$ac_cv_c_inline" >&6; }
5630
5631
5632case $ac_cv_c_inline in
5633 inline | yes) ;;
5634 *)
5635 case $ac_cv_c_inline in
5636 no) ac_val=;;
5637 *) ac_val=$ac_cv_c_inline;;
5638 esac
5639 cat >>confdefs.h <<_ACEOF
5640#ifndef __cplusplus
5641#define inline $ac_val
5642#endif
5643_ACEOF
5644 ;;
5645esac
5646
5647
5648{ $as_echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5649$as_echo_n "checking whether LLONG_MAX is declared... " >&6; }
5650if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5651 $as_echo_n "(cached) " >&6
5652else
5653 cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
5659#include <limits.h>
5660
5661int
5662main ()
5663{
5664#ifndef LLONG_MAX
5665 (void) LLONG_MAX;
5666#endif
5667
5668 ;
5669 return 0;
5670}
5671_ACEOF
5672rm -f conftest.$ac_objext
5673if { (ac_try="$ac_compile"
5674case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677esac
5678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5679$as_echo "$ac_try_echo") >&5
5680 (eval "$ac_compile") 2>conftest.er1
5681 ac_status=$?
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
5685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } && {
5687 test -z "$ac_c_werror_flag" ||
5688 test ! -s conftest.err
5689 } && test -s conftest.$ac_objext; then
5690 ac_cv_have_decl_LLONG_MAX=yes
5691else
5692 $as_echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695 ac_cv_have_decl_LLONG_MAX=no
5696fi
5697
5698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699fi
5700{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5701$as_echo "$ac_cv_have_decl_LLONG_MAX" >&6; }
5702if test $ac_cv_have_decl_LLONG_MAX = yes; then
5703 have_llong_max=1
5704fi
5705
5706
5707use_stack_protector=1
5708
5709# Check whether --with-stackprotect was given.
5710if test "${with_stackprotect+set}" = set; then
5711 withval=$with_stackprotect;
5712 if test "x$withval" = "xno"; then
5713 use_stack_protector=0
5714 fi
5715fi
5716
5717
5718if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5719 CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5720 GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5721 case $GCC_VER in
5722 1.*) no_attrib_nonnull=1 ;;
5723 2.8* | 2.9*)
5724 CFLAGS="$CFLAGS -Wsign-compare"
5725 no_attrib_nonnull=1
5726 ;;
5727 2.*) no_attrib_nonnull=1 ;;
5728 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5729 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5730 *) ;;
5731 esac
5732
5733 { $as_echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5
5734$as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5735 saved_CFLAGS="$CFLAGS"
5736 CFLAGS="$CFLAGS -fno-builtin-memset"
5737 cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h. */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h. */
5743
5744#include <string.h>
5745int main(void){char b[10]; memset(b, 0, sizeof(b));}
5746
5747_ACEOF
5748rm -f conftest.$ac_objext conftest$ac_exeext
5749if { (ac_try="$ac_link"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5755$as_echo "$ac_try_echo") >&5
5756 (eval "$ac_link") 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_c_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest$ac_exeext && {
5766 test "$cross_compiling" = yes ||
5767 $as_test_x conftest$ac_exeext
5768 }; then
5769 { $as_echo "$as_me:$LINENO: result: yes" >&5
5770$as_echo "yes" >&6; }
5771else
5772 $as_echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 { $as_echo "$as_me:$LINENO: result: no" >&5
5776$as_echo "no" >&6; }
5777 CFLAGS="$saved_CFLAGS"
5778
5779fi
5780
5781rm -rf conftest.dSYM
5782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5783 conftest$ac_exeext conftest.$ac_ext
5784
5785 # -fstack-protector-all doesn't always work for some GCC versions
5786 # and/or platforms, so we test if we can. If it's not supported
5787 # on a given platform gcc will emit a warning so we use -Werror.
5788 if test "x$use_stack_protector" = "x1"; then
5789 for t in -fstack-protector-all -fstack-protector; do
5790 { $as_echo "$as_me:$LINENO: checking if $CC supports $t" >&5
5791$as_echo_n "checking if $CC supports $t... " >&6; }
5792 saved_CFLAGS="$CFLAGS"
5793 saved_LDFLAGS="$LDFLAGS"
5794 CFLAGS="$CFLAGS $t -Werror"
5795 LDFLAGS="$LDFLAGS $t -Werror"
5796 cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h. */
5802
5803#include <stdio.h>
5804int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5805
5806_ACEOF
5807rm -f conftest.$ac_objext conftest$ac_exeext
5808if { (ac_try="$ac_link"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5814$as_echo "$ac_try_echo") >&5
5815 (eval "$ac_link") 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } && {
5822 test -z "$ac_c_werror_flag" ||
5823 test ! -s conftest.err
5824 } && test -s conftest$ac_exeext && {
5825 test "$cross_compiling" = yes ||
5826 $as_test_x conftest$ac_exeext
5827 }; then
5828 { $as_echo "$as_me:$LINENO: result: yes" >&5
5829$as_echo "yes" >&6; }
5830 CFLAGS="$saved_CFLAGS $t"
5831 LDFLAGS="$saved_LDFLAGS $t"
5832 { $as_echo "$as_me:$LINENO: checking if $t works" >&5
5833$as_echo_n "checking if $t works... " >&6; }
5834 if test "$cross_compiling" = yes; then
5835 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5
5836$as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5837 break
5838
5839else
5840 cat >conftest.$ac_ext <<_ACEOF
5841/* confdefs.h. */
5842_ACEOF
5843cat confdefs.h >>conftest.$ac_ext
5844cat >>conftest.$ac_ext <<_ACEOF
5845/* end confdefs.h. */
5846
5847#include <stdio.h>
5848int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5849
5850_ACEOF
5851rm -f conftest$ac_exeext
5852if { (ac_try="$ac_link"
5853case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856esac
5857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5858$as_echo "$ac_try_echo") >&5
5859 (eval "$ac_link") 2>&5
5860 ac_status=$?
5861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866esac
5867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5868$as_echo "$ac_try_echo") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 { $as_echo "$as_me:$LINENO: result: yes" >&5
5874$as_echo "yes" >&6; }
5875 break
5876else
5877 $as_echo "$as_me: program exited with status $ac_status" >&5
5878$as_echo "$as_me: failed program was:" >&5
5879sed 's/^/| /' conftest.$ac_ext >&5
5880
5881( exit $ac_status )
5882 { $as_echo "$as_me:$LINENO: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885rm -rf conftest.dSYM
5886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5887fi
5888
5889
5890
5891else
5892 $as_echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 { $as_echo "$as_me:$LINENO: result: no" >&5
5896$as_echo "no" >&6; }
5897
5898fi
5899
5900rm -rf conftest.dSYM
5901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5902 conftest$ac_exeext conftest.$ac_ext
5903 CFLAGS="$saved_CFLAGS"
5904 LDFLAGS="$saved_LDFLAGS"
5905 done
5906 fi
5907
5908 if test -z "$have_llong_max"; then
5909 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5910 unset ac_cv_have_decl_LLONG_MAX
5911 saved_CFLAGS="$CFLAGS"
5912 CFLAGS="$CFLAGS -std=gnu99"
5913 { $as_echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5
5914$as_echo_n "checking whether LLONG_MAX is declared... " >&6; }
5915if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then
5916 $as_echo_n "(cached) " >&6
5917else
5918 cat >conftest.$ac_ext <<_ACEOF
5919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
5924#include <limits.h>
5925
5926
5927int
5928main ()
5929{
5930#ifndef LLONG_MAX
5931 (void) LLONG_MAX;
5932#endif
5933
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938rm -f conftest.$ac_objext
5939if { (ac_try="$ac_compile"
5940case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
5944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945$as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_have_decl_LLONG_MAX=yes
5957else
5958 $as_echo "$as_me: failed program was:" >&5
5959sed 's/^/| /' conftest.$ac_ext >&5
5960
5961 ac_cv_have_decl_LLONG_MAX=no
5962fi
5963
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965fi
5966{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5
5967$as_echo "$ac_cv_have_decl_LLONG_MAX" >&6; }
5968if test $ac_cv_have_decl_LLONG_MAX = yes; then
5969 have_llong_max=1
5970else
5971 CFLAGS="$saved_CFLAGS"
5972fi
5973
5974 fi
5975fi
5976
5977if test "x$no_attrib_nonnull" != "x1" ; then
5978
5979cat >>confdefs.h <<\_ACEOF
5980#define HAVE_ATTRIBUTE__NONNULL__ 1
5981_ACEOF
5982
5983fi
5984
5985
5986# Check whether --with-rpath was given.
5987if test "${with_rpath+set}" = set; then
5988 withval=$with_rpath;
5989 if test "x$withval" = "xno" ; then
5990 need_dash_r=""
5991 fi
5992 if test "x$withval" = "xyes" ; then
5993 need_dash_r=1
5994 fi
5995
5996
5997fi
5998
5999
6000# Allow user to specify flags
6001
6002# Check whether --with-cflags was given.
6003if test "${with_cflags+set}" = set; then
6004 withval=$with_cflags;
6005 if test -n "$withval" && test "x$withval" != "xno" && \
6006 test "x${withval}" != "xyes"; then
6007 CFLAGS="$CFLAGS $withval"
6008 fi
6009
6010
6011fi
6012
6013
6014# Check whether --with-cppflags was given.
6015if test "${with_cppflags+set}" = set; then
6016 withval=$with_cppflags;
6017 if test -n "$withval" && test "x$withval" != "xno" && \
6018 test "x${withval}" != "xyes"; then
6019 CPPFLAGS="$CPPFLAGS $withval"
6020 fi
6021
6022
6023fi
6024
6025
6026# Check whether --with-ldflags was given.
6027if test "${with_ldflags+set}" = set; then
6028 withval=$with_ldflags;
6029 if test -n "$withval" && test "x$withval" != "xno" && \
6030 test "x${withval}" != "xyes"; then
6031 LDFLAGS="$LDFLAGS $withval"
6032 fi
6033
6034
6035fi
6036
6037
6038# Check whether --with-libs was given.
6039if test "${with_libs+set}" = set; then
6040 withval=$with_libs;
6041 if test -n "$withval" && test "x$withval" != "xno" && \
6042 test "x${withval}" != "xyes"; then
6043 LIBS="$LIBS $withval"
6044 fi
6045
6046
6047fi
6048
6049
6050# Check whether --with-Werror was given.
6051if test "${with_Werror+set}" = set; then
6052 withval=$with_Werror;
6053 if test -n "$withval" && test "x$withval" != "xno"; then
6054 werror_flags="-Werror"
6055 if test "x${withval}" != "xyes"; then
6056 werror_flags="$withval"
6057 fi
6058 fi
6059
6060
6061fi
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127for ac_header in \
6128 bstring.h \
6129 crypt.h \
6130 crypto/sha2.h \
6131 dirent.h \
6132 endian.h \
6133 features.h \
6134 fcntl.h \
6135 floatingpoint.h \
6136 getopt.h \
6137 glob.h \
6138 ia.h \
6139 iaf.h \
6140 limits.h \
6141 login.h \
6142 maillock.h \
6143 ndir.h \
6144 net/if_tun.h \
6145 netdb.h \
6146 netgroup.h \
6147 pam/pam_appl.h \
6148 paths.h \
6149 poll.h \
6150 pty.h \
6151 readpassphrase.h \
6152 rpc/types.h \
6153 security/pam_appl.h \
6154 sha2.h \
6155 shadow.h \
6156 stddef.h \
6157 stdint.h \
6158 string.h \
6159 strings.h \
6160 sys/audit.h \
6161 sys/bitypes.h \
6162 sys/bsdtty.h \
6163 sys/cdefs.h \
6164 sys/dir.h \
6165 sys/mman.h \
6166 sys/ndir.h \
6167 sys/poll.h \
6168 sys/prctl.h \
6169 sys/pstat.h \
6170 sys/select.h \
6171 sys/stat.h \
6172 sys/stream.h \
6173 sys/stropts.h \
6174 sys/strtio.h \
6175 sys/statvfs.h \
6176 sys/sysmacros.h \
6177 sys/time.h \
6178 sys/timers.h \
6179 sys/un.h \
6180 time.h \
6181 tmpdir.h \
6182 ttyent.h \
6183 ucred.h \
6184 unistd.h \
6185 usersec.h \
6186 util.h \
6187 utime.h \
6188 utmp.h \
6189 utmpx.h \
6190 vis.h \
6191
6192do
6193as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6196$as_echo_n "checking for $ac_header... " >&6; }
6197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6198 $as_echo_n "(cached) " >&6
6199fi
6200ac_res=`eval 'as_val=${'$as_ac_Header'}
6201 $as_echo "$as_val"'`
6202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6203$as_echo "$ac_res" >&6; }
6204else
6205 # Is the header compilable?
6206{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6207$as_echo_n "checking $ac_header usability... " >&6; }
6208cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h. */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h. */
6214$ac_includes_default
6215#include <$ac_header>
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (ac_try="$ac_compile"
6219case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222esac
6223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6224$as_echo "$ac_try_echo") >&5
6225 (eval "$ac_compile") 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } && {
6232 test -z "$ac_c_werror_flag" ||
6233 test ! -s conftest.err
6234 } && test -s conftest.$ac_objext; then
6235 ac_header_compiler=yes
6236else
6237 $as_echo "$as_me: failed program was:" >&5
6238sed 's/^/| /' conftest.$ac_ext >&5
6239
6240 ac_header_compiler=no
6241fi
6242
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6245$as_echo "$ac_header_compiler" >&6; }
6246
6247# Is the header present?
6248{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6249$as_echo_n "checking $ac_header presence... " >&6; }
6250cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256#include <$ac_header>
6257_ACEOF
6258if { (ac_try="$ac_cpp conftest.$ac_ext"
6259case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6264$as_echo "$ac_try_echo") >&5
6265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } >/dev/null && {
6272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 }; then
6275 ac_header_preproc=yes
6276else
6277 $as_echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280 ac_header_preproc=no
6281fi
6282
6283rm -f conftest.err conftest.$ac_ext
6284{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6285$as_echo "$ac_header_preproc" >&6; }
6286
6287# So? What about this header?
6288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6289 yes:no: )
6290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6291$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6293$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6294 ac_header_preproc=yes
6295 ;;
6296 no:yes:* )
6297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6298$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6300$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6302$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6304$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6306$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6308$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6309 ( cat <<\_ASBOX
6310## ------------------------------------------- ##
6311## Report this to openssh-unix-dev@mindrot.org ##
6312## ------------------------------------------- ##
6313_ASBOX
6314 ) | sed "s/^/$as_me: WARNING: /" >&2
6315 ;;
6316esac
6317{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6318$as_echo_n "checking for $ac_header... " >&6; }
6319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6320 $as_echo_n "(cached) " >&6
6321else
6322 eval "$as_ac_Header=\$ac_header_preproc"
6323fi
6324ac_res=`eval 'as_val=${'$as_ac_Header'}
6325 $as_echo "$as_val"'`
6326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6327$as_echo "$ac_res" >&6; }
6328
6329fi
6330if test `eval 'as_val=${'$as_ac_Header'}
6331 $as_echo "$as_val"'` = yes; then
6332 cat >>confdefs.h <<_ACEOF
6333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6334_ACEOF
6335
6336fi
6337
6338done
6339
6340
6341# lastlog.h requires sys/time.h to be included first on Solaris
6342
6343for ac_header in lastlog.h
6344do
6345as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6346{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6347$as_echo_n "checking for $ac_header... " >&6; }
6348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6349 $as_echo_n "(cached) " >&6
6350else
6351 cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h. */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h. */
6357
6358#ifdef HAVE_SYS_TIME_H
6359# include <sys/time.h>
6360#endif
6361
6362
6363#include <$ac_header>
6364_ACEOF
6365rm -f conftest.$ac_objext
6366if { (ac_try="$ac_compile"
6367case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370esac
6371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6372$as_echo "$ac_try_echo") >&5
6373 (eval "$ac_compile") 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } && {
6380 test -z "$ac_c_werror_flag" ||
6381 test ! -s conftest.err
6382 } && test -s conftest.$ac_objext; then
6383 eval "$as_ac_Header=yes"
6384else
6385 $as_echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388 eval "$as_ac_Header=no"
6389fi
6390
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392fi
6393ac_res=`eval 'as_val=${'$as_ac_Header'}
6394 $as_echo "$as_val"'`
6395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6396$as_echo "$ac_res" >&6; }
6397if test `eval 'as_val=${'$as_ac_Header'}
6398 $as_echo "$as_val"'` = yes; then
6399 cat >>confdefs.h <<_ACEOF
6400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401_ACEOF
6402
6403fi
6404
6405done
6406
6407
6408# sys/ptms.h requires sys/stream.h to be included first on Solaris
6409
6410for ac_header in sys/ptms.h
6411do
6412as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6413{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6414$as_echo_n "checking for $ac_header... " >&6; }
6415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6416 $as_echo_n "(cached) " >&6
6417else
6418 cat >conftest.$ac_ext <<_ACEOF
6419/* confdefs.h. */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
6423/* end confdefs.h. */
6424
6425#ifdef HAVE_SYS_STREAM_H
6426# include <sys/stream.h>
6427#endif
6428
6429
6430#include <$ac_header>
6431_ACEOF
6432rm -f conftest.$ac_objext
6433if { (ac_try="$ac_compile"
6434case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437esac
6438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6439$as_echo "$ac_try_echo") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 eval "$as_ac_Header=yes"
6451else
6452 $as_echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 eval "$as_ac_Header=no"
6456fi
6457
6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459fi
6460ac_res=`eval 'as_val=${'$as_ac_Header'}
6461 $as_echo "$as_val"'`
6462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6463$as_echo "$ac_res" >&6; }
6464if test `eval 'as_val=${'$as_ac_Header'}
6465 $as_echo "$as_val"'` = yes; then
6466 cat >>confdefs.h <<_ACEOF
6467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6468_ACEOF
6469
6470fi
6471
6472done
6473
6474
6475# login_cap.h requires sys/types.h on NetBSD
6476
6477for ac_header in login_cap.h
6478do
6479as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6480{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6481$as_echo_n "checking for $ac_header... " >&6; }
6482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6483 $as_echo_n "(cached) " >&6
6484else
6485 cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h. */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h. */
6491
6492#include <sys/types.h>
6493
6494
6495#include <$ac_header>
6496_ACEOF
6497rm -f conftest.$ac_objext
6498if { (ac_try="$ac_compile"
6499case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502esac
6503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504$as_echo "$ac_try_echo") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest.$ac_objext; then
6515 eval "$as_ac_Header=yes"
6516else
6517 $as_echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 eval "$as_ac_Header=no"
6521fi
6522
6523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524fi
6525ac_res=`eval 'as_val=${'$as_ac_Header'}
6526 $as_echo "$as_val"'`
6527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6528$as_echo "$ac_res" >&6; }
6529if test `eval 'as_val=${'$as_ac_Header'}
6530 $as_echo "$as_val"'` = yes; then
6531 cat >>confdefs.h <<_ACEOF
6532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6533_ACEOF
6534
6535fi
6536
6537done
6538
6539
6540# older BSDs need sys/param.h before sys/mount.h
6541
6542for ac_header in sys/mount.h
6543do
6544as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6546$as_echo_n "checking for $ac_header... " >&6; }
6547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6548 $as_echo_n "(cached) " >&6
6549else
6550 cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h. */
6556
6557#include <sys/param.h>
6558
6559
6560#include <$ac_header>
6561_ACEOF
6562rm -f conftest.$ac_objext
6563if { (ac_try="$ac_compile"
6564case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567esac
6568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6569$as_echo "$ac_try_echo") >&5
6570 (eval "$ac_compile") 2>conftest.er1
6571 ac_status=$?
6572 grep -v '^ *+' conftest.er1 >conftest.err
6573 rm -f conftest.er1
6574 cat conftest.err >&5
6575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } && {
6577 test -z "$ac_c_werror_flag" ||
6578 test ! -s conftest.err
6579 } && test -s conftest.$ac_objext; then
6580 eval "$as_ac_Header=yes"
6581else
6582 $as_echo "$as_me: failed program was:" >&5
6583sed 's/^/| /' conftest.$ac_ext >&5
6584
6585 eval "$as_ac_Header=no"
6586fi
6587
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589fi
6590ac_res=`eval 'as_val=${'$as_ac_Header'}
6591 $as_echo "$as_val"'`
6592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6593$as_echo "$ac_res" >&6; }
6594if test `eval 'as_val=${'$as_ac_Header'}
6595 $as_echo "$as_val"'` = yes; then
6596 cat >>confdefs.h <<_ACEOF
6597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6598_ACEOF
6599
6600fi
6601
6602done
6603
6604
6605# Messages for features tested for in target-specific section
6606SIA_MSG="no"
6607SPC_MSG="no"
6608
6609# Check for some target-specific stuff
6610case "$host" in
6611*-*-aix*)
6612 # Some versions of VAC won't allow macro redefinitions at
6613 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6614 # particularly with older versions of vac or xlc.
6615 # It also throws errors about null macro argments, but these are
6616 # not fatal.
6617 { $as_echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6618$as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6619 cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h. */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h. */
6625
6626#define testmacro foo
6627#define testmacro bar
6628int main(void) { exit(0); }
6629
6630_ACEOF
6631rm -f conftest.$ac_objext
6632if { (ac_try="$ac_compile"
6633case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636esac
6637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6638$as_echo "$ac_try_echo") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 { $as_echo "$as_me:$LINENO: result: yes" >&5
6650$as_echo "yes" >&6; }
6651else
6652 $as_echo "$as_me: failed program was:" >&5
6653sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 { $as_echo "$as_me:$LINENO: result: no" >&5
6656$as_echo "no" >&6; }
6657 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6658 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6659 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6660 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6661
6662
6663fi
6664
6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666
6667 { $as_echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
6668$as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6669 if (test -z "$blibpath"); then
6670 blibpath="/usr/lib:/lib"
6671 fi
6672 saved_LDFLAGS="$LDFLAGS"
6673 if test "$GCC" = "yes"; then
6674 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6675 else
6676 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6677 fi
6678 for tryflags in $flags ;do
6679 if (test -z "$blibflags"); then
6680 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6681 cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h. */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h. */
6687
6688int
6689main ()
6690{
6691
6692 ;
6693 return 0;
6694}
6695_ACEOF
6696rm -f conftest.$ac_objext conftest$ac_exeext
6697if { (ac_try="$ac_link"
6698case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701esac
6702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6703$as_echo "$ac_try_echo") >&5
6704 (eval "$ac_link") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest$ac_exeext && {
6714 test "$cross_compiling" = yes ||
6715 $as_test_x conftest$ac_exeext
6716 }; then
6717 blibflags=$tryflags
6718else
6719 $as_echo "$as_me: failed program was:" >&5
6720sed 's/^/| /' conftest.$ac_ext >&5
6721
6722
6723fi
6724
6725rm -rf conftest.dSYM
6726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6727 conftest$ac_exeext conftest.$ac_ext
6728 fi
6729 done
6730 if (test -z "$blibflags"); then
6731 { $as_echo "$as_me:$LINENO: result: not found" >&5
6732$as_echo "not found" >&6; }
6733 { { $as_echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5
6734$as_echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;}
6735 { (exit 1); exit 1; }; }
6736 else
6737 { $as_echo "$as_me:$LINENO: result: $blibflags" >&5
6738$as_echo "$blibflags" >&6; }
6739 fi
6740 LDFLAGS="$saved_LDFLAGS"
6741 { $as_echo "$as_me:$LINENO: checking for authenticate" >&5
6742$as_echo_n "checking for authenticate... " >&6; }
6743if test "${ac_cv_func_authenticate+set}" = set; then
6744 $as_echo_n "(cached) " >&6
6745else
6746 cat >conftest.$ac_ext <<_ACEOF
6747/* confdefs.h. */
6748_ACEOF
6749cat confdefs.h >>conftest.$ac_ext
6750cat >>conftest.$ac_ext <<_ACEOF
6751/* end confdefs.h. */
6752/* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate.
6753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6754#define authenticate innocuous_authenticate
6755
6756/* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char authenticate (); below.
6758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759 <limits.h> exists even on freestanding compilers. */
6760
6761#ifdef __STDC__
6762# include <limits.h>
6763#else
6764# include <assert.h>
6765#endif
6766
6767#undef authenticate
6768
6769/* Override any GCC internal prototype to avoid an error.
6770 Use char because int might match the return type of a GCC
6771 builtin and then its argument prototype would still apply. */
6772#ifdef __cplusplus
6773extern "C"
6774#endif
6775char authenticate ();
6776/* The GNU C library defines this for functions which it implements
6777 to always fail with ENOSYS. Some functions are actually named
6778 something starting with __ and the normal name is an alias. */
6779#if defined __stub_authenticate || defined __stub___authenticate
6780choke me
6781#endif
6782
6783int
6784main ()
6785{
6786return authenticate ();
6787 ;
6788 return 0;
6789}
6790_ACEOF
6791rm -f conftest.$ac_objext conftest$ac_exeext
6792if { (ac_try="$ac_link"
6793case "(($ac_try" in
6794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6795 *) ac_try_echo=$ac_try;;
6796esac
6797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6798$as_echo "$ac_try_echo") >&5
6799 (eval "$ac_link") 2>conftest.er1
6800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && {
6806 test -z "$ac_c_werror_flag" ||
6807 test ! -s conftest.err
6808 } && test -s conftest$ac_exeext && {
6809 test "$cross_compiling" = yes ||
6810 $as_test_x conftest$ac_exeext
6811 }; then
6812 ac_cv_func_authenticate=yes
6813else
6814 $as_echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 ac_cv_func_authenticate=no
6818fi
6819
6820rm -rf conftest.dSYM
6821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6823fi
6824{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5
6825$as_echo "$ac_cv_func_authenticate" >&6; }
6826if test $ac_cv_func_authenticate = yes; then
6827
6828cat >>confdefs.h <<\_ACEOF
6829#define WITH_AIXAUTHENTICATE 1
6830_ACEOF
6831
6832else
6833 { $as_echo "$as_me:$LINENO: checking for authenticate in -ls" >&5
6834$as_echo_n "checking for authenticate in -ls... " >&6; }
6835if test "${ac_cv_lib_s_authenticate+set}" = set; then
6836 $as_echo_n "(cached) " >&6
6837else
6838 ac_check_lib_save_LIBS=$LIBS
6839LIBS="-ls $LIBS"
6840cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h. */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h. */
6846
6847/* Override any GCC internal prototype to avoid an error.
6848 Use char because int might match the return type of a GCC
6849 builtin and then its argument prototype would still apply. */
6850#ifdef __cplusplus
6851extern "C"
6852#endif
6853char authenticate ();
6854int
6855main ()
6856{
6857return authenticate ();
6858 ;
6859 return 0;
6860}
6861_ACEOF
6862rm -f conftest.$ac_objext conftest$ac_exeext
6863if { (ac_try="$ac_link"
6864case "(($ac_try" in
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6867esac
6868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6869$as_echo "$ac_try_echo") >&5
6870 (eval "$ac_link") 2>conftest.er1
6871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && {
6877 test -z "$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 } && test -s conftest$ac_exeext && {
6880 test "$cross_compiling" = yes ||
6881 $as_test_x conftest$ac_exeext
6882 }; then
6883 ac_cv_lib_s_authenticate=yes
6884else
6885 $as_echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ac_cv_lib_s_authenticate=no
6889fi
6890
6891rm -rf conftest.dSYM
6892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6893 conftest$ac_exeext conftest.$ac_ext
6894LIBS=$ac_check_lib_save_LIBS
6895fi
6896{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5
6897$as_echo "$ac_cv_lib_s_authenticate" >&6; }
6898if test $ac_cv_lib_s_authenticate = yes; then
6899 cat >>confdefs.h <<\_ACEOF
6900#define WITH_AIXAUTHENTICATE 1
6901_ACEOF
6902
6903 LIBS="$LIBS -ls"
6904
6905fi
6906
6907
6908fi
6909
6910 { $as_echo "$as_me:$LINENO: checking whether authenticate is declared" >&5
6911$as_echo_n "checking whether authenticate is declared... " >&6; }
6912if test "${ac_cv_have_decl_authenticate+set}" = set; then
6913 $as_echo_n "(cached) " >&6
6914else
6915 cat >conftest.$ac_ext <<_ACEOF
6916/* confdefs.h. */
6917_ACEOF
6918cat confdefs.h >>conftest.$ac_ext
6919cat >>conftest.$ac_ext <<_ACEOF
6920/* end confdefs.h. */
6921#include <usersec.h>
6922
6923int
6924main ()
6925{
6926#ifndef authenticate
6927 (void) authenticate;
6928#endif
6929
6930 ;
6931 return 0;
6932}
6933_ACEOF
6934rm -f conftest.$ac_objext
6935if { (ac_try="$ac_compile"
6936case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939esac
6940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941$as_echo "$ac_try_echo") >&5
6942 (eval "$ac_compile") 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } && {
6949 test -z "$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 } && test -s conftest.$ac_objext; then
6952 ac_cv_have_decl_authenticate=yes
6953else
6954 $as_echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 ac_cv_have_decl_authenticate=no
6958fi
6959
6960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961fi
6962{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5
6963$as_echo "$ac_cv_have_decl_authenticate" >&6; }
6964if test $ac_cv_have_decl_authenticate = yes; then
6965
6966cat >>confdefs.h <<_ACEOF
6967#define HAVE_DECL_AUTHENTICATE 1
6968_ACEOF
6969
6970
6971else
6972 cat >>confdefs.h <<_ACEOF
6973#define HAVE_DECL_AUTHENTICATE 0
6974_ACEOF
6975
6976
6977fi
6978{ $as_echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5
6979$as_echo_n "checking whether loginrestrictions is declared... " >&6; }
6980if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then
6981 $as_echo_n "(cached) " >&6
6982else
6983 cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h. */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h. */
6989#include <usersec.h>
6990
6991int
6992main ()
6993{
6994#ifndef loginrestrictions
6995 (void) loginrestrictions;
6996#endif
6997
6998 ;
6999 return 0;
7000}
7001_ACEOF
7002rm -f conftest.$ac_objext
7003if { (ac_try="$ac_compile"
7004case "(($ac_try" in
7005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7007esac
7008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009$as_echo "$ac_try_echo") >&5
7010 (eval "$ac_compile") 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest.$ac_objext; then
7020 ac_cv_have_decl_loginrestrictions=yes
7021else
7022 $as_echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025 ac_cv_have_decl_loginrestrictions=no
7026fi
7027
7028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029fi
7030{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5
7031$as_echo "$ac_cv_have_decl_loginrestrictions" >&6; }
7032if test $ac_cv_have_decl_loginrestrictions = yes; then
7033
7034cat >>confdefs.h <<_ACEOF
7035#define HAVE_DECL_LOGINRESTRICTIONS 1
7036_ACEOF
7037
7038
7039else
7040 cat >>confdefs.h <<_ACEOF
7041#define HAVE_DECL_LOGINRESTRICTIONS 0
7042_ACEOF
7043
7044
7045fi
7046{ $as_echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5
7047$as_echo_n "checking whether loginsuccess is declared... " >&6; }
7048if test "${ac_cv_have_decl_loginsuccess+set}" = set; then
7049 $as_echo_n "(cached) " >&6
7050else
7051 cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
7057#include <usersec.h>
7058
7059int
7060main ()
7061{
7062#ifndef loginsuccess
7063 (void) loginsuccess;
7064#endif
7065
7066 ;
7067 return 0;
7068}
7069_ACEOF
7070rm -f conftest.$ac_objext
7071if { (ac_try="$ac_compile"
7072case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075esac
7076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077$as_echo "$ac_try_echo") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_have_decl_loginsuccess=yes
7089else
7090 $as_echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_have_decl_loginsuccess=no
7094fi
7095
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5
7099$as_echo "$ac_cv_have_decl_loginsuccess" >&6; }
7100if test $ac_cv_have_decl_loginsuccess = yes; then
7101
7102cat >>confdefs.h <<_ACEOF
7103#define HAVE_DECL_LOGINSUCCESS 1
7104_ACEOF
7105
7106
7107else
7108 cat >>confdefs.h <<_ACEOF
7109#define HAVE_DECL_LOGINSUCCESS 0
7110_ACEOF
7111
7112
7113fi
7114{ $as_echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5
7115$as_echo_n "checking whether passwdexpired is declared... " >&6; }
7116if test "${ac_cv_have_decl_passwdexpired+set}" = set; then
7117 $as_echo_n "(cached) " >&6
7118else
7119 cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h. */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h. */
7125#include <usersec.h>
7126
7127int
7128main ()
7129{
7130#ifndef passwdexpired
7131 (void) passwdexpired;
7132#endif
7133
7134 ;
7135 return 0;
7136}
7137_ACEOF
7138rm -f conftest.$ac_objext
7139if { (ac_try="$ac_compile"
7140case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143esac
7144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145$as_echo "$ac_try_echo") >&5
7146 (eval "$ac_compile") 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_c_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest.$ac_objext; then
7156 ac_cv_have_decl_passwdexpired=yes
7157else
7158 $as_echo "$as_me: failed program was:" >&5
7159sed 's/^/| /' conftest.$ac_ext >&5
7160
7161 ac_cv_have_decl_passwdexpired=no
7162fi
7163
7164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165fi
7166{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5
7167$as_echo "$ac_cv_have_decl_passwdexpired" >&6; }
7168if test $ac_cv_have_decl_passwdexpired = yes; then
7169
7170cat >>confdefs.h <<_ACEOF
7171#define HAVE_DECL_PASSWDEXPIRED 1
7172_ACEOF
7173
7174
7175else
7176 cat >>confdefs.h <<_ACEOF
7177#define HAVE_DECL_PASSWDEXPIRED 0
7178_ACEOF
7179
7180
7181fi
7182{ $as_echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5
7183$as_echo_n "checking whether setauthdb is declared... " >&6; }
7184if test "${ac_cv_have_decl_setauthdb+set}" = set; then
7185 $as_echo_n "(cached) " >&6
7186else
7187 cat >conftest.$ac_ext <<_ACEOF
7188/* confdefs.h. */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h. */
7193#include <usersec.h>
7194
7195int
7196main ()
7197{
7198#ifndef setauthdb
7199 (void) setauthdb;
7200#endif
7201
7202 ;
7203 return 0;
7204}
7205_ACEOF
7206rm -f conftest.$ac_objext
7207if { (ac_try="$ac_compile"
7208case "(($ac_try" in
7209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7210 *) ac_try_echo=$ac_try;;
7211esac
7212eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7213$as_echo "$ac_try_echo") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.$ac_objext; then
7224 ac_cv_have_decl_setauthdb=yes
7225else
7226 $as_echo "$as_me: failed program was:" >&5
7227sed 's/^/| /' conftest.$ac_ext >&5
7228
7229 ac_cv_have_decl_setauthdb=no
7230fi
7231
7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233fi
7234{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5
7235$as_echo "$ac_cv_have_decl_setauthdb" >&6; }
7236if test $ac_cv_have_decl_setauthdb = yes; then
7237
7238cat >>confdefs.h <<_ACEOF
7239#define HAVE_DECL_SETAUTHDB 1
7240_ACEOF
7241
7242
7243else
7244 cat >>confdefs.h <<_ACEOF
7245#define HAVE_DECL_SETAUTHDB 0
7246_ACEOF
7247
7248
7249fi
7250
7251
7252 { $as_echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5
7253$as_echo_n "checking whether loginfailed is declared... " >&6; }
7254if test "${ac_cv_have_decl_loginfailed+set}" = set; then
7255 $as_echo_n "(cached) " >&6
7256else
7257 cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h. */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h. */
7263#include <usersec.h>
7264
7265
7266int
7267main ()
7268{
7269#ifndef loginfailed
7270 (void) loginfailed;
7271#endif
7272
7273 ;
7274 return 0;
7275}
7276_ACEOF
7277rm -f conftest.$ac_objext
7278if { (ac_try="$ac_compile"
7279case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282esac
7283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7284$as_echo "$ac_try_echo") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7295 ac_cv_have_decl_loginfailed=yes
7296else
7297 $as_echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ac_cv_have_decl_loginfailed=no
7301fi
7302
7303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304fi
7305{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5
7306$as_echo "$ac_cv_have_decl_loginfailed" >&6; }
7307if test $ac_cv_have_decl_loginfailed = yes; then
7308
7309cat >>confdefs.h <<_ACEOF
7310#define HAVE_DECL_LOGINFAILED 1
7311_ACEOF
7312
7313{ $as_echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5
7314$as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
7315 cat >conftest.$ac_ext <<_ACEOF
7316/* confdefs.h. */
7317_ACEOF
7318cat confdefs.h >>conftest.$ac_ext
7319cat >>conftest.$ac_ext <<_ACEOF
7320/* end confdefs.h. */
7321#include <usersec.h>
7322int
7323main ()
7324{
7325(void)loginfailed("user","host","tty",0);
7326 ;
7327 return 0;
7328}
7329_ACEOF
7330rm -f conftest.$ac_objext
7331if { (ac_try="$ac_compile"
7332case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335esac
7336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7337$as_echo "$ac_try_echo") >&5
7338 (eval "$ac_compile") 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest.$ac_objext; then
7348 { $as_echo "$as_me:$LINENO: result: yes" >&5
7349$as_echo "yes" >&6; }
7350
7351cat >>confdefs.h <<\_ACEOF
7352#define AIX_LOGINFAILED_4ARG 1
7353_ACEOF
7354
7355else
7356 $as_echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 { $as_echo "$as_me:$LINENO: result: no" >&5
7360$as_echo "no" >&6; }
7361
7362fi
7363
7364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365else
7366 cat >>confdefs.h <<_ACEOF
7367#define HAVE_DECL_LOGINFAILED 0
7368_ACEOF
7369
7370
7371fi
7372
7373
7374
7375
7376for ac_func in getgrset setauthdb
7377do
7378as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7379{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7380$as_echo_n "checking for $ac_func... " >&6; }
7381if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7382 $as_echo_n "(cached) " >&6
7383else
7384 cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h. */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h. */
7390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7392#define $ac_func innocuous_$ac_func
7393
7394/* System header to define __stub macros and hopefully few prototypes,
7395 which can conflict with char $ac_func (); below.
7396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7397 <limits.h> exists even on freestanding compilers. */
7398
7399#ifdef __STDC__
7400# include <limits.h>
7401#else
7402# include <assert.h>
7403#endif
7404
7405#undef $ac_func
7406
7407/* Override any GCC internal prototype to avoid an error.
7408 Use char because int might match the return type of a GCC
7409 builtin and then its argument prototype would still apply. */
7410#ifdef __cplusplus
7411extern "C"
7412#endif
7413char $ac_func ();
7414/* The GNU C library defines this for functions which it implements
7415 to always fail with ENOSYS. Some functions are actually named
7416 something starting with __ and the normal name is an alias. */
7417#if defined __stub_$ac_func || defined __stub___$ac_func
7418choke me
7419#endif
7420
7421int
7422main ()
7423{
7424return $ac_func ();
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429rm -f conftest.$ac_objext conftest$ac_exeext
7430if { (ac_try="$ac_link"
7431case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434esac
7435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7436$as_echo "$ac_try_echo") >&5
7437 (eval "$ac_link") 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && {
7444 test -z "$ac_c_werror_flag" ||
7445 test ! -s conftest.err
7446 } && test -s conftest$ac_exeext && {
7447 test "$cross_compiling" = yes ||
7448 $as_test_x conftest$ac_exeext
7449 }; then
7450 eval "$as_ac_var=yes"
7451else
7452 $as_echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 eval "$as_ac_var=no"
7456fi
7457
7458rm -rf conftest.dSYM
7459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7460 conftest$ac_exeext conftest.$ac_ext
7461fi
7462ac_res=`eval 'as_val=${'$as_ac_var'}
7463 $as_echo "$as_val"'`
7464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7465$as_echo "$ac_res" >&6; }
7466if test `eval 'as_val=${'$as_ac_var'}
7467 $as_echo "$as_val"'` = yes; then
7468 cat >>confdefs.h <<_ACEOF
7469#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7470_ACEOF
7471
7472fi
7473done
7474
7475 { $as_echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
7476$as_echo_n "checking whether F_CLOSEM is declared... " >&6; }
7477if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
7478 $as_echo_n "(cached) " >&6
7479else
7480 cat >conftest.$ac_ext <<_ACEOF
7481/* confdefs.h. */
7482_ACEOF
7483cat confdefs.h >>conftest.$ac_ext
7484cat >>conftest.$ac_ext <<_ACEOF
7485/* end confdefs.h. */
7486 #include <limits.h>
7487 #include <fcntl.h>
7488
7489
7490int
7491main ()
7492{
7493#ifndef F_CLOSEM
7494 (void) F_CLOSEM;
7495#endif
7496
7497 ;
7498 return 0;
7499}
7500_ACEOF
7501rm -f conftest.$ac_objext
7502if { (ac_try="$ac_compile"
7503case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506esac
7507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7508$as_echo "$ac_try_echo") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 ac_cv_have_decl_F_CLOSEM=yes
7520else
7521 $as_echo "$as_me: failed program was:" >&5
7522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 ac_cv_have_decl_F_CLOSEM=no
7525fi
7526
7527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528fi
7529{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
7530$as_echo "$ac_cv_have_decl_F_CLOSEM" >&6; }
7531if test $ac_cv_have_decl_F_CLOSEM = yes; then
7532
7533cat >>confdefs.h <<\_ACEOF
7534#define HAVE_FCNTL_CLOSEM 1
7535_ACEOF
7536
7537fi
7538
7539 check_for_aix_broken_getaddrinfo=1
7540
7541cat >>confdefs.h <<\_ACEOF
7542#define BROKEN_REALPATH 1
7543_ACEOF
7544
7545
7546cat >>confdefs.h <<\_ACEOF
7547#define SETEUID_BREAKS_SETUID 1
7548_ACEOF
7549
7550
7551cat >>confdefs.h <<\_ACEOF
7552#define BROKEN_SETREUID 1
7553_ACEOF
7554
7555
7556cat >>confdefs.h <<\_ACEOF
7557#define BROKEN_SETREGID 1
7558_ACEOF
7559
7560
7561cat >>confdefs.h <<\_ACEOF
7562#define DISABLE_LASTLOG 1
7563_ACEOF
7564
7565
7566cat >>confdefs.h <<\_ACEOF
7567#define LOGIN_NEEDS_UTMPX 1
7568_ACEOF
7569
7570
7571cat >>confdefs.h <<\_ACEOF
7572#define SPT_TYPE SPT_REUSEARGV
7573_ACEOF
7574
7575
7576cat >>confdefs.h <<\_ACEOF
7577#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
7578_ACEOF
7579
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define PTY_ZEROREAD 1
7583_ACEOF
7584
7585 ;;
7586*-*-cygwin*)
7587 check_for_libcrypt_later=1
7588 LIBS="$LIBS /usr/lib/textreadmode.o"
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_CYGWIN 1
7592_ACEOF
7593
7594
7595cat >>confdefs.h <<\_ACEOF
7596#define USE_PIPES 1
7597_ACEOF
7598
7599
7600cat >>confdefs.h <<\_ACEOF
7601#define DISABLE_SHADOW 1
7602_ACEOF
7603
7604
7605cat >>confdefs.h <<\_ACEOF
7606#define NO_X11_UNIX_SOCKETS 1
7607_ACEOF
7608
7609
7610cat >>confdefs.h <<\_ACEOF
7611#define NO_IPPORT_RESERVED_CONCEPT 1
7612_ACEOF
7613
7614
7615cat >>confdefs.h <<\_ACEOF
7616#define DISABLE_FD_PASSING 1
7617_ACEOF
7618
7619
7620cat >>confdefs.h <<\_ACEOF
7621#define SSH_IOBUFSZ 65536
7622_ACEOF
7623
7624 ;;
7625*-*-dgux*)
7626
7627cat >>confdefs.h <<\_ACEOF
7628#define IP_TOS_IS_BROKEN 1
7629_ACEOF
7630
7631 cat >>confdefs.h <<\_ACEOF
7632#define SETEUID_BREAKS_SETUID 1
7633_ACEOF
7634
7635 cat >>confdefs.h <<\_ACEOF
7636#define BROKEN_SETREUID 1
7637_ACEOF
7638
7639 cat >>confdefs.h <<\_ACEOF
7640#define BROKEN_SETREGID 1
7641_ACEOF
7642
7643 ;;
7644*-*-darwin*)
7645 { $as_echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5
7646$as_echo_n "checking if we have working getaddrinfo... " >&6; }
7647 if test "$cross_compiling" = yes; then
7648 { $as_echo "$as_me:$LINENO: result: assume it is working" >&5
7649$as_echo "assume it is working" >&6; }
7650else
7651 cat >conftest.$ac_ext <<_ACEOF
7652/* confdefs.h. */
7653_ACEOF
7654cat confdefs.h >>conftest.$ac_ext
7655cat >>conftest.$ac_ext <<_ACEOF
7656/* end confdefs.h. */
7657#include <mach-o/dyld.h>
7658main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
7659 exit(0);
7660 else
7661 exit(1);
7662}
7663_ACEOF
7664rm -f conftest$ac_exeext
7665if { (ac_try="$ac_link"
7666case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7669esac
7670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7671$as_echo "$ac_try_echo") >&5
7672 (eval "$ac_link") 2>&5
7673 ac_status=$?
7674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7676 { (case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679esac
7680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7681$as_echo "$ac_try_echo") >&5
7682 (eval "$ac_try") 2>&5
7683 ac_status=$?
7684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; }; then
7686 { $as_echo "$as_me:$LINENO: result: working" >&5
7687$as_echo "working" >&6; }
7688else
7689 $as_echo "$as_me: program exited with status $ac_status" >&5
7690$as_echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
7693( exit $ac_status )
7694{ $as_echo "$as_me:$LINENO: result: buggy" >&5
7695$as_echo "buggy" >&6; }
7696
7697cat >>confdefs.h <<\_ACEOF
7698#define BROKEN_GETADDRINFO 1
7699_ACEOF
7700
7701fi
7702rm -rf conftest.dSYM
7703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7704fi
7705
7706
7707 cat >>confdefs.h <<\_ACEOF
7708#define SETEUID_BREAKS_SETUID 1
7709_ACEOF
7710
7711 cat >>confdefs.h <<\_ACEOF
7712#define BROKEN_SETREUID 1
7713_ACEOF
7714
7715 cat >>confdefs.h <<\_ACEOF
7716#define BROKEN_SETREGID 1
7717_ACEOF
7718
7719
7720cat >>confdefs.h <<\_ACEOF
7721#define BROKEN_GLOB 1
7722_ACEOF
7723
7724
7725cat >>confdefs.h <<_ACEOF
7726#define BIND_8_COMPAT 1
7727_ACEOF
7728
7729
7730cat >>confdefs.h <<\_ACEOF
7731#define SSH_TUN_FREEBSD 1
7732_ACEOF
7733
7734
7735cat >>confdefs.h <<\_ACEOF
7736#define SSH_TUN_COMPAT_AF 1
7737_ACEOF
7738
7739
7740cat >>confdefs.h <<\_ACEOF
7741#define SSH_TUN_PREPEND_AF 1
7742_ACEOF
7743
7744
7745 { $as_echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5
7746$as_echo_n "checking whether AU_IPv4 is declared... " >&6; }
7747if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then
7748 $as_echo_n "(cached) " >&6
7749else
7750 cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
7756$ac_includes_default
7757int
7758main ()
7759{
7760#ifndef AU_IPv4
7761 (void) AU_IPv4;
7762#endif
7763
7764 ;
7765 return 0;
7766}
7767_ACEOF
7768rm -f conftest.$ac_objext
7769if { (ac_try="$ac_compile"
7770case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773esac
7774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775$as_echo "$ac_try_echo") >&5
7776 (eval "$ac_compile") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest.$ac_objext; then
7786 ac_cv_have_decl_AU_IPv4=yes
7787else
7788 $as_echo "$as_me: failed program was:" >&5
7789sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ac_cv_have_decl_AU_IPv4=no
7792fi
7793
7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795fi
7796{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5
7797$as_echo "$ac_cv_have_decl_AU_IPv4" >&6; }
7798if test $ac_cv_have_decl_AU_IPv4 = yes; then
7799 :
7800else
7801
7802cat >>confdefs.h <<\_ACEOF
7803#define AU_IPv4 0
7804_ACEOF
7805
7806 #include <bsm/audit.h>
7807
7808cat >>confdefs.h <<\_ACEOF
7809#define LASTLOG_WRITE_PUTUTXLINE 1
7810_ACEOF
7811
7812
7813fi
7814
7815 ;;
7816*-*-dragonfly*)
7817 SSHDLIBS="$SSHDLIBS -lcrypt"
7818 ;;
7819*-*-hpux*)
7820 # first we define all of the options common to all HP-UX releases
7821 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
7822 IPADDR_IN_DISPLAY=yes
7823 cat >>confdefs.h <<\_ACEOF
7824#define USE_PIPES 1
7825_ACEOF
7826
7827
7828cat >>confdefs.h <<\_ACEOF
7829#define LOGIN_NO_ENDOPT 1
7830_ACEOF
7831
7832 cat >>confdefs.h <<\_ACEOF
7833#define LOGIN_NEEDS_UTMPX 1
7834_ACEOF
7835
7836
7837cat >>confdefs.h <<\_ACEOF
7838#define LOCKED_PASSWD_STRING "*"
7839_ACEOF
7840
7841 cat >>confdefs.h <<\_ACEOF
7842#define SPT_TYPE SPT_PSTAT
7843_ACEOF
7844
7845 MAIL="/var/mail/username"
7846 LIBS="$LIBS -lsec"
7847
7848{ $as_echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5
7849$as_echo_n "checking for t_error in -lxnet... " >&6; }
7850if test "${ac_cv_lib_xnet_t_error+set}" = set; then
7851 $as_echo_n "(cached) " >&6
7852else
7853 ac_check_lib_save_LIBS=$LIBS
7854LIBS="-lxnet $LIBS"
7855cat >conftest.$ac_ext <<_ACEOF
7856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
7861
7862/* Override any GCC internal prototype to avoid an error.
7863 Use char because int might match the return type of a GCC
7864 builtin and then its argument prototype would still apply. */
7865#ifdef __cplusplus
7866extern "C"
7867#endif
7868char t_error ();
7869int
7870main ()
7871{
7872return t_error ();
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext conftest$ac_exeext
7878if { (ac_try="$ac_link"
7879case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882esac
7883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7884$as_echo "$ac_try_echo") >&5
7885 (eval "$ac_link") 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest$ac_exeext && {
7895 test "$cross_compiling" = yes ||
7896 $as_test_x conftest$ac_exeext
7897 }; then
7898 ac_cv_lib_xnet_t_error=yes
7899else
7900 $as_echo "$as_me: failed program was:" >&5
7901sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 ac_cv_lib_xnet_t_error=no
7904fi
7905
7906rm -rf conftest.dSYM
7907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7908 conftest$ac_exeext conftest.$ac_ext
7909LIBS=$ac_check_lib_save_LIBS
7910fi
7911{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5
7912$as_echo "$ac_cv_lib_xnet_t_error" >&6; }
7913if test $ac_cv_lib_xnet_t_error = yes; then
7914 cat >>confdefs.h <<_ACEOF
7915#define HAVE_LIBXNET 1
7916_ACEOF
7917
7918 LIBS="-lxnet $LIBS"
7919
7920else
7921 { { $as_echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5
7922$as_echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;}
7923 { (exit 1); exit 1; }; }
7924fi
7925
7926
7927 # next, we define all of the options specific to major releases
7928 case "$host" in
7929 *-*-hpux10*)
7930 if test -z "$GCC"; then
7931 CFLAGS="$CFLAGS -Ae"
7932 fi
7933 ;;
7934 *-*-hpux11*)
7935
7936cat >>confdefs.h <<\_ACEOF
7937#define PAM_SUN_CODEBASE 1
7938_ACEOF
7939
7940
7941cat >>confdefs.h <<\_ACEOF
7942#define DISABLE_UTMP 1
7943_ACEOF
7944
7945
7946cat >>confdefs.h <<\_ACEOF
7947#define USE_BTMP 1
7948_ACEOF
7949
7950 check_for_hpux_broken_getaddrinfo=1
7951 check_for_conflicting_getspnam=1
7952 ;;
7953 esac
7954
7955 # lastly, we define options specific to minor releases
7956 case "$host" in
7957 *-*-hpux10.26)
7958
7959cat >>confdefs.h <<\_ACEOF
7960#define HAVE_SECUREWARE 1
7961_ACEOF
7962
7963 disable_ptmx_check=yes
7964 LIBS="$LIBS -lsecpw"
7965 ;;
7966 esac
7967 ;;
7968*-*-irix5*)
7969 PATH="$PATH:/usr/etc"
7970
7971cat >>confdefs.h <<\_ACEOF
7972#define BROKEN_INET_NTOA 1
7973_ACEOF
7974
7975 cat >>confdefs.h <<\_ACEOF
7976#define SETEUID_BREAKS_SETUID 1
7977_ACEOF
7978
7979 cat >>confdefs.h <<\_ACEOF
7980#define BROKEN_SETREUID 1
7981_ACEOF
7982
7983 cat >>confdefs.h <<\_ACEOF
7984#define BROKEN_SETREGID 1
7985_ACEOF
7986
7987
7988cat >>confdefs.h <<\_ACEOF
7989#define WITH_ABBREV_NO_TTY 1
7990_ACEOF
7991
7992 cat >>confdefs.h <<\_ACEOF
7993#define LOCKED_PASSWD_STRING "*LK*"
7994_ACEOF
7995
7996 ;;
7997*-*-irix6*)
7998 PATH="$PATH:/usr/etc"
7999
8000cat >>confdefs.h <<\_ACEOF
8001#define WITH_IRIX_ARRAY 1
8002_ACEOF
8003
8004
8005cat >>confdefs.h <<\_ACEOF
8006#define WITH_IRIX_PROJECT 1
8007_ACEOF
8008
8009
8010cat >>confdefs.h <<\_ACEOF
8011#define WITH_IRIX_AUDIT 1
8012_ACEOF
8013
8014 { $as_echo "$as_me:$LINENO: checking for jlimit_startjob" >&5
8015$as_echo_n "checking for jlimit_startjob... " >&6; }
8016if test "${ac_cv_func_jlimit_startjob+set}" = set; then
8017 $as_echo_n "(cached) " >&6
8018else
8019 cat >conftest.$ac_ext <<_ACEOF
8020/* confdefs.h. */
8021_ACEOF
8022cat confdefs.h >>conftest.$ac_ext
8023cat >>conftest.$ac_ext <<_ACEOF
8024/* end confdefs.h. */
8025/* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob.
8026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8027#define jlimit_startjob innocuous_jlimit_startjob
8028
8029/* System header to define __stub macros and hopefully few prototypes,
8030 which can conflict with char jlimit_startjob (); below.
8031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8032 <limits.h> exists even on freestanding compilers. */
8033
8034#ifdef __STDC__
8035# include <limits.h>
8036#else
8037# include <assert.h>
8038#endif
8039
8040#undef jlimit_startjob
8041
8042/* Override any GCC internal prototype to avoid an error.
8043 Use char because int might match the return type of a GCC
8044 builtin and then its argument prototype would still apply. */
8045#ifdef __cplusplus
8046extern "C"
8047#endif
8048char jlimit_startjob ();
8049/* The GNU C library defines this for functions which it implements
8050 to always fail with ENOSYS. Some functions are actually named
8051 something starting with __ and the normal name is an alias. */
8052#if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob
8053choke me
8054#endif
8055
8056int
8057main ()
8058{
8059return jlimit_startjob ();
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext conftest$ac_exeext
8065if { (ac_try="$ac_link"
8066case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069esac
8070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8071$as_echo "$ac_try_echo") >&5
8072 (eval "$ac_link") 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest$ac_exeext && {
8082 test "$cross_compiling" = yes ||
8083 $as_test_x conftest$ac_exeext
8084 }; then
8085 ac_cv_func_jlimit_startjob=yes
8086else
8087 $as_echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
8090 ac_cv_func_jlimit_startjob=no
8091fi
8092
8093rm -rf conftest.dSYM
8094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8095 conftest$ac_exeext conftest.$ac_ext
8096fi
8097{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5
8098$as_echo "$ac_cv_func_jlimit_startjob" >&6; }
8099if test $ac_cv_func_jlimit_startjob = yes; then
8100
8101cat >>confdefs.h <<\_ACEOF
8102#define WITH_IRIX_JOBS 1
8103_ACEOF
8104
8105fi
8106
8107 cat >>confdefs.h <<\_ACEOF
8108#define BROKEN_INET_NTOA 1
8109_ACEOF
8110
8111 cat >>confdefs.h <<\_ACEOF
8112#define SETEUID_BREAKS_SETUID 1
8113_ACEOF
8114
8115 cat >>confdefs.h <<\_ACEOF
8116#define BROKEN_SETREUID 1
8117_ACEOF
8118
8119 cat >>confdefs.h <<\_ACEOF
8120#define BROKEN_SETREGID 1
8121_ACEOF
8122
8123
8124cat >>confdefs.h <<\_ACEOF
8125#define BROKEN_UPDWTMPX 1
8126_ACEOF
8127
8128 cat >>confdefs.h <<\_ACEOF
8129#define WITH_ABBREV_NO_TTY 1
8130_ACEOF
8131
8132 cat >>confdefs.h <<\_ACEOF
8133#define LOCKED_PASSWD_STRING "*LK*"
8134_ACEOF
8135
8136 ;;
8137*-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
8138 check_for_libcrypt_later=1
8139 cat >>confdefs.h <<\_ACEOF
8140#define PAM_TTY_KLUDGE 1
8141_ACEOF
8142
8143 cat >>confdefs.h <<\_ACEOF
8144#define LOCKED_PASSWD_PREFIX "!"
8145_ACEOF
8146
8147 cat >>confdefs.h <<\_ACEOF
8148#define SPT_TYPE SPT_REUSEARGV
8149_ACEOF
8150
8151
8152cat >>confdefs.h <<\_ACEOF
8153#define _PATH_BTMP "/var/log/btmp"
8154_ACEOF
8155
8156
8157cat >>confdefs.h <<\_ACEOF
8158#define USE_BTMP 1
8159_ACEOF
8160
8161 ;;
8162*-*-linux*)
8163 no_dev_ptmx=1
8164 check_for_libcrypt_later=1
8165 check_for_openpty_ctty_bug=1
8166
8167cat >>confdefs.h <<\_ACEOF
8168#define PAM_TTY_KLUDGE 1
8169_ACEOF
8170
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define LOCKED_PASSWD_PREFIX "!"
8174_ACEOF
8175
8176 cat >>confdefs.h <<\_ACEOF
8177#define SPT_TYPE SPT_REUSEARGV
8178_ACEOF
8179
8180
8181cat >>confdefs.h <<\_ACEOF
8182#define LINK_OPNOTSUPP_ERRNO EPERM
8183_ACEOF
8184
8185
8186cat >>confdefs.h <<\_ACEOF
8187#define _PATH_BTMP "/var/log/btmp"
8188_ACEOF
8189
8190 cat >>confdefs.h <<\_ACEOF
8191#define USE_BTMP 1
8192_ACEOF
8193
8194 inet6_default_4in6=yes
8195 case `uname -r` in
8196 1.*|2.0.*)
8197
8198cat >>confdefs.h <<\_ACEOF
8199#define BROKEN_CMSG_TYPE 1
8200_ACEOF
8201
8202 ;;
8203 esac
8204 # tun(4) forwarding compat code
8205
8206for ac_header in linux/if_tun.h
8207do
8208as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8211$as_echo_n "checking for $ac_header... " >&6; }
8212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8213 $as_echo_n "(cached) " >&6
8214fi
8215ac_res=`eval 'as_val=${'$as_ac_Header'}
8216 $as_echo "$as_val"'`
8217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8218$as_echo "$ac_res" >&6; }
8219else
8220 # Is the header compilable?
8221{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8222$as_echo_n "checking $ac_header usability... " >&6; }
8223cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229$ac_includes_default
8230#include <$ac_header>
8231_ACEOF
8232rm -f conftest.$ac_objext
8233if { (ac_try="$ac_compile"
8234case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237esac
8238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8239$as_echo "$ac_try_echo") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 ac_header_compiler=yes
8251else
8252 $as_echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 ac_header_compiler=no
8256fi
8257
8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8260$as_echo "$ac_header_compiler" >&6; }
8261
8262# Is the header present?
8263{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8264$as_echo_n "checking $ac_header presence... " >&6; }
8265cat >conftest.$ac_ext <<_ACEOF
8266/* confdefs.h. */
8267_ACEOF
8268cat confdefs.h >>conftest.$ac_ext
8269cat >>conftest.$ac_ext <<_ACEOF
8270/* end confdefs.h. */
8271#include <$ac_header>
8272_ACEOF
8273if { (ac_try="$ac_cpp conftest.$ac_ext"
8274case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8279$as_echo "$ac_try_echo") >&5
8280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } >/dev/null && {
8287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 }; then
8290 ac_header_preproc=yes
8291else
8292 $as_echo "$as_me: failed program was:" >&5
8293sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_header_preproc=no
8296fi
8297
8298rm -f conftest.err conftest.$ac_ext
8299{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8300$as_echo "$ac_header_preproc" >&6; }
8301
8302# So? What about this header?
8303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8304 yes:no: )
8305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8306$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8308$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8309 ac_header_preproc=yes
8310 ;;
8311 no:yes:* )
8312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8313$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8315$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8317$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8319$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8321$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8323$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8324 ( cat <<\_ASBOX
8325## ------------------------------------------- ##
8326## Report this to openssh-unix-dev@mindrot.org ##
8327## ------------------------------------------- ##
8328_ASBOX
8329 ) | sed "s/^/$as_me: WARNING: /" >&2
8330 ;;
8331esac
8332{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8333$as_echo_n "checking for $ac_header... " >&6; }
8334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8335 $as_echo_n "(cached) " >&6
8336else
8337 eval "$as_ac_Header=\$ac_header_preproc"
8338fi
8339ac_res=`eval 'as_val=${'$as_ac_Header'}
8340 $as_echo "$as_val"'`
8341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8342$as_echo "$ac_res" >&6; }
8343
8344fi
8345if test `eval 'as_val=${'$as_ac_Header'}
8346 $as_echo "$as_val"'` = yes; then
8347 cat >>confdefs.h <<_ACEOF
8348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8349_ACEOF
8350
8351fi
8352
8353done
8354
8355 if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
8356
8357cat >>confdefs.h <<\_ACEOF
8358#define SSH_TUN_LINUX 1
8359_ACEOF
8360
8361
8362cat >>confdefs.h <<\_ACEOF
8363#define SSH_TUN_COMPAT_AF 1
8364_ACEOF
8365
8366
8367cat >>confdefs.h <<\_ACEOF
8368#define SSH_TUN_PREPEND_AF 1
8369_ACEOF
8370
8371 fi
8372 ;;
8373mips-sony-bsd|mips-sony-newsos4)
8374
8375cat >>confdefs.h <<\_ACEOF
8376#define NEED_SETPGRP 1
8377_ACEOF
8378
8379 SONY=1
8380 ;;
8381*-*-netbsd*)
8382 check_for_libcrypt_before=1
8383 if test "x$withval" != "xno" ; then
8384 need_dash_r=1
8385 fi
8386
8387cat >>confdefs.h <<\_ACEOF
8388#define SSH_TUN_FREEBSD 1
8389_ACEOF
8390
8391 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8392 { $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8393$as_echo_n "checking for net/if_tap.h... " >&6; }
8394if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8395 $as_echo_n "(cached) " >&6
8396fi
8397{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8398$as_echo "$ac_cv_header_net_if_tap_h" >&6; }
8399else
8400 # Is the header compilable?
8401{ $as_echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8402$as_echo_n "checking net/if_tap.h usability... " >&6; }
8403cat >conftest.$ac_ext <<_ACEOF
8404/* confdefs.h. */
8405_ACEOF
8406cat confdefs.h >>conftest.$ac_ext
8407cat >>conftest.$ac_ext <<_ACEOF
8408/* end confdefs.h. */
8409$ac_includes_default
8410#include <net/if_tap.h>
8411_ACEOF
8412rm -f conftest.$ac_objext
8413if { (ac_try="$ac_compile"
8414case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417esac
8418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419$as_echo "$ac_try_echo") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8430 ac_header_compiler=yes
8431else
8432 $as_echo "$as_me: failed program was:" >&5
8433sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_header_compiler=no
8436fi
8437
8438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8440$as_echo "$ac_header_compiler" >&6; }
8441
8442# Is the header present?
8443{ $as_echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8444$as_echo_n "checking net/if_tap.h presence... " >&6; }
8445cat >conftest.$ac_ext <<_ACEOF
8446/* confdefs.h. */
8447_ACEOF
8448cat confdefs.h >>conftest.$ac_ext
8449cat >>conftest.$ac_ext <<_ACEOF
8450/* end confdefs.h. */
8451#include <net/if_tap.h>
8452_ACEOF
8453if { (ac_try="$ac_cpp conftest.$ac_ext"
8454case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457esac
8458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8459$as_echo "$ac_try_echo") >&5
8460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } >/dev/null && {
8467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 }; then
8470 ac_header_preproc=yes
8471else
8472 $as_echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_header_preproc=no
8476fi
8477
8478rm -f conftest.err conftest.$ac_ext
8479{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480$as_echo "$ac_header_preproc" >&6; }
8481
8482# So? What about this header?
8483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8484 yes:no: )
8485 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8486$as_echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8488$as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8489 ac_header_preproc=yes
8490 ;;
8491 no:yes:* )
8492 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8493$as_echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8494 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8495$as_echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8496 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8497$as_echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8498 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8499$as_echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8500 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8501$as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8502 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8503$as_echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8504 ( cat <<\_ASBOX
8505## ------------------------------------------- ##
8506## Report this to openssh-unix-dev@mindrot.org ##
8507## ------------------------------------------- ##
8508_ASBOX
8509 ) | sed "s/^/$as_me: WARNING: /" >&2
8510 ;;
8511esac
8512{ $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8513$as_echo_n "checking for net/if_tap.h... " >&6; }
8514if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8515 $as_echo_n "(cached) " >&6
8516else
8517 ac_cv_header_net_if_tap_h=$ac_header_preproc
8518fi
8519{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8520$as_echo "$ac_cv_header_net_if_tap_h" >&6; }
8521
8522fi
8523if test $ac_cv_header_net_if_tap_h = yes; then
8524 :
8525else
8526
8527cat >>confdefs.h <<\_ACEOF
8528#define SSH_TUN_NO_L2 1
8529_ACEOF
8530
8531fi
8532
8533
8534
8535cat >>confdefs.h <<\_ACEOF
8536#define SSH_TUN_PREPEND_AF 1
8537_ACEOF
8538
8539 ;;
8540*-*-freebsd*)
8541 check_for_libcrypt_later=1
8542
8543cat >>confdefs.h <<\_ACEOF
8544#define LOCKED_PASSWD_PREFIX "*LOCKED*"
8545_ACEOF
8546
8547
8548cat >>confdefs.h <<\_ACEOF
8549#define SSH_TUN_FREEBSD 1
8550_ACEOF
8551
8552 if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8553 { $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8554$as_echo_n "checking for net/if_tap.h... " >&6; }
8555if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8556 $as_echo_n "(cached) " >&6
8557fi
8558{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8559$as_echo "$ac_cv_header_net_if_tap_h" >&6; }
8560else
8561 # Is the header compilable?
8562{ $as_echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5
8563$as_echo_n "checking net/if_tap.h usability... " >&6; }
8564cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
8570$ac_includes_default
8571#include <net/if_tap.h>
8572_ACEOF
8573rm -f conftest.$ac_objext
8574if { (ac_try="$ac_compile"
8575case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
8579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580$as_echo "$ac_try_echo") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8591 ac_header_compiler=yes
8592else
8593 $as_echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596 ac_header_compiler=no
8597fi
8598
8599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601$as_echo "$ac_header_compiler" >&6; }
8602
8603# Is the header present?
8604{ $as_echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5
8605$as_echo_n "checking net/if_tap.h presence... " >&6; }
8606cat >conftest.$ac_ext <<_ACEOF
8607/* confdefs.h. */
8608_ACEOF
8609cat confdefs.h >>conftest.$ac_ext
8610cat >>conftest.$ac_ext <<_ACEOF
8611/* end confdefs.h. */
8612#include <net/if_tap.h>
8613_ACEOF
8614if { (ac_try="$ac_cpp conftest.$ac_ext"
8615case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618esac
8619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8620$as_echo "$ac_try_echo") >&5
8621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } >/dev/null && {
8628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 }; then
8631 ac_header_preproc=yes
8632else
8633 $as_echo "$as_me: failed program was:" >&5
8634sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 ac_header_preproc=no
8637fi
8638
8639rm -f conftest.err conftest.$ac_ext
8640{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8641$as_echo "$ac_header_preproc" >&6; }
8642
8643# So? What about this header?
8644case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8645 yes:no: )
8646 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5
8647$as_echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8648 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5
8649$as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;}
8650 ac_header_preproc=yes
8651 ;;
8652 no:yes:* )
8653 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5
8654$as_echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;}
8655 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5
8656$as_echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;}
8657 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5
8658$as_echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;}
8659 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5
8660$as_echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;}
8661 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5
8662$as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;}
8663 { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5
8664$as_echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;}
8665 ( cat <<\_ASBOX
8666## ------------------------------------------- ##
8667## Report this to openssh-unix-dev@mindrot.org ##
8668## ------------------------------------------- ##
8669_ASBOX
8670 ) | sed "s/^/$as_me: WARNING: /" >&2
8671 ;;
8672esac
8673{ $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5
8674$as_echo_n "checking for net/if_tap.h... " >&6; }
8675if test "${ac_cv_header_net_if_tap_h+set}" = set; then
8676 $as_echo_n "(cached) " >&6
8677else
8678 ac_cv_header_net_if_tap_h=$ac_header_preproc
8679fi
8680{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5
8681$as_echo "$ac_cv_header_net_if_tap_h" >&6; }
8682
8683fi
8684if test $ac_cv_header_net_if_tap_h = yes; then
8685 :
8686else
8687
8688cat >>confdefs.h <<\_ACEOF
8689#define SSH_TUN_NO_L2 1
8690_ACEOF
8691
8692fi
8693
8694
8695
8696cat >>confdefs.h <<\_ACEOF
8697#define BROKEN_GLOB 1
8698_ACEOF
8699
8700 ;;
8701*-*-bsdi*)
8702 cat >>confdefs.h <<\_ACEOF
8703#define SETEUID_BREAKS_SETUID 1
8704_ACEOF
8705
8706 cat >>confdefs.h <<\_ACEOF
8707#define BROKEN_SETREUID 1
8708_ACEOF
8709
8710 cat >>confdefs.h <<\_ACEOF
8711#define BROKEN_SETREGID 1
8712_ACEOF
8713
8714 ;;
8715*-next-*)
8716 conf_lastlog_location="/usr/adm/lastlog"
8717 conf_utmp_location=/etc/utmp
8718 conf_wtmp_location=/usr/adm/wtmp
8719 MAIL=/usr/spool/mail
8720
8721cat >>confdefs.h <<\_ACEOF
8722#define HAVE_NEXT 1
8723_ACEOF
8724
8725 cat >>confdefs.h <<\_ACEOF
8726#define BROKEN_REALPATH 1
8727_ACEOF
8728
8729 cat >>confdefs.h <<\_ACEOF
8730#define USE_PIPES 1
8731_ACEOF
8732
8733
8734cat >>confdefs.h <<\_ACEOF
8735#define BROKEN_SAVED_UIDS 1
8736_ACEOF
8737
8738 ;;
8739*-*-openbsd*)
8740
8741cat >>confdefs.h <<\_ACEOF
8742#define HAVE_ATTRIBUTE__SENTINEL__ 1
8743_ACEOF
8744
8745
8746cat >>confdefs.h <<\_ACEOF
8747#define HAVE_ATTRIBUTE__BOUNDED__ 1
8748_ACEOF
8749
8750
8751cat >>confdefs.h <<\_ACEOF
8752#define SSH_TUN_OPENBSD 1
8753_ACEOF
8754
8755
8756cat >>confdefs.h <<\_ACEOF
8757#define SYSLOG_R_SAFE_IN_SIGHAND 1
8758_ACEOF
8759
8760 ;;
8761*-*-solaris*)
8762 if test "x$withval" != "xno" ; then
8763 need_dash_r=1
8764 fi
8765 cat >>confdefs.h <<\_ACEOF
8766#define PAM_SUN_CODEBASE 1
8767_ACEOF
8768
8769 cat >>confdefs.h <<\_ACEOF
8770#define LOGIN_NEEDS_UTMPX 1
8771_ACEOF
8772
8773
8774cat >>confdefs.h <<\_ACEOF
8775#define LOGIN_NEEDS_TERM 1
8776_ACEOF
8777
8778 cat >>confdefs.h <<\_ACEOF
8779#define PAM_TTY_KLUDGE 1
8780_ACEOF
8781
8782
8783cat >>confdefs.h <<\_ACEOF
8784#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
8785_ACEOF
8786
8787 cat >>confdefs.h <<\_ACEOF
8788#define LOCKED_PASSWD_STRING "*LK*"
8789_ACEOF
8790
8791 # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
8792
8793cat >>confdefs.h <<\_ACEOF
8794#define SSHD_ACQUIRES_CTTY 1
8795_ACEOF
8796
8797
8798cat >>confdefs.h <<\_ACEOF
8799#define PASSWD_NEEDS_USERNAME 1
8800_ACEOF
8801
8802
8803cat >>confdefs.h <<\_ACEOF
8804#define BROKEN_TCGETATTR_ICANON 1
8805_ACEOF
8806
8807 external_path_file=/etc/default/login
8808 # hardwire lastlog location (can't detect it on some versions)
8809 conf_lastlog_location="/var/adm/lastlog"
8810 { $as_echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5
8811$as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
8812 sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
8813 if test "$sol2ver" -ge 8; then
8814 { $as_echo "$as_me:$LINENO: result: yes" >&5
8815$as_echo "yes" >&6; }
8816 cat >>confdefs.h <<\_ACEOF
8817#define DISABLE_UTMP 1
8818_ACEOF
8819
8820
8821cat >>confdefs.h <<\_ACEOF
8822#define DISABLE_WTMP 1
8823_ACEOF
8824
8825 else
8826 { $as_echo "$as_me:$LINENO: result: no" >&5
8827$as_echo "no" >&6; }
8828 fi
8829
8830# Check whether --with-solaris-contracts was given.
8831if test "${with_solaris_contracts+set}" = set; then
8832 withval=$with_solaris_contracts;
8833 { $as_echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8834$as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
8835if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8836 $as_echo_n "(cached) " >&6
8837else
8838 ac_check_lib_save_LIBS=$LIBS
8839LIBS="-lcontract $LIBS"
8840cat >conftest.$ac_ext <<_ACEOF
8841/* confdefs.h. */
8842_ACEOF
8843cat confdefs.h >>conftest.$ac_ext
8844cat >>conftest.$ac_ext <<_ACEOF
8845/* end confdefs.h. */
8846
8847/* Override any GCC internal prototype to avoid an error.
8848 Use char because int might match the return type of a GCC
8849 builtin and then its argument prototype would still apply. */
8850#ifdef __cplusplus
8851extern "C"
8852#endif
8853char ct_tmpl_activate ();
8854int
8855main ()
8856{
8857return ct_tmpl_activate ();
8858 ;
8859 return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext conftest$ac_exeext
8863if { (ac_try="$ac_link"
8864case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867esac
8868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8869$as_echo "$ac_try_echo") >&5
8870 (eval "$ac_link") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest$ac_exeext && {
8880 test "$cross_compiling" = yes ||
8881 $as_test_x conftest$ac_exeext
8882 }; then
8883 ac_cv_lib_contract_ct_tmpl_activate=yes
8884else
8885 $as_echo "$as_me: failed program was:" >&5
8886sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 ac_cv_lib_contract_ct_tmpl_activate=no
8889fi
8890
8891rm -rf conftest.dSYM
8892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8893 conftest$ac_exeext conftest.$ac_ext
8894LIBS=$ac_check_lib_save_LIBS
8895fi
8896{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8897$as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8898if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8899
8900cat >>confdefs.h <<\_ACEOF
8901#define USE_SOLARIS_PROCESS_CONTRACTS 1
8902_ACEOF
8903
8904 SSHDLIBS="$SSHDLIBS -lcontract"
8905
8906 SPC_MSG="yes"
8907fi
8908
8909
8910fi
8911
8912 ;;
8913*-*-sunos4*)
8914 CPPFLAGS="$CPPFLAGS -DSUNOS4"
8915
8916for ac_func in getpwanam
8917do
8918as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8919{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8920$as_echo_n "checking for $ac_func... " >&6; }
8921if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8922 $as_echo_n "(cached) " >&6
8923else
8924 cat >conftest.$ac_ext <<_ACEOF
8925/* confdefs.h. */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */
8930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8932#define $ac_func innocuous_$ac_func
8933
8934/* System header to define __stub macros and hopefully few prototypes,
8935 which can conflict with char $ac_func (); below.
8936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8937 <limits.h> exists even on freestanding compilers. */
8938
8939#ifdef __STDC__
8940# include <limits.h>
8941#else
8942# include <assert.h>
8943#endif
8944
8945#undef $ac_func
8946
8947/* Override any GCC internal prototype to avoid an error.
8948 Use char because int might match the return type of a GCC
8949 builtin and then its argument prototype would still apply. */
8950#ifdef __cplusplus
8951extern "C"
8952#endif
8953char $ac_func ();
8954/* The GNU C library defines this for functions which it implements
8955 to always fail with ENOSYS. Some functions are actually named
8956 something starting with __ and the normal name is an alias. */
8957#if defined __stub_$ac_func || defined __stub___$ac_func
8958choke me
8959#endif
8960
8961int
8962main ()
8963{
8964return $ac_func ();
8965 ;
8966 return 0;
8967}
8968_ACEOF
8969rm -f conftest.$ac_objext conftest$ac_exeext
8970if { (ac_try="$ac_link"
8971case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
8975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8976$as_echo "$ac_try_echo") >&5
8977 (eval "$ac_link") 2>conftest.er1
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest$ac_exeext && {
8987 test "$cross_compiling" = yes ||
8988 $as_test_x conftest$ac_exeext
8989 }; then
8990 eval "$as_ac_var=yes"
8991else
8992 $as_echo "$as_me: failed program was:" >&5
8993sed 's/^/| /' conftest.$ac_ext >&5
8994
8995 eval "$as_ac_var=no"
8996fi
8997
8998rm -rf conftest.dSYM
8999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9000 conftest$ac_exeext conftest.$ac_ext
9001fi
9002ac_res=`eval 'as_val=${'$as_ac_var'}
9003 $as_echo "$as_val"'`
9004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9005$as_echo "$ac_res" >&6; }
9006if test `eval 'as_val=${'$as_ac_var'}
9007 $as_echo "$as_val"'` = yes; then
9008 cat >>confdefs.h <<_ACEOF
9009#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9010_ACEOF
9011
9012fi
9013done
9014
9015 cat >>confdefs.h <<\_ACEOF
9016#define PAM_SUN_CODEBASE 1
9017_ACEOF
9018
9019 conf_utmp_location=/etc/utmp
9020 conf_wtmp_location=/var/adm/wtmp
9021 conf_lastlog_location=/var/adm/lastlog
9022 cat >>confdefs.h <<\_ACEOF
9023#define USE_PIPES 1
9024_ACEOF
9025
9026 ;;
9027*-ncr-sysv*)
9028 LIBS="$LIBS -lc89"
9029 cat >>confdefs.h <<\_ACEOF
9030#define USE_PIPES 1
9031_ACEOF
9032
9033 cat >>confdefs.h <<\_ACEOF
9034#define SSHD_ACQUIRES_CTTY 1
9035_ACEOF
9036
9037 cat >>confdefs.h <<\_ACEOF
9038#define SETEUID_BREAKS_SETUID 1
9039_ACEOF
9040
9041 cat >>confdefs.h <<\_ACEOF
9042#define BROKEN_SETREUID 1
9043_ACEOF
9044
9045 cat >>confdefs.h <<\_ACEOF
9046#define BROKEN_SETREGID 1
9047_ACEOF
9048
9049 ;;
9050*-sni-sysv*)
9051 # /usr/ucblib MUST NOT be searched on ReliantUNIX
9052
9053{ $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9054$as_echo_n "checking for dlsym in -ldl... " >&6; }
9055if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9056 $as_echo_n "(cached) " >&6
9057else
9058 ac_check_lib_save_LIBS=$LIBS
9059LIBS="-ldl $LIBS"
9060cat >conftest.$ac_ext <<_ACEOF
9061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h. */
9066
9067/* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070#ifdef __cplusplus
9071extern "C"
9072#endif
9073char dlsym ();
9074int
9075main ()
9076{
9077return dlsym ();
9078 ;
9079 return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
9083if { (ac_try="$ac_link"
9084case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9089$as_echo "$ac_try_echo") >&5
9090 (eval "$ac_link") 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } && {
9097 test -z "$ac_c_werror_flag" ||
9098 test ! -s conftest.err
9099 } && test -s conftest$ac_exeext && {
9100 test "$cross_compiling" = yes ||
9101 $as_test_x conftest$ac_exeext
9102 }; then
9103 ac_cv_lib_dl_dlsym=yes
9104else
9105 $as_echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 ac_cv_lib_dl_dlsym=no
9109fi
9110
9111rm -rf conftest.dSYM
9112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9113 conftest$ac_exeext conftest.$ac_ext
9114LIBS=$ac_check_lib_save_LIBS
9115fi
9116{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9117$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9118if test $ac_cv_lib_dl_dlsym = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120#define HAVE_LIBDL 1
9121_ACEOF
9122
9123 LIBS="-ldl $LIBS"
9124
9125fi
9126
9127 # -lresolv needs to be at the end of LIBS or DNS lookups break
9128 { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
9129$as_echo_n "checking for res_query in -lresolv... " >&6; }
9130if test "${ac_cv_lib_resolv_res_query+set}" = set; then
9131 $as_echo_n "(cached) " >&6
9132else
9133 ac_check_lib_save_LIBS=$LIBS
9134LIBS="-lresolv $LIBS"
9135cat >conftest.$ac_ext <<_ACEOF
9136/* confdefs.h. */
9137_ACEOF
9138cat confdefs.h >>conftest.$ac_ext
9139cat >>conftest.$ac_ext <<_ACEOF
9140/* end confdefs.h. */
9141
9142/* Override any GCC internal prototype to avoid an error.
9143 Use char because int might match the return type of a GCC
9144 builtin and then its argument prototype would still apply. */
9145#ifdef __cplusplus
9146extern "C"
9147#endif
9148char res_query ();
9149int
9150main ()
9151{
9152return res_query ();
9153 ;
9154 return 0;
9155}
9156_ACEOF
9157rm -f conftest.$ac_objext conftest$ac_exeext
9158if { (ac_try="$ac_link"
9159case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162esac
9163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9164$as_echo "$ac_try_echo") >&5
9165 (eval "$ac_link") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest$ac_exeext && {
9175 test "$cross_compiling" = yes ||
9176 $as_test_x conftest$ac_exeext
9177 }; then
9178 ac_cv_lib_resolv_res_query=yes
9179else
9180 $as_echo "$as_me: failed program was:" >&5
9181sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_cv_lib_resolv_res_query=no
9184fi
9185
9186rm -rf conftest.dSYM
9187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9188 conftest$ac_exeext conftest.$ac_ext
9189LIBS=$ac_check_lib_save_LIBS
9190fi
9191{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
9192$as_echo "$ac_cv_lib_resolv_res_query" >&6; }
9193if test $ac_cv_lib_resolv_res_query = yes; then
9194 LIBS="$LIBS -lresolv"
9195fi
9196
9197 IPADDR_IN_DISPLAY=yes
9198 cat >>confdefs.h <<\_ACEOF
9199#define USE_PIPES 1
9200_ACEOF
9201
9202 cat >>confdefs.h <<\_ACEOF
9203#define IP_TOS_IS_BROKEN 1
9204_ACEOF
9205
9206 cat >>confdefs.h <<\_ACEOF
9207#define SETEUID_BREAKS_SETUID 1
9208_ACEOF
9209
9210 cat >>confdefs.h <<\_ACEOF
9211#define BROKEN_SETREUID 1
9212_ACEOF
9213
9214 cat >>confdefs.h <<\_ACEOF
9215#define BROKEN_SETREGID 1
9216_ACEOF
9217
9218 cat >>confdefs.h <<\_ACEOF
9219#define SSHD_ACQUIRES_CTTY 1
9220_ACEOF
9221
9222 external_path_file=/etc/default/login
9223 # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
9224 # Attention: always take care to bind libsocket and libnsl before libc,
9225 # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
9226 ;;
9227# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
9228*-*-sysv4.2*)
9229 cat >>confdefs.h <<\_ACEOF
9230#define USE_PIPES 1
9231_ACEOF
9232
9233 cat >>confdefs.h <<\_ACEOF
9234#define SETEUID_BREAKS_SETUID 1
9235_ACEOF
9236
9237 cat >>confdefs.h <<\_ACEOF
9238#define BROKEN_SETREUID 1
9239_ACEOF
9240
9241 cat >>confdefs.h <<\_ACEOF
9242#define BROKEN_SETREGID 1
9243_ACEOF
9244
9245
9246cat >>confdefs.h <<\_ACEOF
9247#define PASSWD_NEEDS_USERNAME 1
9248_ACEOF
9249
9250 cat >>confdefs.h <<\_ACEOF
9251#define LOCKED_PASSWD_STRING "*LK*"
9252_ACEOF
9253
9254 ;;
9255# UnixWare 7.x, OpenUNIX 8
9256*-*-sysv5*)
9257
9258cat >>confdefs.h <<\_ACEOF
9259#define UNIXWARE_LONG_PASSWORDS 1
9260_ACEOF
9261
9262 cat >>confdefs.h <<\_ACEOF
9263#define USE_PIPES 1
9264_ACEOF
9265
9266 cat >>confdefs.h <<\_ACEOF
9267#define SETEUID_BREAKS_SETUID 1
9268_ACEOF
9269
9270 cat >>confdefs.h <<\_ACEOF
9271#define BROKEN_SETREUID 1
9272_ACEOF
9273
9274 cat >>confdefs.h <<\_ACEOF
9275#define BROKEN_SETREGID 1
9276_ACEOF
9277
9278 cat >>confdefs.h <<\_ACEOF
9279#define PASSWD_NEEDS_USERNAME 1
9280_ACEOF
9281
9282 case "$host" in
9283 *-*-sysv5SCO_SV*) # SCO OpenServer 6.x
9284 TEST_SHELL=/u95/bin/sh
9285
9286cat >>confdefs.h <<\_ACEOF
9287#define BROKEN_LIBIAF 1
9288_ACEOF
9289
9290 cat >>confdefs.h <<\_ACEOF
9291#define BROKEN_UPDWTMPX 1
9292_ACEOF
9293
9294 { $as_echo "$as_me:$LINENO: checking for getluid in -lprot" >&5
9295$as_echo_n "checking for getluid in -lprot... " >&6; }
9296if test "${ac_cv_lib_prot_getluid+set}" = set; then
9297 $as_echo_n "(cached) " >&6
9298else
9299 ac_check_lib_save_LIBS=$LIBS
9300LIBS="-lprot $LIBS"
9301cat >conftest.$ac_ext <<_ACEOF
9302/* confdefs.h. */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h. */
9307
9308/* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
9311#ifdef __cplusplus
9312extern "C"
9313#endif
9314char getluid ();
9315int
9316main ()
9317{
9318return getluid ();
9319 ;
9320 return 0;
9321}
9322_ACEOF
9323rm -f conftest.$ac_objext conftest$ac_exeext
9324if { (ac_try="$ac_link"
9325case "(($ac_try" in
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9328esac
9329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9330$as_echo "$ac_try_echo") >&5
9331 (eval "$ac_link") 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } && {
9338 test -z "$ac_c_werror_flag" ||
9339 test ! -s conftest.err
9340 } && test -s conftest$ac_exeext && {
9341 test "$cross_compiling" = yes ||
9342 $as_test_x conftest$ac_exeext
9343 }; then
9344 ac_cv_lib_prot_getluid=yes
9345else
9346 $as_echo "$as_me: failed program was:" >&5
9347sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 ac_cv_lib_prot_getluid=no
9350fi
9351
9352rm -rf conftest.dSYM
9353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9354 conftest$ac_exeext conftest.$ac_ext
9355LIBS=$ac_check_lib_save_LIBS
9356fi
9357{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5
9358$as_echo "$ac_cv_lib_prot_getluid" >&6; }
9359if test $ac_cv_lib_prot_getluid = yes; then
9360 LIBS="$LIBS -lprot"
9361
9362
9363for ac_func in getluid setluid
9364do
9365as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9366{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9367$as_echo_n "checking for $ac_func... " >&6; }
9368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9369 $as_echo_n "(cached) " >&6
9370else
9371 cat >conftest.$ac_ext <<_ACEOF
9372/* confdefs.h. */
9373_ACEOF
9374cat confdefs.h >>conftest.$ac_ext
9375cat >>conftest.$ac_ext <<_ACEOF
9376/* end confdefs.h. */
9377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9379#define $ac_func innocuous_$ac_func
9380
9381/* System header to define __stub macros and hopefully few prototypes,
9382 which can conflict with char $ac_func (); below.
9383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9384 <limits.h> exists even on freestanding compilers. */
9385
9386#ifdef __STDC__
9387# include <limits.h>
9388#else
9389# include <assert.h>
9390#endif
9391
9392#undef $ac_func
9393
9394/* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
9397#ifdef __cplusplus
9398extern "C"
9399#endif
9400char $ac_func ();
9401/* The GNU C library defines this for functions which it implements
9402 to always fail with ENOSYS. Some functions are actually named
9403 something starting with __ and the normal name is an alias. */
9404#if defined __stub_$ac_func || defined __stub___$ac_func
9405choke me
9406#endif
9407
9408int
9409main ()
9410{
9411return $ac_func ();
9412 ;
9413 return 0;
9414}
9415_ACEOF
9416rm -f conftest.$ac_objext conftest$ac_exeext
9417if { (ac_try="$ac_link"
9418case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9423$as_echo "$ac_try_echo") >&5
9424 (eval "$ac_link") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest$ac_exeext && {
9434 test "$cross_compiling" = yes ||
9435 $as_test_x conftest$ac_exeext
9436 }; then
9437 eval "$as_ac_var=yes"
9438else
9439 $as_echo "$as_me: failed program was:" >&5
9440sed 's/^/| /' conftest.$ac_ext >&5
9441
9442 eval "$as_ac_var=no"
9443fi
9444
9445rm -rf conftest.dSYM
9446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447 conftest$ac_exeext conftest.$ac_ext
9448fi
9449ac_res=`eval 'as_val=${'$as_ac_var'}
9450 $as_echo "$as_val"'`
9451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9452$as_echo "$ac_res" >&6; }
9453if test `eval 'as_val=${'$as_ac_var'}
9454 $as_echo "$as_val"'` = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9457_ACEOF
9458
9459fi
9460done
9461
9462 cat >>confdefs.h <<\_ACEOF
9463#define HAVE_SECUREWARE 1
9464_ACEOF
9465
9466 cat >>confdefs.h <<\_ACEOF
9467#define DISABLE_SHADOW 1
9468_ACEOF
9469
9470
9471fi
9472
9473 ;;
9474 *) cat >>confdefs.h <<\_ACEOF
9475#define LOCKED_PASSWD_STRING "*LK*"
9476_ACEOF
9477
9478 check_for_libcrypt_later=1
9479 ;;
9480 esac
9481 ;;
9482*-*-sysv*)
9483 ;;
9484# SCO UNIX and OEM versions of SCO UNIX
9485*-*-sco3.2v4*)
9486 { { $as_echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5
9487$as_echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;}
9488 { (exit 1); exit 1; }; }
9489 ;;
9490# SCO OpenServer 5.x
9491*-*-sco3.2v5*)
9492 if test -z "$GCC"; then
9493 CFLAGS="$CFLAGS -belf"
9494 fi
9495 LIBS="$LIBS -lprot -lx -ltinfo -lm"
9496 no_dev_ptmx=1
9497 cat >>confdefs.h <<\_ACEOF
9498#define USE_PIPES 1
9499_ACEOF
9500
9501 cat >>confdefs.h <<\_ACEOF
9502#define HAVE_SECUREWARE 1
9503_ACEOF
9504
9505 cat >>confdefs.h <<\_ACEOF
9506#define DISABLE_SHADOW 1
9507_ACEOF
9508
9509 cat >>confdefs.h <<\_ACEOF
9510#define DISABLE_FD_PASSING 1
9511_ACEOF
9512
9513 cat >>confdefs.h <<\_ACEOF
9514#define SETEUID_BREAKS_SETUID 1
9515_ACEOF
9516
9517 cat >>confdefs.h <<\_ACEOF
9518#define BROKEN_SETREUID 1
9519_ACEOF
9520
9521 cat >>confdefs.h <<\_ACEOF
9522#define BROKEN_SETREGID 1
9523_ACEOF
9524
9525 cat >>confdefs.h <<\_ACEOF
9526#define WITH_ABBREV_NO_TTY 1
9527_ACEOF
9528
9529 cat >>confdefs.h <<\_ACEOF
9530#define BROKEN_UPDWTMPX 1
9531_ACEOF
9532
9533 cat >>confdefs.h <<\_ACEOF
9534#define PASSWD_NEEDS_USERNAME 1
9535_ACEOF
9536
9537
9538
9539for ac_func in getluid setluid
9540do
9541as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9542{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9543$as_echo_n "checking for $ac_func... " >&6; }
9544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9545 $as_echo_n "(cached) " >&6
9546else
9547 cat >conftest.$ac_ext <<_ACEOF
9548/* confdefs.h. */
9549_ACEOF
9550cat confdefs.h >>conftest.$ac_ext
9551cat >>conftest.$ac_ext <<_ACEOF
9552/* end confdefs.h. */
9553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9555#define $ac_func innocuous_$ac_func
9556
9557/* System header to define __stub macros and hopefully few prototypes,
9558 which can conflict with char $ac_func (); below.
9559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9560 <limits.h> exists even on freestanding compilers. */
9561
9562#ifdef __STDC__
9563# include <limits.h>
9564#else
9565# include <assert.h>
9566#endif
9567
9568#undef $ac_func
9569
9570/* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9573#ifdef __cplusplus
9574extern "C"
9575#endif
9576char $ac_func ();
9577/* The GNU C library defines this for functions which it implements
9578 to always fail with ENOSYS. Some functions are actually named
9579 something starting with __ and the normal name is an alias. */
9580#if defined __stub_$ac_func || defined __stub___$ac_func
9581choke me
9582#endif
9583
9584int
9585main ()
9586{
9587return $ac_func ();
9588 ;
9589 return 0;
9590}
9591_ACEOF
9592rm -f conftest.$ac_objext conftest$ac_exeext
9593if { (ac_try="$ac_link"
9594case "(($ac_try" in
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9597esac
9598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9599$as_echo "$ac_try_echo") >&5
9600 (eval "$ac_link") 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest$ac_exeext && {
9610 test "$cross_compiling" = yes ||
9611 $as_test_x conftest$ac_exeext
9612 }; then
9613 eval "$as_ac_var=yes"
9614else
9615 $as_echo "$as_me: failed program was:" >&5
9616sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 eval "$as_ac_var=no"
9619fi
9620
9621rm -rf conftest.dSYM
9622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9624fi
9625ac_res=`eval 'as_val=${'$as_ac_var'}
9626 $as_echo "$as_val"'`
9627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9628$as_echo "$ac_res" >&6; }
9629if test `eval 'as_val=${'$as_ac_var'}
9630 $as_echo "$as_val"'` = yes; then
9631 cat >>confdefs.h <<_ACEOF
9632#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9633_ACEOF
9634
9635fi
9636done
9637
9638 MANTYPE=man
9639 TEST_SHELL=ksh
9640 ;;
9641*-*-unicosmk*)
9642
9643cat >>confdefs.h <<\_ACEOF
9644#define NO_SSH_LASTLOG 1
9645_ACEOF
9646
9647 cat >>confdefs.h <<\_ACEOF
9648#define SETEUID_BREAKS_SETUID 1
9649_ACEOF
9650
9651 cat >>confdefs.h <<\_ACEOF
9652#define BROKEN_SETREUID 1
9653_ACEOF
9654
9655 cat >>confdefs.h <<\_ACEOF
9656#define BROKEN_SETREGID 1
9657_ACEOF
9658
9659 cat >>confdefs.h <<\_ACEOF
9660#define USE_PIPES 1
9661_ACEOF
9662
9663 cat >>confdefs.h <<\_ACEOF
9664#define DISABLE_FD_PASSING 1
9665_ACEOF
9666
9667 LDFLAGS="$LDFLAGS"
9668 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9669 MANTYPE=cat
9670 ;;
9671*-*-unicosmp*)
9672 cat >>confdefs.h <<\_ACEOF
9673#define SETEUID_BREAKS_SETUID 1
9674_ACEOF
9675
9676 cat >>confdefs.h <<\_ACEOF
9677#define BROKEN_SETREUID 1
9678_ACEOF
9679
9680 cat >>confdefs.h <<\_ACEOF
9681#define BROKEN_SETREGID 1
9682_ACEOF
9683
9684 cat >>confdefs.h <<\_ACEOF
9685#define WITH_ABBREV_NO_TTY 1
9686_ACEOF
9687
9688 cat >>confdefs.h <<\_ACEOF
9689#define USE_PIPES 1
9690_ACEOF
9691
9692 cat >>confdefs.h <<\_ACEOF
9693#define DISABLE_FD_PASSING 1
9694_ACEOF
9695
9696 LDFLAGS="$LDFLAGS"
9697 LIBS="$LIBS -lgen -lacid -ldb"
9698 MANTYPE=cat
9699 ;;
9700*-*-unicos*)
9701 cat >>confdefs.h <<\_ACEOF
9702#define SETEUID_BREAKS_SETUID 1
9703_ACEOF
9704
9705 cat >>confdefs.h <<\_ACEOF
9706#define BROKEN_SETREUID 1
9707_ACEOF
9708
9709 cat >>confdefs.h <<\_ACEOF
9710#define BROKEN_SETREGID 1
9711_ACEOF
9712
9713 cat >>confdefs.h <<\_ACEOF
9714#define USE_PIPES 1
9715_ACEOF
9716
9717 cat >>confdefs.h <<\_ACEOF
9718#define DISABLE_FD_PASSING 1
9719_ACEOF
9720
9721 cat >>confdefs.h <<\_ACEOF
9722#define NO_SSH_LASTLOG 1
9723_ACEOF
9724
9725 LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
9726 LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
9727 MANTYPE=cat
9728 ;;
9729*-dec-osf*)
9730 { $as_echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5
9731$as_echo_n "checking for Digital Unix SIA... " >&6; }
9732 no_osfsia=""
9733
9734# Check whether --with-osfsia was given.
9735if test "${with_osfsia+set}" = set; then
9736 withval=$with_osfsia;
9737 if test "x$withval" = "xno" ; then
9738 { $as_echo "$as_me:$LINENO: result: disabled" >&5
9739$as_echo "disabled" >&6; }
9740 no_osfsia=1
9741 fi
9742
9743fi
9744
9745 if test -z "$no_osfsia" ; then
9746 if test -f /etc/sia/matrix.conf; then
9747 { $as_echo "$as_me:$LINENO: result: yes" >&5
9748$as_echo "yes" >&6; }
9749
9750cat >>confdefs.h <<\_ACEOF
9751#define HAVE_OSF_SIA 1
9752_ACEOF
9753
9754
9755cat >>confdefs.h <<\_ACEOF
9756#define DISABLE_LOGIN 1
9757_ACEOF
9758
9759 cat >>confdefs.h <<\_ACEOF
9760#define DISABLE_FD_PASSING 1
9761_ACEOF
9762
9763 LIBS="$LIBS -lsecurity -ldb -lm -laud"
9764 SIA_MSG="yes"
9765 else
9766 { $as_echo "$as_me:$LINENO: result: no" >&5
9767$as_echo "no" >&6; }
9768
9769cat >>confdefs.h <<\_ACEOF
9770#define LOCKED_PASSWD_SUBSTR "Nologin"
9771_ACEOF
9772
9773 fi
9774 fi
9775 cat >>confdefs.h <<\_ACEOF
9776#define BROKEN_GETADDRINFO 1
9777_ACEOF
9778
9779 cat >>confdefs.h <<\_ACEOF
9780#define SETEUID_BREAKS_SETUID 1
9781_ACEOF
9782
9783 cat >>confdefs.h <<\_ACEOF
9784#define BROKEN_SETREUID 1
9785_ACEOF
9786
9787 cat >>confdefs.h <<\_ACEOF
9788#define BROKEN_SETREGID 1
9789_ACEOF
9790
9791
9792cat >>confdefs.h <<\_ACEOF
9793#define BROKEN_READV_COMPARISON 1
9794_ACEOF
9795
9796 ;;
9797
9798*-*-nto-qnx*)
9799 cat >>confdefs.h <<\_ACEOF
9800#define USE_PIPES 1
9801_ACEOF
9802
9803 cat >>confdefs.h <<\_ACEOF
9804#define NO_X11_UNIX_SOCKETS 1
9805_ACEOF
9806
9807
9808cat >>confdefs.h <<\_ACEOF
9809#define MISSING_NFDBITS 1
9810_ACEOF
9811
9812
9813cat >>confdefs.h <<\_ACEOF
9814#define MISSING_HOWMANY 1
9815_ACEOF
9816
9817
9818cat >>confdefs.h <<\_ACEOF
9819#define MISSING_FD_MASK 1
9820_ACEOF
9821
9822 cat >>confdefs.h <<\_ACEOF
9823#define DISABLE_LASTLOG 1
9824_ACEOF
9825
9826 cat >>confdefs.h <<\_ACEOF
9827#define SSHD_ACQUIRES_CTTY 1
9828_ACEOF
9829
9830
9831cat >>confdefs.h <<\_ACEOF
9832#define BROKEN_SHADOW_EXPIRE 1
9833_ACEOF
9834
9835 enable_etc_default_login=no # has incompatible /etc/default/login
9836 case "$host" in
9837 *-*-nto-qnx6*)
9838 cat >>confdefs.h <<\_ACEOF
9839#define DISABLE_FD_PASSING 1
9840_ACEOF
9841
9842 ;;
9843 esac
9844 ;;
9845
9846*-*-ultrix*)
9847
9848cat >>confdefs.h <<\_ACEOF
9849#define BROKEN_GETGROUPS 1
9850_ACEOF
9851
9852
9853cat >>confdefs.h <<\_ACEOF
9854#define BROKEN_MMAP 1
9855_ACEOF
9856
9857 cat >>confdefs.h <<\_ACEOF
9858#define NEED_SETPGRP 1
9859_ACEOF
9860
9861
9862cat >>confdefs.h <<\_ACEOF
9863#define HAVE_SYS_SYSLOG_H 1
9864_ACEOF
9865
9866 ;;
9867
9868*-*-lynxos)
9869 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
9870 cat >>confdefs.h <<\_ACEOF
9871#define MISSING_HOWMANY 1
9872_ACEOF
9873
9874
9875cat >>confdefs.h <<\_ACEOF
9876#define BROKEN_SETVBUF 1
9877_ACEOF
9878
9879 ;;
9880esac
9881
9882{ $as_echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
9883$as_echo_n "checking compiler and flags for sanity... " >&6; }
9884if test "$cross_compiling" = yes; then
9885 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5
9886$as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
9887
9888else
9889 cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
9895
9896#include <stdio.h>
9897int main(){exit(0);}
9898
9899_ACEOF
9900rm -f conftest$ac_exeext
9901if { (ac_try="$ac_link"
9902case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905esac
9906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9907$as_echo "$ac_try_echo") >&5
9908 (eval "$ac_link") 2>&5
9909 ac_status=$?
9910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9917$as_echo "$ac_try_echo") >&5
9918 (eval "$ac_try") 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 { $as_echo "$as_me:$LINENO: result: yes" >&5
9923$as_echo "yes" >&6; }
9924else
9925 $as_echo "$as_me: program exited with status $ac_status" >&5
9926$as_echo "$as_me: failed program was:" >&5
9927sed 's/^/| /' conftest.$ac_ext >&5
9928
9929( exit $ac_status )
9930
9931 { $as_echo "$as_me:$LINENO: result: no" >&5
9932$as_echo "no" >&6; }
9933 { { $as_echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5
9934$as_echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;}
9935 { (exit 1); exit 1; }; }
9936
9937fi
9938rm -rf conftest.dSYM
9939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9940fi
9941
9942
9943
9944# Checks for libraries.
9945{ $as_echo "$as_me:$LINENO: checking for yp_match" >&5
9946$as_echo_n "checking for yp_match... " >&6; }
9947if test "${ac_cv_func_yp_match+set}" = set; then
9948 $as_echo_n "(cached) " >&6
9949else
9950 cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h. */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h. */
9956/* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match.
9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9958#define yp_match innocuous_yp_match
9959
9960/* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char yp_match (); below.
9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963 <limits.h> exists even on freestanding compilers. */
9964
9965#ifdef __STDC__
9966# include <limits.h>
9967#else
9968# include <assert.h>
9969#endif
9970
9971#undef yp_match
9972
9973/* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9976#ifdef __cplusplus
9977extern "C"
9978#endif
9979char yp_match ();
9980/* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983#if defined __stub_yp_match || defined __stub___yp_match
9984choke me
9985#endif
9986
9987int
9988main ()
9989{
9990return yp_match ();
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995rm -f conftest.$ac_objext conftest$ac_exeext
9996if { (ac_try="$ac_link"
9997case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
10001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002$as_echo "$ac_try_echo") >&5
10003 (eval "$ac_link") 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext && {
10013 test "$cross_compiling" = yes ||
10014 $as_test_x conftest$ac_exeext
10015 }; then
10016 ac_cv_func_yp_match=yes
10017else
10018 $as_echo "$as_me: failed program was:" >&5
10019sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_func_yp_match=no
10022fi
10023
10024rm -rf conftest.dSYM
10025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10026 conftest$ac_exeext conftest.$ac_ext
10027fi
10028{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5
10029$as_echo "$ac_cv_func_yp_match" >&6; }
10030if test $ac_cv_func_yp_match = yes; then
10031 :
10032else
10033
10034{ $as_echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5
10035$as_echo_n "checking for yp_match in -lnsl... " >&6; }
10036if test "${ac_cv_lib_nsl_yp_match+set}" = set; then
10037 $as_echo_n "(cached) " >&6
10038else
10039 ac_check_lib_save_LIBS=$LIBS
10040LIBS="-lnsl $LIBS"
10041cat >conftest.$ac_ext <<_ACEOF
10042/* confdefs.h. */
10043_ACEOF
10044cat confdefs.h >>conftest.$ac_ext
10045cat >>conftest.$ac_ext <<_ACEOF
10046/* end confdefs.h. */
10047
10048/* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10051#ifdef __cplusplus
10052extern "C"
10053#endif
10054char yp_match ();
10055int
10056main ()
10057{
10058return yp_match ();
10059 ;
10060 return 0;
10061}
10062_ACEOF
10063rm -f conftest.$ac_objext conftest$ac_exeext
10064if { (ac_try="$ac_link"
10065case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068esac
10069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070$as_echo "$ac_try_echo") >&5
10071 (eval "$ac_link") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext && {
10081 test "$cross_compiling" = yes ||
10082 $as_test_x conftest$ac_exeext
10083 }; then
10084 ac_cv_lib_nsl_yp_match=yes
10085else
10086 $as_echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_cv_lib_nsl_yp_match=no
10090fi
10091
10092rm -rf conftest.dSYM
10093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10094 conftest$ac_exeext conftest.$ac_ext
10095LIBS=$ac_check_lib_save_LIBS
10096fi
10097{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5
10098$as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
10099if test $ac_cv_lib_nsl_yp_match = yes; then
10100 cat >>confdefs.h <<_ACEOF
10101#define HAVE_LIBNSL 1
10102_ACEOF
10103
10104 LIBS="-lnsl $LIBS"
10105
10106fi
10107
10108fi
10109
10110{ $as_echo "$as_me:$LINENO: checking for setsockopt" >&5
10111$as_echo_n "checking for setsockopt... " >&6; }
10112if test "${ac_cv_func_setsockopt+set}" = set; then
10113 $as_echo_n "(cached) " >&6
10114else
10115 cat >conftest.$ac_ext <<_ACEOF
10116/* confdefs.h. */
10117_ACEOF
10118cat confdefs.h >>conftest.$ac_ext
10119cat >>conftest.$ac_ext <<_ACEOF
10120/* end confdefs.h. */
10121/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123#define setsockopt innocuous_setsockopt
10124
10125/* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char setsockopt (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10129
10130#ifdef __STDC__
10131# include <limits.h>
10132#else
10133# include <assert.h>
10134#endif
10135
10136#undef setsockopt
10137
10138/* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10141#ifdef __cplusplus
10142extern "C"
10143#endif
10144char setsockopt ();
10145/* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148#if defined __stub_setsockopt || defined __stub___setsockopt
10149choke me
10150#endif
10151
10152int
10153main ()
10154{
10155return setsockopt ();
10156 ;
10157 return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10167$as_echo "$ac_try_echo") >&5
10168 (eval "$ac_link") 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext && {
10178 test "$cross_compiling" = yes ||
10179 $as_test_x conftest$ac_exeext
10180 }; then
10181 ac_cv_func_setsockopt=yes
10182else
10183 $as_echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ac_cv_func_setsockopt=no
10187fi
10188
10189rm -rf conftest.dSYM
10190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10192fi
10193{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10194$as_echo "$ac_cv_func_setsockopt" >&6; }
10195if test $ac_cv_func_setsockopt = yes; then
10196 :
10197else
10198
10199{ $as_echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10200$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10201if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10202 $as_echo_n "(cached) " >&6
10203else
10204 ac_check_lib_save_LIBS=$LIBS
10205LIBS="-lsocket $LIBS"
10206cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212
10213/* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
10219char setsockopt ();
10220int
10221main ()
10222{
10223return setsockopt ();
10224 ;
10225 return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext conftest$ac_exeext
10229if { (ac_try="$ac_link"
10230case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10233esac
10234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10235$as_echo "$ac_try_echo") >&5
10236 (eval "$ac_link") 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && {
10243 test -z "$ac_c_werror_flag" ||
10244 test ! -s conftest.err
10245 } && test -s conftest$ac_exeext && {
10246 test "$cross_compiling" = yes ||
10247 $as_test_x conftest$ac_exeext
10248 }; then
10249 ac_cv_lib_socket_setsockopt=yes
10250else
10251 $as_echo "$as_me: failed program was:" >&5
10252sed 's/^/| /' conftest.$ac_ext >&5
10253
10254 ac_cv_lib_socket_setsockopt=no
10255fi
10256
10257rm -rf conftest.dSYM
10258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10259 conftest$ac_exeext conftest.$ac_ext
10260LIBS=$ac_check_lib_save_LIBS
10261fi
10262{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10263$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10264if test $ac_cv_lib_socket_setsockopt = yes; then
10265 cat >>confdefs.h <<_ACEOF
10266#define HAVE_LIBSOCKET 1
10267_ACEOF
10268
10269 LIBS="-lsocket $LIBS"
10270
10271fi
10272
10273fi
10274
10275
10276
10277for ac_func in dirname
10278do
10279as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10280{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10281$as_echo_n "checking for $ac_func... " >&6; }
10282if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10283 $as_echo_n "(cached) " >&6
10284else
10285 cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h. */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h. */
10291/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10293#define $ac_func innocuous_$ac_func
10294
10295/* System header to define __stub macros and hopefully few prototypes,
10296 which can conflict with char $ac_func (); below.
10297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10298 <limits.h> exists even on freestanding compilers. */
10299
10300#ifdef __STDC__
10301# include <limits.h>
10302#else
10303# include <assert.h>
10304#endif
10305
10306#undef $ac_func
10307
10308/* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311#ifdef __cplusplus
10312extern "C"
10313#endif
10314char $ac_func ();
10315/* The GNU C library defines this for functions which it implements
10316 to always fail with ENOSYS. Some functions are actually named
10317 something starting with __ and the normal name is an alias. */
10318#if defined __stub_$ac_func || defined __stub___$ac_func
10319choke me
10320#endif
10321
10322int
10323main ()
10324{
10325return $ac_func ();
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
10331if { (ac_try="$ac_link"
10332case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335esac
10336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10337$as_echo "$ac_try_echo") >&5
10338 (eval "$ac_link") 2>conftest.er1
10339 ac_status=$?
10340 grep -v '^ *+' conftest.er1 >conftest.err
10341 rm -f conftest.er1
10342 cat conftest.err >&5
10343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && {
10345 test -z "$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 } && test -s conftest$ac_exeext && {
10348 test "$cross_compiling" = yes ||
10349 $as_test_x conftest$ac_exeext
10350 }; then
10351 eval "$as_ac_var=yes"
10352else
10353 $as_echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
10356 eval "$as_ac_var=no"
10357fi
10358
10359rm -rf conftest.dSYM
10360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10361 conftest$ac_exeext conftest.$ac_ext
10362fi
10363ac_res=`eval 'as_val=${'$as_ac_var'}
10364 $as_echo "$as_val"'`
10365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10366$as_echo "$ac_res" >&6; }
10367if test `eval 'as_val=${'$as_ac_var'}
10368 $as_echo "$as_val"'` = yes; then
10369 cat >>confdefs.h <<_ACEOF
10370#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10371_ACEOF
10372
10373for ac_header in libgen.h
10374do
10375as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10378$as_echo_n "checking for $ac_header... " >&6; }
10379if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10380 $as_echo_n "(cached) " >&6
10381fi
10382ac_res=`eval 'as_val=${'$as_ac_Header'}
10383 $as_echo "$as_val"'`
10384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10385$as_echo "$ac_res" >&6; }
10386else
10387 # Is the header compilable?
10388{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10389$as_echo_n "checking $ac_header usability... " >&6; }
10390cat >conftest.$ac_ext <<_ACEOF
10391/* confdefs.h. */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h. */
10396$ac_includes_default
10397#include <$ac_header>
10398_ACEOF
10399rm -f conftest.$ac_objext
10400if { (ac_try="$ac_compile"
10401case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404esac
10405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10406$as_echo "$ac_try_echo") >&5
10407 (eval "$ac_compile") 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest.$ac_objext; then
10417 ac_header_compiler=yes
10418else
10419 $as_echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 ac_header_compiler=no
10423fi
10424
10425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10427$as_echo "$ac_header_compiler" >&6; }
10428
10429# Is the header present?
10430{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10431$as_echo_n "checking $ac_header presence... " >&6; }
10432cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h. */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
10437/* end confdefs.h. */
10438#include <$ac_header>
10439_ACEOF
10440if { (ac_try="$ac_cpp conftest.$ac_ext"
10441case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444esac
10445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10446$as_echo "$ac_try_echo") >&5
10447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } >/dev/null && {
10454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 }; then
10457 ac_header_preproc=yes
10458else
10459 $as_echo "$as_me: failed program was:" >&5
10460sed 's/^/| /' conftest.$ac_ext >&5
10461
10462 ac_header_preproc=no
10463fi
10464
10465rm -f conftest.err conftest.$ac_ext
10466{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10467$as_echo "$ac_header_preproc" >&6; }
10468
10469# So? What about this header?
10470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10471 yes:no: )
10472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10473$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10475$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10476 ac_header_preproc=yes
10477 ;;
10478 no:yes:* )
10479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10480$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10482$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10484$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10486$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10488$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10490$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10491 ( cat <<\_ASBOX
10492## ------------------------------------------- ##
10493## Report this to openssh-unix-dev@mindrot.org ##
10494## ------------------------------------------- ##
10495_ASBOX
10496 ) | sed "s/^/$as_me: WARNING: /" >&2
10497 ;;
10498esac
10499{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10500$as_echo_n "checking for $ac_header... " >&6; }
10501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10502 $as_echo_n "(cached) " >&6
10503else
10504 eval "$as_ac_Header=\$ac_header_preproc"
10505fi
10506ac_res=`eval 'as_val=${'$as_ac_Header'}
10507 $as_echo "$as_val"'`
10508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10509$as_echo "$ac_res" >&6; }
10510
10511fi
10512if test `eval 'as_val=${'$as_ac_Header'}
10513 $as_echo "$as_val"'` = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10516_ACEOF
10517
10518fi
10519
10520done
10521
10522else
10523
10524 { $as_echo "$as_me:$LINENO: checking for dirname in -lgen" >&5
10525$as_echo_n "checking for dirname in -lgen... " >&6; }
10526if test "${ac_cv_lib_gen_dirname+set}" = set; then
10527 $as_echo_n "(cached) " >&6
10528else
10529 ac_check_lib_save_LIBS=$LIBS
10530LIBS="-lgen $LIBS"
10531cat >conftest.$ac_ext <<_ACEOF
10532/* confdefs.h. */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h. */
10537
10538/* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10541#ifdef __cplusplus
10542extern "C"
10543#endif
10544char dirname ();
10545int
10546main ()
10547{
10548return dirname ();
10549 ;
10550 return 0;
10551}
10552_ACEOF
10553rm -f conftest.$ac_objext conftest$ac_exeext
10554if { (ac_try="$ac_link"
10555case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10558esac
10559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10560$as_echo "$ac_try_echo") >&5
10561 (eval "$ac_link") 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest$ac_exeext && {
10571 test "$cross_compiling" = yes ||
10572 $as_test_x conftest$ac_exeext
10573 }; then
10574 ac_cv_lib_gen_dirname=yes
10575else
10576 $as_echo "$as_me: failed program was:" >&5
10577sed 's/^/| /' conftest.$ac_ext >&5
10578
10579 ac_cv_lib_gen_dirname=no
10580fi
10581
10582rm -rf conftest.dSYM
10583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584 conftest$ac_exeext conftest.$ac_ext
10585LIBS=$ac_check_lib_save_LIBS
10586fi
10587{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5
10588$as_echo "$ac_cv_lib_gen_dirname" >&6; }
10589if test $ac_cv_lib_gen_dirname = yes; then
10590
10591 { $as_echo "$as_me:$LINENO: checking for broken dirname" >&5
10592$as_echo_n "checking for broken dirname... " >&6; }
10593if test "${ac_cv_have_broken_dirname+set}" = set; then
10594 $as_echo_n "(cached) " >&6
10595else
10596
10597 save_LIBS="$LIBS"
10598 LIBS="$LIBS -lgen"
10599 if test "$cross_compiling" = yes; then
10600 ac_cv_have_broken_dirname="no"
10601else
10602 cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h. */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h. */
10608
10609#include <libgen.h>
10610#include <string.h>
10611
10612int main(int argc, char **argv) {
10613 char *s, buf[32];
10614
10615 strncpy(buf,"/etc", 32);
10616 s = dirname(buf);
10617 if (!s || strncmp(s, "/", 32) != 0) {
10618 exit(1);
10619 } else {
10620 exit(0);
10621 }
10622}
10623
10624_ACEOF
10625rm -f conftest$ac_exeext
10626if { (ac_try="$ac_link"
10627case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10632$as_echo "$ac_try_echo") >&5
10633 (eval "$ac_link") 2>&5
10634 ac_status=$?
10635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640esac
10641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10642$as_echo "$ac_try_echo") >&5
10643 (eval "$ac_try") 2>&5
10644 ac_status=$?
10645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_have_broken_dirname="no"
10648else
10649 $as_echo "$as_me: program exited with status $ac_status" >&5
10650$as_echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653( exit $ac_status )
10654 ac_cv_have_broken_dirname="yes"
10655fi
10656rm -rf conftest.dSYM
10657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10658fi
10659
10660
10661 LIBS="$save_LIBS"
10662
10663fi
10664{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5
10665$as_echo "$ac_cv_have_broken_dirname" >&6; }
10666 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
10667 LIBS="$LIBS -lgen"
10668 cat >>confdefs.h <<\_ACEOF
10669#define HAVE_DIRNAME 1
10670_ACEOF
10671
10672
10673for ac_header in libgen.h
10674do
10675as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10678$as_echo_n "checking for $ac_header... " >&6; }
10679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10680 $as_echo_n "(cached) " >&6
10681fi
10682ac_res=`eval 'as_val=${'$as_ac_Header'}
10683 $as_echo "$as_val"'`
10684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10685$as_echo "$ac_res" >&6; }
10686else
10687 # Is the header compilable?
10688{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10689$as_echo_n "checking $ac_header usability... " >&6; }
10690cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h. */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
10695/* end confdefs.h. */
10696$ac_includes_default
10697#include <$ac_header>
10698_ACEOF
10699rm -f conftest.$ac_objext
10700if { (ac_try="$ac_compile"
10701case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704esac
10705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10706$as_echo "$ac_try_echo") >&5
10707 (eval "$ac_compile") 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest.$ac_objext; then
10717 ac_header_compiler=yes
10718else
10719 $as_echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_header_compiler=no
10723fi
10724
10725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727$as_echo "$ac_header_compiler" >&6; }
10728
10729# Is the header present?
10730{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731$as_echo_n "checking $ac_header presence... " >&6; }
10732cat >conftest.$ac_ext <<_ACEOF
10733/* confdefs.h. */
10734_ACEOF
10735cat confdefs.h >>conftest.$ac_ext
10736cat >>conftest.$ac_ext <<_ACEOF
10737/* end confdefs.h. */
10738#include <$ac_header>
10739_ACEOF
10740if { (ac_try="$ac_cpp conftest.$ac_ext"
10741case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10746$as_echo "$ac_try_echo") >&5
10747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10748 ac_status=$?
10749 grep -v '^ *+' conftest.er1 >conftest.err
10750 rm -f conftest.er1
10751 cat conftest.err >&5
10752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); } >/dev/null && {
10754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10755 test ! -s conftest.err
10756 }; then
10757 ac_header_preproc=yes
10758else
10759 $as_echo "$as_me: failed program was:" >&5
10760sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 ac_header_preproc=no
10763fi
10764
10765rm -f conftest.err conftest.$ac_ext
10766{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10767$as_echo "$ac_header_preproc" >&6; }
10768
10769# So? What about this header?
10770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10771 yes:no: )
10772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10773$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10775$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10776 ac_header_preproc=yes
10777 ;;
10778 no:yes:* )
10779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10780$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10782$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10784$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10786$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10788$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10790$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10791 ( cat <<\_ASBOX
10792## ------------------------------------------- ##
10793## Report this to openssh-unix-dev@mindrot.org ##
10794## ------------------------------------------- ##
10795_ASBOX
10796 ) | sed "s/^/$as_me: WARNING: /" >&2
10797 ;;
10798esac
10799{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10800$as_echo_n "checking for $ac_header... " >&6; }
10801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802 $as_echo_n "(cached) " >&6
10803else
10804 eval "$as_ac_Header=\$ac_header_preproc"
10805fi
10806ac_res=`eval 'as_val=${'$as_ac_Header'}
10807 $as_echo "$as_val"'`
10808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809$as_echo "$ac_res" >&6; }
10810
10811fi
10812if test `eval 'as_val=${'$as_ac_Header'}
10813 $as_echo "$as_val"'` = yes; then
10814 cat >>confdefs.h <<_ACEOF
10815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10816_ACEOF
10817
10818fi
10819
10820done
10821
10822 fi
10823
10824fi
10825
10826
10827fi
10828done
10829
10830
10831{ $as_echo "$as_me:$LINENO: checking for getspnam" >&5
10832$as_echo_n "checking for getspnam... " >&6; }
10833if test "${ac_cv_func_getspnam+set}" = set; then
10834 $as_echo_n "(cached) " >&6
10835else
10836 cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
10841/* end confdefs.h. */
10842/* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam.
10843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10844#define getspnam innocuous_getspnam
10845
10846/* System header to define __stub macros and hopefully few prototypes,
10847 which can conflict with char getspnam (); below.
10848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10849 <limits.h> exists even on freestanding compilers. */
10850
10851#ifdef __STDC__
10852# include <limits.h>
10853#else
10854# include <assert.h>
10855#endif
10856
10857#undef getspnam
10858
10859/* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char getspnam ();
10866/* The GNU C library defines this for functions which it implements
10867 to always fail with ENOSYS. Some functions are actually named
10868 something starting with __ and the normal name is an alias. */
10869#if defined __stub_getspnam || defined __stub___getspnam
10870choke me
10871#endif
10872
10873int
10874main ()
10875{
10876return getspnam ();
10877 ;
10878 return 0;
10879}
10880_ACEOF
10881rm -f conftest.$ac_objext conftest$ac_exeext
10882if { (ac_try="$ac_link"
10883case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
10887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10888$as_echo "$ac_try_echo") >&5
10889 (eval "$ac_link") 2>conftest.er1
10890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest$ac_exeext && {
10899 test "$cross_compiling" = yes ||
10900 $as_test_x conftest$ac_exeext
10901 }; then
10902 ac_cv_func_getspnam=yes
10903else
10904 $as_echo "$as_me: failed program was:" >&5
10905sed 's/^/| /' conftest.$ac_ext >&5
10906
10907 ac_cv_func_getspnam=no
10908fi
10909
10910rm -rf conftest.dSYM
10911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10912 conftest$ac_exeext conftest.$ac_ext
10913fi
10914{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5
10915$as_echo "$ac_cv_func_getspnam" >&6; }
10916if test $ac_cv_func_getspnam = yes; then
10917 :
10918else
10919 { $as_echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
10920$as_echo_n "checking for getspnam in -lgen... " >&6; }
10921if test "${ac_cv_lib_gen_getspnam+set}" = set; then
10922 $as_echo_n "(cached) " >&6
10923else
10924 ac_check_lib_save_LIBS=$LIBS
10925LIBS="-lgen $LIBS"
10926cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932
10933/* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10936#ifdef __cplusplus
10937extern "C"
10938#endif
10939char getspnam ();
10940int
10941main ()
10942{
10943return getspnam ();
10944 ;
10945 return 0;
10946}
10947_ACEOF
10948rm -f conftest.$ac_objext conftest$ac_exeext
10949if { (ac_try="$ac_link"
10950case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955$as_echo "$ac_try_echo") >&5
10956 (eval "$ac_link") 2>conftest.er1
10957 ac_status=$?
10958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
10961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); } && {
10963 test -z "$ac_c_werror_flag" ||
10964 test ! -s conftest.err
10965 } && test -s conftest$ac_exeext && {
10966 test "$cross_compiling" = yes ||
10967 $as_test_x conftest$ac_exeext
10968 }; then
10969 ac_cv_lib_gen_getspnam=yes
10970else
10971 $as_echo "$as_me: failed program was:" >&5
10972sed 's/^/| /' conftest.$ac_ext >&5
10973
10974 ac_cv_lib_gen_getspnam=no
10975fi
10976
10977rm -rf conftest.dSYM
10978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10979 conftest$ac_exeext conftest.$ac_ext
10980LIBS=$ac_check_lib_save_LIBS
10981fi
10982{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
10983$as_echo "$ac_cv_lib_gen_getspnam" >&6; }
10984if test $ac_cv_lib_gen_getspnam = yes; then
10985 LIBS="$LIBS -lgen"
10986fi
10987
10988fi
10989
10990{ $as_echo "$as_me:$LINENO: checking for library containing basename" >&5
10991$as_echo_n "checking for library containing basename... " >&6; }
10992if test "${ac_cv_search_basename+set}" = set; then
10993 $as_echo_n "(cached) " >&6
10994else
10995 ac_func_search_save_LIBS=$LIBS
10996cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
11002
11003/* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006#ifdef __cplusplus
11007extern "C"
11008#endif
11009char basename ();
11010int
11011main ()
11012{
11013return basename ();
11014 ;
11015 return 0;
11016}
11017_ACEOF
11018for ac_lib in '' gen; do
11019 if test -z "$ac_lib"; then
11020 ac_res="none required"
11021 else
11022 ac_res=-l$ac_lib
11023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11024 fi
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026if { (ac_try="$ac_link"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11032$as_echo "$ac_try_echo") >&5
11033 (eval "$ac_link") 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest$ac_exeext && {
11043 test "$cross_compiling" = yes ||
11044 $as_test_x conftest$ac_exeext
11045 }; then
11046 ac_cv_search_basename=$ac_res
11047else
11048 $as_echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051
11052fi
11053
11054rm -rf conftest.dSYM
11055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11056 conftest$ac_exeext
11057 if test "${ac_cv_search_basename+set}" = set; then
11058 break
11059fi
11060done
11061if test "${ac_cv_search_basename+set}" = set; then
11062 :
11063else
11064 ac_cv_search_basename=no
11065fi
11066rm conftest.$ac_ext
11067LIBS=$ac_func_search_save_LIBS
11068fi
11069{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5
11070$as_echo "$ac_cv_search_basename" >&6; }
11071ac_res=$ac_cv_search_basename
11072if test "$ac_res" != no; then
11073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11074
11075cat >>confdefs.h <<\_ACEOF
11076#define HAVE_BASENAME 1
11077_ACEOF
11078
11079fi
11080
11081
11082
11083# Check whether --with-zlib was given.
11084if test "${with_zlib+set}" = set; then
11085 withval=$with_zlib; if test "x$withval" = "xno" ; then
11086 { { $as_echo "$as_me:$LINENO: error: *** zlib is required ***" >&5
11087$as_echo "$as_me: error: *** zlib is required ***" >&2;}
11088 { (exit 1); exit 1; }; }
11089 elif test "x$withval" != "xyes"; then
11090 if test -d "$withval/lib"; then
11091 if test -n "${need_dash_r}"; then
11092 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
11093 else
11094 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
11095 fi
11096 else
11097 if test -n "${need_dash_r}"; then
11098 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
11099 else
11100 LDFLAGS="-L${withval} ${LDFLAGS}"
11101 fi
11102 fi
11103 if test -d "$withval/include"; then
11104 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
11105 else
11106 CPPFLAGS="-I${withval} ${CPPFLAGS}"
11107 fi
11108 fi
11109
11110fi
11111
11112
11113if test "${ac_cv_header_zlib_h+set}" = set; then
11114 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11115$as_echo_n "checking for zlib.h... " >&6; }
11116if test "${ac_cv_header_zlib_h+set}" = set; then
11117 $as_echo_n "(cached) " >&6
11118fi
11119{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11120$as_echo "$ac_cv_header_zlib_h" >&6; }
11121else
11122 # Is the header compilable?
11123{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11124$as_echo_n "checking zlib.h usability... " >&6; }
11125cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
11131$ac_includes_default
11132#include <zlib.h>
11133_ACEOF
11134rm -f conftest.$ac_objext
11135if { (ac_try="$ac_compile"
11136case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11141$as_echo "$ac_try_echo") >&5
11142 (eval "$ac_compile") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest.$ac_objext; then
11152 ac_header_compiler=yes
11153else
11154 $as_echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_header_compiler=no
11158fi
11159
11160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162$as_echo "$ac_header_compiler" >&6; }
11163
11164# Is the header present?
11165{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11166$as_echo_n "checking zlib.h presence... " >&6; }
11167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173#include <zlib.h>
11174_ACEOF
11175if { (ac_try="$ac_cpp conftest.$ac_ext"
11176case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11181$as_echo "$ac_try_echo") >&5
11182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } >/dev/null && {
11189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 }; then
11192 ac_header_preproc=yes
11193else
11194 $as_echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 ac_header_preproc=no
11198fi
11199
11200rm -f conftest.err conftest.$ac_ext
11201{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11202$as_echo "$ac_header_preproc" >&6; }
11203
11204# So? What about this header?
11205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11206 yes:no: )
11207 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11208$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11209 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11210$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11211 ac_header_preproc=yes
11212 ;;
11213 no:yes:* )
11214 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11215$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11216 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11217$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11218 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11219$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11220 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11221$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11223$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11225$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11226 ( cat <<\_ASBOX
11227## ------------------------------------------- ##
11228## Report this to openssh-unix-dev@mindrot.org ##
11229## ------------------------------------------- ##
11230_ASBOX
11231 ) | sed "s/^/$as_me: WARNING: /" >&2
11232 ;;
11233esac
11234{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11235$as_echo_n "checking for zlib.h... " >&6; }
11236if test "${ac_cv_header_zlib_h+set}" = set; then
11237 $as_echo_n "(cached) " >&6
11238else
11239 ac_cv_header_zlib_h=$ac_header_preproc
11240fi
11241{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11242$as_echo "$ac_cv_header_zlib_h" >&6; }
11243
11244fi
11245if test $ac_cv_header_zlib_h = yes; then
11246 :
11247else
11248 { { $as_echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5
11249$as_echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253
11254
11255{ $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11256$as_echo_n "checking for deflate in -lz... " >&6; }
11257if test "${ac_cv_lib_z_deflate+set}" = set; then
11258 $as_echo_n "(cached) " >&6
11259else
11260 ac_check_lib_save_LIBS=$LIBS
11261LIBS="-lz $LIBS"
11262cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268
11269/* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272#ifdef __cplusplus
11273extern "C"
11274#endif
11275char deflate ();
11276int
11277main ()
11278{
11279return deflate ();
11280 ;
11281 return 0;
11282}
11283_ACEOF
11284rm -f conftest.$ac_objext conftest$ac_exeext
11285if { (ac_try="$ac_link"
11286case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289esac
11290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11291$as_echo "$ac_try_echo") >&5
11292 (eval "$ac_link") 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest$ac_exeext && {
11302 test "$cross_compiling" = yes ||
11303 $as_test_x conftest$ac_exeext
11304 }; then
11305 ac_cv_lib_z_deflate=yes
11306else
11307 $as_echo "$as_me: failed program was:" >&5
11308sed 's/^/| /' conftest.$ac_ext >&5
11309
11310 ac_cv_lib_z_deflate=no
11311fi
11312
11313rm -rf conftest.dSYM
11314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11315 conftest$ac_exeext conftest.$ac_ext
11316LIBS=$ac_check_lib_save_LIBS
11317fi
11318{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
11319$as_echo "$ac_cv_lib_z_deflate" >&6; }
11320if test $ac_cv_lib_z_deflate = yes; then
11321 cat >>confdefs.h <<_ACEOF
11322#define HAVE_LIBZ 1
11323_ACEOF
11324
11325 LIBS="-lz $LIBS"
11326
11327else
11328
11329 saved_CPPFLAGS="$CPPFLAGS"
11330 saved_LDFLAGS="$LDFLAGS"
11331 save_LIBS="$LIBS"
11332 if test -n "${need_dash_r}"; then
11333 LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
11334 else
11335 LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
11336 fi
11337 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
11338 LIBS="$LIBS -lz"
11339 cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char deflate ();
11353int
11354main ()
11355{
11356return deflate ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361rm -f conftest.$ac_objext conftest$ac_exeext
11362if { (ac_try="$ac_link"
11363case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366esac
11367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11368$as_echo "$ac_try_echo") >&5
11369 (eval "$ac_link") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext && {
11379 test "$cross_compiling" = yes ||
11380 $as_test_x conftest$ac_exeext
11381 }; then
11382 cat >>confdefs.h <<\_ACEOF
11383#define HAVE_LIBZ 1
11384_ACEOF
11385
11386else
11387 $as_echo "$as_me: failed program was:" >&5
11388sed 's/^/| /' conftest.$ac_ext >&5
11389
11390
11391 { { $as_echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5
11392$as_echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;}
11393 { (exit 1); exit 1; }; }
11394
11395
11396fi
11397
11398rm -rf conftest.dSYM
11399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11400 conftest$ac_exeext conftest.$ac_ext
11401
11402
11403fi
11404
11405
11406
11407# Check whether --with-zlib-version-check was given.
11408if test "${with_zlib_version_check+set}" = set; then
11409 withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then
11410 zlib_check_nonfatal=1
11411 fi
11412
11413
11414fi
11415
11416
11417{ $as_echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5
11418$as_echo_n "checking for possibly buggy zlib... " >&6; }
11419if test "$cross_compiling" = yes; then
11420 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5
11421$as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
11422
11423else
11424 cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h. */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h. */
11430
11431#include <stdio.h>
11432#include <zlib.h>
11433int main()
11434{
11435 int a=0, b=0, c=0, d=0, n, v;
11436 n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
11437 if (n != 3 && n != 4)
11438 exit(1);
11439 v = a*1000000 + b*10000 + c*100 + d;
11440 fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
11441
11442 /* 1.1.4 is OK */
11443 if (a == 1 && b == 1 && c >= 4)
11444 exit(0);
11445
11446 /* 1.2.3 and up are OK */
11447 if (v >= 1020300)
11448 exit(0);
11449
11450 exit(2);
11451}
11452
11453_ACEOF
11454rm -f conftest$ac_exeext
11455if { (ac_try="$ac_link"
11456case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459esac
11460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11461$as_echo "$ac_try_echo") >&5
11462 (eval "$ac_link") 2>&5
11463 ac_status=$?
11464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
11470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11471$as_echo "$ac_try_echo") >&5
11472 (eval "$ac_try") 2>&5
11473 ac_status=$?
11474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 { $as_echo "$as_me:$LINENO: result: no" >&5
11477$as_echo "no" >&6; }
11478else
11479 $as_echo "$as_me: program exited with status $ac_status" >&5
11480$as_echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483( exit $ac_status )
11484 { $as_echo "$as_me:$LINENO: result: yes" >&5
11485$as_echo "yes" >&6; }
11486 if test -z "$zlib_check_nonfatal" ; then
11487 { { $as_echo "$as_me:$LINENO: error: *** zlib too old - check config.log ***
11488Your reported zlib version has known security problems. It's possible your
11489vendor has fixed these problems without changing the version number. If you
11490are sure this is the case, you can disable the check by running
11491\"./configure --without-zlib-version-check\".
11492If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11493See http://www.gzip.org/zlib/ for details." >&5
11494$as_echo "$as_me: error: *** zlib too old - check config.log ***
11495Your reported zlib version has known security problems. It's possible your
11496vendor has fixed these problems without changing the version number. If you
11497are sure this is the case, you can disable the check by running
11498\"./configure --without-zlib-version-check\".
11499If you are in doubt, upgrade zlib to version 1.2.3 or greater.
11500See http://www.gzip.org/zlib/ for details." >&2;}
11501 { (exit 1); exit 1; }; }
11502 else
11503 { $as_echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5
11504$as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
11505 fi
11506
11507fi
11508rm -rf conftest.dSYM
11509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11510fi
11511
11512
11513
11514{ $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5
11515$as_echo_n "checking for strcasecmp... " >&6; }
11516if test "${ac_cv_func_strcasecmp+set}" = set; then
11517 $as_echo_n "(cached) " >&6
11518else
11519 cat >conftest.$ac_ext <<_ACEOF
11520/* confdefs.h. */
11521_ACEOF
11522cat confdefs.h >>conftest.$ac_ext
11523cat >>conftest.$ac_ext <<_ACEOF
11524/* end confdefs.h. */
11525/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
11526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11527#define strcasecmp innocuous_strcasecmp
11528
11529/* System header to define __stub macros and hopefully few prototypes,
11530 which can conflict with char strcasecmp (); below.
11531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11532 <limits.h> exists even on freestanding compilers. */
11533
11534#ifdef __STDC__
11535# include <limits.h>
11536#else
11537# include <assert.h>
11538#endif
11539
11540#undef strcasecmp
11541
11542/* Override any GCC internal prototype to avoid an error.
11543 Use char because int might match the return type of a GCC
11544 builtin and then its argument prototype would still apply. */
11545#ifdef __cplusplus
11546extern "C"
11547#endif
11548char strcasecmp ();
11549/* The GNU C library defines this for functions which it implements
11550 to always fail with ENOSYS. Some functions are actually named
11551 something starting with __ and the normal name is an alias. */
11552#if defined __stub_strcasecmp || defined __stub___strcasecmp
11553choke me
11554#endif
11555
11556int
11557main ()
11558{
11559return strcasecmp ();
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext conftest$ac_exeext
11565if { (ac_try="$ac_link"
11566case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569esac
11570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11571$as_echo "$ac_try_echo") >&5
11572 (eval "$ac_link") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_c_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest$ac_exeext && {
11582 test "$cross_compiling" = yes ||
11583 $as_test_x conftest$ac_exeext
11584 }; then
11585 ac_cv_func_strcasecmp=yes
11586else
11587 $as_echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_cv_func_strcasecmp=no
11591fi
11592
11593rm -rf conftest.dSYM
11594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11595 conftest$ac_exeext conftest.$ac_ext
11596fi
11597{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
11598$as_echo "$ac_cv_func_strcasecmp" >&6; }
11599if test $ac_cv_func_strcasecmp = yes; then
11600 :
11601else
11602 { $as_echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5
11603$as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
11604if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then
11605 $as_echo_n "(cached) " >&6
11606else
11607 ac_check_lib_save_LIBS=$LIBS
11608LIBS="-lresolv $LIBS"
11609cat >conftest.$ac_ext <<_ACEOF
11610/* confdefs.h. */
11611_ACEOF
11612cat confdefs.h >>conftest.$ac_ext
11613cat >>conftest.$ac_ext <<_ACEOF
11614/* end confdefs.h. */
11615
11616/* Override any GCC internal prototype to avoid an error.
11617 Use char because int might match the return type of a GCC
11618 builtin and then its argument prototype would still apply. */
11619#ifdef __cplusplus
11620extern "C"
11621#endif
11622char strcasecmp ();
11623int
11624main ()
11625{
11626return strcasecmp ();
11627 ;
11628 return 0;
11629}
11630_ACEOF
11631rm -f conftest.$ac_objext conftest$ac_exeext
11632if { (ac_try="$ac_link"
11633case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11636esac
11637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11638$as_echo "$ac_try_echo") >&5
11639 (eval "$ac_link") 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } && {
11646 test -z "$ac_c_werror_flag" ||
11647 test ! -s conftest.err
11648 } && test -s conftest$ac_exeext && {
11649 test "$cross_compiling" = yes ||
11650 $as_test_x conftest$ac_exeext
11651 }; then
11652 ac_cv_lib_resolv_strcasecmp=yes
11653else
11654 $as_echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 ac_cv_lib_resolv_strcasecmp=no
11658fi
11659
11660rm -rf conftest.dSYM
11661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11662 conftest$ac_exeext conftest.$ac_ext
11663LIBS=$ac_check_lib_save_LIBS
11664fi
11665{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5
11666$as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
11667if test $ac_cv_lib_resolv_strcasecmp = yes; then
11668 LIBS="$LIBS -lresolv"
11669fi
11670
11671
11672fi
11673
11674
11675for ac_func in utimes
11676do
11677as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11678{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11679$as_echo_n "checking for $ac_func... " >&6; }
11680if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11681 $as_echo_n "(cached) " >&6
11682else
11683 cat >conftest.$ac_ext <<_ACEOF
11684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h. */
11689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11691#define $ac_func innocuous_$ac_func
11692
11693/* System header to define __stub macros and hopefully few prototypes,
11694 which can conflict with char $ac_func (); below.
11695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11696 <limits.h> exists even on freestanding compilers. */
11697
11698#ifdef __STDC__
11699# include <limits.h>
11700#else
11701# include <assert.h>
11702#endif
11703
11704#undef $ac_func
11705
11706/* Override any GCC internal prototype to avoid an error.
11707 Use char because int might match the return type of a GCC
11708 builtin and then its argument prototype would still apply. */
11709#ifdef __cplusplus
11710extern "C"
11711#endif
11712char $ac_func ();
11713/* The GNU C library defines this for functions which it implements
11714 to always fail with ENOSYS. Some functions are actually named
11715 something starting with __ and the normal name is an alias. */
11716#if defined __stub_$ac_func || defined __stub___$ac_func
11717choke me
11718#endif
11719
11720int
11721main ()
11722{
11723return $ac_func ();
11724 ;
11725 return 0;
11726}
11727_ACEOF
11728rm -f conftest.$ac_objext conftest$ac_exeext
11729if { (ac_try="$ac_link"
11730case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11733esac
11734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11735$as_echo "$ac_try_echo") >&5
11736 (eval "$ac_link") 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } && {
11743 test -z "$ac_c_werror_flag" ||
11744 test ! -s conftest.err
11745 } && test -s conftest$ac_exeext && {
11746 test "$cross_compiling" = yes ||
11747 $as_test_x conftest$ac_exeext
11748 }; then
11749 eval "$as_ac_var=yes"
11750else
11751 $as_echo "$as_me: failed program was:" >&5
11752sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 eval "$as_ac_var=no"
11755fi
11756
11757rm -rf conftest.dSYM
11758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759 conftest$ac_exeext conftest.$ac_ext
11760fi
11761ac_res=`eval 'as_val=${'$as_ac_var'}
11762 $as_echo "$as_val"'`
11763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11764$as_echo "$ac_res" >&6; }
11765if test `eval 'as_val=${'$as_ac_var'}
11766 $as_echo "$as_val"'` = yes; then
11767 cat >>confdefs.h <<_ACEOF
11768#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11769_ACEOF
11770
11771else
11772 { $as_echo "$as_me:$LINENO: checking for utimes in -lc89" >&5
11773$as_echo_n "checking for utimes in -lc89... " >&6; }
11774if test "${ac_cv_lib_c89_utimes+set}" = set; then
11775 $as_echo_n "(cached) " >&6
11776else
11777 ac_check_lib_save_LIBS=$LIBS
11778LIBS="-lc89 $LIBS"
11779cat >conftest.$ac_ext <<_ACEOF
11780/* confdefs.h. */
11781_ACEOF
11782cat confdefs.h >>conftest.$ac_ext
11783cat >>conftest.$ac_ext <<_ACEOF
11784/* end confdefs.h. */
11785
11786/* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11789#ifdef __cplusplus
11790extern "C"
11791#endif
11792char utimes ();
11793int
11794main ()
11795{
11796return utimes ();
11797 ;
11798 return 0;
11799}
11800_ACEOF
11801rm -f conftest.$ac_objext conftest$ac_exeext
11802if { (ac_try="$ac_link"
11803case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11808$as_echo "$ac_try_echo") >&5
11809 (eval "$ac_link") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest$ac_exeext && {
11819 test "$cross_compiling" = yes ||
11820 $as_test_x conftest$ac_exeext
11821 }; then
11822 ac_cv_lib_c89_utimes=yes
11823else
11824 $as_echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
11827 ac_cv_lib_c89_utimes=no
11828fi
11829
11830rm -rf conftest.dSYM
11831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11832 conftest$ac_exeext conftest.$ac_ext
11833LIBS=$ac_check_lib_save_LIBS
11834fi
11835{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5
11836$as_echo "$ac_cv_lib_c89_utimes" >&6; }
11837if test $ac_cv_lib_c89_utimes = yes; then
11838 cat >>confdefs.h <<\_ACEOF
11839#define HAVE_UTIMES 1
11840_ACEOF
11841
11842 LIBS="$LIBS -lc89"
11843fi
11844
11845
11846fi
11847done
11848
11849
11850
11851for ac_header in libutil.h
11852do
11853as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11856$as_echo_n "checking for $ac_header... " >&6; }
11857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11858 $as_echo_n "(cached) " >&6
11859fi
11860ac_res=`eval 'as_val=${'$as_ac_Header'}
11861 $as_echo "$as_val"'`
11862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11863$as_echo "$ac_res" >&6; }
11864else
11865 # Is the header compilable?
11866{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11867$as_echo_n "checking $ac_header usability... " >&6; }
11868cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h. */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h. */
11874$ac_includes_default
11875#include <$ac_header>
11876_ACEOF
11877rm -f conftest.$ac_objext
11878if { (ac_try="$ac_compile"
11879case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882esac
11883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11884$as_echo "$ac_try_echo") >&5
11885 (eval "$ac_compile") 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } && {
11892 test -z "$ac_c_werror_flag" ||
11893 test ! -s conftest.err
11894 } && test -s conftest.$ac_objext; then
11895 ac_header_compiler=yes
11896else
11897 $as_echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ac_header_compiler=no
11901fi
11902
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11905$as_echo "$ac_header_compiler" >&6; }
11906
11907# Is the header present?
11908{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11909$as_echo_n "checking $ac_header presence... " >&6; }
11910cat >conftest.$ac_ext <<_ACEOF
11911/* confdefs.h. */
11912_ACEOF
11913cat confdefs.h >>conftest.$ac_ext
11914cat >>conftest.$ac_ext <<_ACEOF
11915/* end confdefs.h. */
11916#include <$ac_header>
11917_ACEOF
11918if { (ac_try="$ac_cpp conftest.$ac_ext"
11919case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924$as_echo "$ac_try_echo") >&5
11925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } >/dev/null && {
11932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 }; then
11935 ac_header_preproc=yes
11936else
11937 $as_echo "$as_me: failed program was:" >&5
11938sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ac_header_preproc=no
11941fi
11942
11943rm -f conftest.err conftest.$ac_ext
11944{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11945$as_echo "$ac_header_preproc" >&6; }
11946
11947# So? What about this header?
11948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11949 yes:no: )
11950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11951$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11953$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11954 ac_header_preproc=yes
11955 ;;
11956 no:yes:* )
11957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11958$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11960$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11962$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11964$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11966$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11968$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11969 ( cat <<\_ASBOX
11970## ------------------------------------------- ##
11971## Report this to openssh-unix-dev@mindrot.org ##
11972## ------------------------------------------- ##
11973_ASBOX
11974 ) | sed "s/^/$as_me: WARNING: /" >&2
11975 ;;
11976esac
11977{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11978$as_echo_n "checking for $ac_header... " >&6; }
11979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980 $as_echo_n "(cached) " >&6
11981else
11982 eval "$as_ac_Header=\$ac_header_preproc"
11983fi
11984ac_res=`eval 'as_val=${'$as_ac_Header'}
11985 $as_echo "$as_val"'`
11986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11987$as_echo "$ac_res" >&6; }
11988
11989fi
11990if test `eval 'as_val=${'$as_ac_Header'}
11991 $as_echo "$as_val"'` = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11994_ACEOF
11995
11996fi
11997
11998done
11999
12000{ $as_echo "$as_me:$LINENO: checking for library containing login" >&5
12001$as_echo_n "checking for library containing login... " >&6; }
12002if test "${ac_cv_search_login+set}" = set; then
12003 $as_echo_n "(cached) " >&6
12004else
12005 ac_func_search_save_LIBS=$LIBS
12006cat >conftest.$ac_ext <<_ACEOF
12007/* confdefs.h. */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h. */
12012
12013/* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12016#ifdef __cplusplus
12017extern "C"
12018#endif
12019char login ();
12020int
12021main ()
12022{
12023return login ();
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028for ac_lib in '' util bsd; do
12029 if test -z "$ac_lib"; then
12030 ac_res="none required"
12031 else
12032 ac_res=-l$ac_lib
12033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12034 fi
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036if { (ac_try="$ac_link"
12037case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040esac
12041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12042$as_echo "$ac_try_echo") >&5
12043 (eval "$ac_link") 2>conftest.er1
12044 ac_status=$?
12045 grep -v '^ *+' conftest.er1 >conftest.err
12046 rm -f conftest.er1
12047 cat conftest.err >&5
12048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest$ac_exeext && {
12053 test "$cross_compiling" = yes ||
12054 $as_test_x conftest$ac_exeext
12055 }; then
12056 ac_cv_search_login=$ac_res
12057else
12058 $as_echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061
12062fi
12063
12064rm -rf conftest.dSYM
12065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12066 conftest$ac_exeext
12067 if test "${ac_cv_search_login+set}" = set; then
12068 break
12069fi
12070done
12071if test "${ac_cv_search_login+set}" = set; then
12072 :
12073else
12074 ac_cv_search_login=no
12075fi
12076rm conftest.$ac_ext
12077LIBS=$ac_func_search_save_LIBS
12078fi
12079{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
12080$as_echo "$ac_cv_search_login" >&6; }
12081ac_res=$ac_cv_search_login
12082if test "$ac_res" != no; then
12083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12084
12085cat >>confdefs.h <<\_ACEOF
12086#define HAVE_LOGIN 1
12087_ACEOF
12088
12089fi
12090
12091
12092
12093
12094
12095for ac_func in fmt_scaled logout updwtmp logwtmp
12096do
12097as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12098{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12099$as_echo_n "checking for $ac_func... " >&6; }
12100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12101 $as_echo_n "(cached) " >&6
12102else
12103 cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111#define $ac_func innocuous_$ac_func
12112
12113/* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12117
12118#ifdef __STDC__
12119# include <limits.h>
12120#else
12121# include <assert.h>
12122#endif
12123
12124#undef $ac_func
12125
12126/* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129#ifdef __cplusplus
12130extern "C"
12131#endif
12132char $ac_func ();
12133/* The GNU C library defines this for functions which it implements
12134 to always fail with ENOSYS. Some functions are actually named
12135 something starting with __ and the normal name is an alias. */
12136#if defined __stub_$ac_func || defined __stub___$ac_func
12137choke me
12138#endif
12139
12140int
12141main ()
12142{
12143return $ac_func ();
12144 ;
12145 return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext conftest$ac_exeext
12149if { (ac_try="$ac_link"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12155$as_echo "$ac_try_echo") >&5
12156 (eval "$ac_link") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest$ac_exeext && {
12166 test "$cross_compiling" = yes ||
12167 $as_test_x conftest$ac_exeext
12168 }; then
12169 eval "$as_ac_var=yes"
12170else
12171 $as_echo "$as_me: failed program was:" >&5
12172sed 's/^/| /' conftest.$ac_ext >&5
12173
12174 eval "$as_ac_var=no"
12175fi
12176
12177rm -rf conftest.dSYM
12178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180fi
12181ac_res=`eval 'as_val=${'$as_ac_var'}
12182 $as_echo "$as_val"'`
12183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12184$as_echo "$ac_res" >&6; }
12185if test `eval 'as_val=${'$as_ac_var'}
12186 $as_echo "$as_val"'` = yes; then
12187 cat >>confdefs.h <<_ACEOF
12188#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12189_ACEOF
12190
12191fi
12192done
12193
12194
12195
12196for ac_func in strftime
12197do
12198as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12199{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12200$as_echo_n "checking for $ac_func... " >&6; }
12201if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12202 $as_echo_n "(cached) " >&6
12203else
12204 cat >conftest.$ac_ext <<_ACEOF
12205/* confdefs.h. */
12206_ACEOF
12207cat confdefs.h >>conftest.$ac_ext
12208cat >>conftest.$ac_ext <<_ACEOF
12209/* end confdefs.h. */
12210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12212#define $ac_func innocuous_$ac_func
12213
12214/* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char $ac_func (); below.
12216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12217 <limits.h> exists even on freestanding compilers. */
12218
12219#ifdef __STDC__
12220# include <limits.h>
12221#else
12222# include <assert.h>
12223#endif
12224
12225#undef $ac_func
12226
12227/* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12230#ifdef __cplusplus
12231extern "C"
12232#endif
12233char $ac_func ();
12234/* The GNU C library defines this for functions which it implements
12235 to always fail with ENOSYS. Some functions are actually named
12236 something starting with __ and the normal name is an alias. */
12237#if defined __stub_$ac_func || defined __stub___$ac_func
12238choke me
12239#endif
12240
12241int
12242main ()
12243{
12244return $ac_func ();
12245 ;
12246 return 0;
12247}
12248_ACEOF
12249rm -f conftest.$ac_objext conftest$ac_exeext
12250if { (ac_try="$ac_link"
12251case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254esac
12255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12256$as_echo "$ac_try_echo") >&5
12257 (eval "$ac_link") 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && {
12264 test -z "$ac_c_werror_flag" ||
12265 test ! -s conftest.err
12266 } && test -s conftest$ac_exeext && {
12267 test "$cross_compiling" = yes ||
12268 $as_test_x conftest$ac_exeext
12269 }; then
12270 eval "$as_ac_var=yes"
12271else
12272 $as_echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 eval "$as_ac_var=no"
12276fi
12277
12278rm -rf conftest.dSYM
12279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12280 conftest$ac_exeext conftest.$ac_ext
12281fi
12282ac_res=`eval 'as_val=${'$as_ac_var'}
12283 $as_echo "$as_val"'`
12284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12285$as_echo "$ac_res" >&6; }
12286if test `eval 'as_val=${'$as_ac_var'}
12287 $as_echo "$as_val"'` = yes; then
12288 cat >>confdefs.h <<_ACEOF
12289#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12290_ACEOF
12291
12292else
12293 # strftime is in -lintl on SCO UNIX.
12294{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12295$as_echo_n "checking for strftime in -lintl... " >&6; }
12296if test "${ac_cv_lib_intl_strftime+set}" = set; then
12297 $as_echo_n "(cached) " >&6
12298else
12299 ac_check_lib_save_LIBS=$LIBS
12300LIBS="-lintl $LIBS"
12301cat >conftest.$ac_ext <<_ACEOF
12302/* confdefs.h. */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h. */
12307
12308/* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12311#ifdef __cplusplus
12312extern "C"
12313#endif
12314char strftime ();
12315int
12316main ()
12317{
12318return strftime ();
12319 ;
12320 return 0;
12321}
12322_ACEOF
12323rm -f conftest.$ac_objext conftest$ac_exeext
12324if { (ac_try="$ac_link"
12325case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12330$as_echo "$ac_try_echo") >&5
12331 (eval "$ac_link") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest$ac_exeext && {
12341 test "$cross_compiling" = yes ||
12342 $as_test_x conftest$ac_exeext
12343 }; then
12344 ac_cv_lib_intl_strftime=yes
12345else
12346 $as_echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_cv_lib_intl_strftime=no
12350fi
12351
12352rm -rf conftest.dSYM
12353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12354 conftest$ac_exeext conftest.$ac_ext
12355LIBS=$ac_check_lib_save_LIBS
12356fi
12357{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12358$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12359if test $ac_cv_lib_intl_strftime = yes; then
12360 cat >>confdefs.h <<\_ACEOF
12361#define HAVE_STRFTIME 1
12362_ACEOF
12363
12364LIBS="-lintl $LIBS"
12365fi
12366
12367fi
12368done
12369
12370
12371# Check for ALTDIRFUNC glob() extension
12372{ $as_echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5
12373$as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
12374cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380
12381 #include <glob.h>
12382 #ifdef GLOB_ALTDIRFUNC
12383 FOUNDIT
12384 #endif
12385
12386_ACEOF
12387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12388 $EGREP "FOUNDIT" >/dev/null 2>&1; then
12389
12390
12391cat >>confdefs.h <<\_ACEOF
12392#define GLOB_HAS_ALTDIRFUNC 1
12393_ACEOF
12394
12395 { $as_echo "$as_me:$LINENO: result: yes" >&5
12396$as_echo "yes" >&6; }
12397
12398else
12399
12400 { $as_echo "$as_me:$LINENO: result: no" >&5
12401$as_echo "no" >&6; }
12402
12403
12404fi
12405rm -f conftest*
12406
12407
12408# Check for g.gl_matchc glob() extension
12409{ $as_echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5
12410$as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
12411cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417 #include <glob.h>
12418int
12419main ()
12420{
12421glob_t g; g.gl_matchc = 1;
12422 ;
12423 return 0;
12424}
12425_ACEOF
12426rm -f conftest.$ac_objext
12427if { (ac_try="$ac_compile"
12428case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431esac
12432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433$as_echo "$ac_try_echo") >&5
12434 (eval "$ac_compile") 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } && {
12441 test -z "$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12443 } && test -s conftest.$ac_objext; then
12444
12445
12446cat >>confdefs.h <<\_ACEOF
12447#define GLOB_HAS_GL_MATCHC 1
12448_ACEOF
12449
12450 { $as_echo "$as_me:$LINENO: result: yes" >&5
12451$as_echo "yes" >&6; }
12452
12453else
12454 $as_echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457
12458 { $as_echo "$as_me:$LINENO: result: no" >&5
12459$as_echo "no" >&6; }
12460
12461
12462fi
12463
12464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465
12466{ $as_echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
12467$as_echo_n "checking whether GLOB_NOMATCH is declared... " >&6; }
12468if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
12469 $as_echo_n "(cached) " >&6
12470else
12471 cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h. */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h. */
12477#include <glob.h>
12478
12479int
12480main ()
12481{
12482#ifndef GLOB_NOMATCH
12483 (void) GLOB_NOMATCH;
12484#endif
12485
12486 ;
12487 return 0;
12488}
12489_ACEOF
12490rm -f conftest.$ac_objext
12491if { (ac_try="$ac_compile"
12492case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495esac
12496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12497$as_echo "$ac_try_echo") >&5
12498 (eval "$ac_compile") 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest.$ac_objext; then
12508 ac_cv_have_decl_GLOB_NOMATCH=yes
12509else
12510 $as_echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_cv_have_decl_GLOB_NOMATCH=no
12514fi
12515
12516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517fi
12518{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
12519$as_echo "$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
12520if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
12521
12522cat >>confdefs.h <<_ACEOF
12523#define HAVE_DECL_GLOB_NOMATCH 1
12524_ACEOF
12525
12526
12527else
12528 cat >>confdefs.h <<_ACEOF
12529#define HAVE_DECL_GLOB_NOMATCH 0
12530_ACEOF
12531
12532
12533fi
12534
12535
12536
12537{ $as_echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
12538$as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
12539if test "$cross_compiling" = yes; then
12540
12541 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
12542$as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
12543 cat >>confdefs.h <<\_ACEOF
12544#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12545_ACEOF
12546
12547
12548
12549else
12550 cat >conftest.$ac_ext <<_ACEOF
12551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
12556
12557#include <sys/types.h>
12558#include <dirent.h>
12559int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
12560
12561_ACEOF
12562rm -f conftest$ac_exeext
12563if { (ac_try="$ac_link"
12564case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
12568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12569$as_echo "$ac_try_echo") >&5
12570 (eval "$ac_link") 2>&5
12571 ac_status=$?
12572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577esac
12578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12579$as_echo "$ac_try_echo") >&5
12580 (eval "$ac_try") 2>&5
12581 ac_status=$?
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 { $as_echo "$as_me:$LINENO: result: yes" >&5
12585$as_echo "yes" >&6; }
12586else
12587 $as_echo "$as_me: program exited with status $ac_status" >&5
12588$as_echo "$as_me: failed program was:" >&5
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
12591( exit $ac_status )
12592
12593 { $as_echo "$as_me:$LINENO: result: no" >&5
12594$as_echo "no" >&6; }
12595
12596cat >>confdefs.h <<\_ACEOF
12597#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1
12598_ACEOF
12599
12600
12601fi
12602rm -rf conftest.dSYM
12603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12604fi
12605
12606
12607
12608{ $as_echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5
12609$as_echo_n "checking for /proc/pid/fd directory... " >&6; }
12610if test -d "/proc/$$/fd" ; then
12611
12612cat >>confdefs.h <<\_ACEOF
12613#define HAVE_PROC_PID 1
12614_ACEOF
12615
12616 { $as_echo "$as_me:$LINENO: result: yes" >&5
12617$as_echo "yes" >&6; }
12618else
12619 { $as_echo "$as_me:$LINENO: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623# Check whether user wants S/Key support
12624SKEY_MSG="no"
12625
12626# Check whether --with-skey was given.
12627if test "${with_skey+set}" = set; then
12628 withval=$with_skey;
12629 if test "x$withval" != "xno" ; then
12630
12631 if test "x$withval" != "xyes" ; then
12632 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12633 LDFLAGS="$LDFLAGS -L${withval}/lib"
12634 fi
12635
12636
12637cat >>confdefs.h <<\_ACEOF
12638#define SKEY 1
12639_ACEOF
12640
12641 LIBS="-lskey $LIBS"
12642 SKEY_MSG="yes"
12643
12644 { $as_echo "$as_me:$LINENO: checking for s/key support" >&5
12645$as_echo_n "checking for s/key support... " >&6; }
12646 cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
12652
12653#include <stdio.h>
12654#include <skey.h>
12655int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
12656
12657_ACEOF
12658rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (ac_try="$ac_link"
12660case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663esac
12664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665$as_echo "$ac_try_echo") >&5
12666 (eval "$ac_link") 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && {
12673 test -z "$ac_c_werror_flag" ||
12674 test ! -s conftest.err
12675 } && test -s conftest$ac_exeext && {
12676 test "$cross_compiling" = yes ||
12677 $as_test_x conftest$ac_exeext
12678 }; then
12679 { $as_echo "$as_me:$LINENO: result: yes" >&5
12680$as_echo "yes" >&6; }
12681else
12682 $as_echo "$as_me: failed program was:" >&5
12683sed 's/^/| /' conftest.$ac_ext >&5
12684
12685
12686 { $as_echo "$as_me:$LINENO: result: no" >&5
12687$as_echo "no" >&6; }
12688 { { $as_echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5
12689$as_echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;}
12690 { (exit 1); exit 1; }; }
12691
12692fi
12693
12694rm -rf conftest.dSYM
12695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12696 conftest$ac_exeext conftest.$ac_ext
12697 { $as_echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5
12698$as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
12699 cat >conftest.$ac_ext <<_ACEOF
12700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705#include <stdio.h>
12706 #include <skey.h>
12707int
12708main ()
12709{
12710(void)skeychallenge(NULL,"name","",0);
12711 ;
12712 return 0;
12713}
12714_ACEOF
12715rm -f conftest.$ac_objext
12716if { (ac_try="$ac_compile"
12717case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12720esac
12721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12722$as_echo "$ac_try_echo") >&5
12723 (eval "$ac_compile") 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_c_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest.$ac_objext; then
12733 { $as_echo "$as_me:$LINENO: result: yes" >&5
12734$as_echo "yes" >&6; }
12735
12736cat >>confdefs.h <<\_ACEOF
12737#define SKEYCHALLENGE_4ARG 1
12738_ACEOF
12739
12740else
12741 $as_echo "$as_me: failed program was:" >&5
12742sed 's/^/| /' conftest.$ac_ext >&5
12743
12744 { $as_echo "$as_me:$LINENO: result: no" >&5
12745$as_echo "no" >&6; }
12746
12747fi
12748
12749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751
12752
12753fi
12754
12755
12756# Check whether user wants TCP wrappers support
12757TCPW_MSG="no"
12758
12759# Check whether --with-tcp-wrappers was given.
12760if test "${with_tcp_wrappers+set}" = set; then
12761 withval=$with_tcp_wrappers;
12762 if test "x$withval" != "xno" ; then
12763 saved_LIBS="$LIBS"
12764 saved_LDFLAGS="$LDFLAGS"
12765 saved_CPPFLAGS="$CPPFLAGS"
12766 if test -n "${withval}" && \
12767 test "x${withval}" != "xyes"; then
12768 if test -d "${withval}/lib"; then
12769 if test -n "${need_dash_r}"; then
12770 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12771 else
12772 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12773 fi
12774 else
12775 if test -n "${need_dash_r}"; then
12776 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
12777 else
12778 LDFLAGS="-L${withval} ${LDFLAGS}"
12779 fi
12780 fi
12781 if test -d "${withval}/include"; then
12782 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
12783 else
12784 CPPFLAGS="-I${withval} ${CPPFLAGS}"
12785 fi
12786 fi
12787 LIBS="-lwrap $LIBS"
12788 { $as_echo "$as_me:$LINENO: checking for libwrap" >&5
12789$as_echo_n "checking for libwrap... " >&6; }
12790 cat >conftest.$ac_ext <<_ACEOF
12791/* confdefs.h. */
12792_ACEOF
12793cat confdefs.h >>conftest.$ac_ext
12794cat >>conftest.$ac_ext <<_ACEOF
12795/* end confdefs.h. */
12796
12797#include <sys/types.h>
12798#include <sys/socket.h>
12799#include <netinet/in.h>
12800#include <tcpd.h>
12801 int deny_severity = 0, allow_severity = 0;
12802
12803int
12804main ()
12805{
12806hosts_access(0);
12807 ;
12808 return 0;
12809}
12810_ACEOF
12811rm -f conftest.$ac_objext conftest$ac_exeext
12812if { (ac_try="$ac_link"
12813case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12816esac
12817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818$as_echo "$ac_try_echo") >&5
12819 (eval "$ac_link") 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext && {
12829 test "$cross_compiling" = yes ||
12830 $as_test_x conftest$ac_exeext
12831 }; then
12832
12833 { $as_echo "$as_me:$LINENO: result: yes" >&5
12834$as_echo "yes" >&6; }
12835
12836cat >>confdefs.h <<\_ACEOF
12837#define LIBWRAP 1
12838_ACEOF
12839
12840 SSHDLIBS="$SSHDLIBS -lwrap"
12841 TCPW_MSG="yes"
12842
12843else
12844 $as_echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847
12848 { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5
12849$as_echo "$as_me: error: *** libwrap missing" >&2;}
12850 { (exit 1); exit 1; }; }
12851
12852
12853fi
12854
12855rm -rf conftest.dSYM
12856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12857 conftest$ac_exeext conftest.$ac_ext
12858 LIBS="$saved_LIBS"
12859 fi
12860
12861
12862fi
12863
12864
12865# Check whether user wants libedit support
12866LIBEDIT_MSG="no"
12867
12868# Check whether --with-libedit was given.
12869if test "${with_libedit+set}" = set; then
12870 withval=$with_libedit; if test "x$withval" != "xno" ; then
12871 if test "x$withval" != "xyes"; then
12872 CPPFLAGS="$CPPFLAGS -I${withval}/include"
12873 if test -n "${need_dash_r}"; then
12874 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
12875 else
12876 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
12877 fi
12878 fi
12879 { $as_echo "$as_me:$LINENO: checking for el_init in -ledit" >&5
12880$as_echo_n "checking for el_init in -ledit... " >&6; }
12881if test "${ac_cv_lib_edit_el_init+set}" = set; then
12882 $as_echo_n "(cached) " >&6
12883else
12884 ac_check_lib_save_LIBS=$LIBS
12885LIBS="-ledit -lcurses
12886 $LIBS"
12887cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
12893
12894/* Override any GCC internal prototype to avoid an error.
12895 Use char because int might match the return type of a GCC
12896 builtin and then its argument prototype would still apply. */
12897#ifdef __cplusplus
12898extern "C"
12899#endif
12900char el_init ();
12901int
12902main ()
12903{
12904return el_init ();
12905 ;
12906 return 0;
12907}
12908_ACEOF
12909rm -f conftest.$ac_objext conftest$ac_exeext
12910if { (ac_try="$ac_link"
12911case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914esac
12915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12916$as_echo "$ac_try_echo") >&5
12917 (eval "$ac_link") 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && {
12924 test -z "$ac_c_werror_flag" ||
12925 test ! -s conftest.err
12926 } && test -s conftest$ac_exeext && {
12927 test "$cross_compiling" = yes ||
12928 $as_test_x conftest$ac_exeext
12929 }; then
12930 ac_cv_lib_edit_el_init=yes
12931else
12932 $as_echo "$as_me: failed program was:" >&5
12933sed 's/^/| /' conftest.$ac_ext >&5
12934
12935 ac_cv_lib_edit_el_init=no
12936fi
12937
12938rm -rf conftest.dSYM
12939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12940 conftest$ac_exeext conftest.$ac_ext
12941LIBS=$ac_check_lib_save_LIBS
12942fi
12943{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5
12944$as_echo "$ac_cv_lib_edit_el_init" >&6; }
12945if test $ac_cv_lib_edit_el_init = yes; then
12946
12947cat >>confdefs.h <<\_ACEOF
12948#define USE_LIBEDIT 1
12949_ACEOF
12950
12951 LIBEDIT="-ledit -lcurses"
12952 LIBEDIT_MSG="yes"
12953
12954
12955else
12956 { { $as_echo "$as_me:$LINENO: error: libedit not found" >&5
12957$as_echo "$as_me: error: libedit not found" >&2;}
12958 { (exit 1); exit 1; }; }
12959fi
12960
12961 { $as_echo "$as_me:$LINENO: checking if libedit version is compatible" >&5
12962$as_echo_n "checking if libedit version is compatible... " >&6; }
12963 cat >conftest.$ac_ext <<_ACEOF
12964/* confdefs.h. */
12965_ACEOF
12966cat confdefs.h >>conftest.$ac_ext
12967cat >>conftest.$ac_ext <<_ACEOF
12968/* end confdefs.h. */
12969
12970#include <histedit.h>
12971int main(void)
12972{
12973 int i = H_SETSIZE;
12974 el_init("", NULL, NULL, NULL);
12975 exit(0);
12976}
12977
12978_ACEOF
12979rm -f conftest.$ac_objext
12980if { (ac_try="$ac_compile"
12981case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984esac
12985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12986$as_echo "$ac_try_echo") >&5
12987 (eval "$ac_compile") 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } && {
12994 test -z "$ac_c_werror_flag" ||
12995 test ! -s conftest.err
12996 } && test -s conftest.$ac_objext; then
12997 { $as_echo "$as_me:$LINENO: result: yes" >&5
12998$as_echo "yes" >&6; }
12999else
13000 $as_echo "$as_me: failed program was:" >&5
13001sed 's/^/| /' conftest.$ac_ext >&5
13002
13003 { $as_echo "$as_me:$LINENO: result: no" >&5
13004$as_echo "no" >&6; }
13005 { { $as_echo "$as_me:$LINENO: error: libedit version is not compatible" >&5
13006$as_echo "$as_me: error: libedit version is not compatible" >&2;}
13007 { (exit 1); exit 1; }; }
13008
13009fi
13010
13011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 fi
13013
13014fi
13015
13016
13017AUDIT_MODULE=none
13018
13019# Check whether --with-audit was given.
13020if test "${with_audit+set}" = set; then
13021 withval=$with_audit;
13022 { $as_echo "$as_me:$LINENO: checking for supported audit module" >&5
13023$as_echo_n "checking for supported audit module... " >&6; }
13024 case "$withval" in
13025 bsm)
13026 { $as_echo "$as_me:$LINENO: result: bsm" >&5
13027$as_echo "bsm" >&6; }
13028 AUDIT_MODULE=bsm
13029
13030for ac_header in bsm/audit.h
13031do
13032as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13033{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13034$as_echo_n "checking for $ac_header... " >&6; }
13035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13036 $as_echo_n "(cached) " >&6
13037else
13038 cat >conftest.$ac_ext <<_ACEOF
13039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
13044
13045#ifdef HAVE_TIME_H
13046# include <time.h>
13047#endif
13048
13049
13050
13051#include <$ac_header>
13052_ACEOF
13053rm -f conftest.$ac_objext
13054if { (ac_try="$ac_compile"
13055case "(($ac_try" in
13056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057 *) ac_try_echo=$ac_try;;
13058esac
13059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13060$as_echo "$ac_try_echo") >&5
13061 (eval "$ac_compile") 2>conftest.er1
13062 ac_status=$?
13063 grep -v '^ *+' conftest.er1 >conftest.err
13064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest.$ac_objext; then
13071 eval "$as_ac_Header=yes"
13072else
13073 $as_echo "$as_me: failed program was:" >&5
13074sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 eval "$as_ac_Header=no"
13077fi
13078
13079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080fi
13081ac_res=`eval 'as_val=${'$as_ac_Header'}
13082 $as_echo "$as_val"'`
13083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13084$as_echo "$ac_res" >&6; }
13085if test `eval 'as_val=${'$as_ac_Header'}
13086 $as_echo "$as_val"'` = yes; then
13087 cat >>confdefs.h <<_ACEOF
13088#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13089_ACEOF
13090
13091else
13092 { { $as_echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5
13093$as_echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;}
13094 { (exit 1); exit 1; }; }
13095fi
13096
13097done
13098
13099
13100{ $as_echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5
13101$as_echo_n "checking for getaudit in -lbsm... " >&6; }
13102if test "${ac_cv_lib_bsm_getaudit+set}" = set; then
13103 $as_echo_n "(cached) " >&6
13104else
13105 ac_check_lib_save_LIBS=$LIBS
13106LIBS="-lbsm $LIBS"
13107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113
13114/* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13117#ifdef __cplusplus
13118extern "C"
13119#endif
13120char getaudit ();
13121int
13122main ()
13123{
13124return getaudit ();
13125 ;
13126 return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (ac_try="$ac_link"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13136$as_echo "$ac_try_echo") >&5
13137 (eval "$ac_link") 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest$ac_exeext && {
13147 test "$cross_compiling" = yes ||
13148 $as_test_x conftest$ac_exeext
13149 }; then
13150 ac_cv_lib_bsm_getaudit=yes
13151else
13152 $as_echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 ac_cv_lib_bsm_getaudit=no
13156fi
13157
13158rm -rf conftest.dSYM
13159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13160 conftest$ac_exeext conftest.$ac_ext
13161LIBS=$ac_check_lib_save_LIBS
13162fi
13163{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5
13164$as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
13165if test $ac_cv_lib_bsm_getaudit = yes; then
13166 cat >>confdefs.h <<_ACEOF
13167#define HAVE_LIBBSM 1
13168_ACEOF
13169
13170 LIBS="-lbsm $LIBS"
13171
13172else
13173 { { $as_echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5
13174$as_echo "$as_me: error: BSM enabled and required library not found" >&2;}
13175 { (exit 1); exit 1; }; }
13176fi
13177
13178
13179for ac_func in getaudit
13180do
13181as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13183$as_echo_n "checking for $ac_func... " >&6; }
13184if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13185 $as_echo_n "(cached) " >&6
13186else
13187 cat >conftest.$ac_ext <<_ACEOF
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
13193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13195#define $ac_func innocuous_$ac_func
13196
13197/* System header to define __stub macros and hopefully few prototypes,
13198 which can conflict with char $ac_func (); below.
13199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13200 <limits.h> exists even on freestanding compilers. */
13201
13202#ifdef __STDC__
13203# include <limits.h>
13204#else
13205# include <assert.h>
13206#endif
13207
13208#undef $ac_func
13209
13210/* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13213#ifdef __cplusplus
13214extern "C"
13215#endif
13216char $ac_func ();
13217/* The GNU C library defines this for functions which it implements
13218 to always fail with ENOSYS. Some functions are actually named
13219 something starting with __ and the normal name is an alias. */
13220#if defined __stub_$ac_func || defined __stub___$ac_func
13221choke me
13222#endif
13223
13224int
13225main ()
13226{
13227return $ac_func ();
13228 ;
13229 return 0;
13230}
13231_ACEOF
13232rm -f conftest.$ac_objext conftest$ac_exeext
13233if { (ac_try="$ac_link"
13234case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239$as_echo "$ac_try_echo") >&5
13240 (eval "$ac_link") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest$ac_exeext && {
13250 test "$cross_compiling" = yes ||
13251 $as_test_x conftest$ac_exeext
13252 }; then
13253 eval "$as_ac_var=yes"
13254else
13255 $as_echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 eval "$as_ac_var=no"
13259fi
13260
13261rm -rf conftest.dSYM
13262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13263 conftest$ac_exeext conftest.$ac_ext
13264fi
13265ac_res=`eval 'as_val=${'$as_ac_var'}
13266 $as_echo "$as_val"'`
13267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13268$as_echo "$ac_res" >&6; }
13269if test `eval 'as_val=${'$as_ac_var'}
13270 $as_echo "$as_val"'` = yes; then
13271 cat >>confdefs.h <<_ACEOF
13272#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13273_ACEOF
13274
13275else
13276 { { $as_echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5
13277$as_echo "$as_me: error: BSM enabled and required function not found" >&2;}
13278 { (exit 1); exit 1; }; }
13279fi
13280done
13281
13282 # These are optional
13283
13284
13285for ac_func in getaudit_addr aug_get_machine
13286do
13287as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13288{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13289$as_echo_n "checking for $ac_func... " >&6; }
13290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13291 $as_echo_n "(cached) " >&6
13292else
13293 cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13301#define $ac_func innocuous_$ac_func
13302
13303/* System header to define __stub macros and hopefully few prototypes,
13304 which can conflict with char $ac_func (); below.
13305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13306 <limits.h> exists even on freestanding compilers. */
13307
13308#ifdef __STDC__
13309# include <limits.h>
13310#else
13311# include <assert.h>
13312#endif
13313
13314#undef $ac_func
13315
13316/* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319#ifdef __cplusplus
13320extern "C"
13321#endif
13322char $ac_func ();
13323/* The GNU C library defines this for functions which it implements
13324 to always fail with ENOSYS. Some functions are actually named
13325 something starting with __ and the normal name is an alias. */
13326#if defined __stub_$ac_func || defined __stub___$ac_func
13327choke me
13328#endif
13329
13330int
13331main ()
13332{
13333return $ac_func ();
13334 ;
13335 return 0;
13336}
13337_ACEOF
13338rm -f conftest.$ac_objext conftest$ac_exeext
13339if { (ac_try="$ac_link"
13340case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343esac
13344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345$as_echo "$ac_try_echo") >&5
13346 (eval "$ac_link") 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest$ac_exeext && {
13356 test "$cross_compiling" = yes ||
13357 $as_test_x conftest$ac_exeext
13358 }; then
13359 eval "$as_ac_var=yes"
13360else
13361 $as_echo "$as_me: failed program was:" >&5
13362sed 's/^/| /' conftest.$ac_ext >&5
13363
13364 eval "$as_ac_var=no"
13365fi
13366
13367rm -rf conftest.dSYM
13368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13369 conftest$ac_exeext conftest.$ac_ext
13370fi
13371ac_res=`eval 'as_val=${'$as_ac_var'}
13372 $as_echo "$as_val"'`
13373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13374$as_echo "$ac_res" >&6; }
13375if test `eval 'as_val=${'$as_ac_var'}
13376 $as_echo "$as_val"'` = yes; then
13377 cat >>confdefs.h <<_ACEOF
13378#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13379_ACEOF
13380
13381fi
13382done
13383
13384
13385cat >>confdefs.h <<\_ACEOF
13386#define USE_BSM_AUDIT 1
13387_ACEOF
13388
13389 ;;
13390 debug)
13391 AUDIT_MODULE=debug
13392 { $as_echo "$as_me:$LINENO: result: debug" >&5
13393$as_echo "debug" >&6; }
13394
13395cat >>confdefs.h <<\_ACEOF
13396#define SSH_AUDIT_EVENTS 1
13397_ACEOF
13398
13399 ;;
13400 no)
13401 { $as_echo "$as_me:$LINENO: result: no" >&5
13402$as_echo "no" >&6; }
13403 ;;
13404 *)
13405 { { $as_echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5
13406$as_echo "$as_me: error: Unknown audit module $withval" >&2;}
13407 { (exit 1); exit 1; }; }
13408 ;;
13409 esac
13410
13411fi
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503for ac_func in \
13504 arc4random \
13505 arc4random_buf \
13506 arc4random_uniform \
13507 asprintf \
13508 b64_ntop \
13509 __b64_ntop \
13510 b64_pton \
13511 __b64_pton \
13512 bcopy \
13513 bindresvport_sa \
13514 clock \
13515 closefrom \
13516 dirfd \
13517 fchmod \
13518 fchown \
13519 freeaddrinfo \
13520 fstatvfs \
13521 futimes \
13522 getaddrinfo \
13523 getcwd \
13524 getgrouplist \
13525 getnameinfo \
13526 getopt \
13527 getpeereid \
13528 getpeerucred \
13529 _getpty \
13530 getrlimit \
13531 getttyent \
13532 glob \
13533 inet_aton \
13534 inet_ntoa \
13535 inet_ntop \
13536 innetgr \
13537 login_getcapbool \
13538 md5_crypt \
13539 memmove \
13540 mkdtemp \
13541 mmap \
13542 ngetaddrinfo \
13543 nsleep \
13544 ogetaddrinfo \
13545 openlog_r \
13546 openpty \
13547 poll \
13548 prctl \
13549 pstat \
13550 readpassphrase \
13551 realpath \
13552 recvmsg \
13553 rresvport_af \
13554 sendmsg \
13555 setdtablesize \
13556 setegid \
13557 setenv \
13558 seteuid \
13559 setgroups \
13560 setlogin \
13561 setpcred \
13562 setproctitle \
13563 setregid \
13564 setreuid \
13565 setrlimit \
13566 setsid \
13567 setvbuf \
13568 sigaction \
13569 sigvec \
13570 snprintf \
13571 socketpair \
13572 statfs \
13573 statvfs \
13574 strdup \
13575 strerror \
13576 strlcat \
13577 strlcpy \
13578 strmode \
13579 strnvis \
13580 strtonum \
13581 strtoll \
13582 strtoul \
13583 swap32 \
13584 sysconf \
13585 tcgetpgrp \
13586 truncate \
13587 unsetenv \
13588 updwtmpx \
13589 vasprintf \
13590 vhangup \
13591 vsnprintf \
13592 waitpid \
13593
13594do
13595as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13596{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13597$as_echo_n "checking for $ac_func... " >&6; }
13598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13599 $as_echo_n "(cached) " >&6
13600else
13601 cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13609#define $ac_func innocuous_$ac_func
13610
13611/* System header to define __stub macros and hopefully few prototypes,
13612 which can conflict with char $ac_func (); below.
13613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13614 <limits.h> exists even on freestanding compilers. */
13615
13616#ifdef __STDC__
13617# include <limits.h>
13618#else
13619# include <assert.h>
13620#endif
13621
13622#undef $ac_func
13623
13624/* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13627#ifdef __cplusplus
13628extern "C"
13629#endif
13630char $ac_func ();
13631/* The GNU C library defines this for functions which it implements
13632 to always fail with ENOSYS. Some functions are actually named
13633 something starting with __ and the normal name is an alias. */
13634#if defined __stub_$ac_func || defined __stub___$ac_func
13635choke me
13636#endif
13637
13638int
13639main ()
13640{
13641return $ac_func ();
13642 ;
13643 return 0;
13644}
13645_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653$as_echo "$ac_try_echo") >&5
13654 (eval "$ac_link") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest$ac_exeext && {
13664 test "$cross_compiling" = yes ||
13665 $as_test_x conftest$ac_exeext
13666 }; then
13667 eval "$as_ac_var=yes"
13668else
13669 $as_echo "$as_me: failed program was:" >&5
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 eval "$as_ac_var=no"
13673fi
13674
13675rm -rf conftest.dSYM
13676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13677 conftest$ac_exeext conftest.$ac_ext
13678fi
13679ac_res=`eval 'as_val=${'$as_ac_var'}
13680 $as_echo "$as_val"'`
13681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13682$as_echo "$ac_res" >&6; }
13683if test `eval 'as_val=${'$as_ac_var'}
13684 $as_echo "$as_val"'` = yes; then
13685 cat >>confdefs.h <<_ACEOF
13686#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13687_ACEOF
13688
13689fi
13690done
13691
13692
13693# IRIX has a const char return value for gai_strerror()
13694
13695for ac_func in gai_strerror
13696do
13697as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13698{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13699$as_echo_n "checking for $ac_func... " >&6; }
13700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13701 $as_echo_n "(cached) " >&6
13702else
13703 cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13711#define $ac_func innocuous_$ac_func
13712
13713/* System header to define __stub macros and hopefully few prototypes,
13714 which can conflict with char $ac_func (); below.
13715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13716 <limits.h> exists even on freestanding compilers. */
13717
13718#ifdef __STDC__
13719# include <limits.h>
13720#else
13721# include <assert.h>
13722#endif
13723
13724#undef $ac_func
13725
13726/* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13729#ifdef __cplusplus
13730extern "C"
13731#endif
13732char $ac_func ();
13733/* The GNU C library defines this for functions which it implements
13734 to always fail with ENOSYS. Some functions are actually named
13735 something starting with __ and the normal name is an alias. */
13736#if defined __stub_$ac_func || defined __stub___$ac_func
13737choke me
13738#endif
13739
13740int
13741main ()
13742{
13743return $ac_func ();
13744 ;
13745 return 0;
13746}
13747_ACEOF
13748rm -f conftest.$ac_objext conftest$ac_exeext
13749if { (ac_try="$ac_link"
13750case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13755$as_echo "$ac_try_echo") >&5
13756 (eval "$ac_link") 2>conftest.er1
13757 ac_status=$?
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
13761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } && {
13763 test -z "$ac_c_werror_flag" ||
13764 test ! -s conftest.err
13765 } && test -s conftest$ac_exeext && {
13766 test "$cross_compiling" = yes ||
13767 $as_test_x conftest$ac_exeext
13768 }; then
13769 eval "$as_ac_var=yes"
13770else
13771 $as_echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 eval "$as_ac_var=no"
13775fi
13776
13777rm -rf conftest.dSYM
13778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13779 conftest$ac_exeext conftest.$ac_ext
13780fi
13781ac_res=`eval 'as_val=${'$as_ac_var'}
13782 $as_echo "$as_val"'`
13783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13784$as_echo "$ac_res" >&6; }
13785if test `eval 'as_val=${'$as_ac_var'}
13786 $as_echo "$as_val"'` = yes; then
13787 cat >>confdefs.h <<_ACEOF
13788#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13789_ACEOF
13790
13791 cat >>confdefs.h <<\_ACEOF
13792#define HAVE_GAI_STRERROR 1
13793_ACEOF
13794
13795 cat >conftest.$ac_ext <<_ACEOF
13796/* confdefs.h. */
13797_ACEOF
13798cat confdefs.h >>conftest.$ac_ext
13799cat >>conftest.$ac_ext <<_ACEOF
13800/* end confdefs.h. */
13801
13802#include <sys/types.h>
13803#include <sys/socket.h>
13804#include <netdb.h>
13805
13806const char *gai_strerror(int);
13807int
13808main ()
13809{
13810
13811char *str;
13812
13813str = gai_strerror(0);
13814 ;
13815 return 0;
13816}
13817_ACEOF
13818rm -f conftest.$ac_objext
13819if { (ac_try="$ac_compile"
13820case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823esac
13824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13825$as_echo "$ac_try_echo") >&5
13826 (eval "$ac_compile") 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest.$ac_objext; then
13836
13837
13838cat >>confdefs.h <<\_ACEOF
13839#define HAVE_CONST_GAI_STRERROR_PROTO 1
13840_ACEOF
13841
13842else
13843 $as_echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846
13847fi
13848
13849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13850fi
13851done
13852
13853
13854{ $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
13855$as_echo_n "checking for library containing nanosleep... " >&6; }
13856if test "${ac_cv_search_nanosleep+set}" = set; then
13857 $as_echo_n "(cached) " >&6
13858else
13859 ac_func_search_save_LIBS=$LIBS
13860cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866
13867/* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13870#ifdef __cplusplus
13871extern "C"
13872#endif
13873char nanosleep ();
13874int
13875main ()
13876{
13877return nanosleep ();
13878 ;
13879 return 0;
13880}
13881_ACEOF
13882for ac_lib in '' rt posix4; do
13883 if test -z "$ac_lib"; then
13884 ac_res="none required"
13885 else
13886 ac_res=-l$ac_lib
13887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13888 fi
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890if { (ac_try="$ac_link"
13891case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13894esac
13895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13896$as_echo "$ac_try_echo") >&5
13897 (eval "$ac_link") 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest$ac_exeext && {
13907 test "$cross_compiling" = yes ||
13908 $as_test_x conftest$ac_exeext
13909 }; then
13910 ac_cv_search_nanosleep=$ac_res
13911else
13912 $as_echo "$as_me: failed program was:" >&5
13913sed 's/^/| /' conftest.$ac_ext >&5
13914
13915
13916fi
13917
13918rm -rf conftest.dSYM
13919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920 conftest$ac_exeext
13921 if test "${ac_cv_search_nanosleep+set}" = set; then
13922 break
13923fi
13924done
13925if test "${ac_cv_search_nanosleep+set}" = set; then
13926 :
13927else
13928 ac_cv_search_nanosleep=no
13929fi
13930rm conftest.$ac_ext
13931LIBS=$ac_func_search_save_LIBS
13932fi
13933{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
13934$as_echo "$ac_cv_search_nanosleep" >&6; }
13935ac_res=$ac_cv_search_nanosleep
13936if test "$ac_res" != no; then
13937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938
13939cat >>confdefs.h <<\_ACEOF
13940#define HAVE_NANOSLEEP 1
13941_ACEOF
13942
13943fi
13944
13945
13946{ $as_echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
13947$as_echo_n "checking whether getrusage is declared... " >&6; }
13948if test "${ac_cv_have_decl_getrusage+set}" = set; then
13949 $as_echo_n "(cached) " >&6
13950else
13951 cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
13956/* end confdefs.h. */
13957$ac_includes_default
13958int
13959main ()
13960{
13961#ifndef getrusage
13962 (void) getrusage;
13963#endif
13964
13965 ;
13966 return 0;
13967}
13968_ACEOF
13969rm -f conftest.$ac_objext
13970if { (ac_try="$ac_compile"
13971case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974esac
13975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13976$as_echo "$ac_try_echo") >&5
13977 (eval "$ac_compile") 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest.$ac_objext; then
13987 ac_cv_have_decl_getrusage=yes
13988else
13989 $as_echo "$as_me: failed program was:" >&5
13990sed 's/^/| /' conftest.$ac_ext >&5
13991
13992 ac_cv_have_decl_getrusage=no
13993fi
13994
13995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996fi
13997{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
13998$as_echo "$ac_cv_have_decl_getrusage" >&6; }
13999if test $ac_cv_have_decl_getrusage = yes; then
14000
14001for ac_func in getrusage
14002do
14003as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14004{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14005$as_echo_n "checking for $ac_func... " >&6; }
14006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14007 $as_echo_n "(cached) " >&6
14008else
14009 cat >conftest.$ac_ext <<_ACEOF
14010/* confdefs.h. */
14011_ACEOF
14012cat confdefs.h >>conftest.$ac_ext
14013cat >>conftest.$ac_ext <<_ACEOF
14014/* end confdefs.h. */
14015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14017#define $ac_func innocuous_$ac_func
14018
14019/* System header to define __stub macros and hopefully few prototypes,
14020 which can conflict with char $ac_func (); below.
14021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14022 <limits.h> exists even on freestanding compilers. */
14023
14024#ifdef __STDC__
14025# include <limits.h>
14026#else
14027# include <assert.h>
14028#endif
14029
14030#undef $ac_func
14031
14032/* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14035#ifdef __cplusplus
14036extern "C"
14037#endif
14038char $ac_func ();
14039/* The GNU C library defines this for functions which it implements
14040 to always fail with ENOSYS. Some functions are actually named
14041 something starting with __ and the normal name is an alias. */
14042#if defined __stub_$ac_func || defined __stub___$ac_func
14043choke me
14044#endif
14045
14046int
14047main ()
14048{
14049return $ac_func ();
14050 ;
14051 return 0;
14052}
14053_ACEOF
14054rm -f conftest.$ac_objext conftest$ac_exeext
14055if { (ac_try="$ac_link"
14056case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059esac
14060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14061$as_echo "$ac_try_echo") >&5
14062 (eval "$ac_link") 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest$ac_exeext && {
14072 test "$cross_compiling" = yes ||
14073 $as_test_x conftest$ac_exeext
14074 }; then
14075 eval "$as_ac_var=yes"
14076else
14077 $as_echo "$as_me: failed program was:" >&5
14078sed 's/^/| /' conftest.$ac_ext >&5
14079
14080 eval "$as_ac_var=no"
14081fi
14082
14083rm -rf conftest.dSYM
14084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14085 conftest$ac_exeext conftest.$ac_ext
14086fi
14087ac_res=`eval 'as_val=${'$as_ac_var'}
14088 $as_echo "$as_val"'`
14089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14090$as_echo "$ac_res" >&6; }
14091if test `eval 'as_val=${'$as_ac_var'}
14092 $as_echo "$as_val"'` = yes; then
14093 cat >>confdefs.h <<_ACEOF
14094#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14095_ACEOF
14096
14097fi
14098done
14099
14100fi
14101
14102{ $as_echo "$as_me:$LINENO: checking whether strsep is declared" >&5
14103$as_echo_n "checking whether strsep is declared... " >&6; }
14104if test "${ac_cv_have_decl_strsep+set}" = set; then
14105 $as_echo_n "(cached) " >&6
14106else
14107 cat >conftest.$ac_ext <<_ACEOF
14108/* confdefs.h. */
14109_ACEOF
14110cat confdefs.h >>conftest.$ac_ext
14111cat >>conftest.$ac_ext <<_ACEOF
14112/* end confdefs.h. */
14113
14114#ifdef HAVE_STRING_H
14115# include <string.h>
14116#endif
14117
14118
14119int
14120main ()
14121{
14122#ifndef strsep
14123 (void) strsep;
14124#endif
14125
14126 ;
14127 return 0;
14128}
14129_ACEOF
14130rm -f conftest.$ac_objext
14131if { (ac_try="$ac_compile"
14132case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14135esac
14136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14137$as_echo "$ac_try_echo") >&5
14138 (eval "$ac_compile") 2>conftest.er1
14139 ac_status=$?
14140 grep -v '^ *+' conftest.er1 >conftest.err
14141 rm -f conftest.er1
14142 cat conftest.err >&5
14143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } && {
14145 test -z "$ac_c_werror_flag" ||
14146 test ! -s conftest.err
14147 } && test -s conftest.$ac_objext; then
14148 ac_cv_have_decl_strsep=yes
14149else
14150 $as_echo "$as_me: failed program was:" >&5
14151sed 's/^/| /' conftest.$ac_ext >&5
14152
14153 ac_cv_have_decl_strsep=no
14154fi
14155
14156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157fi
14158{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5
14159$as_echo "$ac_cv_have_decl_strsep" >&6; }
14160if test $ac_cv_have_decl_strsep = yes; then
14161
14162for ac_func in strsep
14163do
14164as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14165{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14166$as_echo_n "checking for $ac_func... " >&6; }
14167if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14168 $as_echo_n "(cached) " >&6
14169else
14170 cat >conftest.$ac_ext <<_ACEOF
14171/* confdefs.h. */
14172_ACEOF
14173cat confdefs.h >>conftest.$ac_ext
14174cat >>conftest.$ac_ext <<_ACEOF
14175/* end confdefs.h. */
14176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14178#define $ac_func innocuous_$ac_func
14179
14180/* System header to define __stub macros and hopefully few prototypes,
14181 which can conflict with char $ac_func (); below.
14182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14183 <limits.h> exists even on freestanding compilers. */
14184
14185#ifdef __STDC__
14186# include <limits.h>
14187#else
14188# include <assert.h>
14189#endif
14190
14191#undef $ac_func
14192
14193/* Override any GCC internal prototype to avoid an error.
14194 Use char because int might match the return type of a GCC
14195 builtin and then its argument prototype would still apply. */
14196#ifdef __cplusplus
14197extern "C"
14198#endif
14199char $ac_func ();
14200/* The GNU C library defines this for functions which it implements
14201 to always fail with ENOSYS. Some functions are actually named
14202 something starting with __ and the normal name is an alias. */
14203#if defined __stub_$ac_func || defined __stub___$ac_func
14204choke me
14205#endif
14206
14207int
14208main ()
14209{
14210return $ac_func ();
14211 ;
14212 return 0;
14213}
14214_ACEOF
14215rm -f conftest.$ac_objext conftest$ac_exeext
14216if { (ac_try="$ac_link"
14217case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14222$as_echo "$ac_try_echo") >&5
14223 (eval "$ac_link") 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest$ac_exeext && {
14233 test "$cross_compiling" = yes ||
14234 $as_test_x conftest$ac_exeext
14235 }; then
14236 eval "$as_ac_var=yes"
14237else
14238 $as_echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 eval "$as_ac_var=no"
14242fi
14243
14244rm -rf conftest.dSYM
14245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14246 conftest$ac_exeext conftest.$ac_ext
14247fi
14248ac_res=`eval 'as_val=${'$as_ac_var'}
14249 $as_echo "$as_val"'`
14250 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14251$as_echo "$ac_res" >&6; }
14252if test `eval 'as_val=${'$as_ac_var'}
14253 $as_echo "$as_val"'` = yes; then
14254 cat >>confdefs.h <<_ACEOF
14255#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14256_ACEOF
14257
14258fi
14259done
14260
14261fi
14262
14263
14264{ $as_echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5
14265$as_echo_n "checking whether tcsendbreak is declared... " >&6; }
14266if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then
14267 $as_echo_n "(cached) " >&6
14268else
14269 cat >conftest.$ac_ext <<_ACEOF
14270/* confdefs.h. */
14271_ACEOF
14272cat confdefs.h >>conftest.$ac_ext
14273cat >>conftest.$ac_ext <<_ACEOF
14274/* end confdefs.h. */
14275#include <termios.h>
14276
14277
14278int
14279main ()
14280{
14281#ifndef tcsendbreak
14282 (void) tcsendbreak;
14283#endif
14284
14285 ;
14286 return 0;
14287}
14288_ACEOF
14289rm -f conftest.$ac_objext
14290if { (ac_try="$ac_compile"
14291case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294esac
14295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14296$as_echo "$ac_try_echo") >&5
14297 (eval "$ac_compile") 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } && {
14304 test -z "$ac_c_werror_flag" ||
14305 test ! -s conftest.err
14306 } && test -s conftest.$ac_objext; then
14307 ac_cv_have_decl_tcsendbreak=yes
14308else
14309 $as_echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 ac_cv_have_decl_tcsendbreak=no
14313fi
14314
14315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316fi
14317{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5
14318$as_echo "$ac_cv_have_decl_tcsendbreak" >&6; }
14319if test $ac_cv_have_decl_tcsendbreak = yes; then
14320 cat >>confdefs.h <<\_ACEOF
14321#define HAVE_TCSENDBREAK 1
14322_ACEOF
14323
14324else
14325
14326for ac_func in tcsendbreak
14327do
14328as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14329{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14330$as_echo_n "checking for $ac_func... " >&6; }
14331if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14332 $as_echo_n "(cached) " >&6
14333else
14334 cat >conftest.$ac_ext <<_ACEOF
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
14339/* end confdefs.h. */
14340/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14342#define $ac_func innocuous_$ac_func
14343
14344/* System header to define __stub macros and hopefully few prototypes,
14345 which can conflict with char $ac_func (); below.
14346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14347 <limits.h> exists even on freestanding compilers. */
14348
14349#ifdef __STDC__
14350# include <limits.h>
14351#else
14352# include <assert.h>
14353#endif
14354
14355#undef $ac_func
14356
14357/* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360#ifdef __cplusplus
14361extern "C"
14362#endif
14363char $ac_func ();
14364/* The GNU C library defines this for functions which it implements
14365 to always fail with ENOSYS. Some functions are actually named
14366 something starting with __ and the normal name is an alias. */
14367#if defined __stub_$ac_func || defined __stub___$ac_func
14368choke me
14369#endif
14370
14371int
14372main ()
14373{
14374return $ac_func ();
14375 ;
14376 return 0;
14377}
14378_ACEOF
14379rm -f conftest.$ac_objext conftest$ac_exeext
14380if { (ac_try="$ac_link"
14381case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384esac
14385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14386$as_echo "$ac_try_echo") >&5
14387 (eval "$ac_link") 2>conftest.er1
14388 ac_status=$?
14389 grep -v '^ *+' conftest.er1 >conftest.err
14390 rm -f conftest.er1
14391 cat conftest.err >&5
14392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } && {
14394 test -z "$ac_c_werror_flag" ||
14395 test ! -s conftest.err
14396 } && test -s conftest$ac_exeext && {
14397 test "$cross_compiling" = yes ||
14398 $as_test_x conftest$ac_exeext
14399 }; then
14400 eval "$as_ac_var=yes"
14401else
14402 $as_echo "$as_me: failed program was:" >&5
14403sed 's/^/| /' conftest.$ac_ext >&5
14404
14405 eval "$as_ac_var=no"
14406fi
14407
14408rm -rf conftest.dSYM
14409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14410 conftest$ac_exeext conftest.$ac_ext
14411fi
14412ac_res=`eval 'as_val=${'$as_ac_var'}
14413 $as_echo "$as_val"'`
14414 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14415$as_echo "$ac_res" >&6; }
14416if test `eval 'as_val=${'$as_ac_var'}
14417 $as_echo "$as_val"'` = yes; then
14418 cat >>confdefs.h <<_ACEOF
14419#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14420_ACEOF
14421
14422fi
14423done
14424
14425fi
14426
14427
14428{ $as_echo "$as_me:$LINENO: checking whether h_errno is declared" >&5
14429$as_echo_n "checking whether h_errno is declared... " >&6; }
14430if test "${ac_cv_have_decl_h_errno+set}" = set; then
14431 $as_echo_n "(cached) " >&6
14432else
14433 cat >conftest.$ac_ext <<_ACEOF
14434/* confdefs.h. */
14435_ACEOF
14436cat confdefs.h >>conftest.$ac_ext
14437cat >>conftest.$ac_ext <<_ACEOF
14438/* end confdefs.h. */
14439#include <netdb.h>
14440
14441int
14442main ()
14443{
14444#ifndef h_errno
14445 (void) h_errno;
14446#endif
14447
14448 ;
14449 return 0;
14450}
14451_ACEOF
14452rm -f conftest.$ac_objext
14453if { (ac_try="$ac_compile"
14454case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14457esac
14458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459$as_echo "$ac_try_echo") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.$ac_objext; then
14470 ac_cv_have_decl_h_errno=yes
14471else
14472 $as_echo "$as_me: failed program was:" >&5
14473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ac_cv_have_decl_h_errno=no
14476fi
14477
14478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479fi
14480{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5
14481$as_echo "$ac_cv_have_decl_h_errno" >&6; }
14482if test $ac_cv_have_decl_h_errno = yes; then
14483
14484cat >>confdefs.h <<_ACEOF
14485#define HAVE_DECL_H_ERRNO 1
14486_ACEOF
14487
14488
14489else
14490 cat >>confdefs.h <<_ACEOF
14491#define HAVE_DECL_H_ERRNO 0
14492_ACEOF
14493
14494
14495fi
14496
14497
14498
14499{ $as_echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
14500$as_echo_n "checking whether SHUT_RD is declared... " >&6; }
14501if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
14502 $as_echo_n "(cached) " >&6
14503else
14504 cat >conftest.$ac_ext <<_ACEOF
14505/* confdefs.h. */
14506_ACEOF
14507cat confdefs.h >>conftest.$ac_ext
14508cat >>conftest.$ac_ext <<_ACEOF
14509/* end confdefs.h. */
14510
14511#include <sys/types.h>
14512#include <sys/socket.h>
14513
14514
14515int
14516main ()
14517{
14518#ifndef SHUT_RD
14519 (void) SHUT_RD;
14520#endif
14521
14522 ;
14523 return 0;
14524}
14525_ACEOF
14526rm -f conftest.$ac_objext
14527if { (ac_try="$ac_compile"
14528case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14531esac
14532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14533$as_echo "$ac_try_echo") >&5
14534 (eval "$ac_compile") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && {
14541 test -z "$ac_c_werror_flag" ||
14542 test ! -s conftest.err
14543 } && test -s conftest.$ac_objext; then
14544 ac_cv_have_decl_SHUT_RD=yes
14545else
14546 $as_echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 ac_cv_have_decl_SHUT_RD=no
14550fi
14551
14552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553fi
14554{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
14555$as_echo "$ac_cv_have_decl_SHUT_RD" >&6; }
14556if test $ac_cv_have_decl_SHUT_RD = yes; then
14557
14558cat >>confdefs.h <<_ACEOF
14559#define HAVE_DECL_SHUT_RD 1
14560_ACEOF
14561
14562
14563else
14564 cat >>confdefs.h <<_ACEOF
14565#define HAVE_DECL_SHUT_RD 0
14566_ACEOF
14567
14568
14569fi
14570
14571
14572
14573{ $as_echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
14574$as_echo_n "checking whether O_NONBLOCK is declared... " >&6; }
14575if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
14576 $as_echo_n "(cached) " >&6
14577else
14578 cat >conftest.$ac_ext <<_ACEOF
14579/* confdefs.h. */
14580_ACEOF
14581cat confdefs.h >>conftest.$ac_ext
14582cat >>conftest.$ac_ext <<_ACEOF
14583/* end confdefs.h. */
14584
14585#include <sys/types.h>
14586#ifdef HAVE_SYS_STAT_H
14587# include <sys/stat.h>
14588#endif
14589#ifdef HAVE_FCNTL_H
14590# include <fcntl.h>
14591#endif
14592
14593
14594int
14595main ()
14596{
14597#ifndef O_NONBLOCK
14598 (void) O_NONBLOCK;
14599#endif
14600
14601 ;
14602 return 0;
14603}
14604_ACEOF
14605rm -f conftest.$ac_objext
14606if { (ac_try="$ac_compile"
14607case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610esac
14611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14612$as_echo "$ac_try_echo") >&5
14613 (eval "$ac_compile") 2>conftest.er1
14614 ac_status=$?
14615 grep -v '^ *+' conftest.er1 >conftest.err
14616 rm -f conftest.er1
14617 cat conftest.err >&5
14618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } && {
14620 test -z "$ac_c_werror_flag" ||
14621 test ! -s conftest.err
14622 } && test -s conftest.$ac_objext; then
14623 ac_cv_have_decl_O_NONBLOCK=yes
14624else
14625 $as_echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
14627
14628 ac_cv_have_decl_O_NONBLOCK=no
14629fi
14630
14631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14632fi
14633{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
14634$as_echo "$ac_cv_have_decl_O_NONBLOCK" >&6; }
14635if test $ac_cv_have_decl_O_NONBLOCK = yes; then
14636
14637cat >>confdefs.h <<_ACEOF
14638#define HAVE_DECL_O_NONBLOCK 1
14639_ACEOF
14640
14641
14642else
14643 cat >>confdefs.h <<_ACEOF
14644#define HAVE_DECL_O_NONBLOCK 0
14645_ACEOF
14646
14647
14648fi
14649
14650
14651
14652{ $as_echo "$as_me:$LINENO: checking whether writev is declared" >&5
14653$as_echo_n "checking whether writev is declared... " >&6; }
14654if test "${ac_cv_have_decl_writev+set}" = set; then
14655 $as_echo_n "(cached) " >&6
14656else
14657 cat >conftest.$ac_ext <<_ACEOF
14658/* confdefs.h. */
14659_ACEOF
14660cat confdefs.h >>conftest.$ac_ext
14661cat >>conftest.$ac_ext <<_ACEOF
14662/* end confdefs.h. */
14663
14664#include <sys/types.h>
14665#include <sys/uio.h>
14666#include <unistd.h>
14667
14668
14669int
14670main ()
14671{
14672#ifndef writev
14673 (void) writev;
14674#endif
14675
14676 ;
14677 return 0;
14678}
14679_ACEOF
14680rm -f conftest.$ac_objext
14681if { (ac_try="$ac_compile"
14682case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685esac
14686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14687$as_echo "$ac_try_echo") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest.$ac_objext; then
14698 ac_cv_have_decl_writev=yes
14699else
14700 $as_echo "$as_me: failed program was:" >&5
14701sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ac_cv_have_decl_writev=no
14704fi
14705
14706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707fi
14708{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
14709$as_echo "$ac_cv_have_decl_writev" >&6; }
14710if test $ac_cv_have_decl_writev = yes; then
14711
14712cat >>confdefs.h <<_ACEOF
14713#define HAVE_DECL_WRITEV 1
14714_ACEOF
14715
14716
14717else
14718 cat >>confdefs.h <<_ACEOF
14719#define HAVE_DECL_WRITEV 0
14720_ACEOF
14721
14722
14723fi
14724
14725
14726
14727{ $as_echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5
14728$as_echo_n "checking whether MAXSYMLINKS is declared... " >&6; }
14729if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then
14730 $as_echo_n "(cached) " >&6
14731else
14732 cat >conftest.$ac_ext <<_ACEOF
14733/* confdefs.h. */
14734_ACEOF
14735cat confdefs.h >>conftest.$ac_ext
14736cat >>conftest.$ac_ext <<_ACEOF
14737/* end confdefs.h. */
14738
14739#include <sys/param.h>
14740
14741
14742int
14743main ()
14744{
14745#ifndef MAXSYMLINKS
14746 (void) MAXSYMLINKS;
14747#endif
14748
14749 ;
14750 return 0;
14751}
14752_ACEOF
14753rm -f conftest.$ac_objext
14754if { (ac_try="$ac_compile"
14755case "(($ac_try" in
14756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757 *) ac_try_echo=$ac_try;;
14758esac
14759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14760$as_echo "$ac_try_echo") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest.$ac_objext; then
14771 ac_cv_have_decl_MAXSYMLINKS=yes
14772else
14773 $as_echo "$as_me: failed program was:" >&5
14774sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_cv_have_decl_MAXSYMLINKS=no
14777fi
14778
14779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14780fi
14781{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5
14782$as_echo "$ac_cv_have_decl_MAXSYMLINKS" >&6; }
14783if test $ac_cv_have_decl_MAXSYMLINKS = yes; then
14784
14785cat >>confdefs.h <<_ACEOF
14786#define HAVE_DECL_MAXSYMLINKS 1
14787_ACEOF
14788
14789
14790else
14791 cat >>confdefs.h <<_ACEOF
14792#define HAVE_DECL_MAXSYMLINKS 0
14793_ACEOF
14794
14795
14796fi
14797
14798
14799
14800{ $as_echo "$as_me:$LINENO: checking whether offsetof is declared" >&5
14801$as_echo_n "checking whether offsetof is declared... " >&6; }
14802if test "${ac_cv_have_decl_offsetof+set}" = set; then
14803 $as_echo_n "(cached) " >&6
14804else
14805 cat >conftest.$ac_ext <<_ACEOF
14806/* confdefs.h. */
14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
14811
14812#include <stddef.h>
14813
14814
14815int
14816main ()
14817{
14818#ifndef offsetof
14819 (void) offsetof;
14820#endif
14821
14822 ;
14823 return 0;
14824}
14825_ACEOF
14826rm -f conftest.$ac_objext
14827if { (ac_try="$ac_compile"
14828case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831esac
14832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14833$as_echo "$ac_try_echo") >&5
14834 (eval "$ac_compile") 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } && {
14841 test -z "$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 } && test -s conftest.$ac_objext; then
14844 ac_cv_have_decl_offsetof=yes
14845else
14846 $as_echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_cv_have_decl_offsetof=no
14850fi
14851
14852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853fi
14854{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5
14855$as_echo "$ac_cv_have_decl_offsetof" >&6; }
14856if test $ac_cv_have_decl_offsetof = yes; then
14857
14858cat >>confdefs.h <<_ACEOF
14859#define HAVE_DECL_OFFSETOF 1
14860_ACEOF
14861
14862
14863else
14864 cat >>confdefs.h <<_ACEOF
14865#define HAVE_DECL_OFFSETOF 0
14866_ACEOF
14867
14868
14869fi
14870
14871
14872
14873
14874for ac_func in setresuid
14875do
14876as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14877{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14878$as_echo_n "checking for $ac_func... " >&6; }
14879if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14880 $as_echo_n "(cached) " >&6
14881else
14882 cat >conftest.$ac_ext <<_ACEOF
14883/* confdefs.h. */
14884_ACEOF
14885cat confdefs.h >>conftest.$ac_ext
14886cat >>conftest.$ac_ext <<_ACEOF
14887/* end confdefs.h. */
14888/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14890#define $ac_func innocuous_$ac_func
14891
14892/* System header to define __stub macros and hopefully few prototypes,
14893 which can conflict with char $ac_func (); below.
14894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14895 <limits.h> exists even on freestanding compilers. */
14896
14897#ifdef __STDC__
14898# include <limits.h>
14899#else
14900# include <assert.h>
14901#endif
14902
14903#undef $ac_func
14904
14905/* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14908#ifdef __cplusplus
14909extern "C"
14910#endif
14911char $ac_func ();
14912/* The GNU C library defines this for functions which it implements
14913 to always fail with ENOSYS. Some functions are actually named
14914 something starting with __ and the normal name is an alias. */
14915#if defined __stub_$ac_func || defined __stub___$ac_func
14916choke me
14917#endif
14918
14919int
14920main ()
14921{
14922return $ac_func ();
14923 ;
14924 return 0;
14925}
14926_ACEOF
14927rm -f conftest.$ac_objext conftest$ac_exeext
14928if { (ac_try="$ac_link"
14929case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932esac
14933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14934$as_echo "$ac_try_echo") >&5
14935 (eval "$ac_link") 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest$ac_exeext && {
14945 test "$cross_compiling" = yes ||
14946 $as_test_x conftest$ac_exeext
14947 }; then
14948 eval "$as_ac_var=yes"
14949else
14950 $as_echo "$as_me: failed program was:" >&5
14951sed 's/^/| /' conftest.$ac_ext >&5
14952
14953 eval "$as_ac_var=no"
14954fi
14955
14956rm -rf conftest.dSYM
14957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14958 conftest$ac_exeext conftest.$ac_ext
14959fi
14960ac_res=`eval 'as_val=${'$as_ac_var'}
14961 $as_echo "$as_val"'`
14962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14963$as_echo "$ac_res" >&6; }
14964if test `eval 'as_val=${'$as_ac_var'}
14965 $as_echo "$as_val"'` = yes; then
14966 cat >>confdefs.h <<_ACEOF
14967#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14968_ACEOF
14969
14970 { $as_echo "$as_me:$LINENO: checking if setresuid seems to work" >&5
14971$as_echo_n "checking if setresuid seems to work... " >&6; }
14972 if test "$cross_compiling" = yes; then
14973 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
14974$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
14975
14976else
14977 cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983
14984#include <stdlib.h>
14985#include <errno.h>
14986int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
14987
14988_ACEOF
14989rm -f conftest$ac_exeext
14990if { (ac_try="$ac_link"
14991case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994esac
14995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14996$as_echo "$ac_try_echo") >&5
14997 (eval "$ac_link") 2>&5
14998 ac_status=$?
14999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004esac
15005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15006$as_echo "$ac_try_echo") >&5
15007 (eval "$ac_try") 2>&5
15008 ac_status=$?
15009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 { $as_echo "$as_me:$LINENO: result: yes" >&5
15012$as_echo "yes" >&6; }
15013else
15014 $as_echo "$as_me: program exited with status $ac_status" >&5
15015$as_echo "$as_me: failed program was:" >&5
15016sed 's/^/| /' conftest.$ac_ext >&5
15017
15018( exit $ac_status )
15019
15020cat >>confdefs.h <<\_ACEOF
15021#define BROKEN_SETRESUID 1
15022_ACEOF
15023
15024 { $as_echo "$as_me:$LINENO: result: not implemented" >&5
15025$as_echo "not implemented" >&6; }
15026fi
15027rm -rf conftest.dSYM
15028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15029fi
15030
15031
15032
15033fi
15034done
15035
15036
15037
15038for ac_func in setresgid
15039do
15040as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15041{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15042$as_echo_n "checking for $ac_func... " >&6; }
15043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15044 $as_echo_n "(cached) " >&6
15045else
15046 cat >conftest.$ac_ext <<_ACEOF
15047/* confdefs.h. */
15048_ACEOF
15049cat confdefs.h >>conftest.$ac_ext
15050cat >>conftest.$ac_ext <<_ACEOF
15051/* end confdefs.h. */
15052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15054#define $ac_func innocuous_$ac_func
15055
15056/* System header to define __stub macros and hopefully few prototypes,
15057 which can conflict with char $ac_func (); below.
15058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15059 <limits.h> exists even on freestanding compilers. */
15060
15061#ifdef __STDC__
15062# include <limits.h>
15063#else
15064# include <assert.h>
15065#endif
15066
15067#undef $ac_func
15068
15069/* Override any GCC internal prototype to avoid an error.
15070 Use char because int might match the return type of a GCC
15071 builtin and then its argument prototype would still apply. */
15072#ifdef __cplusplus
15073extern "C"
15074#endif
15075char $ac_func ();
15076/* The GNU C library defines this for functions which it implements
15077 to always fail with ENOSYS. Some functions are actually named
15078 something starting with __ and the normal name is an alias. */
15079#if defined __stub_$ac_func || defined __stub___$ac_func
15080choke me
15081#endif
15082
15083int
15084main ()
15085{
15086return $ac_func ();
15087 ;
15088 return 0;
15089}
15090_ACEOF
15091rm -f conftest.$ac_objext conftest$ac_exeext
15092if { (ac_try="$ac_link"
15093case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15098$as_echo "$ac_try_echo") >&5
15099 (eval "$ac_link") 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest$ac_exeext && {
15109 test "$cross_compiling" = yes ||
15110 $as_test_x conftest$ac_exeext
15111 }; then
15112 eval "$as_ac_var=yes"
15113else
15114 $as_echo "$as_me: failed program was:" >&5
15115sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 eval "$as_ac_var=no"
15118fi
15119
15120rm -rf conftest.dSYM
15121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15122 conftest$ac_exeext conftest.$ac_ext
15123fi
15124ac_res=`eval 'as_val=${'$as_ac_var'}
15125 $as_echo "$as_val"'`
15126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15127$as_echo "$ac_res" >&6; }
15128if test `eval 'as_val=${'$as_ac_var'}
15129 $as_echo "$as_val"'` = yes; then
15130 cat >>confdefs.h <<_ACEOF
15131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15132_ACEOF
15133
15134 { $as_echo "$as_me:$LINENO: checking if setresgid seems to work" >&5
15135$as_echo_n "checking if setresgid seems to work... " >&6; }
15136 if test "$cross_compiling" = yes; then
15137 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5
15138$as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
15139
15140else
15141 cat >conftest.$ac_ext <<_ACEOF
15142/* confdefs.h. */
15143_ACEOF
15144cat confdefs.h >>conftest.$ac_ext
15145cat >>conftest.$ac_ext <<_ACEOF
15146/* end confdefs.h. */
15147
15148#include <stdlib.h>
15149#include <errno.h>
15150int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
15151
15152_ACEOF
15153rm -f conftest$ac_exeext
15154if { (ac_try="$ac_link"
15155case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
15159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15160$as_echo "$ac_try_echo") >&5
15161 (eval "$ac_link") 2>&5
15162 ac_status=$?
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15168esac
15169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15170$as_echo "$ac_try_echo") >&5
15171 (eval "$ac_try") 2>&5
15172 ac_status=$?
15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 { $as_echo "$as_me:$LINENO: result: yes" >&5
15176$as_echo "yes" >&6; }
15177else
15178 $as_echo "$as_me: program exited with status $ac_status" >&5
15179$as_echo "$as_me: failed program was:" >&5
15180sed 's/^/| /' conftest.$ac_ext >&5
15181
15182( exit $ac_status )
15183
15184cat >>confdefs.h <<\_ACEOF
15185#define BROKEN_SETRESGID 1
15186_ACEOF
15187
15188 { $as_echo "$as_me:$LINENO: result: not implemented" >&5
15189$as_echo "not implemented" >&6; }
15190fi
15191rm -rf conftest.dSYM
15192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15193fi
15194
15195
15196
15197fi
15198done
15199
15200
15201
15202
15203for ac_func in gettimeofday time
15204do
15205as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15206{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15207$as_echo_n "checking for $ac_func... " >&6; }
15208if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15209 $as_echo_n "(cached) " >&6
15210else
15211 cat >conftest.$ac_ext <<_ACEOF
15212/* confdefs.h. */
15213_ACEOF
15214cat confdefs.h >>conftest.$ac_ext
15215cat >>conftest.$ac_ext <<_ACEOF
15216/* end confdefs.h. */
15217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15219#define $ac_func innocuous_$ac_func
15220
15221/* System header to define __stub macros and hopefully few prototypes,
15222 which can conflict with char $ac_func (); below.
15223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15224 <limits.h> exists even on freestanding compilers. */
15225
15226#ifdef __STDC__
15227# include <limits.h>
15228#else
15229# include <assert.h>
15230#endif
15231
15232#undef $ac_func
15233
15234/* Override any GCC internal prototype to avoid an error.
15235 Use char because int might match the return type of a GCC
15236 builtin and then its argument prototype would still apply. */
15237#ifdef __cplusplus
15238extern "C"
15239#endif
15240char $ac_func ();
15241/* The GNU C library defines this for functions which it implements
15242 to always fail with ENOSYS. Some functions are actually named
15243 something starting with __ and the normal name is an alias. */
15244#if defined __stub_$ac_func || defined __stub___$ac_func
15245choke me
15246#endif
15247
15248int
15249main ()
15250{
15251return $ac_func ();
15252 ;
15253 return 0;
15254}
15255_ACEOF
15256rm -f conftest.$ac_objext conftest$ac_exeext
15257if { (ac_try="$ac_link"
15258case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15261esac
15262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263$as_echo "$ac_try_echo") >&5
15264 (eval "$ac_link") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest$ac_exeext && {
15274 test "$cross_compiling" = yes ||
15275 $as_test_x conftest$ac_exeext
15276 }; then
15277 eval "$as_ac_var=yes"
15278else
15279 $as_echo "$as_me: failed program was:" >&5
15280sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 eval "$as_ac_var=no"
15283fi
15284
15285rm -rf conftest.dSYM
15286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15288fi
15289ac_res=`eval 'as_val=${'$as_ac_var'}
15290 $as_echo "$as_val"'`
15291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15292$as_echo "$ac_res" >&6; }
15293if test `eval 'as_val=${'$as_ac_var'}
15294 $as_echo "$as_val"'` = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15297_ACEOF
15298
15299fi
15300done
15301
15302
15303
15304
15305
15306
15307
15308for ac_func in endutent getutent getutid getutline pututline setutent
15309do
15310as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15311{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15312$as_echo_n "checking for $ac_func... " >&6; }
15313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15314 $as_echo_n "(cached) " >&6
15315else
15316 cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15324#define $ac_func innocuous_$ac_func
15325
15326/* System header to define __stub macros and hopefully few prototypes,
15327 which can conflict with char $ac_func (); below.
15328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15329 <limits.h> exists even on freestanding compilers. */
15330
15331#ifdef __STDC__
15332# include <limits.h>
15333#else
15334# include <assert.h>
15335#endif
15336
15337#undef $ac_func
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 $ac_func ();
15346/* The GNU C library defines this for functions which it implements
15347 to always fail with ENOSYS. Some functions are actually named
15348 something starting with __ and the normal name is an alias. */
15349#if defined __stub_$ac_func || defined __stub___$ac_func
15350choke me
15351#endif
15352
15353int
15354main ()
15355{
15356return $ac_func ();
15357 ;
15358 return 0;
15359}
15360_ACEOF
15361rm -f conftest.$ac_objext conftest$ac_exeext
15362if { (ac_try="$ac_link"
15363case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368$as_echo "$ac_try_echo") >&5
15369 (eval "$ac_link") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext && {
15379 test "$cross_compiling" = yes ||
15380 $as_test_x conftest$ac_exeext
15381 }; then
15382 eval "$as_ac_var=yes"
15383else
15384 $as_echo "$as_me: failed program was:" >&5
15385sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 eval "$as_ac_var=no"
15388fi
15389
15390rm -rf conftest.dSYM
15391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15392 conftest$ac_exeext conftest.$ac_ext
15393fi
15394ac_res=`eval 'as_val=${'$as_ac_var'}
15395 $as_echo "$as_val"'`
15396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15397$as_echo "$ac_res" >&6; }
15398if test `eval 'as_val=${'$as_ac_var'}
15399 $as_echo "$as_val"'` = yes; then
15400 cat >>confdefs.h <<_ACEOF
15401#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15402_ACEOF
15403
15404fi
15405done
15406
15407
15408for ac_func in utmpname
15409do
15410as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15412$as_echo_n "checking for $ac_func... " >&6; }
15413if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15414 $as_echo_n "(cached) " >&6
15415else
15416 cat >conftest.$ac_ext <<_ACEOF
15417/* confdefs.h. */
15418_ACEOF
15419cat confdefs.h >>conftest.$ac_ext
15420cat >>conftest.$ac_ext <<_ACEOF
15421/* end confdefs.h. */
15422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15424#define $ac_func innocuous_$ac_func
15425
15426/* System header to define __stub macros and hopefully few prototypes,
15427 which can conflict with char $ac_func (); below.
15428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15429 <limits.h> exists even on freestanding compilers. */
15430
15431#ifdef __STDC__
15432# include <limits.h>
15433#else
15434# include <assert.h>
15435#endif
15436
15437#undef $ac_func
15438
15439/* Override any GCC internal prototype to avoid an error.
15440 Use char because int might match the return type of a GCC
15441 builtin and then its argument prototype would still apply. */
15442#ifdef __cplusplus
15443extern "C"
15444#endif
15445char $ac_func ();
15446/* The GNU C library defines this for functions which it implements
15447 to always fail with ENOSYS. Some functions are actually named
15448 something starting with __ and the normal name is an alias. */
15449#if defined __stub_$ac_func || defined __stub___$ac_func
15450choke me
15451#endif
15452
15453int
15454main ()
15455{
15456return $ac_func ();
15457 ;
15458 return 0;
15459}
15460_ACEOF
15461rm -f conftest.$ac_objext conftest$ac_exeext
15462if { (ac_try="$ac_link"
15463case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466esac
15467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15468$as_echo "$ac_try_echo") >&5
15469 (eval "$ac_link") 2>conftest.er1
15470 ac_status=$?
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
15474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest$ac_exeext && {
15479 test "$cross_compiling" = yes ||
15480 $as_test_x conftest$ac_exeext
15481 }; then
15482 eval "$as_ac_var=yes"
15483else
15484 $as_echo "$as_me: failed program was:" >&5
15485sed 's/^/| /' conftest.$ac_ext >&5
15486
15487 eval "$as_ac_var=no"
15488fi
15489
15490rm -rf conftest.dSYM
15491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15492 conftest$ac_exeext conftest.$ac_ext
15493fi
15494ac_res=`eval 'as_val=${'$as_ac_var'}
15495 $as_echo "$as_val"'`
15496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15497$as_echo "$ac_res" >&6; }
15498if test `eval 'as_val=${'$as_ac_var'}
15499 $as_echo "$as_val"'` = yes; then
15500 cat >>confdefs.h <<_ACEOF
15501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15502_ACEOF
15503
15504fi
15505done
15506
15507
15508
15509
15510
15511
15512for ac_func in endutxent getutxent getutxid getutxline pututxline
15513do
15514as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15515{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15516$as_echo_n "checking for $ac_func... " >&6; }
15517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15518 $as_echo_n "(cached) " >&6
15519else
15520 cat >conftest.$ac_ext <<_ACEOF
15521/* confdefs.h. */
15522_ACEOF
15523cat confdefs.h >>conftest.$ac_ext
15524cat >>conftest.$ac_ext <<_ACEOF
15525/* end confdefs.h. */
15526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15528#define $ac_func innocuous_$ac_func
15529
15530/* System header to define __stub macros and hopefully few prototypes,
15531 which can conflict with char $ac_func (); below.
15532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15533 <limits.h> exists even on freestanding compilers. */
15534
15535#ifdef __STDC__
15536# include <limits.h>
15537#else
15538# include <assert.h>
15539#endif
15540
15541#undef $ac_func
15542
15543/* Override any GCC internal prototype to avoid an error.
15544 Use char because int might match the return type of a GCC
15545 builtin and then its argument prototype would still apply. */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549char $ac_func ();
15550/* The GNU C library defines this for functions which it implements
15551 to always fail with ENOSYS. Some functions are actually named
15552 something starting with __ and the normal name is an alias. */
15553#if defined __stub_$ac_func || defined __stub___$ac_func
15554choke me
15555#endif
15556
15557int
15558main ()
15559{
15560return $ac_func ();
15561 ;
15562 return 0;
15563}
15564_ACEOF
15565rm -f conftest.$ac_objext conftest$ac_exeext
15566if { (ac_try="$ac_link"
15567case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570esac
15571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15572$as_echo "$ac_try_echo") >&5
15573 (eval "$ac_link") 2>conftest.er1
15574 ac_status=$?
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
15578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } && {
15580 test -z "$ac_c_werror_flag" ||
15581 test ! -s conftest.err
15582 } && test -s conftest$ac_exeext && {
15583 test "$cross_compiling" = yes ||
15584 $as_test_x conftest$ac_exeext
15585 }; then
15586 eval "$as_ac_var=yes"
15587else
15588 $as_echo "$as_me: failed program was:" >&5
15589sed 's/^/| /' conftest.$ac_ext >&5
15590
15591 eval "$as_ac_var=no"
15592fi
15593
15594rm -rf conftest.dSYM
15595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15596 conftest$ac_exeext conftest.$ac_ext
15597fi
15598ac_res=`eval 'as_val=${'$as_ac_var'}
15599 $as_echo "$as_val"'`
15600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15601$as_echo "$ac_res" >&6; }
15602if test `eval 'as_val=${'$as_ac_var'}
15603 $as_echo "$as_val"'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15606_ACEOF
15607
15608fi
15609done
15610
15611
15612
15613for ac_func in setutxent utmpxname
15614do
15615as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15616{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15617$as_echo_n "checking for $ac_func... " >&6; }
15618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15619 $as_echo_n "(cached) " >&6
15620else
15621 cat >conftest.$ac_ext <<_ACEOF
15622/* confdefs.h. */
15623_ACEOF
15624cat confdefs.h >>conftest.$ac_ext
15625cat >>conftest.$ac_ext <<_ACEOF
15626/* end confdefs.h. */
15627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15629#define $ac_func innocuous_$ac_func
15630
15631/* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func (); below.
15633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634 <limits.h> exists even on freestanding compilers. */
15635
15636#ifdef __STDC__
15637# include <limits.h>
15638#else
15639# include <assert.h>
15640#endif
15641
15642#undef $ac_func
15643
15644/* Override any GCC internal prototype to avoid an error.
15645 Use char because int might match the return type of a GCC
15646 builtin and then its argument prototype would still apply. */
15647#ifdef __cplusplus
15648extern "C"
15649#endif
15650char $ac_func ();
15651/* The GNU C library defines this for functions which it implements
15652 to always fail with ENOSYS. Some functions are actually named
15653 something starting with __ and the normal name is an alias. */
15654#if defined __stub_$ac_func || defined __stub___$ac_func
15655choke me
15656#endif
15657
15658int
15659main ()
15660{
15661return $ac_func ();
15662 ;
15663 return 0;
15664}
15665_ACEOF
15666rm -f conftest.$ac_objext conftest$ac_exeext
15667if { (ac_try="$ac_link"
15668case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15671esac
15672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15673$as_echo "$ac_try_echo") >&5
15674 (eval "$ac_link") 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && {
15681 test -z "$ac_c_werror_flag" ||
15682 test ! -s conftest.err
15683 } && test -s conftest$ac_exeext && {
15684 test "$cross_compiling" = yes ||
15685 $as_test_x conftest$ac_exeext
15686 }; then
15687 eval "$as_ac_var=yes"
15688else
15689 $as_echo "$as_me: failed program was:" >&5
15690sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 eval "$as_ac_var=no"
15693fi
15694
15695rm -rf conftest.dSYM
15696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15697 conftest$ac_exeext conftest.$ac_ext
15698fi
15699ac_res=`eval 'as_val=${'$as_ac_var'}
15700 $as_echo "$as_val"'`
15701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15702$as_echo "$ac_res" >&6; }
15703if test `eval 'as_val=${'$as_ac_var'}
15704 $as_echo "$as_val"'` = yes; then
15705 cat >>confdefs.h <<_ACEOF
15706#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15707_ACEOF
15708
15709fi
15710done
15711
15712
15713for ac_func in getlastlogxbyname
15714do
15715as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15716{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15717$as_echo_n "checking for $ac_func... " >&6; }
15718if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15719 $as_echo_n "(cached) " >&6
15720else
15721 cat >conftest.$ac_ext <<_ACEOF
15722/* confdefs.h. */
15723_ACEOF
15724cat confdefs.h >>conftest.$ac_ext
15725cat >>conftest.$ac_ext <<_ACEOF
15726/* end confdefs.h. */
15727/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15729#define $ac_func innocuous_$ac_func
15730
15731/* System header to define __stub macros and hopefully few prototypes,
15732 which can conflict with char $ac_func (); below.
15733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15734 <limits.h> exists even on freestanding compilers. */
15735
15736#ifdef __STDC__
15737# include <limits.h>
15738#else
15739# include <assert.h>
15740#endif
15741
15742#undef $ac_func
15743
15744/* Override any GCC internal prototype to avoid an error.
15745 Use char because int might match the return type of a GCC
15746 builtin and then its argument prototype would still apply. */
15747#ifdef __cplusplus
15748extern "C"
15749#endif
15750char $ac_func ();
15751/* The GNU C library defines this for functions which it implements
15752 to always fail with ENOSYS. Some functions are actually named
15753 something starting with __ and the normal name is an alias. */
15754#if defined __stub_$ac_func || defined __stub___$ac_func
15755choke me
15756#endif
15757
15758int
15759main ()
15760{
15761return $ac_func ();
15762 ;
15763 return 0;
15764}
15765_ACEOF
15766rm -f conftest.$ac_objext conftest$ac_exeext
15767if { (ac_try="$ac_link"
15768case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771esac
15772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15773$as_echo "$ac_try_echo") >&5
15774 (eval "$ac_link") 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } && {
15781 test -z "$ac_c_werror_flag" ||
15782 test ! -s conftest.err
15783 } && test -s conftest$ac_exeext && {
15784 test "$cross_compiling" = yes ||
15785 $as_test_x conftest$ac_exeext
15786 }; then
15787 eval "$as_ac_var=yes"
15788else
15789 $as_echo "$as_me: failed program was:" >&5
15790sed 's/^/| /' conftest.$ac_ext >&5
15791
15792 eval "$as_ac_var=no"
15793fi
15794
15795rm -rf conftest.dSYM
15796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15797 conftest$ac_exeext conftest.$ac_ext
15798fi
15799ac_res=`eval 'as_val=${'$as_ac_var'}
15800 $as_echo "$as_val"'`
15801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15802$as_echo "$ac_res" >&6; }
15803if test `eval 'as_val=${'$as_ac_var'}
15804 $as_echo "$as_val"'` = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15807_ACEOF
15808
15809fi
15810done
15811
15812
15813{ $as_echo "$as_me:$LINENO: checking for daemon" >&5
15814$as_echo_n "checking for daemon... " >&6; }
15815if test "${ac_cv_func_daemon+set}" = set; then
15816 $as_echo_n "(cached) " >&6
15817else
15818 cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h. */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h. */
15824/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826#define daemon innocuous_daemon
15827
15828/* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char daemon (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15832
15833#ifdef __STDC__
15834# include <limits.h>
15835#else
15836# include <assert.h>
15837#endif
15838
15839#undef daemon
15840
15841/* Override any GCC internal prototype to avoid an error.
15842 Use char because int might match the return type of a GCC
15843 builtin and then its argument prototype would still apply. */
15844#ifdef __cplusplus
15845extern "C"
15846#endif
15847char daemon ();
15848/* The GNU C library defines this for functions which it implements
15849 to always fail with ENOSYS. Some functions are actually named
15850 something starting with __ and the normal name is an alias. */
15851#if defined __stub_daemon || defined __stub___daemon
15852choke me
15853#endif
15854
15855int
15856main ()
15857{
15858return daemon ();
15859 ;
15860 return 0;
15861}
15862_ACEOF
15863rm -f conftest.$ac_objext conftest$ac_exeext
15864if { (ac_try="$ac_link"
15865case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868esac
15869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15870$as_echo "$ac_try_echo") >&5
15871 (eval "$ac_link") 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } && {
15878 test -z "$ac_c_werror_flag" ||
15879 test ! -s conftest.err
15880 } && test -s conftest$ac_exeext && {
15881 test "$cross_compiling" = yes ||
15882 $as_test_x conftest$ac_exeext
15883 }; then
15884 ac_cv_func_daemon=yes
15885else
15886 $as_echo "$as_me: failed program was:" >&5
15887sed 's/^/| /' conftest.$ac_ext >&5
15888
15889 ac_cv_func_daemon=no
15890fi
15891
15892rm -rf conftest.dSYM
15893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15894 conftest$ac_exeext conftest.$ac_ext
15895fi
15896{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
15897$as_echo "$ac_cv_func_daemon" >&6; }
15898if test $ac_cv_func_daemon = yes; then
15899
15900cat >>confdefs.h <<\_ACEOF
15901#define HAVE_DAEMON 1
15902_ACEOF
15903
15904else
15905 { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5
15906$as_echo_n "checking for daemon in -lbsd... " >&6; }
15907if test "${ac_cv_lib_bsd_daemon+set}" = set; then
15908 $as_echo_n "(cached) " >&6
15909else
15910 ac_check_lib_save_LIBS=$LIBS
15911LIBS="-lbsd $LIBS"
15912cat >conftest.$ac_ext <<_ACEOF
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918
15919/* Override any GCC internal prototype to avoid an error.
15920 Use char because int might match the return type of a GCC
15921 builtin and then its argument prototype would still apply. */
15922#ifdef __cplusplus
15923extern "C"
15924#endif
15925char daemon ();
15926int
15927main ()
15928{
15929return daemon ();
15930 ;
15931 return 0;
15932}
15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
15935if { (ac_try="$ac_link"
15936case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939esac
15940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15941$as_echo "$ac_try_echo") >&5
15942 (eval "$ac_link") 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
15951 } && test -s conftest$ac_exeext && {
15952 test "$cross_compiling" = yes ||
15953 $as_test_x conftest$ac_exeext
15954 }; then
15955 ac_cv_lib_bsd_daemon=yes
15956else
15957 $as_echo "$as_me: failed program was:" >&5
15958sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 ac_cv_lib_bsd_daemon=no
15961fi
15962
15963rm -rf conftest.dSYM
15964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15965 conftest$ac_exeext conftest.$ac_ext
15966LIBS=$ac_check_lib_save_LIBS
15967fi
15968{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5
15969$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
15970if test $ac_cv_lib_bsd_daemon = yes; then
15971 LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF
15972#define HAVE_DAEMON 1
15973_ACEOF
15974
15975fi
15976
15977
15978fi
15979
15980
15981{ $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
15982$as_echo_n "checking for getpagesize... " >&6; }
15983if test "${ac_cv_func_getpagesize+set}" = set; then
15984 $as_echo_n "(cached) " >&6
15985else
15986 cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992/* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize.
15993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15994#define getpagesize innocuous_getpagesize
15995
15996/* System header to define __stub macros and hopefully few prototypes,
15997 which can conflict with char getpagesize (); below.
15998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15999 <limits.h> exists even on freestanding compilers. */
16000
16001#ifdef __STDC__
16002# include <limits.h>
16003#else
16004# include <assert.h>
16005#endif
16006
16007#undef getpagesize
16008
16009/* Override any GCC internal prototype to avoid an error.
16010 Use char because int might match the return type of a GCC
16011 builtin and then its argument prototype would still apply. */
16012#ifdef __cplusplus
16013extern "C"
16014#endif
16015char getpagesize ();
16016/* The GNU C library defines this for functions which it implements
16017 to always fail with ENOSYS. Some functions are actually named
16018 something starting with __ and the normal name is an alias. */
16019#if defined __stub_getpagesize || defined __stub___getpagesize
16020choke me
16021#endif
16022
16023int
16024main ()
16025{
16026return getpagesize ();
16027 ;
16028 return 0;
16029}
16030_ACEOF
16031rm -f conftest.$ac_objext conftest$ac_exeext
16032if { (ac_try="$ac_link"
16033case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036esac
16037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038$as_echo "$ac_try_echo") >&5
16039 (eval "$ac_link") 2>conftest.er1
16040 ac_status=$?
16041 grep -v '^ *+' conftest.er1 >conftest.err
16042 rm -f conftest.er1
16043 cat conftest.err >&5
16044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045 (exit $ac_status); } && {
16046 test -z "$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16048 } && test -s conftest$ac_exeext && {
16049 test "$cross_compiling" = yes ||
16050 $as_test_x conftest$ac_exeext
16051 }; then
16052 ac_cv_func_getpagesize=yes
16053else
16054 $as_echo "$as_me: failed program was:" >&5
16055sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 ac_cv_func_getpagesize=no
16058fi
16059
16060rm -rf conftest.dSYM
16061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16062 conftest$ac_exeext conftest.$ac_ext
16063fi
16064{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5
16065$as_echo "$ac_cv_func_getpagesize" >&6; }
16066if test $ac_cv_func_getpagesize = yes; then
16067
16068cat >>confdefs.h <<\_ACEOF
16069#define HAVE_GETPAGESIZE 1
16070_ACEOF
16071
16072else
16073 { $as_echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5
16074$as_echo_n "checking for getpagesize in -lucb... " >&6; }
16075if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then
16076 $as_echo_n "(cached) " >&6
16077else
16078 ac_check_lib_save_LIBS=$LIBS
16079LIBS="-lucb $LIBS"
16080cat >conftest.$ac_ext <<_ACEOF
16081/* confdefs.h. */
16082_ACEOF
16083cat confdefs.h >>conftest.$ac_ext
16084cat >>conftest.$ac_ext <<_ACEOF
16085/* end confdefs.h. */
16086
16087/* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16090#ifdef __cplusplus
16091extern "C"
16092#endif
16093char getpagesize ();
16094int
16095main ()
16096{
16097return getpagesize ();
16098 ;
16099 return 0;
16100}
16101_ACEOF
16102rm -f conftest.$ac_objext conftest$ac_exeext
16103if { (ac_try="$ac_link"
16104case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107esac
16108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16109$as_echo "$ac_try_echo") >&5
16110 (eval "$ac_link") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } && {
16117 test -z "$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 } && test -s conftest$ac_exeext && {
16120 test "$cross_compiling" = yes ||
16121 $as_test_x conftest$ac_exeext
16122 }; then
16123 ac_cv_lib_ucb_getpagesize=yes
16124else
16125 $as_echo "$as_me: failed program was:" >&5
16126sed 's/^/| /' conftest.$ac_ext >&5
16127
16128 ac_cv_lib_ucb_getpagesize=no
16129fi
16130
16131rm -rf conftest.dSYM
16132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16133 conftest$ac_exeext conftest.$ac_ext
16134LIBS=$ac_check_lib_save_LIBS
16135fi
16136{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5
16137$as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
16138if test $ac_cv_lib_ucb_getpagesize = yes; then
16139 LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF
16140#define HAVE_GETPAGESIZE 1
16141_ACEOF
16142
16143fi
16144
16145
16146fi
16147
16148
16149# Check for broken snprintf
16150if test "x$ac_cv_func_snprintf" = "xyes" ; then
16151 { $as_echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5
16152$as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
16153 if test "$cross_compiling" = yes; then
16154 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
16155$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
16156
16157else
16158 cat >conftest.$ac_ext <<_ACEOF
16159/* confdefs.h. */
16160_ACEOF
16161cat confdefs.h >>conftest.$ac_ext
16162cat >>conftest.$ac_ext <<_ACEOF
16163/* end confdefs.h. */
16164
16165#include <stdio.h>
16166int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
16167
16168_ACEOF
16169rm -f conftest$ac_exeext
16170if { (ac_try="$ac_link"
16171case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16174esac
16175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16176$as_echo "$ac_try_echo") >&5
16177 (eval "$ac_link") 2>&5
16178 ac_status=$?
16179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184esac
16185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16186$as_echo "$ac_try_echo") >&5
16187 (eval "$ac_try") 2>&5
16188 ac_status=$?
16189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 { $as_echo "$as_me:$LINENO: result: yes" >&5
16192$as_echo "yes" >&6; }
16193else
16194 $as_echo "$as_me: program exited with status $ac_status" >&5
16195$as_echo "$as_me: failed program was:" >&5
16196sed 's/^/| /' conftest.$ac_ext >&5
16197
16198( exit $ac_status )
16199
16200 { $as_echo "$as_me:$LINENO: result: no" >&5
16201$as_echo "no" >&6; }
16202
16203cat >>confdefs.h <<\_ACEOF
16204#define BROKEN_SNPRINTF 1
16205_ACEOF
16206
16207 { $as_echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
16208$as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
16209
16210fi
16211rm -rf conftest.dSYM
16212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16213fi
16214
16215
16216fi
16217
16218# If we don't have a working asprintf, then we strongly depend on vsnprintf
16219# returning the right thing on overflow: the number of characters it tried to
16220# create (as per SUSv3)
16221if test "x$ac_cv_func_asprintf" != "xyes" && \
16222 test "x$ac_cv_func_vsnprintf" = "xyes" ; then
16223 { $as_echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5
16224$as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
16225 if test "$cross_compiling" = yes; then
16226 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5
16227$as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
16228
16229else
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236
16237#include <sys/types.h>
16238#include <stdio.h>
16239#include <stdarg.h>
16240
16241int x_snprintf(char *str,size_t count,const char *fmt,...)
16242{
16243 size_t ret; va_list ap;
16244 va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
16245 return ret;
16246}
16247int main(void)
16248{
16249 char x[1];
16250 exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
16251}
16252_ACEOF
16253rm -f conftest$ac_exeext
16254if { (ac_try="$ac_link"
16255case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258esac
16259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16260$as_echo "$ac_try_echo") >&5
16261 (eval "$ac_link") 2>&5
16262 ac_status=$?
16263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16265 { (case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16268esac
16269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16270$as_echo "$ac_try_echo") >&5
16271 (eval "$ac_try") 2>&5
16272 ac_status=$?
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 { $as_echo "$as_me:$LINENO: result: yes" >&5
16276$as_echo "yes" >&6; }
16277else
16278 $as_echo "$as_me: program exited with status $ac_status" >&5
16279$as_echo "$as_me: failed program was:" >&5
16280sed 's/^/| /' conftest.$ac_ext >&5
16281
16282( exit $ac_status )
16283
16284 { $as_echo "$as_me:$LINENO: result: no" >&5
16285$as_echo "no" >&6; }
16286
16287cat >>confdefs.h <<\_ACEOF
16288#define BROKEN_SNPRINTF 1
16289_ACEOF
16290
16291 { $as_echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
16292$as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
16293
16294fi
16295rm -rf conftest.dSYM
16296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16297fi
16298
16299
16300fi
16301
16302# On systems where [v]snprintf is broken, but is declared in stdio,
16303# check that the fmt argument is const char * or just char *.
16304# This is only useful for when BROKEN_SNPRINTF
16305{ $as_echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5
16306$as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
16307cat >conftest.$ac_ext <<_ACEOF
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
16313#include <stdio.h>
16314 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
16315 int main(void) { snprintf(0, 0, 0); }
16316
16317_ACEOF
16318rm -f conftest.$ac_objext
16319if { (ac_try="$ac_compile"
16320case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16325$as_echo "$ac_try_echo") >&5
16326 (eval "$ac_compile") 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && {
16333 test -z "$ac_c_werror_flag" ||
16334 test ! -s conftest.err
16335 } && test -s conftest.$ac_objext; then
16336 { $as_echo "$as_me:$LINENO: result: yes" >&5
16337$as_echo "yes" >&6; }
16338
16339cat >>confdefs.h <<\_ACEOF
16340#define SNPRINTF_CONST const
16341_ACEOF
16342
16343else
16344 $as_echo "$as_me: failed program was:" >&5
16345sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 { $as_echo "$as_me:$LINENO: result: no" >&5
16348$as_echo "no" >&6; }
16349 cat >>confdefs.h <<\_ACEOF
16350#define SNPRINTF_CONST /* not const */
16351_ACEOF
16352
16353fi
16354
16355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356
16357# Check for missing getpeereid (or equiv) support
16358NO_PEERCHECK=""
16359if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
16360 { $as_echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5
16361$as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
16362 cat >conftest.$ac_ext <<_ACEOF
16363/* confdefs.h. */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h. */
16368#include <sys/types.h>
16369 #include <sys/socket.h>
16370int
16371main ()
16372{
16373int i = SO_PEERCRED;
16374 ;
16375 return 0;
16376}
16377_ACEOF
16378rm -f conftest.$ac_objext
16379if { (ac_try="$ac_compile"
16380case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16383esac
16384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16385$as_echo "$ac_try_echo") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16387 ac_status=$?
16388 grep -v '^ *+' conftest.er1 >conftest.err
16389 rm -f conftest.er1
16390 cat conftest.err >&5
16391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396 { $as_echo "$as_me:$LINENO: result: yes" >&5
16397$as_echo "yes" >&6; }
16398
16399cat >>confdefs.h <<\_ACEOF
16400#define HAVE_SO_PEERCRED 1
16401_ACEOF
16402
16403
16404else
16405 $as_echo "$as_me: failed program was:" >&5
16406sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 { $as_echo "$as_me:$LINENO: result: no" >&5
16409$as_echo "no" >&6; }
16410 NO_PEERCHECK=1
16411
16412fi
16413
16414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16415fi
16416
16417if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
16418{ $as_echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5
16419$as_echo_n "checking for (overly) strict mkstemp... " >&6; }
16420if test "$cross_compiling" = yes; then
16421
16422 { $as_echo "$as_me:$LINENO: result: yes" >&5
16423$as_echo "yes" >&6; }
16424 cat >>confdefs.h <<\_ACEOF
16425#define HAVE_STRICT_MKSTEMP 1
16426_ACEOF
16427
16428
16429
16430else
16431 cat >conftest.$ac_ext <<_ACEOF
16432/* confdefs.h. */
16433_ACEOF
16434cat confdefs.h >>conftest.$ac_ext
16435cat >>conftest.$ac_ext <<_ACEOF
16436/* end confdefs.h. */
16437
16438#include <stdlib.h>
16439main() { char template[]="conftest.mkstemp-test";
16440if (mkstemp(template) == -1)
16441 exit(1);
16442unlink(template); exit(0);
16443}
16444
16445_ACEOF
16446rm -f conftest$ac_exeext
16447if { (ac_try="$ac_link"
16448case "(($ac_try" in
16449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450 *) ac_try_echo=$ac_try;;
16451esac
16452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16453$as_echo "$ac_try_echo") >&5
16454 (eval "$ac_link") 2>&5
16455 ac_status=$?
16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16458 { (case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16461esac
16462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16463$as_echo "$ac_try_echo") >&5
16464 (eval "$ac_try") 2>&5
16465 ac_status=$?
16466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); }; }; then
16468
16469 { $as_echo "$as_me:$LINENO: result: no" >&5
16470$as_echo "no" >&6; }
16471
16472else
16473 $as_echo "$as_me: program exited with status $ac_status" >&5
16474$as_echo "$as_me: failed program was:" >&5
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
16477( exit $ac_status )
16478
16479 { $as_echo "$as_me:$LINENO: result: yes" >&5
16480$as_echo "yes" >&6; }
16481
16482cat >>confdefs.h <<\_ACEOF
16483#define HAVE_STRICT_MKSTEMP 1
16484_ACEOF
16485
16486
16487fi
16488rm -rf conftest.dSYM
16489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16490fi
16491
16492
16493fi
16494
16495if test ! -z "$check_for_openpty_ctty_bug"; then
16496 { $as_echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
16497$as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
16498 if test "$cross_compiling" = yes; then
16499
16500 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
16501$as_echo "cross-compiling" >&6; }
16502
16503
16504else
16505 cat >conftest.$ac_ext <<_ACEOF
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511
16512#include <stdio.h>
16513#include <sys/fcntl.h>
16514#include <sys/types.h>
16515#include <sys/wait.h>
16516
16517int
16518main()
16519{
16520 pid_t pid;
16521 int fd, ptyfd, ttyfd, status;
16522
16523 pid = fork();
16524 if (pid < 0) { /* failed */
16525 exit(1);
16526 } else if (pid > 0) { /* parent */
16527 waitpid(pid, &status, 0);
16528 if (WIFEXITED(status))
16529 exit(WEXITSTATUS(status));
16530 else
16531 exit(2);
16532 } else { /* child */
16533 close(0); close(1); close(2);
16534 setsid();
16535 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
16536 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
16537 if (fd >= 0)
16538 exit(3); /* Acquired ctty: broken */
16539 else
16540 exit(0); /* Did not acquire ctty: OK */
16541 }
16542}
16543
16544_ACEOF
16545rm -f conftest$ac_exeext
16546if { (ac_try="$ac_link"
16547case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16550esac
16551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16552$as_echo "$ac_try_echo") >&5
16553 (eval "$ac_link") 2>&5
16554 ac_status=$?
16555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560esac
16561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16562$as_echo "$ac_try_echo") >&5
16563 (eval "$ac_try") 2>&5
16564 ac_status=$?
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567
16568 { $as_echo "$as_me:$LINENO: result: yes" >&5
16569$as_echo "yes" >&6; }
16570
16571else
16572 $as_echo "$as_me: program exited with status $ac_status" >&5
16573$as_echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
16576( exit $ac_status )
16577
16578 { $as_echo "$as_me:$LINENO: result: no" >&5
16579$as_echo "no" >&6; }
16580 cat >>confdefs.h <<\_ACEOF
16581#define SSHD_ACQUIRES_CTTY 1
16582_ACEOF
16583
16584
16585fi
16586rm -rf conftest.dSYM
16587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16588fi
16589
16590
16591fi
16592
16593if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16594 test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
16595 { $as_echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16596$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
16597 if test "$cross_compiling" = yes; then
16598
16599 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
16600$as_echo "cross-compiling" >&6; }
16601
16602
16603else
16604 cat >conftest.$ac_ext <<_ACEOF
16605/* confdefs.h. */
16606_ACEOF
16607cat confdefs.h >>conftest.$ac_ext
16608cat >>conftest.$ac_ext <<_ACEOF
16609/* end confdefs.h. */
16610
16611#include <stdio.h>
16612#include <sys/socket.h>
16613#include <netdb.h>
16614#include <errno.h>
16615#include <netinet/in.h>
16616
16617#define TEST_PORT "2222"
16618
16619int
16620main(void)
16621{
16622 int err, sock;
16623 struct addrinfo *gai_ai, *ai, hints;
16624 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16625
16626 memset(&hints, 0, sizeof(hints));
16627 hints.ai_family = PF_UNSPEC;
16628 hints.ai_socktype = SOCK_STREAM;
16629 hints.ai_flags = AI_PASSIVE;
16630
16631 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16632 if (err != 0) {
16633 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16634 exit(1);
16635 }
16636
16637 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16638 if (ai->ai_family != AF_INET6)
16639 continue;
16640
16641 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16642 sizeof(ntop), strport, sizeof(strport),
16643 NI_NUMERICHOST|NI_NUMERICSERV);
16644
16645 if (err != 0) {
16646 if (err == EAI_SYSTEM)
16647 perror("getnameinfo EAI_SYSTEM");
16648 else
16649 fprintf(stderr, "getnameinfo failed: %s\n",
16650 gai_strerror(err));
16651 exit(2);
16652 }
16653
16654 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
16655 if (sock < 0)
16656 perror("socket");
16657 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
16658 if (errno == EBADF)
16659 exit(3);
16660 }
16661 }
16662 exit(0);
16663}
16664
16665_ACEOF
16666rm -f conftest$ac_exeext
16667if { (ac_try="$ac_link"
16668case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16671esac
16672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16673$as_echo "$ac_try_echo") >&5
16674 (eval "$ac_link") 2>&5
16675 ac_status=$?
16676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16678 { (case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681esac
16682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16683$as_echo "$ac_try_echo") >&5
16684 (eval "$ac_try") 2>&5
16685 ac_status=$?
16686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688
16689 { $as_echo "$as_me:$LINENO: result: yes" >&5
16690$as_echo "yes" >&6; }
16691
16692else
16693 $as_echo "$as_me: program exited with status $ac_status" >&5
16694$as_echo "$as_me: failed program was:" >&5
16695sed 's/^/| /' conftest.$ac_ext >&5
16696
16697( exit $ac_status )
16698
16699 { $as_echo "$as_me:$LINENO: result: no" >&5
16700$as_echo "no" >&6; }
16701 cat >>confdefs.h <<\_ACEOF
16702#define BROKEN_GETADDRINFO 1
16703_ACEOF
16704
16705
16706fi
16707rm -rf conftest.dSYM
16708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16709fi
16710
16711
16712fi
16713
16714if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
16715 test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
16716 { $as_echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5
16717$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
16718 if test "$cross_compiling" = yes; then
16719
16720 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
16721$as_echo "cross-compiling" >&6; }
16722
16723
16724else
16725 cat >conftest.$ac_ext <<_ACEOF
16726/* confdefs.h. */
16727_ACEOF
16728cat confdefs.h >>conftest.$ac_ext
16729cat >>conftest.$ac_ext <<_ACEOF
16730/* end confdefs.h. */
16731
16732#include <stdio.h>
16733#include <sys/socket.h>
16734#include <netdb.h>
16735#include <errno.h>
16736#include <netinet/in.h>
16737
16738#define TEST_PORT "2222"
16739
16740int
16741main(void)
16742{
16743 int err, sock;
16744 struct addrinfo *gai_ai, *ai, hints;
16745 char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
16746
16747 memset(&hints, 0, sizeof(hints));
16748 hints.ai_family = PF_UNSPEC;
16749 hints.ai_socktype = SOCK_STREAM;
16750 hints.ai_flags = AI_PASSIVE;
16751
16752 err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
16753 if (err != 0) {
16754 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
16755 exit(1);
16756 }
16757
16758 for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
16759 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
16760 continue;
16761
16762 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
16763 sizeof(ntop), strport, sizeof(strport),
16764 NI_NUMERICHOST|NI_NUMERICSERV);
16765
16766 if (ai->ai_family == AF_INET && err != 0) {
16767 perror("getnameinfo");
16768 exit(2);
16769 }
16770 }
16771 exit(0);
16772}
16773
16774_ACEOF
16775rm -f conftest$ac_exeext
16776if { (ac_try="$ac_link"
16777case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780esac
16781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16782$as_echo "$ac_try_echo") >&5
16783 (eval "$ac_link") 2>&5
16784 ac_status=$?
16785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16787 { (case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790esac
16791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16792$as_echo "$ac_try_echo") >&5
16793 (eval "$ac_try") 2>&5
16794 ac_status=$?
16795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; }; then
16797
16798 { $as_echo "$as_me:$LINENO: result: yes" >&5
16799$as_echo "yes" >&6; }
16800
16801cat >>confdefs.h <<\_ACEOF
16802#define AIX_GETNAMEINFO_HACK 1
16803_ACEOF
16804
16805
16806else
16807 $as_echo "$as_me: program exited with status $ac_status" >&5
16808$as_echo "$as_me: failed program was:" >&5
16809sed 's/^/| /' conftest.$ac_ext >&5
16810
16811( exit $ac_status )
16812
16813 { $as_echo "$as_me:$LINENO: result: no" >&5
16814$as_echo "no" >&6; }
16815 cat >>confdefs.h <<\_ACEOF
16816#define BROKEN_GETADDRINFO 1
16817_ACEOF
16818
16819
16820fi
16821rm -rf conftest.dSYM
16822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16823fi
16824
16825
16826fi
16827
16828if test "x$check_for_conflicting_getspnam" = "x1"; then
16829 { $as_echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5
16830$as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
16831 cat >conftest.$ac_ext <<_ACEOF
16832
16833#include <shadow.h>
16834int main(void) {exit(0);}
16835
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (ac_try="$ac_compile"
16839case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16842esac
16843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16844$as_echo "$ac_try_echo") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.$ac_objext; then
16855
16856 { $as_echo "$as_me:$LINENO: result: no" >&5
16857$as_echo "no" >&6; }
16858
16859else
16860 $as_echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863
16864 { $as_echo "$as_me:$LINENO: result: yes" >&5
16865$as_echo "yes" >&6; }
16866
16867cat >>confdefs.h <<\_ACEOF
16868#define GETSPNAM_CONFLICTING_DEFS 1
16869_ACEOF
16870
16871
16872
16873fi
16874
16875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16876fi
16877
16878{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16879$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
16880if test "${ac_cv_func_getpgrp_void+set}" = set; then
16881 $as_echo_n "(cached) " >&6
16882else
16883 # Use it with a single arg.
16884cat >conftest.$ac_ext <<_ACEOF
16885/* confdefs.h. */
16886_ACEOF
16887cat confdefs.h >>conftest.$ac_ext
16888cat >>conftest.$ac_ext <<_ACEOF
16889/* end confdefs.h. */
16890$ac_includes_default
16891int
16892main ()
16893{
16894getpgrp (0);
16895 ;
16896 return 0;
16897}
16898_ACEOF
16899rm -f conftest.$ac_objext
16900if { (ac_try="$ac_compile"
16901case "(($ac_try" in
16902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16904esac
16905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16906$as_echo "$ac_try_echo") >&5
16907 (eval "$ac_compile") 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } && {
16914 test -z "$ac_c_werror_flag" ||
16915 test ! -s conftest.err
16916 } && test -s conftest.$ac_objext; then
16917 ac_cv_func_getpgrp_void=no
16918else
16919 $as_echo "$as_me: failed program was:" >&5
16920sed 's/^/| /' conftest.$ac_ext >&5
16921
16922 ac_cv_func_getpgrp_void=yes
16923fi
16924
16925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16926
16927fi
16928{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16929$as_echo "$ac_cv_func_getpgrp_void" >&6; }
16930if test $ac_cv_func_getpgrp_void = yes; then
16931
16932cat >>confdefs.h <<\_ACEOF
16933#define GETPGRP_VOID 1
16934_ACEOF
16935
16936fi
16937
16938
16939# Search for OpenSSL
16940saved_CPPFLAGS="$CPPFLAGS"
16941saved_LDFLAGS="$LDFLAGS"
16942
16943# Check whether --with-ssl-dir was given.
16944if test "${with_ssl_dir+set}" = set; then
16945 withval=$with_ssl_dir;
16946 if test "x$withval" != "xno" ; then
16947 case "$withval" in
16948 # Relative paths
16949 ./*|../*) withval="`pwd`/$withval"
16950 esac
16951 if test -d "$withval/lib"; then
16952 if test -n "${need_dash_r}"; then
16953 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
16954 else
16955 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
16956 fi
16957 else
16958 if test -n "${need_dash_r}"; then
16959 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
16960 else
16961 LDFLAGS="-L${withval} ${LDFLAGS}"
16962 fi
16963 fi
16964 if test -d "$withval/include"; then
16965 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
16966 else
16967 CPPFLAGS="-I${withval} ${CPPFLAGS}"
16968 fi
16969 fi
16970
16971
16972fi
16973
16974LIBS="-lcrypto $LIBS"
16975cat >conftest.$ac_ext <<_ACEOF
16976/* confdefs.h. */
16977_ACEOF
16978cat confdefs.h >>conftest.$ac_ext
16979cat >>conftest.$ac_ext <<_ACEOF
16980/* end confdefs.h. */
16981
16982/* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16985#ifdef __cplusplus
16986extern "C"
16987#endif
16988char RAND_add ();
16989int
16990main ()
16991{
16992return RAND_add ();
16993 ;
16994 return 0;
16995}
16996_ACEOF
16997rm -f conftest.$ac_objext conftest$ac_exeext
16998if { (ac_try="$ac_link"
16999case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002esac
17003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17004$as_echo "$ac_try_echo") >&5
17005 (eval "$ac_link") 2>conftest.er1
17006 ac_status=$?
17007 grep -v '^ *+' conftest.er1 >conftest.err
17008 rm -f conftest.er1
17009 cat conftest.err >&5
17010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && {
17012 test -z "$ac_c_werror_flag" ||
17013 test ! -s conftest.err
17014 } && test -s conftest$ac_exeext && {
17015 test "$cross_compiling" = yes ||
17016 $as_test_x conftest$ac_exeext
17017 }; then
17018
17019cat >>confdefs.h <<\_ACEOF
17020#define HAVE_OPENSSL 1
17021_ACEOF
17022
17023else
17024 $as_echo "$as_me: failed program was:" >&5
17025sed 's/^/| /' conftest.$ac_ext >&5
17026
17027
17028 if test -n "${need_dash_r}"; then
17029 LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
17030 else
17031 LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
17032 fi
17033 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
17034 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17035 { $as_echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
17036$as_echo_n "checking for openssl/opensslv.h... " >&6; }
17037if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17038 $as_echo_n "(cached) " >&6
17039fi
17040{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
17041$as_echo "$ac_cv_header_openssl_opensslv_h" >&6; }
17042else
17043 # Is the header compilable?
17044{ $as_echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
17045$as_echo_n "checking openssl/opensslv.h usability... " >&6; }
17046cat >conftest.$ac_ext <<_ACEOF
17047/* confdefs.h. */
17048_ACEOF
17049cat confdefs.h >>conftest.$ac_ext
17050cat >>conftest.$ac_ext <<_ACEOF
17051/* end confdefs.h. */
17052$ac_includes_default
17053#include <openssl/opensslv.h>
17054_ACEOF
17055rm -f conftest.$ac_objext
17056if { (ac_try="$ac_compile"
17057case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17062$as_echo "$ac_try_echo") >&5
17063 (eval "$ac_compile") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } && {
17070 test -z "$ac_c_werror_flag" ||
17071 test ! -s conftest.err
17072 } && test -s conftest.$ac_objext; then
17073 ac_header_compiler=yes
17074else
17075 $as_echo "$as_me: failed program was:" >&5
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
17078 ac_header_compiler=no
17079fi
17080
17081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17083$as_echo "$ac_header_compiler" >&6; }
17084
17085# Is the header present?
17086{ $as_echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
17087$as_echo_n "checking openssl/opensslv.h presence... " >&6; }
17088cat >conftest.$ac_ext <<_ACEOF
17089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
17094#include <openssl/opensslv.h>
17095_ACEOF
17096if { (ac_try="$ac_cpp conftest.$ac_ext"
17097case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100esac
17101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17102$as_echo "$ac_try_echo") >&5
17103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17104 ac_status=$?
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
17108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } >/dev/null && {
17110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17111 test ! -s conftest.err
17112 }; then
17113 ac_header_preproc=yes
17114else
17115 $as_echo "$as_me: failed program was:" >&5
17116sed 's/^/| /' conftest.$ac_ext >&5
17117
17118 ac_header_preproc=no
17119fi
17120
17121rm -f conftest.err conftest.$ac_ext
17122{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17123$as_echo "$ac_header_preproc" >&6; }
17124
17125# So? What about this header?
17126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17127 yes:no: )
17128 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
17129$as_echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17130 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
17131$as_echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
17132 ac_header_preproc=yes
17133 ;;
17134 no:yes:* )
17135 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
17136$as_echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
17137 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
17138$as_echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
17139 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
17140$as_echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
17141 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
17142$as_echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
17143 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
17144$as_echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
17145 { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
17146$as_echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
17147 ( cat <<\_ASBOX
17148## ------------------------------------------- ##
17149## Report this to openssh-unix-dev@mindrot.org ##
17150## ------------------------------------------- ##
17151_ASBOX
17152 ) | sed "s/^/$as_me: WARNING: /" >&2
17153 ;;
17154esac
17155{ $as_echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
17156$as_echo_n "checking for openssl/opensslv.h... " >&6; }
17157if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
17158 $as_echo_n "(cached) " >&6
17159else
17160 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
17161fi
17162{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
17163$as_echo "$ac_cv_header_openssl_opensslv_h" >&6; }
17164
17165fi
17166if test $ac_cv_header_openssl_opensslv_h = yes; then
17167 :
17168else
17169 { { $as_echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5
17170$as_echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;}
17171 { (exit 1); exit 1; }; }
17172fi
17173
17174
17175 cat >conftest.$ac_ext <<_ACEOF
17176/* confdefs.h. */
17177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
17180/* end confdefs.h. */
17181
17182/* Override any GCC internal prototype to avoid an error.
17183 Use char because int might match the return type of a GCC
17184 builtin and then its argument prototype would still apply. */
17185#ifdef __cplusplus
17186extern "C"
17187#endif
17188char RAND_add ();
17189int
17190main ()
17191{
17192return RAND_add ();
17193 ;
17194 return 0;
17195}
17196_ACEOF
17197rm -f conftest.$ac_objext conftest$ac_exeext
17198if { (ac_try="$ac_link"
17199case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17202esac
17203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17204$as_echo "$ac_try_echo") >&5
17205 (eval "$ac_link") 2>conftest.er1
17206 ac_status=$?
17207 grep -v '^ *+' conftest.er1 >conftest.err
17208 rm -f conftest.er1
17209 cat conftest.err >&5
17210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } && {
17212 test -z "$ac_c_werror_flag" ||
17213 test ! -s conftest.err
17214 } && test -s conftest$ac_exeext && {
17215 test "$cross_compiling" = yes ||
17216 $as_test_x conftest$ac_exeext
17217 }; then
17218 cat >>confdefs.h <<\_ACEOF
17219#define HAVE_OPENSSL 1
17220_ACEOF
17221
17222else
17223 $as_echo "$as_me: failed program was:" >&5
17224sed 's/^/| /' conftest.$ac_ext >&5
17225
17226
17227 { { $as_echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5
17228$as_echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;}
17229 { (exit 1); exit 1; }; }
17230
17231
17232fi
17233
17234rm -rf conftest.dSYM
17235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236 conftest$ac_exeext conftest.$ac_ext
17237
17238
17239fi
17240
17241rm -rf conftest.dSYM
17242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17243 conftest$ac_exeext conftest.$ac_ext
17244
17245# Determine OpenSSL header version
17246{ $as_echo "$as_me:$LINENO: checking OpenSSL header version" >&5
17247$as_echo_n "checking OpenSSL header version... " >&6; }
17248if test "$cross_compiling" = yes; then
17249
17250 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17251$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17252
17253
17254else
17255 cat >conftest.$ac_ext <<_ACEOF
17256/* confdefs.h. */
17257_ACEOF
17258cat confdefs.h >>conftest.$ac_ext
17259cat >>conftest.$ac_ext <<_ACEOF
17260/* end confdefs.h. */
17261
17262#include <stdio.h>
17263#include <string.h>
17264#include <openssl/opensslv.h>
17265#define DATA "conftest.sslincver"
17266int main(void) {
17267 FILE *fd;
17268 int rc;
17269
17270 fd = fopen(DATA,"w");
17271 if(fd == NULL)
17272 exit(1);
17273
17274 if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
17275 exit(1);
17276
17277 exit(0);
17278}
17279
17280_ACEOF
17281rm -f conftest$ac_exeext
17282if { (ac_try="$ac_link"
17283case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17288$as_echo "$ac_try_echo") >&5
17289 (eval "$ac_link") 2>&5
17290 ac_status=$?
17291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17298$as_echo "$ac_try_echo") >&5
17299 (eval "$ac_try") 2>&5
17300 ac_status=$?
17301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303
17304 ssl_header_ver=`cat conftest.sslincver`
17305 { $as_echo "$as_me:$LINENO: result: $ssl_header_ver" >&5
17306$as_echo "$ssl_header_ver" >&6; }
17307
17308else
17309 $as_echo "$as_me: program exited with status $ac_status" >&5
17310$as_echo "$as_me: failed program was:" >&5
17311sed 's/^/| /' conftest.$ac_ext >&5
17312
17313( exit $ac_status )
17314
17315 { $as_echo "$as_me:$LINENO: result: not found" >&5
17316$as_echo "not found" >&6; }
17317 { { $as_echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5
17318$as_echo "$as_me: error: OpenSSL version header not found." >&2;}
17319 { (exit 1); exit 1; }; }
17320
17321fi
17322rm -rf conftest.dSYM
17323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17324fi
17325
17326
17327
17328# Determine OpenSSL library version
17329{ $as_echo "$as_me:$LINENO: checking OpenSSL library version" >&5
17330$as_echo_n "checking OpenSSL library version... " >&6; }
17331if test "$cross_compiling" = yes; then
17332
17333 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17334$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17335
17336
17337else
17338 cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
17344
17345#include <stdio.h>
17346#include <string.h>
17347#include <openssl/opensslv.h>
17348#include <openssl/crypto.h>
17349#define DATA "conftest.ssllibver"
17350int main(void) {
17351 FILE *fd;
17352 int rc;
17353
17354 fd = fopen(DATA,"w");
17355 if(fd == NULL)
17356 exit(1);
17357
17358 if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
17359 exit(1);
17360
17361 exit(0);
17362}
17363
17364_ACEOF
17365rm -f conftest$ac_exeext
17366if { (ac_try="$ac_link"
17367case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370esac
17371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17372$as_echo "$ac_try_echo") >&5
17373 (eval "$ac_link") 2>&5
17374 ac_status=$?
17375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17382$as_echo "$ac_try_echo") >&5
17383 (eval "$ac_try") 2>&5
17384 ac_status=$?
17385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387
17388 ssl_library_ver=`cat conftest.ssllibver`
17389 { $as_echo "$as_me:$LINENO: result: $ssl_library_ver" >&5
17390$as_echo "$ssl_library_ver" >&6; }
17391
17392else
17393 $as_echo "$as_me: program exited with status $ac_status" >&5
17394$as_echo "$as_me: failed program was:" >&5
17395sed 's/^/| /' conftest.$ac_ext >&5
17396
17397( exit $ac_status )
17398
17399 { $as_echo "$as_me:$LINENO: result: not found" >&5
17400$as_echo "not found" >&6; }
17401 { { $as_echo "$as_me:$LINENO: error: OpenSSL library not found." >&5
17402$as_echo "$as_me: error: OpenSSL library not found." >&2;}
17403 { (exit 1); exit 1; }; }
17404
17405fi
17406rm -rf conftest.dSYM
17407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17408fi
17409
17410
17411
17412
17413# Check whether --with-openssl-header-check was given.
17414if test "${with_openssl_header_check+set}" = set; then
17415 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
17416 openssl_check_nonfatal=1
17417 fi
17418
17419
17420fi
17421
17422
17423# Sanity check OpenSSL headers
17424{ $as_echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
17425$as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
17426if test "$cross_compiling" = yes; then
17427
17428 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
17429$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
17430
17431
17432else
17433 cat >conftest.$ac_ext <<_ACEOF
17434/* confdefs.h. */
17435_ACEOF
17436cat confdefs.h >>conftest.$ac_ext
17437cat >>conftest.$ac_ext <<_ACEOF
17438/* end confdefs.h. */
17439
17440#include <string.h>
17441#include <openssl/opensslv.h>
17442int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
17443
17444_ACEOF
17445rm -f conftest$ac_exeext
17446if { (ac_try="$ac_link"
17447case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450esac
17451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17452$as_echo "$ac_try_echo") >&5
17453 (eval "$ac_link") 2>&5
17454 ac_status=$?
17455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17457 { (case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460esac
17461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17462$as_echo "$ac_try_echo") >&5
17463 (eval "$ac_try") 2>&5
17464 ac_status=$?
17465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; }; then
17467
17468 { $as_echo "$as_me:$LINENO: result: yes" >&5
17469$as_echo "yes" >&6; }
17470
17471else
17472 $as_echo "$as_me: program exited with status $ac_status" >&5
17473$as_echo "$as_me: failed program was:" >&5
17474sed 's/^/| /' conftest.$ac_ext >&5
17475
17476( exit $ac_status )
17477
17478 { $as_echo "$as_me:$LINENO: result: no" >&5
17479$as_echo "no" >&6; }
17480 if test "x$openssl_check_nonfatal" = "x"; then
17481 { { $as_echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
17482library. Check config.log for details.
17483If you are sure your installation is consistent, you can disable the check
17484by running \"./configure --without-openssl-header-check\".
17485Also see contrib/findssl.sh for help identifying header/library mismatches.
17486" >&5
17487$as_echo "$as_me: error: Your OpenSSL headers do not match your
17488library. Check config.log for details.
17489If you are sure your installation is consistent, you can disable the check
17490by running \"./configure --without-openssl-header-check\".
17491Also see contrib/findssl.sh for help identifying header/library mismatches.
17492" >&2;}
17493 { (exit 1); exit 1; }; }
17494 else
17495 { $as_echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
17496library. Check config.log for details.
17497Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
17498$as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
17499library. Check config.log for details.
17500Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
17501 fi
17502
17503fi
17504rm -rf conftest.dSYM
17505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17506fi
17507
17508
17509
17510{ $as_echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
17511$as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
17512cat >conftest.$ac_ext <<_ACEOF
17513/* confdefs.h. */
17514_ACEOF
17515cat confdefs.h >>conftest.$ac_ext
17516cat >>conftest.$ac_ext <<_ACEOF
17517/* end confdefs.h. */
17518
17519#include <openssl/evp.h>
17520int main(void) { SSLeay_add_all_algorithms(); }
17521
17522_ACEOF
17523rm -f conftest.$ac_objext conftest$ac_exeext
17524if { (ac_try="$ac_link"
17525case "(($ac_try" in
17526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17528esac
17529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17530$as_echo "$ac_try_echo") >&5
17531 (eval "$ac_link") 2>conftest.er1
17532 ac_status=$?
17533 grep -v '^ *+' conftest.er1 >conftest.err
17534 rm -f conftest.er1
17535 cat conftest.err >&5
17536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest$ac_exeext && {
17541 test "$cross_compiling" = yes ||
17542 $as_test_x conftest$ac_exeext
17543 }; then
17544
17545 { $as_echo "$as_me:$LINENO: result: yes" >&5
17546$as_echo "yes" >&6; }
17547
17548else
17549 $as_echo "$as_me: failed program was:" >&5
17550sed 's/^/| /' conftest.$ac_ext >&5
17551
17552
17553 { $as_echo "$as_me:$LINENO: result: no" >&5
17554$as_echo "no" >&6; }
17555 saved_LIBS="$LIBS"
17556 LIBS="$LIBS -ldl"
17557 { $as_echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
17558$as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
17559 cat >conftest.$ac_ext <<_ACEOF
17560/* confdefs.h. */
17561_ACEOF
17562cat confdefs.h >>conftest.$ac_ext
17563cat >>conftest.$ac_ext <<_ACEOF
17564/* end confdefs.h. */
17565
17566#include <openssl/evp.h>
17567int main(void) { SSLeay_add_all_algorithms(); }
17568
17569_ACEOF
17570rm -f conftest.$ac_objext conftest$ac_exeext
17571if { (ac_try="$ac_link"
17572case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575esac
17576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17577$as_echo "$ac_try_echo") >&5
17578 (eval "$ac_link") 2>conftest.er1
17579 ac_status=$?
17580 grep -v '^ *+' conftest.er1 >conftest.err
17581 rm -f conftest.er1
17582 cat conftest.err >&5
17583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && {
17585 test -z "$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 } && test -s conftest$ac_exeext && {
17588 test "$cross_compiling" = yes ||
17589 $as_test_x conftest$ac_exeext
17590 }; then
17591
17592 { $as_echo "$as_me:$LINENO: result: yes" >&5
17593$as_echo "yes" >&6; }
17594
17595else
17596 $as_echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599
17600 { $as_echo "$as_me:$LINENO: result: no" >&5
17601$as_echo "no" >&6; }
17602 LIBS="$saved_LIBS"
17603
17604
17605fi
17606
17607rm -rf conftest.dSYM
17608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609 conftest$ac_exeext conftest.$ac_ext
17610
17611
17612fi
17613
17614rm -rf conftest.dSYM
17615rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17616 conftest$ac_exeext conftest.$ac_ext
17617
17618
17619# Check whether --with-ssl-engine was given.
17620if test "${with_ssl_engine+set}" = set; then
17621 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
17622 { $as_echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
17623$as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
17624 cat >conftest.$ac_ext <<_ACEOF
17625/* confdefs.h. */
17626_ACEOF
17627cat confdefs.h >>conftest.$ac_ext
17628cat >>conftest.$ac_ext <<_ACEOF
17629/* end confdefs.h. */
17630 #include <openssl/engine.h>
17631int
17632main ()
17633{
17634
17635ENGINE_load_builtin_engines();ENGINE_register_all_complete();
17636
17637 ;
17638 return 0;
17639}
17640_ACEOF
17641rm -f conftest.$ac_objext
17642if { (ac_try="$ac_compile"
17643case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646esac
17647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17648$as_echo "$ac_try_echo") >&5
17649 (eval "$ac_compile") 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && {
17656 test -z "$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 } && test -s conftest.$ac_objext; then
17659 { $as_echo "$as_me:$LINENO: result: yes" >&5
17660$as_echo "yes" >&6; }
17661
17662cat >>confdefs.h <<\_ACEOF
17663#define USE_OPENSSL_ENGINE 1
17664_ACEOF
17665
17666
17667else
17668 $as_echo "$as_me: failed program was:" >&5
17669sed 's/^/| /' conftest.$ac_ext >&5
17670
17671 { { $as_echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
17672$as_echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
17673 { (exit 1); exit 1; }; }
17674
17675fi
17676
17677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678 fi
17679
17680fi
17681
17682
17683# Check for OpenSSL without EVP_aes_{192,256}_cbc
17684{ $as_echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
17685$as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
17686cat >conftest.$ac_ext <<_ACEOF
17687/* confdefs.h. */
17688_ACEOF
17689cat confdefs.h >>conftest.$ac_ext
17690cat >>conftest.$ac_ext <<_ACEOF
17691/* end confdefs.h. */
17692
17693#include <string.h>
17694#include <openssl/evp.h>
17695int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
17696
17697_ACEOF
17698rm -f conftest.$ac_objext conftest$ac_exeext
17699if { (ac_try="$ac_link"
17700case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703esac
17704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17705$as_echo "$ac_try_echo") >&5
17706 (eval "$ac_link") 2>conftest.er1
17707 ac_status=$?
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
17711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest$ac_exeext && {
17716 test "$cross_compiling" = yes ||
17717 $as_test_x conftest$ac_exeext
17718 }; then
17719
17720 { $as_echo "$as_me:$LINENO: result: no" >&5
17721$as_echo "no" >&6; }
17722
17723else
17724 $as_echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727
17728 { $as_echo "$as_me:$LINENO: result: yes" >&5
17729$as_echo "yes" >&6; }
17730
17731cat >>confdefs.h <<\_ACEOF
17732#define OPENSSL_LOBOTOMISED_AES 1
17733_ACEOF
17734
17735
17736
17737fi
17738
17739rm -rf conftest.dSYM
17740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17741 conftest$ac_exeext conftest.$ac_ext
17742
17743{ $as_echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5
17744$as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
17745cat >conftest.$ac_ext <<_ACEOF
17746/* confdefs.h. */
17747_ACEOF
17748cat confdefs.h >>conftest.$ac_ext
17749cat >>conftest.$ac_ext <<_ACEOF
17750/* end confdefs.h. */
17751
17752#include <string.h>
17753#include <openssl/evp.h>
17754int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
17755
17756_ACEOF
17757rm -f conftest.$ac_objext conftest$ac_exeext
17758if { (ac_try="$ac_link"
17759case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762esac
17763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17764$as_echo "$ac_try_echo") >&5
17765 (eval "$ac_link") 2>conftest.er1
17766 ac_status=$?
17767 grep -v '^ *+' conftest.er1 >conftest.err
17768 rm -f conftest.er1
17769 cat conftest.err >&5
17770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } && {
17772 test -z "$ac_c_werror_flag" ||
17773 test ! -s conftest.err
17774 } && test -s conftest$ac_exeext && {
17775 test "$cross_compiling" = yes ||
17776 $as_test_x conftest$ac_exeext
17777 }; then
17778
17779 { $as_echo "$as_me:$LINENO: result: yes" >&5
17780$as_echo "yes" >&6; }
17781
17782else
17783 $as_echo "$as_me: failed program was:" >&5
17784sed 's/^/| /' conftest.$ac_ext >&5
17785
17786
17787 { $as_echo "$as_me:$LINENO: result: no" >&5
17788$as_echo "no" >&6; }
17789
17790cat >>confdefs.h <<\_ACEOF
17791#define OPENSSL_EVP_DIGESTUPDATE_VOID 1
17792_ACEOF
17793
17794
17795
17796fi
17797
17798rm -rf conftest.dSYM
17799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17800 conftest$ac_exeext conftest.$ac_ext
17801
17802# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
17803# because the system crypt() is more featureful.
17804if test "x$check_for_libcrypt_before" = "x1"; then
17805
17806{ $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17807$as_echo_n "checking for crypt in -lcrypt... " >&6; }
17808if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17809 $as_echo_n "(cached) " >&6
17810else
17811 ac_check_lib_save_LIBS=$LIBS
17812LIBS="-lcrypt $LIBS"
17813cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
17819
17820/* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823#ifdef __cplusplus
17824extern "C"
17825#endif
17826char crypt ();
17827int
17828main ()
17829{
17830return crypt ();
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext conftest$ac_exeext
17836if { (ac_try="$ac_link"
17837case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840esac
17841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842$as_echo "$ac_try_echo") >&5
17843 (eval "$ac_link") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } && {
17850 test -z "$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 } && test -s conftest$ac_exeext && {
17853 test "$cross_compiling" = yes ||
17854 $as_test_x conftest$ac_exeext
17855 }; then
17856 ac_cv_lib_crypt_crypt=yes
17857else
17858 $as_echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
17861 ac_cv_lib_crypt_crypt=no
17862fi
17863
17864rm -rf conftest.dSYM
17865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17866 conftest$ac_exeext conftest.$ac_ext
17867LIBS=$ac_check_lib_save_LIBS
17868fi
17869{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17870$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17871if test $ac_cv_lib_crypt_crypt = yes; then
17872 cat >>confdefs.h <<_ACEOF
17873#define HAVE_LIBCRYPT 1
17874_ACEOF
17875
17876 LIBS="-lcrypt $LIBS"
17877
17878fi
17879
17880fi
17881
17882# Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
17883# version in OpenSSL.
17884if test "x$check_for_libcrypt_later" = "x1"; then
17885 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17886$as_echo_n "checking for crypt in -lcrypt... " >&6; }
17887if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17888 $as_echo_n "(cached) " >&6
17889else
17890 ac_check_lib_save_LIBS=$LIBS
17891LIBS="-lcrypt $LIBS"
17892cat >conftest.$ac_ext <<_ACEOF
17893/* confdefs.h. */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h. */
17898
17899/* Override any GCC internal prototype to avoid an error.
17900 Use char because int might match the return type of a GCC
17901 builtin and then its argument prototype would still apply. */
17902#ifdef __cplusplus
17903extern "C"
17904#endif
17905char crypt ();
17906int
17907main ()
17908{
17909return crypt ();
17910 ;
17911 return 0;
17912}
17913_ACEOF
17914rm -f conftest.$ac_objext conftest$ac_exeext
17915if { (ac_try="$ac_link"
17916case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17919esac
17920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17921$as_echo "$ac_try_echo") >&5
17922 (eval "$ac_link") 2>conftest.er1
17923 ac_status=$?
17924 grep -v '^ *+' conftest.er1 >conftest.err
17925 rm -f conftest.er1
17926 cat conftest.err >&5
17927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } && {
17929 test -z "$ac_c_werror_flag" ||
17930 test ! -s conftest.err
17931 } && test -s conftest$ac_exeext && {
17932 test "$cross_compiling" = yes ||
17933 $as_test_x conftest$ac_exeext
17934 }; then
17935 ac_cv_lib_crypt_crypt=yes
17936else
17937 $as_echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ac_cv_lib_crypt_crypt=no
17941fi
17942
17943rm -rf conftest.dSYM
17944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17945 conftest$ac_exeext conftest.$ac_ext
17946LIBS=$ac_check_lib_save_LIBS
17947fi
17948{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17949$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
17950if test $ac_cv_lib_crypt_crypt = yes; then
17951 LIBS="$LIBS -lcrypt"
17952fi
17953
17954fi
17955
17956# Search for SHA256 support in libc and/or OpenSSL
17957
17958
17959for ac_func in SHA256_Update EVP_sha256
17960do
17961as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17962{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17963$as_echo_n "checking for $ac_func... " >&6; }
17964if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17965 $as_echo_n "(cached) " >&6
17966else
17967 cat >conftest.$ac_ext <<_ACEOF
17968/* confdefs.h. */
17969_ACEOF
17970cat confdefs.h >>conftest.$ac_ext
17971cat >>conftest.$ac_ext <<_ACEOF
17972/* end confdefs.h. */
17973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17975#define $ac_func innocuous_$ac_func
17976
17977/* System header to define __stub macros and hopefully few prototypes,
17978 which can conflict with char $ac_func (); below.
17979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17980 <limits.h> exists even on freestanding compilers. */
17981
17982#ifdef __STDC__
17983# include <limits.h>
17984#else
17985# include <assert.h>
17986#endif
17987
17988#undef $ac_func
17989
17990/* Override any GCC internal prototype to avoid an error.
17991 Use char because int might match the return type of a GCC
17992 builtin and then its argument prototype would still apply. */
17993#ifdef __cplusplus
17994extern "C"
17995#endif
17996char $ac_func ();
17997/* The GNU C library defines this for functions which it implements
17998 to always fail with ENOSYS. Some functions are actually named
17999 something starting with __ and the normal name is an alias. */
18000#if defined __stub_$ac_func || defined __stub___$ac_func
18001choke me
18002#endif
18003
18004int
18005main ()
18006{
18007return $ac_func ();
18008 ;
18009 return 0;
18010}
18011_ACEOF
18012rm -f conftest.$ac_objext conftest$ac_exeext
18013if { (ac_try="$ac_link"
18014case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18017esac
18018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18019$as_echo "$ac_try_echo") >&5
18020 (eval "$ac_link") 2>conftest.er1
18021 ac_status=$?
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
18025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } && {
18027 test -z "$ac_c_werror_flag" ||
18028 test ! -s conftest.err
18029 } && test -s conftest$ac_exeext && {
18030 test "$cross_compiling" = yes ||
18031 $as_test_x conftest$ac_exeext
18032 }; then
18033 eval "$as_ac_var=yes"
18034else
18035 $as_echo "$as_me: failed program was:" >&5
18036sed 's/^/| /' conftest.$ac_ext >&5
18037
18038 eval "$as_ac_var=no"
18039fi
18040
18041rm -rf conftest.dSYM
18042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18044fi
18045ac_res=`eval 'as_val=${'$as_ac_var'}
18046 $as_echo "$as_val"'`
18047 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18048$as_echo "$ac_res" >&6; }
18049if test `eval 'as_val=${'$as_ac_var'}
18050 $as_echo "$as_val"'` = yes; then
18051 cat >>confdefs.h <<_ACEOF
18052#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18053_ACEOF
18054
18055fi
18056done
18057
18058
18059saved_LIBS="$LIBS"
18060{ $as_echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
18061$as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
18062if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then
18063 $as_echo_n "(cached) " >&6
18064else
18065 ac_check_lib_save_LIBS=$LIBS
18066LIBS="-liaf $LIBS"
18067cat >conftest.$ac_ext <<_ACEOF
18068/* confdefs.h. */
18069_ACEOF
18070cat confdefs.h >>conftest.$ac_ext
18071cat >>conftest.$ac_ext <<_ACEOF
18072/* end confdefs.h. */
18073
18074/* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18077#ifdef __cplusplus
18078extern "C"
18079#endif
18080char ia_openinfo ();
18081int
18082main ()
18083{
18084return ia_openinfo ();
18085 ;
18086 return 0;
18087}
18088_ACEOF
18089rm -f conftest.$ac_objext conftest$ac_exeext
18090if { (ac_try="$ac_link"
18091case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094esac
18095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18096$as_echo "$ac_try_echo") >&5
18097 (eval "$ac_link") 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } && {
18104 test -z "$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 } && test -s conftest$ac_exeext && {
18107 test "$cross_compiling" = yes ||
18108 $as_test_x conftest$ac_exeext
18109 }; then
18110 ac_cv_lib_iaf_ia_openinfo=yes
18111else
18112 $as_echo "$as_me: failed program was:" >&5
18113sed 's/^/| /' conftest.$ac_ext >&5
18114
18115 ac_cv_lib_iaf_ia_openinfo=no
18116fi
18117
18118rm -rf conftest.dSYM
18119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18120 conftest$ac_exeext conftest.$ac_ext
18121LIBS=$ac_check_lib_save_LIBS
18122fi
18123{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5
18124$as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
18125if test $ac_cv_lib_iaf_ia_openinfo = yes; then
18126
18127 LIBS="$LIBS -liaf"
18128
18129for ac_func in set_id
18130do
18131as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18132{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18133$as_echo_n "checking for $ac_func... " >&6; }
18134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18135 $as_echo_n "(cached) " >&6
18136else
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145#define $ac_func innocuous_$ac_func
18146
18147/* System header to define __stub macros and hopefully few prototypes,
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18151
18152#ifdef __STDC__
18153# include <limits.h>
18154#else
18155# include <assert.h>
18156#endif
18157
18158#undef $ac_func
18159
18160/* Override any GCC internal prototype to avoid an error.
18161 Use char because int might match the return type of a GCC
18162 builtin and then its argument prototype would still apply. */
18163#ifdef __cplusplus
18164extern "C"
18165#endif
18166char $ac_func ();
18167/* The GNU C library defines this for functions which it implements
18168 to always fail with ENOSYS. Some functions are actually named
18169 something starting with __ and the normal name is an alias. */
18170#if defined __stub_$ac_func || defined __stub___$ac_func
18171choke me
18172#endif
18173
18174int
18175main ()
18176{
18177return $ac_func ();
18178 ;
18179 return 0;
18180}
18181_ACEOF
18182rm -f conftest.$ac_objext conftest$ac_exeext
18183if { (ac_try="$ac_link"
18184case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187esac
18188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18189$as_echo "$ac_try_echo") >&5
18190 (eval "$ac_link") 2>conftest.er1
18191 ac_status=$?
18192 grep -v '^ *+' conftest.er1 >conftest.err
18193 rm -f conftest.er1
18194 cat conftest.err >&5
18195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest$ac_exeext && {
18200 test "$cross_compiling" = yes ||
18201 $as_test_x conftest$ac_exeext
18202 }; then
18203 eval "$as_ac_var=yes"
18204else
18205 $as_echo "$as_me: failed program was:" >&5
18206sed 's/^/| /' conftest.$ac_ext >&5
18207
18208 eval "$as_ac_var=no"
18209fi
18210
18211rm -rf conftest.dSYM
18212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18213 conftest$ac_exeext conftest.$ac_ext
18214fi
18215ac_res=`eval 'as_val=${'$as_ac_var'}
18216 $as_echo "$as_val"'`
18217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18218$as_echo "$ac_res" >&6; }
18219if test `eval 'as_val=${'$as_ac_var'}
18220 $as_echo "$as_val"'` = yes; then
18221 cat >>confdefs.h <<_ACEOF
18222#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18223_ACEOF
18224 SSHDLIBS="$SSHDLIBS -liaf"
18225
18226cat >>confdefs.h <<\_ACEOF
18227#define HAVE_LIBIAF 1
18228_ACEOF
18229
18230
18231fi
18232done
18233
18234
18235fi
18236
18237LIBS="$saved_LIBS"
18238
18239### Configure cryptographic random number support
18240
18241# Check wheter OpenSSL seeds itself
18242{ $as_echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5
18243$as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
18244if test "$cross_compiling" = yes; then
18245
18246 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5
18247$as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
18248 # This is safe, since all recent OpenSSL versions will
18249 # complain at runtime if not seeded correctly.
18250 OPENSSL_SEEDS_ITSELF=yes
18251
18252
18253else
18254 cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260
18261#include <string.h>
18262#include <openssl/rand.h>
18263int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
18264
18265_ACEOF
18266rm -f conftest$ac_exeext
18267if { (ac_try="$ac_link"
18268case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271esac
18272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18273$as_echo "$ac_try_echo") >&5
18274 (eval "$ac_link") 2>&5
18275 ac_status=$?
18276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18283$as_echo "$ac_try_echo") >&5
18284 (eval "$ac_try") 2>&5
18285 ac_status=$?
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288
18289 OPENSSL_SEEDS_ITSELF=yes
18290 { $as_echo "$as_me:$LINENO: result: yes" >&5
18291$as_echo "yes" >&6; }
18292
18293else
18294 $as_echo "$as_me: program exited with status $ac_status" >&5
18295$as_echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298( exit $ac_status )
18299
18300 { $as_echo "$as_me:$LINENO: result: no" >&5
18301$as_echo "no" >&6; }
18302 # Default to use of the rand helper if OpenSSL doesn't
18303 # seed itself
18304 USE_RAND_HELPER=yes
18305
18306fi
18307rm -rf conftest.dSYM
18308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18309fi
18310
18311
18312
18313# Check for PAM libs
18314PAM_MSG="no"
18315
18316# Check whether --with-pam was given.
18317if test "${with_pam+set}" = set; then
18318 withval=$with_pam;
18319 if test "x$withval" != "xno" ; then
18320 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
18321 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
18322 { { $as_echo "$as_me:$LINENO: error: PAM headers not found" >&5
18323$as_echo "$as_me: error: PAM headers not found" >&2;}
18324 { (exit 1); exit 1; }; }
18325 fi
18326
18327 saved_LIBS="$LIBS"
18328
18329{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18330$as_echo_n "checking for dlopen in -ldl... " >&6; }
18331if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18332 $as_echo_n "(cached) " >&6
18333else
18334 ac_check_lib_save_LIBS=$LIBS
18335LIBS="-ldl $LIBS"
18336cat >conftest.$ac_ext <<_ACEOF
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
18341/* end confdefs.h. */
18342
18343/* Override any GCC internal prototype to avoid an error.
18344 Use char because int might match the return type of a GCC
18345 builtin and then its argument prototype would still apply. */
18346#ifdef __cplusplus
18347extern "C"
18348#endif
18349char dlopen ();
18350int
18351main ()
18352{
18353return dlopen ();
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest.$ac_objext conftest$ac_exeext
18359if { (ac_try="$ac_link"
18360case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363esac
18364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18365$as_echo "$ac_try_echo") >&5
18366 (eval "$ac_link") 2>conftest.er1
18367 ac_status=$?
18368 grep -v '^ *+' conftest.er1 >conftest.err
18369 rm -f conftest.er1
18370 cat conftest.err >&5
18371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } && {
18373 test -z "$ac_c_werror_flag" ||
18374 test ! -s conftest.err
18375 } && test -s conftest$ac_exeext && {
18376 test "$cross_compiling" = yes ||
18377 $as_test_x conftest$ac_exeext
18378 }; then
18379 ac_cv_lib_dl_dlopen=yes
18380else
18381 $as_echo "$as_me: failed program was:" >&5
18382sed 's/^/| /' conftest.$ac_ext >&5
18383
18384 ac_cv_lib_dl_dlopen=no
18385fi
18386
18387rm -rf conftest.dSYM
18388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18389 conftest$ac_exeext conftest.$ac_ext
18390LIBS=$ac_check_lib_save_LIBS
18391fi
18392{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18393$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18394if test $ac_cv_lib_dl_dlopen = yes; then
18395 cat >>confdefs.h <<_ACEOF
18396#define HAVE_LIBDL 1
18397_ACEOF
18398
18399 LIBS="-ldl $LIBS"
18400
18401fi
18402
18403
18404{ $as_echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
18405$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
18406if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
18407 $as_echo_n "(cached) " >&6
18408else
18409 ac_check_lib_save_LIBS=$LIBS
18410LIBS="-lpam $LIBS"
18411cat >conftest.$ac_ext <<_ACEOF
18412/* confdefs.h. */
18413_ACEOF
18414cat confdefs.h >>conftest.$ac_ext
18415cat >>conftest.$ac_ext <<_ACEOF
18416/* end confdefs.h. */
18417
18418/* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18421#ifdef __cplusplus
18422extern "C"
18423#endif
18424char pam_set_item ();
18425int
18426main ()
18427{
18428return pam_set_item ();
18429 ;
18430 return 0;
18431}
18432_ACEOF
18433rm -f conftest.$ac_objext conftest$ac_exeext
18434if { (ac_try="$ac_link"
18435case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18440$as_echo "$ac_try_echo") >&5
18441 (eval "$ac_link") 2>conftest.er1
18442 ac_status=$?
18443 grep -v '^ *+' conftest.er1 >conftest.err
18444 rm -f conftest.er1
18445 cat conftest.err >&5
18446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest$ac_exeext && {
18451 test "$cross_compiling" = yes ||
18452 $as_test_x conftest$ac_exeext
18453 }; then
18454 ac_cv_lib_pam_pam_set_item=yes
18455else
18456 $as_echo "$as_me: failed program was:" >&5
18457sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 ac_cv_lib_pam_pam_set_item=no
18460fi
18461
18462rm -rf conftest.dSYM
18463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18464 conftest$ac_exeext conftest.$ac_ext
18465LIBS=$ac_check_lib_save_LIBS
18466fi
18467{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
18468$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
18469if test $ac_cv_lib_pam_pam_set_item = yes; then
18470 cat >>confdefs.h <<_ACEOF
18471#define HAVE_LIBPAM 1
18472_ACEOF
18473
18474 LIBS="-lpam $LIBS"
18475
18476else
18477 { { $as_echo "$as_me:$LINENO: error: *** libpam missing" >&5
18478$as_echo "$as_me: error: *** libpam missing" >&2;}
18479 { (exit 1); exit 1; }; }
18480fi
18481
18482
18483for ac_func in pam_getenvlist
18484do
18485as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18486{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18487$as_echo_n "checking for $ac_func... " >&6; }
18488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18489 $as_echo_n "(cached) " >&6
18490else
18491 cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h. */
18497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18499#define $ac_func innocuous_$ac_func
18500
18501/* System header to define __stub macros and hopefully few prototypes,
18502 which can conflict with char $ac_func (); below.
18503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18504 <limits.h> exists even on freestanding compilers. */
18505
18506#ifdef __STDC__
18507# include <limits.h>
18508#else
18509# include <assert.h>
18510#endif
18511
18512#undef $ac_func
18513
18514/* Override any GCC internal prototype to avoid an error.
18515 Use char because int might match the return type of a GCC
18516 builtin and then its argument prototype would still apply. */
18517#ifdef __cplusplus
18518extern "C"
18519#endif
18520char $ac_func ();
18521/* The GNU C library defines this for functions which it implements
18522 to always fail with ENOSYS. Some functions are actually named
18523 something starting with __ and the normal name is an alias. */
18524#if defined __stub_$ac_func || defined __stub___$ac_func
18525choke me
18526#endif
18527
18528int
18529main ()
18530{
18531return $ac_func ();
18532 ;
18533 return 0;
18534}
18535_ACEOF
18536rm -f conftest.$ac_objext conftest$ac_exeext
18537if { (ac_try="$ac_link"
18538case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18543$as_echo "$ac_try_echo") >&5
18544 (eval "$ac_link") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } && {
18551 test -z "$ac_c_werror_flag" ||
18552 test ! -s conftest.err
18553 } && test -s conftest$ac_exeext && {
18554 test "$cross_compiling" = yes ||
18555 $as_test_x conftest$ac_exeext
18556 }; then
18557 eval "$as_ac_var=yes"
18558else
18559 $as_echo "$as_me: failed program was:" >&5
18560sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 eval "$as_ac_var=no"
18563fi
18564
18565rm -rf conftest.dSYM
18566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567 conftest$ac_exeext conftest.$ac_ext
18568fi
18569ac_res=`eval 'as_val=${'$as_ac_var'}
18570 $as_echo "$as_val"'`
18571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18572$as_echo "$ac_res" >&6; }
18573if test `eval 'as_val=${'$as_ac_var'}
18574 $as_echo "$as_val"'` = yes; then
18575 cat >>confdefs.h <<_ACEOF
18576#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18577_ACEOF
18578
18579fi
18580done
18581
18582
18583for ac_func in pam_putenv
18584do
18585as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18586{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18587$as_echo_n "checking for $ac_func... " >&6; }
18588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18589 $as_echo_n "(cached) " >&6
18590else
18591 cat >conftest.$ac_ext <<_ACEOF
18592/* confdefs.h. */
18593_ACEOF
18594cat confdefs.h >>conftest.$ac_ext
18595cat >>conftest.$ac_ext <<_ACEOF
18596/* end confdefs.h. */
18597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18599#define $ac_func innocuous_$ac_func
18600
18601/* System header to define __stub macros and hopefully few prototypes,
18602 which can conflict with char $ac_func (); below.
18603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604 <limits.h> exists even on freestanding compilers. */
18605
18606#ifdef __STDC__
18607# include <limits.h>
18608#else
18609# include <assert.h>
18610#endif
18611
18612#undef $ac_func
18613
18614/* Override any GCC internal prototype to avoid an error.
18615 Use char because int might match the return type of a GCC
18616 builtin and then its argument prototype would still apply. */
18617#ifdef __cplusplus
18618extern "C"
18619#endif
18620char $ac_func ();
18621/* The GNU C library defines this for functions which it implements
18622 to always fail with ENOSYS. Some functions are actually named
18623 something starting with __ and the normal name is an alias. */
18624#if defined __stub_$ac_func || defined __stub___$ac_func
18625choke me
18626#endif
18627
18628int
18629main ()
18630{
18631return $ac_func ();
18632 ;
18633 return 0;
18634}
18635_ACEOF
18636rm -f conftest.$ac_objext conftest$ac_exeext
18637if { (ac_try="$ac_link"
18638case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641esac
18642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18643$as_echo "$ac_try_echo") >&5
18644 (eval "$ac_link") 2>conftest.er1
18645 ac_status=$?
18646 grep -v '^ *+' conftest.er1 >conftest.err
18647 rm -f conftest.er1
18648 cat conftest.err >&5
18649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } && {
18651 test -z "$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18653 } && test -s conftest$ac_exeext && {
18654 test "$cross_compiling" = yes ||
18655 $as_test_x conftest$ac_exeext
18656 }; then
18657 eval "$as_ac_var=yes"
18658else
18659 $as_echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662 eval "$as_ac_var=no"
18663fi
18664
18665rm -rf conftest.dSYM
18666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18667 conftest$ac_exeext conftest.$ac_ext
18668fi
18669ac_res=`eval 'as_val=${'$as_ac_var'}
18670 $as_echo "$as_val"'`
18671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18672$as_echo "$ac_res" >&6; }
18673if test `eval 'as_val=${'$as_ac_var'}
18674 $as_echo "$as_val"'` = yes; then
18675 cat >>confdefs.h <<_ACEOF
18676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18677_ACEOF
18678
18679fi
18680done
18681
18682 LIBS="$saved_LIBS"
18683
18684 PAM_MSG="yes"
18685
18686 SSHDLIBS="$SSHDLIBS -lpam"
18687
18688cat >>confdefs.h <<\_ACEOF
18689#define USE_PAM 1
18690_ACEOF
18691
18692
18693 if test $ac_cv_lib_dl_dlopen = yes; then
18694 case "$LIBS" in
18695 *-ldl*)
18696 # libdl already in LIBS
18697 ;;
18698 *)
18699 SSHDLIBS="$SSHDLIBS -ldl"
18700 ;;
18701 esac
18702 fi
18703 fi
18704
18705
18706fi
18707
18708
18709# Check for older PAM
18710if test "x$PAM_MSG" = "xyes" ; then
18711 # Check PAM strerror arguments (old PAM)
18712 { $as_echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
18713$as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
18714 cat >conftest.$ac_ext <<_ACEOF
18715/* confdefs.h. */
18716_ACEOF
18717cat confdefs.h >>conftest.$ac_ext
18718cat >>conftest.$ac_ext <<_ACEOF
18719/* end confdefs.h. */
18720
18721#include <stdlib.h>
18722#if defined(HAVE_SECURITY_PAM_APPL_H)
18723#include <security/pam_appl.h>
18724#elif defined (HAVE_PAM_PAM_APPL_H)
18725#include <pam/pam_appl.h>
18726#endif
18727
18728int
18729main ()
18730{
18731(void)pam_strerror((pam_handle_t *)NULL, -1);
18732 ;
18733 return 0;
18734}
18735_ACEOF
18736rm -f conftest.$ac_objext
18737if { (ac_try="$ac_compile"
18738case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18741esac
18742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18743$as_echo "$ac_try_echo") >&5
18744 (eval "$ac_compile") 2>conftest.er1
18745 ac_status=$?
18746 grep -v '^ *+' conftest.er1 >conftest.err
18747 rm -f conftest.er1
18748 cat conftest.err >&5
18749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } && {
18751 test -z "$ac_c_werror_flag" ||
18752 test ! -s conftest.err
18753 } && test -s conftest.$ac_objext; then
18754 { $as_echo "$as_me:$LINENO: result: no" >&5
18755$as_echo "no" >&6; }
18756else
18757 $as_echo "$as_me: failed program was:" >&5
18758sed 's/^/| /' conftest.$ac_ext >&5
18759
18760
18761
18762cat >>confdefs.h <<\_ACEOF
18763#define HAVE_OLD_PAM 1
18764_ACEOF
18765
18766 { $as_echo "$as_me:$LINENO: result: yes" >&5
18767$as_echo "yes" >&6; }
18768 PAM_MSG="yes (old library)"
18769
18770
18771fi
18772
18773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774fi
18775
18776# Do we want to force the use of the rand helper?
18777
18778# Check whether --with-rand-helper was given.
18779if test "${with_rand_helper+set}" = set; then
18780 withval=$with_rand_helper;
18781 if test "x$withval" = "xno" ; then
18782 # Force use of OpenSSL's internal RNG, even if
18783 # the previous test showed it to be unseeded.
18784 if test -z "$OPENSSL_SEEDS_ITSELF" ; then
18785 { $as_echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
18786$as_echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
18787 OPENSSL_SEEDS_ITSELF=yes
18788 USE_RAND_HELPER=""
18789 fi
18790 else
18791 USE_RAND_HELPER=yes
18792 fi
18793
18794fi
18795
18796
18797# Which randomness source do we use?
18798if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
18799 # OpenSSL only
18800
18801cat >>confdefs.h <<\_ACEOF
18802#define OPENSSL_PRNG_ONLY 1
18803_ACEOF
18804
18805 RAND_MSG="OpenSSL internal ONLY"
18806 INSTALL_SSH_RAND_HELPER=""
18807elif test ! -z "$USE_RAND_HELPER" ; then
18808 # install rand helper
18809 RAND_MSG="ssh-rand-helper"
18810 INSTALL_SSH_RAND_HELPER="yes"
18811fi
18812
18813
18814### Configuration of ssh-rand-helper
18815
18816# PRNGD TCP socket
18817
18818# Check whether --with-prngd-port was given.
18819if test "${with_prngd_port+set}" = set; then
18820 withval=$with_prngd_port;
18821 case "$withval" in
18822 no)
18823 withval=""
18824 ;;
18825 [0-9]*)
18826 ;;
18827 *)
18828 { { $as_echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5
18829$as_echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;}
18830 { (exit 1); exit 1; }; }
18831 ;;
18832 esac
18833 if test ! -z "$withval" ; then
18834 PRNGD_PORT="$withval"
18835
18836cat >>confdefs.h <<_ACEOF
18837#define PRNGD_PORT $PRNGD_PORT
18838_ACEOF
18839
18840 fi
18841
18842
18843fi
18844
18845
18846# PRNGD Unix domain socket
18847
18848# Check whether --with-prngd-socket was given.
18849if test "${with_prngd_socket+set}" = set; then
18850 withval=$with_prngd_socket;
18851 case "$withval" in
18852 yes)
18853 withval="/var/run/egd-pool"
18854 ;;
18855 no)
18856 withval=""
18857 ;;
18858 /*)
18859 ;;
18860 *)
18861 { { $as_echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5
18862$as_echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;}
18863 { (exit 1); exit 1; }; }
18864 ;;
18865 esac
18866
18867 if test ! -z "$withval" ; then
18868 if test ! -z "$PRNGD_PORT" ; then
18869 { { $as_echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5
18870$as_echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;}
18871 { (exit 1); exit 1; }; }
18872 fi
18873 if test ! -r "$withval" ; then
18874 { $as_echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5
18875$as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
18876 fi
18877 PRNGD_SOCKET="$withval"
18878
18879cat >>confdefs.h <<_ACEOF
18880#define PRNGD_SOCKET "$PRNGD_SOCKET"
18881_ACEOF
18882
18883 fi
18884
18885else
18886
18887 # Check for existing socket only if we don't have a random device already
18888 if test "$USE_RAND_HELPER" = yes ; then
18889 { $as_echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5
18890$as_echo_n "checking for PRNGD/EGD socket... " >&6; }
18891 # Insert other locations here
18892 for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
18893 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
18894 PRNGD_SOCKET="$sock"
18895 cat >>confdefs.h <<_ACEOF
18896#define PRNGD_SOCKET "$PRNGD_SOCKET"
18897_ACEOF
18898
18899 break;
18900 fi
18901 done
18902 if test ! -z "$PRNGD_SOCKET" ; then
18903 { $as_echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5
18904$as_echo "$PRNGD_SOCKET" >&6; }
18905 else
18906 { $as_echo "$as_me:$LINENO: result: not found" >&5
18907$as_echo "not found" >&6; }
18908 fi
18909 fi
18910
18911
18912fi
18913
18914
18915# Change default command timeout for hashing entropy source
18916entropy_timeout=200
18917
18918# Check whether --with-entropy-timeout was given.
18919if test "${with_entropy_timeout+set}" = set; then
18920 withval=$with_entropy_timeout;
18921 if test -n "$withval" && test "x$withval" != "xno" && \
18922 test "x${withval}" != "xyes"; then
18923 entropy_timeout=$withval
18924 fi
18925
18926
18927fi
18928
18929
18930cat >>confdefs.h <<_ACEOF
18931#define ENTROPY_TIMEOUT_MSEC $entropy_timeout
18932_ACEOF
18933
18934
18935SSH_PRIVSEP_USER=sshd
18936
18937# Check whether --with-privsep-user was given.
18938if test "${with_privsep_user+set}" = set; then
18939 withval=$with_privsep_user;
18940 if test -n "$withval" && test "x$withval" != "xno" && \
18941 test "x${withval}" != "xyes"; then
18942 SSH_PRIVSEP_USER=$withval
18943 fi
18944
18945
18946fi
18947
18948
18949cat >>confdefs.h <<_ACEOF
18950#define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
18951_ACEOF
18952
18953
18954
18955# We do this little dance with the search path to insure
18956# that programs that we select for use by installed programs
18957# (which may be run by the super-user) come from trusted
18958# locations before they come from the user's private area.
18959# This should help avoid accidentally configuring some
18960# random version of a program in someone's personal bin.
18961
18962OPATH=$PATH
18963PATH=/bin:/usr/bin
18964test -h /bin 2> /dev/null && PATH=/usr/bin
18965test -d /sbin && PATH=$PATH:/sbin
18966test -d /usr/sbin && PATH=$PATH:/usr/sbin
18967PATH=$PATH:/etc:$OPATH
18968
18969# These programs are used by the command hashing source to gather entropy
18970
18971 # Extract the first word of "ls", so it can be a program name with args.
18972set dummy ls; ac_word=$2
18973{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18974$as_echo_n "checking for $ac_word... " >&6; }
18975if test "${ac_cv_path_PROG_LS+set}" = set; then
18976 $as_echo_n "(cached) " >&6
18977else
18978 case $PROG_LS in
18979 [\\/]* | ?:[\\/]*)
18980 ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
18981 ;;
18982 *)
18983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18984for as_dir in $PATH
18985do
18986 IFS=$as_save_IFS
18987 test -z "$as_dir" && as_dir=.
18988 for ac_exec_ext in '' $ac_executable_extensions; do
18989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18990 ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
18991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18992 break 2
18993 fi
18994done
18995done
18996IFS=$as_save_IFS
18997
18998 ;;
18999esac
19000fi
19001PROG_LS=$ac_cv_path_PROG_LS
19002if test -n "$PROG_LS"; then
19003 { $as_echo "$as_me:$LINENO: result: $PROG_LS" >&5
19004$as_echo "$PROG_LS" >&6; }
19005else
19006 { $as_echo "$as_me:$LINENO: result: no" >&5
19007$as_echo "no" >&6; }
19008fi
19009
19010
19011 if test -z "$PROG_LS" ; then
19012 PROG_LS="undef"
19013 fi
19014
19015
19016
19017 # Extract the first word of "netstat", so it can be a program name with args.
19018set dummy netstat; ac_word=$2
19019{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19020$as_echo_n "checking for $ac_word... " >&6; }
19021if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then
19022 $as_echo_n "(cached) " >&6
19023else
19024 case $PROG_NETSTAT in
19025 [\\/]* | ?:[\\/]*)
19026 ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
19027 ;;
19028 *)
19029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19030for as_dir in $PATH
19031do
19032 IFS=$as_save_IFS
19033 test -z "$as_dir" && as_dir=.
19034 for ac_exec_ext in '' $ac_executable_extensions; do
19035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19036 ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
19037 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19038 break 2
19039 fi
19040done
19041done
19042IFS=$as_save_IFS
19043
19044 ;;
19045esac
19046fi
19047PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
19048if test -n "$PROG_NETSTAT"; then
19049 { $as_echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5
19050$as_echo "$PROG_NETSTAT" >&6; }
19051else
19052 { $as_echo "$as_me:$LINENO: result: no" >&5
19053$as_echo "no" >&6; }
19054fi
19055
19056
19057 if test -z "$PROG_NETSTAT" ; then
19058 PROG_NETSTAT="undef"
19059 fi
19060
19061
19062
19063 # Extract the first word of "arp", so it can be a program name with args.
19064set dummy arp; ac_word=$2
19065{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19066$as_echo_n "checking for $ac_word... " >&6; }
19067if test "${ac_cv_path_PROG_ARP+set}" = set; then
19068 $as_echo_n "(cached) " >&6
19069else
19070 case $PROG_ARP in
19071 [\\/]* | ?:[\\/]*)
19072 ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
19073 ;;
19074 *)
19075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076for as_dir in $PATH
19077do
19078 IFS=$as_save_IFS
19079 test -z "$as_dir" && as_dir=.
19080 for ac_exec_ext in '' $ac_executable_extensions; do
19081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19082 ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
19083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19084 break 2
19085 fi
19086done
19087done
19088IFS=$as_save_IFS
19089
19090 ;;
19091esac
19092fi
19093PROG_ARP=$ac_cv_path_PROG_ARP
19094if test -n "$PROG_ARP"; then
19095 { $as_echo "$as_me:$LINENO: result: $PROG_ARP" >&5
19096$as_echo "$PROG_ARP" >&6; }
19097else
19098 { $as_echo "$as_me:$LINENO: result: no" >&5
19099$as_echo "no" >&6; }
19100fi
19101
19102
19103 if test -z "$PROG_ARP" ; then
19104 PROG_ARP="undef"
19105 fi
19106
19107
19108
19109 # Extract the first word of "ifconfig", so it can be a program name with args.
19110set dummy ifconfig; ac_word=$2
19111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19112$as_echo_n "checking for $ac_word... " >&6; }
19113if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then
19114 $as_echo_n "(cached) " >&6
19115else
19116 case $PROG_IFCONFIG in
19117 [\\/]* | ?:[\\/]*)
19118 ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
19119 ;;
19120 *)
19121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19122for as_dir in $PATH
19123do
19124 IFS=$as_save_IFS
19125 test -z "$as_dir" && as_dir=.
19126 for ac_exec_ext in '' $ac_executable_extensions; do
19127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19128 ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
19129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19130 break 2
19131 fi
19132done
19133done
19134IFS=$as_save_IFS
19135
19136 ;;
19137esac
19138fi
19139PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
19140if test -n "$PROG_IFCONFIG"; then
19141 { $as_echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5
19142$as_echo "$PROG_IFCONFIG" >&6; }
19143else
19144 { $as_echo "$as_me:$LINENO: result: no" >&5
19145$as_echo "no" >&6; }
19146fi
19147
19148
19149 if test -z "$PROG_IFCONFIG" ; then
19150 PROG_IFCONFIG="undef"
19151 fi
19152
19153
19154
19155 # Extract the first word of "jstat", so it can be a program name with args.
19156set dummy jstat; ac_word=$2
19157{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19158$as_echo_n "checking for $ac_word... " >&6; }
19159if test "${ac_cv_path_PROG_JSTAT+set}" = set; then
19160 $as_echo_n "(cached) " >&6
19161else
19162 case $PROG_JSTAT in
19163 [\\/]* | ?:[\\/]*)
19164 ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
19165 ;;
19166 *)
19167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19168for as_dir in $PATH
19169do
19170 IFS=$as_save_IFS
19171 test -z "$as_dir" && as_dir=.
19172 for ac_exec_ext in '' $ac_executable_extensions; do
19173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19174 ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
19175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19176 break 2
19177 fi
19178done
19179done
19180IFS=$as_save_IFS
19181
19182 ;;
19183esac
19184fi
19185PROG_JSTAT=$ac_cv_path_PROG_JSTAT
19186if test -n "$PROG_JSTAT"; then
19187 { $as_echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5
19188$as_echo "$PROG_JSTAT" >&6; }
19189else
19190 { $as_echo "$as_me:$LINENO: result: no" >&5
19191$as_echo "no" >&6; }
19192fi
19193
19194
19195 if test -z "$PROG_JSTAT" ; then
19196 PROG_JSTAT="undef"
19197 fi
19198
19199
19200
19201 # Extract the first word of "ps", so it can be a program name with args.
19202set dummy ps; ac_word=$2
19203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19204$as_echo_n "checking for $ac_word... " >&6; }
19205if test "${ac_cv_path_PROG_PS+set}" = set; then
19206 $as_echo_n "(cached) " >&6
19207else
19208 case $PROG_PS in
19209 [\\/]* | ?:[\\/]*)
19210 ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
19211 ;;
19212 *)
19213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19214for as_dir in $PATH
19215do
19216 IFS=$as_save_IFS
19217 test -z "$as_dir" && as_dir=.
19218 for ac_exec_ext in '' $ac_executable_extensions; do
19219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19220 ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
19221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19222 break 2
19223 fi
19224done
19225done
19226IFS=$as_save_IFS
19227
19228 ;;
19229esac
19230fi
19231PROG_PS=$ac_cv_path_PROG_PS
19232if test -n "$PROG_PS"; then
19233 { $as_echo "$as_me:$LINENO: result: $PROG_PS" >&5
19234$as_echo "$PROG_PS" >&6; }
19235else
19236 { $as_echo "$as_me:$LINENO: result: no" >&5
19237$as_echo "no" >&6; }
19238fi
19239
19240
19241 if test -z "$PROG_PS" ; then
19242 PROG_PS="undef"
19243 fi
19244
19245
19246
19247 # Extract the first word of "sar", so it can be a program name with args.
19248set dummy sar; ac_word=$2
19249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19250$as_echo_n "checking for $ac_word... " >&6; }
19251if test "${ac_cv_path_PROG_SAR+set}" = set; then
19252 $as_echo_n "(cached) " >&6
19253else
19254 case $PROG_SAR in
19255 [\\/]* | ?:[\\/]*)
19256 ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
19257 ;;
19258 *)
19259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19260for as_dir in $PATH
19261do
19262 IFS=$as_save_IFS
19263 test -z "$as_dir" && as_dir=.
19264 for ac_exec_ext in '' $ac_executable_extensions; do
19265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19266 ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
19267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19268 break 2
19269 fi
19270done
19271done
19272IFS=$as_save_IFS
19273
19274 ;;
19275esac
19276fi
19277PROG_SAR=$ac_cv_path_PROG_SAR
19278if test -n "$PROG_SAR"; then
19279 { $as_echo "$as_me:$LINENO: result: $PROG_SAR" >&5
19280$as_echo "$PROG_SAR" >&6; }
19281else
19282 { $as_echo "$as_me:$LINENO: result: no" >&5
19283$as_echo "no" >&6; }
19284fi
19285
19286
19287 if test -z "$PROG_SAR" ; then
19288 PROG_SAR="undef"
19289 fi
19290
19291
19292
19293 # Extract the first word of "w", so it can be a program name with args.
19294set dummy w; ac_word=$2
19295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19296$as_echo_n "checking for $ac_word... " >&6; }
19297if test "${ac_cv_path_PROG_W+set}" = set; then
19298 $as_echo_n "(cached) " >&6
19299else
19300 case $PROG_W in
19301 [\\/]* | ?:[\\/]*)
19302 ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
19303 ;;
19304 *)
19305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19306for as_dir in $PATH
19307do
19308 IFS=$as_save_IFS
19309 test -z "$as_dir" && as_dir=.
19310 for ac_exec_ext in '' $ac_executable_extensions; do
19311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19312 ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
19313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19314 break 2
19315 fi
19316done
19317done
19318IFS=$as_save_IFS
19319
19320 ;;
19321esac
19322fi
19323PROG_W=$ac_cv_path_PROG_W
19324if test -n "$PROG_W"; then
19325 { $as_echo "$as_me:$LINENO: result: $PROG_W" >&5
19326$as_echo "$PROG_W" >&6; }
19327else
19328 { $as_echo "$as_me:$LINENO: result: no" >&5
19329$as_echo "no" >&6; }
19330fi
19331
19332
19333 if test -z "$PROG_W" ; then
19334 PROG_W="undef"
19335 fi
19336
19337
19338
19339 # Extract the first word of "who", so it can be a program name with args.
19340set dummy who; ac_word=$2
19341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19342$as_echo_n "checking for $ac_word... " >&6; }
19343if test "${ac_cv_path_PROG_WHO+set}" = set; then
19344 $as_echo_n "(cached) " >&6
19345else
19346 case $PROG_WHO in
19347 [\\/]* | ?:[\\/]*)
19348 ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
19349 ;;
19350 *)
19351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19352for as_dir in $PATH
19353do
19354 IFS=$as_save_IFS
19355 test -z "$as_dir" && as_dir=.
19356 for ac_exec_ext in '' $ac_executable_extensions; do
19357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19358 ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
19359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19360 break 2
19361 fi
19362done
19363done
19364IFS=$as_save_IFS
19365
19366 ;;
19367esac
19368fi
19369PROG_WHO=$ac_cv_path_PROG_WHO
19370if test -n "$PROG_WHO"; then
19371 { $as_echo "$as_me:$LINENO: result: $PROG_WHO" >&5
19372$as_echo "$PROG_WHO" >&6; }
19373else
19374 { $as_echo "$as_me:$LINENO: result: no" >&5
19375$as_echo "no" >&6; }
19376fi
19377
19378
19379 if test -z "$PROG_WHO" ; then
19380 PROG_WHO="undef"
19381 fi
19382
19383
19384
19385 # Extract the first word of "last", so it can be a program name with args.
19386set dummy last; ac_word=$2
19387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19388$as_echo_n "checking for $ac_word... " >&6; }
19389if test "${ac_cv_path_PROG_LAST+set}" = set; then
19390 $as_echo_n "(cached) " >&6
19391else
19392 case $PROG_LAST in
19393 [\\/]* | ?:[\\/]*)
19394 ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
19395 ;;
19396 *)
19397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19398for as_dir in $PATH
19399do
19400 IFS=$as_save_IFS
19401 test -z "$as_dir" && as_dir=.
19402 for ac_exec_ext in '' $ac_executable_extensions; do
19403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19404 ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
19405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19406 break 2
19407 fi
19408done
19409done
19410IFS=$as_save_IFS
19411
19412 ;;
19413esac
19414fi
19415PROG_LAST=$ac_cv_path_PROG_LAST
19416if test -n "$PROG_LAST"; then
19417 { $as_echo "$as_me:$LINENO: result: $PROG_LAST" >&5
19418$as_echo "$PROG_LAST" >&6; }
19419else
19420 { $as_echo "$as_me:$LINENO: result: no" >&5
19421$as_echo "no" >&6; }
19422fi
19423
19424
19425 if test -z "$PROG_LAST" ; then
19426 PROG_LAST="undef"
19427 fi
19428
19429
19430
19431 # Extract the first word of "lastlog", so it can be a program name with args.
19432set dummy lastlog; ac_word=$2
19433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19434$as_echo_n "checking for $ac_word... " >&6; }
19435if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then
19436 $as_echo_n "(cached) " >&6
19437else
19438 case $PROG_LASTLOG in
19439 [\\/]* | ?:[\\/]*)
19440 ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
19441 ;;
19442 *)
19443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19444for as_dir in $PATH
19445do
19446 IFS=$as_save_IFS
19447 test -z "$as_dir" && as_dir=.
19448 for ac_exec_ext in '' $ac_executable_extensions; do
19449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19450 ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
19451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19452 break 2
19453 fi
19454done
19455done
19456IFS=$as_save_IFS
19457
19458 ;;
19459esac
19460fi
19461PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
19462if test -n "$PROG_LASTLOG"; then
19463 { $as_echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5
19464$as_echo "$PROG_LASTLOG" >&6; }
19465else
19466 { $as_echo "$as_me:$LINENO: result: no" >&5
19467$as_echo "no" >&6; }
19468fi
19469
19470
19471 if test -z "$PROG_LASTLOG" ; then
19472 PROG_LASTLOG="undef"
19473 fi
19474
19475
19476
19477 # Extract the first word of "df", so it can be a program name with args.
19478set dummy df; ac_word=$2
19479{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19480$as_echo_n "checking for $ac_word... " >&6; }
19481if test "${ac_cv_path_PROG_DF+set}" = set; then
19482 $as_echo_n "(cached) " >&6
19483else
19484 case $PROG_DF in
19485 [\\/]* | ?:[\\/]*)
19486 ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
19487 ;;
19488 *)
19489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19490for as_dir in $PATH
19491do
19492 IFS=$as_save_IFS
19493 test -z "$as_dir" && as_dir=.
19494 for ac_exec_ext in '' $ac_executable_extensions; do
19495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19496 ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
19497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19498 break 2
19499 fi
19500done
19501done
19502IFS=$as_save_IFS
19503
19504 ;;
19505esac
19506fi
19507PROG_DF=$ac_cv_path_PROG_DF
19508if test -n "$PROG_DF"; then
19509 { $as_echo "$as_me:$LINENO: result: $PROG_DF" >&5
19510$as_echo "$PROG_DF" >&6; }
19511else
19512 { $as_echo "$as_me:$LINENO: result: no" >&5
19513$as_echo "no" >&6; }
19514fi
19515
19516
19517 if test -z "$PROG_DF" ; then
19518 PROG_DF="undef"
19519 fi
19520
19521
19522
19523 # Extract the first word of "vmstat", so it can be a program name with args.
19524set dummy vmstat; ac_word=$2
19525{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19526$as_echo_n "checking for $ac_word... " >&6; }
19527if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then
19528 $as_echo_n "(cached) " >&6
19529else
19530 case $PROG_VMSTAT in
19531 [\\/]* | ?:[\\/]*)
19532 ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
19533 ;;
19534 *)
19535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19536for as_dir in $PATH
19537do
19538 IFS=$as_save_IFS
19539 test -z "$as_dir" && as_dir=.
19540 for ac_exec_ext in '' $ac_executable_extensions; do
19541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19542 ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
19543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19544 break 2
19545 fi
19546done
19547done
19548IFS=$as_save_IFS
19549
19550 ;;
19551esac
19552fi
19553PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
19554if test -n "$PROG_VMSTAT"; then
19555 { $as_echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5
19556$as_echo "$PROG_VMSTAT" >&6; }
19557else
19558 { $as_echo "$as_me:$LINENO: result: no" >&5
19559$as_echo "no" >&6; }
19560fi
19561
19562
19563 if test -z "$PROG_VMSTAT" ; then
19564 PROG_VMSTAT="undef"
19565 fi
19566
19567
19568
19569 # Extract the first word of "uptime", so it can be a program name with args.
19570set dummy uptime; ac_word=$2
19571{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19572$as_echo_n "checking for $ac_word... " >&6; }
19573if test "${ac_cv_path_PROG_UPTIME+set}" = set; then
19574 $as_echo_n "(cached) " >&6
19575else
19576 case $PROG_UPTIME in
19577 [\\/]* | ?:[\\/]*)
19578 ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
19579 ;;
19580 *)
19581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19582for as_dir in $PATH
19583do
19584 IFS=$as_save_IFS
19585 test -z "$as_dir" && as_dir=.
19586 for ac_exec_ext in '' $ac_executable_extensions; do
19587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19588 ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
19589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19590 break 2
19591 fi
19592done
19593done
19594IFS=$as_save_IFS
19595
19596 ;;
19597esac
19598fi
19599PROG_UPTIME=$ac_cv_path_PROG_UPTIME
19600if test -n "$PROG_UPTIME"; then
19601 { $as_echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5
19602$as_echo "$PROG_UPTIME" >&6; }
19603else
19604 { $as_echo "$as_me:$LINENO: result: no" >&5
19605$as_echo "no" >&6; }
19606fi
19607
19608
19609 if test -z "$PROG_UPTIME" ; then
19610 PROG_UPTIME="undef"
19611 fi
19612
19613
19614
19615 # Extract the first word of "ipcs", so it can be a program name with args.
19616set dummy ipcs; ac_word=$2
19617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19618$as_echo_n "checking for $ac_word... " >&6; }
19619if test "${ac_cv_path_PROG_IPCS+set}" = set; then
19620 $as_echo_n "(cached) " >&6
19621else
19622 case $PROG_IPCS in
19623 [\\/]* | ?:[\\/]*)
19624 ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
19625 ;;
19626 *)
19627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19628for as_dir in $PATH
19629do
19630 IFS=$as_save_IFS
19631 test -z "$as_dir" && as_dir=.
19632 for ac_exec_ext in '' $ac_executable_extensions; do
19633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19634 ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
19635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19636 break 2
19637 fi
19638done
19639done
19640IFS=$as_save_IFS
19641
19642 ;;
19643esac
19644fi
19645PROG_IPCS=$ac_cv_path_PROG_IPCS
19646if test -n "$PROG_IPCS"; then
19647 { $as_echo "$as_me:$LINENO: result: $PROG_IPCS" >&5
19648$as_echo "$PROG_IPCS" >&6; }
19649else
19650 { $as_echo "$as_me:$LINENO: result: no" >&5
19651$as_echo "no" >&6; }
19652fi
19653
19654
19655 if test -z "$PROG_IPCS" ; then
19656 PROG_IPCS="undef"
19657 fi
19658
19659
19660
19661 # Extract the first word of "tail", so it can be a program name with args.
19662set dummy tail; ac_word=$2
19663{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19664$as_echo_n "checking for $ac_word... " >&6; }
19665if test "${ac_cv_path_PROG_TAIL+set}" = set; then
19666 $as_echo_n "(cached) " >&6
19667else
19668 case $PROG_TAIL in
19669 [\\/]* | ?:[\\/]*)
19670 ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
19671 ;;
19672 *)
19673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19674for as_dir in $PATH
19675do
19676 IFS=$as_save_IFS
19677 test -z "$as_dir" && as_dir=.
19678 for ac_exec_ext in '' $ac_executable_extensions; do
19679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19680 ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
19681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19682 break 2
19683 fi
19684done
19685done
19686IFS=$as_save_IFS
19687
19688 ;;
19689esac
19690fi
19691PROG_TAIL=$ac_cv_path_PROG_TAIL
19692if test -n "$PROG_TAIL"; then
19693 { $as_echo "$as_me:$LINENO: result: $PROG_TAIL" >&5
19694$as_echo "$PROG_TAIL" >&6; }
19695else
19696 { $as_echo "$as_me:$LINENO: result: no" >&5
19697$as_echo "no" >&6; }
19698fi
19699
19700
19701 if test -z "$PROG_TAIL" ; then
19702 PROG_TAIL="undef"
19703 fi
19704
19705
19706# restore PATH
19707PATH=$OPATH
19708
19709# Where does ssh-rand-helper get its randomness from?
19710INSTALL_SSH_PRNG_CMDS=""
19711if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
19712 if test ! -z "$PRNGD_PORT" ; then
19713 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
19714 elif test ! -z "$PRNGD_SOCKET" ; then
19715 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
19716 else
19717 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
19718 RAND_HELPER_CMDHASH=yes
19719 INSTALL_SSH_PRNG_CMDS="yes"
19720 fi
19721fi
19722
19723
19724
19725# Cheap hack to ensure NEWS-OS libraries are arranged right.
19726if test ! -z "$SONY" ; then
19727 LIBS="$LIBS -liberty";
19728fi
19729
19730# Check for long long datatypes
19731{ $as_echo "$as_me:$LINENO: checking for long long" >&5
19732$as_echo_n "checking for long long... " >&6; }
19733if test "${ac_cv_type_long_long+set}" = set; then
19734 $as_echo_n "(cached) " >&6
19735else
19736 ac_cv_type_long_long=no
19737cat >conftest.$ac_ext <<_ACEOF
19738/* confdefs.h. */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
19742/* end confdefs.h. */
19743$ac_includes_default
19744int
19745main ()
19746{
19747if (sizeof (long long))
19748 return 0;
19749 ;
19750 return 0;
19751}
19752_ACEOF
19753rm -f conftest.$ac_objext
19754if { (ac_try="$ac_compile"
19755case "(($ac_try" in
19756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757 *) ac_try_echo=$ac_try;;
19758esac
19759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19760$as_echo "$ac_try_echo") >&5
19761 (eval "$ac_compile") 2>conftest.er1
19762 ac_status=$?
19763 grep -v '^ *+' conftest.er1 >conftest.err
19764 rm -f conftest.er1
19765 cat conftest.err >&5
19766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } && {
19768 test -z "$ac_c_werror_flag" ||
19769 test ! -s conftest.err
19770 } && test -s conftest.$ac_objext; then
19771 cat >conftest.$ac_ext <<_ACEOF
19772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
19777$ac_includes_default
19778int
19779main ()
19780{
19781if (sizeof ((long long)))
19782 return 0;
19783 ;
19784 return 0;
19785}
19786_ACEOF
19787rm -f conftest.$ac_objext
19788if { (ac_try="$ac_compile"
19789case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19792esac
19793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19794$as_echo "$ac_try_echo") >&5
19795 (eval "$ac_compile") 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } && {
19802 test -z "$ac_c_werror_flag" ||
19803 test ! -s conftest.err
19804 } && test -s conftest.$ac_objext; then
19805 :
19806else
19807 $as_echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810 ac_cv_type_long_long=yes
19811fi
19812
19813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19814else
19815 $as_echo "$as_me: failed program was:" >&5
19816sed 's/^/| /' conftest.$ac_ext >&5
19817
19818
19819fi
19820
19821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19822fi
19823{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19824$as_echo "$ac_cv_type_long_long" >&6; }
19825if test $ac_cv_type_long_long = yes; then
19826
19827cat >>confdefs.h <<_ACEOF
19828#define HAVE_LONG_LONG 1
19829_ACEOF
19830
19831
19832fi
19833{ $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
19834$as_echo_n "checking for unsigned long long... " >&6; }
19835if test "${ac_cv_type_unsigned_long_long+set}" = set; then
19836 $as_echo_n "(cached) " >&6
19837else
19838 ac_cv_type_unsigned_long_long=no
19839cat >conftest.$ac_ext <<_ACEOF
19840/* confdefs.h. */
19841_ACEOF
19842cat confdefs.h >>conftest.$ac_ext
19843cat >>conftest.$ac_ext <<_ACEOF
19844/* end confdefs.h. */
19845$ac_includes_default
19846int
19847main ()
19848{
19849if (sizeof (unsigned long long))
19850 return 0;
19851 ;
19852 return 0;
19853}
19854_ACEOF
19855rm -f conftest.$ac_objext
19856if { (ac_try="$ac_compile"
19857case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860esac
19861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19862$as_echo "$ac_try_echo") >&5
19863 (eval "$ac_compile") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest.$ac_objext; then
19873 cat >conftest.$ac_ext <<_ACEOF
19874/* confdefs.h. */
19875_ACEOF
19876cat confdefs.h >>conftest.$ac_ext
19877cat >>conftest.$ac_ext <<_ACEOF
19878/* end confdefs.h. */
19879$ac_includes_default
19880int
19881main ()
19882{
19883if (sizeof ((unsigned long long)))
19884 return 0;
19885 ;
19886 return 0;
19887}
19888_ACEOF
19889rm -f conftest.$ac_objext
19890if { (ac_try="$ac_compile"
19891case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894esac
19895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19896$as_echo "$ac_try_echo") >&5
19897 (eval "$ac_compile") 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } && {
19904 test -z "$ac_c_werror_flag" ||
19905 test ! -s conftest.err
19906 } && test -s conftest.$ac_objext; then
19907 :
19908else
19909 $as_echo "$as_me: failed program was:" >&5
19910sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ac_cv_type_unsigned_long_long=yes
19913fi
19914
19915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916else
19917 $as_echo "$as_me: failed program was:" >&5
19918sed 's/^/| /' conftest.$ac_ext >&5
19919
19920
19921fi
19922
19923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19924fi
19925{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
19926$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19927if test $ac_cv_type_unsigned_long_long = yes; then
19928
19929cat >>confdefs.h <<_ACEOF
19930#define HAVE_UNSIGNED_LONG_LONG 1
19931_ACEOF
19932
19933
19934fi
19935{ $as_echo "$as_me:$LINENO: checking for long double" >&5
19936$as_echo_n "checking for long double... " >&6; }
19937if test "${ac_cv_type_long_double+set}" = set; then
19938 $as_echo_n "(cached) " >&6
19939else
19940 ac_cv_type_long_double=no
19941cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h. */
19947$ac_includes_default
19948int
19949main ()
19950{
19951if (sizeof (long double))
19952 return 0;
19953 ;
19954 return 0;
19955}
19956_ACEOF
19957rm -f conftest.$ac_objext
19958if { (ac_try="$ac_compile"
19959case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962esac
19963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19964$as_echo "$ac_try_echo") >&5
19965 (eval "$ac_compile") 2>conftest.er1
19966 ac_status=$?
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.$ac_objext; then
19975 cat >conftest.$ac_ext <<_ACEOF
19976/* confdefs.h. */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
19980/* end confdefs.h. */
19981$ac_includes_default
19982int
19983main ()
19984{
19985if (sizeof ((long double)))
19986 return 0;
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext
19992if { (ac_try="$ac_compile"
19993case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996esac
19997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19998$as_echo "$ac_try_echo") >&5
19999 (eval "$ac_compile") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest.$ac_objext; then
20009 :
20010else
20011 $as_echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_cv_type_long_double=yes
20015fi
20016
20017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018else
20019 $as_echo "$as_me: failed program was:" >&5
20020sed 's/^/| /' conftest.$ac_ext >&5
20021
20022
20023fi
20024
20025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026fi
20027{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20028$as_echo "$ac_cv_type_long_double" >&6; }
20029if test $ac_cv_type_long_double = yes; then
20030
20031cat >>confdefs.h <<_ACEOF
20032#define HAVE_LONG_DOUBLE 1
20033_ACEOF
20034
20035
20036fi
20037
20038
20039# Check datatype sizes
20040# The cast to long int works around a bug in the HP C Compiler
20041# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20042# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20043# This bug is HP SR number 8606223364.
20044{ $as_echo "$as_me:$LINENO: checking size of char" >&5
20045$as_echo_n "checking size of char... " >&6; }
20046if test "${ac_cv_sizeof_char+set}" = set; then
20047 $as_echo_n "(cached) " >&6
20048else
20049 if test "$cross_compiling" = yes; then
20050 # Depending upon the size, compute the lo and hi bounds.
20051cat >conftest.$ac_ext <<_ACEOF
20052/* confdefs.h. */
20053_ACEOF
20054cat confdefs.h >>conftest.$ac_ext
20055cat >>conftest.$ac_ext <<_ACEOF
20056/* end confdefs.h. */
20057$ac_includes_default
20058int
20059main ()
20060{
20061static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
20062test_array [0] = 0
20063
20064 ;
20065 return 0;
20066}
20067_ACEOF
20068rm -f conftest.$ac_objext
20069if { (ac_try="$ac_compile"
20070case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20073esac
20074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20075$as_echo "$ac_try_echo") >&5
20076 (eval "$ac_compile") 2>conftest.er1
20077 ac_status=$?
20078 grep -v '^ *+' conftest.er1 >conftest.err
20079 rm -f conftest.er1
20080 cat conftest.err >&5
20081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } && {
20083 test -z "$ac_c_werror_flag" ||
20084 test ! -s conftest.err
20085 } && test -s conftest.$ac_objext; then
20086 ac_lo=0 ac_mid=0
20087 while :; do
20088 cat >conftest.$ac_ext <<_ACEOF
20089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
20094$ac_includes_default
20095int
20096main ()
20097{
20098static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20099test_array [0] = 0
20100
20101 ;
20102 return 0;
20103}
20104_ACEOF
20105rm -f conftest.$ac_objext
20106if { (ac_try="$ac_compile"
20107case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20110esac
20111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20112$as_echo "$ac_try_echo") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && {
20120 test -z "$ac_c_werror_flag" ||
20121 test ! -s conftest.err
20122 } && test -s conftest.$ac_objext; then
20123 ac_hi=$ac_mid; break
20124else
20125 $as_echo "$as_me: failed program was:" >&5
20126sed 's/^/| /' conftest.$ac_ext >&5
20127
20128 ac_lo=`expr $ac_mid + 1`
20129 if test $ac_lo -le $ac_mid; then
20130 ac_lo= ac_hi=
20131 break
20132 fi
20133 ac_mid=`expr 2 '*' $ac_mid + 1`
20134fi
20135
20136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137 done
20138else
20139 $as_echo "$as_me: failed program was:" >&5
20140sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 cat >conftest.$ac_ext <<_ACEOF
20143/* confdefs.h. */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
20147/* end confdefs.h. */
20148$ac_includes_default
20149int
20150main ()
20151{
20152static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
20153test_array [0] = 0
20154
20155 ;
20156 return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (ac_try="$ac_compile"
20161case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20164esac
20165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20166$as_echo "$ac_try_echo") >&5
20167 (eval "$ac_compile") 2>conftest.er1
20168 ac_status=$?
20169 grep -v '^ *+' conftest.er1 >conftest.err
20170 rm -f conftest.er1
20171 cat conftest.err >&5
20172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); } && {
20174 test -z "$ac_c_werror_flag" ||
20175 test ! -s conftest.err
20176 } && test -s conftest.$ac_objext; then
20177 ac_hi=-1 ac_mid=-1
20178 while :; do
20179 cat >conftest.$ac_ext <<_ACEOF
20180/* confdefs.h. */
20181_ACEOF
20182cat confdefs.h >>conftest.$ac_ext
20183cat >>conftest.$ac_ext <<_ACEOF
20184/* end confdefs.h. */
20185$ac_includes_default
20186int
20187main ()
20188{
20189static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
20190test_array [0] = 0
20191
20192 ;
20193 return 0;
20194}
20195_ACEOF
20196rm -f conftest.$ac_objext
20197if { (ac_try="$ac_compile"
20198case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20201esac
20202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20203$as_echo "$ac_try_echo") >&5
20204 (eval "$ac_compile") 2>conftest.er1
20205 ac_status=$?
20206 grep -v '^ *+' conftest.er1 >conftest.err
20207 rm -f conftest.er1
20208 cat conftest.err >&5
20209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } && {
20211 test -z "$ac_c_werror_flag" ||
20212 test ! -s conftest.err
20213 } && test -s conftest.$ac_objext; then
20214 ac_lo=$ac_mid; break
20215else
20216 $as_echo "$as_me: failed program was:" >&5
20217sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ac_hi=`expr '(' $ac_mid ')' - 1`
20220 if test $ac_mid -le $ac_hi; then
20221 ac_lo= ac_hi=
20222 break
20223 fi
20224 ac_mid=`expr 2 '*' $ac_mid`
20225fi
20226
20227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 done
20229else
20230 $as_echo "$as_me: failed program was:" >&5
20231sed 's/^/| /' conftest.$ac_ext >&5
20232
20233 ac_lo= ac_hi=
20234fi
20235
20236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20237fi
20238
20239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240# Binary search between lo and hi bounds.
20241while test "x$ac_lo" != "x$ac_hi"; do
20242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20243 cat >conftest.$ac_ext <<_ACEOF
20244/* confdefs.h. */
20245_ACEOF
20246cat confdefs.h >>conftest.$ac_ext
20247cat >>conftest.$ac_ext <<_ACEOF
20248/* end confdefs.h. */
20249$ac_includes_default
20250int
20251main ()
20252{
20253static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
20254test_array [0] = 0
20255
20256 ;
20257 return 0;
20258}
20259_ACEOF
20260rm -f conftest.$ac_objext
20261if { (ac_try="$ac_compile"
20262case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265esac
20266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20267$as_echo "$ac_try_echo") >&5
20268 (eval "$ac_compile") 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } && {
20275 test -z "$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20277 } && test -s conftest.$ac_objext; then
20278 ac_hi=$ac_mid
20279else
20280 $as_echo "$as_me: failed program was:" >&5
20281sed 's/^/| /' conftest.$ac_ext >&5
20282
20283 ac_lo=`expr '(' $ac_mid ')' + 1`
20284fi
20285
20286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20287done
20288case $ac_lo in
20289?*) ac_cv_sizeof_char=$ac_lo;;
20290'') if test "$ac_cv_type_char" = yes; then
20291 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20292See \`config.log' for more details." >&5
20293$as_echo "$as_me: error: cannot compute sizeof (char)
20294See \`config.log' for more details." >&2;}
20295 { (exit 77); exit 77; }; }
20296 else
20297 ac_cv_sizeof_char=0
20298 fi ;;
20299esac
20300else
20301 cat >conftest.$ac_ext <<_ACEOF
20302/* confdefs.h. */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h. */
20307$ac_includes_default
20308static long int longval () { return (long int) (sizeof (char)); }
20309static unsigned long int ulongval () { return (long int) (sizeof (char)); }
20310#include <stdio.h>
20311#include <stdlib.h>
20312int
20313main ()
20314{
20315
20316 FILE *f = fopen ("conftest.val", "w");
20317 if (! f)
20318 return 1;
20319 if (((long int) (sizeof (char))) < 0)
20320 {
20321 long int i = longval ();
20322 if (i != ((long int) (sizeof (char))))
20323 return 1;
20324 fprintf (f, "%ld", i);
20325 }
20326 else
20327 {
20328 unsigned long int i = ulongval ();
20329 if (i != ((long int) (sizeof (char))))
20330 return 1;
20331 fprintf (f, "%lu", i);
20332 }
20333 /* Do not output a trailing newline, as this causes \r\n confusion
20334 on some platforms. */
20335 return ferror (f) || fclose (f) != 0;
20336
20337 ;
20338 return 0;
20339}
20340_ACEOF
20341rm -f conftest$ac_exeext
20342if { (ac_try="$ac_link"
20343case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20346esac
20347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20348$as_echo "$ac_try_echo") >&5
20349 (eval "$ac_link") 2>&5
20350 ac_status=$?
20351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356esac
20357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20358$as_echo "$ac_try_echo") >&5
20359 (eval "$ac_try") 2>&5
20360 ac_status=$?
20361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; }; then
20363 ac_cv_sizeof_char=`cat conftest.val`
20364else
20365 $as_echo "$as_me: program exited with status $ac_status" >&5
20366$as_echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
20369( exit $ac_status )
20370if test "$ac_cv_type_char" = yes; then
20371 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
20372See \`config.log' for more details." >&5
20373$as_echo "$as_me: error: cannot compute sizeof (char)
20374See \`config.log' for more details." >&2;}
20375 { (exit 77); exit 77; }; }
20376 else
20377 ac_cv_sizeof_char=0
20378 fi
20379fi
20380rm -rf conftest.dSYM
20381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20382fi
20383rm -f conftest.val
20384fi
20385{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
20386$as_echo "$ac_cv_sizeof_char" >&6; }
20387
20388
20389
20390cat >>confdefs.h <<_ACEOF
20391#define SIZEOF_CHAR $ac_cv_sizeof_char
20392_ACEOF
20393
20394
20395# The cast to long int works around a bug in the HP C Compiler
20396# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20397# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20398# This bug is HP SR number 8606223364.
20399{ $as_echo "$as_me:$LINENO: checking size of short int" >&5
20400$as_echo_n "checking size of short int... " >&6; }
20401if test "${ac_cv_sizeof_short_int+set}" = set; then
20402 $as_echo_n "(cached) " >&6
20403else
20404 if test "$cross_compiling" = yes; then
20405 # Depending upon the size, compute the lo and hi bounds.
20406cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h. */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h. */
20412$ac_includes_default
20413int
20414main ()
20415{
20416static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)];
20417test_array [0] = 0
20418
20419 ;
20420 return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext
20424if { (ac_try="$ac_compile"
20425case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428esac
20429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20430$as_echo "$ac_try_echo") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20432 ac_status=$?
20433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
20436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_lo=0 ac_mid=0
20442 while :; do
20443 cat >conftest.$ac_ext <<_ACEOF
20444/* confdefs.h. */
20445_ACEOF
20446cat confdefs.h >>conftest.$ac_ext
20447cat >>conftest.$ac_ext <<_ACEOF
20448/* end confdefs.h. */
20449$ac_includes_default
20450int
20451main ()
20452{
20453static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
20454test_array [0] = 0
20455
20456 ;
20457 return 0;
20458}
20459_ACEOF
20460rm -f conftest.$ac_objext
20461if { (ac_try="$ac_compile"
20462case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465esac
20466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20467$as_echo "$ac_try_echo") >&5
20468 (eval "$ac_compile") 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest.$ac_objext; then
20478 ac_hi=$ac_mid; break
20479else
20480 $as_echo "$as_me: failed program was:" >&5
20481sed 's/^/| /' conftest.$ac_ext >&5
20482
20483 ac_lo=`expr $ac_mid + 1`
20484 if test $ac_lo -le $ac_mid; then
20485 ac_lo= ac_hi=
20486 break
20487 fi
20488 ac_mid=`expr 2 '*' $ac_mid + 1`
20489fi
20490
20491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20492 done
20493else
20494 $as_echo "$as_me: failed program was:" >&5
20495sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 cat >conftest.$ac_ext <<_ACEOF
20498/* confdefs.h. */
20499_ACEOF
20500cat confdefs.h >>conftest.$ac_ext
20501cat >>conftest.$ac_ext <<_ACEOF
20502/* end confdefs.h. */
20503$ac_includes_default
20504int
20505main ()
20506{
20507static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)];
20508test_array [0] = 0
20509
20510 ;
20511 return 0;
20512}
20513_ACEOF
20514rm -f conftest.$ac_objext
20515if { (ac_try="$ac_compile"
20516case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519esac
20520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20521$as_echo "$ac_try_echo") >&5
20522 (eval "$ac_compile") 2>conftest.er1
20523 ac_status=$?
20524 grep -v '^ *+' conftest.er1 >conftest.err
20525 rm -f conftest.er1
20526 cat conftest.err >&5
20527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest.$ac_objext; then
20532 ac_hi=-1 ac_mid=-1
20533 while :; do
20534 cat >conftest.$ac_ext <<_ACEOF
20535/* confdefs.h. */
20536_ACEOF
20537cat confdefs.h >>conftest.$ac_ext
20538cat >>conftest.$ac_ext <<_ACEOF
20539/* end confdefs.h. */
20540$ac_includes_default
20541int
20542main ()
20543{
20544static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)];
20545test_array [0] = 0
20546
20547 ;
20548 return 0;
20549}
20550_ACEOF
20551rm -f conftest.$ac_objext
20552if { (ac_try="$ac_compile"
20553case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556esac
20557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558$as_echo "$ac_try_echo") >&5
20559 (eval "$ac_compile") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest.$ac_objext; then
20569 ac_lo=$ac_mid; break
20570else
20571 $as_echo "$as_me: failed program was:" >&5
20572sed 's/^/| /' conftest.$ac_ext >&5
20573
20574 ac_hi=`expr '(' $ac_mid ')' - 1`
20575 if test $ac_mid -le $ac_hi; then
20576 ac_lo= ac_hi=
20577 break
20578 fi
20579 ac_mid=`expr 2 '*' $ac_mid`
20580fi
20581
20582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 done
20584else
20585 $as_echo "$as_me: failed program was:" >&5
20586sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_lo= ac_hi=
20589fi
20590
20591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592fi
20593
20594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20595# Binary search between lo and hi bounds.
20596while test "x$ac_lo" != "x$ac_hi"; do
20597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20598 cat >conftest.$ac_ext <<_ACEOF
20599/* confdefs.h. */
20600_ACEOF
20601cat confdefs.h >>conftest.$ac_ext
20602cat >>conftest.$ac_ext <<_ACEOF
20603/* end confdefs.h. */
20604$ac_includes_default
20605int
20606main ()
20607{
20608static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)];
20609test_array [0] = 0
20610
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (ac_try="$ac_compile"
20617case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620esac
20621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20622$as_echo "$ac_try_echo") >&5
20623 (eval "$ac_compile") 2>conftest.er1
20624 ac_status=$?
20625 grep -v '^ *+' conftest.er1 >conftest.err
20626 rm -f conftest.er1
20627 cat conftest.err >&5
20628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); } && {
20630 test -z "$ac_c_werror_flag" ||
20631 test ! -s conftest.err
20632 } && test -s conftest.$ac_objext; then
20633 ac_hi=$ac_mid
20634else
20635 $as_echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638 ac_lo=`expr '(' $ac_mid ')' + 1`
20639fi
20640
20641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642done
20643case $ac_lo in
20644?*) ac_cv_sizeof_short_int=$ac_lo;;
20645'') if test "$ac_cv_type_short_int" = yes; then
20646 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
20647See \`config.log' for more details." >&5
20648$as_echo "$as_me: error: cannot compute sizeof (short int)
20649See \`config.log' for more details." >&2;}
20650 { (exit 77); exit 77; }; }
20651 else
20652 ac_cv_sizeof_short_int=0
20653 fi ;;
20654esac
20655else
20656 cat >conftest.$ac_ext <<_ACEOF
20657/* confdefs.h. */
20658_ACEOF
20659cat confdefs.h >>conftest.$ac_ext
20660cat >>conftest.$ac_ext <<_ACEOF
20661/* end confdefs.h. */
20662$ac_includes_default
20663static long int longval () { return (long int) (sizeof (short int)); }
20664static unsigned long int ulongval () { return (long int) (sizeof (short int)); }
20665#include <stdio.h>
20666#include <stdlib.h>
20667int
20668main ()
20669{
20670
20671 FILE *f = fopen ("conftest.val", "w");
20672 if (! f)
20673 return 1;
20674 if (((long int) (sizeof (short int))) < 0)
20675 {
20676 long int i = longval ();
20677 if (i != ((long int) (sizeof (short int))))
20678 return 1;
20679 fprintf (f, "%ld", i);
20680 }
20681 else
20682 {
20683 unsigned long int i = ulongval ();
20684 if (i != ((long int) (sizeof (short int))))
20685 return 1;
20686 fprintf (f, "%lu", i);
20687 }
20688 /* Do not output a trailing newline, as this causes \r\n confusion
20689 on some platforms. */
20690 return ferror (f) || fclose (f) != 0;
20691
20692 ;
20693 return 0;
20694}
20695_ACEOF
20696rm -f conftest$ac_exeext
20697if { (ac_try="$ac_link"
20698case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20701esac
20702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20703$as_echo "$ac_try_echo") >&5
20704 (eval "$ac_link") 2>&5
20705 ac_status=$?
20706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20708 { (case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20711esac
20712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20713$as_echo "$ac_try_echo") >&5
20714 (eval "$ac_try") 2>&5
20715 ac_status=$?
20716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 ac_cv_sizeof_short_int=`cat conftest.val`
20719else
20720 $as_echo "$as_me: program exited with status $ac_status" >&5
20721$as_echo "$as_me: failed program was:" >&5
20722sed 's/^/| /' conftest.$ac_ext >&5
20723
20724( exit $ac_status )
20725if test "$ac_cv_type_short_int" = yes; then
20726 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
20727See \`config.log' for more details." >&5
20728$as_echo "$as_me: error: cannot compute sizeof (short int)
20729See \`config.log' for more details." >&2;}
20730 { (exit 77); exit 77; }; }
20731 else
20732 ac_cv_sizeof_short_int=0
20733 fi
20734fi
20735rm -rf conftest.dSYM
20736rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20737fi
20738rm -f conftest.val
20739fi
20740{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
20741$as_echo "$ac_cv_sizeof_short_int" >&6; }
20742
20743
20744
20745cat >>confdefs.h <<_ACEOF
20746#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
20747_ACEOF
20748
20749
20750# The cast to long int works around a bug in the HP C Compiler
20751# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20752# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20753# This bug is HP SR number 8606223364.
20754{ $as_echo "$as_me:$LINENO: checking size of int" >&5
20755$as_echo_n "checking size of int... " >&6; }
20756if test "${ac_cv_sizeof_int+set}" = set; then
20757 $as_echo_n "(cached) " >&6
20758else
20759 if test "$cross_compiling" = yes; then
20760 # Depending upon the size, compute the lo and hi bounds.
20761cat >conftest.$ac_ext <<_ACEOF
20762/* confdefs.h. */
20763_ACEOF
20764cat confdefs.h >>conftest.$ac_ext
20765cat >>conftest.$ac_ext <<_ACEOF
20766/* end confdefs.h. */
20767$ac_includes_default
20768int
20769main ()
20770{
20771static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
20772test_array [0] = 0
20773
20774 ;
20775 return 0;
20776}
20777_ACEOF
20778rm -f conftest.$ac_objext
20779if { (ac_try="$ac_compile"
20780case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20783esac
20784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20785$as_echo "$ac_try_echo") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20787 ac_status=$?
20788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
20791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest.$ac_objext; then
20796 ac_lo=0 ac_mid=0
20797 while :; do
20798 cat >conftest.$ac_ext <<_ACEOF
20799/* confdefs.h. */
20800_ACEOF
20801cat confdefs.h >>conftest.$ac_ext
20802cat >>conftest.$ac_ext <<_ACEOF
20803/* end confdefs.h. */
20804$ac_includes_default
20805int
20806main ()
20807{
20808static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20809test_array [0] = 0
20810
20811 ;
20812 return 0;
20813}
20814_ACEOF
20815rm -f conftest.$ac_objext
20816if { (ac_try="$ac_compile"
20817case "(($ac_try" in
20818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819 *) ac_try_echo=$ac_try;;
20820esac
20821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20822$as_echo "$ac_try_echo") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest.$ac_objext; then
20833 ac_hi=$ac_mid; break
20834else
20835 $as_echo "$as_me: failed program was:" >&5
20836sed 's/^/| /' conftest.$ac_ext >&5
20837
20838 ac_lo=`expr $ac_mid + 1`
20839 if test $ac_lo -le $ac_mid; then
20840 ac_lo= ac_hi=
20841 break
20842 fi
20843 ac_mid=`expr 2 '*' $ac_mid + 1`
20844fi
20845
20846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20847 done
20848else
20849 $as_echo "$as_me: failed program was:" >&5
20850sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h. */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h. */
20858$ac_includes_default
20859int
20860main ()
20861{
20862static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
20863test_array [0] = 0
20864
20865 ;
20866 return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext
20870if { (ac_try="$ac_compile"
20871case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874esac
20875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20876$as_echo "$ac_try_echo") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20878 ac_status=$?
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
20882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest.$ac_objext; then
20887 ac_hi=-1 ac_mid=-1
20888 while :; do
20889 cat >conftest.$ac_ext <<_ACEOF
20890/* confdefs.h. */
20891_ACEOF
20892cat confdefs.h >>conftest.$ac_ext
20893cat >>conftest.$ac_ext <<_ACEOF
20894/* end confdefs.h. */
20895$ac_includes_default
20896int
20897main ()
20898{
20899static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
20900test_array [0] = 0
20901
20902 ;
20903 return 0;
20904}
20905_ACEOF
20906rm -f conftest.$ac_objext
20907if { (ac_try="$ac_compile"
20908case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20911esac
20912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20913$as_echo "$ac_try_echo") >&5
20914 (eval "$ac_compile") 2>conftest.er1
20915 ac_status=$?
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
20919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
20924 ac_lo=$ac_mid; break
20925else
20926 $as_echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
20929 ac_hi=`expr '(' $ac_mid ')' - 1`
20930 if test $ac_mid -le $ac_hi; then
20931 ac_lo= ac_hi=
20932 break
20933 fi
20934 ac_mid=`expr 2 '*' $ac_mid`
20935fi
20936
20937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938 done
20939else
20940 $as_echo "$as_me: failed program was:" >&5
20941sed 's/^/| /' conftest.$ac_ext >&5
20942
20943 ac_lo= ac_hi=
20944fi
20945
20946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20947fi
20948
20949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950# Binary search between lo and hi bounds.
20951while test "x$ac_lo" != "x$ac_hi"; do
20952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20953 cat >conftest.$ac_ext <<_ACEOF
20954/* confdefs.h. */
20955_ACEOF
20956cat confdefs.h >>conftest.$ac_ext
20957cat >>conftest.$ac_ext <<_ACEOF
20958/* end confdefs.h. */
20959$ac_includes_default
20960int
20961main ()
20962{
20963static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
20964test_array [0] = 0
20965
20966 ;
20967 return 0;
20968}
20969_ACEOF
20970rm -f conftest.$ac_objext
20971if { (ac_try="$ac_compile"
20972case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975esac
20976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20977$as_echo "$ac_try_echo") >&5
20978 (eval "$ac_compile") 2>conftest.er1
20979 ac_status=$?
20980 grep -v '^ *+' conftest.er1 >conftest.err
20981 rm -f conftest.er1
20982 cat conftest.err >&5
20983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && {
20985 test -z "$ac_c_werror_flag" ||
20986 test ! -s conftest.err
20987 } && test -s conftest.$ac_objext; then
20988 ac_hi=$ac_mid
20989else
20990 $as_echo "$as_me: failed program was:" >&5
20991sed 's/^/| /' conftest.$ac_ext >&5
20992
20993 ac_lo=`expr '(' $ac_mid ')' + 1`
20994fi
20995
20996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20997done
20998case $ac_lo in
20999?*) ac_cv_sizeof_int=$ac_lo;;
21000'') if test "$ac_cv_type_int" = yes; then
21001 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21002See \`config.log' for more details." >&5
21003$as_echo "$as_me: error: cannot compute sizeof (int)
21004See \`config.log' for more details." >&2;}
21005 { (exit 77); exit 77; }; }
21006 else
21007 ac_cv_sizeof_int=0
21008 fi ;;
21009esac
21010else
21011 cat >conftest.$ac_ext <<_ACEOF
21012/* confdefs.h. */
21013_ACEOF
21014cat confdefs.h >>conftest.$ac_ext
21015cat >>conftest.$ac_ext <<_ACEOF
21016/* end confdefs.h. */
21017$ac_includes_default
21018static long int longval () { return (long int) (sizeof (int)); }
21019static unsigned long int ulongval () { return (long int) (sizeof (int)); }
21020#include <stdio.h>
21021#include <stdlib.h>
21022int
21023main ()
21024{
21025
21026 FILE *f = fopen ("conftest.val", "w");
21027 if (! f)
21028 return 1;
21029 if (((long int) (sizeof (int))) < 0)
21030 {
21031 long int i = longval ();
21032 if (i != ((long int) (sizeof (int))))
21033 return 1;
21034 fprintf (f, "%ld", i);
21035 }
21036 else
21037 {
21038 unsigned long int i = ulongval ();
21039 if (i != ((long int) (sizeof (int))))
21040 return 1;
21041 fprintf (f, "%lu", i);
21042 }
21043 /* Do not output a trailing newline, as this causes \r\n confusion
21044 on some platforms. */
21045 return ferror (f) || fclose (f) != 0;
21046
21047 ;
21048 return 0;
21049}
21050_ACEOF
21051rm -f conftest$ac_exeext
21052if { (ac_try="$ac_link"
21053case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056esac
21057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21058$as_echo "$ac_try_echo") >&5
21059 (eval "$ac_link") 2>&5
21060 ac_status=$?
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21063 { (case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066esac
21067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21068$as_echo "$ac_try_echo") >&5
21069 (eval "$ac_try") 2>&5
21070 ac_status=$?
21071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ac_cv_sizeof_int=`cat conftest.val`
21074else
21075 $as_echo "$as_me: program exited with status $ac_status" >&5
21076$as_echo "$as_me: failed program was:" >&5
21077sed 's/^/| /' conftest.$ac_ext >&5
21078
21079( exit $ac_status )
21080if test "$ac_cv_type_int" = yes; then
21081 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21082See \`config.log' for more details." >&5
21083$as_echo "$as_me: error: cannot compute sizeof (int)
21084See \`config.log' for more details." >&2;}
21085 { (exit 77); exit 77; }; }
21086 else
21087 ac_cv_sizeof_int=0
21088 fi
21089fi
21090rm -rf conftest.dSYM
21091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21092fi
21093rm -f conftest.val
21094fi
21095{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21096$as_echo "$ac_cv_sizeof_int" >&6; }
21097
21098
21099
21100cat >>confdefs.h <<_ACEOF
21101#define SIZEOF_INT $ac_cv_sizeof_int
21102_ACEOF
21103
21104
21105# The cast to long int works around a bug in the HP C Compiler
21106# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21107# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21108# This bug is HP SR number 8606223364.
21109{ $as_echo "$as_me:$LINENO: checking size of long int" >&5
21110$as_echo_n "checking size of long int... " >&6; }
21111if test "${ac_cv_sizeof_long_int+set}" = set; then
21112 $as_echo_n "(cached) " >&6
21113else
21114 if test "$cross_compiling" = yes; then
21115 # Depending upon the size, compute the lo and hi bounds.
21116cat >conftest.$ac_ext <<_ACEOF
21117/* confdefs.h. */
21118_ACEOF
21119cat confdefs.h >>conftest.$ac_ext
21120cat >>conftest.$ac_ext <<_ACEOF
21121/* end confdefs.h. */
21122$ac_includes_default
21123int
21124main ()
21125{
21126static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)];
21127test_array [0] = 0
21128
21129 ;
21130 return 0;
21131}
21132_ACEOF
21133rm -f conftest.$ac_objext
21134if { (ac_try="$ac_compile"
21135case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138esac
21139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21140$as_echo "$ac_try_echo") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21151 ac_lo=0 ac_mid=0
21152 while :; do
21153 cat >conftest.$ac_ext <<_ACEOF
21154/* confdefs.h. */
21155_ACEOF
21156cat confdefs.h >>conftest.$ac_ext
21157cat >>conftest.$ac_ext <<_ACEOF
21158/* end confdefs.h. */
21159$ac_includes_default
21160int
21161main ()
21162{
21163static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
21164test_array [0] = 0
21165
21166 ;
21167 return 0;
21168}
21169_ACEOF
21170rm -f conftest.$ac_objext
21171if { (ac_try="$ac_compile"
21172case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21175esac
21176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21177$as_echo "$ac_try_echo") >&5
21178 (eval "$ac_compile") 2>conftest.er1
21179 ac_status=$?
21180 grep -v '^ *+' conftest.er1 >conftest.err
21181 rm -f conftest.er1
21182 cat conftest.err >&5
21183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } && {
21185 test -z "$ac_c_werror_flag" ||
21186 test ! -s conftest.err
21187 } && test -s conftest.$ac_objext; then
21188 ac_hi=$ac_mid; break
21189else
21190 $as_echo "$as_me: failed program was:" >&5
21191sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ac_lo=`expr $ac_mid + 1`
21194 if test $ac_lo -le $ac_mid; then
21195 ac_lo= ac_hi=
21196 break
21197 fi
21198 ac_mid=`expr 2 '*' $ac_mid + 1`
21199fi
21200
21201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21202 done
21203else
21204 $as_echo "$as_me: failed program was:" >&5
21205sed 's/^/| /' conftest.$ac_ext >&5
21206
21207 cat >conftest.$ac_ext <<_ACEOF
21208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h. */
21213$ac_includes_default
21214int
21215main ()
21216{
21217static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)];
21218test_array [0] = 0
21219
21220 ;
21221 return 0;
21222}
21223_ACEOF
21224rm -f conftest.$ac_objext
21225if { (ac_try="$ac_compile"
21226case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229esac
21230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21231$as_echo "$ac_try_echo") >&5
21232 (eval "$ac_compile") 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest.$ac_objext; then
21242 ac_hi=-1 ac_mid=-1
21243 while :; do
21244 cat >conftest.$ac_ext <<_ACEOF
21245/* confdefs.h. */
21246_ACEOF
21247cat confdefs.h >>conftest.$ac_ext
21248cat >>conftest.$ac_ext <<_ACEOF
21249/* end confdefs.h. */
21250$ac_includes_default
21251int
21252main ()
21253{
21254static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)];
21255test_array [0] = 0
21256
21257 ;
21258 return 0;
21259}
21260_ACEOF
21261rm -f conftest.$ac_objext
21262if { (ac_try="$ac_compile"
21263case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266esac
21267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21268$as_echo "$ac_try_echo") >&5
21269 (eval "$ac_compile") 2>conftest.er1
21270 ac_status=$?
21271 grep -v '^ *+' conftest.er1 >conftest.err
21272 rm -f conftest.er1
21273 cat conftest.err >&5
21274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); } && {
21276 test -z "$ac_c_werror_flag" ||
21277 test ! -s conftest.err
21278 } && test -s conftest.$ac_objext; then
21279 ac_lo=$ac_mid; break
21280else
21281 $as_echo "$as_me: failed program was:" >&5
21282sed 's/^/| /' conftest.$ac_ext >&5
21283
21284 ac_hi=`expr '(' $ac_mid ')' - 1`
21285 if test $ac_mid -le $ac_hi; then
21286 ac_lo= ac_hi=
21287 break
21288 fi
21289 ac_mid=`expr 2 '*' $ac_mid`
21290fi
21291
21292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 done
21294else
21295 $as_echo "$as_me: failed program was:" >&5
21296sed 's/^/| /' conftest.$ac_ext >&5
21297
21298 ac_lo= ac_hi=
21299fi
21300
21301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302fi
21303
21304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305# Binary search between lo and hi bounds.
21306while test "x$ac_lo" != "x$ac_hi"; do
21307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21308 cat >conftest.$ac_ext <<_ACEOF
21309/* confdefs.h. */
21310_ACEOF
21311cat confdefs.h >>conftest.$ac_ext
21312cat >>conftest.$ac_ext <<_ACEOF
21313/* end confdefs.h. */
21314$ac_includes_default
21315int
21316main ()
21317{
21318static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)];
21319test_array [0] = 0
21320
21321 ;
21322 return 0;
21323}
21324_ACEOF
21325rm -f conftest.$ac_objext
21326if { (ac_try="$ac_compile"
21327case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330esac
21331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21332$as_echo "$ac_try_echo") >&5
21333 (eval "$ac_compile") 2>conftest.er1
21334 ac_status=$?
21335 grep -v '^ *+' conftest.er1 >conftest.err
21336 rm -f conftest.er1
21337 cat conftest.err >&5
21338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest.$ac_objext; then
21343 ac_hi=$ac_mid
21344else
21345 $as_echo "$as_me: failed program was:" >&5
21346sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ac_lo=`expr '(' $ac_mid ')' + 1`
21349fi
21350
21351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352done
21353case $ac_lo in
21354?*) ac_cv_sizeof_long_int=$ac_lo;;
21355'') if test "$ac_cv_type_long_int" = yes; then
21356 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
21357See \`config.log' for more details." >&5
21358$as_echo "$as_me: error: cannot compute sizeof (long int)
21359See \`config.log' for more details." >&2;}
21360 { (exit 77); exit 77; }; }
21361 else
21362 ac_cv_sizeof_long_int=0
21363 fi ;;
21364esac
21365else
21366 cat >conftest.$ac_ext <<_ACEOF
21367/* confdefs.h. */
21368_ACEOF
21369cat confdefs.h >>conftest.$ac_ext
21370cat >>conftest.$ac_ext <<_ACEOF
21371/* end confdefs.h. */
21372$ac_includes_default
21373static long int longval () { return (long int) (sizeof (long int)); }
21374static unsigned long int ulongval () { return (long int) (sizeof (long int)); }
21375#include <stdio.h>
21376#include <stdlib.h>
21377int
21378main ()
21379{
21380
21381 FILE *f = fopen ("conftest.val", "w");
21382 if (! f)
21383 return 1;
21384 if (((long int) (sizeof (long int))) < 0)
21385 {
21386 long int i = longval ();
21387 if (i != ((long int) (sizeof (long int))))
21388 return 1;
21389 fprintf (f, "%ld", i);
21390 }
21391 else
21392 {
21393 unsigned long int i = ulongval ();
21394 if (i != ((long int) (sizeof (long int))))
21395 return 1;
21396 fprintf (f, "%lu", i);
21397 }
21398 /* Do not output a trailing newline, as this causes \r\n confusion
21399 on some platforms. */
21400 return ferror (f) || fclose (f) != 0;
21401
21402 ;
21403 return 0;
21404}
21405_ACEOF
21406rm -f conftest$ac_exeext
21407if { (ac_try="$ac_link"
21408case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411esac
21412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21413$as_echo "$ac_try_echo") >&5
21414 (eval "$ac_link") 2>&5
21415 ac_status=$?
21416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21418 { (case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21421esac
21422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21423$as_echo "$ac_try_echo") >&5
21424 (eval "$ac_try") 2>&5
21425 ac_status=$?
21426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 ac_cv_sizeof_long_int=`cat conftest.val`
21429else
21430 $as_echo "$as_me: program exited with status $ac_status" >&5
21431$as_echo "$as_me: failed program was:" >&5
21432sed 's/^/| /' conftest.$ac_ext >&5
21433
21434( exit $ac_status )
21435if test "$ac_cv_type_long_int" = yes; then
21436 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
21437See \`config.log' for more details." >&5
21438$as_echo "$as_me: error: cannot compute sizeof (long int)
21439See \`config.log' for more details." >&2;}
21440 { (exit 77); exit 77; }; }
21441 else
21442 ac_cv_sizeof_long_int=0
21443 fi
21444fi
21445rm -rf conftest.dSYM
21446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21447fi
21448rm -f conftest.val
21449fi
21450{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
21451$as_echo "$ac_cv_sizeof_long_int" >&6; }
21452
21453
21454
21455cat >>confdefs.h <<_ACEOF
21456#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
21457_ACEOF
21458
21459
21460# The cast to long int works around a bug in the HP C Compiler
21461# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21462# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21463# This bug is HP SR number 8606223364.
21464{ $as_echo "$as_me:$LINENO: checking size of long long int" >&5
21465$as_echo_n "checking size of long long int... " >&6; }
21466if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21467 $as_echo_n "(cached) " >&6
21468else
21469 if test "$cross_compiling" = yes; then
21470 # Depending upon the size, compute the lo and hi bounds.
21471cat >conftest.$ac_ext <<_ACEOF
21472/* confdefs.h. */
21473_ACEOF
21474cat confdefs.h >>conftest.$ac_ext
21475cat >>conftest.$ac_ext <<_ACEOF
21476/* end confdefs.h. */
21477$ac_includes_default
21478int
21479main ()
21480{
21481static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)];
21482test_array [0] = 0
21483
21484 ;
21485 return 0;
21486}
21487_ACEOF
21488rm -f conftest.$ac_objext
21489if { (ac_try="$ac_compile"
21490case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21493esac
21494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21495$as_echo "$ac_try_echo") >&5
21496 (eval "$ac_compile") 2>conftest.er1
21497 ac_status=$?
21498 grep -v '^ *+' conftest.er1 >conftest.err
21499 rm -f conftest.er1
21500 cat conftest.err >&5
21501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest.$ac_objext; then
21506 ac_lo=0 ac_mid=0
21507 while :; do
21508 cat >conftest.$ac_ext <<_ACEOF
21509/* confdefs.h. */
21510_ACEOF
21511cat confdefs.h >>conftest.$ac_ext
21512cat >>conftest.$ac_ext <<_ACEOF
21513/* end confdefs.h. */
21514$ac_includes_default
21515int
21516main ()
21517{
21518static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
21519test_array [0] = 0
21520
21521 ;
21522 return 0;
21523}
21524_ACEOF
21525rm -f conftest.$ac_objext
21526if { (ac_try="$ac_compile"
21527case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530esac
21531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21532$as_echo "$ac_try_echo") >&5
21533 (eval "$ac_compile") 2>conftest.er1
21534 ac_status=$?
21535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
21538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } && {
21540 test -z "$ac_c_werror_flag" ||
21541 test ! -s conftest.err
21542 } && test -s conftest.$ac_objext; then
21543 ac_hi=$ac_mid; break
21544else
21545 $as_echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548 ac_lo=`expr $ac_mid + 1`
21549 if test $ac_lo -le $ac_mid; then
21550 ac_lo= ac_hi=
21551 break
21552 fi
21553 ac_mid=`expr 2 '*' $ac_mid + 1`
21554fi
21555
21556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 done
21558else
21559 $as_echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 cat >conftest.$ac_ext <<_ACEOF
21563/* confdefs.h. */
21564_ACEOF
21565cat confdefs.h >>conftest.$ac_ext
21566cat >>conftest.$ac_ext <<_ACEOF
21567/* end confdefs.h. */
21568$ac_includes_default
21569int
21570main ()
21571{
21572static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)];
21573test_array [0] = 0
21574
21575 ;
21576 return 0;
21577}
21578_ACEOF
21579rm -f conftest.$ac_objext
21580if { (ac_try="$ac_compile"
21581case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584esac
21585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21586$as_echo "$ac_try_echo") >&5
21587 (eval "$ac_compile") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest.$ac_objext; then
21597 ac_hi=-1 ac_mid=-1
21598 while :; do
21599 cat >conftest.$ac_ext <<_ACEOF
21600/* confdefs.h. */
21601_ACEOF
21602cat confdefs.h >>conftest.$ac_ext
21603cat >>conftest.$ac_ext <<_ACEOF
21604/* end confdefs.h. */
21605$ac_includes_default
21606int
21607main ()
21608{
21609static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)];
21610test_array [0] = 0
21611
21612 ;
21613 return 0;
21614}
21615_ACEOF
21616rm -f conftest.$ac_objext
21617if { (ac_try="$ac_compile"
21618case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621esac
21622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21623$as_echo "$ac_try_echo") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21625 ac_status=$?
21626 grep -v '^ *+' conftest.er1 >conftest.err
21627 rm -f conftest.er1
21628 cat conftest.err >&5
21629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.$ac_objext; then
21634 ac_lo=$ac_mid; break
21635else
21636 $as_echo "$as_me: failed program was:" >&5
21637sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ac_hi=`expr '(' $ac_mid ')' - 1`
21640 if test $ac_mid -le $ac_hi; then
21641 ac_lo= ac_hi=
21642 break
21643 fi
21644 ac_mid=`expr 2 '*' $ac_mid`
21645fi
21646
21647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 done
21649else
21650 $as_echo "$as_me: failed program was:" >&5
21651sed 's/^/| /' conftest.$ac_ext >&5
21652
21653 ac_lo= ac_hi=
21654fi
21655
21656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21657fi
21658
21659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660# Binary search between lo and hi bounds.
21661while test "x$ac_lo" != "x$ac_hi"; do
21662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21663 cat >conftest.$ac_ext <<_ACEOF
21664/* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
21669$ac_includes_default
21670int
21671main ()
21672{
21673static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)];
21674test_array [0] = 0
21675
21676 ;
21677 return 0;
21678}
21679_ACEOF
21680rm -f conftest.$ac_objext
21681if { (ac_try="$ac_compile"
21682case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21685esac
21686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21687$as_echo "$ac_try_echo") >&5
21688 (eval "$ac_compile") 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest.$ac_objext; then
21698 ac_hi=$ac_mid
21699else
21700 $as_echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_lo=`expr '(' $ac_mid ')' + 1`
21704fi
21705
21706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707done
21708case $ac_lo in
21709?*) ac_cv_sizeof_long_long_int=$ac_lo;;
21710'') if test "$ac_cv_type_long_long_int" = yes; then
21711 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21712See \`config.log' for more details." >&5
21713$as_echo "$as_me: error: cannot compute sizeof (long long int)
21714See \`config.log' for more details." >&2;}
21715 { (exit 77); exit 77; }; }
21716 else
21717 ac_cv_sizeof_long_long_int=0
21718 fi ;;
21719esac
21720else
21721 cat >conftest.$ac_ext <<_ACEOF
21722/* confdefs.h. */
21723_ACEOF
21724cat confdefs.h >>conftest.$ac_ext
21725cat >>conftest.$ac_ext <<_ACEOF
21726/* end confdefs.h. */
21727$ac_includes_default
21728static long int longval () { return (long int) (sizeof (long long int)); }
21729static unsigned long int ulongval () { return (long int) (sizeof (long long int)); }
21730#include <stdio.h>
21731#include <stdlib.h>
21732int
21733main ()
21734{
21735
21736 FILE *f = fopen ("conftest.val", "w");
21737 if (! f)
21738 return 1;
21739 if (((long int) (sizeof (long long int))) < 0)
21740 {
21741 long int i = longval ();
21742 if (i != ((long int) (sizeof (long long int))))
21743 return 1;
21744 fprintf (f, "%ld", i);
21745 }
21746 else
21747 {
21748 unsigned long int i = ulongval ();
21749 if (i != ((long int) (sizeof (long long int))))
21750 return 1;
21751 fprintf (f, "%lu", i);
21752 }
21753 /* Do not output a trailing newline, as this causes \r\n confusion
21754 on some platforms. */
21755 return ferror (f) || fclose (f) != 0;
21756
21757 ;
21758 return 0;
21759}
21760_ACEOF
21761rm -f conftest$ac_exeext
21762if { (ac_try="$ac_link"
21763case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21766esac
21767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21768$as_echo "$ac_try_echo") >&5
21769 (eval "$ac_link") 2>&5
21770 ac_status=$?
21771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21773 { (case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776esac
21777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21778$as_echo "$ac_try_echo") >&5
21779 (eval "$ac_try") 2>&5
21780 ac_status=$?
21781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21783 ac_cv_sizeof_long_long_int=`cat conftest.val`
21784else
21785 $as_echo "$as_me: program exited with status $ac_status" >&5
21786$as_echo "$as_me: failed program was:" >&5
21787sed 's/^/| /' conftest.$ac_ext >&5
21788
21789( exit $ac_status )
21790if test "$ac_cv_type_long_long_int" = yes; then
21791 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
21792See \`config.log' for more details." >&5
21793$as_echo "$as_me: error: cannot compute sizeof (long long int)
21794See \`config.log' for more details." >&2;}
21795 { (exit 77); exit 77; }; }
21796 else
21797 ac_cv_sizeof_long_long_int=0
21798 fi
21799fi
21800rm -rf conftest.dSYM
21801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21802fi
21803rm -f conftest.val
21804fi
21805{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
21806$as_echo "$ac_cv_sizeof_long_long_int" >&6; }
21807
21808
21809
21810cat >>confdefs.h <<_ACEOF
21811#define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
21812_ACEOF
21813
21814
21815
21816# Sanity check long long for some platforms (AIX)
21817if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
21818 ac_cv_sizeof_long_long_int=0
21819fi
21820
21821# compute LLONG_MIN and LLONG_MAX if we don't know them.
21822if test -z "$have_llong_max"; then
21823 { $as_echo "$as_me:$LINENO: checking for max value of long long" >&5
21824$as_echo_n "checking for max value of long long... " >&6; }
21825 if test "$cross_compiling" = yes; then
21826
21827 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5
21828$as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
21829
21830
21831else
21832 cat >conftest.$ac_ext <<_ACEOF
21833/* confdefs.h. */
21834_ACEOF
21835cat confdefs.h >>conftest.$ac_ext
21836cat >>conftest.$ac_ext <<_ACEOF
21837/* end confdefs.h. */
21838
21839#include <stdio.h>
21840/* Why is this so damn hard? */
21841#ifdef __GNUC__
21842# undef __GNUC__
21843#endif
21844#define __USE_ISOC99
21845#include <limits.h>
21846#define DATA "conftest.llminmax"
21847#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
21848
21849/*
21850 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
21851 * we do this the hard way.
21852 */
21853static int
21854fprint_ll(FILE *f, long long n)
21855{
21856 unsigned int i;
21857 int l[sizeof(long long) * 8];
21858
21859 if (n < 0)
21860 if (fprintf(f, "-") < 0)
21861 return -1;
21862 for (i = 0; n != 0; i++) {
21863 l[i] = my_abs(n % 10);
21864 n /= 10;
21865 }
21866 do {
21867 if (fprintf(f, "%d", l[--i]) < 0)
21868 return -1;
21869 } while (i != 0);
21870 if (fprintf(f, " ") < 0)
21871 return -1;
21872 return 0;
21873}
21874
21875int main(void) {
21876 FILE *f;
21877 long long i, llmin, llmax = 0;
21878
21879 if((f = fopen(DATA,"w")) == NULL)
21880 exit(1);
21881
21882#if defined(LLONG_MIN) && defined(LLONG_MAX)
21883 fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
21884 llmin = LLONG_MIN;
21885 llmax = LLONG_MAX;
21886#else
21887 fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n");
21888 /* This will work on one's complement and two's complement */
21889 for (i = 1; i > llmax; i <<= 1, i++)
21890 llmax = i;
21891 llmin = llmax + 1LL; /* wrap */
21892#endif
21893
21894 /* Sanity check */
21895 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
21896 || llmax - 1 > llmax || llmin == llmax || llmin == 0
21897 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
21898 fprintf(f, "unknown unknown\n");
21899 exit(2);
21900 }
21901
21902 if (fprint_ll(f, llmin) < 0)
21903 exit(3);
21904 if (fprint_ll(f, llmax) < 0)
21905 exit(4);
21906 if (fclose(f) < 0)
21907 exit(5);
21908 exit(0);
21909}
21910
21911_ACEOF
21912rm -f conftest$ac_exeext
21913if { (ac_try="$ac_link"
21914case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21917esac
21918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21919$as_echo "$ac_try_echo") >&5
21920 (eval "$ac_link") 2>&5
21921 ac_status=$?
21922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21924 { (case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21927esac
21928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21929$as_echo "$ac_try_echo") >&5
21930 (eval "$ac_try") 2>&5
21931 ac_status=$?
21932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934
21935 llong_min=`$AWK '{print $1}' conftest.llminmax`
21936 llong_max=`$AWK '{print $2}' conftest.llminmax`
21937
21938 { $as_echo "$as_me:$LINENO: result: $llong_max" >&5
21939$as_echo "$llong_max" >&6; }
21940
21941cat >>confdefs.h <<_ACEOF
21942#define LLONG_MAX ${llong_max}LL
21943_ACEOF
21944
21945 { $as_echo "$as_me:$LINENO: checking for min value of long long" >&5
21946$as_echo_n "checking for min value of long long... " >&6; }
21947 { $as_echo "$as_me:$LINENO: result: $llong_min" >&5
21948$as_echo "$llong_min" >&6; }
21949
21950cat >>confdefs.h <<_ACEOF
21951#define LLONG_MIN ${llong_min}LL
21952_ACEOF
21953
21954
21955else
21956 $as_echo "$as_me: program exited with status $ac_status" >&5
21957$as_echo "$as_me: failed program was:" >&5
21958sed 's/^/| /' conftest.$ac_ext >&5
21959
21960( exit $ac_status )
21961
21962 { $as_echo "$as_me:$LINENO: result: not found" >&5
21963$as_echo "not found" >&6; }
21964
21965fi
21966rm -rf conftest.dSYM
21967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21968fi
21969
21970
21971fi
21972
21973
21974# More checks for data types
21975{ $as_echo "$as_me:$LINENO: checking for u_int type" >&5
21976$as_echo_n "checking for u_int type... " >&6; }
21977if test "${ac_cv_have_u_int+set}" = set; then
21978 $as_echo_n "(cached) " >&6
21979else
21980
21981 cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h. */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h. */
21987 #include <sys/types.h>
21988int
21989main ()
21990{
21991 u_int a; a = 1;
21992 ;
21993 return 0;
21994}
21995_ACEOF
21996rm -f conftest.$ac_objext
21997if { (ac_try="$ac_compile"
21998case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001esac
22002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22003$as_echo "$ac_try_echo") >&5
22004 (eval "$ac_compile") 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest.$ac_objext; then
22014 ac_cv_have_u_int="yes"
22015else
22016 $as_echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_cv_have_u_int="no"
22020
22021fi
22022
22023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024
22025fi
22026{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
22027$as_echo "$ac_cv_have_u_int" >&6; }
22028if test "x$ac_cv_have_u_int" = "xyes" ; then
22029
22030cat >>confdefs.h <<\_ACEOF
22031#define HAVE_U_INT 1
22032_ACEOF
22033
22034 have_u_int=1
22035fi
22036
22037{ $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5
22038$as_echo_n "checking for intXX_t types... " >&6; }
22039if test "${ac_cv_have_intxx_t+set}" = set; then
22040 $as_echo_n "(cached) " >&6
22041else
22042
22043 cat >conftest.$ac_ext <<_ACEOF
22044/* confdefs.h. */
22045_ACEOF
22046cat confdefs.h >>conftest.$ac_ext
22047cat >>conftest.$ac_ext <<_ACEOF
22048/* end confdefs.h. */
22049 #include <sys/types.h>
22050int
22051main ()
22052{
22053 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22054 ;
22055 return 0;
22056}
22057_ACEOF
22058rm -f conftest.$ac_objext
22059if { (ac_try="$ac_compile"
22060case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063esac
22064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22065$as_echo "$ac_try_echo") >&5
22066 (eval "$ac_compile") 2>conftest.er1
22067 ac_status=$?
22068 grep -v '^ *+' conftest.er1 >conftest.err
22069 rm -f conftest.er1
22070 cat conftest.err >&5
22071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } && {
22073 test -z "$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22075 } && test -s conftest.$ac_objext; then
22076 ac_cv_have_intxx_t="yes"
22077else
22078 $as_echo "$as_me: failed program was:" >&5
22079sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 ac_cv_have_intxx_t="no"
22082
22083fi
22084
22085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22086
22087fi
22088{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
22089$as_echo "$ac_cv_have_intxx_t" >&6; }
22090if test "x$ac_cv_have_intxx_t" = "xyes" ; then
22091
22092cat >>confdefs.h <<\_ACEOF
22093#define HAVE_INTXX_T 1
22094_ACEOF
22095
22096 have_intxx_t=1
22097fi
22098
22099if (test -z "$have_intxx_t" && \
22100 test "x$ac_cv_header_stdint_h" = "xyes")
22101then
22102 { $as_echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5
22103$as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
22104 cat >conftest.$ac_ext <<_ACEOF
22105/* confdefs.h. */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h. */
22110 #include <stdint.h>
22111int
22112main ()
22113{
22114 int8_t a; int16_t b; int32_t c; a = b = c = 1;
22115 ;
22116 return 0;
22117}
22118_ACEOF
22119rm -f conftest.$ac_objext
22120if { (ac_try="$ac_compile"
22121case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22124esac
22125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22126$as_echo "$ac_try_echo") >&5
22127 (eval "$ac_compile") 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest.$ac_objext; then
22137
22138 cat >>confdefs.h <<\_ACEOF
22139#define HAVE_INTXX_T 1
22140_ACEOF
22141
22142 { $as_echo "$as_me:$LINENO: result: yes" >&5
22143$as_echo "yes" >&6; }
22144
22145else
22146 $as_echo "$as_me: failed program was:" >&5
22147sed 's/^/| /' conftest.$ac_ext >&5
22148
22149 { $as_echo "$as_me:$LINENO: result: no" >&5
22150$as_echo "no" >&6; }
22151
22152fi
22153
22154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22155fi
22156
22157{ $as_echo "$as_me:$LINENO: checking for int64_t type" >&5
22158$as_echo_n "checking for int64_t type... " >&6; }
22159if test "${ac_cv_have_int64_t+set}" = set; then
22160 $as_echo_n "(cached) " >&6
22161else
22162
22163 cat >conftest.$ac_ext <<_ACEOF
22164/* confdefs.h. */
22165_ACEOF
22166cat confdefs.h >>conftest.$ac_ext
22167cat >>conftest.$ac_ext <<_ACEOF
22168/* end confdefs.h. */
22169
22170#include <sys/types.h>
22171#ifdef HAVE_STDINT_H
22172# include <stdint.h>
22173#endif
22174#include <sys/socket.h>
22175#ifdef HAVE_SYS_BITYPES_H
22176# include <sys/bitypes.h>
22177#endif
22178
22179int
22180main ()
22181{
22182 int64_t a; a = 1;
22183 ;
22184 return 0;
22185}
22186_ACEOF
22187rm -f conftest.$ac_objext
22188if { (ac_try="$ac_compile"
22189case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192esac
22193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22194$as_echo "$ac_try_echo") >&5
22195 (eval "$ac_compile") 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest.$ac_objext; then
22205 ac_cv_have_int64_t="yes"
22206else
22207 $as_echo "$as_me: failed program was:" >&5
22208sed 's/^/| /' conftest.$ac_ext >&5
22209
22210 ac_cv_have_int64_t="no"
22211
22212fi
22213
22214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22215
22216fi
22217{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
22218$as_echo "$ac_cv_have_int64_t" >&6; }
22219if test "x$ac_cv_have_int64_t" = "xyes" ; then
22220
22221cat >>confdefs.h <<\_ACEOF
22222#define HAVE_INT64_T 1
22223_ACEOF
22224
22225fi
22226
22227{ $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
22228$as_echo_n "checking for u_intXX_t types... " >&6; }
22229if test "${ac_cv_have_u_intxx_t+set}" = set; then
22230 $as_echo_n "(cached) " >&6
22231else
22232
22233 cat >conftest.$ac_ext <<_ACEOF
22234/* confdefs.h. */
22235_ACEOF
22236cat confdefs.h >>conftest.$ac_ext
22237cat >>conftest.$ac_ext <<_ACEOF
22238/* end confdefs.h. */
22239 #include <sys/types.h>
22240int
22241main ()
22242{
22243 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
22244 ;
22245 return 0;
22246}
22247_ACEOF
22248rm -f conftest.$ac_objext
22249if { (ac_try="$ac_compile"
22250case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22253esac
22254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22255$as_echo "$ac_try_echo") >&5
22256 (eval "$ac_compile") 2>conftest.er1
22257 ac_status=$?
22258 grep -v '^ *+' conftest.er1 >conftest.err
22259 rm -f conftest.er1
22260 cat conftest.err >&5
22261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && {
22263 test -z "$ac_c_werror_flag" ||
22264 test ! -s conftest.err
22265 } && test -s conftest.$ac_objext; then
22266 ac_cv_have_u_intxx_t="yes"
22267else
22268 $as_echo "$as_me: failed program was:" >&5
22269sed 's/^/| /' conftest.$ac_ext >&5
22270
22271 ac_cv_have_u_intxx_t="no"
22272
22273fi
22274
22275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22276
22277fi
22278{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
22279$as_echo "$ac_cv_have_u_intxx_t" >&6; }
22280if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
22281
22282cat >>confdefs.h <<\_ACEOF
22283#define HAVE_U_INTXX_T 1
22284_ACEOF
22285
22286 have_u_intxx_t=1
22287fi
22288
22289if test -z "$have_u_intxx_t" ; then
22290 { $as_echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5
22291$as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
22292 cat >conftest.$ac_ext <<_ACEOF
22293/* confdefs.h. */
22294_ACEOF
22295cat confdefs.h >>conftest.$ac_ext
22296cat >>conftest.$ac_ext <<_ACEOF
22297/* end confdefs.h. */
22298 #include <sys/socket.h>
22299int
22300main ()
22301{
22302 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
22303 ;
22304 return 0;
22305}
22306_ACEOF
22307rm -f conftest.$ac_objext
22308if { (ac_try="$ac_compile"
22309case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312esac
22313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22314$as_echo "$ac_try_echo") >&5
22315 (eval "$ac_compile") 2>conftest.er1
22316 ac_status=$?
22317 grep -v '^ *+' conftest.er1 >conftest.err
22318 rm -f conftest.er1
22319 cat conftest.err >&5
22320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } && {
22322 test -z "$ac_c_werror_flag" ||
22323 test ! -s conftest.err
22324 } && test -s conftest.$ac_objext; then
22325
22326 cat >>confdefs.h <<\_ACEOF
22327#define HAVE_U_INTXX_T 1
22328_ACEOF
22329
22330 { $as_echo "$as_me:$LINENO: result: yes" >&5
22331$as_echo "yes" >&6; }
22332
22333else
22334 $as_echo "$as_me: failed program was:" >&5
22335sed 's/^/| /' conftest.$ac_ext >&5
22336
22337 { $as_echo "$as_me:$LINENO: result: no" >&5
22338$as_echo "no" >&6; }
22339
22340fi
22341
22342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343fi
22344
22345{ $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5
22346$as_echo_n "checking for u_int64_t types... " >&6; }
22347if test "${ac_cv_have_u_int64_t+set}" = set; then
22348 $as_echo_n "(cached) " >&6
22349else
22350
22351 cat >conftest.$ac_ext <<_ACEOF
22352/* confdefs.h. */
22353_ACEOF
22354cat confdefs.h >>conftest.$ac_ext
22355cat >>conftest.$ac_ext <<_ACEOF
22356/* end confdefs.h. */
22357 #include <sys/types.h>
22358int
22359main ()
22360{
22361 u_int64_t a; a = 1;
22362 ;
22363 return 0;
22364}
22365_ACEOF
22366rm -f conftest.$ac_objext
22367if { (ac_try="$ac_compile"
22368case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22371esac
22372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22373$as_echo "$ac_try_echo") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22375 ac_status=$?
22376 grep -v '^ *+' conftest.er1 >conftest.err
22377 rm -f conftest.er1
22378 cat conftest.err >&5
22379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22384 ac_cv_have_u_int64_t="yes"
22385else
22386 $as_echo "$as_me: failed program was:" >&5
22387sed 's/^/| /' conftest.$ac_ext >&5
22388
22389 ac_cv_have_u_int64_t="no"
22390
22391fi
22392
22393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394
22395fi
22396{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
22397$as_echo "$ac_cv_have_u_int64_t" >&6; }
22398if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
22399
22400cat >>confdefs.h <<\_ACEOF
22401#define HAVE_U_INT64_T 1
22402_ACEOF
22403
22404 have_u_int64_t=1
22405fi
22406
22407if test -z "$have_u_int64_t" ; then
22408 { $as_echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5
22409$as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
22410 cat >conftest.$ac_ext <<_ACEOF
22411/* confdefs.h. */
22412_ACEOF
22413cat confdefs.h >>conftest.$ac_ext
22414cat >>conftest.$ac_ext <<_ACEOF
22415/* end confdefs.h. */
22416 #include <sys/bitypes.h>
22417int
22418main ()
22419{
22420 u_int64_t a; a = 1
22421 ;
22422 return 0;
22423}
22424_ACEOF
22425rm -f conftest.$ac_objext
22426if { (ac_try="$ac_compile"
22427case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22430esac
22431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22432$as_echo "$ac_try_echo") >&5
22433 (eval "$ac_compile") 2>conftest.er1
22434 ac_status=$?
22435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
22438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } && {
22440 test -z "$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22442 } && test -s conftest.$ac_objext; then
22443
22444 cat >>confdefs.h <<\_ACEOF
22445#define HAVE_U_INT64_T 1
22446_ACEOF
22447
22448 { $as_echo "$as_me:$LINENO: result: yes" >&5
22449$as_echo "yes" >&6; }
22450
22451else
22452 $as_echo "$as_me: failed program was:" >&5
22453sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 { $as_echo "$as_me:$LINENO: result: no" >&5
22456$as_echo "no" >&6; }
22457
22458fi
22459
22460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461fi
22462
22463if test -z "$have_u_intxx_t" ; then
22464 { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5
22465$as_echo_n "checking for uintXX_t types... " >&6; }
22466if test "${ac_cv_have_uintxx_t+set}" = set; then
22467 $as_echo_n "(cached) " >&6
22468else
22469
22470 cat >conftest.$ac_ext <<_ACEOF
22471/* confdefs.h. */
22472_ACEOF
22473cat confdefs.h >>conftest.$ac_ext
22474cat >>conftest.$ac_ext <<_ACEOF
22475/* end confdefs.h. */
22476
22477#include <sys/types.h>
22478
22479int
22480main ()
22481{
22482 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
22483 ;
22484 return 0;
22485}
22486_ACEOF
22487rm -f conftest.$ac_objext
22488if { (ac_try="$ac_compile"
22489case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22492esac
22493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22494$as_echo "$ac_try_echo") >&5
22495 (eval "$ac_compile") 2>conftest.er1
22496 ac_status=$?
22497 grep -v '^ *+' conftest.er1 >conftest.err
22498 rm -f conftest.er1
22499 cat conftest.err >&5
22500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && {
22502 test -z "$ac_c_werror_flag" ||
22503 test ! -s conftest.err
22504 } && test -s conftest.$ac_objext; then
22505 ac_cv_have_uintxx_t="yes"
22506else
22507 $as_echo "$as_me: failed program was:" >&5
22508sed 's/^/| /' conftest.$ac_ext >&5
22509
22510 ac_cv_have_uintxx_t="no"
22511
22512fi
22513
22514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515
22516fi
22517{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
22518$as_echo "$ac_cv_have_uintxx_t" >&6; }
22519 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
22520
22521cat >>confdefs.h <<\_ACEOF
22522#define HAVE_UINTXX_T 1
22523_ACEOF
22524
22525 fi
22526fi
22527
22528if test -z "$have_uintxx_t" ; then
22529 { $as_echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5
22530$as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
22531 cat >conftest.$ac_ext <<_ACEOF
22532/* confdefs.h. */
22533_ACEOF
22534cat confdefs.h >>conftest.$ac_ext
22535cat >>conftest.$ac_ext <<_ACEOF
22536/* end confdefs.h. */
22537 #include <stdint.h>
22538int
22539main ()
22540{
22541 uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
22542 ;
22543 return 0;
22544}
22545_ACEOF
22546rm -f conftest.$ac_objext
22547if { (ac_try="$ac_compile"
22548case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22551esac
22552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22553$as_echo "$ac_try_echo") >&5
22554 (eval "$ac_compile") 2>conftest.er1
22555 ac_status=$?
22556 grep -v '^ *+' conftest.er1 >conftest.err
22557 rm -f conftest.er1
22558 cat conftest.err >&5
22559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } && {
22561 test -z "$ac_c_werror_flag" ||
22562 test ! -s conftest.err
22563 } && test -s conftest.$ac_objext; then
22564
22565 cat >>confdefs.h <<\_ACEOF
22566#define HAVE_UINTXX_T 1
22567_ACEOF
22568
22569 { $as_echo "$as_me:$LINENO: result: yes" >&5
22570$as_echo "yes" >&6; }
22571
22572else
22573 $as_echo "$as_me: failed program was:" >&5
22574sed 's/^/| /' conftest.$ac_ext >&5
22575
22576 { $as_echo "$as_me:$LINENO: result: no" >&5
22577$as_echo "no" >&6; }
22578
22579fi
22580
22581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582fi
22583
22584if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
22585 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
22586then
22587 { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
22588$as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
22589 cat >conftest.$ac_ext <<_ACEOF
22590/* confdefs.h. */
22591_ACEOF
22592cat confdefs.h >>conftest.$ac_ext
22593cat >>conftest.$ac_ext <<_ACEOF
22594/* end confdefs.h. */
22595
22596#include <sys/bitypes.h>
22597
22598int
22599main ()
22600{
22601
22602 int8_t a; int16_t b; int32_t c;
22603 u_int8_t e; u_int16_t f; u_int32_t g;
22604 a = b = c = e = f = g = 1;
22605
22606 ;
22607 return 0;
22608}
22609_ACEOF
22610rm -f conftest.$ac_objext
22611if { (ac_try="$ac_compile"
22612case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22615esac
22616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22617$as_echo "$ac_try_echo") >&5
22618 (eval "$ac_compile") 2>conftest.er1
22619 ac_status=$?
22620 grep -v '^ *+' conftest.er1 >conftest.err
22621 rm -f conftest.er1
22622 cat conftest.err >&5
22623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); } && {
22625 test -z "$ac_c_werror_flag" ||
22626 test ! -s conftest.err
22627 } && test -s conftest.$ac_objext; then
22628
22629 cat >>confdefs.h <<\_ACEOF
22630#define HAVE_U_INTXX_T 1
22631_ACEOF
22632
22633 cat >>confdefs.h <<\_ACEOF
22634#define HAVE_INTXX_T 1
22635_ACEOF
22636
22637 { $as_echo "$as_me:$LINENO: result: yes" >&5
22638$as_echo "yes" >&6; }
22639
22640else
22641 $as_echo "$as_me: failed program was:" >&5
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
22644 { $as_echo "$as_me:$LINENO: result: no" >&5
22645$as_echo "no" >&6; }
22646
22647fi
22648
22649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650fi
22651
22652
22653{ $as_echo "$as_me:$LINENO: checking for u_char" >&5
22654$as_echo_n "checking for u_char... " >&6; }
22655if test "${ac_cv_have_u_char+set}" = set; then
22656 $as_echo_n "(cached) " >&6
22657else
22658
22659 cat >conftest.$ac_ext <<_ACEOF
22660/* confdefs.h. */
22661_ACEOF
22662cat confdefs.h >>conftest.$ac_ext
22663cat >>conftest.$ac_ext <<_ACEOF
22664/* end confdefs.h. */
22665
22666#include <sys/types.h>
22667
22668int
22669main ()
22670{
22671 u_char foo; foo = 125;
22672 ;
22673 return 0;
22674}
22675_ACEOF
22676rm -f conftest.$ac_objext
22677if { (ac_try="$ac_compile"
22678case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681esac
22682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22683$as_echo "$ac_try_echo") >&5
22684 (eval "$ac_compile") 2>conftest.er1
22685 ac_status=$?
22686 grep -v '^ *+' conftest.er1 >conftest.err
22687 rm -f conftest.er1
22688 cat conftest.err >&5
22689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest.$ac_objext; then
22694 ac_cv_have_u_char="yes"
22695else
22696 $as_echo "$as_me: failed program was:" >&5
22697sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 ac_cv_have_u_char="no"
22700
22701fi
22702
22703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704
22705fi
22706{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5
22707$as_echo "$ac_cv_have_u_char" >&6; }
22708if test "x$ac_cv_have_u_char" = "xyes" ; then
22709
22710cat >>confdefs.h <<\_ACEOF
22711#define HAVE_U_CHAR 1
22712_ACEOF
22713
22714fi
22715
22716
22717 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
22718$as_echo_n "checking for socklen_t... " >&6; }
22719if test "${ac_cv_type_socklen_t+set}" = set; then
22720 $as_echo_n "(cached) " >&6
22721else
22722 ac_cv_type_socklen_t=no
22723cat >conftest.$ac_ext <<_ACEOF
22724/* confdefs.h. */
22725_ACEOF
22726cat confdefs.h >>conftest.$ac_ext
22727cat >>conftest.$ac_ext <<_ACEOF
22728/* end confdefs.h. */
22729#include <sys/types.h>
22730#include <sys/socket.h>
22731
22732int
22733main ()
22734{
22735if (sizeof (socklen_t))
22736 return 0;
22737 ;
22738 return 0;
22739}
22740_ACEOF
22741rm -f conftest.$ac_objext
22742if { (ac_try="$ac_compile"
22743case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22746esac
22747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22748$as_echo "$ac_try_echo") >&5
22749 (eval "$ac_compile") 2>conftest.er1
22750 ac_status=$?
22751 grep -v '^ *+' conftest.er1 >conftest.err
22752 rm -f conftest.er1
22753 cat conftest.err >&5
22754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); } && {
22756 test -z "$ac_c_werror_flag" ||
22757 test ! -s conftest.err
22758 } && test -s conftest.$ac_objext; then
22759 cat >conftest.$ac_ext <<_ACEOF
22760/* confdefs.h. */
22761_ACEOF
22762cat confdefs.h >>conftest.$ac_ext
22763cat >>conftest.$ac_ext <<_ACEOF
22764/* end confdefs.h. */
22765#include <sys/types.h>
22766#include <sys/socket.h>
22767
22768int
22769main ()
22770{
22771if (sizeof ((socklen_t)))
22772 return 0;
22773 ;
22774 return 0;
22775}
22776_ACEOF
22777rm -f conftest.$ac_objext
22778if { (ac_try="$ac_compile"
22779case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22782esac
22783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22784$as_echo "$ac_try_echo") >&5
22785 (eval "$ac_compile") 2>conftest.er1
22786 ac_status=$?
22787 grep -v '^ *+' conftest.er1 >conftest.err
22788 rm -f conftest.er1
22789 cat conftest.err >&5
22790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && {
22792 test -z "$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22794 } && test -s conftest.$ac_objext; then
22795 :
22796else
22797 $as_echo "$as_me: failed program was:" >&5
22798sed 's/^/| /' conftest.$ac_ext >&5
22799
22800 ac_cv_type_socklen_t=yes
22801fi
22802
22803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22804else
22805 $as_echo "$as_me: failed program was:" >&5
22806sed 's/^/| /' conftest.$ac_ext >&5
22807
22808
22809fi
22810
22811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22812fi
22813{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22814$as_echo "$ac_cv_type_socklen_t" >&6; }
22815if test $ac_cv_type_socklen_t = yes; then
22816 :
22817else
22818
22819 { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
22820$as_echo_n "checking for socklen_t equivalent... " >&6; }
22821 if test "${curl_cv_socklen_t_equiv+set}" = set; then
22822 $as_echo_n "(cached) " >&6
22823else
22824
22825 # Systems have either "struct sockaddr *" or
22826 # "void *" as the second argument to getpeername
22827 curl_cv_socklen_t_equiv=
22828 for arg2 in "struct sockaddr" void; do
22829 for t in int size_t unsigned long "unsigned long"; do
22830 cat >conftest.$ac_ext <<_ACEOF
22831/* confdefs.h. */
22832_ACEOF
22833cat confdefs.h >>conftest.$ac_ext
22834cat >>conftest.$ac_ext <<_ACEOF
22835/* end confdefs.h. */
22836
22837 #include <sys/types.h>
22838 #include <sys/socket.h>
22839
22840 int getpeername (int, $arg2 *, $t *);
22841
22842int
22843main ()
22844{
22845
22846 $t len;
22847 getpeername(0,0,&len);
22848
22849 ;
22850 return 0;
22851}
22852_ACEOF
22853rm -f conftest.$ac_objext
22854if { (ac_try="$ac_compile"
22855case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858esac
22859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22860$as_echo "$ac_try_echo") >&5
22861 (eval "$ac_compile") 2>conftest.er1
22862 ac_status=$?
22863 grep -v '^ *+' conftest.er1 >conftest.err
22864 rm -f conftest.er1
22865 cat conftest.err >&5
22866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); } && {
22868 test -z "$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22870 } && test -s conftest.$ac_objext; then
22871
22872 curl_cv_socklen_t_equiv="$t"
22873 break
22874
22875else
22876 $as_echo "$as_me: failed program was:" >&5
22877sed 's/^/| /' conftest.$ac_ext >&5
22878
22879
22880fi
22881
22882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 done
22884 done
22885
22886 if test "x$curl_cv_socklen_t_equiv" = x; then
22887 { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
22888$as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
22889 { (exit 1); exit 1; }; }
22890 fi
22891
22892fi
22893
22894 { $as_echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
22895$as_echo "$curl_cv_socklen_t_equiv" >&6; }
22896
22897cat >>confdefs.h <<_ACEOF
22898#define socklen_t $curl_cv_socklen_t_equiv
22899_ACEOF
22900
22901fi
22902
22903
22904
22905{ $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
22906$as_echo_n "checking for sig_atomic_t... " >&6; }
22907if test "${ac_cv_type_sig_atomic_t+set}" = set; then
22908 $as_echo_n "(cached) " >&6
22909else
22910 ac_cv_type_sig_atomic_t=no
22911cat >conftest.$ac_ext <<_ACEOF
22912/* confdefs.h. */
22913_ACEOF
22914cat confdefs.h >>conftest.$ac_ext
22915cat >>conftest.$ac_ext <<_ACEOF
22916/* end confdefs.h. */
22917#include <signal.h>
22918
22919int
22920main ()
22921{
22922if (sizeof (sig_atomic_t))
22923 return 0;
22924 ;
22925 return 0;
22926}
22927_ACEOF
22928rm -f conftest.$ac_objext
22929if { (ac_try="$ac_compile"
22930case "(($ac_try" in
22931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932 *) ac_try_echo=$ac_try;;
22933esac
22934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22935$as_echo "$ac_try_echo") >&5
22936 (eval "$ac_compile") 2>conftest.er1
22937 ac_status=$?
22938 grep -v '^ *+' conftest.er1 >conftest.err
22939 rm -f conftest.er1
22940 cat conftest.err >&5
22941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } && {
22943 test -z "$ac_c_werror_flag" ||
22944 test ! -s conftest.err
22945 } && test -s conftest.$ac_objext; then
22946 cat >conftest.$ac_ext <<_ACEOF
22947/* confdefs.h. */
22948_ACEOF
22949cat confdefs.h >>conftest.$ac_ext
22950cat >>conftest.$ac_ext <<_ACEOF
22951/* end confdefs.h. */
22952#include <signal.h>
22953
22954int
22955main ()
22956{
22957if (sizeof ((sig_atomic_t)))
22958 return 0;
22959 ;
22960 return 0;
22961}
22962_ACEOF
22963rm -f conftest.$ac_objext
22964if { (ac_try="$ac_compile"
22965case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22968esac
22969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22970$as_echo "$ac_try_echo") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 :
22982else
22983 $as_echo "$as_me: failed program was:" >&5
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
22986 ac_cv_type_sig_atomic_t=yes
22987fi
22988
22989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990else
22991 $as_echo "$as_me: failed program was:" >&5
22992sed 's/^/| /' conftest.$ac_ext >&5
22993
22994
22995fi
22996
22997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998fi
22999{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23000$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
23001if test $ac_cv_type_sig_atomic_t = yes; then
23002
23003cat >>confdefs.h <<_ACEOF
23004#define HAVE_SIG_ATOMIC_T 1
23005_ACEOF
23006
23007
23008fi
23009
23010{ $as_echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
23011$as_echo_n "checking for fsblkcnt_t... " >&6; }
23012if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
23013 $as_echo_n "(cached) " >&6
23014else
23015 ac_cv_type_fsblkcnt_t=no
23016cat >conftest.$ac_ext <<_ACEOF
23017/* confdefs.h. */
23018_ACEOF
23019cat confdefs.h >>conftest.$ac_ext
23020cat >>conftest.$ac_ext <<_ACEOF
23021/* end confdefs.h. */
23022
23023#include <sys/types.h>
23024#ifdef HAVE_SYS_BITYPES_H
23025#include <sys/bitypes.h>
23026#endif
23027#ifdef HAVE_SYS_STATFS_H
23028#include <sys/statfs.h>
23029#endif
23030#ifdef HAVE_SYS_STATVFS_H
23031#include <sys/statvfs.h>
23032#endif
23033
23034
23035int
23036main ()
23037{
23038if (sizeof (fsblkcnt_t))
23039 return 0;
23040 ;
23041 return 0;
23042}
23043_ACEOF
23044rm -f conftest.$ac_objext
23045if { (ac_try="$ac_compile"
23046case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23049esac
23050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23051$as_echo "$ac_try_echo") >&5
23052 (eval "$ac_compile") 2>conftest.er1
23053 ac_status=$?
23054 grep -v '^ *+' conftest.er1 >conftest.err
23055 rm -f conftest.er1
23056 cat conftest.err >&5
23057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && {
23059 test -z "$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 } && test -s conftest.$ac_objext; then
23062 cat >conftest.$ac_ext <<_ACEOF
23063/* confdefs.h. */
23064_ACEOF
23065cat confdefs.h >>conftest.$ac_ext
23066cat >>conftest.$ac_ext <<_ACEOF
23067/* end confdefs.h. */
23068
23069#include <sys/types.h>
23070#ifdef HAVE_SYS_BITYPES_H
23071#include <sys/bitypes.h>
23072#endif
23073#ifdef HAVE_SYS_STATFS_H
23074#include <sys/statfs.h>
23075#endif
23076#ifdef HAVE_SYS_STATVFS_H
23077#include <sys/statvfs.h>
23078#endif
23079
23080
23081int
23082main ()
23083{
23084if (sizeof ((fsblkcnt_t)))
23085 return 0;
23086 ;
23087 return 0;
23088}
23089_ACEOF
23090rm -f conftest.$ac_objext
23091if { (ac_try="$ac_compile"
23092case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23095esac
23096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23097$as_echo "$ac_try_echo") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23108 :
23109else
23110 $as_echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_cv_type_fsblkcnt_t=yes
23114fi
23115
23116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117else
23118 $as_echo "$as_me: failed program was:" >&5
23119sed 's/^/| /' conftest.$ac_ext >&5
23120
23121
23122fi
23123
23124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125fi
23126{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
23127$as_echo "$ac_cv_type_fsblkcnt_t" >&6; }
23128if test $ac_cv_type_fsblkcnt_t = yes; then
23129
23130cat >>confdefs.h <<_ACEOF
23131#define HAVE_FSBLKCNT_T 1
23132_ACEOF
23133
23134
23135fi
23136{ $as_echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
23137$as_echo_n "checking for fsfilcnt_t... " >&6; }
23138if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
23139 $as_echo_n "(cached) " >&6
23140else
23141 ac_cv_type_fsfilcnt_t=no
23142cat >conftest.$ac_ext <<_ACEOF
23143/* confdefs.h. */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h. */
23148
23149#include <sys/types.h>
23150#ifdef HAVE_SYS_BITYPES_H
23151#include <sys/bitypes.h>
23152#endif
23153#ifdef HAVE_SYS_STATFS_H
23154#include <sys/statfs.h>
23155#endif
23156#ifdef HAVE_SYS_STATVFS_H
23157#include <sys/statvfs.h>
23158#endif
23159
23160
23161int
23162main ()
23163{
23164if (sizeof (fsfilcnt_t))
23165 return 0;
23166 ;
23167 return 0;
23168}
23169_ACEOF
23170rm -f conftest.$ac_objext
23171if { (ac_try="$ac_compile"
23172case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23175esac
23176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23177$as_echo "$ac_try_echo") >&5
23178 (eval "$ac_compile") 2>conftest.er1
23179 ac_status=$?
23180 grep -v '^ *+' conftest.er1 >conftest.err
23181 rm -f conftest.er1
23182 cat conftest.err >&5
23183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && {
23185 test -z "$ac_c_werror_flag" ||
23186 test ! -s conftest.err
23187 } && test -s conftest.$ac_objext; then
23188 cat >conftest.$ac_ext <<_ACEOF
23189/* confdefs.h. */
23190_ACEOF
23191cat confdefs.h >>conftest.$ac_ext
23192cat >>conftest.$ac_ext <<_ACEOF
23193/* end confdefs.h. */
23194
23195#include <sys/types.h>
23196#ifdef HAVE_SYS_BITYPES_H
23197#include <sys/bitypes.h>
23198#endif
23199#ifdef HAVE_SYS_STATFS_H
23200#include <sys/statfs.h>
23201#endif
23202#ifdef HAVE_SYS_STATVFS_H
23203#include <sys/statvfs.h>
23204#endif
23205
23206
23207int
23208main ()
23209{
23210if (sizeof ((fsfilcnt_t)))
23211 return 0;
23212 ;
23213 return 0;
23214}
23215_ACEOF
23216rm -f conftest.$ac_objext
23217if { (ac_try="$ac_compile"
23218case "(($ac_try" in
23219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220 *) ac_try_echo=$ac_try;;
23221esac
23222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23223$as_echo "$ac_try_echo") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23225 ac_status=$?
23226 grep -v '^ *+' conftest.er1 >conftest.err
23227 rm -f conftest.er1
23228 cat conftest.err >&5
23229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 :
23235else
23236 $as_echo "$as_me: failed program was:" >&5
23237sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 ac_cv_type_fsfilcnt_t=yes
23240fi
23241
23242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23243else
23244 $as_echo "$as_me: failed program was:" >&5
23245sed 's/^/| /' conftest.$ac_ext >&5
23246
23247
23248fi
23249
23250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251fi
23252{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
23253$as_echo "$ac_cv_type_fsfilcnt_t" >&6; }
23254if test $ac_cv_type_fsfilcnt_t = yes; then
23255
23256cat >>confdefs.h <<_ACEOF
23257#define HAVE_FSFILCNT_T 1
23258_ACEOF
23259
23260
23261fi
23262
23263
23264{ $as_echo "$as_me:$LINENO: checking for in_addr_t" >&5
23265$as_echo_n "checking for in_addr_t... " >&6; }
23266if test "${ac_cv_type_in_addr_t+set}" = set; then
23267 $as_echo_n "(cached) " >&6
23268else
23269 ac_cv_type_in_addr_t=no
23270cat >conftest.$ac_ext <<_ACEOF
23271/* confdefs.h. */
23272_ACEOF
23273cat confdefs.h >>conftest.$ac_ext
23274cat >>conftest.$ac_ext <<_ACEOF
23275/* end confdefs.h. */
23276#include <sys/types.h>
23277#include <netinet/in.h>
23278
23279int
23280main ()
23281{
23282if (sizeof (in_addr_t))
23283 return 0;
23284 ;
23285 return 0;
23286}
23287_ACEOF
23288rm -f conftest.$ac_objext
23289if { (ac_try="$ac_compile"
23290case "(($ac_try" in
23291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292 *) ac_try_echo=$ac_try;;
23293esac
23294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23295$as_echo "$ac_try_echo") >&5
23296 (eval "$ac_compile") 2>conftest.er1
23297 ac_status=$?
23298 grep -v '^ *+' conftest.er1 >conftest.err
23299 rm -f conftest.er1
23300 cat conftest.err >&5
23301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); } && {
23303 test -z "$ac_c_werror_flag" ||
23304 test ! -s conftest.err
23305 } && test -s conftest.$ac_objext; then
23306 cat >conftest.$ac_ext <<_ACEOF
23307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
23312#include <sys/types.h>
23313#include <netinet/in.h>
23314
23315int
23316main ()
23317{
23318if (sizeof ((in_addr_t)))
23319 return 0;
23320 ;
23321 return 0;
23322}
23323_ACEOF
23324rm -f conftest.$ac_objext
23325if { (ac_try="$ac_compile"
23326case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23329esac
23330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23331$as_echo "$ac_try_echo") >&5
23332 (eval "$ac_compile") 2>conftest.er1
23333 ac_status=$?
23334 grep -v '^ *+' conftest.er1 >conftest.err
23335 rm -f conftest.er1
23336 cat conftest.err >&5
23337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } && {
23339 test -z "$ac_c_werror_flag" ||
23340 test ! -s conftest.err
23341 } && test -s conftest.$ac_objext; then
23342 :
23343else
23344 $as_echo "$as_me: failed program was:" >&5
23345sed 's/^/| /' conftest.$ac_ext >&5
23346
23347 ac_cv_type_in_addr_t=yes
23348fi
23349
23350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23351else
23352 $as_echo "$as_me: failed program was:" >&5
23353sed 's/^/| /' conftest.$ac_ext >&5
23354
23355
23356fi
23357
23358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359fi
23360{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
23361$as_echo "$ac_cv_type_in_addr_t" >&6; }
23362if test $ac_cv_type_in_addr_t = yes; then
23363
23364cat >>confdefs.h <<_ACEOF
23365#define HAVE_IN_ADDR_T 1
23366_ACEOF
23367
23368
23369fi
23370{ $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
23371$as_echo_n "checking for in_port_t... " >&6; }
23372if test "${ac_cv_type_in_port_t+set}" = set; then
23373 $as_echo_n "(cached) " >&6
23374else
23375 ac_cv_type_in_port_t=no
23376cat >conftest.$ac_ext <<_ACEOF
23377/* confdefs.h. */
23378_ACEOF
23379cat confdefs.h >>conftest.$ac_ext
23380cat >>conftest.$ac_ext <<_ACEOF
23381/* end confdefs.h. */
23382#include <sys/types.h>
23383#include <netinet/in.h>
23384
23385int
23386main ()
23387{
23388if (sizeof (in_port_t))
23389 return 0;
23390 ;
23391 return 0;
23392}
23393_ACEOF
23394rm -f conftest.$ac_objext
23395if { (ac_try="$ac_compile"
23396case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23399esac
23400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23401$as_echo "$ac_try_echo") >&5
23402 (eval "$ac_compile") 2>conftest.er1
23403 ac_status=$?
23404 grep -v '^ *+' conftest.er1 >conftest.err
23405 rm -f conftest.er1
23406 cat conftest.err >&5
23407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); } && {
23409 test -z "$ac_c_werror_flag" ||
23410 test ! -s conftest.err
23411 } && test -s conftest.$ac_objext; then
23412 cat >conftest.$ac_ext <<_ACEOF
23413/* confdefs.h. */
23414_ACEOF
23415cat confdefs.h >>conftest.$ac_ext
23416cat >>conftest.$ac_ext <<_ACEOF
23417/* end confdefs.h. */
23418#include <sys/types.h>
23419#include <netinet/in.h>
23420
23421int
23422main ()
23423{
23424if (sizeof ((in_port_t)))
23425 return 0;
23426 ;
23427 return 0;
23428}
23429_ACEOF
23430rm -f conftest.$ac_objext
23431if { (ac_try="$ac_compile"
23432case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435esac
23436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23437$as_echo "$ac_try_echo") >&5
23438 (eval "$ac_compile") 2>conftest.er1
23439 ac_status=$?
23440 grep -v '^ *+' conftest.er1 >conftest.err
23441 rm -f conftest.er1
23442 cat conftest.err >&5
23443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } && {
23445 test -z "$ac_c_werror_flag" ||
23446 test ! -s conftest.err
23447 } && test -s conftest.$ac_objext; then
23448 :
23449else
23450 $as_echo "$as_me: failed program was:" >&5
23451sed 's/^/| /' conftest.$ac_ext >&5
23452
23453 ac_cv_type_in_port_t=yes
23454fi
23455
23456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457else
23458 $as_echo "$as_me: failed program was:" >&5
23459sed 's/^/| /' conftest.$ac_ext >&5
23460
23461
23462fi
23463
23464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23465fi
23466{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
23467$as_echo "$ac_cv_type_in_port_t" >&6; }
23468if test $ac_cv_type_in_port_t = yes; then
23469
23470cat >>confdefs.h <<_ACEOF
23471#define HAVE_IN_PORT_T 1
23472_ACEOF
23473
23474
23475fi
23476
23477
23478{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
23479$as_echo_n "checking for size_t... " >&6; }
23480if test "${ac_cv_have_size_t+set}" = set; then
23481 $as_echo_n "(cached) " >&6
23482else
23483
23484 cat >conftest.$ac_ext <<_ACEOF
23485/* confdefs.h. */
23486_ACEOF
23487cat confdefs.h >>conftest.$ac_ext
23488cat >>conftest.$ac_ext <<_ACEOF
23489/* end confdefs.h. */
23490
23491#include <sys/types.h>
23492
23493int
23494main ()
23495{
23496 size_t foo; foo = 1235;
23497 ;
23498 return 0;
23499}
23500_ACEOF
23501rm -f conftest.$ac_objext
23502if { (ac_try="$ac_compile"
23503case "(($ac_try" in
23504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23505 *) ac_try_echo=$ac_try;;
23506esac
23507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23508$as_echo "$ac_try_echo") >&5
23509 (eval "$ac_compile") 2>conftest.er1
23510 ac_status=$?
23511 grep -v '^ *+' conftest.er1 >conftest.err
23512 rm -f conftest.er1
23513 cat conftest.err >&5
23514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest.$ac_objext; then
23519 ac_cv_have_size_t="yes"
23520else
23521 $as_echo "$as_me: failed program was:" >&5
23522sed 's/^/| /' conftest.$ac_ext >&5
23523
23524 ac_cv_have_size_t="no"
23525
23526fi
23527
23528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529
23530fi
23531{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5
23532$as_echo "$ac_cv_have_size_t" >&6; }
23533if test "x$ac_cv_have_size_t" = "xyes" ; then
23534
23535cat >>confdefs.h <<\_ACEOF
23536#define HAVE_SIZE_T 1
23537_ACEOF
23538
23539fi
23540
23541{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
23542$as_echo_n "checking for ssize_t... " >&6; }
23543if test "${ac_cv_have_ssize_t+set}" = set; then
23544 $as_echo_n "(cached) " >&6
23545else
23546
23547 cat >conftest.$ac_ext <<_ACEOF
23548/* confdefs.h. */
23549_ACEOF
23550cat confdefs.h >>conftest.$ac_ext
23551cat >>conftest.$ac_ext <<_ACEOF
23552/* end confdefs.h. */
23553
23554#include <sys/types.h>
23555
23556int
23557main ()
23558{
23559 ssize_t foo; foo = 1235;
23560 ;
23561 return 0;
23562}
23563_ACEOF
23564rm -f conftest.$ac_objext
23565if { (ac_try="$ac_compile"
23566case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23569esac
23570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23571$as_echo "$ac_try_echo") >&5
23572 (eval "$ac_compile") 2>conftest.er1
23573 ac_status=$?
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
23577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest.$ac_objext; then
23582 ac_cv_have_ssize_t="yes"
23583else
23584 $as_echo "$as_me: failed program was:" >&5
23585sed 's/^/| /' conftest.$ac_ext >&5
23586
23587 ac_cv_have_ssize_t="no"
23588
23589fi
23590
23591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23592
23593fi
23594{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5
23595$as_echo "$ac_cv_have_ssize_t" >&6; }
23596if test "x$ac_cv_have_ssize_t" = "xyes" ; then
23597
23598cat >>confdefs.h <<\_ACEOF
23599#define HAVE_SSIZE_T 1
23600_ACEOF
23601
23602fi
23603
23604{ $as_echo "$as_me:$LINENO: checking for clock_t" >&5
23605$as_echo_n "checking for clock_t... " >&6; }
23606if test "${ac_cv_have_clock_t+set}" = set; then
23607 $as_echo_n "(cached) " >&6
23608else
23609
23610 cat >conftest.$ac_ext <<_ACEOF
23611/* confdefs.h. */
23612_ACEOF
23613cat confdefs.h >>conftest.$ac_ext
23614cat >>conftest.$ac_ext <<_ACEOF
23615/* end confdefs.h. */
23616
23617#include <time.h>
23618
23619int
23620main ()
23621{
23622 clock_t foo; foo = 1235;
23623 ;
23624 return 0;
23625}
23626_ACEOF
23627rm -f conftest.$ac_objext
23628if { (ac_try="$ac_compile"
23629case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23632esac
23633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23634$as_echo "$ac_try_echo") >&5
23635 (eval "$ac_compile") 2>conftest.er1
23636 ac_status=$?
23637 grep -v '^ *+' conftest.er1 >conftest.err
23638 rm -f conftest.er1
23639 cat conftest.err >&5
23640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } && {
23642 test -z "$ac_c_werror_flag" ||
23643 test ! -s conftest.err
23644 } && test -s conftest.$ac_objext; then
23645 ac_cv_have_clock_t="yes"
23646else
23647 $as_echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650 ac_cv_have_clock_t="no"
23651
23652fi
23653
23654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655
23656fi
23657{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5
23658$as_echo "$ac_cv_have_clock_t" >&6; }
23659if test "x$ac_cv_have_clock_t" = "xyes" ; then
23660
23661cat >>confdefs.h <<\_ACEOF
23662#define HAVE_CLOCK_T 1
23663_ACEOF
23664
23665fi
23666
23667{ $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
23668$as_echo_n "checking for sa_family_t... " >&6; }
23669if test "${ac_cv_have_sa_family_t+set}" = set; then
23670 $as_echo_n "(cached) " >&6
23671else
23672
23673 cat >conftest.$ac_ext <<_ACEOF
23674/* confdefs.h. */
23675_ACEOF
23676cat confdefs.h >>conftest.$ac_ext
23677cat >>conftest.$ac_ext <<_ACEOF
23678/* end confdefs.h. */
23679
23680#include <sys/types.h>
23681#include <sys/socket.h>
23682
23683int
23684main ()
23685{
23686 sa_family_t foo; foo = 1235;
23687 ;
23688 return 0;
23689}
23690_ACEOF
23691rm -f conftest.$ac_objext
23692if { (ac_try="$ac_compile"
23693case "(($ac_try" in
23694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695 *) ac_try_echo=$ac_try;;
23696esac
23697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23698$as_echo "$ac_try_echo") >&5
23699 (eval "$ac_compile") 2>conftest.er1
23700 ac_status=$?
23701 grep -v '^ *+' conftest.er1 >conftest.err
23702 rm -f conftest.er1
23703 cat conftest.err >&5
23704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23705 (exit $ac_status); } && {
23706 test -z "$ac_c_werror_flag" ||
23707 test ! -s conftest.err
23708 } && test -s conftest.$ac_objext; then
23709 ac_cv_have_sa_family_t="yes"
23710else
23711 $as_echo "$as_me: failed program was:" >&5
23712sed 's/^/| /' conftest.$ac_ext >&5
23713
23714 cat >conftest.$ac_ext <<_ACEOF
23715/* confdefs.h. */
23716_ACEOF
23717cat confdefs.h >>conftest.$ac_ext
23718cat >>conftest.$ac_ext <<_ACEOF
23719/* end confdefs.h. */
23720
23721#include <sys/types.h>
23722#include <sys/socket.h>
23723#include <netinet/in.h>
23724
23725int
23726main ()
23727{
23728 sa_family_t foo; foo = 1235;
23729 ;
23730 return 0;
23731}
23732_ACEOF
23733rm -f conftest.$ac_objext
23734if { (ac_try="$ac_compile"
23735case "(($ac_try" in
23736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23737 *) ac_try_echo=$ac_try;;
23738esac
23739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23740$as_echo "$ac_try_echo") >&5
23741 (eval "$ac_compile") 2>conftest.er1
23742 ac_status=$?
23743 grep -v '^ *+' conftest.er1 >conftest.err
23744 rm -f conftest.er1
23745 cat conftest.err >&5
23746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && {
23748 test -z "$ac_c_werror_flag" ||
23749 test ! -s conftest.err
23750 } && test -s conftest.$ac_objext; then
23751 ac_cv_have_sa_family_t="yes"
23752else
23753 $as_echo "$as_me: failed program was:" >&5
23754sed 's/^/| /' conftest.$ac_ext >&5
23755
23756 ac_cv_have_sa_family_t="no"
23757
23758fi
23759
23760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761
23762fi
23763
23764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23765
23766fi
23767{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5
23768$as_echo "$ac_cv_have_sa_family_t" >&6; }
23769if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
23770
23771cat >>confdefs.h <<\_ACEOF
23772#define HAVE_SA_FAMILY_T 1
23773_ACEOF
23774
23775fi
23776
23777{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
23778$as_echo_n "checking for pid_t... " >&6; }
23779if test "${ac_cv_have_pid_t+set}" = set; then
23780 $as_echo_n "(cached) " >&6
23781else
23782
23783 cat >conftest.$ac_ext <<_ACEOF
23784/* confdefs.h. */
23785_ACEOF
23786cat confdefs.h >>conftest.$ac_ext
23787cat >>conftest.$ac_ext <<_ACEOF
23788/* end confdefs.h. */
23789
23790#include <sys/types.h>
23791
23792int
23793main ()
23794{
23795 pid_t foo; foo = 1235;
23796 ;
23797 return 0;
23798}
23799_ACEOF
23800rm -f conftest.$ac_objext
23801if { (ac_try="$ac_compile"
23802case "(($ac_try" in
23803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23805esac
23806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23807$as_echo "$ac_try_echo") >&5
23808 (eval "$ac_compile") 2>conftest.er1
23809 ac_status=$?
23810 grep -v '^ *+' conftest.er1 >conftest.err
23811 rm -f conftest.er1
23812 cat conftest.err >&5
23813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); } && {
23815 test -z "$ac_c_werror_flag" ||
23816 test ! -s conftest.err
23817 } && test -s conftest.$ac_objext; then
23818 ac_cv_have_pid_t="yes"
23819else
23820 $as_echo "$as_me: failed program was:" >&5
23821sed 's/^/| /' conftest.$ac_ext >&5
23822
23823 ac_cv_have_pid_t="no"
23824
23825fi
23826
23827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23828
23829fi
23830{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5
23831$as_echo "$ac_cv_have_pid_t" >&6; }
23832if test "x$ac_cv_have_pid_t" = "xyes" ; then
23833
23834cat >>confdefs.h <<\_ACEOF
23835#define HAVE_PID_T 1
23836_ACEOF
23837
23838fi
23839
23840{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
23841$as_echo_n "checking for mode_t... " >&6; }
23842if test "${ac_cv_have_mode_t+set}" = set; then
23843 $as_echo_n "(cached) " >&6
23844else
23845
23846 cat >conftest.$ac_ext <<_ACEOF
23847/* confdefs.h. */
23848_ACEOF
23849cat confdefs.h >>conftest.$ac_ext
23850cat >>conftest.$ac_ext <<_ACEOF
23851/* end confdefs.h. */
23852
23853#include <sys/types.h>
23854
23855int
23856main ()
23857{
23858 mode_t foo; foo = 1235;
23859 ;
23860 return 0;
23861}
23862_ACEOF
23863rm -f conftest.$ac_objext
23864if { (ac_try="$ac_compile"
23865case "(($ac_try" in
23866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23867 *) ac_try_echo=$ac_try;;
23868esac
23869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23870$as_echo "$ac_try_echo") >&5
23871 (eval "$ac_compile") 2>conftest.er1
23872 ac_status=$?
23873 grep -v '^ *+' conftest.er1 >conftest.err
23874 rm -f conftest.er1
23875 cat conftest.err >&5
23876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } && {
23878 test -z "$ac_c_werror_flag" ||
23879 test ! -s conftest.err
23880 } && test -s conftest.$ac_objext; then
23881 ac_cv_have_mode_t="yes"
23882else
23883 $as_echo "$as_me: failed program was:" >&5
23884sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 ac_cv_have_mode_t="no"
23887
23888fi
23889
23890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891
23892fi
23893{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5
23894$as_echo "$ac_cv_have_mode_t" >&6; }
23895if test "x$ac_cv_have_mode_t" = "xyes" ; then
23896
23897cat >>confdefs.h <<\_ACEOF
23898#define HAVE_MODE_T 1
23899_ACEOF
23900
23901fi
23902
23903
23904{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23905$as_echo_n "checking for struct sockaddr_storage... " >&6; }
23906if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then
23907 $as_echo_n "(cached) " >&6
23908else
23909
23910 cat >conftest.$ac_ext <<_ACEOF
23911/* confdefs.h. */
23912_ACEOF
23913cat confdefs.h >>conftest.$ac_ext
23914cat >>conftest.$ac_ext <<_ACEOF
23915/* end confdefs.h. */
23916
23917#include <sys/types.h>
23918#include <sys/socket.h>
23919
23920int
23921main ()
23922{
23923 struct sockaddr_storage s;
23924 ;
23925 return 0;
23926}
23927_ACEOF
23928rm -f conftest.$ac_objext
23929if { (ac_try="$ac_compile"
23930case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23933esac
23934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23935$as_echo "$ac_try_echo") >&5
23936 (eval "$ac_compile") 2>conftest.er1
23937 ac_status=$?
23938 grep -v '^ *+' conftest.er1 >conftest.err
23939 rm -f conftest.er1
23940 cat conftest.err >&5
23941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest.$ac_objext; then
23946 ac_cv_have_struct_sockaddr_storage="yes"
23947else
23948 $as_echo "$as_me: failed program was:" >&5
23949sed 's/^/| /' conftest.$ac_ext >&5
23950
23951 ac_cv_have_struct_sockaddr_storage="no"
23952
23953fi
23954
23955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956
23957fi
23958{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5
23959$as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
23960if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
23961
23962cat >>confdefs.h <<\_ACEOF
23963#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23964_ACEOF
23965
23966fi
23967
23968{ $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23969$as_echo_n "checking for struct sockaddr_in6... " >&6; }
23970if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then
23971 $as_echo_n "(cached) " >&6
23972else
23973
23974 cat >conftest.$ac_ext <<_ACEOF
23975/* confdefs.h. */
23976_ACEOF
23977cat confdefs.h >>conftest.$ac_ext
23978cat >>conftest.$ac_ext <<_ACEOF
23979/* end confdefs.h. */
23980
23981#include <sys/types.h>
23982#include <netinet/in.h>
23983
23984int
23985main ()
23986{
23987 struct sockaddr_in6 s; s.sin6_family = 0;
23988 ;
23989 return 0;
23990}
23991_ACEOF
23992rm -f conftest.$ac_objext
23993if { (ac_try="$ac_compile"
23994case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23997esac
23998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23999$as_echo "$ac_try_echo") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.$ac_objext; then
24010 ac_cv_have_struct_sockaddr_in6="yes"
24011else
24012 $as_echo "$as_me: failed program was:" >&5
24013sed 's/^/| /' conftest.$ac_ext >&5
24014
24015 ac_cv_have_struct_sockaddr_in6="no"
24016
24017fi
24018
24019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24020
24021fi
24022{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5
24023$as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
24024if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
24025
24026cat >>confdefs.h <<\_ACEOF
24027#define HAVE_STRUCT_SOCKADDR_IN6 1
24028_ACEOF
24029
24030fi
24031
24032{ $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24033$as_echo_n "checking for struct in6_addr... " >&6; }
24034if test "${ac_cv_have_struct_in6_addr+set}" = set; then
24035 $as_echo_n "(cached) " >&6
24036else
24037
24038 cat >conftest.$ac_ext <<_ACEOF
24039/* confdefs.h. */
24040_ACEOF
24041cat confdefs.h >>conftest.$ac_ext
24042cat >>conftest.$ac_ext <<_ACEOF
24043/* end confdefs.h. */
24044
24045#include <sys/types.h>
24046#include <netinet/in.h>
24047
24048int
24049main ()
24050{
24051 struct in6_addr s; s.s6_addr[0] = 0;
24052 ;
24053 return 0;
24054}
24055_ACEOF
24056rm -f conftest.$ac_objext
24057if { (ac_try="$ac_compile"
24058case "(($ac_try" in
24059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060 *) ac_try_echo=$ac_try;;
24061esac
24062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24063$as_echo "$ac_try_echo") >&5
24064 (eval "$ac_compile") 2>conftest.er1
24065 ac_status=$?
24066 grep -v '^ *+' conftest.er1 >conftest.err
24067 rm -f conftest.er1
24068 cat conftest.err >&5
24069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } && {
24071 test -z "$ac_c_werror_flag" ||
24072 test ! -s conftest.err
24073 } && test -s conftest.$ac_objext; then
24074 ac_cv_have_struct_in6_addr="yes"
24075else
24076 $as_echo "$as_me: failed program was:" >&5
24077sed 's/^/| /' conftest.$ac_ext >&5
24078
24079 ac_cv_have_struct_in6_addr="no"
24080
24081fi
24082
24083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24084
24085fi
24086{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5
24087$as_echo "$ac_cv_have_struct_in6_addr" >&6; }
24088if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
24089
24090cat >>confdefs.h <<\_ACEOF
24091#define HAVE_STRUCT_IN6_ADDR 1
24092_ACEOF
24093
24094
24095 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
24096$as_echo_n "checking for struct sockaddr_in6.sin6_scope_id... " >&6; }
24097if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
24098 $as_echo_n "(cached) " >&6
24099else
24100 cat >conftest.$ac_ext <<_ACEOF
24101/* confdefs.h. */
24102_ACEOF
24103cat confdefs.h >>conftest.$ac_ext
24104cat >>conftest.$ac_ext <<_ACEOF
24105/* end confdefs.h. */
24106
24107#ifdef HAVE_SYS_TYPES_H
24108#include <sys/types.h>
24109#endif
24110#include <netinet/in.h>
24111
24112
24113int
24114main ()
24115{
24116static struct sockaddr_in6 ac_aggr;
24117if (ac_aggr.sin6_scope_id)
24118return 0;
24119 ;
24120 return 0;
24121}
24122_ACEOF
24123rm -f conftest.$ac_objext
24124if { (ac_try="$ac_compile"
24125case "(($ac_try" in
24126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24127 *) ac_try_echo=$ac_try;;
24128esac
24129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24130$as_echo "$ac_try_echo") >&5
24131 (eval "$ac_compile") 2>conftest.er1
24132 ac_status=$?
24133 grep -v '^ *+' conftest.er1 >conftest.err
24134 rm -f conftest.er1
24135 cat conftest.err >&5
24136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } && {
24138 test -z "$ac_c_werror_flag" ||
24139 test ! -s conftest.err
24140 } && test -s conftest.$ac_objext; then
24141 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
24142else
24143 $as_echo "$as_me: failed program was:" >&5
24144sed 's/^/| /' conftest.$ac_ext >&5
24145
24146 cat >conftest.$ac_ext <<_ACEOF
24147/* confdefs.h. */
24148_ACEOF
24149cat confdefs.h >>conftest.$ac_ext
24150cat >>conftest.$ac_ext <<_ACEOF
24151/* end confdefs.h. */
24152
24153#ifdef HAVE_SYS_TYPES_H
24154#include <sys/types.h>
24155#endif
24156#include <netinet/in.h>
24157
24158
24159int
24160main ()
24161{
24162static struct sockaddr_in6 ac_aggr;
24163if (sizeof ac_aggr.sin6_scope_id)
24164return 0;
24165 ;
24166 return 0;
24167}
24168_ACEOF
24169rm -f conftest.$ac_objext
24170if { (ac_try="$ac_compile"
24171case "(($ac_try" in
24172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24174esac
24175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24176$as_echo "$ac_try_echo") >&5
24177 (eval "$ac_compile") 2>conftest.er1
24178 ac_status=$?
24179 grep -v '^ *+' conftest.er1 >conftest.err
24180 rm -f conftest.er1
24181 cat conftest.err >&5
24182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } && {
24184 test -z "$ac_c_werror_flag" ||
24185 test ! -s conftest.err
24186 } && test -s conftest.$ac_objext; then
24187 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
24188else
24189 $as_echo "$as_me: failed program was:" >&5
24190sed 's/^/| /' conftest.$ac_ext >&5
24191
24192 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
24193fi
24194
24195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196fi
24197
24198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24199fi
24200{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
24201$as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
24202if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
24203
24204cat >>confdefs.h <<_ACEOF
24205#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
24206_ACEOF
24207
24208
24209fi
24210
24211fi
24212
24213{ $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24214$as_echo_n "checking for struct addrinfo... " >&6; }
24215if test "${ac_cv_have_struct_addrinfo+set}" = set; then
24216 $as_echo_n "(cached) " >&6
24217else
24218
24219 cat >conftest.$ac_ext <<_ACEOF
24220/* confdefs.h. */
24221_ACEOF
24222cat confdefs.h >>conftest.$ac_ext
24223cat >>conftest.$ac_ext <<_ACEOF
24224/* end confdefs.h. */
24225
24226#include <sys/types.h>
24227#include <sys/socket.h>
24228#include <netdb.h>
24229
24230int
24231main ()
24232{
24233 struct addrinfo s; s.ai_flags = AI_PASSIVE;
24234 ;
24235 return 0;
24236}
24237_ACEOF
24238rm -f conftest.$ac_objext
24239if { (ac_try="$ac_compile"
24240case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24243esac
24244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24245$as_echo "$ac_try_echo") >&5
24246 (eval "$ac_compile") 2>conftest.er1
24247 ac_status=$?
24248 grep -v '^ *+' conftest.er1 >conftest.err
24249 rm -f conftest.er1
24250 cat conftest.err >&5
24251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); } && {
24253 test -z "$ac_c_werror_flag" ||
24254 test ! -s conftest.err
24255 } && test -s conftest.$ac_objext; then
24256 ac_cv_have_struct_addrinfo="yes"
24257else
24258 $as_echo "$as_me: failed program was:" >&5
24259sed 's/^/| /' conftest.$ac_ext >&5
24260
24261 ac_cv_have_struct_addrinfo="no"
24262
24263fi
24264
24265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266
24267fi
24268{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5
24269$as_echo "$ac_cv_have_struct_addrinfo" >&6; }
24270if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
24271
24272cat >>confdefs.h <<\_ACEOF
24273#define HAVE_STRUCT_ADDRINFO 1
24274_ACEOF
24275
24276fi
24277
24278{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
24279$as_echo_n "checking for struct timeval... " >&6; }
24280if test "${ac_cv_have_struct_timeval+set}" = set; then
24281 $as_echo_n "(cached) " >&6
24282else
24283
24284 cat >conftest.$ac_ext <<_ACEOF
24285/* confdefs.h. */
24286_ACEOF
24287cat confdefs.h >>conftest.$ac_ext
24288cat >>conftest.$ac_ext <<_ACEOF
24289/* end confdefs.h. */
24290 #include <sys/time.h>
24291int
24292main ()
24293{
24294 struct timeval tv; tv.tv_sec = 1;
24295 ;
24296 return 0;
24297}
24298_ACEOF
24299rm -f conftest.$ac_objext
24300if { (ac_try="$ac_compile"
24301case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24304esac
24305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24306$as_echo "$ac_try_echo") >&5
24307 (eval "$ac_compile") 2>conftest.er1
24308 ac_status=$?
24309 grep -v '^ *+' conftest.er1 >conftest.err
24310 rm -f conftest.er1
24311 cat conftest.err >&5
24312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } && {
24314 test -z "$ac_c_werror_flag" ||
24315 test ! -s conftest.err
24316 } && test -s conftest.$ac_objext; then
24317 ac_cv_have_struct_timeval="yes"
24318else
24319 $as_echo "$as_me: failed program was:" >&5
24320sed 's/^/| /' conftest.$ac_ext >&5
24321
24322 ac_cv_have_struct_timeval="no"
24323
24324fi
24325
24326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24327
24328fi
24329{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5
24330$as_echo "$ac_cv_have_struct_timeval" >&6; }
24331if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
24332
24333cat >>confdefs.h <<\_ACEOF
24334#define HAVE_STRUCT_TIMEVAL 1
24335_ACEOF
24336
24337 have_struct_timeval=1
24338fi
24339
24340{ $as_echo "$as_me:$LINENO: checking for struct timespec" >&5
24341$as_echo_n "checking for struct timespec... " >&6; }
24342if test "${ac_cv_type_struct_timespec+set}" = set; then
24343 $as_echo_n "(cached) " >&6
24344else
24345 ac_cv_type_struct_timespec=no
24346cat >conftest.$ac_ext <<_ACEOF
24347/* confdefs.h. */
24348_ACEOF
24349cat confdefs.h >>conftest.$ac_ext
24350cat >>conftest.$ac_ext <<_ACEOF
24351/* end confdefs.h. */
24352$ac_includes_default
24353int
24354main ()
24355{
24356if (sizeof (struct timespec))
24357 return 0;
24358 ;
24359 return 0;
24360}
24361_ACEOF
24362rm -f conftest.$ac_objext
24363if { (ac_try="$ac_compile"
24364case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24367esac
24368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24369$as_echo "$ac_try_echo") >&5
24370 (eval "$ac_compile") 2>conftest.er1
24371 ac_status=$?
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
24375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } && {
24377 test -z "$ac_c_werror_flag" ||
24378 test ! -s conftest.err
24379 } && test -s conftest.$ac_objext; then
24380 cat >conftest.$ac_ext <<_ACEOF
24381/* confdefs.h. */
24382_ACEOF
24383cat confdefs.h >>conftest.$ac_ext
24384cat >>conftest.$ac_ext <<_ACEOF
24385/* end confdefs.h. */
24386$ac_includes_default
24387int
24388main ()
24389{
24390if (sizeof ((struct timespec)))
24391 return 0;
24392 ;
24393 return 0;
24394}
24395_ACEOF
24396rm -f conftest.$ac_objext
24397if { (ac_try="$ac_compile"
24398case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24401esac
24402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24403$as_echo "$ac_try_echo") >&5
24404 (eval "$ac_compile") 2>conftest.er1
24405 ac_status=$?
24406 grep -v '^ *+' conftest.er1 >conftest.err
24407 rm -f conftest.er1
24408 cat conftest.err >&5
24409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } && {
24411 test -z "$ac_c_werror_flag" ||
24412 test ! -s conftest.err
24413 } && test -s conftest.$ac_objext; then
24414 :
24415else
24416 $as_echo "$as_me: failed program was:" >&5
24417sed 's/^/| /' conftest.$ac_ext >&5
24418
24419 ac_cv_type_struct_timespec=yes
24420fi
24421
24422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423else
24424 $as_echo "$as_me: failed program was:" >&5
24425sed 's/^/| /' conftest.$ac_ext >&5
24426
24427
24428fi
24429
24430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24431fi
24432{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
24433$as_echo "$ac_cv_type_struct_timespec" >&6; }
24434if test $ac_cv_type_struct_timespec = yes; then
24435
24436cat >>confdefs.h <<_ACEOF
24437#define HAVE_STRUCT_TIMESPEC 1
24438_ACEOF
24439
24440
24441fi
24442
24443
24444# We need int64_t or else certian parts of the compile will fail.
24445if test "x$ac_cv_have_int64_t" = "xno" && \
24446 test "x$ac_cv_sizeof_long_int" != "x8" && \
24447 test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
24448 echo "OpenSSH requires int64_t support. Contact your vendor or install"
24449 echo "an alternative compiler (I.E., GCC) before continuing."
24450 echo ""
24451 exit 1;
24452else
24453 if test "$cross_compiling" = yes; then
24454 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5
24455$as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
24456
24457else
24458 cat >conftest.$ac_ext <<_ACEOF
24459/* confdefs.h. */
24460_ACEOF
24461cat confdefs.h >>conftest.$ac_ext
24462cat >>conftest.$ac_ext <<_ACEOF
24463/* end confdefs.h. */
24464
24465#include <stdio.h>
24466#include <string.h>
24467#ifdef HAVE_SNPRINTF
24468main()
24469{
24470 char buf[50];
24471 char expected_out[50];
24472 int mazsize = 50 ;
24473#if (SIZEOF_LONG_INT == 8)
24474 long int num = 0x7fffffffffffffff;
24475#else
24476 long long num = 0x7fffffffffffffffll;
24477#endif
24478 strcpy(expected_out, "9223372036854775807");
24479 snprintf(buf, mazsize, "%lld", num);
24480 if(strcmp(buf, expected_out) != 0)
24481 exit(1);
24482 exit(0);
24483}
24484#else
24485main() { exit(0); }
24486#endif
24487
24488_ACEOF
24489rm -f conftest$ac_exeext
24490if { (ac_try="$ac_link"
24491case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24494esac
24495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24496$as_echo "$ac_try_echo") >&5
24497 (eval "$ac_link") 2>&5
24498 ac_status=$?
24499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24501 { (case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24504esac
24505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24506$as_echo "$ac_try_echo") >&5
24507 (eval "$ac_try") 2>&5
24508 ac_status=$?
24509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); }; }; then
24511 true
24512else
24513 $as_echo "$as_me: program exited with status $ac_status" >&5
24514$as_echo "$as_me: failed program was:" >&5
24515sed 's/^/| /' conftest.$ac_ext >&5
24516
24517( exit $ac_status )
24518 cat >>confdefs.h <<\_ACEOF
24519#define BROKEN_SNPRINTF 1
24520_ACEOF
24521
24522fi
24523rm -rf conftest.dSYM
24524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24525fi
24526
24527
24528fi
24529
24530
24531# look for field 'ut_host' in header 'utmp.h'
24532 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24533 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
24534 { $as_echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5
24535$as_echo_n "checking for ut_host field in utmp.h... " >&6; }
24536 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24537 $as_echo_n "(cached) " >&6
24538else
24539
24540 cat >conftest.$ac_ext <<_ACEOF
24541/* confdefs.h. */
24542_ACEOF
24543cat confdefs.h >>conftest.$ac_ext
24544cat >>conftest.$ac_ext <<_ACEOF
24545/* end confdefs.h. */
24546#include <utmp.h>
24547
24548_ACEOF
24549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24550 $EGREP "ut_host" >/dev/null 2>&1; then
24551 eval "$ossh_varname=yes"
24552else
24553 eval "$ossh_varname=no"
24554fi
24555rm -f conftest*
24556
24557fi
24558
24559 ossh_result=`eval 'echo $'"$ossh_varname"`
24560 if test -n "`echo $ossh_varname`"; then
24561 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24562$as_echo "$ossh_result" >&6; }
24563 if test "x$ossh_result" = "xyes"; then
24564
24565cat >>confdefs.h <<\_ACEOF
24566#define HAVE_HOST_IN_UTMP 1
24567_ACEOF
24568
24569 fi
24570 else
24571 { $as_echo "$as_me:$LINENO: result: no" >&5
24572$as_echo "no" >&6; }
24573 fi
24574
24575
24576# look for field 'ut_host' in header 'utmpx.h'
24577 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24578 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
24579 { $as_echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5
24580$as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
24581 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24582 $as_echo_n "(cached) " >&6
24583else
24584
24585 cat >conftest.$ac_ext <<_ACEOF
24586/* confdefs.h. */
24587_ACEOF
24588cat confdefs.h >>conftest.$ac_ext
24589cat >>conftest.$ac_ext <<_ACEOF
24590/* end confdefs.h. */
24591#include <utmpx.h>
24592
24593_ACEOF
24594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24595 $EGREP "ut_host" >/dev/null 2>&1; then
24596 eval "$ossh_varname=yes"
24597else
24598 eval "$ossh_varname=no"
24599fi
24600rm -f conftest*
24601
24602fi
24603
24604 ossh_result=`eval 'echo $'"$ossh_varname"`
24605 if test -n "`echo $ossh_varname`"; then
24606 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24607$as_echo "$ossh_result" >&6; }
24608 if test "x$ossh_result" = "xyes"; then
24609
24610cat >>confdefs.h <<\_ACEOF
24611#define HAVE_HOST_IN_UTMPX 1
24612_ACEOF
24613
24614 fi
24615 else
24616 { $as_echo "$as_me:$LINENO: result: no" >&5
24617$as_echo "no" >&6; }
24618 fi
24619
24620
24621# look for field 'syslen' in header 'utmpx.h'
24622 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24623 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
24624 { $as_echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5
24625$as_echo_n "checking for syslen field in utmpx.h... " >&6; }
24626 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24627 $as_echo_n "(cached) " >&6
24628else
24629
24630 cat >conftest.$ac_ext <<_ACEOF
24631/* confdefs.h. */
24632_ACEOF
24633cat confdefs.h >>conftest.$ac_ext
24634cat >>conftest.$ac_ext <<_ACEOF
24635/* end confdefs.h. */
24636#include <utmpx.h>
24637
24638_ACEOF
24639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24640 $EGREP "syslen" >/dev/null 2>&1; then
24641 eval "$ossh_varname=yes"
24642else
24643 eval "$ossh_varname=no"
24644fi
24645rm -f conftest*
24646
24647fi
24648
24649 ossh_result=`eval 'echo $'"$ossh_varname"`
24650 if test -n "`echo $ossh_varname`"; then
24651 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24652$as_echo "$ossh_result" >&6; }
24653 if test "x$ossh_result" = "xyes"; then
24654
24655cat >>confdefs.h <<\_ACEOF
24656#define HAVE_SYSLEN_IN_UTMPX 1
24657_ACEOF
24658
24659 fi
24660 else
24661 { $as_echo "$as_me:$LINENO: result: no" >&5
24662$as_echo "no" >&6; }
24663 fi
24664
24665
24666# look for field 'ut_pid' in header 'utmp.h'
24667 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24668 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
24669 { $as_echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5
24670$as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
24671 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24672 $as_echo_n "(cached) " >&6
24673else
24674
24675 cat >conftest.$ac_ext <<_ACEOF
24676/* confdefs.h. */
24677_ACEOF
24678cat confdefs.h >>conftest.$ac_ext
24679cat >>conftest.$ac_ext <<_ACEOF
24680/* end confdefs.h. */
24681#include <utmp.h>
24682
24683_ACEOF
24684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24685 $EGREP "ut_pid" >/dev/null 2>&1; then
24686 eval "$ossh_varname=yes"
24687else
24688 eval "$ossh_varname=no"
24689fi
24690rm -f conftest*
24691
24692fi
24693
24694 ossh_result=`eval 'echo $'"$ossh_varname"`
24695 if test -n "`echo $ossh_varname`"; then
24696 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24697$as_echo "$ossh_result" >&6; }
24698 if test "x$ossh_result" = "xyes"; then
24699
24700cat >>confdefs.h <<\_ACEOF
24701#define HAVE_PID_IN_UTMP 1
24702_ACEOF
24703
24704 fi
24705 else
24706 { $as_echo "$as_me:$LINENO: result: no" >&5
24707$as_echo "no" >&6; }
24708 fi
24709
24710
24711# look for field 'ut_type' in header 'utmp.h'
24712 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24713 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
24714 { $as_echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5
24715$as_echo_n "checking for ut_type field in utmp.h... " >&6; }
24716 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24717 $as_echo_n "(cached) " >&6
24718else
24719
24720 cat >conftest.$ac_ext <<_ACEOF
24721/* confdefs.h. */
24722_ACEOF
24723cat confdefs.h >>conftest.$ac_ext
24724cat >>conftest.$ac_ext <<_ACEOF
24725/* end confdefs.h. */
24726#include <utmp.h>
24727
24728_ACEOF
24729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24730 $EGREP "ut_type" >/dev/null 2>&1; then
24731 eval "$ossh_varname=yes"
24732else
24733 eval "$ossh_varname=no"
24734fi
24735rm -f conftest*
24736
24737fi
24738
24739 ossh_result=`eval 'echo $'"$ossh_varname"`
24740 if test -n "`echo $ossh_varname`"; then
24741 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24742$as_echo "$ossh_result" >&6; }
24743 if test "x$ossh_result" = "xyes"; then
24744
24745cat >>confdefs.h <<\_ACEOF
24746#define HAVE_TYPE_IN_UTMP 1
24747_ACEOF
24748
24749 fi
24750 else
24751 { $as_echo "$as_me:$LINENO: result: no" >&5
24752$as_echo "no" >&6; }
24753 fi
24754
24755
24756# look for field 'ut_type' in header 'utmpx.h'
24757 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24758 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
24759 { $as_echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5
24760$as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
24761 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24762 $as_echo_n "(cached) " >&6
24763else
24764
24765 cat >conftest.$ac_ext <<_ACEOF
24766/* confdefs.h. */
24767_ACEOF
24768cat confdefs.h >>conftest.$ac_ext
24769cat >>conftest.$ac_ext <<_ACEOF
24770/* end confdefs.h. */
24771#include <utmpx.h>
24772
24773_ACEOF
24774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24775 $EGREP "ut_type" >/dev/null 2>&1; then
24776 eval "$ossh_varname=yes"
24777else
24778 eval "$ossh_varname=no"
24779fi
24780rm -f conftest*
24781
24782fi
24783
24784 ossh_result=`eval 'echo $'"$ossh_varname"`
24785 if test -n "`echo $ossh_varname`"; then
24786 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24787$as_echo "$ossh_result" >&6; }
24788 if test "x$ossh_result" = "xyes"; then
24789
24790cat >>confdefs.h <<\_ACEOF
24791#define HAVE_TYPE_IN_UTMPX 1
24792_ACEOF
24793
24794 fi
24795 else
24796 { $as_echo "$as_me:$LINENO: result: no" >&5
24797$as_echo "no" >&6; }
24798 fi
24799
24800
24801# look for field 'ut_tv' in header 'utmp.h'
24802 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24803 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
24804 { $as_echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5
24805$as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
24806 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24807 $as_echo_n "(cached) " >&6
24808else
24809
24810 cat >conftest.$ac_ext <<_ACEOF
24811/* confdefs.h. */
24812_ACEOF
24813cat confdefs.h >>conftest.$ac_ext
24814cat >>conftest.$ac_ext <<_ACEOF
24815/* end confdefs.h. */
24816#include <utmp.h>
24817
24818_ACEOF
24819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24820 $EGREP "ut_tv" >/dev/null 2>&1; then
24821 eval "$ossh_varname=yes"
24822else
24823 eval "$ossh_varname=no"
24824fi
24825rm -f conftest*
24826
24827fi
24828
24829 ossh_result=`eval 'echo $'"$ossh_varname"`
24830 if test -n "`echo $ossh_varname`"; then
24831 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24832$as_echo "$ossh_result" >&6; }
24833 if test "x$ossh_result" = "xyes"; then
24834
24835cat >>confdefs.h <<\_ACEOF
24836#define HAVE_TV_IN_UTMP 1
24837_ACEOF
24838
24839 fi
24840 else
24841 { $as_echo "$as_me:$LINENO: result: no" >&5
24842$as_echo "no" >&6; }
24843 fi
24844
24845
24846# look for field 'ut_id' in header 'utmp.h'
24847 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24848 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
24849 { $as_echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5
24850$as_echo_n "checking for ut_id field in utmp.h... " >&6; }
24851 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24852 $as_echo_n "(cached) " >&6
24853else
24854
24855 cat >conftest.$ac_ext <<_ACEOF
24856/* confdefs.h. */
24857_ACEOF
24858cat confdefs.h >>conftest.$ac_ext
24859cat >>conftest.$ac_ext <<_ACEOF
24860/* end confdefs.h. */
24861#include <utmp.h>
24862
24863_ACEOF
24864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24865 $EGREP "ut_id" >/dev/null 2>&1; then
24866 eval "$ossh_varname=yes"
24867else
24868 eval "$ossh_varname=no"
24869fi
24870rm -f conftest*
24871
24872fi
24873
24874 ossh_result=`eval 'echo $'"$ossh_varname"`
24875 if test -n "`echo $ossh_varname`"; then
24876 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24877$as_echo "$ossh_result" >&6; }
24878 if test "x$ossh_result" = "xyes"; then
24879
24880cat >>confdefs.h <<\_ACEOF
24881#define HAVE_ID_IN_UTMP 1
24882_ACEOF
24883
24884 fi
24885 else
24886 { $as_echo "$as_me:$LINENO: result: no" >&5
24887$as_echo "no" >&6; }
24888 fi
24889
24890
24891# look for field 'ut_id' in header 'utmpx.h'
24892 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24893 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
24894 { $as_echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5
24895$as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
24896 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24897 $as_echo_n "(cached) " >&6
24898else
24899
24900 cat >conftest.$ac_ext <<_ACEOF
24901/* confdefs.h. */
24902_ACEOF
24903cat confdefs.h >>conftest.$ac_ext
24904cat >>conftest.$ac_ext <<_ACEOF
24905/* end confdefs.h. */
24906#include <utmpx.h>
24907
24908_ACEOF
24909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24910 $EGREP "ut_id" >/dev/null 2>&1; then
24911 eval "$ossh_varname=yes"
24912else
24913 eval "$ossh_varname=no"
24914fi
24915rm -f conftest*
24916
24917fi
24918
24919 ossh_result=`eval 'echo $'"$ossh_varname"`
24920 if test -n "`echo $ossh_varname`"; then
24921 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24922$as_echo "$ossh_result" >&6; }
24923 if test "x$ossh_result" = "xyes"; then
24924
24925cat >>confdefs.h <<\_ACEOF
24926#define HAVE_ID_IN_UTMPX 1
24927_ACEOF
24928
24929 fi
24930 else
24931 { $as_echo "$as_me:$LINENO: result: no" >&5
24932$as_echo "no" >&6; }
24933 fi
24934
24935
24936# look for field 'ut_addr' in header 'utmp.h'
24937 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
24938 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24939 { $as_echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5
24940$as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
24941 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24942 $as_echo_n "(cached) " >&6
24943else
24944
24945 cat >conftest.$ac_ext <<_ACEOF
24946/* confdefs.h. */
24947_ACEOF
24948cat confdefs.h >>conftest.$ac_ext
24949cat >>conftest.$ac_ext <<_ACEOF
24950/* end confdefs.h. */
24951#include <utmp.h>
24952
24953_ACEOF
24954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24955 $EGREP "ut_addr" >/dev/null 2>&1; then
24956 eval "$ossh_varname=yes"
24957else
24958 eval "$ossh_varname=no"
24959fi
24960rm -f conftest*
24961
24962fi
24963
24964 ossh_result=`eval 'echo $'"$ossh_varname"`
24965 if test -n "`echo $ossh_varname`"; then
24966 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
24967$as_echo "$ossh_result" >&6; }
24968 if test "x$ossh_result" = "xyes"; then
24969
24970cat >>confdefs.h <<\_ACEOF
24971#define HAVE_ADDR_IN_UTMP 1
24972_ACEOF
24973
24974 fi
24975 else
24976 { $as_echo "$as_me:$LINENO: result: no" >&5
24977$as_echo "no" >&6; }
24978 fi
24979
24980
24981# look for field 'ut_addr' in header 'utmpx.h'
24982 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
24983 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
24984 { $as_echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5
24985$as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
24986 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
24987 $as_echo_n "(cached) " >&6
24988else
24989
24990 cat >conftest.$ac_ext <<_ACEOF
24991/* confdefs.h. */
24992_ACEOF
24993cat confdefs.h >>conftest.$ac_ext
24994cat >>conftest.$ac_ext <<_ACEOF
24995/* end confdefs.h. */
24996#include <utmpx.h>
24997
24998_ACEOF
24999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25000 $EGREP "ut_addr" >/dev/null 2>&1; then
25001 eval "$ossh_varname=yes"
25002else
25003 eval "$ossh_varname=no"
25004fi
25005rm -f conftest*
25006
25007fi
25008
25009 ossh_result=`eval 'echo $'"$ossh_varname"`
25010 if test -n "`echo $ossh_varname`"; then
25011 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
25012$as_echo "$ossh_result" >&6; }
25013 if test "x$ossh_result" = "xyes"; then
25014
25015cat >>confdefs.h <<\_ACEOF
25016#define HAVE_ADDR_IN_UTMPX 1
25017_ACEOF
25018
25019 fi
25020 else
25021 { $as_echo "$as_me:$LINENO: result: no" >&5
25022$as_echo "no" >&6; }
25023 fi
25024
25025
25026# look for field 'ut_addr_v6' in header 'utmp.h'
25027 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25028 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25029 { $as_echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5
25030$as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
25031 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25032 $as_echo_n "(cached) " >&6
25033else
25034
25035 cat >conftest.$ac_ext <<_ACEOF
25036/* confdefs.h. */
25037_ACEOF
25038cat confdefs.h >>conftest.$ac_ext
25039cat >>conftest.$ac_ext <<_ACEOF
25040/* end confdefs.h. */
25041#include <utmp.h>
25042
25043_ACEOF
25044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25045 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25046 eval "$ossh_varname=yes"
25047else
25048 eval "$ossh_varname=no"
25049fi
25050rm -f conftest*
25051
25052fi
25053
25054 ossh_result=`eval 'echo $'"$ossh_varname"`
25055 if test -n "`echo $ossh_varname`"; then
25056 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
25057$as_echo "$ossh_result" >&6; }
25058 if test "x$ossh_result" = "xyes"; then
25059
25060cat >>confdefs.h <<\_ACEOF
25061#define HAVE_ADDR_V6_IN_UTMP 1
25062_ACEOF
25063
25064 fi
25065 else
25066 { $as_echo "$as_me:$LINENO: result: no" >&5
25067$as_echo "no" >&6; }
25068 fi
25069
25070
25071# look for field 'ut_addr_v6' in header 'utmpx.h'
25072 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25073 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
25074 { $as_echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5
25075$as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
25076 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25077 $as_echo_n "(cached) " >&6
25078else
25079
25080 cat >conftest.$ac_ext <<_ACEOF
25081/* confdefs.h. */
25082_ACEOF
25083cat confdefs.h >>conftest.$ac_ext
25084cat >>conftest.$ac_ext <<_ACEOF
25085/* end confdefs.h. */
25086#include <utmpx.h>
25087
25088_ACEOF
25089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25090 $EGREP "ut_addr_v6" >/dev/null 2>&1; then
25091 eval "$ossh_varname=yes"
25092else
25093 eval "$ossh_varname=no"
25094fi
25095rm -f conftest*
25096
25097fi
25098
25099 ossh_result=`eval 'echo $'"$ossh_varname"`
25100 if test -n "`echo $ossh_varname`"; then
25101 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
25102$as_echo "$ossh_result" >&6; }
25103 if test "x$ossh_result" = "xyes"; then
25104
25105cat >>confdefs.h <<\_ACEOF
25106#define HAVE_ADDR_V6_IN_UTMPX 1
25107_ACEOF
25108
25109 fi
25110 else
25111 { $as_echo "$as_me:$LINENO: result: no" >&5
25112$as_echo "no" >&6; }
25113 fi
25114
25115
25116# look for field 'ut_exit' in header 'utmp.h'
25117 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25118 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
25119 { $as_echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5
25120$as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
25121 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25122 $as_echo_n "(cached) " >&6
25123else
25124
25125 cat >conftest.$ac_ext <<_ACEOF
25126/* confdefs.h. */
25127_ACEOF
25128cat confdefs.h >>conftest.$ac_ext
25129cat >>conftest.$ac_ext <<_ACEOF
25130/* end confdefs.h. */
25131#include <utmp.h>
25132
25133_ACEOF
25134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25135 $EGREP "ut_exit" >/dev/null 2>&1; then
25136 eval "$ossh_varname=yes"
25137else
25138 eval "$ossh_varname=no"
25139fi
25140rm -f conftest*
25141
25142fi
25143
25144 ossh_result=`eval 'echo $'"$ossh_varname"`
25145 if test -n "`echo $ossh_varname`"; then
25146 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
25147$as_echo "$ossh_result" >&6; }
25148 if test "x$ossh_result" = "xyes"; then
25149
25150cat >>confdefs.h <<\_ACEOF
25151#define HAVE_EXIT_IN_UTMP 1
25152_ACEOF
25153
25154 fi
25155 else
25156 { $as_echo "$as_me:$LINENO: result: no" >&5
25157$as_echo "no" >&6; }
25158 fi
25159
25160
25161# look for field 'ut_time' in header 'utmp.h'
25162 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
25163 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25164 { $as_echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5
25165$as_echo_n "checking for ut_time field in utmp.h... " >&6; }
25166 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25167 $as_echo_n "(cached) " >&6
25168else
25169
25170 cat >conftest.$ac_ext <<_ACEOF
25171/* confdefs.h. */
25172_ACEOF
25173cat confdefs.h >>conftest.$ac_ext
25174cat >>conftest.$ac_ext <<_ACEOF
25175/* end confdefs.h. */
25176#include <utmp.h>
25177
25178_ACEOF
25179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25180 $EGREP "ut_time" >/dev/null 2>&1; then
25181 eval "$ossh_varname=yes"
25182else
25183 eval "$ossh_varname=no"
25184fi
25185rm -f conftest*
25186
25187fi
25188
25189 ossh_result=`eval 'echo $'"$ossh_varname"`
25190 if test -n "`echo $ossh_varname`"; then
25191 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
25192$as_echo "$ossh_result" >&6; }
25193 if test "x$ossh_result" = "xyes"; then
25194
25195cat >>confdefs.h <<\_ACEOF
25196#define HAVE_TIME_IN_UTMP 1
25197_ACEOF
25198
25199 fi
25200 else
25201 { $as_echo "$as_me:$LINENO: result: no" >&5
25202$as_echo "no" >&6; }
25203 fi
25204
25205
25206# look for field 'ut_time' in header 'utmpx.h'
25207 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25208 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
25209 { $as_echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5
25210$as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
25211 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25212 $as_echo_n "(cached) " >&6
25213else
25214
25215 cat >conftest.$ac_ext <<_ACEOF
25216/* confdefs.h. */
25217_ACEOF
25218cat confdefs.h >>conftest.$ac_ext
25219cat >>conftest.$ac_ext <<_ACEOF
25220/* end confdefs.h. */
25221#include <utmpx.h>
25222
25223_ACEOF
25224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25225 $EGREP "ut_time" >/dev/null 2>&1; then
25226 eval "$ossh_varname=yes"
25227else
25228 eval "$ossh_varname=no"
25229fi
25230rm -f conftest*
25231
25232fi
25233
25234 ossh_result=`eval 'echo $'"$ossh_varname"`
25235 if test -n "`echo $ossh_varname`"; then
25236 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
25237$as_echo "$ossh_result" >&6; }
25238 if test "x$ossh_result" = "xyes"; then
25239
25240cat >>confdefs.h <<\_ACEOF
25241#define HAVE_TIME_IN_UTMPX 1
25242_ACEOF
25243
25244 fi
25245 else
25246 { $as_echo "$as_me:$LINENO: result: no" >&5
25247$as_echo "no" >&6; }
25248 fi
25249
25250
25251# look for field 'ut_tv' in header 'utmpx.h'
25252 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
25253 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
25254 { $as_echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5
25255$as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
25256 if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then
25257 $as_echo_n "(cached) " >&6
25258else
25259
25260 cat >conftest.$ac_ext <<_ACEOF
25261/* confdefs.h. */
25262_ACEOF
25263cat confdefs.h >>conftest.$ac_ext
25264cat >>conftest.$ac_ext <<_ACEOF
25265/* end confdefs.h. */
25266#include <utmpx.h>
25267
25268_ACEOF
25269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25270 $EGREP "ut_tv" >/dev/null 2>&1; then
25271 eval "$ossh_varname=yes"
25272else
25273 eval "$ossh_varname=no"
25274fi
25275rm -f conftest*
25276
25277fi
25278
25279 ossh_result=`eval 'echo $'"$ossh_varname"`
25280 if test -n "`echo $ossh_varname`"; then
25281 { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5
25282$as_echo "$ossh_result" >&6; }
25283 if test "x$ossh_result" = "xyes"; then
25284
25285cat >>confdefs.h <<\_ACEOF
25286#define HAVE_TV_IN_UTMPX 1
25287_ACEOF
25288
25289 fi
25290 else
25291 { $as_echo "$as_me:$LINENO: result: no" >&5
25292$as_echo "no" >&6; }
25293 fi
25294
25295
25296{ $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
25297$as_echo_n "checking for struct stat.st_blksize... " >&6; }
25298if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
25299 $as_echo_n "(cached) " >&6
25300else
25301 cat >conftest.$ac_ext <<_ACEOF
25302/* confdefs.h. */
25303_ACEOF
25304cat confdefs.h >>conftest.$ac_ext
25305cat >>conftest.$ac_ext <<_ACEOF
25306/* end confdefs.h. */
25307$ac_includes_default
25308int
25309main ()
25310{
25311static struct stat ac_aggr;
25312if (ac_aggr.st_blksize)
25313return 0;
25314 ;
25315 return 0;
25316}
25317_ACEOF
25318rm -f conftest.$ac_objext
25319if { (ac_try="$ac_compile"
25320case "(($ac_try" in
25321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322 *) ac_try_echo=$ac_try;;
25323esac
25324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25325$as_echo "$ac_try_echo") >&5
25326 (eval "$ac_compile") 2>conftest.er1
25327 ac_status=$?
25328 grep -v '^ *+' conftest.er1 >conftest.err
25329 rm -f conftest.er1
25330 cat conftest.err >&5
25331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); } && {
25333 test -z "$ac_c_werror_flag" ||
25334 test ! -s conftest.err
25335 } && test -s conftest.$ac_objext; then
25336 ac_cv_member_struct_stat_st_blksize=yes
25337else
25338 $as_echo "$as_me: failed program was:" >&5
25339sed 's/^/| /' conftest.$ac_ext >&5
25340
25341 cat >conftest.$ac_ext <<_ACEOF
25342/* confdefs.h. */
25343_ACEOF
25344cat confdefs.h >>conftest.$ac_ext
25345cat >>conftest.$ac_ext <<_ACEOF
25346/* end confdefs.h. */
25347$ac_includes_default
25348int
25349main ()
25350{
25351static struct stat ac_aggr;
25352if (sizeof ac_aggr.st_blksize)
25353return 0;
25354 ;
25355 return 0;
25356}
25357_ACEOF
25358rm -f conftest.$ac_objext
25359if { (ac_try="$ac_compile"
25360case "(($ac_try" in
25361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362 *) ac_try_echo=$ac_try;;
25363esac
25364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25365$as_echo "$ac_try_echo") >&5
25366 (eval "$ac_compile") 2>conftest.er1
25367 ac_status=$?
25368 grep -v '^ *+' conftest.er1 >conftest.err
25369 rm -f conftest.er1
25370 cat conftest.err >&5
25371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); } && {
25373 test -z "$ac_c_werror_flag" ||
25374 test ! -s conftest.err
25375 } && test -s conftest.$ac_objext; then
25376 ac_cv_member_struct_stat_st_blksize=yes
25377else
25378 $as_echo "$as_me: failed program was:" >&5
25379sed 's/^/| /' conftest.$ac_ext >&5
25380
25381 ac_cv_member_struct_stat_st_blksize=no
25382fi
25383
25384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25385fi
25386
25387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25388fi
25389{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
25390$as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
25391if test $ac_cv_member_struct_stat_st_blksize = yes; then
25392
25393cat >>confdefs.h <<_ACEOF
25394#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25395_ACEOF
25396
25397
25398fi
25399
25400{ $as_echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5
25401$as_echo_n "checking for struct __res_state.retrans... " >&6; }
25402if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then
25403 $as_echo_n "(cached) " >&6
25404else
25405 cat >conftest.$ac_ext <<_ACEOF
25406/* confdefs.h. */
25407_ACEOF
25408cat confdefs.h >>conftest.$ac_ext
25409cat >>conftest.$ac_ext <<_ACEOF
25410/* end confdefs.h. */
25411
25412#include <stdio.h>
25413#if HAVE_SYS_TYPES_H
25414# include <sys/types.h>
25415#endif
25416#include <netinet/in.h>
25417#include <arpa/nameser.h>
25418#include <resolv.h>
25419
25420
25421int
25422main ()
25423{
25424static struct __res_state ac_aggr;
25425if (ac_aggr.retrans)
25426return 0;
25427 ;
25428 return 0;
25429}
25430_ACEOF
25431rm -f conftest.$ac_objext
25432if { (ac_try="$ac_compile"
25433case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25436esac
25437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25438$as_echo "$ac_try_echo") >&5
25439 (eval "$ac_compile") 2>conftest.er1
25440 ac_status=$?
25441 grep -v '^ *+' conftest.er1 >conftest.err
25442 rm -f conftest.er1
25443 cat conftest.err >&5
25444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); } && {
25446 test -z "$ac_c_werror_flag" ||
25447 test ! -s conftest.err
25448 } && test -s conftest.$ac_objext; then
25449 ac_cv_member_struct___res_state_retrans=yes
25450else
25451 $as_echo "$as_me: failed program was:" >&5
25452sed 's/^/| /' conftest.$ac_ext >&5
25453
25454 cat >conftest.$ac_ext <<_ACEOF
25455/* confdefs.h. */
25456_ACEOF
25457cat confdefs.h >>conftest.$ac_ext
25458cat >>conftest.$ac_ext <<_ACEOF
25459/* end confdefs.h. */
25460
25461#include <stdio.h>
25462#if HAVE_SYS_TYPES_H
25463# include <sys/types.h>
25464#endif
25465#include <netinet/in.h>
25466#include <arpa/nameser.h>
25467#include <resolv.h>
25468
25469
25470int
25471main ()
25472{
25473static struct __res_state ac_aggr;
25474if (sizeof ac_aggr.retrans)
25475return 0;
25476 ;
25477 return 0;
25478}
25479_ACEOF
25480rm -f conftest.$ac_objext
25481if { (ac_try="$ac_compile"
25482case "(($ac_try" in
25483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25485esac
25486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25487$as_echo "$ac_try_echo") >&5
25488 (eval "$ac_compile") 2>conftest.er1
25489 ac_status=$?
25490 grep -v '^ *+' conftest.er1 >conftest.err
25491 rm -f conftest.er1
25492 cat conftest.err >&5
25493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } && {
25495 test -z "$ac_c_werror_flag" ||
25496 test ! -s conftest.err
25497 } && test -s conftest.$ac_objext; then
25498 ac_cv_member_struct___res_state_retrans=yes
25499else
25500 $as_echo "$as_me: failed program was:" >&5
25501sed 's/^/| /' conftest.$ac_ext >&5
25502
25503 ac_cv_member_struct___res_state_retrans=no
25504fi
25505
25506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25507fi
25508
25509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510fi
25511{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5
25512$as_echo "$ac_cv_member_struct___res_state_retrans" >&6; }
25513if test $ac_cv_member_struct___res_state_retrans = yes; then
25514 :
25515else
25516
25517cat >>confdefs.h <<\_ACEOF
25518#define __res_state state
25519_ACEOF
25520
25521fi
25522
25523
25524{ $as_echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5
25525$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
25526if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then
25527 $as_echo_n "(cached) " >&6
25528else
25529
25530 cat >conftest.$ac_ext <<_ACEOF
25531/* confdefs.h. */
25532_ACEOF
25533cat confdefs.h >>conftest.$ac_ext
25534cat >>conftest.$ac_ext <<_ACEOF
25535/* end confdefs.h. */
25536
25537#include <sys/types.h>
25538#include <sys/socket.h>
25539
25540int
25541main ()
25542{
25543 struct sockaddr_storage s; s.ss_family = 1;
25544 ;
25545 return 0;
25546}
25547_ACEOF
25548rm -f conftest.$ac_objext
25549if { (ac_try="$ac_compile"
25550case "(($ac_try" in
25551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552 *) ac_try_echo=$ac_try;;
25553esac
25554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25555$as_echo "$ac_try_echo") >&5
25556 (eval "$ac_compile") 2>conftest.er1
25557 ac_status=$?
25558 grep -v '^ *+' conftest.er1 >conftest.err
25559 rm -f conftest.er1
25560 cat conftest.err >&5
25561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } && {
25563 test -z "$ac_c_werror_flag" ||
25564 test ! -s conftest.err
25565 } && test -s conftest.$ac_objext; then
25566 ac_cv_have_ss_family_in_struct_ss="yes"
25567else
25568 $as_echo "$as_me: failed program was:" >&5
25569sed 's/^/| /' conftest.$ac_ext >&5
25570
25571 ac_cv_have_ss_family_in_struct_ss="no"
25572fi
25573
25574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25575
25576fi
25577{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5
25578$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
25579if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
25580
25581cat >>confdefs.h <<\_ACEOF
25582#define HAVE_SS_FAMILY_IN_SS 1
25583_ACEOF
25584
25585fi
25586
25587{ $as_echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5
25588$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
25589if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then
25590 $as_echo_n "(cached) " >&6
25591else
25592
25593 cat >conftest.$ac_ext <<_ACEOF
25594/* confdefs.h. */
25595_ACEOF
25596cat confdefs.h >>conftest.$ac_ext
25597cat >>conftest.$ac_ext <<_ACEOF
25598/* end confdefs.h. */
25599
25600#include <sys/types.h>
25601#include <sys/socket.h>
25602
25603int
25604main ()
25605{
25606 struct sockaddr_storage s; s.__ss_family = 1;
25607 ;
25608 return 0;
25609}
25610_ACEOF
25611rm -f conftest.$ac_objext
25612if { (ac_try="$ac_compile"
25613case "(($ac_try" in
25614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25616esac
25617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25618$as_echo "$ac_try_echo") >&5
25619 (eval "$ac_compile") 2>conftest.er1
25620 ac_status=$?
25621 grep -v '^ *+' conftest.er1 >conftest.err
25622 rm -f conftest.er1
25623 cat conftest.err >&5
25624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } && {
25626 test -z "$ac_c_werror_flag" ||
25627 test ! -s conftest.err
25628 } && test -s conftest.$ac_objext; then
25629 ac_cv_have___ss_family_in_struct_ss="yes"
25630else
25631 $as_echo "$as_me: failed program was:" >&5
25632sed 's/^/| /' conftest.$ac_ext >&5
25633
25634 ac_cv_have___ss_family_in_struct_ss="no"
25635
25636fi
25637
25638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25639
25640fi
25641{ $as_echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5
25642$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
25643if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
25644
25645cat >>confdefs.h <<\_ACEOF
25646#define HAVE___SS_FAMILY_IN_SS 1
25647_ACEOF
25648
25649fi
25650
25651{ $as_echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5
25652$as_echo_n "checking for pw_class field in struct passwd... " >&6; }
25653if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then
25654 $as_echo_n "(cached) " >&6
25655else
25656
25657 cat >conftest.$ac_ext <<_ACEOF
25658/* confdefs.h. */
25659_ACEOF
25660cat confdefs.h >>conftest.$ac_ext
25661cat >>conftest.$ac_ext <<_ACEOF
25662/* end confdefs.h. */
25663
25664#include <pwd.h>
25665
25666int
25667main ()
25668{
25669 struct passwd p; p.pw_class = 0;
25670 ;
25671 return 0;
25672}
25673_ACEOF
25674rm -f conftest.$ac_objext
25675if { (ac_try="$ac_compile"
25676case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25679esac
25680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681$as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25683 ac_status=$?
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.$ac_objext; then
25692 ac_cv_have_pw_class_in_struct_passwd="yes"
25693else
25694 $as_echo "$as_me: failed program was:" >&5
25695sed 's/^/| /' conftest.$ac_ext >&5
25696
25697 ac_cv_have_pw_class_in_struct_passwd="no"
25698
25699fi
25700
25701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702
25703fi
25704{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
25705$as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
25706if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
25707
25708cat >>confdefs.h <<\_ACEOF
25709#define HAVE_PW_CLASS_IN_PASSWD 1
25710_ACEOF
25711
25712fi
25713
25714{ $as_echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5
25715$as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
25716if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then
25717 $as_echo_n "(cached) " >&6
25718else
25719
25720 cat >conftest.$ac_ext <<_ACEOF
25721/* confdefs.h. */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h. */
25726
25727#include <pwd.h>
25728
25729int
25730main ()
25731{
25732 struct passwd p; p.pw_expire = 0;
25733 ;
25734 return 0;
25735}
25736_ACEOF
25737rm -f conftest.$ac_objext
25738if { (ac_try="$ac_compile"
25739case "(($ac_try" in
25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741 *) ac_try_echo=$ac_try;;
25742esac
25743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25744$as_echo "$ac_try_echo") >&5
25745 (eval "$ac_compile") 2>conftest.er1
25746 ac_status=$?
25747 grep -v '^ *+' conftest.er1 >conftest.err
25748 rm -f conftest.er1
25749 cat conftest.err >&5
25750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } && {
25752 test -z "$ac_c_werror_flag" ||
25753 test ! -s conftest.err
25754 } && test -s conftest.$ac_objext; then
25755 ac_cv_have_pw_expire_in_struct_passwd="yes"
25756else
25757 $as_echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760 ac_cv_have_pw_expire_in_struct_passwd="no"
25761
25762fi
25763
25764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765
25766fi
25767{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
25768$as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
25769if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
25770
25771cat >>confdefs.h <<\_ACEOF
25772#define HAVE_PW_EXPIRE_IN_PASSWD 1
25773_ACEOF
25774
25775fi
25776
25777{ $as_echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5
25778$as_echo_n "checking for pw_change field in struct passwd... " >&6; }
25779if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then
25780 $as_echo_n "(cached) " >&6
25781else
25782
25783 cat >conftest.$ac_ext <<_ACEOF
25784/* confdefs.h. */
25785_ACEOF
25786cat confdefs.h >>conftest.$ac_ext
25787cat >>conftest.$ac_ext <<_ACEOF
25788/* end confdefs.h. */
25789
25790#include <pwd.h>
25791
25792int
25793main ()
25794{
25795 struct passwd p; p.pw_change = 0;
25796 ;
25797 return 0;
25798}
25799_ACEOF
25800rm -f conftest.$ac_objext
25801if { (ac_try="$ac_compile"
25802case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25805esac
25806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25807$as_echo "$ac_try_echo") >&5
25808 (eval "$ac_compile") 2>conftest.er1
25809 ac_status=$?
25810 grep -v '^ *+' conftest.er1 >conftest.err
25811 rm -f conftest.er1
25812 cat conftest.err >&5
25813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } && {
25815 test -z "$ac_c_werror_flag" ||
25816 test ! -s conftest.err
25817 } && test -s conftest.$ac_objext; then
25818 ac_cv_have_pw_change_in_struct_passwd="yes"
25819else
25820 $as_echo "$as_me: failed program was:" >&5
25821sed 's/^/| /' conftest.$ac_ext >&5
25822
25823 ac_cv_have_pw_change_in_struct_passwd="no"
25824
25825fi
25826
25827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25828
25829fi
25830{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
25831$as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
25832if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
25833
25834cat >>confdefs.h <<\_ACEOF
25835#define HAVE_PW_CHANGE_IN_PASSWD 1
25836_ACEOF
25837
25838fi
25839
25840{ $as_echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5
25841$as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
25842if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then
25843 $as_echo_n "(cached) " >&6
25844else
25845
25846 cat >conftest.$ac_ext <<_ACEOF
25847
25848#include <sys/types.h>
25849#include <sys/socket.h>
25850#include <sys/uio.h>
25851int main() {
25852#ifdef msg_accrights
25853#error "msg_accrights is a macro"
25854exit(1);
25855#endif
25856struct msghdr m;
25857m.msg_accrights = 0;
25858exit(0);
25859}
25860
25861_ACEOF
25862rm -f conftest.$ac_objext
25863if { (ac_try="$ac_compile"
25864case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25867esac
25868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25869$as_echo "$ac_try_echo") >&5
25870 (eval "$ac_compile") 2>conftest.er1
25871 ac_status=$?
25872 grep -v '^ *+' conftest.er1 >conftest.err
25873 rm -f conftest.er1
25874 cat conftest.err >&5
25875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876 (exit $ac_status); } && {
25877 test -z "$ac_c_werror_flag" ||
25878 test ! -s conftest.err
25879 } && test -s conftest.$ac_objext; then
25880 ac_cv_have_accrights_in_msghdr="yes"
25881else
25882 $as_echo "$as_me: failed program was:" >&5
25883sed 's/^/| /' conftest.$ac_ext >&5
25884
25885 ac_cv_have_accrights_in_msghdr="no"
25886
25887fi
25888
25889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890
25891fi
25892{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5
25893$as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
25894if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
25895
25896cat >>confdefs.h <<\_ACEOF
25897#define HAVE_ACCRIGHTS_IN_MSGHDR 1
25898_ACEOF
25899
25900fi
25901
25902{ $as_echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5
25903$as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
25904cat >conftest.$ac_ext <<_ACEOF
25905/* confdefs.h. */
25906_ACEOF
25907cat confdefs.h >>conftest.$ac_ext
25908cat >>conftest.$ac_ext <<_ACEOF
25909/* end confdefs.h. */
25910
25911#include <sys/types.h>
25912#include <sys/stat.h>
25913#ifdef HAVE_SYS_TIME_H
25914# include <sys/time.h>
25915#endif
25916#ifdef HAVE_SYS_MOUNT_H
25917#include <sys/mount.h>
25918#endif
25919#ifdef HAVE_SYS_STATVFS_H
25920#include <sys/statvfs.h>
25921#endif
25922
25923int
25924main ()
25925{
25926struct statvfs s; s.f_fsid = 0;
25927 ;
25928 return 0;
25929}
25930_ACEOF
25931rm -f conftest.$ac_objext
25932if { (ac_try="$ac_compile"
25933case "(($ac_try" in
25934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935 *) ac_try_echo=$ac_try;;
25936esac
25937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25938$as_echo "$ac_try_echo") >&5
25939 (eval "$ac_compile") 2>conftest.er1
25940 ac_status=$?
25941 grep -v '^ *+' conftest.er1 >conftest.err
25942 rm -f conftest.er1
25943 cat conftest.err >&5
25944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); } && {
25946 test -z "$ac_c_werror_flag" ||
25947 test ! -s conftest.err
25948 } && test -s conftest.$ac_objext; then
25949 { $as_echo "$as_me:$LINENO: result: yes" >&5
25950$as_echo "yes" >&6; }
25951else
25952 $as_echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
25955 { $as_echo "$as_me:$LINENO: result: no" >&5
25956$as_echo "no" >&6; }
25957
25958 { $as_echo "$as_me:$LINENO: checking if fsid_t has member val" >&5
25959$as_echo_n "checking if fsid_t has member val... " >&6; }
25960 cat >conftest.$ac_ext <<_ACEOF
25961/* confdefs.h. */
25962_ACEOF
25963cat confdefs.h >>conftest.$ac_ext
25964cat >>conftest.$ac_ext <<_ACEOF
25965/* end confdefs.h. */
25966
25967#include <sys/types.h>
25968#include <sys/statvfs.h>
25969int
25970main ()
25971{
25972fsid_t t; t.val[0] = 0;
25973 ;
25974 return 0;
25975}
25976_ACEOF
25977rm -f conftest.$ac_objext
25978if { (ac_try="$ac_compile"
25979case "(($ac_try" in
25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981 *) ac_try_echo=$ac_try;;
25982esac
25983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25984$as_echo "$ac_try_echo") >&5
25985 (eval "$ac_compile") 2>conftest.er1
25986 ac_status=$?
25987 grep -v '^ *+' conftest.er1 >conftest.err
25988 rm -f conftest.er1
25989 cat conftest.err >&5
25990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); } && {
25992 test -z "$ac_c_werror_flag" ||
25993 test ! -s conftest.err
25994 } && test -s conftest.$ac_objext; then
25995 { $as_echo "$as_me:$LINENO: result: yes" >&5
25996$as_echo "yes" >&6; }
25997
25998cat >>confdefs.h <<\_ACEOF
25999#define FSID_HAS_VAL 1
26000_ACEOF
26001
26002else
26003 $as_echo "$as_me: failed program was:" >&5
26004sed 's/^/| /' conftest.$ac_ext >&5
26005
26006 { $as_echo "$as_me:$LINENO: result: no" >&5
26007$as_echo "no" >&6; }
26008fi
26009
26010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011
26012 { $as_echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5
26013$as_echo_n "checking if f_fsid has member __val... " >&6; }
26014 cat >conftest.$ac_ext <<_ACEOF
26015/* confdefs.h. */
26016_ACEOF
26017cat confdefs.h >>conftest.$ac_ext
26018cat >>conftest.$ac_ext <<_ACEOF
26019/* end confdefs.h. */
26020
26021#include <sys/types.h>
26022#include <sys/statvfs.h>
26023int
26024main ()
26025{
26026fsid_t t; t.__val[0] = 0;
26027 ;
26028 return 0;
26029}
26030_ACEOF
26031rm -f conftest.$ac_objext
26032if { (ac_try="$ac_compile"
26033case "(($ac_try" in
26034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26035 *) ac_try_echo=$ac_try;;
26036esac
26037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26038$as_echo "$ac_try_echo") >&5
26039 (eval "$ac_compile") 2>conftest.er1
26040 ac_status=$?
26041 grep -v '^ *+' conftest.er1 >conftest.err
26042 rm -f conftest.er1
26043 cat conftest.err >&5
26044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); } && {
26046 test -z "$ac_c_werror_flag" ||
26047 test ! -s conftest.err
26048 } && test -s conftest.$ac_objext; then
26049 { $as_echo "$as_me:$LINENO: result: yes" >&5
26050$as_echo "yes" >&6; }
26051
26052cat >>confdefs.h <<\_ACEOF
26053#define FSID_HAS___VAL 1
26054_ACEOF
26055
26056else
26057 $as_echo "$as_me: failed program was:" >&5
26058sed 's/^/| /' conftest.$ac_ext >&5
26059
26060 { $as_echo "$as_me:$LINENO: result: no" >&5
26061$as_echo "no" >&6; }
26062fi
26063
26064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26065
26066fi
26067
26068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26069
26070{ $as_echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5
26071$as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
26072if test "${ac_cv_have_control_in_msghdr+set}" = set; then
26073 $as_echo_n "(cached) " >&6
26074else
26075
26076 cat >conftest.$ac_ext <<_ACEOF
26077
26078#include <sys/types.h>
26079#include <sys/socket.h>
26080#include <sys/uio.h>
26081int main() {
26082#ifdef msg_control
26083#error "msg_control is a macro"
26084exit(1);
26085#endif
26086struct msghdr m;
26087m.msg_control = 0;
26088exit(0);
26089}
26090
26091_ACEOF
26092rm -f conftest.$ac_objext
26093if { (ac_try="$ac_compile"
26094case "(($ac_try" in
26095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26096 *) ac_try_echo=$ac_try;;
26097esac
26098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26099$as_echo "$ac_try_echo") >&5
26100 (eval "$ac_compile") 2>conftest.er1
26101 ac_status=$?
26102 grep -v '^ *+' conftest.er1 >conftest.err
26103 rm -f conftest.er1
26104 cat conftest.err >&5
26105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); } && {
26107 test -z "$ac_c_werror_flag" ||
26108 test ! -s conftest.err
26109 } && test -s conftest.$ac_objext; then
26110 ac_cv_have_control_in_msghdr="yes"
26111else
26112 $as_echo "$as_me: failed program was:" >&5
26113sed 's/^/| /' conftest.$ac_ext >&5
26114
26115 ac_cv_have_control_in_msghdr="no"
26116
26117fi
26118
26119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26120
26121fi
26122{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5
26123$as_echo "$ac_cv_have_control_in_msghdr" >&6; }
26124if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
26125
26126cat >>confdefs.h <<\_ACEOF
26127#define HAVE_CONTROL_IN_MSGHDR 1
26128_ACEOF
26129
26130fi
26131
26132{ $as_echo "$as_me:$LINENO: checking if libc defines __progname" >&5
26133$as_echo_n "checking if libc defines __progname... " >&6; }
26134if test "${ac_cv_libc_defines___progname+set}" = set; then
26135 $as_echo_n "(cached) " >&6
26136else
26137
26138 cat >conftest.$ac_ext <<_ACEOF
26139/* confdefs.h. */
26140_ACEOF
26141cat confdefs.h >>conftest.$ac_ext
26142cat >>conftest.$ac_ext <<_ACEOF
26143/* end confdefs.h. */
26144
26145int
26146main ()
26147{
26148 extern char *__progname; printf("%s", __progname);
26149 ;
26150 return 0;
26151}
26152_ACEOF
26153rm -f conftest.$ac_objext conftest$ac_exeext
26154if { (ac_try="$ac_link"
26155case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26158esac
26159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26160$as_echo "$ac_try_echo") >&5
26161 (eval "$ac_link") 2>conftest.er1
26162 ac_status=$?
26163 grep -v '^ *+' conftest.er1 >conftest.err
26164 rm -f conftest.er1
26165 cat conftest.err >&5
26166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); } && {
26168 test -z "$ac_c_werror_flag" ||
26169 test ! -s conftest.err
26170 } && test -s conftest$ac_exeext && {
26171 test "$cross_compiling" = yes ||
26172 $as_test_x conftest$ac_exeext
26173 }; then
26174 ac_cv_libc_defines___progname="yes"
26175else
26176 $as_echo "$as_me: failed program was:" >&5
26177sed 's/^/| /' conftest.$ac_ext >&5
26178
26179 ac_cv_libc_defines___progname="no"
26180
26181fi
26182
26183rm -rf conftest.dSYM
26184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26185 conftest$ac_exeext conftest.$ac_ext
26186
26187fi
26188{ $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5
26189$as_echo "$ac_cv_libc_defines___progname" >&6; }
26190if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
26191
26192cat >>confdefs.h <<\_ACEOF
26193#define HAVE___PROGNAME 1
26194_ACEOF
26195
26196fi
26197
26198{ $as_echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5
26199$as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
26200if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then
26201 $as_echo_n "(cached) " >&6
26202else
26203
26204 cat >conftest.$ac_ext <<_ACEOF
26205/* confdefs.h. */
26206_ACEOF
26207cat confdefs.h >>conftest.$ac_ext
26208cat >>conftest.$ac_ext <<_ACEOF
26209/* end confdefs.h. */
26210
26211#include <stdio.h>
26212
26213int
26214main ()
26215{
26216 printf("%s", __FUNCTION__);
26217 ;
26218 return 0;
26219}
26220_ACEOF
26221rm -f conftest.$ac_objext conftest$ac_exeext
26222if { (ac_try="$ac_link"
26223case "(($ac_try" in
26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225 *) ac_try_echo=$ac_try;;
26226esac
26227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26228$as_echo "$ac_try_echo") >&5
26229 (eval "$ac_link") 2>conftest.er1
26230 ac_status=$?
26231 grep -v '^ *+' conftest.er1 >conftest.err
26232 rm -f conftest.er1
26233 cat conftest.err >&5
26234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); } && {
26236 test -z "$ac_c_werror_flag" ||
26237 test ! -s conftest.err
26238 } && test -s conftest$ac_exeext && {
26239 test "$cross_compiling" = yes ||
26240 $as_test_x conftest$ac_exeext
26241 }; then
26242 ac_cv_cc_implements___FUNCTION__="yes"
26243else
26244 $as_echo "$as_me: failed program was:" >&5
26245sed 's/^/| /' conftest.$ac_ext >&5
26246
26247 ac_cv_cc_implements___FUNCTION__="no"
26248
26249fi
26250
26251rm -rf conftest.dSYM
26252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26253 conftest$ac_exeext conftest.$ac_ext
26254
26255fi
26256{ $as_echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5
26257$as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
26258if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
26259
26260cat >>confdefs.h <<\_ACEOF
26261#define HAVE___FUNCTION__ 1
26262_ACEOF
26263
26264fi
26265
26266{ $as_echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5
26267$as_echo_n "checking whether $CC implements __func__... " >&6; }
26268if test "${ac_cv_cc_implements___func__+set}" = set; then
26269 $as_echo_n "(cached) " >&6
26270else
26271
26272 cat >conftest.$ac_ext <<_ACEOF
26273/* confdefs.h. */
26274_ACEOF
26275cat confdefs.h >>conftest.$ac_ext
26276cat >>conftest.$ac_ext <<_ACEOF
26277/* end confdefs.h. */
26278
26279#include <stdio.h>
26280
26281int
26282main ()
26283{
26284 printf("%s", __func__);
26285 ;
26286 return 0;
26287}
26288_ACEOF
26289rm -f conftest.$ac_objext conftest$ac_exeext
26290if { (ac_try="$ac_link"
26291case "(($ac_try" in
26292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293 *) ac_try_echo=$ac_try;;
26294esac
26295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26296$as_echo "$ac_try_echo") >&5
26297 (eval "$ac_link") 2>conftest.er1
26298 ac_status=$?
26299 grep -v '^ *+' conftest.er1 >conftest.err
26300 rm -f conftest.er1
26301 cat conftest.err >&5
26302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); } && {
26304 test -z "$ac_c_werror_flag" ||
26305 test ! -s conftest.err
26306 } && test -s conftest$ac_exeext && {
26307 test "$cross_compiling" = yes ||
26308 $as_test_x conftest$ac_exeext
26309 }; then
26310 ac_cv_cc_implements___func__="yes"
26311else
26312 $as_echo "$as_me: failed program was:" >&5
26313sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ac_cv_cc_implements___func__="no"
26316
26317fi
26318
26319rm -rf conftest.dSYM
26320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26321 conftest$ac_exeext conftest.$ac_ext
26322
26323fi
26324{ $as_echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5
26325$as_echo "$ac_cv_cc_implements___func__" >&6; }
26326if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
26327
26328cat >>confdefs.h <<\_ACEOF
26329#define HAVE___func__ 1
26330_ACEOF
26331
26332fi
26333
26334{ $as_echo "$as_me:$LINENO: checking whether va_copy exists" >&5
26335$as_echo_n "checking whether va_copy exists... " >&6; }
26336if test "${ac_cv_have_va_copy+set}" = set; then
26337 $as_echo_n "(cached) " >&6
26338else
26339
26340 cat >conftest.$ac_ext <<_ACEOF
26341/* confdefs.h. */
26342_ACEOF
26343cat confdefs.h >>conftest.$ac_ext
26344cat >>conftest.$ac_ext <<_ACEOF
26345/* end confdefs.h. */
26346#include <stdarg.h>
26347 va_list x,y;
26348int
26349main ()
26350{
26351va_copy(x,y);
26352 ;
26353 return 0;
26354}
26355_ACEOF
26356rm -f conftest.$ac_objext conftest$ac_exeext
26357if { (ac_try="$ac_link"
26358case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26361esac
26362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363$as_echo "$ac_try_echo") >&5
26364 (eval "$ac_link") 2>conftest.er1
26365 ac_status=$?
26366 grep -v '^ *+' conftest.er1 >conftest.err
26367 rm -f conftest.er1
26368 cat conftest.err >&5
26369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && {
26371 test -z "$ac_c_werror_flag" ||
26372 test ! -s conftest.err
26373 } && test -s conftest$ac_exeext && {
26374 test "$cross_compiling" = yes ||
26375 $as_test_x conftest$ac_exeext
26376 }; then
26377 ac_cv_have_va_copy="yes"
26378else
26379 $as_echo "$as_me: failed program was:" >&5
26380sed 's/^/| /' conftest.$ac_ext >&5
26381
26382 ac_cv_have_va_copy="no"
26383
26384fi
26385
26386rm -rf conftest.dSYM
26387rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26388 conftest$ac_exeext conftest.$ac_ext
26389
26390fi
26391{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5
26392$as_echo "$ac_cv_have_va_copy" >&6; }
26393if test "x$ac_cv_have_va_copy" = "xyes" ; then
26394
26395cat >>confdefs.h <<\_ACEOF
26396#define HAVE_VA_COPY 1
26397_ACEOF
26398
26399fi
26400
26401{ $as_echo "$as_me:$LINENO: checking whether __va_copy exists" >&5
26402$as_echo_n "checking whether __va_copy exists... " >&6; }
26403if test "${ac_cv_have___va_copy+set}" = set; then
26404 $as_echo_n "(cached) " >&6
26405else
26406
26407 cat >conftest.$ac_ext <<_ACEOF
26408/* confdefs.h. */
26409_ACEOF
26410cat confdefs.h >>conftest.$ac_ext
26411cat >>conftest.$ac_ext <<_ACEOF
26412/* end confdefs.h. */
26413#include <stdarg.h>
26414 va_list x,y;
26415int
26416main ()
26417{
26418__va_copy(x,y);
26419 ;
26420 return 0;
26421}
26422_ACEOF
26423rm -f conftest.$ac_objext conftest$ac_exeext
26424if { (ac_try="$ac_link"
26425case "(($ac_try" in
26426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427 *) ac_try_echo=$ac_try;;
26428esac
26429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26430$as_echo "$ac_try_echo") >&5
26431 (eval "$ac_link") 2>conftest.er1
26432 ac_status=$?
26433 grep -v '^ *+' conftest.er1 >conftest.err
26434 rm -f conftest.er1
26435 cat conftest.err >&5
26436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest$ac_exeext && {
26441 test "$cross_compiling" = yes ||
26442 $as_test_x conftest$ac_exeext
26443 }; then
26444 ac_cv_have___va_copy="yes"
26445else
26446 $as_echo "$as_me: failed program was:" >&5
26447sed 's/^/| /' conftest.$ac_ext >&5
26448
26449 ac_cv_have___va_copy="no"
26450
26451fi
26452
26453rm -rf conftest.dSYM
26454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26455 conftest$ac_exeext conftest.$ac_ext
26456
26457fi
26458{ $as_echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5
26459$as_echo "$ac_cv_have___va_copy" >&6; }
26460if test "x$ac_cv_have___va_copy" = "xyes" ; then
26461
26462cat >>confdefs.h <<\_ACEOF
26463#define HAVE___VA_COPY 1
26464_ACEOF
26465
26466fi
26467
26468{ $as_echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5
26469$as_echo_n "checking whether getopt has optreset support... " >&6; }
26470if test "${ac_cv_have_getopt_optreset+set}" = set; then
26471 $as_echo_n "(cached) " >&6
26472else
26473
26474 cat >conftest.$ac_ext <<_ACEOF
26475/* confdefs.h. */
26476_ACEOF
26477cat confdefs.h >>conftest.$ac_ext
26478cat >>conftest.$ac_ext <<_ACEOF
26479/* end confdefs.h. */
26480
26481#include <getopt.h>
26482
26483int
26484main ()
26485{
26486 extern int optreset; optreset = 0;
26487 ;
26488 return 0;
26489}
26490_ACEOF
26491rm -f conftest.$ac_objext conftest$ac_exeext
26492if { (ac_try="$ac_link"
26493case "(($ac_try" in
26494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26495 *) ac_try_echo=$ac_try;;
26496esac
26497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26498$as_echo "$ac_try_echo") >&5
26499 (eval "$ac_link") 2>conftest.er1
26500 ac_status=$?
26501 grep -v '^ *+' conftest.er1 >conftest.err
26502 rm -f conftest.er1
26503 cat conftest.err >&5
26504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } && {
26506 test -z "$ac_c_werror_flag" ||
26507 test ! -s conftest.err
26508 } && test -s conftest$ac_exeext && {
26509 test "$cross_compiling" = yes ||
26510 $as_test_x conftest$ac_exeext
26511 }; then
26512 ac_cv_have_getopt_optreset="yes"
26513else
26514 $as_echo "$as_me: failed program was:" >&5
26515sed 's/^/| /' conftest.$ac_ext >&5
26516
26517 ac_cv_have_getopt_optreset="no"
26518
26519fi
26520
26521rm -rf conftest.dSYM
26522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26523 conftest$ac_exeext conftest.$ac_ext
26524
26525fi
26526{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5
26527$as_echo "$ac_cv_have_getopt_optreset" >&6; }
26528if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
26529
26530cat >>confdefs.h <<\_ACEOF
26531#define HAVE_GETOPT_OPTRESET 1
26532_ACEOF
26533
26534fi
26535
26536{ $as_echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5
26537$as_echo_n "checking if libc defines sys_errlist... " >&6; }
26538if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then
26539 $as_echo_n "(cached) " >&6
26540else
26541
26542 cat >conftest.$ac_ext <<_ACEOF
26543/* confdefs.h. */
26544_ACEOF
26545cat confdefs.h >>conftest.$ac_ext
26546cat >>conftest.$ac_ext <<_ACEOF
26547/* end confdefs.h. */
26548
26549int
26550main ()
26551{
26552 extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
26553 ;
26554 return 0;
26555}
26556_ACEOF
26557rm -f conftest.$ac_objext conftest$ac_exeext
26558if { (ac_try="$ac_link"
26559case "(($ac_try" in
26560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26561 *) ac_try_echo=$ac_try;;
26562esac
26563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26564$as_echo "$ac_try_echo") >&5
26565 (eval "$ac_link") 2>conftest.er1
26566 ac_status=$?
26567 grep -v '^ *+' conftest.er1 >conftest.err
26568 rm -f conftest.er1
26569 cat conftest.err >&5
26570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); } && {
26572 test -z "$ac_c_werror_flag" ||
26573 test ! -s conftest.err
26574 } && test -s conftest$ac_exeext && {
26575 test "$cross_compiling" = yes ||
26576 $as_test_x conftest$ac_exeext
26577 }; then
26578 ac_cv_libc_defines_sys_errlist="yes"
26579else
26580 $as_echo "$as_me: failed program was:" >&5
26581sed 's/^/| /' conftest.$ac_ext >&5
26582
26583 ac_cv_libc_defines_sys_errlist="no"
26584
26585fi
26586
26587rm -rf conftest.dSYM
26588rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26589 conftest$ac_exeext conftest.$ac_ext
26590
26591fi
26592{ $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5
26593$as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
26594if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
26595
26596cat >>confdefs.h <<\_ACEOF
26597#define HAVE_SYS_ERRLIST 1
26598_ACEOF
26599
26600fi
26601
26602
26603{ $as_echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5
26604$as_echo_n "checking if libc defines sys_nerr... " >&6; }
26605if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then
26606 $as_echo_n "(cached) " >&6
26607else
26608
26609 cat >conftest.$ac_ext <<_ACEOF
26610/* confdefs.h. */
26611_ACEOF
26612cat confdefs.h >>conftest.$ac_ext
26613cat >>conftest.$ac_ext <<_ACEOF
26614/* end confdefs.h. */
26615
26616int
26617main ()
26618{
26619 extern int sys_nerr; printf("%i", sys_nerr);
26620 ;
26621 return 0;
26622}
26623_ACEOF
26624rm -f conftest.$ac_objext conftest$ac_exeext
26625if { (ac_try="$ac_link"
26626case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26629esac
26630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26631$as_echo "$ac_try_echo") >&5
26632 (eval "$ac_link") 2>conftest.er1
26633 ac_status=$?
26634 grep -v '^ *+' conftest.er1 >conftest.err
26635 rm -f conftest.er1
26636 cat conftest.err >&5
26637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26638 (exit $ac_status); } && {
26639 test -z "$ac_c_werror_flag" ||
26640 test ! -s conftest.err
26641 } && test -s conftest$ac_exeext && {
26642 test "$cross_compiling" = yes ||
26643 $as_test_x conftest$ac_exeext
26644 }; then
26645 ac_cv_libc_defines_sys_nerr="yes"
26646else
26647 $as_echo "$as_me: failed program was:" >&5
26648sed 's/^/| /' conftest.$ac_ext >&5
26649
26650 ac_cv_libc_defines_sys_nerr="no"
26651
26652fi
26653
26654rm -rf conftest.dSYM
26655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26656 conftest$ac_exeext conftest.$ac_ext
26657
26658fi
26659{ $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5
26660$as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
26661if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
26662
26663cat >>confdefs.h <<\_ACEOF
26664#define HAVE_SYS_NERR 1
26665_ACEOF
26666
26667fi
26668
26669SCARD_MSG="no"
26670# Check whether user wants sectok support
26671
26672# Check whether --with-sectok was given.
26673if test "${with_sectok+set}" = set; then
26674 withval=$with_sectok;
26675 if test "x$withval" != "xno" ; then
26676 if test "x$withval" != "xyes" ; then
26677 CPPFLAGS="$CPPFLAGS -I${withval}"
26678 LDFLAGS="$LDFLAGS -L${withval}"
26679 if test ! -z "$need_dash_r" ; then
26680 LDFLAGS="$LDFLAGS -R${withval}"
26681 fi
26682 if test ! -z "$blibpath" ; then
26683 blibpath="$blibpath:${withval}"
26684 fi
26685 fi
26686
26687for ac_header in sectok.h
26688do
26689as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26691 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26692$as_echo_n "checking for $ac_header... " >&6; }
26693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26694 $as_echo_n "(cached) " >&6
26695fi
26696ac_res=`eval 'as_val=${'$as_ac_Header'}
26697 $as_echo "$as_val"'`
26698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26699$as_echo "$ac_res" >&6; }
26700else
26701 # Is the header compilable?
26702{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26703$as_echo_n "checking $ac_header usability... " >&6; }
26704cat >conftest.$ac_ext <<_ACEOF
26705/* confdefs.h. */
26706_ACEOF
26707cat confdefs.h >>conftest.$ac_ext
26708cat >>conftest.$ac_ext <<_ACEOF
26709/* end confdefs.h. */
26710$ac_includes_default
26711#include <$ac_header>
26712_ACEOF
26713rm -f conftest.$ac_objext
26714if { (ac_try="$ac_compile"
26715case "(($ac_try" in
26716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717 *) ac_try_echo=$ac_try;;
26718esac
26719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26720$as_echo "$ac_try_echo") >&5
26721 (eval "$ac_compile") 2>conftest.er1
26722 ac_status=$?
26723 grep -v '^ *+' conftest.er1 >conftest.err
26724 rm -f conftest.er1
26725 cat conftest.err >&5
26726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } && {
26728 test -z "$ac_c_werror_flag" ||
26729 test ! -s conftest.err
26730 } && test -s conftest.$ac_objext; then
26731 ac_header_compiler=yes
26732else
26733 $as_echo "$as_me: failed program was:" >&5
26734sed 's/^/| /' conftest.$ac_ext >&5
26735
26736 ac_header_compiler=no
26737fi
26738
26739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26740{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26741$as_echo "$ac_header_compiler" >&6; }
26742
26743# Is the header present?
26744{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26745$as_echo_n "checking $ac_header presence... " >&6; }
26746cat >conftest.$ac_ext <<_ACEOF
26747/* confdefs.h. */
26748_ACEOF
26749cat confdefs.h >>conftest.$ac_ext
26750cat >>conftest.$ac_ext <<_ACEOF
26751/* end confdefs.h. */
26752#include <$ac_header>
26753_ACEOF
26754if { (ac_try="$ac_cpp conftest.$ac_ext"
26755case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26758esac
26759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26760$as_echo "$ac_try_echo") >&5
26761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26762 ac_status=$?
26763 grep -v '^ *+' conftest.er1 >conftest.err
26764 rm -f conftest.er1
26765 cat conftest.err >&5
26766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } >/dev/null && {
26768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26769 test ! -s conftest.err
26770 }; then
26771 ac_header_preproc=yes
26772else
26773 $as_echo "$as_me: failed program was:" >&5
26774sed 's/^/| /' conftest.$ac_ext >&5
26775
26776 ac_header_preproc=no
26777fi
26778
26779rm -f conftest.err conftest.$ac_ext
26780{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26781$as_echo "$ac_header_preproc" >&6; }
26782
26783# So? What about this header?
26784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26785 yes:no: )
26786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26787$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26789$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26790 ac_header_preproc=yes
26791 ;;
26792 no:yes:* )
26793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26794$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26796$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26797 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26798$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26800$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26802$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26804$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26805 ( cat <<\_ASBOX
26806## ------------------------------------------- ##
26807## Report this to openssh-unix-dev@mindrot.org ##
26808## ------------------------------------------- ##
26809_ASBOX
26810 ) | sed "s/^/$as_me: WARNING: /" >&2
26811 ;;
26812esac
26813{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26814$as_echo_n "checking for $ac_header... " >&6; }
26815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26816 $as_echo_n "(cached) " >&6
26817else
26818 eval "$as_ac_Header=\$ac_header_preproc"
26819fi
26820ac_res=`eval 'as_val=${'$as_ac_Header'}
26821 $as_echo "$as_val"'`
26822 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26823$as_echo "$ac_res" >&6; }
26824
26825fi
26826if test `eval 'as_val=${'$as_ac_Header'}
26827 $as_echo "$as_val"'` = yes; then
26828 cat >>confdefs.h <<_ACEOF
26829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26830_ACEOF
26831
26832fi
26833
26834done
26835
26836 if test "$ac_cv_header_sectok_h" != yes; then
26837 { { $as_echo "$as_me:$LINENO: error: Can't find sectok.h" >&5
26838$as_echo "$as_me: error: Can't find sectok.h" >&2;}
26839 { (exit 1); exit 1; }; }
26840 fi
26841
26842{ $as_echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5
26843$as_echo_n "checking for sectok_open in -lsectok... " >&6; }
26844if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then
26845 $as_echo_n "(cached) " >&6
26846else
26847 ac_check_lib_save_LIBS=$LIBS
26848LIBS="-lsectok $LIBS"
26849cat >conftest.$ac_ext <<_ACEOF
26850/* confdefs.h. */
26851_ACEOF
26852cat confdefs.h >>conftest.$ac_ext
26853cat >>conftest.$ac_ext <<_ACEOF
26854/* end confdefs.h. */
26855
26856/* Override any GCC internal prototype to avoid an error.
26857 Use char because int might match the return type of a GCC
26858 builtin and then its argument prototype would still apply. */
26859#ifdef __cplusplus
26860extern "C"
26861#endif
26862char sectok_open ();
26863int
26864main ()
26865{
26866return sectok_open ();
26867 ;
26868 return 0;
26869}
26870_ACEOF
26871rm -f conftest.$ac_objext conftest$ac_exeext
26872if { (ac_try="$ac_link"
26873case "(($ac_try" in
26874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875 *) ac_try_echo=$ac_try;;
26876esac
26877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26878$as_echo "$ac_try_echo") >&5
26879 (eval "$ac_link") 2>conftest.er1
26880 ac_status=$?
26881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
26883 cat conftest.err >&5
26884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } && {
26886 test -z "$ac_c_werror_flag" ||
26887 test ! -s conftest.err
26888 } && test -s conftest$ac_exeext && {
26889 test "$cross_compiling" = yes ||
26890 $as_test_x conftest$ac_exeext
26891 }; then
26892 ac_cv_lib_sectok_sectok_open=yes
26893else
26894 $as_echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
26897 ac_cv_lib_sectok_sectok_open=no
26898fi
26899
26900rm -rf conftest.dSYM
26901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26902 conftest$ac_exeext conftest.$ac_ext
26903LIBS=$ac_check_lib_save_LIBS
26904fi
26905{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5
26906$as_echo "$ac_cv_lib_sectok_sectok_open" >&6; }
26907if test $ac_cv_lib_sectok_sectok_open = yes; then
26908 cat >>confdefs.h <<_ACEOF
26909#define HAVE_LIBSECTOK 1
26910_ACEOF
26911
26912 LIBS="-lsectok $LIBS"
26913
26914fi
26915
26916 if test "$ac_cv_lib_sectok_sectok_open" != yes; then
26917 { { $as_echo "$as_me:$LINENO: error: Can't find libsectok" >&5
26918$as_echo "$as_me: error: Can't find libsectok" >&2;}
26919 { (exit 1); exit 1; }; }
26920 fi
26921
26922cat >>confdefs.h <<\_ACEOF
26923#define SMARTCARD 1
26924_ACEOF
26925
26926
26927cat >>confdefs.h <<\_ACEOF
26928#define USE_SECTOK 1
26929_ACEOF
26930
26931 SCARD_MSG="yes, using sectok"
26932 fi
26933
26934
26935fi
26936
26937
26938# Check whether user wants OpenSC support
26939OPENSC_CONFIG="no"
26940
26941# Check whether --with-opensc was given.
26942if test "${with_opensc+set}" = set; then
26943 withval=$with_opensc;
26944 if test "x$withval" != "xno" ; then
26945 if test "x$withval" != "xyes" ; then
26946 OPENSC_CONFIG=$withval/bin/opensc-config
26947 else
26948 # Extract the first word of "opensc-config", so it can be a program name with args.
26949set dummy opensc-config; ac_word=$2
26950{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26951$as_echo_n "checking for $ac_word... " >&6; }
26952if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then
26953 $as_echo_n "(cached) " >&6
26954else
26955 case $OPENSC_CONFIG in
26956 [\\/]* | ?:[\\/]*)
26957 ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
26958 ;;
26959 *)
26960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26961for as_dir in $PATH
26962do
26963 IFS=$as_save_IFS
26964 test -z "$as_dir" && as_dir=.
26965 for ac_exec_ext in '' $ac_executable_extensions; do
26966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26967 ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26969 break 2
26970 fi
26971done
26972done
26973IFS=$as_save_IFS
26974
26975 test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
26976 ;;
26977esac
26978fi
26979OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
26980if test -n "$OPENSC_CONFIG"; then
26981 { $as_echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5
26982$as_echo "$OPENSC_CONFIG" >&6; }
26983else
26984 { $as_echo "$as_me:$LINENO: result: no" >&5
26985$as_echo "no" >&6; }
26986fi
26987
26988
26989 fi
26990 if test "$OPENSC_CONFIG" != "no"; then
26991 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
26992 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
26993 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
26994 LIBS="$LIBS $LIBOPENSC_LIBS"
26995 cat >>confdefs.h <<\_ACEOF
26996#define SMARTCARD 1
26997_ACEOF
26998
26999
27000cat >>confdefs.h <<\_ACEOF
27001#define USE_OPENSC 1
27002_ACEOF
27003
27004 SCARD_MSG="yes, using OpenSC"
27005 fi
27006 fi
27007
27008
27009fi
27010
27011
27012# Check libraries needed by DNS fingerprint support
27013{ $as_echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5
27014$as_echo_n "checking for library containing getrrsetbyname... " >&6; }
27015if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27016 $as_echo_n "(cached) " >&6
27017else
27018 ac_func_search_save_LIBS=$LIBS
27019cat >conftest.$ac_ext <<_ACEOF
27020/* confdefs.h. */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h. */
27025
27026/* Override any GCC internal prototype to avoid an error.
27027 Use char because int might match the return type of a GCC
27028 builtin and then its argument prototype would still apply. */
27029#ifdef __cplusplus
27030extern "C"
27031#endif
27032char getrrsetbyname ();
27033int
27034main ()
27035{
27036return getrrsetbyname ();
27037 ;
27038 return 0;
27039}
27040_ACEOF
27041for ac_lib in '' resolv; do
27042 if test -z "$ac_lib"; then
27043 ac_res="none required"
27044 else
27045 ac_res=-l$ac_lib
27046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27047 fi
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049if { (ac_try="$ac_link"
27050case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27053esac
27054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27055$as_echo "$ac_try_echo") >&5
27056 (eval "$ac_link") 2>conftest.er1
27057 ac_status=$?
27058 grep -v '^ *+' conftest.er1 >conftest.err
27059 rm -f conftest.er1
27060 cat conftest.err >&5
27061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); } && {
27063 test -z "$ac_c_werror_flag" ||
27064 test ! -s conftest.err
27065 } && test -s conftest$ac_exeext && {
27066 test "$cross_compiling" = yes ||
27067 $as_test_x conftest$ac_exeext
27068 }; then
27069 ac_cv_search_getrrsetbyname=$ac_res
27070else
27071 $as_echo "$as_me: failed program was:" >&5
27072sed 's/^/| /' conftest.$ac_ext >&5
27073
27074
27075fi
27076
27077rm -rf conftest.dSYM
27078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27079 conftest$ac_exeext
27080 if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27081 break
27082fi
27083done
27084if test "${ac_cv_search_getrrsetbyname+set}" = set; then
27085 :
27086else
27087 ac_cv_search_getrrsetbyname=no
27088fi
27089rm conftest.$ac_ext
27090LIBS=$ac_func_search_save_LIBS
27091fi
27092{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5
27093$as_echo "$ac_cv_search_getrrsetbyname" >&6; }
27094ac_res=$ac_cv_search_getrrsetbyname
27095if test "$ac_res" != no; then
27096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27097
27098cat >>confdefs.h <<\_ACEOF
27099#define HAVE_GETRRSETBYNAME 1
27100_ACEOF
27101
27102else
27103
27104 # Needed by our getrrsetbyname()
27105 { $as_echo "$as_me:$LINENO: checking for library containing res_query" >&5
27106$as_echo_n "checking for library containing res_query... " >&6; }
27107if test "${ac_cv_search_res_query+set}" = set; then
27108 $as_echo_n "(cached) " >&6
27109else
27110 ac_func_search_save_LIBS=$LIBS
27111cat >conftest.$ac_ext <<_ACEOF
27112/* confdefs.h. */
27113_ACEOF
27114cat confdefs.h >>conftest.$ac_ext
27115cat >>conftest.$ac_ext <<_ACEOF
27116/* end confdefs.h. */
27117
27118/* Override any GCC internal prototype to avoid an error.
27119 Use char because int might match the return type of a GCC
27120 builtin and then its argument prototype would still apply. */
27121#ifdef __cplusplus
27122extern "C"
27123#endif
27124char res_query ();
27125int
27126main ()
27127{
27128return res_query ();
27129 ;
27130 return 0;
27131}
27132_ACEOF
27133for ac_lib in '' resolv; do
27134 if test -z "$ac_lib"; then
27135 ac_res="none required"
27136 else
27137 ac_res=-l$ac_lib
27138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27139 fi
27140 rm -f conftest.$ac_objext conftest$ac_exeext
27141if { (ac_try="$ac_link"
27142case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27145esac
27146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27147$as_echo "$ac_try_echo") >&5
27148 (eval "$ac_link") 2>conftest.er1
27149 ac_status=$?
27150 grep -v '^ *+' conftest.er1 >conftest.err
27151 rm -f conftest.er1
27152 cat conftest.err >&5
27153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } && {
27155 test -z "$ac_c_werror_flag" ||
27156 test ! -s conftest.err
27157 } && test -s conftest$ac_exeext && {
27158 test "$cross_compiling" = yes ||
27159 $as_test_x conftest$ac_exeext
27160 }; then
27161 ac_cv_search_res_query=$ac_res
27162else
27163 $as_echo "$as_me: failed program was:" >&5
27164sed 's/^/| /' conftest.$ac_ext >&5
27165
27166
27167fi
27168
27169rm -rf conftest.dSYM
27170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27171 conftest$ac_exeext
27172 if test "${ac_cv_search_res_query+set}" = set; then
27173 break
27174fi
27175done
27176if test "${ac_cv_search_res_query+set}" = set; then
27177 :
27178else
27179 ac_cv_search_res_query=no
27180fi
27181rm conftest.$ac_ext
27182LIBS=$ac_func_search_save_LIBS
27183fi
27184{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5
27185$as_echo "$ac_cv_search_res_query" >&6; }
27186ac_res=$ac_cv_search_res_query
27187if test "$ac_res" != no; then
27188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27189
27190fi
27191
27192 { $as_echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
27193$as_echo_n "checking for library containing dn_expand... " >&6; }
27194if test "${ac_cv_search_dn_expand+set}" = set; then
27195 $as_echo_n "(cached) " >&6
27196else
27197 ac_func_search_save_LIBS=$LIBS
27198cat >conftest.$ac_ext <<_ACEOF
27199/* confdefs.h. */
27200_ACEOF
27201cat confdefs.h >>conftest.$ac_ext
27202cat >>conftest.$ac_ext <<_ACEOF
27203/* end confdefs.h. */
27204
27205/* Override any GCC internal prototype to avoid an error.
27206 Use char because int might match the return type of a GCC
27207 builtin and then its argument prototype would still apply. */
27208#ifdef __cplusplus
27209extern "C"
27210#endif
27211char dn_expand ();
27212int
27213main ()
27214{
27215return dn_expand ();
27216 ;
27217 return 0;
27218}
27219_ACEOF
27220for ac_lib in '' resolv; do
27221 if test -z "$ac_lib"; then
27222 ac_res="none required"
27223 else
27224 ac_res=-l$ac_lib
27225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27226 fi
27227 rm -f conftest.$ac_objext conftest$ac_exeext
27228if { (ac_try="$ac_link"
27229case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232esac
27233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27234$as_echo "$ac_try_echo") >&5
27235 (eval "$ac_link") 2>conftest.er1
27236 ac_status=$?
27237 grep -v '^ *+' conftest.er1 >conftest.err
27238 rm -f conftest.er1
27239 cat conftest.err >&5
27240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } && {
27242 test -z "$ac_c_werror_flag" ||
27243 test ! -s conftest.err
27244 } && test -s conftest$ac_exeext && {
27245 test "$cross_compiling" = yes ||
27246 $as_test_x conftest$ac_exeext
27247 }; then
27248 ac_cv_search_dn_expand=$ac_res
27249else
27250 $as_echo "$as_me: failed program was:" >&5
27251sed 's/^/| /' conftest.$ac_ext >&5
27252
27253
27254fi
27255
27256rm -rf conftest.dSYM
27257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27258 conftest$ac_exeext
27259 if test "${ac_cv_search_dn_expand+set}" = set; then
27260 break
27261fi
27262done
27263if test "${ac_cv_search_dn_expand+set}" = set; then
27264 :
27265else
27266 ac_cv_search_dn_expand=no
27267fi
27268rm conftest.$ac_ext
27269LIBS=$ac_func_search_save_LIBS
27270fi
27271{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
27272$as_echo "$ac_cv_search_dn_expand" >&6; }
27273ac_res=$ac_cv_search_dn_expand
27274if test "$ac_res" != no; then
27275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27276
27277fi
27278
27279 { $as_echo "$as_me:$LINENO: checking if res_query will link" >&5
27280$as_echo_n "checking if res_query will link... " >&6; }
27281 cat >conftest.$ac_ext <<_ACEOF
27282
27283#include "confdefs.h"
27284#include <sys/types.h>
27285#include <netinet/in.h>
27286#include <arpa/nameser.h>
27287#include <netdb.h>
27288#include <resolv.h>
27289int main()
27290{
27291 res_query (0, 0, 0, 0, 0);
27292 return 0;
27293}
27294
27295_ACEOF
27296rm -f conftest.$ac_objext conftest$ac_exeext
27297if { (ac_try="$ac_link"
27298case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27301esac
27302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303$as_echo "$ac_try_echo") >&5
27304 (eval "$ac_link") 2>conftest.er1
27305 ac_status=$?
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
27309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest$ac_exeext && {
27314 test "$cross_compiling" = yes ||
27315 $as_test_x conftest$ac_exeext
27316 }; then
27317 { $as_echo "$as_me:$LINENO: result: yes" >&5
27318$as_echo "yes" >&6; }
27319else
27320 $as_echo "$as_me: failed program was:" >&5
27321sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 { $as_echo "$as_me:$LINENO: result: no" >&5
27324$as_echo "no" >&6; }
27325 saved_LIBS="$LIBS"
27326 LIBS="$LIBS -lresolv"
27327 { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
27328$as_echo_n "checking for res_query in -lresolv... " >&6; }
27329 cat >conftest.$ac_ext <<_ACEOF
27330
27331#include "confdefs.h"
27332#include <sys/types.h>
27333#include <netinet/in.h>
27334#include <arpa/nameser.h>
27335#include <netdb.h>
27336#include <resolv.h>
27337int main()
27338{
27339 res_query (0, 0, 0, 0, 0);
27340 return 0;
27341}
27342
27343_ACEOF
27344rm -f conftest.$ac_objext conftest$ac_exeext
27345if { (ac_try="$ac_link"
27346case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27349esac
27350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27351$as_echo "$ac_try_echo") >&5
27352 (eval "$ac_link") 2>conftest.er1
27353 ac_status=$?
27354 grep -v '^ *+' conftest.er1 >conftest.err
27355 rm -f conftest.er1
27356 cat conftest.err >&5
27357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } && {
27359 test -z "$ac_c_werror_flag" ||
27360 test ! -s conftest.err
27361 } && test -s conftest$ac_exeext && {
27362 test "$cross_compiling" = yes ||
27363 $as_test_x conftest$ac_exeext
27364 }; then
27365 { $as_echo "$as_me:$LINENO: result: yes" >&5
27366$as_echo "yes" >&6; }
27367else
27368 $as_echo "$as_me: failed program was:" >&5
27369sed 's/^/| /' conftest.$ac_ext >&5
27370
27371 LIBS="$saved_LIBS"
27372 { $as_echo "$as_me:$LINENO: result: no" >&5
27373$as_echo "no" >&6; }
27374fi
27375
27376rm -rf conftest.dSYM
27377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27378 conftest$ac_exeext conftest.$ac_ext
27379
27380fi
27381
27382rm -rf conftest.dSYM
27383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27384 conftest$ac_exeext conftest.$ac_ext
27385
27386
27387for ac_func in _getshort _getlong
27388do
27389as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27390{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27391$as_echo_n "checking for $ac_func... " >&6; }
27392if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27393 $as_echo_n "(cached) " >&6
27394else
27395 cat >conftest.$ac_ext <<_ACEOF
27396/* confdefs.h. */
27397_ACEOF
27398cat confdefs.h >>conftest.$ac_ext
27399cat >>conftest.$ac_ext <<_ACEOF
27400/* end confdefs.h. */
27401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27403#define $ac_func innocuous_$ac_func
27404
27405/* System header to define __stub macros and hopefully few prototypes,
27406 which can conflict with char $ac_func (); below.
27407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27408 <limits.h> exists even on freestanding compilers. */
27409
27410#ifdef __STDC__
27411# include <limits.h>
27412#else
27413# include <assert.h>
27414#endif
27415
27416#undef $ac_func
27417
27418/* Override any GCC internal prototype to avoid an error.
27419 Use char because int might match the return type of a GCC
27420 builtin and then its argument prototype would still apply. */
27421#ifdef __cplusplus
27422extern "C"
27423#endif
27424char $ac_func ();
27425/* The GNU C library defines this for functions which it implements
27426 to always fail with ENOSYS. Some functions are actually named
27427 something starting with __ and the normal name is an alias. */
27428#if defined __stub_$ac_func || defined __stub___$ac_func
27429choke me
27430#endif
27431
27432int
27433main ()
27434{
27435return $ac_func ();
27436 ;
27437 return 0;
27438}
27439_ACEOF
27440rm -f conftest.$ac_objext conftest$ac_exeext
27441if { (ac_try="$ac_link"
27442case "(($ac_try" in
27443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444 *) ac_try_echo=$ac_try;;
27445esac
27446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27447$as_echo "$ac_try_echo") >&5
27448 (eval "$ac_link") 2>conftest.er1
27449 ac_status=$?
27450 grep -v '^ *+' conftest.er1 >conftest.err
27451 rm -f conftest.er1
27452 cat conftest.err >&5
27453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); } && {
27455 test -z "$ac_c_werror_flag" ||
27456 test ! -s conftest.err
27457 } && test -s conftest$ac_exeext && {
27458 test "$cross_compiling" = yes ||
27459 $as_test_x conftest$ac_exeext
27460 }; then
27461 eval "$as_ac_var=yes"
27462else
27463 $as_echo "$as_me: failed program was:" >&5
27464sed 's/^/| /' conftest.$ac_ext >&5
27465
27466 eval "$as_ac_var=no"
27467fi
27468
27469rm -rf conftest.dSYM
27470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27471 conftest$ac_exeext conftest.$ac_ext
27472fi
27473ac_res=`eval 'as_val=${'$as_ac_var'}
27474 $as_echo "$as_val"'`
27475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27476$as_echo "$ac_res" >&6; }
27477if test `eval 'as_val=${'$as_ac_var'}
27478 $as_echo "$as_val"'` = yes; then
27479 cat >>confdefs.h <<_ACEOF
27480#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27481_ACEOF
27482
27483fi
27484done
27485
27486 { $as_echo "$as_me:$LINENO: checking whether _getshort is declared" >&5
27487$as_echo_n "checking whether _getshort is declared... " >&6; }
27488if test "${ac_cv_have_decl__getshort+set}" = set; then
27489 $as_echo_n "(cached) " >&6
27490else
27491 cat >conftest.$ac_ext <<_ACEOF
27492/* confdefs.h. */
27493_ACEOF
27494cat confdefs.h >>conftest.$ac_ext
27495cat >>conftest.$ac_ext <<_ACEOF
27496/* end confdefs.h. */
27497#include <sys/types.h>
27498 #include <arpa/nameser.h>
27499
27500int
27501main ()
27502{
27503#ifndef _getshort
27504 (void) _getshort;
27505#endif
27506
27507 ;
27508 return 0;
27509}
27510_ACEOF
27511rm -f conftest.$ac_objext
27512if { (ac_try="$ac_compile"
27513case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27516esac
27517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27518$as_echo "$ac_try_echo") >&5
27519 (eval "$ac_compile") 2>conftest.er1
27520 ac_status=$?
27521 grep -v '^ *+' conftest.er1 >conftest.err
27522 rm -f conftest.er1
27523 cat conftest.err >&5
27524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } && {
27526 test -z "$ac_c_werror_flag" ||
27527 test ! -s conftest.err
27528 } && test -s conftest.$ac_objext; then
27529 ac_cv_have_decl__getshort=yes
27530else
27531 $as_echo "$as_me: failed program was:" >&5
27532sed 's/^/| /' conftest.$ac_ext >&5
27533
27534 ac_cv_have_decl__getshort=no
27535fi
27536
27537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27538fi
27539{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5
27540$as_echo "$ac_cv_have_decl__getshort" >&6; }
27541if test $ac_cv_have_decl__getshort = yes; then
27542
27543cat >>confdefs.h <<_ACEOF
27544#define HAVE_DECL__GETSHORT 1
27545_ACEOF
27546
27547
27548else
27549 cat >>confdefs.h <<_ACEOF
27550#define HAVE_DECL__GETSHORT 0
27551_ACEOF
27552
27553
27554fi
27555{ $as_echo "$as_me:$LINENO: checking whether _getlong is declared" >&5
27556$as_echo_n "checking whether _getlong is declared... " >&6; }
27557if test "${ac_cv_have_decl__getlong+set}" = set; then
27558 $as_echo_n "(cached) " >&6
27559else
27560 cat >conftest.$ac_ext <<_ACEOF
27561/* confdefs.h. */
27562_ACEOF
27563cat confdefs.h >>conftest.$ac_ext
27564cat >>conftest.$ac_ext <<_ACEOF
27565/* end confdefs.h. */
27566#include <sys/types.h>
27567 #include <arpa/nameser.h>
27568
27569int
27570main ()
27571{
27572#ifndef _getlong
27573 (void) _getlong;
27574#endif
27575
27576 ;
27577 return 0;
27578}
27579_ACEOF
27580rm -f conftest.$ac_objext
27581if { (ac_try="$ac_compile"
27582case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27585esac
27586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27587$as_echo "$ac_try_echo") >&5
27588 (eval "$ac_compile") 2>conftest.er1
27589 ac_status=$?
27590 grep -v '^ *+' conftest.er1 >conftest.err
27591 rm -f conftest.er1
27592 cat conftest.err >&5
27593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); } && {
27595 test -z "$ac_c_werror_flag" ||
27596 test ! -s conftest.err
27597 } && test -s conftest.$ac_objext; then
27598 ac_cv_have_decl__getlong=yes
27599else
27600 $as_echo "$as_me: failed program was:" >&5
27601sed 's/^/| /' conftest.$ac_ext >&5
27602
27603 ac_cv_have_decl__getlong=no
27604fi
27605
27606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27607fi
27608{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5
27609$as_echo "$ac_cv_have_decl__getlong" >&6; }
27610if test $ac_cv_have_decl__getlong = yes; then
27611
27612cat >>confdefs.h <<_ACEOF
27613#define HAVE_DECL__GETLONG 1
27614_ACEOF
27615
27616
27617else
27618 cat >>confdefs.h <<_ACEOF
27619#define HAVE_DECL__GETLONG 0
27620_ACEOF
27621
27622
27623fi
27624
27625
27626 { $as_echo "$as_me:$LINENO: checking for HEADER.ad" >&5
27627$as_echo_n "checking for HEADER.ad... " >&6; }
27628if test "${ac_cv_member_HEADER_ad+set}" = set; then
27629 $as_echo_n "(cached) " >&6
27630else
27631 cat >conftest.$ac_ext <<_ACEOF
27632/* confdefs.h. */
27633_ACEOF
27634cat confdefs.h >>conftest.$ac_ext
27635cat >>conftest.$ac_ext <<_ACEOF
27636/* end confdefs.h. */
27637#include <arpa/nameser.h>
27638
27639int
27640main ()
27641{
27642static HEADER ac_aggr;
27643if (ac_aggr.ad)
27644return 0;
27645 ;
27646 return 0;
27647}
27648_ACEOF
27649rm -f conftest.$ac_objext
27650if { (ac_try="$ac_compile"
27651case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27654esac
27655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27656$as_echo "$ac_try_echo") >&5
27657 (eval "$ac_compile") 2>conftest.er1
27658 ac_status=$?
27659 grep -v '^ *+' conftest.er1 >conftest.err
27660 rm -f conftest.er1
27661 cat conftest.err >&5
27662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); } && {
27664 test -z "$ac_c_werror_flag" ||
27665 test ! -s conftest.err
27666 } && test -s conftest.$ac_objext; then
27667 ac_cv_member_HEADER_ad=yes
27668else
27669 $as_echo "$as_me: failed program was:" >&5
27670sed 's/^/| /' conftest.$ac_ext >&5
27671
27672 cat >conftest.$ac_ext <<_ACEOF
27673/* confdefs.h. */
27674_ACEOF
27675cat confdefs.h >>conftest.$ac_ext
27676cat >>conftest.$ac_ext <<_ACEOF
27677/* end confdefs.h. */
27678#include <arpa/nameser.h>
27679
27680int
27681main ()
27682{
27683static HEADER ac_aggr;
27684if (sizeof ac_aggr.ad)
27685return 0;
27686 ;
27687 return 0;
27688}
27689_ACEOF
27690rm -f conftest.$ac_objext
27691if { (ac_try="$ac_compile"
27692case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695esac
27696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27697$as_echo "$ac_try_echo") >&5
27698 (eval "$ac_compile") 2>conftest.er1
27699 ac_status=$?
27700 grep -v '^ *+' conftest.er1 >conftest.err
27701 rm -f conftest.er1
27702 cat conftest.err >&5
27703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704 (exit $ac_status); } && {
27705 test -z "$ac_c_werror_flag" ||
27706 test ! -s conftest.err
27707 } && test -s conftest.$ac_objext; then
27708 ac_cv_member_HEADER_ad=yes
27709else
27710 $as_echo "$as_me: failed program was:" >&5
27711sed 's/^/| /' conftest.$ac_ext >&5
27712
27713 ac_cv_member_HEADER_ad=no
27714fi
27715
27716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27717fi
27718
27719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720fi
27721{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5
27722$as_echo "$ac_cv_member_HEADER_ad" >&6; }
27723if test $ac_cv_member_HEADER_ad = yes; then
27724
27725cat >>confdefs.h <<\_ACEOF
27726#define HAVE_HEADER_AD 1
27727_ACEOF
27728
27729fi
27730
27731
27732fi
27733
27734
27735{ $as_echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5
27736$as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
27737cat >conftest.$ac_ext <<_ACEOF
27738
27739#include <stdio.h>
27740#if HAVE_SYS_TYPES_H
27741# include <sys/types.h>
27742#endif
27743#include <netinet/in.h>
27744#include <arpa/nameser.h>
27745#include <resolv.h>
27746extern struct __res_state _res;
27747int main() { return 0; }
27748
27749_ACEOF
27750rm -f conftest.$ac_objext conftest$ac_exeext
27751if { (ac_try="$ac_link"
27752case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755esac
27756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27757$as_echo "$ac_try_echo") >&5
27758 (eval "$ac_link") 2>conftest.er1
27759 ac_status=$?
27760 grep -v '^ *+' conftest.er1 >conftest.err
27761 rm -f conftest.er1
27762 cat conftest.err >&5
27763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); } && {
27765 test -z "$ac_c_werror_flag" ||
27766 test ! -s conftest.err
27767 } && test -s conftest$ac_exeext && {
27768 test "$cross_compiling" = yes ||
27769 $as_test_x conftest$ac_exeext
27770 }; then
27771 { $as_echo "$as_me:$LINENO: result: yes" >&5
27772$as_echo "yes" >&6; }
27773
27774cat >>confdefs.h <<\_ACEOF
27775#define HAVE__RES_EXTERN 1
27776_ACEOF
27777
27778
27779else
27780 $as_echo "$as_me: failed program was:" >&5
27781sed 's/^/| /' conftest.$ac_ext >&5
27782
27783 { $as_echo "$as_me:$LINENO: result: no" >&5
27784$as_echo "no" >&6; }
27785
27786fi
27787
27788rm -rf conftest.dSYM
27789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27790 conftest$ac_exeext conftest.$ac_ext
27791
27792# Check whether user wants SELinux support
27793SELINUX_MSG="no"
27794LIBSELINUX=""
27795
27796# Check whether --with-selinux was given.
27797if test "${with_selinux+set}" = set; then
27798 withval=$with_selinux; if test "x$withval" != "xno" ; then
27799 save_LIBS="$LIBS"
27800
27801cat >>confdefs.h <<\_ACEOF
27802#define WITH_SELINUX 1
27803_ACEOF
27804
27805 SELINUX_MSG="yes"
27806 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27807 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
27808$as_echo_n "checking for selinux/selinux.h... " >&6; }
27809if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27810 $as_echo_n "(cached) " >&6
27811fi
27812{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
27813$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
27814else
27815 # Is the header compilable?
27816{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
27817$as_echo_n "checking selinux/selinux.h usability... " >&6; }
27818cat >conftest.$ac_ext <<_ACEOF
27819/* confdefs.h. */
27820_ACEOF
27821cat confdefs.h >>conftest.$ac_ext
27822cat >>conftest.$ac_ext <<_ACEOF
27823/* end confdefs.h. */
27824$ac_includes_default
27825#include <selinux/selinux.h>
27826_ACEOF
27827rm -f conftest.$ac_objext
27828if { (ac_try="$ac_compile"
27829case "(($ac_try" in
27830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831 *) ac_try_echo=$ac_try;;
27832esac
27833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27834$as_echo "$ac_try_echo") >&5
27835 (eval "$ac_compile") 2>conftest.er1
27836 ac_status=$?
27837 grep -v '^ *+' conftest.er1 >conftest.err
27838 rm -f conftest.er1
27839 cat conftest.err >&5
27840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); } && {
27842 test -z "$ac_c_werror_flag" ||
27843 test ! -s conftest.err
27844 } && test -s conftest.$ac_objext; then
27845 ac_header_compiler=yes
27846else
27847 $as_echo "$as_me: failed program was:" >&5
27848sed 's/^/| /' conftest.$ac_ext >&5
27849
27850 ac_header_compiler=no
27851fi
27852
27853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27854{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27855$as_echo "$ac_header_compiler" >&6; }
27856
27857# Is the header present?
27858{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
27859$as_echo_n "checking selinux/selinux.h presence... " >&6; }
27860cat >conftest.$ac_ext <<_ACEOF
27861/* confdefs.h. */
27862_ACEOF
27863cat confdefs.h >>conftest.$ac_ext
27864cat >>conftest.$ac_ext <<_ACEOF
27865/* end confdefs.h. */
27866#include <selinux/selinux.h>
27867_ACEOF
27868if { (ac_try="$ac_cpp conftest.$ac_ext"
27869case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27872esac
27873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27874$as_echo "$ac_try_echo") >&5
27875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27876 ac_status=$?
27877 grep -v '^ *+' conftest.er1 >conftest.err
27878 rm -f conftest.er1
27879 cat conftest.err >&5
27880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); } >/dev/null && {
27882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27883 test ! -s conftest.err
27884 }; then
27885 ac_header_preproc=yes
27886else
27887 $as_echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890 ac_header_preproc=no
27891fi
27892
27893rm -f conftest.err conftest.$ac_ext
27894{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27895$as_echo "$ac_header_preproc" >&6; }
27896
27897# So? What about this header?
27898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27899 yes:no: )
27900 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
27901$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27902 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
27903$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
27904 ac_header_preproc=yes
27905 ;;
27906 no:yes:* )
27907 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
27908$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
27909 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
27910$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
27911 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
27912$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
27913 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
27914$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
27915 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
27916$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
27917 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
27918$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
27919 ( cat <<\_ASBOX
27920## ------------------------------------------- ##
27921## Report this to openssh-unix-dev@mindrot.org ##
27922## ------------------------------------------- ##
27923_ASBOX
27924 ) | sed "s/^/$as_me: WARNING: /" >&2
27925 ;;
27926esac
27927{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
27928$as_echo_n "checking for selinux/selinux.h... " >&6; }
27929if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
27930 $as_echo_n "(cached) " >&6
27931else
27932 ac_cv_header_selinux_selinux_h=$ac_header_preproc
27933fi
27934{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
27935$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
27936
27937fi
27938if test $ac_cv_header_selinux_selinux_h = yes; then
27939 :
27940else
27941 { { $as_echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
27942$as_echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
27943 { (exit 1); exit 1; }; }
27944fi
27945
27946
27947 { $as_echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
27948$as_echo_n "checking for setexeccon in -lselinux... " >&6; }
27949if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
27950 $as_echo_n "(cached) " >&6
27951else
27952 ac_check_lib_save_LIBS=$LIBS
27953LIBS="-lselinux $LIBS"
27954cat >conftest.$ac_ext <<_ACEOF
27955/* confdefs.h. */
27956_ACEOF
27957cat confdefs.h >>conftest.$ac_ext
27958cat >>conftest.$ac_ext <<_ACEOF
27959/* end confdefs.h. */
27960
27961/* Override any GCC internal prototype to avoid an error.
27962 Use char because int might match the return type of a GCC
27963 builtin and then its argument prototype would still apply. */
27964#ifdef __cplusplus
27965extern "C"
27966#endif
27967char setexeccon ();
27968int
27969main ()
27970{
27971return setexeccon ();
27972 ;
27973 return 0;
27974}
27975_ACEOF
27976rm -f conftest.$ac_objext conftest$ac_exeext
27977if { (ac_try="$ac_link"
27978case "(($ac_try" in
27979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27980 *) ac_try_echo=$ac_try;;
27981esac
27982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27983$as_echo "$ac_try_echo") >&5
27984 (eval "$ac_link") 2>conftest.er1
27985 ac_status=$?
27986 grep -v '^ *+' conftest.er1 >conftest.err
27987 rm -f conftest.er1
27988 cat conftest.err >&5
27989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } && {
27991 test -z "$ac_c_werror_flag" ||
27992 test ! -s conftest.err
27993 } && test -s conftest$ac_exeext && {
27994 test "$cross_compiling" = yes ||
27995 $as_test_x conftest$ac_exeext
27996 }; then
27997 ac_cv_lib_selinux_setexeccon=yes
27998else
27999 $as_echo "$as_me: failed program was:" >&5
28000sed 's/^/| /' conftest.$ac_ext >&5
28001
28002 ac_cv_lib_selinux_setexeccon=no
28003fi
28004
28005rm -rf conftest.dSYM
28006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28007 conftest$ac_exeext conftest.$ac_ext
28008LIBS=$ac_check_lib_save_LIBS
28009fi
28010{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
28011$as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
28012if test $ac_cv_lib_selinux_setexeccon = yes; then
28013 LIBSELINUX="-lselinux"
28014else
28015 { { $as_echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
28016$as_echo "$as_me: error: SELinux support requires libselinux library" >&2;}
28017 { (exit 1); exit 1; }; }
28018fi
28019
28020 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
28021
28022
28023for ac_func in getseuserbyname get_default_context_with_level
28024do
28025as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28026{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28027$as_echo_n "checking for $ac_func... " >&6; }
28028if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28029 $as_echo_n "(cached) " >&6
28030else
28031 cat >conftest.$ac_ext <<_ACEOF
28032/* confdefs.h. */
28033_ACEOF
28034cat confdefs.h >>conftest.$ac_ext
28035cat >>conftest.$ac_ext <<_ACEOF
28036/* end confdefs.h. */
28037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28039#define $ac_func innocuous_$ac_func
28040
28041/* System header to define __stub macros and hopefully few prototypes,
28042 which can conflict with char $ac_func (); below.
28043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28044 <limits.h> exists even on freestanding compilers. */
28045
28046#ifdef __STDC__
28047# include <limits.h>
28048#else
28049# include <assert.h>
28050#endif
28051
28052#undef $ac_func
28053
28054/* Override any GCC internal prototype to avoid an error.
28055 Use char because int might match the return type of a GCC
28056 builtin and then its argument prototype would still apply. */
28057#ifdef __cplusplus
28058extern "C"
28059#endif
28060char $ac_func ();
28061/* The GNU C library defines this for functions which it implements
28062 to always fail with ENOSYS. Some functions are actually named
28063 something starting with __ and the normal name is an alias. */
28064#if defined __stub_$ac_func || defined __stub___$ac_func
28065choke me
28066#endif
28067
28068int
28069main ()
28070{
28071return $ac_func ();
28072 ;
28073 return 0;
28074}
28075_ACEOF
28076rm -f conftest.$ac_objext conftest$ac_exeext
28077if { (ac_try="$ac_link"
28078case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28081esac
28082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28083$as_echo "$ac_try_echo") >&5
28084 (eval "$ac_link") 2>conftest.er1
28085 ac_status=$?
28086 grep -v '^ *+' conftest.er1 >conftest.err
28087 rm -f conftest.er1
28088 cat conftest.err >&5
28089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); } && {
28091 test -z "$ac_c_werror_flag" ||
28092 test ! -s conftest.err
28093 } && test -s conftest$ac_exeext && {
28094 test "$cross_compiling" = yes ||
28095 $as_test_x conftest$ac_exeext
28096 }; then
28097 eval "$as_ac_var=yes"
28098else
28099 $as_echo "$as_me: failed program was:" >&5
28100sed 's/^/| /' conftest.$ac_ext >&5
28101
28102 eval "$as_ac_var=no"
28103fi
28104
28105rm -rf conftest.dSYM
28106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28107 conftest$ac_exeext conftest.$ac_ext
28108fi
28109ac_res=`eval 'as_val=${'$as_ac_var'}
28110 $as_echo "$as_val"'`
28111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28112$as_echo "$ac_res" >&6; }
28113if test `eval 'as_val=${'$as_ac_var'}
28114 $as_echo "$as_val"'` = yes; then
28115 cat >>confdefs.h <<_ACEOF
28116#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28117_ACEOF
28118
28119fi
28120done
28121
28122 LIBS="$save_LIBS"
28123 fi
28124
28125fi
28126
28127
28128# Check whether user wants Kerberos 5 support
28129KRB5_MSG="no"
28130
28131# Check whether --with-kerberos5 was given.
28132if test "${with_kerberos5+set}" = set; then
28133 withval=$with_kerberos5; if test "x$withval" != "xno" ; then
28134 if test "x$withval" = "xyes" ; then
28135 KRB5ROOT="/usr/local"
28136 else
28137 KRB5ROOT=${withval}
28138 fi
28139
28140
28141cat >>confdefs.h <<\_ACEOF
28142#define KRB5 1
28143_ACEOF
28144
28145 KRB5_MSG="yes"
28146
28147 # Extract the first word of "krb5-config", so it can be a program name with args.
28148set dummy krb5-config; ac_word=$2
28149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28150$as_echo_n "checking for $ac_word... " >&6; }
28151if test "${ac_cv_path_KRB5CONF+set}" = set; then
28152 $as_echo_n "(cached) " >&6
28153else
28154 case $KRB5CONF in
28155 [\\/]* | ?:[\\/]*)
28156 ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
28157 ;;
28158 *)
28159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28160as_dummy="$KRB5ROOT/bin:$PATH"
28161for as_dir in $as_dummy
28162do
28163 IFS=$as_save_IFS
28164 test -z "$as_dir" && as_dir=.
28165 for ac_exec_ext in '' $ac_executable_extensions; do
28166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28167 ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
28168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28169 break 2
28170 fi
28171done
28172done
28173IFS=$as_save_IFS
28174
28175 test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
28176 ;;
28177esac
28178fi
28179KRB5CONF=$ac_cv_path_KRB5CONF
28180if test -n "$KRB5CONF"; then
28181 { $as_echo "$as_me:$LINENO: result: $KRB5CONF" >&5
28182$as_echo "$KRB5CONF" >&6; }
28183else
28184 { $as_echo "$as_me:$LINENO: result: no" >&5
28185$as_echo "no" >&6; }
28186fi
28187
28188
28189 if test -x $KRB5CONF ; then
28190
28191 { $as_echo "$as_me:$LINENO: checking for gssapi support" >&5
28192$as_echo_n "checking for gssapi support... " >&6; }
28193 if $KRB5CONF | grep gssapi >/dev/null ; then
28194 { $as_echo "$as_me:$LINENO: result: yes" >&5
28195$as_echo "yes" >&6; }
28196
28197cat >>confdefs.h <<\_ACEOF
28198#define GSSAPI 1
28199_ACEOF
28200
28201 k5confopts=gssapi
28202 else
28203 { $as_echo "$as_me:$LINENO: result: no" >&5
28204$as_echo "no" >&6; }
28205 k5confopts=""
28206 fi
28207 K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
28208 K5LIBS="`$KRB5CONF --libs $k5confopts`"
28209 CPPFLAGS="$CPPFLAGS $K5CFLAGS"
28210 { $as_echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
28211$as_echo_n "checking whether we are using Heimdal... " >&6; }
28212 cat >conftest.$ac_ext <<_ACEOF
28213/* confdefs.h. */
28214_ACEOF
28215cat confdefs.h >>conftest.$ac_ext
28216cat >>conftest.$ac_ext <<_ACEOF
28217/* end confdefs.h. */
28218 #include <krb5.h>
28219int
28220main ()
28221{
28222 char *tmp = heimdal_version;
28223 ;
28224 return 0;
28225}
28226_ACEOF
28227rm -f conftest.$ac_objext
28228if { (ac_try="$ac_compile"
28229case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28232esac
28233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28234$as_echo "$ac_try_echo") >&5
28235 (eval "$ac_compile") 2>conftest.er1
28236 ac_status=$?
28237 grep -v '^ *+' conftest.er1 >conftest.err
28238 rm -f conftest.er1
28239 cat conftest.err >&5
28240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); } && {
28242 test -z "$ac_c_werror_flag" ||
28243 test ! -s conftest.err
28244 } && test -s conftest.$ac_objext; then
28245 { $as_echo "$as_me:$LINENO: result: yes" >&5
28246$as_echo "yes" >&6; }
28247
28248cat >>confdefs.h <<\_ACEOF
28249#define HEIMDAL 1
28250_ACEOF
28251
28252else
28253 $as_echo "$as_me: failed program was:" >&5
28254sed 's/^/| /' conftest.$ac_ext >&5
28255
28256 { $as_echo "$as_me:$LINENO: result: no" >&5
28257$as_echo "no" >&6; }
28258
28259fi
28260
28261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28262 else
28263 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
28264 LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
28265 { $as_echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
28266$as_echo_n "checking whether we are using Heimdal... " >&6; }
28267 cat >conftest.$ac_ext <<_ACEOF
28268/* confdefs.h. */
28269_ACEOF
28270cat confdefs.h >>conftest.$ac_ext
28271cat >>conftest.$ac_ext <<_ACEOF
28272/* end confdefs.h. */
28273 #include <krb5.h>
28274int
28275main ()
28276{
28277 char *tmp = heimdal_version;
28278 ;
28279 return 0;
28280}
28281_ACEOF
28282rm -f conftest.$ac_objext
28283if { (ac_try="$ac_compile"
28284case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28287esac
28288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28289$as_echo "$ac_try_echo") >&5
28290 (eval "$ac_compile") 2>conftest.er1
28291 ac_status=$?
28292 grep -v '^ *+' conftest.er1 >conftest.err
28293 rm -f conftest.er1
28294 cat conftest.err >&5
28295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } && {
28297 test -z "$ac_c_werror_flag" ||
28298 test ! -s conftest.err
28299 } && test -s conftest.$ac_objext; then
28300 { $as_echo "$as_me:$LINENO: result: yes" >&5
28301$as_echo "yes" >&6; }
28302 cat >>confdefs.h <<\_ACEOF
28303#define HEIMDAL 1
28304_ACEOF
28305
28306 K5LIBS="-lkrb5 -ldes"
28307 K5LIBS="$K5LIBS -lcom_err -lasn1"
28308 { $as_echo "$as_me:$LINENO: checking for net_write in -lroken" >&5
28309$as_echo_n "checking for net_write in -lroken... " >&6; }
28310if test "${ac_cv_lib_roken_net_write+set}" = set; then
28311 $as_echo_n "(cached) " >&6
28312else
28313 ac_check_lib_save_LIBS=$LIBS
28314LIBS="-lroken $LIBS"
28315cat >conftest.$ac_ext <<_ACEOF
28316/* confdefs.h. */
28317_ACEOF
28318cat confdefs.h >>conftest.$ac_ext
28319cat >>conftest.$ac_ext <<_ACEOF
28320/* end confdefs.h. */
28321
28322/* Override any GCC internal prototype to avoid an error.
28323 Use char because int might match the return type of a GCC
28324 builtin and then its argument prototype would still apply. */
28325#ifdef __cplusplus
28326extern "C"
28327#endif
28328char net_write ();
28329int
28330main ()
28331{
28332return net_write ();
28333 ;
28334 return 0;
28335}
28336_ACEOF
28337rm -f conftest.$ac_objext conftest$ac_exeext
28338if { (ac_try="$ac_link"
28339case "(($ac_try" in
28340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28341 *) ac_try_echo=$ac_try;;
28342esac
28343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28344$as_echo "$ac_try_echo") >&5
28345 (eval "$ac_link") 2>conftest.er1
28346 ac_status=$?
28347 grep -v '^ *+' conftest.er1 >conftest.err
28348 rm -f conftest.er1
28349 cat conftest.err >&5
28350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); } && {
28352 test -z "$ac_c_werror_flag" ||
28353 test ! -s conftest.err
28354 } && test -s conftest$ac_exeext && {
28355 test "$cross_compiling" = yes ||
28356 $as_test_x conftest$ac_exeext
28357 }; then
28358 ac_cv_lib_roken_net_write=yes
28359else
28360 $as_echo "$as_me: failed program was:" >&5
28361sed 's/^/| /' conftest.$ac_ext >&5
28362
28363 ac_cv_lib_roken_net_write=no
28364fi
28365
28366rm -rf conftest.dSYM
28367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28368 conftest$ac_exeext conftest.$ac_ext
28369LIBS=$ac_check_lib_save_LIBS
28370fi
28371{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5
28372$as_echo "$ac_cv_lib_roken_net_write" >&6; }
28373if test $ac_cv_lib_roken_net_write = yes; then
28374 K5LIBS="$K5LIBS -lroken"
28375fi
28376
28377
28378else
28379 $as_echo "$as_me: failed program was:" >&5
28380sed 's/^/| /' conftest.$ac_ext >&5
28381
28382 { $as_echo "$as_me:$LINENO: result: no" >&5
28383$as_echo "no" >&6; }
28384 K5LIBS="-lkrb5 -lk5crypto -lcom_err"
28385
28386
28387fi
28388
28389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28390 { $as_echo "$as_me:$LINENO: checking for library containing dn_expand" >&5
28391$as_echo_n "checking for library containing dn_expand... " >&6; }
28392if test "${ac_cv_search_dn_expand+set}" = set; then
28393 $as_echo_n "(cached) " >&6
28394else
28395 ac_func_search_save_LIBS=$LIBS
28396cat >conftest.$ac_ext <<_ACEOF
28397/* confdefs.h. */
28398_ACEOF
28399cat confdefs.h >>conftest.$ac_ext
28400cat >>conftest.$ac_ext <<_ACEOF
28401/* end confdefs.h. */
28402
28403/* Override any GCC internal prototype to avoid an error.
28404 Use char because int might match the return type of a GCC
28405 builtin and then its argument prototype would still apply. */
28406#ifdef __cplusplus
28407extern "C"
28408#endif
28409char dn_expand ();
28410int
28411main ()
28412{
28413return dn_expand ();
28414 ;
28415 return 0;
28416}
28417_ACEOF
28418for ac_lib in '' resolv; do
28419 if test -z "$ac_lib"; then
28420 ac_res="none required"
28421 else
28422 ac_res=-l$ac_lib
28423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28424 fi
28425 rm -f conftest.$ac_objext conftest$ac_exeext
28426if { (ac_try="$ac_link"
28427case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430esac
28431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28432$as_echo "$ac_try_echo") >&5
28433 (eval "$ac_link") 2>conftest.er1
28434 ac_status=$?
28435 grep -v '^ *+' conftest.er1 >conftest.err
28436 rm -f conftest.er1
28437 cat conftest.err >&5
28438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } && {
28440 test -z "$ac_c_werror_flag" ||
28441 test ! -s conftest.err
28442 } && test -s conftest$ac_exeext && {
28443 test "$cross_compiling" = yes ||
28444 $as_test_x conftest$ac_exeext
28445 }; then
28446 ac_cv_search_dn_expand=$ac_res
28447else
28448 $as_echo "$as_me: failed program was:" >&5
28449sed 's/^/| /' conftest.$ac_ext >&5
28450
28451
28452fi
28453
28454rm -rf conftest.dSYM
28455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28456 conftest$ac_exeext
28457 if test "${ac_cv_search_dn_expand+set}" = set; then
28458 break
28459fi
28460done
28461if test "${ac_cv_search_dn_expand+set}" = set; then
28462 :
28463else
28464 ac_cv_search_dn_expand=no
28465fi
28466rm conftest.$ac_ext
28467LIBS=$ac_func_search_save_LIBS
28468fi
28469{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5
28470$as_echo "$ac_cv_search_dn_expand" >&6; }
28471ac_res=$ac_cv_search_dn_expand
28472if test "$ac_res" != no; then
28473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28474
28475fi
28476
28477
28478 { $as_echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
28479$as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
28480if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
28481 $as_echo_n "(cached) " >&6
28482else
28483 ac_check_lib_save_LIBS=$LIBS
28484LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
28485cat >conftest.$ac_ext <<_ACEOF
28486/* confdefs.h. */
28487_ACEOF
28488cat confdefs.h >>conftest.$ac_ext
28489cat >>conftest.$ac_ext <<_ACEOF
28490/* end confdefs.h. */
28491
28492/* Override any GCC internal prototype to avoid an error.
28493 Use char because int might match the return type of a GCC
28494 builtin and then its argument prototype would still apply. */
28495#ifdef __cplusplus
28496extern "C"
28497#endif
28498char gss_init_sec_context ();
28499int
28500main ()
28501{
28502return gss_init_sec_context ();
28503 ;
28504 return 0;
28505}
28506_ACEOF
28507rm -f conftest.$ac_objext conftest$ac_exeext
28508if { (ac_try="$ac_link"
28509case "(($ac_try" in
28510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28511 *) ac_try_echo=$ac_try;;
28512esac
28513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28514$as_echo "$ac_try_echo") >&5
28515 (eval "$ac_link") 2>conftest.er1
28516 ac_status=$?
28517 grep -v '^ *+' conftest.er1 >conftest.err
28518 rm -f conftest.er1
28519 cat conftest.err >&5
28520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } && {
28522 test -z "$ac_c_werror_flag" ||
28523 test ! -s conftest.err
28524 } && test -s conftest$ac_exeext && {
28525 test "$cross_compiling" = yes ||
28526 $as_test_x conftest$ac_exeext
28527 }; then
28528 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
28529else
28530 $as_echo "$as_me: failed program was:" >&5
28531sed 's/^/| /' conftest.$ac_ext >&5
28532
28533 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
28534fi
28535
28536rm -rf conftest.dSYM
28537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28538 conftest$ac_exeext conftest.$ac_ext
28539LIBS=$ac_check_lib_save_LIBS
28540fi
28541{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
28542$as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
28543if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
28544 cat >>confdefs.h <<\_ACEOF
28545#define GSSAPI 1
28546_ACEOF
28547
28548 K5LIBS="-lgssapi_krb5 $K5LIBS"
28549else
28550 { $as_echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
28551$as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
28552if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
28553 $as_echo_n "(cached) " >&6
28554else
28555 ac_check_lib_save_LIBS=$LIBS
28556LIBS="-lgssapi $K5LIBS $LIBS"
28557cat >conftest.$ac_ext <<_ACEOF
28558/* confdefs.h. */
28559_ACEOF
28560cat confdefs.h >>conftest.$ac_ext
28561cat >>conftest.$ac_ext <<_ACEOF
28562/* end confdefs.h. */
28563
28564/* Override any GCC internal prototype to avoid an error.
28565 Use char because int might match the return type of a GCC
28566 builtin and then its argument prototype would still apply. */
28567#ifdef __cplusplus
28568extern "C"
28569#endif
28570char gss_init_sec_context ();
28571int
28572main ()
28573{
28574return gss_init_sec_context ();
28575 ;
28576 return 0;
28577}
28578_ACEOF
28579rm -f conftest.$ac_objext conftest$ac_exeext
28580if { (ac_try="$ac_link"
28581case "(($ac_try" in
28582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583 *) ac_try_echo=$ac_try;;
28584esac
28585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28586$as_echo "$ac_try_echo") >&5
28587 (eval "$ac_link") 2>conftest.er1
28588 ac_status=$?
28589 grep -v '^ *+' conftest.er1 >conftest.err
28590 rm -f conftest.er1
28591 cat conftest.err >&5
28592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); } && {
28594 test -z "$ac_c_werror_flag" ||
28595 test ! -s conftest.err
28596 } && test -s conftest$ac_exeext && {
28597 test "$cross_compiling" = yes ||
28598 $as_test_x conftest$ac_exeext
28599 }; then
28600 ac_cv_lib_gssapi_gss_init_sec_context=yes
28601else
28602 $as_echo "$as_me: failed program was:" >&5
28603sed 's/^/| /' conftest.$ac_ext >&5
28604
28605 ac_cv_lib_gssapi_gss_init_sec_context=no
28606fi
28607
28608rm -rf conftest.dSYM
28609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28610 conftest$ac_exeext conftest.$ac_ext
28611LIBS=$ac_check_lib_save_LIBS
28612fi
28613{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
28614$as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
28615if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
28616 cat >>confdefs.h <<\_ACEOF
28617#define GSSAPI 1
28618_ACEOF
28619
28620 K5LIBS="-lgssapi $K5LIBS"
28621else
28622 { $as_echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
28623$as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
28624fi
28625
28626
28627fi
28628
28629
28630 if test "${ac_cv_header_gssapi_h+set}" = set; then
28631 { $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5
28632$as_echo_n "checking for gssapi.h... " >&6; }
28633if test "${ac_cv_header_gssapi_h+set}" = set; then
28634 $as_echo_n "(cached) " >&6
28635fi
28636{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
28637$as_echo "$ac_cv_header_gssapi_h" >&6; }
28638else
28639 # Is the header compilable?
28640{ $as_echo "$as_me:$LINENO: checking gssapi.h usability" >&5
28641$as_echo_n "checking gssapi.h usability... " >&6; }
28642cat >conftest.$ac_ext <<_ACEOF
28643/* confdefs.h. */
28644_ACEOF
28645cat confdefs.h >>conftest.$ac_ext
28646cat >>conftest.$ac_ext <<_ACEOF
28647/* end confdefs.h. */
28648$ac_includes_default
28649#include <gssapi.h>
28650_ACEOF
28651rm -f conftest.$ac_objext
28652if { (ac_try="$ac_compile"
28653case "(($ac_try" in
28654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28655 *) ac_try_echo=$ac_try;;
28656esac
28657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28658$as_echo "$ac_try_echo") >&5
28659 (eval "$ac_compile") 2>conftest.er1
28660 ac_status=$?
28661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
28664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } && {
28666 test -z "$ac_c_werror_flag" ||
28667 test ! -s conftest.err
28668 } && test -s conftest.$ac_objext; then
28669 ac_header_compiler=yes
28670else
28671 $as_echo "$as_me: failed program was:" >&5
28672sed 's/^/| /' conftest.$ac_ext >&5
28673
28674 ac_header_compiler=no
28675fi
28676
28677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28678{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28679$as_echo "$ac_header_compiler" >&6; }
28680
28681# Is the header present?
28682{ $as_echo "$as_me:$LINENO: checking gssapi.h presence" >&5
28683$as_echo_n "checking gssapi.h presence... " >&6; }
28684cat >conftest.$ac_ext <<_ACEOF
28685/* confdefs.h. */
28686_ACEOF
28687cat confdefs.h >>conftest.$ac_ext
28688cat >>conftest.$ac_ext <<_ACEOF
28689/* end confdefs.h. */
28690#include <gssapi.h>
28691_ACEOF
28692if { (ac_try="$ac_cpp conftest.$ac_ext"
28693case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28696esac
28697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28698$as_echo "$ac_try_echo") >&5
28699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28700 ac_status=$?
28701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
28704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } >/dev/null && {
28706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28707 test ! -s conftest.err
28708 }; then
28709 ac_header_preproc=yes
28710else
28711 $as_echo "$as_me: failed program was:" >&5
28712sed 's/^/| /' conftest.$ac_ext >&5
28713
28714 ac_header_preproc=no
28715fi
28716
28717rm -f conftest.err conftest.$ac_ext
28718{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28719$as_echo "$ac_header_preproc" >&6; }
28720
28721# So? What about this header?
28722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28723 yes:no: )
28724 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
28725$as_echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28726 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
28727$as_echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
28728 ac_header_preproc=yes
28729 ;;
28730 no:yes:* )
28731 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
28732$as_echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
28733 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
28734$as_echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
28735 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
28736$as_echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
28737 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
28738$as_echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
28739 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
28740$as_echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
28741 { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
28742$as_echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
28743 ( cat <<\_ASBOX
28744## ------------------------------------------- ##
28745## Report this to openssh-unix-dev@mindrot.org ##
28746## ------------------------------------------- ##
28747_ASBOX
28748 ) | sed "s/^/$as_me: WARNING: /" >&2
28749 ;;
28750esac
28751{ $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5
28752$as_echo_n "checking for gssapi.h... " >&6; }
28753if test "${ac_cv_header_gssapi_h+set}" = set; then
28754 $as_echo_n "(cached) " >&6
28755else
28756 ac_cv_header_gssapi_h=$ac_header_preproc
28757fi
28758{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
28759$as_echo "$ac_cv_header_gssapi_h" >&6; }
28760
28761fi
28762if test $ac_cv_header_gssapi_h = yes; then
28763 :
28764else
28765 unset ac_cv_header_gssapi_h
28766 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
28767
28768for ac_header in gssapi.h
28769do
28770as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28773$as_echo_n "checking for $ac_header... " >&6; }
28774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28775 $as_echo_n "(cached) " >&6
28776fi
28777ac_res=`eval 'as_val=${'$as_ac_Header'}
28778 $as_echo "$as_val"'`
28779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28780$as_echo "$ac_res" >&6; }
28781else
28782 # Is the header compilable?
28783{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28784$as_echo_n "checking $ac_header usability... " >&6; }
28785cat >conftest.$ac_ext <<_ACEOF
28786/* confdefs.h. */
28787_ACEOF
28788cat confdefs.h >>conftest.$ac_ext
28789cat >>conftest.$ac_ext <<_ACEOF
28790/* end confdefs.h. */
28791$ac_includes_default
28792#include <$ac_header>
28793_ACEOF
28794rm -f conftest.$ac_objext
28795if { (ac_try="$ac_compile"
28796case "(($ac_try" in
28797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798 *) ac_try_echo=$ac_try;;
28799esac
28800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28801$as_echo "$ac_try_echo") >&5
28802 (eval "$ac_compile") 2>conftest.er1
28803 ac_status=$?
28804 grep -v '^ *+' conftest.er1 >conftest.err
28805 rm -f conftest.er1
28806 cat conftest.err >&5
28807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); } && {
28809 test -z "$ac_c_werror_flag" ||
28810 test ! -s conftest.err
28811 } && test -s conftest.$ac_objext; then
28812 ac_header_compiler=yes
28813else
28814 $as_echo "$as_me: failed program was:" >&5
28815sed 's/^/| /' conftest.$ac_ext >&5
28816
28817 ac_header_compiler=no
28818fi
28819
28820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28821{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28822$as_echo "$ac_header_compiler" >&6; }
28823
28824# Is the header present?
28825{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28826$as_echo_n "checking $ac_header presence... " >&6; }
28827cat >conftest.$ac_ext <<_ACEOF
28828/* confdefs.h. */
28829_ACEOF
28830cat confdefs.h >>conftest.$ac_ext
28831cat >>conftest.$ac_ext <<_ACEOF
28832/* end confdefs.h. */
28833#include <$ac_header>
28834_ACEOF
28835if { (ac_try="$ac_cpp conftest.$ac_ext"
28836case "(($ac_try" in
28837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838 *) ac_try_echo=$ac_try;;
28839esac
28840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28841$as_echo "$ac_try_echo") >&5
28842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28843 ac_status=$?
28844 grep -v '^ *+' conftest.er1 >conftest.err
28845 rm -f conftest.er1
28846 cat conftest.err >&5
28847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } >/dev/null && {
28849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28850 test ! -s conftest.err
28851 }; then
28852 ac_header_preproc=yes
28853else
28854 $as_echo "$as_me: failed program was:" >&5
28855sed 's/^/| /' conftest.$ac_ext >&5
28856
28857 ac_header_preproc=no
28858fi
28859
28860rm -f conftest.err conftest.$ac_ext
28861{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28862$as_echo "$ac_header_preproc" >&6; }
28863
28864# So? What about this header?
28865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28866 yes:no: )
28867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28868$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28870$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28871 ac_header_preproc=yes
28872 ;;
28873 no:yes:* )
28874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28875$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28877$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28879$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28881$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28883$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28885$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28886 ( cat <<\_ASBOX
28887## ------------------------------------------- ##
28888## Report this to openssh-unix-dev@mindrot.org ##
28889## ------------------------------------------- ##
28890_ASBOX
28891 ) | sed "s/^/$as_me: WARNING: /" >&2
28892 ;;
28893esac
28894{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28895$as_echo_n "checking for $ac_header... " >&6; }
28896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28897 $as_echo_n "(cached) " >&6
28898else
28899 eval "$as_ac_Header=\$ac_header_preproc"
28900fi
28901ac_res=`eval 'as_val=${'$as_ac_Header'}
28902 $as_echo "$as_val"'`
28903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28904$as_echo "$ac_res" >&6; }
28905
28906fi
28907if test `eval 'as_val=${'$as_ac_Header'}
28908 $as_echo "$as_val"'` = yes; then
28909 cat >>confdefs.h <<_ACEOF
28910#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28911_ACEOF
28912
28913else
28914 { $as_echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
28915$as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
28916
28917fi
28918
28919done
28920
28921
28922
28923fi
28924
28925
28926
28927 oldCPP="$CPPFLAGS"
28928 CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
28929 if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28930 { $as_echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
28931$as_echo_n "checking for gssapi_krb5.h... " >&6; }
28932if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
28933 $as_echo_n "(cached) " >&6
28934fi
28935{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
28936$as_echo "$ac_cv_header_gssapi_krb5_h" >&6; }
28937else
28938 # Is the header compilable?
28939{ $as_echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5
28940$as_echo_n "checking gssapi_krb5.h usability... " >&6; }
28941cat >conftest.$ac_ext <<_ACEOF
28942/* confdefs.h. */
28943_ACEOF
28944cat confdefs.h >>conftest.$ac_ext
28945cat >>conftest.$ac_ext <<_ACEOF
28946/* end confdefs.h. */
28947$ac_includes_default
28948#include <gssapi_krb5.h>
28949_ACEOF
28950rm -f conftest.$ac_objext
28951if { (ac_try="$ac_compile"
28952case "(($ac_try" in
28953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28954 *) ac_try_echo=$ac_try;;
28955esac
28956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28957$as_echo "$ac_try_echo") >&5
28958 (eval "$ac_compile") 2>conftest.er1
28959 ac_status=$?
28960 grep -v '^ *+' conftest.er1 >conftest.err
28961 rm -f conftest.er1
28962 cat conftest.err >&5
28963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } && {
28965 test -z "$ac_c_werror_flag" ||
28966 test ! -s conftest.err
28967 } && test -s conftest.$ac_objext; then
28968 ac_header_compiler=yes
28969else
28970 $as_echo "$as_me: failed program was:" >&5
28971sed 's/^/| /' conftest.$ac_ext >&5
28972
28973 ac_header_compiler=no
28974fi
28975
28976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28977{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28978$as_echo "$ac_header_compiler" >&6; }
28979
28980# Is the header present?
28981{ $as_echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5
28982$as_echo_n "checking gssapi_krb5.h presence... " >&6; }
28983cat >conftest.$ac_ext <<_ACEOF
28984/* confdefs.h. */
28985_ACEOF
28986cat confdefs.h >>conftest.$ac_ext
28987cat >>conftest.$ac_ext <<_ACEOF
28988/* end confdefs.h. */
28989#include <gssapi_krb5.h>
28990_ACEOF
28991if { (ac_try="$ac_cpp conftest.$ac_ext"
28992case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28995esac
28996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28997$as_echo "$ac_try_echo") >&5
28998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28999 ac_status=$?
29000 grep -v '^ *+' conftest.er1 >conftest.err
29001 rm -f conftest.er1
29002 cat conftest.err >&5
29003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); } >/dev/null && {
29005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29006 test ! -s conftest.err
29007 }; then
29008 ac_header_preproc=yes
29009else
29010 $as_echo "$as_me: failed program was:" >&5
29011sed 's/^/| /' conftest.$ac_ext >&5
29012
29013 ac_header_preproc=no
29014fi
29015
29016rm -f conftest.err conftest.$ac_ext
29017{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29018$as_echo "$ac_header_preproc" >&6; }
29019
29020# So? What about this header?
29021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29022 yes:no: )
29023 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
29024$as_echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29025 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5
29026$as_echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;}
29027 ac_header_preproc=yes
29028 ;;
29029 no:yes:* )
29030 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5
29031$as_echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;}
29032 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5
29033$as_echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;}
29034 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5
29035$as_echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;}
29036 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5
29037$as_echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
29038 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5
29039$as_echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;}
29040 { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5
29041$as_echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;}
29042 ( cat <<\_ASBOX
29043## ------------------------------------------- ##
29044## Report this to openssh-unix-dev@mindrot.org ##
29045## ------------------------------------------- ##
29046_ASBOX
29047 ) | sed "s/^/$as_me: WARNING: /" >&2
29048 ;;
29049esac
29050{ $as_echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5
29051$as_echo_n "checking for gssapi_krb5.h... " >&6; }
29052if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then
29053 $as_echo_n "(cached) " >&6
29054else
29055 ac_cv_header_gssapi_krb5_h=$ac_header_preproc
29056fi
29057{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5
29058$as_echo "$ac_cv_header_gssapi_krb5_h" >&6; }
29059
29060fi
29061if test $ac_cv_header_gssapi_krb5_h = yes; then
29062 :
29063else
29064 CPPFLAGS="$oldCPP"
29065fi
29066
29067
29068
29069 fi
29070 if test ! -z "$need_dash_r" ; then
29071 LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
29072 fi
29073 if test ! -z "$blibpath" ; then
29074 blibpath="$blibpath:${KRB5ROOT}/lib"
29075 fi
29076
29077
29078
29079for ac_header in gssapi.h gssapi/gssapi.h
29080do
29081as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29084$as_echo_n "checking for $ac_header... " >&6; }
29085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29086 $as_echo_n "(cached) " >&6
29087fi
29088ac_res=`eval 'as_val=${'$as_ac_Header'}
29089 $as_echo "$as_val"'`
29090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29091$as_echo "$ac_res" >&6; }
29092else
29093 # Is the header compilable?
29094{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29095$as_echo_n "checking $ac_header usability... " >&6; }
29096cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
29102$ac_includes_default
29103#include <$ac_header>
29104_ACEOF
29105rm -f conftest.$ac_objext
29106if { (ac_try="$ac_compile"
29107case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110esac
29111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29112$as_echo "$ac_try_echo") >&5
29113 (eval "$ac_compile") 2>conftest.er1
29114 ac_status=$?
29115 grep -v '^ *+' conftest.er1 >conftest.err
29116 rm -f conftest.er1
29117 cat conftest.err >&5
29118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); } && {
29120 test -z "$ac_c_werror_flag" ||
29121 test ! -s conftest.err
29122 } && test -s conftest.$ac_objext; then
29123 ac_header_compiler=yes
29124else
29125 $as_echo "$as_me: failed program was:" >&5
29126sed 's/^/| /' conftest.$ac_ext >&5
29127
29128 ac_header_compiler=no
29129fi
29130
29131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29132{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29133$as_echo "$ac_header_compiler" >&6; }
29134
29135# Is the header present?
29136{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29137$as_echo_n "checking $ac_header presence... " >&6; }
29138cat >conftest.$ac_ext <<_ACEOF
29139/* confdefs.h. */
29140_ACEOF
29141cat confdefs.h >>conftest.$ac_ext
29142cat >>conftest.$ac_ext <<_ACEOF
29143/* end confdefs.h. */
29144#include <$ac_header>
29145_ACEOF
29146if { (ac_try="$ac_cpp conftest.$ac_ext"
29147case "(($ac_try" in
29148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29149 *) ac_try_echo=$ac_try;;
29150esac
29151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29152$as_echo "$ac_try_echo") >&5
29153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29154 ac_status=$?
29155 grep -v '^ *+' conftest.er1 >conftest.err
29156 rm -f conftest.er1
29157 cat conftest.err >&5
29158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); } >/dev/null && {
29160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29161 test ! -s conftest.err
29162 }; then
29163 ac_header_preproc=yes
29164else
29165 $as_echo "$as_me: failed program was:" >&5
29166sed 's/^/| /' conftest.$ac_ext >&5
29167
29168 ac_header_preproc=no
29169fi
29170
29171rm -f conftest.err conftest.$ac_ext
29172{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29173$as_echo "$ac_header_preproc" >&6; }
29174
29175# So? What about this header?
29176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29177 yes:no: )
29178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29179$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29181$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29182 ac_header_preproc=yes
29183 ;;
29184 no:yes:* )
29185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29186$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29188$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29190$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29192$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29194$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29196$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29197 ( cat <<\_ASBOX
29198## ------------------------------------------- ##
29199## Report this to openssh-unix-dev@mindrot.org ##
29200## ------------------------------------------- ##
29201_ASBOX
29202 ) | sed "s/^/$as_me: WARNING: /" >&2
29203 ;;
29204esac
29205{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29206$as_echo_n "checking for $ac_header... " >&6; }
29207if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29208 $as_echo_n "(cached) " >&6
29209else
29210 eval "$as_ac_Header=\$ac_header_preproc"
29211fi
29212ac_res=`eval 'as_val=${'$as_ac_Header'}
29213 $as_echo "$as_val"'`
29214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29215$as_echo "$ac_res" >&6; }
29216
29217fi
29218if test `eval 'as_val=${'$as_ac_Header'}
29219 $as_echo "$as_val"'` = yes; then
29220 cat >>confdefs.h <<_ACEOF
29221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29222_ACEOF
29223
29224fi
29225
29226done
29227
29228
29229
29230for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
29231do
29232as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29235$as_echo_n "checking for $ac_header... " >&6; }
29236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29237 $as_echo_n "(cached) " >&6
29238fi
29239ac_res=`eval 'as_val=${'$as_ac_Header'}
29240 $as_echo "$as_val"'`
29241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29242$as_echo "$ac_res" >&6; }
29243else
29244 # Is the header compilable?
29245{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29246$as_echo_n "checking $ac_header usability... " >&6; }
29247cat >conftest.$ac_ext <<_ACEOF
29248/* confdefs.h. */
29249_ACEOF
29250cat confdefs.h >>conftest.$ac_ext
29251cat >>conftest.$ac_ext <<_ACEOF
29252/* end confdefs.h. */
29253$ac_includes_default
29254#include <$ac_header>
29255_ACEOF
29256rm -f conftest.$ac_objext
29257if { (ac_try="$ac_compile"
29258case "(($ac_try" in
29259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29260 *) ac_try_echo=$ac_try;;
29261esac
29262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29263$as_echo "$ac_try_echo") >&5
29264 (eval "$ac_compile") 2>conftest.er1
29265 ac_status=$?
29266 grep -v '^ *+' conftest.er1 >conftest.err
29267 rm -f conftest.er1
29268 cat conftest.err >&5
29269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270 (exit $ac_status); } && {
29271 test -z "$ac_c_werror_flag" ||
29272 test ! -s conftest.err
29273 } && test -s conftest.$ac_objext; then
29274 ac_header_compiler=yes
29275else
29276 $as_echo "$as_me: failed program was:" >&5
29277sed 's/^/| /' conftest.$ac_ext >&5
29278
29279 ac_header_compiler=no
29280fi
29281
29282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29283{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29284$as_echo "$ac_header_compiler" >&6; }
29285
29286# Is the header present?
29287{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29288$as_echo_n "checking $ac_header presence... " >&6; }
29289cat >conftest.$ac_ext <<_ACEOF
29290/* confdefs.h. */
29291_ACEOF
29292cat confdefs.h >>conftest.$ac_ext
29293cat >>conftest.$ac_ext <<_ACEOF
29294/* end confdefs.h. */
29295#include <$ac_header>
29296_ACEOF
29297if { (ac_try="$ac_cpp conftest.$ac_ext"
29298case "(($ac_try" in
29299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300 *) ac_try_echo=$ac_try;;
29301esac
29302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29303$as_echo "$ac_try_echo") >&5
29304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29305 ac_status=$?
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
29309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } >/dev/null && {
29311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29312 test ! -s conftest.err
29313 }; then
29314 ac_header_preproc=yes
29315else
29316 $as_echo "$as_me: failed program was:" >&5
29317sed 's/^/| /' conftest.$ac_ext >&5
29318
29319 ac_header_preproc=no
29320fi
29321
29322rm -f conftest.err conftest.$ac_ext
29323{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29324$as_echo "$ac_header_preproc" >&6; }
29325
29326# So? What about this header?
29327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29328 yes:no: )
29329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29330$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29332$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29333 ac_header_preproc=yes
29334 ;;
29335 no:yes:* )
29336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29337$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29339$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29341$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29343$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29345$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29347$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29348 ( cat <<\_ASBOX
29349## ------------------------------------------- ##
29350## Report this to openssh-unix-dev@mindrot.org ##
29351## ------------------------------------------- ##
29352_ASBOX
29353 ) | sed "s/^/$as_me: WARNING: /" >&2
29354 ;;
29355esac
29356{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29357$as_echo_n "checking for $ac_header... " >&6; }
29358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29359 $as_echo_n "(cached) " >&6
29360else
29361 eval "$as_ac_Header=\$ac_header_preproc"
29362fi
29363ac_res=`eval 'as_val=${'$as_ac_Header'}
29364 $as_echo "$as_val"'`
29365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29366$as_echo "$ac_res" >&6; }
29367
29368fi
29369if test `eval 'as_val=${'$as_ac_Header'}
29370 $as_echo "$as_val"'` = yes; then
29371 cat >>confdefs.h <<_ACEOF
29372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29373_ACEOF
29374
29375fi
29376
29377done
29378
29379
29380
29381for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
29382do
29383as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29385 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29386$as_echo_n "checking for $ac_header... " >&6; }
29387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388 $as_echo_n "(cached) " >&6
29389fi
29390ac_res=`eval 'as_val=${'$as_ac_Header'}
29391 $as_echo "$as_val"'`
29392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29393$as_echo "$ac_res" >&6; }
29394else
29395 # Is the header compilable?
29396{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29397$as_echo_n "checking $ac_header usability... " >&6; }
29398cat >conftest.$ac_ext <<_ACEOF
29399/* confdefs.h. */
29400_ACEOF
29401cat confdefs.h >>conftest.$ac_ext
29402cat >>conftest.$ac_ext <<_ACEOF
29403/* end confdefs.h. */
29404$ac_includes_default
29405#include <$ac_header>
29406_ACEOF
29407rm -f conftest.$ac_objext
29408if { (ac_try="$ac_compile"
29409case "(($ac_try" in
29410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29411 *) ac_try_echo=$ac_try;;
29412esac
29413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29414$as_echo "$ac_try_echo") >&5
29415 (eval "$ac_compile") 2>conftest.er1
29416 ac_status=$?
29417 grep -v '^ *+' conftest.er1 >conftest.err
29418 rm -f conftest.er1
29419 cat conftest.err >&5
29420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); } && {
29422 test -z "$ac_c_werror_flag" ||
29423 test ! -s conftest.err
29424 } && test -s conftest.$ac_objext; then
29425 ac_header_compiler=yes
29426else
29427 $as_echo "$as_me: failed program was:" >&5
29428sed 's/^/| /' conftest.$ac_ext >&5
29429
29430 ac_header_compiler=no
29431fi
29432
29433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29435$as_echo "$ac_header_compiler" >&6; }
29436
29437# Is the header present?
29438{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29439$as_echo_n "checking $ac_header presence... " >&6; }
29440cat >conftest.$ac_ext <<_ACEOF
29441/* confdefs.h. */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h. */
29446#include <$ac_header>
29447_ACEOF
29448if { (ac_try="$ac_cpp conftest.$ac_ext"
29449case "(($ac_try" in
29450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29451 *) ac_try_echo=$ac_try;;
29452esac
29453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29454$as_echo "$ac_try_echo") >&5
29455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29456 ac_status=$?
29457 grep -v '^ *+' conftest.er1 >conftest.err
29458 rm -f conftest.er1
29459 cat conftest.err >&5
29460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); } >/dev/null && {
29462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29463 test ! -s conftest.err
29464 }; then
29465 ac_header_preproc=yes
29466else
29467 $as_echo "$as_me: failed program was:" >&5
29468sed 's/^/| /' conftest.$ac_ext >&5
29469
29470 ac_header_preproc=no
29471fi
29472
29473rm -f conftest.err conftest.$ac_ext
29474{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29475$as_echo "$ac_header_preproc" >&6; }
29476
29477# So? What about this header?
29478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29479 yes:no: )
29480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29481$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29483$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29484 ac_header_preproc=yes
29485 ;;
29486 no:yes:* )
29487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29488$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29490$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29492$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29494$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29496$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29498$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29499 ( cat <<\_ASBOX
29500## ------------------------------------------- ##
29501## Report this to openssh-unix-dev@mindrot.org ##
29502## ------------------------------------------- ##
29503_ASBOX
29504 ) | sed "s/^/$as_me: WARNING: /" >&2
29505 ;;
29506esac
29507{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29508$as_echo_n "checking for $ac_header... " >&6; }
29509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29510 $as_echo_n "(cached) " >&6
29511else
29512 eval "$as_ac_Header=\$ac_header_preproc"
29513fi
29514ac_res=`eval 'as_val=${'$as_ac_Header'}
29515 $as_echo "$as_val"'`
29516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29517$as_echo "$ac_res" >&6; }
29518
29519fi
29520if test `eval 'as_val=${'$as_ac_Header'}
29521 $as_echo "$as_val"'` = yes; then
29522 cat >>confdefs.h <<_ACEOF
29523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29524_ACEOF
29525
29526fi
29527
29528done
29529
29530
29531 LIBS="$LIBS $K5LIBS"
29532 { $as_echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5
29533$as_echo_n "checking for library containing k_hasafs... " >&6; }
29534if test "${ac_cv_search_k_hasafs+set}" = set; then
29535 $as_echo_n "(cached) " >&6
29536else
29537 ac_func_search_save_LIBS=$LIBS
29538cat >conftest.$ac_ext <<_ACEOF
29539/* confdefs.h. */
29540_ACEOF
29541cat confdefs.h >>conftest.$ac_ext
29542cat >>conftest.$ac_ext <<_ACEOF
29543/* end confdefs.h. */
29544
29545/* Override any GCC internal prototype to avoid an error.
29546 Use char because int might match the return type of a GCC
29547 builtin and then its argument prototype would still apply. */
29548#ifdef __cplusplus
29549extern "C"
29550#endif
29551char k_hasafs ();
29552int
29553main ()
29554{
29555return k_hasafs ();
29556 ;
29557 return 0;
29558}
29559_ACEOF
29560for ac_lib in '' kafs; do
29561 if test -z "$ac_lib"; then
29562 ac_res="none required"
29563 else
29564 ac_res=-l$ac_lib
29565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29566 fi
29567 rm -f conftest.$ac_objext conftest$ac_exeext
29568if { (ac_try="$ac_link"
29569case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29572esac
29573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29574$as_echo "$ac_try_echo") >&5
29575 (eval "$ac_link") 2>conftest.er1
29576 ac_status=$?
29577 grep -v '^ *+' conftest.er1 >conftest.err
29578 rm -f conftest.er1
29579 cat conftest.err >&5
29580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } && {
29582 test -z "$ac_c_werror_flag" ||
29583 test ! -s conftest.err
29584 } && test -s conftest$ac_exeext && {
29585 test "$cross_compiling" = yes ||
29586 $as_test_x conftest$ac_exeext
29587 }; then
29588 ac_cv_search_k_hasafs=$ac_res
29589else
29590 $as_echo "$as_me: failed program was:" >&5
29591sed 's/^/| /' conftest.$ac_ext >&5
29592
29593
29594fi
29595
29596rm -rf conftest.dSYM
29597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29598 conftest$ac_exeext
29599 if test "${ac_cv_search_k_hasafs+set}" = set; then
29600 break
29601fi
29602done
29603if test "${ac_cv_search_k_hasafs+set}" = set; then
29604 :
29605else
29606 ac_cv_search_k_hasafs=no
29607fi
29608rm conftest.$ac_ext
29609LIBS=$ac_func_search_save_LIBS
29610fi
29611{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5
29612$as_echo "$ac_cv_search_k_hasafs" >&6; }
29613ac_res=$ac_cv_search_k_hasafs
29614if test "$ac_res" != no; then
29615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29616
29617cat >>confdefs.h <<\_ACEOF
29618#define USE_AFS 1
29619_ACEOF
29620
29621fi
29622
29623 fi
29624
29625
29626fi
29627
29628
29629# Looking for programs, paths and files
29630
29631PRIVSEP_PATH=/var/empty
29632
29633# Check whether --with-privsep-path was given.
29634if test "${with_privsep_path+set}" = set; then
29635 withval=$with_privsep_path;
29636 if test -n "$withval" && test "x$withval" != "xno" && \
29637 test "x${withval}" != "xyes"; then
29638 PRIVSEP_PATH=$withval
29639 fi
29640
29641
29642fi
29643
29644
29645
29646
29647# Check whether --with-xauth was given.
29648if test "${with_xauth+set}" = set; then
29649 withval=$with_xauth;
29650 if test -n "$withval" && test "x$withval" != "xno" && \
29651 test "x${withval}" != "xyes"; then
29652 xauth_path=$withval
29653 fi
29654
29655else
29656
29657 TestPath="$PATH"
29658 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
29659 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
29660 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
29661 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
29662 # Extract the first word of "xauth", so it can be a program name with args.
29663set dummy xauth; ac_word=$2
29664{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29665$as_echo_n "checking for $ac_word... " >&6; }
29666if test "${ac_cv_path_xauth_path+set}" = set; then
29667 $as_echo_n "(cached) " >&6
29668else
29669 case $xauth_path in
29670 [\\/]* | ?:[\\/]*)
29671 ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
29672 ;;
29673 *)
29674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29675for as_dir in $TestPath
29676do
29677 IFS=$as_save_IFS
29678 test -z "$as_dir" && as_dir=.
29679 for ac_exec_ext in '' $ac_executable_extensions; do
29680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29681 ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
29682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29683 break 2
29684 fi
29685done
29686done
29687IFS=$as_save_IFS
29688
29689 ;;
29690esac
29691fi
29692xauth_path=$ac_cv_path_xauth_path
29693if test -n "$xauth_path"; then
29694 { $as_echo "$as_me:$LINENO: result: $xauth_path" >&5
29695$as_echo "$xauth_path" >&6; }
29696else
29697 { $as_echo "$as_me:$LINENO: result: no" >&5
29698$as_echo "no" >&6; }
29699fi
29700
29701
29702 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
29703 xauth_path="/usr/openwin/bin/xauth"
29704 fi
29705
29706
29707fi
29708
29709
29710STRIP_OPT=-s
29711# Check whether --enable-strip was given.
29712if test "${enable_strip+set}" = set; then
29713 enableval=$enable_strip;
29714 if test "x$enableval" = "xno" ; then
29715 STRIP_OPT=
29716 fi
29717
29718
29719fi
29720
29721
29722
29723if test -z "$xauth_path" ; then
29724 XAUTH_PATH="undefined"
29725
29726else
29727
29728cat >>confdefs.h <<_ACEOF
29729#define XAUTH_PATH "$xauth_path"
29730_ACEOF
29731
29732 XAUTH_PATH=$xauth_path
29733
29734fi
29735
29736# Check for mail directory (last resort if we cannot get it from headers)
29737if test ! -z "$MAIL" ; then
29738 maildir=`dirname $MAIL`
29739
29740cat >>confdefs.h <<_ACEOF
29741#define MAIL_DIRECTORY "$maildir"
29742_ACEOF
29743
29744fi
29745
29746if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
29747 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
29748$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
29749 disable_ptmx_check=yes
29750fi
29751if test -z "$no_dev_ptmx" ; then
29752 if test "x$disable_ptmx_check" != "xyes" ; then
29753 { $as_echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5
29754$as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
29755if test "${ac_cv_file___dev_ptmx_+set}" = set; then
29756 $as_echo_n "(cached) " >&6
29757else
29758 test "$cross_compiling" = yes &&
29759 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29760$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29761 { (exit 1); exit 1; }; }
29762if test -r ""/dev/ptmx""; then
29763 ac_cv_file___dev_ptmx_=yes
29764else
29765 ac_cv_file___dev_ptmx_=no
29766fi
29767fi
29768{ $as_echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5
29769$as_echo "$ac_cv_file___dev_ptmx_" >&6; }
29770if test $ac_cv_file___dev_ptmx_ = yes; then
29771
29772
29773cat >>confdefs.h <<_ACEOF
29774#define HAVE_DEV_PTMX 1
29775_ACEOF
29776
29777 have_dev_ptmx=1
29778
29779
29780fi
29781
29782 fi
29783fi
29784
29785if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
29786 { $as_echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5
29787$as_echo_n "checking for \"/dev/ptc\"... " >&6; }
29788if test "${ac_cv_file___dev_ptc_+set}" = set; then
29789 $as_echo_n "(cached) " >&6
29790else
29791 test "$cross_compiling" = yes &&
29792 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
29793$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
29794 { (exit 1); exit 1; }; }
29795if test -r ""/dev/ptc""; then
29796 ac_cv_file___dev_ptc_=yes
29797else
29798 ac_cv_file___dev_ptc_=no
29799fi
29800fi
29801{ $as_echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5
29802$as_echo "$ac_cv_file___dev_ptc_" >&6; }
29803if test $ac_cv_file___dev_ptc_ = yes; then
29804
29805
29806cat >>confdefs.h <<_ACEOF
29807#define HAVE_DEV_PTS_AND_PTC 1
29808_ACEOF
29809
29810 have_dev_ptc=1
29811
29812
29813fi
29814
29815else
29816 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5
29817$as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
29818fi
29819
29820# Options from here on. Some of these are preset by platform above
29821
29822# Check whether --with-mantype was given.
29823if test "${with_mantype+set}" = set; then
29824 withval=$with_mantype;
29825 case "$withval" in
29826 man|cat|doc)
29827 MANTYPE=$withval
29828 ;;
29829 *)
29830 { { $as_echo "$as_me:$LINENO: error: invalid man type: $withval" >&5
29831$as_echo "$as_me: error: invalid man type: $withval" >&2;}
29832 { (exit 1); exit 1; }; }
29833 ;;
29834 esac
29835
29836
29837fi
29838
29839if test -z "$MANTYPE"; then
29840 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
29841 for ac_prog in nroff awf
29842do
29843 # Extract the first word of "$ac_prog", so it can be a program name with args.
29844set dummy $ac_prog; ac_word=$2
29845{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29846$as_echo_n "checking for $ac_word... " >&6; }
29847if test "${ac_cv_path_NROFF+set}" = set; then
29848 $as_echo_n "(cached) " >&6
29849else
29850 case $NROFF in
29851 [\\/]* | ?:[\\/]*)
29852 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29853 ;;
29854 *)
29855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29856for as_dir in $TestPath
29857do
29858 IFS=$as_save_IFS
29859 test -z "$as_dir" && as_dir=.
29860 for ac_exec_ext in '' $ac_executable_extensions; do
29861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29862 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29864 break 2
29865 fi
29866done
29867done
29868IFS=$as_save_IFS
29869
29870 ;;
29871esac
29872fi
29873NROFF=$ac_cv_path_NROFF
29874if test -n "$NROFF"; then
29875 { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
29876$as_echo "$NROFF" >&6; }
29877else
29878 { $as_echo "$as_me:$LINENO: result: no" >&5
29879$as_echo "no" >&6; }
29880fi
29881
29882
29883 test -n "$NROFF" && break
29884done
29885test -n "$NROFF" || NROFF="/bin/false"
29886
29887 if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
29888 MANTYPE=doc
29889 elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
29890 MANTYPE=man
29891 else
29892 MANTYPE=cat
29893 fi
29894fi
29895
29896if test "$MANTYPE" = "doc"; then
29897 mansubdir=man;
29898else
29899 mansubdir=$MANTYPE;
29900fi
29901
29902
29903# Check whether to enable MD5 passwords
29904MD5_MSG="no"
29905
29906# Check whether --with-md5-passwords was given.
29907if test "${with_md5_passwords+set}" = set; then
29908 withval=$with_md5_passwords;
29909 if test "x$withval" != "xno" ; then
29910
29911cat >>confdefs.h <<\_ACEOF
29912#define HAVE_MD5_PASSWORDS 1
29913_ACEOF
29914
29915 MD5_MSG="yes"
29916 fi
29917
29918
29919fi
29920
29921
29922# Whether to disable shadow password support
29923
29924# Check whether --with-shadow was given.
29925if test "${with_shadow+set}" = set; then
29926 withval=$with_shadow;
29927 if test "x$withval" = "xno" ; then
29928 cat >>confdefs.h <<\_ACEOF
29929#define DISABLE_SHADOW 1
29930_ACEOF
29931
29932 disable_shadow=yes
29933 fi
29934
29935
29936fi
29937
29938
29939if test -z "$disable_shadow" ; then
29940 { $as_echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5
29941$as_echo_n "checking if the systems has expire shadow information... " >&6; }
29942 cat >conftest.$ac_ext <<_ACEOF
29943/* confdefs.h. */
29944_ACEOF
29945cat confdefs.h >>conftest.$ac_ext
29946cat >>conftest.$ac_ext <<_ACEOF
29947/* end confdefs.h. */
29948
29949#include <sys/types.h>
29950#include <shadow.h>
29951 struct spwd sp;
29952
29953int
29954main ()
29955{
29956 sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
29957 ;
29958 return 0;
29959}
29960_ACEOF
29961rm -f conftest.$ac_objext
29962if { (ac_try="$ac_compile"
29963case "(($ac_try" in
29964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29965 *) ac_try_echo=$ac_try;;
29966esac
29967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29968$as_echo "$ac_try_echo") >&5
29969 (eval "$ac_compile") 2>conftest.er1
29970 ac_status=$?
29971 grep -v '^ *+' conftest.er1 >conftest.err
29972 rm -f conftest.er1
29973 cat conftest.err >&5
29974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } && {
29976 test -z "$ac_c_werror_flag" ||
29977 test ! -s conftest.err
29978 } && test -s conftest.$ac_objext; then
29979 sp_expire_available=yes
29980else
29981 $as_echo "$as_me: failed program was:" >&5
29982sed 's/^/| /' conftest.$ac_ext >&5
29983
29984
29985
29986fi
29987
29988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29989
29990 if test "x$sp_expire_available" = "xyes" ; then
29991 { $as_echo "$as_me:$LINENO: result: yes" >&5
29992$as_echo "yes" >&6; }
29993
29994cat >>confdefs.h <<\_ACEOF
29995#define HAS_SHADOW_EXPIRE 1
29996_ACEOF
29997
29998 else
29999 { $as_echo "$as_me:$LINENO: result: no" >&5
30000$as_echo "no" >&6; }
30001 fi
30002fi
30003
30004# Use ip address instead of hostname in $DISPLAY
30005if test ! -z "$IPADDR_IN_DISPLAY" ; then
30006 DISPLAY_HACK_MSG="yes"
30007
30008cat >>confdefs.h <<\_ACEOF
30009#define IPADDR_IN_DISPLAY 1
30010_ACEOF
30011
30012else
30013 DISPLAY_HACK_MSG="no"
30014
30015# Check whether --with-ipaddr-display was given.
30016if test "${with_ipaddr_display+set}" = set; then
30017 withval=$with_ipaddr_display;
30018 if test "x$withval" != "xno" ; then
30019 cat >>confdefs.h <<\_ACEOF
30020#define IPADDR_IN_DISPLAY 1
30021_ACEOF
30022
30023 DISPLAY_HACK_MSG="yes"
30024 fi
30025
30026
30027fi
30028
30029fi
30030
30031# check for /etc/default/login and use it if present.
30032# Check whether --enable-etc-default-login was given.
30033if test "${enable_etc_default_login+set}" = set; then
30034 enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then
30035 { $as_echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5
30036$as_echo "$as_me: /etc/default/login handling disabled" >&6;}
30037 etc_default_login=no
30038 else
30039 etc_default_login=yes
30040 fi
30041else
30042 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
30043 then
30044 { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5
30045$as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
30046 etc_default_login=no
30047 else
30048 etc_default_login=yes
30049 fi
30050
30051fi
30052
30053
30054if test "x$etc_default_login" != "xno"; then
30055 { $as_echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5
30056$as_echo_n "checking for \"/etc/default/login\"... " >&6; }
30057if test "${ac_cv_file___etc_default_login_+set}" = set; then
30058 $as_echo_n "(cached) " >&6
30059else
30060 test "$cross_compiling" = yes &&
30061 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30062$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30063 { (exit 1); exit 1; }; }
30064if test -r ""/etc/default/login""; then
30065 ac_cv_file___etc_default_login_=yes
30066else
30067 ac_cv_file___etc_default_login_=no
30068fi
30069fi
30070{ $as_echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5
30071$as_echo "$ac_cv_file___etc_default_login_" >&6; }
30072if test $ac_cv_file___etc_default_login_ = yes; then
30073 external_path_file=/etc/default/login
30074fi
30075
30076 if test "x$external_path_file" = "x/etc/default/login"; then
30077
30078cat >>confdefs.h <<\_ACEOF
30079#define HAVE_ETC_DEFAULT_LOGIN 1
30080_ACEOF
30081
30082 fi
30083fi
30084
30085if test $ac_cv_func_login_getcapbool = "yes" && \
30086 test $ac_cv_header_login_cap_h = "yes" ; then
30087 external_path_file=/etc/login.conf
30088fi
30089
30090# Whether to mess with the default path
30091SERVER_PATH_MSG="(default)"
30092
30093# Check whether --with-default-path was given.
30094if test "${with_default_path+set}" = set; then
30095 withval=$with_default_path;
30096 if test "x$external_path_file" = "x/etc/login.conf" ; then
30097 { $as_echo "$as_me:$LINENO: WARNING:
30098--with-default-path=PATH has no effect on this system.
30099Edit /etc/login.conf instead." >&5
30100$as_echo "$as_me: WARNING:
30101--with-default-path=PATH has no effect on this system.
30102Edit /etc/login.conf instead." >&2;}
30103 elif test "x$withval" != "xno" ; then
30104 if test ! -z "$external_path_file" ; then
30105 { $as_echo "$as_me:$LINENO: WARNING:
30106--with-default-path=PATH will only be used if PATH is not defined in
30107$external_path_file ." >&5
30108$as_echo "$as_me: WARNING:
30109--with-default-path=PATH will only be used if PATH is not defined in
30110$external_path_file ." >&2;}
30111 fi
30112 user_path="$withval"
30113 SERVER_PATH_MSG="$withval"
30114 fi
30115
30116else
30117 if test "x$external_path_file" = "x/etc/login.conf" ; then
30118 { $as_echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
30119$as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
30120 else
30121 if test ! -z "$external_path_file" ; then
30122 { $as_echo "$as_me:$LINENO: WARNING:
30123If PATH is defined in $external_path_file, ensure the path to scp is included,
30124otherwise scp will not work." >&5
30125$as_echo "$as_me: WARNING:
30126If PATH is defined in $external_path_file, ensure the path to scp is included,
30127otherwise scp will not work." >&2;}
30128 fi
30129 if test "$cross_compiling" = yes; then
30130 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
30131
30132else
30133 cat >conftest.$ac_ext <<_ACEOF
30134/* confdefs.h. */
30135_ACEOF
30136cat confdefs.h >>conftest.$ac_ext
30137cat >>conftest.$ac_ext <<_ACEOF
30138/* end confdefs.h. */
30139
30140/* find out what STDPATH is */
30141#include <stdio.h>
30142#ifdef HAVE_PATHS_H
30143# include <paths.h>
30144#endif
30145#ifndef _PATH_STDPATH
30146# ifdef _PATH_USERPATH /* Irix */
30147# define _PATH_STDPATH _PATH_USERPATH
30148# else
30149# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
30150# endif
30151#endif
30152#include <sys/types.h>
30153#include <sys/stat.h>
30154#include <fcntl.h>
30155#define DATA "conftest.stdpath"
30156
30157main()
30158{
30159 FILE *fd;
30160 int rc;
30161
30162 fd = fopen(DATA,"w");
30163 if(fd == NULL)
30164 exit(1);
30165
30166 if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
30167 exit(1);
30168
30169 exit(0);
30170}
30171
30172_ACEOF
30173rm -f conftest$ac_exeext
30174if { (ac_try="$ac_link"
30175case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30178esac
30179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30180$as_echo "$ac_try_echo") >&5
30181 (eval "$ac_link") 2>&5
30182 ac_status=$?
30183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30185 { (case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30188esac
30189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30190$as_echo "$ac_try_echo") >&5
30191 (eval "$ac_try") 2>&5
30192 ac_status=$?
30193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195 user_path=`cat conftest.stdpath`
30196else
30197 $as_echo "$as_me: program exited with status $ac_status" >&5
30198$as_echo "$as_me: failed program was:" >&5
30199sed 's/^/| /' conftest.$ac_ext >&5
30200
30201( exit $ac_status )
30202 user_path="/usr/bin:/bin:/usr/sbin:/sbin"
30203fi
30204rm -rf conftest.dSYM
30205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30206fi
30207
30208
30209# make sure $bindir is in USER_PATH so scp will work
30210 t_bindir=`eval echo ${bindir}`
30211 case $t_bindir in
30212 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
30213 esac
30214 case $t_bindir in
30215 NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
30216 esac
30217 echo $user_path | grep ":$t_bindir" > /dev/null 2>&1
30218 if test $? -ne 0 ; then
30219 echo $user_path | grep "^$t_bindir" > /dev/null 2>&1
30220 if test $? -ne 0 ; then
30221 user_path=$user_path:$t_bindir
30222 { $as_echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5
30223$as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
30224 fi
30225 fi
30226 fi
30227
30228fi
30229
30230if test "x$external_path_file" != "x/etc/login.conf" ; then
30231
30232cat >>confdefs.h <<_ACEOF
30233#define USER_PATH "$user_path"
30234_ACEOF
30235
30236
30237fi
30238
30239# Set superuser path separately to user path
30240
30241# Check whether --with-superuser-path was given.
30242if test "${with_superuser_path+set}" = set; then
30243 withval=$with_superuser_path;
30244 if test -n "$withval" && test "x$withval" != "xno" && \
30245 test "x${withval}" != "xyes"; then
30246
30247cat >>confdefs.h <<_ACEOF
30248#define SUPERUSER_PATH "$withval"
30249_ACEOF
30250
30251 superuser_path=$withval
30252 fi
30253
30254
30255fi
30256
30257
30258
30259{ $as_echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
30260$as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
30261IPV4_IN6_HACK_MSG="no"
30262
30263# Check whether --with-4in6 was given.
30264if test "${with_4in6+set}" = set; then
30265 withval=$with_4in6;
30266 if test "x$withval" != "xno" ; then
30267 { $as_echo "$as_me:$LINENO: result: yes" >&5
30268$as_echo "yes" >&6; }
30269
30270cat >>confdefs.h <<\_ACEOF
30271#define IPV4_IN_IPV6 1
30272_ACEOF
30273
30274 IPV4_IN6_HACK_MSG="yes"
30275 else
30276 { $as_echo "$as_me:$LINENO: result: no" >&5
30277$as_echo "no" >&6; }
30278 fi
30279
30280else
30281
30282 if test "x$inet6_default_4in6" = "xyes"; then
30283 { $as_echo "$as_me:$LINENO: result: yes (default)" >&5
30284$as_echo "yes (default)" >&6; }
30285 cat >>confdefs.h <<\_ACEOF
30286#define IPV4_IN_IPV6 1
30287_ACEOF
30288
30289 IPV4_IN6_HACK_MSG="yes"
30290 else
30291 { $as_echo "$as_me:$LINENO: result: no (default)" >&5
30292$as_echo "no (default)" >&6; }
30293 fi
30294
30295
30296fi
30297
30298
30299# Whether to enable BSD auth support
30300BSD_AUTH_MSG=no
30301
30302# Check whether --with-bsd-auth was given.
30303if test "${with_bsd_auth+set}" = set; then
30304 withval=$with_bsd_auth;
30305 if test "x$withval" != "xno" ; then
30306
30307cat >>confdefs.h <<\_ACEOF
30308#define BSD_AUTH 1
30309_ACEOF
30310
30311 BSD_AUTH_MSG=yes
30312 fi
30313
30314
30315fi
30316
30317
30318# Where to place sshd.pid
30319piddir=/var/run
30320# make sure the directory exists
30321if test ! -d $piddir ; then
30322 piddir=`eval echo ${sysconfdir}`
30323 case $piddir in
30324 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
30325 esac
30326fi
30327
30328
30329# Check whether --with-pid-dir was given.
30330if test "${with_pid_dir+set}" = set; then
30331 withval=$with_pid_dir;
30332 if test -n "$withval" && test "x$withval" != "xno" && \
30333 test "x${withval}" != "xyes"; then
30334 piddir=$withval
30335 if test ! -d $piddir ; then
30336 { $as_echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5
30337$as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
30338 fi
30339 fi
30340
30341
30342fi
30343
30344
30345
30346cat >>confdefs.h <<_ACEOF
30347#define _PATH_SSH_PIDDIR "$piddir"
30348_ACEOF
30349
30350
30351
30352# Check whether --enable-lastlog was given.
30353if test "${enable_lastlog+set}" = set; then
30354 enableval=$enable_lastlog;
30355 if test "x$enableval" = "xno" ; then
30356 cat >>confdefs.h <<\_ACEOF
30357#define DISABLE_LASTLOG 1
30358_ACEOF
30359
30360 fi
30361
30362
30363fi
30364
30365# Check whether --enable-utmp was given.
30366if test "${enable_utmp+set}" = set; then
30367 enableval=$enable_utmp;
30368 if test "x$enableval" = "xno" ; then
30369 cat >>confdefs.h <<\_ACEOF
30370#define DISABLE_UTMP 1
30371_ACEOF
30372
30373 fi
30374
30375
30376fi
30377
30378# Check whether --enable-utmpx was given.
30379if test "${enable_utmpx+set}" = set; then
30380 enableval=$enable_utmpx;
30381 if test "x$enableval" = "xno" ; then
30382
30383cat >>confdefs.h <<\_ACEOF
30384#define DISABLE_UTMPX 1
30385_ACEOF
30386
30387 fi
30388
30389
30390fi
30391
30392# Check whether --enable-wtmp was given.
30393if test "${enable_wtmp+set}" = set; then
30394 enableval=$enable_wtmp;
30395 if test "x$enableval" = "xno" ; then
30396 cat >>confdefs.h <<\_ACEOF
30397#define DISABLE_WTMP 1
30398_ACEOF
30399
30400 fi
30401
30402
30403fi
30404
30405# Check whether --enable-wtmpx was given.
30406if test "${enable_wtmpx+set}" = set; then
30407 enableval=$enable_wtmpx;
30408 if test "x$enableval" = "xno" ; then
30409
30410cat >>confdefs.h <<\_ACEOF
30411#define DISABLE_WTMPX 1
30412_ACEOF
30413
30414 fi
30415
30416
30417fi
30418
30419# Check whether --enable-libutil was given.
30420if test "${enable_libutil+set}" = set; then
30421 enableval=$enable_libutil;
30422 if test "x$enableval" = "xno" ; then
30423 cat >>confdefs.h <<\_ACEOF
30424#define DISABLE_LOGIN 1
30425_ACEOF
30426
30427 fi
30428
30429
30430fi
30431
30432# Check whether --enable-pututline was given.
30433if test "${enable_pututline+set}" = set; then
30434 enableval=$enable_pututline;
30435 if test "x$enableval" = "xno" ; then
30436
30437cat >>confdefs.h <<\_ACEOF
30438#define DISABLE_PUTUTLINE 1
30439_ACEOF
30440
30441 fi
30442
30443
30444fi
30445
30446# Check whether --enable-pututxline was given.
30447if test "${enable_pututxline+set}" = set; then
30448 enableval=$enable_pututxline;
30449 if test "x$enableval" = "xno" ; then
30450
30451cat >>confdefs.h <<\_ACEOF
30452#define DISABLE_PUTUTXLINE 1
30453_ACEOF
30454
30455 fi
30456
30457
30458fi
30459
30460
30461# Check whether --with-lastlog was given.
30462if test "${with_lastlog+set}" = set; then
30463 withval=$with_lastlog;
30464 if test "x$withval" = "xno" ; then
30465 cat >>confdefs.h <<\_ACEOF
30466#define DISABLE_LASTLOG 1
30467_ACEOF
30468
30469 elif test -n "$withval" && test "x${withval}" != "xyes"; then
30470 conf_lastlog_location=$withval
30471 fi
30472
30473
30474fi
30475
30476
30477
30478{ $as_echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5
30479$as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
30480cat >conftest.$ac_ext <<_ACEOF
30481/* confdefs.h. */
30482_ACEOF
30483cat confdefs.h >>conftest.$ac_ext
30484cat >>conftest.$ac_ext <<_ACEOF
30485/* end confdefs.h. */
30486
30487#include <sys/types.h>
30488#include <utmp.h>
30489#ifdef HAVE_LASTLOG_H
30490# include <lastlog.h>
30491#endif
30492#ifdef HAVE_PATHS_H
30493# include <paths.h>
30494#endif
30495#ifdef HAVE_LOGIN_H
30496# include <login.h>
30497#endif
30498
30499int
30500main ()
30501{
30502 char *lastlog = LASTLOG_FILE;
30503 ;
30504 return 0;
30505}
30506_ACEOF
30507rm -f conftest.$ac_objext
30508if { (ac_try="$ac_compile"
30509case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30512esac
30513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30514$as_echo "$ac_try_echo") >&5
30515 (eval "$ac_compile") 2>conftest.er1
30516 ac_status=$?
30517 grep -v '^ *+' conftest.er1 >conftest.err
30518 rm -f conftest.er1
30519 cat conftest.err >&5
30520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); } && {
30522 test -z "$ac_c_werror_flag" ||
30523 test ! -s conftest.err
30524 } && test -s conftest.$ac_objext; then
30525 { $as_echo "$as_me:$LINENO: result: yes" >&5
30526$as_echo "yes" >&6; }
30527else
30528 $as_echo "$as_me: failed program was:" >&5
30529sed 's/^/| /' conftest.$ac_ext >&5
30530
30531
30532 { $as_echo "$as_me:$LINENO: result: no" >&5
30533$as_echo "no" >&6; }
30534 { $as_echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5
30535$as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
30536 cat >conftest.$ac_ext <<_ACEOF
30537/* confdefs.h. */
30538_ACEOF
30539cat confdefs.h >>conftest.$ac_ext
30540cat >>conftest.$ac_ext <<_ACEOF
30541/* end confdefs.h. */
30542
30543#include <sys/types.h>
30544#include <utmp.h>
30545#ifdef HAVE_LASTLOG_H
30546# include <lastlog.h>
30547#endif
30548#ifdef HAVE_PATHS_H
30549# include <paths.h>
30550#endif
30551
30552int
30553main ()
30554{
30555 char *lastlog = _PATH_LASTLOG;
30556 ;
30557 return 0;
30558}
30559_ACEOF
30560rm -f conftest.$ac_objext
30561if { (ac_try="$ac_compile"
30562case "(($ac_try" in
30563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564 *) ac_try_echo=$ac_try;;
30565esac
30566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30567$as_echo "$ac_try_echo") >&5
30568 (eval "$ac_compile") 2>conftest.er1
30569 ac_status=$?
30570 grep -v '^ *+' conftest.er1 >conftest.err
30571 rm -f conftest.er1
30572 cat conftest.err >&5
30573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } && {
30575 test -z "$ac_c_werror_flag" ||
30576 test ! -s conftest.err
30577 } && test -s conftest.$ac_objext; then
30578 { $as_echo "$as_me:$LINENO: result: yes" >&5
30579$as_echo "yes" >&6; }
30580else
30581 $as_echo "$as_me: failed program was:" >&5
30582sed 's/^/| /' conftest.$ac_ext >&5
30583
30584
30585 { $as_echo "$as_me:$LINENO: result: no" >&5
30586$as_echo "no" >&6; }
30587 system_lastlog_path=no
30588
30589fi
30590
30591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30592
30593
30594fi
30595
30596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30597
30598if test -z "$conf_lastlog_location"; then
30599 if test x"$system_lastlog_path" = x"no" ; then
30600 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
30601 if (test -d "$f" || test -f "$f") ; then
30602 conf_lastlog_location=$f
30603 fi
30604 done
30605 if test -z "$conf_lastlog_location"; then
30606 { $as_echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5
30607$as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
30608 fi
30609 fi
30610fi
30611
30612if test -n "$conf_lastlog_location"; then
30613
30614cat >>confdefs.h <<_ACEOF
30615#define CONF_LASTLOG_FILE "$conf_lastlog_location"
30616_ACEOF
30617
30618fi
30619
30620{ $as_echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5
30621$as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
30622cat >conftest.$ac_ext <<_ACEOF
30623/* confdefs.h. */
30624_ACEOF
30625cat confdefs.h >>conftest.$ac_ext
30626cat >>conftest.$ac_ext <<_ACEOF
30627/* end confdefs.h. */
30628
30629#include <sys/types.h>
30630#include <utmp.h>
30631#ifdef HAVE_PATHS_H
30632# include <paths.h>
30633#endif
30634
30635int
30636main ()
30637{
30638 char *utmp = UTMP_FILE;
30639 ;
30640 return 0;
30641}
30642_ACEOF
30643rm -f conftest.$ac_objext
30644if { (ac_try="$ac_compile"
30645case "(($ac_try" in
30646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647 *) ac_try_echo=$ac_try;;
30648esac
30649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30650$as_echo "$ac_try_echo") >&5
30651 (eval "$ac_compile") 2>conftest.er1
30652 ac_status=$?
30653 grep -v '^ *+' conftest.er1 >conftest.err
30654 rm -f conftest.er1
30655 cat conftest.err >&5
30656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657 (exit $ac_status); } && {
30658 test -z "$ac_c_werror_flag" ||
30659 test ! -s conftest.err
30660 } && test -s conftest.$ac_objext; then
30661 { $as_echo "$as_me:$LINENO: result: yes" >&5
30662$as_echo "yes" >&6; }
30663else
30664 $as_echo "$as_me: failed program was:" >&5
30665sed 's/^/| /' conftest.$ac_ext >&5
30666
30667 { $as_echo "$as_me:$LINENO: result: no" >&5
30668$as_echo "no" >&6; }
30669 system_utmp_path=no
30670
30671fi
30672
30673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30674if test -z "$conf_utmp_location"; then
30675 if test x"$system_utmp_path" = x"no" ; then
30676 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
30677 if test -f $f ; then
30678 conf_utmp_location=$f
30679 fi
30680 done
30681 if test -z "$conf_utmp_location"; then
30682 cat >>confdefs.h <<\_ACEOF
30683#define DISABLE_UTMP 1
30684_ACEOF
30685
30686 fi
30687 fi
30688fi
30689if test -n "$conf_utmp_location"; then
30690
30691cat >>confdefs.h <<_ACEOF
30692#define CONF_UTMP_FILE "$conf_utmp_location"
30693_ACEOF
30694
30695fi
30696
30697{ $as_echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5
30698$as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
30699cat >conftest.$ac_ext <<_ACEOF
30700/* confdefs.h. */
30701_ACEOF
30702cat confdefs.h >>conftest.$ac_ext
30703cat >>conftest.$ac_ext <<_ACEOF
30704/* end confdefs.h. */
30705
30706#include <sys/types.h>
30707#include <utmp.h>
30708#ifdef HAVE_PATHS_H
30709# include <paths.h>
30710#endif
30711
30712int
30713main ()
30714{
30715 char *wtmp = WTMP_FILE;
30716 ;
30717 return 0;
30718}
30719_ACEOF
30720rm -f conftest.$ac_objext
30721if { (ac_try="$ac_compile"
30722case "(($ac_try" in
30723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30725esac
30726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30727$as_echo "$ac_try_echo") >&5
30728 (eval "$ac_compile") 2>conftest.er1
30729 ac_status=$?
30730 grep -v '^ *+' conftest.er1 >conftest.err
30731 rm -f conftest.er1
30732 cat conftest.err >&5
30733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } && {
30735 test -z "$ac_c_werror_flag" ||
30736 test ! -s conftest.err
30737 } && test -s conftest.$ac_objext; then
30738 { $as_echo "$as_me:$LINENO: result: yes" >&5
30739$as_echo "yes" >&6; }
30740else
30741 $as_echo "$as_me: failed program was:" >&5
30742sed 's/^/| /' conftest.$ac_ext >&5
30743
30744 { $as_echo "$as_me:$LINENO: result: no" >&5
30745$as_echo "no" >&6; }
30746 system_wtmp_path=no
30747
30748fi
30749
30750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30751if test -z "$conf_wtmp_location"; then
30752 if test x"$system_wtmp_path" = x"no" ; then
30753 for f in /usr/adm/wtmp /var/log/wtmp; do
30754 if test -f $f ; then
30755 conf_wtmp_location=$f
30756 fi
30757 done
30758 if test -z "$conf_wtmp_location"; then
30759 cat >>confdefs.h <<\_ACEOF
30760#define DISABLE_WTMP 1
30761_ACEOF
30762
30763 fi
30764 fi
30765fi
30766if test -n "$conf_wtmp_location"; then
30767
30768cat >>confdefs.h <<_ACEOF
30769#define CONF_WTMP_FILE "$conf_wtmp_location"
30770_ACEOF
30771
30772fi
30773
30774
30775{ $as_echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5
30776$as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
30777cat >conftest.$ac_ext <<_ACEOF
30778/* confdefs.h. */
30779_ACEOF
30780cat confdefs.h >>conftest.$ac_ext
30781cat >>conftest.$ac_ext <<_ACEOF
30782/* end confdefs.h. */
30783
30784#include <sys/types.h>
30785#include <utmp.h>
30786#ifdef HAVE_UTMPX_H
30787#include <utmpx.h>
30788#endif
30789#ifdef HAVE_PATHS_H
30790# include <paths.h>
30791#endif
30792
30793int
30794main ()
30795{
30796 char *utmpx = UTMPX_FILE;
30797 ;
30798 return 0;
30799}
30800_ACEOF
30801rm -f conftest.$ac_objext
30802if { (ac_try="$ac_compile"
30803case "(($ac_try" in
30804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805 *) ac_try_echo=$ac_try;;
30806esac
30807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30808$as_echo "$ac_try_echo") >&5
30809 (eval "$ac_compile") 2>conftest.er1
30810 ac_status=$?
30811 grep -v '^ *+' conftest.er1 >conftest.err
30812 rm -f conftest.er1
30813 cat conftest.err >&5
30814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); } && {
30816 test -z "$ac_c_werror_flag" ||
30817 test ! -s conftest.err
30818 } && test -s conftest.$ac_objext; then
30819 { $as_echo "$as_me:$LINENO: result: yes" >&5
30820$as_echo "yes" >&6; }
30821else
30822 $as_echo "$as_me: failed program was:" >&5
30823sed 's/^/| /' conftest.$ac_ext >&5
30824
30825 { $as_echo "$as_me:$LINENO: result: no" >&5
30826$as_echo "no" >&6; }
30827 system_utmpx_path=no
30828
30829fi
30830
30831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30832if test -z "$conf_utmpx_location"; then
30833 if test x"$system_utmpx_path" = x"no" ; then
30834 cat >>confdefs.h <<\_ACEOF
30835#define DISABLE_UTMPX 1
30836_ACEOF
30837
30838 fi
30839else
30840
30841cat >>confdefs.h <<_ACEOF
30842#define CONF_UTMPX_FILE "$conf_utmpx_location"
30843_ACEOF
30844
30845fi
30846
30847{ $as_echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5
30848$as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
30849cat >conftest.$ac_ext <<_ACEOF
30850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
30855
30856#include <sys/types.h>
30857#include <utmp.h>
30858#ifdef HAVE_UTMPX_H
30859#include <utmpx.h>
30860#endif
30861#ifdef HAVE_PATHS_H
30862# include <paths.h>
30863#endif
30864
30865int
30866main ()
30867{
30868 char *wtmpx = WTMPX_FILE;
30869 ;
30870 return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext
30874if { (ac_try="$ac_compile"
30875case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30878esac
30879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30880$as_echo "$ac_try_echo") >&5
30881 (eval "$ac_compile") 2>conftest.er1
30882 ac_status=$?
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
30886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } && {
30888 test -z "$ac_c_werror_flag" ||
30889 test ! -s conftest.err
30890 } && test -s conftest.$ac_objext; then
30891 { $as_echo "$as_me:$LINENO: result: yes" >&5
30892$as_echo "yes" >&6; }
30893else
30894 $as_echo "$as_me: failed program was:" >&5
30895sed 's/^/| /' conftest.$ac_ext >&5
30896
30897 { $as_echo "$as_me:$LINENO: result: no" >&5
30898$as_echo "no" >&6; }
30899 system_wtmpx_path=no
30900
30901fi
30902
30903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30904if test -z "$conf_wtmpx_location"; then
30905 if test x"$system_wtmpx_path" = x"no" ; then
30906 cat >>confdefs.h <<\_ACEOF
30907#define DISABLE_WTMPX 1
30908_ACEOF
30909
30910 fi
30911else
30912
30913cat >>confdefs.h <<_ACEOF
30914#define CONF_WTMPX_FILE "$conf_wtmpx_location"
30915_ACEOF
30916
30917fi
30918
30919
30920if test ! -z "$blibpath" ; then
30921 LDFLAGS="$LDFLAGS $blibflags$blibpath"
30922 { $as_echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
30923$as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
30924fi
30925
30926CFLAGS="$CFLAGS $werror_flags"
30927
30928if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
30929 test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
30930 TEST_SSH_IPV6=no
30931
30932else
30933 TEST_SSH_IPV6=yes
30934
30935fi
30936
30937
30938ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
30939
30940cat >confcache <<\_ACEOF
30941# This file is a shell script that caches the results of configure
30942# tests run on this system so they can be shared between configure
30943# scripts and configure runs, see configure's option --config-cache.
30944# It is not useful on other systems. If it contains results you don't
30945# want to keep, you may remove or edit it.
30946#
30947# config.status only pays attention to the cache file if you give it
30948# the --recheck option to rerun configure.
30949#
30950# `ac_cv_env_foo' variables (set or unset) will be overridden when
30951# loading this file, other *unset* `ac_cv_foo' will be assigned the
30952# following values.
30953
30954_ACEOF
30955
30956# The following way of writing the cache mishandles newlines in values,
30957# but we know of no workaround that is simple, portable, and efficient.
30958# So, we kill variables containing newlines.
30959# Ultrix sh set writes to stderr and can't be redirected directly,
30960# and sets the high bit in the cache file unless we assign to the vars.
30961(
30962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30963 eval ac_val=\$$ac_var
30964 case $ac_val in #(
30965 *${as_nl}*)
30966 case $ac_var in #(
30967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30968$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30969 esac
30970 case $ac_var in #(
30971 _ | IFS | as_nl) ;; #(
30972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30973 *) $as_unset $ac_var ;;
30974 esac ;;
30975 esac
30976 done
30977
30978 (set) 2>&1 |
30979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30980 *${as_nl}ac_space=\ *)
30981 # `set' does not quote correctly, so add quotes (double-quote
30982 # substitution turns \\\\ into \\, and sed turns \\ into \).
30983 sed -n \
30984 "s/'/'\\\\''/g;
30985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30986 ;; #(
30987 *)
30988 # `set' quotes correctly as required by POSIX, so do not add quotes.
30989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30990 ;;
30991 esac |
30992 sort
30993) |
30994 sed '
30995 /^ac_cv_env_/b end
30996 t clear
30997 :clear
30998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30999 t end
31000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31001 :end' >>confcache
31002if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31003 if test -w "$cache_file"; then
31004 test "x$cache_file" != "x/dev/null" &&
31005 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
31006$as_echo "$as_me: updating cache $cache_file" >&6;}
31007 cat confcache >$cache_file
31008 else
31009 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31010$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31011 fi
31012fi
31013rm -f confcache
31014
31015test "x$prefix" = xNONE && prefix=$ac_default_prefix
31016# Let make expand exec_prefix.
31017test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31018
31019DEFS=-DHAVE_CONFIG_H
31020
31021ac_libobjs=
31022ac_ltlibobjs=
31023for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31024 # 1. Remove the extension, and $U if already installed.
31025 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31026 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31027 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31028 # will be set to the directory where LIBOBJS objects are built.
31029 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31030 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31031done
31032LIBOBJS=$ac_libobjs
31033
31034LTLIBOBJS=$ac_ltlibobjs
31035
31036
31037
31038
31039: ${CONFIG_STATUS=./config.status}
31040ac_write_fail=0
31041ac_clean_files_save=$ac_clean_files
31042ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31043{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31044$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31045cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31046#! $SHELL
31047# Generated by $as_me.
31048# Run this file to recreate the current configuration.
31049# Compiler output produced by configure, useful for debugging
31050# configure, is in config.log if it exists.
31051
31052debug=false
31053ac_cs_recheck=false
31054ac_cs_silent=false
31055SHELL=\${CONFIG_SHELL-$SHELL}
31056_ACEOF
31057
31058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31059## --------------------- ##
31060## M4sh Initialization. ##
31061## --------------------- ##
31062
31063# Be more Bourne compatible
31064DUALCASE=1; export DUALCASE # for MKS sh
31065if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31066 emulate sh
31067 NULLCMD=:
31068 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31069 # is contrary to our usage. Disable this feature.
31070 alias -g '${1+"$@"}'='"$@"'
31071 setopt NO_GLOB_SUBST
31072else
31073 case `(set -o) 2>/dev/null` in
31074 *posix*) set -o posix ;;
31075esac
31076
31077fi
31078
31079
31080
31081
31082# PATH needs CR
31083# Avoid depending upon Character Ranges.
31084as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31085as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31086as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31087as_cr_digits='0123456789'
31088as_cr_alnum=$as_cr_Letters$as_cr_digits
31089
31090as_nl='
31091'
31092export as_nl
31093# Printing a long string crashes Solaris 7 /usr/bin/printf.
31094as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31096as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31097if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31098 as_echo='printf %s\n'
31099 as_echo_n='printf %s'
31100else
31101 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31102 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31103 as_echo_n='/usr/ucb/echo -n'
31104 else
31105 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31106 as_echo_n_body='eval
31107 arg=$1;
31108 case $arg in
31109 *"$as_nl"*)
31110 expr "X$arg" : "X\\(.*\\)$as_nl";
31111 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31112 esac;
31113 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31114 '
31115 export as_echo_n_body
31116 as_echo_n='sh -c $as_echo_n_body as_echo'
31117 fi
31118 export as_echo_body
31119 as_echo='sh -c $as_echo_body as_echo'
31120fi
31121
31122# The user is always right.
31123if test "${PATH_SEPARATOR+set}" != set; then
31124 PATH_SEPARATOR=:
31125 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31126 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31127 PATH_SEPARATOR=';'
31128 }
31129fi
31130
31131# Support unset when possible.
31132if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31133 as_unset=unset
31134else
31135 as_unset=false
31136fi
31137
31138
31139# IFS
31140# We need space, tab and new line, in precisely that order. Quoting is
31141# there to prevent editors from complaining about space-tab.
31142# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31143# splitting by setting IFS to empty value.)
31144IFS=" "" $as_nl"
31145
31146# Find who we are. Look in the path if we contain no directory separator.
31147case $0 in
31148 *[\\/]* ) as_myself=$0 ;;
31149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31150for as_dir in $PATH
31151do
31152 IFS=$as_save_IFS
31153 test -z "$as_dir" && as_dir=.
31154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31155done
31156IFS=$as_save_IFS
31157
31158 ;;
31159esac
31160# We did not find ourselves, most probably we were run as `sh COMMAND'
31161# in which case we are not to be found in the path.
31162if test "x$as_myself" = x; then
31163 as_myself=$0
31164fi
31165if test ! -f "$as_myself"; then
31166 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31167 { (exit 1); exit 1; }
31168fi
31169
31170# Work around bugs in pre-3.0 UWIN ksh.
31171for as_var in ENV MAIL MAILPATH
31172do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
31173done
31174PS1='$ '
31175PS2='> '
31176PS4='+ '
31177
31178# NLS nuisances.
31179LC_ALL=C
31180export LC_ALL
31181LANGUAGE=C
31182export LANGUAGE
31183
31184# Required to use basename.
31185if expr a : '\(a\)' >/dev/null 2>&1 &&
31186 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31187 as_expr=expr
31188else
31189 as_expr=false
31190fi
31191
31192if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31193 as_basename=basename
31194else
31195 as_basename=false
31196fi
31197
31198
31199# Name of the executable.
31200as_me=`$as_basename -- "$0" ||
31201$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31202 X"$0" : 'X\(//\)$' \| \
31203 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31204$as_echo X/"$0" |
31205 sed '/^.*\/\([^/][^/]*\)\/*$/{
31206 s//\1/
31207 q
31208 }
31209 /^X\/\(\/\/\)$/{
31210 s//\1/
31211 q
31212 }
31213 /^X\/\(\/\).*/{
31214 s//\1/
31215 q
31216 }
31217 s/.*/./; q'`
31218
31219# CDPATH.
31220$as_unset CDPATH
31221
31222
31223
31224 as_lineno_1=$LINENO
31225 as_lineno_2=$LINENO
31226 test "x$as_lineno_1" != "x$as_lineno_2" &&
31227 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31228
31229 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31230 # uniformly replaced by the line number. The first 'sed' inserts a
31231 # line-number line after each line using $LINENO; the second 'sed'
31232 # does the real work. The second script uses 'N' to pair each
31233 # line-number line with the line containing $LINENO, and appends
31234 # trailing '-' during substitution so that $LINENO is not a special
31235 # case at line end.
31236 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31237 # scripts with optimization help from Paolo Bonzini. Blame Lee
31238 # E. McMahon (1931-1989) for sed's syntax. :-)
31239 sed -n '
31240 p
31241 /[$]LINENO/=
31242 ' <$as_myself |
31243 sed '
31244 s/[$]LINENO.*/&-/
31245 t lineno
31246 b
31247 :lineno
31248 N
31249 :loop
31250 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31251 t loop
31252 s/-\n.*//
31253 ' >$as_me.lineno &&
31254 chmod +x "$as_me.lineno" ||
31255 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31256 { (exit 1); exit 1; }; }
31257
31258 # Don't try to exec as it changes $[0], causing all sort of problems
31259 # (the dirname of $[0] is not the place where we might find the
31260 # original and so on. Autoconf is especially sensitive to this).
31261 . "./$as_me.lineno"
31262 # Exit status is that of the last command.
31263 exit
31264}
31265
31266
31267if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31268 as_dirname=dirname
31269else
31270 as_dirname=false
31271fi
31272
31273ECHO_C= ECHO_N= ECHO_T=
31274case `echo -n x` in
31275-n*)
31276 case `echo 'x\c'` in
31277 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31278 *) ECHO_C='\c';;
31279 esac;;
31280*)
31281 ECHO_N='-n';;
31282esac
31283if expr a : '\(a\)' >/dev/null 2>&1 &&
31284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31285 as_expr=expr
31286else
31287 as_expr=false
31288fi
31289
31290rm -f conf$$ conf$$.exe conf$$.file
31291if test -d conf$$.dir; then
31292 rm -f conf$$.dir/conf$$.file
31293else
31294 rm -f conf$$.dir
31295 mkdir conf$$.dir 2>/dev/null
31296fi
31297if (echo >conf$$.file) 2>/dev/null; then
31298 if ln -s conf$$.file conf$$ 2>/dev/null; then
31299 as_ln_s='ln -s'
31300 # ... but there are two gotchas:
31301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31303 # In both cases, we have to default to `cp -p'.
31304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31305 as_ln_s='cp -p'
31306 elif ln conf$$.file conf$$ 2>/dev/null; then
31307 as_ln_s=ln
31308 else
31309 as_ln_s='cp -p'
31310 fi
31311else
31312 as_ln_s='cp -p'
31313fi
31314rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31315rmdir conf$$.dir 2>/dev/null
31316
31317if mkdir -p . 2>/dev/null; then
31318 as_mkdir_p=:
31319else
31320 test -d ./-p && rmdir ./-p
31321 as_mkdir_p=false
31322fi
31323
31324if test -x / >/dev/null 2>&1; then
31325 as_test_x='test -x'
31326else
31327 if ls -dL / >/dev/null 2>&1; then
31328 as_ls_L_option=L
31329 else
31330 as_ls_L_option=
31331 fi
31332 as_test_x='
31333 eval sh -c '\''
31334 if test -d "$1"; then
31335 test -d "$1/.";
31336 else
31337 case $1 in
31338 -*)set "./$1";;
31339 esac;
31340 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31341 ???[sx]*):;;*)false;;esac;fi
31342 '\'' sh
31343 '
31344fi
31345as_executable_p=$as_test_x
31346
31347# Sed expression to map a string onto a valid CPP name.
31348as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31349
31350# Sed expression to map a string onto a valid variable name.
31351as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31352
31353
31354exec 6>&1
31355
31356# Save the log message, to keep $[0] and so on meaningful, and to
31357# report actual input values of CONFIG_FILES etc. instead of their
31358# values after options handling.
31359ac_log="
31360This file was extended by OpenSSH $as_me Portable, which was
31361generated by GNU Autoconf 2.62. Invocation command line was
31362
31363 CONFIG_FILES = $CONFIG_FILES
31364 CONFIG_HEADERS = $CONFIG_HEADERS
31365 CONFIG_LINKS = $CONFIG_LINKS
31366 CONFIG_COMMANDS = $CONFIG_COMMANDS
31367 $ $0 $@
31368
31369on `(hostname || uname -n) 2>/dev/null | sed 1q`
31370"
31371
31372_ACEOF
31373
31374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31375# Files that config.status was made for.
31376config_files="$ac_config_files"
31377config_headers="$ac_config_headers"
31378
31379_ACEOF
31380
31381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31382ac_cs_usage="\
31383\`$as_me' instantiates files from templates according to the
31384current configuration.
31385
31386Usage: $0 [OPTIONS] [FILE]...
31387
31388 -h, --help print this help, then exit
31389 -V, --version print version number and configuration settings, then exit
31390 -q, --quiet do not print progress messages
31391 -d, --debug don't remove temporary files
31392 --recheck update $as_me by reconfiguring in the same conditions
31393 --file=FILE[:TEMPLATE]
31394 instantiate the configuration file FILE
31395 --header=FILE[:TEMPLATE]
31396 instantiate the configuration header FILE
31397
31398Configuration files:
31399$config_files
31400
31401Configuration headers:
31402$config_headers
31403
31404Report bugs to <bug-autoconf@gnu.org>."
31405
31406_ACEOF
31407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31408ac_cs_version="\\
31409OpenSSH config.status Portable
31410configured by $0, generated by GNU Autoconf 2.62,
31411 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31412
31413Copyright (C) 2008 Free Software Foundation, Inc.
31414This config.status script is free software; the Free Software Foundation
31415gives unlimited permission to copy, distribute and modify it."
31416
31417ac_pwd='$ac_pwd'
31418srcdir='$srcdir'
31419INSTALL='$INSTALL'
31420AWK='$AWK'
31421test -n "\$AWK" || AWK=awk
31422_ACEOF
31423
31424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31425# The default lists apply if the user does not specify any file.
31426ac_need_defaults=:
31427while test $# != 0
31428do
31429 case $1 in
31430 --*=*)
31431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31433 ac_shift=:
31434 ;;
31435 *)
31436 ac_option=$1
31437 ac_optarg=$2
31438 ac_shift=shift
31439 ;;
31440 esac
31441
31442 case $ac_option in
31443 # Handling of the options.
31444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31445 ac_cs_recheck=: ;;
31446 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31447 $as_echo "$ac_cs_version"; exit ;;
31448 --debug | --debu | --deb | --de | --d | -d )
31449 debug=: ;;
31450 --file | --fil | --fi | --f )
31451 $ac_shift
31452 case $ac_optarg in
31453 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31454 esac
31455 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31456 ac_need_defaults=false;;
31457 --header | --heade | --head | --hea )
31458 $ac_shift
31459 case $ac_optarg in
31460 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31461 esac
31462 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31463 ac_need_defaults=false;;
31464 --he | --h)
31465 # Conflict between --help and --header
31466 { $as_echo "$as_me: error: ambiguous option: $1
31467Try \`$0 --help' for more information." >&2
31468 { (exit 1); exit 1; }; };;
31469 --help | --hel | -h )
31470 $as_echo "$ac_cs_usage"; exit ;;
31471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31472 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31473 ac_cs_silent=: ;;
31474
31475 # This is an error.
31476 -*) { $as_echo "$as_me: error: unrecognized option: $1
31477Try \`$0 --help' for more information." >&2
31478 { (exit 1); exit 1; }; } ;;
31479
31480 *) ac_config_targets="$ac_config_targets $1"
31481 ac_need_defaults=false ;;
31482
31483 esac
31484 shift
31485done
31486
31487ac_configure_extra_args=
31488
31489if $ac_cs_silent; then
31490 exec 6>/dev/null
31491 ac_configure_extra_args="$ac_configure_extra_args --silent"
31492fi
31493
31494_ACEOF
31495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31496if \$ac_cs_recheck; then
31497 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31498 shift
31499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31500 CONFIG_SHELL='$SHELL'
31501 export CONFIG_SHELL
31502 exec "\$@"
31503fi
31504
31505_ACEOF
31506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31507exec 5>>config.log
31508{
31509 echo
31510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31511## Running $as_me. ##
31512_ASBOX
31513 $as_echo "$ac_log"
31514} >&5
31515
31516_ACEOF
31517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31518_ACEOF
31519
31520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31521
31522# Handling of arguments.
31523for ac_config_target in $ac_config_targets
31524do
31525 case $ac_config_target in
31526 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31527 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31528 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
31529 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
31530 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
31531 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
31532 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
31533 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
31534 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
31535 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
31536
31537 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31538$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31539 { (exit 1); exit 1; }; };;
31540 esac
31541done
31542
31543
31544# If the user did not use the arguments to specify the items to instantiate,
31545# then the envvar interface is used. Set only those that are not.
31546# We use the long form for the default assignment because of an extremely
31547# bizarre bug on SunOS 4.1.3.
31548if $ac_need_defaults; then
31549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31551fi
31552
31553# Have a temporary directory for convenience. Make it in the build tree
31554# simply because there is no reason against having it here, and in addition,
31555# creating and moving files from /tmp can sometimes cause problems.
31556# Hook for its removal unless debugging.
31557# Note that there is a small window in which the directory will not be cleaned:
31558# after its creation but before its name has been assigned to `$tmp'.
31559$debug ||
31560{
31561 tmp=
31562 trap 'exit_status=$?
31563 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31564' 0
31565 trap '{ (exit 1); exit 1; }' 1 2 13 15
31566}
31567# Create a (secure) tmp directory for tmp files.
31568
31569{
31570 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31571 test -n "$tmp" && test -d "$tmp"
31572} ||
31573{
31574 tmp=./conf$$-$RANDOM
31575 (umask 077 && mkdir "$tmp")
31576} ||
31577{
31578 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31579 { (exit 1); exit 1; }
31580}
31581
31582# Set up the scripts for CONFIG_FILES section.
31583# No need to generate them if there are no CONFIG_FILES.
31584# This happens for instance with `./config.status config.h'.
31585if test -n "$CONFIG_FILES"; then
31586
31587
31588ac_cr=' '
31589ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31590if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31591 ac_cs_awk_cr='\\r'
31592else
31593 ac_cs_awk_cr=$ac_cr
31594fi
31595
31596echo 'BEGIN {' >"$tmp/subs1.awk" &&
31597_ACEOF
31598
31599
31600{
31601 echo "cat >conf$$subs.awk <<_ACEOF" &&
31602 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31603 echo "_ACEOF"
31604} >conf$$subs.sh ||
31605 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31606$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31607 { (exit 1); exit 1; }; }
31608ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31609ac_delim='%!_!# '
31610for ac_last_try in false false false false false :; do
31611 . ./conf$$subs.sh ||
31612 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31613$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31614 { (exit 1); exit 1; }; }
31615
31616 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
31617 break
31618 elif $ac_last_try; then
31619 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31620$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31621 { (exit 1); exit 1; }; }
31622 else
31623 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31624 fi
31625done
31626rm -f conf$$subs.sh
31627
31628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31629cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31630_ACEOF
31631sed -n '
31632h
31633s/^/S["/; s/!.*/"]=/
31634p
31635g
31636s/^[^!]*!//
31637:repl
31638t repl
31639s/'"$ac_delim"'$//
31640t delim
31641:nl
31642h
31643s/\(.\{148\}\).*/\1/
31644t more1
31645s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31646p
31647n
31648b repl
31649:more1
31650s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31651p
31652g
31653s/.\{148\}//
31654t nl
31655:delim
31656h
31657s/\(.\{148\}\).*/\1/
31658t more2
31659s/["\\]/\\&/g; s/^/"/; s/$/"/
31660p
31661b
31662:more2
31663s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31664p
31665g
31666s/.\{148\}//
31667t delim
31668' <conf$$subs.awk | sed '
31669/^[^""]/{
31670 N
31671 s/\n//
31672}
31673' >>$CONFIG_STATUS || ac_write_fail=1
31674rm -f conf$$subs.awk
31675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31676_ACAWK
31677cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31678 for (key in S) S_is_set[key] = 1
31679 FS = ""
31680
31681}
31682{
31683 line = $ 0
31684 nfields = split(line, field, "@")
31685 substed = 0
31686 len = length(field[1])
31687 for (i = 2; i < nfields; i++) {
31688 key = field[i]
31689 keylen = length(key)
31690 if (S_is_set[key]) {
31691 value = S[key]
31692 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31693 len += length(value) + length(field[++i])
31694 substed = 1
31695 } else
31696 len += 1 + keylen
31697 }
31698
31699 print line
31700}
31701
31702_ACAWK
31703_ACEOF
31704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31705if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31706 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31707else
31708 cat
31709fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31710 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31711$as_echo "$as_me: error: could not setup config files machinery" >&2;}
31712 { (exit 1); exit 1; }; }
31713_ACEOF
31714
31715# VPATH may cause trouble with some makes, so we remove $(srcdir),
31716# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31717# trailing colons and then remove the whole line if VPATH becomes empty
31718# (actually we leave an empty line to preserve line numbers).
31719if test "x$srcdir" = x.; then
31720 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31721s/:*\$(srcdir):*/:/
31722s/:*\${srcdir}:*/:/
31723s/:*@srcdir@:*/:/
31724s/^\([^=]*=[ ]*\):*/\1/
31725s/:*$//
31726s/^[^=]*=[ ]*$//
31727}'
31728fi
31729
31730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31731fi # test -n "$CONFIG_FILES"
31732
31733# Set up the scripts for CONFIG_HEADERS section.
31734# No need to generate them if there are no CONFIG_HEADERS.
31735# This happens for instance with `./config.status Makefile'.
31736if test -n "$CONFIG_HEADERS"; then
31737cat >"$tmp/defines.awk" <<\_ACAWK ||
31738BEGIN {
31739_ACEOF
31740
31741# Transform confdefs.h into an awk script `defines.awk', embedded as
31742# here-document in config.status, that substitutes the proper values into
31743# config.h.in to produce config.h.
31744
31745# Create a delimiter string that does not exist in confdefs.h, to ease
31746# handling of long lines.
31747ac_delim='%!_!# '
31748for ac_last_try in false false :; do
31749 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31750 if test -z "$ac_t"; then
31751 break
31752 elif $ac_last_try; then
31753 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31754$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31755 { (exit 1); exit 1; }; }
31756 else
31757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31758 fi
31759done
31760
31761# For the awk script, D is an array of macro values keyed by name,
31762# likewise P contains macro parameters if any. Preserve backslash
31763# newline sequences.
31764
31765ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31766sed -n '
31767s/.\{148\}/&'"$ac_delim"'/g
31768t rset
31769:rset
31770s/^[ ]*#[ ]*define[ ][ ]*/ /
31771t def
31772d
31773:def
31774s/\\$//
31775t bsnl
31776s/["\\]/\\&/g
31777s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31778D["\1"]=" \3"/p
31779s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31780d
31781:bsnl
31782s/["\\]/\\&/g
31783s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31784D["\1"]=" \3\\\\\\n"\\/p
31785t cont
31786s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31787t cont
31788d
31789:cont
31790n
31791s/.\{148\}/&'"$ac_delim"'/g
31792t clear
31793:clear
31794s/\\$//
31795t bsnlc
31796s/["\\]/\\&/g; s/^/"/; s/$/"/p
31797d
31798:bsnlc
31799s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31800b cont
31801' <confdefs.h | sed '
31802s/'"$ac_delim"'/"\\\
31803"/g' >>$CONFIG_STATUS || ac_write_fail=1
31804
31805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31806 for (key in D) D_is_set[key] = 1
31807 FS = ""
31808}
31809/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31810 line = \$ 0
31811 split(line, arg, " ")
31812 if (arg[1] == "#") {
31813 defundef = arg[2]
31814 mac1 = arg[3]
31815 } else {
31816 defundef = substr(arg[1], 2)
31817 mac1 = arg[2]
31818 }
31819 split(mac1, mac2, "(") #)
31820 macro = mac2[1]
31821 if (D_is_set[macro]) {
31822 # Preserve the white space surrounding the "#".
31823 prefix = substr(line, 1, index(line, defundef) - 1)
31824 print prefix "define", macro P[macro] D[macro]
31825 next
31826 } else {
31827 # Replace #undef with comments. This is necessary, for example,
31828 # in the case of _POSIX_SOURCE, which is predefined and required
31829 # on some systems where configure will not decide to define it.
31830 if (defundef == "undef") {
31831 print "/*", line, "*/"
31832 next
31833 }
31834 }
31835}
31836{ print }
31837_ACAWK
31838_ACEOF
31839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31840 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31841$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31842 { (exit 1); exit 1; }; }
31843fi # test -n "$CONFIG_HEADERS"
31844
31845
31846eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
31847shift
31848for ac_tag
31849do
31850 case $ac_tag in
31851 :[FHLC]) ac_mode=$ac_tag; continue;;
31852 esac
31853 case $ac_mode$ac_tag in
31854 :[FHL]*:*);;
31855 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31856$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31857 { (exit 1); exit 1; }; };;
31858 :[FH]-) ac_tag=-:-;;
31859 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31860 esac
31861 ac_save_IFS=$IFS
31862 IFS=:
31863 set x $ac_tag
31864 IFS=$ac_save_IFS
31865 shift
31866 ac_file=$1
31867 shift
31868
31869 case $ac_mode in
31870 :L) ac_source=$1;;
31871 :[FH])
31872 ac_file_inputs=
31873 for ac_f
31874 do
31875 case $ac_f in
31876 -) ac_f="$tmp/stdin";;
31877 *) # Look for the file first in the build tree, then in the source tree
31878 # (if the path is not absolute). The absolute path cannot be DOS-style,
31879 # because $ac_f cannot contain `:'.
31880 test -f "$ac_f" ||
31881 case $ac_f in
31882 [\\/$]*) false;;
31883 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31884 esac ||
31885 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31886$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31887 { (exit 1); exit 1; }; };;
31888 esac
31889 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31890 ac_file_inputs="$ac_file_inputs '$ac_f'"
31891 done
31892
31893 # Let's still pretend it is `configure' which instantiates (i.e., don't
31894 # use $as_me), people would be surprised to read:
31895 # /* config.h. Generated by config.status. */
31896 configure_input='Generated from '`
31897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31898 `' by configure.'
31899 if test x"$ac_file" != x-; then
31900 configure_input="$ac_file. $configure_input"
31901 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31902$as_echo "$as_me: creating $ac_file" >&6;}
31903 fi
31904 # Neutralize special characters interpreted by sed in replacement strings.
31905 case $configure_input in #(
31906 *\&* | *\|* | *\\* )
31907 ac_sed_conf_input=`$as_echo "$configure_input" |
31908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31909 *) ac_sed_conf_input=$configure_input;;
31910 esac
31911
31912 case $ac_tag in
31913 *:-:* | *:-) cat >"$tmp/stdin" \
31914 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31915$as_echo "$as_me: error: could not create $ac_file" >&2;}
31916 { (exit 1); exit 1; }; } ;;
31917 esac
31918 ;;
31919 esac
31920
31921 ac_dir=`$as_dirname -- "$ac_file" ||
31922$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31923 X"$ac_file" : 'X\(//\)[^/]' \| \
31924 X"$ac_file" : 'X\(//\)$' \| \
31925 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31926$as_echo X"$ac_file" |
31927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31928 s//\1/
31929 q
31930 }
31931 /^X\(\/\/\)[^/].*/{
31932 s//\1/
31933 q
31934 }
31935 /^X\(\/\/\)$/{
31936 s//\1/
31937 q
31938 }
31939 /^X\(\/\).*/{
31940 s//\1/
31941 q
31942 }
31943 s/.*/./; q'`
31944 { as_dir="$ac_dir"
31945 case $as_dir in #(
31946 -*) as_dir=./$as_dir;;
31947 esac
31948 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31949 as_dirs=
31950 while :; do
31951 case $as_dir in #(
31952 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31953 *) as_qdir=$as_dir;;
31954 esac
31955 as_dirs="'$as_qdir' $as_dirs"
31956 as_dir=`$as_dirname -- "$as_dir" ||
31957$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31958 X"$as_dir" : 'X\(//\)[^/]' \| \
31959 X"$as_dir" : 'X\(//\)$' \| \
31960 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31961$as_echo X"$as_dir" |
31962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31963 s//\1/
31964 q
31965 }
31966 /^X\(\/\/\)[^/].*/{
31967 s//\1/
31968 q
31969 }
31970 /^X\(\/\/\)$/{
31971 s//\1/
31972 q
31973 }
31974 /^X\(\/\).*/{
31975 s//\1/
31976 q
31977 }
31978 s/.*/./; q'`
31979 test -d "$as_dir" && break
31980 done
31981 test -z "$as_dirs" || eval "mkdir $as_dirs"
31982 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31983$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31984 { (exit 1); exit 1; }; }; }
31985 ac_builddir=.
31986
31987case "$ac_dir" in
31988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31989*)
31990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31991 # A ".." for each directory in $ac_dir_suffix.
31992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31993 case $ac_top_builddir_sub in
31994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31996 esac ;;
31997esac
31998ac_abs_top_builddir=$ac_pwd
31999ac_abs_builddir=$ac_pwd$ac_dir_suffix
32000# for backward compatibility:
32001ac_top_builddir=$ac_top_build_prefix
32002
32003case $srcdir in
32004 .) # We are building in place.
32005 ac_srcdir=.
32006 ac_top_srcdir=$ac_top_builddir_sub
32007 ac_abs_top_srcdir=$ac_pwd ;;
32008 [\\/]* | ?:[\\/]* ) # Absolute name.
32009 ac_srcdir=$srcdir$ac_dir_suffix;
32010 ac_top_srcdir=$srcdir
32011 ac_abs_top_srcdir=$srcdir ;;
32012 *) # Relative name.
32013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32014 ac_top_srcdir=$ac_top_build_prefix$srcdir
32015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32016esac
32017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32018
32019
32020 case $ac_mode in
32021 :F)
32022 #
32023 # CONFIG_FILE
32024 #
32025
32026 case $INSTALL in
32027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32029 esac
32030_ACEOF
32031
32032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32033# If the template does not know about datarootdir, expand it.
32034# FIXME: This hack should be removed a few years after 2.60.
32035ac_datarootdir_hack=; ac_datarootdir_seen=
32036
32037ac_sed_dataroot='
32038/datarootdir/ {
32039 p
32040 q
32041}
32042/@datadir@/p
32043/@docdir@/p
32044/@infodir@/p
32045/@localedir@/p
32046/@mandir@/p
32047'
32048case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32049*datarootdir*) ac_datarootdir_seen=yes;;
32050*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32051 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32052$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32053_ACEOF
32054cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32055 ac_datarootdir_hack='
32056 s&@datadir@&$datadir&g
32057 s&@docdir@&$docdir&g
32058 s&@infodir@&$infodir&g
32059 s&@localedir@&$localedir&g
32060 s&@mandir@&$mandir&g
32061 s&\\\${datarootdir}&$datarootdir&g' ;;
32062esac
32063_ACEOF
32064
32065# Neutralize VPATH when `$srcdir' = `.'.
32066# Shell code in configure.ac might set extrasub.
32067# FIXME: do we really want to maintain this feature?
32068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32069ac_sed_extra="$ac_vpsub
32070$extrasub
32071_ACEOF
32072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32073:t
32074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32075s|@configure_input@|$ac_sed_conf_input|;t t
32076s&@top_builddir@&$ac_top_builddir_sub&;t t
32077s&@top_build_prefix@&$ac_top_build_prefix&;t t
32078s&@srcdir@&$ac_srcdir&;t t
32079s&@abs_srcdir@&$ac_abs_srcdir&;t t
32080s&@top_srcdir@&$ac_top_srcdir&;t t
32081s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32082s&@builddir@&$ac_builddir&;t t
32083s&@abs_builddir@&$ac_abs_builddir&;t t
32084s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32085s&@INSTALL@&$ac_INSTALL&;t t
32086$ac_datarootdir_hack
32087"
32088eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32089 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32090$as_echo "$as_me: error: could not create $ac_file" >&2;}
32091 { (exit 1); exit 1; }; }
32092
32093test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32094 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32096 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32097which seems to be undefined. Please make sure it is defined." >&5
32098$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32099which seems to be undefined. Please make sure it is defined." >&2;}
32100
32101 rm -f "$tmp/stdin"
32102 case $ac_file in
32103 -) cat "$tmp/out" && rm -f "$tmp/out";;
32104 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32105 esac \
32106 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32107$as_echo "$as_me: error: could not create $ac_file" >&2;}
32108 { (exit 1); exit 1; }; }
32109 ;;
32110 :H)
32111 #
32112 # CONFIG_HEADER
32113 #
32114 if test x"$ac_file" != x-; then
32115 {
32116 $as_echo "/* $configure_input */" \
32117 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32118 } >"$tmp/config.h" \
32119 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32120$as_echo "$as_me: error: could not create $ac_file" >&2;}
32121 { (exit 1); exit 1; }; }
32122 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32123 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32124$as_echo "$as_me: $ac_file is unchanged" >&6;}
32125 else
32126 rm -f "$ac_file"
32127 mv "$tmp/config.h" "$ac_file" \
32128 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32129$as_echo "$as_me: error: could not create $ac_file" >&2;}
32130 { (exit 1); exit 1; }; }
32131 fi
32132 else
32133 $as_echo "/* $configure_input */" \
32134 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32135 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32136$as_echo "$as_me: error: could not create -" >&2;}
32137 { (exit 1); exit 1; }; }
32138 fi
32139 ;;
32140
32141
32142 esac
32143
32144done # for ac_tag
32145
32146
32147{ (exit 0); exit 0; }
32148_ACEOF
32149chmod +x $CONFIG_STATUS
32150ac_clean_files=$ac_clean_files_save
32151
32152test $ac_write_fail = 0 ||
32153 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
32154$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
32155 { (exit 1); exit 1; }; }
32156
32157
32158# configure is writing to config.log, and then calls config.status.
32159# config.status does its own redirection, appending to config.log.
32160# Unfortunately, on DOS this fails, as config.log is still kept open
32161# by configure, so config.status won't be able to write to it; its
32162# output is simply discarded. So we exec the FD to /dev/null,
32163# effectively closing config.log, so it can be properly (re)opened and
32164# appended to by config.status. When coming back to configure, we
32165# need to make the FD available again.
32166if test "$no_create" != yes; then
32167 ac_cs_success=:
32168 ac_config_status_args=
32169 test "$silent" = yes &&
32170 ac_config_status_args="$ac_config_status_args --quiet"
32171 exec 5>/dev/null
32172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32173 exec 5>>config.log
32174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32175 # would make configure fail if this is the last instruction.
32176 $ac_cs_success || { (exit 1); exit 1; }
32177fi
32178if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32179 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
32180$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
32181fi
32182
32183
32184# Print summary of options
32185
32186# Someone please show me a better way :)
32187A=`eval echo ${prefix}` ; A=`eval echo ${A}`
32188B=`eval echo ${bindir}` ; B=`eval echo ${B}`
32189C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
32190D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
32191E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
32192F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
32193G=`eval echo ${piddir}` ; G=`eval echo ${G}`
32194H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
32195I=`eval echo ${user_path}` ; I=`eval echo ${I}`
32196J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
32197
32198echo ""
32199echo "OpenSSH has been configured with the following options:"
32200echo " User binaries: $B"
32201echo " System binaries: $C"
32202echo " Configuration files: $D"
32203echo " Askpass program: $E"
32204echo " Manual pages: $F"
32205echo " PID file: $G"
32206echo " Privilege separation chroot path: $H"
32207if test "x$external_path_file" = "x/etc/login.conf" ; then
32208echo " At runtime, sshd will use the path defined in $external_path_file"
32209echo " Make sure the path to scp is present, otherwise scp will not work"
32210else
32211echo " sshd default user PATH: $I"
32212 if test ! -z "$external_path_file"; then
32213echo " (If PATH is set in $external_path_file it will be used instead. If"
32214echo " used, ensure the path to scp is present, otherwise scp will not work.)"
32215 fi
32216fi
32217if test ! -z "$superuser_path" ; then
32218echo " sshd superuser user PATH: $J"
32219fi
32220echo " Manpage format: $MANTYPE"
32221echo " PAM support: $PAM_MSG"
32222echo " OSF SIA support: $SIA_MSG"
32223echo " KerberosV support: $KRB5_MSG"
32224echo " SELinux support: $SELINUX_MSG"
32225echo " Smartcard support: $SCARD_MSG"
32226echo " S/KEY support: $SKEY_MSG"
32227echo " TCP Wrappers support: $TCPW_MSG"
32228echo " MD5 password support: $MD5_MSG"
32229echo " libedit support: $LIBEDIT_MSG"
32230echo " Solaris process contract support: $SPC_MSG"
32231echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
32232echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
32233echo " BSD Auth support: $BSD_AUTH_MSG"
32234echo " Random number source: $RAND_MSG"
32235if test ! -z "$USE_RAND_HELPER" ; then
32236echo " ssh-rand-helper collects from: $RAND_HELPER_MSG"
32237fi
32238
32239echo ""
32240
32241echo " Host: ${host}"
32242echo " Compiler: ${CC}"
32243echo " Compiler flags: ${CFLAGS}"
32244echo "Preprocessor flags: ${CPPFLAGS}"
32245echo " Linker flags: ${LDFLAGS}"
32246echo " Libraries: ${LIBS}"
32247if test ! -z "${SSHDLIBS}"; then
32248echo " +for sshd: ${SSHDLIBS}"
32249fi
32250
32251echo ""
32252
32253if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
32254 echo "SVR4 style packages are supported with \"make package\""
32255 echo ""
32256fi
32257
32258if test "x$PAM_MSG" = "xyes" ; then
32259 echo "PAM is enabled. You may need to install a PAM control file "
32260 echo "for sshd, otherwise password authentication may fail. "
32261 echo "Example PAM control files can be found in the contrib/ "
32262 echo "subdirectory"
32263 echo ""
32264fi
32265
32266if test ! -z "$RAND_HELPER_CMDHASH" ; then
32267 echo "WARNING: you are using the builtin random number collection "
32268 echo "service. Please read WARNING.RNG and request that your OS "
32269 echo "vendor includes kernel-based random number collection in "
32270 echo "future versions of your OS."
32271 echo ""
32272fi
32273
32274if test ! -z "$NO_PEERCHECK" ; then
32275 echo "WARNING: the operating system that you are using does not"
32276 echo "appear to support getpeereid(), getpeerucred() or the"
32277 echo "SO_PEERCRED getsockopt() option. These facilities are used to"
32278 echo "enforce security checks to prevent unauthorised connections to"
32279 echo "ssh-agent. Their absence increases the risk that a malicious"
32280 echo "user can connect to your agent."
32281 echo ""
32282fi
32283
32284if test "$AUDIT_MODULE" = "bsm" ; then
32285 echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
32286 echo "See the Solaris section in README.platform for details."
32287fi
diff --git a/contrib/solaris/README b/contrib/solaris/README
index fefdd4b53..fefdd4b53 100644..100755
--- a/contrib/solaris/README
+++ b/contrib/solaris/README
diff --git a/moduli.0 b/moduli.0
new file mode 100644
index 000000000..63e6f9eb1
--- /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, contain-
18 ing seven space separated fields. These fields are as follows:
19
20 timestamp The time that the modulus was last processed as YYYYM-
21 MDDHHMMSS.
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). Futher 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 Probabalistic 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 of primaility trials that
51 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 4.6 June 26, 2008 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/openbsd-compat/sha2.c b/openbsd-compat/sha2.c
index cf8e0ad66..cf8e0ad66 100644..100755
--- a/openbsd-compat/sha2.c
+++ b/openbsd-compat/sha2.c
diff --git a/openbsd-compat/sha2.h b/openbsd-compat/sha2.h
index 821f2dd6c..821f2dd6c 100644..100755
--- a/openbsd-compat/sha2.h
+++ b/openbsd-compat/sha2.h
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/scard/Ssh.bin b/scard/Ssh.bin
new file mode 100644
index 000000000..edbadc618
--- /dev/null
+++ b/scard/Ssh.bin
Binary files differ
diff --git a/scp.0 b/scp.0
new file mode 100644
index 000000000..2cf4a2a7d
--- /dev/null
+++ b/scp.0
@@ -0,0 +1,148 @@
1SCP(1) OpenBSD Reference Manual SCP(1)
2
3NAME
4 scp - secure copy (remote file copy program)
5
6SYNOPSIS
7 scp [-1246BCpqrv] [-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 ex-
19 plicit 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 -4 Forces scp to use IPv4 addresses only.
30
31 -6 Forces scp to use IPv6 addresses only.
32
33 -B Selects batch mode (prevents asking for passwords or passphras-
34 es).
35
36 -C Compression enable. Passes the -C flag to ssh(1) to enable com-
37 pression.
38
39 -c cipher
40 Selects the cipher to use for encrypting the data transfer. This
41 option is directly passed to ssh(1).
42
43 -F ssh_config
44 Specifies an alternative per-user configuration file for ssh.
45 This option is directly passed to ssh(1).
46
47 -i identity_file
48 Selects the file from which the identity (private key) for public
49 key authentication is read. This option is directly passed to
50 ssh(1).
51
52 -l limit
53 Limits the used bandwidth, specified in Kbit/s.
54
55 -o ssh_option
56 Can be used to pass options to ssh in the format used in
57 ssh_config(5). This is useful for specifying options for which
58 there is no separate scp command-line flag. For full details of
59 the options listed below, and their possible values, see
60 ssh_config(5).
61
62 AddressFamily
63 BatchMode
64 BindAddress
65 ChallengeResponseAuthentication
66 CheckHostIP
67 Cipher
68 Ciphers
69 Compression
70 CompressionLevel
71 ConnectionAttempts
72 ConnectTimeout
73 ControlMaster
74 ControlPath
75 GlobalKnownHostsFile
76 GSSAPIAuthentication
77 GSSAPIDelegateCredentials
78 HashKnownHosts
79 Host
80 HostbasedAuthentication
81 HostKeyAlgorithms
82 HostKeyAlias
83 HostName
84 IdentityFile
85 IdentitiesOnly
86 KbdInteractiveDevices
87 LogLevel
88 MACs
89 NoHostAuthenticationForLocalhost
90 NumberOfPasswordPrompts
91 PasswordAuthentication
92 Port
93 PreferredAuthentications
94 Protocol
95 ProxyCommand
96 PubkeyAuthentication
97 RekeyLimit
98 RhostsRSAAuthentication
99 RSAAuthentication
100 SendEnv
101 ServerAliveInterval
102 ServerAliveCountMax
103 SmartcardDevice
104 StrictHostKeyChecking
105 TCPKeepAlive
106 UsePrivilegedPort
107 User
108 UserKnownHostsFile
109 VerifyHostKeyDNS
110
111 -P port
112 Specifies the port to connect to on the remote host. Note that
113 this option is written with a capital `P', because -p is already
114 reserved for preserving the times and modes of the file in
115 rcp(1).
116
117 -p Preserves modification times, access times, and modes from the
118 original file.
119
120 -q Quiet mode: disables the progress meter as well as warning and
121 diagnostic messages from ssh(1).
122
123 -r Recursively copy entire directories. Note that scp follows sym-
124 bolic links encountered in the tree traversal.
125
126 -S program
127 Name of program to use for the encrypted connection. The program
128 must understand ssh(1) options.
129
130 -v Verbose mode. Causes scp and ssh(1) to print debugging messages
131 about their progress. This is helpful in debugging connection,
132 authentication, and configuration problems.
133
134 The scp utility exits 0 on success, and >0 if an error occurs.
135
136SEE ALSO
137 rcp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
138 ssh_config(5), sshd(8)
139
140HISTORY
141 scp is based on the rcp(1) program in BSD source code from the Regents of
142 the University of California.
143
144AUTHORS
145 Timo Rinne <tri@iki.fi>
146 Tatu Ylonen <ylo@cs.hut.fi>
147
148OpenBSD 4.6 July 12, 2008 3
diff --git a/sftp-server.0 b/sftp-server.0
new file mode 100644
index 000000000..d47fc0ceb
--- /dev/null
+++ b/sftp-server.0
@@ -0,0 +1,50 @@
1SFTP-SERVER(8) OpenBSD System Manager's Manual SFTP-SERVER(8)
2
3NAME
4 sftp-server - SFTP server subsystem
5
6SYNOPSIS
7 sftp-server [-f log_facility] [-l log_level]
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 in-
12 tended to be called directly, but from sshd(8) using the Subsystem op-
13 tion.
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 -f log_facility
21 Specifies the facility code that is used when logging messages
22 from sftp-server. The possible values are: DAEMON, USER, AUTH,
23 LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7.
24 The default is AUTH.
25
26 -l log_level
27 Specifies which messages will be logged by sftp-server. The pos-
28 sible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DE-
29 BUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions that
30 sftp-server performs on behalf of the client. DEBUG and DEBUG1
31 are equivalent. DEBUG2 and DEBUG3 each specify higher levels of
32 debugging output. The default is ERROR.
33
34 For logging to work, sftp-server must be able to access /dev/log. Use of
35 sftp-server in a chroot configuration therefore requires that syslogd(8)
36 establish a logging socket inside the chroot directory.
37
38SEE ALSO
39 sftp(1), ssh(1), sshd_config(5), sshd(8)
40
41 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
42 filexfer-00.txt, January 2001, work in progress material.
43
44HISTORY
45 sftp-server first appeared in OpenBSD 2.8.
46
47AUTHORS
48 Markus Friedl <markus@openbsd.org>
49
50OpenBSD 4.6 March 26, 2009 1
diff --git a/sftp.0 b/sftp.0
new file mode 100644
index 000000000..1b81391e5
--- /dev/null
+++ b/sftp.0
@@ -0,0 +1,274 @@
1SFTP(1) OpenBSD Reference Manual SFTP(1)
2
3NAME
4 sftp - secure file transfer program
5
6SYNOPSIS
7 sftp [-1Cv] [-B buffer_size] [-b batchfile] [-F ssh_config]
8 [-o ssh_option] [-P sftp_server_path] [-R num_requests] [-S program]
9 [-s subsystem | sftp_server] host
10 sftp [user@]host[:file ...]
11 sftp [user@]host[:dir[/]]
12 sftp -b batchfile [user@]host
13
14DESCRIPTION
15 sftp is an interactive file transfer program, similar to ftp(1), which
16 performs all operations over an encrypted ssh(1) transport. It may also
17 use many features of ssh, such as public key authentication and compres-
18 sion. sftp connects and logs into the specified host, then enters an in-
19 teractive command mode.
20
21 The second usage format will retrieve files automatically if a non-inter-
22 active authentication method is used; otherwise it will do so after suc-
23 cessful interactive authentication.
24
25 The third usage format allows sftp to start in a remote directory.
26
27 The final usage format allows for automated sessions using the -b option.
28 In such cases, it is necessary to configure non-interactive authentica-
29 tion to obviate the need to enter a password at connection time (see
30 sshd(8) and ssh-keygen(1) for details). The options are as follows:
31
32 -1 Specify the use of protocol version 1.
33
34 -B buffer_size
35 Specify the size of the buffer that sftp uses when transferring
36 files. Larger buffers require fewer round trips at the cost of
37 higher memory consumption. The default is 32768 bytes.
38
39 -b batchfile
40 Batch mode reads a series of commands from an input batchfile in-
41 stead of stdin. Since it lacks user interaction it should be
42 used in conjunction with non-interactive authentication. A
43 batchfile of `-' may be used to indicate standard input. sftp
44 will abort if any of the following commands fail: get, put,
45 rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, chown, chgrp,
46 lpwd, df, and lmkdir. Termination on error can be suppressed on
47 a command by command basis by prefixing the command with a `-'
48 character (for example, -rm /tmp/blah*).
49
50 -C Enables compression (via ssh's -C flag).
51
52 -F ssh_config
53 Specifies an alternative per-user configuration file for ssh(1).
54 This option is directly passed to ssh(1).
55
56 -o ssh_option
57 Can be used to pass options to ssh in the format used in
58 ssh_config(5). This is useful for specifying options for which
59 there is no separate sftp command-line flag. For example, to
60 specify an alternate port use: sftp -oPort=24. For full details
61 of the options listed below, and their possible values, see
62 ssh_config(5).
63
64 AddressFamily
65 BatchMode
66 BindAddress
67 ChallengeResponseAuthentication
68 CheckHostIP
69 Cipher
70 Ciphers
71 Compression
72 CompressionLevel
73 ConnectionAttempts
74 ConnectTimeout
75 ControlMaster
76 ControlPath
77 GlobalKnownHostsFile
78 GSSAPIAuthentication
79 GSSAPIDelegateCredentials
80 HashKnownHosts
81 Host
82 HostbasedAuthentication
83 HostKeyAlgorithms
84 HostKeyAlias
85 HostName
86 IdentityFile
87 IdentitiesOnly
88 KbdInteractiveDevices
89 LogLevel
90 MACs
91 NoHostAuthenticationForLocalhost
92 NumberOfPasswordPrompts
93 PasswordAuthentication
94 Port
95 PreferredAuthentications
96 Protocol
97 ProxyCommand
98 PubkeyAuthentication
99 RekeyLimit
100 RhostsRSAAuthentication
101 RSAAuthentication
102 SendEnv
103 ServerAliveInterval
104 ServerAliveCountMax
105 SmartcardDevice
106 StrictHostKeyChecking
107 TCPKeepAlive
108 UsePrivilegedPort
109 User
110 UserKnownHostsFile
111 VerifyHostKeyDNS
112
113 -P sftp_server_path
114 Connect directly to a local sftp server (rather than via ssh(1)).
115 This option may be useful in debugging the client and server.
116
117 -R num_requests
118 Specify how many requests may be outstanding at any one time.
119 Increasing this may slightly improve file transfer speed but will
120 increase memory usage. The default is 64 outstanding requests.
121
122 -S program
123 Name of the program to use for the encrypted connection. The
124 program must understand ssh(1) options.
125
126 -s subsystem | sftp_server
127 Specifies the SSH2 subsystem or the path for an sftp server on
128 the remote host. A path is useful for using sftp over protocol
129 version 1, or when the remote sshd(8) does not have an sftp sub-
130 system configured.
131
132 -v Raise logging level. This option is also passed to ssh.
133
134INTERACTIVE COMMANDS
135 Once in interactive mode, sftp understands a set of commands similar to
136 those of ftp(1). Commands are case insensitive. Pathnames that contain
137 spaces must be enclosed in quotes. Any special characters contained
138 within pathnames that are recognized by glob(3) must be escaped with
139 backslashes (`\').
140
141 bye Quit sftp.
142
143 cd path
144 Change remote directory to path.
145
146 chgrp grp path
147 Change group of file path to grp. path may contain glob(3) char-
148 acters and may match multiple files. grp must be a numeric GID.
149
150 chmod mode path
151 Change permissions of file path to mode. path may contain
152 glob(3) characters and may match multiple files.
153
154 chown own path
155 Change owner of file path to own. path may contain glob(3) char-
156 acters and may match multiple files. own must be a numeric UID.
157
158 df [-hi] [path]
159 Display usage information for the filesystem holding the current
160 directory (or path if specified). If the -h flag is specified,
161 the capacity information will be displayed using "human-readable"
162 suffixes. The -i flag requests display of inode information in
163 addition to capacity information. This command is only supported
164 on servers that implement the ``statvfs@openssh.com'' extension.
165
166 exit Quit sftp.
167
168 get [-P] remote-path [local-path]
169 Retrieve the remote-path and store it on the local machine. If
170 the local path name is not specified, it is given the same name
171 it has on the remote machine. remote-path may contain glob(3)
172 characters and may match multiple files. If it does and local-
173 path is specified, then local-path must specify a directory. If
174 the -P flag is specified, then full file permissions and access
175 times are copied too.
176
177 help Display help text.
178
179 lcd path
180 Change local directory to path.
181
182 lls [ls-options [path]]
183 Display local directory listing of either path or current direc-
184 tory if path is not specified. ls-options may contain any flags
185 supported by the local system's ls(1) command. path may contain
186 glob(3) characters and may match multiple files.
187
188 lmkdir path
189 Create local directory specified by path.
190
191 ln oldpath newpath
192 Create a symbolic link from oldpath to newpath.
193
194 lpwd Print local working directory.
195
196 ls [-1aflnrSt] [path]
197 Display a remote directory listing of either path or the current
198 directory if path is not specified. path may contain glob(3)
199 characters and may match multiple files.
200
201 The following flags are recognized and alter the behaviour of ls
202 accordingly:
203
204 -1 Produce single columnar output.
205
206 -a List files beginning with a dot (`.').
207
208 -f Do not sort the listing. The default sort order is lexi-
209 cographical.
210
211 -l Display additional details including permissions and own-
212 ership information.
213
214 -n Produce a long listing with user and group information
215 presented numerically.
216
217 -r Reverse the sort order of the listing.
218
219 -S Sort the listing by file size.
220
221 -t Sort the listing by last modification time.
222
223 lumask umask
224 Set local umask to umask.
225
226 mkdir path
227 Create remote directory specified by path.
228
229 progress
230 Toggle display of progress meter.
231
232 put [-P] local-path [remote-path]
233 Upload local-path and store it on the remote machine. If the re-
234 mote path name is not specified, it is given the same name it has
235 on the local machine. local-path may contain glob(3) characters
236 and may match multiple files. If it does and remote-path is
237 specified, then remote-path must specify a directory. If the -P
238 flag is specified, then the file's full permission and access
239 time are copied too.
240
241 pwd Display remote working directory.
242
243 quit Quit sftp.
244
245 rename oldpath newpath
246 Rename remote file from oldpath to newpath.
247
248 rm path
249 Delete remote file specified by path.
250
251 rmdir path
252 Remove remote directory specified by path.
253
254 symlink oldpath newpath
255 Create a symbolic link from oldpath to newpath.
256
257 version
258 Display the sftp protocol version.
259
260 !command
261 Execute command in local shell.
262
263 ! Escape to local shell.
264
265 ? Synonym for help.
266
267SEE ALSO
268 ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3),
269 ssh_config(5), sftp-server(8), sshd(8)
270
271 T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh-
272 filexfer-00.txt, January 2001, work in progress material.
273
274OpenBSD 4.6 December 9, 2008 5
diff --git a/ssh-add.0 b/ssh-add.0
new file mode 100644
index 000000000..ac88b3d3e
--- /dev/null
+++ b/ssh-add.0
@@ -0,0 +1,106 @@
1SSH-ADD(1) OpenBSD Reference Manual SSH-ADD(1)
2
3NAME
4 ssh-add - adds RSA or DSA identities to the authentication agent
5
6SYNOPSIS
7 ssh-add [-cDdLlXx] [-t life] [file ...]
8 ssh-add -s reader
9 ssh-add -e reader
10
11DESCRIPTION
12 ssh-add adds RSA or DSA identities to the authentication agent,
13 ssh-agent(1). When run without arguments, it adds the files
14 ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. Alternative file names
15 can be given on the command line. If any file requires a passphrase,
16 ssh-add asks for the passphrase from the user. The passphrase is read
17 from the user's tty. ssh-add retries the last passphrase if multiple
18 identity files are given.
19
20 The authentication agent must be running and the SSH_AUTH_SOCK environ-
21 ment variable must contain the name of its socket for ssh-add to work.
22
23 The options are as follows:
24
25 -c Indicates that added identities should be subject to confirmation
26 before being used for authentication. Confirmation is performed
27 by the SSH_ASKPASS program mentioned below. Successful confirma-
28 tion is signaled by a zero exit status from the SSH_ASKPASS pro-
29 gram, rather than text entered into the requester.
30
31 -D Deletes all identities from the agent.
32
33 -d Instead of adding identities, removes identities from the agent.
34 If ssh-add has been run without arguments, the keys for the de-
35 fault identities will be removed. Otherwise, the argument list
36 will be interpreted as a list of paths to public key files and
37 matching keys will be removed from the agent. If no public key
38 is found at a given path, ssh-add will append .pub and retry.
39
40 -e reader
41 Remove key in smartcard reader.
42
43 -L Lists public key parameters of all identities currently repre-
44 sented by the agent.
45
46 -l Lists fingerprints of all identities currently represented by the
47 agent.
48
49 -s reader
50 Add key in smartcard reader.
51
52 -t life
53 Set a maximum lifetime when adding identities to an agent. The
54 lifetime may be specified in seconds or in a time format speci-
55 fied in sshd_config(5).
56
57 -X Unlock the agent.
58
59 -x Lock the agent with a password.
60
61ENVIRONMENT
62 DISPLAY and SSH_ASKPASS
63 If ssh-add needs a passphrase, it will read the passphrase from
64 the current terminal if it was run from a terminal. If ssh-add
65 does not have a terminal associated with it but DISPLAY and
66 SSH_ASKPASS are set, it will execute the program specified by
67 SSH_ASKPASS and open an X11 window to read the passphrase. This
68 is particularly useful when calling ssh-add from a .xsession or
69 related script. (Note that on some machines it may be necessary
70 to redirect the input from /dev/null to make this work.)
71
72 SSH_AUTH_SOCK
73 Identifies the path of a unix-domain socket used to communicate
74 with the agent.
75
76FILES
77 ~/.ssh/identity
78 Contains the protocol version 1 RSA authentication identity of
79 the user.
80
81 ~/.ssh/id_dsa
82 Contains the protocol version 2 DSA authentication identity of
83 the user.
84
85 ~/.ssh/id_rsa
86 Contains the protocol version 2 RSA authentication identity of
87 the user.
88
89 Identity files should not be readable by anyone but the user. Note that
90 ssh-add ignores identity files if they are accessible by others.
91
92DIAGNOSTICS
93 Exit status is 0 on success, 1 if the specified command fails, and 2 if
94 ssh-add is unable to contact the authentication agent.
95
96SEE ALSO
97 ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8)
98
99AUTHORS
100 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
101 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
102 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
103 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
104 versions 1.5 and 2.0.
105
106OpenBSD 4.6 June 12, 2007 2
diff --git a/ssh-agent.0 b/ssh-agent.0
new file mode 100644
index 000000000..689942c7a
--- /dev/null
+++ b/ssh-agent.0
@@ -0,0 +1,117 @@
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 authenti-
12 cation (RSA, DSA). The idea is that ssh-agent is started in the begin-
13 ning of an X-session or a login session, and all other windows or pro-
14 grams are started as clients to the ssh-agent program. Through use of
15 environment variables the agent can be located and automatically used for
16 authentication when logging in to other machines using ssh(1).
17
18 The options are as follows:
19
20 -a bind_address
21 Bind the agent to the unix-domain socket bind_address. The de-
22 fault is /tmp/ssh-XXXXXXXXXX/agent.<ppid>.
23
24 -c Generate C-shell commands on stdout. This is the default if
25 SHELL looks like it's a csh style of shell.
26
27 -d Debug mode. When this option is specified ssh-agent will not
28 fork.
29
30 -k Kill the current agent (given by the SSH_AGENT_PID environment
31 variable).
32
33 -s Generate Bourne shell commands on stdout. This is the default if
34 SHELL does not look like it's a csh style of shell.
35
36 -t life
37 Set a default value for the maximum lifetime of identities added
38 to the agent. The lifetime may be specified in seconds or in a
39 time format specified in sshd_config(5). A lifetime specified
40 for an identity with ssh-add(1) overrides this value. Without
41 this option the default maximum lifetime is forever.
42
43 If a commandline is given, this is executed as a subprocess of the agent.
44 When the command dies, so does the agent.
45
46 The agent initially does not have any private keys. Keys are added using
47 ssh-add(1). When executed without arguments, ssh-add(1) adds the files
48 ~/.ssh/id_rsa, ~/.ssh/id_dsa and ~/.ssh/identity. If the identity has a
49 passphrase, ssh-add(1) asks for the passphrase (using a small X11 appli-
50 cation if running under X11, or from the terminal if running without X).
51 It then sends the identity to the agent. Several identities can be
52 stored in the agent; the agent can automatically use any of these identi-
53 ties. ssh-add -l displays the identities currently held by the agent.
54
55 The idea is that the agent is run in the user's local PC, laptop, or ter-
56 minal. Authentication data need not be stored on any other machine, and
57 authentication passphrases never go over the network. However, the con-
58 nection to the agent is forwarded over SSH remote logins, and the user
59 can thus use the privileges given by the identities anywhere in the net-
60 work in a secure way.
61
62 There are two main ways to get an agent set up: The first is that the
63 agent starts a new subcommand into which some environment variables are
64 exported, eg ssh-agent xterm &. The second is that the agent prints the
65 needed shell commands (either sh(1) or csh(1) syntax can be generated)
66 which can be evaluated in the calling shell, eg eval `ssh-agent -s` for
67 Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for
68 csh(1) and derivatives.
69
70 Later ssh(1) looks at these variables and uses them to establish a con-
71 nection to the agent.
72
73 The agent will never send a private key over its request channel. In-
74 stead, operations that require a private key will be performed by the
75 agent, and the result will be returned to the requester. This way, pri-
76 vate keys are not exposed to clients using the agent.
77
78 A unix-domain socket is created and the name of this socket is stored in
79 the SSH_AUTH_SOCK environment variable. The socket is made accessible
80 only to the current user. This method is easily abused by root or anoth-
81 er instance of the same user.
82
83 The SSH_AGENT_PID environment variable holds the agent's process ID.
84
85 The agent exits automatically when the command given on the command line
86 terminates.
87
88FILES
89 ~/.ssh/identity
90 Contains the protocol version 1 RSA authentication identity of
91 the user.
92
93 ~/.ssh/id_dsa
94 Contains the protocol version 2 DSA 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 /tmp/ssh-XXXXXXXXXX/agent.<ppid>
102 Unix-domain sockets used to contain the connection to the authen-
103 tication agent. These sockets should only be readable by the
104 owner. The sockets should get automatically removed when the
105 agent exits.
106
107SEE ALSO
108 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
109
110AUTHORS
111 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
112 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
113 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
114 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
115 versions 1.5 and 2.0.
116
117OpenBSD 4.6 March 26, 2009 2
diff --git a/ssh-keygen.0 b/ssh-keygen.0
new file mode 100644
index 000000000..75703483e
--- /dev/null
+++ b/ssh-keygen.0
@@ -0,0 +1,289 @@
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 [-f input_keyfile]
11 ssh-keygen -e [-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 reader
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 -U reader [-f input_keyfile]
21 ssh-keygen -r hostname [-f input_keyfile] [-g]
22 ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point]
23 ssh-keygen -T output_file -f input_file [-v] [-a num_trials] [-W
24 generator]
25
26DESCRIPTION
27 ssh-keygen generates, manages and converts authentication keys for
28 ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1
29 and RSA or DSA keys for use by SSH protocol version 2. The type of key
30 to be generated is specified with the -t option. If invoked without any
31 arguments, ssh-keygen will generate an RSA key for use in SSH protocol 2
32 connections.
33
34 ssh-keygen is also used to generate groups for use in Diffie-Hellman
35 group exchange (DH-GEX). See the MODULI GENERATION section for details.
36
37 Normally each user wishing to use SSH with RSA or DSA authentication runs
38 this once to create the authentication key in ~/.ssh/identity,
39 ~/.ssh/id_dsa or ~/.ssh/id_rsa. Additionally, the system administrator
40 may use this to generate host keys, as seen in /etc/rc.
41
42 Normally this program generates the key and asks for a file in which to
43 store the private key. The public key is stored in a file with the same
44 name but ``.pub'' appended. The program also asks for a passphrase. The
45 passphrase may be empty to indicate no passphrase (host keys must have an
46 empty passphrase), or it may be a string of arbitrary length. A
47 passphrase is similar to a password, except it can be a phrase with a se-
48 ries of words, punctuation, numbers, whitespace, or any string of charac-
49 ters you want. Good passphrases are 10-30 characters long, are not sim-
50 ple sentences or otherwise easily guessable (English prose has only 1-2
51 bits of entropy per character, and provides very bad passphrases), and
52 contain a mix of upper and lowercase letters, numbers, and non-alphanu-
53 meric characters. The passphrase can be changed later by using the -p
54 option.
55
56 There is no way to recover a lost passphrase. If the passphrase is lost
57 or forgotten, a new key must be generated and copied to the corresponding
58 public key to other machines.
59
60 For RSA1 keys, there is also a comment field in the key file that is only
61 for convenience to the user to help identify the key. The comment can
62 tell what the key is for, or whatever is useful. The comment is initial-
63 ized to ``user@host'' when the key is created, but can be changed using
64 the -c option.
65
66 After a key is generated, instructions below detail where the keys should
67 be placed to be activated.
68
69 The options are as follows:
70
71 -a trials
72 Specifies the number of primality tests to perform when screening
73 DH-GEX candidates using the -T command.
74
75 -B Show the bubblebabble digest of specified private or public key
76 file.
77
78 -b bits
79 Specifies the number of bits in the key to create. For RSA keys,
80 the minimum size is 768 bits and the default is 2048 bits. Gen-
81 erally, 2048 bits is considered sufficient. DSA keys must be ex-
82 actly 1024 bits as specified by FIPS 186-2.
83
84 -C comment
85 Provides a new comment.
86
87 -c Requests changing the comment in the private and public key
88 files. This operation is only supported for RSA1 keys. The pro-
89 gram will prompt for the file containing the private keys, for
90 the passphrase if the key has one, and for the new comment.
91
92 -D reader
93 Download the RSA public key stored in the smartcard in reader.
94
95 -e This option will read a private or public OpenSSH key file and
96 print the key in RFC 4716 SSH Public Key File Format to stdout.
97 This option allows exporting keys for use by several commercial
98 SSH implementations.
99
100 -F hostname
101 Search for the specified hostname in a known_hosts file, listing
102 any occurrences found. This option is useful to find hashed host
103 names or addresses and may also be used in conjunction with the
104 -H option to print found keys in a hashed format.
105
106 -f filename
107 Specifies the filename of the key file.
108
109 -G output_file
110 Generate candidate primes for DH-GEX. These primes must be
111 screened for safety (using the -T option) before use.
112
113 -g Use generic DNS format when printing fingerprint resource records
114 using the -r command.
115
116 -H Hash a known_hosts file. This replaces all hostnames and ad-
117 dresses with hashed representations within the specified file;
118 the original content is moved to a file with a .old suffix.
119 These hashes may be used normally by ssh and sshd, but they do
120 not reveal identifying information should the file's contents be
121 disclosed. This option will not modify existing hashed hostnames
122 and is therefore safe to use on files that mix hashed and non-
123 hashed names.
124
125 -i This option will read an unencrypted private (or public) key file
126 in SSH2-compatible format and print an OpenSSH compatible private
127 (or public) key to stdout. ssh-keygen also reads the RFC 4716
128 SSH Public Key File Format. This option allows importing keys
129 from several commercial SSH implementations.
130
131 -l Show fingerprint of specified public key file. Private RSA1 keys
132 are also supported. For RSA and DSA keys ssh-keygen tries to
133 find the matching public key file and prints its fingerprint. If
134 combined with -v, an ASCII art representation of the key is sup-
135 plied with the fingerprint.
136
137 -M memory
138 Specify the amount of memory to use (in megabytes) when generat-
139 ing candidate moduli for DH-GEX.
140
141 -N new_passphrase
142 Provides the new passphrase.
143
144 -P passphrase
145 Provides the (old) passphrase.
146
147 -p Requests changing the passphrase of a private key file instead of
148 creating a new private key. The program will prompt for the file
149 containing the private key, for the old passphrase, and twice for
150 the new passphrase.
151
152 -q Silence ssh-keygen. Used by /etc/rc when creating a new key.
153
154 -R hostname
155 Removes all keys belonging to hostname from a known_hosts file.
156 This option is useful to delete hashed hosts (see the -H option
157 above).
158
159 -r hostname
160 Print the SSHFP fingerprint resource record named hostname for
161 the specified public key file.
162
163 -S start
164 Specify start point (in hex) when generating candidate moduli for
165 DH-GEX.
166
167 -T output_file
168 Test DH group exchange candidate primes (generated using the -G
169 option) for safety.
170
171 -t type
172 Specifies the type of key to create. The possible values are
173 ``rsa1'' for protocol version 1 and ``rsa'' or ``dsa'' for proto-
174 col version 2.
175
176 -U reader
177 Upload an existing RSA private key into the smartcard in reader.
178
179 -v Verbose mode. Causes ssh-keygen to print debugging messages
180 about its progress. This is helpful for debugging moduli genera-
181 tion. Multiple -v options increase the verbosity. The maximum
182 is 3.
183
184 -W generator
185 Specify desired generator when testing candidate moduli for DH-
186 GEX.
187
188 -y This option will read a private OpenSSH format file and print an
189 OpenSSH public key to stdout.
190
191MODULI GENERATION
192 ssh-keygen may be used to generate groups for the Diffie-Hellman Group
193 Exchange (DH-GEX) protocol. Generating these groups is a two-step pro-
194 cess: first, candidate primes are generated using a fast, but memory in-
195 tensive process. These candidate primes are then tested for suitability
196 (a CPU-intensive process).
197
198 Generation of primes is performed using the -G option. The desired
199 length of the primes may be specified by the -b option. For example:
200
201 # ssh-keygen -G moduli-2048.candidates -b 2048
202
203 By default, the search for primes begins at a random point in the desired
204 length range. This may be overridden using the -S option, which speci-
205 fies a different start point (in hex).
206
207 Once a set of candidates have been generated, they must be tested for
208 suitability. This may be performed using the -T option. In this mode
209 ssh-keygen will read candidates from standard input (or a file specified
210 using the -f option). For example:
211
212 # ssh-keygen -T moduli-2048 -f moduli-2048.candidates
213
214 By default, each candidate will be subjected to 100 primality tests.
215 This may be overridden using the -a option. The DH generator value will
216 be chosen automatically for the prime under consideration. If a specific
217 generator is desired, it may be requested using the -W option. Valid
218 generator values are 2, 3, and 5.
219
220 Screened DH groups may be installed in /etc/moduli. It is important that
221 this file contains moduli of a range of bit lengths and that both ends of
222 a connection share common moduli.
223
224FILES
225 ~/.ssh/identity
226 Contains the protocol version 1 RSA authentication identity of
227 the user. This file should not be readable by anyone but the us-
228 er. It is possible to specify a passphrase when generating the
229 key; that passphrase will be used to encrypt the private part of
230 this file using 3DES. This file is not automatically accessed by
231 ssh-keygen but it is offered as the default file for the private
232 key. ssh(1) will read this file when a login attempt is made.
233
234 ~/.ssh/identity.pub
235 Contains the protocol version 1 RSA public key for authentica-
236 tion. The contents of this file should be added to
237 ~/.ssh/authorized_keys on all machines where the user wishes to
238 log in using RSA authentication. There is no need to keep the
239 contents of this file secret.
240
241 ~/.ssh/id_dsa
242 Contains the protocol version 2 DSA authentication identity of
243 the user. This file should not be readable by anyone but the us-
244 er. It is possible to specify a passphrase when generating the
245 key; that passphrase will be used to encrypt the private part of
246 this file using 3DES. This file is not automatically accessed by
247 ssh-keygen but it is offered as the default file for the private
248 key. ssh(1) will read this file when a login attempt is made.
249
250 ~/.ssh/id_dsa.pub
251 Contains the protocol version 2 DSA public key for authentica-
252 tion. The contents of this file should be added to
253 ~/.ssh/authorized_keys on all machines where the user wishes to
254 log in using public key authentication. There is no need to keep
255 the contents of this file secret.
256
257 ~/.ssh/id_rsa
258 Contains the protocol version 2 RSA authentication identity of
259 the user. This file should not be readable by anyone but the us-
260 er. It is possible to specify a passphrase when generating the
261 key; that passphrase will be used to encrypt the private part of
262 this file using 3DES. This file is not automatically accessed by
263 ssh-keygen but it is offered as the default file for the private
264 key. ssh(1) will read this file when a login attempt is made.
265
266 ~/.ssh/id_rsa.pub
267 Contains the protocol version 2 RSA public key for authentica-
268 tion. The contents of this file should be added to
269 ~/.ssh/authorized_keys on all machines where the user wishes to
270 log in using public key authentication. There is no need to keep
271 the contents of this file secret.
272
273 /etc/moduli
274 Contains Diffie-Hellman groups used for DH-GEX. The file format
275 is described in moduli(5).
276
277SEE ALSO
278 ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8)
279
280 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
281
282AUTHORS
283 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
284 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
285 de Raadt and Dug Song removed many bugs, re-added newer features and
286 created OpenSSH. Markus Friedl contributed the support for SSH protocol
287 versions 1.5 and 2.0.
288
289OpenBSD 4.6 July 24, 2008 5
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0
new file mode 100644
index 000000000..bc7c1bb67
--- /dev/null
+++ b/ssh-keyscan.0
@@ -0,0 +1,107 @@
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 num-
12 ber 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 pos-
17 sible 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 pro-
21 cess 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 identi-
36 fying 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. De-
46 fault 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 ``rsa'' or ``dsa'' for protocol version 2. Multiple values may
52 be specified by separating them with commas. The default is
53 ``rsa''.
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 veri-
60 fying the keys, users will be vulnerable to man in the middle attacks.
61 On the other hand, if the security model allows such a risk, ssh-keyscan
62 can help in the detection of tampered keyfiles or man in the middle at-
63 tacks which have begun after the ssh_known_hosts file was created.
64
65FILES
66 Input format:
67
68 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4
69
70 Output format for rsa1 keys:
71
72 host-or-namelist bits exponent modulus
73
74 Output format for rsa and dsa keys:
75
76 host-or-namelist keytype base64-encoded-key
77
78 Where keytype is either ``ssh-rsa'' or ``ssh-dss''.
79
80 /etc/ssh/ssh_known_hosts
81
82EXAMPLES
83 Print the rsa host key for machine hostname:
84
85 $ ssh-keyscan hostname
86
87 Find all hosts from the file ssh_hosts which have new or different keys
88 from those in the sorted file ssh_known_hosts:
89
90 $ ssh-keyscan -t rsa,dsa -f ssh_hosts | \
91 sort -u - ssh_known_hosts | diff ssh_known_hosts -
92
93SEE ALSO
94 ssh(1), sshd(8)
95
96AUTHORS
97 David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne
98 Davison <wayned@users.sourceforge.net> added support for protocol version
99 2.
100
101BUGS
102 It generates "Connection closed by remote host" messages on the consoles
103 of all the machines it scans if the server is older than version 2.9.
104 This is because it opens a connection to the ssh port, reads the public
105 key, and drops the connection as soon as it gets the key.
106
107OpenBSD 4.6 December 29, 2008 2
diff --git a/ssh-keysign.0 b/ssh-keysign.0
new file mode 100644
index 000000000..ab15e88bc
--- /dev/null
+++ b/ssh-keysign.0
@@ -0,0 +1,42 @@
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 authentica-
20 tion.
21
22FILES
23 /etc/ssh/ssh_config
24 Controls whether ssh-keysign is enabled.
25
26 /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_rsa_key
27 These files contain the private parts of the host keys used to
28 generate the digital signature. They should be owned by root,
29 readable only by root, and not accessible to others. Since they
30 are readable only by root, ssh-keysign must be set-uid root if
31 host-based authentication is used.
32
33SEE ALSO
34 ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
35
36HISTORY
37 ssh-keysign first appeared in OpenBSD 3.2.
38
39AUTHORS
40 Markus Friedl <markus@openbsd.org>
41
42OpenBSD 4.6 May 31, 2007 1
diff --git a/ssh-rand-helper.0 b/ssh-rand-helper.0
new file mode 100644
index 000000000..72bfcdf64
--- /dev/null
+++ b/ssh-rand-helper.0
@@ -0,0 +1,51 @@
1SSH-RAND-HELPER(8) OpenBSD System Manager's Manual SSH-RAND-HELPER(8)
2
3NAME
4 ssh-rand-helper - random number gatherer for OpenSSH
5
6SYNOPSIS
7 ssh-rand-hlper [-vxXh] [-b bytes]
8
9DESCRIPTION
10 ssh-rand-helper is a small helper program used by ssh(1), ssh-add(1),
11 ssh-agent(1), ssh-keygen(1), ssh-keyscan(1) and sshd(8) to gather random
12 numbers of cryptographic quality if the openssl(4) library has not been
13 configured to provide them itself.
14
15 Normally ssh-rand-helper will generate a strong random seed and provide
16 it to the calling program via standard output. If standard output is a
17 tty, ssh-rand-helper will instead print the seed in hexidecimal format
18 unless told otherwise.
19
20 ssh-rand-helper will by default gather random numbers from the system
21 commands listed in /etc/ssh/ssh_prng_cmds. The output of each of the
22 commands listed will be hashed and used to generate a random seed for the
23 calling program. ssh-rand-helper will also store seed files in
24 ~/.ssh/prng_seed between executions.
25
26 Alternately, ssh-rand-helper may be configured at build time to collect
27 random numbers from a EGD/PRNGd server via a unix domain or localhost tcp
28 socket.
29
30 This program is not intended to be run by the end-user, so the few com-
31 mandline options are for debugging purposes only.
32
33 -b bytes
34 Specify the number of random bytes to include in the output.
35
36 -x Output a hexidecimal instead of a binary seed.
37
38 -X Force output of a binary seed, even if standard output is a tty
39
40 -v Turn on debugging message. Multiple -v options will increase the
41 debugging level.
42
43 -h Display a summary of options.
44
45AUTHORS
46 Damien Miller <djm@mindrot.org>
47
48SEE ALSO
49 ssh(1), ssh-add(1), ssh-keygen(1), sshd(8)
50
51OpenBSD 4.6 April 14, 2002 1
diff --git a/ssh.0 b/ssh.0
new file mode 100644
index 000000000..af73167b2
--- /dev/null
+++ b/ssh.0
@@ -0,0 +1,867 @@
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]
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]
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 untrust-
18 ed hosts over an insecure network. X11 connections and arbitrary TCP
19 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 be-
24 low).
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 ad-
56 dress.
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 dif-
73 ferent 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 interoperabil-
76 ity with legacy protocol 1 implementations that do not support
77 the 3des cipher. Its use is strongly discouraged due to crypto-
78 graphic 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 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. Dy-
93 namic port forwardings can also be specified in the configuration
94 file.
95
96 IPv6 addresses can be specified with an alternative syntax:
97 [bind_address/]port or by enclosing the address in square brack-
98 ets. Only the superuser can forward privileged ports. By de-
99 fault, the local port is bound in accordance with the
100 GatewayPorts setting. However, an explicit bind_address may be
101 used to bind the connection to a specific address. The
102 bind_address of ``localhost'' indicates that the listening port
103 be bound for local use only, while an empty address or `*' indi-
104 cates that the port should be available from all interfaces.
105
106 -e escape_char
107 Sets the escape character for sessions with a pty (default: `~').
108 The escape character is only recognized at the beginning of a
109 line. The escape character followed by a dot (`.') closes the
110 connection; followed by control-Z suspends the connection; and
111 followed by itself sends the escape character once. Setting the
112 character to ``none'' disables any escapes and makes the session
113 fully transparent.
114
115 -F configfile
116 Specifies an alternative per-user configuration file. If a con-
117 figuration file is given on the command line, the system-wide
118 configuration file (/etc/ssh/ssh_config) will be ignored. The
119 default for the per-user configuration file is ~/.ssh/config.
120
121 -f Requests ssh to go to background just before command execution.
122 This is useful if ssh is going to ask for passwords or passphras-
123 es, but the user wants it in the background. This implies -n.
124 The recommended way to start X11 programs at a remote site is
125 with something like ssh -f host xterm.
126
127 If the ExitOnForwardFailure configuration option is set to
128 ``yes'', then a client started with -f will wait for all remote
129 port forwards to be successfully established before placing it-
130 self in the background.
131
132 -g Allows remote hosts to connect to local forwarded ports.
133
134 -I smartcard_device
135 Specify the device ssh should use to communicate with a smartcard
136 used for storing the user's private RSA key. This option is only
137 available if support for smartcard devices is compiled in (de-
138 fault is no support).
139
140 -i identity_file
141 Selects a file from which the identity (private key) for RSA or
142 DSA authentication is read. The default is ~/.ssh/identity for
143 protocol version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for pro-
144 tocol version 2. Identity files may also be specified on a per-
145 host basis in the configuration file. It is possible to have
146 multiple -i options (and multiple identities specified in config-
147 uration files).
148
149 -K Enables GSSAPI-based authentication and forwarding (delegation)
150 of GSSAPI credentials to the server.
151
152 -k Disables forwarding (delegation) of GSSAPI credentials to the
153 server.
154
155 -L [bind_address:]port:host:hostport
156 Specifies that the given port on the local (client) host is to be
157 forwarded to the given host and port on the remote side. This
158 works by allocating a socket to listen to port on the local side,
159 optionally bound to the specified bind_address. Whenever a con-
160 nection is made to this port, the connection is forwarded over
161 the secure channel, and a connection is made to host port
162 hostport from the remote machine. Port forwardings can also be
163 specified in the configuration file. IPv6 addresses can be spec-
164 ified with an alternative syntax: [bind_address/]port/host/host-
165 port or by enclosing the address in square brackets. Only the
166 superuser can forward privileged ports. By default, the local
167 port is bound in accordance with the GatewayPorts setting. How-
168 ever, an explicit bind_address may be used to bind the connection
169 to a specific address. The bind_address of ``localhost'' indi-
170 cates that the listening port be bound for local use only, while
171 an empty address or `*' indicates that the port should be avail-
172 able from all interfaces.
173
174 -l login_name
175 Specifies the user to log in as on the remote machine. This also
176 may be specified on a per-host basis in the configuration file.
177
178 -M Places the ssh client into ``master'' mode for connection shar-
179 ing. Multiple -M options places ssh into ``master'' mode with
180 confirmation required before slave connections are accepted. Re-
181 fer to the description of ControlMaster in ssh_config(5) for de-
182 tails.
183
184 -m mac_spec
185 Additionally, for protocol version 2 a comma-separated list of
186 MAC (message authentication code) algorithms can be specified in
187 order of preference. See the MACs keyword for more information.
188
189 -N Do not execute a remote command. This is useful for just for-
190 warding ports (protocol version 2 only).
191
192 -n Redirects stdin from /dev/null (actually, prevents reading from
193 stdin). This must be used when ssh is run in the background. A
194 common trick is to use this to run X11 programs on a remote ma-
195 chine. For example, ssh -n shadows.cs.hut.fi emacs & will start
196 an emacs on shadows.cs.hut.fi, and the X11 connection will be au-
197 tomatically forwarded over an encrypted channel. The ssh program
198 will be put in the background. (This does not work if ssh needs
199 to ask for a password or passphrase; see also the -f option.)
200
201 -O ctl_cmd
202 Control an active connection multiplexing master process. When
203 the -O option is specified, the ctl_cmd argument is interpreted
204 and passed to the master process. Valid commands are: ``check''
205 (check that the master process is running) and ``exit'' (request
206 the master to exit).
207
208 -o option
209 Can be used to give options in the format used in the configura-
210 tion file. This is useful for specifying options for which there
211 is no separate command-line flag. For full details of the op-
212 tions listed below, and their possible values, see ssh_config(5).
213
214 AddressFamily
215 BatchMode
216 BindAddress
217 ChallengeResponseAuthentication
218 CheckHostIP
219 Cipher
220 Ciphers
221 ClearAllForwardings
222 Compression
223 CompressionLevel
224 ConnectionAttempts
225 ConnectTimeout
226 ControlMaster
227 ControlPath
228 DynamicForward
229 EscapeChar
230 ExitOnForwardFailure
231 ForwardAgent
232 ForwardX11
233 ForwardX11Trusted
234 GatewayPorts
235 GlobalKnownHostsFile
236 GSSAPIAuthentication
237 GSSAPIDelegateCredentials
238 HashKnownHosts
239 Host
240 HostbasedAuthentication
241 HostKeyAlgorithms
242 HostKeyAlias
243 HostName
244 IdentityFile
245 IdentitiesOnly
246 KbdInteractiveDevices
247 LocalCommand
248 LocalForward
249 LogLevel
250 MACs
251 NoHostAuthenticationForLocalhost
252 NumberOfPasswordPrompts
253 PasswordAuthentication
254 PermitLocalCommand
255 Port
256 PreferredAuthentications
257 Protocol
258 ProxyCommand
259 PubkeyAuthentication
260 RekeyLimit
261 RemoteForward
262 RhostsRSAAuthentication
263 RSAAuthentication
264 SendEnv
265 ServerAliveInterval
266 ServerAliveCountMax
267 SmartcardDevice
268 StrictHostKeyChecking
269 TCPKeepAlive
270 Tunnel
271 TunnelDevice
272 UsePrivilegedPort
273 User
274 UserKnownHostsFile
275 VerifyHostKeyDNS
276 VisualHostKey
277 XAuthLocation
278
279 -p port
280 Port to connect to on the remote host. This can be specified on
281 a per-host basis in the configuration file.
282
283 -q Quiet mode. Causes most warning and diagnostic messages to be
284 suppressed.
285
286 -R [bind_address:]port:host:hostport
287 Specifies that the given port on the remote (server) host is to
288 be forwarded to the given host and port on the local side. This
289 works by allocating a socket to listen to port on the remote
290 side, and whenever a connection is made to this port, the connec-
291 tion is forwarded over the secure channel, and a connection is
292 made to host port hostport from the local machine.
293
294 Port forwardings can also be specified in the configuration file.
295 Privileged ports can be forwarded only when logging in as root on
296 the remote machine. IPv6 addresses can be specified by enclosing
297 the address in square braces or using an alternative syntax:
298 [bind_address/]host/port/hostport.
299
300 By default, the listening socket on the server will be bound to
301 the loopback interface only. This may be overridden by specify-
302 ing a bind_address. An empty bind_address, or the address `*',
303 indicates that the remote socket should listen on all interfaces.
304 Specifying a remote bind_address will only succeed if the serv-
305 er's GatewayPorts option is enabled (see sshd_config(5)).
306
307 If the port argument is `0', the listen port will be dynamically
308 allocated on the server and reported to the client at run time.
309
310 -S ctl_path
311 Specifies the location of a control socket for connection shar-
312 ing. Refer to the description of ControlPath and ControlMaster
313 in ssh_config(5) for details.
314
315 -s May be used to request invocation of a subsystem on the remote
316 system. Subsystems are a feature of the SSH2 protocol which fa-
317 cilitate the use of SSH as a secure transport for other applica-
318 tions (eg. sftp(1)). The subsystem is specified as the remote
319 command.
320
321 -T Disable pseudo-tty allocation.
322
323 -t Force pseudo-tty allocation. This can be used to execute arbi-
324 trary screen-based programs on a remote machine, which can be
325 very useful, e.g. when implementing menu services. Multiple -t
326 options force tty allocation, even if ssh has no local tty.
327
328 -V Display the version number and exit.
329
330 -v Verbose mode. Causes ssh to print debugging messages about its
331 progress. This is helpful in debugging connection, authentica-
332 tion, and configuration problems. Multiple -v options increase
333 the verbosity. The maximum is 3.
334
335 -w local_tun[:remote_tun]
336 Requests tunnel device forwarding with the specified tun(4) de-
337 vices between the client (local_tun) and the server (remote_tun).
338
339 The devices may be specified by numerical ID or the keyword
340 ``any'', which uses the next available tunnel device. If
341 remote_tun is not specified, it defaults to ``any''. See also
342 the Tunnel and TunnelDevice directives in ssh_config(5). If the
343 Tunnel directive is unset, it is set to the default tunnel mode,
344 which is ``point-to-point''.
345
346 -X Enables X11 forwarding. This can also be specified on a per-host
347 basis in a configuration file.
348
349 X11 forwarding should be enabled with caution. Users with the
350 ability to bypass file permissions on the remote host (for the
351 user's X authorization database) can access the local X11 display
352 through the forwarded connection. An attacker may then be able
353 to perform activities such as keystroke monitoring.
354
355 For this reason, X11 forwarding is subjected to X11 SECURITY ex-
356 tension restrictions by default. Please refer to the ssh -Y op-
357 tion and the ForwardX11Trusted directive in ssh_config(5) for
358 more information.
359
360 -x Disables X11 forwarding.
361
362 -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
363 subjected to the X11 SECURITY extension controls.
364
365 -y Send log information using the syslog(3) system module. By de-
366 fault this information is sent to stderr.
367
368 ssh may additionally obtain configuration data from a per-user configura-
369 tion file and a system-wide configuration file. The file format and con-
370 figuration options are described in ssh_config(5).
371
372 ssh exits with the exit status of the remote command or with 255 if an
373 error occurred.
374
375AUTHENTICATION
376 The OpenSSH SSH client supports SSH protocols 1 and 2. Protocol 2 is the
377 default, with ssh falling back to protocol 1 if it detects protocol 2 is
378 unsupported. These settings may be altered using the Protocol option in
379 ssh_config(5), or enforced using the -1 and -2 options (see above). Both
380 protocols support similar authentication methods, but protocol 2 is pre-
381 ferred since it provides additional mechanisms for confidentiality (the
382 traffic is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and
383 integrity (hmac-md5, hmac-sha1, umac-64, hmac-ripemd160). Protocol 1
384 lacks a strong mechanism for ensuring the integrity of the connection.
385
386 The methods available for authentication are: GSSAPI-based authentica-
387 tion, host-based authentication, public key authentication, challenge-re-
388 sponse authentication, and password authentication. Authentication meth-
389 ods are tried in the order specified above, though protocol 2 has a con-
390 figuration option to change the default order: PreferredAuthentications.
391
392 Host-based authentication works as follows: If the machine the user logs
393 in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote
394 machine, and the user names are the same on both sides, or if the files
395 ~/.rhosts or ~/.shosts exist in the user's home directory on the remote
396 machine and contain a line containing the name of the client machine and
397 the name of the user on that machine, the user is considered for login.
398 Additionally, the server must be able to verify the client's host key
399 (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts,
400 below) for login to be permitted. This authentication method closes se-
401 curity holes due to IP spoofing, DNS spoofing, and routing spoofing.
402 [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the
403 rlogin/rsh protocol in general, are inherently insecure and should be
404 disabled if security is desired.]
405
406 Public key authentication works as follows: The scheme is based on pub-
407 lic-key cryptography, using cryptosystems where encryption and decryption
408 are done using separate keys, and it is unfeasible to derive the decryp-
409 tion key from the encryption key. The idea is that each user creates a
410 public/private key pair for authentication purposes. The server knows
411 the public key, and only the user knows the private key. ssh implements
412 public key authentication protocol automatically, using either the RSA or
413 DSA algorithms. Protocol 1 is restricted to using only RSA keys, but
414 protocol 2 may use either. The HISTORY section of ssl(8) contains a
415 brief discussion of the two algorithms.
416
417 The file ~/.ssh/authorized_keys lists the public keys that are permitted
418 for logging in. When the user logs in, the ssh program tells the server
419 which key pair it would like to use for authentication. The client
420 proves that it has access to the private key and the server checks that
421 the corresponding public key is authorized to accept the account.
422
423 The user creates his/her key pair by running ssh-keygen(1). This stores
424 the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol
425 2 DSA), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in
426 ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA), or
427 ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home directory. The us-
428 er should then copy the public key to ~/.ssh/authorized_keys in his/her
429 home directory on the remote machine. The authorized_keys file corre-
430 sponds to the conventional ~/.rhosts file, and has one key per line,
431 though the lines can be very long. After this, the user can log in with-
432 out giving the password.
433
434 The most convenient way to use public key authentication may be with an
435 authentication agent. See ssh-agent(1) for more information.
436
437 Challenge-response authentication works as follows: The server sends an
438 arbitrary "challenge" text, and prompts for a response. Protocol 2 al-
439 lows multiple challenges and responses; protocol 1 is restricted to just
440 one challenge/response. Examples of challenge-response authentication
441 include BSD Authentication (see login.conf(5)) and PAM (some non-OpenBSD
442 systems).
443
444 Finally, if other authentication methods fail, ssh prompts the user for a
445 password. The password is sent to the remote host for checking; however,
446 since all communications are encrypted, the password cannot be seen by
447 someone listening on the network.
448
449 ssh automatically maintains and checks a database containing identifica-
450 tion for all hosts it has ever been used with. Host keys are stored in
451 ~/.ssh/known_hosts in the user's home directory. Additionally, the file
452 /etc/ssh/ssh_known_hosts is automatically checked for known hosts. Any
453 new hosts are automatically added to the user's file. If a host's iden-
454 tification ever changes, ssh warns about this and disables password au-
455 thentication to prevent server spoofing or man-in-the-middle attacks,
456 which could otherwise be used to circumvent the encryption. The
457 StrictHostKeyChecking option can be used to control logins to machines
458 whose host key is not known or has changed.
459
460 When the user's identity has been accepted by the server, the server ei-
461 ther executes the given command, or logs into the machine and gives the
462 user a normal shell on the remote machine. All communication with the
463 remote command or shell will be automatically encrypted.
464
465 If a pseudo-terminal has been allocated (normal login session), the user
466 may use the escape characters noted below.
467
468 If no pseudo-tty has been allocated, the session is transparent and can
469 be used to reliably transfer binary data. On most systems, setting the
470 escape character to ``none'' will also make the session transparent even
471 if a tty is used.
472
473 The session terminates when the command or shell on the remote machine
474 exits and all X11 and TCP connections have been closed.
475
476ESCAPE CHARACTERS
477 When a pseudo-terminal has been requested, ssh supports a number of func-
478 tions through the use of an escape character.
479
480 A single tilde character can be sent as ~~ or by following the tilde by a
481 character other than those described below. The escape character must
482 always follow a newline to be interpreted as special. The escape charac-
483 ter can be changed in configuration files using the EscapeChar configura-
484 tion directive or on the command line by the -e option.
485
486 The supported escapes (assuming the default `~') are:
487
488 ~. Disconnect.
489
490 ~^Z Background ssh.
491
492 ~# List forwarded connections.
493
494 ~& Background ssh at logout when waiting for forwarded connection /
495 X11 sessions to terminate.
496
497 ~? Display a list of escape characters.
498
499 ~B Send a BREAK to the remote system (only useful for SSH protocol
500 version 2 and if the peer supports it).
501
502 ~C Open command line. Currently this allows the addition of port
503 forwardings using the -L, -R and -D options (see above). It also
504 allows the cancellation of existing remote port-forwardings using
505 -KR[bind_address:]port. !command allows the user to execute a
506 local command if the PermitLocalCommand option is enabled in
507 ssh_config(5). Basic help is available, using the -h option.
508
509 ~R Request rekeying of the connection (only useful for SSH protocol
510 version 2 and if the peer supports it).
511
512TCP FORWARDING
513 Forwarding of arbitrary TCP connections over the secure channel can be
514 specified either on the command line or in a configuration file. One
515 possible application of TCP forwarding is a secure connection to a mail
516 server; another is going through firewalls.
517
518 In the example below, we look at encrypting communication between an IRC
519 client and server, even though the IRC server does not directly support
520 encrypted communications. This works as follows: the user connects to
521 the remote host using ssh, specifying a port to be used to forward con-
522 nections to the remote server. After that it is possible to start the
523 service which is to be encrypted on the client machine, connecting to the
524 same local port, and ssh will encrypt and forward the connection.
525
526 The following example tunnels an IRC session from client machine
527 ``127.0.0.1'' (localhost) to remote server ``server.example.com'':
528
529 $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10
530 $ irc -c '#users' -p 1234 pinky 127.0.0.1
531
532 This tunnels a connection to IRC server ``server.example.com'', joining
533 channel ``#users'', nickname ``pinky'', using port 1234. It doesn't mat-
534 ter which port is used, as long as it's greater than 1023 (remember, only
535 root can open sockets on privileged ports) and doesn't conflict with any
536 ports already in use. The connection is forwarded to port 6667 on the
537 remote server, since that's the standard port for IRC services.
538
539 The -f option backgrounds ssh and the remote command ``sleep 10'' is
540 specified to allow an amount of time (10 seconds, in the example) to
541 start the service which is to be tunnelled. If no connections are made
542 within the time specified, ssh will exit.
543
544X11 FORWARDING
545 If the ForwardX11 variable is set to ``yes'' (or see the description of
546 the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY
547 environment variable is set), the connection to the X11 display is auto-
548 matically forwarded to the remote side in such a way that any X11 pro-
549 grams started from the shell (or command) will go through the encrypted
550 channel, and the connection to the real X server will be made from the
551 local machine. The user should not manually set DISPLAY. Forwarding of
552 X11 connections can be configured on the command line or in configuration
553 files.
554
555 The DISPLAY value set by ssh will point to the server machine, but with a
556 display number greater than zero. This is normal, and happens because
557 ssh creates a ``proxy'' X server on the server machine for forwarding the
558 connections over the encrypted channel.
559
560 ssh will also automatically set up Xauthority data on the server machine.
561 For this purpose, it will generate a random authorization cookie, store
562 it in Xauthority on the server, and verify that any forwarded connections
563 carry this cookie and replace it by the real cookie when the connection
564 is opened. The real authentication cookie is never sent to the server
565 machine (and no cookies are sent in the plain).
566
567 If the ForwardAgent variable is set to ``yes'' (or see the description of
568 the -A and -a options above) and the user is using an authentication
569 agent, the connection to the agent is automatically forwarded to the re-
570 mote side.
571
572VERIFYING HOST KEYS
573 When connecting to a server for the first time, a fingerprint of the
574 server's public key is presented to the user (unless the option
575 StrictHostKeyChecking has been disabled). Fingerprints can be determined
576 using ssh-keygen(1):
577
578 $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key
579
580 If the fingerprint is already known, it can be matched and the key can be
581 accepted or rejected. Because of the difficulty of comparing host keys
582 just by looking at hex strings, there is also support to compare host
583 keys visually, using random art. By setting the VisualHostKey option to
584 ``yes'', a small ASCII graphic gets displayed on every login to a server,
585 no matter if the session itself is interactive or not. By learning the
586 pattern a known server produces, a user can easily find out that the host
587 key has changed when a completely different pattern is displayed. Be-
588 cause these patterns are not unambiguous however, a pattern that looks
589 similar to the pattern remembered only gives a good probability that the
590 host key is the same, not guaranteed proof.
591
592 To get a listing of the fingerprints along with their random art for all
593 known hosts, the following command line can be used:
594
595 $ ssh-keygen -lv -f ~/.ssh/known_hosts
596
597 If the fingerprint is unknown, an alternative method of verification is
598 available: SSH fingerprints verified by DNS. An additional resource
599 record (RR), SSHFP, is added to a zonefile and the connecting client is
600 able to match the fingerprint with that of the key presented.
601
602 In this example, we are connecting a client to a server,
603 ``host.example.com''. The SSHFP resource records should first be added
604 to the zonefile for host.example.com:
605
606 $ ssh-keygen -r host.example.com.
607
608 The output lines will have to be added to the zonefile. To check that
609 the zone is answering fingerprint queries:
610
611 $ dig -t SSHFP host.example.com
612
613 Finally the client connects:
614
615 $ ssh -o "VerifyHostKeyDNS ask" host.example.com
616 [...]
617 Matching host key fingerprint found in DNS.
618 Are you sure you want to continue connecting (yes/no)?
619
620 See the VerifyHostKeyDNS option in ssh_config(5) for more information.
621
622SSH-BASED VIRTUAL PRIVATE NETWORKS
623 ssh contains support for Virtual Private Network (VPN) tunnelling using
624 the tun(4) network pseudo-device, allowing two networks to be joined se-
625 curely. The sshd_config(5) configuration option PermitTunnel controls
626 whether the server supports this, and at what level (layer 2 or 3 traf-
627 fic).
628
629 The following example would connect client network 10.0.50.0/24 with re-
630 mote network 10.0.99.0/24 using a point-to-point connection from 10.1.1.1
631 to 10.1.1.2, provided that the SSH server running on the gateway to the
632 remote network, at 192.168.1.15, allows it.
633
634 On the client:
635
636 # ssh -f -w 0:1 192.168.1.15 true
637 # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
638 # route add 10.0.99.0/24 10.1.1.2
639
640 On the server:
641
642 # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252
643 # route add 10.0.50.0/24 10.1.1.1
644
645 Client access may be more finely tuned via the /root/.ssh/authorized_keys
646 file (see below) and the PermitRootLogin server option. The following
647 entry would permit connections on tun(4) device 1 from user ``jane'' and
648 on tun device 2 from user ``john'', if PermitRootLogin is set to
649 ``forced-commands-only'':
650
651 tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane
652 tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john
653
654 Since an SSH-based setup entails a fair amount of overhead, it may be
655 more suited to temporary setups, such as for wireless VPNs. More perma-
656 nent VPNs are better provided by tools such as ipsecctl(8) and
657 isakmpd(8).
658
659ENVIRONMENT
660 ssh will normally set the following environment variables:
661
662 DISPLAY The DISPLAY variable indicates the location of the
663 X11 server. It is automatically set by ssh to
664 point to a value of the form ``hostname:n'', where
665 ``hostname'' indicates the host where the shell
666 runs, and `n' is an integer >= 1. ssh uses this
667 special value to forward X11 connections over the
668 secure channel. The user should normally not set
669 DISPLAY explicitly, as that will render the X11
670 connection insecure (and will require the user to
671 manually copy any required authorization cookies).
672
673 HOME Set to the path of the user's home directory.
674
675 LOGNAME Synonym for USER; set for compatibility with sys-
676 tems that use this variable.
677
678 MAIL Set to the path of the user's mailbox.
679
680 PATH Set to the default PATH, as specified when compil-
681 ing ssh.
682
683 SSH_ASKPASS If ssh needs a passphrase, it will read the
684 passphrase from the current terminal if it was run
685 from a terminal. If ssh does not have a terminal
686 associated with it but DISPLAY and SSH_ASKPASS are
687 set, it will execute the program specified by
688 SSH_ASKPASS and open an X11 window to read the
689 passphrase. This is particularly useful when call-
690 ing ssh from a .xsession or related script. (Note
691 that on some machines it may be necessary to redi-
692 rect the input from /dev/null to make this work.)
693
694 SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to
695 communicate with the agent.
696
697 SSH_CONNECTION Identifies the client and server ends of the con-
698 nection. The variable contains four space-separat-
699 ed values: client IP address, client port number,
700 server IP address, and server port number.
701
702 SSH_ORIGINAL_COMMAND This variable contains the original command line if
703 a forced command is executed. It can be used to
704 extract the original arguments.
705
706 SSH_TTY This is set to the name of the tty (path to the de-
707 vice) associated with the current shell or command.
708 If the current session has no tty, this variable is
709 not set.
710
711 TZ This variable is set to indicate the present time
712 zone if it was set when the daemon was started
713 (i.e. the daemon passes the value on to new connec-
714 tions).
715
716 USER Set to the name of the user logging in.
717
718 Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
719 ``VARNAME=value'' to the environment if the file exists and users are al-
720 lowed to change their environment. For more information, see the
721 PermitUserEnvironment option in sshd_config(5).
722
723FILES
724 ~/.rhosts
725 This file is used for host-based authentication (see above). On
726 some machines this file may need to be world-readable if the us-
727 er's home directory is on an NFS partition, because sshd(8) reads
728 it as root. Additionally, this file must be owned by the user,
729 and must not have write permissions for anyone else. The recom-
730 mended permission for most machines is read/write for the user,
731 and not accessible by others.
732
733 ~/.shosts
734 This file is used in exactly the same way as .rhosts, but allows
735 host-based authentication without permitting login with
736 rlogin/rsh.
737
738 ~/.ssh/
739 This directory is the default location for all user-specific con-
740 figuration and authentication information. There is no general
741 requirement to keep the entire contents of this directory secret,
742 but the recommended permissions are read/write/execute for the
743 user, and not accessible by others.
744
745 ~/.ssh/authorized_keys
746 Lists the public keys (RSA/DSA) that can be used for logging in
747 as this user. The format of this file is described in the
748 sshd(8) manual page. This file is not highly sensitive, but the
749 recommended permissions are read/write for the user, and not ac-
750 cessible by others.
751
752 ~/.ssh/config
753 This is the per-user configuration file. The file format and
754 configuration options are described in ssh_config(5). Because of
755 the potential for abuse, this file must have strict permissions:
756 read/write for the user, and not accessible by others.
757
758 ~/.ssh/environment
759 Contains additional definitions for environment variables; see
760 ENVIRONMENT, above.
761
762 ~/.ssh/identity
763 ~/.ssh/id_dsa
764 ~/.ssh/id_rsa
765 Contains the private key for authentication. These files contain
766 sensitive data and should be readable by the user but not acces-
767 sible by others (read/write/execute). ssh will simply ignore a
768 private key file if it is accessible by others. It is possible
769 to specify a passphrase when generating the key which will be
770 used to encrypt the sensitive part of this file using 3DES.
771
772 ~/.ssh/identity.pub
773 ~/.ssh/id_dsa.pub
774 ~/.ssh/id_rsa.pub
775 Contains the public key for authentication. These files are not
776 sensitive and can (but need not) be readable by anyone.
777
778 ~/.ssh/known_hosts
779 Contains a list of host keys for all hosts the user has logged
780 into that are not already in the systemwide list of known host
781 keys. See sshd(8) for further details of the format of this
782 file.
783
784 ~/.ssh/rc
785 Commands in this file are executed by ssh when the user logs in,
786 just before the user's shell (or command) is started. See the
787 sshd(8) manual page for more information.
788
789 /etc/hosts.equiv
790 This file is for host-based authentication (see above). It
791 should only be writable by root.
792
793 /etc/shosts.equiv
794 This file is used in exactly the same way as hosts.equiv, but al-
795 lows host-based authentication without permitting login with
796 rlogin/rsh.
797
798 /etc/ssh/ssh_config
799 Systemwide configuration file. The file format and configuration
800 options are described in ssh_config(5).
801
802 /etc/ssh/ssh_host_key
803 /etc/ssh/ssh_host_dsa_key
804 /etc/ssh/ssh_host_rsa_key
805 These three files contain the private parts of the host keys and
806 are used for host-based authentication. If protocol version 1 is
807 used, ssh must be setuid root, since the host key is readable on-
808 ly by root. For protocol version 2, ssh uses ssh-keysign(8) to
809 access the host keys, eliminating the requirement that ssh be se-
810 tuid root when host-based authentication is used. By default ssh
811 is not setuid root.
812
813 /etc/ssh/ssh_known_hosts
814 Systemwide list of known host keys. This file should be prepared
815 by the system administrator to contain the public host keys of
816 all machines in the organization. It should be world-readable.
817 See sshd(8) for further details of the format of this file.
818
819 /etc/ssh/sshrc
820 Commands in this file are executed by ssh when the user logs in,
821 just before the user's shell (or command) is started. See the
822 sshd(8) manual page for more information.
823
824SEE ALSO
825 scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1),
826 tun(4), hosts.equiv(5), ssh_config(5), ssh-keysign(8), sshd(8)
827
828 The Secure Shell (SSH) Protocol Assigned Numbers, RFC 4250, 2006.
829
830 The Secure Shell (SSH) Protocol Architecture, RFC 4251, 2006.
831
832 The Secure Shell (SSH) Authentication Protocol, RFC 4252, 2006.
833
834 The Secure Shell (SSH) Transport Layer Protocol, RFC 4253, 2006.
835
836 The Secure Shell (SSH) Connection Protocol, RFC 4254, 2006.
837
838 Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints, RFC
839 4255, 2006.
840
841 Generic Message Exchange Authentication for the Secure Shell Protocol
842 (SSH), RFC 4256, 2006.
843
844 The Secure Shell (SSH) Session Channel Break Extension, RFC 4335, 2006.
845
846 The Secure Shell (SSH) Transport Layer Encryption Modes, RFC 4344, 2006.
847
848 Improved Arcfour Modes for the Secure Shell (SSH) Transport Layer
849 Protocol, RFC 4345, 2006.
850
851 Diffie-Hellman Group Exchange for the Secure Shell (SSH) Transport Layer
852 Protocol, RFC 4419, 2006.
853
854 The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006.
855
856 A. Perrig and D. Song, Hash Visualization: a New Technique to improve
857 Real-World Security, 1999, International Workshop on Cryptographic
858 Techniques and E-Commerce (CrypTEC '99).
859
860AUTHORS
861 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
862 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
863 de Raadt and Dug Song removed many bugs, re-added newer features and
864 created OpenSSH. Markus Friedl contributed the support for SSH protocol
865 versions 1.5 and 2.0.
866
867OpenBSD 4.6 March 19, 2009 14
diff --git a/ssh_config.0 b/ssh_config.0
new file mode 100644
index 000000000..756fc6dbb
--- /dev/null
+++ b/ssh_config.0
@@ -0,0 +1,670 @@
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 fol-
12 lowing 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 configu-
19 ration files contain sections separated by ``Host'' specifications, and
20 that section is only applied for hosts that match one of the patterns
21 given in the specification. The matched host name is the one given on
22 the command line.
23
24 Since the first obtained value for each parameter is used, more host-spe-
25 cific 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 speci-
34 fying configuration options using the ssh, scp, and sftp -o option. Ar-
35 guments may optionally be enclosed in double quotes (") in order to rep-
36 resent arguments containing spaces.
37
38 The possible keywords and their meanings are as follows (note that key-
39 words are case-insensitive and arguments are case-sensitive):
40
41 Host Restricts the following declarations (up to the next Host key-
42 word) to be only for those hosts that match one of the patterns
43 given after the keyword. If more than one pattern is provided,
44 they should be separated by whitespace. A single `*' as a pat-
45 tern can be used to provide global defaults for all hosts. The
46 host is the hostname argument given on the command line (i.e. the
47 name is not converted to a canonicalized host name before match-
48 ing).
49
50 See PATTERNS for more information on patterns.
51
52 AddressFamily
53 Specifies which address family to use when connecting. Valid ar-
54 guments are ``any'', ``inet'' (use IPv4 only), or ``inet6'' (use
55 IPv6 only).
56
57 BatchMode
58 If set to ``yes'', passphrase/password querying will be disabled.
59 This option is useful in scripts and other batch jobs where no
60 user is present to supply the password. The argument must be
61 ``yes'' or ``no''. The default is ``no''.
62
63 BindAddress
64 Use the specified address on the local machine as the source ad-
65 dress of the connection. Only useful on systems with more than
66 one address. Note that this option does not work if
67 UsePrivilegedPort is set to ``yes''.
68
69 ChallengeResponseAuthentication
70 Specifies whether to use challenge-response authentication. The
71 argument to this keyword must be ``yes'' or ``no''. The default
72 is ``yes''.
73
74 CheckHostIP
75 If this flag is set to ``yes'', ssh(1) will additionally check
76 the host IP address in the known_hosts file. This allows ssh to
77 detect if a host key changed due to DNS spoofing. If the option
78 is set to ``no'', the check will not be executed. The default is
79 ``yes''.
80
81 Cipher Specifies the cipher to use for encrypting the session in proto-
82 col version 1. Currently, ``blowfish'', ``3des'', and ``des''
83 are supported. des is only supported in the ssh(1) client for
84 interoperability with legacy protocol 1 implementations that do
85 not support the 3des cipher. Its use is strongly discouraged due
86 to cryptographic weaknesses. The default is ``3des''.
87
88 Ciphers
89 Specifies the ciphers allowed for protocol version 2 in order of
90 preference. Multiple ciphers must be comma-separated. The sup-
91 ported ciphers are ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'',
92 ``aes256-cbc'', ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'',
93 ``arcfour128'', ``arcfour256'', ``arcfour'', ``blowfish-cbc'',
94 and ``cast128-cbc''. The default is:
95
96 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
97 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
98 aes256-cbc,arcfour
99
100 ClearAllForwardings
101 Specifies that all local, remote, and dynamic port forwardings
102 specified in the configuration files or on the command line be
103 cleared. This option is primarily useful when used from the
104 ssh(1) command line to clear port forwardings set in configura-
105 tion files, and is automatically set by scp(1) and sftp(1). The
106 argument must be ``yes'' or ``no''. The default is ``no''.
107
108 Compression
109 Specifies whether to use compression. The argument must be
110 ``yes'' or ``no''. The default is ``no''.
111
112 CompressionLevel
113 Specifies the compression level to use if compression is enabled.
114 The argument must be an integer from 1 (fast) to 9 (slow, best).
115 The default level is 6, which is good for most applications. The
116 meaning of the values is the same as in gzip(1). Note that this
117 option applies to protocol version 1 only.
118
119 ConnectionAttempts
120 Specifies the number of tries (one per second) to make before ex-
121 iting. The argument must be an integer. This may be useful in
122 scripts if the connection sometimes fails. The default is 1.
123
124 ConnectTimeout
125 Specifies the timeout (in seconds) used when connecting to the
126 SSH server, instead of using the default system TCP timeout.
127 This value is used only when the target is down or really un-
128 reachable, not when it refuses the connection.
129
130 ControlMaster
131 Enables the sharing of multiple sessions over a single network
132 connection. When set to ``yes'', ssh(1) will listen for connec-
133 tions on a control socket specified using the ControlPath argu-
134 ment. Additional sessions can connect to this socket using the
135 same ControlPath with ControlMaster set to ``no'' (the default).
136 These sessions will try to reuse the master instance's network
137 connection rather than initiating new ones, but will fall back to
138 connecting normally if the control socket does not exist, or is
139 not listening.
140
141 Setting this to ``ask'' will cause ssh to listen for control con-
142 nections, but require confirmation using the SSH_ASKPASS program
143 before they are accepted (see ssh-add(1) for details). If the
144 ControlPath cannot be opened, ssh will continue without connect-
145 ing to a master instance.
146
147 X11 and ssh-agent(1) forwarding is supported over these multi-
148 plexed connections, however the display and agent forwarded will
149 be the one belonging to the master connection i.e. it is not pos-
150 sible to forward multiple displays or agents.
151
152 Two additional options allow for opportunistic multiplexing: try
153 to use a master connection but fall back to creating a new one if
154 one does not already exist. These options are: ``auto'' and
155 ``autoask''. The latter requires confirmation like the ``ask''
156 option.
157
158 ControlPath
159 Specify the path to the control socket used for connection shar-
160 ing as described in the ControlMaster section above or the string
161 ``none'' to disable connection sharing. In the path, `%l' will
162 be substituted by the local host name, `%h' will be substituted
163 by the target host name, `%p' the port, and `%r' by the remote
164 login username. It is recommended that any ControlPath used for
165 opportunistic connection sharing include at least %h, %p, and %r.
166 This ensures that shared connections are uniquely identified.
167
168 DynamicForward
169 Specifies that a TCP port on the local machine be forwarded over
170 the secure channel, and the application protocol is then used to
171 determine where to connect to from the remote machine.
172
173 The argument must be [bind_address:]port. IPv6 addresses can be
174 specified by enclosing addresses in square brackets or by using
175 an alternative syntax: [bind_address/]port. By default, the lo-
176 cal port is bound in accordance with the GatewayPorts setting.
177 However, an explicit bind_address may be used to bind the connec-
178 tion to a specific address. The bind_address of ``localhost''
179 indicates that the listening port be bound for local use only,
180 while an empty address or `*' indicates that the port should be
181 available from all interfaces.
182
183 Currently the SOCKS4 and SOCKS5 protocols are supported, and
184 ssh(1) will act as a SOCKS server. Multiple forwardings may be
185 specified, and additional forwardings can be given on the command
186 line. Only the superuser can forward privileged ports.
187
188 EnableSSHKeysign
189 Setting this option to ``yes'' in the global client configuration
190 file /etc/ssh/ssh_config enables the use of the helper program
191 ssh-keysign(8) during HostbasedAuthentication. The argument must
192 be ``yes'' or ``no''. The default is ``no''. This option should
193 be placed in the non-hostspecific section. See ssh-keysign(8)
194 for more information.
195
196 EscapeChar
197 Sets the escape character (default: `~'). The escape character
198 can also be set on the command line. The argument should be a
199 single character, `^' followed by a letter, or ``none'' to dis-
200 able the escape character entirely (making the connection trans-
201 parent for binary data).
202
203 ExitOnForwardFailure
204 Specifies whether ssh(1) should terminate the connection if it
205 cannot set up all requested dynamic, tunnel, local, and remote
206 port forwardings. The argument must be ``yes'' or ``no''. The
207 default is ``no''.
208
209 ForwardAgent
210 Specifies whether the connection to the authentication agent (if
211 any) will be forwarded to the remote machine. The argument must
212 be ``yes'' or ``no''. The default is ``no''.
213
214 Agent forwarding should be enabled with caution. Users with the
215 ability to bypass file permissions on the remote host (for the
216 agent's Unix-domain socket) can access the local agent through
217 the forwarded connection. An attacker cannot obtain key material
218 from the agent, however they can perform operations on the keys
219 that enable them to authenticate using the identities loaded into
220 the agent.
221
222 ForwardX11
223 Specifies whether X11 connections will be automatically redirect-
224 ed over the secure channel and DISPLAY set. The argument must be
225 ``yes'' or ``no''. The default is ``no''.
226
227 X11 forwarding should be enabled with caution. Users with the
228 ability to bypass file permissions on the remote host (for the
229 user's X11 authorization database) can access the local X11 dis-
230 play through the forwarded connection. An attacker may then be
231 able to perform activities such as keystroke monitoring if the
232 ForwardX11Trusted option is also enabled.
233
234 ForwardX11Trusted
235 If this option is set to ``yes'', remote X11 clients will have
236 full access to the original X11 display.
237
238 If this option is set to ``no'', remote X11 clients will be con-
239 sidered untrusted and prevented from stealing or tampering with
240 data belonging to trusted X11 clients. Furthermore, the xauth(1)
241 token used for the session will be set to expire after 20 min-
242 utes. Remote clients will be refused access after this time.
243
244 The default is ``no''.
245
246 See the X11 SECURITY extension specification for full details on
247 the restrictions imposed on untrusted clients.
248
249 GatewayPorts
250 Specifies whether remote hosts are allowed to connect to local
251 forwarded ports. By default, ssh(1) binds local port forwardings
252 to the loopback address. This prevents other remote hosts from
253 connecting to forwarded ports. GatewayPorts can be used to spec-
254 ify that ssh should bind local port forwardings to the wildcard
255 address, thus allowing remote hosts to connect to forwarded
256 ports. The argument must be ``yes'' or ``no''. The default is
257 ``no''.
258
259 GlobalKnownHostsFile
260 Specifies a file to use for the global host key database instead
261 of /etc/ssh/ssh_known_hosts.
262
263 GSSAPIAuthentication
264 Specifies whether user authentication based on GSSAPI is allowed.
265 The default is ``no''. Note that this option applies to protocol
266 version 2 only.
267
268 GSSAPIDelegateCredentials
269 Forward (delegate) credentials to the server. The default is
270 ``no''. Note that this option applies to protocol version 2 on-
271 ly.
272
273 HashKnownHosts
274 Indicates that ssh(1) should hash host names and addresses when
275 they are added to ~/.ssh/known_hosts. These hashed names may be
276 used normally by ssh(1) and sshd(8), but they do not reveal iden-
277 tifying information should the file's contents be disclosed. The
278 default is ``no''. Note that existing names and addresses in
279 known hosts files will not be converted automatically, but may be
280 manually hashed using ssh-keygen(1).
281
282 HostbasedAuthentication
283 Specifies whether to try rhosts based authentication with public
284 key authentication. The argument must be ``yes'' or ``no''. The
285 default is ``no''. This option applies to protocol version 2 on-
286 ly and is similar to RhostsRSAAuthentication.
287
288 HostKeyAlgorithms
289 Specifies the protocol version 2 host key algorithms that the
290 client wants to use in order of preference. The default for this
291 option is: ``ssh-rsa,ssh-dss''.
292
293 HostKeyAlias
294 Specifies an alias that should be used instead of the real host
295 name when looking up or saving the host key in the host key
296 database files. This option is useful for tunneling SSH connec-
297 tions or for multiple servers running on a single host.
298
299 HostName
300 Specifies the real host name to log into. This can be used to
301 specify nicknames or abbreviations for hosts. The default is the
302 name given on the command line. Numeric IP addresses are also
303 permitted (both on the command line and in HostName specifica-
304 tions).
305
306 IdentitiesOnly
307 Specifies that ssh(1) should only use the authentication identity
308 files configured in the ssh_config files, even if ssh-agent(1)
309 offers more identities. The argument to this keyword must be
310 ``yes'' or ``no''. This option is intended for situations where
311 ssh-agent offers many different identities. The default is
312 ``no''.
313
314 IdentityFile
315 Specifies a file from which the user's RSA or DSA authentication
316 identity is read. The default is ~/.ssh/identity for protocol
317 version 1, and ~/.ssh/id_rsa and ~/.ssh/id_dsa for protocol ver-
318 sion 2. Additionally, any identities represented by the authen-
319 tication agent will be used for authentication.
320
321 The file name may use the tilde syntax to refer to a user's home
322 directory or one of the following escape characters: `%d' (local
323 user's home directory), `%u' (local user name), `%l' (local host
324 name), `%h' (remote host name) or `%r' (remote user name).
325
326 It is possible to have multiple identity files specified in con-
327 figuration files; all these identities will be tried in sequence.
328
329 KbdInteractiveAuthentication
330 Specifies whether to use keyboard-interactive authentication.
331 The argument to this keyword must be ``yes'' or ``no''. The de-
332 fault is ``yes''.
333
334 KbdInteractiveDevices
335 Specifies the list of methods to use in keyboard-interactive au-
336 thentication. Multiple method names must be comma-separated.
337 The default is to use the server specified list. The methods
338 available vary depending on what the server supports. For an
339 OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'',
340 and ``skey''.
341
342 LocalCommand
343 Specifies a command to execute on the local machine after suc-
344 cessfully connecting to the server. The command string extends
345 to the end of the line, and is executed with the user's shell.
346 The following escape character substitutions will be performed:
347 `%d' (local user's home directory), `%h' (remote host name), `%l'
348 (local host name), `%n' (host name as provided on the command
349 line), `%p' (remote port), `%r' (remote user name) or `%u' (local
350 user name). This directive is ignored unless PermitLocalCommand
351 has been enabled.
352
353 LocalForward
354 Specifies that a TCP port on the local machine be forwarded over
355 the secure channel to the specified host and port from the remote
356 machine. The first argument must be [bind_address:]port and the
357 second argument must be host:hostport. IPv6 addresses can be
358 specified by enclosing addresses in square brackets or by using
359 an alternative syntax: [bind_address/]port and host/hostport.
360 Multiple forwardings may be specified, and additional forwardings
361 can be given on the command line. Only the superuser can forward
362 privileged ports. By default, the local port is bound in accor-
363 dance with the GatewayPorts setting. However, an explicit
364 bind_address may be used to bind the connection to a specific ad-
365 dress. The bind_address of ``localhost'' indicates that the lis-
366 tening port be bound for local use only, while an empty address
367 or `*' indicates that the port should be available from all in-
368 terfaces.
369
370 LogLevel
371 Gives the verbosity level that is used when logging messages from
372 ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, VER-
373 BOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
374 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
375 higher levels of verbose output.
376
377 MACs Specifies the MAC (message authentication code) algorithms in or-
378 der of preference. The MAC algorithm is used in protocol version
379 2 for data integrity protection. Multiple algorithms must be
380 comma-separated. The default is:
381
382 hmac-md5,hmac-sha1,umac-64@openssh.com,
383 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
384
385 NoHostAuthenticationForLocalhost
386 This option can be used if the home directory is shared across
387 machines. In this case localhost will refer to a different ma-
388 chine on each of the machines and the user will get many warnings
389 about changed host keys. However, this option disables host au-
390 thentication for localhost. The argument to this keyword must be
391 ``yes'' or ``no''. The default is to check the host key for lo-
392 calhost.
393
394 NumberOfPasswordPrompts
395 Specifies the number of password prompts before giving up. The
396 argument to this keyword must be an integer. The default is 3.
397
398 PasswordAuthentication
399 Specifies whether to use password authentication. The argument
400 to this keyword must be ``yes'' or ``no''. The default is
401 ``yes''.
402
403 PermitLocalCommand
404 Allow local command execution via the LocalCommand option or us-
405 ing the !command escape sequence in ssh(1). The argument must be
406 ``yes'' or ``no''. The default is ``no''.
407
408 Port Specifies the port number to connect on the remote host. The de-
409 fault is 22.
410
411 PreferredAuthentications
412 Specifies the order in which the client should try protocol 2 au-
413 thentication methods. This allows a client to prefer one method
414 (e.g. keyboard-interactive) over another method (e.g. password)
415 The default for this option is: ``gssapi-with-mic,hostbased,
416 publickey, keyboard-interactive, password''.
417
418 Protocol
419 Specifies the protocol versions ssh(1) should support in order of
420 preference. The possible values are `1' and `2'. Multiple ver-
421 sions must be comma-separated. The default is ``2,1''. This
422 means that ssh tries version 2 and falls back to version 1 if
423 version 2 is not available.
424
425 ProxyCommand
426 Specifies the command to use to connect to the server. The com-
427 mand string extends to the end of the line, and is executed with
428 the user's shell. In the command string, `%h' will be substitut-
429 ed by the host name to connect and `%p' by the port. The command
430 can be basically anything, and should read from its standard in-
431 put and write to its standard output. It should eventually con-
432 nect an sshd(8) server running on some machine, or execute sshd
433 -i somewhere. Host key management will be done using the Host-
434 Name of the host being connected (defaulting to the name typed by
435 the user). Setting the command to ``none'' disables this option
436 entirely. Note that CheckHostIP is not available for connects
437 with a proxy command.
438
439 This directive is useful in conjunction with nc(1) and its proxy
440 support. For example, the following directive would connect via
441 an HTTP proxy at 192.0.2.0:
442
443 ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
444
445 PubkeyAuthentication
446 Specifies whether to try public key authentication. The argument
447 to this keyword must be ``yes'' or ``no''. The default is
448 ``yes''. This option applies to protocol version 2 only.
449
450 RekeyLimit
451 Specifies the maximum amount of data that may be transmitted be-
452 fore the session key is renegotiated. The argument is the number
453 of bytes, with an optional suffix of `K', `M', or `G' to indicate
454 Kilobytes, Megabytes, or Gigabytes, respectively. The default is
455 between `1G' and `4G', depending on the cipher. This option ap-
456 plies to protocol version 2 only.
457
458 RemoteForward
459 Specifies that a TCP port on the remote machine be forwarded over
460 the secure channel to the specified host and port from the local
461 machine. The first argument must be [bind_address:]port and the
462 second argument must be host:hostport. IPv6 addresses can be
463 specified by enclosing addresses in square brackets or by using
464 an alternative syntax: [bind_address/]port and host/hostport.
465 Multiple forwardings may be specified, and additional forwardings
466 can be given on the command line. Privileged ports can be for-
467 warded only when logging in as root on the remote machine.
468
469 If the port argument is `0', the listen port will be dynamically
470 allocated on the server and reported to the client at run time.
471
472 If the bind_address is not specified, the default is to only bind
473 to loopback addresses. If the bind_address is `*' or an empty
474 string, then the forwarding is requested to listen on all inter-
475 faces. Specifying a remote bind_address will only succeed if the
476 server's GatewayPorts option is enabled (see sshd_config(5)).
477
478 RhostsRSAAuthentication
479 Specifies whether to try rhosts based authentication with RSA
480 host authentication. The argument must be ``yes'' or ``no''.
481 The default is ``no''. This option applies to protocol version 1
482 only and requires ssh(1) to be setuid root.
483
484 RSAAuthentication
485 Specifies whether to try RSA authentication. The argument to
486 this keyword must be ``yes'' or ``no''. RSA authentication will
487 only be attempted if the identity file exists, or an authentica-
488 tion agent is running. The default is ``yes''. Note that this
489 option applies to protocol version 1 only.
490
491 SendEnv
492 Specifies what variables from the local environ(7) should be sent
493 to the server. Note that environment passing is only supported
494 for protocol 2. The server must also support it, and the server
495 must be configured to accept these environment variables. Refer
496 to AcceptEnv in sshd_config(5) for how to configure the server.
497 Variables are specified by name, which may contain wildcard char-
498 acters. Multiple environment variables may be separated by
499 whitespace or spread across multiple SendEnv directives. The de-
500 fault is not to send any environment variables.
501
502 See PATTERNS for more information on patterns.
503
504 ServerAliveCountMax
505 Sets the number of server alive messages (see below) which may be
506 sent without ssh(1) receiving any messages back from the server.
507 If this threshold is reached while server alive messages are be-
508 ing sent, ssh will disconnect from the server, terminating the
509 session. It is important to note that the use of server alive
510 messages is very different from TCPKeepAlive (below). The server
511 alive messages are sent through the encrypted channel and there-
512 fore will not be spoofable. The TCP keepalive option enabled by
513 TCPKeepAlive is spoofable. The server alive mechanism is valu-
514 able when the client or server depend on knowing when a connec-
515 tion has become inactive.
516
517 The default value is 3. If, for example, ServerAliveInterval
518 (see below) is set to 15 and ServerAliveCountMax is left at the
519 default, if the server becomes unresponsive, ssh will disconnect
520 after approximately 45 seconds. This option applies to protocol
521 version 2 only.
522
523 ServerAliveInterval
524 Sets a timeout interval in seconds after which if no data has
525 been received from the server, ssh(1) will send a message through
526 the encrypted channel to request a response from the server. The
527 default is 0, indicating that these messages will not be sent to
528 the server. This option applies to protocol version 2 only.
529
530 SmartcardDevice
531 Specifies which smartcard device to use. The argument to this
532 keyword is the device ssh(1) should use to communicate with a
533 smartcard used for storing the user's private RSA key. By de-
534 fault, no device is specified and smartcard support is not acti-
535 vated.
536
537 StrictHostKeyChecking
538 If this flag is set to ``yes'', ssh(1) will never automatically
539 add host keys to the ~/.ssh/known_hosts file, and refuses to con-
540 nect to hosts whose host key has changed. This provides maximum
541 protection against trojan horse attacks, though it can be annoy-
542 ing when the /etc/ssh/ssh_known_hosts file is poorly maintained
543 or when connections to new hosts are frequently made. This op-
544 tion forces the user to manually add all new hosts. If this flag
545 is set to ``no'', ssh will automatically add new host keys to the
546 user known hosts files. If this flag is set to ``ask'', new host
547 keys will be added to the user known host files only after the
548 user has confirmed that is what they really want to do, and ssh
549 will refuse to connect to hosts whose host key has changed. The
550 host keys of known hosts will be verified automatically in all
551 cases. The argument must be ``yes'', ``no'', or ``ask''. The
552 default is ``ask''.
553
554 TCPKeepAlive
555 Specifies whether the system should send TCP keepalive messages
556 to the other side. If they are sent, death of the connection or
557 crash of one of the machines will be properly noticed. However,
558 this means that connections will die if the route is down tem-
559 porarily, and some people find it annoying.
560
561 The default is ``yes'' (to send TCP keepalive messages), and the
562 client will notice if the network goes down or the remote host
563 dies. This is important in scripts, and many users want it too.
564
565 To disable TCP keepalive messages, the value should be set to
566 ``no''.
567
568 Tunnel Request tun(4) device forwarding between the client and the serv-
569 er. The argument must be ``yes'', ``point-to-point'' (layer 3),
570 ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' requests
571 the default tunnel mode, which is ``point-to-point''. The de-
572 fault is ``no''.
573
574 TunnelDevice
575 Specifies the tun(4) devices to open on the client (local_tun)
576 and the server (remote_tun).
577
578 The argument must be local_tun[:remote_tun]. The devices may be
579 specified by numerical ID or the keyword ``any'', which uses the
580 next available tunnel device. If remote_tun is not specified, it
581 defaults to ``any''. The default is ``any:any''.
582
583 UsePrivilegedPort
584 Specifies whether to use a privileged port for outgoing connec-
585 tions. The argument must be ``yes'' or ``no''. The default is
586 ``no''. If set to ``yes'', ssh(1) must be setuid root. Note
587 that this option must be set to ``yes'' for
588 RhostsRSAAuthentication with older servers.
589
590 User Specifies the user to log in as. This can be useful when a dif-
591 ferent user name is used on different machines. This saves the
592 trouble of having to remember to give the user name on the com-
593 mand line.
594
595 UserKnownHostsFile
596 Specifies a file to use for the user host key database instead of
597 ~/.ssh/known_hosts.
598
599 VerifyHostKeyDNS
600 Specifies whether to verify the remote key using DNS and SSHFP
601 resource records. If this option is set to ``yes'', the client
602 will implicitly trust keys that match a secure fingerprint from
603 DNS. Insecure fingerprints will be handled as if this option was
604 set to ``ask''. If this option is set to ``ask'', information on
605 fingerprint match will be displayed, but the user will still need
606 to confirm new host keys according to the StrictHostKeyChecking
607 option. The argument must be ``yes'', ``no'', or ``ask''. The
608 default is ``no''. Note that this option applies to protocol
609 version 2 only.
610
611 See also VERIFYING HOST KEYS in ssh(1).
612
613 VisualHostKey
614 If this flag is set to ``yes'', an ASCII art representation of
615 the remote host key fingerprint is printed in addition to the hex
616 fingerprint string at login and for unknown host keys. If this
617 flag is set to ``no'', no fingerprint strings are printed at lo-
618 gin and only the hex fingerprint string will be printed for un-
619 known host keys. The default is ``no''.
620
621 XAuthLocation
622 Specifies the full pathname of the xauth(1) program. The default
623 is /usr/X11R6/bin/xauth.
624
625PATTERNS
626 A pattern consists of zero or more non-whitespace characters, `*' (a
627 wildcard that matches zero or more characters), or `?' (a wildcard that
628 matches exactly one character). For example, to specify a set of decla-
629 rations for any host in the ``.co.uk'' set of domains, the following pat-
630 tern could be used:
631
632 Host *.co.uk
633
634 The following pattern would match any host in the 192.168.0.[0-9] network
635 range:
636
637 Host 192.168.0.?
638
639 A pattern-list is a comma-separated list of patterns. Patterns within
640 pattern-lists may be negated by preceding them with an exclamation mark
641 (`!'). For example, to allow a key to be used from anywhere within an
642 organisation except from the ``dialup'' pool, the following entry (in au-
643 thorized_keys) could be used:
644
645 from="!*.dialup.example.com,*.example.com"
646
647FILES
648 ~/.ssh/config
649 This is the per-user configuration file. The format of this file
650 is described above. This file is used by the SSH client. Be-
651 cause of the potential for abuse, this file must have strict per-
652 missions: read/write for the user, and not accessible by others.
653
654 /etc/ssh/ssh_config
655 Systemwide configuration file. This file provides defaults for
656 those values that are not specified in the user's configuration
657 file, and for those users who do not have a configuration file.
658 This file must be world-readable.
659
660SEE ALSO
661 ssh(1)
662
663AUTHORS
664 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
665 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
666 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
667 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
668 versions 1.5 and 2.0.
669
670OpenBSD 4.6 February 22, 2009 11
diff --git a/sshd.0 b/sshd.0
new file mode 100644
index 000000000..6e37c9fc1
--- /dev/null
+++ b/sshd.0
@@ -0,0 +1,574 @@
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] [-f config_file]
8 [-g login_grace_time] [-h host_key_file] [-k key_gen_time]
9 [-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 com-
14 munications 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, com-
19 mand 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 speci-
23 fied in the configuration file. sshd rereads its configuration file when
24 it receives a hangup signal, SIGHUP, by executing itself with the name
25 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 out-
42 put. The connection parameters are supplied as keyword=value
43 pairs. The keywords are ``user'', ``host'', and ``addr''. All
44 are required and may be supplied in any order, either with multi-
45 ple -C options or as a comma-separated list.
46
47 -D When this option is specified, sshd will not detach and does not
48 become a daemon. This allows easy monitoring of sshd.
49
50 -d Debug mode. The server sends verbose debug output to the system
51 log, and does not put itself in the background. The server also
52 will not fork and will only process one connection. This option
53 is only intended for debugging for the server. Multiple -d op-
54 tions increase the debugging level. Maximum is 3.
55
56 -e When this option is specified, sshd will send the output to the
57 standard error instead of the system log.
58
59 -f config_file
60 Specifies the name of the configuration file. The default is
61 /etc/ssh/sshd_config. sshd refuses to start if there is no con-
62 figuration file.
63
64 -g login_grace_time
65 Gives the grace time for clients to authenticate themselves (de-
66 fault 120 seconds). If the client fails to authenticate the user
67 within this many seconds, the server disconnects and exits. A
68 value of zero indicates no limit.
69
70 -h host_key_file
71 Specifies a file from which a host key is read. This option must
72 be given if sshd is not run as root (as the normal host key files
73 are normally not readable by anyone but root). The default is
74 /etc/ssh/ssh_host_key for protocol version 1, and
75 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro-
76 tocol version 2. It is possible to have multiple host key files
77 for the different protocol versions and host key algorithms.
78
79 -i Specifies that sshd is being run from inetd(8). sshd is normally
80 not run from inetd because it needs to generate the server key
81 before it can respond to the client, and this may take tens of
82 seconds. Clients would have to wait too long if the key was re-
83 generated every time. However, with small key sizes (e.g. 512)
84 using sshd from inetd may be feasible.
85
86 -k key_gen_time
87 Specifies how often the ephemeral protocol version 1 server key
88 is regenerated (default 3600 seconds, or one hour). The motiva-
89 tion for regenerating the key fairly often is that the key is not
90 stored anywhere, and after about an hour it becomes impossible to
91 recover the key for decrypting intercepted communications even if
92 the machine is cracked into or physically seized. A value of ze-
93 ro indicates that the key will never be regenerated.
94
95 -o option
96 Can be used to give options in the format used in the configura-
97 tion file. This is useful for specifying options for which there
98 is no separate command-line flag. For full details of the op-
99 tions, and their values, see sshd_config(5).
100
101 -p port
102 Specifies the port on which the server listens for connections
103 (default 22). Multiple port options are permitted. Ports speci-
104 fied in the configuration file with the Port option are ignored
105 when a command-line port is specified. Ports specified using the
106 ListenAddress option override command-line ports.
107
108 -q Quiet mode. Nothing is sent to the system log. Normally the be-
109 ginning, authentication, and termination of each connection is
110 logged.
111
112 -T Extended test mode. Check the validity of the configuration
113 file, output the effective configuration to stdout and then exit.
114 Optionally, Match rules may be applied by specifying the connec-
115 tion parameters using one or more -C options.
116
117 -t Test mode. Only check the validity of the configuration file and
118 sanity of the keys. This is useful for updating sshd reliably as
119 configuration options may change.
120
121 -u len This option is used to specify the size of the field in the utmp
122 structure that holds the remote host name. If the resolved host
123 name is longer than len, the dotted decimal value will be used
124 instead. This allows hosts with very long host names that over-
125 flow this field to still be uniquely identified. Specifying -u0
126 indicates that only dotted decimal addresses should be put into
127 the utmp file. -u0 may also be used to prevent sshd from making
128 DNS requests unless the authentication mechanism or configuration
129 requires it. Authentication mechanisms that may require DNS in-
130 clude RhostsRSAAuthentication, HostbasedAuthentication, and using
131 a from="pattern-list" option in a key file. Configuration op-
132 tions that require DNS include using a USER@HOST pattern in
133 AllowUsers or DenyUsers.
134
135AUTHENTICATION
136 The OpenSSH SSH daemon supports SSH protocols 1 and 2. Both protocols
137 are supported by default, though this can be changed via the Protocol op-
138 tion in sshd_config(5). Protocol 2 supports both RSA and DSA keys; pro-
139 tocol 1 only supports RSA keys. For both protocols, each host has a
140 host-specific key, normally 2048 bits, used to identify the host.
141
142 Forward security for protocol 1 is provided through an additional server
143 key, normally 768 bits, generated when the server starts. This key is
144 normally regenerated every hour if it has been used, and is never stored
145 on disk. Whenever a client connects, the daemon responds with its public
146 host and server keys. The client compares the RSA host key against its
147 own database to verify that it has not changed. The client then gener-
148 ates a 256-bit random number. It encrypts this random number using both
149 the host key and the server key, and sends the encrypted number to the
150 server. Both sides then use this random number as a session key which is
151 used to encrypt all further communications in the session. The rest of
152 the session is encrypted using a conventional cipher, currently Blowfish
153 or 3DES, with 3DES being used by default. The client selects the encryp-
154 tion algorithm to use from those offered by the server.
155
156 For protocol 2, forward security is provided through a Diffie-Hellman key
157 agreement. This key agreement results in a shared session key. The rest
158 of the session is encrypted using a symmetric cipher, currently 128-bit
159 AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The
160 client selects the encryption algorithm to use from those offered by the
161 server. Additionally, session integrity is provided through a crypto-
162 graphic message authentication code (hmac-md5, hmac-sha1, umac-64 or
163 hmac-ripemd160).
164
165 Finally, the server and the client enter an authentication dialog. The
166 client tries to authenticate itself using host-based authentication, pub-
167 lic key authentication, challenge-response authentication, or password
168 authentication.
169
170 Regardless of the authentication type, the account is checked to ensure
171 that it is accessible. An account is not accessible if it is locked,
172 listed in DenyUsers or its group is listed in DenyGroups . The defini-
173 tion of a locked account is system dependant. Some platforms have their
174 own account database (eg AIX) and some modify the passwd field ( `*LK*'
175 on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on Tru64, a
176 leading `*LOCKED*' on FreeBSD and a leading `!' on most Linuxes). If
177 there is a requirement to disable password authentication for the account
178 while allowing still public-key, then the passwd field should be set to
179 something other than these values (eg `NP' or `*NP*' ).
180
181 If the client successfully authenticates itself, a dialog for preparing
182 the session is entered. At this time the client may request things like
183 allocating a pseudo-tty, forwarding X11 connections, forwarding TCP con-
184 nections, or forwarding the authentication agent connection over the se-
185 cure channel.
186
187 After this, the client either requests a shell or execution of a command.
188 The sides then enter session mode. In this mode, either side may send
189 data at any time, and such data is forwarded to/from the shell or command
190 on the server side, and the user terminal in the client side.
191
192 When the user program terminates and all forwarded X11 and other connec-
193 tions have been closed, the server sends command exit status to the
194 client, and both sides exit.
195
196LOGIN PROCESS
197 When a user successfully logs in, sshd does the following:
198
199 1. If the login is on a tty, and no command has been specified,
200 prints last login time and /etc/motd (unless prevented in the
201 configuration file or by ~/.hushlogin; see the FILES section).
202
203 2. If the login is on a tty, records login time.
204
205 3. Checks /etc/nologin; if it exists, prints contents and quits
206 (unless root).
207
208 4. Changes to run with normal user privileges.
209
210 5. Sets up basic environment.
211
212 6. Reads the file ~/.ssh/environment, if it exists, and users are
213 allowed to change their environment. See the
214 PermitUserEnvironment option in sshd_config(5).
215
216 7. Changes to user's home directory.
217
218 8. If ~/.ssh/rc exists, runs it; else if /etc/ssh/sshrc exists,
219 runs it; otherwise runs xauth. The ``rc'' files are given the
220 X11 authentication protocol and cookie in standard input. See
221 SSHRC, below.
222
223 9. Runs user's shell or command.
224
225SSHRC
226 If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment
227 files but before starting the user's shell or command. It must not pro-
228 duce any output on stdout; stderr must be used instead. If X11 forward-
229 ing is in use, it will receive the "proto cookie" pair in its standard
230 input (and DISPLAY in its environment). The script must call xauth(1)
231 because sshd will not run xauth automatically to add X11 cookies.
232
233 The primary purpose of this file is to run any initialization routines
234 which may be needed before the user's home directory becomes accessible;
235 AFS is a particular example of such an environment.
236
237 This file will probably contain some initialization code followed by
238 something similar to:
239
240 if read proto cookie && [ -n "$DISPLAY" ]; then
241 if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
242 # X11UseLocalhost=yes
243 echo add unix:`echo $DISPLAY |
244 cut -c11-` $proto $cookie
245 else
246 # X11UseLocalhost=no
247 echo add $DISPLAY $proto $cookie
248 fi | xauth -q -
249 fi
250
251 If this file does not exist, /etc/ssh/sshrc is run, and if that does not
252 exist either, xauth is used to add the cookie.
253
254AUTHORIZED_KEYS FILE FORMAT
255 AuthorizedKeysFile specifies the file containing public keys for public
256 key authentication; if none is specified, the default is
257 ~/.ssh/authorized_keys. Each line of the file contains one key (empty
258 lines and lines starting with a `#' are ignored as comments). Protocol 1
259 public keys consist of the following space-separated fields: options,
260 bits, exponent, modulus, comment. Protocol 2 public key consist of: op-
261 tions, keytype, base64-encoded key, comment. The options field is op-
262 tional; its presence is determined by whether the line starts with a num-
263 ber or not (the options field never starts with a number). The bits, ex-
264 ponent, modulus, and comment fields give the RSA key for protocol version
265 1; the comment field is not used for anything (but may be convenient for
266 the user to identify the key). For protocol version 2 the keytype is
267 ``ssh-dss'' or ``ssh-rsa''.
268
269 Note that lines in this file are usually several hundred bytes long (be-
270 cause of the size of the public key encoding) up to a limit of 8 kilo-
271 bytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16
272 kilobits. You don't want to type them in; instead, copy the
273 identity.pub, id_dsa.pub, or the id_rsa.pub file and edit it.
274
275 sshd enforces a minimum RSA key modulus size for protocol 1 and protocol
276 2 keys of 768 bits.
277
278 The options (if present) consist of comma-separated option specifica-
279 tions. No spaces are permitted, except within double quotes. The fol-
280 lowing option specifications are supported (note that option keywords are
281 case-insensitive):
282
283 command="command"
284 Specifies that the command is executed whenever this key is used
285 for authentication. The command supplied by the user (if any) is
286 ignored. The command is run on a pty if the client requests a
287 pty; otherwise it is run without a tty. If an 8-bit clean chan-
288 nel is required, one must not request a pty or should specify no-
289 pty. A quote may be included in the command by quoting it with a
290 backslash. This option might be useful to restrict certain pub-
291 lic keys to perform just a specific operation. An example might
292 be a key that permits remote backups but nothing else. Note that
293 the client may specify TCP and/or X11 forwarding unless they are
294 explicitly prohibited. The command originally supplied by the
295 client is available in the SSH_ORIGINAL_COMMAND environment vari-
296 able. Note that this option applies to shell, command or subsys-
297 tem execution.
298
299 environment="NAME=value"
300 Specifies that the string is to be added to the environment when
301 logging in using this key. Environment variables set this way
302 override other default environment values. Multiple options of
303 this type are permitted. Environment processing is disabled by
304 default and is controlled via the PermitUserEnvironment option.
305 This option is automatically disabled if UseLogin is enabled.
306
307 from="pattern-list"
308 Specifies that in addition to public key authentication, either
309 the canonical name of the remote host or its IP address must be
310 present in the comma-separated list of patterns. See PATTERNS in
311 ssh_config(5) for more information on patterns.
312
313 In addition to the wildcard matching that may be applied to host-
314 names or addresses, a from stanza may match IP addresses using
315 CIDR address/masklen notation.
316
317 The purpose of this option is to optionally increase security:
318 public key authentication by itself does not trust the network or
319 name servers or anything (but the key); however, if somebody
320 somehow steals the key, the key permits an intruder to log in
321 from anywhere in the world. This additional option makes using a
322 stolen key more difficult (name servers and/or routers would have
323 to be compromised in addition to just the key).
324
325 no-agent-forwarding
326 Forbids authentication agent forwarding when this key is used for
327 authentication.
328
329 no-port-forwarding
330 Forbids TCP forwarding when this key is used for authentication.
331 Any port forward requests by the client will return an error.
332 This might be used, e.g. in connection with the command option.
333
334 no-pty Prevents tty allocation (a request to allocate a pty will fail).
335
336 no-user-rc
337 Disables execution of ~/.ssh/rc.
338
339 no-X11-forwarding
340 Forbids X11 forwarding when this key is used for authentication.
341 Any X11 forward requests by the client will return an error.
342
343 permitopen="host:port"
344 Limit local ``ssh -L'' port forwarding such that it may only con-
345 nect to the specified host and port. IPv6 addresses can be spec-
346 ified with an alternative syntax: host/port. Multiple permitopen
347 options may be applied separated by commas. No pattern matching
348 is performed on the specified hostnames, they must be literal do-
349 mains or addresses.
350
351 tunnel="n"
352 Force a tun(4) device on the server. Without this option, the
353 next available device will be used if the client requests a tun-
354 nel.
355
356 An example authorized_keys file:
357
358 # Comments allowed at start of line
359 ssh-rsa AAAAB3Nza...LiPk== user@example.net
360 from="*.sales.example.net,!pc.sales.example.net" ssh-rsa
361 AAAAB2...19Q== john@example.net
362 command="dump /home",no-pty,no-port-forwarding ssh-dss
363 AAAAC3...51R== example.net
364 permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss
365 AAAAB5...21S==
366 tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...==
367 jane@example.net
368
369SSH_KNOWN_HOSTS FILE FORMAT
370 The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host
371 public keys for all known hosts. The global file should be prepared by
372 the administrator (optional), and the per-user file is maintained auto-
373 matically: whenever the user connects from an unknown host, its key is
374 added to the per-user file.
375
376 Each line in these files contains the following fields: hostnames, bits,
377 exponent, modulus, comment. The fields are separated by spaces.
378
379 Hostnames is a comma-separated list of patterns (`*' and `?' act as wild-
380 cards); each pattern in turn is matched against the canonical host name
381 (when authenticating a client) or against the user-supplied name (when
382 authenticating a server). A pattern may also be preceded by `!' to indi-
383 cate negation: if the host name matches a negated pattern, it is not ac-
384 cepted (by that line) even if it matched another pattern on the line. A
385 hostname or address may optionally be enclosed within `[' and `]' brack-
386 ets then followed by `:' and a non-standard port number.
387
388 Alternately, hostnames may be stored in a hashed form which hides host
389 names and addresses should the file's contents be disclosed. Hashed
390 hostnames start with a `|' character. Only one hashed hostname may ap-
391 pear on a single line and none of the above negation or wildcard opera-
392 tors may be applied.
393
394 Bits, exponent, and modulus are taken directly from the RSA host key;
395 they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The
396 optional comment field continues to the end of the line, and is not used.
397
398 Lines starting with `#' and empty lines are ignored as comments.
399
400 When performing host authentication, authentication is accepted if any
401 matching line has the proper key. It is thus permissible (but not recom-
402 mended) to have several lines or different host keys for the same names.
403 This will inevitably happen when short forms of host names from different
404 domains are put in the file. It is possible that the files contain con-
405 flicting information; authentication is accepted if valid information can
406 be found from either file.
407
408 Note that the lines in these files are typically hundreds of characters
409 long, and you definitely don't want to type in the host keys by hand.
410 Rather, generate them by a script or by taking /etc/ssh/ssh_host_key.pub
411 and adding the host names at the front.
412
413 An example ssh_known_hosts file:
414
415 # Comments allowed at start of line
416 closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net
417 cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....=
418 # A hashed hostname
419 |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa
420 AAAA1234.....=
421
422FILES
423 ~/.hushlogin
424 This file is used to suppress printing the last login time and
425 /etc/motd, if PrintLastLog and PrintMotd, respectively, are en-
426 abled. It does not suppress printing of the banner specified by
427 Banner.
428
429 ~/.rhosts
430 This file is used for host-based authentication (see ssh(1) for
431 more information). On some machines this file may need to be
432 world-readable if the user's home directory is on an NFS parti-
433 tion, because sshd reads it as root. Additionally, this file
434 must be owned by the user, and must not have write permissions
435 for anyone else. The recommended permission for most machines is
436 read/write for the user, and not accessible by others.
437
438 ~/.shosts
439 This file is used in exactly the same way as .rhosts, but allows
440 host-based authentication without permitting login with
441 rlogin/rsh.
442
443 ~/.ssh/
444 This directory is the default location for all user-specific con-
445 figuration and authentication information. There is no general
446 requirement to keep the entire contents of this directory secret,
447 but the recommended permissions are read/write/execute for the
448 user, and not accessible by others.
449
450 ~/.ssh/authorized_keys
451 Lists the public keys (RSA/DSA) that can be used for logging in
452 as this user. The format of this file is described above. The
453 content of the file is not highly sensitive, but the recommended
454 permissions are read/write for the user, and not accessible by
455 others.
456
457 If this file, the ~/.ssh directory, or the user's home directory
458 are writable by other users, then the file could be modified or
459 replaced by unauthorized users. In this case, sshd will not al-
460 low it to be used unless the StrictModes option has been set to
461 ``no''.
462
463 ~/.ssh/environment
464 This file is read into the environment at login (if it exists).
465 It can only contain empty lines, comment lines (that start with
466 `#'), and assignment lines of the form name=value. The file
467 should be writable only by the user; it need not be readable by
468 anyone else. Environment processing is disabled by default and
469 is controlled via the PermitUserEnvironment option.
470
471 ~/.ssh/known_hosts
472 Contains a list of host keys for all hosts the user has logged
473 into that are not already in the systemwide list of known host
474 keys. The format of this file is described above. This file
475 should be writable only by root/the owner and can, but need not
476 be, world-readable.
477
478 ~/.ssh/rc
479 Contains initialization routines to be run before the user's home
480 directory becomes accessible. This file should be writable only
481 by the user, and need not be readable by anyone else.
482
483 /etc/hosts.allow
484 /etc/hosts.deny
485 Access controls that should be enforced by tcp-wrappers are de-
486 fined here. Further details are described in hosts_access(5).
487
488 /etc/hosts.equiv
489 This file is for host-based authentication (see ssh(1)). It
490 should only be writable by root.
491
492 /etc/moduli
493 Contains Diffie-Hellman groups used for the "Diffie-Hellman Group
494 Exchange". The file format is described in moduli(5).
495
496 /etc/motd
497 See motd(5).
498
499 /etc/nologin
500 If this file exists, sshd refuses to let anyone except root log
501 in. The contents of the file are displayed to anyone trying to
502 log in, and non-root connections are refused. The file should be
503 world-readable.
504
505 /etc/shosts.equiv
506 This file is used in exactly the same way as hosts.equiv, but al-
507 lows host-based authentication without permitting login with
508 rlogin/rsh.
509
510 /etc/ssh/ssh_host_key
511 /etc/ssh/ssh_host_dsa_key
512 /etc/ssh/ssh_host_rsa_key
513 These three files contain the private parts of the host keys.
514 These files should only be owned by root, readable only by root,
515 and not accessible to others. Note that sshd does not start if
516 these files are group/world-accessible.
517
518 /etc/ssh/ssh_host_key.pub
519 /etc/ssh/ssh_host_dsa_key.pub
520 /etc/ssh/ssh_host_rsa_key.pub
521 These three files contain the public parts of the host keys.
522 These files should be world-readable but writable only by root.
523 Their contents should match the respective private parts. These
524 files are not really used for anything; they are provided for the
525 convenience of the user so their contents can be copied to known
526 hosts files. These files are created using ssh-keygen(1).
527
528 /etc/ssh/ssh_known_hosts
529 Systemwide list of known host keys. This file should be prepared
530 by the system administrator to contain the public host keys of
531 all machines in the organization. The format of this file is de-
532 scribed above. This file should be writable only by root/the
533 owner and should be world-readable.
534
535 /etc/ssh/sshd_config
536 Contains configuration data for sshd. The file format and con-
537 figuration options are described in sshd_config(5).
538
539 /etc/ssh/sshrc
540 Similar to ~/.ssh/rc, it can be used to specify machine-specific
541 login-time initializations globally. This file should be
542 writable only by root, and should be world-readable.
543
544 /var/empty
545 chroot(2) directory used by sshd during privilege separation in
546 the pre-authentication phase. The directory should not contain
547 any files and must be owned by root and not group or world-
548 writable.
549
550 /var/run/sshd.pid
551 Contains the process ID of the sshd listening for connections (if
552 there are several daemons running concurrently for different
553 ports, this contains the process ID of the one started last).
554 The content of this file is not sensitive; it can be world-read-
555 able.
556
557SEE ALSO
558 scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),
559 ssh-keyscan(1), chroot(2), hosts_access(5), login.conf(5), moduli(5),
560 sshd_config(5), inetd(8), sftp-server(8)
561
562AUTHORS
563 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
564 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
565 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
566 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
567 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
568 for privilege separation.
569
570CAVEATS
571 System security is not improved unless rshd, rlogind, and rexecd are dis-
572 abled (thus completely disabling rlogin and rsh into the machine).
573
574OpenBSD 4.6 March 26, 2009 9
diff --git a/sshd_config.0 b/sshd_config.0
new file mode 100644
index 000000000..9e73c5906
--- /dev/null
+++ b/sshd_config.0
@@ -0,0 +1,634 @@
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-argu-
12 ment pairs, one per line. Lines starting with `#' and empty lines are
13 interpreted as comments. Arguments may optionally be enclosed in double
14 quotes (") in order to represent arguments containing spaces.
15
16 The possible keywords and their meanings are as follows (note that key-
17 words 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 envi-
23 ronment passing is only supported for protocol 2. Variables are
24 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 de-
39 fault is ``yes''. Note that disabling agent forwarding does not
40 improve security unless users are also denied shell access, as
41 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 se-
58 curity unless users are also denied shell access, as they can al-
59 ways 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 us-
64 er 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 US-
67 ER@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. AuthorizedKeysFile may contain tokens
77 of the form %T which are substituted during connection setup.
78 The following tokens are defined: %% is replaced by a literal
79 '%', %h is replaced by the home directory of the user being au-
80 thenticated, and %u is replaced by the username of that user.
81 After expansion, AuthorizedKeysFile is taken to be an absolute
82 path or one relative to the user's home directory. The default
83 is ``.ssh/authorized_keys''.
84
85 Banner The contents of the specified file are sent to the remote user
86 before authentication is allowed. If the argument is ``none''
87 then no banner is displayed. This option is only available for
88 protocol version 2. By default, no banner is displayed.
89
90 ChallengeResponseAuthentication
91 Specifies whether challenge-response authentication is allowed
92 (e.g. via PAM or though authentication styles supported in
93 login.conf(5)) The default is ``yes''.
94
95 ChrootDirectory
96 Specifies a path to chroot(2) to after authentication. This
97 path, and all its components, must be root-owned directories that
98 are not writable by any other user or group. After the chroot,
99 sshd(8) changes the working directory to the user's home directo-
100 ry.
101
102 The path may contain the following tokens that are expanded at
103 runtime once the connecting user has been authenticated: %% is
104 replaced by a literal '%', %h is replaced by the home directory
105 of the user being authenticated, and %u is replaced by the user-
106 name of that user.
107
108 The ChrootDirectory must contain the necessary files and directo-
109 ries to support the user's session. For an interactive session
110 this requires at least a shell, typically sh(1), and basic /dev
111 nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4),
112 arandom(4) and tty(4) devices. For file transfer sessions using
113 ``sftp'', no additional configuration of the environment is nec-
114 essary if the in-process sftp server is used, though sessions
115 which use logging do require /dev/log inside the chroot directory
116 (see sftp-server(8) for details).
117
118 The default is not to chroot(2).
119
120 Ciphers
121 Specifies the ciphers allowed for protocol version 2. Multiple
122 ciphers must be comma-separated. The supported ciphers are
123 ``3des-cbc'', ``aes128-cbc'', ``aes192-cbc'', ``aes256-cbc'',
124 ``aes128-ctr'', ``aes192-ctr'', ``aes256-ctr'', ``arcfour128'',
125 ``arcfour256'', ``arcfour'', ``blowfish-cbc'', and
126 ``cast128-cbc''. The default is:
127
128 aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
129 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
130 aes256-cbc,arcfour
131
132 ClientAliveCountMax
133 Sets the number of client alive messages (see below) which may be
134 sent without sshd(8) receiving any messages back from the client.
135 If this threshold is reached while client alive messages are be-
136 ing sent, sshd will disconnect the client, terminating the ses-
137 sion. It is important to note that the use of client alive mes-
138 sages is very different from TCPKeepAlive (below). The client
139 alive messages are sent through the encrypted channel and there-
140 fore will not be spoofable. The TCP keepalive option enabled by
141 TCPKeepAlive is spoofable. The client alive mechanism is valu-
142 able when the client or server depend on knowing when a connec-
143 tion has become inactive.
144
145 The default value is 3. If ClientAliveInterval (see below) is
146 set to 15, and ClientAliveCountMax is left at the default, unre-
147 sponsive SSH clients will be disconnected after approximately 45
148 seconds. This option applies to protocol version 2 only.
149
150 ClientAliveInterval
151 Sets a timeout interval in seconds after which if no data has
152 been received from the client, sshd(8) will send a message
153 through the encrypted channel to request a response from the
154 client. The default is 0, indicating that these messages will
155 not be sent to the client. This option applies to protocol ver-
156 sion 2 only.
157
158 Compression
159 Specifies whether compression is allowed, or delayed until the
160 user has authenticated successfully. The argument must be
161 ``yes'', ``delayed'', or ``no''. The default is ``delayed''.
162
163 DenyGroups
164 This keyword can be followed by a list of group name patterns,
165 separated by spaces. Login is disallowed for users whose primary
166 group or supplementary group list matches one of the patterns.
167 Only group names are valid; a numerical group ID is not recog-
168 nized. By default, login is allowed for all groups. The al-
169 low/deny directives are processed in the following order:
170 DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups.
171
172 See PATTERNS in ssh_config(5) for more information on patterns.
173
174 DenyUsers
175 This keyword can be followed by a list of user name patterns,
176 separated by spaces. Login is disallowed for user names that
177 match one of the patterns. Only user names are valid; a numeri-
178 cal user ID is not recognized. By default, login is allowed for
179 all users. If the pattern takes the form USER@HOST then USER and
180 HOST are separately checked, restricting logins to particular
181 users from particular hosts. The allow/deny directives are pro-
182 cessed in the following order: DenyUsers, AllowUsers, DenyGroups,
183 and finally AllowGroups.
184
185 See PATTERNS in ssh_config(5) for more information on patterns.
186
187 ForceCommand
188 Forces the execution of the command specified by ForceCommand,
189 ignoring any command supplied by the client and ~/.ssh/rc if pre-
190 sent. The command is invoked by using the user's login shell
191 with the -c option. This applies to shell, command, or subsystem
192 execution. It is most useful inside a Match block. The command
193 originally supplied by the client is available in the
194 SSH_ORIGINAL_COMMAND environment variable. Specifying a command
195 of ``internal-sftp'' will force the use of an in-process sftp
196 server that requires no support files when used with
197 ChrootDirectory.
198
199 GatewayPorts
200 Specifies whether remote hosts are allowed to connect to ports
201 forwarded for the client. By default, sshd(8) binds remote port
202 forwardings to the loopback address. This prevents other remote
203 hosts from connecting to forwarded ports. GatewayPorts can be
204 used to specify that sshd should allow remote port forwardings to
205 bind to non-loopback addresses, thus allowing other hosts to con-
206 nect. The argument may be ``no'' to force remote port forward-
207 ings to be available to the local host only, ``yes'' to force re-
208 mote port forwardings to bind to the wildcard address, or
209 ``clientspecified'' to allow the client to select the address to
210 which the forwarding is bound. The default is ``no''.
211
212 GSSAPIAuthentication
213 Specifies whether user authentication based on GSSAPI is allowed.
214 The default is ``no''. Note that this option applies to protocol
215 version 2 only.
216
217 GSSAPICleanupCredentials
218 Specifies whether to automatically destroy the user's credentials
219 cache on logout. The default is ``yes''. Note that this option
220 applies to protocol version 2 only.
221
222 HostbasedAuthentication
223 Specifies whether rhosts or /etc/hosts.equiv authentication to-
224 gether with successful public key client host authentication is
225 allowed (host-based authentication). This option is similar to
226 RhostsRSAAuthentication and applies to protocol version 2 only.
227 The default is ``no''.
228
229 HostbasedUsesNameFromPacketOnly
230 Specifies whether or not the server will attempt to perform a re-
231 verse name lookup when matching the name in the ~/.shosts,
232 ~/.rhosts, and /etc/hosts.equiv files during
233 HostbasedAuthentication. A setting of ``yes'' means that sshd(8)
234 uses the name supplied by the client rather than attempting to
235 resolve the name from the TCP connection itself. The default is
236 ``no''.
237
238 HostKey
239 Specifies a file containing a private host key used by SSH. The
240 default is /etc/ssh/ssh_host_key for protocol version 1, and
241 /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key for pro-
242 tocol version 2. Note that sshd(8) will refuse to use a file if
243 it is group/world-accessible. It is possible to have multiple
244 host key files. ``rsa1'' keys are used for version 1 and ``dsa''
245 or ``rsa'' are used for version 2 of the SSH protocol.
246
247 IgnoreRhosts
248 Specifies that .rhosts and .shosts files will not be used in
249 RhostsRSAAuthentication or HostbasedAuthentication.
250
251 /etc/hosts.equiv and /etc/shosts.equiv are still used. The de-
252 fault is ``yes''.
253
254 IgnoreUserKnownHosts
255 Specifies whether sshd(8) should ignore the user's
256 ~/.ssh/known_hosts during RhostsRSAAuthentication or
257 HostbasedAuthentication. The default is ``no''.
258
259 KerberosAuthentication
260 Specifies whether the password provided by the user for
261 PasswordAuthentication will be validated through the Kerberos
262 KDC. To use this option, the server needs a Kerberos servtab
263 which allows the verification of the KDC's identity. The default
264 is ``no''.
265
266 KerberosGetAFSToken
267 If AFS is active and the user has a Kerberos 5 TGT, attempt to
268 acquire an AFS token before accessing the user's home directory.
269 The default is ``no''.
270
271 KerberosOrLocalPasswd
272 If password authentication through Kerberos fails then the pass-
273 word will be validated via any additional local mechanism such as
274 /etc/passwd. The default is ``yes''.
275
276 KerberosTicketCleanup
277 Specifies whether to automatically destroy the user's ticket
278 cache file on logout. The default is ``yes''.
279
280 KeyRegenerationInterval
281 In protocol version 1, the ephemeral server key is automatically
282 regenerated after this many seconds (if it has been used). The
283 purpose of regeneration is to prevent decrypting captured ses-
284 sions by later breaking into the machine and stealing the keys.
285 The key is never stored anywhere. If the value is 0, the key is
286 never regenerated. The default is 3600 (seconds).
287
288 ListenAddress
289 Specifies the local addresses sshd(8) should listen on. The fol-
290 lowing forms may be used:
291
292 ListenAddress host|IPv4_addr|IPv6_addr
293 ListenAddress host|IPv4_addr:port
294 ListenAddress [host|IPv6_addr]:port
295
296 If port is not specified, sshd will listen on the address and all
297 prior Port options specified. The default is to listen on all
298 local addresses. Multiple ListenAddress options are permitted.
299 Additionally, any Port options must precede this option for non-
300 port qualified addresses.
301
302 LoginGraceTime
303 The server disconnects after this time if the user has not suc-
304 cessfully logged in. If the value is 0, there is no time limit.
305 The default is 120 seconds.
306
307 LogLevel
308 Gives the verbosity level that is used when logging messages from
309 sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO,
310 VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO.
311 DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify
312 higher levels of debugging output. Logging with a DEBUG level
313 violates the privacy of users and is not recommended.
314
315 MACs Specifies the available MAC (message authentication code) algo-
316 rithms. The MAC algorithm is used in protocol version 2 for data
317 integrity protection. Multiple algorithms must be comma-separat-
318 ed. The default is:
319
320 hmac-md5,hmac-sha1,umac-64@openssh.com,
321 hmac-ripemd160,hmac-sha1-96,hmac-md5-96
322
323 Match Introduces a conditional block. If all of the criteria on the
324 Match line are satisfied, the keywords on the following lines
325 override those set in the global section of the config file, un-
326 til either another Match line or the end of the file.
327
328 The arguments to Match are one or more criteria-pattern pairs.
329 The available criteria are User, Group, Host, and Address. The
330 match patterns may consist of single entries or comma-separated
331 lists and may use the wildcard and negation operators described
332 in the PATTERNS section of ssh_config(5).
333
334 The patterns in an Address criteria may additionally contain ad-
335 dresses to match in CIDR address/masklen format, e.g.
336 ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask
337 length provided must be consistent with the address - it is an
338 error to specify a mask length that is too long for the address
339 or one with bits set in this host portion of the address. For
340 example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively.
341
342 Only a subset of keywords may be used on the lines following a
343 Match keyword. Available keywords are AllowAgentForwarding,
344 AllowTcpForwarding, Banner, ChrootDirectory, ForceCommand,
345 GatewayPorts, GSSAPIAuthentication, HostbasedAuthentication,
346 KbdInteractiveAuthentication, KerberosAuthentication,
347 MaxAuthTries, MaxSessions, PasswordAuthentication,
348 PermitEmptyPasswords, PermitOpen, PermitRootLogin,
349 RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset,
350 X11Forwarding and X11UseLocalHost.
351
352 MaxAuthTries
353 Specifies the maximum number of authentication attempts permitted
354 per connection. Once the number of failures reaches half this
355 value, additional failures are logged. The default is 6.
356
357 MaxSessions
358 Specifies the maximum number of open sessions permitted per net-
359 work connection. The default is 10.
360
361 MaxStartups
362 Specifies the maximum number of concurrent unauthenticated con-
363 nections to the SSH daemon. Additional connections will be
364 dropped until authentication succeeds or the LoginGraceTime ex-
365 pires for a connection. The default is 10.
366
367 Alternatively, random early drop can be enabled by specifying the
368 three colon separated values ``start:rate:full'' (e.g.
369 "10:30:60"). sshd(8) will refuse connection attempts with a
370 probability of ``rate/100'' (30%) if there are currently
371 ``start'' (10) unauthenticated connections. The probability in-
372 creases linearly and all connection attempts are refused if the
373 number of unauthenticated connections reaches ``full'' (60).
374
375 PasswordAuthentication
376 Specifies whether password authentication is allowed. The de-
377 fault is ``yes''.
378
379 PermitEmptyPasswords
380 When password authentication is allowed, it specifies whether the
381 server allows login to accounts with empty password strings. The
382 default is ``no''.
383
384 PermitOpen
385 Specifies the destinations to which TCP port forwarding is per-
386 mitted. The forwarding specification must be one of the follow-
387 ing forms:
388
389 PermitOpen host:port
390 PermitOpen IPv4_addr:port
391 PermitOpen [IPv6_addr]:port
392
393 Multiple forwards may be specified by separating them with
394 whitespace. An argument of ``any'' can be used to remove all re-
395 strictions and permit any forwarding requests. By default all
396 port forwarding requests are permitted.
397
398 PermitRootLogin
399 Specifies whether root can log in using ssh(1). The argument
400 must be ``yes'', ``without-password'', ``forced-commands-only'',
401 or ``no''. The default is ``yes''.
402
403 If this option is set to ``without-password'', password authenti-
404 cation is disabled for root.
405
406 If this option is set to ``forced-commands-only'', root login
407 with public key authentication will be allowed, but only if the
408 command option has been specified (which may be useful for taking
409 remote backups even if root login is normally not allowed). All
410 other authentication methods are disabled for root.
411
412 If this option is set to ``no'', root is not allowed to log in.
413
414 PermitTunnel
415 Specifies whether tun(4) device forwarding is allowed. The argu-
416 ment must be ``yes'', ``point-to-point'' (layer 3), ``ethernet''
417 (layer 2), or ``no''. Specifying ``yes'' permits both ``point-
418 to-point'' and ``ethernet''. The default is ``no''.
419
420 PermitUserEnvironment
421 Specifies whether ~/.ssh/environment and environment= options in
422 ~/.ssh/authorized_keys are processed by sshd(8). The default is
423 ``no''. Enabling environment processing may enable users to by-
424 pass access restrictions in some configurations using mechanisms
425 such as LD_PRELOAD.
426
427 PidFile
428 Specifies the file that contains the process ID of the SSH dae-
429 mon. The default is /var/run/sshd.pid.
430
431 Port Specifies the port number that sshd(8) listens on. The default
432 is 22. Multiple options of this type are permitted. See also
433 ListenAddress.
434
435 PrintLastLog
436 Specifies whether sshd(8) should print the date and time of the
437 last user login when a user logs in interactively. The default
438 is ``yes''.
439
440 PrintMotd
441 Specifies whether sshd(8) should print /etc/motd when a user logs
442 in interactively. (On some systems it is also printed by the
443 shell, /etc/profile, or equivalent.) The default is ``yes''.
444
445 Protocol
446 Specifies the protocol versions sshd(8) supports. The possible
447 values are `1' and `2'. Multiple versions must be comma-separat-
448 ed. The default is ``2,1''. Note that the order of the protocol
449 list does not indicate preference, because the client selects
450 among multiple protocol versions offered by the server. Specify-
451 ing ``2,1'' is identical to ``1,2''.
452
453 PubkeyAuthentication
454 Specifies whether public key authentication is allowed. The de-
455 fault is ``yes''. Note that this option applies to protocol ver-
456 sion 2 only.
457
458 RhostsRSAAuthentication
459 Specifies whether rhosts or /etc/hosts.equiv authentication to-
460 gether with successful RSA host authentication is allowed. The
461 default is ``no''. This option applies to protocol version 1 on-
462 ly.
463
464 RSAAuthentication
465 Specifies whether pure RSA authentication is allowed. The de-
466 fault is ``yes''. This option applies to protocol version 1 on-
467 ly.
468
469 ServerKeyBits
470 Defines the number of bits in the ephemeral protocol version 1
471 server key. The minimum value is 512, and the default is 1024.
472
473 StrictModes
474 Specifies whether sshd(8) should check file modes and ownership
475 of the user's files and home directory before accepting login.
476 This is normally desirable because novices sometimes accidentally
477 leave their directory or files world-writable. The default is
478 ``yes''.
479
480 Subsystem
481 Configures an external subsystem (e.g. file transfer daemon).
482 Arguments should be a subsystem name and a command (with optional
483 arguments) to execute upon subsystem request.
484
485 The command sftp-server(8) implements the ``sftp'' file transfer
486 subsystem.
487
488 Alternately the name ``internal-sftp'' implements an in-process
489 ``sftp'' server. This may simplify configurations using
490 ChrootDirectory to force a different filesystem root on clients.
491
492 By default no subsystems are defined. Note that this option ap-
493 plies to protocol version 2 only.
494
495 SyslogFacility
496 Gives the facility code that is used when logging messages from
497 sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0,
498 LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The de-
499 fault is AUTH.
500
501 TCPKeepAlive
502 Specifies whether the system should send TCP keepalive messages
503 to the other side. If they are sent, death of the connection or
504 crash of one of the machines will be properly noticed. However,
505 this means that connections will die if the route is down tem-
506 porarily, and some people find it annoying. On the other hand,
507 if TCP keepalives are not sent, sessions may hang indefinitely on
508 the server, leaving ``ghost'' users and consuming server re-
509 sources.
510
511 The default is ``yes'' (to send TCP keepalive messages), and the
512 server will notice if the network goes down or the client host
513 crashes. This avoids infinitely hanging sessions.
514
515 To disable TCP keepalive messages, the value should be set to
516 ``no''.
517
518 UseDNS Specifies whether sshd(8) should look up the remote host name and
519 check that the resolved host name for the remote IP address maps
520 back to the very same IP address. The default is ``yes''.
521
522 UseLogin
523 Specifies whether login(1) is used for interactive login ses-
524 sions. The default is ``no''. Note that login(1) is never used
525 for remote command execution. Note also, that if this is en-
526 abled, X11Forwarding will be disabled because login(1) does not
527 know how to handle xauth(1) cookies. If UsePrivilegeSeparation
528 is specified, it will be disabled after authentication.
529
530 UsePAM Enables the Pluggable Authentication Module interface. If set to
531 ``yes'' this will enable PAM authentication using
532 ChallengeResponseAuthentication and PasswordAuthentication in ad-
533 dition to PAM account and session module processing for all au-
534 thentication types.
535
536 Because PAM challenge-response authentication usually serves an
537 equivalent role to password authentication, you should disable
538 either PasswordAuthentication or ChallengeResponseAuthentication.
539
540 If UsePAM is enabled, you will not be able to run sshd(8) as a
541 non-root user. The default is ``no''.
542
543 UsePrivilegeSeparation
544 Specifies whether sshd(8) separates privileges by creating an un-
545 privileged child process to deal with incoming network traffic.
546 After successful authentication, another process will be created
547 that has the privilege of the authenticated user. The goal of
548 privilege separation is to prevent privilege escalation by con-
549 taining any corruption within the unprivileged processes. The
550 default is ``yes''.
551
552 X11DisplayOffset
553 Specifies the first display number available for sshd(8)'s X11
554 forwarding. This prevents sshd from interfering with real X11
555 servers. The default is 10.
556
557 X11Forwarding
558 Specifies whether X11 forwarding is permitted. The argument must
559 be ``yes'' or ``no''. The default is ``no''.
560
561 When X11 forwarding is enabled, there may be additional exposure
562 to the server and to client displays if the sshd(8) proxy display
563 is configured to listen on the wildcard address (see
564 X11UseLocalhost below), though this is not the default. Addi-
565 tionally, the authentication spoofing and authentication data
566 verification and substitution occur on the client side. The se-
567 curity risk of using X11 forwarding is that the client's X11 dis-
568 play server may be exposed to attack when the SSH client requests
569 forwarding (see the warnings for ForwardX11 in ssh_config(5)). A
570 system administrator may have a stance in which they want to pro-
571 tect clients that may expose themselves to attack by unwittingly
572 requesting X11 forwarding, which can warrant a ``no'' setting.
573
574 Note that disabling X11 forwarding does not prevent users from
575 forwarding X11 traffic, as users can always install their own
576 forwarders. X11 forwarding is automatically disabled if UseLogin
577 is enabled.
578
579 X11UseLocalhost
580 Specifies whether sshd(8) should bind the X11 forwarding server
581 to the loopback address or to the wildcard address. By default,
582 sshd binds the forwarding server to the loopback address and sets
583 the hostname part of the DISPLAY environment variable to
584 ``localhost''. This prevents remote hosts from connecting to the
585 proxy display. However, some older X11 clients may not function
586 with this configuration. X11UseLocalhost may be set to ``no'' to
587 specify that the forwarding server should be bound to the wild-
588 card address. The argument must be ``yes'' or ``no''. The de-
589 fault is ``yes''.
590
591 XAuthLocation
592 Specifies the full pathname of the xauth(1) program. The default
593 is /usr/X11R6/bin/xauth.
594
595TIME FORMATS
596 sshd(8) command-line arguments and configuration file options that speci-
597 fy time may be expressed using a sequence of the form: time[qualifier],
598 where time is a positive integer value and qualifier is one of the fol-
599 lowing:
600
601 <none> seconds
602 s | S seconds
603 m | M minutes
604 h | H hours
605 d | D days
606 w | W weeks
607
608 Each member of the sequence is added together to calculate the total time
609 value.
610
611 Time format examples:
612
613 600 600 seconds (10 minutes)
614 10m 10 minutes
615 1h30m 1 hour 30 minutes (90 minutes)
616
617FILES
618 /etc/ssh/sshd_config
619 Contains configuration data for sshd(8). This file should be
620 writable by root only, but it is recommended (though not neces-
621 sary) that it be world-readable.
622
623SEE ALSO
624 sshd(8)
625
626AUTHORS
627 OpenSSH is a derivative of the original and free ssh 1.2.12 release by
628 Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo
629 de Raadt and Dug Song removed many bugs, re-added newer features and cre-
630 ated OpenSSH. Markus Friedl contributed the support for SSH protocol
631 versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support
632 for privilege separation.
633
634OpenBSD 4.6 April 21, 2009 10