diff options
-rw-r--r-- | .cvsignore | 28 | ||||
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | config.h.in | 1714 | ||||
-rwxr-xr-x | configure | 19734 | ||||
-rw-r--r-- | moduli.0 | 74 | ||||
-rw-r--r-- | openbsd-compat/.cvsignore | 1 | ||||
-rw-r--r-- | openbsd-compat/regress/.cvsignore | 6 | ||||
-rw-r--r-- | regress/.cvsignore | 31 | ||||
-rw-r--r-- | scard/.cvsignore | 2 | ||||
-rw-r--r-- | scp.0 | 162 | ||||
-rw-r--r-- | sftp-server.0 | 96 | ||||
-rw-r--r-- | sftp.0 | 381 | ||||
-rw-r--r-- | ssh-add.0 | 123 | ||||
-rw-r--r-- | ssh-agent.0 | 103 | ||||
-rw-r--r-- | ssh-keygen.0 | 562 | ||||
-rw-r--r-- | ssh-keyscan.0 | 111 | ||||
-rw-r--r-- | ssh-keysign.0 | 53 | ||||
-rw-r--r-- | ssh-pkcs11-helper.0 | 25 | ||||
-rw-r--r-- | ssh.0 | 944 | ||||
-rw-r--r-- | ssh_config.0 | 930 | ||||
-rw-r--r-- | sshd.0 | 635 | ||||
-rw-r--r-- | sshd_config.0 | 906 |
22 files changed, 26553 insertions, 69 deletions
diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index 9baaa3b4e..000000000 --- a/.cvsignore +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | *.0 | ||
2 | *.out | ||
3 | Makefile | ||
4 | autom4te.cache | ||
5 | buildit.sh | ||
6 | buildpkg.sh | ||
7 | config.cache | ||
8 | config.h | ||
9 | config.h.in | ||
10 | config.log | ||
11 | config.status | ||
12 | configure | ||
13 | openssh.xml | ||
14 | opensshd.init | ||
15 | scp | ||
16 | sftp | ||
17 | sftp-server | ||
18 | ssh | ||
19 | ssh-add | ||
20 | ssh-agent | ||
21 | ssh-keygen | ||
22 | ssh-keyscan | ||
23 | ssh-keysign | ||
24 | ssh-pkcs11-helper | ||
25 | sshd | ||
26 | stamp-h.in | ||
27 | survey | ||
28 | survey.sh | ||
@@ -3815,4 +3815,3 @@ | |||
3815 | [contrib/suse/openssh.spec] Update for release 6.0 | 3815 | [contrib/suse/openssh.spec] Update for release 6.0 |
3816 | - (djm) [README] Update URL to release notes. | 3816 | - (djm) [README] Update URL to release notes. |
3817 | - (djm) Release openssh-6.0 | 3817 | - (djm) Release openssh-6.0 |
3818 | |||
diff --git a/config.h.in b/config.h.in new file mode 100644 index 000000000..16d620615 --- /dev/null +++ b/config.h.in | |||
@@ -0,0 +1,1714 @@ | |||
1 | /* config.h.in. Generated from configure.ac by autoheader. */ | ||
2 | |||
3 | /* Define if building universal (internal helper macro) */ | ||
4 | #undef AC_APPLE_UNIVERSAL_BUILD | ||
5 | |||
6 | /* Define if you have a getaddrinfo that fails for the all-zeros IPv6 address | ||
7 | */ | ||
8 | #undef AIX_GETNAMEINFO_HACK | ||
9 | |||
10 | /* Define if your AIX loginfailed() function takes 4 arguments (AIX >= 5.2) */ | ||
11 | #undef AIX_LOGINFAILED_4ARG | ||
12 | |||
13 | /* System only supports IPv4 audit records */ | ||
14 | #undef AU_IPv4 | ||
15 | |||
16 | /* Define if your resolver libs need this for getrrsetbyname */ | ||
17 | #undef BIND_8_COMPAT | ||
18 | |||
19 | /* The system has incomplete BSM API */ | ||
20 | #undef BROKEN_BSM_API | ||
21 | |||
22 | /* Define if cmsg_type is not passed correctly */ | ||
23 | #undef BROKEN_CMSG_TYPE | ||
24 | |||
25 | /* getaddrinfo is broken (if present) */ | ||
26 | #undef BROKEN_GETADDRINFO | ||
27 | |||
28 | /* getgroups(0,NULL) will return -1 */ | ||
29 | #undef BROKEN_GETGROUPS | ||
30 | |||
31 | /* FreeBSD glob does not do what we need */ | ||
32 | #undef BROKEN_GLOB | ||
33 | |||
34 | /* Define if you system's inet_ntoa is busted (e.g. Irix gcc issue) */ | ||
35 | #undef BROKEN_INET_NTOA | ||
36 | |||
37 | /* ia_uinfo routines not supported by OS yet */ | ||
38 | #undef BROKEN_LIBIAF | ||
39 | |||
40 | /* Ultrix mmap can't map files */ | ||
41 | #undef BROKEN_MMAP | ||
42 | |||
43 | /* Define if your struct dirent expects you to allocate extra space for d_name | ||
44 | */ | ||
45 | #undef BROKEN_ONE_BYTE_DIRENT_D_NAME | ||
46 | |||
47 | /* Can't do comparisons on readv */ | ||
48 | #undef BROKEN_READV_COMPARISON | ||
49 | |||
50 | /* NetBSD read function is sometimes redirected, breaking atomicio comparisons | ||
51 | against it */ | ||
52 | #undef BROKEN_READ_COMPARISON | ||
53 | |||
54 | /* Define if you have a broken realpath. */ | ||
55 | #undef BROKEN_REALPATH | ||
56 | |||
57 | /* Needed for NeXT */ | ||
58 | #undef BROKEN_SAVED_UIDS | ||
59 | |||
60 | /* Define if your setregid() is broken */ | ||
61 | #undef BROKEN_SETREGID | ||
62 | |||
63 | /* Define if your setresgid() is broken */ | ||
64 | #undef BROKEN_SETRESGID | ||
65 | |||
66 | /* Define if your setresuid() is broken */ | ||
67 | #undef BROKEN_SETRESUID | ||
68 | |||
69 | /* Define if your setreuid() is broken */ | ||
70 | #undef BROKEN_SETREUID | ||
71 | |||
72 | /* LynxOS has broken setvbuf() implementation */ | ||
73 | #undef BROKEN_SETVBUF | ||
74 | |||
75 | /* QNX shadow support is broken */ | ||
76 | #undef BROKEN_SHADOW_EXPIRE | ||
77 | |||
78 | /* Define if your snprintf is busted */ | ||
79 | #undef BROKEN_SNPRINTF | ||
80 | |||
81 | /* FreeBSD strnvis argument order is swapped compared to OpenBSD */ | ||
82 | #undef BROKEN_STRNVIS | ||
83 | |||
84 | /* tcgetattr with ICANON may hang */ | ||
85 | #undef BROKEN_TCGETATTR_ICANON | ||
86 | |||
87 | /* updwtmpx is broken (if present) */ | ||
88 | #undef BROKEN_UPDWTMPX | ||
89 | |||
90 | /* Define if you have BSD auth support */ | ||
91 | #undef BSD_AUTH | ||
92 | |||
93 | /* Define if you want to specify the path to your lastlog file */ | ||
94 | #undef CONF_LASTLOG_FILE | ||
95 | |||
96 | /* Define if you want to specify the path to your utmp file */ | ||
97 | #undef CONF_UTMP_FILE | ||
98 | |||
99 | /* Define if you want to specify the path to your wtmpx file */ | ||
100 | #undef CONF_WTMPX_FILE | ||
101 | |||
102 | /* Define if you want to specify the path to your wtmp file */ | ||
103 | #undef CONF_WTMP_FILE | ||
104 | |||
105 | /* Define if your platform needs to skip post auth file descriptor passing */ | ||
106 | #undef DISABLE_FD_PASSING | ||
107 | |||
108 | /* Define if you don't want to use lastlog */ | ||
109 | #undef DISABLE_LASTLOG | ||
110 | |||
111 | /* Define if you don't want to use your system's login() call */ | ||
112 | #undef DISABLE_LOGIN | ||
113 | |||
114 | /* Define if you don't want to use pututline() etc. to write [uw]tmp */ | ||
115 | #undef DISABLE_PUTUTLINE | ||
116 | |||
117 | /* Define if you don't want to use pututxline() etc. to write [uw]tmpx */ | ||
118 | #undef DISABLE_PUTUTXLINE | ||
119 | |||
120 | /* Define if you want to disable shadow passwords */ | ||
121 | #undef DISABLE_SHADOW | ||
122 | |||
123 | /* Define if you don't want to use utmp */ | ||
124 | #undef DISABLE_UTMP | ||
125 | |||
126 | /* Define if you don't want to use utmpx */ | ||
127 | #undef DISABLE_UTMPX | ||
128 | |||
129 | /* Define if you don't want to use wtmp */ | ||
130 | #undef DISABLE_WTMP | ||
131 | |||
132 | /* Define if you don't want to use wtmpx */ | ||
133 | #undef DISABLE_WTMPX | ||
134 | |||
135 | /* Enable for PKCS#11 support */ | ||
136 | #undef ENABLE_PKCS11 | ||
137 | |||
138 | /* File names may not contain backslash characters */ | ||
139 | #undef FILESYSTEM_NO_BACKSLASH | ||
140 | |||
141 | /* fsid_t has member val */ | ||
142 | #undef FSID_HAS_VAL | ||
143 | |||
144 | /* fsid_t has member __val */ | ||
145 | #undef FSID_HAS___VAL | ||
146 | |||
147 | /* Define to 1 if the `getpgrp' function requires zero arguments. */ | ||
148 | #undef GETPGRP_VOID | ||
149 | |||
150 | /* Conflicting defs for getspnam */ | ||
151 | #undef GETSPNAM_CONFLICTING_DEFS | ||
152 | |||
153 | /* Define if your system glob() function has the GLOB_ALTDIRFUNC extension */ | ||
154 | #undef GLOB_HAS_ALTDIRFUNC | ||
155 | |||
156 | /* Define if your system glob() function has gl_matchc options in glob_t */ | ||
157 | #undef GLOB_HAS_GL_MATCHC | ||
158 | |||
159 | /* Define if your system glob() function has gl_statv options in glob_t */ | ||
160 | #undef GLOB_HAS_GL_STATV | ||
161 | |||
162 | /* Define this if you want GSSAPI support in the version 2 protocol */ | ||
163 | #undef GSSAPI | ||
164 | |||
165 | /* Define if you want to use shadow password expire field */ | ||
166 | #undef HAS_SHADOW_EXPIRE | ||
167 | |||
168 | /* Define if your system uses access rights style file descriptor passing */ | ||
169 | #undef HAVE_ACCRIGHTS_IN_MSGHDR | ||
170 | |||
171 | /* Define if you have ut_addr in utmp.h */ | ||
172 | #undef HAVE_ADDR_IN_UTMP | ||
173 | |||
174 | /* Define if you have ut_addr in utmpx.h */ | ||
175 | #undef HAVE_ADDR_IN_UTMPX | ||
176 | |||
177 | /* Define if you have ut_addr_v6 in utmp.h */ | ||
178 | #undef HAVE_ADDR_V6_IN_UTMP | ||
179 | |||
180 | /* Define if you have ut_addr_v6 in utmpx.h */ | ||
181 | #undef HAVE_ADDR_V6_IN_UTMPX | ||
182 | |||
183 | /* Define to 1 if you have the `arc4random' function. */ | ||
184 | #undef HAVE_ARC4RANDOM | ||
185 | |||
186 | /* Define to 1 if you have the `arc4random_buf' function. */ | ||
187 | #undef HAVE_ARC4RANDOM_BUF | ||
188 | |||
189 | /* Define to 1 if you have the `arc4random_stir' function. */ | ||
190 | #undef HAVE_ARC4RANDOM_STIR | ||
191 | |||
192 | /* Define to 1 if you have the `arc4random_uniform' function. */ | ||
193 | #undef HAVE_ARC4RANDOM_UNIFORM | ||
194 | |||
195 | /* Define to 1 if you have the `asprintf' function. */ | ||
196 | #undef HAVE_ASPRINTF | ||
197 | |||
198 | /* OpenBSD's gcc has bounded */ | ||
199 | #undef HAVE_ATTRIBUTE__BOUNDED__ | ||
200 | |||
201 | /* Have attribute nonnull */ | ||
202 | #undef HAVE_ATTRIBUTE__NONNULL__ | ||
203 | |||
204 | /* OpenBSD's gcc has sentinel */ | ||
205 | #undef HAVE_ATTRIBUTE__SENTINEL__ | ||
206 | |||
207 | /* Define to 1 if you have the `aug_get_machine' function. */ | ||
208 | #undef HAVE_AUG_GET_MACHINE | ||
209 | |||
210 | /* Define to 1 if you have the `b64_ntop' function. */ | ||
211 | #undef HAVE_B64_NTOP | ||
212 | |||
213 | /* Define to 1 if you have the `b64_pton' function. */ | ||
214 | #undef HAVE_B64_PTON | ||
215 | |||
216 | /* Define if you have the basename function. */ | ||
217 | #undef HAVE_BASENAME | ||
218 | |||
219 | /* Define to 1 if you have the `bcopy' function. */ | ||
220 | #undef HAVE_BCOPY | ||
221 | |||
222 | /* Define to 1 if you have the `bcrypt_pbkdf' function. */ | ||
223 | #undef HAVE_BCRYPT_PBKDF | ||
224 | |||
225 | /* Define to 1 if you have the `bindresvport_sa' function. */ | ||
226 | #undef HAVE_BINDRESVPORT_SA | ||
227 | |||
228 | /* Define to 1 if you have the `blf_enc' function. */ | ||
229 | #undef HAVE_BLF_ENC | ||
230 | |||
231 | /* Define to 1 if you have the <blf.h> header file. */ | ||
232 | #undef HAVE_BLF_H | ||
233 | |||
234 | /* Define to 1 if you have the `Blowfish_expand0state' function. */ | ||
235 | #undef HAVE_BLOWFISH_EXPAND0STATE | ||
236 | |||
237 | /* Define to 1 if you have the `Blowfish_expandstate' function. */ | ||
238 | #undef HAVE_BLOWFISH_EXPANDSTATE | ||
239 | |||
240 | /* Define to 1 if you have the `Blowfish_initstate' function. */ | ||
241 | #undef HAVE_BLOWFISH_INITSTATE | ||
242 | |||
243 | /* Define to 1 if you have the `Blowfish_stream2word' function. */ | ||
244 | #undef HAVE_BLOWFISH_STREAM2WORD | ||
245 | |||
246 | /* Define to 1 if you have the `BN_is_prime_ex' function. */ | ||
247 | #undef HAVE_BN_IS_PRIME_EX | ||
248 | |||
249 | /* Define to 1 if you have the <bsd/libutil.h> header file. */ | ||
250 | #undef HAVE_BSD_LIBUTIL_H | ||
251 | |||
252 | /* Define to 1 if you have the <bsm/audit.h> header file. */ | ||
253 | #undef HAVE_BSM_AUDIT_H | ||
254 | |||
255 | /* Define to 1 if you have the <bstring.h> header file. */ | ||
256 | #undef HAVE_BSTRING_H | ||
257 | |||
258 | /* Define to 1 if you have the `cap_rights_limit' function. */ | ||
259 | #undef HAVE_CAP_RIGHTS_LIMIT | ||
260 | |||
261 | /* Define to 1 if you have the `clock' function. */ | ||
262 | #undef HAVE_CLOCK | ||
263 | |||
264 | /* Have clock_gettime */ | ||
265 | #undef HAVE_CLOCK_GETTIME | ||
266 | |||
267 | /* define if you have clock_t data type */ | ||
268 | #undef HAVE_CLOCK_T | ||
269 | |||
270 | /* Define to 1 if you have the `closefrom' function. */ | ||
271 | #undef HAVE_CLOSEFROM | ||
272 | |||
273 | /* Define if gai_strerror() returns const char * */ | ||
274 | #undef HAVE_CONST_GAI_STRERROR_PROTO | ||
275 | |||
276 | /* Define if your system uses ancillary data style file descriptor passing */ | ||
277 | #undef HAVE_CONTROL_IN_MSGHDR | ||
278 | |||
279 | /* Define to 1 if you have the `crypt' function. */ | ||
280 | #undef HAVE_CRYPT | ||
281 | |||
282 | /* Define to 1 if you have the <crypto/sha2.h> header file. */ | ||
283 | #undef HAVE_CRYPTO_SHA2_H | ||
284 | |||
285 | /* Define to 1 if you have the <crypt.h> header file. */ | ||
286 | #undef HAVE_CRYPT_H | ||
287 | |||
288 | /* Define if you are on Cygwin */ | ||
289 | #undef HAVE_CYGWIN | ||
290 | |||
291 | /* Define if your libraries define daemon() */ | ||
292 | #undef HAVE_DAEMON | ||
293 | |||
294 | /* Define to 1 if you have the declaration of `authenticate', and to 0 if you | ||
295 | don't. */ | ||
296 | #undef HAVE_DECL_AUTHENTICATE | ||
297 | |||
298 | /* Define to 1 if you have the declaration of `GLOB_NOMATCH', and to 0 if you | ||
299 | don't. */ | ||
300 | #undef HAVE_DECL_GLOB_NOMATCH | ||
301 | |||
302 | /* Define to 1 if you have the declaration of `GSS_C_NT_HOSTBASED_SERVICE', | ||
303 | and to 0 if you don't. */ | ||
304 | #undef HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE | ||
305 | |||
306 | /* Define to 1 if you have the declaration of `howmany', and to 0 if you | ||
307 | don't. */ | ||
308 | #undef HAVE_DECL_HOWMANY | ||
309 | |||
310 | /* Define to 1 if you have the declaration of `h_errno', and to 0 if you | ||
311 | don't. */ | ||
312 | #undef HAVE_DECL_H_ERRNO | ||
313 | |||
314 | /* Define to 1 if you have the declaration of `loginfailed', and to 0 if you | ||
315 | don't. */ | ||
316 | #undef HAVE_DECL_LOGINFAILED | ||
317 | |||
318 | /* Define to 1 if you have the declaration of `loginrestrictions', and to 0 if | ||
319 | you don't. */ | ||
320 | #undef HAVE_DECL_LOGINRESTRICTIONS | ||
321 | |||
322 | /* Define to 1 if you have the declaration of `loginsuccess', and to 0 if you | ||
323 | don't. */ | ||
324 | #undef HAVE_DECL_LOGINSUCCESS | ||
325 | |||
326 | /* Define to 1 if you have the declaration of `MAXSYMLINKS', and to 0 if you | ||
327 | don't. */ | ||
328 | #undef HAVE_DECL_MAXSYMLINKS | ||
329 | |||
330 | /* Define to 1 if you have the declaration of `NFDBITS', and to 0 if you | ||
331 | don't. */ | ||
332 | #undef HAVE_DECL_NFDBITS | ||
333 | |||
334 | /* Define to 1 if you have the declaration of `offsetof', and to 0 if you | ||
335 | don't. */ | ||
336 | #undef HAVE_DECL_OFFSETOF | ||
337 | |||
338 | /* Define to 1 if you have the declaration of `O_NONBLOCK', and to 0 if you | ||
339 | don't. */ | ||
340 | #undef HAVE_DECL_O_NONBLOCK | ||
341 | |||
342 | /* Define to 1 if you have the declaration of `passwdexpired', and to 0 if you | ||
343 | don't. */ | ||
344 | #undef HAVE_DECL_PASSWDEXPIRED | ||
345 | |||
346 | /* Define to 1 if you have the declaration of `setauthdb', and to 0 if you | ||
347 | don't. */ | ||
348 | #undef HAVE_DECL_SETAUTHDB | ||
349 | |||
350 | /* Define to 1 if you have the declaration of `SHUT_RD', and to 0 if you | ||
351 | don't. */ | ||
352 | #undef HAVE_DECL_SHUT_RD | ||
353 | |||
354 | /* Define to 1 if you have the declaration of `writev', and to 0 if you don't. | ||
355 | */ | ||
356 | #undef HAVE_DECL_WRITEV | ||
357 | |||
358 | /* Define to 1 if you have the declaration of `_getlong', and to 0 if you | ||
359 | don't. */ | ||
360 | #undef HAVE_DECL__GETLONG | ||
361 | |||
362 | /* Define to 1 if you have the declaration of `_getshort', and to 0 if you | ||
363 | don't. */ | ||
364 | #undef HAVE_DECL__GETSHORT | ||
365 | |||
366 | /* Define to 1 if you have the `DES_crypt' function. */ | ||
367 | #undef HAVE_DES_CRYPT | ||
368 | |||
369 | /* Define if you have /dev/ptmx */ | ||
370 | #undef HAVE_DEV_PTMX | ||
371 | |||
372 | /* Define if you have /dev/ptc */ | ||
373 | #undef HAVE_DEV_PTS_AND_PTC | ||
374 | |||
375 | /* Define to 1 if you have the <dirent.h> header file. */ | ||
376 | #undef HAVE_DIRENT_H | ||
377 | |||
378 | /* Define to 1 if you have the `dirfd' function. */ | ||
379 | #undef HAVE_DIRFD | ||
380 | |||
381 | /* Define to 1 if you have the `dirname' function. */ | ||
382 | #undef HAVE_DIRNAME | ||
383 | |||
384 | /* Define to 1 if you have the `DSA_generate_parameters_ex' function. */ | ||
385 | #undef HAVE_DSA_GENERATE_PARAMETERS_EX | ||
386 | |||
387 | /* Define to 1 if you have the <elf.h> header file. */ | ||
388 | #undef HAVE_ELF_H | ||
389 | |||
390 | /* Define to 1 if you have the `endgrent' function. */ | ||
391 | #undef HAVE_ENDGRENT | ||
392 | |||
393 | /* Define to 1 if you have the <endian.h> header file. */ | ||
394 | #undef HAVE_ENDIAN_H | ||
395 | |||
396 | /* Define to 1 if you have the `endutent' function. */ | ||
397 | #undef HAVE_ENDUTENT | ||
398 | |||
399 | /* Define to 1 if you have the `endutxent' function. */ | ||
400 | #undef HAVE_ENDUTXENT | ||
401 | |||
402 | /* Define if your system has /etc/default/login */ | ||
403 | #undef HAVE_ETC_DEFAULT_LOGIN | ||
404 | |||
405 | /* Define if libcrypto has EVP_CIPHER_CTX_ctrl */ | ||
406 | #undef HAVE_EVP_CIPHER_CTX_CTRL | ||
407 | |||
408 | /* Define to 1 if you have the `EVP_DigestFinal_ex' function. */ | ||
409 | #undef HAVE_EVP_DIGESTFINAL_EX | ||
410 | |||
411 | /* Define to 1 if you have the `EVP_DigestInit_ex' function. */ | ||
412 | #undef HAVE_EVP_DIGESTINIT_EX | ||
413 | |||
414 | /* Define to 1 if you have the `EVP_MD_CTX_cleanup' function. */ | ||
415 | #undef HAVE_EVP_MD_CTX_CLEANUP | ||
416 | |||
417 | /* Define to 1 if you have the `EVP_MD_CTX_copy_ex' function. */ | ||
418 | #undef HAVE_EVP_MD_CTX_COPY_EX | ||
419 | |||
420 | /* Define to 1 if you have the `EVP_MD_CTX_init' function. */ | ||
421 | #undef HAVE_EVP_MD_CTX_INIT | ||
422 | |||
423 | /* Define to 1 if you have the `EVP_ripemd160' function. */ | ||
424 | #undef HAVE_EVP_RIPEMD160 | ||
425 | |||
426 | /* Define to 1 if you have the `EVP_sha256' function. */ | ||
427 | #undef HAVE_EVP_SHA256 | ||
428 | |||
429 | /* Define if you have ut_exit in utmp.h */ | ||
430 | #undef HAVE_EXIT_IN_UTMP | ||
431 | |||
432 | /* Define to 1 if you have the `explicit_bzero' function. */ | ||
433 | #undef HAVE_EXPLICIT_BZERO | ||
434 | |||
435 | /* Define to 1 if you have the `fchmod' function. */ | ||
436 | #undef HAVE_FCHMOD | ||
437 | |||
438 | /* Define to 1 if you have the `fchown' function. */ | ||
439 | #undef HAVE_FCHOWN | ||
440 | |||
441 | /* Use F_CLOSEM fcntl for closefrom */ | ||
442 | #undef HAVE_FCNTL_CLOSEM | ||
443 | |||
444 | /* Define to 1 if you have the <fcntl.h> header file. */ | ||
445 | #undef HAVE_FCNTL_H | ||
446 | |||
447 | /* Define to 1 if the system has the type `fd_mask'. */ | ||
448 | #undef HAVE_FD_MASK | ||
449 | |||
450 | /* Define to 1 if you have the <features.h> header file. */ | ||
451 | #undef HAVE_FEATURES_H | ||
452 | |||
453 | /* Define to 1 if you have the <floatingpoint.h> header file. */ | ||
454 | #undef HAVE_FLOATINGPOINT_H | ||
455 | |||
456 | /* Define to 1 if you have the `fmt_scaled' function. */ | ||
457 | #undef HAVE_FMT_SCALED | ||
458 | |||
459 | /* Define to 1 if you have the `freeaddrinfo' function. */ | ||
460 | #undef HAVE_FREEADDRINFO | ||
461 | |||
462 | /* Define to 1 if the system has the type `fsblkcnt_t'. */ | ||
463 | #undef HAVE_FSBLKCNT_T | ||
464 | |||
465 | /* Define to 1 if the system has the type `fsfilcnt_t'. */ | ||
466 | #undef HAVE_FSFILCNT_T | ||
467 | |||
468 | /* Define to 1 if you have the `fstatfs' function. */ | ||
469 | #undef HAVE_FSTATFS | ||
470 | |||
471 | /* Define to 1 if you have the `fstatvfs' function. */ | ||
472 | #undef HAVE_FSTATVFS | ||
473 | |||
474 | /* Define to 1 if you have the `futimes' function. */ | ||
475 | #undef HAVE_FUTIMES | ||
476 | |||
477 | /* Define to 1 if you have the `gai_strerror' function. */ | ||
478 | #undef HAVE_GAI_STRERROR | ||
479 | |||
480 | /* Define to 1 if you have the `getaddrinfo' function. */ | ||
481 | #undef HAVE_GETADDRINFO | ||
482 | |||
483 | /* Define to 1 if you have the `getaudit' function. */ | ||
484 | #undef HAVE_GETAUDIT | ||
485 | |||
486 | /* Define to 1 if you have the `getaudit_addr' function. */ | ||
487 | #undef HAVE_GETAUDIT_ADDR | ||
488 | |||
489 | /* Define to 1 if you have the `getcwd' function. */ | ||
490 | #undef HAVE_GETCWD | ||
491 | |||
492 | /* Define to 1 if you have the `getgrouplist' function. */ | ||
493 | #undef HAVE_GETGROUPLIST | ||
494 | |||
495 | /* Define to 1 if you have the `getgrset' function. */ | ||
496 | #undef HAVE_GETGRSET | ||
497 | |||
498 | /* Define to 1 if you have the `getlastlogxbyname' function. */ | ||
499 | #undef HAVE_GETLASTLOGXBYNAME | ||
500 | |||
501 | /* Define to 1 if you have the `getluid' function. */ | ||
502 | #undef HAVE_GETLUID | ||
503 | |||
504 | /* Define to 1 if you have the `getnameinfo' function. */ | ||
505 | #undef HAVE_GETNAMEINFO | ||
506 | |||
507 | /* Define to 1 if you have the `getopt' function. */ | ||
508 | #undef HAVE_GETOPT | ||
509 | |||
510 | /* Define to 1 if you have the <getopt.h> header file. */ | ||
511 | #undef HAVE_GETOPT_H | ||
512 | |||
513 | /* Define if your getopt(3) defines and uses optreset */ | ||
514 | #undef HAVE_GETOPT_OPTRESET | ||
515 | |||
516 | /* Define if your libraries define getpagesize() */ | ||
517 | #undef HAVE_GETPAGESIZE | ||
518 | |||
519 | /* Define to 1 if you have the `getpeereid' function. */ | ||
520 | #undef HAVE_GETPEEREID | ||
521 | |||
522 | /* Define to 1 if you have the `getpeerucred' function. */ | ||
523 | #undef HAVE_GETPEERUCRED | ||
524 | |||
525 | /* Define to 1 if you have the `getpgid' function. */ | ||
526 | #undef HAVE_GETPGID | ||
527 | |||
528 | /* Define to 1 if you have the `getpgrp' function. */ | ||
529 | #undef HAVE_GETPGRP | ||
530 | |||
531 | /* Define to 1 if you have the `getpwanam' function. */ | ||
532 | #undef HAVE_GETPWANAM | ||
533 | |||
534 | /* Define to 1 if you have the `getrlimit' function. */ | ||
535 | #undef HAVE_GETRLIMIT | ||
536 | |||
537 | /* Define if getrrsetbyname() exists */ | ||
538 | #undef HAVE_GETRRSETBYNAME | ||
539 | |||
540 | /* Define to 1 if you have the `getrusage' function. */ | ||
541 | #undef HAVE_GETRUSAGE | ||
542 | |||
543 | /* Define to 1 if you have the `getseuserbyname' function. */ | ||
544 | #undef HAVE_GETSEUSERBYNAME | ||
545 | |||
546 | /* Define to 1 if you have the `gettimeofday' function. */ | ||
547 | #undef HAVE_GETTIMEOFDAY | ||
548 | |||
549 | /* Define to 1 if you have the `getttyent' function. */ | ||
550 | #undef HAVE_GETTTYENT | ||
551 | |||
552 | /* Define to 1 if you have the `getutent' function. */ | ||
553 | #undef HAVE_GETUTENT | ||
554 | |||
555 | /* Define to 1 if you have the `getutid' function. */ | ||
556 | #undef HAVE_GETUTID | ||
557 | |||
558 | /* Define to 1 if you have the `getutline' function. */ | ||
559 | #undef HAVE_GETUTLINE | ||
560 | |||
561 | /* Define to 1 if you have the `getutxent' function. */ | ||
562 | #undef HAVE_GETUTXENT | ||
563 | |||
564 | /* Define to 1 if you have the `getutxid' function. */ | ||
565 | #undef HAVE_GETUTXID | ||
566 | |||
567 | /* Define to 1 if you have the `getutxline' function. */ | ||
568 | #undef HAVE_GETUTXLINE | ||
569 | |||
570 | /* Define to 1 if you have the `getutxuser' function. */ | ||
571 | #undef HAVE_GETUTXUSER | ||
572 | |||
573 | /* Define to 1 if you have the `get_default_context_with_level' function. */ | ||
574 | #undef HAVE_GET_DEFAULT_CONTEXT_WITH_LEVEL | ||
575 | |||
576 | /* Define to 1 if you have the `glob' function. */ | ||
577 | #undef HAVE_GLOB | ||
578 | |||
579 | /* Define to 1 if you have the <glob.h> header file. */ | ||
580 | #undef HAVE_GLOB_H | ||
581 | |||
582 | /* Define to 1 if you have the `group_from_gid' function. */ | ||
583 | #undef HAVE_GROUP_FROM_GID | ||
584 | |||
585 | /* Define to 1 if you have the <gssapi_generic.h> header file. */ | ||
586 | #undef HAVE_GSSAPI_GENERIC_H | ||
587 | |||
588 | /* Define to 1 if you have the <gssapi/gssapi_generic.h> header file. */ | ||
589 | #undef HAVE_GSSAPI_GSSAPI_GENERIC_H | ||
590 | |||
591 | /* Define to 1 if you have the <gssapi/gssapi.h> header file. */ | ||
592 | #undef HAVE_GSSAPI_GSSAPI_H | ||
593 | |||
594 | /* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */ | ||
595 | #undef HAVE_GSSAPI_GSSAPI_KRB5_H | ||
596 | |||
597 | /* Define to 1 if you have the <gssapi.h> header file. */ | ||
598 | #undef HAVE_GSSAPI_H | ||
599 | |||
600 | /* Define to 1 if you have the <gssapi_krb5.h> header file. */ | ||
601 | #undef HAVE_GSSAPI_KRB5_H | ||
602 | |||
603 | /* Define if HEADER.ad exists in arpa/nameser.h */ | ||
604 | #undef HAVE_HEADER_AD | ||
605 | |||
606 | /* Define to 1 if you have the `HMAC_CTX_init' function. */ | ||
607 | #undef HAVE_HMAC_CTX_INIT | ||
608 | |||
609 | /* Define if you have ut_host in utmp.h */ | ||
610 | #undef HAVE_HOST_IN_UTMP | ||
611 | |||
612 | /* Define if you have ut_host in utmpx.h */ | ||
613 | #undef HAVE_HOST_IN_UTMPX | ||
614 | |||
615 | /* Define to 1 if you have the <iaf.h> header file. */ | ||
616 | #undef HAVE_IAF_H | ||
617 | |||
618 | /* Define to 1 if you have the <ia.h> header file. */ | ||
619 | #undef HAVE_IA_H | ||
620 | |||
621 | /* Define if you have ut_id in utmp.h */ | ||
622 | #undef HAVE_ID_IN_UTMP | ||
623 | |||
624 | /* Define if you have ut_id in utmpx.h */ | ||
625 | #undef HAVE_ID_IN_UTMPX | ||
626 | |||
627 | /* Define to 1 if you have the `inet_aton' function. */ | ||
628 | #undef HAVE_INET_ATON | ||
629 | |||
630 | /* Define to 1 if you have the `inet_ntoa' function. */ | ||
631 | #undef HAVE_INET_NTOA | ||
632 | |||
633 | /* Define to 1 if you have the `inet_ntop' function. */ | ||
634 | #undef HAVE_INET_NTOP | ||
635 | |||
636 | /* Define to 1 if you have the `innetgr' function. */ | ||
637 | #undef HAVE_INNETGR | ||
638 | |||
639 | /* define if you have int64_t data type */ | ||
640 | #undef HAVE_INT64_T | ||
641 | |||
642 | /* Define to 1 if the system has the type `intmax_t'. */ | ||
643 | #undef HAVE_INTMAX_T | ||
644 | |||
645 | /* Define to 1 if you have the <inttypes.h> header file. */ | ||
646 | #undef HAVE_INTTYPES_H | ||
647 | |||
648 | /* define if you have intxx_t data type */ | ||
649 | #undef HAVE_INTXX_T | ||
650 | |||
651 | /* Define to 1 if the system has the type `in_addr_t'. */ | ||
652 | #undef HAVE_IN_ADDR_T | ||
653 | |||
654 | /* Define to 1 if the system has the type `in_port_t'. */ | ||
655 | #undef HAVE_IN_PORT_T | ||
656 | |||
657 | /* Define if you have isblank(3C). */ | ||
658 | #undef HAVE_ISBLANK | ||
659 | |||
660 | /* Define to 1 if you have the `krb5_cc_new_unique' function. */ | ||
661 | #undef HAVE_KRB5_CC_NEW_UNIQUE | ||
662 | |||
663 | /* Define to 1 if you have the `krb5_free_error_message' function. */ | ||
664 | #undef HAVE_KRB5_FREE_ERROR_MESSAGE | ||
665 | |||
666 | /* Define to 1 if you have the `krb5_get_error_message' function. */ | ||
667 | #undef HAVE_KRB5_GET_ERROR_MESSAGE | ||
668 | |||
669 | /* Define to 1 if you have the <lastlog.h> header file. */ | ||
670 | #undef HAVE_LASTLOG_H | ||
671 | |||
672 | /* Define if you want ldns support */ | ||
673 | #undef HAVE_LDNS | ||
674 | |||
675 | /* Define to 1 if you have the <libaudit.h> header file. */ | ||
676 | #undef HAVE_LIBAUDIT_H | ||
677 | |||
678 | /* Define to 1 if you have the `bsm' library (-lbsm). */ | ||
679 | #undef HAVE_LIBBSM | ||
680 | |||
681 | /* Define to 1 if you have the `crypt' library (-lcrypt). */ | ||
682 | #undef HAVE_LIBCRYPT | ||
683 | |||
684 | /* Define to 1 if you have the `dl' library (-ldl). */ | ||
685 | #undef HAVE_LIBDL | ||
686 | |||
687 | /* Define to 1 if you have the <libgen.h> header file. */ | ||
688 | #undef HAVE_LIBGEN_H | ||
689 | |||
690 | /* Define if system has libiaf that supports set_id */ | ||
691 | #undef HAVE_LIBIAF | ||
692 | |||
693 | /* Define to 1 if you have the `network' library (-lnetwork). */ | ||
694 | #undef HAVE_LIBNETWORK | ||
695 | |||
696 | /* Define to 1 if you have the `nsl' library (-lnsl). */ | ||
697 | #undef HAVE_LIBNSL | ||
698 | |||
699 | /* Define to 1 if you have the `pam' library (-lpam). */ | ||
700 | #undef HAVE_LIBPAM | ||
701 | |||
702 | /* Define to 1 if you have the `socket' library (-lsocket). */ | ||
703 | #undef HAVE_LIBSOCKET | ||
704 | |||
705 | /* Define to 1 if you have the <libutil.h> header file. */ | ||
706 | #undef HAVE_LIBUTIL_H | ||
707 | |||
708 | /* Define to 1 if you have the `xnet' library (-lxnet). */ | ||
709 | #undef HAVE_LIBXNET | ||
710 | |||
711 | /* Define to 1 if you have the `z' library (-lz). */ | ||
712 | #undef HAVE_LIBZ | ||
713 | |||
714 | /* Define to 1 if you have the <limits.h> header file. */ | ||
715 | #undef HAVE_LIMITS_H | ||
716 | |||
717 | /* Define to 1 if you have the <linux/audit.h> header file. */ | ||
718 | #undef HAVE_LINUX_AUDIT_H | ||
719 | |||
720 | /* Define to 1 if you have the <linux/filter.h> header file. */ | ||
721 | #undef HAVE_LINUX_FILTER_H | ||
722 | |||
723 | /* Define to 1 if you have the <linux/if_tun.h> header file. */ | ||
724 | #undef HAVE_LINUX_IF_TUN_H | ||
725 | |||
726 | /* Define to 1 if you have the <linux/seccomp.h> header file. */ | ||
727 | #undef HAVE_LINUX_SECCOMP_H | ||
728 | |||
729 | /* Define to 1 if you have the <locale.h> header file. */ | ||
730 | #undef HAVE_LOCALE_H | ||
731 | |||
732 | /* Define to 1 if you have the `login' function. */ | ||
733 | #undef HAVE_LOGIN | ||
734 | |||
735 | /* Define to 1 if you have the <login_cap.h> header file. */ | ||
736 | #undef HAVE_LOGIN_CAP_H | ||
737 | |||
738 | /* Define to 1 if you have the `login_getcapbool' function. */ | ||
739 | #undef HAVE_LOGIN_GETCAPBOOL | ||
740 | |||
741 | /* Define to 1 if you have the <login.h> header file. */ | ||
742 | #undef HAVE_LOGIN_H | ||
743 | |||
744 | /* Define to 1 if you have the `logout' function. */ | ||
745 | #undef HAVE_LOGOUT | ||
746 | |||
747 | /* Define to 1 if you have the `logwtmp' function. */ | ||
748 | #undef HAVE_LOGWTMP | ||
749 | |||
750 | /* Define to 1 if the system has the type `long double'. */ | ||
751 | #undef HAVE_LONG_DOUBLE | ||
752 | |||
753 | /* Define to 1 if the system has the type `long long'. */ | ||
754 | #undef HAVE_LONG_LONG | ||
755 | |||
756 | /* Define to 1 if you have the <maillock.h> header file. */ | ||
757 | #undef HAVE_MAILLOCK_H | ||
758 | |||
759 | /* Define to 1 if you have the `mblen' function. */ | ||
760 | #undef HAVE_MBLEN | ||
761 | |||
762 | /* Define to 1 if you have the `md5_crypt' function. */ | ||
763 | #undef HAVE_MD5_CRYPT | ||
764 | |||
765 | /* Define if you want to allow MD5 passwords */ | ||
766 | #undef HAVE_MD5_PASSWORDS | ||
767 | |||
768 | /* Define to 1 if you have the `memmove' function. */ | ||
769 | #undef HAVE_MEMMOVE | ||
770 | |||
771 | /* Define to 1 if you have the <memory.h> header file. */ | ||
772 | #undef HAVE_MEMORY_H | ||
773 | |||
774 | /* Define to 1 if you have the `memset_s' function. */ | ||
775 | #undef HAVE_MEMSET_S | ||
776 | |||
777 | /* Define to 1 if you have the `mkdtemp' function. */ | ||
778 | #undef HAVE_MKDTEMP | ||
779 | |||
780 | /* Define to 1 if you have the `mmap' function. */ | ||
781 | #undef HAVE_MMAP | ||
782 | |||
783 | /* define if you have mode_t data type */ | ||
784 | #undef HAVE_MODE_T | ||
785 | |||
786 | /* Some systems put nanosleep outside of libc */ | ||
787 | #undef HAVE_NANOSLEEP | ||
788 | |||
789 | /* Define to 1 if you have the <ndir.h> header file. */ | ||
790 | #undef HAVE_NDIR_H | ||
791 | |||
792 | /* Define to 1 if you have the <netdb.h> header file. */ | ||
793 | #undef HAVE_NETDB_H | ||
794 | |||
795 | /* Define to 1 if you have the <netgroup.h> header file. */ | ||
796 | #undef HAVE_NETGROUP_H | ||
797 | |||
798 | /* Define to 1 if you have the <net/if_tun.h> header file. */ | ||
799 | #undef HAVE_NET_IF_TUN_H | ||
800 | |||
801 | /* Define if you are on NeXT */ | ||
802 | #undef HAVE_NEXT | ||
803 | |||
804 | /* Define to 1 if you have the `ngetaddrinfo' function. */ | ||
805 | #undef HAVE_NGETADDRINFO | ||
806 | |||
807 | /* Define to 1 if you have the `nsleep' function. */ | ||
808 | #undef HAVE_NSLEEP | ||
809 | |||
810 | /* Define to 1 if you have the `ogetaddrinfo' function. */ | ||
811 | #undef HAVE_OGETADDRINFO | ||
812 | |||
813 | /* Define if you have an old version of PAM which takes only one argument to | ||
814 | pam_strerror */ | ||
815 | #undef HAVE_OLD_PAM | ||
816 | |||
817 | /* Define to 1 if you have the `openlog_r' function. */ | ||
818 | #undef HAVE_OPENLOG_R | ||
819 | |||
820 | /* Define to 1 if you have the `openpty' function. */ | ||
821 | #undef HAVE_OPENPTY | ||
822 | |||
823 | /* Define if your ssl headers are included with #include <openssl/header.h> */ | ||
824 | #undef HAVE_OPENSSL | ||
825 | |||
826 | /* Define if you have Digital Unix Security Integration Architecture */ | ||
827 | #undef HAVE_OSF_SIA | ||
828 | |||
829 | /* Define to 1 if you have the `pam_getenvlist' function. */ | ||
830 | #undef HAVE_PAM_GETENVLIST | ||
831 | |||
832 | /* Define to 1 if you have the <pam/pam_appl.h> header file. */ | ||
833 | #undef HAVE_PAM_PAM_APPL_H | ||
834 | |||
835 | /* Define to 1 if you have the `pam_putenv' function. */ | ||
836 | #undef HAVE_PAM_PUTENV | ||
837 | |||
838 | /* Define to 1 if you have the <paths.h> header file. */ | ||
839 | #undef HAVE_PATHS_H | ||
840 | |||
841 | /* Define if you have ut_pid in utmp.h */ | ||
842 | #undef HAVE_PID_IN_UTMP | ||
843 | |||
844 | /* define if you have pid_t data type */ | ||
845 | #undef HAVE_PID_T | ||
846 | |||
847 | /* Define to 1 if you have the `poll' function. */ | ||
848 | #undef HAVE_POLL | ||
849 | |||
850 | /* Define to 1 if you have the <poll.h> header file. */ | ||
851 | #undef HAVE_POLL_H | ||
852 | |||
853 | /* Define to 1 if you have the `prctl' function. */ | ||
854 | #undef HAVE_PRCTL | ||
855 | |||
856 | /* Define if you have /proc/$pid/fd */ | ||
857 | #undef HAVE_PROC_PID | ||
858 | |||
859 | /* Define to 1 if you have the `pstat' function. */ | ||
860 | #undef HAVE_PSTAT | ||
861 | |||
862 | /* Define to 1 if you have the <pty.h> header file. */ | ||
863 | #undef HAVE_PTY_H | ||
864 | |||
865 | /* Define to 1 if you have the `pututline' function. */ | ||
866 | #undef HAVE_PUTUTLINE | ||
867 | |||
868 | /* Define to 1 if you have the `pututxline' function. */ | ||
869 | #undef HAVE_PUTUTXLINE | ||
870 | |||
871 | /* Define to 1 if you have the `readpassphrase' function. */ | ||
872 | #undef HAVE_READPASSPHRASE | ||
873 | |||
874 | /* Define to 1 if you have the <readpassphrase.h> header file. */ | ||
875 | #undef HAVE_READPASSPHRASE_H | ||
876 | |||
877 | /* Define to 1 if you have the `realpath' function. */ | ||
878 | #undef HAVE_REALPATH | ||
879 | |||
880 | /* Define to 1 if you have the `recvmsg' function. */ | ||
881 | #undef HAVE_RECVMSG | ||
882 | |||
883 | /* sys/resource.h has RLIMIT_NPROC */ | ||
884 | #undef HAVE_RLIMIT_NPROC | ||
885 | |||
886 | /* Define to 1 if you have the <rpc/types.h> header file. */ | ||
887 | #undef HAVE_RPC_TYPES_H | ||
888 | |||
889 | /* Define to 1 if you have the `rresvport_af' function. */ | ||
890 | #undef HAVE_RRESVPORT_AF | ||
891 | |||
892 | /* Define to 1 if you have the `RSA_generate_key_ex' function. */ | ||
893 | #undef HAVE_RSA_GENERATE_KEY_EX | ||
894 | |||
895 | /* Define to 1 if you have the `RSA_get_default_method' function. */ | ||
896 | #undef HAVE_RSA_GET_DEFAULT_METHOD | ||
897 | |||
898 | /* Define to 1 if you have the <sandbox.h> header file. */ | ||
899 | #undef HAVE_SANDBOX_H | ||
900 | |||
901 | /* Define to 1 if you have the `sandbox_init' function. */ | ||
902 | #undef HAVE_SANDBOX_INIT | ||
903 | |||
904 | /* define if you have sa_family_t data type */ | ||
905 | #undef HAVE_SA_FAMILY_T | ||
906 | |||
907 | /* Define to 1 if you have the `scan_scaled' function. */ | ||
908 | #undef HAVE_SCAN_SCALED | ||
909 | |||
910 | /* Define if you have SecureWare-based protected password database */ | ||
911 | #undef HAVE_SECUREWARE | ||
912 | |||
913 | /* Define to 1 if you have the <security/pam_appl.h> header file. */ | ||
914 | #undef HAVE_SECURITY_PAM_APPL_H | ||
915 | |||
916 | /* Define to 1 if you have the `sendmsg' function. */ | ||
917 | #undef HAVE_SENDMSG | ||
918 | |||
919 | /* Define to 1 if you have the `setauthdb' function. */ | ||
920 | #undef HAVE_SETAUTHDB | ||
921 | |||
922 | /* Define to 1 if you have the `setdtablesize' function. */ | ||
923 | #undef HAVE_SETDTABLESIZE | ||
924 | |||
925 | /* Define to 1 if you have the `setegid' function. */ | ||
926 | #undef HAVE_SETEGID | ||
927 | |||
928 | /* Define to 1 if you have the `setenv' function. */ | ||
929 | #undef HAVE_SETENV | ||
930 | |||
931 | /* Define to 1 if you have the `seteuid' function. */ | ||
932 | #undef HAVE_SETEUID | ||
933 | |||
934 | /* Define to 1 if you have the `setgroupent' function. */ | ||
935 | #undef HAVE_SETGROUPENT | ||
936 | |||
937 | /* Define to 1 if you have the `setgroups' function. */ | ||
938 | #undef HAVE_SETGROUPS | ||
939 | |||
940 | /* Define to 1 if you have the `setlinebuf' function. */ | ||
941 | #undef HAVE_SETLINEBUF | ||
942 | |||
943 | /* Define to 1 if you have the `setlogin' function. */ | ||
944 | #undef HAVE_SETLOGIN | ||
945 | |||
946 | /* Define to 1 if you have the `setluid' function. */ | ||
947 | #undef HAVE_SETLUID | ||
948 | |||
949 | /* Define to 1 if you have the `setpassent' function. */ | ||
950 | #undef HAVE_SETPASSENT | ||
951 | |||
952 | /* Define to 1 if you have the `setpcred' function. */ | ||
953 | #undef HAVE_SETPCRED | ||
954 | |||
955 | /* Define to 1 if you have the `setproctitle' function. */ | ||
956 | #undef HAVE_SETPROCTITLE | ||
957 | |||
958 | /* Define to 1 if you have the `setregid' function. */ | ||
959 | #undef HAVE_SETREGID | ||
960 | |||
961 | /* Define to 1 if you have the `setresgid' function. */ | ||
962 | #undef HAVE_SETRESGID | ||
963 | |||
964 | /* Define to 1 if you have the `setresuid' function. */ | ||
965 | #undef HAVE_SETRESUID | ||
966 | |||
967 | /* Define to 1 if you have the `setreuid' function. */ | ||
968 | #undef HAVE_SETREUID | ||
969 | |||
970 | /* Define to 1 if you have the `setrlimit' function. */ | ||
971 | #undef HAVE_SETRLIMIT | ||
972 | |||
973 | /* Define to 1 if you have the `setsid' function. */ | ||
974 | #undef HAVE_SETSID | ||
975 | |||
976 | /* Define to 1 if you have the `setutent' function. */ | ||
977 | #undef HAVE_SETUTENT | ||
978 | |||
979 | /* Define to 1 if you have the `setutxdb' function. */ | ||
980 | #undef HAVE_SETUTXDB | ||
981 | |||
982 | /* Define to 1 if you have the `setutxent' function. */ | ||
983 | #undef HAVE_SETUTXENT | ||
984 | |||
985 | /* Define to 1 if you have the `setvbuf' function. */ | ||
986 | #undef HAVE_SETVBUF | ||
987 | |||
988 | /* Define to 1 if you have the `set_id' function. */ | ||
989 | #undef HAVE_SET_ID | ||
990 | |||
991 | /* Define to 1 if you have the `SHA256_Update' function. */ | ||
992 | #undef HAVE_SHA256_UPDATE | ||
993 | |||
994 | /* Define to 1 if you have the <sha2.h> header file. */ | ||
995 | #undef HAVE_SHA2_H | ||
996 | |||
997 | /* Define to 1 if you have the <shadow.h> header file. */ | ||
998 | #undef HAVE_SHADOW_H | ||
999 | |||
1000 | /* Define to 1 if you have the `sigaction' function. */ | ||
1001 | #undef HAVE_SIGACTION | ||
1002 | |||
1003 | /* Define to 1 if you have the `sigvec' function. */ | ||
1004 | #undef HAVE_SIGVEC | ||
1005 | |||
1006 | /* Define to 1 if the system has the type `sig_atomic_t'. */ | ||
1007 | #undef HAVE_SIG_ATOMIC_T | ||
1008 | |||
1009 | /* define if you have size_t data type */ | ||
1010 | #undef HAVE_SIZE_T | ||
1011 | |||
1012 | /* Define to 1 if you have the `snprintf' function. */ | ||
1013 | #undef HAVE_SNPRINTF | ||
1014 | |||
1015 | /* Define to 1 if you have the `socketpair' function. */ | ||
1016 | #undef HAVE_SOCKETPAIR | ||
1017 | |||
1018 | /* Have PEERCRED socket option */ | ||
1019 | #undef HAVE_SO_PEERCRED | ||
1020 | |||
1021 | /* define if you have ssize_t data type */ | ||
1022 | #undef HAVE_SSIZE_T | ||
1023 | |||
1024 | /* Fields in struct sockaddr_storage */ | ||
1025 | #undef HAVE_SS_FAMILY_IN_SS | ||
1026 | |||
1027 | /* Define to 1 if you have the `statfs' function. */ | ||
1028 | #undef HAVE_STATFS | ||
1029 | |||
1030 | /* Define to 1 if you have the `statvfs' function. */ | ||
1031 | #undef HAVE_STATVFS | ||
1032 | |||
1033 | /* Define to 1 if you have the <stddef.h> header file. */ | ||
1034 | #undef HAVE_STDDEF_H | ||
1035 | |||
1036 | /* Define to 1 if you have the <stdint.h> header file. */ | ||
1037 | #undef HAVE_STDINT_H | ||
1038 | |||
1039 | /* Define to 1 if you have the <stdlib.h> header file. */ | ||
1040 | #undef HAVE_STDLIB_H | ||
1041 | |||
1042 | /* Define to 1 if you have the `strdup' function. */ | ||
1043 | #undef HAVE_STRDUP | ||
1044 | |||
1045 | /* Define to 1 if you have the `strerror' function. */ | ||
1046 | #undef HAVE_STRERROR | ||
1047 | |||
1048 | /* Define to 1 if you have the `strftime' function. */ | ||
1049 | #undef HAVE_STRFTIME | ||
1050 | |||
1051 | /* Silly mkstemp() */ | ||
1052 | #undef HAVE_STRICT_MKSTEMP | ||
1053 | |||
1054 | /* Define to 1 if you have the <strings.h> header file. */ | ||
1055 | #undef HAVE_STRINGS_H | ||
1056 | |||
1057 | /* Define to 1 if you have the <string.h> header file. */ | ||
1058 | #undef HAVE_STRING_H | ||
1059 | |||
1060 | /* Define to 1 if you have the `strlcat' function. */ | ||
1061 | #undef HAVE_STRLCAT | ||
1062 | |||
1063 | /* Define to 1 if you have the `strlcpy' function. */ | ||
1064 | #undef HAVE_STRLCPY | ||
1065 | |||
1066 | /* Define to 1 if you have the `strmode' function. */ | ||
1067 | #undef HAVE_STRMODE | ||
1068 | |||
1069 | /* Define to 1 if you have the `strnlen' function. */ | ||
1070 | #undef HAVE_STRNLEN | ||
1071 | |||
1072 | /* Define to 1 if you have the `strnvis' function. */ | ||
1073 | #undef HAVE_STRNVIS | ||
1074 | |||
1075 | /* Define to 1 if you have the `strptime' function. */ | ||
1076 | #undef HAVE_STRPTIME | ||
1077 | |||
1078 | /* Define to 1 if you have the `strsep' function. */ | ||
1079 | #undef HAVE_STRSEP | ||
1080 | |||
1081 | /* Define to 1 if you have the `strtoll' function. */ | ||
1082 | #undef HAVE_STRTOLL | ||
1083 | |||
1084 | /* Define to 1 if you have the `strtonum' function. */ | ||
1085 | #undef HAVE_STRTONUM | ||
1086 | |||
1087 | /* Define to 1 if you have the `strtoul' function. */ | ||
1088 | #undef HAVE_STRTOUL | ||
1089 | |||
1090 | /* Define to 1 if you have the `strtoull' function. */ | ||
1091 | #undef HAVE_STRTOULL | ||
1092 | |||
1093 | /* define if you have struct addrinfo data type */ | ||
1094 | #undef HAVE_STRUCT_ADDRINFO | ||
1095 | |||
1096 | /* define if you have struct in6_addr data type */ | ||
1097 | #undef HAVE_STRUCT_IN6_ADDR | ||
1098 | |||
1099 | /* Define to 1 if `pw_change' is a member of `struct passwd'. */ | ||
1100 | #undef HAVE_STRUCT_PASSWD_PW_CHANGE | ||
1101 | |||
1102 | /* Define to 1 if `pw_class' is a member of `struct passwd'. */ | ||
1103 | #undef HAVE_STRUCT_PASSWD_PW_CLASS | ||
1104 | |||
1105 | /* Define to 1 if `pw_expire' is a member of `struct passwd'. */ | ||
1106 | #undef HAVE_STRUCT_PASSWD_PW_EXPIRE | ||
1107 | |||
1108 | /* Define to 1 if `pw_gecos' is a member of `struct passwd'. */ | ||
1109 | #undef HAVE_STRUCT_PASSWD_PW_GECOS | ||
1110 | |||
1111 | /* define if you have struct sockaddr_in6 data type */ | ||
1112 | #undef HAVE_STRUCT_SOCKADDR_IN6 | ||
1113 | |||
1114 | /* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */ | ||
1115 | #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID | ||
1116 | |||
1117 | /* define if you have struct sockaddr_storage data type */ | ||
1118 | #undef HAVE_STRUCT_SOCKADDR_STORAGE | ||
1119 | |||
1120 | /* Define to 1 if `st_blksize' is a member of `struct stat'. */ | ||
1121 | #undef HAVE_STRUCT_STAT_ST_BLKSIZE | ||
1122 | |||
1123 | /* Define to 1 if the system has the type `struct timespec'. */ | ||
1124 | #undef HAVE_STRUCT_TIMESPEC | ||
1125 | |||
1126 | /* define if you have struct timeval */ | ||
1127 | #undef HAVE_STRUCT_TIMEVAL | ||
1128 | |||
1129 | /* Define to 1 if you have the `swap32' function. */ | ||
1130 | #undef HAVE_SWAP32 | ||
1131 | |||
1132 | /* Define to 1 if you have the `sysconf' function. */ | ||
1133 | #undef HAVE_SYSCONF | ||
1134 | |||
1135 | /* Define if you have syslen in utmpx.h */ | ||
1136 | #undef HAVE_SYSLEN_IN_UTMPX | ||
1137 | |||
1138 | /* Define to 1 if you have the <sys/audit.h> header file. */ | ||
1139 | #undef HAVE_SYS_AUDIT_H | ||
1140 | |||
1141 | /* Define to 1 if you have the <sys/bitypes.h> header file. */ | ||
1142 | #undef HAVE_SYS_BITYPES_H | ||
1143 | |||
1144 | /* Define to 1 if you have the <sys/bsdtty.h> header file. */ | ||
1145 | #undef HAVE_SYS_BSDTTY_H | ||
1146 | |||
1147 | /* Define to 1 if you have the <sys/capability.h> header file. */ | ||
1148 | #undef HAVE_SYS_CAPABILITY_H | ||
1149 | |||
1150 | /* Define to 1 if you have the <sys/cdefs.h> header file. */ | ||
1151 | #undef HAVE_SYS_CDEFS_H | ||
1152 | |||
1153 | /* Define to 1 if you have the <sys/dir.h> header file. */ | ||
1154 | #undef HAVE_SYS_DIR_H | ||
1155 | |||
1156 | /* Define if your system defines sys_errlist[] */ | ||
1157 | #undef HAVE_SYS_ERRLIST | ||
1158 | |||
1159 | /* Define to 1 if you have the <sys/mman.h> header file. */ | ||
1160 | #undef HAVE_SYS_MMAN_H | ||
1161 | |||
1162 | /* Define to 1 if you have the <sys/mount.h> header file. */ | ||
1163 | #undef HAVE_SYS_MOUNT_H | ||
1164 | |||
1165 | /* Define to 1 if you have the <sys/ndir.h> header file. */ | ||
1166 | #undef HAVE_SYS_NDIR_H | ||
1167 | |||
1168 | /* Define if your system defines sys_nerr */ | ||
1169 | #undef HAVE_SYS_NERR | ||
1170 | |||
1171 | /* Define to 1 if you have the <sys/poll.h> header file. */ | ||
1172 | #undef HAVE_SYS_POLL_H | ||
1173 | |||
1174 | /* Define to 1 if you have the <sys/prctl.h> header file. */ | ||
1175 | #undef HAVE_SYS_PRCTL_H | ||
1176 | |||
1177 | /* Define to 1 if you have the <sys/pstat.h> header file. */ | ||
1178 | #undef HAVE_SYS_PSTAT_H | ||
1179 | |||
1180 | /* Define to 1 if you have the <sys/ptms.h> header file. */ | ||
1181 | #undef HAVE_SYS_PTMS_H | ||
1182 | |||
1183 | /* Define to 1 if you have the <sys/select.h> header file. */ | ||
1184 | #undef HAVE_SYS_SELECT_H | ||
1185 | |||
1186 | /* Define to 1 if you have the <sys/statvfs.h> header file. */ | ||
1187 | #undef HAVE_SYS_STATVFS_H | ||
1188 | |||
1189 | /* Define to 1 if you have the <sys/stat.h> header file. */ | ||
1190 | #undef HAVE_SYS_STAT_H | ||
1191 | |||
1192 | /* Define to 1 if you have the <sys/stream.h> header file. */ | ||
1193 | #undef HAVE_SYS_STREAM_H | ||
1194 | |||
1195 | /* Define to 1 if you have the <sys/stropts.h> header file. */ | ||
1196 | #undef HAVE_SYS_STROPTS_H | ||
1197 | |||
1198 | /* Define to 1 if you have the <sys/strtio.h> header file. */ | ||
1199 | #undef HAVE_SYS_STRTIO_H | ||
1200 | |||
1201 | /* Force use of sys/syslog.h on Ultrix */ | ||
1202 | #undef HAVE_SYS_SYSLOG_H | ||
1203 | |||
1204 | /* Define to 1 if you have the <sys/sysmacros.h> header file. */ | ||
1205 | #undef HAVE_SYS_SYSMACROS_H | ||
1206 | |||
1207 | /* Define to 1 if you have the <sys/timers.h> header file. */ | ||
1208 | #undef HAVE_SYS_TIMERS_H | ||
1209 | |||
1210 | /* Define to 1 if you have the <sys/time.h> header file. */ | ||
1211 | #undef HAVE_SYS_TIME_H | ||
1212 | |||
1213 | /* Define to 1 if you have the <sys/types.h> header file. */ | ||
1214 | #undef HAVE_SYS_TYPES_H | ||
1215 | |||
1216 | /* Define to 1 if you have the <sys/un.h> header file. */ | ||
1217 | #undef HAVE_SYS_UN_H | ||
1218 | |||
1219 | /* Define to 1 if you have the `tcgetpgrp' function. */ | ||
1220 | #undef HAVE_TCGETPGRP | ||
1221 | |||
1222 | /* Define to 1 if you have the `tcsendbreak' function. */ | ||
1223 | #undef HAVE_TCSENDBREAK | ||
1224 | |||
1225 | /* Define to 1 if you have the `time' function. */ | ||
1226 | #undef HAVE_TIME | ||
1227 | |||
1228 | /* Define to 1 if you have the <time.h> header file. */ | ||
1229 | #undef HAVE_TIME_H | ||
1230 | |||
1231 | /* Define if you have ut_time in utmp.h */ | ||
1232 | #undef HAVE_TIME_IN_UTMP | ||
1233 | |||
1234 | /* Define if you have ut_time in utmpx.h */ | ||
1235 | #undef HAVE_TIME_IN_UTMPX | ||
1236 | |||
1237 | /* Define to 1 if you have the `timingsafe_bcmp' function. */ | ||
1238 | #undef HAVE_TIMINGSAFE_BCMP | ||
1239 | |||
1240 | /* Define to 1 if you have the <tmpdir.h> header file. */ | ||
1241 | #undef HAVE_TMPDIR_H | ||
1242 | |||
1243 | /* Define to 1 if you have the `truncate' function. */ | ||
1244 | #undef HAVE_TRUNCATE | ||
1245 | |||
1246 | /* Define to 1 if you have the <ttyent.h> header file. */ | ||
1247 | #undef HAVE_TTYENT_H | ||
1248 | |||
1249 | /* Define if you have ut_tv in utmp.h */ | ||
1250 | #undef HAVE_TV_IN_UTMP | ||
1251 | |||
1252 | /* Define if you have ut_tv in utmpx.h */ | ||
1253 | #undef HAVE_TV_IN_UTMPX | ||
1254 | |||
1255 | /* Define if you have ut_type in utmp.h */ | ||
1256 | #undef HAVE_TYPE_IN_UTMP | ||
1257 | |||
1258 | /* Define if you have ut_type in utmpx.h */ | ||
1259 | #undef HAVE_TYPE_IN_UTMPX | ||
1260 | |||
1261 | /* Define to 1 if you have the <ucred.h> header file. */ | ||
1262 | #undef HAVE_UCRED_H | ||
1263 | |||
1264 | /* Define to 1 if the system has the type `uintmax_t'. */ | ||
1265 | #undef HAVE_UINTMAX_T | ||
1266 | |||
1267 | /* define if you have uintxx_t data type */ | ||
1268 | #undef HAVE_UINTXX_T | ||
1269 | |||
1270 | /* Define to 1 if you have the <unistd.h> header file. */ | ||
1271 | #undef HAVE_UNISTD_H | ||
1272 | |||
1273 | /* Define to 1 if you have the `unsetenv' function. */ | ||
1274 | #undef HAVE_UNSETENV | ||
1275 | |||
1276 | /* Define to 1 if the system has the type `unsigned long long'. */ | ||
1277 | #undef HAVE_UNSIGNED_LONG_LONG | ||
1278 | |||
1279 | /* Define to 1 if you have the `updwtmp' function. */ | ||
1280 | #undef HAVE_UPDWTMP | ||
1281 | |||
1282 | /* Define to 1 if you have the `updwtmpx' function. */ | ||
1283 | #undef HAVE_UPDWTMPX | ||
1284 | |||
1285 | /* Define to 1 if you have the <usersec.h> header file. */ | ||
1286 | #undef HAVE_USERSEC_H | ||
1287 | |||
1288 | /* Define to 1 if you have the `user_from_uid' function. */ | ||
1289 | #undef HAVE_USER_FROM_UID | ||
1290 | |||
1291 | /* Define to 1 if you have the `usleep' function. */ | ||
1292 | #undef HAVE_USLEEP | ||
1293 | |||
1294 | /* Define to 1 if you have the <util.h> header file. */ | ||
1295 | #undef HAVE_UTIL_H | ||
1296 | |||
1297 | /* Define to 1 if you have the `utimes' function. */ | ||
1298 | #undef HAVE_UTIMES | ||
1299 | |||
1300 | /* Define to 1 if you have the <utime.h> header file. */ | ||
1301 | #undef HAVE_UTIME_H | ||
1302 | |||
1303 | /* Define to 1 if you have the `utmpname' function. */ | ||
1304 | #undef HAVE_UTMPNAME | ||
1305 | |||
1306 | /* Define to 1 if you have the `utmpxname' function. */ | ||
1307 | #undef HAVE_UTMPXNAME | ||
1308 | |||
1309 | /* Define to 1 if you have the <utmpx.h> header file. */ | ||
1310 | #undef HAVE_UTMPX_H | ||
1311 | |||
1312 | /* Define to 1 if you have the <utmp.h> header file. */ | ||
1313 | #undef HAVE_UTMP_H | ||
1314 | |||
1315 | /* define if you have u_char data type */ | ||
1316 | #undef HAVE_U_CHAR | ||
1317 | |||
1318 | /* define if you have u_int data type */ | ||
1319 | #undef HAVE_U_INT | ||
1320 | |||
1321 | /* define if you have u_int64_t data type */ | ||
1322 | #undef HAVE_U_INT64_T | ||
1323 | |||
1324 | /* define if you have u_intxx_t data type */ | ||
1325 | #undef HAVE_U_INTXX_T | ||
1326 | |||
1327 | /* Define to 1 if you have the `vasprintf' function. */ | ||
1328 | #undef HAVE_VASPRINTF | ||
1329 | |||
1330 | /* Define if va_copy exists */ | ||
1331 | #undef HAVE_VA_COPY | ||
1332 | |||
1333 | /* Define to 1 if you have the <vis.h> header file. */ | ||
1334 | #undef HAVE_VIS_H | ||
1335 | |||
1336 | /* Define to 1 if you have the `vsnprintf' function. */ | ||
1337 | #undef HAVE_VSNPRINTF | ||
1338 | |||
1339 | /* Define to 1 if you have the `waitpid' function. */ | ||
1340 | #undef HAVE_WAITPID | ||
1341 | |||
1342 | /* Define to 1 if you have the `_getlong' function. */ | ||
1343 | #undef HAVE__GETLONG | ||
1344 | |||
1345 | /* Define to 1 if you have the `_getpty' function. */ | ||
1346 | #undef HAVE__GETPTY | ||
1347 | |||
1348 | /* Define to 1 if you have the `_getshort' function. */ | ||
1349 | #undef HAVE__GETSHORT | ||
1350 | |||
1351 | /* Define if you have struct __res_state _res as an extern */ | ||
1352 | #undef HAVE__RES_EXTERN | ||
1353 | |||
1354 | /* Define to 1 if you have the `__b64_ntop' function. */ | ||
1355 | #undef HAVE___B64_NTOP | ||
1356 | |||
1357 | /* Define to 1 if you have the `__b64_pton' function. */ | ||
1358 | #undef HAVE___B64_PTON | ||
1359 | |||
1360 | /* Define if compiler implements __FUNCTION__ */ | ||
1361 | #undef HAVE___FUNCTION__ | ||
1362 | |||
1363 | /* Define if libc defines __progname */ | ||
1364 | #undef HAVE___PROGNAME | ||
1365 | |||
1366 | /* Fields in struct sockaddr_storage */ | ||
1367 | #undef HAVE___SS_FAMILY_IN_SS | ||
1368 | |||
1369 | /* Define if __va_copy exists */ | ||
1370 | #undef HAVE___VA_COPY | ||
1371 | |||
1372 | /* Define if compiler implements __func__ */ | ||
1373 | #undef HAVE___func__ | ||
1374 | |||
1375 | /* Define this if you are using the Heimdal version of Kerberos V5 */ | ||
1376 | #undef HEIMDAL | ||
1377 | |||
1378 | /* Define if you need to use IP address instead of hostname in $DISPLAY */ | ||
1379 | #undef IPADDR_IN_DISPLAY | ||
1380 | |||
1381 | /* Detect IPv4 in IPv6 mapped addresses and treat as IPv4 */ | ||
1382 | #undef IPV4_IN_IPV6 | ||
1383 | |||
1384 | /* Define if your system choked on IP TOS setting */ | ||
1385 | #undef IP_TOS_IS_BROKEN | ||
1386 | |||
1387 | /* Define if you want Kerberos 5 support */ | ||
1388 | #undef KRB5 | ||
1389 | |||
1390 | /* Define if pututxline updates lastlog too */ | ||
1391 | #undef LASTLOG_WRITE_PUTUTXLINE | ||
1392 | |||
1393 | /* Define to whatever link() returns for "not supported" if it doesn't return | ||
1394 | EOPNOTSUPP. */ | ||
1395 | #undef LINK_OPNOTSUPP_ERRNO | ||
1396 | |||
1397 | /* Adjust Linux out-of-memory killer */ | ||
1398 | #undef LINUX_OOM_ADJUST | ||
1399 | |||
1400 | /* max value of long long calculated by configure */ | ||
1401 | #undef LLONG_MAX | ||
1402 | |||
1403 | /* min value of long long calculated by configure */ | ||
1404 | #undef LLONG_MIN | ||
1405 | |||
1406 | /* Account locked with pw(1) */ | ||
1407 | #undef LOCKED_PASSWD_PREFIX | ||
1408 | |||
1409 | /* String used in /etc/passwd to denote locked account */ | ||
1410 | #undef LOCKED_PASSWD_STRING | ||
1411 | |||
1412 | /* String used in /etc/passwd to denote locked account */ | ||
1413 | #undef LOCKED_PASSWD_SUBSTR | ||
1414 | |||
1415 | /* Some versions of /bin/login need the TERM supplied on the commandline */ | ||
1416 | #undef LOGIN_NEEDS_TERM | ||
1417 | |||
1418 | /* Some systems need a utmpx entry for /bin/login to work */ | ||
1419 | #undef LOGIN_NEEDS_UTMPX | ||
1420 | |||
1421 | /* Define if your login program cannot handle end of options ("--") */ | ||
1422 | #undef LOGIN_NO_ENDOPT | ||
1423 | |||
1424 | /* If your header files don't define LOGIN_PROGRAM, then use this (detected) | ||
1425 | from environment and PATH */ | ||
1426 | #undef LOGIN_PROGRAM_FALLBACK | ||
1427 | |||
1428 | /* Set this to your mail directory if you do not have _PATH_MAILDIR */ | ||
1429 | #undef MAIL_DIRECTORY | ||
1430 | |||
1431 | /* Need setpgrp to acquire controlling tty */ | ||
1432 | #undef NEED_SETPGRP | ||
1433 | |||
1434 | /* compiler does not accept __attribute__ on return types */ | ||
1435 | #undef NO_ATTRIBUTE_ON_RETURN_TYPE | ||
1436 | |||
1437 | /* Define if the concept of ports only accessible to superusers isn't known */ | ||
1438 | #undef NO_IPPORT_RESERVED_CONCEPT | ||
1439 | |||
1440 | /* Define if you don't want to use lastlog in session.c */ | ||
1441 | #undef NO_SSH_LASTLOG | ||
1442 | |||
1443 | /* Define if X11 doesn't support AF_UNIX sockets on that system */ | ||
1444 | #undef NO_X11_UNIX_SOCKETS | ||
1445 | |||
1446 | /* Define if EVP_DigestUpdate returns void */ | ||
1447 | #undef OPENSSL_EVP_DIGESTUPDATE_VOID | ||
1448 | |||
1449 | /* OpenSSL has ECC */ | ||
1450 | #undef OPENSSL_HAS_ECC | ||
1451 | |||
1452 | /* libcrypto has NID_X9_62_prime256v1 */ | ||
1453 | #undef OPENSSL_HAS_NISTP256 | ||
1454 | |||
1455 | /* libcrypto has NID_secp384r1 */ | ||
1456 | #undef OPENSSL_HAS_NISTP384 | ||
1457 | |||
1458 | /* libcrypto has NID_secp521r1 */ | ||
1459 | #undef OPENSSL_HAS_NISTP521 | ||
1460 | |||
1461 | /* libcrypto has EVP AES CTR */ | ||
1462 | #undef OPENSSL_HAVE_EVPCTR | ||
1463 | |||
1464 | /* libcrypto has EVP AES GCM */ | ||
1465 | #undef OPENSSL_HAVE_EVPGCM | ||
1466 | |||
1467 | /* libcrypto is missing AES 192 and 256 bit functions */ | ||
1468 | #undef OPENSSL_LOBOTOMISED_AES | ||
1469 | |||
1470 | /* Define if you want OpenSSL's internally seeded PRNG only */ | ||
1471 | #undef OPENSSL_PRNG_ONLY | ||
1472 | |||
1473 | /* Define to the address where bug reports for this package should be sent. */ | ||
1474 | #undef PACKAGE_BUGREPORT | ||
1475 | |||
1476 | /* Define to the full name of this package. */ | ||
1477 | #undef PACKAGE_NAME | ||
1478 | |||
1479 | /* Define to the full name and version of this package. */ | ||
1480 | #undef PACKAGE_STRING | ||
1481 | |||
1482 | /* Define to the one symbol short name of this package. */ | ||
1483 | #undef PACKAGE_TARNAME | ||
1484 | |||
1485 | /* Define to the home page for this package. */ | ||
1486 | #undef PACKAGE_URL | ||
1487 | |||
1488 | /* Define to the version of this package. */ | ||
1489 | #undef PACKAGE_VERSION | ||
1490 | |||
1491 | /* Define if you are using Solaris-derived PAM which passes pam_messages to | ||
1492 | the conversation function with an extra level of indirection */ | ||
1493 | #undef PAM_SUN_CODEBASE | ||
1494 | |||
1495 | /* Work around problematic Linux PAM modules handling of PAM_TTY */ | ||
1496 | #undef PAM_TTY_KLUDGE | ||
1497 | |||
1498 | /* must supply username to passwd */ | ||
1499 | #undef PASSWD_NEEDS_USERNAME | ||
1500 | |||
1501 | /* System dirs owned by bin (uid 2) */ | ||
1502 | #undef PLATFORM_SYS_DIR_UID | ||
1503 | |||
1504 | /* Port number of PRNGD/EGD random number socket */ | ||
1505 | #undef PRNGD_PORT | ||
1506 | |||
1507 | /* Location of PRNGD/EGD random number socket */ | ||
1508 | #undef PRNGD_SOCKET | ||
1509 | |||
1510 | /* read(1) can return 0 for a non-closed fd */ | ||
1511 | #undef PTY_ZEROREAD | ||
1512 | |||
1513 | /* Sandbox using capsicum */ | ||
1514 | #undef SANDBOX_CAPSICUM | ||
1515 | |||
1516 | /* Sandbox using Darwin sandbox_init(3) */ | ||
1517 | #undef SANDBOX_DARWIN | ||
1518 | |||
1519 | /* no privsep sandboxing */ | ||
1520 | #undef SANDBOX_NULL | ||
1521 | |||
1522 | /* Sandbox using setrlimit(2) */ | ||
1523 | #undef SANDBOX_RLIMIT | ||
1524 | |||
1525 | /* Sandbox using seccomp filter */ | ||
1526 | #undef SANDBOX_SECCOMP_FILTER | ||
1527 | |||
1528 | /* setrlimit RLIMIT_FSIZE works */ | ||
1529 | #undef SANDBOX_SKIP_RLIMIT_FSIZE | ||
1530 | |||
1531 | /* define if setrlimit RLIMIT_NOFILE breaks things */ | ||
1532 | #undef SANDBOX_SKIP_RLIMIT_NOFILE | ||
1533 | |||
1534 | /* Sandbox using systrace(4) */ | ||
1535 | #undef SANDBOX_SYSTRACE | ||
1536 | |||
1537 | /* Specify the system call convention in use */ | ||
1538 | #undef SECCOMP_AUDIT_ARCH | ||
1539 | |||
1540 | /* Define if your platform breaks doing a seteuid before a setuid */ | ||
1541 | #undef SETEUID_BREAKS_SETUID | ||
1542 | |||
1543 | /* The size of `int', as computed by sizeof. */ | ||
1544 | #undef SIZEOF_INT | ||
1545 | |||
1546 | /* The size of `long int', as computed by sizeof. */ | ||
1547 | #undef SIZEOF_LONG_INT | ||
1548 | |||
1549 | /* The size of `long long int', as computed by sizeof. */ | ||
1550 | #undef SIZEOF_LONG_LONG_INT | ||
1551 | |||
1552 | /* The size of `short int', as computed by sizeof. */ | ||
1553 | #undef SIZEOF_SHORT_INT | ||
1554 | |||
1555 | /* Define if you want S/Key support */ | ||
1556 | #undef SKEY | ||
1557 | |||
1558 | /* Define if your skeychallenge() function takes 4 arguments (NetBSD) */ | ||
1559 | #undef SKEYCHALLENGE_4ARG | ||
1560 | |||
1561 | /* Define as const if snprintf() can declare const char *fmt */ | ||
1562 | #undef SNPRINTF_CONST | ||
1563 | |||
1564 | /* Define to a Set Process Title type if your system is supported by | ||
1565 | bsd-setproctitle.c */ | ||
1566 | #undef SPT_TYPE | ||
1567 | |||
1568 | /* Define if sshd somehow reacquires a controlling TTY after setsid() */ | ||
1569 | #undef SSHD_ACQUIRES_CTTY | ||
1570 | |||
1571 | /* Define if pam_chauthtok wants real uid set to the unpriv'ed user */ | ||
1572 | #undef SSHPAM_CHAUTHTOK_NEEDS_RUID | ||
1573 | |||
1574 | /* Use audit debugging module */ | ||
1575 | #undef SSH_AUDIT_EVENTS | ||
1576 | |||
1577 | /* Windows is sensitive to read buffer size */ | ||
1578 | #undef SSH_IOBUFSZ | ||
1579 | |||
1580 | /* non-privileged user for privilege separation */ | ||
1581 | #undef SSH_PRIVSEP_USER | ||
1582 | |||
1583 | /* Use tunnel device compatibility to OpenBSD */ | ||
1584 | #undef SSH_TUN_COMPAT_AF | ||
1585 | |||
1586 | /* Open tunnel devices the FreeBSD way */ | ||
1587 | #undef SSH_TUN_FREEBSD | ||
1588 | |||
1589 | /* Open tunnel devices the Linux tun/tap way */ | ||
1590 | #undef SSH_TUN_LINUX | ||
1591 | |||
1592 | /* No layer 2 tunnel support */ | ||
1593 | #undef SSH_TUN_NO_L2 | ||
1594 | |||
1595 | /* Open tunnel devices the OpenBSD way */ | ||
1596 | #undef SSH_TUN_OPENBSD | ||
1597 | |||
1598 | /* Prepend the address family to IP tunnel traffic */ | ||
1599 | #undef SSH_TUN_PREPEND_AF | ||
1600 | |||
1601 | /* Define to 1 if you have the ANSI C header files. */ | ||
1602 | #undef STDC_HEADERS | ||
1603 | |||
1604 | /* Define if you want a different $PATH for the superuser */ | ||
1605 | #undef SUPERUSER_PATH | ||
1606 | |||
1607 | /* syslog_r function is safe to use in in a signal handler */ | ||
1608 | #undef SYSLOG_R_SAFE_IN_SIGHAND | ||
1609 | |||
1610 | /* Support passwords > 8 chars */ | ||
1611 | #undef UNIXWARE_LONG_PASSWORDS | ||
1612 | |||
1613 | /* Specify default $PATH */ | ||
1614 | #undef USER_PATH | ||
1615 | |||
1616 | /* Define this if you want to use libkafs' AFS support */ | ||
1617 | #undef USE_AFS | ||
1618 | |||
1619 | /* Use BSM audit module */ | ||
1620 | #undef USE_BSM_AUDIT | ||
1621 | |||
1622 | /* Use btmp to log bad logins */ | ||
1623 | #undef USE_BTMP | ||
1624 | |||
1625 | /* Use libedit for sftp */ | ||
1626 | #undef USE_LIBEDIT | ||
1627 | |||
1628 | /* Use Linux audit module */ | ||
1629 | #undef USE_LINUX_AUDIT | ||
1630 | |||
1631 | /* Enable OpenSSL engine support */ | ||
1632 | #undef USE_OPENSSL_ENGINE | ||
1633 | |||
1634 | /* Define if you want to enable PAM support */ | ||
1635 | #undef USE_PAM | ||
1636 | |||
1637 | /* Use PIPES instead of a socketpair() */ | ||
1638 | #undef USE_PIPES | ||
1639 | |||
1640 | /* Define if you have Solaris process contracts */ | ||
1641 | #undef USE_SOLARIS_PROCESS_CONTRACTS | ||
1642 | |||
1643 | /* Define if you have Solaris projects */ | ||
1644 | #undef USE_SOLARIS_PROJECTS | ||
1645 | |||
1646 | /* Define if you shouldn't strip 'tty' from your ttyname in [uw]tmp */ | ||
1647 | #undef WITH_ABBREV_NO_TTY | ||
1648 | |||
1649 | /* Define if you want to enable AIX4's authenticate function */ | ||
1650 | #undef WITH_AIXAUTHENTICATE | ||
1651 | |||
1652 | /* Define if you have/want arrays (cluster-wide session managment, not C | ||
1653 | arrays) */ | ||
1654 | #undef WITH_IRIX_ARRAY | ||
1655 | |||
1656 | /* Define if you want IRIX audit trails */ | ||
1657 | #undef WITH_IRIX_AUDIT | ||
1658 | |||
1659 | /* Define if you want IRIX kernel jobs */ | ||
1660 | #undef WITH_IRIX_JOBS | ||
1661 | |||
1662 | /* Define if you want IRIX project management */ | ||
1663 | #undef WITH_IRIX_PROJECT | ||
1664 | |||
1665 | /* use libcrypto for cryptography */ | ||
1666 | #undef WITH_OPENSSL | ||
1667 | |||
1668 | /* Define if you want SELinux support. */ | ||
1669 | #undef WITH_SELINUX | ||
1670 | |||
1671 | /* include SSH protocol version 1 support */ | ||
1672 | #undef WITH_SSH1 | ||
1673 | |||
1674 | /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most | ||
1675 | significant byte first (like Motorola and SPARC, unlike Intel). */ | ||
1676 | #if defined AC_APPLE_UNIVERSAL_BUILD | ||
1677 | # if defined __BIG_ENDIAN__ | ||
1678 | # define WORDS_BIGENDIAN 1 | ||
1679 | # endif | ||
1680 | #else | ||
1681 | # ifndef WORDS_BIGENDIAN | ||
1682 | # undef WORDS_BIGENDIAN | ||
1683 | # endif | ||
1684 | #endif | ||
1685 | |||
1686 | /* Define if xauth is found in your path */ | ||
1687 | #undef XAUTH_PATH | ||
1688 | |||
1689 | /* Number of bits in a file offset, on hosts where this is settable. */ | ||
1690 | #undef _FILE_OFFSET_BITS | ||
1691 | |||
1692 | /* Define for large files, on AIX-style hosts. */ | ||
1693 | #undef _LARGE_FILES | ||
1694 | |||
1695 | /* log for bad login attempts */ | ||
1696 | #undef _PATH_BTMP | ||
1697 | |||
1698 | /* Full path of your "passwd" program */ | ||
1699 | #undef _PATH_PASSWD_PROG | ||
1700 | |||
1701 | /* Specify location of ssh.pid */ | ||
1702 | #undef _PATH_SSH_PIDDIR | ||
1703 | |||
1704 | /* Define if we don't have struct __res_state in resolv.h */ | ||
1705 | #undef __res_state | ||
1706 | |||
1707 | /* Define to `__inline__' or `__inline' if that's what the C compiler | ||
1708 | calls it, or to nothing if 'inline' is not supported under any name. */ | ||
1709 | #ifndef __cplusplus | ||
1710 | #undef inline | ||
1711 | #endif | ||
1712 | |||
1713 | /* type to use in place of socklen_t if not defined */ | ||
1714 | #undef socklen_t | ||
diff --git a/configure b/configure new file mode 100755 index 000000000..6815388cc --- /dev/null +++ b/configure | |||
@@ -0,0 +1,19734 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.583 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.68 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # | ||
9 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
10 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | ||
11 | # Foundation, Inc. | ||
12 | # | ||
13 | # | ||
14 | # This configure script is free software; the Free Software Foundation | ||
15 | # gives unlimited permission to copy, distribute and modify it. | ||
16 | ## -------------------- ## | ||
17 | ## M4sh Initialization. ## | ||
18 | ## -------------------- ## | ||
19 | |||
20 | # Be more Bourne compatible | ||
21 | DUALCASE=1; export DUALCASE # for MKS sh | ||
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
23 | emulate sh | ||
24 | NULLCMD=: | ||
25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
26 | # is contrary to our usage. Disable this feature. | ||
27 | alias -g '${1+"$@"}'='"$@"' | ||
28 | setopt NO_GLOB_SUBST | ||
29 | else | ||
30 | case `(set -o) 2>/dev/null` in #( | ||
31 | *posix*) : | ||
32 | set -o posix ;; #( | ||
33 | *) : | ||
34 | ;; | ||
35 | esac | ||
36 | fi | ||
37 | |||
38 | |||
39 | as_nl=' | ||
40 | ' | ||
41 | export as_nl | ||
42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
46 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
47 | # but without wasting forks for bash or zsh. | ||
48 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
49 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
50 | as_echo='print -r --' | ||
51 | as_echo_n='print -rn --' | ||
52 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
53 | as_echo='printf %s\n' | ||
54 | as_echo_n='printf %s' | ||
55 | else | ||
56 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
57 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
58 | as_echo_n='/usr/ucb/echo -n' | ||
59 | else | ||
60 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
61 | as_echo_n_body='eval | ||
62 | arg=$1; | ||
63 | case $arg in #( | ||
64 | *"$as_nl"*) | ||
65 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
66 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
67 | esac; | ||
68 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
69 | ' | ||
70 | export as_echo_n_body | ||
71 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
72 | fi | ||
73 | export as_echo_body | ||
74 | as_echo='sh -c $as_echo_body as_echo' | ||
75 | fi | ||
76 | |||
77 | # The user is always right. | ||
78 | if test "${PATH_SEPARATOR+set}" != set; then | ||
79 | PATH_SEPARATOR=: | ||
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
82 | PATH_SEPARATOR=';' | ||
83 | } | ||
84 | fi | ||
85 | |||
86 | |||
87 | # IFS | ||
88 | # We need space, tab and new line, in precisely that order. Quoting is | ||
89 | # there to prevent editors from complaining about space-tab. | ||
90 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
91 | # splitting by setting IFS to empty value.) | ||
92 | IFS=" "" $as_nl" | ||
93 | |||
94 | # Find who we are. Look in the path if we contain no directory separator. | ||
95 | as_myself= | ||
96 | case $0 in #(( | ||
97 | *[\\/]* ) as_myself=$0 ;; | ||
98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
99 | for as_dir in $PATH | ||
100 | do | ||
101 | IFS=$as_save_IFS | ||
102 | test -z "$as_dir" && as_dir=. | ||
103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
104 | done | ||
105 | IFS=$as_save_IFS | ||
106 | |||
107 | ;; | ||
108 | esac | ||
109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
110 | # in which case we are not to be found in the path. | ||
111 | if test "x$as_myself" = x; then | ||
112 | as_myself=$0 | ||
113 | fi | ||
114 | if test ! -f "$as_myself"; then | ||
115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
116 | exit 1 | ||
117 | fi | ||
118 | |||
119 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
120 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
121 | # suppresses any "Segmentation fault" message there. '((' could | ||
122 | # trigger a bug in pdksh 5.2.14. | ||
123 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
124 | do eval test x\${$as_var+set} = xset \ | ||
125 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
126 | done | ||
127 | PS1='$ ' | ||
128 | PS2='> ' | ||
129 | PS4='+ ' | ||
130 | |||
131 | # NLS nuisances. | ||
132 | LC_ALL=C | ||
133 | export LC_ALL | ||
134 | LANGUAGE=C | ||
135 | export LANGUAGE | ||
136 | |||
137 | # CDPATH. | ||
138 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
139 | |||
140 | if test "x$CONFIG_SHELL" = x; then | ||
141 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
142 | emulate sh | ||
143 | NULLCMD=: | ||
144 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
145 | # is contrary to our usage. Disable this feature. | ||
146 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
147 | setopt NO_GLOB_SUBST | ||
148 | else | ||
149 | case \`(set -o) 2>/dev/null\` in #( | ||
150 | *posix*) : | ||
151 | set -o posix ;; #( | ||
152 | *) : | ||
153 | ;; | ||
154 | esac | ||
155 | fi | ||
156 | " | ||
157 | as_required="as_fn_return () { (exit \$1); } | ||
158 | as_fn_success () { as_fn_return 0; } | ||
159 | as_fn_failure () { as_fn_return 1; } | ||
160 | as_fn_ret_success () { return 0; } | ||
161 | as_fn_ret_failure () { return 1; } | ||
162 | |||
163 | exitcode=0 | ||
164 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
165 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
166 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
167 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
168 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
169 | |||
170 | else | ||
171 | exitcode=1; echo positional parameters were not saved. | ||
172 | fi | ||
173 | test x\$exitcode = x0 || exit 1" | ||
174 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
175 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
176 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
177 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
178 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
179 | if (eval "$as_required") 2>/dev/null; then : | ||
180 | as_have_required=yes | ||
181 | else | ||
182 | as_have_required=no | ||
183 | fi | ||
184 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
185 | |||
186 | else | ||
187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
188 | as_found=false | ||
189 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
190 | do | ||
191 | IFS=$as_save_IFS | ||
192 | test -z "$as_dir" && as_dir=. | ||
193 | as_found=: | ||
194 | case $as_dir in #( | ||
195 | /*) | ||
196 | for as_base in sh bash ksh sh5; do | ||
197 | # Try only shells that exist, to save several forks. | ||
198 | as_shell=$as_dir/$as_base | ||
199 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
200 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
202 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
203 | break 2 | ||
204 | fi | ||
205 | fi | ||
206 | done;; | ||
207 | esac | ||
208 | as_found=false | ||
209 | done | ||
210 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
211 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
212 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
213 | fi; } | ||
214 | IFS=$as_save_IFS | ||
215 | |||
216 | |||
217 | if test "x$CONFIG_SHELL" != x; then : | ||
218 | # We cannot yet assume a decent shell, so we have to provide a | ||
219 | # neutralization value for shells without unset; and this also | ||
220 | # works around shells that cannot unset nonexistent variables. | ||
221 | # Preserve -v and -x to the replacement shell. | ||
222 | BASH_ENV=/dev/null | ||
223 | ENV=/dev/null | ||
224 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
225 | export CONFIG_SHELL | ||
226 | case $- in # (((( | ||
227 | *v*x* | *x*v* ) as_opts=-vx ;; | ||
228 | *v* ) as_opts=-v ;; | ||
229 | *x* ) as_opts=-x ;; | ||
230 | * ) as_opts= ;; | ||
231 | esac | ||
232 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | ||
233 | fi | ||
234 | |||
235 | if test x$as_have_required = xno; then : | ||
236 | $as_echo "$0: This script requires a shell more modern than all" | ||
237 | $as_echo "$0: the shells that I found on your system." | ||
238 | if test x${ZSH_VERSION+set} = xset ; then | ||
239 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
240 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
241 | else | ||
242 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | ||
243 | $0: openssh-unix-dev@mindrot.org about your system, | ||
244 | $0: including any error possibly output before this | ||
245 | $0: message. Then install a modern shell, or manually run | ||
246 | $0: the script under such a shell if you do have one." | ||
247 | fi | ||
248 | exit 1 | ||
249 | fi | ||
250 | fi | ||
251 | fi | ||
252 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
253 | export SHELL | ||
254 | # Unset more variables known to interfere with behavior of common tools. | ||
255 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
256 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
257 | |||
258 | ## --------------------- ## | ||
259 | ## M4sh Shell Functions. ## | ||
260 | ## --------------------- ## | ||
261 | # as_fn_unset VAR | ||
262 | # --------------- | ||
263 | # Portably unset VAR. | ||
264 | as_fn_unset () | ||
265 | { | ||
266 | { eval $1=; unset $1;} | ||
267 | } | ||
268 | as_unset=as_fn_unset | ||
269 | |||
270 | # as_fn_set_status STATUS | ||
271 | # ----------------------- | ||
272 | # Set $? to STATUS, without forking. | ||
273 | as_fn_set_status () | ||
274 | { | ||
275 | return $1 | ||
276 | } # as_fn_set_status | ||
277 | |||
278 | # as_fn_exit STATUS | ||
279 | # ----------------- | ||
280 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
281 | as_fn_exit () | ||
282 | { | ||
283 | set +e | ||
284 | as_fn_set_status $1 | ||
285 | exit $1 | ||
286 | } # as_fn_exit | ||
287 | |||
288 | # as_fn_mkdir_p | ||
289 | # ------------- | ||
290 | # Create "$as_dir" as a directory, including parents if necessary. | ||
291 | as_fn_mkdir_p () | ||
292 | { | ||
293 | |||
294 | case $as_dir in #( | ||
295 | -*) as_dir=./$as_dir;; | ||
296 | esac | ||
297 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
298 | as_dirs= | ||
299 | while :; do | ||
300 | case $as_dir in #( | ||
301 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
302 | *) as_qdir=$as_dir;; | ||
303 | esac | ||
304 | as_dirs="'$as_qdir' $as_dirs" | ||
305 | as_dir=`$as_dirname -- "$as_dir" || | ||
306 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
307 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
308 | X"$as_dir" : 'X\(//\)$' \| \ | ||
309 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
310 | $as_echo X"$as_dir" | | ||
311 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
312 | s//\1/ | ||
313 | q | ||
314 | } | ||
315 | /^X\(\/\/\)[^/].*/{ | ||
316 | s//\1/ | ||
317 | q | ||
318 | } | ||
319 | /^X\(\/\/\)$/{ | ||
320 | s//\1/ | ||
321 | q | ||
322 | } | ||
323 | /^X\(\/\).*/{ | ||
324 | s//\1/ | ||
325 | q | ||
326 | } | ||
327 | s/.*/./; q'` | ||
328 | test -d "$as_dir" && break | ||
329 | done | ||
330 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
331 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
332 | |||
333 | |||
334 | } # as_fn_mkdir_p | ||
335 | # as_fn_append VAR VALUE | ||
336 | # ---------------------- | ||
337 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
338 | # advantage of any shell optimizations that allow amortized linear growth over | ||
339 | # repeated appends, instead of the typical quadratic growth present in naive | ||
340 | # implementations. | ||
341 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
342 | eval 'as_fn_append () | ||
343 | { | ||
344 | eval $1+=\$2 | ||
345 | }' | ||
346 | else | ||
347 | as_fn_append () | ||
348 | { | ||
349 | eval $1=\$$1\$2 | ||
350 | } | ||
351 | fi # as_fn_append | ||
352 | |||
353 | # as_fn_arith ARG... | ||
354 | # ------------------ | ||
355 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
356 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
357 | # must be portable across $(()) and expr. | ||
358 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
359 | eval 'as_fn_arith () | ||
360 | { | ||
361 | as_val=$(( $* )) | ||
362 | }' | ||
363 | else | ||
364 | as_fn_arith () | ||
365 | { | ||
366 | as_val=`expr "$@" || test $? -eq 1` | ||
367 | } | ||
368 | fi # as_fn_arith | ||
369 | |||
370 | |||
371 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
372 | # ---------------------------------------- | ||
373 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
374 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
375 | # script with STATUS, using 1 if that was 0. | ||
376 | as_fn_error () | ||
377 | { | ||
378 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
379 | if test "$4"; then | ||
380 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
381 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
382 | fi | ||
383 | $as_echo "$as_me: error: $2" >&2 | ||
384 | as_fn_exit $as_status | ||
385 | } # as_fn_error | ||
386 | |||
387 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
388 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
389 | as_expr=expr | ||
390 | else | ||
391 | as_expr=false | ||
392 | fi | ||
393 | |||
394 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
395 | as_basename=basename | ||
396 | else | ||
397 | as_basename=false | ||
398 | fi | ||
399 | |||
400 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
401 | as_dirname=dirname | ||
402 | else | ||
403 | as_dirname=false | ||
404 | fi | ||
405 | |||
406 | as_me=`$as_basename -- "$0" || | ||
407 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
408 | X"$0" : 'X\(//\)$' \| \ | ||
409 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
410 | $as_echo X/"$0" | | ||
411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
412 | s//\1/ | ||
413 | q | ||
414 | } | ||
415 | /^X\/\(\/\/\)$/{ | ||
416 | s//\1/ | ||
417 | q | ||
418 | } | ||
419 | /^X\/\(\/\).*/{ | ||
420 | s//\1/ | ||
421 | q | ||
422 | } | ||
423 | s/.*/./; q'` | ||
424 | |||
425 | # Avoid depending upon Character Ranges. | ||
426 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
427 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
428 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
429 | as_cr_digits='0123456789' | ||
430 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
431 | |||
432 | |||
433 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
434 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
435 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
436 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
437 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
438 | sed -n ' | ||
439 | p | ||
440 | /[$]LINENO/= | ||
441 | ' <$as_myself | | ||
442 | sed ' | ||
443 | s/[$]LINENO.*/&-/ | ||
444 | t lineno | ||
445 | b | ||
446 | :lineno | ||
447 | N | ||
448 | :loop | ||
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
450 | t loop | ||
451 | s/-\n.*// | ||
452 | ' >$as_me.lineno && | ||
453 | chmod +x "$as_me.lineno" || | ||
454 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
455 | |||
456 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
457 | # (the dirname of $[0] is not the place where we might find the | ||
458 | # original and so on. Autoconf is especially sensitive to this). | ||
459 | . "./$as_me.lineno" | ||
460 | # Exit status is that of the last command. | ||
461 | exit | ||
462 | } | ||
463 | |||
464 | ECHO_C= ECHO_N= ECHO_T= | ||
465 | case `echo -n x` in #((((( | ||
466 | -n*) | ||
467 | case `echo 'xy\c'` in | ||
468 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
469 | xy) ECHO_C='\c';; | ||
470 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
471 | ECHO_T=' ';; | ||
472 | esac;; | ||
473 | *) | ||
474 | ECHO_N='-n';; | ||
475 | esac | ||
476 | |||
477 | rm -f conf$$ conf$$.exe conf$$.file | ||
478 | if test -d conf$$.dir; then | ||
479 | rm -f conf$$.dir/conf$$.file | ||
480 | else | ||
481 | rm -f conf$$.dir | ||
482 | mkdir conf$$.dir 2>/dev/null | ||
483 | fi | ||
484 | if (echo >conf$$.file) 2>/dev/null; then | ||
485 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
486 | as_ln_s='ln -s' | ||
487 | # ... but there are two gotchas: | ||
488 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
489 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
490 | # In both cases, we have to default to `cp -p'. | ||
491 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
492 | as_ln_s='cp -p' | ||
493 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
494 | as_ln_s=ln | ||
495 | else | ||
496 | as_ln_s='cp -p' | ||
497 | fi | ||
498 | else | ||
499 | as_ln_s='cp -p' | ||
500 | fi | ||
501 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
502 | rmdir conf$$.dir 2>/dev/null | ||
503 | |||
504 | if mkdir -p . 2>/dev/null; then | ||
505 | as_mkdir_p='mkdir -p "$as_dir"' | ||
506 | else | ||
507 | test -d ./-p && rmdir ./-p | ||
508 | as_mkdir_p=false | ||
509 | fi | ||
510 | |||
511 | if test -x / >/dev/null 2>&1; then | ||
512 | as_test_x='test -x' | ||
513 | else | ||
514 | if ls -dL / >/dev/null 2>&1; then | ||
515 | as_ls_L_option=L | ||
516 | else | ||
517 | as_ls_L_option= | ||
518 | fi | ||
519 | as_test_x=' | ||
520 | eval sh -c '\'' | ||
521 | if test -d "$1"; then | ||
522 | test -d "$1/."; | ||
523 | else | ||
524 | case $1 in #( | ||
525 | -*)set "./$1";; | ||
526 | esac; | ||
527 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
528 | ???[sx]*):;;*)false;;esac;fi | ||
529 | '\'' sh | ||
530 | ' | ||
531 | fi | ||
532 | as_executable_p=$as_test_x | ||
533 | |||
534 | # Sed expression to map a string onto a valid CPP name. | ||
535 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
536 | |||
537 | # Sed expression to map a string onto a valid variable name. | ||
538 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
539 | |||
540 | |||
541 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
542 | exec 6>&1 | ||
543 | |||
544 | # Name of the host. | ||
545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | ||
546 | # so uname gets run too. | ||
547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
548 | |||
549 | # | ||
550 | # Initializations. | ||
551 | # | ||
552 | ac_default_prefix=/usr/local | ||
553 | ac_clean_files= | ||
554 | ac_config_libobj_dir=. | ||
555 | LIBOBJS= | ||
556 | cross_compiling=no | ||
557 | subdirs= | ||
558 | MFLAGS= | ||
559 | MAKEFLAGS= | ||
560 | |||
561 | # Identity of this package. | ||
562 | PACKAGE_NAME='OpenSSH' | ||
563 | PACKAGE_TARNAME='openssh' | ||
564 | PACKAGE_VERSION='Portable' | ||
565 | PACKAGE_STRING='OpenSSH Portable' | ||
566 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
567 | PACKAGE_URL='' | ||
568 | |||
569 | ac_unique_file="ssh.c" | ||
570 | # Factoring default headers for most tests. | ||
571 | ac_includes_default="\ | ||
572 | #include <stdio.h> | ||
573 | #ifdef HAVE_SYS_TYPES_H | ||
574 | # include <sys/types.h> | ||
575 | #endif | ||
576 | #ifdef HAVE_SYS_STAT_H | ||
577 | # include <sys/stat.h> | ||
578 | #endif | ||
579 | #ifdef STDC_HEADERS | ||
580 | # include <stdlib.h> | ||
581 | # include <stddef.h> | ||
582 | #else | ||
583 | # ifdef HAVE_STDLIB_H | ||
584 | # include <stdlib.h> | ||
585 | # endif | ||
586 | #endif | ||
587 | #ifdef HAVE_STRING_H | ||
588 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
589 | # include <memory.h> | ||
590 | # endif | ||
591 | # include <string.h> | ||
592 | #endif | ||
593 | #ifdef HAVE_STRINGS_H | ||
594 | # include <strings.h> | ||
595 | #endif | ||
596 | #ifdef HAVE_INTTYPES_H | ||
597 | # include <inttypes.h> | ||
598 | #endif | ||
599 | #ifdef HAVE_STDINT_H | ||
600 | # include <stdint.h> | ||
601 | #endif | ||
602 | #ifdef HAVE_UNISTD_H | ||
603 | # include <unistd.h> | ||
604 | #endif" | ||
605 | |||
606 | ac_subst_vars='LTLIBOBJS | ||
607 | LIBOBJS | ||
608 | UNSUPPORTED_ALGORITHMS | ||
609 | TEST_MALLOC_OPTIONS | ||
610 | TEST_SSH_IPV6 | ||
611 | piddir | ||
612 | user_path | ||
613 | mansubdir | ||
614 | MANTYPE | ||
615 | XAUTH_PATH | ||
616 | STRIP_OPT | ||
617 | xauth_path | ||
618 | PRIVSEP_PATH | ||
619 | K5LIBS | ||
620 | GSSLIBS | ||
621 | KRB5CONF | ||
622 | SSHDLIBS | ||
623 | SSHLIBS | ||
624 | SSH_PRIVSEP_USER | ||
625 | COMMENT_OUT_ECC | ||
626 | TEST_SSH_ECC | ||
627 | LIBEDIT | ||
628 | PKGCONFIG | ||
629 | LD | ||
630 | PATH_PASSWD_PROG | ||
631 | LOGIN_PROGRAM_FALLBACK | ||
632 | STARTUP_SCRIPT_SHELL | ||
633 | MAKE_PACKAGE_SUPPORTED | ||
634 | PATH_USERADD_PROG | ||
635 | PATH_GROUPADD_PROG | ||
636 | MANFMT | ||
637 | TEST_SHELL | ||
638 | MANDOC | ||
639 | NROFF | ||
640 | GROFF | ||
641 | SH | ||
642 | TEST_MINUS_S_SH | ||
643 | ENT | ||
644 | SED | ||
645 | PERL | ||
646 | KILL | ||
647 | CAT | ||
648 | AR | ||
649 | INSTALL_DATA | ||
650 | INSTALL_SCRIPT | ||
651 | INSTALL_PROGRAM | ||
652 | RANLIB | ||
653 | AWK | ||
654 | EGREP | ||
655 | GREP | ||
656 | CPP | ||
657 | host_os | ||
658 | host_vendor | ||
659 | host_cpu | ||
660 | host | ||
661 | build_os | ||
662 | build_vendor | ||
663 | build_cpu | ||
664 | build | ||
665 | OBJEXT | ||
666 | EXEEXT | ||
667 | ac_ct_CC | ||
668 | CPPFLAGS | ||
669 | LDFLAGS | ||
670 | CFLAGS | ||
671 | CC | ||
672 | target_alias | ||
673 | host_alias | ||
674 | build_alias | ||
675 | LIBS | ||
676 | ECHO_T | ||
677 | ECHO_N | ||
678 | ECHO_C | ||
679 | DEFS | ||
680 | mandir | ||
681 | localedir | ||
682 | libdir | ||
683 | psdir | ||
684 | pdfdir | ||
685 | dvidir | ||
686 | htmldir | ||
687 | infodir | ||
688 | docdir | ||
689 | oldincludedir | ||
690 | includedir | ||
691 | localstatedir | ||
692 | sharedstatedir | ||
693 | sysconfdir | ||
694 | datadir | ||
695 | datarootdir | ||
696 | libexecdir | ||
697 | sbindir | ||
698 | bindir | ||
699 | program_transform_name | ||
700 | prefix | ||
701 | exec_prefix | ||
702 | PACKAGE_URL | ||
703 | PACKAGE_BUGREPORT | ||
704 | PACKAGE_STRING | ||
705 | PACKAGE_VERSION | ||
706 | PACKAGE_TARNAME | ||
707 | PACKAGE_NAME | ||
708 | PATH_SEPARATOR | ||
709 | SHELL' | ||
710 | ac_subst_files='' | ||
711 | ac_user_opts=' | ||
712 | enable_option_checking | ||
713 | enable_largefile | ||
714 | with_stackprotect | ||
715 | with_hardening | ||
716 | with_rpath | ||
717 | with_cflags | ||
718 | with_cppflags | ||
719 | with_ldflags | ||
720 | with_libs | ||
721 | with_Werror | ||
722 | with_solaris_contracts | ||
723 | with_solaris_projects | ||
724 | with_osfsia | ||
725 | with_zlib | ||
726 | with_zlib_version_check | ||
727 | with_skey | ||
728 | with_ldns | ||
729 | with_libedit | ||
730 | with_audit | ||
731 | with_pie | ||
732 | with_ssl_dir | ||
733 | with_openssl_header_check | ||
734 | with_ssl_engine | ||
735 | with_prngd_port | ||
736 | with_prngd_socket | ||
737 | with_pam | ||
738 | with_privsep_user | ||
739 | with_sandbox | ||
740 | with_selinux | ||
741 | with_kerberos5 | ||
742 | with_privsep_path | ||
743 | with_xauth | ||
744 | enable_strip | ||
745 | with_maildir | ||
746 | with_mantype | ||
747 | with_md5_passwords | ||
748 | with_shadow | ||
749 | with_ipaddr_display | ||
750 | enable_etc_default_login | ||
751 | with_default_path | ||
752 | with_superuser_path | ||
753 | with_4in6 | ||
754 | with_bsd_auth | ||
755 | with_pid_dir | ||
756 | enable_lastlog | ||
757 | enable_utmp | ||
758 | enable_utmpx | ||
759 | enable_wtmp | ||
760 | enable_wtmpx | ||
761 | enable_libutil | ||
762 | enable_pututline | ||
763 | enable_pututxline | ||
764 | with_lastlog | ||
765 | ' | ||
766 | ac_precious_vars='build_alias | ||
767 | host_alias | ||
768 | target_alias | ||
769 | CC | ||
770 | CFLAGS | ||
771 | LDFLAGS | ||
772 | LIBS | ||
773 | CPPFLAGS | ||
774 | CPP' | ||
775 | |||
776 | |||
777 | # Initialize some variables set by options. | ||
778 | ac_init_help= | ||
779 | ac_init_version=false | ||
780 | ac_unrecognized_opts= | ||
781 | ac_unrecognized_sep= | ||
782 | # The variables have the same names as the options, with | ||
783 | # dashes changed to underlines. | ||
784 | cache_file=/dev/null | ||
785 | exec_prefix=NONE | ||
786 | no_create= | ||
787 | no_recursion= | ||
788 | prefix=NONE | ||
789 | program_prefix=NONE | ||
790 | program_suffix=NONE | ||
791 | program_transform_name=s,x,x, | ||
792 | silent= | ||
793 | site= | ||
794 | srcdir= | ||
795 | verbose= | ||
796 | x_includes=NONE | ||
797 | x_libraries=NONE | ||
798 | |||
799 | # Installation directory options. | ||
800 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
801 | # and all the variables that are supposed to be based on exec_prefix | ||
802 | # by default will actually change. | ||
803 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
804 | # (The list follows the same order as the GNU Coding Standards.) | ||
805 | bindir='${exec_prefix}/bin' | ||
806 | sbindir='${exec_prefix}/sbin' | ||
807 | libexecdir='${exec_prefix}/libexec' | ||
808 | datarootdir='${prefix}/share' | ||
809 | datadir='${datarootdir}' | ||
810 | sysconfdir='${prefix}/etc' | ||
811 | sharedstatedir='${prefix}/com' | ||
812 | localstatedir='${prefix}/var' | ||
813 | includedir='${prefix}/include' | ||
814 | oldincludedir='/usr/include' | ||
815 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
816 | infodir='${datarootdir}/info' | ||
817 | htmldir='${docdir}' | ||
818 | dvidir='${docdir}' | ||
819 | pdfdir='${docdir}' | ||
820 | psdir='${docdir}' | ||
821 | libdir='${exec_prefix}/lib' | ||
822 | localedir='${datarootdir}/locale' | ||
823 | mandir='${datarootdir}/man' | ||
824 | |||
825 | ac_prev= | ||
826 | ac_dashdash= | ||
827 | for ac_option | ||
828 | do | ||
829 | # If the previous option needs an argument, assign it. | ||
830 | if test -n "$ac_prev"; then | ||
831 | eval $ac_prev=\$ac_option | ||
832 | ac_prev= | ||
833 | continue | ||
834 | fi | ||
835 | |||
836 | case $ac_option in | ||
837 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
838 | *=) ac_optarg= ;; | ||
839 | *) ac_optarg=yes ;; | ||
840 | esac | ||
841 | |||
842 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
843 | |||
844 | case $ac_dashdash$ac_option in | ||
845 | --) | ||
846 | ac_dashdash=yes ;; | ||
847 | |||
848 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
849 | ac_prev=bindir ;; | ||
850 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
851 | bindir=$ac_optarg ;; | ||
852 | |||
853 | -build | --build | --buil | --bui | --bu) | ||
854 | ac_prev=build_alias ;; | ||
855 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
856 | build_alias=$ac_optarg ;; | ||
857 | |||
858 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
859 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
860 | ac_prev=cache_file ;; | ||
861 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
862 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
863 | cache_file=$ac_optarg ;; | ||
864 | |||
865 | --config-cache | -C) | ||
866 | cache_file=config.cache ;; | ||
867 | |||
868 | -datadir | --datadir | --datadi | --datad) | ||
869 | ac_prev=datadir ;; | ||
870 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
871 | datadir=$ac_optarg ;; | ||
872 | |||
873 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
874 | | --dataroo | --dataro | --datar) | ||
875 | ac_prev=datarootdir ;; | ||
876 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
877 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
878 | datarootdir=$ac_optarg ;; | ||
879 | |||
880 | -disable-* | --disable-*) | ||
881 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
882 | # Reject names that are not valid shell variable names. | ||
883 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
884 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
885 | ac_useropt_orig=$ac_useropt | ||
886 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
887 | case $ac_user_opts in | ||
888 | *" | ||
889 | "enable_$ac_useropt" | ||
890 | "*) ;; | ||
891 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
892 | ac_unrecognized_sep=', ';; | ||
893 | esac | ||
894 | eval enable_$ac_useropt=no ;; | ||
895 | |||
896 | -docdir | --docdir | --docdi | --doc | --do) | ||
897 | ac_prev=docdir ;; | ||
898 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
899 | docdir=$ac_optarg ;; | ||
900 | |||
901 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
902 | ac_prev=dvidir ;; | ||
903 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
904 | dvidir=$ac_optarg ;; | ||
905 | |||
906 | -enable-* | --enable-*) | ||
907 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
908 | # Reject names that are not valid shell variable names. | ||
909 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
910 | as_fn_error $? "invalid feature name: $ac_useropt" | ||
911 | ac_useropt_orig=$ac_useropt | ||
912 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
913 | case $ac_user_opts in | ||
914 | *" | ||
915 | "enable_$ac_useropt" | ||
916 | "*) ;; | ||
917 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
918 | ac_unrecognized_sep=', ';; | ||
919 | esac | ||
920 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
921 | |||
922 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
923 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
924 | | --exec | --exe | --ex) | ||
925 | ac_prev=exec_prefix ;; | ||
926 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
927 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
928 | | --exec=* | --exe=* | --ex=*) | ||
929 | exec_prefix=$ac_optarg ;; | ||
930 | |||
931 | -gas | --gas | --ga | --g) | ||
932 | # Obsolete; use --with-gas. | ||
933 | with_gas=yes ;; | ||
934 | |||
935 | -help | --help | --hel | --he | -h) | ||
936 | ac_init_help=long ;; | ||
937 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
938 | ac_init_help=recursive ;; | ||
939 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
940 | ac_init_help=short ;; | ||
941 | |||
942 | -host | --host | --hos | --ho) | ||
943 | ac_prev=host_alias ;; | ||
944 | -host=* | --host=* | --hos=* | --ho=*) | ||
945 | host_alias=$ac_optarg ;; | ||
946 | |||
947 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
948 | ac_prev=htmldir ;; | ||
949 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
950 | | --ht=*) | ||
951 | htmldir=$ac_optarg ;; | ||
952 | |||
953 | -includedir | --includedir | --includedi | --included | --include \ | ||
954 | | --includ | --inclu | --incl | --inc) | ||
955 | ac_prev=includedir ;; | ||
956 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
957 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
958 | includedir=$ac_optarg ;; | ||
959 | |||
960 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
961 | ac_prev=infodir ;; | ||
962 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
963 | infodir=$ac_optarg ;; | ||
964 | |||
965 | -libdir | --libdir | --libdi | --libd) | ||
966 | ac_prev=libdir ;; | ||
967 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
968 | libdir=$ac_optarg ;; | ||
969 | |||
970 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
971 | | --libexe | --libex | --libe) | ||
972 | ac_prev=libexecdir ;; | ||
973 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
974 | | --libexe=* | --libex=* | --libe=*) | ||
975 | libexecdir=$ac_optarg ;; | ||
976 | |||
977 | -localedir | --localedir | --localedi | --localed | --locale) | ||
978 | ac_prev=localedir ;; | ||
979 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
980 | localedir=$ac_optarg ;; | ||
981 | |||
982 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
983 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
984 | ac_prev=localstatedir ;; | ||
985 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
986 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
987 | localstatedir=$ac_optarg ;; | ||
988 | |||
989 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
990 | ac_prev=mandir ;; | ||
991 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
992 | mandir=$ac_optarg ;; | ||
993 | |||
994 | -nfp | --nfp | --nf) | ||
995 | # Obsolete; use --without-fp. | ||
996 | with_fp=no ;; | ||
997 | |||
998 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
999 | | --no-cr | --no-c | -n) | ||
1000 | no_create=yes ;; | ||
1001 | |||
1002 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1003 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1004 | no_recursion=yes ;; | ||
1005 | |||
1006 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1007 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1008 | | --oldin | --oldi | --old | --ol | --o) | ||
1009 | ac_prev=oldincludedir ;; | ||
1010 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1011 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1012 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1013 | oldincludedir=$ac_optarg ;; | ||
1014 | |||
1015 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1016 | ac_prev=prefix ;; | ||
1017 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1018 | prefix=$ac_optarg ;; | ||
1019 | |||
1020 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1021 | | --program-pre | --program-pr | --program-p) | ||
1022 | ac_prev=program_prefix ;; | ||
1023 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1024 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1025 | program_prefix=$ac_optarg ;; | ||
1026 | |||
1027 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1028 | | --program-suf | --program-su | --program-s) | ||
1029 | ac_prev=program_suffix ;; | ||
1030 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1031 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1032 | program_suffix=$ac_optarg ;; | ||
1033 | |||
1034 | -program-transform-name | --program-transform-name \ | ||
1035 | | --program-transform-nam | --program-transform-na \ | ||
1036 | | --program-transform-n | --program-transform- \ | ||
1037 | | --program-transform | --program-transfor \ | ||
1038 | | --program-transfo | --program-transf \ | ||
1039 | | --program-trans | --program-tran \ | ||
1040 | | --progr-tra | --program-tr | --program-t) | ||
1041 | ac_prev=program_transform_name ;; | ||
1042 | -program-transform-name=* | --program-transform-name=* \ | ||
1043 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1044 | | --program-transform-n=* | --program-transform-=* \ | ||
1045 | | --program-transform=* | --program-transfor=* \ | ||
1046 | | --program-transfo=* | --program-transf=* \ | ||
1047 | | --program-trans=* | --program-tran=* \ | ||
1048 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1049 | program_transform_name=$ac_optarg ;; | ||
1050 | |||
1051 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1052 | ac_prev=pdfdir ;; | ||
1053 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1054 | pdfdir=$ac_optarg ;; | ||
1055 | |||
1056 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1057 | ac_prev=psdir ;; | ||
1058 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1059 | psdir=$ac_optarg ;; | ||
1060 | |||
1061 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1062 | | -silent | --silent | --silen | --sile | --sil) | ||
1063 | silent=yes ;; | ||
1064 | |||
1065 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1066 | ac_prev=sbindir ;; | ||
1067 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1068 | | --sbi=* | --sb=*) | ||
1069 | sbindir=$ac_optarg ;; | ||
1070 | |||
1071 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1072 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1073 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1074 | | --sha | --sh) | ||
1075 | ac_prev=sharedstatedir ;; | ||
1076 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1077 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1078 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1079 | | --sha=* | --sh=*) | ||
1080 | sharedstatedir=$ac_optarg ;; | ||
1081 | |||
1082 | -site | --site | --sit) | ||
1083 | ac_prev=site ;; | ||
1084 | -site=* | --site=* | --sit=*) | ||
1085 | site=$ac_optarg ;; | ||
1086 | |||
1087 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1088 | ac_prev=srcdir ;; | ||
1089 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1090 | srcdir=$ac_optarg ;; | ||
1091 | |||
1092 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1093 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1094 | ac_prev=sysconfdir ;; | ||
1095 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1096 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1097 | sysconfdir=$ac_optarg ;; | ||
1098 | |||
1099 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1100 | ac_prev=target_alias ;; | ||
1101 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1102 | target_alias=$ac_optarg ;; | ||
1103 | |||
1104 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1105 | verbose=yes ;; | ||
1106 | |||
1107 | -version | --version | --versio | --versi | --vers | -V) | ||
1108 | ac_init_version=: ;; | ||
1109 | |||
1110 | -with-* | --with-*) | ||
1111 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1112 | # Reject names that are not valid shell variable names. | ||
1113 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1114 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1115 | ac_useropt_orig=$ac_useropt | ||
1116 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1117 | case $ac_user_opts in | ||
1118 | *" | ||
1119 | "with_$ac_useropt" | ||
1120 | "*) ;; | ||
1121 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1122 | ac_unrecognized_sep=', ';; | ||
1123 | esac | ||
1124 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1125 | |||
1126 | -without-* | --without-*) | ||
1127 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1128 | # Reject names that are not valid shell variable names. | ||
1129 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1130 | as_fn_error $? "invalid package name: $ac_useropt" | ||
1131 | ac_useropt_orig=$ac_useropt | ||
1132 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1133 | case $ac_user_opts in | ||
1134 | *" | ||
1135 | "with_$ac_useropt" | ||
1136 | "*) ;; | ||
1137 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1138 | ac_unrecognized_sep=', ';; | ||
1139 | esac | ||
1140 | eval with_$ac_useropt=no ;; | ||
1141 | |||
1142 | --x) | ||
1143 | # Obsolete; use --with-x. | ||
1144 | with_x=yes ;; | ||
1145 | |||
1146 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1147 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1148 | ac_prev=x_includes ;; | ||
1149 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1150 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1151 | x_includes=$ac_optarg ;; | ||
1152 | |||
1153 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1154 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1155 | ac_prev=x_libraries ;; | ||
1156 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1157 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1158 | x_libraries=$ac_optarg ;; | ||
1159 | |||
1160 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | ||
1161 | Try \`$0 --help' for more information" | ||
1162 | ;; | ||
1163 | |||
1164 | *=*) | ||
1165 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1166 | # Reject names that are not valid shell variable names. | ||
1167 | case $ac_envvar in #( | ||
1168 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1169 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | ||
1170 | esac | ||
1171 | eval $ac_envvar=\$ac_optarg | ||
1172 | export $ac_envvar ;; | ||
1173 | |||
1174 | *) | ||
1175 | # FIXME: should be removed in autoconf 3.0. | ||
1176 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1177 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1178 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1179 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | ||
1180 | ;; | ||
1181 | |||
1182 | esac | ||
1183 | done | ||
1184 | |||
1185 | if test -n "$ac_prev"; then | ||
1186 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1187 | as_fn_error $? "missing argument to $ac_option" | ||
1188 | fi | ||
1189 | |||
1190 | if test -n "$ac_unrecognized_opts"; then | ||
1191 | case $enable_option_checking in | ||
1192 | no) ;; | ||
1193 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | ||
1194 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1195 | esac | ||
1196 | fi | ||
1197 | |||
1198 | # Check all directory arguments for consistency. | ||
1199 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1200 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1201 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1202 | libdir localedir mandir | ||
1203 | do | ||
1204 | eval ac_val=\$$ac_var | ||
1205 | # Remove trailing slashes. | ||
1206 | case $ac_val in | ||
1207 | */ ) | ||
1208 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1209 | eval $ac_var=\$ac_val;; | ||
1210 | esac | ||
1211 | # Be sure to have absolute directory names. | ||
1212 | case $ac_val in | ||
1213 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1214 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1215 | esac | ||
1216 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | ||
1217 | done | ||
1218 | |||
1219 | # There might be people who depend on the old broken behavior: `$host' | ||
1220 | # used to hold the argument of --host etc. | ||
1221 | # FIXME: To remove some day. | ||
1222 | build=$build_alias | ||
1223 | host=$host_alias | ||
1224 | target=$target_alias | ||
1225 | |||
1226 | # FIXME: To remove some day. | ||
1227 | if test "x$host_alias" != x; then | ||
1228 | if test "x$build_alias" = x; then | ||
1229 | cross_compiling=maybe | ||
1230 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | ||
1231 | If a cross compiler is detected then cross compile mode will be used" >&2 | ||
1232 | elif test "x$build_alias" != "x$host_alias"; then | ||
1233 | cross_compiling=yes | ||
1234 | fi | ||
1235 | fi | ||
1236 | |||
1237 | ac_tool_prefix= | ||
1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1239 | |||
1240 | test "$silent" = yes && exec 6>/dev/null | ||
1241 | |||
1242 | |||
1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1244 | ac_ls_di=`ls -di .` && | ||
1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1246 | as_fn_error $? "working directory cannot be determined" | ||
1247 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1248 | as_fn_error $? "pwd does not report name of working directory" | ||
1249 | |||
1250 | |||
1251 | # Find the source files, if location was not specified. | ||
1252 | if test -z "$srcdir"; then | ||
1253 | ac_srcdir_defaulted=yes | ||
1254 | # Try the directory containing this script, then the parent directory. | ||
1255 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1256 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1257 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1258 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1259 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1260 | $as_echo X"$as_myself" | | ||
1261 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1262 | s//\1/ | ||
1263 | q | ||
1264 | } | ||
1265 | /^X\(\/\/\)[^/].*/{ | ||
1266 | s//\1/ | ||
1267 | q | ||
1268 | } | ||
1269 | /^X\(\/\/\)$/{ | ||
1270 | s//\1/ | ||
1271 | q | ||
1272 | } | ||
1273 | /^X\(\/\).*/{ | ||
1274 | s//\1/ | ||
1275 | q | ||
1276 | } | ||
1277 | s/.*/./; q'` | ||
1278 | srcdir=$ac_confdir | ||
1279 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1280 | srcdir=.. | ||
1281 | fi | ||
1282 | else | ||
1283 | ac_srcdir_defaulted=no | ||
1284 | fi | ||
1285 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1286 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1287 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | ||
1288 | fi | ||
1289 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1290 | ac_abs_confdir=`( | ||
1291 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | ||
1292 | pwd)` | ||
1293 | # When building in place, set srcdir=. | ||
1294 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1295 | srcdir=. | ||
1296 | fi | ||
1297 | # Remove unnecessary trailing slashes from srcdir. | ||
1298 | # Double slashes in file names in object file debugging info | ||
1299 | # mess up M-x gdb in Emacs. | ||
1300 | case $srcdir in | ||
1301 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1302 | esac | ||
1303 | for ac_var in $ac_precious_vars; do | ||
1304 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1305 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1306 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1307 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1308 | done | ||
1309 | |||
1310 | # | ||
1311 | # Report the --help message. | ||
1312 | # | ||
1313 | if test "$ac_init_help" = "long"; then | ||
1314 | # Omit some internal or obsolete options to make the list less imposing. | ||
1315 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1316 | cat <<_ACEOF | ||
1317 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1318 | |||
1319 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1320 | |||
1321 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1322 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1323 | |||
1324 | Defaults for the options are specified in brackets. | ||
1325 | |||
1326 | Configuration: | ||
1327 | -h, --help display this help and exit | ||
1328 | --help=short display options specific to this package | ||
1329 | --help=recursive display the short help of all the included packages | ||
1330 | -V, --version display version information and exit | ||
1331 | -q, --quiet, --silent do not print \`checking ...' messages | ||
1332 | --cache-file=FILE cache test results in FILE [disabled] | ||
1333 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1334 | -n, --no-create do not create output files | ||
1335 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1336 | |||
1337 | Installation directories: | ||
1338 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1339 | [$ac_default_prefix] | ||
1340 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1341 | [PREFIX] | ||
1342 | |||
1343 | By default, \`make install' will install all the files in | ||
1344 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1345 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1346 | for instance \`--prefix=\$HOME'. | ||
1347 | |||
1348 | For better control, use the options below. | ||
1349 | |||
1350 | Fine tuning of the installation directories: | ||
1351 | --bindir=DIR user executables [EPREFIX/bin] | ||
1352 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1353 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1354 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1355 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1356 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1357 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1358 | --includedir=DIR C header files [PREFIX/include] | ||
1359 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1360 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1361 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1362 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1363 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1364 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1365 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1366 | --htmldir=DIR html documentation [DOCDIR] | ||
1367 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1368 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1369 | --psdir=DIR ps documentation [DOCDIR] | ||
1370 | _ACEOF | ||
1371 | |||
1372 | cat <<\_ACEOF | ||
1373 | |||
1374 | System types: | ||
1375 | --build=BUILD configure for building on BUILD [guessed] | ||
1376 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1377 | _ACEOF | ||
1378 | fi | ||
1379 | |||
1380 | if test -n "$ac_init_help"; then | ||
1381 | case $ac_init_help in | ||
1382 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1383 | esac | ||
1384 | cat <<\_ACEOF | ||
1385 | |||
1386 | Optional Features: | ||
1387 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1388 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1389 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1390 | --disable-largefile omit support for large files | ||
1391 | --disable-strip Disable calling strip(1) on install | ||
1392 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1393 | --disable-lastlog disable use of lastlog even if detected no | ||
1394 | --disable-utmp disable use of utmp even if detected no | ||
1395 | --disable-utmpx disable use of utmpx even if detected no | ||
1396 | --disable-wtmp disable use of wtmp even if detected no | ||
1397 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1398 | --disable-libutil disable use of libutil (login() etc.) no | ||
1399 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1400 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1401 | |||
1402 | Optional Packages: | ||
1403 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1404 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1405 | --without-stackprotect Don't use compiler's stack protection | ||
1406 | --without-hardening Don't use toolchain hardening flags | ||
1407 | --without-rpath Disable auto-added -R linker paths | ||
1408 | --with-cflags Specify additional flags to pass to compiler | ||
1409 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1410 | --with-ldflags Specify additional flags to pass to linker | ||
1411 | --with-libs Specify additional libraries to link with | ||
1412 | --with-Werror Build main code with -Werror | ||
1413 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1414 | --with-solaris-projects Enable Solaris projects (experimental) | ||
1415 | --with-osfsia Enable Digital Unix SIA | ||
1416 | --with-zlib=PATH Use zlib in PATH | ||
1417 | --without-zlib-version-check Disable zlib version check | ||
1418 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1419 | --with-ldns[=PATH] Use ldns for DNSSEC support (optionally in PATH) | ||
1420 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1421 | --with-audit=module Enable audit support (modules=debug,bsm,linux) | ||
1422 | --with-pie Build Position Independent Executables if possible | ||
1423 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1424 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1425 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1426 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1427 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1428 | --with-pam Enable PAM support | ||
1429 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1430 | --with-sandbox=style Specify privilege separation sandbox (no, darwin, rlimit, systrace, seccomp_filter, capsicum) | ||
1431 | --with-selinux Enable SELinux support | ||
1432 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1433 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1434 | --with-xauth=PATH Specify path to xauth program | ||
1435 | --with-maildir=/path/to/mail Specify your system mail directory | ||
1436 | --with-mantype=man|cat|doc Set man page type | ||
1437 | --with-md5-passwords Enable use of MD5 passwords | ||
1438 | --without-shadow Disable shadow password support | ||
1439 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1440 | --with-default-path= Specify default \$PATH environment for server | ||
1441 | --with-superuser-path= Specify different path for super-user | ||
1442 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1443 | --with-bsd-auth Enable BSD auth support | ||
1444 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1445 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1446 | |||
1447 | Some influential environment variables: | ||
1448 | CC C compiler command | ||
1449 | CFLAGS C compiler flags | ||
1450 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1451 | nonstandard directory <lib dir> | ||
1452 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1453 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1454 | you have headers in a nonstandard directory <include dir> | ||
1455 | CPP C preprocessor | ||
1456 | |||
1457 | Use these variables to override the choices made by `configure' or to help | ||
1458 | it to find libraries and programs with nonstandard names/locations. | ||
1459 | |||
1460 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1461 | _ACEOF | ||
1462 | ac_status=$? | ||
1463 | fi | ||
1464 | |||
1465 | if test "$ac_init_help" = "recursive"; then | ||
1466 | # If there are subdirs, report their specific --help. | ||
1467 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1468 | test -d "$ac_dir" || | ||
1469 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1470 | continue | ||
1471 | ac_builddir=. | ||
1472 | |||
1473 | case "$ac_dir" in | ||
1474 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1475 | *) | ||
1476 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1477 | # A ".." for each directory in $ac_dir_suffix. | ||
1478 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1479 | case $ac_top_builddir_sub in | ||
1480 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1481 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1482 | esac ;; | ||
1483 | esac | ||
1484 | ac_abs_top_builddir=$ac_pwd | ||
1485 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1486 | # for backward compatibility: | ||
1487 | ac_top_builddir=$ac_top_build_prefix | ||
1488 | |||
1489 | case $srcdir in | ||
1490 | .) # We are building in place. | ||
1491 | ac_srcdir=. | ||
1492 | ac_top_srcdir=$ac_top_builddir_sub | ||
1493 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1494 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1495 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1496 | ac_top_srcdir=$srcdir | ||
1497 | ac_abs_top_srcdir=$srcdir ;; | ||
1498 | *) # Relative name. | ||
1499 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1500 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1501 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1502 | esac | ||
1503 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1504 | |||
1505 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1506 | # Check for guested configure. | ||
1507 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1508 | echo && | ||
1509 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1510 | elif test -f "$ac_srcdir/configure"; then | ||
1511 | echo && | ||
1512 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1513 | else | ||
1514 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1515 | fi || ac_status=$? | ||
1516 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1517 | done | ||
1518 | fi | ||
1519 | |||
1520 | test -n "$ac_init_help" && exit $ac_status | ||
1521 | if $ac_init_version; then | ||
1522 | cat <<\_ACEOF | ||
1523 | OpenSSH configure Portable | ||
1524 | generated by GNU Autoconf 2.68 | ||
1525 | |||
1526 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1527 | This configure script is free software; the Free Software Foundation | ||
1528 | gives unlimited permission to copy, distribute and modify it. | ||
1529 | _ACEOF | ||
1530 | exit | ||
1531 | fi | ||
1532 | |||
1533 | ## ------------------------ ## | ||
1534 | ## Autoconf initialization. ## | ||
1535 | ## ------------------------ ## | ||
1536 | |||
1537 | # ac_fn_c_try_compile LINENO | ||
1538 | # -------------------------- | ||
1539 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1540 | ac_fn_c_try_compile () | ||
1541 | { | ||
1542 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1543 | rm -f conftest.$ac_objext | ||
1544 | if { { ac_try="$ac_compile" | ||
1545 | case "(($ac_try" in | ||
1546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1547 | *) ac_try_echo=$ac_try;; | ||
1548 | esac | ||
1549 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1550 | $as_echo "$ac_try_echo"; } >&5 | ||
1551 | (eval "$ac_compile") 2>conftest.err | ||
1552 | ac_status=$? | ||
1553 | if test -s conftest.err; then | ||
1554 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1555 | cat conftest.er1 >&5 | ||
1556 | mv -f conftest.er1 conftest.err | ||
1557 | fi | ||
1558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1559 | test $ac_status = 0; } && { | ||
1560 | test -z "$ac_c_werror_flag" || | ||
1561 | test ! -s conftest.err | ||
1562 | } && test -s conftest.$ac_objext; then : | ||
1563 | ac_retval=0 | ||
1564 | else | ||
1565 | $as_echo "$as_me: failed program was:" >&5 | ||
1566 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1567 | |||
1568 | ac_retval=1 | ||
1569 | fi | ||
1570 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1571 | as_fn_set_status $ac_retval | ||
1572 | |||
1573 | } # ac_fn_c_try_compile | ||
1574 | |||
1575 | # ac_fn_c_try_run LINENO | ||
1576 | # ---------------------- | ||
1577 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1578 | # that executables *can* be run. | ||
1579 | ac_fn_c_try_run () | ||
1580 | { | ||
1581 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1582 | if { { ac_try="$ac_link" | ||
1583 | case "(($ac_try" in | ||
1584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1585 | *) ac_try_echo=$ac_try;; | ||
1586 | esac | ||
1587 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1588 | $as_echo "$ac_try_echo"; } >&5 | ||
1589 | (eval "$ac_link") 2>&5 | ||
1590 | ac_status=$? | ||
1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1592 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1593 | { { case "(($ac_try" in | ||
1594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1595 | *) ac_try_echo=$ac_try;; | ||
1596 | esac | ||
1597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1598 | $as_echo "$ac_try_echo"; } >&5 | ||
1599 | (eval "$ac_try") 2>&5 | ||
1600 | ac_status=$? | ||
1601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1602 | test $ac_status = 0; }; }; then : | ||
1603 | ac_retval=0 | ||
1604 | else | ||
1605 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1606 | $as_echo "$as_me: failed program was:" >&5 | ||
1607 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1608 | |||
1609 | ac_retval=$ac_status | ||
1610 | fi | ||
1611 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1612 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1613 | as_fn_set_status $ac_retval | ||
1614 | |||
1615 | } # ac_fn_c_try_run | ||
1616 | |||
1617 | # ac_fn_c_try_cpp LINENO | ||
1618 | # ---------------------- | ||
1619 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1620 | ac_fn_c_try_cpp () | ||
1621 | { | ||
1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1623 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1624 | case "(($ac_try" in | ||
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1626 | *) ac_try_echo=$ac_try;; | ||
1627 | esac | ||
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1629 | $as_echo "$ac_try_echo"; } >&5 | ||
1630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1631 | ac_status=$? | ||
1632 | if test -s conftest.err; then | ||
1633 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1634 | cat conftest.er1 >&5 | ||
1635 | mv -f conftest.er1 conftest.err | ||
1636 | fi | ||
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1638 | test $ac_status = 0; } > conftest.i && { | ||
1639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1640 | test ! -s conftest.err | ||
1641 | }; then : | ||
1642 | ac_retval=0 | ||
1643 | else | ||
1644 | $as_echo "$as_me: failed program was:" >&5 | ||
1645 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1646 | |||
1647 | ac_retval=1 | ||
1648 | fi | ||
1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1650 | as_fn_set_status $ac_retval | ||
1651 | |||
1652 | } # ac_fn_c_try_cpp | ||
1653 | |||
1654 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1655 | # ------------------------------------------------------- | ||
1656 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1657 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1658 | ac_fn_c_check_header_compile () | ||
1659 | { | ||
1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1662 | $as_echo_n "checking for $2... " >&6; } | ||
1663 | if eval \${$3+:} false; then : | ||
1664 | $as_echo_n "(cached) " >&6 | ||
1665 | else | ||
1666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1667 | /* end confdefs.h. */ | ||
1668 | $4 | ||
1669 | #include <$2> | ||
1670 | _ACEOF | ||
1671 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1672 | eval "$3=yes" | ||
1673 | else | ||
1674 | eval "$3=no" | ||
1675 | fi | ||
1676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1677 | fi | ||
1678 | eval ac_res=\$$3 | ||
1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1680 | $as_echo "$ac_res" >&6; } | ||
1681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1682 | |||
1683 | } # ac_fn_c_check_header_compile | ||
1684 | |||
1685 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | ||
1686 | # --------------------------------------------- | ||
1687 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | ||
1688 | # accordingly. | ||
1689 | ac_fn_c_check_decl () | ||
1690 | { | ||
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1692 | as_decl_name=`echo $2|sed 's/ *(.*//'` | ||
1693 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | ||
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | ||
1695 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | ||
1696 | if eval \${$3+:} false; then : | ||
1697 | $as_echo_n "(cached) " >&6 | ||
1698 | else | ||
1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1700 | /* end confdefs.h. */ | ||
1701 | $4 | ||
1702 | int | ||
1703 | main () | ||
1704 | { | ||
1705 | #ifndef $as_decl_name | ||
1706 | #ifdef __cplusplus | ||
1707 | (void) $as_decl_use; | ||
1708 | #else | ||
1709 | (void) $as_decl_name; | ||
1710 | #endif | ||
1711 | #endif | ||
1712 | |||
1713 | ; | ||
1714 | return 0; | ||
1715 | } | ||
1716 | _ACEOF | ||
1717 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1718 | eval "$3=yes" | ||
1719 | else | ||
1720 | eval "$3=no" | ||
1721 | fi | ||
1722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1723 | fi | ||
1724 | eval ac_res=\$$3 | ||
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1726 | $as_echo "$ac_res" >&6; } | ||
1727 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1728 | |||
1729 | } # ac_fn_c_check_decl | ||
1730 | |||
1731 | # ac_fn_c_try_link LINENO | ||
1732 | # ----------------------- | ||
1733 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
1734 | ac_fn_c_try_link () | ||
1735 | { | ||
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1737 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
1738 | if { { ac_try="$ac_link" | ||
1739 | case "(($ac_try" in | ||
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1741 | *) ac_try_echo=$ac_try;; | ||
1742 | esac | ||
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1744 | $as_echo "$ac_try_echo"; } >&5 | ||
1745 | (eval "$ac_link") 2>conftest.err | ||
1746 | ac_status=$? | ||
1747 | if test -s conftest.err; then | ||
1748 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1749 | cat conftest.er1 >&5 | ||
1750 | mv -f conftest.er1 conftest.err | ||
1751 | fi | ||
1752 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1753 | test $ac_status = 0; } && { | ||
1754 | test -z "$ac_c_werror_flag" || | ||
1755 | test ! -s conftest.err | ||
1756 | } && test -s conftest$ac_exeext && { | ||
1757 | test "$cross_compiling" = yes || | ||
1758 | $as_test_x conftest$ac_exeext | ||
1759 | }; then : | ||
1760 | ac_retval=0 | ||
1761 | else | ||
1762 | $as_echo "$as_me: failed program was:" >&5 | ||
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1764 | |||
1765 | ac_retval=1 | ||
1766 | fi | ||
1767 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
1768 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
1769 | # interfere with the next link command; also delete a directory that is | ||
1770 | # left behind by Apple's compiler. We do this before executing the actions. | ||
1771 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1772 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1773 | as_fn_set_status $ac_retval | ||
1774 | |||
1775 | } # ac_fn_c_try_link | ||
1776 | |||
1777 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1778 | # ------------------------------------------------------- | ||
1779 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1780 | # the include files in INCLUDES and setting the cache variable VAR | ||
1781 | # accordingly. | ||
1782 | ac_fn_c_check_header_mongrel () | ||
1783 | { | ||
1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1785 | if eval \${$3+:} false; then : | ||
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1787 | $as_echo_n "checking for $2... " >&6; } | ||
1788 | if eval \${$3+:} false; then : | ||
1789 | $as_echo_n "(cached) " >&6 | ||
1790 | fi | ||
1791 | eval ac_res=\$$3 | ||
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1793 | $as_echo "$ac_res" >&6; } | ||
1794 | else | ||
1795 | # Is the header compilable? | ||
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1797 | $as_echo_n "checking $2 usability... " >&6; } | ||
1798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1799 | /* end confdefs.h. */ | ||
1800 | $4 | ||
1801 | #include <$2> | ||
1802 | _ACEOF | ||
1803 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1804 | ac_header_compiler=yes | ||
1805 | else | ||
1806 | ac_header_compiler=no | ||
1807 | fi | ||
1808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1810 | $as_echo "$ac_header_compiler" >&6; } | ||
1811 | |||
1812 | # Is the header present? | ||
1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1814 | $as_echo_n "checking $2 presence... " >&6; } | ||
1815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1816 | /* end confdefs.h. */ | ||
1817 | #include <$2> | ||
1818 | _ACEOF | ||
1819 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1820 | ac_header_preproc=yes | ||
1821 | else | ||
1822 | ac_header_preproc=no | ||
1823 | fi | ||
1824 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1826 | $as_echo "$ac_header_preproc" >&6; } | ||
1827 | |||
1828 | # So? What about this header? | ||
1829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1830 | yes:no: ) | ||
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1832 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1834 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1835 | ;; | ||
1836 | no:yes:* ) | ||
1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1838 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1840 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1842 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1844 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1846 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1847 | ( $as_echo "## ------------------------------------------- ## | ||
1848 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
1849 | ## ------------------------------------------- ##" | ||
1850 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
1851 | ;; | ||
1852 | esac | ||
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1854 | $as_echo_n "checking for $2... " >&6; } | ||
1855 | if eval \${$3+:} false; then : | ||
1856 | $as_echo_n "(cached) " >&6 | ||
1857 | else | ||
1858 | eval "$3=\$ac_header_compiler" | ||
1859 | fi | ||
1860 | eval ac_res=\$$3 | ||
1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1862 | $as_echo "$ac_res" >&6; } | ||
1863 | fi | ||
1864 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1865 | |||
1866 | } # ac_fn_c_check_header_mongrel | ||
1867 | |||
1868 | # ac_fn_c_check_func LINENO FUNC VAR | ||
1869 | # ---------------------------------- | ||
1870 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | ||
1871 | ac_fn_c_check_func () | ||
1872 | { | ||
1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1875 | $as_echo_n "checking for $2... " >&6; } | ||
1876 | if eval \${$3+:} false; then : | ||
1877 | $as_echo_n "(cached) " >&6 | ||
1878 | else | ||
1879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1880 | /* end confdefs.h. */ | ||
1881 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | ||
1882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
1883 | #define $2 innocuous_$2 | ||
1884 | |||
1885 | /* System header to define __stub macros and hopefully few prototypes, | ||
1886 | which can conflict with char $2 (); below. | ||
1887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
1888 | <limits.h> exists even on freestanding compilers. */ | ||
1889 | |||
1890 | #ifdef __STDC__ | ||
1891 | # include <limits.h> | ||
1892 | #else | ||
1893 | # include <assert.h> | ||
1894 | #endif | ||
1895 | |||
1896 | #undef $2 | ||
1897 | |||
1898 | /* Override any GCC internal prototype to avoid an error. | ||
1899 | Use char because int might match the return type of a GCC | ||
1900 | builtin and then its argument prototype would still apply. */ | ||
1901 | #ifdef __cplusplus | ||
1902 | extern "C" | ||
1903 | #endif | ||
1904 | char $2 (); | ||
1905 | /* The GNU C library defines this for functions which it implements | ||
1906 | to always fail with ENOSYS. Some functions are actually named | ||
1907 | something starting with __ and the normal name is an alias. */ | ||
1908 | #if defined __stub_$2 || defined __stub___$2 | ||
1909 | choke me | ||
1910 | #endif | ||
1911 | |||
1912 | int | ||
1913 | main () | ||
1914 | { | ||
1915 | return $2 (); | ||
1916 | ; | ||
1917 | return 0; | ||
1918 | } | ||
1919 | _ACEOF | ||
1920 | if ac_fn_c_try_link "$LINENO"; then : | ||
1921 | eval "$3=yes" | ||
1922 | else | ||
1923 | eval "$3=no" | ||
1924 | fi | ||
1925 | rm -f core conftest.err conftest.$ac_objext \ | ||
1926 | conftest$ac_exeext conftest.$ac_ext | ||
1927 | fi | ||
1928 | eval ac_res=\$$3 | ||
1929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1930 | $as_echo "$ac_res" >&6; } | ||
1931 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1932 | |||
1933 | } # ac_fn_c_check_func | ||
1934 | |||
1935 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | ||
1936 | # ------------------------------------------- | ||
1937 | # Tests whether TYPE exists after having included INCLUDES, setting cache | ||
1938 | # variable VAR accordingly. | ||
1939 | ac_fn_c_check_type () | ||
1940 | { | ||
1941 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1943 | $as_echo_n "checking for $2... " >&6; } | ||
1944 | if eval \${$3+:} false; then : | ||
1945 | $as_echo_n "(cached) " >&6 | ||
1946 | else | ||
1947 | eval "$3=no" | ||
1948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1949 | /* end confdefs.h. */ | ||
1950 | $4 | ||
1951 | int | ||
1952 | main () | ||
1953 | { | ||
1954 | if (sizeof ($2)) | ||
1955 | return 0; | ||
1956 | ; | ||
1957 | return 0; | ||
1958 | } | ||
1959 | _ACEOF | ||
1960 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1962 | /* end confdefs.h. */ | ||
1963 | $4 | ||
1964 | int | ||
1965 | main () | ||
1966 | { | ||
1967 | if (sizeof (($2))) | ||
1968 | return 0; | ||
1969 | ; | ||
1970 | return 0; | ||
1971 | } | ||
1972 | _ACEOF | ||
1973 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1974 | |||
1975 | else | ||
1976 | eval "$3=yes" | ||
1977 | fi | ||
1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1979 | fi | ||
1980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1981 | fi | ||
1982 | eval ac_res=\$$3 | ||
1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1984 | $as_echo "$ac_res" >&6; } | ||
1985 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
1986 | |||
1987 | } # ac_fn_c_check_type | ||
1988 | |||
1989 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | ||
1990 | # -------------------------------------------- | ||
1991 | # Tries to find the compile-time value of EXPR in a program that includes | ||
1992 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | ||
1993 | # computed | ||
1994 | ac_fn_c_compute_int () | ||
1995 | { | ||
1996 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1997 | if test "$cross_compiling" = yes; then | ||
1998 | # Depending upon the size, compute the lo and hi bounds. | ||
1999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2000 | /* end confdefs.h. */ | ||
2001 | $4 | ||
2002 | int | ||
2003 | main () | ||
2004 | { | ||
2005 | static int test_array [1 - 2 * !(($2) >= 0)]; | ||
2006 | test_array [0] = 0 | ||
2007 | |||
2008 | ; | ||
2009 | return 0; | ||
2010 | } | ||
2011 | _ACEOF | ||
2012 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2013 | ac_lo=0 ac_mid=0 | ||
2014 | while :; do | ||
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2016 | /* end confdefs.h. */ | ||
2017 | $4 | ||
2018 | int | ||
2019 | main () | ||
2020 | { | ||
2021 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2022 | test_array [0] = 0 | ||
2023 | |||
2024 | ; | ||
2025 | return 0; | ||
2026 | } | ||
2027 | _ACEOF | ||
2028 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2029 | ac_hi=$ac_mid; break | ||
2030 | else | ||
2031 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | ||
2032 | if test $ac_lo -le $ac_mid; then | ||
2033 | ac_lo= ac_hi= | ||
2034 | break | ||
2035 | fi | ||
2036 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | ||
2037 | fi | ||
2038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2039 | done | ||
2040 | else | ||
2041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2042 | /* end confdefs.h. */ | ||
2043 | $4 | ||
2044 | int | ||
2045 | main () | ||
2046 | { | ||
2047 | static int test_array [1 - 2 * !(($2) < 0)]; | ||
2048 | test_array [0] = 0 | ||
2049 | |||
2050 | ; | ||
2051 | return 0; | ||
2052 | } | ||
2053 | _ACEOF | ||
2054 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2055 | ac_hi=-1 ac_mid=-1 | ||
2056 | while :; do | ||
2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2058 | /* end confdefs.h. */ | ||
2059 | $4 | ||
2060 | int | ||
2061 | main () | ||
2062 | { | ||
2063 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | ||
2064 | test_array [0] = 0 | ||
2065 | |||
2066 | ; | ||
2067 | return 0; | ||
2068 | } | ||
2069 | _ACEOF | ||
2070 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2071 | ac_lo=$ac_mid; break | ||
2072 | else | ||
2073 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | ||
2074 | if test $ac_mid -le $ac_hi; then | ||
2075 | ac_lo= ac_hi= | ||
2076 | break | ||
2077 | fi | ||
2078 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | ||
2079 | fi | ||
2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2081 | done | ||
2082 | else | ||
2083 | ac_lo= ac_hi= | ||
2084 | fi | ||
2085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2086 | fi | ||
2087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2088 | # Binary search between lo and hi bounds. | ||
2089 | while test "x$ac_lo" != "x$ac_hi"; do | ||
2090 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | ||
2091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2092 | /* end confdefs.h. */ | ||
2093 | $4 | ||
2094 | int | ||
2095 | main () | ||
2096 | { | ||
2097 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | ||
2098 | test_array [0] = 0 | ||
2099 | |||
2100 | ; | ||
2101 | return 0; | ||
2102 | } | ||
2103 | _ACEOF | ||
2104 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2105 | ac_hi=$ac_mid | ||
2106 | else | ||
2107 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | ||
2108 | fi | ||
2109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2110 | done | ||
2111 | case $ac_lo in #(( | ||
2112 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | ||
2113 | '') ac_retval=1 ;; | ||
2114 | esac | ||
2115 | else | ||
2116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2117 | /* end confdefs.h. */ | ||
2118 | $4 | ||
2119 | static long int longval () { return $2; } | ||
2120 | static unsigned long int ulongval () { return $2; } | ||
2121 | #include <stdio.h> | ||
2122 | #include <stdlib.h> | ||
2123 | int | ||
2124 | main () | ||
2125 | { | ||
2126 | |||
2127 | FILE *f = fopen ("conftest.val", "w"); | ||
2128 | if (! f) | ||
2129 | return 1; | ||
2130 | if (($2) < 0) | ||
2131 | { | ||
2132 | long int i = longval (); | ||
2133 | if (i != ($2)) | ||
2134 | return 1; | ||
2135 | fprintf (f, "%ld", i); | ||
2136 | } | ||
2137 | else | ||
2138 | { | ||
2139 | unsigned long int i = ulongval (); | ||
2140 | if (i != ($2)) | ||
2141 | return 1; | ||
2142 | fprintf (f, "%lu", i); | ||
2143 | } | ||
2144 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
2145 | on some platforms. */ | ||
2146 | return ferror (f) || fclose (f) != 0; | ||
2147 | |||
2148 | ; | ||
2149 | return 0; | ||
2150 | } | ||
2151 | _ACEOF | ||
2152 | if ac_fn_c_try_run "$LINENO"; then : | ||
2153 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | ||
2154 | else | ||
2155 | ac_retval=1 | ||
2156 | fi | ||
2157 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
2158 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
2159 | rm -f conftest.val | ||
2160 | |||
2161 | fi | ||
2162 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2163 | as_fn_set_status $ac_retval | ||
2164 | |||
2165 | } # ac_fn_c_compute_int | ||
2166 | |||
2167 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | ||
2168 | # ---------------------------------------------------- | ||
2169 | # Tries to find if the field MEMBER exists in type AGGR, after including | ||
2170 | # INCLUDES, setting cache variable VAR accordingly. | ||
2171 | ac_fn_c_check_member () | ||
2172 | { | ||
2173 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | ||
2175 | $as_echo_n "checking for $2.$3... " >&6; } | ||
2176 | if eval \${$4+:} false; then : | ||
2177 | $as_echo_n "(cached) " >&6 | ||
2178 | else | ||
2179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2180 | /* end confdefs.h. */ | ||
2181 | $5 | ||
2182 | int | ||
2183 | main () | ||
2184 | { | ||
2185 | static $2 ac_aggr; | ||
2186 | if (ac_aggr.$3) | ||
2187 | return 0; | ||
2188 | ; | ||
2189 | return 0; | ||
2190 | } | ||
2191 | _ACEOF | ||
2192 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2193 | eval "$4=yes" | ||
2194 | else | ||
2195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2196 | /* end confdefs.h. */ | ||
2197 | $5 | ||
2198 | int | ||
2199 | main () | ||
2200 | { | ||
2201 | static $2 ac_aggr; | ||
2202 | if (sizeof ac_aggr.$3) | ||
2203 | return 0; | ||
2204 | ; | ||
2205 | return 0; | ||
2206 | } | ||
2207 | _ACEOF | ||
2208 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2209 | eval "$4=yes" | ||
2210 | else | ||
2211 | eval "$4=no" | ||
2212 | fi | ||
2213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2214 | fi | ||
2215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2216 | fi | ||
2217 | eval ac_res=\$$4 | ||
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
2219 | $as_echo "$ac_res" >&6; } | ||
2220 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | ||
2221 | |||
2222 | } # ac_fn_c_check_member | ||
2223 | cat >config.log <<_ACEOF | ||
2224 | This file contains any messages produced by compilers while | ||
2225 | running configure, to aid debugging if configure makes a mistake. | ||
2226 | |||
2227 | It was created by OpenSSH $as_me Portable, which was | ||
2228 | generated by GNU Autoconf 2.68. Invocation command line was | ||
2229 | |||
2230 | $ $0 $@ | ||
2231 | |||
2232 | _ACEOF | ||
2233 | exec 5>>config.log | ||
2234 | { | ||
2235 | cat <<_ASUNAME | ||
2236 | ## --------- ## | ||
2237 | ## Platform. ## | ||
2238 | ## --------- ## | ||
2239 | |||
2240 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
2241 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
2242 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
2243 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
2244 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
2245 | |||
2246 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
2247 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
2248 | |||
2249 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
2250 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
2251 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
2252 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
2253 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
2254 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
2255 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
2256 | |||
2257 | _ASUNAME | ||
2258 | |||
2259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2260 | for as_dir in $PATH | ||
2261 | do | ||
2262 | IFS=$as_save_IFS | ||
2263 | test -z "$as_dir" && as_dir=. | ||
2264 | $as_echo "PATH: $as_dir" | ||
2265 | done | ||
2266 | IFS=$as_save_IFS | ||
2267 | |||
2268 | } >&5 | ||
2269 | |||
2270 | cat >&5 <<_ACEOF | ||
2271 | |||
2272 | |||
2273 | ## ----------- ## | ||
2274 | ## Core tests. ## | ||
2275 | ## ----------- ## | ||
2276 | |||
2277 | _ACEOF | ||
2278 | |||
2279 | |||
2280 | # Keep a trace of the command line. | ||
2281 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
2282 | # Strip out --silent because we don't want to record it for future runs. | ||
2283 | # Also quote any args containing shell meta-characters. | ||
2284 | # Make two passes to allow for proper duplicate-argument suppression. | ||
2285 | ac_configure_args= | ||
2286 | ac_configure_args0= | ||
2287 | ac_configure_args1= | ||
2288 | ac_must_keep_next=false | ||
2289 | for ac_pass in 1 2 | ||
2290 | do | ||
2291 | for ac_arg | ||
2292 | do | ||
2293 | case $ac_arg in | ||
2294 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
2295 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
2296 | | -silent | --silent | --silen | --sile | --sil) | ||
2297 | continue ;; | ||
2298 | *\'*) | ||
2299 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2300 | esac | ||
2301 | case $ac_pass in | ||
2302 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
2303 | 2) | ||
2304 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
2305 | if test $ac_must_keep_next = true; then | ||
2306 | ac_must_keep_next=false # Got value, back to normal. | ||
2307 | else | ||
2308 | case $ac_arg in | ||
2309 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
2310 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
2311 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
2312 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
2313 | case "$ac_configure_args0 " in | ||
2314 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
2315 | esac | ||
2316 | ;; | ||
2317 | -* ) ac_must_keep_next=true ;; | ||
2318 | esac | ||
2319 | fi | ||
2320 | as_fn_append ac_configure_args " '$ac_arg'" | ||
2321 | ;; | ||
2322 | esac | ||
2323 | done | ||
2324 | done | ||
2325 | { ac_configure_args0=; unset ac_configure_args0;} | ||
2326 | { ac_configure_args1=; unset ac_configure_args1;} | ||
2327 | |||
2328 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
2329 | # config.log. We remove comments because anyway the quotes in there | ||
2330 | # would cause problems or look ugly. | ||
2331 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
2332 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
2333 | trap 'exit_status=$? | ||
2334 | # Save into config.log some information that might help in debugging. | ||
2335 | { | ||
2336 | echo | ||
2337 | |||
2338 | $as_echo "## ---------------- ## | ||
2339 | ## Cache variables. ## | ||
2340 | ## ---------------- ##" | ||
2341 | echo | ||
2342 | # The following way of writing the cache mishandles newlines in values, | ||
2343 | ( | ||
2344 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
2345 | eval ac_val=\$$ac_var | ||
2346 | case $ac_val in #( | ||
2347 | *${as_nl}*) | ||
2348 | case $ac_var in #( | ||
2349 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
2350 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
2351 | esac | ||
2352 | case $ac_var in #( | ||
2353 | _ | IFS | as_nl) ;; #( | ||
2354 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
2355 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
2356 | esac ;; | ||
2357 | esac | ||
2358 | done | ||
2359 | (set) 2>&1 | | ||
2360 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
2361 | *${as_nl}ac_space=\ *) | ||
2362 | sed -n \ | ||
2363 | "s/'\''/'\''\\\\'\'''\''/g; | ||
2364 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
2365 | ;; #( | ||
2366 | *) | ||
2367 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
2368 | ;; | ||
2369 | esac | | ||
2370 | sort | ||
2371 | ) | ||
2372 | echo | ||
2373 | |||
2374 | $as_echo "## ----------------- ## | ||
2375 | ## Output variables. ## | ||
2376 | ## ----------------- ##" | ||
2377 | echo | ||
2378 | for ac_var in $ac_subst_vars | ||
2379 | do | ||
2380 | eval ac_val=\$$ac_var | ||
2381 | case $ac_val in | ||
2382 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2383 | esac | ||
2384 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2385 | done | sort | ||
2386 | echo | ||
2387 | |||
2388 | if test -n "$ac_subst_files"; then | ||
2389 | $as_echo "## ------------------- ## | ||
2390 | ## File substitutions. ## | ||
2391 | ## ------------------- ##" | ||
2392 | echo | ||
2393 | for ac_var in $ac_subst_files | ||
2394 | do | ||
2395 | eval ac_val=\$$ac_var | ||
2396 | case $ac_val in | ||
2397 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
2398 | esac | ||
2399 | $as_echo "$ac_var='\''$ac_val'\''" | ||
2400 | done | sort | ||
2401 | echo | ||
2402 | fi | ||
2403 | |||
2404 | if test -s confdefs.h; then | ||
2405 | $as_echo "## ----------- ## | ||
2406 | ## confdefs.h. ## | ||
2407 | ## ----------- ##" | ||
2408 | echo | ||
2409 | cat confdefs.h | ||
2410 | echo | ||
2411 | fi | ||
2412 | test "$ac_signal" != 0 && | ||
2413 | $as_echo "$as_me: caught signal $ac_signal" | ||
2414 | $as_echo "$as_me: exit $exit_status" | ||
2415 | } >&5 | ||
2416 | rm -f core *.core core.conftest.* && | ||
2417 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
2418 | exit $exit_status | ||
2419 | ' 0 | ||
2420 | for ac_signal in 1 2 13 15; do | ||
2421 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
2422 | done | ||
2423 | ac_signal=0 | ||
2424 | |||
2425 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
2426 | rm -f -r conftest* confdefs.h | ||
2427 | |||
2428 | $as_echo "/* confdefs.h */" > confdefs.h | ||
2429 | |||
2430 | # Predefined preprocessor variables. | ||
2431 | |||
2432 | cat >>confdefs.h <<_ACEOF | ||
2433 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
2434 | _ACEOF | ||
2435 | |||
2436 | cat >>confdefs.h <<_ACEOF | ||
2437 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
2438 | _ACEOF | ||
2439 | |||
2440 | cat >>confdefs.h <<_ACEOF | ||
2441 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
2442 | _ACEOF | ||
2443 | |||
2444 | cat >>confdefs.h <<_ACEOF | ||
2445 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
2446 | _ACEOF | ||
2447 | |||
2448 | cat >>confdefs.h <<_ACEOF | ||
2449 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
2450 | _ACEOF | ||
2451 | |||
2452 | cat >>confdefs.h <<_ACEOF | ||
2453 | #define PACKAGE_URL "$PACKAGE_URL" | ||
2454 | _ACEOF | ||
2455 | |||
2456 | |||
2457 | # Let the site file select an alternate cache file if it wants to. | ||
2458 | # Prefer an explicitly selected file to automatically selected ones. | ||
2459 | ac_site_file1=NONE | ||
2460 | ac_site_file2=NONE | ||
2461 | if test -n "$CONFIG_SITE"; then | ||
2462 | # We do not want a PATH search for config.site. | ||
2463 | case $CONFIG_SITE in #(( | ||
2464 | -*) ac_site_file1=./$CONFIG_SITE;; | ||
2465 | */*) ac_site_file1=$CONFIG_SITE;; | ||
2466 | *) ac_site_file1=./$CONFIG_SITE;; | ||
2467 | esac | ||
2468 | elif test "x$prefix" != xNONE; then | ||
2469 | ac_site_file1=$prefix/share/config.site | ||
2470 | ac_site_file2=$prefix/etc/config.site | ||
2471 | else | ||
2472 | ac_site_file1=$ac_default_prefix/share/config.site | ||
2473 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
2474 | fi | ||
2475 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
2476 | do | ||
2477 | test "x$ac_site_file" = xNONE && continue | ||
2478 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
2480 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
2481 | sed 's/^/| /' "$ac_site_file" >&5 | ||
2482 | . "$ac_site_file" \ | ||
2483 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2484 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2485 | as_fn_error $? "failed to load site script $ac_site_file | ||
2486 | See \`config.log' for more details" "$LINENO" 5; } | ||
2487 | fi | ||
2488 | done | ||
2489 | |||
2490 | if test -r "$cache_file"; then | ||
2491 | # Some versions of bash will fail to source /dev/null (special files | ||
2492 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
2493 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
2495 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
2496 | case $cache_file in | ||
2497 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
2498 | *) . "./$cache_file";; | ||
2499 | esac | ||
2500 | fi | ||
2501 | else | ||
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
2503 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
2504 | >$cache_file | ||
2505 | fi | ||
2506 | |||
2507 | # Check that the precious variables saved in the cache have kept the same | ||
2508 | # value. | ||
2509 | ac_cache_corrupted=false | ||
2510 | for ac_var in $ac_precious_vars; do | ||
2511 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
2512 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
2513 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
2514 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
2515 | case $ac_old_set,$ac_new_set in | ||
2516 | set,) | ||
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
2518 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
2519 | ac_cache_corrupted=: ;; | ||
2520 | ,set) | ||
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
2522 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
2523 | ac_cache_corrupted=: ;; | ||
2524 | ,);; | ||
2525 | *) | ||
2526 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
2527 | # differences in whitespace do not lead to failure. | ||
2528 | ac_old_val_w=`echo x $ac_old_val` | ||
2529 | ac_new_val_w=`echo x $ac_new_val` | ||
2530 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
2531 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
2532 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
2533 | ac_cache_corrupted=: | ||
2534 | else | ||
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
2536 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
2537 | eval $ac_var=\$ac_old_val | ||
2538 | fi | ||
2539 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
2540 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
2542 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
2543 | fi;; | ||
2544 | esac | ||
2545 | # Pass precious variables to config.status. | ||
2546 | if test "$ac_new_set" = set; then | ||
2547 | case $ac_new_val in | ||
2548 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
2549 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
2550 | esac | ||
2551 | case " $ac_configure_args " in | ||
2552 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
2553 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
2554 | esac | ||
2555 | fi | ||
2556 | done | ||
2557 | if $ac_cache_corrupted; then | ||
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2559 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
2561 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
2562 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
2563 | fi | ||
2564 | ## -------------------- ## | ||
2565 | ## Main body of script. ## | ||
2566 | ## -------------------- ## | ||
2567 | |||
2568 | ac_ext=c | ||
2569 | ac_cpp='$CPP $CPPFLAGS' | ||
2570 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2571 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2572 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2573 | |||
2574 | |||
2575 | |||
2576 | |||
2577 | ac_ext=c | ||
2578 | ac_cpp='$CPP $CPPFLAGS' | ||
2579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2582 | |||
2583 | |||
2584 | ac_config_headers="$ac_config_headers config.h" | ||
2585 | |||
2586 | ac_ext=c | ||
2587 | ac_cpp='$CPP $CPPFLAGS' | ||
2588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2591 | if test -n "$ac_tool_prefix"; then | ||
2592 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2593 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2595 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2596 | if ${ac_cv_prog_CC+:} false; then : | ||
2597 | $as_echo_n "(cached) " >&6 | ||
2598 | else | ||
2599 | if test -n "$CC"; then | ||
2600 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2601 | else | ||
2602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2603 | for as_dir in $PATH | ||
2604 | do | ||
2605 | IFS=$as_save_IFS | ||
2606 | test -z "$as_dir" && as_dir=. | ||
2607 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2609 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2611 | break 2 | ||
2612 | fi | ||
2613 | done | ||
2614 | done | ||
2615 | IFS=$as_save_IFS | ||
2616 | |||
2617 | fi | ||
2618 | fi | ||
2619 | CC=$ac_cv_prog_CC | ||
2620 | if test -n "$CC"; then | ||
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2622 | $as_echo "$CC" >&6; } | ||
2623 | else | ||
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2625 | $as_echo "no" >&6; } | ||
2626 | fi | ||
2627 | |||
2628 | |||
2629 | fi | ||
2630 | if test -z "$ac_cv_prog_CC"; then | ||
2631 | ac_ct_CC=$CC | ||
2632 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2633 | set dummy gcc; ac_word=$2 | ||
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2635 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2636 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2637 | $as_echo_n "(cached) " >&6 | ||
2638 | else | ||
2639 | if test -n "$ac_ct_CC"; then | ||
2640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2641 | else | ||
2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2643 | for as_dir in $PATH | ||
2644 | do | ||
2645 | IFS=$as_save_IFS | ||
2646 | test -z "$as_dir" && as_dir=. | ||
2647 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2649 | ac_cv_prog_ac_ct_CC="gcc" | ||
2650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2651 | break 2 | ||
2652 | fi | ||
2653 | done | ||
2654 | done | ||
2655 | IFS=$as_save_IFS | ||
2656 | |||
2657 | fi | ||
2658 | fi | ||
2659 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2660 | if test -n "$ac_ct_CC"; then | ||
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2662 | $as_echo "$ac_ct_CC" >&6; } | ||
2663 | else | ||
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2665 | $as_echo "no" >&6; } | ||
2666 | fi | ||
2667 | |||
2668 | if test "x$ac_ct_CC" = x; then | ||
2669 | CC="" | ||
2670 | else | ||
2671 | case $cross_compiling:$ac_tool_warned in | ||
2672 | yes:) | ||
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2674 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2675 | ac_tool_warned=yes ;; | ||
2676 | esac | ||
2677 | CC=$ac_ct_CC | ||
2678 | fi | ||
2679 | else | ||
2680 | CC="$ac_cv_prog_CC" | ||
2681 | fi | ||
2682 | |||
2683 | if test -z "$CC"; then | ||
2684 | if test -n "$ac_tool_prefix"; then | ||
2685 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2686 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2688 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2689 | if ${ac_cv_prog_CC+:} false; then : | ||
2690 | $as_echo_n "(cached) " >&6 | ||
2691 | else | ||
2692 | if test -n "$CC"; then | ||
2693 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2694 | else | ||
2695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2696 | for as_dir in $PATH | ||
2697 | do | ||
2698 | IFS=$as_save_IFS | ||
2699 | test -z "$as_dir" && as_dir=. | ||
2700 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2702 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2704 | break 2 | ||
2705 | fi | ||
2706 | done | ||
2707 | done | ||
2708 | IFS=$as_save_IFS | ||
2709 | |||
2710 | fi | ||
2711 | fi | ||
2712 | CC=$ac_cv_prog_CC | ||
2713 | if test -n "$CC"; then | ||
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2715 | $as_echo "$CC" >&6; } | ||
2716 | else | ||
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2718 | $as_echo "no" >&6; } | ||
2719 | fi | ||
2720 | |||
2721 | |||
2722 | fi | ||
2723 | fi | ||
2724 | if test -z "$CC"; then | ||
2725 | # Extract the first word of "cc", so it can be a program name with args. | ||
2726 | set dummy cc; ac_word=$2 | ||
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2728 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2729 | if ${ac_cv_prog_CC+:} false; then : | ||
2730 | $as_echo_n "(cached) " >&6 | ||
2731 | else | ||
2732 | if test -n "$CC"; then | ||
2733 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2734 | else | ||
2735 | ac_prog_rejected=no | ||
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2737 | for as_dir in $PATH | ||
2738 | do | ||
2739 | IFS=$as_save_IFS | ||
2740 | test -z "$as_dir" && as_dir=. | ||
2741 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2743 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2744 | ac_prog_rejected=yes | ||
2745 | continue | ||
2746 | fi | ||
2747 | ac_cv_prog_CC="cc" | ||
2748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2749 | break 2 | ||
2750 | fi | ||
2751 | done | ||
2752 | done | ||
2753 | IFS=$as_save_IFS | ||
2754 | |||
2755 | if test $ac_prog_rejected = yes; then | ||
2756 | # We found a bogon in the path, so make sure we never use it. | ||
2757 | set dummy $ac_cv_prog_CC | ||
2758 | shift | ||
2759 | if test $# != 0; then | ||
2760 | # We chose a different compiler from the bogus one. | ||
2761 | # However, it has the same basename, so the bogon will be chosen | ||
2762 | # first if we set CC to just the basename; use the full file name. | ||
2763 | shift | ||
2764 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2765 | fi | ||
2766 | fi | ||
2767 | fi | ||
2768 | fi | ||
2769 | CC=$ac_cv_prog_CC | ||
2770 | if test -n "$CC"; then | ||
2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2772 | $as_echo "$CC" >&6; } | ||
2773 | else | ||
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2775 | $as_echo "no" >&6; } | ||
2776 | fi | ||
2777 | |||
2778 | |||
2779 | fi | ||
2780 | if test -z "$CC"; then | ||
2781 | if test -n "$ac_tool_prefix"; then | ||
2782 | for ac_prog in cl.exe | ||
2783 | do | ||
2784 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2785 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2787 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2788 | if ${ac_cv_prog_CC+:} false; then : | ||
2789 | $as_echo_n "(cached) " >&6 | ||
2790 | else | ||
2791 | if test -n "$CC"; then | ||
2792 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2793 | else | ||
2794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2795 | for as_dir in $PATH | ||
2796 | do | ||
2797 | IFS=$as_save_IFS | ||
2798 | test -z "$as_dir" && as_dir=. | ||
2799 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2801 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2803 | break 2 | ||
2804 | fi | ||
2805 | done | ||
2806 | done | ||
2807 | IFS=$as_save_IFS | ||
2808 | |||
2809 | fi | ||
2810 | fi | ||
2811 | CC=$ac_cv_prog_CC | ||
2812 | if test -n "$CC"; then | ||
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2814 | $as_echo "$CC" >&6; } | ||
2815 | else | ||
2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2817 | $as_echo "no" >&6; } | ||
2818 | fi | ||
2819 | |||
2820 | |||
2821 | test -n "$CC" && break | ||
2822 | done | ||
2823 | fi | ||
2824 | if test -z "$CC"; then | ||
2825 | ac_ct_CC=$CC | ||
2826 | for ac_prog in cl.exe | ||
2827 | do | ||
2828 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2829 | set dummy $ac_prog; ac_word=$2 | ||
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2831 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2832 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | ||
2833 | $as_echo_n "(cached) " >&6 | ||
2834 | else | ||
2835 | if test -n "$ac_ct_CC"; then | ||
2836 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2837 | else | ||
2838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2839 | for as_dir in $PATH | ||
2840 | do | ||
2841 | IFS=$as_save_IFS | ||
2842 | test -z "$as_dir" && as_dir=. | ||
2843 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2845 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2847 | break 2 | ||
2848 | fi | ||
2849 | done | ||
2850 | done | ||
2851 | IFS=$as_save_IFS | ||
2852 | |||
2853 | fi | ||
2854 | fi | ||
2855 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2856 | if test -n "$ac_ct_CC"; then | ||
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2858 | $as_echo "$ac_ct_CC" >&6; } | ||
2859 | else | ||
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2861 | $as_echo "no" >&6; } | ||
2862 | fi | ||
2863 | |||
2864 | |||
2865 | test -n "$ac_ct_CC" && break | ||
2866 | done | ||
2867 | |||
2868 | if test "x$ac_ct_CC" = x; then | ||
2869 | CC="" | ||
2870 | else | ||
2871 | case $cross_compiling:$ac_tool_warned in | ||
2872 | yes:) | ||
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2874 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2875 | ac_tool_warned=yes ;; | ||
2876 | esac | ||
2877 | CC=$ac_ct_CC | ||
2878 | fi | ||
2879 | fi | ||
2880 | |||
2881 | fi | ||
2882 | |||
2883 | |||
2884 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2885 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2886 | as_fn_error $? "no acceptable C compiler found in \$PATH | ||
2887 | See \`config.log' for more details" "$LINENO" 5; } | ||
2888 | |||
2889 | # Provide some information about the compiler. | ||
2890 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2891 | set X $ac_compile | ||
2892 | ac_compiler=$2 | ||
2893 | for ac_option in --version -v -V -qversion; do | ||
2894 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2895 | case "(($ac_try" in | ||
2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2897 | *) ac_try_echo=$ac_try;; | ||
2898 | esac | ||
2899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2900 | $as_echo "$ac_try_echo"; } >&5 | ||
2901 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2902 | ac_status=$? | ||
2903 | if test -s conftest.err; then | ||
2904 | sed '10a\ | ||
2905 | ... rest of stderr output deleted ... | ||
2906 | 10q' conftest.err >conftest.er1 | ||
2907 | cat conftest.er1 >&5 | ||
2908 | fi | ||
2909 | rm -f conftest.er1 conftest.err | ||
2910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2911 | test $ac_status = 0; } | ||
2912 | done | ||
2913 | |||
2914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2915 | /* end confdefs.h. */ | ||
2916 | |||
2917 | int | ||
2918 | main () | ||
2919 | { | ||
2920 | |||
2921 | ; | ||
2922 | return 0; | ||
2923 | } | ||
2924 | _ACEOF | ||
2925 | ac_clean_files_save=$ac_clean_files | ||
2926 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2927 | # Try to create an executable without -o first, disregard a.out. | ||
2928 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2929 | # of exeext. | ||
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2931 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2932 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2933 | |||
2934 | # The possible output files: | ||
2935 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2936 | |||
2937 | ac_rmfiles= | ||
2938 | for ac_file in $ac_files | ||
2939 | do | ||
2940 | case $ac_file in | ||
2941 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2942 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2943 | esac | ||
2944 | done | ||
2945 | rm -f $ac_rmfiles | ||
2946 | |||
2947 | if { { ac_try="$ac_link_default" | ||
2948 | case "(($ac_try" in | ||
2949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2950 | *) ac_try_echo=$ac_try;; | ||
2951 | esac | ||
2952 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2953 | $as_echo "$ac_try_echo"; } >&5 | ||
2954 | (eval "$ac_link_default") 2>&5 | ||
2955 | ac_status=$? | ||
2956 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2957 | test $ac_status = 0; }; then : | ||
2958 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2959 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2960 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2961 | # so that the user can short-circuit this test for compilers unknown to | ||
2962 | # Autoconf. | ||
2963 | for ac_file in $ac_files '' | ||
2964 | do | ||
2965 | test -f "$ac_file" || continue | ||
2966 | case $ac_file in | ||
2967 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
2968 | ;; | ||
2969 | [ab].out ) | ||
2970 | # We found the default executable, but exeext='' is most | ||
2971 | # certainly right. | ||
2972 | break;; | ||
2973 | *.* ) | ||
2974 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2975 | then :; else | ||
2976 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2977 | fi | ||
2978 | # We set ac_cv_exeext here because the later test for it is not | ||
2979 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2980 | # argument, so we may need to know it at that point already. | ||
2981 | # Even if this section looks crufty: it has the advantage of | ||
2982 | # actually working. | ||
2983 | break;; | ||
2984 | * ) | ||
2985 | break;; | ||
2986 | esac | ||
2987 | done | ||
2988 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2989 | |||
2990 | else | ||
2991 | ac_file='' | ||
2992 | fi | ||
2993 | if test -z "$ac_file"; then : | ||
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2995 | $as_echo "no" >&6; } | ||
2996 | $as_echo "$as_me: failed program was:" >&5 | ||
2997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2998 | |||
2999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3001 | as_fn_error 77 "C compiler cannot create executables | ||
3002 | See \`config.log' for more details" "$LINENO" 5; } | ||
3003 | else | ||
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
3005 | $as_echo "yes" >&6; } | ||
3006 | fi | ||
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
3008 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
3010 | $as_echo "$ac_file" >&6; } | ||
3011 | ac_exeext=$ac_cv_exeext | ||
3012 | |||
3013 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
3014 | ac_clean_files=$ac_clean_files_save | ||
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
3016 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
3017 | if { { ac_try="$ac_link" | ||
3018 | case "(($ac_try" in | ||
3019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3020 | *) ac_try_echo=$ac_try;; | ||
3021 | esac | ||
3022 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3023 | $as_echo "$ac_try_echo"; } >&5 | ||
3024 | (eval "$ac_link") 2>&5 | ||
3025 | ac_status=$? | ||
3026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3027 | test $ac_status = 0; }; then : | ||
3028 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
3029 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
3030 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
3031 | # `rm'. | ||
3032 | for ac_file in conftest.exe conftest conftest.*; do | ||
3033 | test -f "$ac_file" || continue | ||
3034 | case $ac_file in | ||
3035 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
3036 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3037 | break;; | ||
3038 | * ) break;; | ||
3039 | esac | ||
3040 | done | ||
3041 | else | ||
3042 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3043 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3044 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | ||
3045 | See \`config.log' for more details" "$LINENO" 5; } | ||
3046 | fi | ||
3047 | rm -f conftest conftest$ac_cv_exeext | ||
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
3049 | $as_echo "$ac_cv_exeext" >&6; } | ||
3050 | |||
3051 | rm -f conftest.$ac_ext | ||
3052 | EXEEXT=$ac_cv_exeext | ||
3053 | ac_exeext=$EXEEXT | ||
3054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3055 | /* end confdefs.h. */ | ||
3056 | #include <stdio.h> | ||
3057 | int | ||
3058 | main () | ||
3059 | { | ||
3060 | FILE *f = fopen ("conftest.out", "w"); | ||
3061 | return ferror (f) || fclose (f) != 0; | ||
3062 | |||
3063 | ; | ||
3064 | return 0; | ||
3065 | } | ||
3066 | _ACEOF | ||
3067 | ac_clean_files="$ac_clean_files conftest.out" | ||
3068 | # Check that the compiler produces executables we can run. If not, either | ||
3069 | # the compiler is broken, or we cross compile. | ||
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
3071 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
3072 | if test "$cross_compiling" != yes; then | ||
3073 | { { ac_try="$ac_link" | ||
3074 | case "(($ac_try" in | ||
3075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3076 | *) ac_try_echo=$ac_try;; | ||
3077 | esac | ||
3078 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3079 | $as_echo "$ac_try_echo"; } >&5 | ||
3080 | (eval "$ac_link") 2>&5 | ||
3081 | ac_status=$? | ||
3082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3083 | test $ac_status = 0; } | ||
3084 | if { ac_try='./conftest$ac_cv_exeext' | ||
3085 | { { case "(($ac_try" in | ||
3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3087 | *) ac_try_echo=$ac_try;; | ||
3088 | esac | ||
3089 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3090 | $as_echo "$ac_try_echo"; } >&5 | ||
3091 | (eval "$ac_try") 2>&5 | ||
3092 | ac_status=$? | ||
3093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3094 | test $ac_status = 0; }; }; then | ||
3095 | cross_compiling=no | ||
3096 | else | ||
3097 | if test "$cross_compiling" = maybe; then | ||
3098 | cross_compiling=yes | ||
3099 | else | ||
3100 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3101 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3102 | as_fn_error $? "cannot run C compiled programs. | ||
3103 | If you meant to cross compile, use \`--host'. | ||
3104 | See \`config.log' for more details" "$LINENO" 5; } | ||
3105 | fi | ||
3106 | fi | ||
3107 | fi | ||
3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
3109 | $as_echo "$cross_compiling" >&6; } | ||
3110 | |||
3111 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
3112 | ac_clean_files=$ac_clean_files_save | ||
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
3114 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
3115 | if ${ac_cv_objext+:} false; then : | ||
3116 | $as_echo_n "(cached) " >&6 | ||
3117 | else | ||
3118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3119 | /* end confdefs.h. */ | ||
3120 | |||
3121 | int | ||
3122 | main () | ||
3123 | { | ||
3124 | |||
3125 | ; | ||
3126 | return 0; | ||
3127 | } | ||
3128 | _ACEOF | ||
3129 | rm -f conftest.o conftest.obj | ||
3130 | if { { ac_try="$ac_compile" | ||
3131 | case "(($ac_try" in | ||
3132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3133 | *) ac_try_echo=$ac_try;; | ||
3134 | esac | ||
3135 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
3136 | $as_echo "$ac_try_echo"; } >&5 | ||
3137 | (eval "$ac_compile") 2>&5 | ||
3138 | ac_status=$? | ||
3139 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
3140 | test $ac_status = 0; }; then : | ||
3141 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3142 | test -f "$ac_file" || continue; | ||
3143 | case $ac_file in | ||
3144 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
3145 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3146 | break;; | ||
3147 | esac | ||
3148 | done | ||
3149 | else | ||
3150 | $as_echo "$as_me: failed program was:" >&5 | ||
3151 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3152 | |||
3153 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3154 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3155 | as_fn_error $? "cannot compute suffix of object files: cannot compile | ||
3156 | See \`config.log' for more details" "$LINENO" 5; } | ||
3157 | fi | ||
3158 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3159 | fi | ||
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
3161 | $as_echo "$ac_cv_objext" >&6; } | ||
3162 | OBJEXT=$ac_cv_objext | ||
3163 | ac_objext=$OBJEXT | ||
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
3165 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
3166 | if ${ac_cv_c_compiler_gnu+:} false; then : | ||
3167 | $as_echo_n "(cached) " >&6 | ||
3168 | else | ||
3169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3170 | /* end confdefs.h. */ | ||
3171 | |||
3172 | int | ||
3173 | main () | ||
3174 | { | ||
3175 | #ifndef __GNUC__ | ||
3176 | choke me | ||
3177 | #endif | ||
3178 | |||
3179 | ; | ||
3180 | return 0; | ||
3181 | } | ||
3182 | _ACEOF | ||
3183 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3184 | ac_compiler_gnu=yes | ||
3185 | else | ||
3186 | ac_compiler_gnu=no | ||
3187 | fi | ||
3188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3189 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3190 | |||
3191 | fi | ||
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
3193 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
3194 | if test $ac_compiler_gnu = yes; then | ||
3195 | GCC=yes | ||
3196 | else | ||
3197 | GCC= | ||
3198 | fi | ||
3199 | ac_test_CFLAGS=${CFLAGS+set} | ||
3200 | ac_save_CFLAGS=$CFLAGS | ||
3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
3202 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
3203 | if ${ac_cv_prog_cc_g+:} false; then : | ||
3204 | $as_echo_n "(cached) " >&6 | ||
3205 | else | ||
3206 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3207 | ac_c_werror_flag=yes | ||
3208 | ac_cv_prog_cc_g=no | ||
3209 | CFLAGS="-g" | ||
3210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3211 | /* end confdefs.h. */ | ||
3212 | |||
3213 | int | ||
3214 | main () | ||
3215 | { | ||
3216 | |||
3217 | ; | ||
3218 | return 0; | ||
3219 | } | ||
3220 | _ACEOF | ||
3221 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3222 | ac_cv_prog_cc_g=yes | ||
3223 | else | ||
3224 | CFLAGS="" | ||
3225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3226 | /* end confdefs.h. */ | ||
3227 | |||
3228 | int | ||
3229 | main () | ||
3230 | { | ||
3231 | |||
3232 | ; | ||
3233 | return 0; | ||
3234 | } | ||
3235 | _ACEOF | ||
3236 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3237 | |||
3238 | else | ||
3239 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3240 | CFLAGS="-g" | ||
3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3242 | /* end confdefs.h. */ | ||
3243 | |||
3244 | int | ||
3245 | main () | ||
3246 | { | ||
3247 | |||
3248 | ; | ||
3249 | return 0; | ||
3250 | } | ||
3251 | _ACEOF | ||
3252 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3253 | ac_cv_prog_cc_g=yes | ||
3254 | fi | ||
3255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3256 | fi | ||
3257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3258 | fi | ||
3259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3260 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3261 | fi | ||
3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
3263 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
3264 | if test "$ac_test_CFLAGS" = set; then | ||
3265 | CFLAGS=$ac_save_CFLAGS | ||
3266 | elif test $ac_cv_prog_cc_g = yes; then | ||
3267 | if test "$GCC" = yes; then | ||
3268 | CFLAGS="-g -O2" | ||
3269 | else | ||
3270 | CFLAGS="-g" | ||
3271 | fi | ||
3272 | else | ||
3273 | if test "$GCC" = yes; then | ||
3274 | CFLAGS="-O2" | ||
3275 | else | ||
3276 | CFLAGS= | ||
3277 | fi | ||
3278 | fi | ||
3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
3280 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
3281 | if ${ac_cv_prog_cc_c89+:} false; then : | ||
3282 | $as_echo_n "(cached) " >&6 | ||
3283 | else | ||
3284 | ac_cv_prog_cc_c89=no | ||
3285 | ac_save_CC=$CC | ||
3286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3287 | /* end confdefs.h. */ | ||
3288 | #include <stdarg.h> | ||
3289 | #include <stdio.h> | ||
3290 | #include <sys/types.h> | ||
3291 | #include <sys/stat.h> | ||
3292 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3293 | struct buf { int x; }; | ||
3294 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3295 | static char *e (p, i) | ||
3296 | char **p; | ||
3297 | int i; | ||
3298 | { | ||
3299 | return p[i]; | ||
3300 | } | ||
3301 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3302 | { | ||
3303 | char *s; | ||
3304 | va_list v; | ||
3305 | va_start (v,p); | ||
3306 | s = g (p, va_arg (v,int)); | ||
3307 | va_end (v); | ||
3308 | return s; | ||
3309 | } | ||
3310 | |||
3311 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3312 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3313 | These don't provoke an error unfortunately, instead are silently treated | ||
3314 | as 'x'. The following induces an error, until -std is added to get | ||
3315 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3316 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3317 | that's true only with -std. */ | ||
3318 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3319 | |||
3320 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3321 | inside strings and character constants. */ | ||
3322 | #define FOO(x) 'x' | ||
3323 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3324 | |||
3325 | int test (int i, double x); | ||
3326 | struct s1 {int (*f) (int a);}; | ||
3327 | struct s2 {int (*f) (double a);}; | ||
3328 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3329 | int argc; | ||
3330 | char **argv; | ||
3331 | int | ||
3332 | main () | ||
3333 | { | ||
3334 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3335 | ; | ||
3336 | return 0; | ||
3337 | } | ||
3338 | _ACEOF | ||
3339 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3340 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3341 | do | ||
3342 | CC="$ac_save_CC $ac_arg" | ||
3343 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3344 | ac_cv_prog_cc_c89=$ac_arg | ||
3345 | fi | ||
3346 | rm -f core conftest.err conftest.$ac_objext | ||
3347 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3348 | done | ||
3349 | rm -f conftest.$ac_ext | ||
3350 | CC=$ac_save_CC | ||
3351 | |||
3352 | fi | ||
3353 | # AC_CACHE_VAL | ||
3354 | case "x$ac_cv_prog_cc_c89" in | ||
3355 | x) | ||
3356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3357 | $as_echo "none needed" >&6; } ;; | ||
3358 | xno) | ||
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3360 | $as_echo "unsupported" >&6; } ;; | ||
3361 | *) | ||
3362 | CC="$CC $ac_cv_prog_cc_c89" | ||
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3364 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3365 | esac | ||
3366 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3367 | |||
3368 | fi | ||
3369 | |||
3370 | ac_ext=c | ||
3371 | ac_cpp='$CPP $CPPFLAGS' | ||
3372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3375 | |||
3376 | ac_aux_dir= | ||
3377 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
3378 | if test -f "$ac_dir/install-sh"; then | ||
3379 | ac_aux_dir=$ac_dir | ||
3380 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
3381 | break | ||
3382 | elif test -f "$ac_dir/install.sh"; then | ||
3383 | ac_aux_dir=$ac_dir | ||
3384 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
3385 | break | ||
3386 | elif test -f "$ac_dir/shtool"; then | ||
3387 | ac_aux_dir=$ac_dir | ||
3388 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
3389 | break | ||
3390 | fi | ||
3391 | done | ||
3392 | if test -z "$ac_aux_dir"; then | ||
3393 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | ||
3394 | fi | ||
3395 | |||
3396 | # These three variables are undocumented and unsupported, | ||
3397 | # and are intended to be withdrawn in a future Autoconf release. | ||
3398 | # They can cause serious problems if a builder's source tree is in a directory | ||
3399 | # whose full name contains unusual characters. | ||
3400 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
3401 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
3402 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
3403 | |||
3404 | |||
3405 | # Make sure we can run config.sub. | ||
3406 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
3407 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
3408 | |||
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
3410 | $as_echo_n "checking build system type... " >&6; } | ||
3411 | if ${ac_cv_build+:} false; then : | ||
3412 | $as_echo_n "(cached) " >&6 | ||
3413 | else | ||
3414 | ac_build_alias=$build_alias | ||
3415 | test "x$ac_build_alias" = x && | ||
3416 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
3417 | test "x$ac_build_alias" = x && | ||
3418 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | ||
3419 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
3420 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
3421 | |||
3422 | fi | ||
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
3424 | $as_echo "$ac_cv_build" >&6; } | ||
3425 | case $ac_cv_build in | ||
3426 | *-*-*) ;; | ||
3427 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | ||
3428 | esac | ||
3429 | build=$ac_cv_build | ||
3430 | ac_save_IFS=$IFS; IFS='-' | ||
3431 | set x $ac_cv_build | ||
3432 | shift | ||
3433 | build_cpu=$1 | ||
3434 | build_vendor=$2 | ||
3435 | shift; shift | ||
3436 | # Remember, the first character of IFS is used to create $*, | ||
3437 | # except with old shells: | ||
3438 | build_os=$* | ||
3439 | IFS=$ac_save_IFS | ||
3440 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
3441 | |||
3442 | |||
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
3444 | $as_echo_n "checking host system type... " >&6; } | ||
3445 | if ${ac_cv_host+:} false; then : | ||
3446 | $as_echo_n "(cached) " >&6 | ||
3447 | else | ||
3448 | if test "x$host_alias" = x; then | ||
3449 | ac_cv_host=$ac_cv_build | ||
3450 | else | ||
3451 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
3452 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
3453 | fi | ||
3454 | |||
3455 | fi | ||
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
3457 | $as_echo "$ac_cv_host" >&6; } | ||
3458 | case $ac_cv_host in | ||
3459 | *-*-*) ;; | ||
3460 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | ||
3461 | esac | ||
3462 | host=$ac_cv_host | ||
3463 | ac_save_IFS=$IFS; IFS='-' | ||
3464 | set x $ac_cv_host | ||
3465 | shift | ||
3466 | host_cpu=$1 | ||
3467 | host_vendor=$2 | ||
3468 | shift; shift | ||
3469 | # Remember, the first character of IFS is used to create $*, | ||
3470 | # except with old shells: | ||
3471 | host_os=$* | ||
3472 | IFS=$ac_save_IFS | ||
3473 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3474 | |||
3475 | |||
3476 | |||
3477 | ac_ext=c | ||
3478 | ac_cpp='$CPP $CPPFLAGS' | ||
3479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3483 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3484 | # On Suns, sometimes $CPP names a directory. | ||
3485 | if test -n "$CPP" && test -d "$CPP"; then | ||
3486 | CPP= | ||
3487 | fi | ||
3488 | if test -z "$CPP"; then | ||
3489 | if ${ac_cv_prog_CPP+:} false; then : | ||
3490 | $as_echo_n "(cached) " >&6 | ||
3491 | else | ||
3492 | # Double quotes because CPP needs to be expanded | ||
3493 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3494 | do | ||
3495 | ac_preproc_ok=false | ||
3496 | for ac_c_preproc_warn_flag in '' yes | ||
3497 | do | ||
3498 | # Use a header file that comes with gcc, so configuring glibc | ||
3499 | # with a fresh cross-compiler works. | ||
3500 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3501 | # <limits.h> exists even on freestanding compilers. | ||
3502 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3503 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3505 | /* end confdefs.h. */ | ||
3506 | #ifdef __STDC__ | ||
3507 | # include <limits.h> | ||
3508 | #else | ||
3509 | # include <assert.h> | ||
3510 | #endif | ||
3511 | Syntax error | ||
3512 | _ACEOF | ||
3513 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3514 | |||
3515 | else | ||
3516 | # Broken: fails on valid input. | ||
3517 | continue | ||
3518 | fi | ||
3519 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3520 | |||
3521 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3522 | # can be detected and how. | ||
3523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3524 | /* end confdefs.h. */ | ||
3525 | #include <ac_nonexistent.h> | ||
3526 | _ACEOF | ||
3527 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3528 | # Broken: success on invalid input. | ||
3529 | continue | ||
3530 | else | ||
3531 | # Passes both tests. | ||
3532 | ac_preproc_ok=: | ||
3533 | break | ||
3534 | fi | ||
3535 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3536 | |||
3537 | done | ||
3538 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3539 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3540 | if $ac_preproc_ok; then : | ||
3541 | break | ||
3542 | fi | ||
3543 | |||
3544 | done | ||
3545 | ac_cv_prog_CPP=$CPP | ||
3546 | |||
3547 | fi | ||
3548 | CPP=$ac_cv_prog_CPP | ||
3549 | else | ||
3550 | ac_cv_prog_CPP=$CPP | ||
3551 | fi | ||
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3553 | $as_echo "$CPP" >&6; } | ||
3554 | ac_preproc_ok=false | ||
3555 | for ac_c_preproc_warn_flag in '' yes | ||
3556 | do | ||
3557 | # Use a header file that comes with gcc, so configuring glibc | ||
3558 | # with a fresh cross-compiler works. | ||
3559 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3560 | # <limits.h> exists even on freestanding compilers. | ||
3561 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3562 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3564 | /* end confdefs.h. */ | ||
3565 | #ifdef __STDC__ | ||
3566 | # include <limits.h> | ||
3567 | #else | ||
3568 | # include <assert.h> | ||
3569 | #endif | ||
3570 | Syntax error | ||
3571 | _ACEOF | ||
3572 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3573 | |||
3574 | else | ||
3575 | # Broken: fails on valid input. | ||
3576 | continue | ||
3577 | fi | ||
3578 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3579 | |||
3580 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3581 | # can be detected and how. | ||
3582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3583 | /* end confdefs.h. */ | ||
3584 | #include <ac_nonexistent.h> | ||
3585 | _ACEOF | ||
3586 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3587 | # Broken: success on invalid input. | ||
3588 | continue | ||
3589 | else | ||
3590 | # Passes both tests. | ||
3591 | ac_preproc_ok=: | ||
3592 | break | ||
3593 | fi | ||
3594 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
3595 | |||
3596 | done | ||
3597 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3598 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
3599 | if $ac_preproc_ok; then : | ||
3600 | |||
3601 | else | ||
3602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3604 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
3605 | See \`config.log' for more details" "$LINENO" 5; } | ||
3606 | fi | ||
3607 | |||
3608 | ac_ext=c | ||
3609 | ac_cpp='$CPP $CPPFLAGS' | ||
3610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3613 | |||
3614 | |||
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
3616 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3617 | if ${ac_cv_path_GREP+:} false; then : | ||
3618 | $as_echo_n "(cached) " >&6 | ||
3619 | else | ||
3620 | if test -z "$GREP"; then | ||
3621 | ac_path_GREP_found=false | ||
3622 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3624 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3625 | do | ||
3626 | IFS=$as_save_IFS | ||
3627 | test -z "$as_dir" && as_dir=. | ||
3628 | for ac_prog in grep ggrep; do | ||
3629 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3630 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3631 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3632 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3633 | # Check for GNU $ac_path_GREP | ||
3634 | case `"$ac_path_GREP" --version 2>&1` in | ||
3635 | *GNU*) | ||
3636 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3637 | *) | ||
3638 | ac_count=0 | ||
3639 | $as_echo_n 0123456789 >"conftest.in" | ||
3640 | while : | ||
3641 | do | ||
3642 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3643 | mv "conftest.tmp" "conftest.in" | ||
3644 | cp "conftest.in" "conftest.nl" | ||
3645 | $as_echo 'GREP' >> "conftest.nl" | ||
3646 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3647 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3648 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3649 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3650 | # Best one so far, save it but keep looking for a better one | ||
3651 | ac_cv_path_GREP="$ac_path_GREP" | ||
3652 | ac_path_GREP_max=$ac_count | ||
3653 | fi | ||
3654 | # 10*(2^10) chars as input seems more than enough | ||
3655 | test $ac_count -gt 10 && break | ||
3656 | done | ||
3657 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3658 | esac | ||
3659 | |||
3660 | $ac_path_GREP_found && break 3 | ||
3661 | done | ||
3662 | done | ||
3663 | done | ||
3664 | IFS=$as_save_IFS | ||
3665 | if test -z "$ac_cv_path_GREP"; then | ||
3666 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3667 | fi | ||
3668 | else | ||
3669 | ac_cv_path_GREP=$GREP | ||
3670 | fi | ||
3671 | |||
3672 | fi | ||
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
3674 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3675 | GREP="$ac_cv_path_GREP" | ||
3676 | |||
3677 | |||
3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
3679 | $as_echo_n "checking for egrep... " >&6; } | ||
3680 | if ${ac_cv_path_EGREP+:} false; then : | ||
3681 | $as_echo_n "(cached) " >&6 | ||
3682 | else | ||
3683 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3684 | then ac_cv_path_EGREP="$GREP -E" | ||
3685 | else | ||
3686 | if test -z "$EGREP"; then | ||
3687 | ac_path_EGREP_found=false | ||
3688 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3690 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3691 | do | ||
3692 | IFS=$as_save_IFS | ||
3693 | test -z "$as_dir" && as_dir=. | ||
3694 | for ac_prog in egrep; do | ||
3695 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3696 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3697 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3698 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3699 | # Check for GNU $ac_path_EGREP | ||
3700 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3701 | *GNU*) | ||
3702 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3703 | *) | ||
3704 | ac_count=0 | ||
3705 | $as_echo_n 0123456789 >"conftest.in" | ||
3706 | while : | ||
3707 | do | ||
3708 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3709 | mv "conftest.tmp" "conftest.in" | ||
3710 | cp "conftest.in" "conftest.nl" | ||
3711 | $as_echo 'EGREP' >> "conftest.nl" | ||
3712 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3713 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3714 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
3715 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3716 | # Best one so far, save it but keep looking for a better one | ||
3717 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3718 | ac_path_EGREP_max=$ac_count | ||
3719 | fi | ||
3720 | # 10*(2^10) chars as input seems more than enough | ||
3721 | test $ac_count -gt 10 && break | ||
3722 | done | ||
3723 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3724 | esac | ||
3725 | |||
3726 | $ac_path_EGREP_found && break 3 | ||
3727 | done | ||
3728 | done | ||
3729 | done | ||
3730 | IFS=$as_save_IFS | ||
3731 | if test -z "$ac_cv_path_EGREP"; then | ||
3732 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
3733 | fi | ||
3734 | else | ||
3735 | ac_cv_path_EGREP=$EGREP | ||
3736 | fi | ||
3737 | |||
3738 | fi | ||
3739 | fi | ||
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
3741 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3742 | EGREP="$ac_cv_path_EGREP" | ||
3743 | |||
3744 | |||
3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
3746 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3747 | if ${ac_cv_header_stdc+:} false; then : | ||
3748 | $as_echo_n "(cached) " >&6 | ||
3749 | else | ||
3750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3751 | /* end confdefs.h. */ | ||
3752 | #include <stdlib.h> | ||
3753 | #include <stdarg.h> | ||
3754 | #include <string.h> | ||
3755 | #include <float.h> | ||
3756 | |||
3757 | int | ||
3758 | main () | ||
3759 | { | ||
3760 | |||
3761 | ; | ||
3762 | return 0; | ||
3763 | } | ||
3764 | _ACEOF | ||
3765 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3766 | ac_cv_header_stdc=yes | ||
3767 | else | ||
3768 | ac_cv_header_stdc=no | ||
3769 | fi | ||
3770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3771 | |||
3772 | if test $ac_cv_header_stdc = yes; then | ||
3773 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3775 | /* end confdefs.h. */ | ||
3776 | #include <string.h> | ||
3777 | |||
3778 | _ACEOF | ||
3779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3780 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
3781 | |||
3782 | else | ||
3783 | ac_cv_header_stdc=no | ||
3784 | fi | ||
3785 | rm -f conftest* | ||
3786 | |||
3787 | fi | ||
3788 | |||
3789 | if test $ac_cv_header_stdc = yes; then | ||
3790 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3792 | /* end confdefs.h. */ | ||
3793 | #include <stdlib.h> | ||
3794 | |||
3795 | _ACEOF | ||
3796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3797 | $EGREP "free" >/dev/null 2>&1; then : | ||
3798 | |||
3799 | else | ||
3800 | ac_cv_header_stdc=no | ||
3801 | fi | ||
3802 | rm -f conftest* | ||
3803 | |||
3804 | fi | ||
3805 | |||
3806 | if test $ac_cv_header_stdc = yes; then | ||
3807 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3808 | if test "$cross_compiling" = yes; then : | ||
3809 | : | ||
3810 | else | ||
3811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3812 | /* end confdefs.h. */ | ||
3813 | #include <ctype.h> | ||
3814 | #include <stdlib.h> | ||
3815 | #if ((' ' & 0x0FF) == 0x020) | ||
3816 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3817 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3818 | #else | ||
3819 | # define ISLOWER(c) \ | ||
3820 | (('a' <= (c) && (c) <= 'i') \ | ||
3821 | || ('j' <= (c) && (c) <= 'r') \ | ||
3822 | || ('s' <= (c) && (c) <= 'z')) | ||
3823 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3824 | #endif | ||
3825 | |||
3826 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3827 | int | ||
3828 | main () | ||
3829 | { | ||
3830 | int i; | ||
3831 | for (i = 0; i < 256; i++) | ||
3832 | if (XOR (islower (i), ISLOWER (i)) | ||
3833 | || toupper (i) != TOUPPER (i)) | ||
3834 | return 2; | ||
3835 | return 0; | ||
3836 | } | ||
3837 | _ACEOF | ||
3838 | if ac_fn_c_try_run "$LINENO"; then : | ||
3839 | |||
3840 | else | ||
3841 | ac_cv_header_stdc=no | ||
3842 | fi | ||
3843 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
3844 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
3845 | fi | ||
3846 | |||
3847 | fi | ||
3848 | fi | ||
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
3850 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3851 | if test $ac_cv_header_stdc = yes; then | ||
3852 | |||
3853 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
3854 | |||
3855 | fi | ||
3856 | |||
3857 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3858 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3859 | inttypes.h stdint.h unistd.h | ||
3860 | do : | ||
3861 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3862 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
3863 | " | ||
3864 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
3865 | cat >>confdefs.h <<_ACEOF | ||
3866 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3867 | _ACEOF | ||
3868 | |||
3869 | fi | ||
3870 | |||
3871 | done | ||
3872 | |||
3873 | |||
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | ||
3875 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3876 | if ${ac_cv_c_bigendian+:} false; then : | ||
3877 | $as_echo_n "(cached) " >&6 | ||
3878 | else | ||
3879 | ac_cv_c_bigendian=unknown | ||
3880 | # See if we're dealing with a universal compiler. | ||
3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3882 | /* end confdefs.h. */ | ||
3883 | #ifndef __APPLE_CC__ | ||
3884 | not a universal capable compiler | ||
3885 | #endif | ||
3886 | typedef int dummy; | ||
3887 | |||
3888 | _ACEOF | ||
3889 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3890 | |||
3891 | # Check for potential -arch flags. It is not universal unless | ||
3892 | # there are at least two -arch flags with different values. | ||
3893 | ac_arch= | ||
3894 | ac_prev= | ||
3895 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | ||
3896 | if test -n "$ac_prev"; then | ||
3897 | case $ac_word in | ||
3898 | i?86 | x86_64 | ppc | ppc64) | ||
3899 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | ||
3900 | ac_arch=$ac_word | ||
3901 | else | ||
3902 | ac_cv_c_bigendian=universal | ||
3903 | break | ||
3904 | fi | ||
3905 | ;; | ||
3906 | esac | ||
3907 | ac_prev= | ||
3908 | elif test "x$ac_word" = "x-arch"; then | ||
3909 | ac_prev=arch | ||
3910 | fi | ||
3911 | done | ||
3912 | fi | ||
3913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3914 | if test $ac_cv_c_bigendian = unknown; then | ||
3915 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3917 | /* end confdefs.h. */ | ||
3918 | #include <sys/types.h> | ||
3919 | #include <sys/param.h> | ||
3920 | |||
3921 | int | ||
3922 | main () | ||
3923 | { | ||
3924 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3925 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3926 | && LITTLE_ENDIAN) | ||
3927 | bogus endian macros | ||
3928 | #endif | ||
3929 | |||
3930 | ; | ||
3931 | return 0; | ||
3932 | } | ||
3933 | _ACEOF | ||
3934 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3935 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3937 | /* end confdefs.h. */ | ||
3938 | #include <sys/types.h> | ||
3939 | #include <sys/param.h> | ||
3940 | |||
3941 | int | ||
3942 | main () | ||
3943 | { | ||
3944 | #if BYTE_ORDER != BIG_ENDIAN | ||
3945 | not big endian | ||
3946 | #endif | ||
3947 | |||
3948 | ; | ||
3949 | return 0; | ||
3950 | } | ||
3951 | _ACEOF | ||
3952 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3953 | ac_cv_c_bigendian=yes | ||
3954 | else | ||
3955 | ac_cv_c_bigendian=no | ||
3956 | fi | ||
3957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3958 | fi | ||
3959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3960 | fi | ||
3961 | if test $ac_cv_c_bigendian = unknown; then | ||
3962 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3964 | /* end confdefs.h. */ | ||
3965 | #include <limits.h> | ||
3966 | |||
3967 | int | ||
3968 | main () | ||
3969 | { | ||
3970 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
3971 | bogus endian macros | ||
3972 | #endif | ||
3973 | |||
3974 | ; | ||
3975 | return 0; | ||
3976 | } | ||
3977 | _ACEOF | ||
3978 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3979 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
3980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3981 | /* end confdefs.h. */ | ||
3982 | #include <limits.h> | ||
3983 | |||
3984 | int | ||
3985 | main () | ||
3986 | { | ||
3987 | #ifndef _BIG_ENDIAN | ||
3988 | not big endian | ||
3989 | #endif | ||
3990 | |||
3991 | ; | ||
3992 | return 0; | ||
3993 | } | ||
3994 | _ACEOF | ||
3995 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3996 | ac_cv_c_bigendian=yes | ||
3997 | else | ||
3998 | ac_cv_c_bigendian=no | ||
3999 | fi | ||
4000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4001 | fi | ||
4002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4003 | fi | ||
4004 | if test $ac_cv_c_bigendian = unknown; then | ||
4005 | # Compile a test program. | ||
4006 | if test "$cross_compiling" = yes; then : | ||
4007 | # Try to guess by grepping values from an object file. | ||
4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4009 | /* end confdefs.h. */ | ||
4010 | short int ascii_mm[] = | ||
4011 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
4012 | short int ascii_ii[] = | ||
4013 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
4014 | int use_ascii (int i) { | ||
4015 | return ascii_mm[i] + ascii_ii[i]; | ||
4016 | } | ||
4017 | short int ebcdic_ii[] = | ||
4018 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
4019 | short int ebcdic_mm[] = | ||
4020 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
4021 | int use_ebcdic (int i) { | ||
4022 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
4023 | } | ||
4024 | extern int foo; | ||
4025 | |||
4026 | int | ||
4027 | main () | ||
4028 | { | ||
4029 | return use_ascii (foo) == use_ebcdic (foo); | ||
4030 | ; | ||
4031 | return 0; | ||
4032 | } | ||
4033 | _ACEOF | ||
4034 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4035 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
4036 | ac_cv_c_bigendian=yes | ||
4037 | fi | ||
4038 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
4039 | if test "$ac_cv_c_bigendian" = unknown; then | ||
4040 | ac_cv_c_bigendian=no | ||
4041 | else | ||
4042 | # finding both strings is unlikely to happen, but who knows? | ||
4043 | ac_cv_c_bigendian=unknown | ||
4044 | fi | ||
4045 | fi | ||
4046 | fi | ||
4047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4048 | else | ||
4049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4050 | /* end confdefs.h. */ | ||
4051 | $ac_includes_default | ||
4052 | int | ||
4053 | main () | ||
4054 | { | ||
4055 | |||
4056 | /* Are we little or big endian? From Harbison&Steele. */ | ||
4057 | union | ||
4058 | { | ||
4059 | long int l; | ||
4060 | char c[sizeof (long int)]; | ||
4061 | } u; | ||
4062 | u.l = 1; | ||
4063 | return u.c[sizeof (long int) - 1] == 1; | ||
4064 | |||
4065 | ; | ||
4066 | return 0; | ||
4067 | } | ||
4068 | _ACEOF | ||
4069 | if ac_fn_c_try_run "$LINENO"; then : | ||
4070 | ac_cv_c_bigendian=no | ||
4071 | else | ||
4072 | ac_cv_c_bigendian=yes | ||
4073 | fi | ||
4074 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4075 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4076 | fi | ||
4077 | |||
4078 | fi | ||
4079 | fi | ||
4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | ||
4081 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
4082 | case $ac_cv_c_bigendian in #( | ||
4083 | yes) | ||
4084 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | ||
4085 | ;; #( | ||
4086 | no) | ||
4087 | ;; #( | ||
4088 | universal) | ||
4089 | |||
4090 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | ||
4091 | |||
4092 | ;; #( | ||
4093 | *) | ||
4094 | as_fn_error $? "unknown endianness | ||
4095 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | ||
4096 | esac | ||
4097 | |||
4098 | |||
4099 | # Checks for programs. | ||
4100 | for ac_prog in gawk mawk nawk awk | ||
4101 | do | ||
4102 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4103 | set dummy $ac_prog; ac_word=$2 | ||
4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4105 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4106 | if ${ac_cv_prog_AWK+:} false; then : | ||
4107 | $as_echo_n "(cached) " >&6 | ||
4108 | else | ||
4109 | if test -n "$AWK"; then | ||
4110 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
4111 | else | ||
4112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4113 | for as_dir in $PATH | ||
4114 | do | ||
4115 | IFS=$as_save_IFS | ||
4116 | test -z "$as_dir" && as_dir=. | ||
4117 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4119 | ac_cv_prog_AWK="$ac_prog" | ||
4120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4121 | break 2 | ||
4122 | fi | ||
4123 | done | ||
4124 | done | ||
4125 | IFS=$as_save_IFS | ||
4126 | |||
4127 | fi | ||
4128 | fi | ||
4129 | AWK=$ac_cv_prog_AWK | ||
4130 | if test -n "$AWK"; then | ||
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | ||
4132 | $as_echo "$AWK" >&6; } | ||
4133 | else | ||
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4135 | $as_echo "no" >&6; } | ||
4136 | fi | ||
4137 | |||
4138 | |||
4139 | test -n "$AWK" && break | ||
4140 | done | ||
4141 | |||
4142 | ac_ext=c | ||
4143 | ac_cpp='$CPP $CPPFLAGS' | ||
4144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
4148 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4149 | # On Suns, sometimes $CPP names a directory. | ||
4150 | if test -n "$CPP" && test -d "$CPP"; then | ||
4151 | CPP= | ||
4152 | fi | ||
4153 | if test -z "$CPP"; then | ||
4154 | if ${ac_cv_prog_CPP+:} false; then : | ||
4155 | $as_echo_n "(cached) " >&6 | ||
4156 | else | ||
4157 | # Double quotes because CPP needs to be expanded | ||
4158 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4159 | do | ||
4160 | ac_preproc_ok=false | ||
4161 | for ac_c_preproc_warn_flag in '' yes | ||
4162 | do | ||
4163 | # Use a header file that comes with gcc, so configuring glibc | ||
4164 | # with a fresh cross-compiler works. | ||
4165 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4166 | # <limits.h> exists even on freestanding compilers. | ||
4167 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4168 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4170 | /* end confdefs.h. */ | ||
4171 | #ifdef __STDC__ | ||
4172 | # include <limits.h> | ||
4173 | #else | ||
4174 | # include <assert.h> | ||
4175 | #endif | ||
4176 | Syntax error | ||
4177 | _ACEOF | ||
4178 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4179 | |||
4180 | else | ||
4181 | # Broken: fails on valid input. | ||
4182 | continue | ||
4183 | fi | ||
4184 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4185 | |||
4186 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4187 | # can be detected and how. | ||
4188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4189 | /* end confdefs.h. */ | ||
4190 | #include <ac_nonexistent.h> | ||
4191 | _ACEOF | ||
4192 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4193 | # Broken: success on invalid input. | ||
4194 | continue | ||
4195 | else | ||
4196 | # Passes both tests. | ||
4197 | ac_preproc_ok=: | ||
4198 | break | ||
4199 | fi | ||
4200 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4201 | |||
4202 | done | ||
4203 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4204 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4205 | if $ac_preproc_ok; then : | ||
4206 | break | ||
4207 | fi | ||
4208 | |||
4209 | done | ||
4210 | ac_cv_prog_CPP=$CPP | ||
4211 | |||
4212 | fi | ||
4213 | CPP=$ac_cv_prog_CPP | ||
4214 | else | ||
4215 | ac_cv_prog_CPP=$CPP | ||
4216 | fi | ||
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
4218 | $as_echo "$CPP" >&6; } | ||
4219 | ac_preproc_ok=false | ||
4220 | for ac_c_preproc_warn_flag in '' yes | ||
4221 | do | ||
4222 | # Use a header file that comes with gcc, so configuring glibc | ||
4223 | # with a fresh cross-compiler works. | ||
4224 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4225 | # <limits.h> exists even on freestanding compilers. | ||
4226 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4227 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4229 | /* end confdefs.h. */ | ||
4230 | #ifdef __STDC__ | ||
4231 | # include <limits.h> | ||
4232 | #else | ||
4233 | # include <assert.h> | ||
4234 | #endif | ||
4235 | Syntax error | ||
4236 | _ACEOF | ||
4237 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4238 | |||
4239 | else | ||
4240 | # Broken: fails on valid input. | ||
4241 | continue | ||
4242 | fi | ||
4243 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4244 | |||
4245 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4246 | # can be detected and how. | ||
4247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4248 | /* end confdefs.h. */ | ||
4249 | #include <ac_nonexistent.h> | ||
4250 | _ACEOF | ||
4251 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
4252 | # Broken: success on invalid input. | ||
4253 | continue | ||
4254 | else | ||
4255 | # Passes both tests. | ||
4256 | ac_preproc_ok=: | ||
4257 | break | ||
4258 | fi | ||
4259 | rm -f conftest.err conftest.i conftest.$ac_ext | ||
4260 | |||
4261 | done | ||
4262 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4263 | rm -f conftest.i conftest.err conftest.$ac_ext | ||
4264 | if $ac_preproc_ok; then : | ||
4265 | |||
4266 | else | ||
4267 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
4268 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
4269 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | ||
4270 | See \`config.log' for more details" "$LINENO" 5; } | ||
4271 | fi | ||
4272 | |||
4273 | ac_ext=c | ||
4274 | ac_cpp='$CPP $CPPFLAGS' | ||
4275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4278 | |||
4279 | if test -n "$ac_tool_prefix"; then | ||
4280 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4281 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4283 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4284 | if ${ac_cv_prog_RANLIB+:} false; then : | ||
4285 | $as_echo_n "(cached) " >&6 | ||
4286 | else | ||
4287 | if test -n "$RANLIB"; then | ||
4288 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4289 | else | ||
4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4291 | for as_dir in $PATH | ||
4292 | do | ||
4293 | IFS=$as_save_IFS | ||
4294 | test -z "$as_dir" && as_dir=. | ||
4295 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4297 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4299 | break 2 | ||
4300 | fi | ||
4301 | done | ||
4302 | done | ||
4303 | IFS=$as_save_IFS | ||
4304 | |||
4305 | fi | ||
4306 | fi | ||
4307 | RANLIB=$ac_cv_prog_RANLIB | ||
4308 | if test -n "$RANLIB"; then | ||
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | ||
4310 | $as_echo "$RANLIB" >&6; } | ||
4311 | else | ||
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4313 | $as_echo "no" >&6; } | ||
4314 | fi | ||
4315 | |||
4316 | |||
4317 | fi | ||
4318 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4319 | ac_ct_RANLIB=$RANLIB | ||
4320 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4321 | set dummy ranlib; ac_word=$2 | ||
4322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4323 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4324 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | ||
4325 | $as_echo_n "(cached) " >&6 | ||
4326 | else | ||
4327 | if test -n "$ac_ct_RANLIB"; then | ||
4328 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4329 | else | ||
4330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4331 | for as_dir in $PATH | ||
4332 | do | ||
4333 | IFS=$as_save_IFS | ||
4334 | test -z "$as_dir" && as_dir=. | ||
4335 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4337 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4338 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4339 | break 2 | ||
4340 | fi | ||
4341 | done | ||
4342 | done | ||
4343 | IFS=$as_save_IFS | ||
4344 | |||
4345 | fi | ||
4346 | fi | ||
4347 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4348 | if test -n "$ac_ct_RANLIB"; then | ||
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | ||
4350 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4351 | else | ||
4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4353 | $as_echo "no" >&6; } | ||
4354 | fi | ||
4355 | |||
4356 | if test "x$ac_ct_RANLIB" = x; then | ||
4357 | RANLIB=":" | ||
4358 | else | ||
4359 | case $cross_compiling:$ac_tool_warned in | ||
4360 | yes:) | ||
4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
4362 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
4363 | ac_tool_warned=yes ;; | ||
4364 | esac | ||
4365 | RANLIB=$ac_ct_RANLIB | ||
4366 | fi | ||
4367 | else | ||
4368 | RANLIB="$ac_cv_prog_RANLIB" | ||
4369 | fi | ||
4370 | |||
4371 | # Find a good install program. We prefer a C program (faster), | ||
4372 | # so one script is as good as another. But avoid the broken or | ||
4373 | # incompatible versions: | ||
4374 | # SysV /etc/install, /usr/sbin/install | ||
4375 | # SunOS /usr/etc/install | ||
4376 | # IRIX /sbin/install | ||
4377 | # AIX /bin/install | ||
4378 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4379 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4380 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4381 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4382 | # OS/2's system install, which has a completely different semantic | ||
4383 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4384 | # Reject install programs that cannot install multiple files. | ||
4385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
4386 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4387 | if test -z "$INSTALL"; then | ||
4388 | if ${ac_cv_path_install+:} false; then : | ||
4389 | $as_echo_n "(cached) " >&6 | ||
4390 | else | ||
4391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4392 | for as_dir in $PATH | ||
4393 | do | ||
4394 | IFS=$as_save_IFS | ||
4395 | test -z "$as_dir" && as_dir=. | ||
4396 | # Account for people who put trailing slashes in PATH elements. | ||
4397 | case $as_dir/ in #(( | ||
4398 | ./ | .// | /[cC]/* | \ | ||
4399 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4400 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
4401 | /usr/ucb/* ) ;; | ||
4402 | *) | ||
4403 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4404 | # Don't use installbsd from OSF since it installs stuff as root | ||
4405 | # by default. | ||
4406 | for ac_prog in ginstall scoinst install; do | ||
4407 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4408 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4409 | if test $ac_prog = install && | ||
4410 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4411 | # AIX install. It has an incompatible calling convention. | ||
4412 | : | ||
4413 | elif test $ac_prog = install && | ||
4414 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4415 | # program-specific install script used by HP pwplus--don't use. | ||
4416 | : | ||
4417 | else | ||
4418 | rm -rf conftest.one conftest.two conftest.dir | ||
4419 | echo one > conftest.one | ||
4420 | echo two > conftest.two | ||
4421 | mkdir conftest.dir | ||
4422 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4423 | test -s conftest.one && test -s conftest.two && | ||
4424 | test -s conftest.dir/conftest.one && | ||
4425 | test -s conftest.dir/conftest.two | ||
4426 | then | ||
4427 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4428 | break 3 | ||
4429 | fi | ||
4430 | fi | ||
4431 | fi | ||
4432 | done | ||
4433 | done | ||
4434 | ;; | ||
4435 | esac | ||
4436 | |||
4437 | done | ||
4438 | IFS=$as_save_IFS | ||
4439 | |||
4440 | rm -rf conftest.one conftest.two conftest.dir | ||
4441 | |||
4442 | fi | ||
4443 | if test "${ac_cv_path_install+set}" = set; then | ||
4444 | INSTALL=$ac_cv_path_install | ||
4445 | else | ||
4446 | # As a last resort, use the slow shell script. Don't cache a | ||
4447 | # value for INSTALL within a source directory, because that will | ||
4448 | # break other packages using the cache if that directory is | ||
4449 | # removed, or if the value is a relative name. | ||
4450 | INSTALL=$ac_install_sh | ||
4451 | fi | ||
4452 | fi | ||
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
4454 | $as_echo "$INSTALL" >&6; } | ||
4455 | |||
4456 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4457 | # It thinks the first close brace ends the variable substitution. | ||
4458 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4459 | |||
4460 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4461 | |||
4462 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4463 | |||
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4465 | $as_echo_n "checking for egrep... " >&6; } | ||
4466 | if ${ac_cv_path_EGREP+:} false; then : | ||
4467 | $as_echo_n "(cached) " >&6 | ||
4468 | else | ||
4469 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4470 | then ac_cv_path_EGREP="$GREP -E" | ||
4471 | else | ||
4472 | if test -z "$EGREP"; then | ||
4473 | ac_path_EGREP_found=false | ||
4474 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4476 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4477 | do | ||
4478 | IFS=$as_save_IFS | ||
4479 | test -z "$as_dir" && as_dir=. | ||
4480 | for ac_prog in egrep; do | ||
4481 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4482 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4483 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4484 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4485 | # Check for GNU $ac_path_EGREP | ||
4486 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4487 | *GNU*) | ||
4488 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4489 | *) | ||
4490 | ac_count=0 | ||
4491 | $as_echo_n 0123456789 >"conftest.in" | ||
4492 | while : | ||
4493 | do | ||
4494 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4495 | mv "conftest.tmp" "conftest.in" | ||
4496 | cp "conftest.in" "conftest.nl" | ||
4497 | $as_echo 'EGREP' >> "conftest.nl" | ||
4498 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4499 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4500 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4501 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4502 | # Best one so far, save it but keep looking for a better one | ||
4503 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4504 | ac_path_EGREP_max=$ac_count | ||
4505 | fi | ||
4506 | # 10*(2^10) chars as input seems more than enough | ||
4507 | test $ac_count -gt 10 && break | ||
4508 | done | ||
4509 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4510 | esac | ||
4511 | |||
4512 | $ac_path_EGREP_found && break 3 | ||
4513 | done | ||
4514 | done | ||
4515 | done | ||
4516 | IFS=$as_save_IFS | ||
4517 | if test -z "$ac_cv_path_EGREP"; then | ||
4518 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4519 | fi | ||
4520 | else | ||
4521 | ac_cv_path_EGREP=$EGREP | ||
4522 | fi | ||
4523 | |||
4524 | fi | ||
4525 | fi | ||
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4527 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4528 | EGREP="$ac_cv_path_EGREP" | ||
4529 | |||
4530 | |||
4531 | # Extract the first word of "ar", so it can be a program name with args. | ||
4532 | set dummy ar; ac_word=$2 | ||
4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4534 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4535 | if ${ac_cv_path_AR+:} false; then : | ||
4536 | $as_echo_n "(cached) " >&6 | ||
4537 | else | ||
4538 | case $AR in | ||
4539 | [\\/]* | ?:[\\/]*) | ||
4540 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4541 | ;; | ||
4542 | *) | ||
4543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4544 | for as_dir in $PATH | ||
4545 | do | ||
4546 | IFS=$as_save_IFS | ||
4547 | test -z "$as_dir" && as_dir=. | ||
4548 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4550 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4552 | break 2 | ||
4553 | fi | ||
4554 | done | ||
4555 | done | ||
4556 | IFS=$as_save_IFS | ||
4557 | |||
4558 | ;; | ||
4559 | esac | ||
4560 | fi | ||
4561 | AR=$ac_cv_path_AR | ||
4562 | if test -n "$AR"; then | ||
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
4564 | $as_echo "$AR" >&6; } | ||
4565 | else | ||
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4567 | $as_echo "no" >&6; } | ||
4568 | fi | ||
4569 | |||
4570 | |||
4571 | # Extract the first word of "cat", so it can be a program name with args. | ||
4572 | set dummy cat; ac_word=$2 | ||
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4574 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4575 | if ${ac_cv_path_CAT+:} false; then : | ||
4576 | $as_echo_n "(cached) " >&6 | ||
4577 | else | ||
4578 | case $CAT in | ||
4579 | [\\/]* | ?:[\\/]*) | ||
4580 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4581 | ;; | ||
4582 | *) | ||
4583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4584 | for as_dir in $PATH | ||
4585 | do | ||
4586 | IFS=$as_save_IFS | ||
4587 | test -z "$as_dir" && as_dir=. | ||
4588 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4590 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4592 | break 2 | ||
4593 | fi | ||
4594 | done | ||
4595 | done | ||
4596 | IFS=$as_save_IFS | ||
4597 | |||
4598 | ;; | ||
4599 | esac | ||
4600 | fi | ||
4601 | CAT=$ac_cv_path_CAT | ||
4602 | if test -n "$CAT"; then | ||
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 | ||
4604 | $as_echo "$CAT" >&6; } | ||
4605 | else | ||
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4607 | $as_echo "no" >&6; } | ||
4608 | fi | ||
4609 | |||
4610 | |||
4611 | # Extract the first word of "kill", so it can be a program name with args. | ||
4612 | set dummy kill; ac_word=$2 | ||
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4614 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4615 | if ${ac_cv_path_KILL+:} false; then : | ||
4616 | $as_echo_n "(cached) " >&6 | ||
4617 | else | ||
4618 | case $KILL in | ||
4619 | [\\/]* | ?:[\\/]*) | ||
4620 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4621 | ;; | ||
4622 | *) | ||
4623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4624 | for as_dir in $PATH | ||
4625 | do | ||
4626 | IFS=$as_save_IFS | ||
4627 | test -z "$as_dir" && as_dir=. | ||
4628 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4630 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4632 | break 2 | ||
4633 | fi | ||
4634 | done | ||
4635 | done | ||
4636 | IFS=$as_save_IFS | ||
4637 | |||
4638 | ;; | ||
4639 | esac | ||
4640 | fi | ||
4641 | KILL=$ac_cv_path_KILL | ||
4642 | if test -n "$KILL"; then | ||
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5 | ||
4644 | $as_echo "$KILL" >&6; } | ||
4645 | else | ||
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4647 | $as_echo "no" >&6; } | ||
4648 | fi | ||
4649 | |||
4650 | |||
4651 | for ac_prog in perl5 perl | ||
4652 | do | ||
4653 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4654 | set dummy $ac_prog; ac_word=$2 | ||
4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4656 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4657 | if ${ac_cv_path_PERL+:} false; then : | ||
4658 | $as_echo_n "(cached) " >&6 | ||
4659 | else | ||
4660 | case $PERL in | ||
4661 | [\\/]* | ?:[\\/]*) | ||
4662 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4663 | ;; | ||
4664 | *) | ||
4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4666 | for as_dir in $PATH | ||
4667 | do | ||
4668 | IFS=$as_save_IFS | ||
4669 | test -z "$as_dir" && as_dir=. | ||
4670 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4672 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4674 | break 2 | ||
4675 | fi | ||
4676 | done | ||
4677 | done | ||
4678 | IFS=$as_save_IFS | ||
4679 | |||
4680 | ;; | ||
4681 | esac | ||
4682 | fi | ||
4683 | PERL=$ac_cv_path_PERL | ||
4684 | if test -n "$PERL"; then | ||
4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | ||
4686 | $as_echo "$PERL" >&6; } | ||
4687 | else | ||
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4689 | $as_echo "no" >&6; } | ||
4690 | fi | ||
4691 | |||
4692 | |||
4693 | test -n "$PERL" && break | ||
4694 | done | ||
4695 | |||
4696 | # Extract the first word of "sed", so it can be a program name with args. | ||
4697 | set dummy sed; ac_word=$2 | ||
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4699 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4700 | if ${ac_cv_path_SED+:} false; then : | ||
4701 | $as_echo_n "(cached) " >&6 | ||
4702 | else | ||
4703 | case $SED in | ||
4704 | [\\/]* | ?:[\\/]*) | ||
4705 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4706 | ;; | ||
4707 | *) | ||
4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4709 | for as_dir in $PATH | ||
4710 | do | ||
4711 | IFS=$as_save_IFS | ||
4712 | test -z "$as_dir" && as_dir=. | ||
4713 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4714 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4715 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4717 | break 2 | ||
4718 | fi | ||
4719 | done | ||
4720 | done | ||
4721 | IFS=$as_save_IFS | ||
4722 | |||
4723 | ;; | ||
4724 | esac | ||
4725 | fi | ||
4726 | SED=$ac_cv_path_SED | ||
4727 | if test -n "$SED"; then | ||
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4729 | $as_echo "$SED" >&6; } | ||
4730 | else | ||
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4732 | $as_echo "no" >&6; } | ||
4733 | fi | ||
4734 | |||
4735 | |||
4736 | |||
4737 | # Extract the first word of "ent", so it can be a program name with args. | ||
4738 | set dummy ent; ac_word=$2 | ||
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4740 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4741 | if ${ac_cv_path_ENT+:} false; then : | ||
4742 | $as_echo_n "(cached) " >&6 | ||
4743 | else | ||
4744 | case $ENT in | ||
4745 | [\\/]* | ?:[\\/]*) | ||
4746 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4747 | ;; | ||
4748 | *) | ||
4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4750 | for as_dir in $PATH | ||
4751 | do | ||
4752 | IFS=$as_save_IFS | ||
4753 | test -z "$as_dir" && as_dir=. | ||
4754 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4756 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4758 | break 2 | ||
4759 | fi | ||
4760 | done | ||
4761 | done | ||
4762 | IFS=$as_save_IFS | ||
4763 | |||
4764 | ;; | ||
4765 | esac | ||
4766 | fi | ||
4767 | ENT=$ac_cv_path_ENT | ||
4768 | if test -n "$ENT"; then | ||
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5 | ||
4770 | $as_echo "$ENT" >&6; } | ||
4771 | else | ||
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4773 | $as_echo "no" >&6; } | ||
4774 | fi | ||
4775 | |||
4776 | |||
4777 | |||
4778 | # Extract the first word of "bash", so it can be a program name with args. | ||
4779 | set dummy bash; ac_word=$2 | ||
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4781 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4782 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4783 | $as_echo_n "(cached) " >&6 | ||
4784 | else | ||
4785 | case $TEST_MINUS_S_SH in | ||
4786 | [\\/]* | ?:[\\/]*) | ||
4787 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4788 | ;; | ||
4789 | *) | ||
4790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4791 | for as_dir in $PATH | ||
4792 | do | ||
4793 | IFS=$as_save_IFS | ||
4794 | test -z "$as_dir" && as_dir=. | ||
4795 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4797 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4799 | break 2 | ||
4800 | fi | ||
4801 | done | ||
4802 | done | ||
4803 | IFS=$as_save_IFS | ||
4804 | |||
4805 | ;; | ||
4806 | esac | ||
4807 | fi | ||
4808 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4809 | if test -n "$TEST_MINUS_S_SH"; then | ||
4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4811 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4812 | else | ||
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4814 | $as_echo "no" >&6; } | ||
4815 | fi | ||
4816 | |||
4817 | |||
4818 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4819 | set dummy ksh; ac_word=$2 | ||
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4821 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4822 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4823 | $as_echo_n "(cached) " >&6 | ||
4824 | else | ||
4825 | case $TEST_MINUS_S_SH in | ||
4826 | [\\/]* | ?:[\\/]*) | ||
4827 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4828 | ;; | ||
4829 | *) | ||
4830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4831 | for as_dir in $PATH | ||
4832 | do | ||
4833 | IFS=$as_save_IFS | ||
4834 | test -z "$as_dir" && as_dir=. | ||
4835 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4837 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4839 | break 2 | ||
4840 | fi | ||
4841 | done | ||
4842 | done | ||
4843 | IFS=$as_save_IFS | ||
4844 | |||
4845 | ;; | ||
4846 | esac | ||
4847 | fi | ||
4848 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4849 | if test -n "$TEST_MINUS_S_SH"; then | ||
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4851 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4852 | else | ||
4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4854 | $as_echo "no" >&6; } | ||
4855 | fi | ||
4856 | |||
4857 | |||
4858 | # Extract the first word of "sh", so it can be a program name with args. | ||
4859 | set dummy sh; ac_word=$2 | ||
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4861 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4862 | if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then : | ||
4863 | $as_echo_n "(cached) " >&6 | ||
4864 | else | ||
4865 | case $TEST_MINUS_S_SH in | ||
4866 | [\\/]* | ?:[\\/]*) | ||
4867 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4868 | ;; | ||
4869 | *) | ||
4870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4871 | for as_dir in $PATH | ||
4872 | do | ||
4873 | IFS=$as_save_IFS | ||
4874 | test -z "$as_dir" && as_dir=. | ||
4875 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4877 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4879 | break 2 | ||
4880 | fi | ||
4881 | done | ||
4882 | done | ||
4883 | IFS=$as_save_IFS | ||
4884 | |||
4885 | ;; | ||
4886 | esac | ||
4887 | fi | ||
4888 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4889 | if test -n "$TEST_MINUS_S_SH"; then | ||
4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5 | ||
4891 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4892 | else | ||
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4894 | $as_echo "no" >&6; } | ||
4895 | fi | ||
4896 | |||
4897 | |||
4898 | # Extract the first word of "sh", so it can be a program name with args. | ||
4899 | set dummy sh; ac_word=$2 | ||
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4901 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4902 | if ${ac_cv_path_SH+:} false; then : | ||
4903 | $as_echo_n "(cached) " >&6 | ||
4904 | else | ||
4905 | case $SH in | ||
4906 | [\\/]* | ?:[\\/]*) | ||
4907 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4908 | ;; | ||
4909 | *) | ||
4910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4911 | for as_dir in $PATH | ||
4912 | do | ||
4913 | IFS=$as_save_IFS | ||
4914 | test -z "$as_dir" && as_dir=. | ||
4915 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4917 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4919 | break 2 | ||
4920 | fi | ||
4921 | done | ||
4922 | done | ||
4923 | IFS=$as_save_IFS | ||
4924 | |||
4925 | ;; | ||
4926 | esac | ||
4927 | fi | ||
4928 | SH=$ac_cv_path_SH | ||
4929 | if test -n "$SH"; then | ||
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 | ||
4931 | $as_echo "$SH" >&6; } | ||
4932 | else | ||
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4934 | $as_echo "no" >&6; } | ||
4935 | fi | ||
4936 | |||
4937 | |||
4938 | # Extract the first word of "groff", so it can be a program name with args. | ||
4939 | set dummy groff; ac_word=$2 | ||
4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4941 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4942 | if ${ac_cv_path_GROFF+:} false; then : | ||
4943 | $as_echo_n "(cached) " >&6 | ||
4944 | else | ||
4945 | case $GROFF in | ||
4946 | [\\/]* | ?:[\\/]*) | ||
4947 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. | ||
4948 | ;; | ||
4949 | *) | ||
4950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4951 | for as_dir in $PATH | ||
4952 | do | ||
4953 | IFS=$as_save_IFS | ||
4954 | test -z "$as_dir" && as_dir=. | ||
4955 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4957 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4959 | break 2 | ||
4960 | fi | ||
4961 | done | ||
4962 | done | ||
4963 | IFS=$as_save_IFS | ||
4964 | |||
4965 | ;; | ||
4966 | esac | ||
4967 | fi | ||
4968 | GROFF=$ac_cv_path_GROFF | ||
4969 | if test -n "$GROFF"; then | ||
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 | ||
4971 | $as_echo "$GROFF" >&6; } | ||
4972 | else | ||
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4974 | $as_echo "no" >&6; } | ||
4975 | fi | ||
4976 | |||
4977 | |||
4978 | # Extract the first word of "nroff", so it can be a program name with args. | ||
4979 | set dummy nroff; ac_word=$2 | ||
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4981 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4982 | if ${ac_cv_path_NROFF+:} false; then : | ||
4983 | $as_echo_n "(cached) " >&6 | ||
4984 | else | ||
4985 | case $NROFF in | ||
4986 | [\\/]* | ?:[\\/]*) | ||
4987 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
4988 | ;; | ||
4989 | *) | ||
4990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4991 | for as_dir in $PATH | ||
4992 | do | ||
4993 | IFS=$as_save_IFS | ||
4994 | test -z "$as_dir" && as_dir=. | ||
4995 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4997 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
4998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4999 | break 2 | ||
5000 | fi | ||
5001 | done | ||
5002 | done | ||
5003 | IFS=$as_save_IFS | ||
5004 | |||
5005 | ;; | ||
5006 | esac | ||
5007 | fi | ||
5008 | NROFF=$ac_cv_path_NROFF | ||
5009 | if test -n "$NROFF"; then | ||
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
5011 | $as_echo "$NROFF" >&6; } | ||
5012 | else | ||
5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5014 | $as_echo "no" >&6; } | ||
5015 | fi | ||
5016 | |||
5017 | |||
5018 | # Extract the first word of "mandoc", so it can be a program name with args. | ||
5019 | set dummy mandoc; ac_word=$2 | ||
5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5021 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5022 | if ${ac_cv_path_MANDOC+:} false; then : | ||
5023 | $as_echo_n "(cached) " >&6 | ||
5024 | else | ||
5025 | case $MANDOC in | ||
5026 | [\\/]* | ?:[\\/]*) | ||
5027 | ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path. | ||
5028 | ;; | ||
5029 | *) | ||
5030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5031 | for as_dir in $PATH | ||
5032 | do | ||
5033 | IFS=$as_save_IFS | ||
5034 | test -z "$as_dir" && as_dir=. | ||
5035 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5037 | ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext" | ||
5038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5039 | break 2 | ||
5040 | fi | ||
5041 | done | ||
5042 | done | ||
5043 | IFS=$as_save_IFS | ||
5044 | |||
5045 | ;; | ||
5046 | esac | ||
5047 | fi | ||
5048 | MANDOC=$ac_cv_path_MANDOC | ||
5049 | if test -n "$MANDOC"; then | ||
5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 | ||
5051 | $as_echo "$MANDOC" >&6; } | ||
5052 | else | ||
5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5054 | $as_echo "no" >&6; } | ||
5055 | fi | ||
5056 | |||
5057 | |||
5058 | TEST_SHELL=sh | ||
5059 | |||
5060 | |||
5061 | if test "x$MANDOC" != "x" ; then | ||
5062 | MANFMT="$MANDOC" | ||
5063 | elif test "x$NROFF" != "x" ; then | ||
5064 | MANFMT="$NROFF -mandoc" | ||
5065 | elif test "x$GROFF" != "x" ; then | ||
5066 | MANFMT="$GROFF -mandoc -Tascii" | ||
5067 | else | ||
5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5 | ||
5069 | $as_echo "$as_me: WARNING: no manpage formatted found" >&2;} | ||
5070 | MANFMT="false" | ||
5071 | fi | ||
5072 | |||
5073 | |||
5074 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
5075 | set dummy groupadd; ac_word=$2 | ||
5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5077 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5078 | if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then : | ||
5079 | $as_echo_n "(cached) " >&6 | ||
5080 | else | ||
5081 | case $PATH_GROUPADD_PROG in | ||
5082 | [\\/]* | ?:[\\/]*) | ||
5083 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
5084 | ;; | ||
5085 | *) | ||
5086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5087 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5088 | do | ||
5089 | IFS=$as_save_IFS | ||
5090 | test -z "$as_dir" && as_dir=. | ||
5091 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5093 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5095 | break 2 | ||
5096 | fi | ||
5097 | done | ||
5098 | done | ||
5099 | IFS=$as_save_IFS | ||
5100 | |||
5101 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5102 | ;; | ||
5103 | esac | ||
5104 | fi | ||
5105 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5106 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5 | ||
5108 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5109 | else | ||
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5111 | $as_echo "no" >&6; } | ||
5112 | fi | ||
5113 | |||
5114 | |||
5115 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5116 | set dummy useradd; ac_word=$2 | ||
5117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5118 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5119 | if ${ac_cv_path_PATH_USERADD_PROG+:} false; then : | ||
5120 | $as_echo_n "(cached) " >&6 | ||
5121 | else | ||
5122 | case $PATH_USERADD_PROG in | ||
5123 | [\\/]* | ?:[\\/]*) | ||
5124 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5125 | ;; | ||
5126 | *) | ||
5127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5128 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5129 | do | ||
5130 | IFS=$as_save_IFS | ||
5131 | test -z "$as_dir" && as_dir=. | ||
5132 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5134 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5136 | break 2 | ||
5137 | fi | ||
5138 | done | ||
5139 | done | ||
5140 | IFS=$as_save_IFS | ||
5141 | |||
5142 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5143 | ;; | ||
5144 | esac | ||
5145 | fi | ||
5146 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5147 | if test -n "$PATH_USERADD_PROG"; then | ||
5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5 | ||
5149 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5150 | else | ||
5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5152 | $as_echo "no" >&6; } | ||
5153 | fi | ||
5154 | |||
5155 | |||
5156 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5157 | set dummy pkgmk; ac_word=$2 | ||
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5159 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5160 | if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then : | ||
5161 | $as_echo_n "(cached) " >&6 | ||
5162 | else | ||
5163 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5164 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5165 | else | ||
5166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5167 | for as_dir in $PATH | ||
5168 | do | ||
5169 | IFS=$as_save_IFS | ||
5170 | test -z "$as_dir" && as_dir=. | ||
5171 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5172 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5173 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5175 | break 2 | ||
5176 | fi | ||
5177 | done | ||
5178 | done | ||
5179 | IFS=$as_save_IFS | ||
5180 | |||
5181 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5182 | fi | ||
5183 | fi | ||
5184 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5185 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5187 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5188 | else | ||
5189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5190 | $as_echo "no" >&6; } | ||
5191 | fi | ||
5192 | |||
5193 | |||
5194 | if test -x /sbin/sh; then | ||
5195 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5196 | |||
5197 | else | ||
5198 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5199 | |||
5200 | fi | ||
5201 | |||
5202 | # System features | ||
5203 | # Check whether --enable-largefile was given. | ||
5204 | if test "${enable_largefile+set}" = set; then : | ||
5205 | enableval=$enable_largefile; | ||
5206 | fi | ||
5207 | |||
5208 | if test "$enable_largefile" != no; then | ||
5209 | |||
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | ||
5211 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5212 | if ${ac_cv_sys_largefile_CC+:} false; then : | ||
5213 | $as_echo_n "(cached) " >&6 | ||
5214 | else | ||
5215 | ac_cv_sys_largefile_CC=no | ||
5216 | if test "$GCC" != yes; then | ||
5217 | ac_save_CC=$CC | ||
5218 | while :; do | ||
5219 | # IRIX 6.2 and later do not support large files by default, | ||
5220 | # so use the C compiler's -n32 option if that helps. | ||
5221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5222 | /* end confdefs.h. */ | ||
5223 | #include <sys/types.h> | ||
5224 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5225 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5226 | since some C++ compilers masquerading as C compilers | ||
5227 | incorrectly reject 9223372036854775807. */ | ||
5228 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5229 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5230 | && LARGE_OFF_T % 2147483647 == 1) | ||
5231 | ? 1 : -1]; | ||
5232 | int | ||
5233 | main () | ||
5234 | { | ||
5235 | |||
5236 | ; | ||
5237 | return 0; | ||
5238 | } | ||
5239 | _ACEOF | ||
5240 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5241 | break | ||
5242 | fi | ||
5243 | rm -f core conftest.err conftest.$ac_objext | ||
5244 | CC="$CC -n32" | ||
5245 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5246 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5247 | fi | ||
5248 | rm -f core conftest.err conftest.$ac_objext | ||
5249 | break | ||
5250 | done | ||
5251 | CC=$ac_save_CC | ||
5252 | rm -f conftest.$ac_ext | ||
5253 | fi | ||
5254 | fi | ||
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | ||
5256 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5257 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5258 | CC=$CC$ac_cv_sys_largefile_CC | ||
5259 | fi | ||
5260 | |||
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5262 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5263 | if ${ac_cv_sys_file_offset_bits+:} false; then : | ||
5264 | $as_echo_n "(cached) " >&6 | ||
5265 | else | ||
5266 | while :; do | ||
5267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5268 | /* end confdefs.h. */ | ||
5269 | #include <sys/types.h> | ||
5270 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5271 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5272 | since some C++ compilers masquerading as C compilers | ||
5273 | incorrectly reject 9223372036854775807. */ | ||
5274 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5275 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5276 | && LARGE_OFF_T % 2147483647 == 1) | ||
5277 | ? 1 : -1]; | ||
5278 | int | ||
5279 | main () | ||
5280 | { | ||
5281 | |||
5282 | ; | ||
5283 | return 0; | ||
5284 | } | ||
5285 | _ACEOF | ||
5286 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5287 | ac_cv_sys_file_offset_bits=no; break | ||
5288 | fi | ||
5289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5291 | /* end confdefs.h. */ | ||
5292 | #define _FILE_OFFSET_BITS 64 | ||
5293 | #include <sys/types.h> | ||
5294 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5295 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5296 | since some C++ compilers masquerading as C compilers | ||
5297 | incorrectly reject 9223372036854775807. */ | ||
5298 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5299 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5300 | && LARGE_OFF_T % 2147483647 == 1) | ||
5301 | ? 1 : -1]; | ||
5302 | int | ||
5303 | main () | ||
5304 | { | ||
5305 | |||
5306 | ; | ||
5307 | return 0; | ||
5308 | } | ||
5309 | _ACEOF | ||
5310 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5311 | ac_cv_sys_file_offset_bits=64; break | ||
5312 | fi | ||
5313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5314 | ac_cv_sys_file_offset_bits=unknown | ||
5315 | break | ||
5316 | done | ||
5317 | fi | ||
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5319 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5320 | case $ac_cv_sys_file_offset_bits in #( | ||
5321 | no | unknown) ;; | ||
5322 | *) | ||
5323 | cat >>confdefs.h <<_ACEOF | ||
5324 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5325 | _ACEOF | ||
5326 | ;; | ||
5327 | esac | ||
5328 | rm -rf conftest* | ||
5329 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | ||
5331 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5332 | if ${ac_cv_sys_large_files+:} false; then : | ||
5333 | $as_echo_n "(cached) " >&6 | ||
5334 | else | ||
5335 | while :; do | ||
5336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5337 | /* end confdefs.h. */ | ||
5338 | #include <sys/types.h> | ||
5339 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5340 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5341 | since some C++ compilers masquerading as C compilers | ||
5342 | incorrectly reject 9223372036854775807. */ | ||
5343 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5344 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5345 | && LARGE_OFF_T % 2147483647 == 1) | ||
5346 | ? 1 : -1]; | ||
5347 | int | ||
5348 | main () | ||
5349 | { | ||
5350 | |||
5351 | ; | ||
5352 | return 0; | ||
5353 | } | ||
5354 | _ACEOF | ||
5355 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5356 | ac_cv_sys_large_files=no; break | ||
5357 | fi | ||
5358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5360 | /* end confdefs.h. */ | ||
5361 | #define _LARGE_FILES 1 | ||
5362 | #include <sys/types.h> | ||
5363 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5364 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5365 | since some C++ compilers masquerading as C compilers | ||
5366 | incorrectly reject 9223372036854775807. */ | ||
5367 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5368 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5369 | && LARGE_OFF_T % 2147483647 == 1) | ||
5370 | ? 1 : -1]; | ||
5371 | int | ||
5372 | main () | ||
5373 | { | ||
5374 | |||
5375 | ; | ||
5376 | return 0; | ||
5377 | } | ||
5378 | _ACEOF | ||
5379 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5380 | ac_cv_sys_large_files=1; break | ||
5381 | fi | ||
5382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5383 | ac_cv_sys_large_files=unknown | ||
5384 | break | ||
5385 | done | ||
5386 | fi | ||
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | ||
5388 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5389 | case $ac_cv_sys_large_files in #( | ||
5390 | no | unknown) ;; | ||
5391 | *) | ||
5392 | cat >>confdefs.h <<_ACEOF | ||
5393 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5394 | _ACEOF | ||
5395 | ;; | ||
5396 | esac | ||
5397 | rm -rf conftest* | ||
5398 | fi | ||
5399 | fi | ||
5400 | |||
5401 | |||
5402 | if test -z "$AR" ; then | ||
5403 | as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5 | ||
5404 | fi | ||
5405 | |||
5406 | # Use LOGIN_PROGRAM from environment if possible | ||
5407 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5408 | |||
5409 | cat >>confdefs.h <<_ACEOF | ||
5410 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5411 | _ACEOF | ||
5412 | |||
5413 | else | ||
5414 | # Search for login | ||
5415 | # Extract the first word of "login", so it can be a program name with args. | ||
5416 | set dummy login; ac_word=$2 | ||
5417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5418 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5419 | if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then : | ||
5420 | $as_echo_n "(cached) " >&6 | ||
5421 | else | ||
5422 | case $LOGIN_PROGRAM_FALLBACK in | ||
5423 | [\\/]* | ?:[\\/]*) | ||
5424 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5425 | ;; | ||
5426 | *) | ||
5427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5428 | for as_dir in $PATH | ||
5429 | do | ||
5430 | IFS=$as_save_IFS | ||
5431 | test -z "$as_dir" && as_dir=. | ||
5432 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5434 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5436 | break 2 | ||
5437 | fi | ||
5438 | done | ||
5439 | done | ||
5440 | IFS=$as_save_IFS | ||
5441 | |||
5442 | ;; | ||
5443 | esac | ||
5444 | fi | ||
5445 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5446 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5448 | $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5449 | else | ||
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5451 | $as_echo "no" >&6; } | ||
5452 | fi | ||
5453 | |||
5454 | |||
5455 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5456 | cat >>confdefs.h <<_ACEOF | ||
5457 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5458 | _ACEOF | ||
5459 | |||
5460 | fi | ||
5461 | fi | ||
5462 | |||
5463 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5464 | set dummy passwd; ac_word=$2 | ||
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
5466 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5467 | if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then : | ||
5468 | $as_echo_n "(cached) " >&6 | ||
5469 | else | ||
5470 | case $PATH_PASSWD_PROG in | ||
5471 | [\\/]* | ?:[\\/]*) | ||
5472 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5473 | ;; | ||
5474 | *) | ||
5475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5476 | for as_dir in $PATH | ||
5477 | do | ||
5478 | IFS=$as_save_IFS | ||
5479 | test -z "$as_dir" && as_dir=. | ||
5480 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5482 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5484 | break 2 | ||
5485 | fi | ||
5486 | done | ||
5487 | done | ||
5488 | IFS=$as_save_IFS | ||
5489 | |||
5490 | ;; | ||
5491 | esac | ||
5492 | fi | ||
5493 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5494 | if test -n "$PATH_PASSWD_PROG"; then | ||
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5 | ||
5496 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5497 | else | ||
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5499 | $as_echo "no" >&6; } | ||
5500 | fi | ||
5501 | |||
5502 | |||
5503 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5504 | |||
5505 | cat >>confdefs.h <<_ACEOF | ||
5506 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5507 | _ACEOF | ||
5508 | |||
5509 | fi | ||
5510 | |||
5511 | if test -z "$LD" ; then | ||
5512 | LD=$CC | ||
5513 | fi | ||
5514 | |||
5515 | |||
5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | ||
5517 | $as_echo_n "checking for inline... " >&6; } | ||
5518 | if ${ac_cv_c_inline+:} false; then : | ||
5519 | $as_echo_n "(cached) " >&6 | ||
5520 | else | ||
5521 | ac_cv_c_inline=no | ||
5522 | for ac_kw in inline __inline__ __inline; do | ||
5523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5524 | /* end confdefs.h. */ | ||
5525 | #ifndef __cplusplus | ||
5526 | typedef int foo_t; | ||
5527 | static $ac_kw foo_t static_foo () {return 0; } | ||
5528 | $ac_kw foo_t foo () {return 0; } | ||
5529 | #endif | ||
5530 | |||
5531 | _ACEOF | ||
5532 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5533 | ac_cv_c_inline=$ac_kw | ||
5534 | fi | ||
5535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5536 | test "$ac_cv_c_inline" != no && break | ||
5537 | done | ||
5538 | |||
5539 | fi | ||
5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | ||
5541 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5542 | |||
5543 | case $ac_cv_c_inline in | ||
5544 | inline | yes) ;; | ||
5545 | *) | ||
5546 | case $ac_cv_c_inline in | ||
5547 | no) ac_val=;; | ||
5548 | *) ac_val=$ac_cv_c_inline;; | ||
5549 | esac | ||
5550 | cat >>confdefs.h <<_ACEOF | ||
5551 | #ifndef __cplusplus | ||
5552 | #define inline $ac_val | ||
5553 | #endif | ||
5554 | _ACEOF | ||
5555 | ;; | ||
5556 | esac | ||
5557 | |||
5558 | |||
5559 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
5560 | " | ||
5561 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
5562 | have_llong_max=1 | ||
5563 | fi | ||
5564 | |||
5565 | ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" " | ||
5566 | #include <sys/types.h> | ||
5567 | #include <sys/param.h> | ||
5568 | #include <dev/systrace.h> | ||
5569 | |||
5570 | " | ||
5571 | if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then : | ||
5572 | have_systr_policy_kill=1 | ||
5573 | fi | ||
5574 | |||
5575 | ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" " | ||
5576 | #include <sys/types.h> | ||
5577 | #include <sys/resource.h> | ||
5578 | |||
5579 | " | ||
5580 | if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then : | ||
5581 | |||
5582 | $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h | ||
5583 | |||
5584 | fi | ||
5585 | |||
5586 | ac_fn_c_check_decl "$LINENO" "PR_SET_NO_NEW_PRIVS" "ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" " | ||
5587 | #include <sys/types.h> | ||
5588 | #include <linux/prctl.h> | ||
5589 | |||
5590 | " | ||
5591 | if test "x$ac_cv_have_decl_PR_SET_NO_NEW_PRIVS" = xyes; then : | ||
5592 | have_linux_no_new_privs=1 | ||
5593 | fi | ||
5594 | |||
5595 | |||
5596 | use_stack_protector=1 | ||
5597 | use_toolchain_hardening=1 | ||
5598 | |||
5599 | # Check whether --with-stackprotect was given. | ||
5600 | if test "${with_stackprotect+set}" = set; then : | ||
5601 | withval=$with_stackprotect; | ||
5602 | if test "x$withval" = "xno"; then | ||
5603 | use_stack_protector=0 | ||
5604 | fi | ||
5605 | fi | ||
5606 | |||
5607 | |||
5608 | # Check whether --with-hardening was given. | ||
5609 | if test "${with_hardening+set}" = set; then : | ||
5610 | withval=$with_hardening; | ||
5611 | if test "x$withval" = "xno"; then | ||
5612 | use_toolchain_hardening=0 | ||
5613 | fi | ||
5614 | fi | ||
5615 | |||
5616 | |||
5617 | # We use -Werror for the tests only so that we catch warnings like "this is | ||
5618 | # on by default" for things like -fPIE. | ||
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 | ||
5620 | $as_echo_n "checking if $CC supports -Werror... " >&6; } | ||
5621 | saved_CFLAGS="$CFLAGS" | ||
5622 | CFLAGS="$CFLAGS -Werror" | ||
5623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5624 | /* end confdefs.h. */ | ||
5625 | int main(void) { return 0; } | ||
5626 | _ACEOF | ||
5627 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5629 | $as_echo "yes" >&6; } | ||
5630 | WERROR="-Werror" | ||
5631 | else | ||
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5633 | $as_echo "no" >&6; } | ||
5634 | WERROR="" | ||
5635 | |||
5636 | fi | ||
5637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5638 | CFLAGS="$saved_CFLAGS" | ||
5639 | |||
5640 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5641 | { | ||
5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Qunused-arguments" >&5 | ||
5643 | $as_echo_n "checking if $CC supports compile flag -Qunused-arguments... " >&6; } | ||
5644 | saved_CFLAGS="$CFLAGS" | ||
5645 | CFLAGS="$CFLAGS $WERROR -Qunused-arguments" | ||
5646 | _define_flag="" | ||
5647 | test "x$_define_flag" = "x" && _define_flag="-Qunused-arguments" | ||
5648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5649 | /* end confdefs.h. */ | ||
5650 | |||
5651 | #include <stdlib.h> | ||
5652 | #include <stdio.h> | ||
5653 | int main(int argc, char **argv) { | ||
5654 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5655 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5656 | float l = i * 2.1; | ||
5657 | double m = l / 0.5; | ||
5658 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5659 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5660 | exit(0); | ||
5661 | } | ||
5662 | |||
5663 | _ACEOF | ||
5664 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5665 | |||
5666 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5667 | then | ||
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5669 | $as_echo "no" >&6; } | ||
5670 | CFLAGS="$saved_CFLAGS" | ||
5671 | else | ||
5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5673 | $as_echo "yes" >&6; } | ||
5674 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5675 | fi | ||
5676 | else | ||
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5678 | $as_echo "no" >&6; } | ||
5679 | CFLAGS="$saved_CFLAGS" | ||
5680 | |||
5681 | fi | ||
5682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5683 | } | ||
5684 | { | ||
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunknown-warning-option" >&5 | ||
5686 | $as_echo_n "checking if $CC supports compile flag -Wunknown-warning-option... " >&6; } | ||
5687 | saved_CFLAGS="$CFLAGS" | ||
5688 | CFLAGS="$CFLAGS $WERROR -Wunknown-warning-option" | ||
5689 | _define_flag="" | ||
5690 | test "x$_define_flag" = "x" && _define_flag="-Wunknown-warning-option" | ||
5691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5692 | /* end confdefs.h. */ | ||
5693 | |||
5694 | #include <stdlib.h> | ||
5695 | #include <stdio.h> | ||
5696 | int main(int argc, char **argv) { | ||
5697 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5698 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5699 | float l = i * 2.1; | ||
5700 | double m = l / 0.5; | ||
5701 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5702 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5703 | exit(0); | ||
5704 | } | ||
5705 | |||
5706 | _ACEOF | ||
5707 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5708 | |||
5709 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5710 | then | ||
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5712 | $as_echo "no" >&6; } | ||
5713 | CFLAGS="$saved_CFLAGS" | ||
5714 | else | ||
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5716 | $as_echo "yes" >&6; } | ||
5717 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5718 | fi | ||
5719 | else | ||
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5721 | $as_echo "no" >&6; } | ||
5722 | CFLAGS="$saved_CFLAGS" | ||
5723 | |||
5724 | fi | ||
5725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5726 | } | ||
5727 | { | ||
5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wall" >&5 | ||
5729 | $as_echo_n "checking if $CC supports compile flag -Wall... " >&6; } | ||
5730 | saved_CFLAGS="$CFLAGS" | ||
5731 | CFLAGS="$CFLAGS $WERROR -Wall" | ||
5732 | _define_flag="" | ||
5733 | test "x$_define_flag" = "x" && _define_flag="-Wall" | ||
5734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5735 | /* end confdefs.h. */ | ||
5736 | |||
5737 | #include <stdlib.h> | ||
5738 | #include <stdio.h> | ||
5739 | int main(int argc, char **argv) { | ||
5740 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5741 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5742 | float l = i * 2.1; | ||
5743 | double m = l / 0.5; | ||
5744 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5745 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5746 | exit(0); | ||
5747 | } | ||
5748 | |||
5749 | _ACEOF | ||
5750 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5751 | |||
5752 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5753 | then | ||
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5755 | $as_echo "no" >&6; } | ||
5756 | CFLAGS="$saved_CFLAGS" | ||
5757 | else | ||
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5759 | $as_echo "yes" >&6; } | ||
5760 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5761 | fi | ||
5762 | else | ||
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5764 | $as_echo "no" >&6; } | ||
5765 | CFLAGS="$saved_CFLAGS" | ||
5766 | |||
5767 | fi | ||
5768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5769 | } | ||
5770 | { | ||
5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-arith" >&5 | ||
5772 | $as_echo_n "checking if $CC supports compile flag -Wpointer-arith... " >&6; } | ||
5773 | saved_CFLAGS="$CFLAGS" | ||
5774 | CFLAGS="$CFLAGS $WERROR -Wpointer-arith" | ||
5775 | _define_flag="" | ||
5776 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith" | ||
5777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5778 | /* end confdefs.h. */ | ||
5779 | |||
5780 | #include <stdlib.h> | ||
5781 | #include <stdio.h> | ||
5782 | int main(int argc, char **argv) { | ||
5783 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5784 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5785 | float l = i * 2.1; | ||
5786 | double m = l / 0.5; | ||
5787 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5788 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5789 | exit(0); | ||
5790 | } | ||
5791 | |||
5792 | _ACEOF | ||
5793 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5794 | |||
5795 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5796 | then | ||
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5798 | $as_echo "no" >&6; } | ||
5799 | CFLAGS="$saved_CFLAGS" | ||
5800 | else | ||
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5802 | $as_echo "yes" >&6; } | ||
5803 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5804 | fi | ||
5805 | else | ||
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5807 | $as_echo "no" >&6; } | ||
5808 | CFLAGS="$saved_CFLAGS" | ||
5809 | |||
5810 | fi | ||
5811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5812 | } | ||
5813 | { | ||
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wuninitialized" >&5 | ||
5815 | $as_echo_n "checking if $CC supports compile flag -Wuninitialized... " >&6; } | ||
5816 | saved_CFLAGS="$CFLAGS" | ||
5817 | CFLAGS="$CFLAGS $WERROR -Wuninitialized" | ||
5818 | _define_flag="" | ||
5819 | test "x$_define_flag" = "x" && _define_flag="-Wuninitialized" | ||
5820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5821 | /* end confdefs.h. */ | ||
5822 | |||
5823 | #include <stdlib.h> | ||
5824 | #include <stdio.h> | ||
5825 | int main(int argc, char **argv) { | ||
5826 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5827 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5828 | float l = i * 2.1; | ||
5829 | double m = l / 0.5; | ||
5830 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5831 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5832 | exit(0); | ||
5833 | } | ||
5834 | |||
5835 | _ACEOF | ||
5836 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5837 | |||
5838 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5839 | then | ||
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5841 | $as_echo "no" >&6; } | ||
5842 | CFLAGS="$saved_CFLAGS" | ||
5843 | else | ||
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5845 | $as_echo "yes" >&6; } | ||
5846 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5847 | fi | ||
5848 | else | ||
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5850 | $as_echo "no" >&6; } | ||
5851 | CFLAGS="$saved_CFLAGS" | ||
5852 | |||
5853 | fi | ||
5854 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5855 | } | ||
5856 | { | ||
5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsign-compare" >&5 | ||
5858 | $as_echo_n "checking if $CC supports compile flag -Wsign-compare... " >&6; } | ||
5859 | saved_CFLAGS="$CFLAGS" | ||
5860 | CFLAGS="$CFLAGS $WERROR -Wsign-compare" | ||
5861 | _define_flag="" | ||
5862 | test "x$_define_flag" = "x" && _define_flag="-Wsign-compare" | ||
5863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5864 | /* end confdefs.h. */ | ||
5865 | |||
5866 | #include <stdlib.h> | ||
5867 | #include <stdio.h> | ||
5868 | int main(int argc, char **argv) { | ||
5869 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5870 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5871 | float l = i * 2.1; | ||
5872 | double m = l / 0.5; | ||
5873 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5874 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5875 | exit(0); | ||
5876 | } | ||
5877 | |||
5878 | _ACEOF | ||
5879 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5880 | |||
5881 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5882 | then | ||
5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5884 | $as_echo "no" >&6; } | ||
5885 | CFLAGS="$saved_CFLAGS" | ||
5886 | else | ||
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5888 | $as_echo "yes" >&6; } | ||
5889 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5890 | fi | ||
5891 | else | ||
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5893 | $as_echo "no" >&6; } | ||
5894 | CFLAGS="$saved_CFLAGS" | ||
5895 | |||
5896 | fi | ||
5897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5898 | } | ||
5899 | { | ||
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wformat-security" >&5 | ||
5901 | $as_echo_n "checking if $CC supports compile flag -Wformat-security... " >&6; } | ||
5902 | saved_CFLAGS="$CFLAGS" | ||
5903 | CFLAGS="$CFLAGS $WERROR -Wformat-security" | ||
5904 | _define_flag="" | ||
5905 | test "x$_define_flag" = "x" && _define_flag="-Wformat-security" | ||
5906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5907 | /* end confdefs.h. */ | ||
5908 | |||
5909 | #include <stdlib.h> | ||
5910 | #include <stdio.h> | ||
5911 | int main(int argc, char **argv) { | ||
5912 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5913 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5914 | float l = i * 2.1; | ||
5915 | double m = l / 0.5; | ||
5916 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5917 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5918 | exit(0); | ||
5919 | } | ||
5920 | |||
5921 | _ACEOF | ||
5922 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5923 | |||
5924 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5925 | then | ||
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5927 | $as_echo "no" >&6; } | ||
5928 | CFLAGS="$saved_CFLAGS" | ||
5929 | else | ||
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5931 | $as_echo "yes" >&6; } | ||
5932 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5933 | fi | ||
5934 | else | ||
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5936 | $as_echo "no" >&6; } | ||
5937 | CFLAGS="$saved_CFLAGS" | ||
5938 | |||
5939 | fi | ||
5940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5941 | } | ||
5942 | { | ||
5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wsizeof-pointer-memaccess" >&5 | ||
5944 | $as_echo_n "checking if $CC supports compile flag -Wsizeof-pointer-memaccess... " >&6; } | ||
5945 | saved_CFLAGS="$CFLAGS" | ||
5946 | CFLAGS="$CFLAGS $WERROR -Wsizeof-pointer-memaccess" | ||
5947 | _define_flag="" | ||
5948 | test "x$_define_flag" = "x" && _define_flag="-Wsizeof-pointer-memaccess" | ||
5949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5950 | /* end confdefs.h. */ | ||
5951 | |||
5952 | #include <stdlib.h> | ||
5953 | #include <stdio.h> | ||
5954 | int main(int argc, char **argv) { | ||
5955 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5956 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
5957 | float l = i * 2.1; | ||
5958 | double m = l / 0.5; | ||
5959 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
5960 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
5961 | exit(0); | ||
5962 | } | ||
5963 | |||
5964 | _ACEOF | ||
5965 | if ac_fn_c_try_compile "$LINENO"; then : | ||
5966 | |||
5967 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
5968 | then | ||
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5970 | $as_echo "no" >&6; } | ||
5971 | CFLAGS="$saved_CFLAGS" | ||
5972 | else | ||
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
5974 | $as_echo "yes" >&6; } | ||
5975 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
5976 | fi | ||
5977 | else | ||
5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
5979 | $as_echo "no" >&6; } | ||
5980 | CFLAGS="$saved_CFLAGS" | ||
5981 | |||
5982 | fi | ||
5983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5984 | } | ||
5985 | { | ||
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wpointer-sign" >&5 | ||
5987 | $as_echo_n "checking if $CC supports compile flag -Wpointer-sign... " >&6; } | ||
5988 | saved_CFLAGS="$CFLAGS" | ||
5989 | CFLAGS="$CFLAGS $WERROR -Wpointer-sign" | ||
5990 | _define_flag="-Wno-pointer-sign" | ||
5991 | test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign" | ||
5992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
5993 | /* end confdefs.h. */ | ||
5994 | |||
5995 | #include <stdlib.h> | ||
5996 | #include <stdio.h> | ||
5997 | int main(int argc, char **argv) { | ||
5998 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
5999 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6000 | float l = i * 2.1; | ||
6001 | double m = l / 0.5; | ||
6002 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6003 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6004 | exit(0); | ||
6005 | } | ||
6006 | |||
6007 | _ACEOF | ||
6008 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6009 | |||
6010 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6011 | then | ||
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6013 | $as_echo "no" >&6; } | ||
6014 | CFLAGS="$saved_CFLAGS" | ||
6015 | else | ||
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6017 | $as_echo "yes" >&6; } | ||
6018 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6019 | fi | ||
6020 | else | ||
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6022 | $as_echo "no" >&6; } | ||
6023 | CFLAGS="$saved_CFLAGS" | ||
6024 | |||
6025 | fi | ||
6026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6027 | } | ||
6028 | { | ||
6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wunused-result" >&5 | ||
6030 | $as_echo_n "checking if $CC supports compile flag -Wunused-result... " >&6; } | ||
6031 | saved_CFLAGS="$CFLAGS" | ||
6032 | CFLAGS="$CFLAGS $WERROR -Wunused-result" | ||
6033 | _define_flag="-Wno-unused-result" | ||
6034 | test "x$_define_flag" = "x" && _define_flag="-Wunused-result" | ||
6035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6036 | /* end confdefs.h. */ | ||
6037 | |||
6038 | #include <stdlib.h> | ||
6039 | #include <stdio.h> | ||
6040 | int main(int argc, char **argv) { | ||
6041 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6042 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6043 | float l = i * 2.1; | ||
6044 | double m = l / 0.5; | ||
6045 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6046 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6047 | exit(0); | ||
6048 | } | ||
6049 | |||
6050 | _ACEOF | ||
6051 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6052 | |||
6053 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6054 | then | ||
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6056 | $as_echo "no" >&6; } | ||
6057 | CFLAGS="$saved_CFLAGS" | ||
6058 | else | ||
6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6060 | $as_echo "yes" >&6; } | ||
6061 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6062 | fi | ||
6063 | else | ||
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6065 | $as_echo "no" >&6; } | ||
6066 | CFLAGS="$saved_CFLAGS" | ||
6067 | |||
6068 | fi | ||
6069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6070 | } | ||
6071 | { | ||
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fno-strict-aliasing" >&5 | ||
6073 | $as_echo_n "checking if $CC supports compile flag -fno-strict-aliasing... " >&6; } | ||
6074 | saved_CFLAGS="$CFLAGS" | ||
6075 | CFLAGS="$CFLAGS $WERROR -fno-strict-aliasing" | ||
6076 | _define_flag="" | ||
6077 | test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing" | ||
6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6079 | /* end confdefs.h. */ | ||
6080 | |||
6081 | #include <stdlib.h> | ||
6082 | #include <stdio.h> | ||
6083 | int main(int argc, char **argv) { | ||
6084 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6085 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6086 | float l = i * 2.1; | ||
6087 | double m = l / 0.5; | ||
6088 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6089 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6090 | exit(0); | ||
6091 | } | ||
6092 | |||
6093 | _ACEOF | ||
6094 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6095 | |||
6096 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6097 | then | ||
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6099 | $as_echo "no" >&6; } | ||
6100 | CFLAGS="$saved_CFLAGS" | ||
6101 | else | ||
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6103 | $as_echo "yes" >&6; } | ||
6104 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6105 | fi | ||
6106 | else | ||
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6108 | $as_echo "no" >&6; } | ||
6109 | CFLAGS="$saved_CFLAGS" | ||
6110 | |||
6111 | fi | ||
6112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6113 | } | ||
6114 | { | ||
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -D_FORTIFY_SOURCE=2" >&5 | ||
6116 | $as_echo_n "checking if $CC supports compile flag -D_FORTIFY_SOURCE=2... " >&6; } | ||
6117 | saved_CFLAGS="$CFLAGS" | ||
6118 | CFLAGS="$CFLAGS $WERROR -D_FORTIFY_SOURCE=2" | ||
6119 | _define_flag="" | ||
6120 | test "x$_define_flag" = "x" && _define_flag="-D_FORTIFY_SOURCE=2" | ||
6121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6122 | /* end confdefs.h. */ | ||
6123 | |||
6124 | #include <stdlib.h> | ||
6125 | #include <stdio.h> | ||
6126 | int main(int argc, char **argv) { | ||
6127 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6128 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6129 | float l = i * 2.1; | ||
6130 | double m = l / 0.5; | ||
6131 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6132 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6133 | exit(0); | ||
6134 | } | ||
6135 | |||
6136 | _ACEOF | ||
6137 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6138 | |||
6139 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6140 | then | ||
6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6142 | $as_echo "no" >&6; } | ||
6143 | CFLAGS="$saved_CFLAGS" | ||
6144 | else | ||
6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6146 | $as_echo "yes" >&6; } | ||
6147 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6148 | fi | ||
6149 | else | ||
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6151 | $as_echo "no" >&6; } | ||
6152 | CFLAGS="$saved_CFLAGS" | ||
6153 | |||
6154 | fi | ||
6155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6156 | } | ||
6157 | if test "x$use_toolchain_hardening" = "x1"; then | ||
6158 | { | ||
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,relro" >&5 | ||
6160 | $as_echo_n "checking if $LD supports link flag -Wl,-z,relro... " >&6; } | ||
6161 | saved_LDFLAGS="$LDFLAGS" | ||
6162 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,relro" | ||
6163 | _define_flag="" | ||
6164 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,relro" | ||
6165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6166 | /* end confdefs.h. */ | ||
6167 | |||
6168 | #include <stdlib.h> | ||
6169 | #include <stdio.h> | ||
6170 | int main(int argc, char **argv) { | ||
6171 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6172 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6173 | float l = i * 2.1; | ||
6174 | double m = l / 0.5; | ||
6175 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6176 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6177 | exit(0); | ||
6178 | } | ||
6179 | |||
6180 | _ACEOF | ||
6181 | if ac_fn_c_try_link "$LINENO"; then : | ||
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6183 | $as_echo "yes" >&6; } | ||
6184 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6185 | else | ||
6186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6187 | $as_echo "no" >&6; } | ||
6188 | LDFLAGS="$saved_LDFLAGS" | ||
6189 | |||
6190 | fi | ||
6191 | rm -f core conftest.err conftest.$ac_objext \ | ||
6192 | conftest$ac_exeext conftest.$ac_ext | ||
6193 | } | ||
6194 | { | ||
6195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,now" >&5 | ||
6196 | $as_echo_n "checking if $LD supports link flag -Wl,-z,now... " >&6; } | ||
6197 | saved_LDFLAGS="$LDFLAGS" | ||
6198 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,now" | ||
6199 | _define_flag="" | ||
6200 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,now" | ||
6201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6202 | /* end confdefs.h. */ | ||
6203 | |||
6204 | #include <stdlib.h> | ||
6205 | #include <stdio.h> | ||
6206 | int main(int argc, char **argv) { | ||
6207 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6208 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6209 | float l = i * 2.1; | ||
6210 | double m = l / 0.5; | ||
6211 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6212 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6213 | exit(0); | ||
6214 | } | ||
6215 | |||
6216 | _ACEOF | ||
6217 | if ac_fn_c_try_link "$LINENO"; then : | ||
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6219 | $as_echo "yes" >&6; } | ||
6220 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6221 | else | ||
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6223 | $as_echo "no" >&6; } | ||
6224 | LDFLAGS="$saved_LDFLAGS" | ||
6225 | |||
6226 | fi | ||
6227 | rm -f core conftest.err conftest.$ac_objext \ | ||
6228 | conftest$ac_exeext conftest.$ac_ext | ||
6229 | } | ||
6230 | { | ||
6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -Wl,-z,noexecstack" >&5 | ||
6232 | $as_echo_n "checking if $LD supports link flag -Wl,-z,noexecstack... " >&6; } | ||
6233 | saved_LDFLAGS="$LDFLAGS" | ||
6234 | LDFLAGS="$LDFLAGS $WERROR -Wl,-z,noexecstack" | ||
6235 | _define_flag="" | ||
6236 | test "x$_define_flag" = "x" && _define_flag="-Wl,-z,noexecstack" | ||
6237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6238 | /* end confdefs.h. */ | ||
6239 | |||
6240 | #include <stdlib.h> | ||
6241 | #include <stdio.h> | ||
6242 | int main(int argc, char **argv) { | ||
6243 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6244 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6245 | float l = i * 2.1; | ||
6246 | double m = l / 0.5; | ||
6247 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6248 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6249 | exit(0); | ||
6250 | } | ||
6251 | |||
6252 | _ACEOF | ||
6253 | if ac_fn_c_try_link "$LINENO"; then : | ||
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6255 | $as_echo "yes" >&6; } | ||
6256 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
6257 | else | ||
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6259 | $as_echo "no" >&6; } | ||
6260 | LDFLAGS="$saved_LDFLAGS" | ||
6261 | |||
6262 | fi | ||
6263 | rm -f core conftest.err conftest.$ac_objext \ | ||
6264 | conftest$ac_exeext conftest.$ac_ext | ||
6265 | } | ||
6266 | # NB. -ftrapv expects certain support functions to be present in | ||
6267 | # the compiler library (libgcc or similar) to detect integer operations | ||
6268 | # that can overflow. We must check that the result of enabling it | ||
6269 | # actually links. The test program compiled/linked includes a number | ||
6270 | # of integer operations that should exercise this. | ||
6271 | { | ||
6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -ftrapv and linking succeeds" >&5 | ||
6273 | $as_echo_n "checking if $CC supports compile flag -ftrapv and linking succeeds... " >&6; } | ||
6274 | saved_CFLAGS="$CFLAGS" | ||
6275 | CFLAGS="$CFLAGS $WERROR -ftrapv" | ||
6276 | _define_flag="" | ||
6277 | test "x$_define_flag" = "x" && _define_flag="-ftrapv" | ||
6278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6279 | /* end confdefs.h. */ | ||
6280 | |||
6281 | #include <stdlib.h> | ||
6282 | #include <stdio.h> | ||
6283 | int main(int argc, char **argv) { | ||
6284 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
6285 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
6286 | float l = i * 2.1; | ||
6287 | double m = l / 0.5; | ||
6288 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
6289 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
6290 | exit(0); | ||
6291 | } | ||
6292 | |||
6293 | _ACEOF | ||
6294 | if ac_fn_c_try_link "$LINENO"; then : | ||
6295 | |||
6296 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
6297 | then | ||
6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6299 | $as_echo "no" >&6; } | ||
6300 | CFLAGS="$saved_CFLAGS" | ||
6301 | else | ||
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6303 | $as_echo "yes" >&6; } | ||
6304 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
6305 | fi | ||
6306 | else | ||
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6308 | $as_echo "no" >&6; } | ||
6309 | CFLAGS="$saved_CFLAGS" | ||
6310 | |||
6311 | fi | ||
6312 | rm -f core conftest.err conftest.$ac_objext \ | ||
6313 | conftest$ac_exeext conftest.$ac_ext | ||
6314 | } | ||
6315 | fi | ||
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5 | ||
6317 | $as_echo_n "checking gcc version... " >&6; } | ||
6318 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
6319 | case $GCC_VER in | ||
6320 | 1.*) no_attrib_nonnull=1 ;; | ||
6321 | 2.8* | 2.9*) | ||
6322 | no_attrib_nonnull=1 | ||
6323 | ;; | ||
6324 | 2.*) no_attrib_nonnull=1 ;; | ||
6325 | *) ;; | ||
6326 | esac | ||
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5 | ||
6328 | $as_echo "$GCC_VER" >&6; } | ||
6329 | |||
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5 | ||
6331 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
6332 | saved_CFLAGS="$CFLAGS" | ||
6333 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
6334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6335 | /* end confdefs.h. */ | ||
6336 | #include <string.h> | ||
6337 | int | ||
6338 | main () | ||
6339 | { | ||
6340 | char b[10]; memset(b, 0, sizeof(b)); | ||
6341 | ; | ||
6342 | return 0; | ||
6343 | } | ||
6344 | _ACEOF | ||
6345 | if ac_fn_c_try_link "$LINENO"; then : | ||
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6347 | $as_echo "yes" >&6; } | ||
6348 | else | ||
6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6350 | $as_echo "no" >&6; } | ||
6351 | CFLAGS="$saved_CFLAGS" | ||
6352 | |||
6353 | fi | ||
6354 | rm -f core conftest.err conftest.$ac_objext \ | ||
6355 | conftest$ac_exeext conftest.$ac_ext | ||
6356 | |||
6357 | # -fstack-protector-all doesn't always work for some GCC versions | ||
6358 | # and/or platforms, so we test if we can. If it's not supported | ||
6359 | # on a given platform gcc will emit a warning so we use -Werror. | ||
6360 | if test "x$use_stack_protector" = "x1"; then | ||
6361 | for t in -fstack-protector-strong -fstack-protector-all \ | ||
6362 | -fstack-protector; do | ||
6363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5 | ||
6364 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
6365 | saved_CFLAGS="$CFLAGS" | ||
6366 | saved_LDFLAGS="$LDFLAGS" | ||
6367 | CFLAGS="$CFLAGS $t -Werror" | ||
6368 | LDFLAGS="$LDFLAGS $t -Werror" | ||
6369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6370 | /* end confdefs.h. */ | ||
6371 | #include <stdio.h> | ||
6372 | int | ||
6373 | main () | ||
6374 | { | ||
6375 | |||
6376 | char x[256]; | ||
6377 | snprintf(x, sizeof(x), "XXX"); | ||
6378 | |||
6379 | ; | ||
6380 | return 0; | ||
6381 | } | ||
6382 | _ACEOF | ||
6383 | if ac_fn_c_try_link "$LINENO"; then : | ||
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6385 | $as_echo "yes" >&6; } | ||
6386 | CFLAGS="$saved_CFLAGS $t" | ||
6387 | LDFLAGS="$saved_LDFLAGS $t" | ||
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5 | ||
6389 | $as_echo_n "checking if $t works... " >&6; } | ||
6390 | if test "$cross_compiling" = yes; then : | ||
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5 | ||
6392 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
6393 | break | ||
6394 | |||
6395 | else | ||
6396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6397 | /* end confdefs.h. */ | ||
6398 | #include <stdio.h> | ||
6399 | int | ||
6400 | main () | ||
6401 | { | ||
6402 | |||
6403 | char x[256]; | ||
6404 | snprintf(x, sizeof(x), "XXX"); | ||
6405 | |||
6406 | ; | ||
6407 | return 0; | ||
6408 | } | ||
6409 | _ACEOF | ||
6410 | if ac_fn_c_try_run "$LINENO"; then : | ||
6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6412 | $as_echo "yes" >&6; } | ||
6413 | break | ||
6414 | else | ||
6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6416 | $as_echo "no" >&6; } | ||
6417 | fi | ||
6418 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
6419 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
6420 | fi | ||
6421 | |||
6422 | |||
6423 | else | ||
6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6425 | $as_echo "no" >&6; } | ||
6426 | |||
6427 | fi | ||
6428 | rm -f core conftest.err conftest.$ac_objext \ | ||
6429 | conftest$ac_exeext conftest.$ac_ext | ||
6430 | CFLAGS="$saved_CFLAGS" | ||
6431 | LDFLAGS="$saved_LDFLAGS" | ||
6432 | done | ||
6433 | fi | ||
6434 | |||
6435 | if test -z "$have_llong_max"; then | ||
6436 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
6437 | unset ac_cv_have_decl_LLONG_MAX | ||
6438 | saved_CFLAGS="$CFLAGS" | ||
6439 | CFLAGS="$CFLAGS -std=gnu99" | ||
6440 | ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h> | ||
6441 | |||
6442 | " | ||
6443 | if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then : | ||
6444 | have_llong_max=1 | ||
6445 | else | ||
6446 | CFLAGS="$saved_CFLAGS" | ||
6447 | fi | ||
6448 | |||
6449 | fi | ||
6450 | fi | ||
6451 | |||
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows __attribute__ on return types" >&5 | ||
6453 | $as_echo_n "checking if compiler allows __attribute__ on return types... " >&6; } | ||
6454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6455 | /* end confdefs.h. */ | ||
6456 | |||
6457 | #include <stdlib.h> | ||
6458 | __attribute__((__unused__)) static void foo(void){return;} | ||
6459 | int | ||
6460 | main () | ||
6461 | { | ||
6462 | exit(0); | ||
6463 | ; | ||
6464 | return 0; | ||
6465 | } | ||
6466 | _ACEOF | ||
6467 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6469 | $as_echo "yes" >&6; } | ||
6470 | else | ||
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6472 | $as_echo "no" >&6; } | ||
6473 | |||
6474 | $as_echo "#define NO_ATTRIBUTE_ON_RETURN_TYPE 1" >>confdefs.h | ||
6475 | |||
6476 | |||
6477 | fi | ||
6478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6479 | |||
6480 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
6481 | |||
6482 | $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h | ||
6483 | |||
6484 | fi | ||
6485 | |||
6486 | |||
6487 | # Check whether --with-rpath was given. | ||
6488 | if test "${with_rpath+set}" = set; then : | ||
6489 | withval=$with_rpath; | ||
6490 | if test "x$withval" = "xno" ; then | ||
6491 | need_dash_r="" | ||
6492 | fi | ||
6493 | if test "x$withval" = "xyes" ; then | ||
6494 | need_dash_r=1 | ||
6495 | fi | ||
6496 | |||
6497 | |||
6498 | fi | ||
6499 | |||
6500 | |||
6501 | # Allow user to specify flags | ||
6502 | |||
6503 | # Check whether --with-cflags was given. | ||
6504 | if test "${with_cflags+set}" = set; then : | ||
6505 | withval=$with_cflags; | ||
6506 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6507 | test "x${withval}" != "xyes"; then | ||
6508 | CFLAGS="$CFLAGS $withval" | ||
6509 | fi | ||
6510 | |||
6511 | |||
6512 | fi | ||
6513 | |||
6514 | |||
6515 | # Check whether --with-cppflags was given. | ||
6516 | if test "${with_cppflags+set}" = set; then : | ||
6517 | withval=$with_cppflags; | ||
6518 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6519 | test "x${withval}" != "xyes"; then | ||
6520 | CPPFLAGS="$CPPFLAGS $withval" | ||
6521 | fi | ||
6522 | |||
6523 | |||
6524 | fi | ||
6525 | |||
6526 | |||
6527 | # Check whether --with-ldflags was given. | ||
6528 | if test "${with_ldflags+set}" = set; then : | ||
6529 | withval=$with_ldflags; | ||
6530 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6531 | test "x${withval}" != "xyes"; then | ||
6532 | LDFLAGS="$LDFLAGS $withval" | ||
6533 | fi | ||
6534 | |||
6535 | |||
6536 | fi | ||
6537 | |||
6538 | |||
6539 | # Check whether --with-libs was given. | ||
6540 | if test "${with_libs+set}" = set; then : | ||
6541 | withval=$with_libs; | ||
6542 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6543 | test "x${withval}" != "xyes"; then | ||
6544 | LIBS="$LIBS $withval" | ||
6545 | fi | ||
6546 | |||
6547 | |||
6548 | fi | ||
6549 | |||
6550 | |||
6551 | # Check whether --with-Werror was given. | ||
6552 | if test "${with_Werror+set}" = set; then : | ||
6553 | withval=$with_Werror; | ||
6554 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6555 | werror_flags="-Werror" | ||
6556 | if test "x${withval}" != "xyes"; then | ||
6557 | werror_flags="$withval" | ||
6558 | fi | ||
6559 | fi | ||
6560 | |||
6561 | |||
6562 | fi | ||
6563 | |||
6564 | |||
6565 | for ac_header in \ | ||
6566 | blf.h \ | ||
6567 | bstring.h \ | ||
6568 | crypt.h \ | ||
6569 | crypto/sha2.h \ | ||
6570 | dirent.h \ | ||
6571 | endian.h \ | ||
6572 | elf.h \ | ||
6573 | features.h \ | ||
6574 | fcntl.h \ | ||
6575 | floatingpoint.h \ | ||
6576 | getopt.h \ | ||
6577 | glob.h \ | ||
6578 | ia.h \ | ||
6579 | iaf.h \ | ||
6580 | inttypes.h \ | ||
6581 | limits.h \ | ||
6582 | locale.h \ | ||
6583 | login.h \ | ||
6584 | maillock.h \ | ||
6585 | ndir.h \ | ||
6586 | net/if_tun.h \ | ||
6587 | netdb.h \ | ||
6588 | netgroup.h \ | ||
6589 | pam/pam_appl.h \ | ||
6590 | paths.h \ | ||
6591 | poll.h \ | ||
6592 | pty.h \ | ||
6593 | readpassphrase.h \ | ||
6594 | rpc/types.h \ | ||
6595 | security/pam_appl.h \ | ||
6596 | sha2.h \ | ||
6597 | shadow.h \ | ||
6598 | stddef.h \ | ||
6599 | stdint.h \ | ||
6600 | string.h \ | ||
6601 | strings.h \ | ||
6602 | sys/audit.h \ | ||
6603 | sys/bitypes.h \ | ||
6604 | sys/bsdtty.h \ | ||
6605 | sys/capability.h \ | ||
6606 | sys/cdefs.h \ | ||
6607 | sys/dir.h \ | ||
6608 | sys/mman.h \ | ||
6609 | sys/ndir.h \ | ||
6610 | sys/poll.h \ | ||
6611 | sys/prctl.h \ | ||
6612 | sys/pstat.h \ | ||
6613 | sys/select.h \ | ||
6614 | sys/stat.h \ | ||
6615 | sys/stream.h \ | ||
6616 | sys/stropts.h \ | ||
6617 | sys/strtio.h \ | ||
6618 | sys/statvfs.h \ | ||
6619 | sys/sysmacros.h \ | ||
6620 | sys/time.h \ | ||
6621 | sys/timers.h \ | ||
6622 | time.h \ | ||
6623 | tmpdir.h \ | ||
6624 | ttyent.h \ | ||
6625 | ucred.h \ | ||
6626 | unistd.h \ | ||
6627 | usersec.h \ | ||
6628 | util.h \ | ||
6629 | utime.h \ | ||
6630 | utmp.h \ | ||
6631 | utmpx.h \ | ||
6632 | vis.h \ | ||
6633 | |||
6634 | do : | ||
6635 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6636 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
6637 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
6638 | cat >>confdefs.h <<_ACEOF | ||
6639 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6640 | _ACEOF | ||
6641 | |||
6642 | fi | ||
6643 | |||
6644 | done | ||
6645 | |||
6646 | |||
6647 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6648 | for ac_header in lastlog.h | ||
6649 | do : | ||
6650 | ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" " | ||
6651 | #ifdef HAVE_SYS_TIME_H | ||
6652 | # include <sys/time.h> | ||
6653 | #endif | ||
6654 | |||
6655 | " | ||
6656 | if test "x$ac_cv_header_lastlog_h" = xyes; then : | ||
6657 | cat >>confdefs.h <<_ACEOF | ||
6658 | #define HAVE_LASTLOG_H 1 | ||
6659 | _ACEOF | ||
6660 | |||
6661 | fi | ||
6662 | |||
6663 | done | ||
6664 | |||
6665 | |||
6666 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6667 | for ac_header in sys/ptms.h | ||
6668 | do : | ||
6669 | ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" " | ||
6670 | #ifdef HAVE_SYS_STREAM_H | ||
6671 | # include <sys/stream.h> | ||
6672 | #endif | ||
6673 | |||
6674 | " | ||
6675 | if test "x$ac_cv_header_sys_ptms_h" = xyes; then : | ||
6676 | cat >>confdefs.h <<_ACEOF | ||
6677 | #define HAVE_SYS_PTMS_H 1 | ||
6678 | _ACEOF | ||
6679 | |||
6680 | fi | ||
6681 | |||
6682 | done | ||
6683 | |||
6684 | |||
6685 | # login_cap.h requires sys/types.h on NetBSD | ||
6686 | for ac_header in login_cap.h | ||
6687 | do : | ||
6688 | ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" " | ||
6689 | #include <sys/types.h> | ||
6690 | |||
6691 | " | ||
6692 | if test "x$ac_cv_header_login_cap_h" = xyes; then : | ||
6693 | cat >>confdefs.h <<_ACEOF | ||
6694 | #define HAVE_LOGIN_CAP_H 1 | ||
6695 | _ACEOF | ||
6696 | |||
6697 | fi | ||
6698 | |||
6699 | done | ||
6700 | |||
6701 | |||
6702 | # older BSDs need sys/param.h before sys/mount.h | ||
6703 | for ac_header in sys/mount.h | ||
6704 | do : | ||
6705 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | ||
6706 | #include <sys/param.h> | ||
6707 | |||
6708 | " | ||
6709 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | ||
6710 | cat >>confdefs.h <<_ACEOF | ||
6711 | #define HAVE_SYS_MOUNT_H 1 | ||
6712 | _ACEOF | ||
6713 | |||
6714 | fi | ||
6715 | |||
6716 | done | ||
6717 | |||
6718 | |||
6719 | # Android requires sys/socket.h to be included before sys/un.h | ||
6720 | for ac_header in sys/un.h | ||
6721 | do : | ||
6722 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " | ||
6723 | #include <sys/types.h> | ||
6724 | #include <sys/socket.h> | ||
6725 | |||
6726 | " | ||
6727 | if test "x$ac_cv_header_sys_un_h" = xyes; then : | ||
6728 | cat >>confdefs.h <<_ACEOF | ||
6729 | #define HAVE_SYS_UN_H 1 | ||
6730 | _ACEOF | ||
6731 | |||
6732 | fi | ||
6733 | |||
6734 | done | ||
6735 | |||
6736 | |||
6737 | # Messages for features tested for in target-specific section | ||
6738 | SIA_MSG="no" | ||
6739 | SPC_MSG="no" | ||
6740 | SP_MSG="no" | ||
6741 | |||
6742 | # Check for some target-specific stuff | ||
6743 | case "$host" in | ||
6744 | *-*-aix*) | ||
6745 | # Some versions of VAC won't allow macro redefinitions at | ||
6746 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6747 | # particularly with older versions of vac or xlc. | ||
6748 | # It also throws errors about null macro argments, but these are | ||
6749 | # not fatal. | ||
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5 | ||
6751 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
6752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6753 | /* end confdefs.h. */ | ||
6754 | |||
6755 | #define testmacro foo | ||
6756 | #define testmacro bar | ||
6757 | int | ||
6758 | main () | ||
6759 | { | ||
6760 | exit(0); | ||
6761 | ; | ||
6762 | return 0; | ||
6763 | } | ||
6764 | _ACEOF | ||
6765 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6767 | $as_echo "yes" >&6; } | ||
6768 | else | ||
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6770 | $as_echo "no" >&6; } | ||
6771 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6772 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6773 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6774 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6775 | |||
6776 | |||
6777 | fi | ||
6778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6779 | |||
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5 | ||
6781 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
6782 | if (test -z "$blibpath"); then | ||
6783 | blibpath="/usr/lib:/lib" | ||
6784 | fi | ||
6785 | saved_LDFLAGS="$LDFLAGS" | ||
6786 | if test "$GCC" = "yes"; then | ||
6787 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6788 | else | ||
6789 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6790 | fi | ||
6791 | for tryflags in $flags ;do | ||
6792 | if (test -z "$blibflags"); then | ||
6793 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6795 | /* end confdefs.h. */ | ||
6796 | |||
6797 | int | ||
6798 | main () | ||
6799 | { | ||
6800 | |||
6801 | ; | ||
6802 | return 0; | ||
6803 | } | ||
6804 | _ACEOF | ||
6805 | if ac_fn_c_try_link "$LINENO"; then : | ||
6806 | blibflags=$tryflags | ||
6807 | fi | ||
6808 | rm -f core conftest.err conftest.$ac_objext \ | ||
6809 | conftest$ac_exeext conftest.$ac_ext | ||
6810 | fi | ||
6811 | done | ||
6812 | if (test -z "$blibflags"); then | ||
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
6814 | $as_echo "not found" >&6; } | ||
6815 | as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5 | ||
6816 | else | ||
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5 | ||
6818 | $as_echo "$blibflags" >&6; } | ||
6819 | fi | ||
6820 | LDFLAGS="$saved_LDFLAGS" | ||
6821 | ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" | ||
6822 | if test "x$ac_cv_func_authenticate" = xyes; then : | ||
6823 | |||
6824 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6825 | |||
6826 | else | ||
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5 | ||
6828 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
6829 | if ${ac_cv_lib_s_authenticate+:} false; then : | ||
6830 | $as_echo_n "(cached) " >&6 | ||
6831 | else | ||
6832 | ac_check_lib_save_LIBS=$LIBS | ||
6833 | LIBS="-ls $LIBS" | ||
6834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6835 | /* end confdefs.h. */ | ||
6836 | |||
6837 | /* Override any GCC internal prototype to avoid an error. | ||
6838 | Use char because int might match the return type of a GCC | ||
6839 | builtin and then its argument prototype would still apply. */ | ||
6840 | #ifdef __cplusplus | ||
6841 | extern "C" | ||
6842 | #endif | ||
6843 | char authenticate (); | ||
6844 | int | ||
6845 | main () | ||
6846 | { | ||
6847 | return authenticate (); | ||
6848 | ; | ||
6849 | return 0; | ||
6850 | } | ||
6851 | _ACEOF | ||
6852 | if ac_fn_c_try_link "$LINENO"; then : | ||
6853 | ac_cv_lib_s_authenticate=yes | ||
6854 | else | ||
6855 | ac_cv_lib_s_authenticate=no | ||
6856 | fi | ||
6857 | rm -f core conftest.err conftest.$ac_objext \ | ||
6858 | conftest$ac_exeext conftest.$ac_ext | ||
6859 | LIBS=$ac_check_lib_save_LIBS | ||
6860 | fi | ||
6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5 | ||
6862 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
6863 | if test "x$ac_cv_lib_s_authenticate" = xyes; then : | ||
6864 | $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h | ||
6865 | |||
6866 | LIBS="$LIBS -ls" | ||
6867 | |||
6868 | fi | ||
6869 | |||
6870 | |||
6871 | fi | ||
6872 | |||
6873 | ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h> | ||
6874 | " | ||
6875 | if test "x$ac_cv_have_decl_authenticate" = xyes; then : | ||
6876 | ac_have_decl=1 | ||
6877 | else | ||
6878 | ac_have_decl=0 | ||
6879 | fi | ||
6880 | |||
6881 | cat >>confdefs.h <<_ACEOF | ||
6882 | #define HAVE_DECL_AUTHENTICATE $ac_have_decl | ||
6883 | _ACEOF | ||
6884 | ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h> | ||
6885 | " | ||
6886 | if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then : | ||
6887 | ac_have_decl=1 | ||
6888 | else | ||
6889 | ac_have_decl=0 | ||
6890 | fi | ||
6891 | |||
6892 | cat >>confdefs.h <<_ACEOF | ||
6893 | #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl | ||
6894 | _ACEOF | ||
6895 | ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h> | ||
6896 | " | ||
6897 | if test "x$ac_cv_have_decl_loginsuccess" = xyes; then : | ||
6898 | ac_have_decl=1 | ||
6899 | else | ||
6900 | ac_have_decl=0 | ||
6901 | fi | ||
6902 | |||
6903 | cat >>confdefs.h <<_ACEOF | ||
6904 | #define HAVE_DECL_LOGINSUCCESS $ac_have_decl | ||
6905 | _ACEOF | ||
6906 | ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h> | ||
6907 | " | ||
6908 | if test "x$ac_cv_have_decl_passwdexpired" = xyes; then : | ||
6909 | ac_have_decl=1 | ||
6910 | else | ||
6911 | ac_have_decl=0 | ||
6912 | fi | ||
6913 | |||
6914 | cat >>confdefs.h <<_ACEOF | ||
6915 | #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl | ||
6916 | _ACEOF | ||
6917 | ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h> | ||
6918 | " | ||
6919 | if test "x$ac_cv_have_decl_setauthdb" = xyes; then : | ||
6920 | ac_have_decl=1 | ||
6921 | else | ||
6922 | ac_have_decl=0 | ||
6923 | fi | ||
6924 | |||
6925 | cat >>confdefs.h <<_ACEOF | ||
6926 | #define HAVE_DECL_SETAUTHDB $ac_have_decl | ||
6927 | _ACEOF | ||
6928 | |||
6929 | ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h> | ||
6930 | |||
6931 | " | ||
6932 | if test "x$ac_cv_have_decl_loginfailed" = xyes; then : | ||
6933 | ac_have_decl=1 | ||
6934 | else | ||
6935 | ac_have_decl=0 | ||
6936 | fi | ||
6937 | |||
6938 | cat >>confdefs.h <<_ACEOF | ||
6939 | #define HAVE_DECL_LOGINFAILED $ac_have_decl | ||
6940 | _ACEOF | ||
6941 | if test $ac_have_decl = 1; then : | ||
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5 | ||
6943 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
6944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
6945 | /* end confdefs.h. */ | ||
6946 | #include <usersec.h> | ||
6947 | int | ||
6948 | main () | ||
6949 | { | ||
6950 | (void)loginfailed("user","host","tty",0); | ||
6951 | ; | ||
6952 | return 0; | ||
6953 | } | ||
6954 | _ACEOF | ||
6955 | if ac_fn_c_try_compile "$LINENO"; then : | ||
6956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
6957 | $as_echo "yes" >&6; } | ||
6958 | |||
6959 | $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h | ||
6960 | |||
6961 | else | ||
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
6963 | $as_echo "no" >&6; } | ||
6964 | |||
6965 | fi | ||
6966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6967 | fi | ||
6968 | |||
6969 | for ac_func in getgrset setauthdb | ||
6970 | do : | ||
6971 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
6972 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
6973 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
6974 | cat >>confdefs.h <<_ACEOF | ||
6975 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
6976 | _ACEOF | ||
6977 | |||
6978 | fi | ||
6979 | done | ||
6980 | |||
6981 | ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> | ||
6982 | #include <fcntl.h> | ||
6983 | |||
6984 | " | ||
6985 | if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : | ||
6986 | |||
6987 | $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h | ||
6988 | |||
6989 | fi | ||
6990 | |||
6991 | check_for_aix_broken_getaddrinfo=1 | ||
6992 | |||
6993 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
6994 | |||
6995 | |||
6996 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
6997 | |||
6998 | |||
6999 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7000 | |||
7001 | |||
7002 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7003 | |||
7004 | |||
7005 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
7006 | |||
7007 | |||
7008 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7009 | |||
7010 | |||
7011 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7012 | |||
7013 | |||
7014 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7015 | |||
7016 | |||
7017 | $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h | ||
7018 | |||
7019 | |||
7020 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7021 | |||
7022 | ;; | ||
7023 | *-*-android*) | ||
7024 | |||
7025 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7026 | |||
7027 | |||
7028 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7029 | |||
7030 | ;; | ||
7031 | *-*-cygwin*) | ||
7032 | check_for_libcrypt_later=1 | ||
7033 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7034 | |||
7035 | $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h | ||
7036 | |||
7037 | |||
7038 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7039 | |||
7040 | |||
7041 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
7042 | |||
7043 | |||
7044 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
7045 | |||
7046 | |||
7047 | $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h | ||
7048 | |||
7049 | |||
7050 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
7051 | |||
7052 | |||
7053 | $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h | ||
7054 | |||
7055 | |||
7056 | $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h | ||
7057 | |||
7058 | # Cygwin defines optargs, optargs as declspec(dllimport) for historical | ||
7059 | # reasons which cause compile warnings, so we disable those warnings. | ||
7060 | { | ||
7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -Wno-attributes" >&5 | ||
7062 | $as_echo_n "checking if $CC supports compile flag -Wno-attributes... " >&6; } | ||
7063 | saved_CFLAGS="$CFLAGS" | ||
7064 | CFLAGS="$CFLAGS $WERROR -Wno-attributes" | ||
7065 | _define_flag="" | ||
7066 | test "x$_define_flag" = "x" && _define_flag="-Wno-attributes" | ||
7067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7068 | /* end confdefs.h. */ | ||
7069 | |||
7070 | #include <stdlib.h> | ||
7071 | #include <stdio.h> | ||
7072 | int main(int argc, char **argv) { | ||
7073 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
7074 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
7075 | float l = i * 2.1; | ||
7076 | double m = l / 0.5; | ||
7077 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
7078 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
7079 | exit(0); | ||
7080 | } | ||
7081 | |||
7082 | _ACEOF | ||
7083 | if ac_fn_c_try_compile "$LINENO"; then : | ||
7084 | |||
7085 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
7086 | then | ||
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7088 | $as_echo "no" >&6; } | ||
7089 | CFLAGS="$saved_CFLAGS" | ||
7090 | else | ||
7091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7092 | $as_echo "yes" >&6; } | ||
7093 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
7094 | fi | ||
7095 | else | ||
7096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7097 | $as_echo "no" >&6; } | ||
7098 | CFLAGS="$saved_CFLAGS" | ||
7099 | |||
7100 | fi | ||
7101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7102 | } | ||
7103 | ;; | ||
7104 | *-*-dgux*) | ||
7105 | |||
7106 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7107 | |||
7108 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7109 | |||
7110 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7111 | |||
7112 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7113 | |||
7114 | ;; | ||
7115 | *-*-darwin*) | ||
7116 | use_pie=auto | ||
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5 | ||
7118 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
7119 | if test "$cross_compiling" = yes; then : | ||
7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5 | ||
7121 | $as_echo "assume it is working" >&6; } | ||
7122 | else | ||
7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7124 | /* end confdefs.h. */ | ||
7125 | #include <mach-o/dyld.h> | ||
7126 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7127 | exit(0); | ||
7128 | else | ||
7129 | exit(1); | ||
7130 | } | ||
7131 | |||
7132 | _ACEOF | ||
7133 | if ac_fn_c_try_run "$LINENO"; then : | ||
7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 | ||
7135 | $as_echo "working" >&6; } | ||
7136 | else | ||
7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5 | ||
7138 | $as_echo "buggy" >&6; } | ||
7139 | |||
7140 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7141 | |||
7142 | |||
7143 | fi | ||
7144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
7145 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
7146 | fi | ||
7147 | |||
7148 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7149 | |||
7150 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7151 | |||
7152 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7153 | |||
7154 | |||
7155 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7156 | |||
7157 | |||
7158 | cat >>confdefs.h <<_ACEOF | ||
7159 | #define BIND_8_COMPAT 1 | ||
7160 | _ACEOF | ||
7161 | |||
7162 | |||
7163 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7164 | |||
7165 | |||
7166 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7167 | |||
7168 | |||
7169 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7170 | |||
7171 | |||
7172 | ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default" | ||
7173 | if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then : | ||
7174 | |||
7175 | else | ||
7176 | |||
7177 | $as_echo "#define AU_IPv4 0" >>confdefs.h | ||
7178 | |||
7179 | #include <bsm/audit.h> | ||
7180 | |||
7181 | $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h | ||
7182 | |||
7183 | |||
7184 | fi | ||
7185 | |||
7186 | |||
7187 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7188 | |||
7189 | for ac_func in sandbox_init | ||
7190 | do : | ||
7191 | ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init" | ||
7192 | if test "x$ac_cv_func_sandbox_init" = xyes; then : | ||
7193 | cat >>confdefs.h <<_ACEOF | ||
7194 | #define HAVE_SANDBOX_INIT 1 | ||
7195 | _ACEOF | ||
7196 | |||
7197 | fi | ||
7198 | done | ||
7199 | |||
7200 | for ac_header in sandbox.h | ||
7201 | do : | ||
7202 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | ||
7203 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | ||
7204 | cat >>confdefs.h <<_ACEOF | ||
7205 | #define HAVE_SANDBOX_H 1 | ||
7206 | _ACEOF | ||
7207 | |||
7208 | fi | ||
7209 | |||
7210 | done | ||
7211 | |||
7212 | ;; | ||
7213 | *-*-dragonfly*) | ||
7214 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7215 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7216 | ;; | ||
7217 | *-*-haiku*) | ||
7218 | LIBS="$LIBS -lbsd " | ||
7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 | ||
7220 | $as_echo_n "checking for socket in -lnetwork... " >&6; } | ||
7221 | if ${ac_cv_lib_network_socket+:} false; then : | ||
7222 | $as_echo_n "(cached) " >&6 | ||
7223 | else | ||
7224 | ac_check_lib_save_LIBS=$LIBS | ||
7225 | LIBS="-lnetwork $LIBS" | ||
7226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7227 | /* end confdefs.h. */ | ||
7228 | |||
7229 | /* Override any GCC internal prototype to avoid an error. | ||
7230 | Use char because int might match the return type of a GCC | ||
7231 | builtin and then its argument prototype would still apply. */ | ||
7232 | #ifdef __cplusplus | ||
7233 | extern "C" | ||
7234 | #endif | ||
7235 | char socket (); | ||
7236 | int | ||
7237 | main () | ||
7238 | { | ||
7239 | return socket (); | ||
7240 | ; | ||
7241 | return 0; | ||
7242 | } | ||
7243 | _ACEOF | ||
7244 | if ac_fn_c_try_link "$LINENO"; then : | ||
7245 | ac_cv_lib_network_socket=yes | ||
7246 | else | ||
7247 | ac_cv_lib_network_socket=no | ||
7248 | fi | ||
7249 | rm -f core conftest.err conftest.$ac_objext \ | ||
7250 | conftest$ac_exeext conftest.$ac_ext | ||
7251 | LIBS=$ac_check_lib_save_LIBS | ||
7252 | fi | ||
7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 | ||
7254 | $as_echo "$ac_cv_lib_network_socket" >&6; } | ||
7255 | if test "x$ac_cv_lib_network_socket" = xyes; then : | ||
7256 | cat >>confdefs.h <<_ACEOF | ||
7257 | #define HAVE_LIBNETWORK 1 | ||
7258 | _ACEOF | ||
7259 | |||
7260 | LIBS="-lnetwork $LIBS" | ||
7261 | |||
7262 | fi | ||
7263 | |||
7264 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
7265 | |||
7266 | MANTYPE=man | ||
7267 | ;; | ||
7268 | *-*-hpux*) | ||
7269 | # first we define all of the options common to all HP-UX releases | ||
7270 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7271 | IPADDR_IN_DISPLAY=yes | ||
7272 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7273 | |||
7274 | |||
7275 | $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h | ||
7276 | |||
7277 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7278 | |||
7279 | |||
7280 | $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h | ||
7281 | |||
7282 | $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h | ||
7283 | |||
7284 | |||
7285 | $as_echo "#define PLATFORM_SYS_DIR_UID 2" >>confdefs.h | ||
7286 | |||
7287 | maildir="/var/mail" | ||
7288 | LIBS="$LIBS -lsec" | ||
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5 | ||
7290 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
7291 | if ${ac_cv_lib_xnet_t_error+:} false; then : | ||
7292 | $as_echo_n "(cached) " >&6 | ||
7293 | else | ||
7294 | ac_check_lib_save_LIBS=$LIBS | ||
7295 | LIBS="-lxnet $LIBS" | ||
7296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7297 | /* end confdefs.h. */ | ||
7298 | |||
7299 | /* Override any GCC internal prototype to avoid an error. | ||
7300 | Use char because int might match the return type of a GCC | ||
7301 | builtin and then its argument prototype would still apply. */ | ||
7302 | #ifdef __cplusplus | ||
7303 | extern "C" | ||
7304 | #endif | ||
7305 | char t_error (); | ||
7306 | int | ||
7307 | main () | ||
7308 | { | ||
7309 | return t_error (); | ||
7310 | ; | ||
7311 | return 0; | ||
7312 | } | ||
7313 | _ACEOF | ||
7314 | if ac_fn_c_try_link "$LINENO"; then : | ||
7315 | ac_cv_lib_xnet_t_error=yes | ||
7316 | else | ||
7317 | ac_cv_lib_xnet_t_error=no | ||
7318 | fi | ||
7319 | rm -f core conftest.err conftest.$ac_objext \ | ||
7320 | conftest$ac_exeext conftest.$ac_ext | ||
7321 | LIBS=$ac_check_lib_save_LIBS | ||
7322 | fi | ||
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7324 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
7325 | if test "x$ac_cv_lib_xnet_t_error" = xyes; then : | ||
7326 | cat >>confdefs.h <<_ACEOF | ||
7327 | #define HAVE_LIBXNET 1 | ||
7328 | _ACEOF | ||
7329 | |||
7330 | LIBS="-lxnet $LIBS" | ||
7331 | |||
7332 | else | ||
7333 | as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5 | ||
7334 | fi | ||
7335 | |||
7336 | |||
7337 | # next, we define all of the options specific to major releases | ||
7338 | case "$host" in | ||
7339 | *-*-hpux10*) | ||
7340 | if test -z "$GCC"; then | ||
7341 | CFLAGS="$CFLAGS -Ae" | ||
7342 | fi | ||
7343 | ;; | ||
7344 | *-*-hpux11*) | ||
7345 | |||
7346 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7347 | |||
7348 | |||
7349 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7350 | |||
7351 | |||
7352 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7353 | |||
7354 | check_for_hpux_broken_getaddrinfo=1 | ||
7355 | check_for_conflicting_getspnam=1 | ||
7356 | ;; | ||
7357 | esac | ||
7358 | |||
7359 | # lastly, we define options specific to minor releases | ||
7360 | case "$host" in | ||
7361 | *-*-hpux10.26) | ||
7362 | |||
7363 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
7364 | |||
7365 | disable_ptmx_check=yes | ||
7366 | LIBS="$LIBS -lsecpw" | ||
7367 | ;; | ||
7368 | esac | ||
7369 | ;; | ||
7370 | *-*-irix5*) | ||
7371 | PATH="$PATH:/usr/etc" | ||
7372 | |||
7373 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7374 | |||
7375 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7376 | |||
7377 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7378 | |||
7379 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7380 | |||
7381 | |||
7382 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7383 | |||
7384 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7385 | |||
7386 | ;; | ||
7387 | *-*-irix6*) | ||
7388 | PATH="$PATH:/usr/etc" | ||
7389 | |||
7390 | $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h | ||
7391 | |||
7392 | |||
7393 | $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h | ||
7394 | |||
7395 | |||
7396 | $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h | ||
7397 | |||
7398 | ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob" | ||
7399 | if test "x$ac_cv_func_jlimit_startjob" = xyes; then : | ||
7400 | |||
7401 | $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h | ||
7402 | |||
7403 | fi | ||
7404 | |||
7405 | $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h | ||
7406 | |||
7407 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7408 | |||
7409 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7410 | |||
7411 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7412 | |||
7413 | |||
7414 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7415 | |||
7416 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
7417 | |||
7418 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7419 | |||
7420 | ;; | ||
7421 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
7422 | check_for_libcrypt_later=1 | ||
7423 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7424 | |||
7425 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7426 | |||
7427 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7428 | |||
7429 | |||
7430 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7431 | |||
7432 | |||
7433 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7434 | |||
7435 | ;; | ||
7436 | *-*-linux*) | ||
7437 | no_dev_ptmx=1 | ||
7438 | use_pie=auto | ||
7439 | check_for_libcrypt_later=1 | ||
7440 | check_for_openpty_ctty_bug=1 | ||
7441 | |||
7442 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7443 | |||
7444 | |||
7445 | $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h | ||
7446 | |||
7447 | $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h | ||
7448 | |||
7449 | |||
7450 | $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h | ||
7451 | |||
7452 | |||
7453 | $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h | ||
7454 | |||
7455 | $as_echo "#define USE_BTMP 1" >>confdefs.h | ||
7456 | |||
7457 | |||
7458 | $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h | ||
7459 | |||
7460 | inet6_default_4in6=yes | ||
7461 | case `uname -r` in | ||
7462 | 1.*|2.0.*) | ||
7463 | |||
7464 | $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h | ||
7465 | |||
7466 | ;; | ||
7467 | esac | ||
7468 | # tun(4) forwarding compat code | ||
7469 | for ac_header in linux/if_tun.h | ||
7470 | do : | ||
7471 | ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default" | ||
7472 | if test "x$ac_cv_header_linux_if_tun_h" = xyes; then : | ||
7473 | cat >>confdefs.h <<_ACEOF | ||
7474 | #define HAVE_LINUX_IF_TUN_H 1 | ||
7475 | _ACEOF | ||
7476 | |||
7477 | fi | ||
7478 | |||
7479 | done | ||
7480 | |||
7481 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
7482 | |||
7483 | $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h | ||
7484 | |||
7485 | |||
7486 | $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h | ||
7487 | |||
7488 | |||
7489 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7490 | |||
7491 | fi | ||
7492 | for ac_header in linux/seccomp.h linux/filter.h linux/audit.h | ||
7493 | do : | ||
7494 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
7495 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <linux/types.h> | ||
7496 | " | ||
7497 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
7498 | cat >>confdefs.h <<_ACEOF | ||
7499 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
7500 | _ACEOF | ||
7501 | |||
7502 | fi | ||
7503 | |||
7504 | done | ||
7505 | |||
7506 | for ac_func in prctl | ||
7507 | do : | ||
7508 | ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" | ||
7509 | if test "x$ac_cv_func_prctl" = xyes; then : | ||
7510 | cat >>confdefs.h <<_ACEOF | ||
7511 | #define HAVE_PRCTL 1 | ||
7512 | _ACEOF | ||
7513 | |||
7514 | fi | ||
7515 | done | ||
7516 | |||
7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp architecture" >&5 | ||
7518 | $as_echo_n "checking for seccomp architecture... " >&6; } | ||
7519 | seccomp_audit_arch= | ||
7520 | case "$host" in | ||
7521 | x86_64-*) | ||
7522 | seccomp_audit_arch=AUDIT_ARCH_X86_64 | ||
7523 | ;; | ||
7524 | i*86-*) | ||
7525 | seccomp_audit_arch=AUDIT_ARCH_I386 | ||
7526 | ;; | ||
7527 | arm*-*) | ||
7528 | seccomp_audit_arch=AUDIT_ARCH_ARM | ||
7529 | ;; | ||
7530 | esac | ||
7531 | if test "x$seccomp_audit_arch" != "x" ; then | ||
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$seccomp_audit_arch\"" >&5 | ||
7533 | $as_echo "\"$seccomp_audit_arch\"" >&6; } | ||
7534 | |||
7535 | cat >>confdefs.h <<_ACEOF | ||
7536 | #define SECCOMP_AUDIT_ARCH $seccomp_audit_arch | ||
7537 | _ACEOF | ||
7538 | |||
7539 | else | ||
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: architecture not supported" >&5 | ||
7541 | $as_echo "architecture not supported" >&6; } | ||
7542 | fi | ||
7543 | ;; | ||
7544 | mips-sony-bsd|mips-sony-newsos4) | ||
7545 | |||
7546 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
7547 | |||
7548 | SONY=1 | ||
7549 | ;; | ||
7550 | *-*-netbsd*) | ||
7551 | check_for_libcrypt_before=1 | ||
7552 | if test "x$withval" != "xno" ; then | ||
7553 | need_dash_r=1 | ||
7554 | fi | ||
7555 | |||
7556 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7557 | |||
7558 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
7559 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7560 | |||
7561 | else | ||
7562 | |||
7563 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7564 | |||
7565 | fi | ||
7566 | |||
7567 | |||
7568 | |||
7569 | $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h | ||
7570 | |||
7571 | TEST_MALLOC_OPTIONS="AJRX" | ||
7572 | |||
7573 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
7574 | |||
7575 | |||
7576 | $as_echo "#define BROKEN_READ_COMPARISON 1" >>confdefs.h | ||
7577 | |||
7578 | ;; | ||
7579 | *-*-freebsd*) | ||
7580 | check_for_libcrypt_later=1 | ||
7581 | |||
7582 | $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h | ||
7583 | |||
7584 | |||
7585 | $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h | ||
7586 | |||
7587 | ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default" | ||
7588 | if test "x$ac_cv_header_net_if_tap_h" = xyes; then : | ||
7589 | |||
7590 | else | ||
7591 | |||
7592 | $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h | ||
7593 | |||
7594 | fi | ||
7595 | |||
7596 | |||
7597 | |||
7598 | $as_echo "#define BROKEN_GLOB 1" >>confdefs.h | ||
7599 | |||
7600 | |||
7601 | $as_echo "#define BROKEN_STRNVIS 1" >>confdefs.h | ||
7602 | |||
7603 | TEST_MALLOC_OPTIONS="AJRX" | ||
7604 | # Preauth crypto occasionally uses file descriptors for crypto offload | ||
7605 | # and will crash if they cannot be opened. | ||
7606 | |||
7607 | $as_echo "#define SANDBOX_SKIP_RLIMIT_NOFILE 1" >>confdefs.h | ||
7608 | |||
7609 | ;; | ||
7610 | *-*-bsdi*) | ||
7611 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7612 | |||
7613 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7614 | |||
7615 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7616 | |||
7617 | ;; | ||
7618 | *-next-*) | ||
7619 | conf_lastlog_location="/usr/adm/lastlog" | ||
7620 | conf_utmp_location=/etc/utmp | ||
7621 | conf_wtmp_location=/usr/adm/wtmp | ||
7622 | maildir=/usr/spool/mail | ||
7623 | |||
7624 | $as_echo "#define HAVE_NEXT 1" >>confdefs.h | ||
7625 | |||
7626 | $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h | ||
7627 | |||
7628 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7629 | |||
7630 | |||
7631 | $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h | ||
7632 | |||
7633 | ;; | ||
7634 | *-*-openbsd*) | ||
7635 | use_pie=auto | ||
7636 | |||
7637 | $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h | ||
7638 | |||
7639 | |||
7640 | $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h | ||
7641 | |||
7642 | |||
7643 | $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h | ||
7644 | |||
7645 | |||
7646 | $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h | ||
7647 | |||
7648 | TEST_MALLOC_OPTIONS="AFGJPRX" | ||
7649 | ;; | ||
7650 | *-*-solaris*) | ||
7651 | if test "x$withval" != "xno" ; then | ||
7652 | need_dash_r=1 | ||
7653 | fi | ||
7654 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7655 | |||
7656 | $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h | ||
7657 | |||
7658 | |||
7659 | $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h | ||
7660 | |||
7661 | $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h | ||
7662 | |||
7663 | |||
7664 | $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h | ||
7665 | |||
7666 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7667 | |||
7668 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
7669 | |||
7670 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7671 | |||
7672 | |||
7673 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7674 | |||
7675 | |||
7676 | $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h | ||
7677 | |||
7678 | external_path_file=/etc/default/login | ||
7679 | # hardwire lastlog location (can't detect it on some versions) | ||
7680 | conf_lastlog_location="/var/adm/lastlog" | ||
7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
7682 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
7683 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
7684 | if test "$sol2ver" -ge 8; then | ||
7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
7686 | $as_echo "yes" >&6; } | ||
7687 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
7688 | |||
7689 | |||
7690 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
7691 | |||
7692 | else | ||
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
7694 | $as_echo "no" >&6; } | ||
7695 | fi | ||
7696 | |||
7697 | # Check whether --with-solaris-contracts was given. | ||
7698 | if test "${with_solaris_contracts+set}" = set; then : | ||
7699 | withval=$with_solaris_contracts; | ||
7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5 | ||
7701 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
7702 | if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then : | ||
7703 | $as_echo_n "(cached) " >&6 | ||
7704 | else | ||
7705 | ac_check_lib_save_LIBS=$LIBS | ||
7706 | LIBS="-lcontract $LIBS" | ||
7707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7708 | /* end confdefs.h. */ | ||
7709 | |||
7710 | /* Override any GCC internal prototype to avoid an error. | ||
7711 | Use char because int might match the return type of a GCC | ||
7712 | builtin and then its argument prototype would still apply. */ | ||
7713 | #ifdef __cplusplus | ||
7714 | extern "C" | ||
7715 | #endif | ||
7716 | char ct_tmpl_activate (); | ||
7717 | int | ||
7718 | main () | ||
7719 | { | ||
7720 | return ct_tmpl_activate (); | ||
7721 | ; | ||
7722 | return 0; | ||
7723 | } | ||
7724 | _ACEOF | ||
7725 | if ac_fn_c_try_link "$LINENO"; then : | ||
7726 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
7727 | else | ||
7728 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
7729 | fi | ||
7730 | rm -f core conftest.err conftest.$ac_objext \ | ||
7731 | conftest$ac_exeext conftest.$ac_ext | ||
7732 | LIBS=$ac_check_lib_save_LIBS | ||
7733 | fi | ||
7734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
7735 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
7736 | if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then : | ||
7737 | |||
7738 | $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h | ||
7739 | |||
7740 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
7741 | SPC_MSG="yes" | ||
7742 | fi | ||
7743 | |||
7744 | |||
7745 | fi | ||
7746 | |||
7747 | |||
7748 | # Check whether --with-solaris-projects was given. | ||
7749 | if test "${with_solaris_projects+set}" = set; then : | ||
7750 | withval=$with_solaris_projects; | ||
7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 | ||
7752 | $as_echo_n "checking for setproject in -lproject... " >&6; } | ||
7753 | if ${ac_cv_lib_project_setproject+:} false; then : | ||
7754 | $as_echo_n "(cached) " >&6 | ||
7755 | else | ||
7756 | ac_check_lib_save_LIBS=$LIBS | ||
7757 | LIBS="-lproject $LIBS" | ||
7758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7759 | /* end confdefs.h. */ | ||
7760 | |||
7761 | /* Override any GCC internal prototype to avoid an error. | ||
7762 | Use char because int might match the return type of a GCC | ||
7763 | builtin and then its argument prototype would still apply. */ | ||
7764 | #ifdef __cplusplus | ||
7765 | extern "C" | ||
7766 | #endif | ||
7767 | char setproject (); | ||
7768 | int | ||
7769 | main () | ||
7770 | { | ||
7771 | return setproject (); | ||
7772 | ; | ||
7773 | return 0; | ||
7774 | } | ||
7775 | _ACEOF | ||
7776 | if ac_fn_c_try_link "$LINENO"; then : | ||
7777 | ac_cv_lib_project_setproject=yes | ||
7778 | else | ||
7779 | ac_cv_lib_project_setproject=no | ||
7780 | fi | ||
7781 | rm -f core conftest.err conftest.$ac_objext \ | ||
7782 | conftest$ac_exeext conftest.$ac_ext | ||
7783 | LIBS=$ac_check_lib_save_LIBS | ||
7784 | fi | ||
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 | ||
7786 | $as_echo "$ac_cv_lib_project_setproject" >&6; } | ||
7787 | if test "x$ac_cv_lib_project_setproject" = xyes; then : | ||
7788 | |||
7789 | $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h | ||
7790 | |||
7791 | SSHDLIBS="$SSHDLIBS -lproject" | ||
7792 | SP_MSG="yes" | ||
7793 | fi | ||
7794 | |||
7795 | |||
7796 | fi | ||
7797 | |||
7798 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
7799 | ;; | ||
7800 | *-*-sunos4*) | ||
7801 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
7802 | for ac_func in getpwanam | ||
7803 | do : | ||
7804 | ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam" | ||
7805 | if test "x$ac_cv_func_getpwanam" = xyes; then : | ||
7806 | cat >>confdefs.h <<_ACEOF | ||
7807 | #define HAVE_GETPWANAM 1 | ||
7808 | _ACEOF | ||
7809 | |||
7810 | fi | ||
7811 | done | ||
7812 | |||
7813 | $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h | ||
7814 | |||
7815 | conf_utmp_location=/etc/utmp | ||
7816 | conf_wtmp_location=/var/adm/wtmp | ||
7817 | conf_lastlog_location=/var/adm/lastlog | ||
7818 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7819 | |||
7820 | ;; | ||
7821 | *-ncr-sysv*) | ||
7822 | LIBS="$LIBS -lc89" | ||
7823 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7824 | |||
7825 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7826 | |||
7827 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7828 | |||
7829 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7830 | |||
7831 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7832 | |||
7833 | ;; | ||
7834 | *-sni-sysv*) | ||
7835 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 | ||
7837 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
7838 | if ${ac_cv_lib_dl_dlsym+:} false; then : | ||
7839 | $as_echo_n "(cached) " >&6 | ||
7840 | else | ||
7841 | ac_check_lib_save_LIBS=$LIBS | ||
7842 | LIBS="-ldl $LIBS" | ||
7843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7844 | /* end confdefs.h. */ | ||
7845 | |||
7846 | /* Override any GCC internal prototype to avoid an error. | ||
7847 | Use char because int might match the return type of a GCC | ||
7848 | builtin and then its argument prototype would still apply. */ | ||
7849 | #ifdef __cplusplus | ||
7850 | extern "C" | ||
7851 | #endif | ||
7852 | char dlsym (); | ||
7853 | int | ||
7854 | main () | ||
7855 | { | ||
7856 | return dlsym (); | ||
7857 | ; | ||
7858 | return 0; | ||
7859 | } | ||
7860 | _ACEOF | ||
7861 | if ac_fn_c_try_link "$LINENO"; then : | ||
7862 | ac_cv_lib_dl_dlsym=yes | ||
7863 | else | ||
7864 | ac_cv_lib_dl_dlsym=no | ||
7865 | fi | ||
7866 | rm -f core conftest.err conftest.$ac_objext \ | ||
7867 | conftest$ac_exeext conftest.$ac_ext | ||
7868 | LIBS=$ac_check_lib_save_LIBS | ||
7869 | fi | ||
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 | ||
7871 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
7872 | if test "x$ac_cv_lib_dl_dlsym" = xyes; then : | ||
7873 | cat >>confdefs.h <<_ACEOF | ||
7874 | #define HAVE_LIBDL 1 | ||
7875 | _ACEOF | ||
7876 | |||
7877 | LIBS="-ldl $LIBS" | ||
7878 | |||
7879 | fi | ||
7880 | |||
7881 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
7883 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
7884 | if ${ac_cv_lib_resolv_res_query+:} false; then : | ||
7885 | $as_echo_n "(cached) " >&6 | ||
7886 | else | ||
7887 | ac_check_lib_save_LIBS=$LIBS | ||
7888 | LIBS="-lresolv $LIBS" | ||
7889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7890 | /* end confdefs.h. */ | ||
7891 | |||
7892 | /* Override any GCC internal prototype to avoid an error. | ||
7893 | Use char because int might match the return type of a GCC | ||
7894 | builtin and then its argument prototype would still apply. */ | ||
7895 | #ifdef __cplusplus | ||
7896 | extern "C" | ||
7897 | #endif | ||
7898 | char res_query (); | ||
7899 | int | ||
7900 | main () | ||
7901 | { | ||
7902 | return res_query (); | ||
7903 | ; | ||
7904 | return 0; | ||
7905 | } | ||
7906 | _ACEOF | ||
7907 | if ac_fn_c_try_link "$LINENO"; then : | ||
7908 | ac_cv_lib_resolv_res_query=yes | ||
7909 | else | ||
7910 | ac_cv_lib_resolv_res_query=no | ||
7911 | fi | ||
7912 | rm -f core conftest.err conftest.$ac_objext \ | ||
7913 | conftest$ac_exeext conftest.$ac_ext | ||
7914 | LIBS=$ac_check_lib_save_LIBS | ||
7915 | fi | ||
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5 | ||
7917 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
7918 | if test "x$ac_cv_lib_resolv_res_query" = xyes; then : | ||
7919 | LIBS="$LIBS -lresolv" | ||
7920 | fi | ||
7921 | |||
7922 | IPADDR_IN_DISPLAY=yes | ||
7923 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7924 | |||
7925 | $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h | ||
7926 | |||
7927 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7928 | |||
7929 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7930 | |||
7931 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7932 | |||
7933 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
7934 | |||
7935 | external_path_file=/etc/default/login | ||
7936 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
7937 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
7938 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
7939 | ;; | ||
7940 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
7941 | *-*-sysv4.2*) | ||
7942 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7943 | |||
7944 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7945 | |||
7946 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7947 | |||
7948 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7949 | |||
7950 | |||
7951 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7952 | |||
7953 | $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
7954 | |||
7955 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
7956 | ;; | ||
7957 | # UnixWare 7.x, OpenUNIX 8 | ||
7958 | *-*-sysv5*) | ||
7959 | CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf" | ||
7960 | |||
7961 | $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h | ||
7962 | |||
7963 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
7964 | |||
7965 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
7966 | |||
7967 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
7968 | |||
7969 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
7970 | |||
7971 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
7972 | |||
7973 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
7974 | |||
7975 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
7976 | case "$host" in | ||
7977 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
7978 | maildir=/var/spool/mail | ||
7979 | |||
7980 | $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h | ||
7981 | |||
7982 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
7983 | |||
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5 | ||
7985 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
7986 | if ${ac_cv_lib_prot_getluid+:} false; then : | ||
7987 | $as_echo_n "(cached) " >&6 | ||
7988 | else | ||
7989 | ac_check_lib_save_LIBS=$LIBS | ||
7990 | LIBS="-lprot $LIBS" | ||
7991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
7992 | /* end confdefs.h. */ | ||
7993 | |||
7994 | /* Override any GCC internal prototype to avoid an error. | ||
7995 | Use char because int might match the return type of a GCC | ||
7996 | builtin and then its argument prototype would still apply. */ | ||
7997 | #ifdef __cplusplus | ||
7998 | extern "C" | ||
7999 | #endif | ||
8000 | char getluid (); | ||
8001 | int | ||
8002 | main () | ||
8003 | { | ||
8004 | return getluid (); | ||
8005 | ; | ||
8006 | return 0; | ||
8007 | } | ||
8008 | _ACEOF | ||
8009 | if ac_fn_c_try_link "$LINENO"; then : | ||
8010 | ac_cv_lib_prot_getluid=yes | ||
8011 | else | ||
8012 | ac_cv_lib_prot_getluid=no | ||
8013 | fi | ||
8014 | rm -f core conftest.err conftest.$ac_objext \ | ||
8015 | conftest$ac_exeext conftest.$ac_ext | ||
8016 | LIBS=$ac_check_lib_save_LIBS | ||
8017 | fi | ||
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5 | ||
8019 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
8020 | if test "x$ac_cv_lib_prot_getluid" = xyes; then : | ||
8021 | LIBS="$LIBS -lprot" | ||
8022 | for ac_func in getluid setluid | ||
8023 | do : | ||
8024 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8025 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8026 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8027 | cat >>confdefs.h <<_ACEOF | ||
8028 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8029 | _ACEOF | ||
8030 | |||
8031 | fi | ||
8032 | done | ||
8033 | |||
8034 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8035 | |||
8036 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8037 | |||
8038 | |||
8039 | fi | ||
8040 | |||
8041 | ;; | ||
8042 | *) $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h | ||
8043 | |||
8044 | check_for_libcrypt_later=1 | ||
8045 | ;; | ||
8046 | esac | ||
8047 | ;; | ||
8048 | *-*-sysv*) | ||
8049 | ;; | ||
8050 | # SCO UNIX and OEM versions of SCO UNIX | ||
8051 | *-*-sco3.2v4*) | ||
8052 | as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5 | ||
8053 | ;; | ||
8054 | # SCO OpenServer 5.x | ||
8055 | *-*-sco3.2v5*) | ||
8056 | if test -z "$GCC"; then | ||
8057 | CFLAGS="$CFLAGS -belf" | ||
8058 | fi | ||
8059 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
8060 | no_dev_ptmx=1 | ||
8061 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8062 | |||
8063 | $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h | ||
8064 | |||
8065 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
8066 | |||
8067 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8068 | |||
8069 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8070 | |||
8071 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8072 | |||
8073 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8074 | |||
8075 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8076 | |||
8077 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8078 | |||
8079 | $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h | ||
8080 | |||
8081 | $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h | ||
8082 | |||
8083 | for ac_func in getluid setluid | ||
8084 | do : | ||
8085 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8086 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
8087 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
8088 | cat >>confdefs.h <<_ACEOF | ||
8089 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
8090 | _ACEOF | ||
8091 | |||
8092 | fi | ||
8093 | done | ||
8094 | |||
8095 | MANTYPE=man | ||
8096 | TEST_SHELL=$SHELL # let configure find us a capable shell | ||
8097 | SKIP_DISABLE_LASTLOG_DEFINE=yes | ||
8098 | ;; | ||
8099 | *-*-unicosmk*) | ||
8100 | |||
8101 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8102 | |||
8103 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8104 | |||
8105 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8106 | |||
8107 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8108 | |||
8109 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8110 | |||
8111 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8112 | |||
8113 | LDFLAGS="$LDFLAGS" | ||
8114 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8115 | MANTYPE=cat | ||
8116 | ;; | ||
8117 | *-*-unicosmp*) | ||
8118 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8119 | |||
8120 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8121 | |||
8122 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8123 | |||
8124 | $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h | ||
8125 | |||
8126 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8127 | |||
8128 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8129 | |||
8130 | LDFLAGS="$LDFLAGS" | ||
8131 | LIBS="$LIBS -lgen -lacid -ldb" | ||
8132 | MANTYPE=cat | ||
8133 | ;; | ||
8134 | *-*-unicos*) | ||
8135 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8136 | |||
8137 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8138 | |||
8139 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8140 | |||
8141 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8142 | |||
8143 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8144 | |||
8145 | $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h | ||
8146 | |||
8147 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
8148 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
8149 | MANTYPE=cat | ||
8150 | ;; | ||
8151 | *-dec-osf*) | ||
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5 | ||
8153 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
8154 | no_osfsia="" | ||
8155 | |||
8156 | # Check whether --with-osfsia was given. | ||
8157 | if test "${with_osfsia+set}" = set; then : | ||
8158 | withval=$with_osfsia; | ||
8159 | if test "x$withval" = "xno" ; then | ||
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | ||
8161 | $as_echo "disabled" >&6; } | ||
8162 | no_osfsia=1 | ||
8163 | fi | ||
8164 | |||
8165 | fi | ||
8166 | |||
8167 | if test -z "$no_osfsia" ; then | ||
8168 | if test -f /etc/sia/matrix.conf; then | ||
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8170 | $as_echo "yes" >&6; } | ||
8171 | |||
8172 | $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h | ||
8173 | |||
8174 | |||
8175 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
8176 | |||
8177 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8178 | |||
8179 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
8180 | SIA_MSG="yes" | ||
8181 | else | ||
8182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8183 | $as_echo "no" >&6; } | ||
8184 | |||
8185 | $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h | ||
8186 | |||
8187 | fi | ||
8188 | fi | ||
8189 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
8190 | |||
8191 | $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h | ||
8192 | |||
8193 | $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h | ||
8194 | |||
8195 | $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h | ||
8196 | |||
8197 | |||
8198 | $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h | ||
8199 | |||
8200 | ;; | ||
8201 | |||
8202 | *-*-nto-qnx*) | ||
8203 | $as_echo "#define USE_PIPES 1" >>confdefs.h | ||
8204 | |||
8205 | $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h | ||
8206 | |||
8207 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
8208 | |||
8209 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
8210 | |||
8211 | |||
8212 | $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h | ||
8213 | |||
8214 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
8215 | case "$host" in | ||
8216 | *-*-nto-qnx6*) | ||
8217 | $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h | ||
8218 | |||
8219 | ;; | ||
8220 | esac | ||
8221 | ;; | ||
8222 | |||
8223 | *-*-ultrix*) | ||
8224 | |||
8225 | $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h | ||
8226 | |||
8227 | |||
8228 | $as_echo "#define BROKEN_MMAP 1" >>confdefs.h | ||
8229 | |||
8230 | $as_echo "#define NEED_SETPGRP 1" >>confdefs.h | ||
8231 | |||
8232 | |||
8233 | $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h | ||
8234 | |||
8235 | ;; | ||
8236 | |||
8237 | *-*-lynxos) | ||
8238 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
8239 | |||
8240 | $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h | ||
8241 | |||
8242 | ;; | ||
8243 | esac | ||
8244 | |||
8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5 | ||
8246 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
8247 | if test "$cross_compiling" = yes; then : | ||
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
8249 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
8250 | |||
8251 | else | ||
8252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8253 | /* end confdefs.h. */ | ||
8254 | #include <stdio.h> | ||
8255 | int | ||
8256 | main () | ||
8257 | { | ||
8258 | exit(0); | ||
8259 | ; | ||
8260 | return 0; | ||
8261 | } | ||
8262 | _ACEOF | ||
8263 | if ac_fn_c_try_run "$LINENO"; then : | ||
8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8265 | $as_echo "yes" >&6; } | ||
8266 | else | ||
8267 | |||
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8269 | $as_echo "no" >&6; } | ||
8270 | as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5 | ||
8271 | |||
8272 | fi | ||
8273 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8274 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8275 | fi | ||
8276 | |||
8277 | |||
8278 | # Checks for libraries. | ||
8279 | ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match" | ||
8280 | if test "x$ac_cv_func_yp_match" = xyes; then : | ||
8281 | |||
8282 | else | ||
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5 | ||
8284 | $as_echo_n "checking for yp_match in -lnsl... " >&6; } | ||
8285 | if ${ac_cv_lib_nsl_yp_match+:} false; then : | ||
8286 | $as_echo_n "(cached) " >&6 | ||
8287 | else | ||
8288 | ac_check_lib_save_LIBS=$LIBS | ||
8289 | LIBS="-lnsl $LIBS" | ||
8290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8291 | /* end confdefs.h. */ | ||
8292 | |||
8293 | /* Override any GCC internal prototype to avoid an error. | ||
8294 | Use char because int might match the return type of a GCC | ||
8295 | builtin and then its argument prototype would still apply. */ | ||
8296 | #ifdef __cplusplus | ||
8297 | extern "C" | ||
8298 | #endif | ||
8299 | char yp_match (); | ||
8300 | int | ||
8301 | main () | ||
8302 | { | ||
8303 | return yp_match (); | ||
8304 | ; | ||
8305 | return 0; | ||
8306 | } | ||
8307 | _ACEOF | ||
8308 | if ac_fn_c_try_link "$LINENO"; then : | ||
8309 | ac_cv_lib_nsl_yp_match=yes | ||
8310 | else | ||
8311 | ac_cv_lib_nsl_yp_match=no | ||
8312 | fi | ||
8313 | rm -f core conftest.err conftest.$ac_objext \ | ||
8314 | conftest$ac_exeext conftest.$ac_ext | ||
8315 | LIBS=$ac_check_lib_save_LIBS | ||
8316 | fi | ||
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
8318 | $as_echo "$ac_cv_lib_nsl_yp_match" >&6; } | ||
8319 | if test "x$ac_cv_lib_nsl_yp_match" = xyes; then : | ||
8320 | cat >>confdefs.h <<_ACEOF | ||
8321 | #define HAVE_LIBNSL 1 | ||
8322 | _ACEOF | ||
8323 | |||
8324 | LIBS="-lnsl $LIBS" | ||
8325 | |||
8326 | fi | ||
8327 | |||
8328 | fi | ||
8329 | |||
8330 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" | ||
8331 | if test "x$ac_cv_func_setsockopt" = xyes; then : | ||
8332 | |||
8333 | else | ||
8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 | ||
8335 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
8336 | if ${ac_cv_lib_socket_setsockopt+:} false; then : | ||
8337 | $as_echo_n "(cached) " >&6 | ||
8338 | else | ||
8339 | ac_check_lib_save_LIBS=$LIBS | ||
8340 | LIBS="-lsocket $LIBS" | ||
8341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8342 | /* end confdefs.h. */ | ||
8343 | |||
8344 | /* Override any GCC internal prototype to avoid an error. | ||
8345 | Use char because int might match the return type of a GCC | ||
8346 | builtin and then its argument prototype would still apply. */ | ||
8347 | #ifdef __cplusplus | ||
8348 | extern "C" | ||
8349 | #endif | ||
8350 | char setsockopt (); | ||
8351 | int | ||
8352 | main () | ||
8353 | { | ||
8354 | return setsockopt (); | ||
8355 | ; | ||
8356 | return 0; | ||
8357 | } | ||
8358 | _ACEOF | ||
8359 | if ac_fn_c_try_link "$LINENO"; then : | ||
8360 | ac_cv_lib_socket_setsockopt=yes | ||
8361 | else | ||
8362 | ac_cv_lib_socket_setsockopt=no | ||
8363 | fi | ||
8364 | rm -f core conftest.err conftest.$ac_objext \ | ||
8365 | conftest$ac_exeext conftest.$ac_ext | ||
8366 | LIBS=$ac_check_lib_save_LIBS | ||
8367 | fi | ||
8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
8369 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
8370 | if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : | ||
8371 | cat >>confdefs.h <<_ACEOF | ||
8372 | #define HAVE_LIBSOCKET 1 | ||
8373 | _ACEOF | ||
8374 | |||
8375 | LIBS="-lsocket $LIBS" | ||
8376 | |||
8377 | fi | ||
8378 | |||
8379 | fi | ||
8380 | |||
8381 | |||
8382 | for ac_func in dirname | ||
8383 | do : | ||
8384 | ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname" | ||
8385 | if test "x$ac_cv_func_dirname" = xyes; then : | ||
8386 | cat >>confdefs.h <<_ACEOF | ||
8387 | #define HAVE_DIRNAME 1 | ||
8388 | _ACEOF | ||
8389 | for ac_header in libgen.h | ||
8390 | do : | ||
8391 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8392 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8393 | cat >>confdefs.h <<_ACEOF | ||
8394 | #define HAVE_LIBGEN_H 1 | ||
8395 | _ACEOF | ||
8396 | |||
8397 | fi | ||
8398 | |||
8399 | done | ||
8400 | |||
8401 | else | ||
8402 | |||
8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5 | ||
8404 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
8405 | if ${ac_cv_lib_gen_dirname+:} false; then : | ||
8406 | $as_echo_n "(cached) " >&6 | ||
8407 | else | ||
8408 | ac_check_lib_save_LIBS=$LIBS | ||
8409 | LIBS="-lgen $LIBS" | ||
8410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8411 | /* end confdefs.h. */ | ||
8412 | |||
8413 | /* Override any GCC internal prototype to avoid an error. | ||
8414 | Use char because int might match the return type of a GCC | ||
8415 | builtin and then its argument prototype would still apply. */ | ||
8416 | #ifdef __cplusplus | ||
8417 | extern "C" | ||
8418 | #endif | ||
8419 | char dirname (); | ||
8420 | int | ||
8421 | main () | ||
8422 | { | ||
8423 | return dirname (); | ||
8424 | ; | ||
8425 | return 0; | ||
8426 | } | ||
8427 | _ACEOF | ||
8428 | if ac_fn_c_try_link "$LINENO"; then : | ||
8429 | ac_cv_lib_gen_dirname=yes | ||
8430 | else | ||
8431 | ac_cv_lib_gen_dirname=no | ||
8432 | fi | ||
8433 | rm -f core conftest.err conftest.$ac_objext \ | ||
8434 | conftest$ac_exeext conftest.$ac_ext | ||
8435 | LIBS=$ac_check_lib_save_LIBS | ||
8436 | fi | ||
8437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5 | ||
8438 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
8439 | if test "x$ac_cv_lib_gen_dirname" = xyes; then : | ||
8440 | |||
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5 | ||
8442 | $as_echo_n "checking for broken dirname... " >&6; } | ||
8443 | if ${ac_cv_have_broken_dirname+:} false; then : | ||
8444 | $as_echo_n "(cached) " >&6 | ||
8445 | else | ||
8446 | |||
8447 | save_LIBS="$LIBS" | ||
8448 | LIBS="$LIBS -lgen" | ||
8449 | if test "$cross_compiling" = yes; then : | ||
8450 | ac_cv_have_broken_dirname="no" | ||
8451 | else | ||
8452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8453 | /* end confdefs.h. */ | ||
8454 | |||
8455 | #include <libgen.h> | ||
8456 | #include <string.h> | ||
8457 | |||
8458 | int main(int argc, char **argv) { | ||
8459 | char *s, buf[32]; | ||
8460 | |||
8461 | strncpy(buf,"/etc", 32); | ||
8462 | s = dirname(buf); | ||
8463 | if (!s || strncmp(s, "/", 32) != 0) { | ||
8464 | exit(1); | ||
8465 | } else { | ||
8466 | exit(0); | ||
8467 | } | ||
8468 | } | ||
8469 | |||
8470 | _ACEOF | ||
8471 | if ac_fn_c_try_run "$LINENO"; then : | ||
8472 | ac_cv_have_broken_dirname="no" | ||
8473 | else | ||
8474 | ac_cv_have_broken_dirname="yes" | ||
8475 | fi | ||
8476 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8477 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8478 | fi | ||
8479 | |||
8480 | LIBS="$save_LIBS" | ||
8481 | |||
8482 | fi | ||
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5 | ||
8484 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
8485 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
8486 | LIBS="$LIBS -lgen" | ||
8487 | $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h | ||
8488 | |||
8489 | for ac_header in libgen.h | ||
8490 | do : | ||
8491 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" | ||
8492 | if test "x$ac_cv_header_libgen_h" = xyes; then : | ||
8493 | cat >>confdefs.h <<_ACEOF | ||
8494 | #define HAVE_LIBGEN_H 1 | ||
8495 | _ACEOF | ||
8496 | |||
8497 | fi | ||
8498 | |||
8499 | done | ||
8500 | |||
8501 | fi | ||
8502 | |||
8503 | fi | ||
8504 | |||
8505 | |||
8506 | fi | ||
8507 | done | ||
8508 | |||
8509 | |||
8510 | ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" | ||
8511 | if test "x$ac_cv_func_getspnam" = xyes; then : | ||
8512 | |||
8513 | else | ||
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5 | ||
8515 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
8516 | if ${ac_cv_lib_gen_getspnam+:} false; then : | ||
8517 | $as_echo_n "(cached) " >&6 | ||
8518 | else | ||
8519 | ac_check_lib_save_LIBS=$LIBS | ||
8520 | LIBS="-lgen $LIBS" | ||
8521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8522 | /* end confdefs.h. */ | ||
8523 | |||
8524 | /* Override any GCC internal prototype to avoid an error. | ||
8525 | Use char because int might match the return type of a GCC | ||
8526 | builtin and then its argument prototype would still apply. */ | ||
8527 | #ifdef __cplusplus | ||
8528 | extern "C" | ||
8529 | #endif | ||
8530 | char getspnam (); | ||
8531 | int | ||
8532 | main () | ||
8533 | { | ||
8534 | return getspnam (); | ||
8535 | ; | ||
8536 | return 0; | ||
8537 | } | ||
8538 | _ACEOF | ||
8539 | if ac_fn_c_try_link "$LINENO"; then : | ||
8540 | ac_cv_lib_gen_getspnam=yes | ||
8541 | else | ||
8542 | ac_cv_lib_gen_getspnam=no | ||
8543 | fi | ||
8544 | rm -f core conftest.err conftest.$ac_objext \ | ||
8545 | conftest$ac_exeext conftest.$ac_ext | ||
8546 | LIBS=$ac_check_lib_save_LIBS | ||
8547 | fi | ||
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5 | ||
8549 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
8550 | if test "x$ac_cv_lib_gen_getspnam" = xyes; then : | ||
8551 | LIBS="$LIBS -lgen" | ||
8552 | fi | ||
8553 | |||
8554 | fi | ||
8555 | |||
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5 | ||
8557 | $as_echo_n "checking for library containing basename... " >&6; } | ||
8558 | if ${ac_cv_search_basename+:} false; then : | ||
8559 | $as_echo_n "(cached) " >&6 | ||
8560 | else | ||
8561 | ac_func_search_save_LIBS=$LIBS | ||
8562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8563 | /* end confdefs.h. */ | ||
8564 | |||
8565 | /* Override any GCC internal prototype to avoid an error. | ||
8566 | Use char because int might match the return type of a GCC | ||
8567 | builtin and then its argument prototype would still apply. */ | ||
8568 | #ifdef __cplusplus | ||
8569 | extern "C" | ||
8570 | #endif | ||
8571 | char basename (); | ||
8572 | int | ||
8573 | main () | ||
8574 | { | ||
8575 | return basename (); | ||
8576 | ; | ||
8577 | return 0; | ||
8578 | } | ||
8579 | _ACEOF | ||
8580 | for ac_lib in '' gen; do | ||
8581 | if test -z "$ac_lib"; then | ||
8582 | ac_res="none required" | ||
8583 | else | ||
8584 | ac_res=-l$ac_lib | ||
8585 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8586 | fi | ||
8587 | if ac_fn_c_try_link "$LINENO"; then : | ||
8588 | ac_cv_search_basename=$ac_res | ||
8589 | fi | ||
8590 | rm -f core conftest.err conftest.$ac_objext \ | ||
8591 | conftest$ac_exeext | ||
8592 | if ${ac_cv_search_basename+:} false; then : | ||
8593 | break | ||
8594 | fi | ||
8595 | done | ||
8596 | if ${ac_cv_search_basename+:} false; then : | ||
8597 | |||
8598 | else | ||
8599 | ac_cv_search_basename=no | ||
8600 | fi | ||
8601 | rm conftest.$ac_ext | ||
8602 | LIBS=$ac_func_search_save_LIBS | ||
8603 | fi | ||
8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5 | ||
8605 | $as_echo "$ac_cv_search_basename" >&6; } | ||
8606 | ac_res=$ac_cv_search_basename | ||
8607 | if test "$ac_res" != no; then : | ||
8608 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8609 | |||
8610 | $as_echo "#define HAVE_BASENAME 1" >>confdefs.h | ||
8611 | |||
8612 | fi | ||
8613 | |||
8614 | |||
8615 | |||
8616 | # Check whether --with-zlib was given. | ||
8617 | if test "${with_zlib+set}" = set; then : | ||
8618 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
8619 | as_fn_error $? "*** zlib is required ***" "$LINENO" 5 | ||
8620 | elif test "x$withval" != "xyes"; then | ||
8621 | if test -d "$withval/lib"; then | ||
8622 | if test -n "${need_dash_r}"; then | ||
8623 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
8624 | else | ||
8625 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
8626 | fi | ||
8627 | else | ||
8628 | if test -n "${need_dash_r}"; then | ||
8629 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
8630 | else | ||
8631 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
8632 | fi | ||
8633 | fi | ||
8634 | if test -d "$withval/include"; then | ||
8635 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
8636 | else | ||
8637 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
8638 | fi | ||
8639 | fi | ||
8640 | |||
8641 | fi | ||
8642 | |||
8643 | |||
8644 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
8645 | if test "x$ac_cv_header_zlib_h" = xyes; then : | ||
8646 | |||
8647 | else | ||
8648 | as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5 | ||
8649 | fi | ||
8650 | |||
8651 | |||
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | ||
8653 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
8654 | if ${ac_cv_lib_z_deflate+:} false; then : | ||
8655 | $as_echo_n "(cached) " >&6 | ||
8656 | else | ||
8657 | ac_check_lib_save_LIBS=$LIBS | ||
8658 | LIBS="-lz $LIBS" | ||
8659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8660 | /* end confdefs.h. */ | ||
8661 | |||
8662 | /* Override any GCC internal prototype to avoid an error. | ||
8663 | Use char because int might match the return type of a GCC | ||
8664 | builtin and then its argument prototype would still apply. */ | ||
8665 | #ifdef __cplusplus | ||
8666 | extern "C" | ||
8667 | #endif | ||
8668 | char deflate (); | ||
8669 | int | ||
8670 | main () | ||
8671 | { | ||
8672 | return deflate (); | ||
8673 | ; | ||
8674 | return 0; | ||
8675 | } | ||
8676 | _ACEOF | ||
8677 | if ac_fn_c_try_link "$LINENO"; then : | ||
8678 | ac_cv_lib_z_deflate=yes | ||
8679 | else | ||
8680 | ac_cv_lib_z_deflate=no | ||
8681 | fi | ||
8682 | rm -f core conftest.err conftest.$ac_objext \ | ||
8683 | conftest$ac_exeext conftest.$ac_ext | ||
8684 | LIBS=$ac_check_lib_save_LIBS | ||
8685 | fi | ||
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 | ||
8687 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
8688 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | ||
8689 | cat >>confdefs.h <<_ACEOF | ||
8690 | #define HAVE_LIBZ 1 | ||
8691 | _ACEOF | ||
8692 | |||
8693 | LIBS="-lz $LIBS" | ||
8694 | |||
8695 | else | ||
8696 | |||
8697 | saved_CPPFLAGS="$CPPFLAGS" | ||
8698 | saved_LDFLAGS="$LDFLAGS" | ||
8699 | save_LIBS="$LIBS" | ||
8700 | if test -n "${need_dash_r}"; then | ||
8701 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
8702 | else | ||
8703 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
8704 | fi | ||
8705 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
8706 | LIBS="$LIBS -lz" | ||
8707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8708 | /* end confdefs.h. */ | ||
8709 | |||
8710 | /* Override any GCC internal prototype to avoid an error. | ||
8711 | Use char because int might match the return type of a GCC | ||
8712 | builtin and then its argument prototype would still apply. */ | ||
8713 | #ifdef __cplusplus | ||
8714 | extern "C" | ||
8715 | #endif | ||
8716 | char deflate (); | ||
8717 | int | ||
8718 | main () | ||
8719 | { | ||
8720 | return deflate (); | ||
8721 | ; | ||
8722 | return 0; | ||
8723 | } | ||
8724 | _ACEOF | ||
8725 | if ac_fn_c_try_link "$LINENO"; then : | ||
8726 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | ||
8727 | |||
8728 | else | ||
8729 | |||
8730 | as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5 | ||
8731 | |||
8732 | |||
8733 | fi | ||
8734 | rm -f core conftest.err conftest.$ac_objext \ | ||
8735 | conftest$ac_exeext conftest.$ac_ext | ||
8736 | |||
8737 | |||
8738 | fi | ||
8739 | |||
8740 | |||
8741 | |||
8742 | # Check whether --with-zlib-version-check was given. | ||
8743 | if test "${with_zlib_version_check+set}" = set; then : | ||
8744 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
8745 | zlib_check_nonfatal=1 | ||
8746 | fi | ||
8747 | |||
8748 | |||
8749 | fi | ||
8750 | |||
8751 | |||
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5 | ||
8753 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
8754 | if test "$cross_compiling" = yes; then : | ||
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5 | ||
8756 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
8757 | |||
8758 | else | ||
8759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8760 | /* end confdefs.h. */ | ||
8761 | |||
8762 | #include <stdio.h> | ||
8763 | #include <stdlib.h> | ||
8764 | #include <zlib.h> | ||
8765 | |||
8766 | int | ||
8767 | main () | ||
8768 | { | ||
8769 | |||
8770 | int a=0, b=0, c=0, d=0, n, v; | ||
8771 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
8772 | if (n != 3 && n != 4) | ||
8773 | exit(1); | ||
8774 | v = a*1000000 + b*10000 + c*100 + d; | ||
8775 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
8776 | |||
8777 | /* 1.1.4 is OK */ | ||
8778 | if (a == 1 && b == 1 && c >= 4) | ||
8779 | exit(0); | ||
8780 | |||
8781 | /* 1.2.3 and up are OK */ | ||
8782 | if (v >= 1020300) | ||
8783 | exit(0); | ||
8784 | |||
8785 | exit(2); | ||
8786 | |||
8787 | ; | ||
8788 | return 0; | ||
8789 | } | ||
8790 | _ACEOF | ||
8791 | if ac_fn_c_try_run "$LINENO"; then : | ||
8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
8793 | $as_echo "no" >&6; } | ||
8794 | else | ||
8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
8796 | $as_echo "yes" >&6; } | ||
8797 | if test -z "$zlib_check_nonfatal" ; then | ||
8798 | as_fn_error $? "*** zlib too old - check config.log *** | ||
8799 | Your reported zlib version has known security problems. It's possible your | ||
8800 | vendor has fixed these problems without changing the version number. If you | ||
8801 | are sure this is the case, you can disable the check by running | ||
8802 | \"./configure --without-zlib-version-check\". | ||
8803 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
8804 | See http://www.gzip.org/zlib/ for details." "$LINENO" 5 | ||
8805 | else | ||
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5 | ||
8807 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
8808 | fi | ||
8809 | |||
8810 | fi | ||
8811 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
8812 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
8813 | fi | ||
8814 | |||
8815 | |||
8816 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" | ||
8817 | if test "x$ac_cv_func_strcasecmp" = xyes; then : | ||
8818 | |||
8819 | else | ||
8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5 | ||
8821 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
8822 | if ${ac_cv_lib_resolv_strcasecmp+:} false; then : | ||
8823 | $as_echo_n "(cached) " >&6 | ||
8824 | else | ||
8825 | ac_check_lib_save_LIBS=$LIBS | ||
8826 | LIBS="-lresolv $LIBS" | ||
8827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8828 | /* end confdefs.h. */ | ||
8829 | |||
8830 | /* Override any GCC internal prototype to avoid an error. | ||
8831 | Use char because int might match the return type of a GCC | ||
8832 | builtin and then its argument prototype would still apply. */ | ||
8833 | #ifdef __cplusplus | ||
8834 | extern "C" | ||
8835 | #endif | ||
8836 | char strcasecmp (); | ||
8837 | int | ||
8838 | main () | ||
8839 | { | ||
8840 | return strcasecmp (); | ||
8841 | ; | ||
8842 | return 0; | ||
8843 | } | ||
8844 | _ACEOF | ||
8845 | if ac_fn_c_try_link "$LINENO"; then : | ||
8846 | ac_cv_lib_resolv_strcasecmp=yes | ||
8847 | else | ||
8848 | ac_cv_lib_resolv_strcasecmp=no | ||
8849 | fi | ||
8850 | rm -f core conftest.err conftest.$ac_objext \ | ||
8851 | conftest$ac_exeext conftest.$ac_ext | ||
8852 | LIBS=$ac_check_lib_save_LIBS | ||
8853 | fi | ||
8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
8855 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
8856 | if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then : | ||
8857 | LIBS="$LIBS -lresolv" | ||
8858 | fi | ||
8859 | |||
8860 | |||
8861 | fi | ||
8862 | |||
8863 | for ac_func in utimes | ||
8864 | do : | ||
8865 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | ||
8866 | if test "x$ac_cv_func_utimes" = xyes; then : | ||
8867 | cat >>confdefs.h <<_ACEOF | ||
8868 | #define HAVE_UTIMES 1 | ||
8869 | _ACEOF | ||
8870 | |||
8871 | else | ||
8872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5 | ||
8873 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
8874 | if ${ac_cv_lib_c89_utimes+:} false; then : | ||
8875 | $as_echo_n "(cached) " >&6 | ||
8876 | else | ||
8877 | ac_check_lib_save_LIBS=$LIBS | ||
8878 | LIBS="-lc89 $LIBS" | ||
8879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8880 | /* end confdefs.h. */ | ||
8881 | |||
8882 | /* Override any GCC internal prototype to avoid an error. | ||
8883 | Use char because int might match the return type of a GCC | ||
8884 | builtin and then its argument prototype would still apply. */ | ||
8885 | #ifdef __cplusplus | ||
8886 | extern "C" | ||
8887 | #endif | ||
8888 | char utimes (); | ||
8889 | int | ||
8890 | main () | ||
8891 | { | ||
8892 | return utimes (); | ||
8893 | ; | ||
8894 | return 0; | ||
8895 | } | ||
8896 | _ACEOF | ||
8897 | if ac_fn_c_try_link "$LINENO"; then : | ||
8898 | ac_cv_lib_c89_utimes=yes | ||
8899 | else | ||
8900 | ac_cv_lib_c89_utimes=no | ||
8901 | fi | ||
8902 | rm -f core conftest.err conftest.$ac_objext \ | ||
8903 | conftest$ac_exeext conftest.$ac_ext | ||
8904 | LIBS=$ac_check_lib_save_LIBS | ||
8905 | fi | ||
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5 | ||
8907 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
8908 | if test "x$ac_cv_lib_c89_utimes" = xyes; then : | ||
8909 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | ||
8910 | |||
8911 | LIBS="$LIBS -lc89" | ||
8912 | fi | ||
8913 | |||
8914 | |||
8915 | fi | ||
8916 | done | ||
8917 | |||
8918 | |||
8919 | for ac_header in bsd/libutil.h libutil.h | ||
8920 | do : | ||
8921 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8922 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
8923 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
8924 | cat >>confdefs.h <<_ACEOF | ||
8925 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8926 | _ACEOF | ||
8927 | |||
8928 | fi | ||
8929 | |||
8930 | done | ||
8931 | |||
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmt_scaled" >&5 | ||
8933 | $as_echo_n "checking for library containing fmt_scaled... " >&6; } | ||
8934 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8935 | $as_echo_n "(cached) " >&6 | ||
8936 | else | ||
8937 | ac_func_search_save_LIBS=$LIBS | ||
8938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8939 | /* end confdefs.h. */ | ||
8940 | |||
8941 | /* Override any GCC internal prototype to avoid an error. | ||
8942 | Use char because int might match the return type of a GCC | ||
8943 | builtin and then its argument prototype would still apply. */ | ||
8944 | #ifdef __cplusplus | ||
8945 | extern "C" | ||
8946 | #endif | ||
8947 | char fmt_scaled (); | ||
8948 | int | ||
8949 | main () | ||
8950 | { | ||
8951 | return fmt_scaled (); | ||
8952 | ; | ||
8953 | return 0; | ||
8954 | } | ||
8955 | _ACEOF | ||
8956 | for ac_lib in '' util bsd; do | ||
8957 | if test -z "$ac_lib"; then | ||
8958 | ac_res="none required" | ||
8959 | else | ||
8960 | ac_res=-l$ac_lib | ||
8961 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
8962 | fi | ||
8963 | if ac_fn_c_try_link "$LINENO"; then : | ||
8964 | ac_cv_search_fmt_scaled=$ac_res | ||
8965 | fi | ||
8966 | rm -f core conftest.err conftest.$ac_objext \ | ||
8967 | conftest$ac_exeext | ||
8968 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8969 | break | ||
8970 | fi | ||
8971 | done | ||
8972 | if ${ac_cv_search_fmt_scaled+:} false; then : | ||
8973 | |||
8974 | else | ||
8975 | ac_cv_search_fmt_scaled=no | ||
8976 | fi | ||
8977 | rm conftest.$ac_ext | ||
8978 | LIBS=$ac_func_search_save_LIBS | ||
8979 | fi | ||
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmt_scaled" >&5 | ||
8981 | $as_echo "$ac_cv_search_fmt_scaled" >&6; } | ||
8982 | ac_res=$ac_cv_search_fmt_scaled | ||
8983 | if test "$ac_res" != no; then : | ||
8984 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
8985 | |||
8986 | fi | ||
8987 | |||
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing scan_scaled" >&5 | ||
8989 | $as_echo_n "checking for library containing scan_scaled... " >&6; } | ||
8990 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
8991 | $as_echo_n "(cached) " >&6 | ||
8992 | else | ||
8993 | ac_func_search_save_LIBS=$LIBS | ||
8994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
8995 | /* end confdefs.h. */ | ||
8996 | |||
8997 | /* Override any GCC internal prototype to avoid an error. | ||
8998 | Use char because int might match the return type of a GCC | ||
8999 | builtin and then its argument prototype would still apply. */ | ||
9000 | #ifdef __cplusplus | ||
9001 | extern "C" | ||
9002 | #endif | ||
9003 | char scan_scaled (); | ||
9004 | int | ||
9005 | main () | ||
9006 | { | ||
9007 | return scan_scaled (); | ||
9008 | ; | ||
9009 | return 0; | ||
9010 | } | ||
9011 | _ACEOF | ||
9012 | for ac_lib in '' util bsd; do | ||
9013 | if test -z "$ac_lib"; then | ||
9014 | ac_res="none required" | ||
9015 | else | ||
9016 | ac_res=-l$ac_lib | ||
9017 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9018 | fi | ||
9019 | if ac_fn_c_try_link "$LINENO"; then : | ||
9020 | ac_cv_search_scan_scaled=$ac_res | ||
9021 | fi | ||
9022 | rm -f core conftest.err conftest.$ac_objext \ | ||
9023 | conftest$ac_exeext | ||
9024 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9025 | break | ||
9026 | fi | ||
9027 | done | ||
9028 | if ${ac_cv_search_scan_scaled+:} false; then : | ||
9029 | |||
9030 | else | ||
9031 | ac_cv_search_scan_scaled=no | ||
9032 | fi | ||
9033 | rm conftest.$ac_ext | ||
9034 | LIBS=$ac_func_search_save_LIBS | ||
9035 | fi | ||
9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_scan_scaled" >&5 | ||
9037 | $as_echo "$ac_cv_search_scan_scaled" >&6; } | ||
9038 | ac_res=$ac_cv_search_scan_scaled | ||
9039 | if test "$ac_res" != no; then : | ||
9040 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9041 | |||
9042 | fi | ||
9043 | |||
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5 | ||
9045 | $as_echo_n "checking for library containing login... " >&6; } | ||
9046 | if ${ac_cv_search_login+:} false; then : | ||
9047 | $as_echo_n "(cached) " >&6 | ||
9048 | else | ||
9049 | ac_func_search_save_LIBS=$LIBS | ||
9050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9051 | /* end confdefs.h. */ | ||
9052 | |||
9053 | /* Override any GCC internal prototype to avoid an error. | ||
9054 | Use char because int might match the return type of a GCC | ||
9055 | builtin and then its argument prototype would still apply. */ | ||
9056 | #ifdef __cplusplus | ||
9057 | extern "C" | ||
9058 | #endif | ||
9059 | char login (); | ||
9060 | int | ||
9061 | main () | ||
9062 | { | ||
9063 | return login (); | ||
9064 | ; | ||
9065 | return 0; | ||
9066 | } | ||
9067 | _ACEOF | ||
9068 | for ac_lib in '' util bsd; do | ||
9069 | if test -z "$ac_lib"; then | ||
9070 | ac_res="none required" | ||
9071 | else | ||
9072 | ac_res=-l$ac_lib | ||
9073 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9074 | fi | ||
9075 | if ac_fn_c_try_link "$LINENO"; then : | ||
9076 | ac_cv_search_login=$ac_res | ||
9077 | fi | ||
9078 | rm -f core conftest.err conftest.$ac_objext \ | ||
9079 | conftest$ac_exeext | ||
9080 | if ${ac_cv_search_login+:} false; then : | ||
9081 | break | ||
9082 | fi | ||
9083 | done | ||
9084 | if ${ac_cv_search_login+:} false; then : | ||
9085 | |||
9086 | else | ||
9087 | ac_cv_search_login=no | ||
9088 | fi | ||
9089 | rm conftest.$ac_ext | ||
9090 | LIBS=$ac_func_search_save_LIBS | ||
9091 | fi | ||
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5 | ||
9093 | $as_echo "$ac_cv_search_login" >&6; } | ||
9094 | ac_res=$ac_cv_search_login | ||
9095 | if test "$ac_res" != no; then : | ||
9096 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9097 | |||
9098 | fi | ||
9099 | |||
9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logout" >&5 | ||
9101 | $as_echo_n "checking for library containing logout... " >&6; } | ||
9102 | if ${ac_cv_search_logout+:} false; then : | ||
9103 | $as_echo_n "(cached) " >&6 | ||
9104 | else | ||
9105 | ac_func_search_save_LIBS=$LIBS | ||
9106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9107 | /* end confdefs.h. */ | ||
9108 | |||
9109 | /* Override any GCC internal prototype to avoid an error. | ||
9110 | Use char because int might match the return type of a GCC | ||
9111 | builtin and then its argument prototype would still apply. */ | ||
9112 | #ifdef __cplusplus | ||
9113 | extern "C" | ||
9114 | #endif | ||
9115 | char logout (); | ||
9116 | int | ||
9117 | main () | ||
9118 | { | ||
9119 | return logout (); | ||
9120 | ; | ||
9121 | return 0; | ||
9122 | } | ||
9123 | _ACEOF | ||
9124 | for ac_lib in '' util bsd; do | ||
9125 | if test -z "$ac_lib"; then | ||
9126 | ac_res="none required" | ||
9127 | else | ||
9128 | ac_res=-l$ac_lib | ||
9129 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9130 | fi | ||
9131 | if ac_fn_c_try_link "$LINENO"; then : | ||
9132 | ac_cv_search_logout=$ac_res | ||
9133 | fi | ||
9134 | rm -f core conftest.err conftest.$ac_objext \ | ||
9135 | conftest$ac_exeext | ||
9136 | if ${ac_cv_search_logout+:} false; then : | ||
9137 | break | ||
9138 | fi | ||
9139 | done | ||
9140 | if ${ac_cv_search_logout+:} false; then : | ||
9141 | |||
9142 | else | ||
9143 | ac_cv_search_logout=no | ||
9144 | fi | ||
9145 | rm conftest.$ac_ext | ||
9146 | LIBS=$ac_func_search_save_LIBS | ||
9147 | fi | ||
9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logout" >&5 | ||
9149 | $as_echo "$ac_cv_search_logout" >&6; } | ||
9150 | ac_res=$ac_cv_search_logout | ||
9151 | if test "$ac_res" != no; then : | ||
9152 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9153 | |||
9154 | fi | ||
9155 | |||
9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing logwtmp" >&5 | ||
9157 | $as_echo_n "checking for library containing logwtmp... " >&6; } | ||
9158 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9159 | $as_echo_n "(cached) " >&6 | ||
9160 | else | ||
9161 | ac_func_search_save_LIBS=$LIBS | ||
9162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9163 | /* end confdefs.h. */ | ||
9164 | |||
9165 | /* Override any GCC internal prototype to avoid an error. | ||
9166 | Use char because int might match the return type of a GCC | ||
9167 | builtin and then its argument prototype would still apply. */ | ||
9168 | #ifdef __cplusplus | ||
9169 | extern "C" | ||
9170 | #endif | ||
9171 | char logwtmp (); | ||
9172 | int | ||
9173 | main () | ||
9174 | { | ||
9175 | return logwtmp (); | ||
9176 | ; | ||
9177 | return 0; | ||
9178 | } | ||
9179 | _ACEOF | ||
9180 | for ac_lib in '' util bsd; do | ||
9181 | if test -z "$ac_lib"; then | ||
9182 | ac_res="none required" | ||
9183 | else | ||
9184 | ac_res=-l$ac_lib | ||
9185 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9186 | fi | ||
9187 | if ac_fn_c_try_link "$LINENO"; then : | ||
9188 | ac_cv_search_logwtmp=$ac_res | ||
9189 | fi | ||
9190 | rm -f core conftest.err conftest.$ac_objext \ | ||
9191 | conftest$ac_exeext | ||
9192 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9193 | break | ||
9194 | fi | ||
9195 | done | ||
9196 | if ${ac_cv_search_logwtmp+:} false; then : | ||
9197 | |||
9198 | else | ||
9199 | ac_cv_search_logwtmp=no | ||
9200 | fi | ||
9201 | rm conftest.$ac_ext | ||
9202 | LIBS=$ac_func_search_save_LIBS | ||
9203 | fi | ||
9204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_logwtmp" >&5 | ||
9205 | $as_echo "$ac_cv_search_logwtmp" >&6; } | ||
9206 | ac_res=$ac_cv_search_logwtmp | ||
9207 | if test "$ac_res" != no; then : | ||
9208 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9209 | |||
9210 | fi | ||
9211 | |||
9212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 | ||
9213 | $as_echo_n "checking for library containing openpty... " >&6; } | ||
9214 | if ${ac_cv_search_openpty+:} false; then : | ||
9215 | $as_echo_n "(cached) " >&6 | ||
9216 | else | ||
9217 | ac_func_search_save_LIBS=$LIBS | ||
9218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9219 | /* end confdefs.h. */ | ||
9220 | |||
9221 | /* Override any GCC internal prototype to avoid an error. | ||
9222 | Use char because int might match the return type of a GCC | ||
9223 | builtin and then its argument prototype would still apply. */ | ||
9224 | #ifdef __cplusplus | ||
9225 | extern "C" | ||
9226 | #endif | ||
9227 | char openpty (); | ||
9228 | int | ||
9229 | main () | ||
9230 | { | ||
9231 | return openpty (); | ||
9232 | ; | ||
9233 | return 0; | ||
9234 | } | ||
9235 | _ACEOF | ||
9236 | for ac_lib in '' util bsd; do | ||
9237 | if test -z "$ac_lib"; then | ||
9238 | ac_res="none required" | ||
9239 | else | ||
9240 | ac_res=-l$ac_lib | ||
9241 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9242 | fi | ||
9243 | if ac_fn_c_try_link "$LINENO"; then : | ||
9244 | ac_cv_search_openpty=$ac_res | ||
9245 | fi | ||
9246 | rm -f core conftest.err conftest.$ac_objext \ | ||
9247 | conftest$ac_exeext | ||
9248 | if ${ac_cv_search_openpty+:} false; then : | ||
9249 | break | ||
9250 | fi | ||
9251 | done | ||
9252 | if ${ac_cv_search_openpty+:} false; then : | ||
9253 | |||
9254 | else | ||
9255 | ac_cv_search_openpty=no | ||
9256 | fi | ||
9257 | rm conftest.$ac_ext | ||
9258 | LIBS=$ac_func_search_save_LIBS | ||
9259 | fi | ||
9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 | ||
9261 | $as_echo "$ac_cv_search_openpty" >&6; } | ||
9262 | ac_res=$ac_cv_search_openpty | ||
9263 | if test "$ac_res" != no; then : | ||
9264 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9265 | |||
9266 | fi | ||
9267 | |||
9268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing updwtmp" >&5 | ||
9269 | $as_echo_n "checking for library containing updwtmp... " >&6; } | ||
9270 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9271 | $as_echo_n "(cached) " >&6 | ||
9272 | else | ||
9273 | ac_func_search_save_LIBS=$LIBS | ||
9274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9275 | /* end confdefs.h. */ | ||
9276 | |||
9277 | /* Override any GCC internal prototype to avoid an error. | ||
9278 | Use char because int might match the return type of a GCC | ||
9279 | builtin and then its argument prototype would still apply. */ | ||
9280 | #ifdef __cplusplus | ||
9281 | extern "C" | ||
9282 | #endif | ||
9283 | char updwtmp (); | ||
9284 | int | ||
9285 | main () | ||
9286 | { | ||
9287 | return updwtmp (); | ||
9288 | ; | ||
9289 | return 0; | ||
9290 | } | ||
9291 | _ACEOF | ||
9292 | for ac_lib in '' util bsd; do | ||
9293 | if test -z "$ac_lib"; then | ||
9294 | ac_res="none required" | ||
9295 | else | ||
9296 | ac_res=-l$ac_lib | ||
9297 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9298 | fi | ||
9299 | if ac_fn_c_try_link "$LINENO"; then : | ||
9300 | ac_cv_search_updwtmp=$ac_res | ||
9301 | fi | ||
9302 | rm -f core conftest.err conftest.$ac_objext \ | ||
9303 | conftest$ac_exeext | ||
9304 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9305 | break | ||
9306 | fi | ||
9307 | done | ||
9308 | if ${ac_cv_search_updwtmp+:} false; then : | ||
9309 | |||
9310 | else | ||
9311 | ac_cv_search_updwtmp=no | ||
9312 | fi | ||
9313 | rm conftest.$ac_ext | ||
9314 | LIBS=$ac_func_search_save_LIBS | ||
9315 | fi | ||
9316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_updwtmp" >&5 | ||
9317 | $as_echo "$ac_cv_search_updwtmp" >&6; } | ||
9318 | ac_res=$ac_cv_search_updwtmp | ||
9319 | if test "$ac_res" != no; then : | ||
9320 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9321 | |||
9322 | fi | ||
9323 | |||
9324 | for ac_func in fmt_scaled scan_scaled login logout openpty updwtmp logwtmp | ||
9325 | do : | ||
9326 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9327 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
9328 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
9329 | cat >>confdefs.h <<_ACEOF | ||
9330 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9331 | _ACEOF | ||
9332 | |||
9333 | fi | ||
9334 | done | ||
9335 | |||
9336 | |||
9337 | # On some platforms, inet_ntop may be found in libresolv or libnsl. | ||
9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 | ||
9339 | $as_echo_n "checking for library containing inet_ntop... " >&6; } | ||
9340 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9341 | $as_echo_n "(cached) " >&6 | ||
9342 | else | ||
9343 | ac_func_search_save_LIBS=$LIBS | ||
9344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9345 | /* end confdefs.h. */ | ||
9346 | |||
9347 | /* Override any GCC internal prototype to avoid an error. | ||
9348 | Use char because int might match the return type of a GCC | ||
9349 | builtin and then its argument prototype would still apply. */ | ||
9350 | #ifdef __cplusplus | ||
9351 | extern "C" | ||
9352 | #endif | ||
9353 | char inet_ntop (); | ||
9354 | int | ||
9355 | main () | ||
9356 | { | ||
9357 | return inet_ntop (); | ||
9358 | ; | ||
9359 | return 0; | ||
9360 | } | ||
9361 | _ACEOF | ||
9362 | for ac_lib in '' resolv nsl; do | ||
9363 | if test -z "$ac_lib"; then | ||
9364 | ac_res="none required" | ||
9365 | else | ||
9366 | ac_res=-l$ac_lib | ||
9367 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
9368 | fi | ||
9369 | if ac_fn_c_try_link "$LINENO"; then : | ||
9370 | ac_cv_search_inet_ntop=$ac_res | ||
9371 | fi | ||
9372 | rm -f core conftest.err conftest.$ac_objext \ | ||
9373 | conftest$ac_exeext | ||
9374 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9375 | break | ||
9376 | fi | ||
9377 | done | ||
9378 | if ${ac_cv_search_inet_ntop+:} false; then : | ||
9379 | |||
9380 | else | ||
9381 | ac_cv_search_inet_ntop=no | ||
9382 | fi | ||
9383 | rm conftest.$ac_ext | ||
9384 | LIBS=$ac_func_search_save_LIBS | ||
9385 | fi | ||
9386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 | ||
9387 | $as_echo "$ac_cv_search_inet_ntop" >&6; } | ||
9388 | ac_res=$ac_cv_search_inet_ntop | ||
9389 | if test "$ac_res" != no; then : | ||
9390 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
9391 | |||
9392 | fi | ||
9393 | |||
9394 | |||
9395 | for ac_func in strftime | ||
9396 | do : | ||
9397 | ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | ||
9398 | if test "x$ac_cv_func_strftime" = xyes; then : | ||
9399 | cat >>confdefs.h <<_ACEOF | ||
9400 | #define HAVE_STRFTIME 1 | ||
9401 | _ACEOF | ||
9402 | |||
9403 | else | ||
9404 | # strftime is in -lintl on SCO UNIX. | ||
9405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | ||
9406 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
9407 | if ${ac_cv_lib_intl_strftime+:} false; then : | ||
9408 | $as_echo_n "(cached) " >&6 | ||
9409 | else | ||
9410 | ac_check_lib_save_LIBS=$LIBS | ||
9411 | LIBS="-lintl $LIBS" | ||
9412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9413 | /* end confdefs.h. */ | ||
9414 | |||
9415 | /* Override any GCC internal prototype to avoid an error. | ||
9416 | Use char because int might match the return type of a GCC | ||
9417 | builtin and then its argument prototype would still apply. */ | ||
9418 | #ifdef __cplusplus | ||
9419 | extern "C" | ||
9420 | #endif | ||
9421 | char strftime (); | ||
9422 | int | ||
9423 | main () | ||
9424 | { | ||
9425 | return strftime (); | ||
9426 | ; | ||
9427 | return 0; | ||
9428 | } | ||
9429 | _ACEOF | ||
9430 | if ac_fn_c_try_link "$LINENO"; then : | ||
9431 | ac_cv_lib_intl_strftime=yes | ||
9432 | else | ||
9433 | ac_cv_lib_intl_strftime=no | ||
9434 | fi | ||
9435 | rm -f core conftest.err conftest.$ac_objext \ | ||
9436 | conftest$ac_exeext conftest.$ac_ext | ||
9437 | LIBS=$ac_check_lib_save_LIBS | ||
9438 | fi | ||
9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | ||
9440 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
9441 | if test "x$ac_cv_lib_intl_strftime" = xyes; then : | ||
9442 | $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | ||
9443 | |||
9444 | LIBS="-lintl $LIBS" | ||
9445 | fi | ||
9446 | |||
9447 | fi | ||
9448 | done | ||
9449 | |||
9450 | |||
9451 | # Check for ALTDIRFUNC glob() extension | ||
9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5 | ||
9453 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
9454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9455 | /* end confdefs.h. */ | ||
9456 | |||
9457 | #include <glob.h> | ||
9458 | #ifdef GLOB_ALTDIRFUNC | ||
9459 | FOUNDIT | ||
9460 | #endif | ||
9461 | |||
9462 | _ACEOF | ||
9463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
9464 | $EGREP "FOUNDIT" >/dev/null 2>&1; then : | ||
9465 | |||
9466 | |||
9467 | $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h | ||
9468 | |||
9469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9470 | $as_echo "yes" >&6; } | ||
9471 | |||
9472 | else | ||
9473 | |||
9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9475 | $as_echo "no" >&6; } | ||
9476 | |||
9477 | |||
9478 | fi | ||
9479 | rm -f conftest* | ||
9480 | |||
9481 | |||
9482 | # Check for g.gl_matchc glob() extension | ||
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5 | ||
9484 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
9485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9486 | /* end confdefs.h. */ | ||
9487 | #include <glob.h> | ||
9488 | int | ||
9489 | main () | ||
9490 | { | ||
9491 | glob_t g; g.gl_matchc = 1; | ||
9492 | ; | ||
9493 | return 0; | ||
9494 | } | ||
9495 | _ACEOF | ||
9496 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9497 | |||
9498 | |||
9499 | $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h | ||
9500 | |||
9501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9502 | $as_echo "yes" >&6; } | ||
9503 | |||
9504 | else | ||
9505 | |||
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9507 | $as_echo "no" >&6; } | ||
9508 | |||
9509 | fi | ||
9510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9511 | |||
9512 | # Check for g.gl_statv glob() extension | ||
9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5 | ||
9514 | $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; } | ||
9515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9516 | /* end confdefs.h. */ | ||
9517 | #include <glob.h> | ||
9518 | int | ||
9519 | main () | ||
9520 | { | ||
9521 | |||
9522 | #ifndef GLOB_KEEPSTAT | ||
9523 | #error "glob does not support GLOB_KEEPSTAT extension" | ||
9524 | #endif | ||
9525 | glob_t g; | ||
9526 | g.gl_statv = NULL; | ||
9527 | |||
9528 | ; | ||
9529 | return 0; | ||
9530 | } | ||
9531 | _ACEOF | ||
9532 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9533 | |||
9534 | |||
9535 | $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h | ||
9536 | |||
9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9538 | $as_echo "yes" >&6; } | ||
9539 | |||
9540 | else | ||
9541 | |||
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9543 | $as_echo "no" >&6; } | ||
9544 | |||
9545 | |||
9546 | fi | ||
9547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9548 | |||
9549 | ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h> | ||
9550 | " | ||
9551 | if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then : | ||
9552 | ac_have_decl=1 | ||
9553 | else | ||
9554 | ac_have_decl=0 | ||
9555 | fi | ||
9556 | |||
9557 | cat >>confdefs.h <<_ACEOF | ||
9558 | #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl | ||
9559 | _ACEOF | ||
9560 | |||
9561 | |||
9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5 | ||
9563 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
9564 | if test "$cross_compiling" = yes; then : | ||
9565 | |||
9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
9567 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
9568 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
9569 | |||
9570 | |||
9571 | |||
9572 | else | ||
9573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9574 | /* end confdefs.h. */ | ||
9575 | |||
9576 | #include <sys/types.h> | ||
9577 | #include <dirent.h> | ||
9578 | int | ||
9579 | main () | ||
9580 | { | ||
9581 | |||
9582 | struct dirent d; | ||
9583 | exit(sizeof(d.d_name)<=sizeof(char)); | ||
9584 | |||
9585 | ; | ||
9586 | return 0; | ||
9587 | } | ||
9588 | _ACEOF | ||
9589 | if ac_fn_c_try_run "$LINENO"; then : | ||
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9591 | $as_echo "yes" >&6; } | ||
9592 | else | ||
9593 | |||
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9595 | $as_echo "no" >&6; } | ||
9596 | |||
9597 | $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h | ||
9598 | |||
9599 | |||
9600 | fi | ||
9601 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
9602 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
9603 | fi | ||
9604 | |||
9605 | |||
9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5 | ||
9607 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
9608 | if test -d "/proc/$$/fd" ; then | ||
9609 | |||
9610 | $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h | ||
9611 | |||
9612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9613 | $as_echo "yes" >&6; } | ||
9614 | else | ||
9615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9616 | $as_echo "no" >&6; } | ||
9617 | fi | ||
9618 | |||
9619 | # Check whether user wants S/Key support | ||
9620 | SKEY_MSG="no" | ||
9621 | |||
9622 | # Check whether --with-skey was given. | ||
9623 | if test "${with_skey+set}" = set; then : | ||
9624 | withval=$with_skey; | ||
9625 | if test "x$withval" != "xno" ; then | ||
9626 | |||
9627 | if test "x$withval" != "xyes" ; then | ||
9628 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9629 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9630 | fi | ||
9631 | |||
9632 | |||
9633 | $as_echo "#define SKEY 1" >>confdefs.h | ||
9634 | |||
9635 | LIBS="-lskey $LIBS" | ||
9636 | SKEY_MSG="yes" | ||
9637 | |||
9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5 | ||
9639 | $as_echo_n "checking for s/key support... " >&6; } | ||
9640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9641 | /* end confdefs.h. */ | ||
9642 | |||
9643 | #include <stdio.h> | ||
9644 | #include <skey.h> | ||
9645 | |||
9646 | int | ||
9647 | main () | ||
9648 | { | ||
9649 | |||
9650 | char *ff = skey_keyinfo(""); ff=""; | ||
9651 | exit(0); | ||
9652 | |||
9653 | ; | ||
9654 | return 0; | ||
9655 | } | ||
9656 | _ACEOF | ||
9657 | if ac_fn_c_try_link "$LINENO"; then : | ||
9658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9659 | $as_echo "yes" >&6; } | ||
9660 | else | ||
9661 | |||
9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9663 | $as_echo "no" >&6; } | ||
9664 | as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5 | ||
9665 | |||
9666 | fi | ||
9667 | rm -f core conftest.err conftest.$ac_objext \ | ||
9668 | conftest$ac_exeext conftest.$ac_ext | ||
9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5 | ||
9670 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } | ||
9671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9672 | /* end confdefs.h. */ | ||
9673 | |||
9674 | #include <stdio.h> | ||
9675 | #include <skey.h> | ||
9676 | |||
9677 | int | ||
9678 | main () | ||
9679 | { | ||
9680 | |||
9681 | (void)skeychallenge(NULL,"name","",0); | ||
9682 | |||
9683 | ; | ||
9684 | return 0; | ||
9685 | } | ||
9686 | _ACEOF | ||
9687 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9688 | |||
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9690 | $as_echo "yes" >&6; } | ||
9691 | |||
9692 | $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h | ||
9693 | |||
9694 | else | ||
9695 | |||
9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9697 | $as_echo "no" >&6; } | ||
9698 | |||
9699 | fi | ||
9700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9701 | fi | ||
9702 | |||
9703 | |||
9704 | fi | ||
9705 | |||
9706 | |||
9707 | # Check whether user wants to use ldns | ||
9708 | LDNS_MSG="no" | ||
9709 | |||
9710 | # Check whether --with-ldns was given. | ||
9711 | if test "${with_ldns+set}" = set; then : | ||
9712 | withval=$with_ldns; | ||
9713 | if test "x$withval" != "xno" ; then | ||
9714 | |||
9715 | if test "x$withval" != "xyes" ; then | ||
9716 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9717 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
9718 | fi | ||
9719 | |||
9720 | |||
9721 | $as_echo "#define HAVE_LDNS 1" >>confdefs.h | ||
9722 | |||
9723 | LIBS="-lldns $LIBS" | ||
9724 | LDNS_MSG="yes" | ||
9725 | |||
9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldns support" >&5 | ||
9727 | $as_echo_n "checking for ldns support... " >&6; } | ||
9728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9729 | /* end confdefs.h. */ | ||
9730 | |||
9731 | #include <stdio.h> | ||
9732 | #include <stdlib.h> | ||
9733 | #include <stdint.h> | ||
9734 | #include <ldns/ldns.h> | ||
9735 | int main() { ldns_status status = ldns_verify_trusted(NULL, NULL, NULL, NULL); status=LDNS_STATUS_OK; exit(0); } | ||
9736 | |||
9737 | |||
9738 | _ACEOF | ||
9739 | if ac_fn_c_try_link "$LINENO"; then : | ||
9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9741 | $as_echo "yes" >&6; } | ||
9742 | else | ||
9743 | |||
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9745 | $as_echo "no" >&6; } | ||
9746 | as_fn_error $? "** Incomplete or missing ldns libraries." "$LINENO" 5 | ||
9747 | |||
9748 | fi | ||
9749 | rm -f core conftest.err conftest.$ac_objext \ | ||
9750 | conftest$ac_exeext conftest.$ac_ext | ||
9751 | fi | ||
9752 | |||
9753 | |||
9754 | fi | ||
9755 | |||
9756 | |||
9757 | # Check whether user wants libedit support | ||
9758 | LIBEDIT_MSG="no" | ||
9759 | |||
9760 | # Check whether --with-libedit was given. | ||
9761 | if test "${with_libedit+set}" = set; then : | ||
9762 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
9763 | if test "x$withval" = "xyes" ; then | ||
9764 | if test -n "$ac_tool_prefix"; then | ||
9765 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
9766 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
9768 | $as_echo_n "checking for $ac_word... " >&6; } | ||
9769 | if ${ac_cv_path_PKGCONFIG+:} false; then : | ||
9770 | $as_echo_n "(cached) " >&6 | ||
9771 | else | ||
9772 | case $PKGCONFIG in | ||
9773 | [\\/]* | ?:[\\/]*) | ||
9774 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | ||
9775 | ;; | ||
9776 | *) | ||
9777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9778 | for as_dir in $PATH | ||
9779 | do | ||
9780 | IFS=$as_save_IFS | ||
9781 | test -z "$as_dir" && as_dir=. | ||
9782 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
9784 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9786 | break 2 | ||
9787 | fi | ||
9788 | done | ||
9789 | done | ||
9790 | IFS=$as_save_IFS | ||
9791 | |||
9792 | ;; | ||
9793 | esac | ||
9794 | fi | ||
9795 | PKGCONFIG=$ac_cv_path_PKGCONFIG | ||
9796 | if test -n "$PKGCONFIG"; then | ||
9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | ||
9798 | $as_echo "$PKGCONFIG" >&6; } | ||
9799 | else | ||
9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9801 | $as_echo "no" >&6; } | ||
9802 | fi | ||
9803 | |||
9804 | |||
9805 | fi | ||
9806 | if test -z "$ac_cv_path_PKGCONFIG"; then | ||
9807 | ac_pt_PKGCONFIG=$PKGCONFIG | ||
9808 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
9809 | set dummy pkg-config; ac_word=$2 | ||
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
9811 | $as_echo_n "checking for $ac_word... " >&6; } | ||
9812 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | ||
9813 | $as_echo_n "(cached) " >&6 | ||
9814 | else | ||
9815 | case $ac_pt_PKGCONFIG in | ||
9816 | [\\/]* | ?:[\\/]*) | ||
9817 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | ||
9818 | ;; | ||
9819 | *) | ||
9820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
9821 | for as_dir in $PATH | ||
9822 | do | ||
9823 | IFS=$as_save_IFS | ||
9824 | test -z "$as_dir" && as_dir=. | ||
9825 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
9826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
9827 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
9828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
9829 | break 2 | ||
9830 | fi | ||
9831 | done | ||
9832 | done | ||
9833 | IFS=$as_save_IFS | ||
9834 | |||
9835 | ;; | ||
9836 | esac | ||
9837 | fi | ||
9838 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | ||
9839 | if test -n "$ac_pt_PKGCONFIG"; then | ||
9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | ||
9841 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | ||
9842 | else | ||
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9844 | $as_echo "no" >&6; } | ||
9845 | fi | ||
9846 | |||
9847 | if test "x$ac_pt_PKGCONFIG" = x; then | ||
9848 | PKGCONFIG="no" | ||
9849 | else | ||
9850 | case $cross_compiling:$ac_tool_warned in | ||
9851 | yes:) | ||
9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
9853 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
9854 | ac_tool_warned=yes ;; | ||
9855 | esac | ||
9856 | PKGCONFIG=$ac_pt_PKGCONFIG | ||
9857 | fi | ||
9858 | else | ||
9859 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | ||
9860 | fi | ||
9861 | |||
9862 | if test "x$PKGCONFIG" != "xno"; then | ||
9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5 | ||
9864 | $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; } | ||
9865 | if "$PKGCONFIG" libedit; then | ||
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9867 | $as_echo "yes" >&6; } | ||
9868 | use_pkgconfig_for_libedit=yes | ||
9869 | else | ||
9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9871 | $as_echo "no" >&6; } | ||
9872 | fi | ||
9873 | fi | ||
9874 | else | ||
9875 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
9876 | if test -n "${need_dash_r}"; then | ||
9877 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
9878 | else | ||
9879 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
9880 | fi | ||
9881 | fi | ||
9882 | if test "x$use_pkgconfig_for_libedit" = "xyes"; then | ||
9883 | LIBEDIT=`$PKGCONFIG --libs libedit` | ||
9884 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`" | ||
9885 | else | ||
9886 | LIBEDIT="-ledit -lcurses" | ||
9887 | fi | ||
9888 | OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'` | ||
9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5 | ||
9890 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
9891 | if ${ac_cv_lib_edit_el_init+:} false; then : | ||
9892 | $as_echo_n "(cached) " >&6 | ||
9893 | else | ||
9894 | ac_check_lib_save_LIBS=$LIBS | ||
9895 | LIBS="-ledit $OTHERLIBS | ||
9896 | $LIBS" | ||
9897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9898 | /* end confdefs.h. */ | ||
9899 | |||
9900 | /* Override any GCC internal prototype to avoid an error. | ||
9901 | Use char because int might match the return type of a GCC | ||
9902 | builtin and then its argument prototype would still apply. */ | ||
9903 | #ifdef __cplusplus | ||
9904 | extern "C" | ||
9905 | #endif | ||
9906 | char el_init (); | ||
9907 | int | ||
9908 | main () | ||
9909 | { | ||
9910 | return el_init (); | ||
9911 | ; | ||
9912 | return 0; | ||
9913 | } | ||
9914 | _ACEOF | ||
9915 | if ac_fn_c_try_link "$LINENO"; then : | ||
9916 | ac_cv_lib_edit_el_init=yes | ||
9917 | else | ||
9918 | ac_cv_lib_edit_el_init=no | ||
9919 | fi | ||
9920 | rm -f core conftest.err conftest.$ac_objext \ | ||
9921 | conftest$ac_exeext conftest.$ac_ext | ||
9922 | LIBS=$ac_check_lib_save_LIBS | ||
9923 | fi | ||
9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5 | ||
9925 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
9926 | if test "x$ac_cv_lib_edit_el_init" = xyes; then : | ||
9927 | |||
9928 | $as_echo "#define USE_LIBEDIT 1" >>confdefs.h | ||
9929 | |||
9930 | LIBEDIT_MSG="yes" | ||
9931 | |||
9932 | |||
9933 | else | ||
9934 | as_fn_error $? "libedit not found" "$LINENO" 5 | ||
9935 | fi | ||
9936 | |||
9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5 | ||
9938 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
9939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
9940 | /* end confdefs.h. */ | ||
9941 | #include <histedit.h> | ||
9942 | int | ||
9943 | main () | ||
9944 | { | ||
9945 | |||
9946 | int i = H_SETSIZE; | ||
9947 | el_init("", NULL, NULL, NULL); | ||
9948 | exit(0); | ||
9949 | |||
9950 | ; | ||
9951 | return 0; | ||
9952 | } | ||
9953 | _ACEOF | ||
9954 | if ac_fn_c_try_compile "$LINENO"; then : | ||
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
9956 | $as_echo "yes" >&6; } | ||
9957 | else | ||
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
9959 | $as_echo "no" >&6; } | ||
9960 | as_fn_error $? "libedit version is not compatible" "$LINENO" 5 | ||
9961 | |||
9962 | fi | ||
9963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
9964 | fi | ||
9965 | |||
9966 | fi | ||
9967 | |||
9968 | |||
9969 | AUDIT_MODULE=none | ||
9970 | |||
9971 | # Check whether --with-audit was given. | ||
9972 | if test "${with_audit+set}" = set; then : | ||
9973 | withval=$with_audit; | ||
9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5 | ||
9975 | $as_echo_n "checking for supported audit module... " >&6; } | ||
9976 | case "$withval" in | ||
9977 | bsm) | ||
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5 | ||
9979 | $as_echo "bsm" >&6; } | ||
9980 | AUDIT_MODULE=bsm | ||
9981 | for ac_header in bsm/audit.h | ||
9982 | do : | ||
9983 | ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" " | ||
9984 | #ifdef HAVE_TIME_H | ||
9985 | # include <time.h> | ||
9986 | #endif | ||
9987 | |||
9988 | |||
9989 | " | ||
9990 | if test "x$ac_cv_header_bsm_audit_h" = xyes; then : | ||
9991 | cat >>confdefs.h <<_ACEOF | ||
9992 | #define HAVE_BSM_AUDIT_H 1 | ||
9993 | _ACEOF | ||
9994 | |||
9995 | else | ||
9996 | as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5 | ||
9997 | fi | ||
9998 | |||
9999 | done | ||
10000 | |||
10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5 | ||
10002 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
10003 | if ${ac_cv_lib_bsm_getaudit+:} false; then : | ||
10004 | $as_echo_n "(cached) " >&6 | ||
10005 | else | ||
10006 | ac_check_lib_save_LIBS=$LIBS | ||
10007 | LIBS="-lbsm $LIBS" | ||
10008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10009 | /* end confdefs.h. */ | ||
10010 | |||
10011 | /* Override any GCC internal prototype to avoid an error. | ||
10012 | Use char because int might match the return type of a GCC | ||
10013 | builtin and then its argument prototype would still apply. */ | ||
10014 | #ifdef __cplusplus | ||
10015 | extern "C" | ||
10016 | #endif | ||
10017 | char getaudit (); | ||
10018 | int | ||
10019 | main () | ||
10020 | { | ||
10021 | return getaudit (); | ||
10022 | ; | ||
10023 | return 0; | ||
10024 | } | ||
10025 | _ACEOF | ||
10026 | if ac_fn_c_try_link "$LINENO"; then : | ||
10027 | ac_cv_lib_bsm_getaudit=yes | ||
10028 | else | ||
10029 | ac_cv_lib_bsm_getaudit=no | ||
10030 | fi | ||
10031 | rm -f core conftest.err conftest.$ac_objext \ | ||
10032 | conftest$ac_exeext conftest.$ac_ext | ||
10033 | LIBS=$ac_check_lib_save_LIBS | ||
10034 | fi | ||
10035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
10036 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
10037 | if test "x$ac_cv_lib_bsm_getaudit" = xyes; then : | ||
10038 | cat >>confdefs.h <<_ACEOF | ||
10039 | #define HAVE_LIBBSM 1 | ||
10040 | _ACEOF | ||
10041 | |||
10042 | LIBS="-lbsm $LIBS" | ||
10043 | |||
10044 | else | ||
10045 | as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5 | ||
10046 | fi | ||
10047 | |||
10048 | for ac_func in getaudit | ||
10049 | do : | ||
10050 | ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit" | ||
10051 | if test "x$ac_cv_func_getaudit" = xyes; then : | ||
10052 | cat >>confdefs.h <<_ACEOF | ||
10053 | #define HAVE_GETAUDIT 1 | ||
10054 | _ACEOF | ||
10055 | |||
10056 | else | ||
10057 | as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5 | ||
10058 | fi | ||
10059 | done | ||
10060 | |||
10061 | # These are optional | ||
10062 | for ac_func in getaudit_addr aug_get_machine | ||
10063 | do : | ||
10064 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10065 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10066 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10067 | cat >>confdefs.h <<_ACEOF | ||
10068 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10069 | _ACEOF | ||
10070 | |||
10071 | fi | ||
10072 | done | ||
10073 | |||
10074 | |||
10075 | $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h | ||
10076 | |||
10077 | if test "$sol2ver" -ge 11; then | ||
10078 | SSHDLIBS="$SSHDLIBS -lscf" | ||
10079 | |||
10080 | $as_echo "#define BROKEN_BSM_API 1" >>confdefs.h | ||
10081 | |||
10082 | fi | ||
10083 | ;; | ||
10084 | linux) | ||
10085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5 | ||
10086 | $as_echo "linux" >&6; } | ||
10087 | AUDIT_MODULE=linux | ||
10088 | for ac_header in libaudit.h | ||
10089 | do : | ||
10090 | ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default" | ||
10091 | if test "x$ac_cv_header_libaudit_h" = xyes; then : | ||
10092 | cat >>confdefs.h <<_ACEOF | ||
10093 | #define HAVE_LIBAUDIT_H 1 | ||
10094 | _ACEOF | ||
10095 | |||
10096 | fi | ||
10097 | |||
10098 | done | ||
10099 | |||
10100 | SSHDLIBS="$SSHDLIBS -laudit" | ||
10101 | |||
10102 | $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h | ||
10103 | |||
10104 | ;; | ||
10105 | debug) | ||
10106 | AUDIT_MODULE=debug | ||
10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5 | ||
10108 | $as_echo "debug" >&6; } | ||
10109 | |||
10110 | $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h | ||
10111 | |||
10112 | ;; | ||
10113 | no) | ||
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10115 | $as_echo "no" >&6; } | ||
10116 | ;; | ||
10117 | *) | ||
10118 | as_fn_error $? "Unknown audit module $withval" "$LINENO" 5 | ||
10119 | ;; | ||
10120 | esac | ||
10121 | |||
10122 | fi | ||
10123 | |||
10124 | |||
10125 | |||
10126 | # Check whether --with-pie was given. | ||
10127 | if test "${with_pie+set}" = set; then : | ||
10128 | withval=$with_pie; | ||
10129 | if test "x$withval" = "xno"; then | ||
10130 | use_pie=no | ||
10131 | fi | ||
10132 | if test "x$withval" = "xyes"; then | ||
10133 | use_pie=yes | ||
10134 | fi | ||
10135 | |||
10136 | |||
10137 | fi | ||
10138 | |||
10139 | if test "x$use_pie" = "x"; then | ||
10140 | use_pie=no | ||
10141 | fi | ||
10142 | if test "x$use_toolchain_hardening" != "x1" && test "x$use_pie" = "xauto"; then | ||
10143 | # Turn off automatic PIE when toolchain hardening is off. | ||
10144 | use_pie=no | ||
10145 | fi | ||
10146 | if test "x$use_pie" = "xauto"; then | ||
10147 | # Automatic PIE requires gcc >= 4.x | ||
10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.x" >&5 | ||
10149 | $as_echo_n "checking for gcc >= 4.x... " >&6; } | ||
10150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10151 | /* end confdefs.h. */ | ||
10152 | |||
10153 | #if !defined(__GNUC__) || __GNUC__ < 4 | ||
10154 | #error gcc is too old | ||
10155 | #endif | ||
10156 | |||
10157 | _ACEOF | ||
10158 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10160 | $as_echo "yes" >&6; } | ||
10161 | else | ||
10162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10163 | $as_echo "no" >&6; } | ||
10164 | use_pie=no | ||
10165 | |||
10166 | fi | ||
10167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10168 | fi | ||
10169 | if test "x$use_pie" != "xno"; then | ||
10170 | SAVED_CFLAGS="$CFLAGS" | ||
10171 | SAVED_LDFLAGS="$LDFLAGS" | ||
10172 | { | ||
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports compile flag -fPIE" >&5 | ||
10174 | $as_echo_n "checking if $CC supports compile flag -fPIE... " >&6; } | ||
10175 | saved_CFLAGS="$CFLAGS" | ||
10176 | CFLAGS="$CFLAGS $WERROR -fPIE" | ||
10177 | _define_flag="" | ||
10178 | test "x$_define_flag" = "x" && _define_flag="-fPIE" | ||
10179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10180 | /* end confdefs.h. */ | ||
10181 | |||
10182 | #include <stdlib.h> | ||
10183 | #include <stdio.h> | ||
10184 | int main(int argc, char **argv) { | ||
10185 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10186 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10187 | float l = i * 2.1; | ||
10188 | double m = l / 0.5; | ||
10189 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10190 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
10191 | exit(0); | ||
10192 | } | ||
10193 | |||
10194 | _ACEOF | ||
10195 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10196 | |||
10197 | if `grep -i "unrecognized option" conftest.err >/dev/null` | ||
10198 | then | ||
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10200 | $as_echo "no" >&6; } | ||
10201 | CFLAGS="$saved_CFLAGS" | ||
10202 | else | ||
10203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10204 | $as_echo "yes" >&6; } | ||
10205 | CFLAGS="$saved_CFLAGS $_define_flag" | ||
10206 | fi | ||
10207 | else | ||
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10209 | $as_echo "no" >&6; } | ||
10210 | CFLAGS="$saved_CFLAGS" | ||
10211 | |||
10212 | fi | ||
10213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10214 | } | ||
10215 | { | ||
10216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $LD supports link flag -pie" >&5 | ||
10217 | $as_echo_n "checking if $LD supports link flag -pie... " >&6; } | ||
10218 | saved_LDFLAGS="$LDFLAGS" | ||
10219 | LDFLAGS="$LDFLAGS $WERROR -pie" | ||
10220 | _define_flag="" | ||
10221 | test "x$_define_flag" = "x" && _define_flag="-pie" | ||
10222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10223 | /* end confdefs.h. */ | ||
10224 | |||
10225 | #include <stdlib.h> | ||
10226 | #include <stdio.h> | ||
10227 | int main(int argc, char **argv) { | ||
10228 | /* Some math to catch -ftrapv problems in the toolchain */ | ||
10229 | int i = 123 * argc, j = 456 + argc, k = 789 - argc; | ||
10230 | float l = i * 2.1; | ||
10231 | double m = l / 0.5; | ||
10232 | long long int n = argc * 12345LL, o = 12345LL * (long long int)argc; | ||
10233 | printf("%d %d %d %f %f %lld %lld\n", i, j, k, l, m, n, o); | ||
10234 | exit(0); | ||
10235 | } | ||
10236 | |||
10237 | _ACEOF | ||
10238 | if ac_fn_c_try_link "$LINENO"; then : | ||
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10240 | $as_echo "yes" >&6; } | ||
10241 | LDFLAGS="$saved_LDFLAGS $_define_flag" | ||
10242 | else | ||
10243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10244 | $as_echo "no" >&6; } | ||
10245 | LDFLAGS="$saved_LDFLAGS" | ||
10246 | |||
10247 | fi | ||
10248 | rm -f core conftest.err conftest.$ac_objext \ | ||
10249 | conftest$ac_exeext conftest.$ac_ext | ||
10250 | } | ||
10251 | # We use both -fPIE and -pie or neither. | ||
10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether both -fPIE and -pie are supported" >&5 | ||
10253 | $as_echo_n "checking whether both -fPIE and -pie are supported... " >&6; } | ||
10254 | if echo "x $CFLAGS" | grep ' -fPIE' >/dev/null 2>&1 && \ | ||
10255 | echo "x $LDFLAGS" | grep ' -pie' >/dev/null 2>&1 ; then | ||
10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10257 | $as_echo "yes" >&6; } | ||
10258 | else | ||
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
10260 | $as_echo "no" >&6; } | ||
10261 | CFLAGS="$SAVED_CFLAGS" | ||
10262 | LDFLAGS="$SAVED_LDFLAGS" | ||
10263 | fi | ||
10264 | fi | ||
10265 | |||
10266 | for ac_func in \ | ||
10267 | Blowfish_initstate \ | ||
10268 | Blowfish_expandstate \ | ||
10269 | Blowfish_expand0state \ | ||
10270 | Blowfish_stream2word \ | ||
10271 | asprintf \ | ||
10272 | b64_ntop \ | ||
10273 | __b64_ntop \ | ||
10274 | b64_pton \ | ||
10275 | __b64_pton \ | ||
10276 | bcopy \ | ||
10277 | bcrypt_pbkdf \ | ||
10278 | bindresvport_sa \ | ||
10279 | blf_enc \ | ||
10280 | cap_rights_limit \ | ||
10281 | clock \ | ||
10282 | closefrom \ | ||
10283 | dirfd \ | ||
10284 | endgrent \ | ||
10285 | explicit_bzero \ | ||
10286 | fchmod \ | ||
10287 | fchown \ | ||
10288 | freeaddrinfo \ | ||
10289 | fstatfs \ | ||
10290 | fstatvfs \ | ||
10291 | futimes \ | ||
10292 | getaddrinfo \ | ||
10293 | getcwd \ | ||
10294 | getgrouplist \ | ||
10295 | getnameinfo \ | ||
10296 | getopt \ | ||
10297 | getpeereid \ | ||
10298 | getpeerucred \ | ||
10299 | getpgid \ | ||
10300 | getpgrp \ | ||
10301 | _getpty \ | ||
10302 | getrlimit \ | ||
10303 | getttyent \ | ||
10304 | glob \ | ||
10305 | group_from_gid \ | ||
10306 | inet_aton \ | ||
10307 | inet_ntoa \ | ||
10308 | inet_ntop \ | ||
10309 | innetgr \ | ||
10310 | login_getcapbool \ | ||
10311 | mblen \ | ||
10312 | md5_crypt \ | ||
10313 | memmove \ | ||
10314 | memset_s \ | ||
10315 | mkdtemp \ | ||
10316 | mmap \ | ||
10317 | ngetaddrinfo \ | ||
10318 | nsleep \ | ||
10319 | ogetaddrinfo \ | ||
10320 | openlog_r \ | ||
10321 | poll \ | ||
10322 | prctl \ | ||
10323 | pstat \ | ||
10324 | readpassphrase \ | ||
10325 | realpath \ | ||
10326 | recvmsg \ | ||
10327 | rresvport_af \ | ||
10328 | sendmsg \ | ||
10329 | setdtablesize \ | ||
10330 | setegid \ | ||
10331 | setenv \ | ||
10332 | seteuid \ | ||
10333 | setgroupent \ | ||
10334 | setgroups \ | ||
10335 | setlinebuf \ | ||
10336 | setlogin \ | ||
10337 | setpassent\ | ||
10338 | setpcred \ | ||
10339 | setproctitle \ | ||
10340 | setregid \ | ||
10341 | setreuid \ | ||
10342 | setrlimit \ | ||
10343 | setsid \ | ||
10344 | setvbuf \ | ||
10345 | sigaction \ | ||
10346 | sigvec \ | ||
10347 | snprintf \ | ||
10348 | socketpair \ | ||
10349 | statfs \ | ||
10350 | statvfs \ | ||
10351 | strdup \ | ||
10352 | strerror \ | ||
10353 | strlcat \ | ||
10354 | strlcpy \ | ||
10355 | strmode \ | ||
10356 | strnlen \ | ||
10357 | strnvis \ | ||
10358 | strptime \ | ||
10359 | strtonum \ | ||
10360 | strtoll \ | ||
10361 | strtoul \ | ||
10362 | strtoull \ | ||
10363 | swap32 \ | ||
10364 | sysconf \ | ||
10365 | tcgetpgrp \ | ||
10366 | timingsafe_bcmp \ | ||
10367 | truncate \ | ||
10368 | unsetenv \ | ||
10369 | updwtmpx \ | ||
10370 | user_from_uid \ | ||
10371 | usleep \ | ||
10372 | vasprintf \ | ||
10373 | vsnprintf \ | ||
10374 | waitpid \ | ||
10375 | |||
10376 | do : | ||
10377 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10378 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10379 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10380 | cat >>confdefs.h <<_ACEOF | ||
10381 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10382 | _ACEOF | ||
10383 | |||
10384 | fi | ||
10385 | done | ||
10386 | |||
10387 | |||
10388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10389 | /* end confdefs.h. */ | ||
10390 | #include <ctype.h> | ||
10391 | int | ||
10392 | main () | ||
10393 | { | ||
10394 | return (isblank('a')); | ||
10395 | ; | ||
10396 | return 0; | ||
10397 | } | ||
10398 | _ACEOF | ||
10399 | if ac_fn_c_try_link "$LINENO"; then : | ||
10400 | |||
10401 | $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h | ||
10402 | |||
10403 | |||
10404 | fi | ||
10405 | rm -f core conftest.err conftest.$ac_objext \ | ||
10406 | conftest$ac_exeext conftest.$ac_ext | ||
10407 | |||
10408 | # PKCS#11 support requires dlopen() and co | ||
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | ||
10410 | $as_echo_n "checking for library containing dlopen... " >&6; } | ||
10411 | if ${ac_cv_search_dlopen+:} false; then : | ||
10412 | $as_echo_n "(cached) " >&6 | ||
10413 | else | ||
10414 | ac_func_search_save_LIBS=$LIBS | ||
10415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10416 | /* end confdefs.h. */ | ||
10417 | |||
10418 | /* Override any GCC internal prototype to avoid an error. | ||
10419 | Use char because int might match the return type of a GCC | ||
10420 | builtin and then its argument prototype would still apply. */ | ||
10421 | #ifdef __cplusplus | ||
10422 | extern "C" | ||
10423 | #endif | ||
10424 | char dlopen (); | ||
10425 | int | ||
10426 | main () | ||
10427 | { | ||
10428 | return dlopen (); | ||
10429 | ; | ||
10430 | return 0; | ||
10431 | } | ||
10432 | _ACEOF | ||
10433 | for ac_lib in '' dl; do | ||
10434 | if test -z "$ac_lib"; then | ||
10435 | ac_res="none required" | ||
10436 | else | ||
10437 | ac_res=-l$ac_lib | ||
10438 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10439 | fi | ||
10440 | if ac_fn_c_try_link "$LINENO"; then : | ||
10441 | ac_cv_search_dlopen=$ac_res | ||
10442 | fi | ||
10443 | rm -f core conftest.err conftest.$ac_objext \ | ||
10444 | conftest$ac_exeext | ||
10445 | if ${ac_cv_search_dlopen+:} false; then : | ||
10446 | break | ||
10447 | fi | ||
10448 | done | ||
10449 | if ${ac_cv_search_dlopen+:} false; then : | ||
10450 | |||
10451 | else | ||
10452 | ac_cv_search_dlopen=no | ||
10453 | fi | ||
10454 | rm conftest.$ac_ext | ||
10455 | LIBS=$ac_func_search_save_LIBS | ||
10456 | fi | ||
10457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | ||
10458 | $as_echo "$ac_cv_search_dlopen" >&6; } | ||
10459 | ac_res=$ac_cv_search_dlopen | ||
10460 | if test "$ac_res" != no; then : | ||
10461 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10462 | |||
10463 | $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h | ||
10464 | |||
10465 | |||
10466 | fi | ||
10467 | |||
10468 | |||
10469 | # IRIX has a const char return value for gai_strerror() | ||
10470 | for ac_func in gai_strerror | ||
10471 | do : | ||
10472 | ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" | ||
10473 | if test "x$ac_cv_func_gai_strerror" = xyes; then : | ||
10474 | cat >>confdefs.h <<_ACEOF | ||
10475 | #define HAVE_GAI_STRERROR 1 | ||
10476 | _ACEOF | ||
10477 | |||
10478 | $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h | ||
10479 | |||
10480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10481 | /* end confdefs.h. */ | ||
10482 | |||
10483 | #include <sys/types.h> | ||
10484 | #include <sys/socket.h> | ||
10485 | #include <netdb.h> | ||
10486 | |||
10487 | const char *gai_strerror(int); | ||
10488 | |||
10489 | int | ||
10490 | main () | ||
10491 | { | ||
10492 | |||
10493 | char *str; | ||
10494 | str = gai_strerror(0); | ||
10495 | |||
10496 | ; | ||
10497 | return 0; | ||
10498 | } | ||
10499 | _ACEOF | ||
10500 | if ac_fn_c_try_compile "$LINENO"; then : | ||
10501 | |||
10502 | |||
10503 | $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h | ||
10504 | |||
10505 | fi | ||
10506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10507 | fi | ||
10508 | done | ||
10509 | |||
10510 | |||
10511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 | ||
10512 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
10513 | if ${ac_cv_search_nanosleep+:} false; then : | ||
10514 | $as_echo_n "(cached) " >&6 | ||
10515 | else | ||
10516 | ac_func_search_save_LIBS=$LIBS | ||
10517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10518 | /* end confdefs.h. */ | ||
10519 | |||
10520 | /* Override any GCC internal prototype to avoid an error. | ||
10521 | Use char because int might match the return type of a GCC | ||
10522 | builtin and then its argument prototype would still apply. */ | ||
10523 | #ifdef __cplusplus | ||
10524 | extern "C" | ||
10525 | #endif | ||
10526 | char nanosleep (); | ||
10527 | int | ||
10528 | main () | ||
10529 | { | ||
10530 | return nanosleep (); | ||
10531 | ; | ||
10532 | return 0; | ||
10533 | } | ||
10534 | _ACEOF | ||
10535 | for ac_lib in '' rt posix4; do | ||
10536 | if test -z "$ac_lib"; then | ||
10537 | ac_res="none required" | ||
10538 | else | ||
10539 | ac_res=-l$ac_lib | ||
10540 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10541 | fi | ||
10542 | if ac_fn_c_try_link "$LINENO"; then : | ||
10543 | ac_cv_search_nanosleep=$ac_res | ||
10544 | fi | ||
10545 | rm -f core conftest.err conftest.$ac_objext \ | ||
10546 | conftest$ac_exeext | ||
10547 | if ${ac_cv_search_nanosleep+:} false; then : | ||
10548 | break | ||
10549 | fi | ||
10550 | done | ||
10551 | if ${ac_cv_search_nanosleep+:} false; then : | ||
10552 | |||
10553 | else | ||
10554 | ac_cv_search_nanosleep=no | ||
10555 | fi | ||
10556 | rm conftest.$ac_ext | ||
10557 | LIBS=$ac_func_search_save_LIBS | ||
10558 | fi | ||
10559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 | ||
10560 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
10561 | ac_res=$ac_cv_search_nanosleep | ||
10562 | if test "$ac_res" != no; then : | ||
10563 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10564 | |||
10565 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | ||
10566 | |||
10567 | fi | ||
10568 | |||
10569 | |||
10570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 | ||
10571 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | ||
10572 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
10573 | $as_echo_n "(cached) " >&6 | ||
10574 | else | ||
10575 | ac_func_search_save_LIBS=$LIBS | ||
10576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10577 | /* end confdefs.h. */ | ||
10578 | |||
10579 | /* Override any GCC internal prototype to avoid an error. | ||
10580 | Use char because int might match the return type of a GCC | ||
10581 | builtin and then its argument prototype would still apply. */ | ||
10582 | #ifdef __cplusplus | ||
10583 | extern "C" | ||
10584 | #endif | ||
10585 | char clock_gettime (); | ||
10586 | int | ||
10587 | main () | ||
10588 | { | ||
10589 | return clock_gettime (); | ||
10590 | ; | ||
10591 | return 0; | ||
10592 | } | ||
10593 | _ACEOF | ||
10594 | for ac_lib in '' rt; do | ||
10595 | if test -z "$ac_lib"; then | ||
10596 | ac_res="none required" | ||
10597 | else | ||
10598 | ac_res=-l$ac_lib | ||
10599 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
10600 | fi | ||
10601 | if ac_fn_c_try_link "$LINENO"; then : | ||
10602 | ac_cv_search_clock_gettime=$ac_res | ||
10603 | fi | ||
10604 | rm -f core conftest.err conftest.$ac_objext \ | ||
10605 | conftest$ac_exeext | ||
10606 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
10607 | break | ||
10608 | fi | ||
10609 | done | ||
10610 | if ${ac_cv_search_clock_gettime+:} false; then : | ||
10611 | |||
10612 | else | ||
10613 | ac_cv_search_clock_gettime=no | ||
10614 | fi | ||
10615 | rm conftest.$ac_ext | ||
10616 | LIBS=$ac_func_search_save_LIBS | ||
10617 | fi | ||
10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 | ||
10619 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | ||
10620 | ac_res=$ac_cv_search_clock_gettime | ||
10621 | if test "$ac_res" != no; then : | ||
10622 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
10623 | |||
10624 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | ||
10625 | |||
10626 | fi | ||
10627 | |||
10628 | |||
10629 | ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default" | ||
10630 | if test "x$ac_cv_have_decl_getrusage" = xyes; then : | ||
10631 | for ac_func in getrusage | ||
10632 | do : | ||
10633 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | ||
10634 | if test "x$ac_cv_func_getrusage" = xyes; then : | ||
10635 | cat >>confdefs.h <<_ACEOF | ||
10636 | #define HAVE_GETRUSAGE 1 | ||
10637 | _ACEOF | ||
10638 | |||
10639 | fi | ||
10640 | done | ||
10641 | |||
10642 | fi | ||
10643 | |||
10644 | ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" " | ||
10645 | #ifdef HAVE_STRING_H | ||
10646 | # include <string.h> | ||
10647 | #endif | ||
10648 | |||
10649 | " | ||
10650 | if test "x$ac_cv_have_decl_strsep" = xyes; then : | ||
10651 | for ac_func in strsep | ||
10652 | do : | ||
10653 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | ||
10654 | if test "x$ac_cv_func_strsep" = xyes; then : | ||
10655 | cat >>confdefs.h <<_ACEOF | ||
10656 | #define HAVE_STRSEP 1 | ||
10657 | _ACEOF | ||
10658 | |||
10659 | fi | ||
10660 | done | ||
10661 | |||
10662 | fi | ||
10663 | |||
10664 | |||
10665 | ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h> | ||
10666 | |||
10667 | " | ||
10668 | if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then : | ||
10669 | $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h | ||
10670 | |||
10671 | else | ||
10672 | for ac_func in tcsendbreak | ||
10673 | do : | ||
10674 | ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak" | ||
10675 | if test "x$ac_cv_func_tcsendbreak" = xyes; then : | ||
10676 | cat >>confdefs.h <<_ACEOF | ||
10677 | #define HAVE_TCSENDBREAK 1 | ||
10678 | _ACEOF | ||
10679 | |||
10680 | fi | ||
10681 | done | ||
10682 | |||
10683 | fi | ||
10684 | |||
10685 | |||
10686 | ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h> | ||
10687 | " | ||
10688 | if test "x$ac_cv_have_decl_h_errno" = xyes; then : | ||
10689 | ac_have_decl=1 | ||
10690 | else | ||
10691 | ac_have_decl=0 | ||
10692 | fi | ||
10693 | |||
10694 | cat >>confdefs.h <<_ACEOF | ||
10695 | #define HAVE_DECL_H_ERRNO $ac_have_decl | ||
10696 | _ACEOF | ||
10697 | |||
10698 | |||
10699 | ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" " | ||
10700 | #include <sys/types.h> | ||
10701 | #include <sys/socket.h> | ||
10702 | |||
10703 | " | ||
10704 | if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then : | ||
10705 | ac_have_decl=1 | ||
10706 | else | ||
10707 | ac_have_decl=0 | ||
10708 | fi | ||
10709 | |||
10710 | cat >>confdefs.h <<_ACEOF | ||
10711 | #define HAVE_DECL_SHUT_RD $ac_have_decl | ||
10712 | _ACEOF | ||
10713 | |||
10714 | |||
10715 | ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" " | ||
10716 | #include <sys/types.h> | ||
10717 | #ifdef HAVE_SYS_STAT_H | ||
10718 | # include <sys/stat.h> | ||
10719 | #endif | ||
10720 | #ifdef HAVE_FCNTL_H | ||
10721 | # include <fcntl.h> | ||
10722 | #endif | ||
10723 | |||
10724 | " | ||
10725 | if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then : | ||
10726 | ac_have_decl=1 | ||
10727 | else | ||
10728 | ac_have_decl=0 | ||
10729 | fi | ||
10730 | |||
10731 | cat >>confdefs.h <<_ACEOF | ||
10732 | #define HAVE_DECL_O_NONBLOCK $ac_have_decl | ||
10733 | _ACEOF | ||
10734 | |||
10735 | |||
10736 | ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" " | ||
10737 | #include <sys/types.h> | ||
10738 | #include <sys/uio.h> | ||
10739 | #include <unistd.h> | ||
10740 | |||
10741 | " | ||
10742 | if test "x$ac_cv_have_decl_writev" = xyes; then : | ||
10743 | ac_have_decl=1 | ||
10744 | else | ||
10745 | ac_have_decl=0 | ||
10746 | fi | ||
10747 | |||
10748 | cat >>confdefs.h <<_ACEOF | ||
10749 | #define HAVE_DECL_WRITEV $ac_have_decl | ||
10750 | _ACEOF | ||
10751 | |||
10752 | |||
10753 | ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" " | ||
10754 | #include <sys/param.h> | ||
10755 | |||
10756 | " | ||
10757 | if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then : | ||
10758 | ac_have_decl=1 | ||
10759 | else | ||
10760 | ac_have_decl=0 | ||
10761 | fi | ||
10762 | |||
10763 | cat >>confdefs.h <<_ACEOF | ||
10764 | #define HAVE_DECL_MAXSYMLINKS $ac_have_decl | ||
10765 | _ACEOF | ||
10766 | |||
10767 | |||
10768 | ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" " | ||
10769 | #include <stddef.h> | ||
10770 | |||
10771 | " | ||
10772 | if test "x$ac_cv_have_decl_offsetof" = xyes; then : | ||
10773 | ac_have_decl=1 | ||
10774 | else | ||
10775 | ac_have_decl=0 | ||
10776 | fi | ||
10777 | |||
10778 | cat >>confdefs.h <<_ACEOF | ||
10779 | #define HAVE_DECL_OFFSETOF $ac_have_decl | ||
10780 | _ACEOF | ||
10781 | |||
10782 | |||
10783 | # extra bits for select(2) | ||
10784 | ac_fn_c_check_decl "$LINENO" "howmany" "ac_cv_have_decl_howmany" " | ||
10785 | #include <sys/param.h> | ||
10786 | #include <sys/types.h> | ||
10787 | #ifdef HAVE_SYS_SYSMACROS_H | ||
10788 | #include <sys/sysmacros.h> | ||
10789 | #endif | ||
10790 | #ifdef HAVE_SYS_SELECT_H | ||
10791 | #include <sys/select.h> | ||
10792 | #endif | ||
10793 | #ifdef HAVE_SYS_TIME_H | ||
10794 | #include <sys/time.h> | ||
10795 | #endif | ||
10796 | #ifdef HAVE_UNISTD_H | ||
10797 | #include <unistd.h> | ||
10798 | #endif | ||
10799 | |||
10800 | " | ||
10801 | if test "x$ac_cv_have_decl_howmany" = xyes; then : | ||
10802 | ac_have_decl=1 | ||
10803 | else | ||
10804 | ac_have_decl=0 | ||
10805 | fi | ||
10806 | |||
10807 | cat >>confdefs.h <<_ACEOF | ||
10808 | #define HAVE_DECL_HOWMANY $ac_have_decl | ||
10809 | _ACEOF | ||
10810 | ac_fn_c_check_decl "$LINENO" "NFDBITS" "ac_cv_have_decl_NFDBITS" " | ||
10811 | #include <sys/param.h> | ||
10812 | #include <sys/types.h> | ||
10813 | #ifdef HAVE_SYS_SYSMACROS_H | ||
10814 | #include <sys/sysmacros.h> | ||
10815 | #endif | ||
10816 | #ifdef HAVE_SYS_SELECT_H | ||
10817 | #include <sys/select.h> | ||
10818 | #endif | ||
10819 | #ifdef HAVE_SYS_TIME_H | ||
10820 | #include <sys/time.h> | ||
10821 | #endif | ||
10822 | #ifdef HAVE_UNISTD_H | ||
10823 | #include <unistd.h> | ||
10824 | #endif | ||
10825 | |||
10826 | " | ||
10827 | if test "x$ac_cv_have_decl_NFDBITS" = xyes; then : | ||
10828 | ac_have_decl=1 | ||
10829 | else | ||
10830 | ac_have_decl=0 | ||
10831 | fi | ||
10832 | |||
10833 | cat >>confdefs.h <<_ACEOF | ||
10834 | #define HAVE_DECL_NFDBITS $ac_have_decl | ||
10835 | _ACEOF | ||
10836 | |||
10837 | ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" " | ||
10838 | #include <sys/param.h> | ||
10839 | #include <sys/types.h> | ||
10840 | #ifdef HAVE_SYS_SELECT_H | ||
10841 | #include <sys/select.h> | ||
10842 | #endif | ||
10843 | #ifdef HAVE_SYS_TIME_H | ||
10844 | #include <sys/time.h> | ||
10845 | #endif | ||
10846 | #ifdef HAVE_UNISTD_H | ||
10847 | #include <unistd.h> | ||
10848 | #endif | ||
10849 | |||
10850 | " | ||
10851 | if test "x$ac_cv_type_fd_mask" = xyes; then : | ||
10852 | |||
10853 | cat >>confdefs.h <<_ACEOF | ||
10854 | #define HAVE_FD_MASK 1 | ||
10855 | _ACEOF | ||
10856 | |||
10857 | |||
10858 | fi | ||
10859 | |||
10860 | |||
10861 | for ac_func in setresuid | ||
10862 | do : | ||
10863 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" | ||
10864 | if test "x$ac_cv_func_setresuid" = xyes; then : | ||
10865 | cat >>confdefs.h <<_ACEOF | ||
10866 | #define HAVE_SETRESUID 1 | ||
10867 | _ACEOF | ||
10868 | |||
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5 | ||
10870 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
10871 | if test "$cross_compiling" = yes; then : | ||
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
10873 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
10874 | |||
10875 | else | ||
10876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10877 | /* end confdefs.h. */ | ||
10878 | |||
10879 | #include <stdlib.h> | ||
10880 | #include <errno.h> | ||
10881 | |||
10882 | int | ||
10883 | main () | ||
10884 | { | ||
10885 | |||
10886 | errno=0; | ||
10887 | setresuid(0,0,0); | ||
10888 | if (errno==ENOSYS) | ||
10889 | exit(1); | ||
10890 | else | ||
10891 | exit(0); | ||
10892 | |||
10893 | ; | ||
10894 | return 0; | ||
10895 | } | ||
10896 | _ACEOF | ||
10897 | if ac_fn_c_try_run "$LINENO"; then : | ||
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10899 | $as_echo "yes" >&6; } | ||
10900 | else | ||
10901 | |||
10902 | $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h | ||
10903 | |||
10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
10905 | $as_echo "not implemented" >&6; } | ||
10906 | fi | ||
10907 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10908 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10909 | fi | ||
10910 | |||
10911 | |||
10912 | fi | ||
10913 | done | ||
10914 | |||
10915 | |||
10916 | for ac_func in setresgid | ||
10917 | do : | ||
10918 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" | ||
10919 | if test "x$ac_cv_func_setresgid" = xyes; then : | ||
10920 | cat >>confdefs.h <<_ACEOF | ||
10921 | #define HAVE_SETRESGID 1 | ||
10922 | _ACEOF | ||
10923 | |||
10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5 | ||
10925 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
10926 | if test "$cross_compiling" = yes; then : | ||
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5 | ||
10928 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
10929 | |||
10930 | else | ||
10931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
10932 | /* end confdefs.h. */ | ||
10933 | |||
10934 | #include <stdlib.h> | ||
10935 | #include <errno.h> | ||
10936 | |||
10937 | int | ||
10938 | main () | ||
10939 | { | ||
10940 | |||
10941 | errno=0; | ||
10942 | setresgid(0,0,0); | ||
10943 | if (errno==ENOSYS) | ||
10944 | exit(1); | ||
10945 | else | ||
10946 | exit(0); | ||
10947 | |||
10948 | ; | ||
10949 | return 0; | ||
10950 | } | ||
10951 | _ACEOF | ||
10952 | if ac_fn_c_try_run "$LINENO"; then : | ||
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
10954 | $as_echo "yes" >&6; } | ||
10955 | else | ||
10956 | |||
10957 | $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h | ||
10958 | |||
10959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5 | ||
10960 | $as_echo "not implemented" >&6; } | ||
10961 | fi | ||
10962 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
10963 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
10964 | fi | ||
10965 | |||
10966 | |||
10967 | fi | ||
10968 | done | ||
10969 | |||
10970 | |||
10971 | for ac_func in gettimeofday time | ||
10972 | do : | ||
10973 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10974 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10975 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10976 | cat >>confdefs.h <<_ACEOF | ||
10977 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10978 | _ACEOF | ||
10979 | |||
10980 | fi | ||
10981 | done | ||
10982 | |||
10983 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
10984 | do : | ||
10985 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10986 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
10987 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
10988 | cat >>confdefs.h <<_ACEOF | ||
10989 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10990 | _ACEOF | ||
10991 | |||
10992 | fi | ||
10993 | done | ||
10994 | |||
10995 | for ac_func in utmpname | ||
10996 | do : | ||
10997 | ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname" | ||
10998 | if test "x$ac_cv_func_utmpname" = xyes; then : | ||
10999 | cat >>confdefs.h <<_ACEOF | ||
11000 | #define HAVE_UTMPNAME 1 | ||
11001 | _ACEOF | ||
11002 | |||
11003 | fi | ||
11004 | done | ||
11005 | |||
11006 | for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline | ||
11007 | do : | ||
11008 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11009 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11010 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11011 | cat >>confdefs.h <<_ACEOF | ||
11012 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11013 | _ACEOF | ||
11014 | |||
11015 | fi | ||
11016 | done | ||
11017 | |||
11018 | for ac_func in setutxdb setutxent utmpxname | ||
11019 | do : | ||
11020 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11021 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
11022 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
11023 | cat >>confdefs.h <<_ACEOF | ||
11024 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11025 | _ACEOF | ||
11026 | |||
11027 | fi | ||
11028 | done | ||
11029 | |||
11030 | for ac_func in getlastlogxbyname | ||
11031 | do : | ||
11032 | ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname" | ||
11033 | if test "x$ac_cv_func_getlastlogxbyname" = xyes; then : | ||
11034 | cat >>confdefs.h <<_ACEOF | ||
11035 | #define HAVE_GETLASTLOGXBYNAME 1 | ||
11036 | _ACEOF | ||
11037 | |||
11038 | fi | ||
11039 | done | ||
11040 | |||
11041 | |||
11042 | ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" | ||
11043 | if test "x$ac_cv_func_daemon" = xyes; then : | ||
11044 | |||
11045 | $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
11046 | |||
11047 | else | ||
11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5 | ||
11049 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
11050 | if ${ac_cv_lib_bsd_daemon+:} false; then : | ||
11051 | $as_echo_n "(cached) " >&6 | ||
11052 | else | ||
11053 | ac_check_lib_save_LIBS=$LIBS | ||
11054 | LIBS="-lbsd $LIBS" | ||
11055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11056 | /* end confdefs.h. */ | ||
11057 | |||
11058 | /* Override any GCC internal prototype to avoid an error. | ||
11059 | Use char because int might match the return type of a GCC | ||
11060 | builtin and then its argument prototype would still apply. */ | ||
11061 | #ifdef __cplusplus | ||
11062 | extern "C" | ||
11063 | #endif | ||
11064 | char daemon (); | ||
11065 | int | ||
11066 | main () | ||
11067 | { | ||
11068 | return daemon (); | ||
11069 | ; | ||
11070 | return 0; | ||
11071 | } | ||
11072 | _ACEOF | ||
11073 | if ac_fn_c_try_link "$LINENO"; then : | ||
11074 | ac_cv_lib_bsd_daemon=yes | ||
11075 | else | ||
11076 | ac_cv_lib_bsd_daemon=no | ||
11077 | fi | ||
11078 | rm -f core conftest.err conftest.$ac_objext \ | ||
11079 | conftest$ac_exeext conftest.$ac_ext | ||
11080 | LIBS=$ac_check_lib_save_LIBS | ||
11081 | fi | ||
11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5 | ||
11083 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
11084 | if test "x$ac_cv_lib_bsd_daemon" = xyes; then : | ||
11085 | LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h | ||
11086 | |||
11087 | fi | ||
11088 | |||
11089 | |||
11090 | fi | ||
11091 | |||
11092 | |||
11093 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | ||
11094 | if test "x$ac_cv_func_getpagesize" = xyes; then : | ||
11095 | |||
11096 | $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
11097 | |||
11098 | else | ||
11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5 | ||
11100 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
11101 | if ${ac_cv_lib_ucb_getpagesize+:} false; then : | ||
11102 | $as_echo_n "(cached) " >&6 | ||
11103 | else | ||
11104 | ac_check_lib_save_LIBS=$LIBS | ||
11105 | LIBS="-lucb $LIBS" | ||
11106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11107 | /* end confdefs.h. */ | ||
11108 | |||
11109 | /* Override any GCC internal prototype to avoid an error. | ||
11110 | Use char because int might match the return type of a GCC | ||
11111 | builtin and then its argument prototype would still apply. */ | ||
11112 | #ifdef __cplusplus | ||
11113 | extern "C" | ||
11114 | #endif | ||
11115 | char getpagesize (); | ||
11116 | int | ||
11117 | main () | ||
11118 | { | ||
11119 | return getpagesize (); | ||
11120 | ; | ||
11121 | return 0; | ||
11122 | } | ||
11123 | _ACEOF | ||
11124 | if ac_fn_c_try_link "$LINENO"; then : | ||
11125 | ac_cv_lib_ucb_getpagesize=yes | ||
11126 | else | ||
11127 | ac_cv_lib_ucb_getpagesize=no | ||
11128 | fi | ||
11129 | rm -f core conftest.err conftest.$ac_objext \ | ||
11130 | conftest$ac_exeext conftest.$ac_ext | ||
11131 | LIBS=$ac_check_lib_save_LIBS | ||
11132 | fi | ||
11133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
11134 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
11135 | if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then : | ||
11136 | LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h | ||
11137 | |||
11138 | fi | ||
11139 | |||
11140 | |||
11141 | fi | ||
11142 | |||
11143 | |||
11144 | # Check for broken snprintf | ||
11145 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5 | ||
11147 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
11148 | if test "$cross_compiling" = yes; then : | ||
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
11150 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
11151 | |||
11152 | else | ||
11153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11154 | /* end confdefs.h. */ | ||
11155 | #include <stdio.h> | ||
11156 | int | ||
11157 | main () | ||
11158 | { | ||
11159 | |||
11160 | char b[5]; | ||
11161 | snprintf(b,5,"123456789"); | ||
11162 | exit(b[4]!='\0'); | ||
11163 | |||
11164 | ; | ||
11165 | return 0; | ||
11166 | } | ||
11167 | _ACEOF | ||
11168 | if ac_fn_c_try_run "$LINENO"; then : | ||
11169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11170 | $as_echo "yes" >&6; } | ||
11171 | else | ||
11172 | |||
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11174 | $as_echo "no" >&6; } | ||
11175 | |||
11176 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
11177 | |||
11178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
11179 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
11180 | |||
11181 | fi | ||
11182 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11183 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11184 | fi | ||
11185 | |||
11186 | fi | ||
11187 | |||
11188 | # We depend on vsnprintf returning the right thing on overflow: the | ||
11189 | # number of characters it tried to create (as per SUSv3) | ||
11190 | if test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5 | ||
11192 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
11193 | if test "$cross_compiling" = yes; then : | ||
11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
11195 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
11196 | |||
11197 | else | ||
11198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11199 | /* end confdefs.h. */ | ||
11200 | |||
11201 | #include <sys/types.h> | ||
11202 | #include <stdio.h> | ||
11203 | #include <stdarg.h> | ||
11204 | |||
11205 | int x_snprintf(char *str, size_t count, const char *fmt, ...) | ||
11206 | { | ||
11207 | size_t ret; | ||
11208 | va_list ap; | ||
11209 | |||
11210 | va_start(ap, fmt); | ||
11211 | ret = vsnprintf(str, count, fmt, ap); | ||
11212 | va_end(ap); | ||
11213 | return ret; | ||
11214 | } | ||
11215 | |||
11216 | int | ||
11217 | main () | ||
11218 | { | ||
11219 | |||
11220 | char x[1]; | ||
11221 | if (x_snprintf(x, 1, "%s %d", "hello", 12345) != 11) | ||
11222 | return 1; | ||
11223 | if (x_snprintf(NULL, 0, "%s %d", "hello", 12345) != 11) | ||
11224 | return 1; | ||
11225 | return 0; | ||
11226 | |||
11227 | ; | ||
11228 | return 0; | ||
11229 | } | ||
11230 | _ACEOF | ||
11231 | if ac_fn_c_try_run "$LINENO"; then : | ||
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11233 | $as_echo "yes" >&6; } | ||
11234 | else | ||
11235 | |||
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11237 | $as_echo "no" >&6; } | ||
11238 | |||
11239 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
11240 | |||
11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
11242 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
11243 | |||
11244 | fi | ||
11245 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11246 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11247 | fi | ||
11248 | |||
11249 | fi | ||
11250 | |||
11251 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
11252 | # check that the fmt argument is const char * or just char *. | ||
11253 | # This is only useful for when BROKEN_SNPRINTF | ||
11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5 | ||
11255 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
11256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11257 | /* end confdefs.h. */ | ||
11258 | |||
11259 | #include <stdio.h> | ||
11260 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
11261 | |||
11262 | int | ||
11263 | main () | ||
11264 | { | ||
11265 | |||
11266 | snprintf(0, 0, 0); | ||
11267 | |||
11268 | ; | ||
11269 | return 0; | ||
11270 | } | ||
11271 | _ACEOF | ||
11272 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11274 | $as_echo "yes" >&6; } | ||
11275 | |||
11276 | $as_echo "#define SNPRINTF_CONST const" >>confdefs.h | ||
11277 | |||
11278 | else | ||
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11280 | $as_echo "no" >&6; } | ||
11281 | $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h | ||
11282 | |||
11283 | fi | ||
11284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11285 | |||
11286 | # Check for missing getpeereid (or equiv) support | ||
11287 | NO_PEERCHECK="" | ||
11288 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
11290 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
11291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11292 | /* end confdefs.h. */ | ||
11293 | |||
11294 | #include <sys/types.h> | ||
11295 | #include <sys/socket.h> | ||
11296 | int | ||
11297 | main () | ||
11298 | { | ||
11299 | int i = SO_PEERCRED; | ||
11300 | ; | ||
11301 | return 0; | ||
11302 | } | ||
11303 | _ACEOF | ||
11304 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11306 | $as_echo "yes" >&6; } | ||
11307 | |||
11308 | $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h | ||
11309 | |||
11310 | |||
11311 | else | ||
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11313 | $as_echo "no" >&6; } | ||
11314 | NO_PEERCHECK=1 | ||
11315 | |||
11316 | fi | ||
11317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11318 | fi | ||
11319 | |||
11320 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5 | ||
11322 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
11323 | if test "$cross_compiling" = yes; then : | ||
11324 | |||
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11326 | $as_echo "yes" >&6; } | ||
11327 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
11328 | |||
11329 | |||
11330 | |||
11331 | else | ||
11332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11333 | /* end confdefs.h. */ | ||
11334 | |||
11335 | #include <stdlib.h> | ||
11336 | |||
11337 | int | ||
11338 | main () | ||
11339 | { | ||
11340 | |||
11341 | char template[]="conftest.mkstemp-test"; | ||
11342 | if (mkstemp(template) == -1) | ||
11343 | exit(1); | ||
11344 | unlink(template); | ||
11345 | exit(0); | ||
11346 | |||
11347 | ; | ||
11348 | return 0; | ||
11349 | } | ||
11350 | _ACEOF | ||
11351 | if ac_fn_c_try_run "$LINENO"; then : | ||
11352 | |||
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11354 | $as_echo "no" >&6; } | ||
11355 | |||
11356 | else | ||
11357 | |||
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11359 | $as_echo "yes" >&6; } | ||
11360 | |||
11361 | $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h | ||
11362 | |||
11363 | |||
11364 | fi | ||
11365 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11366 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11367 | fi | ||
11368 | |||
11369 | fi | ||
11370 | |||
11371 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5 | ||
11373 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
11374 | if test "$cross_compiling" = yes; then : | ||
11375 | |||
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
11377 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
11378 | |||
11379 | |||
11380 | else | ||
11381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11382 | /* end confdefs.h. */ | ||
11383 | |||
11384 | #include <stdio.h> | ||
11385 | #include <sys/fcntl.h> | ||
11386 | #include <sys/types.h> | ||
11387 | #include <sys/wait.h> | ||
11388 | |||
11389 | int | ||
11390 | main () | ||
11391 | { | ||
11392 | |||
11393 | pid_t pid; | ||
11394 | int fd, ptyfd, ttyfd, status; | ||
11395 | |||
11396 | pid = fork(); | ||
11397 | if (pid < 0) { /* failed */ | ||
11398 | exit(1); | ||
11399 | } else if (pid > 0) { /* parent */ | ||
11400 | waitpid(pid, &status, 0); | ||
11401 | if (WIFEXITED(status)) | ||
11402 | exit(WEXITSTATUS(status)); | ||
11403 | else | ||
11404 | exit(2); | ||
11405 | } else { /* child */ | ||
11406 | close(0); close(1); close(2); | ||
11407 | setsid(); | ||
11408 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
11409 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
11410 | if (fd >= 0) | ||
11411 | exit(3); /* Acquired ctty: broken */ | ||
11412 | else | ||
11413 | exit(0); /* Did not acquire ctty: OK */ | ||
11414 | } | ||
11415 | |||
11416 | ; | ||
11417 | return 0; | ||
11418 | } | ||
11419 | _ACEOF | ||
11420 | if ac_fn_c_try_run "$LINENO"; then : | ||
11421 | |||
11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11423 | $as_echo "yes" >&6; } | ||
11424 | |||
11425 | else | ||
11426 | |||
11427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11428 | $as_echo "no" >&6; } | ||
11429 | $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h | ||
11430 | |||
11431 | |||
11432 | fi | ||
11433 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11434 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11435 | fi | ||
11436 | |||
11437 | fi | ||
11438 | |||
11439 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
11440 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
11441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
11442 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
11443 | if test "$cross_compiling" = yes; then : | ||
11444 | |||
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5 | ||
11446 | $as_echo "cross-compiling, assuming yes" >&6; } | ||
11447 | |||
11448 | |||
11449 | else | ||
11450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11451 | /* end confdefs.h. */ | ||
11452 | |||
11453 | #include <stdio.h> | ||
11454 | #include <sys/socket.h> | ||
11455 | #include <netdb.h> | ||
11456 | #include <errno.h> | ||
11457 | #include <netinet/in.h> | ||
11458 | |||
11459 | #define TEST_PORT "2222" | ||
11460 | |||
11461 | int | ||
11462 | main () | ||
11463 | { | ||
11464 | |||
11465 | int err, sock; | ||
11466 | struct addrinfo *gai_ai, *ai, hints; | ||
11467 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
11468 | |||
11469 | memset(&hints, 0, sizeof(hints)); | ||
11470 | hints.ai_family = PF_UNSPEC; | ||
11471 | hints.ai_socktype = SOCK_STREAM; | ||
11472 | hints.ai_flags = AI_PASSIVE; | ||
11473 | |||
11474 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
11475 | if (err != 0) { | ||
11476 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
11477 | exit(1); | ||
11478 | } | ||
11479 | |||
11480 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
11481 | if (ai->ai_family != AF_INET6) | ||
11482 | continue; | ||
11483 | |||
11484 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
11485 | sizeof(ntop), strport, sizeof(strport), | ||
11486 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
11487 | |||
11488 | if (err != 0) { | ||
11489 | if (err == EAI_SYSTEM) | ||
11490 | perror("getnameinfo EAI_SYSTEM"); | ||
11491 | else | ||
11492 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
11493 | gai_strerror(err)); | ||
11494 | exit(2); | ||
11495 | } | ||
11496 | |||
11497 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
11498 | if (sock < 0) | ||
11499 | perror("socket"); | ||
11500 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
11501 | if (errno == EBADF) | ||
11502 | exit(3); | ||
11503 | } | ||
11504 | } | ||
11505 | exit(0); | ||
11506 | |||
11507 | ; | ||
11508 | return 0; | ||
11509 | } | ||
11510 | _ACEOF | ||
11511 | if ac_fn_c_try_run "$LINENO"; then : | ||
11512 | |||
11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11514 | $as_echo "yes" >&6; } | ||
11515 | |||
11516 | else | ||
11517 | |||
11518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11519 | $as_echo "no" >&6; } | ||
11520 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
11521 | |||
11522 | |||
11523 | fi | ||
11524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11525 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11526 | fi | ||
11527 | |||
11528 | fi | ||
11529 | |||
11530 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
11531 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 | ||
11533 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
11534 | if test "$cross_compiling" = yes; then : | ||
11535 | |||
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5 | ||
11537 | $as_echo "cross-compiling, assuming no" >&6; } | ||
11538 | |||
11539 | |||
11540 | else | ||
11541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11542 | /* end confdefs.h. */ | ||
11543 | |||
11544 | #include <stdio.h> | ||
11545 | #include <sys/socket.h> | ||
11546 | #include <netdb.h> | ||
11547 | #include <errno.h> | ||
11548 | #include <netinet/in.h> | ||
11549 | |||
11550 | #define TEST_PORT "2222" | ||
11551 | |||
11552 | int | ||
11553 | main () | ||
11554 | { | ||
11555 | |||
11556 | int err, sock; | ||
11557 | struct addrinfo *gai_ai, *ai, hints; | ||
11558 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
11559 | |||
11560 | memset(&hints, 0, sizeof(hints)); | ||
11561 | hints.ai_family = PF_UNSPEC; | ||
11562 | hints.ai_socktype = SOCK_STREAM; | ||
11563 | hints.ai_flags = AI_PASSIVE; | ||
11564 | |||
11565 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
11566 | if (err != 0) { | ||
11567 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
11568 | exit(1); | ||
11569 | } | ||
11570 | |||
11571 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
11572 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
11573 | continue; | ||
11574 | |||
11575 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
11576 | sizeof(ntop), strport, sizeof(strport), | ||
11577 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
11578 | |||
11579 | if (ai->ai_family == AF_INET && err != 0) { | ||
11580 | perror("getnameinfo"); | ||
11581 | exit(2); | ||
11582 | } | ||
11583 | } | ||
11584 | exit(0); | ||
11585 | |||
11586 | ; | ||
11587 | return 0; | ||
11588 | } | ||
11589 | _ACEOF | ||
11590 | if ac_fn_c_try_run "$LINENO"; then : | ||
11591 | |||
11592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11593 | $as_echo "yes" >&6; } | ||
11594 | |||
11595 | $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h | ||
11596 | |||
11597 | |||
11598 | else | ||
11599 | |||
11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11601 | $as_echo "no" >&6; } | ||
11602 | $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h | ||
11603 | |||
11604 | |||
11605 | fi | ||
11606 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11607 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11608 | fi | ||
11609 | |||
11610 | fi | ||
11611 | |||
11612 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5 | ||
11614 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
11615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11616 | /* end confdefs.h. */ | ||
11617 | #include <shadow.h> | ||
11618 | int | ||
11619 | main () | ||
11620 | { | ||
11621 | exit(0); | ||
11622 | ; | ||
11623 | return 0; | ||
11624 | } | ||
11625 | _ACEOF | ||
11626 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11627 | |||
11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11629 | $as_echo "no" >&6; } | ||
11630 | |||
11631 | else | ||
11632 | |||
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11634 | $as_echo "yes" >&6; } | ||
11635 | |||
11636 | $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h | ||
11637 | |||
11638 | |||
11639 | |||
11640 | fi | ||
11641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11642 | fi | ||
11643 | |||
11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | ||
11645 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | ||
11646 | if ${ac_cv_func_getpgrp_void+:} false; then : | ||
11647 | $as_echo_n "(cached) " >&6 | ||
11648 | else | ||
11649 | # Use it with a single arg. | ||
11650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11651 | /* end confdefs.h. */ | ||
11652 | $ac_includes_default | ||
11653 | int | ||
11654 | main () | ||
11655 | { | ||
11656 | getpgrp (0); | ||
11657 | ; | ||
11658 | return 0; | ||
11659 | } | ||
11660 | _ACEOF | ||
11661 | if ac_fn_c_try_compile "$LINENO"; then : | ||
11662 | ac_cv_func_getpgrp_void=no | ||
11663 | else | ||
11664 | ac_cv_func_getpgrp_void=yes | ||
11665 | fi | ||
11666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11667 | |||
11668 | fi | ||
11669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | ||
11670 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
11671 | if test $ac_cv_func_getpgrp_void = yes; then | ||
11672 | |||
11673 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | ||
11674 | |||
11675 | fi | ||
11676 | |||
11677 | |||
11678 | # Search for OpenSSL | ||
11679 | saved_CPPFLAGS="$CPPFLAGS" | ||
11680 | saved_LDFLAGS="$LDFLAGS" | ||
11681 | |||
11682 | # Check whether --with-ssl-dir was given. | ||
11683 | if test "${with_ssl_dir+set}" = set; then : | ||
11684 | withval=$with_ssl_dir; | ||
11685 | if test "x$withval" != "xno" ; then | ||
11686 | case "$withval" in | ||
11687 | # Relative paths | ||
11688 | ./*|../*) withval="`pwd`/$withval" | ||
11689 | esac | ||
11690 | if test -d "$withval/lib"; then | ||
11691 | if test -n "${need_dash_r}"; then | ||
11692 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
11693 | else | ||
11694 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
11695 | fi | ||
11696 | elif test -d "$withval/lib64"; then | ||
11697 | if test -n "${need_dash_r}"; then | ||
11698 | LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}" | ||
11699 | else | ||
11700 | LDFLAGS="-L${withval}/lib64 ${LDFLAGS}" | ||
11701 | fi | ||
11702 | else | ||
11703 | if test -n "${need_dash_r}"; then | ||
11704 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
11705 | else | ||
11706 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
11707 | fi | ||
11708 | fi | ||
11709 | if test -d "$withval/include"; then | ||
11710 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
11711 | else | ||
11712 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
11713 | fi | ||
11714 | fi | ||
11715 | |||
11716 | |||
11717 | fi | ||
11718 | |||
11719 | LIBS="-lcrypto $LIBS" | ||
11720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11721 | /* end confdefs.h. */ | ||
11722 | |||
11723 | /* Override any GCC internal prototype to avoid an error. | ||
11724 | Use char because int might match the return type of a GCC | ||
11725 | builtin and then its argument prototype would still apply. */ | ||
11726 | #ifdef __cplusplus | ||
11727 | extern "C" | ||
11728 | #endif | ||
11729 | char RAND_add (); | ||
11730 | int | ||
11731 | main () | ||
11732 | { | ||
11733 | return RAND_add (); | ||
11734 | ; | ||
11735 | return 0; | ||
11736 | } | ||
11737 | _ACEOF | ||
11738 | if ac_fn_c_try_link "$LINENO"; then : | ||
11739 | |||
11740 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
11741 | |||
11742 | else | ||
11743 | |||
11744 | if test -n "${need_dash_r}"; then | ||
11745 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
11746 | else | ||
11747 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
11748 | fi | ||
11749 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
11750 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" | ||
11751 | if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : | ||
11752 | |||
11753 | else | ||
11754 | as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5 | ||
11755 | fi | ||
11756 | |||
11757 | |||
11758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11759 | /* end confdefs.h. */ | ||
11760 | |||
11761 | /* Override any GCC internal prototype to avoid an error. | ||
11762 | Use char because int might match the return type of a GCC | ||
11763 | builtin and then its argument prototype would still apply. */ | ||
11764 | #ifdef __cplusplus | ||
11765 | extern "C" | ||
11766 | #endif | ||
11767 | char RAND_add (); | ||
11768 | int | ||
11769 | main () | ||
11770 | { | ||
11771 | return RAND_add (); | ||
11772 | ; | ||
11773 | return 0; | ||
11774 | } | ||
11775 | _ACEOF | ||
11776 | if ac_fn_c_try_link "$LINENO"; then : | ||
11777 | $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | ||
11778 | |||
11779 | else | ||
11780 | |||
11781 | as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5 | ||
11782 | |||
11783 | |||
11784 | fi | ||
11785 | rm -f core conftest.err conftest.$ac_objext \ | ||
11786 | conftest$ac_exeext conftest.$ac_ext | ||
11787 | |||
11788 | |||
11789 | fi | ||
11790 | rm -f core conftest.err conftest.$ac_objext \ | ||
11791 | conftest$ac_exeext conftest.$ac_ext | ||
11792 | |||
11793 | # Determine OpenSSL header version | ||
11794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5 | ||
11795 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
11796 | if test "$cross_compiling" = yes; then : | ||
11797 | |||
11798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
11799 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
11800 | |||
11801 | |||
11802 | else | ||
11803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11804 | /* end confdefs.h. */ | ||
11805 | |||
11806 | #include <stdio.h> | ||
11807 | #include <string.h> | ||
11808 | #include <openssl/opensslv.h> | ||
11809 | #define DATA "conftest.sslincver" | ||
11810 | |||
11811 | int | ||
11812 | main () | ||
11813 | { | ||
11814 | |||
11815 | FILE *fd; | ||
11816 | int rc; | ||
11817 | |||
11818 | fd = fopen(DATA,"w"); | ||
11819 | if(fd == NULL) | ||
11820 | exit(1); | ||
11821 | |||
11822 | if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
11823 | exit(1); | ||
11824 | |||
11825 | exit(0); | ||
11826 | |||
11827 | ; | ||
11828 | return 0; | ||
11829 | } | ||
11830 | _ACEOF | ||
11831 | if ac_fn_c_try_run "$LINENO"; then : | ||
11832 | |||
11833 | ssl_header_ver=`cat conftest.sslincver` | ||
11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5 | ||
11835 | $as_echo "$ssl_header_ver" >&6; } | ||
11836 | |||
11837 | else | ||
11838 | |||
11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
11840 | $as_echo "not found" >&6; } | ||
11841 | as_fn_error $? "OpenSSL version header not found." "$LINENO" 5 | ||
11842 | |||
11843 | fi | ||
11844 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11845 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11846 | fi | ||
11847 | |||
11848 | |||
11849 | # Determine OpenSSL library version | ||
11850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5 | ||
11851 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
11852 | if test "$cross_compiling" = yes; then : | ||
11853 | |||
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
11855 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
11856 | |||
11857 | |||
11858 | else | ||
11859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11860 | /* end confdefs.h. */ | ||
11861 | |||
11862 | #include <stdio.h> | ||
11863 | #include <string.h> | ||
11864 | #include <openssl/opensslv.h> | ||
11865 | #include <openssl/crypto.h> | ||
11866 | #define DATA "conftest.ssllibver" | ||
11867 | |||
11868 | int | ||
11869 | main () | ||
11870 | { | ||
11871 | |||
11872 | FILE *fd; | ||
11873 | int rc; | ||
11874 | |||
11875 | fd = fopen(DATA,"w"); | ||
11876 | if(fd == NULL) | ||
11877 | exit(1); | ||
11878 | |||
11879 | if ((rc = fprintf(fd ,"%08x (%s)\n", SSLeay(), | ||
11880 | SSLeay_version(SSLEAY_VERSION))) <0) | ||
11881 | exit(1); | ||
11882 | |||
11883 | exit(0); | ||
11884 | |||
11885 | ; | ||
11886 | return 0; | ||
11887 | } | ||
11888 | _ACEOF | ||
11889 | if ac_fn_c_try_run "$LINENO"; then : | ||
11890 | |||
11891 | ssl_library_ver=`cat conftest.ssllibver` | ||
11892 | # Check version is supported. | ||
11893 | case "$ssl_library_ver" in | ||
11894 | 0090[0-7]*|009080[0-5]*) | ||
11895 | as_fn_error $? "OpenSSL >= 0.9.8f required" "$LINENO" 5 | ||
11896 | ;; | ||
11897 | *) ;; | ||
11898 | esac | ||
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5 | ||
11900 | $as_echo "$ssl_library_ver" >&6; } | ||
11901 | |||
11902 | else | ||
11903 | |||
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
11905 | $as_echo "not found" >&6; } | ||
11906 | as_fn_error $? "OpenSSL library not found." "$LINENO" 5 | ||
11907 | |||
11908 | fi | ||
11909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11910 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11911 | fi | ||
11912 | |||
11913 | |||
11914 | # XXX make --without-openssl work | ||
11915 | |||
11916 | cat >>confdefs.h <<_ACEOF | ||
11917 | #define WITH_OPENSSL 1 | ||
11918 | _ACEOF | ||
11919 | |||
11920 | |||
11921 | cat >>confdefs.h <<_ACEOF | ||
11922 | #define WITH_SSH1 1 | ||
11923 | _ACEOF | ||
11924 | |||
11925 | |||
11926 | |||
11927 | # Check whether --with-openssl-header-check was given. | ||
11928 | if test "${with_openssl_header_check+set}" = set; then : | ||
11929 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
11930 | openssl_check_nonfatal=1 | ||
11931 | fi | ||
11932 | |||
11933 | |||
11934 | fi | ||
11935 | |||
11936 | |||
11937 | # Sanity check OpenSSL headers | ||
11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5 | ||
11939 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
11940 | if test "$cross_compiling" = yes; then : | ||
11941 | |||
11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
11943 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
11944 | |||
11945 | |||
11946 | else | ||
11947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11948 | /* end confdefs.h. */ | ||
11949 | |||
11950 | #include <string.h> | ||
11951 | #include <openssl/opensslv.h> | ||
11952 | |||
11953 | int | ||
11954 | main () | ||
11955 | { | ||
11956 | |||
11957 | exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); | ||
11958 | |||
11959 | ; | ||
11960 | return 0; | ||
11961 | } | ||
11962 | _ACEOF | ||
11963 | if ac_fn_c_try_run "$LINENO"; then : | ||
11964 | |||
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
11966 | $as_echo "yes" >&6; } | ||
11967 | |||
11968 | else | ||
11969 | |||
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
11971 | $as_echo "no" >&6; } | ||
11972 | if test "x$openssl_check_nonfatal" = "x"; then | ||
11973 | as_fn_error $? "Your OpenSSL headers do not match your | ||
11974 | library. Check config.log for details. | ||
11975 | If you are sure your installation is consistent, you can disable the check | ||
11976 | by running \"./configure --without-openssl-header-check\". | ||
11977 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
11978 | " "$LINENO" 5 | ||
11979 | else | ||
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your | ||
11981 | library. Check config.log for details. | ||
11982 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
11983 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
11984 | library. Check config.log for details. | ||
11985 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
11986 | fi | ||
11987 | |||
11988 | fi | ||
11989 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
11990 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
11991 | fi | ||
11992 | |||
11993 | |||
11994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5 | ||
11995 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
11996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
11997 | /* end confdefs.h. */ | ||
11998 | #include <openssl/evp.h> | ||
11999 | int | ||
12000 | main () | ||
12001 | { | ||
12002 | SSLeay_add_all_algorithms(); | ||
12003 | ; | ||
12004 | return 0; | ||
12005 | } | ||
12006 | _ACEOF | ||
12007 | if ac_fn_c_try_link "$LINENO"; then : | ||
12008 | |||
12009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12010 | $as_echo "yes" >&6; } | ||
12011 | |||
12012 | else | ||
12013 | |||
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12015 | $as_echo "no" >&6; } | ||
12016 | saved_LIBS="$LIBS" | ||
12017 | LIBS="$LIBS -ldl" | ||
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5 | ||
12019 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
12020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12021 | /* end confdefs.h. */ | ||
12022 | #include <openssl/evp.h> | ||
12023 | int | ||
12024 | main () | ||
12025 | { | ||
12026 | SSLeay_add_all_algorithms(); | ||
12027 | ; | ||
12028 | return 0; | ||
12029 | } | ||
12030 | _ACEOF | ||
12031 | if ac_fn_c_try_link "$LINENO"; then : | ||
12032 | |||
12033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12034 | $as_echo "yes" >&6; } | ||
12035 | |||
12036 | else | ||
12037 | |||
12038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12039 | $as_echo "no" >&6; } | ||
12040 | LIBS="$saved_LIBS" | ||
12041 | |||
12042 | |||
12043 | fi | ||
12044 | rm -f core conftest.err conftest.$ac_objext \ | ||
12045 | conftest$ac_exeext conftest.$ac_ext | ||
12046 | |||
12047 | |||
12048 | fi | ||
12049 | rm -f core conftest.err conftest.$ac_objext \ | ||
12050 | conftest$ac_exeext conftest.$ac_ext | ||
12051 | |||
12052 | for ac_func in \ | ||
12053 | BN_is_prime_ex \ | ||
12054 | DSA_generate_parameters_ex \ | ||
12055 | EVP_DigestInit_ex \ | ||
12056 | EVP_DigestFinal_ex \ | ||
12057 | EVP_MD_CTX_init \ | ||
12058 | EVP_MD_CTX_cleanup \ | ||
12059 | EVP_MD_CTX_copy_ex \ | ||
12060 | HMAC_CTX_init \ | ||
12061 | RSA_generate_key_ex \ | ||
12062 | RSA_get_default_method \ | ||
12063 | |||
12064 | do : | ||
12065 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12066 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12067 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12068 | cat >>confdefs.h <<_ACEOF | ||
12069 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12070 | _ACEOF | ||
12071 | |||
12072 | fi | ||
12073 | done | ||
12074 | |||
12075 | |||
12076 | |||
12077 | # Check whether --with-ssl-engine was given. | ||
12078 | if test "${with_ssl_engine+set}" = set; then : | ||
12079 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5 | ||
12081 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
12082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12083 | /* end confdefs.h. */ | ||
12084 | |||
12085 | #include <openssl/engine.h> | ||
12086 | |||
12087 | int | ||
12088 | main () | ||
12089 | { | ||
12090 | |||
12091 | ENGINE_load_builtin_engines(); | ||
12092 | ENGINE_register_all_complete(); | ||
12093 | |||
12094 | ; | ||
12095 | return 0; | ||
12096 | } | ||
12097 | _ACEOF | ||
12098 | if ac_fn_c_try_compile "$LINENO"; then : | ||
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12100 | $as_echo "yes" >&6; } | ||
12101 | |||
12102 | $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h | ||
12103 | |||
12104 | |||
12105 | else | ||
12106 | as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5 | ||
12107 | |||
12108 | fi | ||
12109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12110 | fi | ||
12111 | |||
12112 | fi | ||
12113 | |||
12114 | |||
12115 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5 | ||
12117 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
12118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12119 | /* end confdefs.h. */ | ||
12120 | |||
12121 | #include <string.h> | ||
12122 | #include <openssl/evp.h> | ||
12123 | |||
12124 | int | ||
12125 | main () | ||
12126 | { | ||
12127 | |||
12128 | exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL); | ||
12129 | |||
12130 | ; | ||
12131 | return 0; | ||
12132 | } | ||
12133 | _ACEOF | ||
12134 | if ac_fn_c_try_link "$LINENO"; then : | ||
12135 | |||
12136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12137 | $as_echo "no" >&6; } | ||
12138 | |||
12139 | else | ||
12140 | |||
12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12142 | $as_echo "yes" >&6; } | ||
12143 | |||
12144 | $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h | ||
12145 | |||
12146 | |||
12147 | |||
12148 | fi | ||
12149 | rm -f core conftest.err conftest.$ac_objext \ | ||
12150 | conftest$ac_exeext conftest.$ac_ext | ||
12151 | |||
12152 | # Check for OpenSSL with EVP_aes_*ctr | ||
12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES CTR via EVP" >&5 | ||
12154 | $as_echo_n "checking whether OpenSSL has AES CTR via EVP... " >&6; } | ||
12155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12156 | /* end confdefs.h. */ | ||
12157 | |||
12158 | #include <string.h> | ||
12159 | #include <openssl/evp.h> | ||
12160 | |||
12161 | int | ||
12162 | main () | ||
12163 | { | ||
12164 | |||
12165 | exit(EVP_aes_128_ctr() == NULL || | ||
12166 | EVP_aes_192_cbc() == NULL || | ||
12167 | EVP_aes_256_cbc() == NULL); | ||
12168 | |||
12169 | ; | ||
12170 | return 0; | ||
12171 | } | ||
12172 | _ACEOF | ||
12173 | if ac_fn_c_try_link "$LINENO"; then : | ||
12174 | |||
12175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12176 | $as_echo "yes" >&6; } | ||
12177 | |||
12178 | $as_echo "#define OPENSSL_HAVE_EVPCTR 1" >>confdefs.h | ||
12179 | |||
12180 | |||
12181 | else | ||
12182 | |||
12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12184 | $as_echo "no" >&6; } | ||
12185 | |||
12186 | |||
12187 | fi | ||
12188 | rm -f core conftest.err conftest.$ac_objext \ | ||
12189 | conftest$ac_exeext conftest.$ac_ext | ||
12190 | |||
12191 | # Check for OpenSSL with EVP_aes_*gcm | ||
12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has AES GCM via EVP" >&5 | ||
12193 | $as_echo_n "checking whether OpenSSL has AES GCM via EVP... " >&6; } | ||
12194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12195 | /* end confdefs.h. */ | ||
12196 | |||
12197 | #include <string.h> | ||
12198 | #include <openssl/evp.h> | ||
12199 | |||
12200 | int | ||
12201 | main () | ||
12202 | { | ||
12203 | |||
12204 | exit(EVP_aes_128_gcm() == NULL || | ||
12205 | EVP_aes_256_gcm() == NULL || | ||
12206 | EVP_CTRL_GCM_SET_IV_FIXED == 0 || | ||
12207 | EVP_CTRL_GCM_IV_GEN == 0 || | ||
12208 | EVP_CTRL_GCM_SET_TAG == 0 || | ||
12209 | EVP_CTRL_GCM_GET_TAG == 0 || | ||
12210 | EVP_CIPHER_CTX_ctrl(NULL, 0, 0, NULL) == 0); | ||
12211 | |||
12212 | ; | ||
12213 | return 0; | ||
12214 | } | ||
12215 | _ACEOF | ||
12216 | if ac_fn_c_try_link "$LINENO"; then : | ||
12217 | |||
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12219 | $as_echo "yes" >&6; } | ||
12220 | |||
12221 | $as_echo "#define OPENSSL_HAVE_EVPGCM 1" >>confdefs.h | ||
12222 | |||
12223 | |||
12224 | else | ||
12225 | |||
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12227 | $as_echo "no" >&6; } | ||
12228 | unsupported_algorithms="$unsupported_cipers \ | ||
12229 | aes128-gcm@openssh.com aes256-gcm@openssh.com" | ||
12230 | |||
12231 | |||
12232 | fi | ||
12233 | rm -f core conftest.err conftest.$ac_objext \ | ||
12234 | conftest$ac_exeext conftest.$ac_ext | ||
12235 | |||
12236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EVP_CIPHER_CTX_ctrl" >&5 | ||
12237 | $as_echo_n "checking for library containing EVP_CIPHER_CTX_ctrl... " >&6; } | ||
12238 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
12239 | $as_echo_n "(cached) " >&6 | ||
12240 | else | ||
12241 | ac_func_search_save_LIBS=$LIBS | ||
12242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12243 | /* end confdefs.h. */ | ||
12244 | |||
12245 | /* Override any GCC internal prototype to avoid an error. | ||
12246 | Use char because int might match the return type of a GCC | ||
12247 | builtin and then its argument prototype would still apply. */ | ||
12248 | #ifdef __cplusplus | ||
12249 | extern "C" | ||
12250 | #endif | ||
12251 | char EVP_CIPHER_CTX_ctrl (); | ||
12252 | int | ||
12253 | main () | ||
12254 | { | ||
12255 | return EVP_CIPHER_CTX_ctrl (); | ||
12256 | ; | ||
12257 | return 0; | ||
12258 | } | ||
12259 | _ACEOF | ||
12260 | for ac_lib in '' crypto; do | ||
12261 | if test -z "$ac_lib"; then | ||
12262 | ac_res="none required" | ||
12263 | else | ||
12264 | ac_res=-l$ac_lib | ||
12265 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
12266 | fi | ||
12267 | if ac_fn_c_try_link "$LINENO"; then : | ||
12268 | ac_cv_search_EVP_CIPHER_CTX_ctrl=$ac_res | ||
12269 | fi | ||
12270 | rm -f core conftest.err conftest.$ac_objext \ | ||
12271 | conftest$ac_exeext | ||
12272 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
12273 | break | ||
12274 | fi | ||
12275 | done | ||
12276 | if ${ac_cv_search_EVP_CIPHER_CTX_ctrl+:} false; then : | ||
12277 | |||
12278 | else | ||
12279 | ac_cv_search_EVP_CIPHER_CTX_ctrl=no | ||
12280 | fi | ||
12281 | rm conftest.$ac_ext | ||
12282 | LIBS=$ac_func_search_save_LIBS | ||
12283 | fi | ||
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EVP_CIPHER_CTX_ctrl" >&5 | ||
12285 | $as_echo "$ac_cv_search_EVP_CIPHER_CTX_ctrl" >&6; } | ||
12286 | ac_res=$ac_cv_search_EVP_CIPHER_CTX_ctrl | ||
12287 | if test "$ac_res" != no; then : | ||
12288 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
12289 | |||
12290 | $as_echo "#define HAVE_EVP_CIPHER_CTX_CTRL 1" >>confdefs.h | ||
12291 | |||
12292 | fi | ||
12293 | |||
12294 | |||
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5 | ||
12296 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
12297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12298 | /* end confdefs.h. */ | ||
12299 | |||
12300 | #include <string.h> | ||
12301 | #include <openssl/evp.h> | ||
12302 | |||
12303 | int | ||
12304 | main () | ||
12305 | { | ||
12306 | |||
12307 | if(EVP_DigestUpdate(NULL, NULL,0)) | ||
12308 | exit(0); | ||
12309 | |||
12310 | ; | ||
12311 | return 0; | ||
12312 | } | ||
12313 | _ACEOF | ||
12314 | if ac_fn_c_try_link "$LINENO"; then : | ||
12315 | |||
12316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12317 | $as_echo "yes" >&6; } | ||
12318 | |||
12319 | else | ||
12320 | |||
12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12322 | $as_echo "no" >&6; } | ||
12323 | |||
12324 | $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h | ||
12325 | |||
12326 | |||
12327 | |||
12328 | fi | ||
12329 | rm -f core conftest.err conftest.$ac_objext \ | ||
12330 | conftest$ac_exeext conftest.$ac_ext | ||
12331 | |||
12332 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
12333 | # because the system crypt() is more featureful. | ||
12334 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
12336 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
12337 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
12338 | $as_echo_n "(cached) " >&6 | ||
12339 | else | ||
12340 | ac_check_lib_save_LIBS=$LIBS | ||
12341 | LIBS="-lcrypt $LIBS" | ||
12342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12343 | /* end confdefs.h. */ | ||
12344 | |||
12345 | /* Override any GCC internal prototype to avoid an error. | ||
12346 | Use char because int might match the return type of a GCC | ||
12347 | builtin and then its argument prototype would still apply. */ | ||
12348 | #ifdef __cplusplus | ||
12349 | extern "C" | ||
12350 | #endif | ||
12351 | char crypt (); | ||
12352 | int | ||
12353 | main () | ||
12354 | { | ||
12355 | return crypt (); | ||
12356 | ; | ||
12357 | return 0; | ||
12358 | } | ||
12359 | _ACEOF | ||
12360 | if ac_fn_c_try_link "$LINENO"; then : | ||
12361 | ac_cv_lib_crypt_crypt=yes | ||
12362 | else | ||
12363 | ac_cv_lib_crypt_crypt=no | ||
12364 | fi | ||
12365 | rm -f core conftest.err conftest.$ac_objext \ | ||
12366 | conftest$ac_exeext conftest.$ac_ext | ||
12367 | LIBS=$ac_check_lib_save_LIBS | ||
12368 | fi | ||
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
12370 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
12371 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
12372 | cat >>confdefs.h <<_ACEOF | ||
12373 | #define HAVE_LIBCRYPT 1 | ||
12374 | _ACEOF | ||
12375 | |||
12376 | LIBS="-lcrypt $LIBS" | ||
12377 | |||
12378 | fi | ||
12379 | |||
12380 | fi | ||
12381 | |||
12382 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
12383 | # version in OpenSSL. | ||
12384 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 | ||
12386 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
12387 | if ${ac_cv_lib_crypt_crypt+:} false; then : | ||
12388 | $as_echo_n "(cached) " >&6 | ||
12389 | else | ||
12390 | ac_check_lib_save_LIBS=$LIBS | ||
12391 | LIBS="-lcrypt $LIBS" | ||
12392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12393 | /* end confdefs.h. */ | ||
12394 | |||
12395 | /* Override any GCC internal prototype to avoid an error. | ||
12396 | Use char because int might match the return type of a GCC | ||
12397 | builtin and then its argument prototype would still apply. */ | ||
12398 | #ifdef __cplusplus | ||
12399 | extern "C" | ||
12400 | #endif | ||
12401 | char crypt (); | ||
12402 | int | ||
12403 | main () | ||
12404 | { | ||
12405 | return crypt (); | ||
12406 | ; | ||
12407 | return 0; | ||
12408 | } | ||
12409 | _ACEOF | ||
12410 | if ac_fn_c_try_link "$LINENO"; then : | ||
12411 | ac_cv_lib_crypt_crypt=yes | ||
12412 | else | ||
12413 | ac_cv_lib_crypt_crypt=no | ||
12414 | fi | ||
12415 | rm -f core conftest.err conftest.$ac_objext \ | ||
12416 | conftest$ac_exeext conftest.$ac_ext | ||
12417 | LIBS=$ac_check_lib_save_LIBS | ||
12418 | fi | ||
12419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | ||
12420 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
12421 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | ||
12422 | LIBS="$LIBS -lcrypt" | ||
12423 | fi | ||
12424 | |||
12425 | fi | ||
12426 | for ac_func in crypt DES_crypt | ||
12427 | do : | ||
12428 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12429 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12430 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12431 | cat >>confdefs.h <<_ACEOF | ||
12432 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12433 | _ACEOF | ||
12434 | |||
12435 | fi | ||
12436 | done | ||
12437 | |||
12438 | |||
12439 | # Search for SHA256 support in libc and/or OpenSSL | ||
12440 | for ac_func in SHA256_Update EVP_sha256 | ||
12441 | do : | ||
12442 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12443 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12444 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12445 | cat >>confdefs.h <<_ACEOF | ||
12446 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12447 | _ACEOF | ||
12448 | |||
12449 | else | ||
12450 | unsupported_algorithms="$unsupported_algorithms \ | ||
12451 | hmac-sha2-256 hmac-sha2-512 \ | ||
12452 | diffie-hellman-group-exchange-sha256 \ | ||
12453 | hmac-sha2-256-etm@openssh.com hmac-sha2-512-etm@openssh.com" | ||
12454 | |||
12455 | |||
12456 | fi | ||
12457 | done | ||
12458 | |||
12459 | # Search for RIPE-MD support in OpenSSL | ||
12460 | for ac_func in EVP_ripemd160 | ||
12461 | do : | ||
12462 | ac_fn_c_check_func "$LINENO" "EVP_ripemd160" "ac_cv_func_EVP_ripemd160" | ||
12463 | if test "x$ac_cv_func_EVP_ripemd160" = xyes; then : | ||
12464 | cat >>confdefs.h <<_ACEOF | ||
12465 | #define HAVE_EVP_RIPEMD160 1 | ||
12466 | _ACEOF | ||
12467 | |||
12468 | else | ||
12469 | unsupported_algorithms="$unsupported_algorithms \ | ||
12470 | hmac-ripemd160 | ||
12471 | hmac-ripemd160@openssh.com | ||
12472 | hmac-ripemd160-etm@openssh.com" | ||
12473 | |||
12474 | |||
12475 | fi | ||
12476 | done | ||
12477 | |||
12478 | |||
12479 | # Check complete ECC support in OpenSSL | ||
12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_X9_62_prime256v1" >&5 | ||
12481 | $as_echo_n "checking whether OpenSSL has NID_X9_62_prime256v1... " >&6; } | ||
12482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12483 | /* end confdefs.h. */ | ||
12484 | |||
12485 | #include <openssl/ec.h> | ||
12486 | #include <openssl/ecdh.h> | ||
12487 | #include <openssl/ecdsa.h> | ||
12488 | #include <openssl/evp.h> | ||
12489 | #include <openssl/objects.h> | ||
12490 | #include <openssl/opensslv.h> | ||
12491 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
12492 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
12493 | #endif | ||
12494 | |||
12495 | int | ||
12496 | main () | ||
12497 | { | ||
12498 | |||
12499 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); | ||
12500 | const EVP_MD *m = EVP_sha256(); /* We need this too */ | ||
12501 | |||
12502 | ; | ||
12503 | return 0; | ||
12504 | } | ||
12505 | _ACEOF | ||
12506 | if ac_fn_c_try_link "$LINENO"; then : | ||
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12508 | $as_echo "yes" >&6; } | ||
12509 | enable_nistp256=1 | ||
12510 | else | ||
12511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12512 | $as_echo "no" >&6; } | ||
12513 | |||
12514 | fi | ||
12515 | rm -f core conftest.err conftest.$ac_objext \ | ||
12516 | conftest$ac_exeext conftest.$ac_ext | ||
12517 | |||
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp384r1" >&5 | ||
12519 | $as_echo_n "checking whether OpenSSL has NID_secp384r1... " >&6; } | ||
12520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12521 | /* end confdefs.h. */ | ||
12522 | |||
12523 | #include <openssl/ec.h> | ||
12524 | #include <openssl/ecdh.h> | ||
12525 | #include <openssl/ecdsa.h> | ||
12526 | #include <openssl/evp.h> | ||
12527 | #include <openssl/objects.h> | ||
12528 | #include <openssl/opensslv.h> | ||
12529 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
12530 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
12531 | #endif | ||
12532 | |||
12533 | int | ||
12534 | main () | ||
12535 | { | ||
12536 | |||
12537 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp384r1); | ||
12538 | const EVP_MD *m = EVP_sha384(); /* We need this too */ | ||
12539 | |||
12540 | ; | ||
12541 | return 0; | ||
12542 | } | ||
12543 | _ACEOF | ||
12544 | if ac_fn_c_try_link "$LINENO"; then : | ||
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12546 | $as_echo "yes" >&6; } | ||
12547 | enable_nistp384=1 | ||
12548 | else | ||
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12550 | $as_echo "no" >&6; } | ||
12551 | |||
12552 | fi | ||
12553 | rm -f core conftest.err conftest.$ac_objext \ | ||
12554 | conftest$ac_exeext conftest.$ac_ext | ||
12555 | |||
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NID_secp521r1" >&5 | ||
12557 | $as_echo_n "checking whether OpenSSL has NID_secp521r1... " >&6; } | ||
12558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12559 | /* end confdefs.h. */ | ||
12560 | |||
12561 | #include <openssl/ec.h> | ||
12562 | #include <openssl/ecdh.h> | ||
12563 | #include <openssl/ecdsa.h> | ||
12564 | #include <openssl/evp.h> | ||
12565 | #include <openssl/objects.h> | ||
12566 | #include <openssl/opensslv.h> | ||
12567 | #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */ | ||
12568 | # error "OpenSSL < 0.9.8g has unreliable ECC code" | ||
12569 | #endif | ||
12570 | |||
12571 | int | ||
12572 | main () | ||
12573 | { | ||
12574 | |||
12575 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
12576 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
12577 | |||
12578 | ; | ||
12579 | return 0; | ||
12580 | } | ||
12581 | _ACEOF | ||
12582 | if ac_fn_c_try_link "$LINENO"; then : | ||
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12584 | $as_echo "yes" >&6; } | ||
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL's NID_secp521r1 is functional" >&5 | ||
12586 | $as_echo_n "checking if OpenSSL's NID_secp521r1 is functional... " >&6; } | ||
12587 | if test "$cross_compiling" = yes; then : | ||
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling: assuming yes" >&5 | ||
12589 | $as_echo "$as_me: WARNING: cross-compiling: assuming yes" >&2;} | ||
12590 | enable_nistp521=1 | ||
12591 | |||
12592 | else | ||
12593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12594 | /* end confdefs.h. */ | ||
12595 | |||
12596 | #include <openssl/ec.h> | ||
12597 | #include <openssl/ecdh.h> | ||
12598 | #include <openssl/ecdsa.h> | ||
12599 | #include <openssl/evp.h> | ||
12600 | #include <openssl/objects.h> | ||
12601 | #include <openssl/opensslv.h> | ||
12602 | |||
12603 | int | ||
12604 | main () | ||
12605 | { | ||
12606 | |||
12607 | EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1); | ||
12608 | const EVP_MD *m = EVP_sha512(); /* We need this too */ | ||
12609 | exit(e == NULL || m == NULL); | ||
12610 | |||
12611 | ; | ||
12612 | return 0; | ||
12613 | } | ||
12614 | _ACEOF | ||
12615 | if ac_fn_c_try_run "$LINENO"; then : | ||
12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12617 | $as_echo "yes" >&6; } | ||
12618 | enable_nistp521=1 | ||
12619 | else | ||
12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12621 | $as_echo "no" >&6; } | ||
12622 | fi | ||
12623 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12624 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12625 | fi | ||
12626 | |||
12627 | else | ||
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12629 | $as_echo "no" >&6; } | ||
12630 | |||
12631 | fi | ||
12632 | rm -f core conftest.err conftest.$ac_objext \ | ||
12633 | conftest$ac_exeext conftest.$ac_ext | ||
12634 | |||
12635 | COMMENT_OUT_ECC="#no ecc#" | ||
12636 | TEST_SSH_ECC=no | ||
12637 | |||
12638 | if test x$enable_nistp256 = x1 || test x$enable_nistp384 = x1 || \ | ||
12639 | test x$enable_nistp521 = x1; then | ||
12640 | |||
12641 | $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h | ||
12642 | |||
12643 | fi | ||
12644 | if test x$enable_nistp256 = x1; then | ||
12645 | |||
12646 | $as_echo "#define OPENSSL_HAS_NISTP256 1" >>confdefs.h | ||
12647 | |||
12648 | TEST_SSH_ECC=yes | ||
12649 | COMMENT_OUT_ECC="" | ||
12650 | else | ||
12651 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp256 \ | ||
12652 | ecdh-sha2-nistp256 ecdsa-sha2-nistp256-cert-v01@openssh.com" | ||
12653 | fi | ||
12654 | if test x$enable_nistp384 = x1; then | ||
12655 | |||
12656 | $as_echo "#define OPENSSL_HAS_NISTP384 1" >>confdefs.h | ||
12657 | |||
12658 | TEST_SSH_ECC=yes | ||
12659 | COMMENT_OUT_ECC="" | ||
12660 | else | ||
12661 | unsupported_algorithms="$unsupported_algorithms ecdsa-sha2-nistp384 \ | ||
12662 | ecdh-sha2-nistp384 ecdsa-sha2-nistp384-cert-v01@openssh.com" | ||
12663 | fi | ||
12664 | if test x$enable_nistp521 = x1; then | ||
12665 | |||
12666 | $as_echo "#define OPENSSL_HAS_NISTP521 1" >>confdefs.h | ||
12667 | |||
12668 | TEST_SSH_ECC=yes | ||
12669 | COMMENT_OUT_ECC="" | ||
12670 | else | ||
12671 | unsupported_algorithms="$unsupported_algorithms ecdh-sha2-nistp521 \ | ||
12672 | ecdsa-sha2-nistp521 ecdsa-sha2-nistp521-cert-v01@openssh.com" | ||
12673 | fi | ||
12674 | |||
12675 | |||
12676 | |||
12677 | |||
12678 | for ac_func in \ | ||
12679 | arc4random \ | ||
12680 | arc4random_buf \ | ||
12681 | arc4random_stir \ | ||
12682 | arc4random_uniform \ | ||
12683 | |||
12684 | do : | ||
12685 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12686 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
12687 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
12688 | cat >>confdefs.h <<_ACEOF | ||
12689 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12690 | _ACEOF | ||
12691 | |||
12692 | fi | ||
12693 | done | ||
12694 | |||
12695 | |||
12696 | saved_LIBS="$LIBS" | ||
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5 | ||
12698 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
12699 | if ${ac_cv_lib_iaf_ia_openinfo+:} false; then : | ||
12700 | $as_echo_n "(cached) " >&6 | ||
12701 | else | ||
12702 | ac_check_lib_save_LIBS=$LIBS | ||
12703 | LIBS="-liaf $LIBS" | ||
12704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12705 | /* end confdefs.h. */ | ||
12706 | |||
12707 | /* Override any GCC internal prototype to avoid an error. | ||
12708 | Use char because int might match the return type of a GCC | ||
12709 | builtin and then its argument prototype would still apply. */ | ||
12710 | #ifdef __cplusplus | ||
12711 | extern "C" | ||
12712 | #endif | ||
12713 | char ia_openinfo (); | ||
12714 | int | ||
12715 | main () | ||
12716 | { | ||
12717 | return ia_openinfo (); | ||
12718 | ; | ||
12719 | return 0; | ||
12720 | } | ||
12721 | _ACEOF | ||
12722 | if ac_fn_c_try_link "$LINENO"; then : | ||
12723 | ac_cv_lib_iaf_ia_openinfo=yes | ||
12724 | else | ||
12725 | ac_cv_lib_iaf_ia_openinfo=no | ||
12726 | fi | ||
12727 | rm -f core conftest.err conftest.$ac_objext \ | ||
12728 | conftest$ac_exeext conftest.$ac_ext | ||
12729 | LIBS=$ac_check_lib_save_LIBS | ||
12730 | fi | ||
12731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
12732 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
12733 | if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then : | ||
12734 | |||
12735 | LIBS="$LIBS -liaf" | ||
12736 | for ac_func in set_id | ||
12737 | do : | ||
12738 | ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id" | ||
12739 | if test "x$ac_cv_func_set_id" = xyes; then : | ||
12740 | cat >>confdefs.h <<_ACEOF | ||
12741 | #define HAVE_SET_ID 1 | ||
12742 | _ACEOF | ||
12743 | SSHDLIBS="$SSHDLIBS -liaf" | ||
12744 | |||
12745 | $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h | ||
12746 | |||
12747 | |||
12748 | fi | ||
12749 | done | ||
12750 | |||
12751 | |||
12752 | fi | ||
12753 | |||
12754 | LIBS="$saved_LIBS" | ||
12755 | |||
12756 | ### Configure cryptographic random number support | ||
12757 | |||
12758 | # Check wheter OpenSSL seeds itself | ||
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
12760 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
12761 | if test "$cross_compiling" = yes; then : | ||
12762 | |||
12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
12764 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
12765 | # This is safe, since we will fatal() at runtime if | ||
12766 | # OpenSSL is not seeded correctly. | ||
12767 | OPENSSL_SEEDS_ITSELF=yes | ||
12768 | |||
12769 | |||
12770 | else | ||
12771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12772 | /* end confdefs.h. */ | ||
12773 | |||
12774 | #include <string.h> | ||
12775 | #include <openssl/rand.h> | ||
12776 | |||
12777 | int | ||
12778 | main () | ||
12779 | { | ||
12780 | |||
12781 | exit(RAND_status() == 1 ? 0 : 1); | ||
12782 | |||
12783 | ; | ||
12784 | return 0; | ||
12785 | } | ||
12786 | _ACEOF | ||
12787 | if ac_fn_c_try_run "$LINENO"; then : | ||
12788 | |||
12789 | OPENSSL_SEEDS_ITSELF=yes | ||
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
12791 | $as_echo "yes" >&6; } | ||
12792 | |||
12793 | else | ||
12794 | |||
12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
12796 | $as_echo "no" >&6; } | ||
12797 | |||
12798 | fi | ||
12799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
12800 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
12801 | fi | ||
12802 | |||
12803 | |||
12804 | # PRNGD TCP socket | ||
12805 | |||
12806 | # Check whether --with-prngd-port was given. | ||
12807 | if test "${with_prngd_port+set}" = set; then : | ||
12808 | withval=$with_prngd_port; | ||
12809 | case "$withval" in | ||
12810 | no) | ||
12811 | withval="" | ||
12812 | ;; | ||
12813 | [0-9]*) | ||
12814 | ;; | ||
12815 | *) | ||
12816 | as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5 | ||
12817 | ;; | ||
12818 | esac | ||
12819 | if test ! -z "$withval" ; then | ||
12820 | PRNGD_PORT="$withval" | ||
12821 | |||
12822 | cat >>confdefs.h <<_ACEOF | ||
12823 | #define PRNGD_PORT $PRNGD_PORT | ||
12824 | _ACEOF | ||
12825 | |||
12826 | fi | ||
12827 | |||
12828 | |||
12829 | fi | ||
12830 | |||
12831 | |||
12832 | # PRNGD Unix domain socket | ||
12833 | |||
12834 | # Check whether --with-prngd-socket was given. | ||
12835 | if test "${with_prngd_socket+set}" = set; then : | ||
12836 | withval=$with_prngd_socket; | ||
12837 | case "$withval" in | ||
12838 | yes) | ||
12839 | withval="/var/run/egd-pool" | ||
12840 | ;; | ||
12841 | no) | ||
12842 | withval="" | ||
12843 | ;; | ||
12844 | /*) | ||
12845 | ;; | ||
12846 | *) | ||
12847 | as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5 | ||
12848 | ;; | ||
12849 | esac | ||
12850 | |||
12851 | if test ! -z "$withval" ; then | ||
12852 | if test ! -z "$PRNGD_PORT" ; then | ||
12853 | as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5 | ||
12854 | fi | ||
12855 | if test ! -r "$withval" ; then | ||
12856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5 | ||
12857 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
12858 | fi | ||
12859 | PRNGD_SOCKET="$withval" | ||
12860 | |||
12861 | cat >>confdefs.h <<_ACEOF | ||
12862 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
12863 | _ACEOF | ||
12864 | |||
12865 | fi | ||
12866 | |||
12867 | else | ||
12868 | |||
12869 | # Check for existing socket only if we don't have a random device already | ||
12870 | if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then | ||
12871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5 | ||
12872 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
12873 | # Insert other locations here | ||
12874 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
12875 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
12876 | PRNGD_SOCKET="$sock" | ||
12877 | cat >>confdefs.h <<_ACEOF | ||
12878 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
12879 | _ACEOF | ||
12880 | |||
12881 | break; | ||
12882 | fi | ||
12883 | done | ||
12884 | if test ! -z "$PRNGD_SOCKET" ; then | ||
12885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5 | ||
12886 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
12887 | else | ||
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
12889 | $as_echo "not found" >&6; } | ||
12890 | fi | ||
12891 | fi | ||
12892 | |||
12893 | |||
12894 | fi | ||
12895 | |||
12896 | |||
12897 | # Which randomness source do we use? | ||
12898 | if test ! -z "$PRNGD_PORT" ; then | ||
12899 | RAND_MSG="PRNGd port $PRNGD_PORT" | ||
12900 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
12901 | RAND_MSG="PRNGd socket $PRNGD_SOCKET" | ||
12902 | elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
12903 | |||
12904 | $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h | ||
12905 | |||
12906 | RAND_MSG="OpenSSL internal ONLY" | ||
12907 | else | ||
12908 | as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5 | ||
12909 | fi | ||
12910 | |||
12911 | # Check for PAM libs | ||
12912 | PAM_MSG="no" | ||
12913 | |||
12914 | # Check whether --with-pam was given. | ||
12915 | if test "${with_pam+set}" = set; then : | ||
12916 | withval=$with_pam; | ||
12917 | if test "x$withval" != "xno" ; then | ||
12918 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
12919 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
12920 | as_fn_error $? "PAM headers not found" "$LINENO" 5 | ||
12921 | fi | ||
12922 | |||
12923 | saved_LIBS="$LIBS" | ||
12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | ||
12925 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
12926 | if ${ac_cv_lib_dl_dlopen+:} false; then : | ||
12927 | $as_echo_n "(cached) " >&6 | ||
12928 | else | ||
12929 | ac_check_lib_save_LIBS=$LIBS | ||
12930 | LIBS="-ldl $LIBS" | ||
12931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12932 | /* end confdefs.h. */ | ||
12933 | |||
12934 | /* Override any GCC internal prototype to avoid an error. | ||
12935 | Use char because int might match the return type of a GCC | ||
12936 | builtin and then its argument prototype would still apply. */ | ||
12937 | #ifdef __cplusplus | ||
12938 | extern "C" | ||
12939 | #endif | ||
12940 | char dlopen (); | ||
12941 | int | ||
12942 | main () | ||
12943 | { | ||
12944 | return dlopen (); | ||
12945 | ; | ||
12946 | return 0; | ||
12947 | } | ||
12948 | _ACEOF | ||
12949 | if ac_fn_c_try_link "$LINENO"; then : | ||
12950 | ac_cv_lib_dl_dlopen=yes | ||
12951 | else | ||
12952 | ac_cv_lib_dl_dlopen=no | ||
12953 | fi | ||
12954 | rm -f core conftest.err conftest.$ac_objext \ | ||
12955 | conftest$ac_exeext conftest.$ac_ext | ||
12956 | LIBS=$ac_check_lib_save_LIBS | ||
12957 | fi | ||
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12959 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
12960 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | ||
12961 | cat >>confdefs.h <<_ACEOF | ||
12962 | #define HAVE_LIBDL 1 | ||
12963 | _ACEOF | ||
12964 | |||
12965 | LIBS="-ldl $LIBS" | ||
12966 | |||
12967 | fi | ||
12968 | |||
12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | ||
12970 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
12971 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | ||
12972 | $as_echo_n "(cached) " >&6 | ||
12973 | else | ||
12974 | ac_check_lib_save_LIBS=$LIBS | ||
12975 | LIBS="-lpam $LIBS" | ||
12976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
12977 | /* end confdefs.h. */ | ||
12978 | |||
12979 | /* Override any GCC internal prototype to avoid an error. | ||
12980 | Use char because int might match the return type of a GCC | ||
12981 | builtin and then its argument prototype would still apply. */ | ||
12982 | #ifdef __cplusplus | ||
12983 | extern "C" | ||
12984 | #endif | ||
12985 | char pam_set_item (); | ||
12986 | int | ||
12987 | main () | ||
12988 | { | ||
12989 | return pam_set_item (); | ||
12990 | ; | ||
12991 | return 0; | ||
12992 | } | ||
12993 | _ACEOF | ||
12994 | if ac_fn_c_try_link "$LINENO"; then : | ||
12995 | ac_cv_lib_pam_pam_set_item=yes | ||
12996 | else | ||
12997 | ac_cv_lib_pam_pam_set_item=no | ||
12998 | fi | ||
12999 | rm -f core conftest.err conftest.$ac_objext \ | ||
13000 | conftest$ac_exeext conftest.$ac_ext | ||
13001 | LIBS=$ac_check_lib_save_LIBS | ||
13002 | fi | ||
13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
13004 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
13005 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | ||
13006 | cat >>confdefs.h <<_ACEOF | ||
13007 | #define HAVE_LIBPAM 1 | ||
13008 | _ACEOF | ||
13009 | |||
13010 | LIBS="-lpam $LIBS" | ||
13011 | |||
13012 | else | ||
13013 | as_fn_error $? "*** libpam missing" "$LINENO" 5 | ||
13014 | fi | ||
13015 | |||
13016 | for ac_func in pam_getenvlist | ||
13017 | do : | ||
13018 | ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" | ||
13019 | if test "x$ac_cv_func_pam_getenvlist" = xyes; then : | ||
13020 | cat >>confdefs.h <<_ACEOF | ||
13021 | #define HAVE_PAM_GETENVLIST 1 | ||
13022 | _ACEOF | ||
13023 | |||
13024 | fi | ||
13025 | done | ||
13026 | |||
13027 | for ac_func in pam_putenv | ||
13028 | do : | ||
13029 | ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv" | ||
13030 | if test "x$ac_cv_func_pam_putenv" = xyes; then : | ||
13031 | cat >>confdefs.h <<_ACEOF | ||
13032 | #define HAVE_PAM_PUTENV 1 | ||
13033 | _ACEOF | ||
13034 | |||
13035 | fi | ||
13036 | done | ||
13037 | |||
13038 | LIBS="$saved_LIBS" | ||
13039 | |||
13040 | PAM_MSG="yes" | ||
13041 | |||
13042 | SSHDLIBS="$SSHDLIBS -lpam" | ||
13043 | |||
13044 | $as_echo "#define USE_PAM 1" >>confdefs.h | ||
13045 | |||
13046 | |||
13047 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13048 | case "$LIBS" in | ||
13049 | *-ldl*) | ||
13050 | # libdl already in LIBS | ||
13051 | ;; | ||
13052 | *) | ||
13053 | SSHDLIBS="$SSHDLIBS -ldl" | ||
13054 | ;; | ||
13055 | esac | ||
13056 | fi | ||
13057 | fi | ||
13058 | |||
13059 | |||
13060 | fi | ||
13061 | |||
13062 | |||
13063 | # Check for older PAM | ||
13064 | if test "x$PAM_MSG" = "xyes" ; then | ||
13065 | # Check PAM strerror arguments (old PAM) | ||
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5 | ||
13067 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
13068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13069 | /* end confdefs.h. */ | ||
13070 | |||
13071 | #include <stdlib.h> | ||
13072 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
13073 | #include <security/pam_appl.h> | ||
13074 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
13075 | #include <pam/pam_appl.h> | ||
13076 | #endif | ||
13077 | |||
13078 | int | ||
13079 | main () | ||
13080 | { | ||
13081 | |||
13082 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
13083 | |||
13084 | ; | ||
13085 | return 0; | ||
13086 | } | ||
13087 | _ACEOF | ||
13088 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13090 | $as_echo "no" >&6; } | ||
13091 | else | ||
13092 | |||
13093 | |||
13094 | $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h | ||
13095 | |||
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13097 | $as_echo "yes" >&6; } | ||
13098 | PAM_MSG="yes (old library)" | ||
13099 | |||
13100 | |||
13101 | fi | ||
13102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13103 | fi | ||
13104 | |||
13105 | case "$host" in | ||
13106 | *-*-cygwin*) | ||
13107 | SSH_PRIVSEP_USER=CYGWIN_SSH_PRIVSEP_USER | ||
13108 | ;; | ||
13109 | *) | ||
13110 | SSH_PRIVSEP_USER=sshd | ||
13111 | ;; | ||
13112 | esac | ||
13113 | |||
13114 | # Check whether --with-privsep-user was given. | ||
13115 | if test "${with_privsep_user+set}" = set; then : | ||
13116 | withval=$with_privsep_user; | ||
13117 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
13118 | test "x${withval}" != "xyes"; then | ||
13119 | SSH_PRIVSEP_USER=$withval | ||
13120 | fi | ||
13121 | |||
13122 | |||
13123 | fi | ||
13124 | |||
13125 | if test "x$SSH_PRIVSEP_USER" = "xCYGWIN_SSH_PRIVSEP_USER" ; then | ||
13126 | |||
13127 | cat >>confdefs.h <<_ACEOF | ||
13128 | #define SSH_PRIVSEP_USER CYGWIN_SSH_PRIVSEP_USER | ||
13129 | _ACEOF | ||
13130 | |||
13131 | else | ||
13132 | |||
13133 | cat >>confdefs.h <<_ACEOF | ||
13134 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
13135 | _ACEOF | ||
13136 | |||
13137 | fi | ||
13138 | |||
13139 | |||
13140 | if test "x$have_linux_no_new_privs" = "x1" ; then | ||
13141 | ac_fn_c_check_decl "$LINENO" "SECCOMP_MODE_FILTER" "ac_cv_have_decl_SECCOMP_MODE_FILTER" " | ||
13142 | #include <sys/types.h> | ||
13143 | #include <linux/seccomp.h> | ||
13144 | |||
13145 | " | ||
13146 | if test "x$ac_cv_have_decl_SECCOMP_MODE_FILTER" = xyes; then : | ||
13147 | have_seccomp_filter=1 | ||
13148 | fi | ||
13149 | |||
13150 | fi | ||
13151 | if test "x$have_seccomp_filter" = "x1" ; then | ||
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel for seccomp_filter support" >&5 | ||
13153 | $as_echo_n "checking kernel for seccomp_filter support... " >&6; } | ||
13154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13155 | /* end confdefs.h. */ | ||
13156 | |||
13157 | #include <errno.h> | ||
13158 | #include <elf.h> | ||
13159 | #include <linux/audit.h> | ||
13160 | #include <linux/seccomp.h> | ||
13161 | #include <stdlib.h> | ||
13162 | #include <sys/prctl.h> | ||
13163 | |||
13164 | int | ||
13165 | main () | ||
13166 | { | ||
13167 | int i = $seccomp_audit_arch; | ||
13168 | errno = 0; | ||
13169 | prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0); | ||
13170 | exit(errno == EFAULT ? 0 : 1); | ||
13171 | ; | ||
13172 | return 0; | ||
13173 | } | ||
13174 | _ACEOF | ||
13175 | if ac_fn_c_try_link "$LINENO"; then : | ||
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13177 | $as_echo "yes" >&6; } | ||
13178 | else | ||
13179 | |||
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13181 | $as_echo "no" >&6; } | ||
13182 | # Disable seccomp filter as a target | ||
13183 | have_seccomp_filter=0 | ||
13184 | |||
13185 | |||
13186 | fi | ||
13187 | rm -f core conftest.err conftest.$ac_objext \ | ||
13188 | conftest$ac_exeext conftest.$ac_ext | ||
13189 | fi | ||
13190 | |||
13191 | # Decide which sandbox style to use | ||
13192 | sandbox_arg="" | ||
13193 | |||
13194 | # Check whether --with-sandbox was given. | ||
13195 | if test "${with_sandbox+set}" = set; then : | ||
13196 | withval=$with_sandbox; | ||
13197 | if test "x$withval" = "xyes" ; then | ||
13198 | sandbox_arg="" | ||
13199 | else | ||
13200 | sandbox_arg="$withval" | ||
13201 | fi | ||
13202 | |||
13203 | |||
13204 | fi | ||
13205 | |||
13206 | |||
13207 | # Some platforms (seems to be the ones that have a kernel poll(2)-type | ||
13208 | # function with which they implement select(2)) use an extra file descriptor | ||
13209 | # when calling select(2), which means we can't use the rlimit sandbox. | ||
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select works with descriptor rlimit" >&5 | ||
13211 | $as_echo_n "checking if select works with descriptor rlimit... " >&6; } | ||
13212 | if test "$cross_compiling" = yes; then : | ||
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13214 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13215 | |||
13216 | else | ||
13217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13218 | /* end confdefs.h. */ | ||
13219 | |||
13220 | #include <sys/types.h> | ||
13221 | #ifdef HAVE_SYS_TIME_H | ||
13222 | # include <sys/time.h> | ||
13223 | #endif | ||
13224 | #include <sys/resource.h> | ||
13225 | #ifdef HAVE_SYS_SELECT_H | ||
13226 | # include <sys/select.h> | ||
13227 | #endif | ||
13228 | #include <errno.h> | ||
13229 | #include <fcntl.h> | ||
13230 | #include <stdlib.h> | ||
13231 | |||
13232 | int | ||
13233 | main () | ||
13234 | { | ||
13235 | |||
13236 | struct rlimit rl_zero; | ||
13237 | int fd, r; | ||
13238 | fd_set fds; | ||
13239 | struct timeval tv; | ||
13240 | |||
13241 | fd = open("/dev/null", O_RDONLY); | ||
13242 | FD_ZERO(&fds); | ||
13243 | FD_SET(fd, &fds); | ||
13244 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
13245 | setrlimit(RLIMIT_FSIZE, &rl_zero); | ||
13246 | setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
13247 | tv.tv_sec = 1; | ||
13248 | tv.tv_usec = 0; | ||
13249 | r = select(fd+1, &fds, NULL, NULL, &tv); | ||
13250 | exit (r == -1 ? 1 : 0); | ||
13251 | |||
13252 | ; | ||
13253 | return 0; | ||
13254 | } | ||
13255 | _ACEOF | ||
13256 | if ac_fn_c_try_run "$LINENO"; then : | ||
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13258 | $as_echo "yes" >&6; } | ||
13259 | select_works_with_rlimit=yes | ||
13260 | else | ||
13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13262 | $as_echo "no" >&6; } | ||
13263 | select_works_with_rlimit=no | ||
13264 | fi | ||
13265 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13266 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13267 | fi | ||
13268 | |||
13269 | |||
13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit(RLIMIT_NOFILE,{0,0}) works" >&5 | ||
13271 | $as_echo_n "checking if setrlimit(RLIMIT_NOFILE,{0,0}) works... " >&6; } | ||
13272 | if test "$cross_compiling" = yes; then : | ||
13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13274 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13275 | |||
13276 | else | ||
13277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13278 | /* end confdefs.h. */ | ||
13279 | |||
13280 | #include <sys/types.h> | ||
13281 | #ifdef HAVE_SYS_TIME_H | ||
13282 | # include <sys/time.h> | ||
13283 | #endif | ||
13284 | #include <sys/resource.h> | ||
13285 | #include <errno.h> | ||
13286 | #include <stdlib.h> | ||
13287 | |||
13288 | int | ||
13289 | main () | ||
13290 | { | ||
13291 | |||
13292 | struct rlimit rl_zero; | ||
13293 | int fd, r; | ||
13294 | fd_set fds; | ||
13295 | |||
13296 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
13297 | r = setrlimit(RLIMIT_NOFILE, &rl_zero); | ||
13298 | exit (r == -1 ? 1 : 0); | ||
13299 | |||
13300 | ; | ||
13301 | return 0; | ||
13302 | } | ||
13303 | _ACEOF | ||
13304 | if ac_fn_c_try_run "$LINENO"; then : | ||
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13306 | $as_echo "yes" >&6; } | ||
13307 | rlimit_nofile_zero_works=yes | ||
13308 | else | ||
13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13310 | $as_echo "no" >&6; } | ||
13311 | rlimit_nofile_zero_works=no | ||
13312 | fi | ||
13313 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13314 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13315 | fi | ||
13316 | |||
13317 | |||
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setrlimit RLIMIT_FSIZE works" >&5 | ||
13319 | $as_echo_n "checking if setrlimit RLIMIT_FSIZE works... " >&6; } | ||
13320 | if test "$cross_compiling" = yes; then : | ||
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5 | ||
13322 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
13323 | |||
13324 | else | ||
13325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13326 | /* end confdefs.h. */ | ||
13327 | |||
13328 | #include <sys/types.h> | ||
13329 | #include <sys/resource.h> | ||
13330 | #include <stdlib.h> | ||
13331 | |||
13332 | int | ||
13333 | main () | ||
13334 | { | ||
13335 | |||
13336 | struct rlimit rl_zero; | ||
13337 | |||
13338 | rl_zero.rlim_cur = rl_zero.rlim_max = 0; | ||
13339 | exit(setrlimit(RLIMIT_FSIZE, &rl_zero) != 0); | ||
13340 | |||
13341 | ; | ||
13342 | return 0; | ||
13343 | } | ||
13344 | _ACEOF | ||
13345 | if ac_fn_c_try_run "$LINENO"; then : | ||
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13347 | $as_echo "yes" >&6; } | ||
13348 | else | ||
13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13350 | $as_echo "no" >&6; } | ||
13351 | |||
13352 | $as_echo "#define SANDBOX_SKIP_RLIMIT_FSIZE 1" >>confdefs.h | ||
13353 | |||
13354 | fi | ||
13355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13356 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13357 | fi | ||
13358 | |||
13359 | |||
13360 | if test "x$sandbox_arg" = "xsystrace" || \ | ||
13361 | ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then | ||
13362 | test "x$have_systr_policy_kill" != "x1" && \ | ||
13363 | as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5 | ||
13364 | SANDBOX_STYLE="systrace" | ||
13365 | |||
13366 | $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h | ||
13367 | |||
13368 | elif test "x$sandbox_arg" = "xdarwin" || \ | ||
13369 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \ | ||
13370 | test "x$ac_cv_header_sandbox_h" = "xyes") ; then | ||
13371 | test "x$ac_cv_func_sandbox_init" != "xyes" -o \ | ||
13372 | "x$ac_cv_header_sandbox_h" != "xyes" && \ | ||
13373 | as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5 | ||
13374 | SANDBOX_STYLE="darwin" | ||
13375 | |||
13376 | $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h | ||
13377 | |||
13378 | elif test "x$sandbox_arg" = "xseccomp_filter" || \ | ||
13379 | ( test -z "$sandbox_arg" && \ | ||
13380 | test "x$have_seccomp_filter" = "x1" && \ | ||
13381 | test "x$ac_cv_header_elf_h" = "xyes" && \ | ||
13382 | test "x$ac_cv_header_linux_audit_h" = "xyes" && \ | ||
13383 | test "x$ac_cv_header_linux_filter_h" = "xyes" && \ | ||
13384 | test "x$seccomp_audit_arch" != "x" && \ | ||
13385 | test "x$have_linux_no_new_privs" = "x1" && \ | ||
13386 | test "x$ac_cv_func_prctl" = "xyes" ) ; then | ||
13387 | test "x$seccomp_audit_arch" = "x" && \ | ||
13388 | as_fn_error $? "seccomp_filter sandbox not supported on $host" "$LINENO" 5 | ||
13389 | test "x$have_linux_no_new_privs" != "x1" && \ | ||
13390 | as_fn_error $? "seccomp_filter sandbox requires PR_SET_NO_NEW_PRIVS" "$LINENO" 5 | ||
13391 | test "x$have_seccomp_filter" != "x1" && \ | ||
13392 | as_fn_error $? "seccomp_filter sandbox requires seccomp headers" "$LINENO" 5 | ||
13393 | test "x$ac_cv_func_prctl" != "xyes" && \ | ||
13394 | as_fn_error $? "seccomp_filter sandbox requires prctl function" "$LINENO" 5 | ||
13395 | SANDBOX_STYLE="seccomp_filter" | ||
13396 | |||
13397 | $as_echo "#define SANDBOX_SECCOMP_FILTER 1" >>confdefs.h | ||
13398 | |||
13399 | elif test "x$sandbox_arg" = "xcapsicum" || \ | ||
13400 | ( test -z "$sandbox_arg" && \ | ||
13401 | test "x$ac_cv_header_sys_capability_h" = "xyes" && \ | ||
13402 | test "x$ac_cv_func_cap_rights_limit" = "xyes") ; then | ||
13403 | test "x$ac_cv_header_sys_capability_h" != "xyes" && \ | ||
13404 | as_fn_error $? "capsicum sandbox requires sys/capability.h header" "$LINENO" 5 | ||
13405 | test "x$ac_cv_func_cap_rights_limit" != "xyes" && \ | ||
13406 | as_fn_error $? "capsicum sandbox requires cap_rights_limit function" "$LINENO" 5 | ||
13407 | SANDBOX_STYLE="capsicum" | ||
13408 | |||
13409 | $as_echo "#define SANDBOX_CAPSICUM 1" >>confdefs.h | ||
13410 | |||
13411 | elif test "x$sandbox_arg" = "xrlimit" || \ | ||
13412 | ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" && \ | ||
13413 | test "x$select_works_with_rlimit" = "xyes" && \ | ||
13414 | test "x$rlimit_nofile_zero_works" = "xyes" ) ; then | ||
13415 | test "x$ac_cv_func_setrlimit" != "xyes" && \ | ||
13416 | as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5 | ||
13417 | test "x$select_works_with_rlimit" != "xyes" && \ | ||
13418 | as_fn_error $? "rlimit sandbox requires select to work with rlimit" "$LINENO" 5 | ||
13419 | SANDBOX_STYLE="rlimit" | ||
13420 | |||
13421 | $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h | ||
13422 | |||
13423 | elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \ | ||
13424 | test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then | ||
13425 | SANDBOX_STYLE="none" | ||
13426 | |||
13427 | $as_echo "#define SANDBOX_NULL 1" >>confdefs.h | ||
13428 | |||
13429 | else | ||
13430 | as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5 | ||
13431 | fi | ||
13432 | |||
13433 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
13434 | if test ! -z "$SONY" ; then | ||
13435 | LIBS="$LIBS -liberty"; | ||
13436 | fi | ||
13437 | |||
13438 | # Check for long long datatypes | ||
13439 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" | ||
13440 | if test "x$ac_cv_type_long_long" = xyes; then : | ||
13441 | |||
13442 | cat >>confdefs.h <<_ACEOF | ||
13443 | #define HAVE_LONG_LONG 1 | ||
13444 | _ACEOF | ||
13445 | |||
13446 | |||
13447 | fi | ||
13448 | ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default" | ||
13449 | if test "x$ac_cv_type_unsigned_long_long" = xyes; then : | ||
13450 | |||
13451 | cat >>confdefs.h <<_ACEOF | ||
13452 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
13453 | _ACEOF | ||
13454 | |||
13455 | |||
13456 | fi | ||
13457 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | ||
13458 | if test "x$ac_cv_type_long_double" = xyes; then : | ||
13459 | |||
13460 | cat >>confdefs.h <<_ACEOF | ||
13461 | #define HAVE_LONG_DOUBLE 1 | ||
13462 | _ACEOF | ||
13463 | |||
13464 | |||
13465 | fi | ||
13466 | |||
13467 | |||
13468 | # Check datatype sizes | ||
13469 | # The cast to long int works around a bug in the HP C Compiler | ||
13470 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
13471 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
13472 | # This bug is HP SR number 8606223364. | ||
13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 | ||
13474 | $as_echo_n "checking size of short int... " >&6; } | ||
13475 | if ${ac_cv_sizeof_short_int+:} false; then : | ||
13476 | $as_echo_n "(cached) " >&6 | ||
13477 | else | ||
13478 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : | ||
13479 | |||
13480 | else | ||
13481 | if test "$ac_cv_type_short_int" = yes; then | ||
13482 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13483 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13484 | as_fn_error 77 "cannot compute sizeof (short int) | ||
13485 | See \`config.log' for more details" "$LINENO" 5; } | ||
13486 | else | ||
13487 | ac_cv_sizeof_short_int=0 | ||
13488 | fi | ||
13489 | fi | ||
13490 | |||
13491 | fi | ||
13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 | ||
13493 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
13494 | |||
13495 | |||
13496 | |||
13497 | cat >>confdefs.h <<_ACEOF | ||
13498 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
13499 | _ACEOF | ||
13500 | |||
13501 | |||
13502 | # The cast to long int works around a bug in the HP C Compiler | ||
13503 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
13504 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
13505 | # This bug is HP SR number 8606223364. | ||
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | ||
13507 | $as_echo_n "checking size of int... " >&6; } | ||
13508 | if ${ac_cv_sizeof_int+:} false; then : | ||
13509 | $as_echo_n "(cached) " >&6 | ||
13510 | else | ||
13511 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | ||
13512 | |||
13513 | else | ||
13514 | if test "$ac_cv_type_int" = yes; then | ||
13515 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13516 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13517 | as_fn_error 77 "cannot compute sizeof (int) | ||
13518 | See \`config.log' for more details" "$LINENO" 5; } | ||
13519 | else | ||
13520 | ac_cv_sizeof_int=0 | ||
13521 | fi | ||
13522 | fi | ||
13523 | |||
13524 | fi | ||
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | ||
13526 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
13527 | |||
13528 | |||
13529 | |||
13530 | cat >>confdefs.h <<_ACEOF | ||
13531 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
13532 | _ACEOF | ||
13533 | |||
13534 | |||
13535 | # The cast to long int works around a bug in the HP C Compiler | ||
13536 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
13537 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
13538 | # This bug is HP SR number 8606223364. | ||
13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 | ||
13540 | $as_echo_n "checking size of long int... " >&6; } | ||
13541 | if ${ac_cv_sizeof_long_int+:} false; then : | ||
13542 | $as_echo_n "(cached) " >&6 | ||
13543 | else | ||
13544 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : | ||
13545 | |||
13546 | else | ||
13547 | if test "$ac_cv_type_long_int" = yes; then | ||
13548 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13549 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13550 | as_fn_error 77 "cannot compute sizeof (long int) | ||
13551 | See \`config.log' for more details" "$LINENO" 5; } | ||
13552 | else | ||
13553 | ac_cv_sizeof_long_int=0 | ||
13554 | fi | ||
13555 | fi | ||
13556 | |||
13557 | fi | ||
13558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 | ||
13559 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
13560 | |||
13561 | |||
13562 | |||
13563 | cat >>confdefs.h <<_ACEOF | ||
13564 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
13565 | _ACEOF | ||
13566 | |||
13567 | |||
13568 | # The cast to long int works around a bug in the HP C Compiler | ||
13569 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
13570 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
13571 | # This bug is HP SR number 8606223364. | ||
13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 | ||
13573 | $as_echo_n "checking size of long long int... " >&6; } | ||
13574 | if ${ac_cv_sizeof_long_long_int+:} false; then : | ||
13575 | $as_echo_n "(cached) " >&6 | ||
13576 | else | ||
13577 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : | ||
13578 | |||
13579 | else | ||
13580 | if test "$ac_cv_type_long_long_int" = yes; then | ||
13581 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
13582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
13583 | as_fn_error 77 "cannot compute sizeof (long long int) | ||
13584 | See \`config.log' for more details" "$LINENO" 5; } | ||
13585 | else | ||
13586 | ac_cv_sizeof_long_long_int=0 | ||
13587 | fi | ||
13588 | fi | ||
13589 | |||
13590 | fi | ||
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5 | ||
13592 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
13593 | |||
13594 | |||
13595 | |||
13596 | cat >>confdefs.h <<_ACEOF | ||
13597 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
13598 | _ACEOF | ||
13599 | |||
13600 | |||
13601 | |||
13602 | # Sanity check long long for some platforms (AIX) | ||
13603 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
13604 | ac_cv_sizeof_long_long_int=0 | ||
13605 | fi | ||
13606 | |||
13607 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
13608 | if test -z "$have_llong_max"; then | ||
13609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5 | ||
13610 | $as_echo_n "checking for max value of long long... " >&6; } | ||
13611 | if test "$cross_compiling" = yes; then : | ||
13612 | |||
13613 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5 | ||
13614 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
13615 | |||
13616 | |||
13617 | else | ||
13618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13619 | /* end confdefs.h. */ | ||
13620 | |||
13621 | #include <stdio.h> | ||
13622 | /* Why is this so damn hard? */ | ||
13623 | #ifdef __GNUC__ | ||
13624 | # undef __GNUC__ | ||
13625 | #endif | ||
13626 | #define __USE_ISOC99 | ||
13627 | #include <limits.h> | ||
13628 | #define DATA "conftest.llminmax" | ||
13629 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
13630 | |||
13631 | /* | ||
13632 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
13633 | * we do this the hard way. | ||
13634 | */ | ||
13635 | static int | ||
13636 | fprint_ll(FILE *f, long long n) | ||
13637 | { | ||
13638 | unsigned int i; | ||
13639 | int l[sizeof(long long) * 8]; | ||
13640 | |||
13641 | if (n < 0) | ||
13642 | if (fprintf(f, "-") < 0) | ||
13643 | return -1; | ||
13644 | for (i = 0; n != 0; i++) { | ||
13645 | l[i] = my_abs(n % 10); | ||
13646 | n /= 10; | ||
13647 | } | ||
13648 | do { | ||
13649 | if (fprintf(f, "%d", l[--i]) < 0) | ||
13650 | return -1; | ||
13651 | } while (i != 0); | ||
13652 | if (fprintf(f, " ") < 0) | ||
13653 | return -1; | ||
13654 | return 0; | ||
13655 | } | ||
13656 | |||
13657 | int | ||
13658 | main () | ||
13659 | { | ||
13660 | |||
13661 | FILE *f; | ||
13662 | long long i, llmin, llmax = 0; | ||
13663 | |||
13664 | if((f = fopen(DATA,"w")) == NULL) | ||
13665 | exit(1); | ||
13666 | |||
13667 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
13668 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
13669 | llmin = LLONG_MIN; | ||
13670 | llmax = LLONG_MAX; | ||
13671 | #else | ||
13672 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
13673 | /* This will work on one's complement and two's complement */ | ||
13674 | for (i = 1; i > llmax; i <<= 1, i++) | ||
13675 | llmax = i; | ||
13676 | llmin = llmax + 1LL; /* wrap */ | ||
13677 | #endif | ||
13678 | |||
13679 | /* Sanity check */ | ||
13680 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
13681 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
13682 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
13683 | fprintf(f, "unknown unknown\n"); | ||
13684 | exit(2); | ||
13685 | } | ||
13686 | |||
13687 | if (fprint_ll(f, llmin) < 0) | ||
13688 | exit(3); | ||
13689 | if (fprint_ll(f, llmax) < 0) | ||
13690 | exit(4); | ||
13691 | if (fclose(f) < 0) | ||
13692 | exit(5); | ||
13693 | exit(0); | ||
13694 | |||
13695 | ; | ||
13696 | return 0; | ||
13697 | } | ||
13698 | _ACEOF | ||
13699 | if ac_fn_c_try_run "$LINENO"; then : | ||
13700 | |||
13701 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
13702 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
13703 | |||
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5 | ||
13705 | $as_echo "$llong_max" >&6; } | ||
13706 | |||
13707 | cat >>confdefs.h <<_ACEOF | ||
13708 | #define LLONG_MAX ${llong_max}LL | ||
13709 | _ACEOF | ||
13710 | |||
13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5 | ||
13712 | $as_echo_n "checking for min value of long long... " >&6; } | ||
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5 | ||
13714 | $as_echo "$llong_min" >&6; } | ||
13715 | |||
13716 | cat >>confdefs.h <<_ACEOF | ||
13717 | #define LLONG_MIN ${llong_min}LL | ||
13718 | _ACEOF | ||
13719 | |||
13720 | |||
13721 | else | ||
13722 | |||
13723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | ||
13724 | $as_echo "not found" >&6; } | ||
13725 | |||
13726 | fi | ||
13727 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
13728 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
13729 | fi | ||
13730 | |||
13731 | fi | ||
13732 | |||
13733 | |||
13734 | # More checks for data types | ||
13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5 | ||
13736 | $as_echo_n "checking for u_int type... " >&6; } | ||
13737 | if ${ac_cv_have_u_int+:} false; then : | ||
13738 | $as_echo_n "(cached) " >&6 | ||
13739 | else | ||
13740 | |||
13741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13742 | /* end confdefs.h. */ | ||
13743 | #include <sys/types.h> | ||
13744 | int | ||
13745 | main () | ||
13746 | { | ||
13747 | u_int a; a = 1; | ||
13748 | ; | ||
13749 | return 0; | ||
13750 | } | ||
13751 | _ACEOF | ||
13752 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13753 | ac_cv_have_u_int="yes" | ||
13754 | else | ||
13755 | ac_cv_have_u_int="no" | ||
13756 | |||
13757 | fi | ||
13758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13759 | |||
13760 | fi | ||
13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5 | ||
13762 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
13763 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
13764 | |||
13765 | $as_echo "#define HAVE_U_INT 1" >>confdefs.h | ||
13766 | |||
13767 | have_u_int=1 | ||
13768 | fi | ||
13769 | |||
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5 | ||
13771 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
13772 | if ${ac_cv_have_intxx_t+:} false; then : | ||
13773 | $as_echo_n "(cached) " >&6 | ||
13774 | else | ||
13775 | |||
13776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13777 | /* end confdefs.h. */ | ||
13778 | #include <sys/types.h> | ||
13779 | int | ||
13780 | main () | ||
13781 | { | ||
13782 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
13783 | ; | ||
13784 | return 0; | ||
13785 | } | ||
13786 | _ACEOF | ||
13787 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13788 | ac_cv_have_intxx_t="yes" | ||
13789 | else | ||
13790 | ac_cv_have_intxx_t="no" | ||
13791 | |||
13792 | fi | ||
13793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13794 | |||
13795 | fi | ||
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5 | ||
13797 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
13798 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
13799 | |||
13800 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
13801 | |||
13802 | have_intxx_t=1 | ||
13803 | fi | ||
13804 | |||
13805 | if (test -z "$have_intxx_t" && \ | ||
13806 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
13807 | then | ||
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5 | ||
13809 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
13810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13811 | /* end confdefs.h. */ | ||
13812 | #include <stdint.h> | ||
13813 | int | ||
13814 | main () | ||
13815 | { | ||
13816 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
13817 | ; | ||
13818 | return 0; | ||
13819 | } | ||
13820 | _ACEOF | ||
13821 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13822 | |||
13823 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
13824 | |||
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13826 | $as_echo "yes" >&6; } | ||
13827 | |||
13828 | else | ||
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13830 | $as_echo "no" >&6; } | ||
13831 | |||
13832 | fi | ||
13833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13834 | fi | ||
13835 | |||
13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5 | ||
13837 | $as_echo_n "checking for int64_t type... " >&6; } | ||
13838 | if ${ac_cv_have_int64_t+:} false; then : | ||
13839 | $as_echo_n "(cached) " >&6 | ||
13840 | else | ||
13841 | |||
13842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13843 | /* end confdefs.h. */ | ||
13844 | |||
13845 | #include <sys/types.h> | ||
13846 | #ifdef HAVE_STDINT_H | ||
13847 | # include <stdint.h> | ||
13848 | #endif | ||
13849 | #include <sys/socket.h> | ||
13850 | #ifdef HAVE_SYS_BITYPES_H | ||
13851 | # include <sys/bitypes.h> | ||
13852 | #endif | ||
13853 | |||
13854 | int | ||
13855 | main () | ||
13856 | { | ||
13857 | |||
13858 | int64_t a; a = 1; | ||
13859 | |||
13860 | ; | ||
13861 | return 0; | ||
13862 | } | ||
13863 | _ACEOF | ||
13864 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13865 | ac_cv_have_int64_t="yes" | ||
13866 | else | ||
13867 | ac_cv_have_int64_t="no" | ||
13868 | |||
13869 | fi | ||
13870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13871 | |||
13872 | fi | ||
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5 | ||
13874 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
13875 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
13876 | |||
13877 | $as_echo "#define HAVE_INT64_T 1" >>confdefs.h | ||
13878 | |||
13879 | fi | ||
13880 | |||
13881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5 | ||
13882 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
13883 | if ${ac_cv_have_u_intxx_t+:} false; then : | ||
13884 | $as_echo_n "(cached) " >&6 | ||
13885 | else | ||
13886 | |||
13887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13888 | /* end confdefs.h. */ | ||
13889 | #include <sys/types.h> | ||
13890 | int | ||
13891 | main () | ||
13892 | { | ||
13893 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
13894 | ; | ||
13895 | return 0; | ||
13896 | } | ||
13897 | _ACEOF | ||
13898 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13899 | ac_cv_have_u_intxx_t="yes" | ||
13900 | else | ||
13901 | ac_cv_have_u_intxx_t="no" | ||
13902 | |||
13903 | fi | ||
13904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13905 | |||
13906 | fi | ||
13907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5 | ||
13908 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
13909 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
13910 | |||
13911 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
13912 | |||
13913 | have_u_intxx_t=1 | ||
13914 | fi | ||
13915 | |||
13916 | if test -z "$have_u_intxx_t" ; then | ||
13917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5 | ||
13918 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
13919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13920 | /* end confdefs.h. */ | ||
13921 | #include <sys/socket.h> | ||
13922 | int | ||
13923 | main () | ||
13924 | { | ||
13925 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
13926 | ; | ||
13927 | return 0; | ||
13928 | } | ||
13929 | _ACEOF | ||
13930 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13931 | |||
13932 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
13933 | |||
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
13935 | $as_echo "yes" >&6; } | ||
13936 | |||
13937 | else | ||
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
13939 | $as_echo "no" >&6; } | ||
13940 | |||
13941 | fi | ||
13942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13943 | fi | ||
13944 | |||
13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5 | ||
13946 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
13947 | if ${ac_cv_have_u_int64_t+:} false; then : | ||
13948 | $as_echo_n "(cached) " >&6 | ||
13949 | else | ||
13950 | |||
13951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13952 | /* end confdefs.h. */ | ||
13953 | #include <sys/types.h> | ||
13954 | int | ||
13955 | main () | ||
13956 | { | ||
13957 | u_int64_t a; a = 1; | ||
13958 | ; | ||
13959 | return 0; | ||
13960 | } | ||
13961 | _ACEOF | ||
13962 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13963 | ac_cv_have_u_int64_t="yes" | ||
13964 | else | ||
13965 | ac_cv_have_u_int64_t="no" | ||
13966 | |||
13967 | fi | ||
13968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13969 | |||
13970 | fi | ||
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5 | ||
13972 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
13973 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
13974 | |||
13975 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
13976 | |||
13977 | have_u_int64_t=1 | ||
13978 | fi | ||
13979 | |||
13980 | if (test -z "$have_u_int64_t" && \ | ||
13981 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
13982 | then | ||
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
13984 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
13985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
13986 | /* end confdefs.h. */ | ||
13987 | #include <sys/bitypes.h> | ||
13988 | int | ||
13989 | main () | ||
13990 | { | ||
13991 | u_int64_t a; a = 1 | ||
13992 | ; | ||
13993 | return 0; | ||
13994 | } | ||
13995 | _ACEOF | ||
13996 | if ac_fn_c_try_compile "$LINENO"; then : | ||
13997 | |||
13998 | $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h | ||
13999 | |||
14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14001 | $as_echo "yes" >&6; } | ||
14002 | |||
14003 | else | ||
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14005 | $as_echo "no" >&6; } | ||
14006 | |||
14007 | fi | ||
14008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14009 | fi | ||
14010 | |||
14011 | if test -z "$have_u_intxx_t" ; then | ||
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5 | ||
14013 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
14014 | if ${ac_cv_have_uintxx_t+:} false; then : | ||
14015 | $as_echo_n "(cached) " >&6 | ||
14016 | else | ||
14017 | |||
14018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14019 | /* end confdefs.h. */ | ||
14020 | |||
14021 | #include <sys/types.h> | ||
14022 | |||
14023 | int | ||
14024 | main () | ||
14025 | { | ||
14026 | |||
14027 | uint8_t a; | ||
14028 | uint16_t b; | ||
14029 | uint32_t c; | ||
14030 | a = b = c = 1; | ||
14031 | |||
14032 | ; | ||
14033 | return 0; | ||
14034 | } | ||
14035 | _ACEOF | ||
14036 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14037 | ac_cv_have_uintxx_t="yes" | ||
14038 | else | ||
14039 | ac_cv_have_uintxx_t="no" | ||
14040 | |||
14041 | fi | ||
14042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14043 | |||
14044 | fi | ||
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5 | ||
14046 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
14047 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
14048 | |||
14049 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14050 | |||
14051 | fi | ||
14052 | fi | ||
14053 | |||
14054 | if (test -z "$have_uintxx_t" && \ | ||
14055 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
14056 | then | ||
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5 | ||
14058 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
14059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14060 | /* end confdefs.h. */ | ||
14061 | #include <stdint.h> | ||
14062 | int | ||
14063 | main () | ||
14064 | { | ||
14065 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
14066 | ; | ||
14067 | return 0; | ||
14068 | } | ||
14069 | _ACEOF | ||
14070 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14071 | |||
14072 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14073 | |||
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14075 | $as_echo "yes" >&6; } | ||
14076 | |||
14077 | else | ||
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14079 | $as_echo "no" >&6; } | ||
14080 | |||
14081 | fi | ||
14082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14083 | fi | ||
14084 | |||
14085 | if (test -z "$have_uintxx_t" && \ | ||
14086 | test "x$ac_cv_header_inttypes_h" = "xyes") | ||
14087 | then | ||
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in inttypes.h" >&5 | ||
14089 | $as_echo_n "checking for uintXX_t types in inttypes.h... " >&6; } | ||
14090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14091 | /* end confdefs.h. */ | ||
14092 | #include <inttypes.h> | ||
14093 | int | ||
14094 | main () | ||
14095 | { | ||
14096 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
14097 | ; | ||
14098 | return 0; | ||
14099 | } | ||
14100 | _ACEOF | ||
14101 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14102 | |||
14103 | $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h | ||
14104 | |||
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14106 | $as_echo "yes" >&6; } | ||
14107 | |||
14108 | else | ||
14109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14110 | $as_echo "no" >&6; } | ||
14111 | |||
14112 | fi | ||
14113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14114 | fi | ||
14115 | |||
14116 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
14117 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
14118 | then | ||
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
14120 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
14121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14122 | /* end confdefs.h. */ | ||
14123 | |||
14124 | #include <sys/bitypes.h> | ||
14125 | |||
14126 | int | ||
14127 | main () | ||
14128 | { | ||
14129 | |||
14130 | int8_t a; int16_t b; int32_t c; | ||
14131 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
14132 | a = b = c = e = f = g = 1; | ||
14133 | |||
14134 | ; | ||
14135 | return 0; | ||
14136 | } | ||
14137 | _ACEOF | ||
14138 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14139 | |||
14140 | $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h | ||
14141 | |||
14142 | $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h | ||
14143 | |||
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
14145 | $as_echo "yes" >&6; } | ||
14146 | |||
14147 | else | ||
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14149 | $as_echo "no" >&6; } | ||
14150 | |||
14151 | fi | ||
14152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14153 | fi | ||
14154 | |||
14155 | |||
14156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 | ||
14157 | $as_echo_n "checking for u_char... " >&6; } | ||
14158 | if ${ac_cv_have_u_char+:} false; then : | ||
14159 | $as_echo_n "(cached) " >&6 | ||
14160 | else | ||
14161 | |||
14162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14163 | /* end confdefs.h. */ | ||
14164 | #include <sys/types.h> | ||
14165 | int | ||
14166 | main () | ||
14167 | { | ||
14168 | u_char foo; foo = 125; | ||
14169 | ; | ||
14170 | return 0; | ||
14171 | } | ||
14172 | _ACEOF | ||
14173 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14174 | ac_cv_have_u_char="yes" | ||
14175 | else | ||
14176 | ac_cv_have_u_char="no" | ||
14177 | |||
14178 | fi | ||
14179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14180 | |||
14181 | fi | ||
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5 | ||
14183 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
14184 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
14185 | |||
14186 | $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h | ||
14187 | |||
14188 | fi | ||
14189 | |||
14190 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" " | ||
14191 | #include <sys/types.h> | ||
14192 | #include <stdint.h> | ||
14193 | |||
14194 | " | ||
14195 | if test "x$ac_cv_type_intmax_t" = xyes; then : | ||
14196 | |||
14197 | cat >>confdefs.h <<_ACEOF | ||
14198 | #define HAVE_INTMAX_T 1 | ||
14199 | _ACEOF | ||
14200 | |||
14201 | |||
14202 | fi | ||
14203 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" " | ||
14204 | #include <sys/types.h> | ||
14205 | #include <stdint.h> | ||
14206 | |||
14207 | " | ||
14208 | if test "x$ac_cv_type_uintmax_t" = xyes; then : | ||
14209 | |||
14210 | cat >>confdefs.h <<_ACEOF | ||
14211 | #define HAVE_UINTMAX_T 1 | ||
14212 | _ACEOF | ||
14213 | |||
14214 | |||
14215 | fi | ||
14216 | |||
14217 | |||
14218 | |||
14219 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | ||
14220 | #include <sys/socket.h> | ||
14221 | " | ||
14222 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
14223 | |||
14224 | else | ||
14225 | |||
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 | ||
14227 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
14228 | if ${curl_cv_socklen_t_equiv+:} false; then : | ||
14229 | $as_echo_n "(cached) " >&6 | ||
14230 | else | ||
14231 | |||
14232 | # Systems have either "struct sockaddr *" or | ||
14233 | # "void *" as the second argument to getpeername | ||
14234 | curl_cv_socklen_t_equiv= | ||
14235 | for arg2 in "struct sockaddr" void; do | ||
14236 | for t in int size_t unsigned long "unsigned long"; do | ||
14237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14238 | /* end confdefs.h. */ | ||
14239 | |||
14240 | #include <sys/types.h> | ||
14241 | #include <sys/socket.h> | ||
14242 | |||
14243 | int getpeername (int, $arg2 *, $t *); | ||
14244 | |||
14245 | int | ||
14246 | main () | ||
14247 | { | ||
14248 | |||
14249 | $t len; | ||
14250 | getpeername(0,0,&len); | ||
14251 | |||
14252 | ; | ||
14253 | return 0; | ||
14254 | } | ||
14255 | _ACEOF | ||
14256 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14257 | |||
14258 | curl_cv_socklen_t_equiv="$t" | ||
14259 | break | ||
14260 | |||
14261 | fi | ||
14262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14263 | done | ||
14264 | done | ||
14265 | |||
14266 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
14267 | as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 | ||
14268 | fi | ||
14269 | |||
14270 | fi | ||
14271 | |||
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5 | ||
14273 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
14274 | |||
14275 | cat >>confdefs.h <<_ACEOF | ||
14276 | #define socklen_t $curl_cv_socklen_t_equiv | ||
14277 | _ACEOF | ||
14278 | |||
14279 | fi | ||
14280 | |||
14281 | |||
14282 | |||
14283 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> | ||
14284 | " | ||
14285 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : | ||
14286 | |||
14287 | cat >>confdefs.h <<_ACEOF | ||
14288 | #define HAVE_SIG_ATOMIC_T 1 | ||
14289 | _ACEOF | ||
14290 | |||
14291 | |||
14292 | fi | ||
14293 | |||
14294 | ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" " | ||
14295 | #include <sys/types.h> | ||
14296 | #ifdef HAVE_SYS_BITYPES_H | ||
14297 | #include <sys/bitypes.h> | ||
14298 | #endif | ||
14299 | #ifdef HAVE_SYS_STATFS_H | ||
14300 | #include <sys/statfs.h> | ||
14301 | #endif | ||
14302 | #ifdef HAVE_SYS_STATVFS_H | ||
14303 | #include <sys/statvfs.h> | ||
14304 | #endif | ||
14305 | |||
14306 | " | ||
14307 | if test "x$ac_cv_type_fsblkcnt_t" = xyes; then : | ||
14308 | |||
14309 | cat >>confdefs.h <<_ACEOF | ||
14310 | #define HAVE_FSBLKCNT_T 1 | ||
14311 | _ACEOF | ||
14312 | |||
14313 | |||
14314 | fi | ||
14315 | ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" " | ||
14316 | #include <sys/types.h> | ||
14317 | #ifdef HAVE_SYS_BITYPES_H | ||
14318 | #include <sys/bitypes.h> | ||
14319 | #endif | ||
14320 | #ifdef HAVE_SYS_STATFS_H | ||
14321 | #include <sys/statfs.h> | ||
14322 | #endif | ||
14323 | #ifdef HAVE_SYS_STATVFS_H | ||
14324 | #include <sys/statvfs.h> | ||
14325 | #endif | ||
14326 | |||
14327 | " | ||
14328 | if test "x$ac_cv_type_fsfilcnt_t" = xyes; then : | ||
14329 | |||
14330 | cat >>confdefs.h <<_ACEOF | ||
14331 | #define HAVE_FSFILCNT_T 1 | ||
14332 | _ACEOF | ||
14333 | |||
14334 | |||
14335 | fi | ||
14336 | |||
14337 | |||
14338 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h> | ||
14339 | #include <netinet/in.h> | ||
14340 | " | ||
14341 | if test "x$ac_cv_type_in_addr_t" = xyes; then : | ||
14342 | |||
14343 | cat >>confdefs.h <<_ACEOF | ||
14344 | #define HAVE_IN_ADDR_T 1 | ||
14345 | _ACEOF | ||
14346 | |||
14347 | |||
14348 | fi | ||
14349 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | ||
14350 | #include <netinet/in.h> | ||
14351 | " | ||
14352 | if test "x$ac_cv_type_in_port_t" = xyes; then : | ||
14353 | |||
14354 | cat >>confdefs.h <<_ACEOF | ||
14355 | #define HAVE_IN_PORT_T 1 | ||
14356 | _ACEOF | ||
14357 | |||
14358 | |||
14359 | fi | ||
14360 | |||
14361 | |||
14362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 | ||
14363 | $as_echo_n "checking for size_t... " >&6; } | ||
14364 | if ${ac_cv_have_size_t+:} false; then : | ||
14365 | $as_echo_n "(cached) " >&6 | ||
14366 | else | ||
14367 | |||
14368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14369 | /* end confdefs.h. */ | ||
14370 | #include <sys/types.h> | ||
14371 | int | ||
14372 | main () | ||
14373 | { | ||
14374 | size_t foo; foo = 1235; | ||
14375 | ; | ||
14376 | return 0; | ||
14377 | } | ||
14378 | _ACEOF | ||
14379 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14380 | ac_cv_have_size_t="yes" | ||
14381 | else | ||
14382 | ac_cv_have_size_t="no" | ||
14383 | |||
14384 | fi | ||
14385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14386 | |||
14387 | fi | ||
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5 | ||
14389 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
14390 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
14391 | |||
14392 | $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h | ||
14393 | |||
14394 | fi | ||
14395 | |||
14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 | ||
14397 | $as_echo_n "checking for ssize_t... " >&6; } | ||
14398 | if ${ac_cv_have_ssize_t+:} false; then : | ||
14399 | $as_echo_n "(cached) " >&6 | ||
14400 | else | ||
14401 | |||
14402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14403 | /* end confdefs.h. */ | ||
14404 | #include <sys/types.h> | ||
14405 | int | ||
14406 | main () | ||
14407 | { | ||
14408 | ssize_t foo; foo = 1235; | ||
14409 | ; | ||
14410 | return 0; | ||
14411 | } | ||
14412 | _ACEOF | ||
14413 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14414 | ac_cv_have_ssize_t="yes" | ||
14415 | else | ||
14416 | ac_cv_have_ssize_t="no" | ||
14417 | |||
14418 | fi | ||
14419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14420 | |||
14421 | fi | ||
14422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5 | ||
14423 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
14424 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
14425 | |||
14426 | $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h | ||
14427 | |||
14428 | fi | ||
14429 | |||
14430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5 | ||
14431 | $as_echo_n "checking for clock_t... " >&6; } | ||
14432 | if ${ac_cv_have_clock_t+:} false; then : | ||
14433 | $as_echo_n "(cached) " >&6 | ||
14434 | else | ||
14435 | |||
14436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14437 | /* end confdefs.h. */ | ||
14438 | #include <time.h> | ||
14439 | int | ||
14440 | main () | ||
14441 | { | ||
14442 | clock_t foo; foo = 1235; | ||
14443 | ; | ||
14444 | return 0; | ||
14445 | } | ||
14446 | _ACEOF | ||
14447 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14448 | ac_cv_have_clock_t="yes" | ||
14449 | else | ||
14450 | ac_cv_have_clock_t="no" | ||
14451 | |||
14452 | fi | ||
14453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14454 | |||
14455 | fi | ||
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5 | ||
14457 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
14458 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
14459 | |||
14460 | $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h | ||
14461 | |||
14462 | fi | ||
14463 | |||
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5 | ||
14465 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
14466 | if ${ac_cv_have_sa_family_t+:} false; then : | ||
14467 | $as_echo_n "(cached) " >&6 | ||
14468 | else | ||
14469 | |||
14470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14471 | /* end confdefs.h. */ | ||
14472 | |||
14473 | #include <sys/types.h> | ||
14474 | #include <sys/socket.h> | ||
14475 | |||
14476 | int | ||
14477 | main () | ||
14478 | { | ||
14479 | sa_family_t foo; foo = 1235; | ||
14480 | ; | ||
14481 | return 0; | ||
14482 | } | ||
14483 | _ACEOF | ||
14484 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14485 | ac_cv_have_sa_family_t="yes" | ||
14486 | else | ||
14487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14488 | /* end confdefs.h. */ | ||
14489 | |||
14490 | #include <sys/types.h> | ||
14491 | #include <sys/socket.h> | ||
14492 | #include <netinet/in.h> | ||
14493 | |||
14494 | int | ||
14495 | main () | ||
14496 | { | ||
14497 | sa_family_t foo; foo = 1235; | ||
14498 | ; | ||
14499 | return 0; | ||
14500 | } | ||
14501 | _ACEOF | ||
14502 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14503 | ac_cv_have_sa_family_t="yes" | ||
14504 | else | ||
14505 | ac_cv_have_sa_family_t="no" | ||
14506 | |||
14507 | fi | ||
14508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14509 | |||
14510 | fi | ||
14511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14512 | |||
14513 | fi | ||
14514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5 | ||
14515 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
14516 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
14517 | |||
14518 | $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h | ||
14519 | |||
14520 | fi | ||
14521 | |||
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5 | ||
14523 | $as_echo_n "checking for pid_t... " >&6; } | ||
14524 | if ${ac_cv_have_pid_t+:} false; then : | ||
14525 | $as_echo_n "(cached) " >&6 | ||
14526 | else | ||
14527 | |||
14528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14529 | /* end confdefs.h. */ | ||
14530 | #include <sys/types.h> | ||
14531 | int | ||
14532 | main () | ||
14533 | { | ||
14534 | pid_t foo; foo = 1235; | ||
14535 | ; | ||
14536 | return 0; | ||
14537 | } | ||
14538 | _ACEOF | ||
14539 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14540 | ac_cv_have_pid_t="yes" | ||
14541 | else | ||
14542 | ac_cv_have_pid_t="no" | ||
14543 | |||
14544 | fi | ||
14545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14546 | |||
14547 | fi | ||
14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5 | ||
14549 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
14550 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
14551 | |||
14552 | $as_echo "#define HAVE_PID_T 1" >>confdefs.h | ||
14553 | |||
14554 | fi | ||
14555 | |||
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5 | ||
14557 | $as_echo_n "checking for mode_t... " >&6; } | ||
14558 | if ${ac_cv_have_mode_t+:} false; then : | ||
14559 | $as_echo_n "(cached) " >&6 | ||
14560 | else | ||
14561 | |||
14562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14563 | /* end confdefs.h. */ | ||
14564 | #include <sys/types.h> | ||
14565 | int | ||
14566 | main () | ||
14567 | { | ||
14568 | mode_t foo; foo = 1235; | ||
14569 | ; | ||
14570 | return 0; | ||
14571 | } | ||
14572 | _ACEOF | ||
14573 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14574 | ac_cv_have_mode_t="yes" | ||
14575 | else | ||
14576 | ac_cv_have_mode_t="no" | ||
14577 | |||
14578 | fi | ||
14579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14580 | |||
14581 | fi | ||
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5 | ||
14583 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
14584 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
14585 | |||
14586 | $as_echo "#define HAVE_MODE_T 1" >>confdefs.h | ||
14587 | |||
14588 | fi | ||
14589 | |||
14590 | |||
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 | ||
14592 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
14593 | if ${ac_cv_have_struct_sockaddr_storage+:} false; then : | ||
14594 | $as_echo_n "(cached) " >&6 | ||
14595 | else | ||
14596 | |||
14597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14598 | /* end confdefs.h. */ | ||
14599 | |||
14600 | #include <sys/types.h> | ||
14601 | #include <sys/socket.h> | ||
14602 | |||
14603 | int | ||
14604 | main () | ||
14605 | { | ||
14606 | struct sockaddr_storage s; | ||
14607 | ; | ||
14608 | return 0; | ||
14609 | } | ||
14610 | _ACEOF | ||
14611 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14612 | ac_cv_have_struct_sockaddr_storage="yes" | ||
14613 | else | ||
14614 | ac_cv_have_struct_sockaddr_storage="no" | ||
14615 | |||
14616 | fi | ||
14617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14618 | |||
14619 | fi | ||
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
14621 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
14622 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
14623 | |||
14624 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h | ||
14625 | |||
14626 | fi | ||
14627 | |||
14628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 | ||
14629 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
14630 | if ${ac_cv_have_struct_sockaddr_in6+:} false; then : | ||
14631 | $as_echo_n "(cached) " >&6 | ||
14632 | else | ||
14633 | |||
14634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14635 | /* end confdefs.h. */ | ||
14636 | |||
14637 | #include <sys/types.h> | ||
14638 | #include <netinet/in.h> | ||
14639 | |||
14640 | int | ||
14641 | main () | ||
14642 | { | ||
14643 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
14644 | ; | ||
14645 | return 0; | ||
14646 | } | ||
14647 | _ACEOF | ||
14648 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14649 | ac_cv_have_struct_sockaddr_in6="yes" | ||
14650 | else | ||
14651 | ac_cv_have_struct_sockaddr_in6="no" | ||
14652 | |||
14653 | fi | ||
14654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14655 | |||
14656 | fi | ||
14657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
14658 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
14659 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
14660 | |||
14661 | $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h | ||
14662 | |||
14663 | fi | ||
14664 | |||
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 | ||
14666 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
14667 | if ${ac_cv_have_struct_in6_addr+:} false; then : | ||
14668 | $as_echo_n "(cached) " >&6 | ||
14669 | else | ||
14670 | |||
14671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14672 | /* end confdefs.h. */ | ||
14673 | |||
14674 | #include <sys/types.h> | ||
14675 | #include <netinet/in.h> | ||
14676 | |||
14677 | int | ||
14678 | main () | ||
14679 | { | ||
14680 | struct in6_addr s; s.s6_addr[0] = 0; | ||
14681 | ; | ||
14682 | return 0; | ||
14683 | } | ||
14684 | _ACEOF | ||
14685 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14686 | ac_cv_have_struct_in6_addr="yes" | ||
14687 | else | ||
14688 | ac_cv_have_struct_in6_addr="no" | ||
14689 | |||
14690 | fi | ||
14691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14692 | |||
14693 | fi | ||
14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5 | ||
14695 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
14696 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
14697 | |||
14698 | $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h | ||
14699 | |||
14700 | |||
14701 | ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " | ||
14702 | #ifdef HAVE_SYS_TYPES_H | ||
14703 | #include <sys/types.h> | ||
14704 | #endif | ||
14705 | #include <netinet/in.h> | ||
14706 | |||
14707 | " | ||
14708 | if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then : | ||
14709 | |||
14710 | cat >>confdefs.h <<_ACEOF | ||
14711 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
14712 | _ACEOF | ||
14713 | |||
14714 | |||
14715 | fi | ||
14716 | |||
14717 | fi | ||
14718 | |||
14719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5 | ||
14720 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
14721 | if ${ac_cv_have_struct_addrinfo+:} false; then : | ||
14722 | $as_echo_n "(cached) " >&6 | ||
14723 | else | ||
14724 | |||
14725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14726 | /* end confdefs.h. */ | ||
14727 | |||
14728 | #include <sys/types.h> | ||
14729 | #include <sys/socket.h> | ||
14730 | #include <netdb.h> | ||
14731 | |||
14732 | int | ||
14733 | main () | ||
14734 | { | ||
14735 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
14736 | ; | ||
14737 | return 0; | ||
14738 | } | ||
14739 | _ACEOF | ||
14740 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14741 | ac_cv_have_struct_addrinfo="yes" | ||
14742 | else | ||
14743 | ac_cv_have_struct_addrinfo="no" | ||
14744 | |||
14745 | fi | ||
14746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14747 | |||
14748 | fi | ||
14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5 | ||
14750 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
14751 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
14752 | |||
14753 | $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h | ||
14754 | |||
14755 | fi | ||
14756 | |||
14757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 | ||
14758 | $as_echo_n "checking for struct timeval... " >&6; } | ||
14759 | if ${ac_cv_have_struct_timeval+:} false; then : | ||
14760 | $as_echo_n "(cached) " >&6 | ||
14761 | else | ||
14762 | |||
14763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14764 | /* end confdefs.h. */ | ||
14765 | #include <sys/time.h> | ||
14766 | int | ||
14767 | main () | ||
14768 | { | ||
14769 | struct timeval tv; tv.tv_sec = 1; | ||
14770 | ; | ||
14771 | return 0; | ||
14772 | } | ||
14773 | _ACEOF | ||
14774 | if ac_fn_c_try_compile "$LINENO"; then : | ||
14775 | ac_cv_have_struct_timeval="yes" | ||
14776 | else | ||
14777 | ac_cv_have_struct_timeval="no" | ||
14778 | |||
14779 | fi | ||
14780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14781 | |||
14782 | fi | ||
14783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5 | ||
14784 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
14785 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
14786 | |||
14787 | $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h | ||
14788 | |||
14789 | have_struct_timeval=1 | ||
14790 | fi | ||
14791 | |||
14792 | ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default" | ||
14793 | if test "x$ac_cv_type_struct_timespec" = xyes; then : | ||
14794 | |||
14795 | cat >>confdefs.h <<_ACEOF | ||
14796 | #define HAVE_STRUCT_TIMESPEC 1 | ||
14797 | _ACEOF | ||
14798 | |||
14799 | |||
14800 | fi | ||
14801 | |||
14802 | |||
14803 | # We need int64_t or else certian parts of the compile will fail. | ||
14804 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
14805 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
14806 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
14807 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
14808 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
14809 | echo "" | ||
14810 | exit 1; | ||
14811 | else | ||
14812 | if test "$cross_compiling" = yes; then : | ||
14813 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
14814 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
14815 | |||
14816 | else | ||
14817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14818 | /* end confdefs.h. */ | ||
14819 | |||
14820 | #include <stdio.h> | ||
14821 | #include <string.h> | ||
14822 | #ifdef HAVE_SNPRINTF | ||
14823 | main() | ||
14824 | { | ||
14825 | char buf[50]; | ||
14826 | char expected_out[50]; | ||
14827 | int mazsize = 50 ; | ||
14828 | #if (SIZEOF_LONG_INT == 8) | ||
14829 | long int num = 0x7fffffffffffffff; | ||
14830 | #else | ||
14831 | long long num = 0x7fffffffffffffffll; | ||
14832 | #endif | ||
14833 | strcpy(expected_out, "9223372036854775807"); | ||
14834 | snprintf(buf, mazsize, "%lld", num); | ||
14835 | if(strcmp(buf, expected_out) != 0) | ||
14836 | exit(1); | ||
14837 | exit(0); | ||
14838 | } | ||
14839 | #else | ||
14840 | main() { exit(0); } | ||
14841 | #endif | ||
14842 | |||
14843 | _ACEOF | ||
14844 | if ac_fn_c_try_run "$LINENO"; then : | ||
14845 | true | ||
14846 | else | ||
14847 | $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h | ||
14848 | |||
14849 | fi | ||
14850 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
14851 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
14852 | fi | ||
14853 | |||
14854 | fi | ||
14855 | |||
14856 | |||
14857 | # look for field 'ut_host' in header 'utmp.h' | ||
14858 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14859 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5 | ||
14861 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
14862 | if eval \${$ossh_varname+:} false; then : | ||
14863 | $as_echo_n "(cached) " >&6 | ||
14864 | else | ||
14865 | |||
14866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14867 | /* end confdefs.h. */ | ||
14868 | #include <utmp.h> | ||
14869 | |||
14870 | _ACEOF | ||
14871 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14872 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
14873 | eval "$ossh_varname=yes" | ||
14874 | else | ||
14875 | eval "$ossh_varname=no" | ||
14876 | fi | ||
14877 | rm -f conftest* | ||
14878 | |||
14879 | fi | ||
14880 | |||
14881 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14882 | if test -n "`echo $ossh_varname`"; then | ||
14883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14884 | $as_echo "$ossh_result" >&6; } | ||
14885 | if test "x$ossh_result" = "xyes"; then | ||
14886 | |||
14887 | $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h | ||
14888 | |||
14889 | fi | ||
14890 | else | ||
14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14892 | $as_echo "no" >&6; } | ||
14893 | fi | ||
14894 | |||
14895 | |||
14896 | # look for field 'ut_host' in header 'utmpx.h' | ||
14897 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14898 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
14899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5 | ||
14900 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
14901 | if eval \${$ossh_varname+:} false; then : | ||
14902 | $as_echo_n "(cached) " >&6 | ||
14903 | else | ||
14904 | |||
14905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14906 | /* end confdefs.h. */ | ||
14907 | #include <utmpx.h> | ||
14908 | |||
14909 | _ACEOF | ||
14910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14911 | $EGREP "ut_host" >/dev/null 2>&1; then : | ||
14912 | eval "$ossh_varname=yes" | ||
14913 | else | ||
14914 | eval "$ossh_varname=no" | ||
14915 | fi | ||
14916 | rm -f conftest* | ||
14917 | |||
14918 | fi | ||
14919 | |||
14920 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14921 | if test -n "`echo $ossh_varname`"; then | ||
14922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14923 | $as_echo "$ossh_result" >&6; } | ||
14924 | if test "x$ossh_result" = "xyes"; then | ||
14925 | |||
14926 | $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h | ||
14927 | |||
14928 | fi | ||
14929 | else | ||
14930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14931 | $as_echo "no" >&6; } | ||
14932 | fi | ||
14933 | |||
14934 | |||
14935 | # look for field 'syslen' in header 'utmpx.h' | ||
14936 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
14937 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
14938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5 | ||
14939 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
14940 | if eval \${$ossh_varname+:} false; then : | ||
14941 | $as_echo_n "(cached) " >&6 | ||
14942 | else | ||
14943 | |||
14944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14945 | /* end confdefs.h. */ | ||
14946 | #include <utmpx.h> | ||
14947 | |||
14948 | _ACEOF | ||
14949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14950 | $EGREP "syslen" >/dev/null 2>&1; then : | ||
14951 | eval "$ossh_varname=yes" | ||
14952 | else | ||
14953 | eval "$ossh_varname=no" | ||
14954 | fi | ||
14955 | rm -f conftest* | ||
14956 | |||
14957 | fi | ||
14958 | |||
14959 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14960 | if test -n "`echo $ossh_varname`"; then | ||
14961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
14962 | $as_echo "$ossh_result" >&6; } | ||
14963 | if test "x$ossh_result" = "xyes"; then | ||
14964 | |||
14965 | $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h | ||
14966 | |||
14967 | fi | ||
14968 | else | ||
14969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
14970 | $as_echo "no" >&6; } | ||
14971 | fi | ||
14972 | |||
14973 | |||
14974 | # look for field 'ut_pid' in header 'utmp.h' | ||
14975 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
14976 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
14977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5 | ||
14978 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
14979 | if eval \${$ossh_varname+:} false; then : | ||
14980 | $as_echo_n "(cached) " >&6 | ||
14981 | else | ||
14982 | |||
14983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
14984 | /* end confdefs.h. */ | ||
14985 | #include <utmp.h> | ||
14986 | |||
14987 | _ACEOF | ||
14988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
14989 | $EGREP "ut_pid" >/dev/null 2>&1; then : | ||
14990 | eval "$ossh_varname=yes" | ||
14991 | else | ||
14992 | eval "$ossh_varname=no" | ||
14993 | fi | ||
14994 | rm -f conftest* | ||
14995 | |||
14996 | fi | ||
14997 | |||
14998 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
14999 | if test -n "`echo $ossh_varname`"; then | ||
15000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15001 | $as_echo "$ossh_result" >&6; } | ||
15002 | if test "x$ossh_result" = "xyes"; then | ||
15003 | |||
15004 | $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h | ||
15005 | |||
15006 | fi | ||
15007 | else | ||
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15009 | $as_echo "no" >&6; } | ||
15010 | fi | ||
15011 | |||
15012 | |||
15013 | # look for field 'ut_type' in header 'utmp.h' | ||
15014 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15015 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5 | ||
15017 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
15018 | if eval \${$ossh_varname+:} false; then : | ||
15019 | $as_echo_n "(cached) " >&6 | ||
15020 | else | ||
15021 | |||
15022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15023 | /* end confdefs.h. */ | ||
15024 | #include <utmp.h> | ||
15025 | |||
15026 | _ACEOF | ||
15027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15028 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
15029 | eval "$ossh_varname=yes" | ||
15030 | else | ||
15031 | eval "$ossh_varname=no" | ||
15032 | fi | ||
15033 | rm -f conftest* | ||
15034 | |||
15035 | fi | ||
15036 | |||
15037 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15038 | if test -n "`echo $ossh_varname`"; then | ||
15039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15040 | $as_echo "$ossh_result" >&6; } | ||
15041 | if test "x$ossh_result" = "xyes"; then | ||
15042 | |||
15043 | $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h | ||
15044 | |||
15045 | fi | ||
15046 | else | ||
15047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15048 | $as_echo "no" >&6; } | ||
15049 | fi | ||
15050 | |||
15051 | |||
15052 | # look for field 'ut_type' in header 'utmpx.h' | ||
15053 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15054 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
15055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5 | ||
15056 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
15057 | if eval \${$ossh_varname+:} false; then : | ||
15058 | $as_echo_n "(cached) " >&6 | ||
15059 | else | ||
15060 | |||
15061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15062 | /* end confdefs.h. */ | ||
15063 | #include <utmpx.h> | ||
15064 | |||
15065 | _ACEOF | ||
15066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15067 | $EGREP "ut_type" >/dev/null 2>&1; then : | ||
15068 | eval "$ossh_varname=yes" | ||
15069 | else | ||
15070 | eval "$ossh_varname=no" | ||
15071 | fi | ||
15072 | rm -f conftest* | ||
15073 | |||
15074 | fi | ||
15075 | |||
15076 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15077 | if test -n "`echo $ossh_varname`"; then | ||
15078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15079 | $as_echo "$ossh_result" >&6; } | ||
15080 | if test "x$ossh_result" = "xyes"; then | ||
15081 | |||
15082 | $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h | ||
15083 | |||
15084 | fi | ||
15085 | else | ||
15086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15087 | $as_echo "no" >&6; } | ||
15088 | fi | ||
15089 | |||
15090 | |||
15091 | # look for field 'ut_tv' in header 'utmp.h' | ||
15092 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15093 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
15094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5 | ||
15095 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
15096 | if eval \${$ossh_varname+:} false; then : | ||
15097 | $as_echo_n "(cached) " >&6 | ||
15098 | else | ||
15099 | |||
15100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15101 | /* end confdefs.h. */ | ||
15102 | #include <utmp.h> | ||
15103 | |||
15104 | _ACEOF | ||
15105 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15106 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
15107 | eval "$ossh_varname=yes" | ||
15108 | else | ||
15109 | eval "$ossh_varname=no" | ||
15110 | fi | ||
15111 | rm -f conftest* | ||
15112 | |||
15113 | fi | ||
15114 | |||
15115 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15116 | if test -n "`echo $ossh_varname`"; then | ||
15117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15118 | $as_echo "$ossh_result" >&6; } | ||
15119 | if test "x$ossh_result" = "xyes"; then | ||
15120 | |||
15121 | $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h | ||
15122 | |||
15123 | fi | ||
15124 | else | ||
15125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15126 | $as_echo "no" >&6; } | ||
15127 | fi | ||
15128 | |||
15129 | |||
15130 | # look for field 'ut_id' in header 'utmp.h' | ||
15131 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15132 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
15133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5 | ||
15134 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
15135 | if eval \${$ossh_varname+:} false; then : | ||
15136 | $as_echo_n "(cached) " >&6 | ||
15137 | else | ||
15138 | |||
15139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15140 | /* end confdefs.h. */ | ||
15141 | #include <utmp.h> | ||
15142 | |||
15143 | _ACEOF | ||
15144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15145 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
15146 | eval "$ossh_varname=yes" | ||
15147 | else | ||
15148 | eval "$ossh_varname=no" | ||
15149 | fi | ||
15150 | rm -f conftest* | ||
15151 | |||
15152 | fi | ||
15153 | |||
15154 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15155 | if test -n "`echo $ossh_varname`"; then | ||
15156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15157 | $as_echo "$ossh_result" >&6; } | ||
15158 | if test "x$ossh_result" = "xyes"; then | ||
15159 | |||
15160 | $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h | ||
15161 | |||
15162 | fi | ||
15163 | else | ||
15164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15165 | $as_echo "no" >&6; } | ||
15166 | fi | ||
15167 | |||
15168 | |||
15169 | # look for field 'ut_id' in header 'utmpx.h' | ||
15170 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15171 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5 | ||
15173 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
15174 | if eval \${$ossh_varname+:} false; then : | ||
15175 | $as_echo_n "(cached) " >&6 | ||
15176 | else | ||
15177 | |||
15178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15179 | /* end confdefs.h. */ | ||
15180 | #include <utmpx.h> | ||
15181 | |||
15182 | _ACEOF | ||
15183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15184 | $EGREP "ut_id" >/dev/null 2>&1; then : | ||
15185 | eval "$ossh_varname=yes" | ||
15186 | else | ||
15187 | eval "$ossh_varname=no" | ||
15188 | fi | ||
15189 | rm -f conftest* | ||
15190 | |||
15191 | fi | ||
15192 | |||
15193 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15194 | if test -n "`echo $ossh_varname`"; then | ||
15195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15196 | $as_echo "$ossh_result" >&6; } | ||
15197 | if test "x$ossh_result" = "xyes"; then | ||
15198 | |||
15199 | $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h | ||
15200 | |||
15201 | fi | ||
15202 | else | ||
15203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15204 | $as_echo "no" >&6; } | ||
15205 | fi | ||
15206 | |||
15207 | |||
15208 | # look for field 'ut_addr' in header 'utmp.h' | ||
15209 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15210 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
15211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5 | ||
15212 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
15213 | if eval \${$ossh_varname+:} false; then : | ||
15214 | $as_echo_n "(cached) " >&6 | ||
15215 | else | ||
15216 | |||
15217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15218 | /* end confdefs.h. */ | ||
15219 | #include <utmp.h> | ||
15220 | |||
15221 | _ACEOF | ||
15222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15223 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
15224 | eval "$ossh_varname=yes" | ||
15225 | else | ||
15226 | eval "$ossh_varname=no" | ||
15227 | fi | ||
15228 | rm -f conftest* | ||
15229 | |||
15230 | fi | ||
15231 | |||
15232 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15233 | if test -n "`echo $ossh_varname`"; then | ||
15234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15235 | $as_echo "$ossh_result" >&6; } | ||
15236 | if test "x$ossh_result" = "xyes"; then | ||
15237 | |||
15238 | $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h | ||
15239 | |||
15240 | fi | ||
15241 | else | ||
15242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15243 | $as_echo "no" >&6; } | ||
15244 | fi | ||
15245 | |||
15246 | |||
15247 | # look for field 'ut_addr' in header 'utmpx.h' | ||
15248 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15249 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
15250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5 | ||
15251 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
15252 | if eval \${$ossh_varname+:} false; then : | ||
15253 | $as_echo_n "(cached) " >&6 | ||
15254 | else | ||
15255 | |||
15256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15257 | /* end confdefs.h. */ | ||
15258 | #include <utmpx.h> | ||
15259 | |||
15260 | _ACEOF | ||
15261 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15262 | $EGREP "ut_addr" >/dev/null 2>&1; then : | ||
15263 | eval "$ossh_varname=yes" | ||
15264 | else | ||
15265 | eval "$ossh_varname=no" | ||
15266 | fi | ||
15267 | rm -f conftest* | ||
15268 | |||
15269 | fi | ||
15270 | |||
15271 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15272 | if test -n "`echo $ossh_varname`"; then | ||
15273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15274 | $as_echo "$ossh_result" >&6; } | ||
15275 | if test "x$ossh_result" = "xyes"; then | ||
15276 | |||
15277 | $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h | ||
15278 | |||
15279 | fi | ||
15280 | else | ||
15281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15282 | $as_echo "no" >&6; } | ||
15283 | fi | ||
15284 | |||
15285 | |||
15286 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
15287 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15288 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
15289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5 | ||
15290 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
15291 | if eval \${$ossh_varname+:} false; then : | ||
15292 | $as_echo_n "(cached) " >&6 | ||
15293 | else | ||
15294 | |||
15295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15296 | /* end confdefs.h. */ | ||
15297 | #include <utmp.h> | ||
15298 | |||
15299 | _ACEOF | ||
15300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15301 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
15302 | eval "$ossh_varname=yes" | ||
15303 | else | ||
15304 | eval "$ossh_varname=no" | ||
15305 | fi | ||
15306 | rm -f conftest* | ||
15307 | |||
15308 | fi | ||
15309 | |||
15310 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15311 | if test -n "`echo $ossh_varname`"; then | ||
15312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15313 | $as_echo "$ossh_result" >&6; } | ||
15314 | if test "x$ossh_result" = "xyes"; then | ||
15315 | |||
15316 | $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h | ||
15317 | |||
15318 | fi | ||
15319 | else | ||
15320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15321 | $as_echo "no" >&6; } | ||
15322 | fi | ||
15323 | |||
15324 | |||
15325 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
15326 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15327 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
15328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
15329 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
15330 | if eval \${$ossh_varname+:} false; then : | ||
15331 | $as_echo_n "(cached) " >&6 | ||
15332 | else | ||
15333 | |||
15334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15335 | /* end confdefs.h. */ | ||
15336 | #include <utmpx.h> | ||
15337 | |||
15338 | _ACEOF | ||
15339 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15340 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then : | ||
15341 | eval "$ossh_varname=yes" | ||
15342 | else | ||
15343 | eval "$ossh_varname=no" | ||
15344 | fi | ||
15345 | rm -f conftest* | ||
15346 | |||
15347 | fi | ||
15348 | |||
15349 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15350 | if test -n "`echo $ossh_varname`"; then | ||
15351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15352 | $as_echo "$ossh_result" >&6; } | ||
15353 | if test "x$ossh_result" = "xyes"; then | ||
15354 | |||
15355 | $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h | ||
15356 | |||
15357 | fi | ||
15358 | else | ||
15359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15360 | $as_echo "no" >&6; } | ||
15361 | fi | ||
15362 | |||
15363 | |||
15364 | # look for field 'ut_exit' in header 'utmp.h' | ||
15365 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15366 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
15367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5 | ||
15368 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
15369 | if eval \${$ossh_varname+:} false; then : | ||
15370 | $as_echo_n "(cached) " >&6 | ||
15371 | else | ||
15372 | |||
15373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15374 | /* end confdefs.h. */ | ||
15375 | #include <utmp.h> | ||
15376 | |||
15377 | _ACEOF | ||
15378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15379 | $EGREP "ut_exit" >/dev/null 2>&1; then : | ||
15380 | eval "$ossh_varname=yes" | ||
15381 | else | ||
15382 | eval "$ossh_varname=no" | ||
15383 | fi | ||
15384 | rm -f conftest* | ||
15385 | |||
15386 | fi | ||
15387 | |||
15388 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15389 | if test -n "`echo $ossh_varname`"; then | ||
15390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15391 | $as_echo "$ossh_result" >&6; } | ||
15392 | if test "x$ossh_result" = "xyes"; then | ||
15393 | |||
15394 | $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h | ||
15395 | |||
15396 | fi | ||
15397 | else | ||
15398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15399 | $as_echo "no" >&6; } | ||
15400 | fi | ||
15401 | |||
15402 | |||
15403 | # look for field 'ut_time' in header 'utmp.h' | ||
15404 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
15405 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
15406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5 | ||
15407 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
15408 | if eval \${$ossh_varname+:} false; then : | ||
15409 | $as_echo_n "(cached) " >&6 | ||
15410 | else | ||
15411 | |||
15412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15413 | /* end confdefs.h. */ | ||
15414 | #include <utmp.h> | ||
15415 | |||
15416 | _ACEOF | ||
15417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15418 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
15419 | eval "$ossh_varname=yes" | ||
15420 | else | ||
15421 | eval "$ossh_varname=no" | ||
15422 | fi | ||
15423 | rm -f conftest* | ||
15424 | |||
15425 | fi | ||
15426 | |||
15427 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15428 | if test -n "`echo $ossh_varname`"; then | ||
15429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15430 | $as_echo "$ossh_result" >&6; } | ||
15431 | if test "x$ossh_result" = "xyes"; then | ||
15432 | |||
15433 | $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h | ||
15434 | |||
15435 | fi | ||
15436 | else | ||
15437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15438 | $as_echo "no" >&6; } | ||
15439 | fi | ||
15440 | |||
15441 | |||
15442 | # look for field 'ut_time' in header 'utmpx.h' | ||
15443 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15444 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
15445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5 | ||
15446 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
15447 | if eval \${$ossh_varname+:} false; then : | ||
15448 | $as_echo_n "(cached) " >&6 | ||
15449 | else | ||
15450 | |||
15451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15452 | /* end confdefs.h. */ | ||
15453 | #include <utmpx.h> | ||
15454 | |||
15455 | _ACEOF | ||
15456 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15457 | $EGREP "ut_time" >/dev/null 2>&1; then : | ||
15458 | eval "$ossh_varname=yes" | ||
15459 | else | ||
15460 | eval "$ossh_varname=no" | ||
15461 | fi | ||
15462 | rm -f conftest* | ||
15463 | |||
15464 | fi | ||
15465 | |||
15466 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15467 | if test -n "`echo $ossh_varname`"; then | ||
15468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15469 | $as_echo "$ossh_result" >&6; } | ||
15470 | if test "x$ossh_result" = "xyes"; then | ||
15471 | |||
15472 | $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h | ||
15473 | |||
15474 | fi | ||
15475 | else | ||
15476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15477 | $as_echo "no" >&6; } | ||
15478 | fi | ||
15479 | |||
15480 | |||
15481 | # look for field 'ut_tv' in header 'utmpx.h' | ||
15482 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
15483 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
15484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5 | ||
15485 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
15486 | if eval \${$ossh_varname+:} false; then : | ||
15487 | $as_echo_n "(cached) " >&6 | ||
15488 | else | ||
15489 | |||
15490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15491 | /* end confdefs.h. */ | ||
15492 | #include <utmpx.h> | ||
15493 | |||
15494 | _ACEOF | ||
15495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
15496 | $EGREP "ut_tv" >/dev/null 2>&1; then : | ||
15497 | eval "$ossh_varname=yes" | ||
15498 | else | ||
15499 | eval "$ossh_varname=no" | ||
15500 | fi | ||
15501 | rm -f conftest* | ||
15502 | |||
15503 | fi | ||
15504 | |||
15505 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
15506 | if test -n "`echo $ossh_varname`"; then | ||
15507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5 | ||
15508 | $as_echo "$ossh_result" >&6; } | ||
15509 | if test "x$ossh_result" = "xyes"; then | ||
15510 | |||
15511 | $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h | ||
15512 | |||
15513 | fi | ||
15514 | else | ||
15515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15516 | $as_echo "no" >&6; } | ||
15517 | fi | ||
15518 | |||
15519 | |||
15520 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" | ||
15521 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : | ||
15522 | |||
15523 | cat >>confdefs.h <<_ACEOF | ||
15524 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
15525 | _ACEOF | ||
15526 | |||
15527 | |||
15528 | fi | ||
15529 | |||
15530 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " | ||
15531 | #include <sys/types.h> | ||
15532 | #include <pwd.h> | ||
15533 | |||
15534 | " | ||
15535 | if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : | ||
15536 | |||
15537 | cat >>confdefs.h <<_ACEOF | ||
15538 | #define HAVE_STRUCT_PASSWD_PW_GECOS 1 | ||
15539 | _ACEOF | ||
15540 | |||
15541 | |||
15542 | fi | ||
15543 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_class" "ac_cv_member_struct_passwd_pw_class" " | ||
15544 | #include <sys/types.h> | ||
15545 | #include <pwd.h> | ||
15546 | |||
15547 | " | ||
15548 | if test "x$ac_cv_member_struct_passwd_pw_class" = xyes; then : | ||
15549 | |||
15550 | cat >>confdefs.h <<_ACEOF | ||
15551 | #define HAVE_STRUCT_PASSWD_PW_CLASS 1 | ||
15552 | _ACEOF | ||
15553 | |||
15554 | |||
15555 | fi | ||
15556 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_change" "ac_cv_member_struct_passwd_pw_change" " | ||
15557 | #include <sys/types.h> | ||
15558 | #include <pwd.h> | ||
15559 | |||
15560 | " | ||
15561 | if test "x$ac_cv_member_struct_passwd_pw_change" = xyes; then : | ||
15562 | |||
15563 | cat >>confdefs.h <<_ACEOF | ||
15564 | #define HAVE_STRUCT_PASSWD_PW_CHANGE 1 | ||
15565 | _ACEOF | ||
15566 | |||
15567 | |||
15568 | fi | ||
15569 | ac_fn_c_check_member "$LINENO" "struct passwd" "pw_expire" "ac_cv_member_struct_passwd_pw_expire" " | ||
15570 | #include <sys/types.h> | ||
15571 | #include <pwd.h> | ||
15572 | |||
15573 | " | ||
15574 | if test "x$ac_cv_member_struct_passwd_pw_expire" = xyes; then : | ||
15575 | |||
15576 | cat >>confdefs.h <<_ACEOF | ||
15577 | #define HAVE_STRUCT_PASSWD_PW_EXPIRE 1 | ||
15578 | _ACEOF | ||
15579 | |||
15580 | |||
15581 | fi | ||
15582 | |||
15583 | |||
15584 | ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" " | ||
15585 | #include <stdio.h> | ||
15586 | #if HAVE_SYS_TYPES_H | ||
15587 | # include <sys/types.h> | ||
15588 | #endif | ||
15589 | #include <netinet/in.h> | ||
15590 | #include <arpa/nameser.h> | ||
15591 | #include <resolv.h> | ||
15592 | |||
15593 | " | ||
15594 | if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then : | ||
15595 | |||
15596 | else | ||
15597 | |||
15598 | $as_echo "#define __res_state state" >>confdefs.h | ||
15599 | |||
15600 | fi | ||
15601 | |||
15602 | |||
15603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 | ||
15604 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
15605 | if ${ac_cv_have_ss_family_in_struct_ss+:} false; then : | ||
15606 | $as_echo_n "(cached) " >&6 | ||
15607 | else | ||
15608 | |||
15609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15610 | /* end confdefs.h. */ | ||
15611 | |||
15612 | #include <sys/types.h> | ||
15613 | #include <sys/socket.h> | ||
15614 | |||
15615 | int | ||
15616 | main () | ||
15617 | { | ||
15618 | struct sockaddr_storage s; s.ss_family = 1; | ||
15619 | ; | ||
15620 | return 0; | ||
15621 | } | ||
15622 | _ACEOF | ||
15623 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15624 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
15625 | else | ||
15626 | ac_cv_have_ss_family_in_struct_ss="no" | ||
15627 | fi | ||
15628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15629 | |||
15630 | fi | ||
15631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
15632 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
15633 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
15634 | |||
15635 | $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h | ||
15636 | |||
15637 | fi | ||
15638 | |||
15639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
15640 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
15641 | if ${ac_cv_have___ss_family_in_struct_ss+:} false; then : | ||
15642 | $as_echo_n "(cached) " >&6 | ||
15643 | else | ||
15644 | |||
15645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15646 | /* end confdefs.h. */ | ||
15647 | |||
15648 | #include <sys/types.h> | ||
15649 | #include <sys/socket.h> | ||
15650 | |||
15651 | int | ||
15652 | main () | ||
15653 | { | ||
15654 | struct sockaddr_storage s; s.__ss_family = 1; | ||
15655 | ; | ||
15656 | return 0; | ||
15657 | } | ||
15658 | _ACEOF | ||
15659 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15660 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
15661 | else | ||
15662 | ac_cv_have___ss_family_in_struct_ss="no" | ||
15663 | |||
15664 | fi | ||
15665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15666 | |||
15667 | fi | ||
15668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
15669 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
15670 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
15671 | |||
15672 | $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h | ||
15673 | |||
15674 | fi | ||
15675 | |||
15676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5 | ||
15677 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
15678 | if ${ac_cv_have_accrights_in_msghdr+:} false; then : | ||
15679 | $as_echo_n "(cached) " >&6 | ||
15680 | else | ||
15681 | |||
15682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15683 | /* end confdefs.h. */ | ||
15684 | |||
15685 | #include <sys/types.h> | ||
15686 | #include <sys/socket.h> | ||
15687 | #include <sys/uio.h> | ||
15688 | |||
15689 | int | ||
15690 | main () | ||
15691 | { | ||
15692 | |||
15693 | #ifdef msg_accrights | ||
15694 | #error "msg_accrights is a macro" | ||
15695 | exit(1); | ||
15696 | #endif | ||
15697 | struct msghdr m; | ||
15698 | m.msg_accrights = 0; | ||
15699 | exit(0); | ||
15700 | |||
15701 | ; | ||
15702 | return 0; | ||
15703 | } | ||
15704 | _ACEOF | ||
15705 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15706 | ac_cv_have_accrights_in_msghdr="yes" | ||
15707 | else | ||
15708 | ac_cv_have_accrights_in_msghdr="no" | ||
15709 | |||
15710 | fi | ||
15711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15712 | |||
15713 | fi | ||
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
15715 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
15716 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
15717 | |||
15718 | $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h | ||
15719 | |||
15720 | fi | ||
15721 | |||
15722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5 | ||
15723 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
15724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15725 | /* end confdefs.h. */ | ||
15726 | |||
15727 | #include <sys/param.h> | ||
15728 | #include <sys/stat.h> | ||
15729 | #ifdef HAVE_SYS_TIME_H | ||
15730 | # include <sys/time.h> | ||
15731 | #endif | ||
15732 | #ifdef HAVE_SYS_MOUNT_H | ||
15733 | #include <sys/mount.h> | ||
15734 | #endif | ||
15735 | #ifdef HAVE_SYS_STATVFS_H | ||
15736 | #include <sys/statvfs.h> | ||
15737 | #endif | ||
15738 | |||
15739 | int | ||
15740 | main () | ||
15741 | { | ||
15742 | struct statvfs s; s.f_fsid = 0; | ||
15743 | ; | ||
15744 | return 0; | ||
15745 | } | ||
15746 | _ACEOF | ||
15747 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15749 | $as_echo "yes" >&6; } | ||
15750 | else | ||
15751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15752 | $as_echo "no" >&6; } | ||
15753 | |||
15754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5 | ||
15755 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
15756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15757 | /* end confdefs.h. */ | ||
15758 | |||
15759 | #include <sys/types.h> | ||
15760 | #include <sys/statvfs.h> | ||
15761 | |||
15762 | int | ||
15763 | main () | ||
15764 | { | ||
15765 | fsid_t t; t.val[0] = 0; | ||
15766 | ; | ||
15767 | return 0; | ||
15768 | } | ||
15769 | _ACEOF | ||
15770 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15772 | $as_echo "yes" >&6; } | ||
15773 | |||
15774 | $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h | ||
15775 | |||
15776 | else | ||
15777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15778 | $as_echo "no" >&6; } | ||
15779 | fi | ||
15780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15781 | |||
15782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5 | ||
15783 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
15784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15785 | /* end confdefs.h. */ | ||
15786 | |||
15787 | #include <sys/types.h> | ||
15788 | #include <sys/statvfs.h> | ||
15789 | |||
15790 | int | ||
15791 | main () | ||
15792 | { | ||
15793 | fsid_t t; t.__val[0] = 0; | ||
15794 | ; | ||
15795 | return 0; | ||
15796 | } | ||
15797 | _ACEOF | ||
15798 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
15800 | $as_echo "yes" >&6; } | ||
15801 | |||
15802 | $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h | ||
15803 | |||
15804 | else | ||
15805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
15806 | $as_echo "no" >&6; } | ||
15807 | fi | ||
15808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15809 | |||
15810 | fi | ||
15811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15812 | |||
15813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5 | ||
15814 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
15815 | if ${ac_cv_have_control_in_msghdr+:} false; then : | ||
15816 | $as_echo_n "(cached) " >&6 | ||
15817 | else | ||
15818 | |||
15819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15820 | /* end confdefs.h. */ | ||
15821 | |||
15822 | #include <sys/types.h> | ||
15823 | #include <sys/socket.h> | ||
15824 | #include <sys/uio.h> | ||
15825 | |||
15826 | int | ||
15827 | main () | ||
15828 | { | ||
15829 | |||
15830 | #ifdef msg_control | ||
15831 | #error "msg_control is a macro" | ||
15832 | exit(1); | ||
15833 | #endif | ||
15834 | struct msghdr m; | ||
15835 | m.msg_control = 0; | ||
15836 | exit(0); | ||
15837 | |||
15838 | ; | ||
15839 | return 0; | ||
15840 | } | ||
15841 | _ACEOF | ||
15842 | if ac_fn_c_try_compile "$LINENO"; then : | ||
15843 | ac_cv_have_control_in_msghdr="yes" | ||
15844 | else | ||
15845 | ac_cv_have_control_in_msghdr="no" | ||
15846 | |||
15847 | fi | ||
15848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
15849 | |||
15850 | fi | ||
15851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5 | ||
15852 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
15853 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
15854 | |||
15855 | $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h | ||
15856 | |||
15857 | fi | ||
15858 | |||
15859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5 | ||
15860 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
15861 | if ${ac_cv_libc_defines___progname+:} false; then : | ||
15862 | $as_echo_n "(cached) " >&6 | ||
15863 | else | ||
15864 | |||
15865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15866 | /* end confdefs.h. */ | ||
15867 | |||
15868 | int | ||
15869 | main () | ||
15870 | { | ||
15871 | extern char *__progname; printf("%s", __progname); | ||
15872 | ; | ||
15873 | return 0; | ||
15874 | } | ||
15875 | _ACEOF | ||
15876 | if ac_fn_c_try_link "$LINENO"; then : | ||
15877 | ac_cv_libc_defines___progname="yes" | ||
15878 | else | ||
15879 | ac_cv_libc_defines___progname="no" | ||
15880 | |||
15881 | fi | ||
15882 | rm -f core conftest.err conftest.$ac_objext \ | ||
15883 | conftest$ac_exeext conftest.$ac_ext | ||
15884 | |||
15885 | fi | ||
15886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5 | ||
15887 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
15888 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
15889 | |||
15890 | $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h | ||
15891 | |||
15892 | fi | ||
15893 | |||
15894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5 | ||
15895 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
15896 | if ${ac_cv_cc_implements___FUNCTION__+:} false; then : | ||
15897 | $as_echo_n "(cached) " >&6 | ||
15898 | else | ||
15899 | |||
15900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15901 | /* end confdefs.h. */ | ||
15902 | #include <stdio.h> | ||
15903 | int | ||
15904 | main () | ||
15905 | { | ||
15906 | printf("%s", __FUNCTION__); | ||
15907 | ; | ||
15908 | return 0; | ||
15909 | } | ||
15910 | _ACEOF | ||
15911 | if ac_fn_c_try_link "$LINENO"; then : | ||
15912 | ac_cv_cc_implements___FUNCTION__="yes" | ||
15913 | else | ||
15914 | ac_cv_cc_implements___FUNCTION__="no" | ||
15915 | |||
15916 | fi | ||
15917 | rm -f core conftest.err conftest.$ac_objext \ | ||
15918 | conftest$ac_exeext conftest.$ac_ext | ||
15919 | |||
15920 | fi | ||
15921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
15922 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
15923 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
15924 | |||
15925 | $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h | ||
15926 | |||
15927 | fi | ||
15928 | |||
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5 | ||
15930 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
15931 | if ${ac_cv_cc_implements___func__+:} false; then : | ||
15932 | $as_echo_n "(cached) " >&6 | ||
15933 | else | ||
15934 | |||
15935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15936 | /* end confdefs.h. */ | ||
15937 | #include <stdio.h> | ||
15938 | int | ||
15939 | main () | ||
15940 | { | ||
15941 | printf("%s", __func__); | ||
15942 | ; | ||
15943 | return 0; | ||
15944 | } | ||
15945 | _ACEOF | ||
15946 | if ac_fn_c_try_link "$LINENO"; then : | ||
15947 | ac_cv_cc_implements___func__="yes" | ||
15948 | else | ||
15949 | ac_cv_cc_implements___func__="no" | ||
15950 | |||
15951 | fi | ||
15952 | rm -f core conftest.err conftest.$ac_objext \ | ||
15953 | conftest$ac_exeext conftest.$ac_ext | ||
15954 | |||
15955 | fi | ||
15956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5 | ||
15957 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
15958 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
15959 | |||
15960 | $as_echo "#define HAVE___func__ 1" >>confdefs.h | ||
15961 | |||
15962 | fi | ||
15963 | |||
15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5 | ||
15965 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
15966 | if ${ac_cv_have_va_copy+:} false; then : | ||
15967 | $as_echo_n "(cached) " >&6 | ||
15968 | else | ||
15969 | |||
15970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
15971 | /* end confdefs.h. */ | ||
15972 | |||
15973 | #include <stdarg.h> | ||
15974 | va_list x,y; | ||
15975 | |||
15976 | int | ||
15977 | main () | ||
15978 | { | ||
15979 | va_copy(x,y); | ||
15980 | ; | ||
15981 | return 0; | ||
15982 | } | ||
15983 | _ACEOF | ||
15984 | if ac_fn_c_try_link "$LINENO"; then : | ||
15985 | ac_cv_have_va_copy="yes" | ||
15986 | else | ||
15987 | ac_cv_have_va_copy="no" | ||
15988 | |||
15989 | fi | ||
15990 | rm -f core conftest.err conftest.$ac_objext \ | ||
15991 | conftest$ac_exeext conftest.$ac_ext | ||
15992 | |||
15993 | fi | ||
15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5 | ||
15995 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
15996 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
15997 | |||
15998 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | ||
15999 | |||
16000 | fi | ||
16001 | |||
16002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5 | ||
16003 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
16004 | if ${ac_cv_have___va_copy+:} false; then : | ||
16005 | $as_echo_n "(cached) " >&6 | ||
16006 | else | ||
16007 | |||
16008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16009 | /* end confdefs.h. */ | ||
16010 | |||
16011 | #include <stdarg.h> | ||
16012 | va_list x,y; | ||
16013 | |||
16014 | int | ||
16015 | main () | ||
16016 | { | ||
16017 | __va_copy(x,y); | ||
16018 | ; | ||
16019 | return 0; | ||
16020 | } | ||
16021 | _ACEOF | ||
16022 | if ac_fn_c_try_link "$LINENO"; then : | ||
16023 | ac_cv_have___va_copy="yes" | ||
16024 | else | ||
16025 | ac_cv_have___va_copy="no" | ||
16026 | |||
16027 | fi | ||
16028 | rm -f core conftest.err conftest.$ac_objext \ | ||
16029 | conftest$ac_exeext conftest.$ac_ext | ||
16030 | |||
16031 | fi | ||
16032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5 | ||
16033 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
16034 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
16035 | |||
16036 | $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h | ||
16037 | |||
16038 | fi | ||
16039 | |||
16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5 | ||
16041 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
16042 | if ${ac_cv_have_getopt_optreset+:} false; then : | ||
16043 | $as_echo_n "(cached) " >&6 | ||
16044 | else | ||
16045 | |||
16046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16047 | /* end confdefs.h. */ | ||
16048 | #include <getopt.h> | ||
16049 | int | ||
16050 | main () | ||
16051 | { | ||
16052 | extern int optreset; optreset = 0; | ||
16053 | ; | ||
16054 | return 0; | ||
16055 | } | ||
16056 | _ACEOF | ||
16057 | if ac_fn_c_try_link "$LINENO"; then : | ||
16058 | ac_cv_have_getopt_optreset="yes" | ||
16059 | else | ||
16060 | ac_cv_have_getopt_optreset="no" | ||
16061 | |||
16062 | fi | ||
16063 | rm -f core conftest.err conftest.$ac_objext \ | ||
16064 | conftest$ac_exeext conftest.$ac_ext | ||
16065 | |||
16066 | fi | ||
16067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5 | ||
16068 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
16069 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
16070 | |||
16071 | $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h | ||
16072 | |||
16073 | fi | ||
16074 | |||
16075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5 | ||
16076 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
16077 | if ${ac_cv_libc_defines_sys_errlist+:} false; then : | ||
16078 | $as_echo_n "(cached) " >&6 | ||
16079 | else | ||
16080 | |||
16081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16082 | /* end confdefs.h. */ | ||
16083 | |||
16084 | int | ||
16085 | main () | ||
16086 | { | ||
16087 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
16088 | ; | ||
16089 | return 0; | ||
16090 | } | ||
16091 | _ACEOF | ||
16092 | if ac_fn_c_try_link "$LINENO"; then : | ||
16093 | ac_cv_libc_defines_sys_errlist="yes" | ||
16094 | else | ||
16095 | ac_cv_libc_defines_sys_errlist="no" | ||
16096 | |||
16097 | fi | ||
16098 | rm -f core conftest.err conftest.$ac_objext \ | ||
16099 | conftest$ac_exeext conftest.$ac_ext | ||
16100 | |||
16101 | fi | ||
16102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
16103 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
16104 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
16105 | |||
16106 | $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h | ||
16107 | |||
16108 | fi | ||
16109 | |||
16110 | |||
16111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5 | ||
16112 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
16113 | if ${ac_cv_libc_defines_sys_nerr+:} false; then : | ||
16114 | $as_echo_n "(cached) " >&6 | ||
16115 | else | ||
16116 | |||
16117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16118 | /* end confdefs.h. */ | ||
16119 | |||
16120 | int | ||
16121 | main () | ||
16122 | { | ||
16123 | extern int sys_nerr; printf("%i", sys_nerr); | ||
16124 | ; | ||
16125 | return 0; | ||
16126 | } | ||
16127 | _ACEOF | ||
16128 | if ac_fn_c_try_link "$LINENO"; then : | ||
16129 | ac_cv_libc_defines_sys_nerr="yes" | ||
16130 | else | ||
16131 | ac_cv_libc_defines_sys_nerr="no" | ||
16132 | |||
16133 | fi | ||
16134 | rm -f core conftest.err conftest.$ac_objext \ | ||
16135 | conftest$ac_exeext conftest.$ac_ext | ||
16136 | |||
16137 | fi | ||
16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
16139 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
16140 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
16141 | |||
16142 | $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h | ||
16143 | |||
16144 | fi | ||
16145 | |||
16146 | # Check libraries needed by DNS fingerprint support | ||
16147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5 | ||
16148 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
16149 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
16150 | $as_echo_n "(cached) " >&6 | ||
16151 | else | ||
16152 | ac_func_search_save_LIBS=$LIBS | ||
16153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16154 | /* end confdefs.h. */ | ||
16155 | |||
16156 | /* Override any GCC internal prototype to avoid an error. | ||
16157 | Use char because int might match the return type of a GCC | ||
16158 | builtin and then its argument prototype would still apply. */ | ||
16159 | #ifdef __cplusplus | ||
16160 | extern "C" | ||
16161 | #endif | ||
16162 | char getrrsetbyname (); | ||
16163 | int | ||
16164 | main () | ||
16165 | { | ||
16166 | return getrrsetbyname (); | ||
16167 | ; | ||
16168 | return 0; | ||
16169 | } | ||
16170 | _ACEOF | ||
16171 | for ac_lib in '' resolv; do | ||
16172 | if test -z "$ac_lib"; then | ||
16173 | ac_res="none required" | ||
16174 | else | ||
16175 | ac_res=-l$ac_lib | ||
16176 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16177 | fi | ||
16178 | if ac_fn_c_try_link "$LINENO"; then : | ||
16179 | ac_cv_search_getrrsetbyname=$ac_res | ||
16180 | fi | ||
16181 | rm -f core conftest.err conftest.$ac_objext \ | ||
16182 | conftest$ac_exeext | ||
16183 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
16184 | break | ||
16185 | fi | ||
16186 | done | ||
16187 | if ${ac_cv_search_getrrsetbyname+:} false; then : | ||
16188 | |||
16189 | else | ||
16190 | ac_cv_search_getrrsetbyname=no | ||
16191 | fi | ||
16192 | rm conftest.$ac_ext | ||
16193 | LIBS=$ac_func_search_save_LIBS | ||
16194 | fi | ||
16195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5 | ||
16196 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
16197 | ac_res=$ac_cv_search_getrrsetbyname | ||
16198 | if test "$ac_res" != no; then : | ||
16199 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16200 | |||
16201 | $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h | ||
16202 | |||
16203 | else | ||
16204 | |||
16205 | # Needed by our getrrsetbyname() | ||
16206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 | ||
16207 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
16208 | if ${ac_cv_search_res_query+:} false; then : | ||
16209 | $as_echo_n "(cached) " >&6 | ||
16210 | else | ||
16211 | ac_func_search_save_LIBS=$LIBS | ||
16212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16213 | /* end confdefs.h. */ | ||
16214 | |||
16215 | /* Override any GCC internal prototype to avoid an error. | ||
16216 | Use char because int might match the return type of a GCC | ||
16217 | builtin and then its argument prototype would still apply. */ | ||
16218 | #ifdef __cplusplus | ||
16219 | extern "C" | ||
16220 | #endif | ||
16221 | char res_query (); | ||
16222 | int | ||
16223 | main () | ||
16224 | { | ||
16225 | return res_query (); | ||
16226 | ; | ||
16227 | return 0; | ||
16228 | } | ||
16229 | _ACEOF | ||
16230 | for ac_lib in '' resolv; do | ||
16231 | if test -z "$ac_lib"; then | ||
16232 | ac_res="none required" | ||
16233 | else | ||
16234 | ac_res=-l$ac_lib | ||
16235 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16236 | fi | ||
16237 | if ac_fn_c_try_link "$LINENO"; then : | ||
16238 | ac_cv_search_res_query=$ac_res | ||
16239 | fi | ||
16240 | rm -f core conftest.err conftest.$ac_objext \ | ||
16241 | conftest$ac_exeext | ||
16242 | if ${ac_cv_search_res_query+:} false; then : | ||
16243 | break | ||
16244 | fi | ||
16245 | done | ||
16246 | if ${ac_cv_search_res_query+:} false; then : | ||
16247 | |||
16248 | else | ||
16249 | ac_cv_search_res_query=no | ||
16250 | fi | ||
16251 | rm conftest.$ac_ext | ||
16252 | LIBS=$ac_func_search_save_LIBS | ||
16253 | fi | ||
16254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 | ||
16255 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
16256 | ac_res=$ac_cv_search_res_query | ||
16257 | if test "$ac_res" != no; then : | ||
16258 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16259 | |||
16260 | fi | ||
16261 | |||
16262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
16263 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
16264 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16265 | $as_echo_n "(cached) " >&6 | ||
16266 | else | ||
16267 | ac_func_search_save_LIBS=$LIBS | ||
16268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16269 | /* end confdefs.h. */ | ||
16270 | |||
16271 | /* Override any GCC internal prototype to avoid an error. | ||
16272 | Use char because int might match the return type of a GCC | ||
16273 | builtin and then its argument prototype would still apply. */ | ||
16274 | #ifdef __cplusplus | ||
16275 | extern "C" | ||
16276 | #endif | ||
16277 | char dn_expand (); | ||
16278 | int | ||
16279 | main () | ||
16280 | { | ||
16281 | return dn_expand (); | ||
16282 | ; | ||
16283 | return 0; | ||
16284 | } | ||
16285 | _ACEOF | ||
16286 | for ac_lib in '' resolv; do | ||
16287 | if test -z "$ac_lib"; then | ||
16288 | ac_res="none required" | ||
16289 | else | ||
16290 | ac_res=-l$ac_lib | ||
16291 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16292 | fi | ||
16293 | if ac_fn_c_try_link "$LINENO"; then : | ||
16294 | ac_cv_search_dn_expand=$ac_res | ||
16295 | fi | ||
16296 | rm -f core conftest.err conftest.$ac_objext \ | ||
16297 | conftest$ac_exeext | ||
16298 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16299 | break | ||
16300 | fi | ||
16301 | done | ||
16302 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16303 | |||
16304 | else | ||
16305 | ac_cv_search_dn_expand=no | ||
16306 | fi | ||
16307 | rm conftest.$ac_ext | ||
16308 | LIBS=$ac_func_search_save_LIBS | ||
16309 | fi | ||
16310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
16311 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
16312 | ac_res=$ac_cv_search_dn_expand | ||
16313 | if test "$ac_res" != no; then : | ||
16314 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16315 | |||
16316 | fi | ||
16317 | |||
16318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5 | ||
16319 | $as_echo_n "checking if res_query will link... " >&6; } | ||
16320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16321 | /* end confdefs.h. */ | ||
16322 | |||
16323 | #include <sys/types.h> | ||
16324 | #include <netinet/in.h> | ||
16325 | #include <arpa/nameser.h> | ||
16326 | #include <netdb.h> | ||
16327 | #include <resolv.h> | ||
16328 | |||
16329 | int | ||
16330 | main () | ||
16331 | { | ||
16332 | |||
16333 | res_query (0, 0, 0, 0, 0); | ||
16334 | |||
16335 | ; | ||
16336 | return 0; | ||
16337 | } | ||
16338 | _ACEOF | ||
16339 | if ac_fn_c_try_link "$LINENO"; then : | ||
16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16341 | $as_echo "yes" >&6; } | ||
16342 | else | ||
16343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16344 | $as_echo "no" >&6; } | ||
16345 | saved_LIBS="$LIBS" | ||
16346 | LIBS="$LIBS -lresolv" | ||
16347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5 | ||
16348 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
16349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16350 | /* end confdefs.h. */ | ||
16351 | |||
16352 | #include <sys/types.h> | ||
16353 | #include <netinet/in.h> | ||
16354 | #include <arpa/nameser.h> | ||
16355 | #include <netdb.h> | ||
16356 | #include <resolv.h> | ||
16357 | |||
16358 | int | ||
16359 | main () | ||
16360 | { | ||
16361 | |||
16362 | res_query (0, 0, 0, 0, 0); | ||
16363 | |||
16364 | ; | ||
16365 | return 0; | ||
16366 | } | ||
16367 | _ACEOF | ||
16368 | if ac_fn_c_try_link "$LINENO"; then : | ||
16369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16370 | $as_echo "yes" >&6; } | ||
16371 | else | ||
16372 | LIBS="$saved_LIBS" | ||
16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16374 | $as_echo "no" >&6; } | ||
16375 | fi | ||
16376 | rm -f core conftest.err conftest.$ac_objext \ | ||
16377 | conftest$ac_exeext conftest.$ac_ext | ||
16378 | |||
16379 | fi | ||
16380 | rm -f core conftest.err conftest.$ac_objext \ | ||
16381 | conftest$ac_exeext conftest.$ac_ext | ||
16382 | for ac_func in _getshort _getlong | ||
16383 | do : | ||
16384 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16385 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
16386 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
16387 | cat >>confdefs.h <<_ACEOF | ||
16388 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16389 | _ACEOF | ||
16390 | |||
16391 | fi | ||
16392 | done | ||
16393 | |||
16394 | ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h> | ||
16395 | #include <arpa/nameser.h> | ||
16396 | " | ||
16397 | if test "x$ac_cv_have_decl__getshort" = xyes; then : | ||
16398 | ac_have_decl=1 | ||
16399 | else | ||
16400 | ac_have_decl=0 | ||
16401 | fi | ||
16402 | |||
16403 | cat >>confdefs.h <<_ACEOF | ||
16404 | #define HAVE_DECL__GETSHORT $ac_have_decl | ||
16405 | _ACEOF | ||
16406 | ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h> | ||
16407 | #include <arpa/nameser.h> | ||
16408 | " | ||
16409 | if test "x$ac_cv_have_decl__getlong" = xyes; then : | ||
16410 | ac_have_decl=1 | ||
16411 | else | ||
16412 | ac_have_decl=0 | ||
16413 | fi | ||
16414 | |||
16415 | cat >>confdefs.h <<_ACEOF | ||
16416 | #define HAVE_DECL__GETLONG $ac_have_decl | ||
16417 | _ACEOF | ||
16418 | |||
16419 | ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h> | ||
16420 | " | ||
16421 | if test "x$ac_cv_member_HEADER_ad" = xyes; then : | ||
16422 | |||
16423 | $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h | ||
16424 | |||
16425 | fi | ||
16426 | |||
16427 | |||
16428 | fi | ||
16429 | |||
16430 | |||
16431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5 | ||
16432 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
16433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16434 | /* end confdefs.h. */ | ||
16435 | |||
16436 | #include <stdio.h> | ||
16437 | #if HAVE_SYS_TYPES_H | ||
16438 | # include <sys/types.h> | ||
16439 | #endif | ||
16440 | #include <netinet/in.h> | ||
16441 | #include <arpa/nameser.h> | ||
16442 | #include <resolv.h> | ||
16443 | extern struct __res_state _res; | ||
16444 | |||
16445 | int | ||
16446 | main () | ||
16447 | { | ||
16448 | |||
16449 | ; | ||
16450 | return 0; | ||
16451 | } | ||
16452 | _ACEOF | ||
16453 | if ac_fn_c_try_link "$LINENO"; then : | ||
16454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16455 | $as_echo "yes" >&6; } | ||
16456 | |||
16457 | $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h | ||
16458 | |||
16459 | |||
16460 | else | ||
16461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16462 | $as_echo "no" >&6; } | ||
16463 | |||
16464 | fi | ||
16465 | rm -f core conftest.err conftest.$ac_objext \ | ||
16466 | conftest$ac_exeext conftest.$ac_ext | ||
16467 | |||
16468 | # Check whether user wants SELinux support | ||
16469 | SELINUX_MSG="no" | ||
16470 | LIBSELINUX="" | ||
16471 | |||
16472 | # Check whether --with-selinux was given. | ||
16473 | if test "${with_selinux+set}" = set; then : | ||
16474 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
16475 | save_LIBS="$LIBS" | ||
16476 | |||
16477 | $as_echo "#define WITH_SELINUX 1" >>confdefs.h | ||
16478 | |||
16479 | SELINUX_MSG="yes" | ||
16480 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | ||
16481 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | ||
16482 | |||
16483 | else | ||
16484 | as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5 | ||
16485 | fi | ||
16486 | |||
16487 | |||
16488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5 | ||
16489 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
16490 | if ${ac_cv_lib_selinux_setexeccon+:} false; then : | ||
16491 | $as_echo_n "(cached) " >&6 | ||
16492 | else | ||
16493 | ac_check_lib_save_LIBS=$LIBS | ||
16494 | LIBS="-lselinux $LIBS" | ||
16495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16496 | /* end confdefs.h. */ | ||
16497 | |||
16498 | /* Override any GCC internal prototype to avoid an error. | ||
16499 | Use char because int might match the return type of a GCC | ||
16500 | builtin and then its argument prototype would still apply. */ | ||
16501 | #ifdef __cplusplus | ||
16502 | extern "C" | ||
16503 | #endif | ||
16504 | char setexeccon (); | ||
16505 | int | ||
16506 | main () | ||
16507 | { | ||
16508 | return setexeccon (); | ||
16509 | ; | ||
16510 | return 0; | ||
16511 | } | ||
16512 | _ACEOF | ||
16513 | if ac_fn_c_try_link "$LINENO"; then : | ||
16514 | ac_cv_lib_selinux_setexeccon=yes | ||
16515 | else | ||
16516 | ac_cv_lib_selinux_setexeccon=no | ||
16517 | fi | ||
16518 | rm -f core conftest.err conftest.$ac_objext \ | ||
16519 | conftest$ac_exeext conftest.$ac_ext | ||
16520 | LIBS=$ac_check_lib_save_LIBS | ||
16521 | fi | ||
16522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
16523 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
16524 | if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then : | ||
16525 | LIBSELINUX="-lselinux" | ||
16526 | LIBS="$LIBS -lselinux" | ||
16527 | |||
16528 | else | ||
16529 | as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5 | ||
16530 | fi | ||
16531 | |||
16532 | SSHLIBS="$SSHLIBS $LIBSELINUX" | ||
16533 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
16534 | for ac_func in getseuserbyname get_default_context_with_level | ||
16535 | do : | ||
16536 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
16537 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
16538 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
16539 | cat >>confdefs.h <<_ACEOF | ||
16540 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
16541 | _ACEOF | ||
16542 | |||
16543 | fi | ||
16544 | done | ||
16545 | |||
16546 | LIBS="$save_LIBS" | ||
16547 | fi | ||
16548 | |||
16549 | fi | ||
16550 | |||
16551 | |||
16552 | |||
16553 | |||
16554 | # Check whether user wants Kerberos 5 support | ||
16555 | KRB5_MSG="no" | ||
16556 | |||
16557 | # Check whether --with-kerberos5 was given. | ||
16558 | if test "${with_kerberos5+set}" = set; then : | ||
16559 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
16560 | if test "x$withval" = "xyes" ; then | ||
16561 | KRB5ROOT="/usr/local" | ||
16562 | else | ||
16563 | KRB5ROOT=${withval} | ||
16564 | fi | ||
16565 | |||
16566 | |||
16567 | $as_echo "#define KRB5 1" >>confdefs.h | ||
16568 | |||
16569 | KRB5_MSG="yes" | ||
16570 | |||
16571 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
16572 | set dummy krb5-config; ac_word=$2 | ||
16573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
16574 | $as_echo_n "checking for $ac_word... " >&6; } | ||
16575 | if ${ac_cv_path_KRB5CONF+:} false; then : | ||
16576 | $as_echo_n "(cached) " >&6 | ||
16577 | else | ||
16578 | case $KRB5CONF in | ||
16579 | [\\/]* | ?:[\\/]*) | ||
16580 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
16581 | ;; | ||
16582 | *) | ||
16583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
16584 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
16585 | for as_dir in $as_dummy | ||
16586 | do | ||
16587 | IFS=$as_save_IFS | ||
16588 | test -z "$as_dir" && as_dir=. | ||
16589 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
16590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
16591 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
16592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
16593 | break 2 | ||
16594 | fi | ||
16595 | done | ||
16596 | done | ||
16597 | IFS=$as_save_IFS | ||
16598 | |||
16599 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
16600 | ;; | ||
16601 | esac | ||
16602 | fi | ||
16603 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
16604 | if test -n "$KRB5CONF"; then | ||
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5 | ||
16606 | $as_echo "$KRB5CONF" >&6; } | ||
16607 | else | ||
16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16609 | $as_echo "no" >&6; } | ||
16610 | fi | ||
16611 | |||
16612 | |||
16613 | if test -x $KRB5CONF ; then | ||
16614 | K5CFLAGS="`$KRB5CONF --cflags`" | ||
16615 | K5LIBS="`$KRB5CONF --libs`" | ||
16616 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
16617 | |||
16618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5 | ||
16619 | $as_echo_n "checking for gssapi support... " >&6; } | ||
16620 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
16621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16622 | $as_echo "yes" >&6; } | ||
16623 | |||
16624 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
16625 | |||
16626 | GSSCFLAGS="`$KRB5CONF --cflags gssapi`" | ||
16627 | GSSLIBS="`$KRB5CONF --libs gssapi`" | ||
16628 | CPPFLAGS="$CPPFLAGS $GSSCFLAGS" | ||
16629 | else | ||
16630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16631 | $as_echo "no" >&6; } | ||
16632 | fi | ||
16633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
16634 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
16635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16636 | /* end confdefs.h. */ | ||
16637 | #include <krb5.h> | ||
16638 | |||
16639 | int | ||
16640 | main () | ||
16641 | { | ||
16642 | char *tmp = heimdal_version; | ||
16643 | ; | ||
16644 | return 0; | ||
16645 | } | ||
16646 | _ACEOF | ||
16647 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16649 | $as_echo "yes" >&6; } | ||
16650 | |||
16651 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
16652 | |||
16653 | else | ||
16654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16655 | $as_echo "no" >&6; } | ||
16656 | |||
16657 | fi | ||
16658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16659 | else | ||
16660 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
16661 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 | ||
16663 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
16664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16665 | /* end confdefs.h. */ | ||
16666 | #include <krb5.h> | ||
16667 | |||
16668 | int | ||
16669 | main () | ||
16670 | { | ||
16671 | char *tmp = heimdal_version; | ||
16672 | ; | ||
16673 | return 0; | ||
16674 | } | ||
16675 | _ACEOF | ||
16676 | if ac_fn_c_try_compile "$LINENO"; then : | ||
16677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
16678 | $as_echo "yes" >&6; } | ||
16679 | $as_echo "#define HEIMDAL 1" >>confdefs.h | ||
16680 | |||
16681 | K5LIBS="-lkrb5" | ||
16682 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5 | ||
16684 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
16685 | if ${ac_cv_lib_roken_net_write+:} false; then : | ||
16686 | $as_echo_n "(cached) " >&6 | ||
16687 | else | ||
16688 | ac_check_lib_save_LIBS=$LIBS | ||
16689 | LIBS="-lroken $LIBS" | ||
16690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16691 | /* end confdefs.h. */ | ||
16692 | |||
16693 | /* Override any GCC internal prototype to avoid an error. | ||
16694 | Use char because int might match the return type of a GCC | ||
16695 | builtin and then its argument prototype would still apply. */ | ||
16696 | #ifdef __cplusplus | ||
16697 | extern "C" | ||
16698 | #endif | ||
16699 | char net_write (); | ||
16700 | int | ||
16701 | main () | ||
16702 | { | ||
16703 | return net_write (); | ||
16704 | ; | ||
16705 | return 0; | ||
16706 | } | ||
16707 | _ACEOF | ||
16708 | if ac_fn_c_try_link "$LINENO"; then : | ||
16709 | ac_cv_lib_roken_net_write=yes | ||
16710 | else | ||
16711 | ac_cv_lib_roken_net_write=no | ||
16712 | fi | ||
16713 | rm -f core conftest.err conftest.$ac_objext \ | ||
16714 | conftest$ac_exeext conftest.$ac_ext | ||
16715 | LIBS=$ac_check_lib_save_LIBS | ||
16716 | fi | ||
16717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5 | ||
16718 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
16719 | if test "x$ac_cv_lib_roken_net_write" = xyes; then : | ||
16720 | K5LIBS="$K5LIBS -lroken" | ||
16721 | fi | ||
16722 | |||
16723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 | ||
16724 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } | ||
16725 | if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : | ||
16726 | $as_echo_n "(cached) " >&6 | ||
16727 | else | ||
16728 | ac_check_lib_save_LIBS=$LIBS | ||
16729 | LIBS="-ldes $LIBS" | ||
16730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16731 | /* end confdefs.h. */ | ||
16732 | |||
16733 | /* Override any GCC internal prototype to avoid an error. | ||
16734 | Use char because int might match the return type of a GCC | ||
16735 | builtin and then its argument prototype would still apply. */ | ||
16736 | #ifdef __cplusplus | ||
16737 | extern "C" | ||
16738 | #endif | ||
16739 | char des_cbc_encrypt (); | ||
16740 | int | ||
16741 | main () | ||
16742 | { | ||
16743 | return des_cbc_encrypt (); | ||
16744 | ; | ||
16745 | return 0; | ||
16746 | } | ||
16747 | _ACEOF | ||
16748 | if ac_fn_c_try_link "$LINENO"; then : | ||
16749 | ac_cv_lib_des_des_cbc_encrypt=yes | ||
16750 | else | ||
16751 | ac_cv_lib_des_des_cbc_encrypt=no | ||
16752 | fi | ||
16753 | rm -f core conftest.err conftest.$ac_objext \ | ||
16754 | conftest$ac_exeext conftest.$ac_ext | ||
16755 | LIBS=$ac_check_lib_save_LIBS | ||
16756 | fi | ||
16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 | ||
16758 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } | ||
16759 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : | ||
16760 | K5LIBS="$K5LIBS -ldes" | ||
16761 | fi | ||
16762 | |||
16763 | |||
16764 | else | ||
16765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
16766 | $as_echo "no" >&6; } | ||
16767 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
16768 | |||
16769 | |||
16770 | fi | ||
16771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 | ||
16773 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
16774 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16775 | $as_echo_n "(cached) " >&6 | ||
16776 | else | ||
16777 | ac_func_search_save_LIBS=$LIBS | ||
16778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16779 | /* end confdefs.h. */ | ||
16780 | |||
16781 | /* Override any GCC internal prototype to avoid an error. | ||
16782 | Use char because int might match the return type of a GCC | ||
16783 | builtin and then its argument prototype would still apply. */ | ||
16784 | #ifdef __cplusplus | ||
16785 | extern "C" | ||
16786 | #endif | ||
16787 | char dn_expand (); | ||
16788 | int | ||
16789 | main () | ||
16790 | { | ||
16791 | return dn_expand (); | ||
16792 | ; | ||
16793 | return 0; | ||
16794 | } | ||
16795 | _ACEOF | ||
16796 | for ac_lib in '' resolv; do | ||
16797 | if test -z "$ac_lib"; then | ||
16798 | ac_res="none required" | ||
16799 | else | ||
16800 | ac_res=-l$ac_lib | ||
16801 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
16802 | fi | ||
16803 | if ac_fn_c_try_link "$LINENO"; then : | ||
16804 | ac_cv_search_dn_expand=$ac_res | ||
16805 | fi | ||
16806 | rm -f core conftest.err conftest.$ac_objext \ | ||
16807 | conftest$ac_exeext | ||
16808 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16809 | break | ||
16810 | fi | ||
16811 | done | ||
16812 | if ${ac_cv_search_dn_expand+:} false; then : | ||
16813 | |||
16814 | else | ||
16815 | ac_cv_search_dn_expand=no | ||
16816 | fi | ||
16817 | rm conftest.$ac_ext | ||
16818 | LIBS=$ac_func_search_save_LIBS | ||
16819 | fi | ||
16820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 | ||
16821 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
16822 | ac_res=$ac_cv_search_dn_expand | ||
16823 | if test "$ac_res" != no; then : | ||
16824 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
16825 | |||
16826 | fi | ||
16827 | |||
16828 | |||
16829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
16830 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
16831 | if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then : | ||
16832 | $as_echo_n "(cached) " >&6 | ||
16833 | else | ||
16834 | ac_check_lib_save_LIBS=$LIBS | ||
16835 | LIBS="-lgssapi_krb5 $LIBS" | ||
16836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16837 | /* end confdefs.h. */ | ||
16838 | |||
16839 | /* Override any GCC internal prototype to avoid an error. | ||
16840 | Use char because int might match the return type of a GCC | ||
16841 | builtin and then its argument prototype would still apply. */ | ||
16842 | #ifdef __cplusplus | ||
16843 | extern "C" | ||
16844 | #endif | ||
16845 | char gss_init_sec_context (); | ||
16846 | int | ||
16847 | main () | ||
16848 | { | ||
16849 | return gss_init_sec_context (); | ||
16850 | ; | ||
16851 | return 0; | ||
16852 | } | ||
16853 | _ACEOF | ||
16854 | if ac_fn_c_try_link "$LINENO"; then : | ||
16855 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
16856 | else | ||
16857 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
16858 | fi | ||
16859 | rm -f core conftest.err conftest.$ac_objext \ | ||
16860 | conftest$ac_exeext conftest.$ac_ext | ||
16861 | LIBS=$ac_check_lib_save_LIBS | ||
16862 | fi | ||
16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
16864 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
16865 | if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then : | ||
16866 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
16867 | |||
16868 | GSSLIBS="-lgssapi_krb5" | ||
16869 | else | ||
16870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5 | ||
16871 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
16872 | if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then : | ||
16873 | $as_echo_n "(cached) " >&6 | ||
16874 | else | ||
16875 | ac_check_lib_save_LIBS=$LIBS | ||
16876 | LIBS="-lgssapi $LIBS" | ||
16877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16878 | /* end confdefs.h. */ | ||
16879 | |||
16880 | /* Override any GCC internal prototype to avoid an error. | ||
16881 | Use char because int might match the return type of a GCC | ||
16882 | builtin and then its argument prototype would still apply. */ | ||
16883 | #ifdef __cplusplus | ||
16884 | extern "C" | ||
16885 | #endif | ||
16886 | char gss_init_sec_context (); | ||
16887 | int | ||
16888 | main () | ||
16889 | { | ||
16890 | return gss_init_sec_context (); | ||
16891 | ; | ||
16892 | return 0; | ||
16893 | } | ||
16894 | _ACEOF | ||
16895 | if ac_fn_c_try_link "$LINENO"; then : | ||
16896 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
16897 | else | ||
16898 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
16899 | fi | ||
16900 | rm -f core conftest.err conftest.$ac_objext \ | ||
16901 | conftest$ac_exeext conftest.$ac_ext | ||
16902 | LIBS=$ac_check_lib_save_LIBS | ||
16903 | fi | ||
16904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
16905 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
16906 | if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then : | ||
16907 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
16908 | |||
16909 | GSSLIBS="-lgssapi" | ||
16910 | else | ||
16911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgss" >&5 | ||
16912 | $as_echo_n "checking for gss_init_sec_context in -lgss... " >&6; } | ||
16913 | if ${ac_cv_lib_gss_gss_init_sec_context+:} false; then : | ||
16914 | $as_echo_n "(cached) " >&6 | ||
16915 | else | ||
16916 | ac_check_lib_save_LIBS=$LIBS | ||
16917 | LIBS="-lgss $LIBS" | ||
16918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
16919 | /* end confdefs.h. */ | ||
16920 | |||
16921 | /* Override any GCC internal prototype to avoid an error. | ||
16922 | Use char because int might match the return type of a GCC | ||
16923 | builtin and then its argument prototype would still apply. */ | ||
16924 | #ifdef __cplusplus | ||
16925 | extern "C" | ||
16926 | #endif | ||
16927 | char gss_init_sec_context (); | ||
16928 | int | ||
16929 | main () | ||
16930 | { | ||
16931 | return gss_init_sec_context (); | ||
16932 | ; | ||
16933 | return 0; | ||
16934 | } | ||
16935 | _ACEOF | ||
16936 | if ac_fn_c_try_link "$LINENO"; then : | ||
16937 | ac_cv_lib_gss_gss_init_sec_context=yes | ||
16938 | else | ||
16939 | ac_cv_lib_gss_gss_init_sec_context=no | ||
16940 | fi | ||
16941 | rm -f core conftest.err conftest.$ac_objext \ | ||
16942 | conftest$ac_exeext conftest.$ac_ext | ||
16943 | LIBS=$ac_check_lib_save_LIBS | ||
16944 | fi | ||
16945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_init_sec_context" >&5 | ||
16946 | $as_echo "$ac_cv_lib_gss_gss_init_sec_context" >&6; } | ||
16947 | if test "x$ac_cv_lib_gss_gss_init_sec_context" = xyes; then : | ||
16948 | $as_echo "#define GSSAPI 1" >>confdefs.h | ||
16949 | |||
16950 | GSSLIBS="-lgss" | ||
16951 | else | ||
16952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
16953 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
16954 | fi | ||
16955 | |||
16956 | |||
16957 | fi | ||
16958 | |||
16959 | |||
16960 | fi | ||
16961 | |||
16962 | |||
16963 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
16964 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
16965 | |||
16966 | else | ||
16967 | unset ac_cv_header_gssapi_h | ||
16968 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
16969 | for ac_header in gssapi.h | ||
16970 | do : | ||
16971 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | ||
16972 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | ||
16973 | cat >>confdefs.h <<_ACEOF | ||
16974 | #define HAVE_GSSAPI_H 1 | ||
16975 | _ACEOF | ||
16976 | |||
16977 | else | ||
16978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
16979 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
16980 | |||
16981 | fi | ||
16982 | |||
16983 | done | ||
16984 | |||
16985 | |||
16986 | |||
16987 | fi | ||
16988 | |||
16989 | |||
16990 | |||
16991 | oldCPP="$CPPFLAGS" | ||
16992 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
16993 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default" | ||
16994 | if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then : | ||
16995 | |||
16996 | else | ||
16997 | CPPFLAGS="$oldCPP" | ||
16998 | fi | ||
16999 | |||
17000 | |||
17001 | |||
17002 | fi | ||
17003 | if test ! -z "$need_dash_r" ; then | ||
17004 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
17005 | fi | ||
17006 | if test ! -z "$blibpath" ; then | ||
17007 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
17008 | fi | ||
17009 | |||
17010 | for ac_header in gssapi.h gssapi/gssapi.h | ||
17011 | do : | ||
17012 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17013 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17014 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17015 | cat >>confdefs.h <<_ACEOF | ||
17016 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17017 | _ACEOF | ||
17018 | |||
17019 | fi | ||
17020 | |||
17021 | done | ||
17022 | |||
17023 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
17024 | do : | ||
17025 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17026 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17027 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17028 | cat >>confdefs.h <<_ACEOF | ||
17029 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17030 | _ACEOF | ||
17031 | |||
17032 | fi | ||
17033 | |||
17034 | done | ||
17035 | |||
17036 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
17037 | do : | ||
17038 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
17039 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
17040 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | ||
17041 | cat >>confdefs.h <<_ACEOF | ||
17042 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
17043 | _ACEOF | ||
17044 | |||
17045 | fi | ||
17046 | |||
17047 | done | ||
17048 | |||
17049 | |||
17050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5 | ||
17051 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
17052 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
17053 | $as_echo_n "(cached) " >&6 | ||
17054 | else | ||
17055 | ac_func_search_save_LIBS=$LIBS | ||
17056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17057 | /* end confdefs.h. */ | ||
17058 | |||
17059 | /* Override any GCC internal prototype to avoid an error. | ||
17060 | Use char because int might match the return type of a GCC | ||
17061 | builtin and then its argument prototype would still apply. */ | ||
17062 | #ifdef __cplusplus | ||
17063 | extern "C" | ||
17064 | #endif | ||
17065 | char k_hasafs (); | ||
17066 | int | ||
17067 | main () | ||
17068 | { | ||
17069 | return k_hasafs (); | ||
17070 | ; | ||
17071 | return 0; | ||
17072 | } | ||
17073 | _ACEOF | ||
17074 | for ac_lib in '' kafs; do | ||
17075 | if test -z "$ac_lib"; then | ||
17076 | ac_res="none required" | ||
17077 | else | ||
17078 | ac_res=-l$ac_lib | ||
17079 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
17080 | fi | ||
17081 | if ac_fn_c_try_link "$LINENO"; then : | ||
17082 | ac_cv_search_k_hasafs=$ac_res | ||
17083 | fi | ||
17084 | rm -f core conftest.err conftest.$ac_objext \ | ||
17085 | conftest$ac_exeext | ||
17086 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
17087 | break | ||
17088 | fi | ||
17089 | done | ||
17090 | if ${ac_cv_search_k_hasafs+:} false; then : | ||
17091 | |||
17092 | else | ||
17093 | ac_cv_search_k_hasafs=no | ||
17094 | fi | ||
17095 | rm conftest.$ac_ext | ||
17096 | LIBS=$ac_func_search_save_LIBS | ||
17097 | fi | ||
17098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5 | ||
17099 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
17100 | ac_res=$ac_cv_search_k_hasafs | ||
17101 | if test "$ac_res" != no; then : | ||
17102 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
17103 | |||
17104 | $as_echo "#define USE_AFS 1" >>confdefs.h | ||
17105 | |||
17106 | fi | ||
17107 | |||
17108 | |||
17109 | ac_fn_c_check_decl "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" " | ||
17110 | #ifdef HAVE_GSSAPI_H | ||
17111 | # include <gssapi.h> | ||
17112 | #elif defined(HAVE_GSSAPI_GSSAPI_H) | ||
17113 | # include <gssapi/gssapi.h> | ||
17114 | #endif | ||
17115 | |||
17116 | #ifdef HAVE_GSSAPI_GENERIC_H | ||
17117 | # include <gssapi_generic.h> | ||
17118 | #elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) | ||
17119 | # include <gssapi/gssapi_generic.h> | ||
17120 | #endif | ||
17121 | |||
17122 | " | ||
17123 | if test "x$ac_cv_have_decl_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then : | ||
17124 | ac_have_decl=1 | ||
17125 | else | ||
17126 | ac_have_decl=0 | ||
17127 | fi | ||
17128 | |||
17129 | cat >>confdefs.h <<_ACEOF | ||
17130 | #define HAVE_DECL_GSS_C_NT_HOSTBASED_SERVICE $ac_have_decl | ||
17131 | _ACEOF | ||
17132 | |||
17133 | saved_LIBS="$LIBS" | ||
17134 | LIBS="$LIBS $K5LIBS" | ||
17135 | for ac_func in krb5_cc_new_unique krb5_get_error_message krb5_free_error_message | ||
17136 | do : | ||
17137 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17138 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | ||
17139 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | ||
17140 | cat >>confdefs.h <<_ACEOF | ||
17141 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
17142 | _ACEOF | ||
17143 | |||
17144 | fi | ||
17145 | done | ||
17146 | |||
17147 | LIBS="$saved_LIBS" | ||
17148 | |||
17149 | fi | ||
17150 | |||
17151 | |||
17152 | fi | ||
17153 | |||
17154 | |||
17155 | |||
17156 | |||
17157 | # Looking for programs, paths and files | ||
17158 | |||
17159 | PRIVSEP_PATH=/var/empty | ||
17160 | |||
17161 | # Check whether --with-privsep-path was given. | ||
17162 | if test "${with_privsep_path+set}" = set; then : | ||
17163 | withval=$with_privsep_path; | ||
17164 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17165 | test "x${withval}" != "xyes"; then | ||
17166 | PRIVSEP_PATH=$withval | ||
17167 | fi | ||
17168 | |||
17169 | |||
17170 | fi | ||
17171 | |||
17172 | |||
17173 | |||
17174 | |||
17175 | # Check whether --with-xauth was given. | ||
17176 | if test "${with_xauth+set}" = set; then : | ||
17177 | withval=$with_xauth; | ||
17178 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17179 | test "x${withval}" != "xyes"; then | ||
17180 | xauth_path=$withval | ||
17181 | fi | ||
17182 | |||
17183 | else | ||
17184 | |||
17185 | TestPath="$PATH" | ||
17186 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
17187 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
17188 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
17189 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
17190 | # Extract the first word of "xauth", so it can be a program name with args. | ||
17191 | set dummy xauth; ac_word=$2 | ||
17192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17193 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17194 | if ${ac_cv_path_xauth_path+:} false; then : | ||
17195 | $as_echo_n "(cached) " >&6 | ||
17196 | else | ||
17197 | case $xauth_path in | ||
17198 | [\\/]* | ?:[\\/]*) | ||
17199 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
17200 | ;; | ||
17201 | *) | ||
17202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17203 | for as_dir in $TestPath | ||
17204 | do | ||
17205 | IFS=$as_save_IFS | ||
17206 | test -z "$as_dir" && as_dir=. | ||
17207 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17209 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
17210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17211 | break 2 | ||
17212 | fi | ||
17213 | done | ||
17214 | done | ||
17215 | IFS=$as_save_IFS | ||
17216 | |||
17217 | ;; | ||
17218 | esac | ||
17219 | fi | ||
17220 | xauth_path=$ac_cv_path_xauth_path | ||
17221 | if test -n "$xauth_path"; then | ||
17222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5 | ||
17223 | $as_echo "$xauth_path" >&6; } | ||
17224 | else | ||
17225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17226 | $as_echo "no" >&6; } | ||
17227 | fi | ||
17228 | |||
17229 | |||
17230 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
17231 | xauth_path="/usr/openwin/bin/xauth" | ||
17232 | fi | ||
17233 | |||
17234 | |||
17235 | fi | ||
17236 | |||
17237 | |||
17238 | STRIP_OPT=-s | ||
17239 | # Check whether --enable-strip was given. | ||
17240 | if test "${enable_strip+set}" = set; then : | ||
17241 | enableval=$enable_strip; | ||
17242 | if test "x$enableval" = "xno" ; then | ||
17243 | STRIP_OPT= | ||
17244 | fi | ||
17245 | |||
17246 | |||
17247 | fi | ||
17248 | |||
17249 | |||
17250 | |||
17251 | if test -z "$xauth_path" ; then | ||
17252 | XAUTH_PATH="undefined" | ||
17253 | |||
17254 | else | ||
17255 | |||
17256 | cat >>confdefs.h <<_ACEOF | ||
17257 | #define XAUTH_PATH "$xauth_path" | ||
17258 | _ACEOF | ||
17259 | |||
17260 | XAUTH_PATH=$xauth_path | ||
17261 | |||
17262 | fi | ||
17263 | |||
17264 | # Check for mail directory | ||
17265 | |||
17266 | # Check whether --with-maildir was given. | ||
17267 | if test "${with_maildir+set}" = set; then : | ||
17268 | withval=$with_maildir; | ||
17269 | if test "X$withval" != X && test "x$withval" != xno && \ | ||
17270 | test "x${withval}" != xyes; then | ||
17271 | |||
17272 | cat >>confdefs.h <<_ACEOF | ||
17273 | #define MAIL_DIRECTORY "$withval" | ||
17274 | _ACEOF | ||
17275 | |||
17276 | fi | ||
17277 | |||
17278 | else | ||
17279 | |||
17280 | if test "X$maildir" != "X"; then | ||
17281 | cat >>confdefs.h <<_ACEOF | ||
17282 | #define MAIL_DIRECTORY "$maildir" | ||
17283 | _ACEOF | ||
17284 | |||
17285 | else | ||
17286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5 | ||
17287 | $as_echo_n "checking Discovering system mail directory... " >&6; } | ||
17288 | if test "$cross_compiling" = yes; then : | ||
17289 | |||
17290 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5 | ||
17291 | $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;} | ||
17292 | |||
17293 | |||
17294 | else | ||
17295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17296 | /* end confdefs.h. */ | ||
17297 | |||
17298 | #include <stdio.h> | ||
17299 | #include <string.h> | ||
17300 | #ifdef HAVE_PATHS_H | ||
17301 | #include <paths.h> | ||
17302 | #endif | ||
17303 | #ifdef HAVE_MAILLOCK_H | ||
17304 | #include <maillock.h> | ||
17305 | #endif | ||
17306 | #define DATA "conftest.maildir" | ||
17307 | |||
17308 | int | ||
17309 | main () | ||
17310 | { | ||
17311 | |||
17312 | FILE *fd; | ||
17313 | int rc; | ||
17314 | |||
17315 | fd = fopen(DATA,"w"); | ||
17316 | if(fd == NULL) | ||
17317 | exit(1); | ||
17318 | |||
17319 | #if defined (_PATH_MAILDIR) | ||
17320 | if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0) | ||
17321 | exit(1); | ||
17322 | #elif defined (MAILDIR) | ||
17323 | if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0) | ||
17324 | exit(1); | ||
17325 | #elif defined (_PATH_MAIL) | ||
17326 | if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0) | ||
17327 | exit(1); | ||
17328 | #else | ||
17329 | exit (2); | ||
17330 | #endif | ||
17331 | |||
17332 | exit(0); | ||
17333 | |||
17334 | ; | ||
17335 | return 0; | ||
17336 | } | ||
17337 | _ACEOF | ||
17338 | if ac_fn_c_try_run "$LINENO"; then : | ||
17339 | |||
17340 | maildir_what=`awk -F: '{print $1}' conftest.maildir` | ||
17341 | maildir=`awk -F: '{print $2}' conftest.maildir \ | ||
17342 | | sed 's|/$||'` | ||
17343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5 | ||
17344 | $as_echo "Using: $maildir from $maildir_what" >&6; } | ||
17345 | if test "x$maildir_what" != "x_PATH_MAILDIR"; then | ||
17346 | cat >>confdefs.h <<_ACEOF | ||
17347 | #define MAIL_DIRECTORY "$maildir" | ||
17348 | _ACEOF | ||
17349 | |||
17350 | fi | ||
17351 | |||
17352 | else | ||
17353 | |||
17354 | if test "X$ac_status" = "X2";then | ||
17355 | # our test program didn't find it. Default to /var/spool/mail | ||
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5 | ||
17357 | $as_echo "Using: default value of /var/spool/mail" >&6; } | ||
17358 | cat >>confdefs.h <<_ACEOF | ||
17359 | #define MAIL_DIRECTORY "/var/spool/mail" | ||
17360 | _ACEOF | ||
17361 | |||
17362 | else | ||
17363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5 | ||
17364 | $as_echo "*** not found ***" >&6; } | ||
17365 | fi | ||
17366 | |||
17367 | fi | ||
17368 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
17369 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
17370 | fi | ||
17371 | |||
17372 | fi | ||
17373 | |||
17374 | |||
17375 | fi | ||
17376 | # maildir | ||
17377 | |||
17378 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
17379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
17380 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
17381 | disable_ptmx_check=yes | ||
17382 | fi | ||
17383 | if test -z "$no_dev_ptmx" ; then | ||
17384 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
17385 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh` | ||
17386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5 | ||
17387 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
17388 | if eval \${$as_ac_File+:} false; then : | ||
17389 | $as_echo_n "(cached) " >&6 | ||
17390 | else | ||
17391 | test "$cross_compiling" = yes && | ||
17392 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
17393 | if test -r ""/dev/ptmx""; then | ||
17394 | eval "$as_ac_File=yes" | ||
17395 | else | ||
17396 | eval "$as_ac_File=no" | ||
17397 | fi | ||
17398 | fi | ||
17399 | eval ac_res=\$$as_ac_File | ||
17400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
17401 | $as_echo "$ac_res" >&6; } | ||
17402 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
17403 | |||
17404 | |||
17405 | cat >>confdefs.h <<_ACEOF | ||
17406 | #define HAVE_DEV_PTMX 1 | ||
17407 | _ACEOF | ||
17408 | |||
17409 | have_dev_ptmx=1 | ||
17410 | |||
17411 | |||
17412 | fi | ||
17413 | |||
17414 | fi | ||
17415 | fi | ||
17416 | |||
17417 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
17418 | as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh` | ||
17419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5 | ||
17420 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
17421 | if eval \${$as_ac_File+:} false; then : | ||
17422 | $as_echo_n "(cached) " >&6 | ||
17423 | else | ||
17424 | test "$cross_compiling" = yes && | ||
17425 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
17426 | if test -r ""/dev/ptc""; then | ||
17427 | eval "$as_ac_File=yes" | ||
17428 | else | ||
17429 | eval "$as_ac_File=no" | ||
17430 | fi | ||
17431 | fi | ||
17432 | eval ac_res=\$$as_ac_File | ||
17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
17434 | $as_echo "$ac_res" >&6; } | ||
17435 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
17436 | |||
17437 | |||
17438 | cat >>confdefs.h <<_ACEOF | ||
17439 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
17440 | _ACEOF | ||
17441 | |||
17442 | have_dev_ptc=1 | ||
17443 | |||
17444 | |||
17445 | fi | ||
17446 | |||
17447 | else | ||
17448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
17449 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
17450 | fi | ||
17451 | |||
17452 | # Options from here on. Some of these are preset by platform above | ||
17453 | |||
17454 | # Check whether --with-mantype was given. | ||
17455 | if test "${with_mantype+set}" = set; then : | ||
17456 | withval=$with_mantype; | ||
17457 | case "$withval" in | ||
17458 | man|cat|doc) | ||
17459 | MANTYPE=$withval | ||
17460 | ;; | ||
17461 | *) | ||
17462 | as_fn_error $? "invalid man type: $withval" "$LINENO" 5 | ||
17463 | ;; | ||
17464 | esac | ||
17465 | |||
17466 | |||
17467 | fi | ||
17468 | |||
17469 | if test -z "$MANTYPE"; then | ||
17470 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
17471 | for ac_prog in nroff awf | ||
17472 | do | ||
17473 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
17474 | set dummy $ac_prog; ac_word=$2 | ||
17475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
17476 | $as_echo_n "checking for $ac_word... " >&6; } | ||
17477 | if ${ac_cv_path_NROFF+:} false; then : | ||
17478 | $as_echo_n "(cached) " >&6 | ||
17479 | else | ||
17480 | case $NROFF in | ||
17481 | [\\/]* | ?:[\\/]*) | ||
17482 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
17483 | ;; | ||
17484 | *) | ||
17485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
17486 | for as_dir in $TestPath | ||
17487 | do | ||
17488 | IFS=$as_save_IFS | ||
17489 | test -z "$as_dir" && as_dir=. | ||
17490 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
17491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
17492 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
17493 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
17494 | break 2 | ||
17495 | fi | ||
17496 | done | ||
17497 | done | ||
17498 | IFS=$as_save_IFS | ||
17499 | |||
17500 | ;; | ||
17501 | esac | ||
17502 | fi | ||
17503 | NROFF=$ac_cv_path_NROFF | ||
17504 | if test -n "$NROFF"; then | ||
17505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 | ||
17506 | $as_echo "$NROFF" >&6; } | ||
17507 | else | ||
17508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17509 | $as_echo "no" >&6; } | ||
17510 | fi | ||
17511 | |||
17512 | |||
17513 | test -n "$NROFF" && break | ||
17514 | done | ||
17515 | test -n "$NROFF" || NROFF="/bin/false" | ||
17516 | |||
17517 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
17518 | MANTYPE=doc | ||
17519 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
17520 | MANTYPE=man | ||
17521 | else | ||
17522 | MANTYPE=cat | ||
17523 | fi | ||
17524 | fi | ||
17525 | |||
17526 | if test "$MANTYPE" = "doc"; then | ||
17527 | mansubdir=man; | ||
17528 | else | ||
17529 | mansubdir=$MANTYPE; | ||
17530 | fi | ||
17531 | |||
17532 | |||
17533 | # Check whether to enable MD5 passwords | ||
17534 | MD5_MSG="no" | ||
17535 | |||
17536 | # Check whether --with-md5-passwords was given. | ||
17537 | if test "${with_md5_passwords+set}" = set; then : | ||
17538 | withval=$with_md5_passwords; | ||
17539 | if test "x$withval" != "xno" ; then | ||
17540 | |||
17541 | $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h | ||
17542 | |||
17543 | MD5_MSG="yes" | ||
17544 | fi | ||
17545 | |||
17546 | |||
17547 | fi | ||
17548 | |||
17549 | |||
17550 | # Whether to disable shadow password support | ||
17551 | |||
17552 | # Check whether --with-shadow was given. | ||
17553 | if test "${with_shadow+set}" = set; then : | ||
17554 | withval=$with_shadow; | ||
17555 | if test "x$withval" = "xno" ; then | ||
17556 | $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h | ||
17557 | |||
17558 | disable_shadow=yes | ||
17559 | fi | ||
17560 | |||
17561 | |||
17562 | fi | ||
17563 | |||
17564 | |||
17565 | if test -z "$disable_shadow" ; then | ||
17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5 | ||
17567 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
17568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17569 | /* end confdefs.h. */ | ||
17570 | |||
17571 | #include <sys/types.h> | ||
17572 | #include <shadow.h> | ||
17573 | struct spwd sp; | ||
17574 | |||
17575 | int | ||
17576 | main () | ||
17577 | { | ||
17578 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
17579 | ; | ||
17580 | return 0; | ||
17581 | } | ||
17582 | _ACEOF | ||
17583 | if ac_fn_c_try_compile "$LINENO"; then : | ||
17584 | sp_expire_available=yes | ||
17585 | fi | ||
17586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17587 | |||
17588 | if test "x$sp_expire_available" = "xyes" ; then | ||
17589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17590 | $as_echo "yes" >&6; } | ||
17591 | |||
17592 | $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h | ||
17593 | |||
17594 | else | ||
17595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17596 | $as_echo "no" >&6; } | ||
17597 | fi | ||
17598 | fi | ||
17599 | |||
17600 | # Use ip address instead of hostname in $DISPLAY | ||
17601 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
17602 | DISPLAY_HACK_MSG="yes" | ||
17603 | |||
17604 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
17605 | |||
17606 | else | ||
17607 | DISPLAY_HACK_MSG="no" | ||
17608 | |||
17609 | # Check whether --with-ipaddr-display was given. | ||
17610 | if test "${with_ipaddr_display+set}" = set; then : | ||
17611 | withval=$with_ipaddr_display; | ||
17612 | if test "x$withval" != "xno" ; then | ||
17613 | $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h | ||
17614 | |||
17615 | DISPLAY_HACK_MSG="yes" | ||
17616 | fi | ||
17617 | |||
17618 | |||
17619 | fi | ||
17620 | |||
17621 | fi | ||
17622 | |||
17623 | # check for /etc/default/login and use it if present. | ||
17624 | # Check whether --enable-etc-default-login was given. | ||
17625 | if test "${enable_etc_default_login+set}" = set; then : | ||
17626 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
17627 | { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5 | ||
17628 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
17629 | etc_default_login=no | ||
17630 | else | ||
17631 | etc_default_login=yes | ||
17632 | fi | ||
17633 | else | ||
17634 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
17635 | then | ||
17636 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
17637 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
17638 | etc_default_login=no | ||
17639 | else | ||
17640 | etc_default_login=yes | ||
17641 | fi | ||
17642 | |||
17643 | fi | ||
17644 | |||
17645 | |||
17646 | if test "x$etc_default_login" != "xno"; then | ||
17647 | as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh` | ||
17648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5 | ||
17649 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
17650 | if eval \${$as_ac_File+:} false; then : | ||
17651 | $as_echo_n "(cached) " >&6 | ||
17652 | else | ||
17653 | test "$cross_compiling" = yes && | ||
17654 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 | ||
17655 | if test -r ""/etc/default/login""; then | ||
17656 | eval "$as_ac_File=yes" | ||
17657 | else | ||
17658 | eval "$as_ac_File=no" | ||
17659 | fi | ||
17660 | fi | ||
17661 | eval ac_res=\$$as_ac_File | ||
17662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
17663 | $as_echo "$ac_res" >&6; } | ||
17664 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : | ||
17665 | external_path_file=/etc/default/login | ||
17666 | fi | ||
17667 | |||
17668 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
17669 | |||
17670 | $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h | ||
17671 | |||
17672 | fi | ||
17673 | fi | ||
17674 | |||
17675 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
17676 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
17677 | external_path_file=/etc/login.conf | ||
17678 | fi | ||
17679 | |||
17680 | # Whether to mess with the default path | ||
17681 | SERVER_PATH_MSG="(default)" | ||
17682 | |||
17683 | # Check whether --with-default-path was given. | ||
17684 | if test "${with_default_path+set}" = set; then : | ||
17685 | withval=$with_default_path; | ||
17686 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
17688 | --with-default-path=PATH has no effect on this system. | ||
17689 | Edit /etc/login.conf instead." >&5 | ||
17690 | $as_echo "$as_me: WARNING: | ||
17691 | --with-default-path=PATH has no effect on this system. | ||
17692 | Edit /etc/login.conf instead." >&2;} | ||
17693 | elif test "x$withval" != "xno" ; then | ||
17694 | if test ! -z "$external_path_file" ; then | ||
17695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
17696 | --with-default-path=PATH will only be used if PATH is not defined in | ||
17697 | $external_path_file ." >&5 | ||
17698 | $as_echo "$as_me: WARNING: | ||
17699 | --with-default-path=PATH will only be used if PATH is not defined in | ||
17700 | $external_path_file ." >&2;} | ||
17701 | fi | ||
17702 | user_path="$withval" | ||
17703 | SERVER_PATH_MSG="$withval" | ||
17704 | fi | ||
17705 | |||
17706 | else | ||
17707 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
17708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
17709 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
17710 | else | ||
17711 | if test ! -z "$external_path_file" ; then | ||
17712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ||
17713 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
17714 | otherwise scp will not work." >&5 | ||
17715 | $as_echo "$as_me: WARNING: | ||
17716 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
17717 | otherwise scp will not work." >&2;} | ||
17718 | fi | ||
17719 | if test "$cross_compiling" = yes; then : | ||
17720 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
17721 | |||
17722 | else | ||
17723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
17724 | /* end confdefs.h. */ | ||
17725 | |||
17726 | /* find out what STDPATH is */ | ||
17727 | #include <stdio.h> | ||
17728 | #ifdef HAVE_PATHS_H | ||
17729 | # include <paths.h> | ||
17730 | #endif | ||
17731 | #ifndef _PATH_STDPATH | ||
17732 | # ifdef _PATH_USERPATH /* Irix */ | ||
17733 | # define _PATH_STDPATH _PATH_USERPATH | ||
17734 | # else | ||
17735 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
17736 | # endif | ||
17737 | #endif | ||
17738 | #include <sys/types.h> | ||
17739 | #include <sys/stat.h> | ||
17740 | #include <fcntl.h> | ||
17741 | #define DATA "conftest.stdpath" | ||
17742 | |||
17743 | int | ||
17744 | main () | ||
17745 | { | ||
17746 | |||
17747 | FILE *fd; | ||
17748 | int rc; | ||
17749 | |||
17750 | fd = fopen(DATA,"w"); | ||
17751 | if(fd == NULL) | ||
17752 | exit(1); | ||
17753 | |||
17754 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
17755 | exit(1); | ||
17756 | |||
17757 | exit(0); | ||
17758 | |||
17759 | ; | ||
17760 | return 0; | ||
17761 | } | ||
17762 | _ACEOF | ||
17763 | if ac_fn_c_try_run "$LINENO"; then : | ||
17764 | user_path=`cat conftest.stdpath` | ||
17765 | else | ||
17766 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
17767 | fi | ||
17768 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
17769 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
17770 | fi | ||
17771 | |||
17772 | # make sure $bindir is in USER_PATH so scp will work | ||
17773 | t_bindir="${bindir}" | ||
17774 | while echo "${t_bindir}" | egrep '\$\{|NONE/' >/dev/null 2>&1; do | ||
17775 | t_bindir=`eval echo ${t_bindir}` | ||
17776 | case $t_bindir in | ||
17777 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
17778 | esac | ||
17779 | case $t_bindir in | ||
17780 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
17781 | esac | ||
17782 | done | ||
17783 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
17784 | if test $? -ne 0 ; then | ||
17785 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
17786 | if test $? -ne 0 ; then | ||
17787 | user_path=$user_path:$t_bindir | ||
17788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
17789 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
17790 | fi | ||
17791 | fi | ||
17792 | fi | ||
17793 | |||
17794 | fi | ||
17795 | |||
17796 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
17797 | |||
17798 | cat >>confdefs.h <<_ACEOF | ||
17799 | #define USER_PATH "$user_path" | ||
17800 | _ACEOF | ||
17801 | |||
17802 | |||
17803 | fi | ||
17804 | |||
17805 | # Set superuser path separately to user path | ||
17806 | |||
17807 | # Check whether --with-superuser-path was given. | ||
17808 | if test "${with_superuser_path+set}" = set; then : | ||
17809 | withval=$with_superuser_path; | ||
17810 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17811 | test "x${withval}" != "xyes"; then | ||
17812 | |||
17813 | cat >>confdefs.h <<_ACEOF | ||
17814 | #define SUPERUSER_PATH "$withval" | ||
17815 | _ACEOF | ||
17816 | |||
17817 | superuser_path=$withval | ||
17818 | fi | ||
17819 | |||
17820 | |||
17821 | fi | ||
17822 | |||
17823 | |||
17824 | |||
17825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
17826 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
17827 | IPV4_IN6_HACK_MSG="no" | ||
17828 | |||
17829 | # Check whether --with-4in6 was given. | ||
17830 | if test "${with_4in6+set}" = set; then : | ||
17831 | withval=$with_4in6; | ||
17832 | if test "x$withval" != "xno" ; then | ||
17833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
17834 | $as_echo "yes" >&6; } | ||
17835 | |||
17836 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
17837 | |||
17838 | IPV4_IN6_HACK_MSG="yes" | ||
17839 | else | ||
17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
17841 | $as_echo "no" >&6; } | ||
17842 | fi | ||
17843 | |||
17844 | else | ||
17845 | |||
17846 | if test "x$inet6_default_4in6" = "xyes"; then | ||
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 | ||
17848 | $as_echo "yes (default)" >&6; } | ||
17849 | $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h | ||
17850 | |||
17851 | IPV4_IN6_HACK_MSG="yes" | ||
17852 | else | ||
17853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5 | ||
17854 | $as_echo "no (default)" >&6; } | ||
17855 | fi | ||
17856 | |||
17857 | |||
17858 | fi | ||
17859 | |||
17860 | |||
17861 | # Whether to enable BSD auth support | ||
17862 | BSD_AUTH_MSG=no | ||
17863 | |||
17864 | # Check whether --with-bsd-auth was given. | ||
17865 | if test "${with_bsd_auth+set}" = set; then : | ||
17866 | withval=$with_bsd_auth; | ||
17867 | if test "x$withval" != "xno" ; then | ||
17868 | |||
17869 | $as_echo "#define BSD_AUTH 1" >>confdefs.h | ||
17870 | |||
17871 | BSD_AUTH_MSG=yes | ||
17872 | fi | ||
17873 | |||
17874 | |||
17875 | fi | ||
17876 | |||
17877 | |||
17878 | # Where to place sshd.pid | ||
17879 | piddir=/var/run | ||
17880 | # make sure the directory exists | ||
17881 | if test ! -d $piddir ; then | ||
17882 | piddir=`eval echo ${sysconfdir}` | ||
17883 | case $piddir in | ||
17884 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
17885 | esac | ||
17886 | fi | ||
17887 | |||
17888 | |||
17889 | # Check whether --with-pid-dir was given. | ||
17890 | if test "${with_pid_dir+set}" = set; then : | ||
17891 | withval=$with_pid_dir; | ||
17892 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
17893 | test "x${withval}" != "xyes"; then | ||
17894 | piddir=$withval | ||
17895 | if test ! -d $piddir ; then | ||
17896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5 | ||
17897 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
17898 | fi | ||
17899 | fi | ||
17900 | |||
17901 | |||
17902 | fi | ||
17903 | |||
17904 | |||
17905 | |||
17906 | cat >>confdefs.h <<_ACEOF | ||
17907 | #define _PATH_SSH_PIDDIR "$piddir" | ||
17908 | _ACEOF | ||
17909 | |||
17910 | |||
17911 | |||
17912 | # Check whether --enable-lastlog was given. | ||
17913 | if test "${enable_lastlog+set}" = set; then : | ||
17914 | enableval=$enable_lastlog; | ||
17915 | if test "x$enableval" = "xno" ; then | ||
17916 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
17917 | |||
17918 | fi | ||
17919 | |||
17920 | |||
17921 | fi | ||
17922 | |||
17923 | # Check whether --enable-utmp was given. | ||
17924 | if test "${enable_utmp+set}" = set; then : | ||
17925 | enableval=$enable_utmp; | ||
17926 | if test "x$enableval" = "xno" ; then | ||
17927 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
17928 | |||
17929 | fi | ||
17930 | |||
17931 | |||
17932 | fi | ||
17933 | |||
17934 | # Check whether --enable-utmpx was given. | ||
17935 | if test "${enable_utmpx+set}" = set; then : | ||
17936 | enableval=$enable_utmpx; | ||
17937 | if test "x$enableval" = "xno" ; then | ||
17938 | |||
17939 | $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h | ||
17940 | |||
17941 | fi | ||
17942 | |||
17943 | |||
17944 | fi | ||
17945 | |||
17946 | # Check whether --enable-wtmp was given. | ||
17947 | if test "${enable_wtmp+set}" = set; then : | ||
17948 | enableval=$enable_wtmp; | ||
17949 | if test "x$enableval" = "xno" ; then | ||
17950 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
17951 | |||
17952 | fi | ||
17953 | |||
17954 | |||
17955 | fi | ||
17956 | |||
17957 | # Check whether --enable-wtmpx was given. | ||
17958 | if test "${enable_wtmpx+set}" = set; then : | ||
17959 | enableval=$enable_wtmpx; | ||
17960 | if test "x$enableval" = "xno" ; then | ||
17961 | |||
17962 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
17963 | |||
17964 | fi | ||
17965 | |||
17966 | |||
17967 | fi | ||
17968 | |||
17969 | # Check whether --enable-libutil was given. | ||
17970 | if test "${enable_libutil+set}" = set; then : | ||
17971 | enableval=$enable_libutil; | ||
17972 | if test "x$enableval" = "xno" ; then | ||
17973 | $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h | ||
17974 | |||
17975 | fi | ||
17976 | |||
17977 | |||
17978 | fi | ||
17979 | |||
17980 | # Check whether --enable-pututline was given. | ||
17981 | if test "${enable_pututline+set}" = set; then : | ||
17982 | enableval=$enable_pututline; | ||
17983 | if test "x$enableval" = "xno" ; then | ||
17984 | |||
17985 | $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h | ||
17986 | |||
17987 | fi | ||
17988 | |||
17989 | |||
17990 | fi | ||
17991 | |||
17992 | # Check whether --enable-pututxline was given. | ||
17993 | if test "${enable_pututxline+set}" = set; then : | ||
17994 | enableval=$enable_pututxline; | ||
17995 | if test "x$enableval" = "xno" ; then | ||
17996 | |||
17997 | $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h | ||
17998 | |||
17999 | fi | ||
18000 | |||
18001 | |||
18002 | fi | ||
18003 | |||
18004 | |||
18005 | # Check whether --with-lastlog was given. | ||
18006 | if test "${with_lastlog+set}" = set; then : | ||
18007 | withval=$with_lastlog; | ||
18008 | if test "x$withval" = "xno" ; then | ||
18009 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
18010 | |||
18011 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
18012 | conf_lastlog_location=$withval | ||
18013 | fi | ||
18014 | |||
18015 | |||
18016 | fi | ||
18017 | |||
18018 | |||
18019 | |||
18020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5 | ||
18021 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
18022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18023 | /* end confdefs.h. */ | ||
18024 | |||
18025 | #include <sys/types.h> | ||
18026 | #include <utmp.h> | ||
18027 | #ifdef HAVE_LASTLOG_H | ||
18028 | # include <lastlog.h> | ||
18029 | #endif | ||
18030 | #ifdef HAVE_PATHS_H | ||
18031 | # include <paths.h> | ||
18032 | #endif | ||
18033 | #ifdef HAVE_LOGIN_H | ||
18034 | # include <login.h> | ||
18035 | #endif | ||
18036 | |||
18037 | int | ||
18038 | main () | ||
18039 | { | ||
18040 | char *lastlog = LASTLOG_FILE; | ||
18041 | ; | ||
18042 | return 0; | ||
18043 | } | ||
18044 | _ACEOF | ||
18045 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18047 | $as_echo "yes" >&6; } | ||
18048 | else | ||
18049 | |||
18050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18051 | $as_echo "no" >&6; } | ||
18052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5 | ||
18053 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
18054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18055 | /* end confdefs.h. */ | ||
18056 | |||
18057 | #include <sys/types.h> | ||
18058 | #include <utmp.h> | ||
18059 | #ifdef HAVE_LASTLOG_H | ||
18060 | # include <lastlog.h> | ||
18061 | #endif | ||
18062 | #ifdef HAVE_PATHS_H | ||
18063 | # include <paths.h> | ||
18064 | #endif | ||
18065 | |||
18066 | int | ||
18067 | main () | ||
18068 | { | ||
18069 | char *lastlog = _PATH_LASTLOG; | ||
18070 | ; | ||
18071 | return 0; | ||
18072 | } | ||
18073 | _ACEOF | ||
18074 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18076 | $as_echo "yes" >&6; } | ||
18077 | else | ||
18078 | |||
18079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18080 | $as_echo "no" >&6; } | ||
18081 | system_lastlog_path=no | ||
18082 | |||
18083 | fi | ||
18084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18085 | |||
18086 | fi | ||
18087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18088 | |||
18089 | if test -z "$conf_lastlog_location"; then | ||
18090 | if test x"$system_lastlog_path" = x"no" ; then | ||
18091 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
18092 | if (test -d "$f" || test -f "$f") ; then | ||
18093 | conf_lastlog_location=$f | ||
18094 | fi | ||
18095 | done | ||
18096 | if test -z "$conf_lastlog_location"; then | ||
18097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5 | ||
18098 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
18099 | fi | ||
18100 | fi | ||
18101 | fi | ||
18102 | |||
18103 | if test -n "$conf_lastlog_location"; then | ||
18104 | |||
18105 | cat >>confdefs.h <<_ACEOF | ||
18106 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
18107 | _ACEOF | ||
18108 | |||
18109 | fi | ||
18110 | |||
18111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5 | ||
18112 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
18113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18114 | /* end confdefs.h. */ | ||
18115 | |||
18116 | #include <sys/types.h> | ||
18117 | #include <utmp.h> | ||
18118 | #ifdef HAVE_PATHS_H | ||
18119 | # include <paths.h> | ||
18120 | #endif | ||
18121 | |||
18122 | int | ||
18123 | main () | ||
18124 | { | ||
18125 | char *utmp = UTMP_FILE; | ||
18126 | ; | ||
18127 | return 0; | ||
18128 | } | ||
18129 | _ACEOF | ||
18130 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18132 | $as_echo "yes" >&6; } | ||
18133 | else | ||
18134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18135 | $as_echo "no" >&6; } | ||
18136 | system_utmp_path=no | ||
18137 | |||
18138 | fi | ||
18139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18140 | if test -z "$conf_utmp_location"; then | ||
18141 | if test x"$system_utmp_path" = x"no" ; then | ||
18142 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
18143 | if test -f $f ; then | ||
18144 | conf_utmp_location=$f | ||
18145 | fi | ||
18146 | done | ||
18147 | if test -z "$conf_utmp_location"; then | ||
18148 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
18149 | |||
18150 | fi | ||
18151 | fi | ||
18152 | fi | ||
18153 | if test -n "$conf_utmp_location"; then | ||
18154 | |||
18155 | cat >>confdefs.h <<_ACEOF | ||
18156 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
18157 | _ACEOF | ||
18158 | |||
18159 | fi | ||
18160 | |||
18161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5 | ||
18162 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
18163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18164 | /* end confdefs.h. */ | ||
18165 | |||
18166 | #include <sys/types.h> | ||
18167 | #include <utmp.h> | ||
18168 | #ifdef HAVE_PATHS_H | ||
18169 | # include <paths.h> | ||
18170 | #endif | ||
18171 | |||
18172 | int | ||
18173 | main () | ||
18174 | { | ||
18175 | char *wtmp = WTMP_FILE; | ||
18176 | ; | ||
18177 | return 0; | ||
18178 | } | ||
18179 | _ACEOF | ||
18180 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18182 | $as_echo "yes" >&6; } | ||
18183 | else | ||
18184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18185 | $as_echo "no" >&6; } | ||
18186 | system_wtmp_path=no | ||
18187 | |||
18188 | fi | ||
18189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18190 | if test -z "$conf_wtmp_location"; then | ||
18191 | if test x"$system_wtmp_path" = x"no" ; then | ||
18192 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
18193 | if test -f $f ; then | ||
18194 | conf_wtmp_location=$f | ||
18195 | fi | ||
18196 | done | ||
18197 | if test -z "$conf_wtmp_location"; then | ||
18198 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
18199 | |||
18200 | fi | ||
18201 | fi | ||
18202 | fi | ||
18203 | if test -n "$conf_wtmp_location"; then | ||
18204 | |||
18205 | cat >>confdefs.h <<_ACEOF | ||
18206 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
18207 | _ACEOF | ||
18208 | |||
18209 | fi | ||
18210 | |||
18211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5 | ||
18212 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
18213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
18214 | /* end confdefs.h. */ | ||
18215 | |||
18216 | #include <sys/types.h> | ||
18217 | #include <utmp.h> | ||
18218 | #ifdef HAVE_UTMPX_H | ||
18219 | #include <utmpx.h> | ||
18220 | #endif | ||
18221 | #ifdef HAVE_PATHS_H | ||
18222 | # include <paths.h> | ||
18223 | #endif | ||
18224 | |||
18225 | int | ||
18226 | main () | ||
18227 | { | ||
18228 | char *wtmpx = WTMPX_FILE; | ||
18229 | ; | ||
18230 | return 0; | ||
18231 | } | ||
18232 | _ACEOF | ||
18233 | if ac_fn_c_try_compile "$LINENO"; then : | ||
18234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
18235 | $as_echo "yes" >&6; } | ||
18236 | else | ||
18237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
18238 | $as_echo "no" >&6; } | ||
18239 | system_wtmpx_path=no | ||
18240 | |||
18241 | fi | ||
18242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18243 | if test -z "$conf_wtmpx_location"; then | ||
18244 | if test x"$system_wtmpx_path" = x"no" ; then | ||
18245 | $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h | ||
18246 | |||
18247 | fi | ||
18248 | else | ||
18249 | |||
18250 | cat >>confdefs.h <<_ACEOF | ||
18251 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
18252 | _ACEOF | ||
18253 | |||
18254 | fi | ||
18255 | |||
18256 | |||
18257 | if test ! -z "$blibpath" ; then | ||
18258 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
18259 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
18260 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
18261 | fi | ||
18262 | |||
18263 | ac_fn_c_check_member "$LINENO" "struct lastlog" "ll_line" "ac_cv_member_struct_lastlog_ll_line" " | ||
18264 | #ifdef HAVE_SYS_TYPES_H | ||
18265 | #include <sys/types.h> | ||
18266 | #endif | ||
18267 | #ifdef HAVE_UTMP_H | ||
18268 | #include <utmp.h> | ||
18269 | #endif | ||
18270 | #ifdef HAVE_UTMPX_H | ||
18271 | #include <utmpx.h> | ||
18272 | #endif | ||
18273 | #ifdef HAVE_LASTLOG_H | ||
18274 | #include <lastlog.h> | ||
18275 | #endif | ||
18276 | |||
18277 | " | ||
18278 | if test "x$ac_cv_member_struct_lastlog_ll_line" = xyes; then : | ||
18279 | |||
18280 | else | ||
18281 | |||
18282 | if test x$SKIP_DISABLE_LASTLOG_DEFINE != "xyes" ; then | ||
18283 | $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h | ||
18284 | |||
18285 | fi | ||
18286 | |||
18287 | fi | ||
18288 | |||
18289 | |||
18290 | ac_fn_c_check_member "$LINENO" "struct utmp" "ut_line" "ac_cv_member_struct_utmp_ut_line" " | ||
18291 | #ifdef HAVE_SYS_TYPES_H | ||
18292 | #include <sys/types.h> | ||
18293 | #endif | ||
18294 | #ifdef HAVE_UTMP_H | ||
18295 | #include <utmp.h> | ||
18296 | #endif | ||
18297 | #ifdef HAVE_UTMPX_H | ||
18298 | #include <utmpx.h> | ||
18299 | #endif | ||
18300 | #ifdef HAVE_LASTLOG_H | ||
18301 | #include <lastlog.h> | ||
18302 | #endif | ||
18303 | |||
18304 | " | ||
18305 | if test "x$ac_cv_member_struct_utmp_ut_line" = xyes; then : | ||
18306 | |||
18307 | else | ||
18308 | |||
18309 | $as_echo "#define DISABLE_UTMP 1" >>confdefs.h | ||
18310 | |||
18311 | $as_echo "#define DISABLE_WTMP 1" >>confdefs.h | ||
18312 | |||
18313 | |||
18314 | fi | ||
18315 | |||
18316 | |||
18317 | CFLAGS="$CFLAGS $werror_flags" | ||
18318 | |||
18319 | if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
18320 | TEST_SSH_IPV6=no | ||
18321 | else | ||
18322 | TEST_SSH_IPV6=yes | ||
18323 | fi | ||
18324 | ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default" | ||
18325 | if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then : | ||
18326 | TEST_SSH_IPV6=no | ||
18327 | fi | ||
18328 | |||
18329 | TEST_SSH_IPV6=$TEST_SSH_IPV6 | ||
18330 | |||
18331 | TEST_MALLOC_OPTIONS=$TEST_MALLOC_OPTIONS | ||
18332 | |||
18333 | UNSUPPORTED_ALGORITHMS=$unsupported_algorithms | ||
18334 | |||
18335 | |||
18336 | |||
18337 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh" | ||
18338 | |||
18339 | cat >confcache <<\_ACEOF | ||
18340 | # This file is a shell script that caches the results of configure | ||
18341 | # tests run on this system so they can be shared between configure | ||
18342 | # scripts and configure runs, see configure's option --config-cache. | ||
18343 | # It is not useful on other systems. If it contains results you don't | ||
18344 | # want to keep, you may remove or edit it. | ||
18345 | # | ||
18346 | # config.status only pays attention to the cache file if you give it | ||
18347 | # the --recheck option to rerun configure. | ||
18348 | # | ||
18349 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
18350 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
18351 | # following values. | ||
18352 | |||
18353 | _ACEOF | ||
18354 | |||
18355 | # The following way of writing the cache mishandles newlines in values, | ||
18356 | # but we know of no workaround that is simple, portable, and efficient. | ||
18357 | # So, we kill variables containing newlines. | ||
18358 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
18359 | # and sets the high bit in the cache file unless we assign to the vars. | ||
18360 | ( | ||
18361 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
18362 | eval ac_val=\$$ac_var | ||
18363 | case $ac_val in #( | ||
18364 | *${as_nl}*) | ||
18365 | case $ac_var in #( | ||
18366 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
18367 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
18368 | esac | ||
18369 | case $ac_var in #( | ||
18370 | _ | IFS | as_nl) ;; #( | ||
18371 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
18372 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
18373 | esac ;; | ||
18374 | esac | ||
18375 | done | ||
18376 | |||
18377 | (set) 2>&1 | | ||
18378 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
18379 | *${as_nl}ac_space=\ *) | ||
18380 | # `set' does not quote correctly, so add quotes: double-quote | ||
18381 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
18382 | sed -n \ | ||
18383 | "s/'/'\\\\''/g; | ||
18384 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
18385 | ;; #( | ||
18386 | *) | ||
18387 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
18388 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
18389 | ;; | ||
18390 | esac | | ||
18391 | sort | ||
18392 | ) | | ||
18393 | sed ' | ||
18394 | /^ac_cv_env_/b end | ||
18395 | t clear | ||
18396 | :clear | ||
18397 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
18398 | t end | ||
18399 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
18400 | :end' >>confcache | ||
18401 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
18402 | if test -w "$cache_file"; then | ||
18403 | if test "x$cache_file" != "x/dev/null"; then | ||
18404 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
18405 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
18406 | if test ! -f "$cache_file" || test -h "$cache_file"; then | ||
18407 | cat confcache >"$cache_file" | ||
18408 | else | ||
18409 | case $cache_file in #( | ||
18410 | */* | ?:*) | ||
18411 | mv -f confcache "$cache_file"$$ && | ||
18412 | mv -f "$cache_file"$$ "$cache_file" ;; #( | ||
18413 | *) | ||
18414 | mv -f confcache "$cache_file" ;; | ||
18415 | esac | ||
18416 | fi | ||
18417 | fi | ||
18418 | else | ||
18419 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
18420 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
18421 | fi | ||
18422 | fi | ||
18423 | rm -f confcache | ||
18424 | |||
18425 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
18426 | # Let make expand exec_prefix. | ||
18427 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
18428 | |||
18429 | DEFS=-DHAVE_CONFIG_H | ||
18430 | |||
18431 | ac_libobjs= | ||
18432 | ac_ltlibobjs= | ||
18433 | U= | ||
18434 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
18435 | # 1. Remove the extension, and $U if already installed. | ||
18436 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
18437 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
18438 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
18439 | # will be set to the directory where LIBOBJS objects are built. | ||
18440 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
18441 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
18442 | done | ||
18443 | LIBOBJS=$ac_libobjs | ||
18444 | |||
18445 | LTLIBOBJS=$ac_ltlibobjs | ||
18446 | |||
18447 | |||
18448 | |||
18449 | |||
18450 | : "${CONFIG_STATUS=./config.status}" | ||
18451 | ac_write_fail=0 | ||
18452 | ac_clean_files_save=$ac_clean_files | ||
18453 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
18454 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
18455 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
18456 | as_write_fail=0 | ||
18457 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
18458 | #! $SHELL | ||
18459 | # Generated by $as_me. | ||
18460 | # Run this file to recreate the current configuration. | ||
18461 | # Compiler output produced by configure, useful for debugging | ||
18462 | # configure, is in config.log if it exists. | ||
18463 | |||
18464 | debug=false | ||
18465 | ac_cs_recheck=false | ||
18466 | ac_cs_silent=false | ||
18467 | |||
18468 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
18469 | export SHELL | ||
18470 | _ASEOF | ||
18471 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
18472 | ## -------------------- ## | ||
18473 | ## M4sh Initialization. ## | ||
18474 | ## -------------------- ## | ||
18475 | |||
18476 | # Be more Bourne compatible | ||
18477 | DUALCASE=1; export DUALCASE # for MKS sh | ||
18478 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
18479 | emulate sh | ||
18480 | NULLCMD=: | ||
18481 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
18482 | # is contrary to our usage. Disable this feature. | ||
18483 | alias -g '${1+"$@"}'='"$@"' | ||
18484 | setopt NO_GLOB_SUBST | ||
18485 | else | ||
18486 | case `(set -o) 2>/dev/null` in #( | ||
18487 | *posix*) : | ||
18488 | set -o posix ;; #( | ||
18489 | *) : | ||
18490 | ;; | ||
18491 | esac | ||
18492 | fi | ||
18493 | |||
18494 | |||
18495 | as_nl=' | ||
18496 | ' | ||
18497 | export as_nl | ||
18498 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
18499 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
18500 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
18501 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
18502 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
18503 | # but without wasting forks for bash or zsh. | ||
18504 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
18505 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
18506 | as_echo='print -r --' | ||
18507 | as_echo_n='print -rn --' | ||
18508 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
18509 | as_echo='printf %s\n' | ||
18510 | as_echo_n='printf %s' | ||
18511 | else | ||
18512 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
18513 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
18514 | as_echo_n='/usr/ucb/echo -n' | ||
18515 | else | ||
18516 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
18517 | as_echo_n_body='eval | ||
18518 | arg=$1; | ||
18519 | case $arg in #( | ||
18520 | *"$as_nl"*) | ||
18521 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
18522 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
18523 | esac; | ||
18524 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
18525 | ' | ||
18526 | export as_echo_n_body | ||
18527 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
18528 | fi | ||
18529 | export as_echo_body | ||
18530 | as_echo='sh -c $as_echo_body as_echo' | ||
18531 | fi | ||
18532 | |||
18533 | # The user is always right. | ||
18534 | if test "${PATH_SEPARATOR+set}" != set; then | ||
18535 | PATH_SEPARATOR=: | ||
18536 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
18537 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
18538 | PATH_SEPARATOR=';' | ||
18539 | } | ||
18540 | fi | ||
18541 | |||
18542 | |||
18543 | # IFS | ||
18544 | # We need space, tab and new line, in precisely that order. Quoting is | ||
18545 | # there to prevent editors from complaining about space-tab. | ||
18546 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
18547 | # splitting by setting IFS to empty value.) | ||
18548 | IFS=" "" $as_nl" | ||
18549 | |||
18550 | # Find who we are. Look in the path if we contain no directory separator. | ||
18551 | as_myself= | ||
18552 | case $0 in #(( | ||
18553 | *[\\/]* ) as_myself=$0 ;; | ||
18554 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18555 | for as_dir in $PATH | ||
18556 | do | ||
18557 | IFS=$as_save_IFS | ||
18558 | test -z "$as_dir" && as_dir=. | ||
18559 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
18560 | done | ||
18561 | IFS=$as_save_IFS | ||
18562 | |||
18563 | ;; | ||
18564 | esac | ||
18565 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
18566 | # in which case we are not to be found in the path. | ||
18567 | if test "x$as_myself" = x; then | ||
18568 | as_myself=$0 | ||
18569 | fi | ||
18570 | if test ! -f "$as_myself"; then | ||
18571 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
18572 | exit 1 | ||
18573 | fi | ||
18574 | |||
18575 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
18576 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
18577 | # suppresses any "Segmentation fault" message there. '((' could | ||
18578 | # trigger a bug in pdksh 5.2.14. | ||
18579 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
18580 | do eval test x\${$as_var+set} = xset \ | ||
18581 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
18582 | done | ||
18583 | PS1='$ ' | ||
18584 | PS2='> ' | ||
18585 | PS4='+ ' | ||
18586 | |||
18587 | # NLS nuisances. | ||
18588 | LC_ALL=C | ||
18589 | export LC_ALL | ||
18590 | LANGUAGE=C | ||
18591 | export LANGUAGE | ||
18592 | |||
18593 | # CDPATH. | ||
18594 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
18595 | |||
18596 | |||
18597 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | ||
18598 | # ---------------------------------------- | ||
18599 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
18600 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
18601 | # script with STATUS, using 1 if that was 0. | ||
18602 | as_fn_error () | ||
18603 | { | ||
18604 | as_status=$1; test $as_status -eq 0 && as_status=1 | ||
18605 | if test "$4"; then | ||
18606 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
18607 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | ||
18608 | fi | ||
18609 | $as_echo "$as_me: error: $2" >&2 | ||
18610 | as_fn_exit $as_status | ||
18611 | } # as_fn_error | ||
18612 | |||
18613 | |||
18614 | # as_fn_set_status STATUS | ||
18615 | # ----------------------- | ||
18616 | # Set $? to STATUS, without forking. | ||
18617 | as_fn_set_status () | ||
18618 | { | ||
18619 | return $1 | ||
18620 | } # as_fn_set_status | ||
18621 | |||
18622 | # as_fn_exit STATUS | ||
18623 | # ----------------- | ||
18624 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
18625 | as_fn_exit () | ||
18626 | { | ||
18627 | set +e | ||
18628 | as_fn_set_status $1 | ||
18629 | exit $1 | ||
18630 | } # as_fn_exit | ||
18631 | |||
18632 | # as_fn_unset VAR | ||
18633 | # --------------- | ||
18634 | # Portably unset VAR. | ||
18635 | as_fn_unset () | ||
18636 | { | ||
18637 | { eval $1=; unset $1;} | ||
18638 | } | ||
18639 | as_unset=as_fn_unset | ||
18640 | # as_fn_append VAR VALUE | ||
18641 | # ---------------------- | ||
18642 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
18643 | # advantage of any shell optimizations that allow amortized linear growth over | ||
18644 | # repeated appends, instead of the typical quadratic growth present in naive | ||
18645 | # implementations. | ||
18646 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
18647 | eval 'as_fn_append () | ||
18648 | { | ||
18649 | eval $1+=\$2 | ||
18650 | }' | ||
18651 | else | ||
18652 | as_fn_append () | ||
18653 | { | ||
18654 | eval $1=\$$1\$2 | ||
18655 | } | ||
18656 | fi # as_fn_append | ||
18657 | |||
18658 | # as_fn_arith ARG... | ||
18659 | # ------------------ | ||
18660 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
18661 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
18662 | # must be portable across $(()) and expr. | ||
18663 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
18664 | eval 'as_fn_arith () | ||
18665 | { | ||
18666 | as_val=$(( $* )) | ||
18667 | }' | ||
18668 | else | ||
18669 | as_fn_arith () | ||
18670 | { | ||
18671 | as_val=`expr "$@" || test $? -eq 1` | ||
18672 | } | ||
18673 | fi # as_fn_arith | ||
18674 | |||
18675 | |||
18676 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
18677 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
18678 | as_expr=expr | ||
18679 | else | ||
18680 | as_expr=false | ||
18681 | fi | ||
18682 | |||
18683 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
18684 | as_basename=basename | ||
18685 | else | ||
18686 | as_basename=false | ||
18687 | fi | ||
18688 | |||
18689 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
18690 | as_dirname=dirname | ||
18691 | else | ||
18692 | as_dirname=false | ||
18693 | fi | ||
18694 | |||
18695 | as_me=`$as_basename -- "$0" || | ||
18696 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
18697 | X"$0" : 'X\(//\)$' \| \ | ||
18698 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
18699 | $as_echo X/"$0" | | ||
18700 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
18701 | s//\1/ | ||
18702 | q | ||
18703 | } | ||
18704 | /^X\/\(\/\/\)$/{ | ||
18705 | s//\1/ | ||
18706 | q | ||
18707 | } | ||
18708 | /^X\/\(\/\).*/{ | ||
18709 | s//\1/ | ||
18710 | q | ||
18711 | } | ||
18712 | s/.*/./; q'` | ||
18713 | |||
18714 | # Avoid depending upon Character Ranges. | ||
18715 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
18716 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
18717 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
18718 | as_cr_digits='0123456789' | ||
18719 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
18720 | |||
18721 | ECHO_C= ECHO_N= ECHO_T= | ||
18722 | case `echo -n x` in #((((( | ||
18723 | -n*) | ||
18724 | case `echo 'xy\c'` in | ||
18725 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
18726 | xy) ECHO_C='\c';; | ||
18727 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
18728 | ECHO_T=' ';; | ||
18729 | esac;; | ||
18730 | *) | ||
18731 | ECHO_N='-n';; | ||
18732 | esac | ||
18733 | |||
18734 | rm -f conf$$ conf$$.exe conf$$.file | ||
18735 | if test -d conf$$.dir; then | ||
18736 | rm -f conf$$.dir/conf$$.file | ||
18737 | else | ||
18738 | rm -f conf$$.dir | ||
18739 | mkdir conf$$.dir 2>/dev/null | ||
18740 | fi | ||
18741 | if (echo >conf$$.file) 2>/dev/null; then | ||
18742 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
18743 | as_ln_s='ln -s' | ||
18744 | # ... but there are two gotchas: | ||
18745 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
18746 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
18747 | # In both cases, we have to default to `cp -p'. | ||
18748 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
18749 | as_ln_s='cp -p' | ||
18750 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
18751 | as_ln_s=ln | ||
18752 | else | ||
18753 | as_ln_s='cp -p' | ||
18754 | fi | ||
18755 | else | ||
18756 | as_ln_s='cp -p' | ||
18757 | fi | ||
18758 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
18759 | rmdir conf$$.dir 2>/dev/null | ||
18760 | |||
18761 | |||
18762 | # as_fn_mkdir_p | ||
18763 | # ------------- | ||
18764 | # Create "$as_dir" as a directory, including parents if necessary. | ||
18765 | as_fn_mkdir_p () | ||
18766 | { | ||
18767 | |||
18768 | case $as_dir in #( | ||
18769 | -*) as_dir=./$as_dir;; | ||
18770 | esac | ||
18771 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
18772 | as_dirs= | ||
18773 | while :; do | ||
18774 | case $as_dir in #( | ||
18775 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
18776 | *) as_qdir=$as_dir;; | ||
18777 | esac | ||
18778 | as_dirs="'$as_qdir' $as_dirs" | ||
18779 | as_dir=`$as_dirname -- "$as_dir" || | ||
18780 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
18781 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
18782 | X"$as_dir" : 'X\(//\)$' \| \ | ||
18783 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
18784 | $as_echo X"$as_dir" | | ||
18785 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
18786 | s//\1/ | ||
18787 | q | ||
18788 | } | ||
18789 | /^X\(\/\/\)[^/].*/{ | ||
18790 | s//\1/ | ||
18791 | q | ||
18792 | } | ||
18793 | /^X\(\/\/\)$/{ | ||
18794 | s//\1/ | ||
18795 | q | ||
18796 | } | ||
18797 | /^X\(\/\).*/{ | ||
18798 | s//\1/ | ||
18799 | q | ||
18800 | } | ||
18801 | s/.*/./; q'` | ||
18802 | test -d "$as_dir" && break | ||
18803 | done | ||
18804 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
18805 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | ||
18806 | |||
18807 | |||
18808 | } # as_fn_mkdir_p | ||
18809 | if mkdir -p . 2>/dev/null; then | ||
18810 | as_mkdir_p='mkdir -p "$as_dir"' | ||
18811 | else | ||
18812 | test -d ./-p && rmdir ./-p | ||
18813 | as_mkdir_p=false | ||
18814 | fi | ||
18815 | |||
18816 | if test -x / >/dev/null 2>&1; then | ||
18817 | as_test_x='test -x' | ||
18818 | else | ||
18819 | if ls -dL / >/dev/null 2>&1; then | ||
18820 | as_ls_L_option=L | ||
18821 | else | ||
18822 | as_ls_L_option= | ||
18823 | fi | ||
18824 | as_test_x=' | ||
18825 | eval sh -c '\'' | ||
18826 | if test -d "$1"; then | ||
18827 | test -d "$1/."; | ||
18828 | else | ||
18829 | case $1 in #( | ||
18830 | -*)set "./$1";; | ||
18831 | esac; | ||
18832 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
18833 | ???[sx]*):;;*)false;;esac;fi | ||
18834 | '\'' sh | ||
18835 | ' | ||
18836 | fi | ||
18837 | as_executable_p=$as_test_x | ||
18838 | |||
18839 | # Sed expression to map a string onto a valid CPP name. | ||
18840 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
18841 | |||
18842 | # Sed expression to map a string onto a valid variable name. | ||
18843 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
18844 | |||
18845 | |||
18846 | exec 6>&1 | ||
18847 | ## ----------------------------------- ## | ||
18848 | ## Main body of $CONFIG_STATUS script. ## | ||
18849 | ## ----------------------------------- ## | ||
18850 | _ASEOF | ||
18851 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | ||
18852 | |||
18853 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18854 | # Save the log message, to keep $0 and so on meaningful, and to | ||
18855 | # report actual input values of CONFIG_FILES etc. instead of their | ||
18856 | # values after options handling. | ||
18857 | ac_log=" | ||
18858 | This file was extended by OpenSSH $as_me Portable, which was | ||
18859 | generated by GNU Autoconf 2.68. Invocation command line was | ||
18860 | |||
18861 | CONFIG_FILES = $CONFIG_FILES | ||
18862 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
18863 | CONFIG_LINKS = $CONFIG_LINKS | ||
18864 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
18865 | $ $0 $@ | ||
18866 | |||
18867 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
18868 | " | ||
18869 | |||
18870 | _ACEOF | ||
18871 | |||
18872 | case $ac_config_files in *" | ||
18873 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | ||
18874 | esac | ||
18875 | |||
18876 | case $ac_config_headers in *" | ||
18877 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | ||
18878 | esac | ||
18879 | |||
18880 | |||
18881 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
18882 | # Files that config.status was made for. | ||
18883 | config_files="$ac_config_files" | ||
18884 | config_headers="$ac_config_headers" | ||
18885 | |||
18886 | _ACEOF | ||
18887 | |||
18888 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18889 | ac_cs_usage="\ | ||
18890 | \`$as_me' instantiates files and other configuration actions | ||
18891 | from templates according to the current configuration. Unless the files | ||
18892 | and actions are specified as TAGs, all are instantiated by default. | ||
18893 | |||
18894 | Usage: $0 [OPTION]... [TAG]... | ||
18895 | |||
18896 | -h, --help print this help, then exit | ||
18897 | -V, --version print version number and configuration settings, then exit | ||
18898 | --config print configuration, then exit | ||
18899 | -q, --quiet, --silent | ||
18900 | do not print progress messages | ||
18901 | -d, --debug don't remove temporary files | ||
18902 | --recheck update $as_me by reconfiguring in the same conditions | ||
18903 | --file=FILE[:TEMPLATE] | ||
18904 | instantiate the configuration file FILE | ||
18905 | --header=FILE[:TEMPLATE] | ||
18906 | instantiate the configuration header FILE | ||
18907 | |||
18908 | Configuration files: | ||
18909 | $config_files | ||
18910 | |||
18911 | Configuration headers: | ||
18912 | $config_headers | ||
18913 | |||
18914 | Report bugs to <openssh-unix-dev@mindrot.org>." | ||
18915 | |||
18916 | _ACEOF | ||
18917 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
18918 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | ||
18919 | ac_cs_version="\\ | ||
18920 | OpenSSH config.status Portable | ||
18921 | configured by $0, generated by GNU Autoconf 2.68, | ||
18922 | with options \\"\$ac_cs_config\\" | ||
18923 | |||
18924 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
18925 | This config.status script is free software; the Free Software Foundation | ||
18926 | gives unlimited permission to copy, distribute and modify it." | ||
18927 | |||
18928 | ac_pwd='$ac_pwd' | ||
18929 | srcdir='$srcdir' | ||
18930 | INSTALL='$INSTALL' | ||
18931 | AWK='$AWK' | ||
18932 | test -n "\$AWK" || AWK=awk | ||
18933 | _ACEOF | ||
18934 | |||
18935 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
18936 | # The default lists apply if the user does not specify any file. | ||
18937 | ac_need_defaults=: | ||
18938 | while test $# != 0 | ||
18939 | do | ||
18940 | case $1 in | ||
18941 | --*=?*) | ||
18942 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
18943 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
18944 | ac_shift=: | ||
18945 | ;; | ||
18946 | --*=) | ||
18947 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
18948 | ac_optarg= | ||
18949 | ac_shift=: | ||
18950 | ;; | ||
18951 | *) | ||
18952 | ac_option=$1 | ||
18953 | ac_optarg=$2 | ||
18954 | ac_shift=shift | ||
18955 | ;; | ||
18956 | esac | ||
18957 | |||
18958 | case $ac_option in | ||
18959 | # Handling of the options. | ||
18960 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
18961 | ac_cs_recheck=: ;; | ||
18962 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
18963 | $as_echo "$ac_cs_version"; exit ;; | ||
18964 | --config | --confi | --conf | --con | --co | --c ) | ||
18965 | $as_echo "$ac_cs_config"; exit ;; | ||
18966 | --debug | --debu | --deb | --de | --d | -d ) | ||
18967 | debug=: ;; | ||
18968 | --file | --fil | --fi | --f ) | ||
18969 | $ac_shift | ||
18970 | case $ac_optarg in | ||
18971 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
18972 | '') as_fn_error $? "missing file argument" ;; | ||
18973 | esac | ||
18974 | as_fn_append CONFIG_FILES " '$ac_optarg'" | ||
18975 | ac_need_defaults=false;; | ||
18976 | --header | --heade | --head | --hea ) | ||
18977 | $ac_shift | ||
18978 | case $ac_optarg in | ||
18979 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
18980 | esac | ||
18981 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | ||
18982 | ac_need_defaults=false;; | ||
18983 | --he | --h) | ||
18984 | # Conflict between --help and --header | ||
18985 | as_fn_error $? "ambiguous option: \`$1' | ||
18986 | Try \`$0 --help' for more information.";; | ||
18987 | --help | --hel | -h ) | ||
18988 | $as_echo "$ac_cs_usage"; exit ;; | ||
18989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
18990 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
18991 | ac_cs_silent=: ;; | ||
18992 | |||
18993 | # This is an error. | ||
18994 | -*) as_fn_error $? "unrecognized option: \`$1' | ||
18995 | Try \`$0 --help' for more information." ;; | ||
18996 | |||
18997 | *) as_fn_append ac_config_targets " $1" | ||
18998 | ac_need_defaults=false ;; | ||
18999 | |||
19000 | esac | ||
19001 | shift | ||
19002 | done | ||
19003 | |||
19004 | ac_configure_extra_args= | ||
19005 | |||
19006 | if $ac_cs_silent; then | ||
19007 | exec 6>/dev/null | ||
19008 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
19009 | fi | ||
19010 | |||
19011 | _ACEOF | ||
19012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19013 | if \$ac_cs_recheck; then | ||
19014 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
19015 | shift | ||
19016 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
19017 | CONFIG_SHELL='$SHELL' | ||
19018 | export CONFIG_SHELL | ||
19019 | exec "\$@" | ||
19020 | fi | ||
19021 | |||
19022 | _ACEOF | ||
19023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19024 | exec 5>>config.log | ||
19025 | { | ||
19026 | echo | ||
19027 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
19028 | ## Running $as_me. ## | ||
19029 | _ASBOX | ||
19030 | $as_echo "$ac_log" | ||
19031 | } >&5 | ||
19032 | |||
19033 | _ACEOF | ||
19034 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19035 | _ACEOF | ||
19036 | |||
19037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19038 | |||
19039 | # Handling of arguments. | ||
19040 | for ac_config_target in $ac_config_targets | ||
19041 | do | ||
19042 | case $ac_config_target in | ||
19043 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
19044 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
19045 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
19046 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
19047 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
19048 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
19049 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
19050 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
19051 | |||
19052 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | ||
19053 | esac | ||
19054 | done | ||
19055 | |||
19056 | |||
19057 | # If the user did not use the arguments to specify the items to instantiate, | ||
19058 | # then the envvar interface is used. Set only those that are not. | ||
19059 | # We use the long form for the default assignment because of an extremely | ||
19060 | # bizarre bug on SunOS 4.1.3. | ||
19061 | if $ac_need_defaults; then | ||
19062 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
19063 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
19064 | fi | ||
19065 | |||
19066 | # Have a temporary directory for convenience. Make it in the build tree | ||
19067 | # simply because there is no reason against having it here, and in addition, | ||
19068 | # creating and moving files from /tmp can sometimes cause problems. | ||
19069 | # Hook for its removal unless debugging. | ||
19070 | # Note that there is a small window in which the directory will not be cleaned: | ||
19071 | # after its creation but before its name has been assigned to `$tmp'. | ||
19072 | $debug || | ||
19073 | { | ||
19074 | tmp= ac_tmp= | ||
19075 | trap 'exit_status=$? | ||
19076 | : "${ac_tmp:=$tmp}" | ||
19077 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | ||
19078 | ' 0 | ||
19079 | trap 'as_fn_exit 1' 1 2 13 15 | ||
19080 | } | ||
19081 | # Create a (secure) tmp directory for tmp files. | ||
19082 | |||
19083 | { | ||
19084 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
19085 | test -d "$tmp" | ||
19086 | } || | ||
19087 | { | ||
19088 | tmp=./conf$$-$RANDOM | ||
19089 | (umask 077 && mkdir "$tmp") | ||
19090 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | ||
19091 | ac_tmp=$tmp | ||
19092 | |||
19093 | # Set up the scripts for CONFIG_FILES section. | ||
19094 | # No need to generate them if there are no CONFIG_FILES. | ||
19095 | # This happens for instance with `./config.status config.h'. | ||
19096 | if test -n "$CONFIG_FILES"; then | ||
19097 | |||
19098 | |||
19099 | ac_cr=`echo X | tr X '\015'` | ||
19100 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | ||
19101 | # But we know of no other shell where ac_cr would be empty at this | ||
19102 | # point, so we can use a bashism as a fallback. | ||
19103 | if test "x$ac_cr" = x; then | ||
19104 | eval ac_cr=\$\'\\r\' | ||
19105 | fi | ||
19106 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
19107 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
19108 | ac_cs_awk_cr='\\r' | ||
19109 | else | ||
19110 | ac_cs_awk_cr=$ac_cr | ||
19111 | fi | ||
19112 | |||
19113 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | ||
19114 | _ACEOF | ||
19115 | |||
19116 | |||
19117 | { | ||
19118 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
19119 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
19120 | echo "_ACEOF" | ||
19121 | } >conf$$subs.sh || | ||
19122 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
19123 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | ||
19124 | ac_delim='%!_!# ' | ||
19125 | for ac_last_try in false false false false false :; do | ||
19126 | . ./conf$$subs.sh || | ||
19127 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
19128 | |||
19129 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | ||
19130 | if test $ac_delim_n = $ac_delim_num; then | ||
19131 | break | ||
19132 | elif $ac_last_try; then | ||
19133 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | ||
19134 | else | ||
19135 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
19136 | fi | ||
19137 | done | ||
19138 | rm -f conf$$subs.sh | ||
19139 | |||
19140 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19141 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | ||
19142 | _ACEOF | ||
19143 | sed -n ' | ||
19144 | h | ||
19145 | s/^/S["/; s/!.*/"]=/ | ||
19146 | p | ||
19147 | g | ||
19148 | s/^[^!]*!// | ||
19149 | :repl | ||
19150 | t repl | ||
19151 | s/'"$ac_delim"'$// | ||
19152 | t delim | ||
19153 | :nl | ||
19154 | h | ||
19155 | s/\(.\{148\}\)..*/\1/ | ||
19156 | t more1 | ||
19157 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
19158 | p | ||
19159 | n | ||
19160 | b repl | ||
19161 | :more1 | ||
19162 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
19163 | p | ||
19164 | g | ||
19165 | s/.\{148\}// | ||
19166 | t nl | ||
19167 | :delim | ||
19168 | h | ||
19169 | s/\(.\{148\}\)..*/\1/ | ||
19170 | t more2 | ||
19171 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
19172 | p | ||
19173 | b | ||
19174 | :more2 | ||
19175 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
19176 | p | ||
19177 | g | ||
19178 | s/.\{148\}// | ||
19179 | t delim | ||
19180 | ' <conf$$subs.awk | sed ' | ||
19181 | /^[^""]/{ | ||
19182 | N | ||
19183 | s/\n// | ||
19184 | } | ||
19185 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
19186 | rm -f conf$$subs.awk | ||
19187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19188 | _ACAWK | ||
19189 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | ||
19190 | for (key in S) S_is_set[key] = 1 | ||
19191 | FS = "" | ||
19192 | |||
19193 | } | ||
19194 | { | ||
19195 | line = $ 0 | ||
19196 | nfields = split(line, field, "@") | ||
19197 | substed = 0 | ||
19198 | len = length(field[1]) | ||
19199 | for (i = 2; i < nfields; i++) { | ||
19200 | key = field[i] | ||
19201 | keylen = length(key) | ||
19202 | if (S_is_set[key]) { | ||
19203 | value = S[key] | ||
19204 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
19205 | len += length(value) + length(field[++i]) | ||
19206 | substed = 1 | ||
19207 | } else | ||
19208 | len += 1 + keylen | ||
19209 | } | ||
19210 | |||
19211 | print line | ||
19212 | } | ||
19213 | |||
19214 | _ACAWK | ||
19215 | _ACEOF | ||
19216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19217 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
19218 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
19219 | else | ||
19220 | cat | ||
19221 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | ||
19222 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | ||
19223 | _ACEOF | ||
19224 | |||
19225 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | ||
19226 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | ||
19227 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
19228 | # (actually we leave an empty line to preserve line numbers). | ||
19229 | if test "x$srcdir" = x.; then | ||
19230 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | ||
19231 | h | ||
19232 | s/// | ||
19233 | s/^/:/ | ||
19234 | s/[ ]*$/:/ | ||
19235 | s/:\$(srcdir):/:/g | ||
19236 | s/:\${srcdir}:/:/g | ||
19237 | s/:@srcdir@:/:/g | ||
19238 | s/^:*// | ||
19239 | s/:*$// | ||
19240 | x | ||
19241 | s/\(=[ ]*\).*/\1/ | ||
19242 | G | ||
19243 | s/\n// | ||
19244 | s/^[^=]*=[ ]*$// | ||
19245 | }' | ||
19246 | fi | ||
19247 | |||
19248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19249 | fi # test -n "$CONFIG_FILES" | ||
19250 | |||
19251 | # Set up the scripts for CONFIG_HEADERS section. | ||
19252 | # No need to generate them if there are no CONFIG_HEADERS. | ||
19253 | # This happens for instance with `./config.status Makefile'. | ||
19254 | if test -n "$CONFIG_HEADERS"; then | ||
19255 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | ||
19256 | BEGIN { | ||
19257 | _ACEOF | ||
19258 | |||
19259 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
19260 | # here-document in config.status, that substitutes the proper values into | ||
19261 | # config.h.in to produce config.h. | ||
19262 | |||
19263 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
19264 | # handling of long lines. | ||
19265 | ac_delim='%!_!# ' | ||
19266 | for ac_last_try in false false :; do | ||
19267 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | ||
19268 | if test -z "$ac_tt"; then | ||
19269 | break | ||
19270 | elif $ac_last_try; then | ||
19271 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | ||
19272 | else | ||
19273 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
19274 | fi | ||
19275 | done | ||
19276 | |||
19277 | # For the awk script, D is an array of macro values keyed by name, | ||
19278 | # likewise P contains macro parameters if any. Preserve backslash | ||
19279 | # newline sequences. | ||
19280 | |||
19281 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
19282 | sed -n ' | ||
19283 | s/.\{148\}/&'"$ac_delim"'/g | ||
19284 | t rset | ||
19285 | :rset | ||
19286 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
19287 | t def | ||
19288 | d | ||
19289 | :def | ||
19290 | s/\\$// | ||
19291 | t bsnl | ||
19292 | s/["\\]/\\&/g | ||
19293 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
19294 | D["\1"]=" \3"/p | ||
19295 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
19296 | d | ||
19297 | :bsnl | ||
19298 | s/["\\]/\\&/g | ||
19299 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
19300 | D["\1"]=" \3\\\\\\n"\\/p | ||
19301 | t cont | ||
19302 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
19303 | t cont | ||
19304 | d | ||
19305 | :cont | ||
19306 | n | ||
19307 | s/.\{148\}/&'"$ac_delim"'/g | ||
19308 | t clear | ||
19309 | :clear | ||
19310 | s/\\$// | ||
19311 | t bsnlc | ||
19312 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
19313 | d | ||
19314 | :bsnlc | ||
19315 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
19316 | b cont | ||
19317 | ' <confdefs.h | sed ' | ||
19318 | s/'"$ac_delim"'/"\\\ | ||
19319 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
19320 | |||
19321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19322 | for (key in D) D_is_set[key] = 1 | ||
19323 | FS = "" | ||
19324 | } | ||
19325 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
19326 | line = \$ 0 | ||
19327 | split(line, arg, " ") | ||
19328 | if (arg[1] == "#") { | ||
19329 | defundef = arg[2] | ||
19330 | mac1 = arg[3] | ||
19331 | } else { | ||
19332 | defundef = substr(arg[1], 2) | ||
19333 | mac1 = arg[2] | ||
19334 | } | ||
19335 | split(mac1, mac2, "(") #) | ||
19336 | macro = mac2[1] | ||
19337 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
19338 | if (D_is_set[macro]) { | ||
19339 | # Preserve the white space surrounding the "#". | ||
19340 | print prefix "define", macro P[macro] D[macro] | ||
19341 | next | ||
19342 | } else { | ||
19343 | # Replace #undef with comments. This is necessary, for example, | ||
19344 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
19345 | # on some systems where configure will not decide to define it. | ||
19346 | if (defundef == "undef") { | ||
19347 | print "/*", prefix defundef, macro, "*/" | ||
19348 | next | ||
19349 | } | ||
19350 | } | ||
19351 | } | ||
19352 | { print } | ||
19353 | _ACAWK | ||
19354 | _ACEOF | ||
19355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19356 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | ||
19357 | fi # test -n "$CONFIG_HEADERS" | ||
19358 | |||
19359 | |||
19360 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
19361 | shift | ||
19362 | for ac_tag | ||
19363 | do | ||
19364 | case $ac_tag in | ||
19365 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
19366 | esac | ||
19367 | case $ac_mode$ac_tag in | ||
19368 | :[FHL]*:*);; | ||
19369 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | ||
19370 | :[FH]-) ac_tag=-:-;; | ||
19371 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
19372 | esac | ||
19373 | ac_save_IFS=$IFS | ||
19374 | IFS=: | ||
19375 | set x $ac_tag | ||
19376 | IFS=$ac_save_IFS | ||
19377 | shift | ||
19378 | ac_file=$1 | ||
19379 | shift | ||
19380 | |||
19381 | case $ac_mode in | ||
19382 | :L) ac_source=$1;; | ||
19383 | :[FH]) | ||
19384 | ac_file_inputs= | ||
19385 | for ac_f | ||
19386 | do | ||
19387 | case $ac_f in | ||
19388 | -) ac_f="$ac_tmp/stdin";; | ||
19389 | *) # Look for the file first in the build tree, then in the source tree | ||
19390 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
19391 | # because $ac_f cannot contain `:'. | ||
19392 | test -f "$ac_f" || | ||
19393 | case $ac_f in | ||
19394 | [\\/$]*) false;; | ||
19395 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
19396 | esac || | ||
19397 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | ||
19398 | esac | ||
19399 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
19400 | as_fn_append ac_file_inputs " '$ac_f'" | ||
19401 | done | ||
19402 | |||
19403 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
19404 | # use $as_me), people would be surprised to read: | ||
19405 | # /* config.h. Generated by config.status. */ | ||
19406 | configure_input='Generated from '` | ||
19407 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
19408 | `' by configure.' | ||
19409 | if test x"$ac_file" != x-; then | ||
19410 | configure_input="$ac_file. $configure_input" | ||
19411 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | ||
19412 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
19413 | fi | ||
19414 | # Neutralize special characters interpreted by sed in replacement strings. | ||
19415 | case $configure_input in #( | ||
19416 | *\&* | *\|* | *\\* ) | ||
19417 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
19418 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
19419 | *) ac_sed_conf_input=$configure_input;; | ||
19420 | esac | ||
19421 | |||
19422 | case $ac_tag in | ||
19423 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | ||
19424 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | ||
19425 | esac | ||
19426 | ;; | ||
19427 | esac | ||
19428 | |||
19429 | ac_dir=`$as_dirname -- "$ac_file" || | ||
19430 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
19431 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
19432 | X"$ac_file" : 'X\(//\)$' \| \ | ||
19433 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
19434 | $as_echo X"$ac_file" | | ||
19435 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
19436 | s//\1/ | ||
19437 | q | ||
19438 | } | ||
19439 | /^X\(\/\/\)[^/].*/{ | ||
19440 | s//\1/ | ||
19441 | q | ||
19442 | } | ||
19443 | /^X\(\/\/\)$/{ | ||
19444 | s//\1/ | ||
19445 | q | ||
19446 | } | ||
19447 | /^X\(\/\).*/{ | ||
19448 | s//\1/ | ||
19449 | q | ||
19450 | } | ||
19451 | s/.*/./; q'` | ||
19452 | as_dir="$ac_dir"; as_fn_mkdir_p | ||
19453 | ac_builddir=. | ||
19454 | |||
19455 | case "$ac_dir" in | ||
19456 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
19457 | *) | ||
19458 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
19459 | # A ".." for each directory in $ac_dir_suffix. | ||
19460 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
19461 | case $ac_top_builddir_sub in | ||
19462 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
19463 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
19464 | esac ;; | ||
19465 | esac | ||
19466 | ac_abs_top_builddir=$ac_pwd | ||
19467 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
19468 | # for backward compatibility: | ||
19469 | ac_top_builddir=$ac_top_build_prefix | ||
19470 | |||
19471 | case $srcdir in | ||
19472 | .) # We are building in place. | ||
19473 | ac_srcdir=. | ||
19474 | ac_top_srcdir=$ac_top_builddir_sub | ||
19475 | ac_abs_top_srcdir=$ac_pwd ;; | ||
19476 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
19477 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
19478 | ac_top_srcdir=$srcdir | ||
19479 | ac_abs_top_srcdir=$srcdir ;; | ||
19480 | *) # Relative name. | ||
19481 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
19482 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
19483 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
19484 | esac | ||
19485 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
19486 | |||
19487 | |||
19488 | case $ac_mode in | ||
19489 | :F) | ||
19490 | # | ||
19491 | # CONFIG_FILE | ||
19492 | # | ||
19493 | |||
19494 | case $INSTALL in | ||
19495 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
19496 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
19497 | esac | ||
19498 | _ACEOF | ||
19499 | |||
19500 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19501 | # If the template does not know about datarootdir, expand it. | ||
19502 | # FIXME: This hack should be removed a few years after 2.60. | ||
19503 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
19504 | ac_sed_dataroot=' | ||
19505 | /datarootdir/ { | ||
19506 | p | ||
19507 | q | ||
19508 | } | ||
19509 | /@datadir@/p | ||
19510 | /@docdir@/p | ||
19511 | /@infodir@/p | ||
19512 | /@localedir@/p | ||
19513 | /@mandir@/p' | ||
19514 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
19515 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
19516 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
19517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
19518 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
19519 | _ACEOF | ||
19520 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19521 | ac_datarootdir_hack=' | ||
19522 | s&@datadir@&$datadir&g | ||
19523 | s&@docdir@&$docdir&g | ||
19524 | s&@infodir@&$infodir&g | ||
19525 | s&@localedir@&$localedir&g | ||
19526 | s&@mandir@&$mandir&g | ||
19527 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
19528 | esac | ||
19529 | _ACEOF | ||
19530 | |||
19531 | # Neutralize VPATH when `$srcdir' = `.'. | ||
19532 | # Shell code in configure.ac might set extrasub. | ||
19533 | # FIXME: do we really want to maintain this feature? | ||
19534 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
19535 | ac_sed_extra="$ac_vpsub | ||
19536 | $extrasub | ||
19537 | _ACEOF | ||
19538 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
19539 | :t | ||
19540 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
19541 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
19542 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
19543 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
19544 | s&@srcdir@&$ac_srcdir&;t t | ||
19545 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
19546 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
19547 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
19548 | s&@builddir@&$ac_builddir&;t t | ||
19549 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
19550 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
19551 | s&@INSTALL@&$ac_INSTALL&;t t | ||
19552 | $ac_datarootdir_hack | ||
19553 | " | ||
19554 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | ||
19555 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
19556 | |||
19557 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
19558 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | ||
19559 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | ||
19560 | "$ac_tmp/out"`; test -z "$ac_out"; } && | ||
19561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
19562 | which seems to be undefined. Please make sure it is defined" >&5 | ||
19563 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
19564 | which seems to be undefined. Please make sure it is defined" >&2;} | ||
19565 | |||
19566 | rm -f "$ac_tmp/stdin" | ||
19567 | case $ac_file in | ||
19568 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | ||
19569 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | ||
19570 | esac \ | ||
19571 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
19572 | ;; | ||
19573 | :H) | ||
19574 | # | ||
19575 | # CONFIG_HEADER | ||
19576 | # | ||
19577 | if test x"$ac_file" != x-; then | ||
19578 | { | ||
19579 | $as_echo "/* $configure_input */" \ | ||
19580 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | ||
19581 | } >"$ac_tmp/config.h" \ | ||
19582 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
19583 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | ||
19584 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | ||
19585 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
19586 | else | ||
19587 | rm -f "$ac_file" | ||
19588 | mv "$ac_tmp/config.h" "$ac_file" \ | ||
19589 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | ||
19590 | fi | ||
19591 | else | ||
19592 | $as_echo "/* $configure_input */" \ | ||
19593 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | ||
19594 | || as_fn_error $? "could not create -" "$LINENO" 5 | ||
19595 | fi | ||
19596 | ;; | ||
19597 | |||
19598 | |||
19599 | esac | ||
19600 | |||
19601 | done # for ac_tag | ||
19602 | |||
19603 | |||
19604 | as_fn_exit 0 | ||
19605 | _ACEOF | ||
19606 | ac_clean_files=$ac_clean_files_save | ||
19607 | |||
19608 | test $ac_write_fail = 0 || | ||
19609 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | ||
19610 | |||
19611 | |||
19612 | # configure is writing to config.log, and then calls config.status. | ||
19613 | # config.status does its own redirection, appending to config.log. | ||
19614 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
19615 | # by configure, so config.status won't be able to write to it; its | ||
19616 | # output is simply discarded. So we exec the FD to /dev/null, | ||
19617 | # effectively closing config.log, so it can be properly (re)opened and | ||
19618 | # appended to by config.status. When coming back to configure, we | ||
19619 | # need to make the FD available again. | ||
19620 | if test "$no_create" != yes; then | ||
19621 | ac_cs_success=: | ||
19622 | ac_config_status_args= | ||
19623 | test "$silent" = yes && | ||
19624 | ac_config_status_args="$ac_config_status_args --quiet" | ||
19625 | exec 5>/dev/null | ||
19626 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
19627 | exec 5>>config.log | ||
19628 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
19629 | # would make configure fail if this is the last instruction. | ||
19630 | $ac_cs_success || as_fn_exit 1 | ||
19631 | fi | ||
19632 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
19633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | ||
19634 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | ||
19635 | fi | ||
19636 | |||
19637 | |||
19638 | # Print summary of options | ||
19639 | |||
19640 | # Someone please show me a better way :) | ||
19641 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
19642 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
19643 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
19644 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
19645 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
19646 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
19647 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
19648 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
19649 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
19650 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
19651 | |||
19652 | echo "" | ||
19653 | echo "OpenSSH has been configured with the following options:" | ||
19654 | echo " User binaries: $B" | ||
19655 | echo " System binaries: $C" | ||
19656 | echo " Configuration files: $D" | ||
19657 | echo " Askpass program: $E" | ||
19658 | echo " Manual pages: $F" | ||
19659 | echo " PID file: $G" | ||
19660 | echo " Privilege separation chroot path: $H" | ||
19661 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
19662 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
19663 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
19664 | else | ||
19665 | echo " sshd default user PATH: $I" | ||
19666 | if test ! -z "$external_path_file"; then | ||
19667 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
19668 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
19669 | fi | ||
19670 | fi | ||
19671 | if test ! -z "$superuser_path" ; then | ||
19672 | echo " sshd superuser user PATH: $J" | ||
19673 | fi | ||
19674 | echo " Manpage format: $MANTYPE" | ||
19675 | echo " PAM support: $PAM_MSG" | ||
19676 | echo " OSF SIA support: $SIA_MSG" | ||
19677 | echo " KerberosV support: $KRB5_MSG" | ||
19678 | echo " SELinux support: $SELINUX_MSG" | ||
19679 | echo " Smartcard support: $SCARD_MSG" | ||
19680 | echo " S/KEY support: $SKEY_MSG" | ||
19681 | echo " MD5 password support: $MD5_MSG" | ||
19682 | echo " libedit support: $LIBEDIT_MSG" | ||
19683 | echo " Solaris process contract support: $SPC_MSG" | ||
19684 | echo " Solaris project support: $SP_MSG" | ||
19685 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
19686 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
19687 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
19688 | echo " Random number source: $RAND_MSG" | ||
19689 | echo " Privsep sandbox style: $SANDBOX_STYLE" | ||
19690 | |||
19691 | echo "" | ||
19692 | |||
19693 | echo " Host: ${host}" | ||
19694 | echo " Compiler: ${CC}" | ||
19695 | echo " Compiler flags: ${CFLAGS}" | ||
19696 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
19697 | echo " Linker flags: ${LDFLAGS}" | ||
19698 | echo " Libraries: ${LIBS}" | ||
19699 | if test ! -z "${SSHDLIBS}"; then | ||
19700 | echo " +for sshd: ${SSHDLIBS}" | ||
19701 | fi | ||
19702 | if test ! -z "${SSHLIBS}"; then | ||
19703 | echo " +for ssh: ${SSHLIBS}" | ||
19704 | fi | ||
19705 | |||
19706 | echo "" | ||
19707 | |||
19708 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
19709 | echo "SVR4 style packages are supported with \"make package\"" | ||
19710 | echo "" | ||
19711 | fi | ||
19712 | |||
19713 | if test "x$PAM_MSG" = "xyes" ; then | ||
19714 | echo "PAM is enabled. You may need to install a PAM control file " | ||
19715 | echo "for sshd, otherwise password authentication may fail. " | ||
19716 | echo "Example PAM control files can be found in the contrib/ " | ||
19717 | echo "subdirectory" | ||
19718 | echo "" | ||
19719 | fi | ||
19720 | |||
19721 | if test ! -z "$NO_PEERCHECK" ; then | ||
19722 | echo "WARNING: the operating system that you are using does not" | ||
19723 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
19724 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
19725 | echo "enforce security checks to prevent unauthorised connections to" | ||
19726 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
19727 | echo "user can connect to your agent." | ||
19728 | echo "" | ||
19729 | fi | ||
19730 | |||
19731 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
19732 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
19733 | echo "See the Solaris section in README.platform for details." | ||
19734 | fi | ||
diff --git a/moduli.0 b/moduli.0 new file mode 100644 index 000000000..d9aaadba9 --- /dev/null +++ b/moduli.0 | |||
@@ -0,0 +1,74 @@ | |||
1 | MODULI(5) File Formats Manual MODULI(5) | ||
2 | |||
3 | NAME | ||
4 | moduli - Diffie-Hellman moduli | ||
5 | |||
6 | DESCRIPTION | ||
7 | The /etc/moduli file contains prime numbers and generators for use by | ||
8 | sshd(8) in the Diffie-Hellman Group Exchange key exchange method. | ||
9 | |||
10 | New moduli may be generated with ssh-keygen(1) using a two-step process. | ||
11 | An initial candidate generation pass, using ssh-keygen -G, calculates | ||
12 | numbers that are likely to be useful. A second primality testing pass, | ||
13 | using ssh-keygen -T, provides a high degree of assurance that the numbers | ||
14 | are prime and are safe for use in Diffie-Hellman operations by sshd(8). | ||
15 | This moduli format is used as the output from each pass. | ||
16 | |||
17 | The file consists of newline-separated records, one per modulus, | ||
18 | containing seven space-separated fields. These fields are as follows: | ||
19 | |||
20 | timestamp The time that the modulus was last processed as | ||
21 | YYYYMMDDHHMMSS. | ||
22 | |||
23 | type Decimal number specifying the internal structure of | ||
24 | the prime modulus. Supported types are: | ||
25 | |||
26 | 0 Unknown, not tested. | ||
27 | 2 "Safe" prime; (p-1)/2 is also prime. | ||
28 | 4 Sophie Germain; 2p+1 is also prime. | ||
29 | |||
30 | Moduli candidates initially produced by ssh-keygen(1) | ||
31 | are Sophie Germain primes (type 4). Further primality | ||
32 | testing with ssh-keygen(1) produces safe prime moduli | ||
33 | (type 2) that are ready for use in sshd(8). Other | ||
34 | types are not used by OpenSSH. | ||
35 | |||
36 | tests Decimal number indicating the type of primality tests | ||
37 | that the number has been subjected to represented as a | ||
38 | bitmask of the following values: | ||
39 | |||
40 | 0x00 Not tested. | ||
41 | 0x01 Composite number - not prime. | ||
42 | 0x02 Sieve of Eratosthenes. | ||
43 | 0x04 Probabilistic Miller-Rabin primality tests. | ||
44 | |||
45 | The ssh-keygen(1) moduli candidate generation uses the | ||
46 | Sieve of Eratosthenes (flag 0x02). Subsequent | ||
47 | ssh-keygen(1) primality tests are Miller-Rabin tests | ||
48 | (flag 0x04). | ||
49 | |||
50 | trials Decimal number indicating the number of primality | ||
51 | trials that have been performed on the modulus. | ||
52 | |||
53 | size Decimal number indicating the size of the prime in | ||
54 | bits. | ||
55 | |||
56 | generator The recommended generator for use with this modulus | ||
57 | (hexadecimal). | ||
58 | |||
59 | modulus The modulus itself in hexadecimal. | ||
60 | |||
61 | When performing Diffie-Hellman Group Exchange, sshd(8) first estimates | ||
62 | the size of the modulus required to produce enough Diffie-Hellman output | ||
63 | to sufficiently key the selected symmetric cipher. sshd(8) then randomly | ||
64 | selects a modulus from /etc/moduli that best meets the size requirement. | ||
65 | |||
66 | SEE ALSO | ||
67 | ssh-keygen(1), sshd(8) | ||
68 | |||
69 | STANDARDS | ||
70 | M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for | ||
71 | the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006, | ||
72 | 2006. | ||
73 | |||
74 | OpenBSD 5.6 September 26, 2012 OpenBSD 5.6 | ||
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 @@ | |||
1 | Makefile | ||
diff --git a/openbsd-compat/regress/.cvsignore b/openbsd-compat/regress/.cvsignore deleted file mode 100644 index 33074f4a3..000000000 --- a/openbsd-compat/regress/.cvsignore +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | Makefile | ||
2 | snprintftest | ||
3 | strduptest | ||
4 | strtonumtest | ||
5 | closefromtest | ||
6 | opensslvertest | ||
diff --git a/regress/.cvsignore b/regress/.cvsignore deleted file mode 100644 index 3fd25b02e..000000000 --- a/regress/.cvsignore +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | *-agent | ||
2 | *.copy | ||
3 | *.log | ||
4 | *.prv | ||
5 | *.pub | ||
6 | actual | ||
7 | authorized_keys_* | ||
8 | batch | ||
9 | copy.dd* | ||
10 | data | ||
11 | expect | ||
12 | host.rsa* | ||
13 | key.* | ||
14 | known_hosts | ||
15 | krl-* | ||
16 | modpipe | ||
17 | remote_pid | ||
18 | revoked-* | ||
19 | revoked-ca | ||
20 | revoked-keyid | ||
21 | revoked-serials | ||
22 | rsa | ||
23 | rsa1 | ||
24 | sftp-server.sh | ||
25 | ssh-log-wrapper.sh | ||
26 | ssh_config | ||
27 | ssh_proxy* | ||
28 | sshd_config | ||
29 | sshd_proxy* | ||
30 | t*.out | ||
31 | t*.out[0-9] | ||
diff --git a/scard/.cvsignore b/scard/.cvsignore deleted file mode 100644 index 5349d34ae..000000000 --- a/scard/.cvsignore +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | Makefile | ||
2 | Ssh.bin | ||
@@ -0,0 +1,162 @@ | |||
1 | SCP(1) General Commands Manual SCP(1) | ||
2 | |||
3 | NAME | ||
4 | scp - secure copy (remote file copy program) | ||
5 | |||
6 | SYNOPSIS | ||
7 | scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] | ||
8 | [-l limit] [-o ssh_option] [-P port] [-S program] | ||
9 | [[user@]host1:]file1 ... [[user@]host2:]file2 | ||
10 | |||
11 | DESCRIPTION | ||
12 | scp copies files between hosts on a network. It uses ssh(1) for data | ||
13 | transfer, and uses the same authentication and provides the same security | ||
14 | as ssh(1). scp will ask for passwords or passphrases if they are needed | ||
15 | for authentication. | ||
16 | |||
17 | File names may contain a user and host specification to indicate that the | ||
18 | file is to be copied to/from that host. Local file names can be made | ||
19 | explicit using absolute or relative pathnames to avoid scp treating file | ||
20 | names containing `:' as host specifiers. Copies between two remote hosts | ||
21 | are also permitted. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | -1 Forces scp to use protocol 1. | ||
26 | |||
27 | -2 Forces scp to use protocol 2. | ||
28 | |||
29 | -3 Copies between two remote hosts are transferred through the local | ||
30 | host. Without this option the data is copied directly between | ||
31 | the two remote hosts. Note that this option disables the | ||
32 | progress meter. | ||
33 | |||
34 | -4 Forces scp to use IPv4 addresses only. | ||
35 | |||
36 | -6 Forces scp to use IPv6 addresses only. | ||
37 | |||
38 | -B Selects batch mode (prevents asking for passwords or | ||
39 | passphrases). | ||
40 | |||
41 | -C Compression enable. Passes the -C flag to ssh(1) to enable | ||
42 | compression. | ||
43 | |||
44 | -c cipher | ||
45 | Selects the cipher to use for encrypting the data transfer. This | ||
46 | option is directly passed to ssh(1). | ||
47 | |||
48 | -F ssh_config | ||
49 | Specifies an alternative per-user configuration file for ssh. | ||
50 | This option is directly passed to ssh(1). | ||
51 | |||
52 | -i identity_file | ||
53 | Selects the file from which the identity (private key) for public | ||
54 | key authentication is read. This option is directly passed to | ||
55 | ssh(1). | ||
56 | |||
57 | -l limit | ||
58 | Limits the used bandwidth, specified in Kbit/s. | ||
59 | |||
60 | -o ssh_option | ||
61 | Can be used to pass options to ssh in the format used in | ||
62 | ssh_config(5). This is useful for specifying options for which | ||
63 | there is no separate scp command-line flag. For full details of | ||
64 | the options listed below, and their possible values, see | ||
65 | ssh_config(5). | ||
66 | |||
67 | AddressFamily | ||
68 | BatchMode | ||
69 | BindAddress | ||
70 | CanonicalDomains | ||
71 | CanonicalizeFallbackLocal | ||
72 | CanonicalizeHostname | ||
73 | CanonicalizeMaxDots | ||
74 | CanonicalizePermittedCNAMEs | ||
75 | ChallengeResponseAuthentication | ||
76 | CheckHostIP | ||
77 | Cipher | ||
78 | Ciphers | ||
79 | Compression | ||
80 | CompressionLevel | ||
81 | ConnectionAttempts | ||
82 | ConnectTimeout | ||
83 | ControlMaster | ||
84 | ControlPath | ||
85 | ControlPersist | ||
86 | GlobalKnownHostsFile | ||
87 | GSSAPIAuthentication | ||
88 | GSSAPIDelegateCredentials | ||
89 | HashKnownHosts | ||
90 | Host | ||
91 | HostbasedAuthentication | ||
92 | HostKeyAlgorithms | ||
93 | HostKeyAlias | ||
94 | HostName | ||
95 | IdentityFile | ||
96 | IdentitiesOnly | ||
97 | IPQoS | ||
98 | KbdInteractiveAuthentication | ||
99 | KbdInteractiveDevices | ||
100 | KexAlgorithms | ||
101 | LogLevel | ||
102 | MACs | ||
103 | NoHostAuthenticationForLocalhost | ||
104 | NumberOfPasswordPrompts | ||
105 | PasswordAuthentication | ||
106 | PKCS11Provider | ||
107 | Port | ||
108 | PreferredAuthentications | ||
109 | Protocol | ||
110 | ProxyCommand | ||
111 | PubkeyAuthentication | ||
112 | RekeyLimit | ||
113 | RhostsRSAAuthentication | ||
114 | RSAAuthentication | ||
115 | SendEnv | ||
116 | ServerAliveInterval | ||
117 | ServerAliveCountMax | ||
118 | StrictHostKeyChecking | ||
119 | TCPKeepAlive | ||
120 | UsePrivilegedPort | ||
121 | User | ||
122 | UserKnownHostsFile | ||
123 | VerifyHostKeyDNS | ||
124 | |||
125 | -P port | ||
126 | Specifies the port to connect to on the remote host. Note that | ||
127 | this option is written with a capital `P', because -p is already | ||
128 | reserved for preserving the times and modes of the file. | ||
129 | |||
130 | -p Preserves modification times, access times, and modes from the | ||
131 | original file. | ||
132 | |||
133 | -q Quiet mode: disables the progress meter as well as warning and | ||
134 | diagnostic messages from ssh(1). | ||
135 | |||
136 | -r Recursively copy entire directories. Note that scp follows | ||
137 | symbolic links encountered in the tree traversal. | ||
138 | |||
139 | -S program | ||
140 | Name of program to use for the encrypted connection. The program | ||
141 | must understand ssh(1) options. | ||
142 | |||
143 | -v Verbose mode. Causes scp and ssh(1) to print debugging messages | ||
144 | about their progress. This is helpful in debugging connection, | ||
145 | authentication, and configuration problems. | ||
146 | |||
147 | EXIT STATUS | ||
148 | The scp utility exits 0 on success, and >0 if an error occurs. | ||
149 | |||
150 | SEE ALSO | ||
151 | sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh_config(5), | ||
152 | sshd(8) | ||
153 | |||
154 | HISTORY | ||
155 | scp is based on the rcp program in BSD source code from the Regents of | ||
156 | the University of California. | ||
157 | |||
158 | AUTHORS | ||
159 | Timo Rinne <tri@iki.fi> | ||
160 | Tatu Ylonen <ylo@cs.hut.fi> | ||
161 | |||
162 | OpenBSD 5.6 March 19, 2014 OpenBSD 5.6 | ||
diff --git a/sftp-server.0 b/sftp-server.0 new file mode 100644 index 000000000..d811e252d --- /dev/null +++ b/sftp-server.0 | |||
@@ -0,0 +1,96 @@ | |||
1 | SFTP-SERVER(8) System Manager's Manual SFTP-SERVER(8) | ||
2 | |||
3 | NAME | ||
4 | sftp-server - SFTP server subsystem | ||
5 | |||
6 | SYNOPSIS | ||
7 | sftp-server [-ehR] [-d start_directory] [-f log_facility] [-l log_level] | ||
8 | [-P blacklisted_requests] [-p whitelisted_requests] | ||
9 | [-u umask] | ||
10 | sftp-server -Q protocol_feature | ||
11 | |||
12 | DESCRIPTION | ||
13 | sftp-server is a program that speaks the server side of SFTP protocol to | ||
14 | stdout and expects client requests from stdin. sftp-server is not | ||
15 | intended to be called directly, but from sshd(8) using the Subsystem | ||
16 | option. | ||
17 | |||
18 | Command-line flags to sftp-server should be specified in the Subsystem | ||
19 | declaration. See sshd_config(5) for more information. | ||
20 | |||
21 | Valid options are: | ||
22 | |||
23 | -d start_directory | ||
24 | specifies an alternate starting directory for users. The | ||
25 | pathname may contain the following tokens that are expanded at | ||
26 | runtime: %% is replaced by a literal '%', %h is replaced by the | ||
27 | home directory of the user being authenticated, and %u is | ||
28 | replaced by the username of that user. The default is to use the | ||
29 | user's home directory. This option is useful in conjunction with | ||
30 | the sshd_config(5) ChrootDirectory option. | ||
31 | |||
32 | -e Causes sftp-server to print logging information to stderr instead | ||
33 | of syslog for debugging. | ||
34 | |||
35 | -f log_facility | ||
36 | Specifies the facility code that is used when logging messages | ||
37 | from sftp-server. The possible values are: DAEMON, USER, AUTH, | ||
38 | LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. | ||
39 | The default is AUTH. | ||
40 | |||
41 | -h Displays sftp-server usage information. | ||
42 | |||
43 | -l log_level | ||
44 | Specifies which messages will be logged by sftp-server. The | ||
45 | possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, | ||
46 | DEBUG1, DEBUG2, and DEBUG3. INFO and VERBOSE log transactions | ||
47 | that sftp-server performs on behalf of the client. DEBUG and | ||
48 | DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher | ||
49 | levels of debugging output. The default is ERROR. | ||
50 | |||
51 | -P blacklisted_requests | ||
52 | Specify a comma-separated list of SFTP protocol requests that are | ||
53 | banned by the server. sftp-server will reply to any blacklisted | ||
54 | request with a failure. The -Q flag can be used to determine the | ||
55 | supported request types. If both a blacklist and a whitelist are | ||
56 | specified, then the blacklist is applied before the whitelist. | ||
57 | |||
58 | -p whitelisted_requests | ||
59 | Specify a comma-separated list of SFTP protocol requests that are | ||
60 | permitted by the server. All request types that are not on the | ||
61 | whitelist will be logged and replied to with a failure message. | ||
62 | |||
63 | Care must be taken when using this feature to ensure that | ||
64 | requests made implicitly by SFTP clients are permitted. | ||
65 | |||
66 | -Q protocol_feature | ||
67 | Query protocol features supported by sftp-server. At present the | ||
68 | only feature that may be queried is ``requests'', which may be | ||
69 | used for black or whitelisting (flags -P and -p respectively). | ||
70 | |||
71 | -R Places this instance of sftp-server into a read-only mode. | ||
72 | Attempts to open files for writing, as well as other operations | ||
73 | that change the state of the filesystem, will be denied. | ||
74 | |||
75 | -u umask | ||
76 | Sets an explicit umask(2) to be applied to newly-created files | ||
77 | and directories, instead of the user's default mask. | ||
78 | |||
79 | On some systems, sftp-server must be able to access /dev/log for logging | ||
80 | to work, and use of sftp-server in a chroot configuration therefore | ||
81 | requires that syslogd(8) establish a logging socket inside the chroot | ||
82 | directory. | ||
83 | |||
84 | SEE ALSO | ||
85 | sftp(1), ssh(1), sshd_config(5), sshd(8) | ||
86 | |||
87 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
88 | filexfer-02.txt, October 2001, work in progress material. | ||
89 | |||
90 | HISTORY | ||
91 | sftp-server first appeared in OpenBSD 2.8. | ||
92 | |||
93 | AUTHORS | ||
94 | Markus Friedl <markus@openbsd.org> | ||
95 | |||
96 | OpenBSD 5.6 July 28, 2014 OpenBSD 5.6 | ||
@@ -0,0 +1,381 @@ | |||
1 | SFTP(1) General Commands Manual SFTP(1) | ||
2 | |||
3 | NAME | ||
4 | sftp - secure file transfer program | ||
5 | |||
6 | SYNOPSIS | ||
7 | sftp [-1246aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher] | ||
8 | [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit] | ||
9 | [-o ssh_option] [-P port] [-R num_requests] [-S program] | ||
10 | [-s subsystem | sftp_server] host | ||
11 | sftp [user@]host[:file ...] | ||
12 | sftp [user@]host[:dir[/]] | ||
13 | sftp -b batchfile [user@]host | ||
14 | |||
15 | DESCRIPTION | ||
16 | sftp is an interactive file transfer program, similar to ftp(1), which | ||
17 | performs all operations over an encrypted ssh(1) transport. It may also | ||
18 | use many features of ssh, such as public key authentication and | ||
19 | compression. sftp connects and logs into the specified host, then enters | ||
20 | an interactive command mode. | ||
21 | |||
22 | The second usage format will retrieve files automatically if a non- | ||
23 | interactive authentication method is used; otherwise it will do so after | ||
24 | successful interactive authentication. | ||
25 | |||
26 | The third usage format allows sftp to start in a remote directory. | ||
27 | |||
28 | The final usage format allows for automated sessions using the -b option. | ||
29 | In such cases, it is necessary to configure non-interactive | ||
30 | authentication to obviate the need to enter a password at connection time | ||
31 | (see sshd(8) and ssh-keygen(1) for details). | ||
32 | |||
33 | Since some usage formats use colon characters to delimit host names from | ||
34 | path names, IPv6 addresses must be enclosed in square brackets to avoid | ||
35 | ambiguity. | ||
36 | |||
37 | The options are as follows: | ||
38 | |||
39 | -1 Specify the use of protocol version 1. | ||
40 | |||
41 | -2 Specify the use of protocol version 2. | ||
42 | |||
43 | -4 Forces sftp to use IPv4 addresses only. | ||
44 | |||
45 | -6 Forces sftp to use IPv6 addresses only. | ||
46 | |||
47 | -a Attempt to continue interrupted transfers rather than overwriting | ||
48 | existing partial or complete copies of files. If the partial | ||
49 | contents differ from those being transferred, then the resultant | ||
50 | file is likely to be corrupt. | ||
51 | |||
52 | -B buffer_size | ||
53 | Specify the size of the buffer that sftp uses when transferring | ||
54 | files. Larger buffers require fewer round trips at the cost of | ||
55 | higher memory consumption. The default is 32768 bytes. | ||
56 | |||
57 | -b batchfile | ||
58 | Batch mode reads a series of commands from an input batchfile | ||
59 | instead of stdin. Since it lacks user interaction it should be | ||
60 | used in conjunction with non-interactive authentication. A | ||
61 | batchfile of `-' may be used to indicate standard input. sftp | ||
62 | will abort if any of the following commands fail: get, put, | ||
63 | reget, reput, rename, ln, rm, mkdir, chdir, ls, lchdir, chmod, | ||
64 | chown, chgrp, lpwd, df, symlink, and lmkdir. Termination on | ||
65 | error can be suppressed on a command by command basis by | ||
66 | prefixing the command with a `-' character (for example, -rm | ||
67 | /tmp/blah*). | ||
68 | |||
69 | -C Enables compression (via ssh's -C flag). | ||
70 | |||
71 | -c cipher | ||
72 | Selects the cipher to use for encrypting the data transfers. | ||
73 | This option is directly passed to ssh(1). | ||
74 | |||
75 | -D sftp_server_path | ||
76 | Connect directly to a local sftp server (rather than via ssh(1)). | ||
77 | This option may be useful in debugging the client and server. | ||
78 | |||
79 | -F ssh_config | ||
80 | Specifies an alternative per-user configuration file for ssh(1). | ||
81 | This option is directly passed to ssh(1). | ||
82 | |||
83 | -f Requests that files be flushed to disk immediately after | ||
84 | transfer. When uploading files, this feature is only enabled if | ||
85 | the server implements the "fsync@openssh.com" extension. | ||
86 | |||
87 | -i identity_file | ||
88 | Selects the file from which the identity (private key) for public | ||
89 | key authentication is read. This option is directly passed to | ||
90 | ssh(1). | ||
91 | |||
92 | -l limit | ||
93 | Limits the used bandwidth, specified in Kbit/s. | ||
94 | |||
95 | -o ssh_option | ||
96 | Can be used to pass options to ssh in the format used in | ||
97 | ssh_config(5). This is useful for specifying options for which | ||
98 | there is no separate sftp command-line flag. For example, to | ||
99 | specify an alternate port use: sftp -oPort=24. For full details | ||
100 | of the options listed below, and their possible values, see | ||
101 | ssh_config(5). | ||
102 | |||
103 | AddressFamily | ||
104 | BatchMode | ||
105 | BindAddress | ||
106 | CanonicalDomains | ||
107 | CanonicalizeFallbackLocal | ||
108 | CanonicalizeHostname | ||
109 | CanonicalizeMaxDots | ||
110 | CanonicalizePermittedCNAMEs | ||
111 | ChallengeResponseAuthentication | ||
112 | CheckHostIP | ||
113 | Cipher | ||
114 | Ciphers | ||
115 | Compression | ||
116 | CompressionLevel | ||
117 | ConnectionAttempts | ||
118 | ConnectTimeout | ||
119 | ControlMaster | ||
120 | ControlPath | ||
121 | ControlPersist | ||
122 | GlobalKnownHostsFile | ||
123 | GSSAPIAuthentication | ||
124 | GSSAPIDelegateCredentials | ||
125 | HashKnownHosts | ||
126 | Host | ||
127 | HostbasedAuthentication | ||
128 | HostKeyAlgorithms | ||
129 | HostKeyAlias | ||
130 | HostName | ||
131 | IdentityFile | ||
132 | IdentitiesOnly | ||
133 | IPQoS | ||
134 | KbdInteractiveAuthentication | ||
135 | KbdInteractiveDevices | ||
136 | KexAlgorithms | ||
137 | LogLevel | ||
138 | MACs | ||
139 | NoHostAuthenticationForLocalhost | ||
140 | NumberOfPasswordPrompts | ||
141 | PasswordAuthentication | ||
142 | PKCS11Provider | ||
143 | Port | ||
144 | PreferredAuthentications | ||
145 | Protocol | ||
146 | ProxyCommand | ||
147 | PubkeyAuthentication | ||
148 | RekeyLimit | ||
149 | RhostsRSAAuthentication | ||
150 | RSAAuthentication | ||
151 | SendEnv | ||
152 | ServerAliveInterval | ||
153 | ServerAliveCountMax | ||
154 | StrictHostKeyChecking | ||
155 | TCPKeepAlive | ||
156 | UsePrivilegedPort | ||
157 | User | ||
158 | UserKnownHostsFile | ||
159 | VerifyHostKeyDNS | ||
160 | |||
161 | -P port | ||
162 | Specifies the port to connect to on the remote host. | ||
163 | |||
164 | -p Preserves modification times, access times, and modes from the | ||
165 | original files transferred. | ||
166 | |||
167 | -q Quiet mode: disables the progress meter as well as warning and | ||
168 | diagnostic messages from ssh(1). | ||
169 | |||
170 | -R num_requests | ||
171 | Specify how many requests may be outstanding at any one time. | ||
172 | Increasing this may slightly improve file transfer speed but will | ||
173 | increase memory usage. The default is 64 outstanding requests. | ||
174 | |||
175 | -r Recursively copy entire directories when uploading and | ||
176 | downloading. Note that sftp does not follow symbolic links | ||
177 | encountered in the tree traversal. | ||
178 | |||
179 | -S program | ||
180 | Name of the program to use for the encrypted connection. The | ||
181 | program must understand ssh(1) options. | ||
182 | |||
183 | -s subsystem | sftp_server | ||
184 | Specifies the SSH2 subsystem or the path for an sftp server on | ||
185 | the remote host. A path is useful for using sftp over protocol | ||
186 | version 1, or when the remote sshd(8) does not have an sftp | ||
187 | subsystem configured. | ||
188 | |||
189 | -v Raise logging level. This option is also passed to ssh. | ||
190 | |||
191 | INTERACTIVE COMMANDS | ||
192 | Once in interactive mode, sftp understands a set of commands similar to | ||
193 | those of ftp(1). Commands are case insensitive. Pathnames that contain | ||
194 | spaces must be enclosed in quotes. Any special characters contained | ||
195 | within pathnames that are recognized by glob(3) must be escaped with | ||
196 | backslashes (`\'). | ||
197 | |||
198 | bye Quit sftp. | ||
199 | |||
200 | cd path | ||
201 | Change remote directory to path. | ||
202 | |||
203 | chgrp grp path | ||
204 | Change group of file path to grp. path may contain glob(3) | ||
205 | characters and may match multiple files. grp must be a numeric | ||
206 | GID. | ||
207 | |||
208 | chmod mode path | ||
209 | Change permissions of file path to mode. path may contain | ||
210 | glob(3) characters and may match multiple files. | ||
211 | |||
212 | chown own path | ||
213 | Change owner of file path to own. path may contain glob(3) | ||
214 | characters and may match multiple files. own must be a numeric | ||
215 | UID. | ||
216 | |||
217 | df [-hi] [path] | ||
218 | Display usage information for the filesystem holding the current | ||
219 | directory (or path if specified). If the -h flag is specified, | ||
220 | the capacity information will be displayed using "human-readable" | ||
221 | suffixes. The -i flag requests display of inode information in | ||
222 | addition to capacity information. This command is only supported | ||
223 | on servers that implement the ``statvfs@openssh.com'' extension. | ||
224 | |||
225 | exit Quit sftp. | ||
226 | |||
227 | get [-afPpr] remote-path [local-path] | ||
228 | Retrieve the remote-path and store it on the local machine. If | ||
229 | the local path name is not specified, it is given the same name | ||
230 | it has on the remote machine. remote-path may contain glob(3) | ||
231 | characters and may match multiple files. If it does and | ||
232 | local-path is specified, then local-path must specify a | ||
233 | directory. | ||
234 | |||
235 | If the -a flag is specified, then attempt to resume partial | ||
236 | transfers of existing files. Note that resumption assumes that | ||
237 | any partial copy of the local file matches the remote copy. If | ||
238 | the remote file contents differ from the partial local copy then | ||
239 | the resultant file is likely to be corrupt. | ||
240 | |||
241 | If the -f flag is specified, then fsync(2) will be called after | ||
242 | the file transfer has completed to flush the file to disk. | ||
243 | |||
244 | If either the -P or -p flag is specified, then full file | ||
245 | permissions and access times are copied too. | ||
246 | |||
247 | If the -r flag is specified then directories will be copied | ||
248 | recursively. Note that sftp does not follow symbolic links when | ||
249 | performing recursive transfers. | ||
250 | |||
251 | help Display help text. | ||
252 | |||
253 | lcd path | ||
254 | Change local directory to path. | ||
255 | |||
256 | lls [ls-options [path]] | ||
257 | Display local directory listing of either path or current | ||
258 | directory if path is not specified. ls-options may contain any | ||
259 | flags supported by the local system's ls(1) command. path may | ||
260 | contain glob(3) characters and may match multiple files. | ||
261 | |||
262 | lmkdir path | ||
263 | Create local directory specified by path. | ||
264 | |||
265 | ln [-s] oldpath newpath | ||
266 | Create a link from oldpath to newpath. If the -s flag is | ||
267 | specified the created link is a symbolic link, otherwise it is a | ||
268 | hard link. | ||
269 | |||
270 | lpwd Print local working directory. | ||
271 | |||
272 | ls [-1afhlnrSt] [path] | ||
273 | Display a remote directory listing of either path or the current | ||
274 | directory if path is not specified. path may contain glob(3) | ||
275 | characters and may match multiple files. | ||
276 | |||
277 | The following flags are recognized and alter the behaviour of ls | ||
278 | accordingly: | ||
279 | |||
280 | -1 Produce single columnar output. | ||
281 | |||
282 | -a List files beginning with a dot (`.'). | ||
283 | |||
284 | -f Do not sort the listing. The default sort order is | ||
285 | lexicographical. | ||
286 | |||
287 | -h When used with a long format option, use unit suffixes: | ||
288 | Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, | ||
289 | and Exabyte in order to reduce the number of digits to | ||
290 | four or fewer using powers of 2 for sizes (K=1024, | ||
291 | M=1048576, etc.). | ||
292 | |||
293 | -l Display additional details including permissions and | ||
294 | ownership information. | ||
295 | |||
296 | -n Produce a long listing with user and group information | ||
297 | presented numerically. | ||
298 | |||
299 | -r Reverse the sort order of the listing. | ||
300 | |||
301 | -S Sort the listing by file size. | ||
302 | |||
303 | -t Sort the listing by last modification time. | ||
304 | |||
305 | lumask umask | ||
306 | Set local umask to umask. | ||
307 | |||
308 | mkdir path | ||
309 | Create remote directory specified by path. | ||
310 | |||
311 | progress | ||
312 | Toggle display of progress meter. | ||
313 | |||
314 | put [-afPpr] local-path [remote-path] | ||
315 | Upload local-path and store it on the remote machine. If the | ||
316 | remote path name is not specified, it is given the same name it | ||
317 | has on the local machine. local-path may contain glob(3) | ||
318 | characters and may match multiple files. If it does and | ||
319 | remote-path is specified, then remote-path must specify a | ||
320 | directory. | ||
321 | |||
322 | If the -a flag is specified, then attempt to resume partial | ||
323 | transfers of existing files. Note that resumption assumes that | ||
324 | any partial copy of the remote file matches the local copy. If | ||
325 | the local file contents differ from the remote local copy then | ||
326 | the resultant file is likely to be corrupt. | ||
327 | |||
328 | If the -f flag is specified, then a request will be sent to the | ||
329 | server to call fsync(2) after the file has been transferred. | ||
330 | Note that this is only supported by servers that implement the | ||
331 | "fsync@openssh.com" extension. | ||
332 | |||
333 | If either the -P or -p flag is specified, then full file | ||
334 | permissions and access times are copied too. | ||
335 | |||
336 | If the -r flag is specified then directories will be copied | ||
337 | recursively. Note that sftp does not follow symbolic links when | ||
338 | performing recursive transfers. | ||
339 | |||
340 | pwd Display remote working directory. | ||
341 | |||
342 | quit Quit sftp. | ||
343 | |||
344 | reget [-Ppr] remote-path [local-path] | ||
345 | Resume download of remote-path. Equivalent to get with the -a | ||
346 | flag set. | ||
347 | |||
348 | reput [-Ppr] [local-path] remote-path | ||
349 | Resume upload of [local-path]. Equivalent to put with the -a | ||
350 | flag set. | ||
351 | |||
352 | rename oldpath newpath | ||
353 | Rename remote file from oldpath to newpath. | ||
354 | |||
355 | rm path | ||
356 | Delete remote file specified by path. | ||
357 | |||
358 | rmdir path | ||
359 | Remove remote directory specified by path. | ||
360 | |||
361 | symlink oldpath newpath | ||
362 | Create a symbolic link from oldpath to newpath. | ||
363 | |||
364 | version | ||
365 | Display the sftp protocol version. | ||
366 | |||
367 | !command | ||
368 | Execute command in local shell. | ||
369 | |||
370 | ! Escape to local shell. | ||
371 | |||
372 | ? Synonym for help. | ||
373 | |||
374 | SEE ALSO | ||
375 | ftp(1), ls(1), scp(1), ssh(1), ssh-add(1), ssh-keygen(1), glob(3), | ||
376 | ssh_config(5), sftp-server(8), sshd(8) | ||
377 | |||
378 | T. Ylonen and S. Lehtinen, SSH File Transfer Protocol, draft-ietf-secsh- | ||
379 | filexfer-00.txt, January 2001, work in progress material. | ||
380 | |||
381 | OpenBSD 5.6 April 22, 2014 OpenBSD 5.6 | ||
diff --git a/ssh-add.0 b/ssh-add.0 new file mode 100644 index 000000000..f16165ae5 --- /dev/null +++ b/ssh-add.0 | |||
@@ -0,0 +1,123 @@ | |||
1 | SSH-ADD(1) General Commands Manual SSH-ADD(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-add - adds private key identities to the authentication agent | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-add [-cDdkLlXx] [-t life] [file ...] | ||
8 | ssh-add -s pkcs11 | ||
9 | ssh-add -e pkcs11 | ||
10 | |||
11 | DESCRIPTION | ||
12 | ssh-add adds private key identities to the authentication agent, | ||
13 | ssh-agent(1). When run without arguments, it adds the files | ||
14 | ~/.ssh/id_rsa, ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and | ||
15 | ~/.ssh/identity. After loading a private key, ssh-add will try to load | ||
16 | corresponding certificate information from the filename obtained by | ||
17 | appending -cert.pub to the name of the private key file. Alternative | ||
18 | file names can be given on the command line. | ||
19 | |||
20 | If any file requires a passphrase, ssh-add asks for the passphrase from | ||
21 | the user. The passphrase is read from the user's tty. ssh-add retries | ||
22 | the last passphrase if multiple identity files are given. | ||
23 | |||
24 | The authentication agent must be running and the SSH_AUTH_SOCK | ||
25 | environment variable must contain the name of its socket for ssh-add to | ||
26 | work. | ||
27 | |||
28 | The options are as follows: | ||
29 | |||
30 | -c Indicates that added identities should be subject to confirmation | ||
31 | before being used for authentication. Confirmation is performed | ||
32 | by the SSH_ASKPASS program mentioned below. Successful | ||
33 | confirmation is signaled by a zero exit status from the | ||
34 | SSH_ASKPASS program, rather than text entered into the requester. | ||
35 | |||
36 | -D Deletes all identities from the agent. | ||
37 | |||
38 | -d Instead of adding identities, removes identities from the agent. | ||
39 | If ssh-add has been run without arguments, the keys for the | ||
40 | default identities and their corresponding certificates will be | ||
41 | removed. Otherwise, the argument list will be interpreted as a | ||
42 | list of paths to public key files to specify keys and | ||
43 | certificates to be removed from the agent. If no public key is | ||
44 | found at a given path, ssh-add will append .pub and retry. | ||
45 | |||
46 | -e pkcs11 | ||
47 | Remove keys provided by the PKCS#11 shared library pkcs11. | ||
48 | |||
49 | -k When loading keys into or deleting keys from the agent, process | ||
50 | plain private keys only and skip certificates. | ||
51 | |||
52 | -L Lists public key parameters of all identities currently | ||
53 | represented by the agent. | ||
54 | |||
55 | -l Lists fingerprints of all identities currently represented by the | ||
56 | agent. | ||
57 | |||
58 | -s pkcs11 | ||
59 | Add keys provided by the PKCS#11 shared library pkcs11. | ||
60 | |||
61 | -t life | ||
62 | Set a maximum lifetime when adding identities to an agent. The | ||
63 | lifetime may be specified in seconds or in a time format | ||
64 | specified in sshd_config(5). | ||
65 | |||
66 | -X Unlock the agent. | ||
67 | |||
68 | -x Lock the agent with a password. | ||
69 | |||
70 | ENVIRONMENT | ||
71 | DISPLAY and SSH_ASKPASS | ||
72 | If ssh-add needs a passphrase, it will read the passphrase from | ||
73 | the current terminal if it was run from a terminal. If ssh-add | ||
74 | does not have a terminal associated with it but DISPLAY and | ||
75 | SSH_ASKPASS are set, it will execute the program specified by | ||
76 | SSH_ASKPASS and open an X11 window to read the passphrase. This | ||
77 | is particularly useful when calling ssh-add from a .xsession or | ||
78 | related script. (Note that on some machines it may be necessary | ||
79 | to redirect the input from /dev/null to make this work.) | ||
80 | |||
81 | SSH_AUTH_SOCK | ||
82 | Identifies the path of a UNIX-domain socket used to communicate | ||
83 | with the agent. | ||
84 | |||
85 | FILES | ||
86 | ~/.ssh/identity | ||
87 | Contains the protocol version 1 RSA authentication identity of | ||
88 | the user. | ||
89 | |||
90 | ~/.ssh/id_dsa | ||
91 | Contains the protocol version 2 DSA authentication identity of | ||
92 | the user. | ||
93 | |||
94 | ~/.ssh/id_ecdsa | ||
95 | Contains the protocol version 2 ECDSA authentication identity of | ||
96 | the user. | ||
97 | |||
98 | ~/.ssh/id_ed25519 | ||
99 | Contains the protocol version 2 ED25519 authentication identity | ||
100 | of the user. | ||
101 | |||
102 | ~/.ssh/id_rsa | ||
103 | Contains the protocol version 2 RSA authentication identity of | ||
104 | the user. | ||
105 | |||
106 | Identity files should not be readable by anyone but the user. Note that | ||
107 | ssh-add ignores identity files if they are accessible by others. | ||
108 | |||
109 | EXIT STATUS | ||
110 | Exit status is 0 on success, 1 if the specified command fails, and 2 if | ||
111 | ssh-add is unable to contact the authentication agent. | ||
112 | |||
113 | SEE ALSO | ||
114 | ssh(1), ssh-agent(1), ssh-keygen(1), sshd(8) | ||
115 | |||
116 | AUTHORS | ||
117 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
118 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
119 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
120 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
121 | versions 1.5 and 2.0. | ||
122 | |||
123 | OpenBSD 5.6 December 7, 2013 OpenBSD 5.6 | ||
diff --git a/ssh-agent.0 b/ssh-agent.0 new file mode 100644 index 000000000..cac40e048 --- /dev/null +++ b/ssh-agent.0 | |||
@@ -0,0 +1,103 @@ | |||
1 | SSH-AGENT(1) General Commands Manual SSH-AGENT(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-agent - authentication agent | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-agent [-c | -s] [-d] [-a bind_address] [-t life] [command [arg ...]] | ||
8 | ssh-agent [-c | -s] -k | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh-agent is a program to hold private keys used for public key | ||
12 | authentication (RSA, DSA, ECDSA, ED25519). ssh-agent is usually started | ||
13 | in the beginning of an X-session or a login session, and all other | ||
14 | windows or programs are started as clients to the ssh-agent program. | ||
15 | Through use of environment variables the agent can be located and | ||
16 | automatically used for authentication when logging in to other machines | ||
17 | using ssh(1). | ||
18 | |||
19 | The agent initially does not have any private keys. Keys are added using | ||
20 | ssh-add(1). Multiple identities may be stored in ssh-agent concurrently | ||
21 | and ssh(1) will automatically use them if present. ssh-add(1) is also | ||
22 | used to remove keys from ssh-agent and to query the keys that are held in | ||
23 | one. | ||
24 | |||
25 | The options are as follows: | ||
26 | |||
27 | -a bind_address | ||
28 | Bind the agent to the UNIX-domain socket bind_address. The | ||
29 | default is $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid>. | ||
30 | |||
31 | -c Generate C-shell commands on stdout. This is the default if | ||
32 | SHELL looks like it's a csh style of shell. | ||
33 | |||
34 | -d Debug mode. When this option is specified ssh-agent will not | ||
35 | fork. | ||
36 | |||
37 | -k Kill the current agent (given by the SSH_AGENT_PID environment | ||
38 | variable). | ||
39 | |||
40 | -s Generate Bourne shell commands on stdout. This is the default if | ||
41 | SHELL does not look like it's a csh style of shell. | ||
42 | |||
43 | -t life | ||
44 | Set a default value for the maximum lifetime of identities added | ||
45 | to the agent. The lifetime may be specified in seconds or in a | ||
46 | time format specified in sshd_config(5). A lifetime specified | ||
47 | for an identity with ssh-add(1) overrides this value. Without | ||
48 | this option the default maximum lifetime is forever. | ||
49 | |||
50 | If a commandline is given, this is executed as a subprocess of the agent. | ||
51 | When the command dies, so does the agent. | ||
52 | |||
53 | The idea is that the agent is run in the user's local PC, laptop, or | ||
54 | terminal. Authentication data need not be stored on any other machine, | ||
55 | and authentication passphrases never go over the network. However, the | ||
56 | connection to the agent is forwarded over SSH remote logins, and the user | ||
57 | can thus use the privileges given by the identities anywhere in the | ||
58 | network in a secure way. | ||
59 | |||
60 | There are two main ways to get an agent set up: The first is that the | ||
61 | agent starts a new subcommand into which some environment variables are | ||
62 | exported, eg ssh-agent xterm &. The second is that the agent prints the | ||
63 | needed shell commands (either sh(1) or csh(1) syntax can be generated) | ||
64 | which can be evaluated in the calling shell, eg eval `ssh-agent -s` for | ||
65 | Bourne-type shells such as sh(1) or ksh(1) and eval `ssh-agent -c` for | ||
66 | csh(1) and derivatives. | ||
67 | |||
68 | Later ssh(1) looks at these variables and uses them to establish a | ||
69 | connection to the agent. | ||
70 | |||
71 | The agent will never send a private key over its request channel. | ||
72 | Instead, operations that require a private key will be performed by the | ||
73 | agent, and the result will be returned to the requester. This way, | ||
74 | private keys are not exposed to clients using the agent. | ||
75 | |||
76 | A UNIX-domain socket is created and the name of this socket is stored in | ||
77 | the SSH_AUTH_SOCK environment variable. The socket is made accessible | ||
78 | only to the current user. This method is easily abused by root or | ||
79 | another instance of the same user. | ||
80 | |||
81 | The SSH_AGENT_PID environment variable holds the agent's process ID. | ||
82 | |||
83 | The agent exits automatically when the command given on the command line | ||
84 | terminates. | ||
85 | |||
86 | FILES | ||
87 | $TMPDIR/ssh-XXXXXXXXXX/agent.<ppid> | ||
88 | UNIX-domain sockets used to contain the connection to the | ||
89 | authentication agent. These sockets should only be readable by | ||
90 | the owner. The sockets should get automatically removed when the | ||
91 | agent exits. | ||
92 | |||
93 | SEE ALSO | ||
94 | ssh(1), ssh-add(1), ssh-keygen(1), sshd(8) | ||
95 | |||
96 | AUTHORS | ||
97 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
98 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
99 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
100 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
101 | versions 1.5 and 2.0. | ||
102 | |||
103 | OpenBSD 5.6 April 16, 2014 OpenBSD 5.6 | ||
diff --git a/ssh-keygen.0 b/ssh-keygen.0 new file mode 100644 index 000000000..648f3017f --- /dev/null +++ b/ssh-keygen.0 | |||
@@ -0,0 +1,562 @@ | |||
1 | SSH-KEYGEN(1) General Commands Manual SSH-KEYGEN(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-keygen - authentication key generation, management and conversion | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1] | ||
8 | [-N new_passphrase] [-C comment] [-f output_keyfile] | ||
9 | ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] | ||
10 | ssh-keygen -i [-m key_format] [-f input_keyfile] | ||
11 | ssh-keygen -e [-m key_format] [-f input_keyfile] | ||
12 | ssh-keygen -y [-f input_keyfile] | ||
13 | ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] | ||
14 | ssh-keygen -l [-f input_keyfile] | ||
15 | ssh-keygen -B [-f input_keyfile] | ||
16 | ssh-keygen -D pkcs11 | ||
17 | ssh-keygen -F hostname [-f known_hosts_file] [-l] | ||
18 | ssh-keygen -H [-f known_hosts_file] | ||
19 | ssh-keygen -R hostname [-f known_hosts_file] | ||
20 | ssh-keygen -r hostname [-f input_keyfile] [-g] | ||
21 | ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] | ||
22 | ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines] | ||
23 | [-j start_line] [-K checkpt] [-W generator] | ||
24 | ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals] | ||
25 | [-O option] [-V validity_interval] [-z serial_number] file ... | ||
26 | ssh-keygen -L [-f input_keyfile] | ||
27 | ssh-keygen -A | ||
28 | ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number] | ||
29 | file ... | ||
30 | ssh-keygen -Q -f krl_file file ... | ||
31 | |||
32 | DESCRIPTION | ||
33 | ssh-keygen generates, manages and converts authentication keys for | ||
34 | ssh(1). ssh-keygen can create RSA keys for use by SSH protocol version 1 | ||
35 | and DSA, ECDSA, ED25519 or RSA keys for use by SSH protocol version 2. | ||
36 | The type of key to be generated is specified with the -t option. If | ||
37 | invoked without any arguments, ssh-keygen will generate an RSA key for | ||
38 | use in SSH protocol 2 connections. | ||
39 | |||
40 | ssh-keygen is also used to generate groups for use in Diffie-Hellman | ||
41 | group exchange (DH-GEX). See the MODULI GENERATION section for details. | ||
42 | |||
43 | Finally, ssh-keygen can be used to generate and update Key Revocation | ||
44 | Lists, and to test whether given keys have been revoked by one. See the | ||
45 | KEY REVOCATION LISTS section for details. | ||
46 | |||
47 | Normally each user wishing to use SSH with public key authentication runs | ||
48 | this once to create the authentication key in ~/.ssh/identity, | ||
49 | ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 or ~/.ssh/id_rsa. | ||
50 | Additionally, the system administrator may use this to generate host | ||
51 | keys, as seen in /etc/rc. | ||
52 | |||
53 | Normally this program generates the key and asks for a file in which to | ||
54 | store the private key. The public key is stored in a file with the same | ||
55 | name but ``.pub'' appended. The program also asks for a passphrase. The | ||
56 | passphrase may be empty to indicate no passphrase (host keys must have an | ||
57 | empty passphrase), or it may be a string of arbitrary length. A | ||
58 | passphrase is similar to a password, except it can be a phrase with a | ||
59 | series of words, punctuation, numbers, whitespace, or any string of | ||
60 | characters you want. Good passphrases are 10-30 characters long, are not | ||
61 | simple sentences or otherwise easily guessable (English prose has only | ||
62 | 1-2 bits of entropy per character, and provides very bad passphrases), | ||
63 | and contain a mix of upper and lowercase letters, numbers, and non- | ||
64 | alphanumeric characters. The passphrase can be changed later by using | ||
65 | the -p option. | ||
66 | |||
67 | There is no way to recover a lost passphrase. If the passphrase is lost | ||
68 | or forgotten, a new key must be generated and the corresponding public | ||
69 | key copied to other machines. | ||
70 | |||
71 | For RSA1 keys, there is also a comment field in the key file that is only | ||
72 | for convenience to the user to help identify the key. The comment can | ||
73 | tell what the key is for, or whatever is useful. The comment is | ||
74 | initialized to ``user@host'' when the key is created, but can be changed | ||
75 | using the -c option. | ||
76 | |||
77 | After a key is generated, instructions below detail where the keys should | ||
78 | be placed to be activated. | ||
79 | |||
80 | The options are as follows: | ||
81 | |||
82 | -A For each of the key types (rsa1, rsa, dsa, ecdsa and ed25519) for | ||
83 | which host keys do not exist, generate the host keys with the | ||
84 | default key file path, an empty passphrase, default bits for the | ||
85 | key type, and default comment. This is used by /etc/rc to | ||
86 | generate new host keys. | ||
87 | |||
88 | -a rounds | ||
89 | When saving a new-format private key (i.e. an ed25519 key or any | ||
90 | SSH protocol 2 key when the -o flag is set), this option | ||
91 | specifies the number of KDF (key derivation function) rounds | ||
92 | used. Higher numbers result in slower passphrase verification | ||
93 | and increased resistance to brute-force password cracking (should | ||
94 | the keys be stolen). | ||
95 | |||
96 | When screening DH-GEX candidates ( using the -T command). This | ||
97 | option specifies the number of primality tests to perform. | ||
98 | |||
99 | -B Show the bubblebabble digest of specified private or public key | ||
100 | file. | ||
101 | |||
102 | -b bits | ||
103 | Specifies the number of bits in the key to create. For RSA keys, | ||
104 | the minimum size is 768 bits and the default is 2048 bits. | ||
105 | Generally, 2048 bits is considered sufficient. DSA keys must be | ||
106 | exactly 1024 bits as specified by FIPS 186-2. For ECDSA keys, | ||
107 | the -b flag determines the key length by selecting from one of | ||
108 | three elliptic curve sizes: 256, 384 or 521 bits. Attempting to | ||
109 | use bit lengths other than these three values for ECDSA keys will | ||
110 | fail. ED25519 keys have a fixed length and the -b flag will be | ||
111 | ignored. | ||
112 | |||
113 | -C comment | ||
114 | Provides a new comment. | ||
115 | |||
116 | -c Requests changing the comment in the private and public key | ||
117 | files. This operation is only supported for RSA1 keys. The | ||
118 | program will prompt for the file containing the private keys, for | ||
119 | the passphrase if the key has one, and for the new comment. | ||
120 | |||
121 | -D pkcs11 | ||
122 | Download the RSA public keys provided by the PKCS#11 shared | ||
123 | library pkcs11. When used in combination with -s, this option | ||
124 | indicates that a CA key resides in a PKCS#11 token (see the | ||
125 | CERTIFICATES section for details). | ||
126 | |||
127 | -e This option will read a private or public OpenSSH key file and | ||
128 | print to stdout the key in one of the formats specified by the -m | ||
129 | option. The default export format is ``RFC4716''. This option | ||
130 | allows exporting OpenSSH keys for use by other programs, | ||
131 | including several commercial SSH implementations. | ||
132 | |||
133 | -F hostname | ||
134 | Search for the specified hostname in a known_hosts file, listing | ||
135 | any occurrences found. This option is useful to find hashed host | ||
136 | names or addresses and may also be used in conjunction with the | ||
137 | -H option to print found keys in a hashed format. | ||
138 | |||
139 | -f filename | ||
140 | Specifies the filename of the key file. | ||
141 | |||
142 | -G output_file | ||
143 | Generate candidate primes for DH-GEX. These primes must be | ||
144 | screened for safety (using the -T option) before use. | ||
145 | |||
146 | -g Use generic DNS format when printing fingerprint resource records | ||
147 | using the -r command. | ||
148 | |||
149 | -H Hash a known_hosts file. This replaces all hostnames and | ||
150 | addresses with hashed representations within the specified file; | ||
151 | the original content is moved to a file with a .old suffix. | ||
152 | These hashes may be used normally by ssh and sshd, but they do | ||
153 | not reveal identifying information should the file's contents be | ||
154 | disclosed. This option will not modify existing hashed hostnames | ||
155 | and is therefore safe to use on files that mix hashed and non- | ||
156 | hashed names. | ||
157 | |||
158 | -h When signing a key, create a host certificate instead of a user | ||
159 | certificate. Please see the CERTIFICATES section for details. | ||
160 | |||
161 | -I certificate_identity | ||
162 | Specify the key identity when signing a public key. Please see | ||
163 | the CERTIFICATES section for details. | ||
164 | |||
165 | -i This option will read an unencrypted private (or public) key file | ||
166 | in the format specified by the -m option and print an OpenSSH | ||
167 | compatible private (or public) key to stdout. This option allows | ||
168 | importing keys from other software, including several commercial | ||
169 | SSH implementations. The default import format is ``RFC4716''. | ||
170 | |||
171 | -J num_lines | ||
172 | Exit after screening the specified number of lines while | ||
173 | performing DH candidate screening using the -T option. | ||
174 | |||
175 | -j start_line | ||
176 | Start screening at the specified line number while performing DH | ||
177 | candidate screening using the -T option. | ||
178 | |||
179 | -K checkpt | ||
180 | Write the last line processed to the file checkpt while | ||
181 | performing DH candidate screening using the -T option. This will | ||
182 | be used to skip lines in the input file that have already been | ||
183 | processed if the job is restarted. | ||
184 | |||
185 | -k Generate a KRL file. In this mode, ssh-keygen will generate a | ||
186 | KRL file at the location specified via the -f flag that revokes | ||
187 | every key or certificate presented on the command line. | ||
188 | Keys/certificates to be revoked may be specified by public key | ||
189 | file or using the format described in the KEY REVOCATION LISTS | ||
190 | section. | ||
191 | |||
192 | -L Prints the contents of a certificate. | ||
193 | |||
194 | -l Show fingerprint of specified public key file. Private RSA1 keys | ||
195 | are also supported. For RSA and DSA keys ssh-keygen tries to | ||
196 | find the matching public key file and prints its fingerprint. If | ||
197 | combined with -v, an ASCII art representation of the key is | ||
198 | supplied with the fingerprint. | ||
199 | |||
200 | -M memory | ||
201 | Specify the amount of memory to use (in megabytes) when | ||
202 | generating candidate moduli for DH-GEX. | ||
203 | |||
204 | -m key_format | ||
205 | Specify a key format for the -i (import) or -e (export) | ||
206 | conversion options. The supported key formats are: ``RFC4716'' | ||
207 | (RFC 4716/SSH2 public or private key), ``PKCS8'' (PEM PKCS8 | ||
208 | public key) or ``PEM'' (PEM public key). The default conversion | ||
209 | format is ``RFC4716''. | ||
210 | |||
211 | -N new_passphrase | ||
212 | Provides the new passphrase. | ||
213 | |||
214 | -n principals | ||
215 | Specify one or more principals (user or host names) to be | ||
216 | included in a certificate when signing a key. Multiple | ||
217 | principals may be specified, separated by commas. Please see the | ||
218 | CERTIFICATES section for details. | ||
219 | |||
220 | -O option | ||
221 | Specify a certificate option when signing a key. This option may | ||
222 | be specified multiple times. Please see the CERTIFICATES section | ||
223 | for details. The options that are valid for user certificates | ||
224 | are: | ||
225 | |||
226 | clear Clear all enabled permissions. This is useful for | ||
227 | clearing the default set of permissions so permissions | ||
228 | may be added individually. | ||
229 | |||
230 | force-command=command | ||
231 | Forces the execution of command instead of any shell or | ||
232 | command specified by the user when the certificate is | ||
233 | used for authentication. | ||
234 | |||
235 | no-agent-forwarding | ||
236 | Disable ssh-agent(1) forwarding (permitted by default). | ||
237 | |||
238 | no-port-forwarding | ||
239 | Disable port forwarding (permitted by default). | ||
240 | |||
241 | no-pty Disable PTY allocation (permitted by default). | ||
242 | |||
243 | no-user-rc | ||
244 | Disable execution of ~/.ssh/rc by sshd(8) (permitted by | ||
245 | default). | ||
246 | |||
247 | no-x11-forwarding | ||
248 | Disable X11 forwarding (permitted by default). | ||
249 | |||
250 | permit-agent-forwarding | ||
251 | Allows ssh-agent(1) forwarding. | ||
252 | |||
253 | permit-port-forwarding | ||
254 | Allows port forwarding. | ||
255 | |||
256 | permit-pty | ||
257 | Allows PTY allocation. | ||
258 | |||
259 | permit-user-rc | ||
260 | Allows execution of ~/.ssh/rc by sshd(8). | ||
261 | |||
262 | permit-x11-forwarding | ||
263 | Allows X11 forwarding. | ||
264 | |||
265 | source-address=address_list | ||
266 | Restrict the source addresses from which the certificate | ||
267 | is considered valid. The address_list is a comma- | ||
268 | separated list of one or more address/netmask pairs in | ||
269 | CIDR format. | ||
270 | |||
271 | At present, no options are valid for host keys. | ||
272 | |||
273 | -o Causes ssh-keygen to save SSH protocol 2 private keys using the | ||
274 | new OpenSSH format rather than the more compatible PEM format. | ||
275 | The new format has increased resistance to brute-force password | ||
276 | cracking but is not supported by versions of OpenSSH prior to | ||
277 | 6.5. Ed25519 keys always use the new private key format. | ||
278 | |||
279 | -P passphrase | ||
280 | Provides the (old) passphrase. | ||
281 | |||
282 | -p Requests changing the passphrase of a private key file instead of | ||
283 | creating a new private key. The program will prompt for the file | ||
284 | containing the private key, for the old passphrase, and twice for | ||
285 | the new passphrase. | ||
286 | |||
287 | -Q Test whether keys have been revoked in a KRL. | ||
288 | |||
289 | -q Silence ssh-keygen. | ||
290 | |||
291 | -R hostname | ||
292 | Removes all keys belonging to hostname from a known_hosts file. | ||
293 | This option is useful to delete hashed hosts (see the -H option | ||
294 | above). | ||
295 | |||
296 | -r hostname | ||
297 | Print the SSHFP fingerprint resource record named hostname for | ||
298 | the specified public key file. | ||
299 | |||
300 | -S start | ||
301 | Specify start point (in hex) when generating candidate moduli for | ||
302 | DH-GEX. | ||
303 | |||
304 | -s ca_key | ||
305 | Certify (sign) a public key using the specified CA key. Please | ||
306 | see the CERTIFICATES section for details. | ||
307 | |||
308 | When generating a KRL, -s specifies a path to a CA public key | ||
309 | file used to revoke certificates directly by key ID or serial | ||
310 | number. See the KEY REVOCATION LISTS section for details. | ||
311 | |||
312 | -T output_file | ||
313 | Test DH group exchange candidate primes (generated using the -G | ||
314 | option) for safety. | ||
315 | |||
316 | -t dsa | ecdsa | ed25519 | rsa | rsa1 | ||
317 | Specifies the type of key to create. The possible values are | ||
318 | ``rsa1'' for protocol version 1 and ``dsa'', ``ecdsa'', | ||
319 | ``ed25519'', or ``rsa'' for protocol version 2. | ||
320 | |||
321 | -u Update a KRL. When specified with -k, keys listed via the | ||
322 | command line are added to the existing KRL rather than a new KRL | ||
323 | being created. | ||
324 | |||
325 | -V validity_interval | ||
326 | Specify a validity interval when signing a certificate. A | ||
327 | validity interval may consist of a single time, indicating that | ||
328 | the certificate is valid beginning now and expiring at that time, | ||
329 | or may consist of two times separated by a colon to indicate an | ||
330 | explicit time interval. The start time may be specified as a | ||
331 | date in YYYYMMDD format, a time in YYYYMMDDHHMMSS format or a | ||
332 | relative time (to the current time) consisting of a minus sign | ||
333 | followed by a relative time in the format described in the TIME | ||
334 | FORMATS section of sshd_config(5). The end time may be specified | ||
335 | as a YYYYMMDD date, a YYYYMMDDHHMMSS time or a relative time | ||
336 | starting with a plus character. | ||
337 | |||
338 | For example: ``+52w1d'' (valid from now to 52 weeks and one day | ||
339 | from now), ``-4w:+4w'' (valid from four weeks ago to four weeks | ||
340 | from now), ``20100101123000:20110101123000'' (valid from 12:30 | ||
341 | PM, January 1st, 2010 to 12:30 PM, January 1st, 2011), | ||
342 | ``-1d:20110101'' (valid from yesterday to midnight, January 1st, | ||
343 | 2011). | ||
344 | |||
345 | -v Verbose mode. Causes ssh-keygen to print debugging messages | ||
346 | about its progress. This is helpful for debugging moduli | ||
347 | generation. Multiple -v options increase the verbosity. The | ||
348 | maximum is 3. | ||
349 | |||
350 | -W generator | ||
351 | Specify desired generator when testing candidate moduli for DH- | ||
352 | GEX. | ||
353 | |||
354 | -y This option will read a private OpenSSH format file and print an | ||
355 | OpenSSH public key to stdout. | ||
356 | |||
357 | -z serial_number | ||
358 | Specifies a serial number to be embedded in the certificate to | ||
359 | distinguish this certificate from others from the same CA. The | ||
360 | default serial number is zero. | ||
361 | |||
362 | When generating a KRL, the -z flag is used to specify a KRL | ||
363 | version number. | ||
364 | |||
365 | MODULI GENERATION | ||
366 | ssh-keygen may be used to generate groups for the Diffie-Hellman Group | ||
367 | Exchange (DH-GEX) protocol. Generating these groups is a two-step | ||
368 | process: first, candidate primes are generated using a fast, but memory | ||
369 | intensive process. These candidate primes are then tested for | ||
370 | suitability (a CPU-intensive process). | ||
371 | |||
372 | Generation of primes is performed using the -G option. The desired | ||
373 | length of the primes may be specified by the -b option. For example: | ||
374 | |||
375 | # ssh-keygen -G moduli-2048.candidates -b 2048 | ||
376 | |||
377 | By default, the search for primes begins at a random point in the desired | ||
378 | length range. This may be overridden using the -S option, which | ||
379 | specifies a different start point (in hex). | ||
380 | |||
381 | Once a set of candidates have been generated, they must be screened for | ||
382 | suitability. This may be performed using the -T option. In this mode | ||
383 | ssh-keygen will read candidates from standard input (or a file specified | ||
384 | using the -f option). For example: | ||
385 | |||
386 | # ssh-keygen -T moduli-2048 -f moduli-2048.candidates | ||
387 | |||
388 | By default, each candidate will be subjected to 100 primality tests. | ||
389 | This may be overridden using the -a option. The DH generator value will | ||
390 | be chosen automatically for the prime under consideration. If a specific | ||
391 | generator is desired, it may be requested using the -W option. Valid | ||
392 | generator values are 2, 3, and 5. | ||
393 | |||
394 | Screened DH groups may be installed in /etc/moduli. It is important that | ||
395 | this file contains moduli of a range of bit lengths and that both ends of | ||
396 | a connection share common moduli. | ||
397 | |||
398 | CERTIFICATES | ||
399 | ssh-keygen supports signing of keys to produce certificates that may be | ||
400 | used for user or host authentication. Certificates consist of a public | ||
401 | key, some identity information, zero or more principal (user or host) | ||
402 | names and a set of options that are signed by a Certification Authority | ||
403 | (CA) key. Clients or servers may then trust only the CA key and verify | ||
404 | its signature on a certificate rather than trusting many user/host keys. | ||
405 | Note that OpenSSH certificates are a different, and much simpler, format | ||
406 | to the X.509 certificates used in ssl(8). | ||
407 | |||
408 | ssh-keygen supports two types of certificates: user and host. User | ||
409 | certificates authenticate users to servers, whereas host certificates | ||
410 | authenticate server hosts to users. To generate a user certificate: | ||
411 | |||
412 | $ ssh-keygen -s /path/to/ca_key -I key_id /path/to/user_key.pub | ||
413 | |||
414 | The resultant certificate will be placed in /path/to/user_key-cert.pub. | ||
415 | A host certificate requires the -h option: | ||
416 | |||
417 | $ ssh-keygen -s /path/to/ca_key -I key_id -h /path/to/host_key.pub | ||
418 | |||
419 | The host certificate will be output to /path/to/host_key-cert.pub. | ||
420 | |||
421 | It is possible to sign using a CA key stored in a PKCS#11 token by | ||
422 | providing the token library using -D and identifying the CA key by | ||
423 | providing its public half as an argument to -s: | ||
424 | |||
425 | $ ssh-keygen -s ca_key.pub -D libpkcs11.so -I key_id host_key.pub | ||
426 | |||
427 | In all cases, key_id is a "key identifier" that is logged by the server | ||
428 | when the certificate is used for authentication. | ||
429 | |||
430 | Certificates may be limited to be valid for a set of principal | ||
431 | (user/host) names. By default, generated certificates are valid for all | ||
432 | users or hosts. To generate a certificate for a specified set of | ||
433 | principals: | ||
434 | |||
435 | $ ssh-keygen -s ca_key -I key_id -n user1,user2 user_key.pub | ||
436 | $ ssh-keygen -s ca_key -I key_id -h -n host.domain user_key.pub | ||
437 | |||
438 | Additional limitations on the validity and use of user certificates may | ||
439 | be specified through certificate options. A certificate option may | ||
440 | disable features of the SSH session, may be valid only when presented | ||
441 | from particular source addresses or may force the use of a specific | ||
442 | command. For a list of valid certificate options, see the documentation | ||
443 | for the -O option above. | ||
444 | |||
445 | Finally, certificates may be defined with a validity lifetime. The -V | ||
446 | option allows specification of certificate start and end times. A | ||
447 | certificate that is presented at a time outside this range will not be | ||
448 | considered valid. By default, certificates are valid from UNIX Epoch to | ||
449 | the distant future. | ||
450 | |||
451 | For certificates to be used for user or host authentication, the CA | ||
452 | public key must be trusted by sshd(8) or ssh(1). Please refer to those | ||
453 | manual pages for details. | ||
454 | |||
455 | KEY REVOCATION LISTS | ||
456 | ssh-keygen is able to manage OpenSSH format Key Revocation Lists (KRLs). | ||
457 | These binary files specify keys or certificates to be revoked using a | ||
458 | compact format, taking as little as one bit per certificate if they are | ||
459 | being revoked by serial number. | ||
460 | |||
461 | KRLs may be generated using the -k flag. This option reads one or more | ||
462 | files from the command line and generates a new KRL. The files may | ||
463 | either contain a KRL specification (see below) or public keys, listed one | ||
464 | per line. Plain public keys are revoked by listing their hash or | ||
465 | contents in the KRL and certificates revoked by serial number or key ID | ||
466 | (if the serial is zero or not available). | ||
467 | |||
468 | Revoking keys using a KRL specification offers explicit control over the | ||
469 | types of record used to revoke keys and may be used to directly revoke | ||
470 | certificates by serial number or key ID without having the complete | ||
471 | original certificate on hand. A KRL specification consists of lines | ||
472 | containing one of the following directives followed by a colon and some | ||
473 | directive-specific information. | ||
474 | |||
475 | serial: serial_number[-serial_number] | ||
476 | Revokes a certificate with the specified serial number. Serial | ||
477 | numbers are 64-bit values, not including zero and may be | ||
478 | expressed in decimal, hex or octal. If two serial numbers are | ||
479 | specified separated by a hyphen, then the range of serial numbers | ||
480 | including and between each is revoked. The CA key must have been | ||
481 | specified on the ssh-keygen command line using the -s option. | ||
482 | |||
483 | id: key_id | ||
484 | Revokes a certificate with the specified key ID string. The CA | ||
485 | key must have been specified on the ssh-keygen command line using | ||
486 | the -s option. | ||
487 | |||
488 | key: public_key | ||
489 | Revokes the specified key. If a certificate is listed, then it | ||
490 | is revoked as a plain public key. | ||
491 | |||
492 | sha1: public_key | ||
493 | Revokes the specified key by its SHA1 hash. | ||
494 | |||
495 | KRLs may be updated using the -u flag in addition to -k. When this | ||
496 | option is specified, keys listed via the command line are merged into the | ||
497 | KRL, adding to those already there. | ||
498 | |||
499 | It is also possible, given a KRL, to test whether it revokes a particular | ||
500 | key (or keys). The -Q flag will query an existing KRL, testing each key | ||
501 | specified on the commandline. If any key listed on the command line has | ||
502 | been revoked (or an error encountered) then ssh-keygen will exit with a | ||
503 | non-zero exit status. A zero exit status will only be returned if no key | ||
504 | was revoked. | ||
505 | |||
506 | FILES | ||
507 | ~/.ssh/identity | ||
508 | Contains the protocol version 1 RSA authentication identity of | ||
509 | the user. This file should not be readable by anyone but the | ||
510 | user. It is possible to specify a passphrase when generating the | ||
511 | key; that passphrase will be used to encrypt the private part of | ||
512 | this file using 3DES. This file is not automatically accessed by | ||
513 | ssh-keygen but it is offered as the default file for the private | ||
514 | key. ssh(1) will read this file when a login attempt is made. | ||
515 | |||
516 | ~/.ssh/identity.pub | ||
517 | Contains the protocol version 1 RSA public key for | ||
518 | authentication. The contents of this file should be added to | ||
519 | ~/.ssh/authorized_keys on all machines where the user wishes to | ||
520 | log in using RSA authentication. There is no need to keep the | ||
521 | contents of this file secret. | ||
522 | |||
523 | ~/.ssh/id_dsa | ||
524 | ~/.ssh/id_ecdsa | ||
525 | ~/.ssh/id_ed25519 | ||
526 | ~/.ssh/id_rsa | ||
527 | Contains the protocol version 2 DSA, ECDSA, ED25519 or RSA | ||
528 | authentication identity of the user. This file should not be | ||
529 | readable by anyone but the user. It is possible to specify a | ||
530 | passphrase when generating the key; that passphrase will be used | ||
531 | to encrypt the private part of this file using 128-bit AES. This | ||
532 | file is not automatically accessed by ssh-keygen but it is | ||
533 | offered as the default file for the private key. ssh(1) will | ||
534 | read this file when a login attempt is made. | ||
535 | |||
536 | ~/.ssh/id_dsa.pub | ||
537 | ~/.ssh/id_ecdsa.pub | ||
538 | ~/.ssh/id_ed25519.pub | ||
539 | ~/.ssh/id_rsa.pub | ||
540 | Contains the protocol version 2 DSA, ECDSA, ED25519 or RSA public | ||
541 | key for authentication. The contents of this file should be | ||
542 | added to ~/.ssh/authorized_keys on all machines where the user | ||
543 | wishes to log in using public key authentication. There is no | ||
544 | need to keep the contents of this file secret. | ||
545 | |||
546 | /etc/moduli | ||
547 | Contains Diffie-Hellman groups used for DH-GEX. The file format | ||
548 | is described in moduli(5). | ||
549 | |||
550 | SEE ALSO | ||
551 | ssh(1), ssh-add(1), ssh-agent(1), moduli(5), sshd(8) | ||
552 | |||
553 | The Secure Shell (SSH) Public Key File Format, RFC 4716, 2006. | ||
554 | |||
555 | AUTHORS | ||
556 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
557 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
558 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
559 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
560 | versions 1.5 and 2.0. | ||
561 | |||
562 | OpenBSD 5.6 March 31, 2014 OpenBSD 5.6 | ||
diff --git a/ssh-keyscan.0 b/ssh-keyscan.0 new file mode 100644 index 000000000..853bd5152 --- /dev/null +++ b/ssh-keyscan.0 | |||
@@ -0,0 +1,111 @@ | |||
1 | SSH-KEYSCAN(1) General Commands Manual SSH-KEYSCAN(1) | ||
2 | |||
3 | NAME | ||
4 | ssh-keyscan - gather ssh public keys | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keyscan [-46Hv] [-f file] [-p port] [-T timeout] [-t type] | ||
8 | [host | addrlist namelist] ... | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh-keyscan is a utility for gathering the public ssh host keys of a | ||
12 | number of hosts. It was designed to aid in building and verifying | ||
13 | ssh_known_hosts files. ssh-keyscan provides a minimal interface suitable | ||
14 | for use by shell and perl scripts. | ||
15 | |||
16 | ssh-keyscan uses non-blocking socket I/O to contact as many hosts as | ||
17 | possible in parallel, so it is very efficient. The keys from a domain of | ||
18 | 1,000 hosts can be collected in tens of seconds, even when some of those | ||
19 | hosts are down or do not run ssh. For scanning, one does not need login | ||
20 | access to the machines that are being scanned, nor does the scanning | ||
21 | process involve any encryption. | ||
22 | |||
23 | The options are as follows: | ||
24 | |||
25 | -4 Forces ssh-keyscan to use IPv4 addresses only. | ||
26 | |||
27 | -6 Forces ssh-keyscan to use IPv6 addresses only. | ||
28 | |||
29 | -f file | ||
30 | Read hosts or ``addrlist namelist'' pairs from 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 | ||
33 | input. | ||
34 | |||
35 | -H Hash all hostnames and addresses in the output. Hashed names may | ||
36 | be used normally by ssh and sshd, but they do not reveal | ||
37 | identifying information should the file's contents be disclosed. | ||
38 | |||
39 | -p port | ||
40 | Port to connect to on the remote host. | ||
41 | |||
42 | -T timeout | ||
43 | Set the timeout for connection attempts. If timeout seconds have | ||
44 | elapsed since a connection was initiated to a host or since the | ||
45 | last time anything was read from that host, then the connection | ||
46 | is closed and the host in question considered unavailable. | ||
47 | Default is 5 seconds. | ||
48 | |||
49 | -t type | ||
50 | Specifies the type of the key to fetch from the scanned hosts. | ||
51 | The possible values are ``rsa1'' for protocol version 1 and | ||
52 | ``dsa'', ``ecdsa'', ``ed25519'', or ``rsa'' for protocol version | ||
53 | 2. Multiple values may be specified by separating them with | ||
54 | commas. The default is to fetch ``rsa'', ``ecdsa'', and | ||
55 | ``ed25519'' keys. | ||
56 | |||
57 | -v Verbose mode. Causes ssh-keyscan to print debugging messages | ||
58 | about its progress. | ||
59 | |||
60 | SECURITY | ||
61 | If an ssh_known_hosts file is constructed using ssh-keyscan without | ||
62 | verifying the keys, users will be vulnerable to man in the middle | ||
63 | attacks. On the other hand, if the security model allows such a risk, | ||
64 | ssh-keyscan can help in the detection of tampered keyfiles or man in the | ||
65 | middle attacks which have begun after the ssh_known_hosts file was | ||
66 | created. | ||
67 | |||
68 | FILES | ||
69 | Input format: | ||
70 | |||
71 | 1.2.3.4,1.2.4.4 name.my.domain,name,n.my.domain,n,1.2.3.4,1.2.4.4 | ||
72 | |||
73 | Output format for RSA1 keys: | ||
74 | |||
75 | host-or-namelist bits exponent modulus | ||
76 | |||
77 | Output format for RSA, DSA, ECDSA, and ED25519 keys: | ||
78 | |||
79 | host-or-namelist keytype base64-encoded-key | ||
80 | |||
81 | Where keytype is either ``ecdsa-sha2-nistp256'', ``ecdsa-sha2-nistp384'', | ||
82 | ``ecdsa-sha2-nistp521'', ``ssh-ed25519'', ``ssh-dss'' or ``ssh-rsa''. | ||
83 | |||
84 | /etc/ssh/ssh_known_hosts | ||
85 | |||
86 | EXAMPLES | ||
87 | Print the rsa host key for machine hostname: | ||
88 | |||
89 | $ ssh-keyscan hostname | ||
90 | |||
91 | Find all hosts from the file ssh_hosts which have new or different keys | ||
92 | from those in the sorted file ssh_known_hosts: | ||
93 | |||
94 | $ ssh-keyscan -t rsa,dsa,ecdsa,ed25519 -f ssh_hosts | \ | ||
95 | sort -u - ssh_known_hosts | diff ssh_known_hosts - | ||
96 | |||
97 | SEE ALSO | ||
98 | ssh(1), sshd(8) | ||
99 | |||
100 | AUTHORS | ||
101 | David Mazieres <dm@lcs.mit.edu> wrote the initial version, and Wayne | ||
102 | Davison <wayned@users.sourceforge.net> added support for protocol version | ||
103 | 2. | ||
104 | |||
105 | BUGS | ||
106 | It generates "Connection closed by remote host" messages on the consoles | ||
107 | of all the machines it scans if the server is older than version 2.9. | ||
108 | This is because it opens a connection to the ssh port, reads the public | ||
109 | key, and drops the connection as soon as it gets the key. | ||
110 | |||
111 | OpenBSD 5.6 March 12, 2014 OpenBSD 5.6 | ||
diff --git a/ssh-keysign.0 b/ssh-keysign.0 new file mode 100644 index 000000000..c34125b72 --- /dev/null +++ b/ssh-keysign.0 | |||
@@ -0,0 +1,53 @@ | |||
1 | SSH-KEYSIGN(8) System Manager's Manual SSH-KEYSIGN(8) | ||
2 | |||
3 | NAME | ||
4 | ssh-keysign - ssh helper program for host-based authentication | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-keysign | ||
8 | |||
9 | DESCRIPTION | ||
10 | ssh-keysign is used by ssh(1) to access the local host keys and generate | ||
11 | the digital signature required during host-based authentication with SSH | ||
12 | protocol version 2. | ||
13 | |||
14 | ssh-keysign is disabled by default and can only be enabled in the global | ||
15 | client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign | ||
16 | to ``yes''. | ||
17 | |||
18 | ssh-keysign is not intended to be invoked by the user, but from ssh(1). | ||
19 | See ssh(1) and sshd(8) for more information about host-based | ||
20 | authentication. | ||
21 | |||
22 | FILES | ||
23 | /etc/ssh/ssh_config | ||
24 | Controls whether ssh-keysign is enabled. | ||
25 | |||
26 | /etc/ssh/ssh_host_dsa_key | ||
27 | /etc/ssh/ssh_host_ecdsa_key | ||
28 | /etc/ssh/ssh_host_ed25519_key | ||
29 | /etc/ssh/ssh_host_rsa_key | ||
30 | These files contain the private parts of the host keys used to | ||
31 | generate the digital signature. They should be owned by root, | ||
32 | readable only by root, and not accessible to others. Since they | ||
33 | are readable only by root, ssh-keysign must be set-uid root if | ||
34 | host-based authentication is used. | ||
35 | |||
36 | /etc/ssh/ssh_host_dsa_key-cert.pub | ||
37 | /etc/ssh/ssh_host_ecdsa_key-cert.pub | ||
38 | /etc/ssh/ssh_host_ed25519_key-cert.pub | ||
39 | /etc/ssh/ssh_host_rsa_key-cert.pub | ||
40 | If these files exist they are assumed to contain public | ||
41 | certificate information corresponding with the private keys | ||
42 | above. | ||
43 | |||
44 | SEE ALSO | ||
45 | ssh(1), ssh-keygen(1), ssh_config(5), sshd(8) | ||
46 | |||
47 | HISTORY | ||
48 | ssh-keysign first appeared in OpenBSD 3.2. | ||
49 | |||
50 | AUTHORS | ||
51 | Markus Friedl <markus@openbsd.org> | ||
52 | |||
53 | OpenBSD 5.6 December 7, 2013 OpenBSD 5.6 | ||
diff --git a/ssh-pkcs11-helper.0 b/ssh-pkcs11-helper.0 new file mode 100644 index 000000000..279ec5486 --- /dev/null +++ b/ssh-pkcs11-helper.0 | |||
@@ -0,0 +1,25 @@ | |||
1 | SSH-PKCS11-HELPER(8) System Manager's Manual SSH-PKCS11-HELPER(8) | ||
2 | |||
3 | NAME | ||
4 | ssh-pkcs11-helper - ssh-agent helper program for PKCS#11 support | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh-pkcs11-helper | ||
8 | |||
9 | DESCRIPTION | ||
10 | ssh-pkcs11-helper is used by ssh-agent(1) to access keys provided by a | ||
11 | PKCS#11 token. | ||
12 | |||
13 | ssh-pkcs11-helper is not intended to be invoked by the user, but from | ||
14 | ssh-agent(1). | ||
15 | |||
16 | SEE ALSO | ||
17 | ssh(1), ssh-add(1), ssh-agent(1) | ||
18 | |||
19 | HISTORY | ||
20 | ssh-pkcs11-helper first appeared in OpenBSD 4.7. | ||
21 | |||
22 | AUTHORS | ||
23 | Markus Friedl <markus@openbsd.org> | ||
24 | |||
25 | OpenBSD 5.6 July 16, 2013 OpenBSD 5.6 | ||
@@ -0,0 +1,944 @@ | |||
1 | SSH(1) General Commands Manual SSH(1) | ||
2 | |||
3 | NAME | ||
4 | ssh - OpenSSH SSH client (remote login program) | ||
5 | |||
6 | SYNOPSIS | ||
7 | ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] | ||
8 | [-D [bind_address:]port] [-E log_file] [-e escape_char] | ||
9 | [-F configfile] [-I pkcs11] [-i identity_file] | ||
10 | [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] | ||
11 | [-O ctl_cmd] [-o option] [-p port] | ||
12 | [-Q cipher | cipher-auth | mac | kex | key] | ||
13 | [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] | ||
14 | [-w local_tun[:remote_tun]] [user@]hostname [command] | ||
15 | |||
16 | DESCRIPTION | ||
17 | ssh (SSH client) is a program for logging into a remote machine and for | ||
18 | executing commands on a remote machine. It is intended to replace rlogin | ||
19 | and rsh, and provide secure encrypted communications between two | ||
20 | untrusted hosts over an insecure network. X11 connections, arbitrary TCP | ||
21 | ports and UNIX-domain sockets can also be forwarded over the secure | ||
22 | channel. | ||
23 | |||
24 | ssh connects and logs into the specified hostname (with optional user | ||
25 | name). The user must prove his/her identity to the remote machine using | ||
26 | one of several methods depending on the protocol version used (see | ||
27 | below). | ||
28 | |||
29 | If command is specified, it is executed on the remote host instead of a | ||
30 | login shell. | ||
31 | |||
32 | The options are as follows: | ||
33 | |||
34 | -1 Forces ssh to try protocol version 1 only. | ||
35 | |||
36 | -2 Forces ssh to try protocol version 2 only. | ||
37 | |||
38 | -4 Forces ssh to use IPv4 addresses only. | ||
39 | |||
40 | -6 Forces ssh to use IPv6 addresses only. | ||
41 | |||
42 | -A Enables forwarding of the authentication agent connection. This | ||
43 | can also be specified on a per-host basis in a configuration | ||
44 | file. | ||
45 | |||
46 | Agent forwarding should be enabled with caution. Users with the | ||
47 | ability to bypass file permissions on the remote host (for the | ||
48 | agent's UNIX-domain socket) can access the local agent through | ||
49 | the forwarded connection. An attacker cannot obtain key material | ||
50 | from the agent, however they can perform operations on the keys | ||
51 | that enable them to authenticate using the identities loaded into | ||
52 | the agent. | ||
53 | |||
54 | -a Disables forwarding of the authentication agent connection. | ||
55 | |||
56 | -b bind_address | ||
57 | Use bind_address on the local machine as the source address of | ||
58 | the connection. Only useful on systems with more than one | ||
59 | address. | ||
60 | |||
61 | -C Requests compression of all data (including stdin, stdout, | ||
62 | stderr, and data for forwarded X11, TCP and UNIX-domain | ||
63 | connections). The compression algorithm is the same used by | ||
64 | gzip(1), and the ``level'' can be controlled by the | ||
65 | CompressionLevel option for protocol version 1. Compression is | ||
66 | desirable on modem lines and other slow connections, but will | ||
67 | only slow down things on fast networks. The default value can be | ||
68 | set on a host-by-host basis in the configuration files; see the | ||
69 | Compression option. | ||
70 | |||
71 | -c cipher_spec | ||
72 | Selects the cipher specification for encrypting the session. | ||
73 | |||
74 | Protocol version 1 allows specification of a single cipher. The | ||
75 | supported values are ``3des'', ``blowfish'', and ``des''. For | ||
76 | protocol version 2, cipher_spec is a comma-separated list of | ||
77 | ciphers listed in order of preference. See the Ciphers keyword | ||
78 | in ssh_config(5) for more information. | ||
79 | |||
80 | -D [bind_address:]port | ||
81 | Specifies a local ``dynamic'' application-level port forwarding. | ||
82 | This works by allocating a socket to listen to port on the local | ||
83 | side, optionally bound to the specified bind_address. Whenever a | ||
84 | connection is made to this port, the connection is forwarded over | ||
85 | the secure channel, and the application protocol is then used to | ||
86 | determine where to connect to from the remote machine. Currently | ||
87 | the SOCKS4 and SOCKS5 protocols are supported, and ssh will act | ||
88 | as a SOCKS server. Only root can forward privileged ports. | ||
89 | Dynamic port forwardings can also be specified in the | ||
90 | configuration file. | ||
91 | |||
92 | IPv6 addresses can be specified by enclosing the address in | ||
93 | square brackets. Only the superuser can forward privileged | ||
94 | ports. By default, the local port is bound in accordance with | ||
95 | the GatewayPorts setting. However, an explicit bind_address may | ||
96 | be used to bind the connection to a specific address. The | ||
97 | bind_address of ``localhost'' indicates that the listening port | ||
98 | be bound for local use only, while an empty address or `*' | ||
99 | indicates that the port should be available from all interfaces. | ||
100 | |||
101 | -E log_file | ||
102 | Append debug logs to log_file instead of standard error. | ||
103 | |||
104 | -e escape_char | ||
105 | Sets the escape character for sessions with a pty (default: `~'). | ||
106 | The escape character is only recognized at the beginning of a | ||
107 | line. The escape character followed by a dot (`.') closes the | ||
108 | connection; followed by control-Z suspends the connection; and | ||
109 | followed by itself sends the escape character once. Setting the | ||
110 | character to ``none'' disables any escapes and makes the session | ||
111 | fully transparent. | ||
112 | |||
113 | -F configfile | ||
114 | Specifies an alternative per-user configuration file. If a | ||
115 | configuration file is given on the command line, the system-wide | ||
116 | configuration file (/etc/ssh/ssh_config) will be ignored. The | ||
117 | default for the per-user configuration file is ~/.ssh/config. | ||
118 | |||
119 | -f Requests ssh to go to background just before command execution. | ||
120 | This is useful if ssh is going to ask for passwords or | ||
121 | passphrases, but the user wants it in the background. This | ||
122 | implies -n. The recommended way to start X11 programs at a | ||
123 | remote site is with something like ssh -f host xterm. | ||
124 | |||
125 | If the ExitOnForwardFailure configuration option is set to | ||
126 | ``yes'', then a client started with -f will wait for all remote | ||
127 | port forwards to be successfully established before placing | ||
128 | itself in the background. | ||
129 | |||
130 | -g Allows remote hosts to connect to local forwarded ports. If used | ||
131 | on a multiplexed connection, then this option must be specified | ||
132 | on the master process. | ||
133 | |||
134 | -I pkcs11 | ||
135 | Specify the PKCS#11 shared library ssh should use to communicate | ||
136 | with a PKCS#11 token providing the user's private RSA key. | ||
137 | |||
138 | -i identity_file | ||
139 | Selects a file from which the identity (private key) for public | ||
140 | key authentication is read. The default is ~/.ssh/identity for | ||
141 | protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, | ||
142 | ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2. | ||
143 | Identity files may also be specified on a per-host basis in the | ||
144 | configuration file. It is possible to have multiple -i options | ||
145 | (and multiple identities specified in configuration files). ssh | ||
146 | will also try to load certificate information from the filename | ||
147 | obtained by appending -cert.pub to identity filenames. | ||
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 | ||
160 | connection 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 | ||
164 | specified by enclosing the address in square brackets. Only the | ||
165 | superuser can forward privileged ports. By default, the local | ||
166 | port is bound in accordance with the GatewayPorts setting. | ||
167 | However, an explicit bind_address may be used to bind the | ||
168 | connection to a specific address. The bind_address of | ||
169 | ``localhost'' indicates that the listening port be bound for | ||
170 | local use only, while an empty address or `*' indicates that the | ||
171 | port should be available from all interfaces. | ||
172 | |||
173 | -l login_name | ||
174 | Specifies the user to log in as on the remote machine. This also | ||
175 | may be specified on a per-host basis in the configuration file. | ||
176 | |||
177 | -M Places the ssh client into ``master'' mode for connection | ||
178 | sharing. Multiple -M options places ssh into ``master'' mode | ||
179 | with confirmation required before slave connections are accepted. | ||
180 | Refer to the description of ControlMaster in ssh_config(5) for | ||
181 | details. | ||
182 | |||
183 | -m mac_spec | ||
184 | Additionally, for protocol version 2 a comma-separated list of | ||
185 | MAC (message authentication code) algorithms can be specified in | ||
186 | order of preference. See the MACs keyword for more information. | ||
187 | |||
188 | -N Do not execute a remote command. This is useful for just | ||
189 | forwarding ports (protocol version 2 only). | ||
190 | |||
191 | -n Redirects stdin from /dev/null (actually, prevents reading from | ||
192 | stdin). This must be used when ssh is run in the background. A | ||
193 | common trick is to use this to run X11 programs on a remote | ||
194 | machine. For example, ssh -n shadows.cs.hut.fi emacs & will | ||
195 | start an emacs on shadows.cs.hut.fi, and the X11 connection will | ||
196 | be automatically forwarded over an encrypted channel. The ssh | ||
197 | program will be put in the background. (This does not work if | ||
198 | ssh needs to ask for a password or passphrase; see also the -f | ||
199 | 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), ``forward'' (request | ||
206 | forwardings without command execution), ``cancel'' (cancel | ||
207 | forwardings), ``exit'' (request the master to exit), and ``stop'' | ||
208 | (request the master to stop accepting further multiplexing | ||
209 | requests). | ||
210 | |||
211 | -o option | ||
212 | Can be used to give options in the format used in the | ||
213 | configuration file. This is useful for specifying options for | ||
214 | which there is no separate command-line flag. For full details | ||
215 | of the options listed below, and their possible values, see | ||
216 | ssh_config(5). | ||
217 | |||
218 | AddressFamily | ||
219 | BatchMode | ||
220 | BindAddress | ||
221 | CanonicalDomains | ||
222 | CanonicalizeFallbackLocal | ||
223 | CanonicalizeHostname | ||
224 | CanonicalizeMaxDots | ||
225 | CanonicalizePermittedCNAMEs | ||
226 | ChallengeResponseAuthentication | ||
227 | CheckHostIP | ||
228 | Cipher | ||
229 | Ciphers | ||
230 | ClearAllForwardings | ||
231 | Compression | ||
232 | CompressionLevel | ||
233 | ConnectionAttempts | ||
234 | ConnectTimeout | ||
235 | ControlMaster | ||
236 | ControlPath | ||
237 | ControlPersist | ||
238 | DynamicForward | ||
239 | EscapeChar | ||
240 | ExitOnForwardFailure | ||
241 | ForwardAgent | ||
242 | ForwardX11 | ||
243 | ForwardX11Timeout | ||
244 | ForwardX11Trusted | ||
245 | GatewayPorts | ||
246 | GlobalKnownHostsFile | ||
247 | GSSAPIAuthentication | ||
248 | GSSAPIDelegateCredentials | ||
249 | HashKnownHosts | ||
250 | Host | ||
251 | HostbasedAuthentication | ||
252 | HostKeyAlgorithms | ||
253 | HostKeyAlias | ||
254 | HostName | ||
255 | IdentityFile | ||
256 | IdentitiesOnly | ||
257 | IPQoS | ||
258 | KbdInteractiveAuthentication | ||
259 | KbdInteractiveDevices | ||
260 | KexAlgorithms | ||
261 | LocalCommand | ||
262 | LocalForward | ||
263 | LogLevel | ||
264 | MACs | ||
265 | Match | ||
266 | NoHostAuthenticationForLocalhost | ||
267 | NumberOfPasswordPrompts | ||
268 | PasswordAuthentication | ||
269 | PermitLocalCommand | ||
270 | PKCS11Provider | ||
271 | Port | ||
272 | PreferredAuthentications | ||
273 | Protocol | ||
274 | ProxyCommand | ||
275 | ProxyUseFdpass | ||
276 | PubkeyAuthentication | ||
277 | RekeyLimit | ||
278 | RemoteForward | ||
279 | RequestTTY | ||
280 | RhostsRSAAuthentication | ||
281 | RSAAuthentication | ||
282 | SendEnv | ||
283 | ServerAliveInterval | ||
284 | ServerAliveCountMax | ||
285 | StreamLocalBindMask | ||
286 | StreamLocalBindUnlink | ||
287 | StrictHostKeyChecking | ||
288 | TCPKeepAlive | ||
289 | Tunnel | ||
290 | TunnelDevice | ||
291 | UsePrivilegedPort | ||
292 | User | ||
293 | UserKnownHostsFile | ||
294 | VerifyHostKeyDNS | ||
295 | VisualHostKey | ||
296 | XAuthLocation | ||
297 | |||
298 | -p port | ||
299 | Port to connect to on the remote host. This can be specified on | ||
300 | a per-host basis in the configuration file. | ||
301 | |||
302 | -Q cipher | cipher-auth | mac | kex | key | ||
303 | Queries ssh for the algorithms supported for the specified | ||
304 | version 2. The available features are: cipher (supported | ||
305 | symmetric ciphers), cipher-auth (supported symmetric ciphers that | ||
306 | support authenticated encryption), mac (supported message | ||
307 | integrity codes), kex (key exchange algorithms), key (key types). | ||
308 | |||
309 | -q Quiet mode. Causes most warning and diagnostic messages to be | ||
310 | suppressed. | ||
311 | |||
312 | -R [bind_address:]port:host:hostport | ||
313 | Specifies that the given port on the remote (server) host is to | ||
314 | be forwarded to the given host and port on the local side. This | ||
315 | works by allocating a socket to listen to port on the remote | ||
316 | side, and whenever a connection is made to this port, the | ||
317 | connection is forwarded over the secure channel, and a connection | ||
318 | is made to host port hostport from the local machine. | ||
319 | |||
320 | Port forwardings can also be specified in the configuration file. | ||
321 | Privileged ports can be forwarded only when logging in as root on | ||
322 | the remote machine. IPv6 addresses can be specified by enclosing | ||
323 | the address in square brackets. | ||
324 | |||
325 | By default, the listening socket on the server will be bound to | ||
326 | the loopback interface only. This may be overridden by | ||
327 | specifying a bind_address. An empty bind_address, or the address | ||
328 | `*', indicates that the remote socket should listen on all | ||
329 | interfaces. Specifying a remote bind_address will only succeed | ||
330 | if the server's GatewayPorts option is enabled (see | ||
331 | sshd_config(5)). | ||
332 | |||
333 | If the port argument is `0', the listen port will be dynamically | ||
334 | allocated on the server and reported to the client at run time. | ||
335 | When used together with -O forward the allocated port will be | ||
336 | printed to the standard output. | ||
337 | |||
338 | -S ctl_path | ||
339 | Specifies the location of a control socket for connection | ||
340 | sharing, or the string ``none'' to disable connection sharing. | ||
341 | Refer to the description of ControlPath and ControlMaster in | ||
342 | ssh_config(5) for details. | ||
343 | |||
344 | -s May be used to request invocation of a subsystem on the remote | ||
345 | system. Subsystems are a feature of the SSH2 protocol which | ||
346 | facilitate the use of SSH as a secure transport for other | ||
347 | applications (eg. sftp(1)). The subsystem is specified as the | ||
348 | remote command. | ||
349 | |||
350 | -T Disable pseudo-tty allocation. | ||
351 | |||
352 | -t Force pseudo-tty allocation. This can be used to execute | ||
353 | arbitrary screen-based programs on a remote machine, which can be | ||
354 | very useful, e.g. when implementing menu services. Multiple -t | ||
355 | options force tty allocation, even if ssh has no local tty. | ||
356 | |||
357 | -V Display the version number and exit. | ||
358 | |||
359 | -v Verbose mode. Causes ssh to print debugging messages about its | ||
360 | progress. This is helpful in debugging connection, | ||
361 | authentication, and configuration problems. Multiple -v options | ||
362 | increase the verbosity. The maximum is 3. | ||
363 | |||
364 | -W host:port | ||
365 | Requests that standard input and output on the client be | ||
366 | forwarded to host on port over the secure channel. Implies -N, | ||
367 | -T, ExitOnForwardFailure and ClearAllForwardings. Works with | ||
368 | Protocol version 2 only. | ||
369 | |||
370 | -w local_tun[:remote_tun] | ||
371 | Requests tunnel device forwarding with the specified tun(4) | ||
372 | devices between the client (local_tun) and the server | ||
373 | (remote_tun). | ||
374 | |||
375 | The devices may be specified by numerical ID or the keyword | ||
376 | ``any'', which uses the next available tunnel device. If | ||
377 | remote_tun is not specified, it defaults to ``any''. See also | ||
378 | the Tunnel and TunnelDevice directives in ssh_config(5). If the | ||
379 | Tunnel directive is unset, it is set to the default tunnel mode, | ||
380 | which is ``point-to-point''. | ||
381 | |||
382 | -X Enables X11 forwarding. This can also be specified on a per-host | ||
383 | basis in a configuration file. | ||
384 | |||
385 | X11 forwarding should be enabled with caution. Users with the | ||
386 | ability to bypass file permissions on the remote host (for the | ||
387 | user's X authorization database) can access the local X11 display | ||
388 | through the forwarded connection. An attacker may then be able | ||
389 | to perform activities such as keystroke monitoring. | ||
390 | |||
391 | For this reason, X11 forwarding is subjected to X11 SECURITY | ||
392 | extension restrictions by default. Please refer to the ssh -Y | ||
393 | option and the ForwardX11Trusted directive in ssh_config(5) for | ||
394 | more information. | ||
395 | |||
396 | -x Disables X11 forwarding. | ||
397 | |||
398 | -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not | ||
399 | subjected to the X11 SECURITY extension controls. | ||
400 | |||
401 | -y Send log information using the syslog(3) system module. By | ||
402 | default this information is sent to stderr. | ||
403 | |||
404 | ssh may additionally obtain configuration data from a per-user | ||
405 | configuration file and a system-wide configuration file. The file format | ||
406 | and configuration options are described in ssh_config(5). | ||
407 | |||
408 | AUTHENTICATION | ||
409 | The OpenSSH SSH client supports SSH protocols 1 and 2. The default is to | ||
410 | use protocol 2 only, though this can be changed via the Protocol option | ||
411 | in ssh_config(5) or the -1 and -2 options (see above). Both protocols | ||
412 | support similar authentication methods, but protocol 2 is the default | ||
413 | since it provides additional mechanisms for confidentiality (the traffic | ||
414 | is encrypted using AES, 3DES, Blowfish, CAST128, or Arcfour) and | ||
415 | integrity (hmac-md5, hmac-sha1, hmac-sha2-256, hmac-sha2-512, umac-64, | ||
416 | umac-128, hmac-ripemd160). Protocol 1 lacks a strong mechanism for | ||
417 | ensuring the integrity of the connection. | ||
418 | |||
419 | The methods available for authentication are: GSSAPI-based | ||
420 | authentication, host-based authentication, public key authentication, | ||
421 | challenge-response authentication, and password authentication. | ||
422 | Authentication methods are tried in the order specified above, though | ||
423 | protocol 2 has a configuration option to change the default order: | ||
424 | PreferredAuthentications. | ||
425 | |||
426 | Host-based authentication works as follows: If the machine the user logs | ||
427 | in from is listed in /etc/hosts.equiv or /etc/shosts.equiv on the remote | ||
428 | machine, and the user names are the same on both sides, or if the files | ||
429 | ~/.rhosts or ~/.shosts exist in the user's home directory on the remote | ||
430 | machine and contain a line containing the name of the client machine and | ||
431 | the name of the user on that machine, the user is considered for login. | ||
432 | Additionally, the server must be able to verify the client's host key | ||
433 | (see the description of /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts, | ||
434 | below) for login to be permitted. This authentication method closes | ||
435 | security holes due to IP spoofing, DNS spoofing, and routing spoofing. | ||
436 | [Note to the administrator: /etc/hosts.equiv, ~/.rhosts, and the | ||
437 | rlogin/rsh protocol in general, are inherently insecure and should be | ||
438 | disabled if security is desired.] | ||
439 | |||
440 | Public key authentication works as follows: The scheme is based on | ||
441 | public-key cryptography, using cryptosystems where encryption and | ||
442 | decryption are done using separate keys, and it is unfeasible to derive | ||
443 | the decryption key from the encryption key. The idea is that each user | ||
444 | creates a public/private key pair for authentication purposes. The | ||
445 | server knows the public key, and only the user knows the private key. | ||
446 | ssh implements public key authentication protocol automatically, using | ||
447 | one of the DSA, ECDSA, ED25519 or RSA algorithms. Protocol 1 is | ||
448 | restricted to using only RSA keys, but protocol 2 may use any. The | ||
449 | HISTORY section of ssl(8) contains a brief discussion of the DSA and RSA | ||
450 | algorithms. | ||
451 | |||
452 | The file ~/.ssh/authorized_keys lists the public keys that are permitted | ||
453 | for logging in. When the user logs in, the ssh program tells the server | ||
454 | which key pair it would like to use for authentication. The client | ||
455 | proves that it has access to the private key and the server checks that | ||
456 | the corresponding public key is authorized to accept the account. | ||
457 | |||
458 | The user creates his/her key pair by running ssh-keygen(1). This stores | ||
459 | the private key in ~/.ssh/identity (protocol 1), ~/.ssh/id_dsa (protocol | ||
460 | 2 DSA), ~/.ssh/id_ecdsa (protocol 2 ECDSA), ~/.ssh/id_ed25519 (protocol 2 | ||
461 | ED25519), or ~/.ssh/id_rsa (protocol 2 RSA) and stores the public key in | ||
462 | ~/.ssh/identity.pub (protocol 1), ~/.ssh/id_dsa.pub (protocol 2 DSA), | ||
463 | ~/.ssh/id_ecdsa.pub (protocol 2 ECDSA), ~/.ssh/id_ed25519.pub (protocol 2 | ||
464 | ED25519), or ~/.ssh/id_rsa.pub (protocol 2 RSA) in the user's home | ||
465 | directory. The user should then copy the public key to | ||
466 | ~/.ssh/authorized_keys in his/her home directory on the remote machine. | ||
467 | The authorized_keys file corresponds to the conventional ~/.rhosts file, | ||
468 | and has one key per line, though the lines can be very long. After this, | ||
469 | the user can log in without giving the password. | ||
470 | |||
471 | A variation on public key authentication is available in the form of | ||
472 | certificate authentication: instead of a set of public/private keys, | ||
473 | signed certificates are used. This has the advantage that a single | ||
474 | trusted certification authority can be used in place of many | ||
475 | public/private keys. See the CERTIFICATES section of ssh-keygen(1) for | ||
476 | more information. | ||
477 | |||
478 | The most convenient way to use public key or certificate authentication | ||
479 | may be with an authentication agent. See ssh-agent(1) for more | ||
480 | information. | ||
481 | |||
482 | Challenge-response authentication works as follows: The server sends an | ||
483 | arbitrary "challenge" text, and prompts for a response. Protocol 2 | ||
484 | allows multiple challenges and responses; protocol 1 is restricted to | ||
485 | just one challenge/response. Examples of challenge-response | ||
486 | authentication include BSD Authentication (see login.conf(5)) and PAM | ||
487 | (some non-OpenBSD systems). | ||
488 | |||
489 | Finally, if other authentication methods fail, ssh prompts the user for a | ||
490 | password. The password is sent to the remote host for checking; however, | ||
491 | since all communications are encrypted, the password cannot be seen by | ||
492 | someone listening on the network. | ||
493 | |||
494 | ssh automatically maintains and checks a database containing | ||
495 | identification for all hosts it has ever been used with. Host keys are | ||
496 | stored in ~/.ssh/known_hosts in the user's home directory. Additionally, | ||
497 | the file /etc/ssh/ssh_known_hosts is automatically checked for known | ||
498 | hosts. Any new hosts are automatically added to the user's file. If a | ||
499 | host's identification ever changes, ssh warns about this and disables | ||
500 | password authentication to prevent server spoofing or man-in-the-middle | ||
501 | attacks, which could otherwise be used to circumvent the encryption. The | ||
502 | StrictHostKeyChecking option can be used to control logins to machines | ||
503 | whose host key is not known or has changed. | ||
504 | |||
505 | When the user's identity has been accepted by the server, the server | ||
506 | either executes the given command, or logs into the machine and gives the | ||
507 | user a normal shell on the remote machine. All communication with the | ||
508 | remote command or shell will be automatically encrypted. | ||
509 | |||
510 | If a pseudo-terminal has been allocated (normal login session), the user | ||
511 | may use the escape characters noted below. | ||
512 | |||
513 | If no pseudo-tty has been allocated, the session is transparent and can | ||
514 | be used to reliably transfer binary data. On most systems, setting the | ||
515 | escape character to ``none'' will also make the session transparent even | ||
516 | if a tty is used. | ||
517 | |||
518 | The session terminates when the command or shell on the remote machine | ||
519 | exits and all X11 and TCP connections have been closed. | ||
520 | |||
521 | ESCAPE CHARACTERS | ||
522 | When a pseudo-terminal has been requested, ssh supports a number of | ||
523 | functions through the use of an escape character. | ||
524 | |||
525 | A single tilde character can be sent as ~~ or by following the tilde by a | ||
526 | character other than those described below. The escape character must | ||
527 | always follow a newline to be interpreted as special. The escape | ||
528 | character can be changed in configuration files using the EscapeChar | ||
529 | configuration directive or on the command line by the -e option. | ||
530 | |||
531 | The supported escapes (assuming the default `~') are: | ||
532 | |||
533 | ~. Disconnect. | ||
534 | |||
535 | ~^Z Background ssh. | ||
536 | |||
537 | ~# List forwarded connections. | ||
538 | |||
539 | ~& Background ssh at logout when waiting for forwarded connection / | ||
540 | X11 sessions to terminate. | ||
541 | |||
542 | ~? Display a list of escape characters. | ||
543 | |||
544 | ~B Send a BREAK to the remote system (only useful for SSH protocol | ||
545 | version 2 and if the peer supports it). | ||
546 | |||
547 | ~C Open command line. Currently this allows the addition of port | ||
548 | forwardings using the -L, -R and -D options (see above). It also | ||
549 | allows the cancellation of existing port-forwardings with | ||
550 | -KL[bind_address:]port for local, -KR[bind_address:]port for | ||
551 | remote and -KD[bind_address:]port for dynamic port-forwardings. | ||
552 | !command allows the user to execute a local command if the | ||
553 | PermitLocalCommand option is enabled in ssh_config(5). Basic | ||
554 | help is available, using the -h option. | ||
555 | |||
556 | ~R Request rekeying of the connection (only useful for SSH protocol | ||
557 | version 2 and if the peer supports it). | ||
558 | |||
559 | ~V Decrease the verbosity (LogLevel) when errors are being written | ||
560 | to stderr. | ||
561 | |||
562 | ~v Increase the verbosity (LogLevel) when errors are being written | ||
563 | to stderr. | ||
564 | |||
565 | TCP FORWARDING | ||
566 | Forwarding of arbitrary TCP connections over the secure channel can be | ||
567 | specified either on the command line or in a configuration file. One | ||
568 | possible application of TCP forwarding is a secure connection to a mail | ||
569 | server; another is going through firewalls. | ||
570 | |||
571 | In the example below, we look at encrypting communication between an IRC | ||
572 | client and server, even though the IRC server does not directly support | ||
573 | encrypted communications. This works as follows: the user connects to | ||
574 | the remote host using ssh, specifying a port to be used to forward | ||
575 | connections to the remote server. After that it is possible to start the | ||
576 | service which is to be encrypted on the client machine, connecting to the | ||
577 | same local port, and ssh will encrypt and forward the connection. | ||
578 | |||
579 | The following example tunnels an IRC session from client machine | ||
580 | ``127.0.0.1'' (localhost) to remote server ``server.example.com'': | ||
581 | |||
582 | $ ssh -f -L 1234:localhost:6667 server.example.com sleep 10 | ||
583 | $ irc -c '#users' -p 1234 pinky 127.0.0.1 | ||
584 | |||
585 | This tunnels a connection to IRC server ``server.example.com'', joining | ||
586 | channel ``#users'', nickname ``pinky'', using port 1234. It doesn't | ||
587 | matter which port is used, as long as it's greater than 1023 (remember, | ||
588 | only root can open sockets on privileged ports) and doesn't conflict with | ||
589 | any ports already in use. The connection is forwarded to port 6667 on | ||
590 | the remote server, since that's the standard port for IRC services. | ||
591 | |||
592 | The -f option backgrounds ssh and the remote command ``sleep 10'' is | ||
593 | specified to allow an amount of time (10 seconds, in the example) to | ||
594 | start the service which is to be tunnelled. If no connections are made | ||
595 | within the time specified, ssh will exit. | ||
596 | |||
597 | X11 FORWARDING | ||
598 | If the ForwardX11 variable is set to ``yes'' (or see the description of | ||
599 | the -X, -x, and -Y options above) and the user is using X11 (the DISPLAY | ||
600 | environment variable is set), the connection to the X11 display is | ||
601 | automatically forwarded to the remote side in such a way that any X11 | ||
602 | programs started from the shell (or command) will go through the | ||
603 | encrypted channel, and the connection to the real X server will be made | ||
604 | from the local machine. The user should not manually set DISPLAY. | ||
605 | Forwarding of X11 connections can be configured on the command line or in | ||
606 | configuration files. | ||
607 | |||
608 | The DISPLAY value set by ssh will point to the server machine, but with a | ||
609 | display number greater than zero. This is normal, and happens because | ||
610 | ssh creates a ``proxy'' X server on the server machine for forwarding the | ||
611 | connections over the encrypted channel. | ||
612 | |||
613 | ssh will also automatically set up Xauthority data on the server machine. | ||
614 | For this purpose, it will generate a random authorization cookie, store | ||
615 | it in Xauthority on the server, and verify that any forwarded connections | ||
616 | carry this cookie and replace it by the real cookie when the connection | ||
617 | is opened. The real authentication cookie is never sent to the server | ||
618 | machine (and no cookies are sent in the plain). | ||
619 | |||
620 | If the ForwardAgent variable is set to ``yes'' (or see the description of | ||
621 | the -A and -a options above) and the user is using an authentication | ||
622 | agent, the connection to the agent is automatically forwarded to the | ||
623 | remote side. | ||
624 | |||
625 | VERIFYING HOST KEYS | ||
626 | When connecting to a server for the first time, a fingerprint of the | ||
627 | server's public key is presented to the user (unless the option | ||
628 | StrictHostKeyChecking has been disabled). Fingerprints can be determined | ||
629 | using ssh-keygen(1): | ||
630 | |||
631 | $ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key | ||
632 | |||
633 | If the fingerprint is already known, it can be matched and the key can be | ||
634 | accepted or rejected. Because of the difficulty of comparing host keys | ||
635 | just by looking at hex strings, there is also support to compare host | ||
636 | keys visually, using random art. By setting the VisualHostKey option to | ||
637 | ``yes'', a small ASCII graphic gets displayed on every login to a server, | ||
638 | no matter if the session itself is interactive or not. By learning the | ||
639 | pattern a known server produces, a user can easily find out that the host | ||
640 | key has changed when a completely different pattern is displayed. | ||
641 | Because these patterns are not unambiguous however, a pattern that looks | ||
642 | similar to the pattern remembered only gives a good probability that the | ||
643 | host key is the same, not guaranteed proof. | ||
644 | |||
645 | To get a listing of the fingerprints along with their random art for all | ||
646 | known hosts, the following command line can be used: | ||
647 | |||
648 | $ ssh-keygen -lv -f ~/.ssh/known_hosts | ||
649 | |||
650 | If the fingerprint is unknown, an alternative method of verification is | ||
651 | available: SSH fingerprints verified by DNS. An additional resource | ||
652 | record (RR), SSHFP, is added to a zonefile and the connecting client is | ||
653 | able to match the fingerprint with that of the key presented. | ||
654 | |||
655 | In this example, we are connecting a client to a server, | ||
656 | ``host.example.com''. The SSHFP resource records should first be added | ||
657 | to the zonefile for host.example.com: | ||
658 | |||
659 | $ ssh-keygen -r host.example.com. | ||
660 | |||
661 | The output lines will have to be added to the zonefile. To check that | ||
662 | the zone is answering fingerprint queries: | ||
663 | |||
664 | $ dig -t SSHFP host.example.com | ||
665 | |||
666 | Finally the client connects: | ||
667 | |||
668 | $ ssh -o "VerifyHostKeyDNS ask" host.example.com | ||
669 | [...] | ||
670 | Matching host key fingerprint found in DNS. | ||
671 | Are you sure you want to continue connecting (yes/no)? | ||
672 | |||
673 | See the VerifyHostKeyDNS option in ssh_config(5) for more information. | ||
674 | |||
675 | SSH-BASED VIRTUAL PRIVATE NETWORKS | ||
676 | ssh contains support for Virtual Private Network (VPN) tunnelling using | ||
677 | the tun(4) network pseudo-device, allowing two networks to be joined | ||
678 | securely. The sshd_config(5) configuration option PermitTunnel controls | ||
679 | whether the server supports this, and at what level (layer 2 or 3 | ||
680 | traffic). | ||
681 | |||
682 | The following example would connect client network 10.0.50.0/24 with | ||
683 | remote network 10.0.99.0/24 using a point-to-point connection from | ||
684 | 10.1.1.1 to 10.1.1.2, provided that the SSH server running on the gateway | ||
685 | to the remote network, at 192.168.1.15, allows it. | ||
686 | |||
687 | On the client: | ||
688 | |||
689 | # ssh -f -w 0:1 192.168.1.15 true | ||
690 | # ifconfig tun0 10.1.1.1 10.1.1.2 netmask 255.255.255.252 | ||
691 | # route add 10.0.99.0/24 10.1.1.2 | ||
692 | |||
693 | On the server: | ||
694 | |||
695 | # ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.252 | ||
696 | # route add 10.0.50.0/24 10.1.1.1 | ||
697 | |||
698 | Client access may be more finely tuned via the /root/.ssh/authorized_keys | ||
699 | file (see below) and the PermitRootLogin server option. The following | ||
700 | entry would permit connections on tun(4) device 1 from user ``jane'' and | ||
701 | on tun device 2 from user ``john'', if PermitRootLogin is set to | ||
702 | ``forced-commands-only'': | ||
703 | |||
704 | tunnel="1",command="sh /etc/netstart tun1" ssh-rsa ... jane | ||
705 | tunnel="2",command="sh /etc/netstart tun2" ssh-rsa ... john | ||
706 | |||
707 | Since an SSH-based setup entails a fair amount of overhead, it may be | ||
708 | more suited to temporary setups, such as for wireless VPNs. More | ||
709 | permanent VPNs are better provided by tools such as ipsecctl(8) and | ||
710 | isakmpd(8). | ||
711 | |||
712 | ENVIRONMENT | ||
713 | ssh will normally set the following environment variables: | ||
714 | |||
715 | DISPLAY The DISPLAY variable indicates the location of the | ||
716 | X11 server. It is automatically set by ssh to | ||
717 | point to a value of the form ``hostname:n'', where | ||
718 | ``hostname'' indicates the host where the shell | ||
719 | runs, and `n' is an integer >= 1. ssh uses this | ||
720 | special value to forward X11 connections over the | ||
721 | secure channel. The user should normally not set | ||
722 | DISPLAY explicitly, as that will render the X11 | ||
723 | connection insecure (and will require the user to | ||
724 | manually copy any required authorization cookies). | ||
725 | |||
726 | HOME Set to the path of the user's home directory. | ||
727 | |||
728 | LOGNAME Synonym for USER; set for compatibility with | ||
729 | systems that use this variable. | ||
730 | |||
731 | MAIL Set to the path of the user's mailbox. | ||
732 | |||
733 | PATH Set to the default PATH, as specified when | ||
734 | compiling ssh. | ||
735 | |||
736 | SSH_ASKPASS If ssh needs a passphrase, it will read the | ||
737 | passphrase from the current terminal if it was run | ||
738 | from a terminal. If ssh does not have a terminal | ||
739 | associated with it but DISPLAY and SSH_ASKPASS are | ||
740 | set, it will execute the program specified by | ||
741 | SSH_ASKPASS and open an X11 window to read the | ||
742 | passphrase. This is particularly useful when | ||
743 | calling ssh from a .xsession or related script. | ||
744 | (Note that on some machines it may be necessary to | ||
745 | redirect the input from /dev/null to make this | ||
746 | work.) | ||
747 | |||
748 | SSH_AUTH_SOCK Identifies the path of a UNIX-domain socket used to | ||
749 | communicate with the agent. | ||
750 | |||
751 | SSH_CONNECTION Identifies the client and server ends of the | ||
752 | connection. The variable contains four space- | ||
753 | separated values: client IP address, client port | ||
754 | number, server IP address, and server port number. | ||
755 | |||
756 | SSH_ORIGINAL_COMMAND This variable contains the original command line if | ||
757 | a forced command is executed. It can be used to | ||
758 | extract the original arguments. | ||
759 | |||
760 | SSH_TTY This is set to the name of the tty (path to the | ||
761 | device) associated with the current shell or | ||
762 | command. If the current session has no tty, this | ||
763 | variable is not set. | ||
764 | |||
765 | TZ This variable is set to indicate the present time | ||
766 | zone if it was set when the daemon was started | ||
767 | (i.e. the daemon passes the value on to new | ||
768 | connections). | ||
769 | |||
770 | USER Set to the name of the user logging in. | ||
771 | |||
772 | Additionally, ssh reads ~/.ssh/environment, and adds lines of the format | ||
773 | ``VARNAME=value'' to the environment if the file exists and users are | ||
774 | allowed to change their environment. For more information, see the | ||
775 | PermitUserEnvironment option in sshd_config(5). | ||
776 | |||
777 | FILES | ||
778 | ~/.rhosts | ||
779 | This file is used for host-based authentication (see above). On | ||
780 | some machines this file may need to be world-readable if the | ||
781 | user's home directory is on an NFS partition, because sshd(8) | ||
782 | reads it as root. Additionally, this file must be owned by the | ||
783 | user, and must not have write permissions for anyone else. The | ||
784 | recommended permission for most machines is read/write for the | ||
785 | user, and not accessible by others. | ||
786 | |||
787 | ~/.shosts | ||
788 | This file is used in exactly the same way as .rhosts, but allows | ||
789 | host-based authentication without permitting login with | ||
790 | rlogin/rsh. | ||
791 | |||
792 | ~/.ssh/ | ||
793 | This directory is the default location for all user-specific | ||
794 | configuration and authentication information. There is no | ||
795 | general requirement to keep the entire contents of this directory | ||
796 | secret, but the recommended permissions are read/write/execute | ||
797 | for the user, and not accessible by others. | ||
798 | |||
799 | ~/.ssh/authorized_keys | ||
800 | Lists the public keys (DSA, ECDSA, ED25519, RSA) that can be used | ||
801 | for logging in as this user. The format of this file is | ||
802 | described in the sshd(8) manual page. This file is not highly | ||
803 | sensitive, but the recommended permissions are read/write for the | ||
804 | user, and not accessible by others. | ||
805 | |||
806 | ~/.ssh/config | ||
807 | This is the per-user configuration file. The file format and | ||
808 | configuration options are described in ssh_config(5). Because of | ||
809 | the potential for abuse, this file must have strict permissions: | ||
810 | read/write for the user, and not writable by others. | ||
811 | |||
812 | ~/.ssh/environment | ||
813 | Contains additional definitions for environment variables; see | ||
814 | ENVIRONMENT, above. | ||
815 | |||
816 | ~/.ssh/identity | ||
817 | ~/.ssh/id_dsa | ||
818 | ~/.ssh/id_ecdsa | ||
819 | ~/.ssh/id_ed25519 | ||
820 | ~/.ssh/id_rsa | ||
821 | Contains the private key for authentication. These files contain | ||
822 | sensitive data and should be readable by the user but not | ||
823 | accessible by others (read/write/execute). ssh will simply | ||
824 | ignore a private key file if it is accessible by others. It is | ||
825 | possible to specify a passphrase when generating the key which | ||
826 | will be used to encrypt the sensitive part of this file using | ||
827 | 3DES. | ||
828 | |||
829 | ~/.ssh/identity.pub | ||
830 | ~/.ssh/id_dsa.pub | ||
831 | ~/.ssh/id_ecdsa.pub | ||
832 | ~/.ssh/id_ed25519.pub | ||
833 | ~/.ssh/id_rsa.pub | ||
834 | Contains the public key for authentication. These files are not | ||
835 | sensitive and can (but need not) be readable by anyone. | ||
836 | |||
837 | ~/.ssh/known_hosts | ||
838 | Contains a list of host keys for all hosts the user has logged | ||
839 | into that are not already in the systemwide list of known host | ||
840 | keys. See sshd(8) for further details of the format of this | ||
841 | file. | ||
842 | |||
843 | ~/.ssh/rc | ||
844 | Commands in this file are executed by ssh when the user logs in, | ||
845 | just before the user's shell (or command) is started. See the | ||
846 | sshd(8) manual page for more information. | ||
847 | |||
848 | /etc/hosts.equiv | ||
849 | This file is for host-based authentication (see above). It | ||
850 | should only be writable by root. | ||
851 | |||
852 | /etc/shosts.equiv | ||
853 | This file is used in exactly the same way as hosts.equiv, but | ||
854 | allows host-based authentication without permitting login with | ||
855 | rlogin/rsh. | ||
856 | |||
857 | /etc/ssh/ssh_config | ||
858 | Systemwide configuration file. The file format and configuration | ||
859 | options are described in ssh_config(5). | ||
860 | |||
861 | /etc/ssh/ssh_host_key | ||
862 | /etc/ssh/ssh_host_dsa_key | ||
863 | /etc/ssh/ssh_host_ecdsa_key | ||
864 | /etc/ssh/ssh_host_ed25519_key | ||
865 | /etc/ssh/ssh_host_rsa_key | ||
866 | These files contain the private parts of the host keys and are | ||
867 | used for host-based authentication. If protocol version 1 is | ||
868 | used, ssh must be setuid root, since the host key is readable | ||
869 | only by root. For protocol version 2, ssh uses ssh-keysign(8) to | ||
870 | access the host keys, eliminating the requirement that ssh be | ||
871 | setuid root when host-based authentication is used. By default | ||
872 | ssh is not setuid root. | ||
873 | |||
874 | /etc/ssh/ssh_known_hosts | ||
875 | Systemwide list of known host keys. This file should be prepared | ||
876 | by the system administrator to contain the public host keys of | ||
877 | all machines in the organization. It should be world-readable. | ||
878 | See sshd(8) for further details of the format of this file. | ||
879 | |||
880 | /etc/ssh/sshrc | ||
881 | Commands in this file are executed by ssh when the user logs in, | ||
882 | just before the user's shell (or command) is started. See the | ||
883 | sshd(8) manual page for more information. | ||
884 | |||
885 | EXIT STATUS | ||
886 | ssh exits with the exit status of the remote command or with 255 if an | ||
887 | error occurred. | ||
888 | |||
889 | SEE ALSO | ||
890 | scp(1), sftp(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), ssh-keyscan(1), | ||
891 | tun(4), ssh_config(5), ssh-keysign(8), sshd(8) | ||
892 | |||
893 | STANDARDS | ||
894 | S. Lehtinen and C. Lonvick, The Secure Shell (SSH) Protocol Assigned | ||
895 | Numbers, RFC 4250, January 2006. | ||
896 | |||
897 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Protocol Architecture, | ||
898 | RFC 4251, January 2006. | ||
899 | |||
900 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Authentication Protocol, | ||
901 | RFC 4252, January 2006. | ||
902 | |||
903 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Transport Layer | ||
904 | Protocol, RFC 4253, January 2006. | ||
905 | |||
906 | T. Ylonen and C. Lonvick, The Secure Shell (SSH) Connection Protocol, RFC | ||
907 | 4254, January 2006. | ||
908 | |||
909 | J. Schlyter and W. Griffin, Using DNS to Securely Publish Secure Shell | ||
910 | (SSH) Key Fingerprints, RFC 4255, January 2006. | ||
911 | |||
912 | F. Cusack and M. Forssen, Generic Message Exchange Authentication for the | ||
913 | Secure Shell Protocol (SSH), RFC 4256, January 2006. | ||
914 | |||
915 | J. Galbraith and P. Remaker, The Secure Shell (SSH) Session Channel Break | ||
916 | Extension, RFC 4335, January 2006. | ||
917 | |||
918 | M. Bellare, T. Kohno, and C. Namprempre, The Secure Shell (SSH) Transport | ||
919 | Layer Encryption Modes, RFC 4344, January 2006. | ||
920 | |||
921 | B. Harris, Improved Arcfour Modes for the Secure Shell (SSH) Transport | ||
922 | Layer Protocol, RFC 4345, January 2006. | ||
923 | |||
924 | M. Friedl, N. Provos, and W. Simpson, Diffie-Hellman Group Exchange for | ||
925 | the Secure Shell (SSH) Transport Layer Protocol, RFC 4419, March 2006. | ||
926 | |||
927 | J. Galbraith and R. Thayer, The Secure Shell (SSH) Public Key File | ||
928 | Format, RFC 4716, November 2006. | ||
929 | |||
930 | D. Stebila and J. Green, Elliptic Curve Algorithm Integration in the | ||
931 | Secure Shell Transport Layer, RFC 5656, December 2009. | ||
932 | |||
933 | A. Perrig and D. Song, Hash Visualization: a New Technique to improve | ||
934 | Real-World Security, 1999, International Workshop on Cryptographic | ||
935 | Techniques and E-Commerce (CrypTEC '99). | ||
936 | |||
937 | AUTHORS | ||
938 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
939 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
940 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
941 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
942 | versions 1.5 and 2.0. | ||
943 | |||
944 | OpenBSD 5.6 July 24, 2014 OpenBSD 5.6 | ||
diff --git a/ssh_config.0 b/ssh_config.0 new file mode 100644 index 000000000..c40ce5f08 --- /dev/null +++ b/ssh_config.0 | |||
@@ -0,0 +1,930 @@ | |||
1 | SSH_CONFIG(5) File Formats Manual SSH_CONFIG(5) | ||
2 | |||
3 | NAME | ||
4 | ssh_config - OpenSSH SSH client configuration files | ||
5 | |||
6 | SYNOPSIS | ||
7 | ~/.ssh/config | ||
8 | /etc/ssh/ssh_config | ||
9 | |||
10 | DESCRIPTION | ||
11 | ssh(1) obtains configuration data from the following sources in the | ||
12 | following order: | ||
13 | |||
14 | 1. command-line options | ||
15 | 2. user's configuration file (~/.ssh/config) | ||
16 | 3. system-wide configuration file (/etc/ssh/ssh_config) | ||
17 | |||
18 | For each parameter, the first obtained value will be used. The | ||
19 | configuration files contain sections separated by ``Host'' | ||
20 | specifications, and that section is only applied for hosts that match one | ||
21 | of the patterns given in the specification. The matched host name is the | ||
22 | one given on the command line. | ||
23 | |||
24 | Since the first obtained value for each parameter is used, more host- | ||
25 | specific declarations should be given near the beginning of the file, and | ||
26 | general defaults at the end. | ||
27 | |||
28 | The configuration file has the following format: | ||
29 | |||
30 | Empty lines and lines starting with `#' are comments. Otherwise a line | ||
31 | is of the format ``keyword arguments''. Configuration options may be | ||
32 | separated by whitespace or optional whitespace and exactly one `='; the | ||
33 | latter format is useful to avoid the need to quote whitespace when | ||
34 | specifying configuration options using the ssh, scp, and sftp -o option. | ||
35 | Arguments may optionally be enclosed in double quotes (") in order to | ||
36 | represent arguments containing spaces. | ||
37 | |||
38 | The possible keywords and their meanings are as follows (note that | ||
39 | keywords are case-insensitive and arguments are case-sensitive): | ||
40 | |||
41 | Host Restricts the following declarations (up to the next Host or | ||
42 | Match keyword) to be only for those hosts that match one of the | ||
43 | patterns given after the keyword. If more than one pattern is | ||
44 | provided, they should be separated by whitespace. A single `*' | ||
45 | as a pattern can be used to provide global defaults for all | ||
46 | hosts. The host is the hostname argument given on the command | ||
47 | line (i.e. the name is not converted to a canonicalized host name | ||
48 | before matching). | ||
49 | |||
50 | A pattern entry may be negated by prefixing it with an | ||
51 | exclamation mark (`!'). If a negated entry is matched, then the | ||
52 | Host entry is ignored, regardless of whether any other patterns | ||
53 | on the line match. Negated matches are therefore useful to | ||
54 | provide exceptions for wildcard matches. | ||
55 | |||
56 | See PATTERNS for more information on patterns. | ||
57 | |||
58 | Match Restricts the following declarations (up to the next Host or | ||
59 | Match keyword) to be used only when the conditions following the | ||
60 | Match keyword are satisfied. Match conditions are specified | ||
61 | using one or more keyword/criteria pairs or the single token all | ||
62 | which matches all criteria. The available keywords are: exec, | ||
63 | host, originalhost, user, and localuser. | ||
64 | |||
65 | The exec keyword executes the specified command under the user's | ||
66 | shell. If the command returns a zero exit status then the | ||
67 | condition is considered true. Commands containing whitespace | ||
68 | characters must be quoted. The following character sequences in | ||
69 | the command will be expanded prior to execution: `%L' will be | ||
70 | substituted by the first component of the local host name, `%l' | ||
71 | will be substituted by the local host name (including any domain | ||
72 | name), `%h' will be substituted by the target host name, `%n' | ||
73 | will be substituted by the original target host name specified on | ||
74 | the command-line, `%p' the destination port, `%r' by the remote | ||
75 | login username, and `%u' by the username of the user running | ||
76 | ssh(1). | ||
77 | |||
78 | The other keywords' criteria must be single entries or comma- | ||
79 | separated lists and may use the wildcard and negation operators | ||
80 | described in the PATTERNS section. The criteria for the host | ||
81 | keyword are matched against the target hostname, after any | ||
82 | substitution by the Hostname option. The originalhost keyword | ||
83 | matches against the hostname as it was specified on the command- | ||
84 | line. The user keyword matches against the target username on | ||
85 | the remote host. The localuser keyword matches against the name | ||
86 | of the local user running ssh(1) (this keyword may be useful in | ||
87 | system-wide ssh_config files). | ||
88 | |||
89 | AddressFamily | ||
90 | Specifies which address family to use when connecting. Valid | ||
91 | arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6'' | ||
92 | (use IPv6 only). | ||
93 | |||
94 | BatchMode | ||
95 | If set to ``yes'', passphrase/password querying will be disabled. | ||
96 | This option is useful in scripts and other batch jobs where no | ||
97 | user is present to supply the password. The argument must be | ||
98 | ``yes'' or ``no''. The default is ``no''. | ||
99 | |||
100 | BindAddress | ||
101 | Use the specified address on the local machine as the source | ||
102 | address of the connection. Only useful on systems with more than | ||
103 | one address. Note that this option does not work if | ||
104 | UsePrivilegedPort is set to ``yes''. | ||
105 | |||
106 | CanonicalDomains | ||
107 | When CanonicalizeHostname is enabled, this option specifies the | ||
108 | list of domain suffixes in which to search for the specified | ||
109 | destination host. | ||
110 | |||
111 | CanonicalizeFallbackLocal | ||
112 | Specifies whether to fail with an error when hostname | ||
113 | canonicalization fails. The default, ``yes'', will attempt to | ||
114 | look up the unqualified hostname using the system resolver's | ||
115 | search rules. A value of ``no'' will cause ssh(1) to fail | ||
116 | instantly if CanonicalizeHostname is enabled and the target | ||
117 | hostname cannot be found in any of the domains specified by | ||
118 | CanonicalDomains. | ||
119 | |||
120 | CanonicalizeHostname | ||
121 | Controls whether explicit hostname canonicalization is performed. | ||
122 | The default, ``no'', is not to perform any name rewriting and let | ||
123 | the system resolver handle all hostname lookups. If set to | ||
124 | ``yes'' then, for connections that do not use a ProxyCommand, | ||
125 | ssh(1) will attempt to canonicalize the hostname specified on the | ||
126 | command line using the CanonicalDomains suffixes and | ||
127 | CanonicalizePermittedCNAMEs rules. If CanonicalizeHostname is | ||
128 | set to ``always'', then canonicalization is applied to proxied | ||
129 | connections too. | ||
130 | |||
131 | If this option is enabled and canonicalisation results in the | ||
132 | target hostname changing, then the configuration files are | ||
133 | processed again using the new target name to pick up any new | ||
134 | configuration in matching Host stanzas. | ||
135 | |||
136 | CanonicalizeMaxDots | ||
137 | Specifies the maximum number of dot characters in a hostname | ||
138 | before canonicalization is disabled. The default, ``1'', allows | ||
139 | a single dot (i.e. hostname.subdomain). | ||
140 | |||
141 | CanonicalizePermittedCNAMEs | ||
142 | Specifies rules to determine whether CNAMEs should be followed | ||
143 | when canonicalizing hostnames. The rules consist of one or more | ||
144 | arguments of source_domain_list:target_domain_list, where | ||
145 | source_domain_list is a pattern-list of domains that may follow | ||
146 | CNAMEs in canonicalization, and target_domain_list is a pattern- | ||
147 | list of domains that they may resolve to. | ||
148 | |||
149 | For example, ``*.a.example.com:*.b.example.com,*.c.example.com'' | ||
150 | will allow hostnames matching ``*.a.example.com'' to be | ||
151 | canonicalized to names in the ``*.b.example.com'' or | ||
152 | ``*.c.example.com'' domains. | ||
153 | |||
154 | ChallengeResponseAuthentication | ||
155 | Specifies whether to use challenge-response authentication. The | ||
156 | argument to this keyword must be ``yes'' or ``no''. The default | ||
157 | is ``yes''. | ||
158 | |||
159 | CheckHostIP | ||
160 | If this flag is set to ``yes'', ssh(1) will additionally check | ||
161 | the host IP address in the known_hosts file. This allows ssh to | ||
162 | detect if a host key changed due to DNS spoofing. If the option | ||
163 | is set to ``no'', the check will not be executed. The default is | ||
164 | ``yes''. | ||
165 | |||
166 | Cipher Specifies the cipher to use for encrypting the session in | ||
167 | protocol version 1. Currently, ``blowfish'', ``3des'', and | ||
168 | ``des'' are supported. des is only supported in the ssh(1) | ||
169 | client for interoperability with legacy protocol 1 | ||
170 | implementations that do not support the 3des cipher. Its use is | ||
171 | strongly discouraged due to cryptographic weaknesses. The | ||
172 | default is ``3des''. | ||
173 | |||
174 | Ciphers | ||
175 | Specifies the ciphers allowed for protocol version 2 in order of | ||
176 | preference. Multiple ciphers must be comma-separated. The | ||
177 | supported ciphers are: | ||
178 | |||
179 | 3des-cbc | ||
180 | aes128-cbc | ||
181 | aes192-cbc | ||
182 | aes256-cbc | ||
183 | aes128-ctr | ||
184 | aes192-ctr | ||
185 | aes256-ctr | ||
186 | aes128-gcm@openssh.com | ||
187 | aes256-gcm@openssh.com | ||
188 | arcfour | ||
189 | arcfour128 | ||
190 | arcfour256 | ||
191 | blowfish-cbc | ||
192 | cast128-cbc | ||
193 | chacha20-poly1305@openssh.com | ||
194 | |||
195 | The default is: | ||
196 | |||
197 | aes128-ctr,aes192-ctr,aes256-ctr, | ||
198 | aes128-gcm@openssh.com,aes256-gcm@openssh.com, | ||
199 | chacha20-poly1305@openssh.com, | ||
200 | arcfour256,arcfour128, | ||
201 | aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc, | ||
202 | aes192-cbc,aes256-cbc,arcfour | ||
203 | |||
204 | The list of available ciphers may also be obtained using the -Q | ||
205 | option of ssh(1). | ||
206 | |||
207 | ClearAllForwardings | ||
208 | Specifies that all local, remote, and dynamic port forwardings | ||
209 | specified in the configuration files or on the command line be | ||
210 | cleared. This option is primarily useful when used from the | ||
211 | ssh(1) command line to clear port forwardings set in | ||
212 | configuration files, and is automatically set by scp(1) and | ||
213 | sftp(1). The argument must be ``yes'' or ``no''. The default is | ||
214 | ``no''. | ||
215 | |||
216 | Compression | ||
217 | Specifies whether to use compression. The argument must be | ||
218 | ``yes'' or ``no''. The default is ``no''. | ||
219 | |||
220 | CompressionLevel | ||
221 | Specifies the compression level to use if compression is enabled. | ||
222 | The argument must be an integer from 1 (fast) to 9 (slow, best). | ||
223 | The default level is 6, which is good for most applications. The | ||
224 | meaning of the values is the same as in gzip(1). Note that this | ||
225 | option applies to protocol version 1 only. | ||
226 | |||
227 | ConnectionAttempts | ||
228 | Specifies the number of tries (one per second) to make before | ||
229 | exiting. The argument must be an integer. This may be useful in | ||
230 | scripts if the connection sometimes fails. The default is 1. | ||
231 | |||
232 | ConnectTimeout | ||
233 | Specifies the timeout (in seconds) used when connecting to the | ||
234 | SSH server, instead of using the default system TCP timeout. | ||
235 | This value is used only when the target is down or really | ||
236 | unreachable, not when it refuses the connection. | ||
237 | |||
238 | ControlMaster | ||
239 | Enables the sharing of multiple sessions over a single network | ||
240 | connection. When set to ``yes'', ssh(1) will listen for | ||
241 | connections on a control socket specified using the ControlPath | ||
242 | argument. Additional sessions can connect to this socket using | ||
243 | the same ControlPath with ControlMaster set to ``no'' (the | ||
244 | default). These sessions will try to reuse the master instance's | ||
245 | network connection rather than initiating new ones, but will fall | ||
246 | back to connecting normally if the control socket does not exist, | ||
247 | or is not listening. | ||
248 | |||
249 | Setting this to ``ask'' will cause ssh to listen for control | ||
250 | connections, but require confirmation using the SSH_ASKPASS | ||
251 | program before they are accepted (see ssh-add(1) for details). | ||
252 | If the ControlPath cannot be opened, ssh will continue without | ||
253 | connecting to a master instance. | ||
254 | |||
255 | X11 and ssh-agent(1) forwarding is supported over these | ||
256 | multiplexed connections, however the display and agent forwarded | ||
257 | will be the one belonging to the master connection i.e. it is not | ||
258 | possible to forward multiple displays or agents. | ||
259 | |||
260 | Two additional options allow for opportunistic multiplexing: try | ||
261 | to use a master connection but fall back to creating a new one if | ||
262 | one does not already exist. These options are: ``auto'' and | ||
263 | ``autoask''. The latter requires confirmation like the ``ask'' | ||
264 | option. | ||
265 | |||
266 | ControlPath | ||
267 | Specify the path to the control socket used for connection | ||
268 | sharing as described in the ControlMaster section above or the | ||
269 | string ``none'' to disable connection sharing. In the path, `%L' | ||
270 | will be substituted by the first component of the local host | ||
271 | name, `%l' will be substituted by the local host name (including | ||
272 | any domain name), `%h' will be substituted by the target host | ||
273 | name, `%n' will be substituted by the original target host name | ||
274 | specified on the command line, `%p' the destination port, `%r' by | ||
275 | the remote login username, `%u' by the username of the user | ||
276 | running ssh(1), and `%C' by a hash of the concatenation: | ||
277 | %l%h%p%r. It is recommended that any ControlPath used for | ||
278 | opportunistic connection sharing include at least %h, %p, and %r | ||
279 | (or alternatively %C). This ensures that shared connections are | ||
280 | uniquely identified. | ||
281 | |||
282 | ControlPersist | ||
283 | When used in conjunction with ControlMaster, specifies that the | ||
284 | master connection should remain open in the background (waiting | ||
285 | for future client connections) after the initial client | ||
286 | connection has been closed. If set to ``no'', then the master | ||
287 | connection will not be placed into the background, and will close | ||
288 | as soon as the initial client connection is closed. If set to | ||
289 | ``yes'', then the master connection will remain in the background | ||
290 | indefinitely (until killed or closed via a mechanism such as the | ||
291 | ssh(1) ``-O exit'' option). If set to a time in seconds, or a | ||
292 | time in any of the formats documented in sshd_config(5), then the | ||
293 | backgrounded master connection will automatically terminate after | ||
294 | it has remained idle (with no client connections) for the | ||
295 | specified time. | ||
296 | |||
297 | DynamicForward | ||
298 | Specifies that a TCP port on the local machine be forwarded over | ||
299 | the secure channel, and the application protocol is then used to | ||
300 | determine where to connect to from the remote machine. | ||
301 | |||
302 | The argument must be [bind_address:]port. IPv6 addresses can be | ||
303 | specified by enclosing addresses in square brackets. By default, | ||
304 | the local port is bound in accordance with the GatewayPorts | ||
305 | setting. However, an explicit bind_address may be used to bind | ||
306 | the connection to a specific address. The bind_address of | ||
307 | ``localhost'' indicates that the listening port be bound for | ||
308 | local use only, while an empty address or `*' indicates that the | ||
309 | port should be available from all interfaces. | ||
310 | |||
311 | Currently the SOCKS4 and SOCKS5 protocols are supported, and | ||
312 | ssh(1) will act as a SOCKS server. Multiple forwardings may be | ||
313 | specified, and additional forwardings can be given on the command | ||
314 | line. Only the superuser can forward privileged ports. | ||
315 | |||
316 | EnableSSHKeysign | ||
317 | Setting this option to ``yes'' in the global client configuration | ||
318 | file /etc/ssh/ssh_config enables the use of the helper program | ||
319 | ssh-keysign(8) during HostbasedAuthentication. The argument must | ||
320 | be ``yes'' or ``no''. The default is ``no''. This option should | ||
321 | be placed in the non-hostspecific section. See ssh-keysign(8) | ||
322 | for more information. | ||
323 | |||
324 | EscapeChar | ||
325 | Sets the escape character (default: `~'). The escape character | ||
326 | can also be set on the command line. The argument should be a | ||
327 | single character, `^' followed by a letter, or ``none'' to | ||
328 | disable the escape character entirely (making the connection | ||
329 | transparent for binary data). | ||
330 | |||
331 | ExitOnForwardFailure | ||
332 | Specifies whether ssh(1) should terminate the connection if it | ||
333 | cannot set up all requested dynamic, tunnel, local, and remote | ||
334 | port forwardings. The argument must be ``yes'' or ``no''. The | ||
335 | default is ``no''. | ||
336 | |||
337 | ForwardAgent | ||
338 | Specifies whether the connection to the authentication agent (if | ||
339 | any) will be forwarded to the remote machine. The argument must | ||
340 | be ``yes'' or ``no''. The default is ``no''. | ||
341 | |||
342 | Agent forwarding should be enabled with caution. Users with the | ||
343 | ability to bypass file permissions on the remote host (for the | ||
344 | agent's Unix-domain socket) can access the local agent through | ||
345 | the forwarded connection. An attacker cannot obtain key material | ||
346 | from the agent, however they can perform operations on the keys | ||
347 | that enable them to authenticate using the identities loaded into | ||
348 | the agent. | ||
349 | |||
350 | ForwardX11 | ||
351 | Specifies whether X11 connections will be automatically | ||
352 | redirected over the secure channel and DISPLAY set. The argument | ||
353 | must be ``yes'' or ``no''. The default is ``no''. | ||
354 | |||
355 | X11 forwarding should be enabled with caution. Users with the | ||
356 | ability to bypass file permissions on the remote host (for the | ||
357 | user's X11 authorization database) can access the local X11 | ||
358 | display through the forwarded connection. An attacker may then | ||
359 | be able to perform activities such as keystroke monitoring if the | ||
360 | ForwardX11Trusted option is also enabled. | ||
361 | |||
362 | ForwardX11Timeout | ||
363 | Specify a timeout for untrusted X11 forwarding using the format | ||
364 | described in the TIME FORMATS section of sshd_config(5). X11 | ||
365 | connections received by ssh(1) after this time will be refused. | ||
366 | The default is to disable untrusted X11 forwarding after twenty | ||
367 | minutes has elapsed. | ||
368 | |||
369 | ForwardX11Trusted | ||
370 | If this option is set to ``yes'', remote X11 clients will have | ||
371 | full access to the original X11 display. | ||
372 | |||
373 | If this option is set to ``no'', remote X11 clients will be | ||
374 | considered untrusted and prevented from stealing or tampering | ||
375 | with data belonging to trusted X11 clients. Furthermore, the | ||
376 | xauth(1) token used for the session will be set to expire after | ||
377 | 20 minutes. Remote clients will be refused access after this | ||
378 | time. | ||
379 | |||
380 | The default is ``no''. | ||
381 | |||
382 | See the X11 SECURITY extension specification for full details on | ||
383 | the restrictions imposed on untrusted clients. | ||
384 | |||
385 | GatewayPorts | ||
386 | Specifies whether remote hosts are allowed to connect to local | ||
387 | forwarded ports. By default, ssh(1) binds local port forwardings | ||
388 | to the loopback address. This prevents other remote hosts from | ||
389 | connecting to forwarded ports. GatewayPorts can be used to | ||
390 | specify that ssh should bind local port forwardings to the | ||
391 | wildcard address, thus allowing remote hosts to connect to | ||
392 | forwarded ports. The argument must be ``yes'' or ``no''. The | ||
393 | default is ``no''. | ||
394 | |||
395 | GlobalKnownHostsFile | ||
396 | Specifies one or more files to use for the global host key | ||
397 | database, separated by whitespace. The default is | ||
398 | /etc/ssh/ssh_known_hosts, /etc/ssh/ssh_known_hosts2. | ||
399 | |||
400 | GSSAPIAuthentication | ||
401 | Specifies whether user authentication based on GSSAPI is allowed. | ||
402 | The default is ``no''. Note that this option applies to protocol | ||
403 | version 2 only. | ||
404 | |||
405 | GSSAPIDelegateCredentials | ||
406 | Forward (delegate) credentials to the server. The default is | ||
407 | ``no''. Note that this option applies to protocol version 2 | ||
408 | only. | ||
409 | |||
410 | HashKnownHosts | ||
411 | Indicates that ssh(1) should hash host names and addresses when | ||
412 | they are added to ~/.ssh/known_hosts. These hashed names may be | ||
413 | used normally by ssh(1) and sshd(8), but they do not reveal | ||
414 | identifying information should the file's contents be disclosed. | ||
415 | The default is ``no''. Note that existing names and addresses in | ||
416 | known hosts files will not be converted automatically, but may be | ||
417 | manually hashed using ssh-keygen(1). | ||
418 | |||
419 | HostbasedAuthentication | ||
420 | Specifies whether to try rhosts based authentication with public | ||
421 | key authentication. The argument must be ``yes'' or ``no''. The | ||
422 | default is ``no''. This option applies to protocol version 2 | ||
423 | only and is similar to RhostsRSAAuthentication. | ||
424 | |||
425 | HostKeyAlgorithms | ||
426 | Specifies the protocol version 2 host key algorithms that the | ||
427 | client wants to use in order of preference. The default for this | ||
428 | option is: | ||
429 | |||
430 | ecdsa-sha2-nistp256-cert-v01@openssh.com, | ||
431 | ecdsa-sha2-nistp384-cert-v01@openssh.com, | ||
432 | ecdsa-sha2-nistp521-cert-v01@openssh.com, | ||
433 | ssh-ed25519-cert-v01@openssh.com, | ||
434 | ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com, | ||
435 | ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com, | ||
436 | ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521, | ||
437 | ssh-ed25519,ssh-rsa,ssh-dss | ||
438 | |||
439 | If hostkeys are known for the destination host then this default | ||
440 | is modified to prefer their algorithms. | ||
441 | |||
442 | HostKeyAlias | ||
443 | Specifies an alias that should be used instead of the real host | ||
444 | name when looking up or saving the host key in the host key | ||
445 | database files. This option is useful for tunneling SSH | ||
446 | connections or for multiple servers running on a single host. | ||
447 | |||
448 | HostName | ||
449 | Specifies the real host name to log into. This can be used to | ||
450 | specify nicknames or abbreviations for hosts. If the hostname | ||
451 | contains the character sequence `%h', then this will be replaced | ||
452 | with the host name specified on the command line (this is useful | ||
453 | for manipulating unqualified names). The character sequence `%%' | ||
454 | will be replaced by a single `%' character, which may be used | ||
455 | when specifying IPv6 link-local addresses. | ||
456 | |||
457 | The default is the name given on the command line. Numeric IP | ||
458 | addresses are also permitted (both on the command line and in | ||
459 | HostName specifications). | ||
460 | |||
461 | IdentitiesOnly | ||
462 | Specifies that ssh(1) should only use the authentication identity | ||
463 | files configured in the ssh_config files, even if ssh-agent(1) or | ||
464 | a PKCS11Provider offers more identities. The argument to this | ||
465 | keyword must be ``yes'' or ``no''. This option is intended for | ||
466 | situations where ssh-agent offers many different identities. The | ||
467 | default is ``no''. | ||
468 | |||
469 | IdentityFile | ||
470 | Specifies a file from which the user's DSA, ECDSA, ED25519 or RSA | ||
471 | authentication identity is read. The default is ~/.ssh/identity | ||
472 | for protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, | ||
473 | ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2. | ||
474 | Additionally, any identities represented by the authentication | ||
475 | agent will be used for authentication unless IdentitiesOnly is | ||
476 | set. ssh(1) will try to load certificate information from the | ||
477 | filename obtained by appending -cert.pub to the path of a | ||
478 | specified IdentityFile. | ||
479 | |||
480 | The file name may use the tilde syntax to refer to a user's home | ||
481 | directory or one of the following escape characters: `%d' (local | ||
482 | user's home directory), `%u' (local user name), `%l' (local host | ||
483 | name), `%h' (remote host name) or `%r' (remote user name). | ||
484 | |||
485 | It is possible to have multiple identity files specified in | ||
486 | configuration files; all these identities will be tried in | ||
487 | sequence. Multiple IdentityFile directives will add to the list | ||
488 | of identities tried (this behaviour differs from that of other | ||
489 | configuration directives). | ||
490 | |||
491 | IdentityFile may be used in conjunction with IdentitiesOnly to | ||
492 | select which identities in an agent are offered during | ||
493 | authentication. | ||
494 | |||
495 | IgnoreUnknown | ||
496 | Specifies a pattern-list of unknown options to be ignored if they | ||
497 | are encountered in configuration parsing. This may be used to | ||
498 | suppress errors if ssh_config contains options that are | ||
499 | unrecognised by ssh(1). It is recommended that IgnoreUnknown be | ||
500 | listed early in the configuration file as it will not be applied | ||
501 | to unknown options that appear before it. | ||
502 | |||
503 | IPQoS Specifies the IPv4 type-of-service or DSCP class for connections. | ||
504 | Accepted values are ``af11'', ``af12'', ``af13'', ``af21'', | ||
505 | ``af22'', ``af23'', ``af31'', ``af32'', ``af33'', ``af41'', | ||
506 | ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'', ``cs4'', | ||
507 | ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'', ``throughput'', | ||
508 | ``reliability'', or a numeric value. This option may take one or | ||
509 | two arguments, separated by whitespace. If one argument is | ||
510 | specified, it is used as the packet class unconditionally. If | ||
511 | two values are specified, the first is automatically selected for | ||
512 | interactive sessions and the second for non-interactive sessions. | ||
513 | The default is ``lowdelay'' for interactive sessions and | ||
514 | ``throughput'' for non-interactive sessions. | ||
515 | |||
516 | KbdInteractiveAuthentication | ||
517 | Specifies whether to use keyboard-interactive authentication. | ||
518 | The argument to this keyword must be ``yes'' or ``no''. The | ||
519 | default is ``yes''. | ||
520 | |||
521 | KbdInteractiveDevices | ||
522 | Specifies the list of methods to use in keyboard-interactive | ||
523 | authentication. Multiple method names must be comma-separated. | ||
524 | The default is to use the server specified list. The methods | ||
525 | available vary depending on what the server supports. For an | ||
526 | OpenSSH server, it may be zero or more of: ``bsdauth'', ``pam'', | ||
527 | and ``skey''. | ||
528 | |||
529 | KexAlgorithms | ||
530 | Specifies the available KEX (Key Exchange) algorithms. Multiple | ||
531 | algorithms must be comma-separated. The default is: | ||
532 | |||
533 | curve25519-sha256@libssh.org, | ||
534 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, | ||
535 | diffie-hellman-group-exchange-sha256, | ||
536 | diffie-hellman-group14-sha1, | ||
537 | diffie-hellman-group-exchange-sha1, | ||
538 | diffie-hellman-group1-sha1 | ||
539 | |||
540 | LocalCommand | ||
541 | Specifies a command to execute on the local machine after | ||
542 | successfully connecting to the server. The command string | ||
543 | extends to the end of the line, and is executed with the user's | ||
544 | shell. The following escape character substitutions will be | ||
545 | performed: `%d' (local user's home directory), `%h' (remote host | ||
546 | name), `%l' (local host name), `%n' (host name as provided on the | ||
547 | command line), `%p' (remote port), `%r' (remote user name) or | ||
548 | `%u' (local user name) or `%C' by a hash of the concatenation: | ||
549 | %l%h%p%r. | ||
550 | |||
551 | The command is run synchronously and does not have access to the | ||
552 | session of the ssh(1) that spawned it. It should not be used for | ||
553 | interactive commands. | ||
554 | |||
555 | This directive is ignored unless PermitLocalCommand has been | ||
556 | enabled. | ||
557 | |||
558 | LocalForward | ||
559 | Specifies that a TCP port on the local machine be forwarded over | ||
560 | the secure channel to the specified host and port from the remote | ||
561 | machine. The first argument must be [bind_address:]port and the | ||
562 | second argument must be host:hostport. IPv6 addresses can be | ||
563 | specified by enclosing addresses in square brackets. Multiple | ||
564 | forwardings may be specified, and additional forwardings can be | ||
565 | given on the command line. Only the superuser can forward | ||
566 | privileged ports. By default, the local port is bound in | ||
567 | accordance with the GatewayPorts setting. However, an explicit | ||
568 | bind_address may be used to bind the connection to a specific | ||
569 | address. The bind_address of ``localhost'' indicates that the | ||
570 | listening port be bound for local use only, while an empty | ||
571 | address or `*' indicates that the port should be available from | ||
572 | all interfaces. | ||
573 | |||
574 | LogLevel | ||
575 | Gives the verbosity level that is used when logging messages from | ||
576 | ssh(1). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
577 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
578 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
579 | higher levels of verbose output. | ||
580 | |||
581 | MACs Specifies the MAC (message authentication code) algorithms in | ||
582 | order of preference. The MAC algorithm is used in protocol | ||
583 | version 2 for data integrity protection. Multiple algorithms | ||
584 | must be comma-separated. The algorithms that contain ``-etm'' | ||
585 | calculate the MAC after encryption (encrypt-then-mac). These are | ||
586 | considered safer and their use recommended. The default is: | ||
587 | |||
588 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, | ||
589 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, | ||
590 | umac-64@openssh.com,umac-128@openssh.com, | ||
591 | hmac-sha2-256,hmac-sha2-512, | ||
592 | hmac-md5-etm@openssh.com,hmac-sha1-etm@openssh.com, | ||
593 | hmac-ripemd160-etm@openssh.com, | ||
594 | hmac-sha1-96-etm@openssh.com,hmac-md5-96-etm@openssh.com, | ||
595 | hmac-md5,hmac-sha1,hmac-ripemd160, | ||
596 | hmac-sha1-96,hmac-md5-96 | ||
597 | |||
598 | NoHostAuthenticationForLocalhost | ||
599 | This option can be used if the home directory is shared across | ||
600 | machines. In this case localhost will refer to a different | ||
601 | machine on each of the machines and the user will get many | ||
602 | warnings about changed host keys. However, this option disables | ||
603 | host authentication for localhost. The argument to this keyword | ||
604 | must be ``yes'' or ``no''. The default is to check the host key | ||
605 | for localhost. | ||
606 | |||
607 | NumberOfPasswordPrompts | ||
608 | Specifies the number of password prompts before giving up. The | ||
609 | argument to this keyword must be an integer. The default is 3. | ||
610 | |||
611 | PasswordAuthentication | ||
612 | Specifies whether to use password authentication. The argument | ||
613 | to this keyword must be ``yes'' or ``no''. The default is | ||
614 | ``yes''. | ||
615 | |||
616 | PermitLocalCommand | ||
617 | Allow local command execution via the LocalCommand option or | ||
618 | using the !command escape sequence in ssh(1). The argument must | ||
619 | be ``yes'' or ``no''. The default is ``no''. | ||
620 | |||
621 | PKCS11Provider | ||
622 | Specifies which PKCS#11 provider to use. The argument to this | ||
623 | keyword is the PKCS#11 shared library ssh(1) should use to | ||
624 | communicate with a PKCS#11 token providing the user's private RSA | ||
625 | key. | ||
626 | |||
627 | Port Specifies the port number to connect on the remote host. The | ||
628 | default is 22. | ||
629 | |||
630 | PreferredAuthentications | ||
631 | Specifies the order in which the client should try protocol 2 | ||
632 | authentication methods. This allows a client to prefer one | ||
633 | method (e.g. keyboard-interactive) over another method (e.g. | ||
634 | password). The default is: | ||
635 | |||
636 | gssapi-with-mic,hostbased,publickey, | ||
637 | keyboard-interactive,password | ||
638 | |||
639 | Protocol | ||
640 | Specifies the protocol versions ssh(1) should support in order of | ||
641 | preference. The possible values are `1' and `2'. Multiple | ||
642 | versions must be comma-separated. When this option is set to | ||
643 | ``2,1'' ssh will try version 2 and fall back to version 1 if | ||
644 | version 2 is not available. The default is `2'. | ||
645 | |||
646 | ProxyCommand | ||
647 | Specifies the command to use to connect to the server. The | ||
648 | command string extends to the end of the line, and is executed | ||
649 | using the user's shell `exec' directive to avoid a lingering | ||
650 | shell process. | ||
651 | |||
652 | In the command string, any occurrence of `%h' will be substituted | ||
653 | by the host name to connect, `%p' by the port, and `%r' by the | ||
654 | remote user name. The command can be basically anything, and | ||
655 | should read from its standard input and write to its standard | ||
656 | output. It should eventually connect an sshd(8) server running | ||
657 | on some machine, or execute sshd -i somewhere. Host key | ||
658 | management will be done using the HostName of the host being | ||
659 | connected (defaulting to the name typed by the user). Setting | ||
660 | the command to ``none'' disables this option entirely. Note that | ||
661 | CheckHostIP is not available for connects with a proxy command. | ||
662 | |||
663 | This directive is useful in conjunction with nc(1) and its proxy | ||
664 | support. For example, the following directive would connect via | ||
665 | an HTTP proxy at 192.0.2.0: | ||
666 | |||
667 | ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p | ||
668 | |||
669 | ProxyUseFdpass | ||
670 | Specifies that ProxyCommand will pass a connected file descriptor | ||
671 | back to ssh(1) instead of continuing to execute and pass data. | ||
672 | The default is ``no''. | ||
673 | |||
674 | PubkeyAuthentication | ||
675 | Specifies whether to try public key authentication. The argument | ||
676 | to this keyword must be ``yes'' or ``no''. The default is | ||
677 | ``yes''. This option applies to protocol version 2 only. | ||
678 | |||
679 | RekeyLimit | ||
680 | Specifies the maximum amount of data that may be transmitted | ||
681 | before the session key is renegotiated, optionally followed a | ||
682 | maximum amount of time that may pass before the session key is | ||
683 | renegotiated. The first argument is specified in bytes and may | ||
684 | have a suffix of `K', `M', or `G' to indicate Kilobytes, | ||
685 | Megabytes, or Gigabytes, respectively. The default is between | ||
686 | `1G' and `4G', depending on the cipher. The optional second | ||
687 | value is specified in seconds and may use any of the units | ||
688 | documented in the TIME FORMATS section of sshd_config(5). The | ||
689 | default value for RekeyLimit is ``default none'', which means | ||
690 | that rekeying is performed after the cipher's default amount of | ||
691 | data has been sent or received and no time based rekeying is | ||
692 | done. This option applies to protocol version 2 only. | ||
693 | |||
694 | RemoteForward | ||
695 | Specifies that a TCP port on the remote machine be forwarded over | ||
696 | the secure channel to the specified host and port from the local | ||
697 | machine. The first argument must be [bind_address:]port and the | ||
698 | second argument must be host:hostport. IPv6 addresses can be | ||
699 | specified by enclosing addresses in square brackets. Multiple | ||
700 | forwardings may be specified, and additional forwardings can be | ||
701 | given on the command line. Privileged ports can be forwarded | ||
702 | only when logging in as root on the remote machine. | ||
703 | |||
704 | If the port argument is `0', the listen port will be dynamically | ||
705 | allocated on the server and reported to the client at run time. | ||
706 | |||
707 | If the bind_address is not specified, the default is to only bind | ||
708 | to loopback addresses. If the bind_address is `*' or an empty | ||
709 | string, then the forwarding is requested to listen on all | ||
710 | interfaces. Specifying a remote bind_address will only succeed | ||
711 | if the server's GatewayPorts option is enabled (see | ||
712 | sshd_config(5)). | ||
713 | |||
714 | RequestTTY | ||
715 | Specifies whether to request a pseudo-tty for the session. The | ||
716 | argument may be one of: ``no'' (never request a TTY), ``yes'' | ||
717 | (always request a TTY when standard input is a TTY), ``force'' | ||
718 | (always request a TTY) or ``auto'' (request a TTY when opening a | ||
719 | login session). This option mirrors the -t and -T flags for | ||
720 | ssh(1). | ||
721 | |||
722 | RhostsRSAAuthentication | ||
723 | Specifies whether to try rhosts based authentication with RSA | ||
724 | host authentication. The argument must be ``yes'' or ``no''. | ||
725 | The default is ``no''. This option applies to protocol version 1 | ||
726 | only and requires ssh(1) to be setuid root. | ||
727 | |||
728 | RSAAuthentication | ||
729 | Specifies whether to try RSA authentication. The argument to | ||
730 | this keyword must be ``yes'' or ``no''. RSA authentication will | ||
731 | only be attempted if the identity file exists, or an | ||
732 | authentication agent is running. The default is ``yes''. Note | ||
733 | that this option applies to protocol version 1 only. | ||
734 | |||
735 | SendEnv | ||
736 | Specifies what variables from the local environ(7) should be sent | ||
737 | to the server. Note that environment passing is only supported | ||
738 | for protocol 2. The server must also support it, and the server | ||
739 | must be configured to accept these environment variables. Refer | ||
740 | to AcceptEnv in sshd_config(5) for how to configure the server. | ||
741 | Variables are specified by name, which may contain wildcard | ||
742 | characters. Multiple environment variables may be separated by | ||
743 | whitespace or spread across multiple SendEnv directives. The | ||
744 | default is not to send any environment variables. | ||
745 | |||
746 | See PATTERNS for more information on patterns. | ||
747 | |||
748 | ServerAliveCountMax | ||
749 | Sets the number of server alive messages (see below) which may be | ||
750 | sent without ssh(1) receiving any messages back from the server. | ||
751 | If this threshold is reached while server alive messages are | ||
752 | being sent, ssh will disconnect from the server, terminating the | ||
753 | session. It is important to note that the use of server alive | ||
754 | messages is very different from TCPKeepAlive (below). The server | ||
755 | alive messages are sent through the encrypted channel and | ||
756 | therefore will not be spoofable. The TCP keepalive option | ||
757 | enabled by TCPKeepAlive is spoofable. The server alive mechanism | ||
758 | is valuable when the client or server depend on knowing when a | ||
759 | connection has become inactive. | ||
760 | |||
761 | The default value is 3. If, for example, ServerAliveInterval | ||
762 | (see below) is set to 15 and ServerAliveCountMax is left at the | ||
763 | default, if the server becomes unresponsive, ssh will disconnect | ||
764 | after approximately 45 seconds. This option applies to protocol | ||
765 | version 2 only. | ||
766 | |||
767 | ServerAliveInterval | ||
768 | Sets a timeout interval in seconds after which if no data has | ||
769 | been received from the server, ssh(1) will send a message through | ||
770 | the encrypted channel to request a response from the server. The | ||
771 | default is 0, indicating that these messages will not be sent to | ||
772 | the server. This option applies to protocol version 2 only. | ||
773 | |||
774 | StreamLocalBindMask | ||
775 | Sets the octal file creation mode mask (umask) used when creating | ||
776 | a Unix-domain socket file for local or remote port forwarding. | ||
777 | This option is only used for port forwarding to a Unix-domain | ||
778 | socket file. | ||
779 | |||
780 | The default value is 0177, which creates a Unix-domain socket | ||
781 | file that is readable and writable only by the owner. Note that | ||
782 | not all operating systems honor the file mode on Unix-domain | ||
783 | socket files. | ||
784 | |||
785 | StreamLocalBindUnlink | ||
786 | Specifies whether to remove an existing Unix-domain socket file | ||
787 | for local or remote port forwarding before creating a new one. | ||
788 | If the socket file already exists and StreamLocalBindUnlink is | ||
789 | not enabled, ssh will be unable to forward the port to the Unix- | ||
790 | domain socket file. This option is only used for port forwarding | ||
791 | to a Unix-domain socket file. | ||
792 | |||
793 | The argument must be ``yes'' or ``no''. The default is ``no''. | ||
794 | |||
795 | StrictHostKeyChecking | ||
796 | If this flag is set to ``yes'', ssh(1) will never automatically | ||
797 | add host keys to the ~/.ssh/known_hosts file, and refuses to | ||
798 | connect to hosts whose host key has changed. This provides | ||
799 | maximum protection against trojan horse attacks, though it can be | ||
800 | annoying when the /etc/ssh/ssh_known_hosts file is poorly | ||
801 | maintained or when connections to new hosts are frequently made. | ||
802 | This option forces the user to manually add all new hosts. If | ||
803 | this flag is set to ``no'', ssh will automatically add new host | ||
804 | keys to the user known hosts files. If this flag is set to | ||
805 | ``ask'', new host keys will be added to the user known host files | ||
806 | only after the user has confirmed that is what they really want | ||
807 | to do, and ssh will refuse to connect to hosts whose host key has | ||
808 | changed. The host keys of known hosts will be verified | ||
809 | automatically in all cases. The argument must be ``yes'', | ||
810 | ``no'', or ``ask''. The default is ``ask''. | ||
811 | |||
812 | TCPKeepAlive | ||
813 | Specifies whether the system should send TCP keepalive messages | ||
814 | to the other side. If they are sent, death of the connection or | ||
815 | crash of one of the machines will be properly noticed. However, | ||
816 | this means that connections will die if the route is down | ||
817 | temporarily, and some people find it annoying. | ||
818 | |||
819 | The default is ``yes'' (to send TCP keepalive messages), and the | ||
820 | client will notice if the network goes down or the remote host | ||
821 | dies. This is important in scripts, and many users want it too. | ||
822 | |||
823 | To disable TCP keepalive messages, the value should be set to | ||
824 | ``no''. | ||
825 | |||
826 | Tunnel Request tun(4) device forwarding between the client and the | ||
827 | server. The argument must be ``yes'', ``point-to-point'' (layer | ||
828 | 3), ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' | ||
829 | requests the default tunnel mode, which is ``point-to-point''. | ||
830 | The default is ``no''. | ||
831 | |||
832 | TunnelDevice | ||
833 | Specifies the tun(4) devices to open on the client (local_tun) | ||
834 | and the server (remote_tun). | ||
835 | |||
836 | The argument must be local_tun[:remote_tun]. The devices may be | ||
837 | specified by numerical ID or the keyword ``any'', which uses the | ||
838 | next available tunnel device. If remote_tun is not specified, it | ||
839 | defaults to ``any''. The default is ``any:any''. | ||
840 | |||
841 | UsePrivilegedPort | ||
842 | Specifies whether to use a privileged port for outgoing | ||
843 | connections. The argument must be ``yes'' or ``no''. The | ||
844 | default is ``no''. If set to ``yes'', ssh(1) must be setuid | ||
845 | root. Note that this option must be set to ``yes'' for | ||
846 | RhostsRSAAuthentication with older servers. | ||
847 | |||
848 | User Specifies the user to log in as. This can be useful when a | ||
849 | different user name is used on different machines. This saves | ||
850 | the trouble of having to remember to give the user name on the | ||
851 | command line. | ||
852 | |||
853 | UserKnownHostsFile | ||
854 | Specifies one or more files to use for the user host key | ||
855 | database, separated by whitespace. The default is | ||
856 | ~/.ssh/known_hosts, ~/.ssh/known_hosts2. | ||
857 | |||
858 | VerifyHostKeyDNS | ||
859 | Specifies whether to verify the remote key using DNS and SSHFP | ||
860 | resource records. If this option is set to ``yes'', the client | ||
861 | will implicitly trust keys that match a secure fingerprint from | ||
862 | DNS. Insecure fingerprints will be handled as if this option was | ||
863 | set to ``ask''. If this option is set to ``ask'', information on | ||
864 | fingerprint match will be displayed, but the user will still need | ||
865 | to confirm new host keys according to the StrictHostKeyChecking | ||
866 | option. The argument must be ``yes'', ``no'', or ``ask''. The | ||
867 | default is ``no''. Note that this option applies to protocol | ||
868 | version 2 only. | ||
869 | |||
870 | See also VERIFYING HOST KEYS in ssh(1). | ||
871 | |||
872 | VisualHostKey | ||
873 | If this flag is set to ``yes'', an ASCII art representation of | ||
874 | the remote host key fingerprint is printed in addition to the hex | ||
875 | fingerprint string at login and for unknown host keys. If this | ||
876 | flag is set to ``no'', no fingerprint strings are printed at | ||
877 | login and only the hex fingerprint string will be printed for | ||
878 | unknown host keys. The default is ``no''. | ||
879 | |||
880 | XAuthLocation | ||
881 | Specifies the full pathname of the xauth(1) program. The default | ||
882 | is /usr/X11R6/bin/xauth. | ||
883 | |||
884 | PATTERNS | ||
885 | A pattern consists of zero or more non-whitespace characters, `*' (a | ||
886 | wildcard that matches zero or more characters), or `?' (a wildcard that | ||
887 | matches exactly one character). For example, to specify a set of | ||
888 | declarations for any host in the ``.co.uk'' set of domains, the following | ||
889 | pattern could be used: | ||
890 | |||
891 | Host *.co.uk | ||
892 | |||
893 | The following pattern would match any host in the 192.168.0.[0-9] network | ||
894 | range: | ||
895 | |||
896 | Host 192.168.0.? | ||
897 | |||
898 | A pattern-list is a comma-separated list of patterns. Patterns within | ||
899 | pattern-lists may be negated by preceding them with an exclamation mark | ||
900 | (`!'). For example, to allow a key to be used from anywhere within an | ||
901 | organization except from the ``dialup'' pool, the following entry (in | ||
902 | authorized_keys) could be used: | ||
903 | |||
904 | from="!*.dialup.example.com,*.example.com" | ||
905 | |||
906 | FILES | ||
907 | ~/.ssh/config | ||
908 | This is the per-user configuration file. The format of this file | ||
909 | is described above. This file is used by the SSH client. | ||
910 | Because of the potential for abuse, this file must have strict | ||
911 | permissions: read/write for the user, and not accessible by | ||
912 | others. | ||
913 | |||
914 | /etc/ssh/ssh_config | ||
915 | Systemwide configuration file. This file provides defaults for | ||
916 | those values that are not specified in the user's configuration | ||
917 | file, and for those users who do not have a configuration file. | ||
918 | This file must be world-readable. | ||
919 | |||
920 | SEE ALSO | ||
921 | ssh(1) | ||
922 | |||
923 | AUTHORS | ||
924 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
925 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
926 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
927 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
928 | versions 1.5 and 2.0. | ||
929 | |||
930 | OpenBSD 5.6 July 15, 2014 OpenBSD 5.6 | ||
@@ -0,0 +1,635 @@ | |||
1 | SSHD(8) System Manager's Manual SSHD(8) | ||
2 | |||
3 | NAME | ||
4 | sshd - OpenSSH SSH daemon | ||
5 | |||
6 | SYNOPSIS | ||
7 | sshd [-46DdeiqTt] [-b bits] [-C connection_spec] | ||
8 | [-c host_certificate_file] [-E log_file] [-f config_file] | ||
9 | [-g login_grace_time] [-h host_key_file] [-k key_gen_time] | ||
10 | [-o option] [-p port] [-u len] | ||
11 | |||
12 | DESCRIPTION | ||
13 | sshd (OpenSSH Daemon) is the daemon program for ssh(1). Together these | ||
14 | programs replace rlogin and rsh, and provide secure encrypted | ||
15 | communications between two untrusted hosts over an insecure network. | ||
16 | |||
17 | sshd listens for connections from clients. It is normally started at | ||
18 | boot from /etc/rc. It forks a new daemon for each incoming connection. | ||
19 | The forked daemons handle key exchange, encryption, authentication, | ||
20 | command execution, and data exchange. | ||
21 | |||
22 | sshd can be configured using command-line options or a configuration file | ||
23 | (by default sshd_config(5)); command-line options override values | ||
24 | specified in the configuration file. sshd rereads its configuration file | ||
25 | when it receives a hangup signal, SIGHUP, by executing itself with the | ||
26 | name and options it was started with, e.g. /usr/sbin/sshd. | ||
27 | |||
28 | The options are as follows: | ||
29 | |||
30 | -4 Forces sshd to use IPv4 addresses only. | ||
31 | |||
32 | -6 Forces sshd to use IPv6 addresses only. | ||
33 | |||
34 | -b bits | ||
35 | Specifies the number of bits in the ephemeral protocol version 1 | ||
36 | server key (default 1024). | ||
37 | |||
38 | -C connection_spec | ||
39 | Specify the connection parameters to use for the -T extended test | ||
40 | mode. If provided, any Match directives in the configuration | ||
41 | file that would apply to the specified user, host, and address | ||
42 | will be set before the configuration is written to standard | ||
43 | output. The connection parameters are supplied as keyword=value | ||
44 | pairs. The keywords are ``user'', ``host'', ``laddr'', | ||
45 | ``lport'', and ``addr''. All are required and may be supplied in | ||
46 | any order, either with multiple -C options or as a comma- | ||
47 | separated list. | ||
48 | |||
49 | -c host_certificate_file | ||
50 | Specifies a path to a certificate file to identify sshd during | ||
51 | key exchange. The certificate file must match a host key file | ||
52 | specified using the -h option or the HostKey configuration | ||
53 | directive. | ||
54 | |||
55 | -D When this option is specified, sshd will not detach and does not | ||
56 | become a daemon. This allows easy monitoring of sshd. | ||
57 | |||
58 | -d Debug mode. The server sends verbose debug output to standard | ||
59 | error, and does not put itself in the background. The server | ||
60 | also will not fork and will only process one connection. This | ||
61 | option is only intended for debugging for the server. Multiple | ||
62 | -d options increase the debugging level. Maximum is 3. | ||
63 | |||
64 | -E log_file | ||
65 | Append debug logs to log_file instead of the system log. | ||
66 | |||
67 | -e Write debug logs to standard error instead of the system log. | ||
68 | |||
69 | -f config_file | ||
70 | Specifies the name of the configuration file. The default is | ||
71 | /etc/ssh/sshd_config. sshd refuses to start if there is no | ||
72 | configuration file. | ||
73 | |||
74 | -g login_grace_time | ||
75 | Gives the grace time for clients to authenticate themselves | ||
76 | (default 120 seconds). If the client fails to authenticate the | ||
77 | user within this many seconds, the server disconnects and exits. | ||
78 | A value of zero indicates no limit. | ||
79 | |||
80 | -h host_key_file | ||
81 | Specifies a file from which a host key is read. This option must | ||
82 | be given if sshd is not run as root (as the normal host key files | ||
83 | are normally not readable by anyone but root). The default is | ||
84 | /etc/ssh/ssh_host_key for protocol version 1, and | ||
85 | /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key. | ||
86 | /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for | ||
87 | protocol version 2. It is possible to have multiple host key | ||
88 | files for the different protocol versions and host key | ||
89 | algorithms. | ||
90 | |||
91 | -i Specifies that sshd is being run from inetd(8). sshd is normally | ||
92 | not run from inetd because it needs to generate the server key | ||
93 | before it can respond to the client, and this may take tens of | ||
94 | seconds. Clients would have to wait too long if the key was | ||
95 | regenerated every time. However, with small key sizes (e.g. 512) | ||
96 | using sshd from inetd may be feasible. | ||
97 | |||
98 | -k key_gen_time | ||
99 | Specifies how often the ephemeral protocol version 1 server key | ||
100 | is regenerated (default 3600 seconds, or one hour). The | ||
101 | motivation for regenerating the key fairly often is that the key | ||
102 | is not stored anywhere, and after about an hour it becomes | ||
103 | impossible to recover the key for decrypting intercepted | ||
104 | communications even if the machine is cracked into or physically | ||
105 | seized. A value of zero indicates that the key will never be | ||
106 | regenerated. | ||
107 | |||
108 | -o option | ||
109 | Can be used to give options in the format used in the | ||
110 | configuration file. This is useful for specifying options for | ||
111 | which there is no separate command-line flag. For full details | ||
112 | of the options, and their values, see sshd_config(5). | ||
113 | |||
114 | -p port | ||
115 | Specifies the port on which the server listens for connections | ||
116 | (default 22). Multiple port options are permitted. Ports | ||
117 | specified in the configuration file with the Port option are | ||
118 | ignored when a command-line port is specified. Ports specified | ||
119 | using the ListenAddress option override command-line ports. | ||
120 | |||
121 | -q Quiet mode. Nothing is sent to the system log. Normally the | ||
122 | beginning, authentication, and termination of each connection is | ||
123 | logged. | ||
124 | |||
125 | -T Extended test mode. Check the validity of the configuration | ||
126 | file, output the effective configuration to stdout and then exit. | ||
127 | Optionally, Match rules may be applied by specifying the | ||
128 | connection parameters using one or more -C options. | ||
129 | |||
130 | -t Test mode. Only check the validity of the configuration file and | ||
131 | sanity of the keys. This is useful for updating sshd reliably as | ||
132 | configuration options may change. | ||
133 | |||
134 | -u len This option is used to specify the size of the field in the utmp | ||
135 | structure that holds the remote host name. If the resolved host | ||
136 | name is longer than len, the dotted decimal value will be used | ||
137 | instead. This allows hosts with very long host names that | ||
138 | overflow this field to still be uniquely identified. Specifying | ||
139 | -u0 indicates that only dotted decimal addresses should be put | ||
140 | into the utmp file. -u0 may also be used to prevent sshd from | ||
141 | making DNS requests unless the authentication mechanism or | ||
142 | configuration requires it. Authentication mechanisms that may | ||
143 | require DNS include RhostsRSAAuthentication, | ||
144 | HostbasedAuthentication, and using a from="pattern-list" option | ||
145 | in a key file. Configuration options that require DNS include | ||
146 | using a USER@HOST pattern in AllowUsers or DenyUsers. | ||
147 | |||
148 | AUTHENTICATION | ||
149 | The OpenSSH SSH daemon supports SSH protocols 1 and 2. The default is to | ||
150 | use protocol 2 only, though this can be changed via the Protocol option | ||
151 | in sshd_config(5). Protocol 2 supports DSA, ECDSA, ED25519 and RSA keys; | ||
152 | protocol 1 only supports RSA keys. For both protocols, each host has a | ||
153 | host-specific key, normally 2048 bits, used to identify the host. | ||
154 | |||
155 | Forward security for protocol 1 is provided through an additional server | ||
156 | key, normally 768 bits, generated when the server starts. This key is | ||
157 | normally regenerated every hour if it has been used, and is never stored | ||
158 | on disk. Whenever a client connects, the daemon responds with its public | ||
159 | host and server keys. The client compares the RSA host key against its | ||
160 | own database to verify that it has not changed. The client then | ||
161 | generates a 256-bit random number. It encrypts this random number using | ||
162 | both the host key and the server key, and sends the encrypted number to | ||
163 | the server. Both sides then use this random number as a session key | ||
164 | which is used to encrypt all further communications in the session. The | ||
165 | rest of the session is encrypted using a conventional cipher, currently | ||
166 | Blowfish or 3DES, with 3DES being used by default. The client selects | ||
167 | the encryption algorithm to use from those offered by the server. | ||
168 | |||
169 | For protocol 2, forward security is provided through a Diffie-Hellman key | ||
170 | agreement. This key agreement results in a shared session key. The rest | ||
171 | of the session is encrypted using a symmetric cipher, currently 128-bit | ||
172 | AES, Blowfish, 3DES, CAST128, Arcfour, 192-bit AES, or 256-bit AES. The | ||
173 | client selects the encryption algorithm to use from those offered by the | ||
174 | server. Additionally, session integrity is provided through a | ||
175 | cryptographic message authentication code (hmac-md5, hmac-sha1, umac-64, | ||
176 | umac-128, hmac-ripemd160, hmac-sha2-256 or hmac-sha2-512). | ||
177 | |||
178 | Finally, the server and the client enter an authentication dialog. The | ||
179 | client tries to authenticate itself using host-based authentication, | ||
180 | public key authentication, challenge-response authentication, or password | ||
181 | authentication. | ||
182 | |||
183 | Regardless of the authentication type, the account is checked to ensure | ||
184 | that it is accessible. An account is not accessible if it is locked, | ||
185 | listed in DenyUsers or its group is listed in DenyGroups . The | ||
186 | definition of a locked account is system dependant. Some platforms have | ||
187 | their own account database (eg AIX) and some modify the passwd field ( | ||
188 | `*LK*' on Solaris and UnixWare, `*' on HP-UX, containing `Nologin' on | ||
189 | Tru64, a leading `*LOCKED*' on FreeBSD and a leading `!' on most | ||
190 | Linuxes). If there is a requirement to disable password authentication | ||
191 | for the account while allowing still public-key, then the passwd field | ||
192 | should be set to something other than these values (eg `NP' or `*NP*' ). | ||
193 | |||
194 | If the client successfully authenticates itself, a dialog for preparing | ||
195 | the session is entered. At this time the client may request things like | ||
196 | allocating a pseudo-tty, forwarding X11 connections, forwarding TCP | ||
197 | connections, or forwarding the authentication agent connection over the | ||
198 | secure channel. | ||
199 | |||
200 | After this, the client either requests a shell or execution of a command. | ||
201 | The sides then enter session mode. In this mode, either side may send | ||
202 | data at any time, and such data is forwarded to/from the shell or command | ||
203 | on the server side, and the user terminal in the client side. | ||
204 | |||
205 | When the user program terminates and all forwarded X11 and other | ||
206 | connections have been closed, the server sends command exit status to the | ||
207 | client, and both sides exit. | ||
208 | |||
209 | LOGIN PROCESS | ||
210 | When a user successfully logs in, sshd does the following: | ||
211 | |||
212 | 1. If the login is on a tty, and no command has been specified, | ||
213 | prints last login time and /etc/motd (unless prevented in the | ||
214 | configuration file or by ~/.hushlogin; see the FILES section). | ||
215 | |||
216 | 2. If the login is on a tty, records login time. | ||
217 | |||
218 | 3. Checks /etc/nologin; if it exists, prints contents and quits | ||
219 | (unless root). | ||
220 | |||
221 | 4. Changes to run with normal user privileges. | ||
222 | |||
223 | 5. Sets up basic environment. | ||
224 | |||
225 | 6. Reads the file ~/.ssh/environment, if it exists, and users are | ||
226 | allowed to change their environment. See the | ||
227 | PermitUserEnvironment option in sshd_config(5). | ||
228 | |||
229 | 7. Changes to user's home directory. | ||
230 | |||
231 | 8. If ~/.ssh/rc exists and the sshd_config(5) PermitUserRC option | ||
232 | is set, runs it; else if /etc/ssh/sshrc exists, runs it; | ||
233 | otherwise runs xauth. The ``rc'' files are given the X11 | ||
234 | authentication protocol and cookie in standard input. See | ||
235 | SSHRC, below. | ||
236 | |||
237 | 9. Runs user's shell or command. | ||
238 | |||
239 | SSHRC | ||
240 | If the file ~/.ssh/rc exists, sh(1) runs it after reading the environment | ||
241 | files but before starting the user's shell or command. It must not | ||
242 | produce any output on stdout; stderr must be used instead. If X11 | ||
243 | forwarding is in use, it will receive the "proto cookie" pair in its | ||
244 | standard input (and DISPLAY in its environment). The script must call | ||
245 | xauth(1) because sshd will not run xauth automatically to add X11 | ||
246 | cookies. | ||
247 | |||
248 | The primary purpose of this file is to run any initialization routines | ||
249 | which may be needed before the user's home directory becomes accessible; | ||
250 | AFS is a particular example of such an environment. | ||
251 | |||
252 | This file will probably contain some initialization code followed by | ||
253 | something similar to: | ||
254 | |||
255 | if read proto cookie && [ -n "$DISPLAY" ]; then | ||
256 | if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then | ||
257 | # X11UseLocalhost=yes | ||
258 | echo add unix:`echo $DISPLAY | | ||
259 | cut -c11-` $proto $cookie | ||
260 | else | ||
261 | # X11UseLocalhost=no | ||
262 | echo add $DISPLAY $proto $cookie | ||
263 | fi | xauth -q - | ||
264 | fi | ||
265 | |||
266 | If this file does not exist, /etc/ssh/sshrc is run, and if that does not | ||
267 | exist either, xauth is used to add the cookie. | ||
268 | |||
269 | AUTHORIZED_KEYS FILE FORMAT | ||
270 | AuthorizedKeysFile specifies the files containing public keys for public | ||
271 | key authentication; if none is specified, the default is | ||
272 | ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2. Each line of the | ||
273 | file contains one key (empty lines and lines starting with a `#' are | ||
274 | ignored as comments). Protocol 1 public keys consist of the following | ||
275 | space-separated fields: options, bits, exponent, modulus, comment. | ||
276 | Protocol 2 public key consist of: options, keytype, base64-encoded key, | ||
277 | comment. The options field is optional; its presence is determined by | ||
278 | whether the line starts with a number or not (the options field never | ||
279 | starts with a number). The bits, exponent, modulus, and comment fields | ||
280 | give the RSA key for protocol version 1; the comment field is not used | ||
281 | for anything (but may be convenient for the user to identify the key). | ||
282 | For protocol version 2 the keytype is ``ecdsa-sha2-nistp256'', | ||
283 | ``ecdsa-sha2-nistp384'', ``ecdsa-sha2-nistp521'', ``ssh-ed25519'', | ||
284 | ``ssh-dss'' or ``ssh-rsa''. | ||
285 | |||
286 | Note that lines in this file are usually several hundred bytes long | ||
287 | (because of the size of the public key encoding) up to a limit of 8 | ||
288 | kilobytes, which permits DSA keys up to 8 kilobits and RSA keys up to 16 | ||
289 | kilobits. You don't want to type them in; instead, copy the | ||
290 | identity.pub, id_dsa.pub, id_ecdsa.pub, id_ed25519.pub, or the id_rsa.pub | ||
291 | file and edit it. | ||
292 | |||
293 | sshd enforces a minimum RSA key modulus size for protocol 1 and protocol | ||
294 | 2 keys of 768 bits. | ||
295 | |||
296 | The options (if present) consist of comma-separated option | ||
297 | specifications. No spaces are permitted, except within double quotes. | ||
298 | The following option specifications are supported (note that option | ||
299 | keywords are case-insensitive): | ||
300 | |||
301 | cert-authority | ||
302 | Specifies that the listed key is a certification authority (CA) | ||
303 | that is trusted to validate signed certificates for user | ||
304 | authentication. | ||
305 | |||
306 | Certificates may encode access restrictions similar to these key | ||
307 | options. If both certificate restrictions and key options are | ||
308 | present, the most restrictive union of the two is applied. | ||
309 | |||
310 | command="command" | ||
311 | Specifies that the command is executed whenever this key is used | ||
312 | for authentication. The command supplied by the user (if any) is | ||
313 | ignored. The command is run on a pty if the client requests a | ||
314 | pty; otherwise it is run without a tty. If an 8-bit clean | ||
315 | channel is required, one must not request a pty or should specify | ||
316 | no-pty. A quote may be included in the command by quoting it | ||
317 | with a backslash. This option might be useful to restrict | ||
318 | certain public keys to perform just a specific operation. An | ||
319 | example might be a key that permits remote backups but nothing | ||
320 | else. Note that the client may specify TCP and/or X11 forwarding | ||
321 | unless they are explicitly prohibited. The command originally | ||
322 | supplied by the client is available in the SSH_ORIGINAL_COMMAND | ||
323 | environment variable. Note that this option applies to shell, | ||
324 | command or subsystem execution. Also note that this command may | ||
325 | be superseded by either a sshd_config(5) ForceCommand directive | ||
326 | or a command embedded in a certificate. | ||
327 | |||
328 | environment="NAME=value" | ||
329 | Specifies that the string is to be added to the environment when | ||
330 | logging in using this key. Environment variables set this way | ||
331 | override other default environment values. Multiple options of | ||
332 | this type are permitted. Environment processing is disabled by | ||
333 | default and is controlled via the PermitUserEnvironment option. | ||
334 | This option is automatically disabled if UseLogin is enabled. | ||
335 | |||
336 | from="pattern-list" | ||
337 | Specifies that in addition to public key authentication, either | ||
338 | the canonical name of the remote host or its IP address must be | ||
339 | present in the comma-separated list of patterns. See PATTERNS in | ||
340 | ssh_config(5) for more information on patterns. | ||
341 | |||
342 | In addition to the wildcard matching that may be applied to | ||
343 | hostnames or addresses, a from stanza may match IP addresses | ||
344 | using CIDR address/masklen notation. | ||
345 | |||
346 | The purpose of this option is to optionally increase security: | ||
347 | public key authentication by itself does not trust the network or | ||
348 | name servers or anything (but the key); however, if somebody | ||
349 | somehow steals the key, the key permits an intruder to log in | ||
350 | from anywhere in the world. This additional option makes using a | ||
351 | stolen key more difficult (name servers and/or routers would have | ||
352 | to be compromised in addition to just the key). | ||
353 | |||
354 | no-agent-forwarding | ||
355 | Forbids authentication agent forwarding when this key is used for | ||
356 | authentication. | ||
357 | |||
358 | no-port-forwarding | ||
359 | Forbids TCP forwarding when this key is used for authentication. | ||
360 | Any port forward requests by the client will return an error. | ||
361 | This might be used, e.g. in connection with the command option. | ||
362 | |||
363 | no-pty Prevents tty allocation (a request to allocate a pty will fail). | ||
364 | |||
365 | no-user-rc | ||
366 | Disables execution of ~/.ssh/rc. | ||
367 | |||
368 | no-X11-forwarding | ||
369 | Forbids X11 forwarding when this key is used for authentication. | ||
370 | Any X11 forward requests by the client will return an error. | ||
371 | |||
372 | permitopen="host:port" | ||
373 | Limit local ``ssh -L'' port forwarding such that it may only | ||
374 | connect to the specified host and port. IPv6 addresses can be | ||
375 | specified by enclosing the address in square brackets. Multiple | ||
376 | permitopen options may be applied separated by commas. No | ||
377 | pattern matching is performed on the specified hostnames, they | ||
378 | must be literal domains or addresses. A port specification of * | ||
379 | matches any port. | ||
380 | |||
381 | principals="principals" | ||
382 | On a cert-authority line, specifies allowed principals for | ||
383 | certificate authentication as a comma-separated list. At least | ||
384 | one name from the list must appear in the certificate's list of | ||
385 | principals for the certificate to be accepted. This option is | ||
386 | ignored for keys that are not marked as trusted certificate | ||
387 | signers using the cert-authority option. | ||
388 | |||
389 | tunnel="n" | ||
390 | Force a tun(4) device on the server. Without this option, the | ||
391 | next available device will be used if the client requests a | ||
392 | tunnel. | ||
393 | |||
394 | An example authorized_keys file: | ||
395 | |||
396 | # Comments allowed at start of line | ||
397 | ssh-rsa AAAAB3Nza...LiPk== user@example.net | ||
398 | from="*.sales.example.net,!pc.sales.example.net" ssh-rsa | ||
399 | AAAAB2...19Q== john@example.net | ||
400 | command="dump /home",no-pty,no-port-forwarding ssh-dss | ||
401 | AAAAC3...51R== example.net | ||
402 | permitopen="192.0.2.1:80",permitopen="192.0.2.2:25" ssh-dss | ||
403 | AAAAB5...21S== | ||
404 | tunnel="0",command="sh /etc/netstart tun0" ssh-rsa AAAA...== | ||
405 | jane@example.net | ||
406 | |||
407 | SSH_KNOWN_HOSTS FILE FORMAT | ||
408 | The /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files contain host | ||
409 | public keys for all known hosts. The global file should be prepared by | ||
410 | the administrator (optional), and the per-user file is maintained | ||
411 | automatically: whenever the user connects from an unknown host, its key | ||
412 | is added to the per-user file. | ||
413 | |||
414 | Each line in these files contains the following fields: markers | ||
415 | (optional), hostnames, bits, exponent, modulus, comment. The fields are | ||
416 | separated by spaces. | ||
417 | |||
418 | The marker is optional, but if it is present then it must be one of | ||
419 | ``@cert-authority'', to indicate that the line contains a certification | ||
420 | authority (CA) key, or ``@revoked'', to indicate that the key contained | ||
421 | on the line is revoked and must not ever be accepted. Only one marker | ||
422 | should be used on a key line. | ||
423 | |||
424 | Hostnames is a comma-separated list of patterns (`*' and `?' act as | ||
425 | wildcards); each pattern in turn is matched against the canonical host | ||
426 | name (when authenticating a client) or against the user-supplied name | ||
427 | (when authenticating a server). A pattern may also be preceded by `!' to | ||
428 | indicate negation: if the host name matches a negated pattern, it is not | ||
429 | accepted (by that line) even if it matched another pattern on the line. | ||
430 | A hostname or address may optionally be enclosed within `[' and `]' | ||
431 | brackets then followed by `:' and a non-standard port number. | ||
432 | |||
433 | Alternately, hostnames may be stored in a hashed form which hides host | ||
434 | names and addresses should the file's contents be disclosed. Hashed | ||
435 | hostnames start with a `|' character. Only one hashed hostname may | ||
436 | appear on a single line and none of the above negation or wildcard | ||
437 | operators may be applied. | ||
438 | |||
439 | Bits, exponent, and modulus are taken directly from the RSA host key; | ||
440 | they can be obtained, for example, from /etc/ssh/ssh_host_key.pub. The | ||
441 | optional comment field continues to the end of the line, and is not used. | ||
442 | |||
443 | Lines starting with `#' and empty lines are ignored as comments. | ||
444 | |||
445 | When performing host authentication, authentication is accepted if any | ||
446 | matching line has the proper key; either one that matches exactly or, if | ||
447 | the server has presented a certificate for authentication, the key of the | ||
448 | certification authority that signed the certificate. For a key to be | ||
449 | trusted as a certification authority, it must use the ``@cert-authority'' | ||
450 | marker described above. | ||
451 | |||
452 | The known hosts file also provides a facility to mark keys as revoked, | ||
453 | for example when it is known that the associated private key has been | ||
454 | stolen. Revoked keys are specified by including the ``@revoked'' marker | ||
455 | at the beginning of the key line, and are never accepted for | ||
456 | authentication or as certification authorities, but instead will produce | ||
457 | a warning from ssh(1) when they are encountered. | ||
458 | |||
459 | It is permissible (but not recommended) to have several lines or | ||
460 | different host keys for the same names. This will inevitably happen when | ||
461 | short forms of host names from different domains are put in the file. It | ||
462 | is possible that the files contain conflicting information; | ||
463 | authentication is accepted if valid information can be found from either | ||
464 | file. | ||
465 | |||
466 | Note that the lines in these files are typically hundreds of characters | ||
467 | long, and you definitely don't want to type in the host keys by hand. | ||
468 | Rather, generate them by a script, ssh-keyscan(1) or by taking | ||
469 | /etc/ssh/ssh_host_key.pub and adding the host names at the front. | ||
470 | ssh-keygen(1) also offers some basic automated editing for | ||
471 | ~/.ssh/known_hosts including removing hosts matching a host name and | ||
472 | converting all host names to their hashed representations. | ||
473 | |||
474 | An example ssh_known_hosts file: | ||
475 | |||
476 | # Comments allowed at start of line | ||
477 | closenet,...,192.0.2.53 1024 37 159...93 closenet.example.net | ||
478 | cvs.example.net,192.0.2.10 ssh-rsa AAAA1234.....= | ||
479 | # A hashed hostname | ||
480 | |1|JfKTdBh7rNbXkVAQCRp4OQoPfmI=|USECr3SWf1JUPsms5AqfD5QfxkM= ssh-rsa | ||
481 | AAAA1234.....= | ||
482 | # A revoked key | ||
483 | @revoked * ssh-rsa AAAAB5W... | ||
484 | # A CA key, accepted for any host in *.mydomain.com or *.mydomain.org | ||
485 | @cert-authority *.mydomain.org,*.mydomain.com ssh-rsa AAAAB5W... | ||
486 | |||
487 | FILES | ||
488 | ~/.hushlogin | ||
489 | This file is used to suppress printing the last login time and | ||
490 | /etc/motd, if PrintLastLog and PrintMotd, respectively, are | ||
491 | enabled. It does not suppress printing of the banner specified | ||
492 | by Banner. | ||
493 | |||
494 | ~/.rhosts | ||
495 | This file is used for host-based authentication (see ssh(1) for | ||
496 | more information). On some machines this file may need to be | ||
497 | world-readable if the user's home directory is on an NFS | ||
498 | partition, because sshd reads it as root. Additionally, this | ||
499 | file must be owned by the user, and must not have write | ||
500 | permissions for anyone else. The recommended permission for most | ||
501 | machines is read/write for the user, and not accessible by | ||
502 | others. | ||
503 | |||
504 | ~/.shosts | ||
505 | This file is used in exactly the same way as .rhosts, but allows | ||
506 | host-based authentication without permitting login with | ||
507 | rlogin/rsh. | ||
508 | |||
509 | ~/.ssh/ | ||
510 | This directory is the default location for all user-specific | ||
511 | configuration and authentication information. There is no | ||
512 | general requirement to keep the entire contents of this directory | ||
513 | secret, but the recommended permissions are read/write/execute | ||
514 | for the user, and not accessible by others. | ||
515 | |||
516 | ~/.ssh/authorized_keys | ||
517 | Lists the public keys (DSA, ECDSA, ED25519, RSA) that can be used | ||
518 | for logging in as this user. The format of this file is | ||
519 | described above. The content of the file is not highly | ||
520 | sensitive, but the recommended permissions are read/write for the | ||
521 | user, and not accessible by others. | ||
522 | |||
523 | If this file, the ~/.ssh directory, or the user's home directory | ||
524 | are writable by other users, then the file could be modified or | ||
525 | replaced by unauthorized users. In this case, sshd will not | ||
526 | allow it to be used unless the StrictModes option has been set to | ||
527 | ``no''. | ||
528 | |||
529 | ~/.ssh/environment | ||
530 | This file is read into the environment at login (if it exists). | ||
531 | It can only contain empty lines, comment lines (that start with | ||
532 | `#'), and assignment lines of the form name=value. The file | ||
533 | should be writable only by the user; it need not be readable by | ||
534 | anyone else. Environment processing is disabled by default and | ||
535 | is controlled via the PermitUserEnvironment option. | ||
536 | |||
537 | ~/.ssh/known_hosts | ||
538 | Contains a list of host keys for all hosts the user has logged | ||
539 | into that are not already in the systemwide list of known host | ||
540 | keys. The format of this file is described above. This file | ||
541 | should be writable only by root/the owner and can, but need not | ||
542 | be, world-readable. | ||
543 | |||
544 | ~/.ssh/rc | ||
545 | Contains initialization routines to be run before the user's home | ||
546 | directory becomes accessible. This file should be writable only | ||
547 | by the user, and need not be readable by anyone else. | ||
548 | |||
549 | /etc/hosts.equiv | ||
550 | This file is for host-based authentication (see ssh(1)). It | ||
551 | should only be writable by root. | ||
552 | |||
553 | /etc/moduli | ||
554 | Contains Diffie-Hellman groups used for the "Diffie-Hellman Group | ||
555 | Exchange". The file format is described in moduli(5). | ||
556 | |||
557 | /etc/motd | ||
558 | See motd(5). | ||
559 | |||
560 | /etc/nologin | ||
561 | If this file exists, sshd refuses to let anyone except root log | ||
562 | in. The contents of the file are displayed to anyone trying to | ||
563 | log in, and non-root connections are refused. The file should be | ||
564 | world-readable. | ||
565 | |||
566 | /etc/shosts.equiv | ||
567 | This file is used in exactly the same way as hosts.equiv, but | ||
568 | allows host-based authentication without permitting login with | ||
569 | rlogin/rsh. | ||
570 | |||
571 | /etc/ssh/ssh_host_key | ||
572 | /etc/ssh/ssh_host_dsa_key | ||
573 | /etc/ssh/ssh_host_ecdsa_key | ||
574 | /etc/ssh/ssh_host_ed25519_key | ||
575 | /etc/ssh/ssh_host_rsa_key | ||
576 | These files contain the private parts of the host keys. These | ||
577 | files should only be owned by root, readable only by root, and | ||
578 | not accessible to others. Note that sshd does not start if these | ||
579 | files are group/world-accessible. | ||
580 | |||
581 | /etc/ssh/ssh_host_key.pub | ||
582 | /etc/ssh/ssh_host_dsa_key.pub | ||
583 | /etc/ssh/ssh_host_ecdsa_key.pub | ||
584 | /etc/ssh/ssh_host_ed25519_key.pub | ||
585 | /etc/ssh/ssh_host_rsa_key.pub | ||
586 | These files contain the public parts of the host keys. These | ||
587 | files should be world-readable but writable only by root. Their | ||
588 | contents should match the respective private parts. These files | ||
589 | are not really used for anything; they are provided for the | ||
590 | convenience of the user so their contents can be copied to known | ||
591 | hosts files. These files are created using ssh-keygen(1). | ||
592 | |||
593 | /etc/ssh/ssh_known_hosts | ||
594 | Systemwide list of known host keys. This file should be prepared | ||
595 | by the system administrator to contain the public host keys of | ||
596 | all machines in the organization. The format of this file is | ||
597 | described above. This file should be writable only by root/the | ||
598 | owner and should be world-readable. | ||
599 | |||
600 | /etc/ssh/sshd_config | ||
601 | Contains configuration data for sshd. The file format and | ||
602 | configuration options are described in sshd_config(5). | ||
603 | |||
604 | /etc/ssh/sshrc | ||
605 | Similar to ~/.ssh/rc, it can be used to specify machine-specific | ||
606 | login-time initializations globally. This file should be | ||
607 | writable only by root, and should be world-readable. | ||
608 | |||
609 | /var/empty | ||
610 | chroot(2) directory used by sshd during privilege separation in | ||
611 | the pre-authentication phase. The directory should not contain | ||
612 | any files and must be owned by root and not group or world- | ||
613 | writable. | ||
614 | |||
615 | /var/run/sshd.pid | ||
616 | Contains the process ID of the sshd listening for connections (if | ||
617 | there are several daemons running concurrently for different | ||
618 | ports, this contains the process ID of the one started last). | ||
619 | The content of this file is not sensitive; it can be world- | ||
620 | readable. | ||
621 | |||
622 | SEE ALSO | ||
623 | scp(1), sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1), | ||
624 | ssh-keyscan(1), chroot(2), login.conf(5), moduli(5), sshd_config(5), | ||
625 | inetd(8), sftp-server(8) | ||
626 | |||
627 | AUTHORS | ||
628 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
629 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
630 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
631 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
632 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
633 | for privilege separation. | ||
634 | |||
635 | OpenBSD 5.6 July 3, 2014 OpenBSD 5.6 | ||
diff --git a/sshd_config.0 b/sshd_config.0 new file mode 100644 index 000000000..1c82d449f --- /dev/null +++ b/sshd_config.0 | |||
@@ -0,0 +1,906 @@ | |||
1 | SSHD_CONFIG(5) File Formats Manual SSHD_CONFIG(5) | ||
2 | |||
3 | NAME | ||
4 | sshd_config - OpenSSH SSH daemon configuration file | ||
5 | |||
6 | SYNOPSIS | ||
7 | /etc/ssh/sshd_config | ||
8 | |||
9 | DESCRIPTION | ||
10 | sshd(8) reads configuration data from /etc/ssh/sshd_config (or the file | ||
11 | specified with -f on the command line). The file contains keyword- | ||
12 | argument pairs, one per line. Lines starting with `#' and empty lines | ||
13 | are interpreted as comments. Arguments may optionally be enclosed in | ||
14 | double quotes (") in order to represent arguments containing spaces. | ||
15 | |||
16 | The possible keywords and their meanings are as follows (note that | ||
17 | keywords are case-insensitive and arguments are case-sensitive): | ||
18 | |||
19 | AcceptEnv | ||
20 | Specifies what environment variables sent by the client will be | ||
21 | copied into the session's environ(7). See SendEnv in | ||
22 | ssh_config(5) for how to configure the client. Note that | ||
23 | environment passing is only supported for protocol 2. Variables | ||
24 | are specified by name, which may contain the wildcard characters | ||
25 | `*' and `?'. Multiple environment variables may be separated by | ||
26 | whitespace or spread across multiple AcceptEnv directives. Be | ||
27 | warned that some environment variables could be used to bypass | ||
28 | restricted user environments. For this reason, care should be | ||
29 | taken in the use of this directive. The default is not to accept | ||
30 | any environment variables. | ||
31 | |||
32 | AddressFamily | ||
33 | Specifies which address family should be used by sshd(8). Valid | ||
34 | arguments are ``any'', ``inet'' (use IPv4 only), or ``inet6'' | ||
35 | (use IPv6 only). The default is ``any''. | ||
36 | |||
37 | AllowAgentForwarding | ||
38 | Specifies whether ssh-agent(1) forwarding is permitted. The | ||
39 | default is ``yes''. Note that disabling agent forwarding does | ||
40 | not improve security unless users are also denied shell access, | ||
41 | as they can always install their own forwarders. | ||
42 | |||
43 | AllowGroups | ||
44 | This keyword can be followed by a list of group name patterns, | ||
45 | separated by spaces. If specified, login is allowed only for | ||
46 | users whose primary group or supplementary group list matches one | ||
47 | of the patterns. Only group names are valid; a numerical group | ||
48 | ID is not recognized. By default, login is allowed for all | ||
49 | groups. The allow/deny directives are processed in the following | ||
50 | order: DenyUsers, AllowUsers, DenyGroups, and finally | ||
51 | AllowGroups. | ||
52 | |||
53 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
54 | |||
55 | AllowTcpForwarding | ||
56 | Specifies whether TCP forwarding is permitted. The available | ||
57 | options are ``yes'' or ``all'' to allow TCP forwarding, ``no'' to | ||
58 | prevent all TCP forwarding, ``local'' to allow local (from the | ||
59 | perspective of ssh(1)) forwarding only or ``remote'' to allow | ||
60 | remote forwarding only. The default is ``yes''. Note that | ||
61 | disabling TCP forwarding does not improve security unless users | ||
62 | are also denied shell access, as they can always install their | ||
63 | own forwarders. | ||
64 | |||
65 | AllowStreamLocalForwarding | ||
66 | Specifies whether StreamLocal (Unix-domain socket) forwarding is | ||
67 | permitted. The available options are ``yes'' or ``all'' to allow | ||
68 | StreamLocal forwarding, ``no'' to prevent all StreamLocal | ||
69 | forwarding, ``local'' to allow local (from the perspective of | ||
70 | ssh(1)) forwarding only or ``remote'' to allow remote forwarding | ||
71 | only. The default is ``yes''. Note that disabling StreamLocal | ||
72 | forwarding does not improve security unless users are also denied | ||
73 | shell access, as they can always install their own forwarders. | ||
74 | |||
75 | AllowUsers | ||
76 | This keyword can be followed by a list of user name patterns, | ||
77 | separated by spaces. If specified, login is allowed only for | ||
78 | user names that match one of the patterns. Only user names are | ||
79 | valid; a numerical user ID is not recognized. By default, login | ||
80 | is allowed for all users. If the pattern takes the form | ||
81 | USER@HOST then USER and HOST are separately checked, restricting | ||
82 | logins to particular users from particular hosts. The allow/deny | ||
83 | directives are processed in the following order: DenyUsers, | ||
84 | AllowUsers, DenyGroups, and finally AllowGroups. | ||
85 | |||
86 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
87 | |||
88 | AuthenticationMethods | ||
89 | Specifies the authentication methods that must be successfully | ||
90 | completed for a user to be granted access. This option must be | ||
91 | followed by one or more comma-separated lists of authentication | ||
92 | method names. Successful authentication requires completion of | ||
93 | every method in at least one of these lists. | ||
94 | |||
95 | For example, an argument of ``publickey,password | ||
96 | publickey,keyboard-interactive'' would require the user to | ||
97 | complete public key authentication, followed by either password | ||
98 | or keyboard interactive authentication. Only methods that are | ||
99 | next in one or more lists are offered at each stage, so for this | ||
100 | example, it would not be possible to attempt password or | ||
101 | keyboard-interactive authentication before public key. | ||
102 | |||
103 | For keyboard interactive authentication it is also possible to | ||
104 | restrict authentication to a specific device by appending a colon | ||
105 | followed by the device identifier ``bsdauth'', ``pam'', or | ||
106 | ``skey'', depending on the server configuration. For example, | ||
107 | ``keyboard-interactive:bsdauth'' would restrict keyboard | ||
108 | interactive authentication to the ``bsdauth'' device. | ||
109 | |||
110 | This option is only available for SSH protocol 2 and will yield a | ||
111 | fatal error if enabled if protocol 1 is also enabled. Note that | ||
112 | each authentication method listed should also be explicitly | ||
113 | enabled in the configuration. The default is not to require | ||
114 | multiple authentication; successful completion of a single | ||
115 | authentication method is sufficient. | ||
116 | |||
117 | AuthorizedKeysCommand | ||
118 | Specifies a program to be used to look up the user's public keys. | ||
119 | The program must be owned by root and not writable by group or | ||
120 | others. It will be invoked with a single argument of the | ||
121 | username being authenticated, and should produce on standard | ||
122 | output zero or more lines of authorized_keys output (see | ||
123 | AUTHORIZED_KEYS in sshd(8)). If a key supplied by | ||
124 | AuthorizedKeysCommand does not successfully authenticate and | ||
125 | authorize the user then public key authentication continues using | ||
126 | the usual AuthorizedKeysFile files. By default, no | ||
127 | AuthorizedKeysCommand is run. | ||
128 | |||
129 | AuthorizedKeysCommandUser | ||
130 | Specifies the user under whose account the AuthorizedKeysCommand | ||
131 | is run. It is recommended to use a dedicated user that has no | ||
132 | other role on the host than running authorized keys commands. | ||
133 | |||
134 | AuthorizedKeysFile | ||
135 | Specifies the file that contains the public keys that can be used | ||
136 | for user authentication. The format is described in the | ||
137 | AUTHORIZED_KEYS FILE FORMAT section of sshd(8). | ||
138 | AuthorizedKeysFile may contain tokens of the form %T which are | ||
139 | substituted during connection setup. The following tokens are | ||
140 | defined: %% is replaced by a literal '%', %h is replaced by the | ||
141 | home directory of the user being authenticated, and %u is | ||
142 | replaced by the username of that user. After expansion, | ||
143 | AuthorizedKeysFile is taken to be an absolute path or one | ||
144 | relative to the user's home directory. Multiple files may be | ||
145 | listed, separated by whitespace. The default is | ||
146 | ``.ssh/authorized_keys .ssh/authorized_keys2''. | ||
147 | |||
148 | AuthorizedPrincipalsFile | ||
149 | Specifies a file that lists principal names that are accepted for | ||
150 | certificate authentication. When using certificates signed by a | ||
151 | key listed in TrustedUserCAKeys, this file lists names, one of | ||
152 | which must appear in the certificate for it to be accepted for | ||
153 | authentication. Names are listed one per line preceded by key | ||
154 | options (as described in AUTHORIZED_KEYS FILE FORMAT in sshd(8)). | ||
155 | Empty lines and comments starting with `#' are ignored. | ||
156 | |||
157 | AuthorizedPrincipalsFile may contain tokens of the form %T which | ||
158 | are substituted during connection setup. The following tokens | ||
159 | are defined: %% is replaced by a literal '%', %h is replaced by | ||
160 | the home directory of the user being authenticated, and %u is | ||
161 | replaced by the username of that user. After expansion, | ||
162 | AuthorizedPrincipalsFile is taken to be an absolute path or one | ||
163 | relative to the user's home directory. | ||
164 | |||
165 | The default is ``none'', i.e. not to use a principals file - in | ||
166 | this case, the username of the user must appear in a | ||
167 | certificate's principals list for it to be accepted. Note that | ||
168 | AuthorizedPrincipalsFile is only used when authentication | ||
169 | proceeds using a CA listed in TrustedUserCAKeys and is not | ||
170 | consulted for certification authorities trusted via | ||
171 | ~/.ssh/authorized_keys, though the principals= key option offers | ||
172 | a similar facility (see sshd(8) for details). | ||
173 | |||
174 | Banner The contents of the specified file are sent to the remote user | ||
175 | before authentication is allowed. If the argument is ``none'' | ||
176 | then no banner is displayed. This option is only available for | ||
177 | protocol version 2. By default, no banner is displayed. | ||
178 | |||
179 | ChallengeResponseAuthentication | ||
180 | Specifies whether challenge-response authentication is allowed | ||
181 | (e.g. via PAM or through authentication styles supported in | ||
182 | login.conf(5)) The default is ``yes''. | ||
183 | |||
184 | ChrootDirectory | ||
185 | Specifies the pathname of a directory to chroot(2) to after | ||
186 | authentication. All components of the pathname must be root- | ||
187 | owned directories that are not writable by any other user or | ||
188 | group. After the chroot, sshd(8) changes the working directory | ||
189 | to the user's home directory. | ||
190 | |||
191 | The pathname may contain the following tokens that are expanded | ||
192 | at runtime once the connecting user has been authenticated: %% is | ||
193 | replaced by a literal '%', %h is replaced by the home directory | ||
194 | of the user being authenticated, and %u is replaced by the | ||
195 | username of that user. | ||
196 | |||
197 | The ChrootDirectory must contain the necessary files and | ||
198 | directories to support the user's session. For an interactive | ||
199 | session this requires at least a shell, typically sh(1), and | ||
200 | basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4), | ||
201 | stderr(4), arandom(4) and tty(4) devices. For file transfer | ||
202 | sessions using ``sftp'', no additional configuration of the | ||
203 | environment is necessary if the in-process sftp server is used, | ||
204 | though sessions which use logging may require /dev/log inside the | ||
205 | chroot directory on some operating systems (see sftp-server(8) | ||
206 | for details). | ||
207 | |||
208 | The default is not to chroot(2). | ||
209 | |||
210 | Ciphers | ||
211 | Specifies the ciphers allowed for protocol version 2. Multiple | ||
212 | ciphers must be comma-separated. The supported ciphers are: | ||
213 | |||
214 | 3des-cbc | ||
215 | aes128-cbc | ||
216 | aes192-cbc | ||
217 | aes256-cbc | ||
218 | aes128-ctr | ||
219 | aes192-ctr | ||
220 | aes256-ctr | ||
221 | aes128-gcm@openssh.com | ||
222 | aes256-gcm@openssh.com | ||
223 | arcfour | ||
224 | arcfour128 | ||
225 | arcfour256 | ||
226 | blowfish-cbc | ||
227 | cast128-cbc | ||
228 | chacha20-poly1305@openssh.com | ||
229 | |||
230 | The default is: | ||
231 | |||
232 | aes128-ctr,aes192-ctr,aes256-ctr, | ||
233 | aes128-gcm@openssh.com,aes256-gcm@openssh.com, | ||
234 | chacha20-poly1305@openssh.com | ||
235 | |||
236 | The list of available ciphers may also be obtained using the -Q | ||
237 | option of ssh(1). | ||
238 | |||
239 | ClientAliveCountMax | ||
240 | Sets the number of client alive messages (see below) which may be | ||
241 | sent without sshd(8) receiving any messages back from the client. | ||
242 | If this threshold is reached while client alive messages are | ||
243 | being sent, sshd will disconnect the client, terminating the | ||
244 | session. It is important to note that the use of client alive | ||
245 | messages is very different from TCPKeepAlive (below). The client | ||
246 | alive messages are sent through the encrypted channel and | ||
247 | therefore will not be spoofable. The TCP keepalive option | ||
248 | enabled by TCPKeepAlive is spoofable. The client alive mechanism | ||
249 | is valuable when the client or server depend on knowing when a | ||
250 | connection has become inactive. | ||
251 | |||
252 | The default value is 3. If ClientAliveInterval (see below) is | ||
253 | set to 15, and ClientAliveCountMax is left at the default, | ||
254 | unresponsive SSH clients will be disconnected after approximately | ||
255 | 45 seconds. This option applies to protocol version 2 only. | ||
256 | |||
257 | ClientAliveInterval | ||
258 | Sets a timeout interval in seconds after which if no data has | ||
259 | been received from the client, sshd(8) will send a message | ||
260 | through the encrypted channel to request a response from the | ||
261 | client. The default is 0, indicating that these messages will | ||
262 | not be sent to the client. This option applies to protocol | ||
263 | version 2 only. | ||
264 | |||
265 | Compression | ||
266 | Specifies whether compression is allowed, or delayed until the | ||
267 | user has authenticated successfully. The argument must be | ||
268 | ``yes'', ``delayed'', or ``no''. The default is ``delayed''. | ||
269 | |||
270 | DenyGroups | ||
271 | This keyword can be followed by a list of group name patterns, | ||
272 | separated by spaces. Login is disallowed for users whose primary | ||
273 | group or supplementary group list matches one of the patterns. | ||
274 | Only group names are valid; a numerical group ID is not | ||
275 | recognized. By default, login is allowed for all groups. The | ||
276 | allow/deny directives are processed in the following order: | ||
277 | DenyUsers, AllowUsers, DenyGroups, and finally AllowGroups. | ||
278 | |||
279 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
280 | |||
281 | DenyUsers | ||
282 | This keyword can be followed by a list of user name patterns, | ||
283 | separated by spaces. Login is disallowed for user names that | ||
284 | match one of the patterns. Only user names are valid; a | ||
285 | numerical user ID is not recognized. By default, login is | ||
286 | allowed for all users. If the pattern takes the form USER@HOST | ||
287 | then USER and HOST are separately checked, restricting logins to | ||
288 | particular users from particular hosts. The allow/deny | ||
289 | directives are processed in the following order: DenyUsers, | ||
290 | AllowUsers, DenyGroups, and finally AllowGroups. | ||
291 | |||
292 | See PATTERNS in ssh_config(5) for more information on patterns. | ||
293 | |||
294 | ForceCommand | ||
295 | Forces the execution of the command specified by ForceCommand, | ||
296 | ignoring any command supplied by the client and ~/.ssh/rc if | ||
297 | present. The command is invoked by using the user's login shell | ||
298 | with the -c option. This applies to shell, command, or subsystem | ||
299 | execution. It is most useful inside a Match block. The command | ||
300 | originally supplied by the client is available in the | ||
301 | SSH_ORIGINAL_COMMAND environment variable. Specifying a command | ||
302 | of ``internal-sftp'' will force the use of an in-process sftp | ||
303 | server that requires no support files when used with | ||
304 | ChrootDirectory. | ||
305 | |||
306 | GatewayPorts | ||
307 | Specifies whether remote hosts are allowed to connect to ports | ||
308 | forwarded for the client. By default, sshd(8) binds remote port | ||
309 | forwardings to the loopback address. This prevents other remote | ||
310 | hosts from connecting to forwarded ports. GatewayPorts can be | ||
311 | used to specify that sshd should allow remote port forwardings to | ||
312 | bind to non-loopback addresses, thus allowing other hosts to | ||
313 | connect. The argument may be ``no'' to force remote port | ||
314 | forwardings to be available to the local host only, ``yes'' to | ||
315 | force remote port forwardings to bind to the wildcard address, or | ||
316 | ``clientspecified'' to allow the client to select the address to | ||
317 | which the forwarding is bound. The default is ``no''. | ||
318 | |||
319 | GSSAPIAuthentication | ||
320 | Specifies whether user authentication based on GSSAPI is allowed. | ||
321 | The default is ``no''. Note that this option applies to protocol | ||
322 | version 2 only. | ||
323 | |||
324 | GSSAPICleanupCredentials | ||
325 | Specifies whether to automatically destroy the user's credentials | ||
326 | cache on logout. The default is ``yes''. Note that this option | ||
327 | applies to protocol version 2 only. | ||
328 | |||
329 | HostbasedAuthentication | ||
330 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
331 | together with successful public key client host authentication is | ||
332 | allowed (host-based authentication). This option is similar to | ||
333 | RhostsRSAAuthentication and applies to protocol version 2 only. | ||
334 | The default is ``no''. | ||
335 | |||
336 | HostbasedUsesNameFromPacketOnly | ||
337 | Specifies whether or not the server will attempt to perform a | ||
338 | reverse name lookup when matching the name in the ~/.shosts, | ||
339 | ~/.rhosts, and /etc/hosts.equiv files during | ||
340 | HostbasedAuthentication. A setting of ``yes'' means that sshd(8) | ||
341 | uses the name supplied by the client rather than attempting to | ||
342 | resolve the name from the TCP connection itself. The default is | ||
343 | ``no''. | ||
344 | |||
345 | HostCertificate | ||
346 | Specifies a file containing a public host certificate. The | ||
347 | certificate's public key must match a private host key already | ||
348 | specified by HostKey. The default behaviour of sshd(8) is not to | ||
349 | load any certificates. | ||
350 | |||
351 | HostKey | ||
352 | Specifies a file containing a private host key used by SSH. The | ||
353 | default is /etc/ssh/ssh_host_key for protocol version 1, and | ||
354 | /etc/ssh/ssh_host_dsa_key, /etc/ssh/ssh_host_ecdsa_key, | ||
355 | /etc/ssh/ssh_host_ed25519_key and /etc/ssh/ssh_host_rsa_key for | ||
356 | protocol version 2. Note that sshd(8) will refuse to use a file | ||
357 | if it is group/world-accessible. It is possible to have multiple | ||
358 | host key files. ``rsa1'' keys are used for version 1 and | ||
359 | ``dsa'', ``ecdsa'', ``ed25519'' or ``rsa'' are used for version 2 | ||
360 | of the SSH protocol. It is also possible to specify public host | ||
361 | key files instead. In this case operations on the private key | ||
362 | will be delegated to an ssh-agent(1). | ||
363 | |||
364 | HostKeyAgent | ||
365 | Identifies the UNIX-domain socket used to communicate with an | ||
366 | agent that has access to the private host keys. If | ||
367 | ``SSH_AUTH_SOCK'' is specified, the location of the socket will | ||
368 | be read from the SSH_AUTH_SOCK environment variable. | ||
369 | |||
370 | IgnoreRhosts | ||
371 | Specifies that .rhosts and .shosts files will not be used in | ||
372 | RhostsRSAAuthentication or HostbasedAuthentication. | ||
373 | |||
374 | /etc/hosts.equiv and /etc/shosts.equiv are still used. The | ||
375 | default is ``yes''. | ||
376 | |||
377 | IgnoreUserKnownHosts | ||
378 | Specifies whether sshd(8) should ignore the user's | ||
379 | ~/.ssh/known_hosts during RhostsRSAAuthentication or | ||
380 | HostbasedAuthentication. The default is ``no''. | ||
381 | |||
382 | IPQoS Specifies the IPv4 type-of-service or DSCP class for the | ||
383 | connection. Accepted values are ``af11'', ``af12'', ``af13'', | ||
384 | ``af21'', ``af22'', ``af23'', ``af31'', ``af32'', ``af33'', | ||
385 | ``af41'', ``af42'', ``af43'', ``cs0'', ``cs1'', ``cs2'', ``cs3'', | ||
386 | ``cs4'', ``cs5'', ``cs6'', ``cs7'', ``ef'', ``lowdelay'', | ||
387 | ``throughput'', ``reliability'', or a numeric value. This option | ||
388 | may take one or two arguments, separated by whitespace. If one | ||
389 | argument is specified, it is used as the packet class | ||
390 | unconditionally. If two values are specified, the first is | ||
391 | automatically selected for interactive sessions and the second | ||
392 | for non-interactive sessions. The default is ``lowdelay'' for | ||
393 | interactive sessions and ``throughput'' for non-interactive | ||
394 | sessions. | ||
395 | |||
396 | KbdInteractiveAuthentication | ||
397 | Specifies whether to allow keyboard-interactive authentication. | ||
398 | The argument to this keyword must be ``yes'' or ``no''. The | ||
399 | default is to use whatever value ChallengeResponseAuthentication | ||
400 | is set to (by default ``yes''). | ||
401 | |||
402 | KerberosAuthentication | ||
403 | Specifies whether the password provided by the user for | ||
404 | PasswordAuthentication will be validated through the Kerberos | ||
405 | KDC. To use this option, the server needs a Kerberos servtab | ||
406 | which allows the verification of the KDC's identity. The default | ||
407 | is ``no''. | ||
408 | |||
409 | KerberosGetAFSToken | ||
410 | If AFS is active and the user has a Kerberos 5 TGT, attempt to | ||
411 | acquire an AFS token before accessing the user's home directory. | ||
412 | The default is ``no''. | ||
413 | |||
414 | KerberosOrLocalPasswd | ||
415 | If password authentication through Kerberos fails then the | ||
416 | password will be validated via any additional local mechanism | ||
417 | such as /etc/passwd. The default is ``yes''. | ||
418 | |||
419 | KerberosTicketCleanup | ||
420 | Specifies whether to automatically destroy the user's ticket | ||
421 | cache file on logout. The default is ``yes''. | ||
422 | |||
423 | KexAlgorithms | ||
424 | Specifies the available KEX (Key Exchange) algorithms. Multiple | ||
425 | algorithms must be comma-separated. The supported algorithms | ||
426 | are: | ||
427 | |||
428 | curve25519-sha256@libssh.org | ||
429 | diffie-hellman-group1-sha1 | ||
430 | diffie-hellman-group14-sha1 | ||
431 | diffie-hellman-group-exchange-sha1 | ||
432 | diffie-hellman-group-exchange-sha256 | ||
433 | ecdh-sha2-nistp256 | ||
434 | ecdh-sha2-nistp384 | ||
435 | ecdh-sha2-nistp521 | ||
436 | |||
437 | The default is: | ||
438 | |||
439 | curve25519-sha256@libssh.org, | ||
440 | ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, | ||
441 | diffie-hellman-group-exchange-sha256, | ||
442 | diffie-hellman-group14-sha1 | ||
443 | |||
444 | KeyRegenerationInterval | ||
445 | In protocol version 1, the ephemeral server key is automatically | ||
446 | regenerated after this many seconds (if it has been used). The | ||
447 | purpose of regeneration is to prevent decrypting captured | ||
448 | sessions by later breaking into the machine and stealing the | ||
449 | keys. The key is never stored anywhere. If the value is 0, the | ||
450 | key is never regenerated. The default is 3600 (seconds). | ||
451 | |||
452 | ListenAddress | ||
453 | Specifies the local addresses sshd(8) should listen on. The | ||
454 | following forms may be used: | ||
455 | |||
456 | ListenAddress host|IPv4_addr|IPv6_addr | ||
457 | ListenAddress host|IPv4_addr:port | ||
458 | ListenAddress [host|IPv6_addr]:port | ||
459 | |||
460 | If port is not specified, sshd will listen on the address and all | ||
461 | prior Port options specified. The default is to listen on all | ||
462 | local addresses. Multiple ListenAddress options are permitted. | ||
463 | Additionally, any Port options must precede this option for non- | ||
464 | port qualified addresses. | ||
465 | |||
466 | LoginGraceTime | ||
467 | The server disconnects after this time if the user has not | ||
468 | successfully logged in. If the value is 0, there is no time | ||
469 | limit. The default is 120 seconds. | ||
470 | |||
471 | LogLevel | ||
472 | Gives the verbosity level that is used when logging messages from | ||
473 | sshd(8). The possible values are: QUIET, FATAL, ERROR, INFO, | ||
474 | VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. | ||
475 | DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify | ||
476 | higher levels of debugging output. Logging with a DEBUG level | ||
477 | violates the privacy of users and is not recommended. | ||
478 | |||
479 | MACs Specifies the available MAC (message authentication code) | ||
480 | algorithms. The MAC algorithm is used in protocol version 2 for | ||
481 | data integrity protection. Multiple algorithms must be comma- | ||
482 | separated. The algorithms that contain ``-etm'' calculate the | ||
483 | MAC after encryption (encrypt-then-mac). These are considered | ||
484 | safer and their use recommended. The supported MACs are: | ||
485 | |||
486 | hmac-md5 | ||
487 | hmac-md5-96 | ||
488 | hmac-ripemd160 | ||
489 | hmac-sha1 | ||
490 | hmac-sha1-96 | ||
491 | hmac-sha2-256 | ||
492 | hmac-sha2-512 | ||
493 | umac-64@openssh.com | ||
494 | umac-128@openssh.com | ||
495 | hmac-md5-etm@openssh.com | ||
496 | hmac-md5-96-etm@openssh.com | ||
497 | hmac-ripemd160-etm@openssh.com | ||
498 | hmac-sha1-etm@openssh.com | ||
499 | hmac-sha1-96-etm@openssh.com | ||
500 | hmac-sha2-256-etm@openssh.com | ||
501 | hmac-sha2-512-etm@openssh.com | ||
502 | umac-64-etm@openssh.com | ||
503 | umac-128-etm@openssh.com | ||
504 | |||
505 | The default is: | ||
506 | |||
507 | umac-64-etm@openssh.com,umac-128-etm@openssh.com, | ||
508 | hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com, | ||
509 | umac-64@openssh.com,umac-128@openssh.com, | ||
510 | hmac-sha2-256,hmac-sha2-512 | ||
511 | |||
512 | Match Introduces a conditional block. If all of the criteria on the | ||
513 | Match line are satisfied, the keywords on the following lines | ||
514 | override those set in the global section of the config file, | ||
515 | until either another Match line or the end of the file. If a | ||
516 | keyword appears in multiple Match blocks that are satisified, | ||
517 | only the first instance of the keyword is applied. | ||
518 | |||
519 | The arguments to Match are one or more criteria-pattern pairs or | ||
520 | the single token All which matches all criteria. The available | ||
521 | criteria are User, Group, Host, LocalAddress, LocalPort, and | ||
522 | Address. The match patterns may consist of single entries or | ||
523 | comma-separated lists and may use the wildcard and negation | ||
524 | operators described in the PATTERNS section of ssh_config(5). | ||
525 | |||
526 | The patterns in an Address criteria may additionally contain | ||
527 | addresses to match in CIDR address/masklen format, e.g. | ||
528 | ``192.0.2.0/24'' or ``3ffe:ffff::/32''. Note that the mask | ||
529 | length provided must be consistent with the address - it is an | ||
530 | error to specify a mask length that is too long for the address | ||
531 | or one with bits set in this host portion of the address. For | ||
532 | example, ``192.0.2.0/33'' and ``192.0.2.0/8'' respectively. | ||
533 | |||
534 | Only a subset of keywords may be used on the lines following a | ||
535 | Match keyword. Available keywords are AcceptEnv, | ||
536 | AllowAgentForwarding, AllowGroups, AllowTcpForwarding, | ||
537 | AllowUsers, AuthenticationMethods, AuthorizedKeysCommand, | ||
538 | AuthorizedKeysCommandUser, AuthorizedKeysFile, | ||
539 | AuthorizedPrincipalsFile, Banner, ChrootDirectory, DenyGroups, | ||
540 | DenyUsers, ForceCommand, GatewayPorts, GSSAPIAuthentication, | ||
541 | HostbasedAuthentication, HostbasedUsesNameFromPacketOnly, | ||
542 | KbdInteractiveAuthentication, KerberosAuthentication, | ||
543 | MaxAuthTries, MaxSessions, PasswordAuthentication, | ||
544 | PermitEmptyPasswords, PermitOpen, PermitRootLogin, PermitTTY, | ||
545 | PermitTunnel, PermitUserRC, PubkeyAuthentication, RekeyLimit, | ||
546 | RhostsRSAAuthentication, RSAAuthentication, X11DisplayOffset, | ||
547 | X11Forwarding and X11UseLocalHost. | ||
548 | |||
549 | MaxAuthTries | ||
550 | Specifies the maximum number of authentication attempts permitted | ||
551 | per connection. Once the number of failures reaches half this | ||
552 | value, additional failures are logged. The default is 6. | ||
553 | |||
554 | MaxSessions | ||
555 | Specifies the maximum number of open sessions permitted per | ||
556 | network connection. The default is 10. | ||
557 | |||
558 | MaxStartups | ||
559 | Specifies the maximum number of concurrent unauthenticated | ||
560 | connections to the SSH daemon. Additional connections will be | ||
561 | dropped until authentication succeeds or the LoginGraceTime | ||
562 | expires for a connection. The default is 10:30:100. | ||
563 | |||
564 | Alternatively, random early drop can be enabled by specifying the | ||
565 | three colon separated values ``start:rate:full'' (e.g. | ||
566 | "10:30:60"). sshd(8) will refuse connection attempts with a | ||
567 | probability of ``rate/100'' (30%) if there are currently | ||
568 | ``start'' (10) unauthenticated connections. The probability | ||
569 | increases linearly and all connection attempts are refused if the | ||
570 | number of unauthenticated connections reaches ``full'' (60). | ||
571 | |||
572 | PasswordAuthentication | ||
573 | Specifies whether password authentication is allowed. The | ||
574 | default is ``yes''. | ||
575 | |||
576 | PermitEmptyPasswords | ||
577 | When password authentication is allowed, it specifies whether the | ||
578 | server allows login to accounts with empty password strings. The | ||
579 | default is ``no''. | ||
580 | |||
581 | PermitOpen | ||
582 | Specifies the destinations to which TCP port forwarding is | ||
583 | permitted. The forwarding specification must be one of the | ||
584 | following forms: | ||
585 | |||
586 | PermitOpen host:port | ||
587 | PermitOpen IPv4_addr:port | ||
588 | PermitOpen [IPv6_addr]:port | ||
589 | |||
590 | Multiple forwards may be specified by separating them with | ||
591 | whitespace. An argument of ``any'' can be used to remove all | ||
592 | restrictions and permit any forwarding requests. An argument of | ||
593 | ``none'' can be used to prohibit all forwarding requests. By | ||
594 | default all port forwarding requests are permitted. | ||
595 | |||
596 | PermitRootLogin | ||
597 | Specifies whether root can log in using ssh(1). The argument | ||
598 | must be ``yes'', ``without-password'', ``forced-commands-only'', | ||
599 | or ``no''. The default is ``yes''. | ||
600 | |||
601 | If this option is set to ``without-password'', password | ||
602 | authentication is disabled for root. | ||
603 | |||
604 | If this option is set to ``forced-commands-only'', root login | ||
605 | with public key authentication will be allowed, but only if the | ||
606 | command option has been specified (which may be useful for taking | ||
607 | remote backups even if root login is normally not allowed). All | ||
608 | other authentication methods are disabled for root. | ||
609 | |||
610 | If this option is set to ``no'', root is not allowed to log in. | ||
611 | |||
612 | PermitTunnel | ||
613 | Specifies whether tun(4) device forwarding is allowed. The | ||
614 | argument must be ``yes'', ``point-to-point'' (layer 3), | ||
615 | ``ethernet'' (layer 2), or ``no''. Specifying ``yes'' permits | ||
616 | both ``point-to-point'' and ``ethernet''. The default is ``no''. | ||
617 | |||
618 | PermitTTY | ||
619 | Specifies whether pty(4) allocation is permitted. The default is | ||
620 | ``yes''. | ||
621 | |||
622 | PermitUserEnvironment | ||
623 | Specifies whether ~/.ssh/environment and environment= options in | ||
624 | ~/.ssh/authorized_keys are processed by sshd(8). The default is | ||
625 | ``no''. Enabling environment processing may enable users to | ||
626 | bypass access restrictions in some configurations using | ||
627 | mechanisms such as LD_PRELOAD. | ||
628 | |||
629 | PermitUserRC | ||
630 | Specifies whether any ~/.ssh/rc file is executed. The default is | ||
631 | ``yes''. | ||
632 | |||
633 | PidFile | ||
634 | Specifies the file that contains the process ID of the SSH | ||
635 | daemon. The default is /var/run/sshd.pid. | ||
636 | |||
637 | Port Specifies the port number that sshd(8) listens on. The default | ||
638 | is 22. Multiple options of this type are permitted. See also | ||
639 | ListenAddress. | ||
640 | |||
641 | PrintLastLog | ||
642 | Specifies whether sshd(8) should print the date and time of the | ||
643 | last user login when a user logs in interactively. The default | ||
644 | is ``yes''. | ||
645 | |||
646 | PrintMotd | ||
647 | Specifies whether sshd(8) should print /etc/motd when a user logs | ||
648 | in interactively. (On some systems it is also printed by the | ||
649 | shell, /etc/profile, or equivalent.) The default is ``yes''. | ||
650 | |||
651 | Protocol | ||
652 | Specifies the protocol versions sshd(8) supports. The possible | ||
653 | values are `1' and `2'. Multiple versions must be comma- | ||
654 | separated. The default is `2'. Note that the order of the | ||
655 | protocol list does not indicate preference, because the client | ||
656 | selects among multiple protocol versions offered by the server. | ||
657 | Specifying ``2,1'' is identical to ``1,2''. | ||
658 | |||
659 | PubkeyAuthentication | ||
660 | Specifies whether public key authentication is allowed. The | ||
661 | default is ``yes''. Note that this option applies to protocol | ||
662 | version 2 only. | ||
663 | |||
664 | RekeyLimit | ||
665 | Specifies the maximum amount of data that may be transmitted | ||
666 | before the session key is renegotiated, optionally followed a | ||
667 | maximum amount of time that may pass before the session key is | ||
668 | renegotiated. The first argument is specified in bytes and may | ||
669 | have a suffix of `K', `M', or `G' to indicate Kilobytes, | ||
670 | Megabytes, or Gigabytes, respectively. The default is between | ||
671 | `1G' and `4G', depending on the cipher. The optional second | ||
672 | value is specified in seconds and may use any of the units | ||
673 | documented in the TIME FORMATS section. The default value for | ||
674 | RekeyLimit is ``default none'', which means that rekeying is | ||
675 | performed after the cipher's default amount of data has been sent | ||
676 | or received and no time based rekeying is done. This option | ||
677 | applies to protocol version 2 only. | ||
678 | |||
679 | RevokedKeys | ||
680 | Specifies revoked public keys. Keys listed in this file will be | ||
681 | refused for public key authentication. Note that if this file is | ||
682 | not readable, then public key authentication will be refused for | ||
683 | all users. Keys may be specified as a text file, listing one | ||
684 | public key per line, or as an OpenSSH Key Revocation List (KRL) | ||
685 | as generated by ssh-keygen(1). For more information on KRLs, see | ||
686 | the KEY REVOCATION LISTS section in ssh-keygen(1). | ||
687 | |||
688 | RhostsRSAAuthentication | ||
689 | Specifies whether rhosts or /etc/hosts.equiv authentication | ||
690 | together with successful RSA host authentication is allowed. The | ||
691 | default is ``no''. This option applies to protocol version 1 | ||
692 | only. | ||
693 | |||
694 | RSAAuthentication | ||
695 | Specifies whether pure RSA authentication is allowed. The | ||
696 | default is ``yes''. This option applies to protocol version 1 | ||
697 | only. | ||
698 | |||
699 | ServerKeyBits | ||
700 | Defines the number of bits in the ephemeral protocol version 1 | ||
701 | server key. The minimum value is 512, and the default is 1024. | ||
702 | |||
703 | StreamLocalBindMask | ||
704 | Sets the octal file creation mode mask (umask) used when creating | ||
705 | a Unix-domain socket file for local or remote port forwarding. | ||
706 | This option is only used for port forwarding to a Unix-domain | ||
707 | socket file. | ||
708 | |||
709 | The default value is 0177, which creates a Unix-domain socket | ||
710 | file that is readable and writable only by the owner. Note that | ||
711 | not all operating systems honor the file mode on Unix-domain | ||
712 | socket files. | ||
713 | |||
714 | StreamLocalBindUnlink | ||
715 | Specifies whether to remove an existing Unix-domain socket file | ||
716 | for local or remote port forwarding before creating a new one. | ||
717 | If the socket file already exists and StreamLocalBindUnlink is | ||
718 | not enabled, sshd will be unable to forward the port to the Unix- | ||
719 | domain socket file. This option is only used for port forwarding | ||
720 | to a Unix-domain socket file. | ||
721 | |||
722 | The argument must be ``yes'' or ``no''. The default is ``no''. | ||
723 | |||
724 | StrictModes | ||
725 | Specifies whether sshd(8) should check file modes and ownership | ||
726 | of the user's files and home directory before accepting login. | ||
727 | This is normally desirable because novices sometimes accidentally | ||
728 | leave their directory or files world-writable. The default is | ||
729 | ``yes''. Note that this does not apply to ChrootDirectory, whose | ||
730 | permissions and ownership are checked unconditionally. | ||
731 | |||
732 | Subsystem | ||
733 | Configures an external subsystem (e.g. file transfer daemon). | ||
734 | Arguments should be a subsystem name and a command (with optional | ||
735 | arguments) to execute upon subsystem request. | ||
736 | |||
737 | The command sftp-server(8) implements the ``sftp'' file transfer | ||
738 | subsystem. | ||
739 | |||
740 | Alternately the name ``internal-sftp'' implements an in-process | ||
741 | ``sftp'' server. This may simplify configurations using | ||
742 | ChrootDirectory to force a different filesystem root on clients. | ||
743 | |||
744 | By default no subsystems are defined. Note that this option | ||
745 | applies to protocol version 2 only. | ||
746 | |||
747 | SyslogFacility | ||
748 | Gives the facility code that is used when logging messages from | ||
749 | sshd(8). The possible values are: DAEMON, USER, AUTH, LOCAL0, | ||
750 | LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The | ||
751 | default is AUTH. | ||
752 | |||
753 | TCPKeepAlive | ||
754 | Specifies whether the system should send TCP keepalive messages | ||
755 | to the other side. If they are sent, death of the connection or | ||
756 | crash of one of the machines will be properly noticed. However, | ||
757 | this means that connections will die if the route is down | ||
758 | temporarily, and some people find it annoying. On the other | ||
759 | hand, if TCP keepalives are not sent, sessions may hang | ||
760 | indefinitely on the server, leaving ``ghost'' users and consuming | ||
761 | server resources. | ||
762 | |||
763 | The default is ``yes'' (to send TCP keepalive messages), and the | ||
764 | server will notice if the network goes down or the client host | ||
765 | crashes. This avoids infinitely hanging sessions. | ||
766 | |||
767 | To disable TCP keepalive messages, the value should be set to | ||
768 | ``no''. | ||
769 | |||
770 | TrustedUserCAKeys | ||
771 | Specifies a file containing public keys of certificate | ||
772 | authorities that are trusted to sign user certificates for | ||
773 | authentication. Keys are listed one per line; empty lines and | ||
774 | comments starting with `#' are allowed. If a certificate is | ||
775 | presented for authentication and has its signing CA key listed in | ||
776 | this file, then it may be used for authentication for any user | ||
777 | listed in the certificate's principals list. Note that | ||
778 | certificates that lack a list of principals will not be permitted | ||
779 | for authentication using TrustedUserCAKeys. For more details on | ||
780 | certificates, see the CERTIFICATES section in ssh-keygen(1). | ||
781 | |||
782 | UseDNS Specifies whether sshd(8) should look up the remote host name and | ||
783 | check that the resolved host name for the remote IP address maps | ||
784 | back to the very same IP address. The default is ``yes''. | ||
785 | |||
786 | UseLogin | ||
787 | Specifies whether login(1) is used for interactive login | ||
788 | sessions. The default is ``no''. Note that login(1) is never | ||
789 | used for remote command execution. Note also, that if this is | ||
790 | enabled, X11Forwarding will be disabled because login(1) does not | ||
791 | know how to handle xauth(1) cookies. If UsePrivilegeSeparation | ||
792 | is specified, it will be disabled after authentication. | ||
793 | |||
794 | UsePAM Enables the Pluggable Authentication Module interface. If set to | ||
795 | ``yes'' this will enable PAM authentication using | ||
796 | ChallengeResponseAuthentication and PasswordAuthentication in | ||
797 | addition to PAM account and session module processing for all | ||
798 | authentication types. | ||
799 | |||
800 | Because PAM challenge-response authentication usually serves an | ||
801 | equivalent role to password authentication, you should disable | ||
802 | either PasswordAuthentication or ChallengeResponseAuthentication. | ||
803 | |||
804 | If UsePAM is enabled, you will not be able to run sshd(8) as a | ||
805 | non-root user. The default is ``no''. | ||
806 | |||
807 | UsePrivilegeSeparation | ||
808 | Specifies whether sshd(8) separates privileges by creating an | ||
809 | unprivileged child process to deal with incoming network traffic. | ||
810 | After successful authentication, another process will be created | ||
811 | that has the privilege of the authenticated user. The goal of | ||
812 | privilege separation is to prevent privilege escalation by | ||
813 | containing any corruption within the unprivileged processes. The | ||
814 | default is ``yes''. If UsePrivilegeSeparation is set to | ||
815 | ``sandbox'' then the pre-authentication unprivileged process is | ||
816 | subject to additional restrictions. | ||
817 | |||
818 | VersionAddendum | ||
819 | Optionally specifies additional text to append to the SSH | ||
820 | protocol banner sent by the server upon connection. The default | ||
821 | is ``none''. | ||
822 | |||
823 | X11DisplayOffset | ||
824 | Specifies the first display number available for sshd(8)'s X11 | ||
825 | forwarding. This prevents sshd from interfering with real X11 | ||
826 | servers. The default is 10. | ||
827 | |||
828 | X11Forwarding | ||
829 | Specifies whether X11 forwarding is permitted. The argument must | ||
830 | be ``yes'' or ``no''. The default is ``no''. | ||
831 | |||
832 | When X11 forwarding is enabled, there may be additional exposure | ||
833 | to the server and to client displays if the sshd(8) proxy display | ||
834 | is configured to listen on the wildcard address (see | ||
835 | X11UseLocalhost below), though this is not the default. | ||
836 | Additionally, the authentication spoofing and authentication data | ||
837 | verification and substitution occur on the client side. The | ||
838 | security risk of using X11 forwarding is that the client's X11 | ||
839 | display server may be exposed to attack when the SSH client | ||
840 | requests forwarding (see the warnings for ForwardX11 in | ||
841 | ssh_config(5)). A system administrator may have a stance in | ||
842 | which they want to protect clients that may expose themselves to | ||
843 | attack by unwittingly requesting X11 forwarding, which can | ||
844 | warrant a ``no'' setting. | ||
845 | |||
846 | Note that disabling X11 forwarding does not prevent users from | ||
847 | forwarding X11 traffic, as users can always install their own | ||
848 | forwarders. X11 forwarding is automatically disabled if UseLogin | ||
849 | is enabled. | ||
850 | |||
851 | X11UseLocalhost | ||
852 | Specifies whether sshd(8) should bind the X11 forwarding server | ||
853 | to the loopback address or to the wildcard address. By default, | ||
854 | sshd binds the forwarding server to the loopback address and sets | ||
855 | the hostname part of the DISPLAY environment variable to | ||
856 | ``localhost''. This prevents remote hosts from connecting to the | ||
857 | proxy display. However, some older X11 clients may not function | ||
858 | with this configuration. X11UseLocalhost may be set to ``no'' to | ||
859 | specify that the forwarding server should be bound to the | ||
860 | wildcard address. The argument must be ``yes'' or ``no''. The | ||
861 | default is ``yes''. | ||
862 | |||
863 | XAuthLocation | ||
864 | Specifies the full pathname of the xauth(1) program. The default | ||
865 | is /usr/X11R6/bin/xauth. | ||
866 | |||
867 | TIME FORMATS | ||
868 | sshd(8) command-line arguments and configuration file options that | ||
869 | specify time may be expressed using a sequence of the form: | ||
870 | time[qualifier], where time is a positive integer value and qualifier is | ||
871 | one of the following: | ||
872 | |||
873 | <none> seconds | ||
874 | s | S seconds | ||
875 | m | M minutes | ||
876 | h | H hours | ||
877 | d | D days | ||
878 | w | W weeks | ||
879 | |||
880 | Each member of the sequence is added together to calculate the total time | ||
881 | value. | ||
882 | |||
883 | Time format examples: | ||
884 | |||
885 | 600 600 seconds (10 minutes) | ||
886 | 10m 10 minutes | ||
887 | 1h30m 1 hour 30 minutes (90 minutes) | ||
888 | |||
889 | FILES | ||
890 | /etc/ssh/sshd_config | ||
891 | Contains configuration data for sshd(8). This file should be | ||
892 | writable by root only, but it is recommended (though not | ||
893 | necessary) that it be world-readable. | ||
894 | |||
895 | SEE ALSO | ||
896 | sshd(8) | ||
897 | |||
898 | AUTHORS | ||
899 | OpenSSH is a derivative of the original and free ssh 1.2.12 release by | ||
900 | Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo | ||
901 | de Raadt and Dug Song removed many bugs, re-added newer features and | ||
902 | created OpenSSH. Markus Friedl contributed the support for SSH protocol | ||
903 | versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support | ||
904 | for privilege separation. | ||
905 | |||
906 | OpenBSD 5.6 July 28, 2014 OpenBSD 5.6 | ||