diff options
author | Colin Watson <cjwatson@debian.org> | 2010-01-24 21:19:46 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-01-24 21:19:46 +0000 |
commit | 1e4cfeee6c17b02af09418c5afe4a4d71aaaf0c8 (patch) | |
tree | 2b17a8cdc39aef9ad5cd73ecc25b3dfaa6d2267a /configure | |
parent | 7fe2877662d34ef04c67884cfcffce60a6444f18 (diff) | |
parent | 54af7a4ae8d455791a631bdfaade4b64436ae16a (diff) |
Import 5.3p1 tarball
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 32287 |
1 files changed, 32287 insertions, 0 deletions
diff --git a/configure b/configure new file mode 100755 index 000000000..416ea6f7d --- /dev/null +++ b/configure | |||
@@ -0,0 +1,32287 @@ | |||
1 | #! /bin/sh | ||
2 | # From configure.ac Revision: 1.427 . | ||
3 | # Guess values for system-dependent variables and create Makefiles. | ||
4 | # Generated by GNU Autoconf 2.62 for OpenSSH Portable. | ||
5 | # | ||
6 | # Report bugs to <openssh-unix-dev@mindrot.org>. | ||
7 | # | ||
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
10 | # This configure script is free software; the Free Software Foundation | ||
11 | # gives unlimited permission to copy, distribute and modify it. | ||
12 | ## --------------------- ## | ||
13 | ## M4sh Initialization. ## | ||
14 | ## --------------------- ## | ||
15 | |||
16 | # Be more Bourne compatible | ||
17 | DUALCASE=1; export DUALCASE # for MKS sh | ||
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
19 | emulate sh | ||
20 | NULLCMD=: | ||
21 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
22 | # is contrary to our usage. Disable this feature. | ||
23 | alias -g '${1+"$@"}'='"$@"' | ||
24 | setopt NO_GLOB_SUBST | ||
25 | else | ||
26 | case `(set -o) 2>/dev/null` in | ||
27 | *posix*) set -o posix ;; | ||
28 | esac | ||
29 | |||
30 | fi | ||
31 | |||
32 | |||
33 | |||
34 | |||
35 | # PATH needs CR | ||
36 | # Avoid depending upon Character Ranges. | ||
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
40 | as_cr_digits='0123456789' | ||
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
42 | |||
43 | as_nl=' | ||
44 | ' | ||
45 | export as_nl | ||
46 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
47 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
48 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
49 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
50 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
51 | as_echo='printf %s\n' | ||
52 | as_echo_n='printf %s' | ||
53 | else | ||
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
56 | as_echo_n='/usr/ucb/echo -n' | ||
57 | else | ||
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
59 | as_echo_n_body='eval | ||
60 | arg=$1; | ||
61 | case $arg in | ||
62 | *"$as_nl"*) | ||
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
65 | esac; | ||
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
67 | ' | ||
68 | export as_echo_n_body | ||
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
70 | fi | ||
71 | export as_echo_body | ||
72 | as_echo='sh -c $as_echo_body as_echo' | ||
73 | fi | ||
74 | |||
75 | # The user is always right. | ||
76 | if test "${PATH_SEPARATOR+set}" != set; then | ||
77 | PATH_SEPARATOR=: | ||
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
80 | PATH_SEPARATOR=';' | ||
81 | } | ||
82 | fi | ||
83 | |||
84 | # Support unset when possible. | ||
85 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
86 | as_unset=unset | ||
87 | else | ||
88 | as_unset=false | ||
89 | fi | ||
90 | |||
91 | |||
92 | # IFS | ||
93 | # We need space, tab and new line, in precisely that order. Quoting is | ||
94 | # there to prevent editors from complaining about space-tab. | ||
95 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
96 | # splitting by setting IFS to empty value.) | ||
97 | IFS=" "" $as_nl" | ||
98 | |||
99 | # Find who we are. Look in the path if we contain no directory separator. | ||
100 | case $0 in | ||
101 | *[\\/]* ) as_myself=$0 ;; | ||
102 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
103 | for as_dir in $PATH | ||
104 | do | ||
105 | IFS=$as_save_IFS | ||
106 | test -z "$as_dir" && as_dir=. | ||
107 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
108 | done | ||
109 | IFS=$as_save_IFS | ||
110 | |||
111 | ;; | ||
112 | esac | ||
113 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
114 | # in which case we are not to be found in the path. | ||
115 | if test "x$as_myself" = x; then | ||
116 | as_myself=$0 | ||
117 | fi | ||
118 | if test ! -f "$as_myself"; then | ||
119 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
120 | { (exit 1); exit 1; } | ||
121 | fi | ||
122 | |||
123 | # Work around bugs in pre-3.0 UWIN ksh. | ||
124 | for as_var in ENV MAIL MAILPATH | ||
125 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 | # Required to use basename. | ||
138 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
139 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
140 | as_expr=expr | ||
141 | else | ||
142 | as_expr=false | ||
143 | fi | ||
144 | |||
145 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
146 | as_basename=basename | ||
147 | else | ||
148 | as_basename=false | ||
149 | fi | ||
150 | |||
151 | |||
152 | # Name of the executable. | ||
153 | as_me=`$as_basename -- "$0" || | ||
154 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
155 | X"$0" : 'X\(//\)$' \| \ | ||
156 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
157 | $as_echo X/"$0" | | ||
158 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
159 | s//\1/ | ||
160 | q | ||
161 | } | ||
162 | /^X\/\(\/\/\)$/{ | ||
163 | s//\1/ | ||
164 | q | ||
165 | } | ||
166 | /^X\/\(\/\).*/{ | ||
167 | s//\1/ | ||
168 | q | ||
169 | } | ||
170 | s/.*/./; q'` | ||
171 | |||
172 | # CDPATH. | ||
173 | $as_unset CDPATH | ||
174 | |||
175 | |||
176 | if test "x$CONFIG_SHELL" = x; then | ||
177 | if (eval ":") 2>/dev/null; then | ||
178 | as_have_required=yes | ||
179 | else | ||
180 | as_have_required=no | ||
181 | fi | ||
182 | |||
183 | if test $as_have_required = yes && (eval ": | ||
184 | (as_func_return () { | ||
185 | (exit \$1) | ||
186 | } | ||
187 | as_func_success () { | ||
188 | as_func_return 0 | ||
189 | } | ||
190 | as_func_failure () { | ||
191 | as_func_return 1 | ||
192 | } | ||
193 | as_func_ret_success () { | ||
194 | return 0 | ||
195 | } | ||
196 | as_func_ret_failure () { | ||
197 | return 1 | ||
198 | } | ||
199 | |||
200 | exitcode=0 | ||
201 | if as_func_success; then | ||
202 | : | ||
203 | else | ||
204 | exitcode=1 | ||
205 | echo as_func_success failed. | ||
206 | fi | ||
207 | |||
208 | if as_func_failure; then | ||
209 | exitcode=1 | ||
210 | echo as_func_failure succeeded. | ||
211 | fi | ||
212 | |||
213 | if as_func_ret_success; then | ||
214 | : | ||
215 | else | ||
216 | exitcode=1 | ||
217 | echo as_func_ret_success failed. | ||
218 | fi | ||
219 | |||
220 | if as_func_ret_failure; then | ||
221 | exitcode=1 | ||
222 | echo as_func_ret_failure succeeded. | ||
223 | fi | ||
224 | |||
225 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
226 | : | ||
227 | else | ||
228 | exitcode=1 | ||
229 | echo positional parameters were not saved. | ||
230 | fi | ||
231 | |||
232 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
233 | |||
234 | ( | ||
235 | as_lineno_1=\$LINENO | ||
236 | as_lineno_2=\$LINENO | ||
237 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
238 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
239 | ") 2> /dev/null; then | ||
240 | : | ||
241 | else | ||
242 | as_candidate_shells= | ||
243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
244 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
245 | do | ||
246 | IFS=$as_save_IFS | ||
247 | test -z "$as_dir" && as_dir=. | ||
248 | case $as_dir in | ||
249 | /*) | ||
250 | for as_base in sh bash ksh sh5; do | ||
251 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
252 | done;; | ||
253 | esac | ||
254 | done | ||
255 | IFS=$as_save_IFS | ||
256 | |||
257 | |||
258 | for as_shell in $as_candidate_shells $SHELL; do | ||
259 | # Try only shells that exist, to save several forks. | ||
260 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
261 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
262 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
263 | emulate sh | ||
264 | NULLCMD=: | ||
265 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
266 | # is contrary to our usage. Disable this feature. | ||
267 | alias -g '${1+"$@"}'='"$@"' | ||
268 | setopt NO_GLOB_SUBST | ||
269 | else | ||
270 | case `(set -o) 2>/dev/null` in | ||
271 | *posix*) set -o posix ;; | ||
272 | esac | ||
273 | |||
274 | fi | ||
275 | |||
276 | |||
277 | : | ||
278 | _ASEOF | ||
279 | }; then | ||
280 | CONFIG_SHELL=$as_shell | ||
281 | as_have_required=yes | ||
282 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
283 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
284 | emulate sh | ||
285 | NULLCMD=: | ||
286 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
287 | # is contrary to our usage. Disable this feature. | ||
288 | alias -g '${1+"$@"}'='"$@"' | ||
289 | setopt NO_GLOB_SUBST | ||
290 | else | ||
291 | case `(set -o) 2>/dev/null` in | ||
292 | *posix*) set -o posix ;; | ||
293 | esac | ||
294 | |||
295 | fi | ||
296 | |||
297 | |||
298 | : | ||
299 | (as_func_return () { | ||
300 | (exit $1) | ||
301 | } | ||
302 | as_func_success () { | ||
303 | as_func_return 0 | ||
304 | } | ||
305 | as_func_failure () { | ||
306 | as_func_return 1 | ||
307 | } | ||
308 | as_func_ret_success () { | ||
309 | return 0 | ||
310 | } | ||
311 | as_func_ret_failure () { | ||
312 | return 1 | ||
313 | } | ||
314 | |||
315 | exitcode=0 | ||
316 | if as_func_success; then | ||
317 | : | ||
318 | else | ||
319 | exitcode=1 | ||
320 | echo as_func_success failed. | ||
321 | fi | ||
322 | |||
323 | if as_func_failure; then | ||
324 | exitcode=1 | ||
325 | echo as_func_failure succeeded. | ||
326 | fi | ||
327 | |||
328 | if as_func_ret_success; then | ||
329 | : | ||
330 | else | ||
331 | exitcode=1 | ||
332 | echo as_func_ret_success failed. | ||
333 | fi | ||
334 | |||
335 | if as_func_ret_failure; then | ||
336 | exitcode=1 | ||
337 | echo as_func_ret_failure succeeded. | ||
338 | fi | ||
339 | |||
340 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
341 | : | ||
342 | else | ||
343 | exitcode=1 | ||
344 | echo positional parameters were not saved. | ||
345 | fi | ||
346 | |||
347 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
348 | |||
349 | ( | ||
350 | as_lineno_1=$LINENO | ||
351 | as_lineno_2=$LINENO | ||
352 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
353 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
354 | |||
355 | _ASEOF | ||
356 | }; then | ||
357 | break | ||
358 | fi | ||
359 | |||
360 | fi | ||
361 | |||
362 | done | ||
363 | |||
364 | if test "x$CONFIG_SHELL" != x; then | ||
365 | for as_var in BASH_ENV ENV | ||
366 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
367 | done | ||
368 | export CONFIG_SHELL | ||
369 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
370 | fi | ||
371 | |||
372 | |||
373 | if test $as_have_required = no; then | ||
374 | echo This script requires a shell more modern than all the | ||
375 | echo shells that I found on your system. Please install a | ||
376 | echo modern shell, or manually run the script under such a | ||
377 | echo shell if you do have one. | ||
378 | { (exit 1); exit 1; } | ||
379 | fi | ||
380 | |||
381 | |||
382 | fi | ||
383 | |||
384 | fi | ||
385 | |||
386 | |||
387 | |||
388 | (eval "as_func_return () { | ||
389 | (exit \$1) | ||
390 | } | ||
391 | as_func_success () { | ||
392 | as_func_return 0 | ||
393 | } | ||
394 | as_func_failure () { | ||
395 | as_func_return 1 | ||
396 | } | ||
397 | as_func_ret_success () { | ||
398 | return 0 | ||
399 | } | ||
400 | as_func_ret_failure () { | ||
401 | return 1 | ||
402 | } | ||
403 | |||
404 | exitcode=0 | ||
405 | if as_func_success; then | ||
406 | : | ||
407 | else | ||
408 | exitcode=1 | ||
409 | echo as_func_success failed. | ||
410 | fi | ||
411 | |||
412 | if as_func_failure; then | ||
413 | exitcode=1 | ||
414 | echo as_func_failure succeeded. | ||
415 | fi | ||
416 | |||
417 | if as_func_ret_success; then | ||
418 | : | ||
419 | else | ||
420 | exitcode=1 | ||
421 | echo as_func_ret_success failed. | ||
422 | fi | ||
423 | |||
424 | if as_func_ret_failure; then | ||
425 | exitcode=1 | ||
426 | echo as_func_ret_failure succeeded. | ||
427 | fi | ||
428 | |||
429 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
430 | : | ||
431 | else | ||
432 | exitcode=1 | ||
433 | echo positional parameters were not saved. | ||
434 | fi | ||
435 | |||
436 | test \$exitcode = 0") || { | ||
437 | echo No shell found that supports shell functions. | ||
438 | echo Please tell bug-autoconf@gnu.org about your system, | ||
439 | echo including any error possibly output before this message. | ||
440 | echo This can help us improve future autoconf versions. | ||
441 | echo Configuration will now proceed without shell functions. | ||
442 | } | ||
443 | |||
444 | |||
445 | |||
446 | as_lineno_1=$LINENO | ||
447 | as_lineno_2=$LINENO | ||
448 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
449 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
450 | |||
451 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
452 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
453 | # line-number line after each line using $LINENO; the second 'sed' | ||
454 | # does the real work. The second script uses 'N' to pair each | ||
455 | # line-number line with the line containing $LINENO, and appends | ||
456 | # trailing '-' during substitution so that $LINENO is not a special | ||
457 | # case at line end. | ||
458 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
459 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
460 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
461 | sed -n ' | ||
462 | p | ||
463 | /[$]LINENO/= | ||
464 | ' <$as_myself | | ||
465 | sed ' | ||
466 | s/[$]LINENO.*/&-/ | ||
467 | t lineno | ||
468 | b | ||
469 | :lineno | ||
470 | N | ||
471 | :loop | ||
472 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
473 | t loop | ||
474 | s/-\n.*// | ||
475 | ' >$as_me.lineno && | ||
476 | chmod +x "$as_me.lineno" || | ||
477 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
478 | { (exit 1); exit 1; }; } | ||
479 | |||
480 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
481 | # (the dirname of $[0] is not the place where we might find the | ||
482 | # original and so on. Autoconf is especially sensitive to this). | ||
483 | . "./$as_me.lineno" | ||
484 | # Exit status is that of the last command. | ||
485 | exit | ||
486 | } | ||
487 | |||
488 | |||
489 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
490 | as_dirname=dirname | ||
491 | else | ||
492 | as_dirname=false | ||
493 | fi | ||
494 | |||
495 | ECHO_C= ECHO_N= ECHO_T= | ||
496 | case `echo -n x` in | ||
497 | -n*) | ||
498 | case `echo 'x\c'` in | ||
499 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
500 | *) ECHO_C='\c';; | ||
501 | esac;; | ||
502 | *) | ||
503 | ECHO_N='-n';; | ||
504 | esac | ||
505 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
506 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
507 | as_expr=expr | ||
508 | else | ||
509 | as_expr=false | ||
510 | fi | ||
511 | |||
512 | rm -f conf$$ conf$$.exe conf$$.file | ||
513 | if test -d conf$$.dir; then | ||
514 | rm -f conf$$.dir/conf$$.file | ||
515 | else | ||
516 | rm -f conf$$.dir | ||
517 | mkdir conf$$.dir 2>/dev/null | ||
518 | fi | ||
519 | if (echo >conf$$.file) 2>/dev/null; then | ||
520 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
521 | as_ln_s='ln -s' | ||
522 | # ... but there are two gotchas: | ||
523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
525 | # In both cases, we have to default to `cp -p'. | ||
526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
527 | as_ln_s='cp -p' | ||
528 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
529 | as_ln_s=ln | ||
530 | else | ||
531 | as_ln_s='cp -p' | ||
532 | fi | ||
533 | else | ||
534 | as_ln_s='cp -p' | ||
535 | fi | ||
536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
537 | rmdir conf$$.dir 2>/dev/null | ||
538 | |||
539 | if mkdir -p . 2>/dev/null; then | ||
540 | as_mkdir_p=: | ||
541 | else | ||
542 | test -d ./-p && rmdir ./-p | ||
543 | as_mkdir_p=false | ||
544 | fi | ||
545 | |||
546 | if test -x / >/dev/null 2>&1; then | ||
547 | as_test_x='test -x' | ||
548 | else | ||
549 | if ls -dL / >/dev/null 2>&1; then | ||
550 | as_ls_L_option=L | ||
551 | else | ||
552 | as_ls_L_option= | ||
553 | fi | ||
554 | as_test_x=' | ||
555 | eval sh -c '\'' | ||
556 | if test -d "$1"; then | ||
557 | test -d "$1/."; | ||
558 | else | ||
559 | case $1 in | ||
560 | -*)set "./$1";; | ||
561 | esac; | ||
562 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
563 | ???[sx]*):;;*)false;;esac;fi | ||
564 | '\'' sh | ||
565 | ' | ||
566 | fi | ||
567 | as_executable_p=$as_test_x | ||
568 | |||
569 | # Sed expression to map a string onto a valid CPP name. | ||
570 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
571 | |||
572 | # Sed expression to map a string onto a valid variable name. | ||
573 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
574 | |||
575 | |||
576 | |||
577 | exec 7<&0 </dev/null 6>&1 | ||
578 | |||
579 | # Name of the host. | ||
580 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
581 | # so uname gets run too. | ||
582 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
583 | |||
584 | # | ||
585 | # Initializations. | ||
586 | # | ||
587 | ac_default_prefix=/usr/local | ||
588 | ac_clean_files= | ||
589 | ac_config_libobj_dir=. | ||
590 | LIBOBJS= | ||
591 | cross_compiling=no | ||
592 | subdirs= | ||
593 | MFLAGS= | ||
594 | MAKEFLAGS= | ||
595 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
596 | |||
597 | # Identity of this package. | ||
598 | PACKAGE_NAME='OpenSSH' | ||
599 | PACKAGE_TARNAME='openssh' | ||
600 | PACKAGE_VERSION='Portable' | ||
601 | PACKAGE_STRING='OpenSSH Portable' | ||
602 | PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org' | ||
603 | |||
604 | ac_unique_file="ssh.c" | ||
605 | # Factoring default headers for most tests. | ||
606 | ac_includes_default="\ | ||
607 | #include <stdio.h> | ||
608 | #ifdef HAVE_SYS_TYPES_H | ||
609 | # include <sys/types.h> | ||
610 | #endif | ||
611 | #ifdef HAVE_SYS_STAT_H | ||
612 | # include <sys/stat.h> | ||
613 | #endif | ||
614 | #ifdef STDC_HEADERS | ||
615 | # include <stdlib.h> | ||
616 | # include <stddef.h> | ||
617 | #else | ||
618 | # ifdef HAVE_STDLIB_H | ||
619 | # include <stdlib.h> | ||
620 | # endif | ||
621 | #endif | ||
622 | #ifdef HAVE_STRING_H | ||
623 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
624 | # include <memory.h> | ||
625 | # endif | ||
626 | # include <string.h> | ||
627 | #endif | ||
628 | #ifdef HAVE_STRINGS_H | ||
629 | # include <strings.h> | ||
630 | #endif | ||
631 | #ifdef HAVE_INTTYPES_H | ||
632 | # include <inttypes.h> | ||
633 | #endif | ||
634 | #ifdef HAVE_STDINT_H | ||
635 | # include <stdint.h> | ||
636 | #endif | ||
637 | #ifdef HAVE_UNISTD_H | ||
638 | # include <unistd.h> | ||
639 | #endif" | ||
640 | |||
641 | ac_subst_vars='SHELL | ||
642 | PATH_SEPARATOR | ||
643 | PACKAGE_NAME | ||
644 | PACKAGE_TARNAME | ||
645 | PACKAGE_VERSION | ||
646 | PACKAGE_STRING | ||
647 | PACKAGE_BUGREPORT | ||
648 | exec_prefix | ||
649 | prefix | ||
650 | program_transform_name | ||
651 | bindir | ||
652 | sbindir | ||
653 | libexecdir | ||
654 | datarootdir | ||
655 | datadir | ||
656 | sysconfdir | ||
657 | sharedstatedir | ||
658 | localstatedir | ||
659 | includedir | ||
660 | oldincludedir | ||
661 | docdir | ||
662 | infodir | ||
663 | htmldir | ||
664 | dvidir | ||
665 | pdfdir | ||
666 | psdir | ||
667 | libdir | ||
668 | localedir | ||
669 | mandir | ||
670 | DEFS | ||
671 | ECHO_C | ||
672 | ECHO_N | ||
673 | ECHO_T | ||
674 | LIBS | ||
675 | build_alias | ||
676 | host_alias | ||
677 | target_alias | ||
678 | CC | ||
679 | CFLAGS | ||
680 | LDFLAGS | ||
681 | CPPFLAGS | ||
682 | ac_ct_CC | ||
683 | EXEEXT | ||
684 | OBJEXT | ||
685 | build | ||
686 | build_cpu | ||
687 | build_vendor | ||
688 | build_os | ||
689 | host | ||
690 | host_cpu | ||
691 | host_vendor | ||
692 | host_os | ||
693 | CPP | ||
694 | GREP | ||
695 | EGREP | ||
696 | AWK | ||
697 | RANLIB | ||
698 | INSTALL_PROGRAM | ||
699 | INSTALL_SCRIPT | ||
700 | INSTALL_DATA | ||
701 | AR | ||
702 | CAT | ||
703 | KILL | ||
704 | PERL | ||
705 | SED | ||
706 | ENT | ||
707 | TEST_MINUS_S_SH | ||
708 | SH | ||
709 | TEST_SHELL | ||
710 | PATH_GROUPADD_PROG | ||
711 | PATH_USERADD_PROG | ||
712 | MAKE_PACKAGE_SUPPORTED | ||
713 | STARTUP_SCRIPT_SHELL | ||
714 | LOGIN_PROGRAM_FALLBACK | ||
715 | PATH_PASSWD_PROG | ||
716 | LD | ||
717 | SSHDLIBS | ||
718 | LIBEDIT | ||
719 | INSTALL_SSH_RAND_HELPER | ||
720 | SSH_PRIVSEP_USER | ||
721 | PROG_LS | ||
722 | PROG_NETSTAT | ||
723 | PROG_ARP | ||
724 | PROG_IFCONFIG | ||
725 | PROG_JSTAT | ||
726 | PROG_PS | ||
727 | PROG_SAR | ||
728 | PROG_W | ||
729 | PROG_WHO | ||
730 | PROG_LAST | ||
731 | PROG_LASTLOG | ||
732 | PROG_DF | ||
733 | PROG_VMSTAT | ||
734 | PROG_UPTIME | ||
735 | PROG_IPCS | ||
736 | PROG_TAIL | ||
737 | INSTALL_SSH_PRNG_CMDS | ||
738 | OPENSC_CONFIG | ||
739 | KRB5CONF | ||
740 | PRIVSEP_PATH | ||
741 | xauth_path | ||
742 | STRIP_OPT | ||
743 | XAUTH_PATH | ||
744 | NROFF | ||
745 | MANTYPE | ||
746 | mansubdir | ||
747 | user_path | ||
748 | piddir | ||
749 | TEST_SSH_IPV6 | ||
750 | LIBOBJS | ||
751 | LTLIBOBJS' | ||
752 | ac_subst_files='' | ||
753 | ac_user_opts=' | ||
754 | enable_option_checking | ||
755 | enable_largefile | ||
756 | with_stackprotect | ||
757 | with_rpath | ||
758 | with_cflags | ||
759 | with_cppflags | ||
760 | with_ldflags | ||
761 | with_libs | ||
762 | with_Werror | ||
763 | with_solaris_contracts | ||
764 | with_osfsia | ||
765 | with_zlib | ||
766 | with_zlib_version_check | ||
767 | with_skey | ||
768 | with_tcp_wrappers | ||
769 | with_libedit | ||
770 | with_audit | ||
771 | with_ssl_dir | ||
772 | with_openssl_header_check | ||
773 | with_ssl_engine | ||
774 | with_pam | ||
775 | with_rand_helper | ||
776 | with_prngd_port | ||
777 | with_prngd_socket | ||
778 | with_entropy_timeout | ||
779 | with_privsep_user | ||
780 | with_sectok | ||
781 | with_opensc | ||
782 | with_selinux | ||
783 | with_kerberos5 | ||
784 | with_privsep_path | ||
785 | with_xauth | ||
786 | enable_strip | ||
787 | with_mantype | ||
788 | with_md5_passwords | ||
789 | with_shadow | ||
790 | with_ipaddr_display | ||
791 | enable_etc_default_login | ||
792 | with_default_path | ||
793 | with_superuser_path | ||
794 | with_4in6 | ||
795 | with_bsd_auth | ||
796 | with_pid_dir | ||
797 | enable_lastlog | ||
798 | enable_utmp | ||
799 | enable_utmpx | ||
800 | enable_wtmp | ||
801 | enable_wtmpx | ||
802 | enable_libutil | ||
803 | enable_pututline | ||
804 | enable_pututxline | ||
805 | with_lastlog | ||
806 | ' | ||
807 | ac_precious_vars='build_alias | ||
808 | host_alias | ||
809 | target_alias | ||
810 | CC | ||
811 | CFLAGS | ||
812 | LDFLAGS | ||
813 | LIBS | ||
814 | CPPFLAGS | ||
815 | CPP' | ||
816 | |||
817 | |||
818 | # Initialize some variables set by options. | ||
819 | ac_init_help= | ||
820 | ac_init_version=false | ||
821 | ac_unrecognized_opts= | ||
822 | ac_unrecognized_sep= | ||
823 | # The variables have the same names as the options, with | ||
824 | # dashes changed to underlines. | ||
825 | cache_file=/dev/null | ||
826 | exec_prefix=NONE | ||
827 | no_create= | ||
828 | no_recursion= | ||
829 | prefix=NONE | ||
830 | program_prefix=NONE | ||
831 | program_suffix=NONE | ||
832 | program_transform_name=s,x,x, | ||
833 | silent= | ||
834 | site= | ||
835 | srcdir= | ||
836 | verbose= | ||
837 | x_includes=NONE | ||
838 | x_libraries=NONE | ||
839 | |||
840 | # Installation directory options. | ||
841 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
842 | # and all the variables that are supposed to be based on exec_prefix | ||
843 | # by default will actually change. | ||
844 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
845 | # (The list follows the same order as the GNU Coding Standards.) | ||
846 | bindir='${exec_prefix}/bin' | ||
847 | sbindir='${exec_prefix}/sbin' | ||
848 | libexecdir='${exec_prefix}/libexec' | ||
849 | datarootdir='${prefix}/share' | ||
850 | datadir='${datarootdir}' | ||
851 | sysconfdir='${prefix}/etc' | ||
852 | sharedstatedir='${prefix}/com' | ||
853 | localstatedir='${prefix}/var' | ||
854 | includedir='${prefix}/include' | ||
855 | oldincludedir='/usr/include' | ||
856 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
857 | infodir='${datarootdir}/info' | ||
858 | htmldir='${docdir}' | ||
859 | dvidir='${docdir}' | ||
860 | pdfdir='${docdir}' | ||
861 | psdir='${docdir}' | ||
862 | libdir='${exec_prefix}/lib' | ||
863 | localedir='${datarootdir}/locale' | ||
864 | mandir='${datarootdir}/man' | ||
865 | |||
866 | ac_prev= | ||
867 | ac_dashdash= | ||
868 | for ac_option | ||
869 | do | ||
870 | # If the previous option needs an argument, assign it. | ||
871 | if test -n "$ac_prev"; then | ||
872 | eval $ac_prev=\$ac_option | ||
873 | ac_prev= | ||
874 | continue | ||
875 | fi | ||
876 | |||
877 | case $ac_option in | ||
878 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
879 | *) ac_optarg=yes ;; | ||
880 | esac | ||
881 | |||
882 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
883 | |||
884 | case $ac_dashdash$ac_option in | ||
885 | --) | ||
886 | ac_dashdash=yes ;; | ||
887 | |||
888 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
889 | ac_prev=bindir ;; | ||
890 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
891 | bindir=$ac_optarg ;; | ||
892 | |||
893 | -build | --build | --buil | --bui | --bu) | ||
894 | ac_prev=build_alias ;; | ||
895 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
896 | build_alias=$ac_optarg ;; | ||
897 | |||
898 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
899 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
900 | ac_prev=cache_file ;; | ||
901 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
902 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
903 | cache_file=$ac_optarg ;; | ||
904 | |||
905 | --config-cache | -C) | ||
906 | cache_file=config.cache ;; | ||
907 | |||
908 | -datadir | --datadir | --datadi | --datad) | ||
909 | ac_prev=datadir ;; | ||
910 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
911 | datadir=$ac_optarg ;; | ||
912 | |||
913 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
914 | | --dataroo | --dataro | --datar) | ||
915 | ac_prev=datarootdir ;; | ||
916 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
917 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
918 | datarootdir=$ac_optarg ;; | ||
919 | |||
920 | -disable-* | --disable-*) | ||
921 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
922 | # Reject names that are not valid shell variable names. | ||
923 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
924 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | ||
925 | { (exit 1); exit 1; }; } | ||
926 | ac_useropt_orig=$ac_useropt | ||
927 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
928 | case $ac_user_opts in | ||
929 | *" | ||
930 | "enable_$ac_useropt" | ||
931 | "*) ;; | ||
932 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
933 | ac_unrecognized_sep=', ';; | ||
934 | esac | ||
935 | eval enable_$ac_useropt=no ;; | ||
936 | |||
937 | -docdir | --docdir | --docdi | --doc | --do) | ||
938 | ac_prev=docdir ;; | ||
939 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
940 | docdir=$ac_optarg ;; | ||
941 | |||
942 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
943 | ac_prev=dvidir ;; | ||
944 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
945 | dvidir=$ac_optarg ;; | ||
946 | |||
947 | -enable-* | --enable-*) | ||
948 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
949 | # Reject names that are not valid shell variable names. | ||
950 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
951 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | ||
952 | { (exit 1); exit 1; }; } | ||
953 | ac_useropt_orig=$ac_useropt | ||
954 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
955 | case $ac_user_opts in | ||
956 | *" | ||
957 | "enable_$ac_useropt" | ||
958 | "*) ;; | ||
959 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
960 | ac_unrecognized_sep=', ';; | ||
961 | esac | ||
962 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
963 | |||
964 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
965 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
966 | | --exec | --exe | --ex) | ||
967 | ac_prev=exec_prefix ;; | ||
968 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
969 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
970 | | --exec=* | --exe=* | --ex=*) | ||
971 | exec_prefix=$ac_optarg ;; | ||
972 | |||
973 | -gas | --gas | --ga | --g) | ||
974 | # Obsolete; use --with-gas. | ||
975 | with_gas=yes ;; | ||
976 | |||
977 | -help | --help | --hel | --he | -h) | ||
978 | ac_init_help=long ;; | ||
979 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
980 | ac_init_help=recursive ;; | ||
981 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
982 | ac_init_help=short ;; | ||
983 | |||
984 | -host | --host | --hos | --ho) | ||
985 | ac_prev=host_alias ;; | ||
986 | -host=* | --host=* | --hos=* | --ho=*) | ||
987 | host_alias=$ac_optarg ;; | ||
988 | |||
989 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
990 | ac_prev=htmldir ;; | ||
991 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
992 | | --ht=*) | ||
993 | htmldir=$ac_optarg ;; | ||
994 | |||
995 | -includedir | --includedir | --includedi | --included | --include \ | ||
996 | | --includ | --inclu | --incl | --inc) | ||
997 | ac_prev=includedir ;; | ||
998 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
999 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1000 | includedir=$ac_optarg ;; | ||
1001 | |||
1002 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1003 | ac_prev=infodir ;; | ||
1004 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1005 | infodir=$ac_optarg ;; | ||
1006 | |||
1007 | -libdir | --libdir | --libdi | --libd) | ||
1008 | ac_prev=libdir ;; | ||
1009 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1010 | libdir=$ac_optarg ;; | ||
1011 | |||
1012 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1013 | | --libexe | --libex | --libe) | ||
1014 | ac_prev=libexecdir ;; | ||
1015 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1016 | | --libexe=* | --libex=* | --libe=*) | ||
1017 | libexecdir=$ac_optarg ;; | ||
1018 | |||
1019 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1020 | ac_prev=localedir ;; | ||
1021 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1022 | localedir=$ac_optarg ;; | ||
1023 | |||
1024 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1025 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1026 | ac_prev=localstatedir ;; | ||
1027 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1028 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1029 | localstatedir=$ac_optarg ;; | ||
1030 | |||
1031 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1032 | ac_prev=mandir ;; | ||
1033 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1034 | mandir=$ac_optarg ;; | ||
1035 | |||
1036 | -nfp | --nfp | --nf) | ||
1037 | # Obsolete; use --without-fp. | ||
1038 | with_fp=no ;; | ||
1039 | |||
1040 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1041 | | --no-cr | --no-c | -n) | ||
1042 | no_create=yes ;; | ||
1043 | |||
1044 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1045 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1046 | no_recursion=yes ;; | ||
1047 | |||
1048 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1049 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1050 | | --oldin | --oldi | --old | --ol | --o) | ||
1051 | ac_prev=oldincludedir ;; | ||
1052 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1053 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1054 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1055 | oldincludedir=$ac_optarg ;; | ||
1056 | |||
1057 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1058 | ac_prev=prefix ;; | ||
1059 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1060 | prefix=$ac_optarg ;; | ||
1061 | |||
1062 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1063 | | --program-pre | --program-pr | --program-p) | ||
1064 | ac_prev=program_prefix ;; | ||
1065 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1066 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1067 | program_prefix=$ac_optarg ;; | ||
1068 | |||
1069 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1070 | | --program-suf | --program-su | --program-s) | ||
1071 | ac_prev=program_suffix ;; | ||
1072 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1073 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1074 | program_suffix=$ac_optarg ;; | ||
1075 | |||
1076 | -program-transform-name | --program-transform-name \ | ||
1077 | | --program-transform-nam | --program-transform-na \ | ||
1078 | | --program-transform-n | --program-transform- \ | ||
1079 | | --program-transform | --program-transfor \ | ||
1080 | | --program-transfo | --program-transf \ | ||
1081 | | --program-trans | --program-tran \ | ||
1082 | | --progr-tra | --program-tr | --program-t) | ||
1083 | ac_prev=program_transform_name ;; | ||
1084 | -program-transform-name=* | --program-transform-name=* \ | ||
1085 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1086 | | --program-transform-n=* | --program-transform-=* \ | ||
1087 | | --program-transform=* | --program-transfor=* \ | ||
1088 | | --program-transfo=* | --program-transf=* \ | ||
1089 | | --program-trans=* | --program-tran=* \ | ||
1090 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1091 | program_transform_name=$ac_optarg ;; | ||
1092 | |||
1093 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1094 | ac_prev=pdfdir ;; | ||
1095 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1096 | pdfdir=$ac_optarg ;; | ||
1097 | |||
1098 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1099 | ac_prev=psdir ;; | ||
1100 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1101 | psdir=$ac_optarg ;; | ||
1102 | |||
1103 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1104 | | -silent | --silent | --silen | --sile | --sil) | ||
1105 | silent=yes ;; | ||
1106 | |||
1107 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1108 | ac_prev=sbindir ;; | ||
1109 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1110 | | --sbi=* | --sb=*) | ||
1111 | sbindir=$ac_optarg ;; | ||
1112 | |||
1113 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1114 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1115 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1116 | | --sha | --sh) | ||
1117 | ac_prev=sharedstatedir ;; | ||
1118 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1119 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1120 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1121 | | --sha=* | --sh=*) | ||
1122 | sharedstatedir=$ac_optarg ;; | ||
1123 | |||
1124 | -site | --site | --sit) | ||
1125 | ac_prev=site ;; | ||
1126 | -site=* | --site=* | --sit=*) | ||
1127 | site=$ac_optarg ;; | ||
1128 | |||
1129 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1130 | ac_prev=srcdir ;; | ||
1131 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1132 | srcdir=$ac_optarg ;; | ||
1133 | |||
1134 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1135 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1136 | ac_prev=sysconfdir ;; | ||
1137 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1138 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1139 | sysconfdir=$ac_optarg ;; | ||
1140 | |||
1141 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1142 | ac_prev=target_alias ;; | ||
1143 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1144 | target_alias=$ac_optarg ;; | ||
1145 | |||
1146 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1147 | verbose=yes ;; | ||
1148 | |||
1149 | -version | --version | --versio | --versi | --vers | -V) | ||
1150 | ac_init_version=: ;; | ||
1151 | |||
1152 | -with-* | --with-*) | ||
1153 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1154 | # Reject names that are not valid shell variable names. | ||
1155 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1156 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | ||
1157 | { (exit 1); exit 1; }; } | ||
1158 | ac_useropt_orig=$ac_useropt | ||
1159 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1160 | case $ac_user_opts in | ||
1161 | *" | ||
1162 | "with_$ac_useropt" | ||
1163 | "*) ;; | ||
1164 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1165 | ac_unrecognized_sep=', ';; | ||
1166 | esac | ||
1167 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1168 | |||
1169 | -without-* | --without-*) | ||
1170 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1171 | # Reject names that are not valid shell variable names. | ||
1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1173 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | ||
1174 | { (exit 1); exit 1; }; } | ||
1175 | ac_useropt_orig=$ac_useropt | ||
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1177 | case $ac_user_opts in | ||
1178 | *" | ||
1179 | "with_$ac_useropt" | ||
1180 | "*) ;; | ||
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1182 | ac_unrecognized_sep=', ';; | ||
1183 | esac | ||
1184 | eval with_$ac_useropt=no ;; | ||
1185 | |||
1186 | --x) | ||
1187 | # Obsolete; use --with-x. | ||
1188 | with_x=yes ;; | ||
1189 | |||
1190 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1191 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1192 | ac_prev=x_includes ;; | ||
1193 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1194 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1195 | x_includes=$ac_optarg ;; | ||
1196 | |||
1197 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1198 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1199 | ac_prev=x_libraries ;; | ||
1200 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1201 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1202 | x_libraries=$ac_optarg ;; | ||
1203 | |||
1204 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | ||
1205 | Try \`$0 --help' for more information." >&2 | ||
1206 | { (exit 1); exit 1; }; } | ||
1207 | ;; | ||
1208 | |||
1209 | *=*) | ||
1210 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1211 | # Reject names that are not valid shell variable names. | ||
1212 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1213 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1214 | { (exit 1); exit 1; }; } | ||
1215 | eval $ac_envvar=\$ac_optarg | ||
1216 | export $ac_envvar ;; | ||
1217 | |||
1218 | *) | ||
1219 | # FIXME: should be removed in autoconf 3.0. | ||
1220 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1221 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1222 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1223 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1224 | ;; | ||
1225 | |||
1226 | esac | ||
1227 | done | ||
1228 | |||
1229 | if test -n "$ac_prev"; then | ||
1230 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1231 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1232 | { (exit 1); exit 1; }; } | ||
1233 | fi | ||
1234 | |||
1235 | if test -n "$ac_unrecognized_opts"; then | ||
1236 | case $enable_option_checking in | ||
1237 | no) ;; | ||
1238 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 | ||
1239 | { (exit 1); exit 1; }; } ;; | ||
1240 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1241 | esac | ||
1242 | fi | ||
1243 | |||
1244 | # Check all directory arguments for consistency. | ||
1245 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1246 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1247 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1248 | libdir localedir mandir | ||
1249 | do | ||
1250 | eval ac_val=\$$ac_var | ||
1251 | # Remove trailing slashes. | ||
1252 | case $ac_val in | ||
1253 | */ ) | ||
1254 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1255 | eval $ac_var=\$ac_val;; | ||
1256 | esac | ||
1257 | # Be sure to have absolute directory names. | ||
1258 | case $ac_val in | ||
1259 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1260 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1261 | esac | ||
1262 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1263 | { (exit 1); exit 1; }; } | ||
1264 | done | ||
1265 | |||
1266 | # There might be people who depend on the old broken behavior: `$host' | ||
1267 | # used to hold the argument of --host etc. | ||
1268 | # FIXME: To remove some day. | ||
1269 | build=$build_alias | ||
1270 | host=$host_alias | ||
1271 | target=$target_alias | ||
1272 | |||
1273 | # FIXME: To remove some day. | ||
1274 | if test "x$host_alias" != x; then | ||
1275 | if test "x$build_alias" = x; then | ||
1276 | cross_compiling=maybe | ||
1277 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1278 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1279 | elif test "x$build_alias" != "x$host_alias"; then | ||
1280 | cross_compiling=yes | ||
1281 | fi | ||
1282 | fi | ||
1283 | |||
1284 | ac_tool_prefix= | ||
1285 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1286 | |||
1287 | test "$silent" = yes && exec 6>/dev/null | ||
1288 | |||
1289 | |||
1290 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1291 | ac_ls_di=`ls -di .` && | ||
1292 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1293 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1294 | { (exit 1); exit 1; }; } | ||
1295 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1296 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1297 | { (exit 1); exit 1; }; } | ||
1298 | |||
1299 | |||
1300 | # Find the source files, if location was not specified. | ||
1301 | if test -z "$srcdir"; then | ||
1302 | ac_srcdir_defaulted=yes | ||
1303 | # Try the directory containing this script, then the parent directory. | ||
1304 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1305 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1306 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1307 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1308 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1309 | $as_echo X"$as_myself" | | ||
1310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1311 | s//\1/ | ||
1312 | q | ||
1313 | } | ||
1314 | /^X\(\/\/\)[^/].*/{ | ||
1315 | s//\1/ | ||
1316 | q | ||
1317 | } | ||
1318 | /^X\(\/\/\)$/{ | ||
1319 | s//\1/ | ||
1320 | q | ||
1321 | } | ||
1322 | /^X\(\/\).*/{ | ||
1323 | s//\1/ | ||
1324 | q | ||
1325 | } | ||
1326 | s/.*/./; q'` | ||
1327 | srcdir=$ac_confdir | ||
1328 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1329 | srcdir=.. | ||
1330 | fi | ||
1331 | else | ||
1332 | ac_srcdir_defaulted=no | ||
1333 | fi | ||
1334 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1335 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1336 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1337 | { (exit 1); exit 1; }; } | ||
1338 | fi | ||
1339 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1340 | ac_abs_confdir=`( | ||
1341 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | ||
1342 | { (exit 1); exit 1; }; } | ||
1343 | pwd)` | ||
1344 | # When building in place, set srcdir=. | ||
1345 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1346 | srcdir=. | ||
1347 | fi | ||
1348 | # Remove unnecessary trailing slashes from srcdir. | ||
1349 | # Double slashes in file names in object file debugging info | ||
1350 | # mess up M-x gdb in Emacs. | ||
1351 | case $srcdir in | ||
1352 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1353 | esac | ||
1354 | for ac_var in $ac_precious_vars; do | ||
1355 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1356 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1357 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1358 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1359 | done | ||
1360 | |||
1361 | # | ||
1362 | # Report the --help message. | ||
1363 | # | ||
1364 | if test "$ac_init_help" = "long"; then | ||
1365 | # Omit some internal or obsolete options to make the list less imposing. | ||
1366 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1367 | cat <<_ACEOF | ||
1368 | \`configure' configures OpenSSH Portable to adapt to many kinds of systems. | ||
1369 | |||
1370 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1371 | |||
1372 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1373 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1374 | |||
1375 | Defaults for the options are specified in brackets. | ||
1376 | |||
1377 | Configuration: | ||
1378 | -h, --help display this help and exit | ||
1379 | --help=short display options specific to this package | ||
1380 | --help=recursive display the short help of all the included packages | ||
1381 | -V, --version display version information and exit | ||
1382 | -q, --quiet, --silent do not print \`checking...' messages | ||
1383 | --cache-file=FILE cache test results in FILE [disabled] | ||
1384 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1385 | -n, --no-create do not create output files | ||
1386 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1387 | |||
1388 | Installation directories: | ||
1389 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1390 | [$ac_default_prefix] | ||
1391 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1392 | [PREFIX] | ||
1393 | |||
1394 | By default, \`make install' will install all the files in | ||
1395 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1396 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1397 | for instance \`--prefix=\$HOME'. | ||
1398 | |||
1399 | For better control, use the options below. | ||
1400 | |||
1401 | Fine tuning of the installation directories: | ||
1402 | --bindir=DIR user executables [EPREFIX/bin] | ||
1403 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1404 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1405 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1406 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1407 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1408 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1409 | --includedir=DIR C header files [PREFIX/include] | ||
1410 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1411 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1412 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1413 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1414 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1415 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1416 | --docdir=DIR documentation root [DATAROOTDIR/doc/openssh] | ||
1417 | --htmldir=DIR html documentation [DOCDIR] | ||
1418 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1419 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1420 | --psdir=DIR ps documentation [DOCDIR] | ||
1421 | _ACEOF | ||
1422 | |||
1423 | cat <<\_ACEOF | ||
1424 | |||
1425 | System types: | ||
1426 | --build=BUILD configure for building on BUILD [guessed] | ||
1427 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1428 | _ACEOF | ||
1429 | fi | ||
1430 | |||
1431 | if test -n "$ac_init_help"; then | ||
1432 | case $ac_init_help in | ||
1433 | short | recursive ) echo "Configuration of OpenSSH Portable:";; | ||
1434 | esac | ||
1435 | cat <<\_ACEOF | ||
1436 | |||
1437 | Optional Features: | ||
1438 | --disable-option-checking ignore unrecognized --enable/--with options | ||
1439 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1440 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1441 | --disable-largefile omit support for large files | ||
1442 | --disable-strip Disable calling strip(1) on install | ||
1443 | --disable-etc-default-login Disable using PATH from /etc/default/login no | ||
1444 | --disable-lastlog disable use of lastlog even if detected no | ||
1445 | --disable-utmp disable use of utmp even if detected no | ||
1446 | --disable-utmpx disable use of utmpx even if detected no | ||
1447 | --disable-wtmp disable use of wtmp even if detected no | ||
1448 | --disable-wtmpx disable use of wtmpx even if detected no | ||
1449 | --disable-libutil disable use of libutil (login() etc.) no | ||
1450 | --disable-pututline disable use of pututline() etc. (uwtmp) no | ||
1451 | --disable-pututxline disable use of pututxline() etc. (uwtmpx) no | ||
1452 | |||
1453 | Optional Packages: | ||
1454 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1455 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1456 | --without-stackprotect Don't use compiler's stack protection | ||
1457 | --without-rpath Disable auto-added -R linker paths | ||
1458 | --with-cflags Specify additional flags to pass to compiler | ||
1459 | --with-cppflags Specify additional flags to pass to preprocessor | ||
1460 | --with-ldflags Specify additional flags to pass to linker | ||
1461 | --with-libs Specify additional libraries to link with | ||
1462 | --with-Werror Build main code with -Werror | ||
1463 | --with-solaris-contracts Enable Solaris process contracts (experimental) | ||
1464 | --with-osfsia Enable Digital Unix SIA | ||
1465 | --with-zlib=PATH Use zlib in PATH | ||
1466 | --without-zlib-version-check Disable zlib version check | ||
1467 | --with-skey[=PATH] Enable S/Key support (optionally in PATH) | ||
1468 | --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) | ||
1469 | --with-libedit[=PATH] Enable libedit support for sftp | ||
1470 | --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) | ||
1471 | --with-ssl-dir=PATH Specify path to OpenSSL installation | ||
1472 | --without-openssl-header-check Disable OpenSSL version consistency check | ||
1473 | --with-ssl-engine Enable OpenSSL (hardware) ENGINE support | ||
1474 | --with-pam Enable PAM support | ||
1475 | --with-rand-helper Use subprocess to gather strong randomness | ||
1476 | --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT | ||
1477 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) | ||
1478 | --with-entropy-timeout Specify entropy gathering command timeout (msec) | ||
1479 | --with-privsep-user=user Specify non-privileged user for privilege separation | ||
1480 | --with-sectok Enable smartcard support using libsectok | ||
1481 | --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) | ||
1482 | --with-selinux Enable SELinux support | ||
1483 | --with-kerberos5=PATH Enable Kerberos 5 support | ||
1484 | --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) | ||
1485 | --with-xauth=PATH Specify path to xauth program | ||
1486 | --with-mantype=man|cat|doc Set man page type | ||
1487 | --with-md5-passwords Enable use of MD5 passwords | ||
1488 | --without-shadow Disable shadow password support | ||
1489 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY | ||
1490 | --with-default-path= Specify default \$PATH environment for server | ||
1491 | --with-superuser-path= Specify different path for super-user | ||
1492 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses | ||
1493 | --with-bsd-auth Enable BSD auth support | ||
1494 | --with-pid-dir=PATH Specify location of ssh.pid file | ||
1495 | --with-lastlog=FILE|DIR specify lastlog location common locations | ||
1496 | |||
1497 | Some influential environment variables: | ||
1498 | CC C compiler command | ||
1499 | CFLAGS C compiler flags | ||
1500 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1501 | nonstandard directory <lib dir> | ||
1502 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1503 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1504 | you have headers in a nonstandard directory <include dir> | ||
1505 | CPP C preprocessor | ||
1506 | |||
1507 | Use these variables to override the choices made by `configure' or to help | ||
1508 | it to find libraries and programs with nonstandard names/locations. | ||
1509 | |||
1510 | Report bugs to <openssh-unix-dev@mindrot.org>. | ||
1511 | _ACEOF | ||
1512 | ac_status=$? | ||
1513 | fi | ||
1514 | |||
1515 | if test "$ac_init_help" = "recursive"; then | ||
1516 | # If there are subdirs, report their specific --help. | ||
1517 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1518 | test -d "$ac_dir" || | ||
1519 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1520 | continue | ||
1521 | ac_builddir=. | ||
1522 | |||
1523 | case "$ac_dir" in | ||
1524 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1525 | *) | ||
1526 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1527 | # A ".." for each directory in $ac_dir_suffix. | ||
1528 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1529 | case $ac_top_builddir_sub in | ||
1530 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1531 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1532 | esac ;; | ||
1533 | esac | ||
1534 | ac_abs_top_builddir=$ac_pwd | ||
1535 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1536 | # for backward compatibility: | ||
1537 | ac_top_builddir=$ac_top_build_prefix | ||
1538 | |||
1539 | case $srcdir in | ||
1540 | .) # We are building in place. | ||
1541 | ac_srcdir=. | ||
1542 | ac_top_srcdir=$ac_top_builddir_sub | ||
1543 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1544 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1545 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1546 | ac_top_srcdir=$srcdir | ||
1547 | ac_abs_top_srcdir=$srcdir ;; | ||
1548 | *) # Relative name. | ||
1549 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1550 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1551 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1552 | esac | ||
1553 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1554 | |||
1555 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1556 | # Check for guested configure. | ||
1557 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1558 | echo && | ||
1559 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1560 | elif test -f "$ac_srcdir/configure"; then | ||
1561 | echo && | ||
1562 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1563 | else | ||
1564 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1565 | fi || ac_status=$? | ||
1566 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1567 | done | ||
1568 | fi | ||
1569 | |||
1570 | test -n "$ac_init_help" && exit $ac_status | ||
1571 | if $ac_init_version; then | ||
1572 | cat <<\_ACEOF | ||
1573 | OpenSSH configure Portable | ||
1574 | generated by GNU Autoconf 2.62 | ||
1575 | |||
1576 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1577 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
1578 | This configure script is free software; the Free Software Foundation | ||
1579 | gives unlimited permission to copy, distribute and modify it. | ||
1580 | _ACEOF | ||
1581 | exit | ||
1582 | fi | ||
1583 | cat >config.log <<_ACEOF | ||
1584 | This file contains any messages produced by compilers while | ||
1585 | running configure, to aid debugging if configure makes a mistake. | ||
1586 | |||
1587 | It was created by OpenSSH $as_me Portable, which was | ||
1588 | generated by GNU Autoconf 2.62. Invocation command line was | ||
1589 | |||
1590 | $ $0 $@ | ||
1591 | |||
1592 | _ACEOF | ||
1593 | exec 5>>config.log | ||
1594 | { | ||
1595 | cat <<_ASUNAME | ||
1596 | ## --------- ## | ||
1597 | ## Platform. ## | ||
1598 | ## --------- ## | ||
1599 | |||
1600 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1601 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1602 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1603 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1604 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1605 | |||
1606 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1607 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1608 | |||
1609 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1610 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1611 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1612 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1613 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1614 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1615 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1616 | |||
1617 | _ASUNAME | ||
1618 | |||
1619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1620 | for as_dir in $PATH | ||
1621 | do | ||
1622 | IFS=$as_save_IFS | ||
1623 | test -z "$as_dir" && as_dir=. | ||
1624 | $as_echo "PATH: $as_dir" | ||
1625 | done | ||
1626 | IFS=$as_save_IFS | ||
1627 | |||
1628 | } >&5 | ||
1629 | |||
1630 | cat >&5 <<_ACEOF | ||
1631 | |||
1632 | |||
1633 | ## ----------- ## | ||
1634 | ## Core tests. ## | ||
1635 | ## ----------- ## | ||
1636 | |||
1637 | _ACEOF | ||
1638 | |||
1639 | |||
1640 | # Keep a trace of the command line. | ||
1641 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1642 | # Strip out --silent because we don't want to record it for future runs. | ||
1643 | # Also quote any args containing shell meta-characters. | ||
1644 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1645 | ac_configure_args= | ||
1646 | ac_configure_args0= | ||
1647 | ac_configure_args1= | ||
1648 | ac_must_keep_next=false | ||
1649 | for ac_pass in 1 2 | ||
1650 | do | ||
1651 | for ac_arg | ||
1652 | do | ||
1653 | case $ac_arg in | ||
1654 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1656 | | -silent | --silent | --silen | --sile | --sil) | ||
1657 | continue ;; | ||
1658 | *\'*) | ||
1659 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1660 | esac | ||
1661 | case $ac_pass in | ||
1662 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1663 | 2) | ||
1664 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1665 | if test $ac_must_keep_next = true; then | ||
1666 | ac_must_keep_next=false # Got value, back to normal. | ||
1667 | else | ||
1668 | case $ac_arg in | ||
1669 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1670 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1671 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1672 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1673 | case "$ac_configure_args0 " in | ||
1674 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1675 | esac | ||
1676 | ;; | ||
1677 | -* ) ac_must_keep_next=true ;; | ||
1678 | esac | ||
1679 | fi | ||
1680 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1681 | ;; | ||
1682 | esac | ||
1683 | done | ||
1684 | done | ||
1685 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1686 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1687 | |||
1688 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1689 | # config.log. We remove comments because anyway the quotes in there | ||
1690 | # would cause problems or look ugly. | ||
1691 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1692 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1693 | trap 'exit_status=$? | ||
1694 | # Save into config.log some information that might help in debugging. | ||
1695 | { | ||
1696 | echo | ||
1697 | |||
1698 | cat <<\_ASBOX | ||
1699 | ## ---------------- ## | ||
1700 | ## Cache variables. ## | ||
1701 | ## ---------------- ## | ||
1702 | _ASBOX | ||
1703 | echo | ||
1704 | # The following way of writing the cache mishandles newlines in values, | ||
1705 | ( | ||
1706 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1707 | eval ac_val=\$$ac_var | ||
1708 | case $ac_val in #( | ||
1709 | *${as_nl}*) | ||
1710 | case $ac_var in #( | ||
1711 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1712 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1713 | esac | ||
1714 | case $ac_var in #( | ||
1715 | _ | IFS | as_nl) ;; #( | ||
1716 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
1717 | *) $as_unset $ac_var ;; | ||
1718 | esac ;; | ||
1719 | esac | ||
1720 | done | ||
1721 | (set) 2>&1 | | ||
1722 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1723 | *${as_nl}ac_space=\ *) | ||
1724 | sed -n \ | ||
1725 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1726 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1727 | ;; #( | ||
1728 | *) | ||
1729 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1730 | ;; | ||
1731 | esac | | ||
1732 | sort | ||
1733 | ) | ||
1734 | echo | ||
1735 | |||
1736 | cat <<\_ASBOX | ||
1737 | ## ----------------- ## | ||
1738 | ## Output variables. ## | ||
1739 | ## ----------------- ## | ||
1740 | _ASBOX | ||
1741 | echo | ||
1742 | for ac_var in $ac_subst_vars | ||
1743 | do | ||
1744 | eval ac_val=\$$ac_var | ||
1745 | case $ac_val in | ||
1746 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1747 | esac | ||
1748 | $as_echo "$ac_var='\''$ac_val'\''" | ||
1749 | done | sort | ||
1750 | echo | ||
1751 | |||
1752 | if test -n "$ac_subst_files"; then | ||
1753 | cat <<\_ASBOX | ||
1754 | ## ------------------- ## | ||
1755 | ## File substitutions. ## | ||
1756 | ## ------------------- ## | ||
1757 | _ASBOX | ||
1758 | echo | ||
1759 | for ac_var in $ac_subst_files | ||
1760 | do | ||
1761 | eval ac_val=\$$ac_var | ||
1762 | case $ac_val in | ||
1763 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1764 | esac | ||
1765 | $as_echo "$ac_var='\''$ac_val'\''" | ||
1766 | done | sort | ||
1767 | echo | ||
1768 | fi | ||
1769 | |||
1770 | if test -s confdefs.h; then | ||
1771 | cat <<\_ASBOX | ||
1772 | ## ----------- ## | ||
1773 | ## confdefs.h. ## | ||
1774 | ## ----------- ## | ||
1775 | _ASBOX | ||
1776 | echo | ||
1777 | cat confdefs.h | ||
1778 | echo | ||
1779 | fi | ||
1780 | test "$ac_signal" != 0 && | ||
1781 | $as_echo "$as_me: caught signal $ac_signal" | ||
1782 | $as_echo "$as_me: exit $exit_status" | ||
1783 | } >&5 | ||
1784 | rm -f core *.core core.conftest.* && | ||
1785 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1786 | exit $exit_status | ||
1787 | ' 0 | ||
1788 | for ac_signal in 1 2 13 15; do | ||
1789 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1790 | done | ||
1791 | ac_signal=0 | ||
1792 | |||
1793 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1794 | rm -f -r conftest* confdefs.h | ||
1795 | |||
1796 | # Predefined preprocessor variables. | ||
1797 | |||
1798 | cat >>confdefs.h <<_ACEOF | ||
1799 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1800 | _ACEOF | ||
1801 | |||
1802 | |||
1803 | cat >>confdefs.h <<_ACEOF | ||
1804 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1805 | _ACEOF | ||
1806 | |||
1807 | |||
1808 | cat >>confdefs.h <<_ACEOF | ||
1809 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1810 | _ACEOF | ||
1811 | |||
1812 | |||
1813 | cat >>confdefs.h <<_ACEOF | ||
1814 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1815 | _ACEOF | ||
1816 | |||
1817 | |||
1818 | cat >>confdefs.h <<_ACEOF | ||
1819 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1820 | _ACEOF | ||
1821 | |||
1822 | |||
1823 | # Let the site file select an alternate cache file if it wants to. | ||
1824 | # Prefer an explicitly selected file to automatically selected ones. | ||
1825 | ac_site_file1=NONE | ||
1826 | ac_site_file2=NONE | ||
1827 | if test -n "$CONFIG_SITE"; then | ||
1828 | ac_site_file1=$CONFIG_SITE | ||
1829 | elif test "x$prefix" != xNONE; then | ||
1830 | ac_site_file1=$prefix/share/config.site | ||
1831 | ac_site_file2=$prefix/etc/config.site | ||
1832 | else | ||
1833 | ac_site_file1=$ac_default_prefix/share/config.site | ||
1834 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
1835 | fi | ||
1836 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
1837 | do | ||
1838 | test "x$ac_site_file" = xNONE && continue | ||
1839 | if test -r "$ac_site_file"; then | ||
1840 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1841 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1842 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1843 | . "$ac_site_file" | ||
1844 | fi | ||
1845 | done | ||
1846 | |||
1847 | if test -r "$cache_file"; then | ||
1848 | # Some versions of bash will fail to source /dev/null (special | ||
1849 | # files actually), so we avoid doing that. | ||
1850 | if test -f "$cache_file"; then | ||
1851 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1852 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
1853 | case $cache_file in | ||
1854 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1855 | *) . "./$cache_file";; | ||
1856 | esac | ||
1857 | fi | ||
1858 | else | ||
1859 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1860 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
1861 | >$cache_file | ||
1862 | fi | ||
1863 | |||
1864 | # Check that the precious variables saved in the cache have kept the same | ||
1865 | # value. | ||
1866 | ac_cache_corrupted=false | ||
1867 | for ac_var in $ac_precious_vars; do | ||
1868 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1869 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1870 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1871 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1872 | case $ac_old_set,$ac_new_set in | ||
1873 | set,) | ||
1874 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1875 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1876 | ac_cache_corrupted=: ;; | ||
1877 | ,set) | ||
1878 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1879 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1880 | ac_cache_corrupted=: ;; | ||
1881 | ,);; | ||
1882 | *) | ||
1883 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1884 | # differences in whitespace do not lead to failure. | ||
1885 | ac_old_val_w=`echo x $ac_old_val` | ||
1886 | ac_new_val_w=`echo x $ac_new_val` | ||
1887 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
1888 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1889 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1890 | ac_cache_corrupted=: | ||
1891 | else | ||
1892 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
1893 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
1894 | eval $ac_var=\$ac_old_val | ||
1895 | fi | ||
1896 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | ||
1897 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
1898 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | ||
1899 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
1900 | fi;; | ||
1901 | esac | ||
1902 | # Pass precious variables to config.status. | ||
1903 | if test "$ac_new_set" = set; then | ||
1904 | case $ac_new_val in | ||
1905 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1906 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1907 | esac | ||
1908 | case " $ac_configure_args " in | ||
1909 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1910 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1911 | esac | ||
1912 | fi | ||
1913 | done | ||
1914 | if $ac_cache_corrupted; then | ||
1915 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1916 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1917 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1918 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1919 | { (exit 1); exit 1; }; } | ||
1920 | fi | ||
1921 | |||
1922 | |||
1923 | |||
1924 | |||
1925 | |||
1926 | |||
1927 | |||
1928 | |||
1929 | |||
1930 | |||
1931 | |||
1932 | |||
1933 | |||
1934 | |||
1935 | |||
1936 | |||
1937 | |||
1938 | |||
1939 | |||
1940 | |||
1941 | |||
1942 | |||
1943 | |||
1944 | |||
1945 | |||
1946 | ac_ext=c | ||
1947 | ac_cpp='$CPP $CPPFLAGS' | ||
1948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1951 | |||
1952 | |||
1953 | |||
1954 | |||
1955 | |||
1956 | ac_config_headers="$ac_config_headers config.h" | ||
1957 | |||
1958 | ac_ext=c | ||
1959 | ac_cpp='$CPP $CPPFLAGS' | ||
1960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1963 | if test -n "$ac_tool_prefix"; then | ||
1964 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
1965 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
1966 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1967 | $as_echo_n "checking for $ac_word... " >&6; } | ||
1968 | if test "${ac_cv_prog_CC+set}" = set; then | ||
1969 | $as_echo_n "(cached) " >&6 | ||
1970 | else | ||
1971 | if test -n "$CC"; then | ||
1972 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
1973 | else | ||
1974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1975 | for as_dir in $PATH | ||
1976 | do | ||
1977 | IFS=$as_save_IFS | ||
1978 | test -z "$as_dir" && as_dir=. | ||
1979 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
1981 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
1982 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1983 | break 2 | ||
1984 | fi | ||
1985 | done | ||
1986 | done | ||
1987 | IFS=$as_save_IFS | ||
1988 | |||
1989 | fi | ||
1990 | fi | ||
1991 | CC=$ac_cv_prog_CC | ||
1992 | if test -n "$CC"; then | ||
1993 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | ||
1994 | $as_echo "$CC" >&6; } | ||
1995 | else | ||
1996 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
1997 | $as_echo "no" >&6; } | ||
1998 | fi | ||
1999 | |||
2000 | |||
2001 | fi | ||
2002 | if test -z "$ac_cv_prog_CC"; then | ||
2003 | ac_ct_CC=$CC | ||
2004 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2005 | set dummy gcc; ac_word=$2 | ||
2006 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2007 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2008 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2009 | $as_echo_n "(cached) " >&6 | ||
2010 | else | ||
2011 | if test -n "$ac_ct_CC"; then | ||
2012 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2013 | else | ||
2014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2015 | for as_dir in $PATH | ||
2016 | do | ||
2017 | IFS=$as_save_IFS | ||
2018 | test -z "$as_dir" && as_dir=. | ||
2019 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2021 | ac_cv_prog_ac_ct_CC="gcc" | ||
2022 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2023 | break 2 | ||
2024 | fi | ||
2025 | done | ||
2026 | done | ||
2027 | IFS=$as_save_IFS | ||
2028 | |||
2029 | fi | ||
2030 | fi | ||
2031 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2032 | if test -n "$ac_ct_CC"; then | ||
2033 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2034 | $as_echo "$ac_ct_CC" >&6; } | ||
2035 | else | ||
2036 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
2037 | $as_echo "no" >&6; } | ||
2038 | fi | ||
2039 | |||
2040 | if test "x$ac_ct_CC" = x; then | ||
2041 | CC="" | ||
2042 | else | ||
2043 | case $cross_compiling:$ac_tool_warned in | ||
2044 | yes:) | ||
2045 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2046 | whose name does not start with the host triplet. If you think this | ||
2047 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2048 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2049 | whose name does not start with the host triplet. If you think this | ||
2050 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2051 | ac_tool_warned=yes ;; | ||
2052 | esac | ||
2053 | CC=$ac_ct_CC | ||
2054 | fi | ||
2055 | else | ||
2056 | CC="$ac_cv_prog_CC" | ||
2057 | fi | ||
2058 | |||
2059 | if test -z "$CC"; then | ||
2060 | if test -n "$ac_tool_prefix"; then | ||
2061 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2062 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2063 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2064 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2065 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2066 | $as_echo_n "(cached) " >&6 | ||
2067 | else | ||
2068 | if test -n "$CC"; then | ||
2069 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2070 | else | ||
2071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2072 | for as_dir in $PATH | ||
2073 | do | ||
2074 | IFS=$as_save_IFS | ||
2075 | test -z "$as_dir" && as_dir=. | ||
2076 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2078 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2079 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2080 | break 2 | ||
2081 | fi | ||
2082 | done | ||
2083 | done | ||
2084 | IFS=$as_save_IFS | ||
2085 | |||
2086 | fi | ||
2087 | fi | ||
2088 | CC=$ac_cv_prog_CC | ||
2089 | if test -n "$CC"; then | ||
2090 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | ||
2091 | $as_echo "$CC" >&6; } | ||
2092 | else | ||
2093 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
2094 | $as_echo "no" >&6; } | ||
2095 | fi | ||
2096 | |||
2097 | |||
2098 | fi | ||
2099 | fi | ||
2100 | if test -z "$CC"; then | ||
2101 | # Extract the first word of "cc", so it can be a program name with args. | ||
2102 | set dummy cc; ac_word=$2 | ||
2103 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2104 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2105 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2106 | $as_echo_n "(cached) " >&6 | ||
2107 | else | ||
2108 | if test -n "$CC"; then | ||
2109 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2110 | else | ||
2111 | ac_prog_rejected=no | ||
2112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2113 | for as_dir in $PATH | ||
2114 | do | ||
2115 | IFS=$as_save_IFS | ||
2116 | test -z "$as_dir" && as_dir=. | ||
2117 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2119 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2120 | ac_prog_rejected=yes | ||
2121 | continue | ||
2122 | fi | ||
2123 | ac_cv_prog_CC="cc" | ||
2124 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2125 | break 2 | ||
2126 | fi | ||
2127 | done | ||
2128 | done | ||
2129 | IFS=$as_save_IFS | ||
2130 | |||
2131 | if test $ac_prog_rejected = yes; then | ||
2132 | # We found a bogon in the path, so make sure we never use it. | ||
2133 | set dummy $ac_cv_prog_CC | ||
2134 | shift | ||
2135 | if test $# != 0; then | ||
2136 | # We chose a different compiler from the bogus one. | ||
2137 | # However, it has the same basename, so the bogon will be chosen | ||
2138 | # first if we set CC to just the basename; use the full file name. | ||
2139 | shift | ||
2140 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2141 | fi | ||
2142 | fi | ||
2143 | fi | ||
2144 | fi | ||
2145 | CC=$ac_cv_prog_CC | ||
2146 | if test -n "$CC"; then | ||
2147 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | ||
2148 | $as_echo "$CC" >&6; } | ||
2149 | else | ||
2150 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
2151 | $as_echo "no" >&6; } | ||
2152 | fi | ||
2153 | |||
2154 | |||
2155 | fi | ||
2156 | if test -z "$CC"; then | ||
2157 | if test -n "$ac_tool_prefix"; then | ||
2158 | for ac_prog in cl.exe | ||
2159 | do | ||
2160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2162 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2163 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2164 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2165 | $as_echo_n "(cached) " >&6 | ||
2166 | else | ||
2167 | if test -n "$CC"; then | ||
2168 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2169 | else | ||
2170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2171 | for as_dir in $PATH | ||
2172 | do | ||
2173 | IFS=$as_save_IFS | ||
2174 | test -z "$as_dir" && as_dir=. | ||
2175 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2176 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2177 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2178 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2179 | break 2 | ||
2180 | fi | ||
2181 | done | ||
2182 | done | ||
2183 | IFS=$as_save_IFS | ||
2184 | |||
2185 | fi | ||
2186 | fi | ||
2187 | CC=$ac_cv_prog_CC | ||
2188 | if test -n "$CC"; then | ||
2189 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | ||
2190 | $as_echo "$CC" >&6; } | ||
2191 | else | ||
2192 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
2193 | $as_echo "no" >&6; } | ||
2194 | fi | ||
2195 | |||
2196 | |||
2197 | test -n "$CC" && break | ||
2198 | done | ||
2199 | fi | ||
2200 | if test -z "$CC"; then | ||
2201 | ac_ct_CC=$CC | ||
2202 | for ac_prog in cl.exe | ||
2203 | do | ||
2204 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2205 | set dummy $ac_prog; ac_word=$2 | ||
2206 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2207 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2208 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2209 | $as_echo_n "(cached) " >&6 | ||
2210 | else | ||
2211 | if test -n "$ac_ct_CC"; then | ||
2212 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2213 | else | ||
2214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2215 | for as_dir in $PATH | ||
2216 | do | ||
2217 | IFS=$as_save_IFS | ||
2218 | test -z "$as_dir" && as_dir=. | ||
2219 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2221 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2222 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2223 | break 2 | ||
2224 | fi | ||
2225 | done | ||
2226 | done | ||
2227 | IFS=$as_save_IFS | ||
2228 | |||
2229 | fi | ||
2230 | fi | ||
2231 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2232 | if test -n "$ac_ct_CC"; then | ||
2233 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2234 | $as_echo "$ac_ct_CC" >&6; } | ||
2235 | else | ||
2236 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
2237 | $as_echo "no" >&6; } | ||
2238 | fi | ||
2239 | |||
2240 | |||
2241 | test -n "$ac_ct_CC" && break | ||
2242 | done | ||
2243 | |||
2244 | if test "x$ac_ct_CC" = x; then | ||
2245 | CC="" | ||
2246 | else | ||
2247 | case $cross_compiling:$ac_tool_warned in | ||
2248 | yes:) | ||
2249 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2250 | whose name does not start with the host triplet. If you think this | ||
2251 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2252 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2253 | whose name does not start with the host triplet. If you think this | ||
2254 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2255 | ac_tool_warned=yes ;; | ||
2256 | esac | ||
2257 | CC=$ac_ct_CC | ||
2258 | fi | ||
2259 | fi | ||
2260 | |||
2261 | fi | ||
2262 | |||
2263 | |||
2264 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2265 | See \`config.log' for more details." >&5 | ||
2266 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2267 | See \`config.log' for more details." >&2;} | ||
2268 | { (exit 1); exit 1; }; } | ||
2269 | |||
2270 | # Provide some information about the compiler. | ||
2271 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2272 | set X $ac_compile | ||
2273 | ac_compiler=$2 | ||
2274 | { (ac_try="$ac_compiler --version >&5" | ||
2275 | case "(($ac_try" in | ||
2276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2277 | *) ac_try_echo=$ac_try;; | ||
2278 | esac | ||
2279 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2280 | $as_echo "$ac_try_echo") >&5 | ||
2281 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2282 | ac_status=$? | ||
2283 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2284 | (exit $ac_status); } | ||
2285 | { (ac_try="$ac_compiler -v >&5" | ||
2286 | case "(($ac_try" in | ||
2287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2288 | *) ac_try_echo=$ac_try;; | ||
2289 | esac | ||
2290 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2291 | $as_echo "$ac_try_echo") >&5 | ||
2292 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2293 | ac_status=$? | ||
2294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2295 | (exit $ac_status); } | ||
2296 | { (ac_try="$ac_compiler -V >&5" | ||
2297 | case "(($ac_try" in | ||
2298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2299 | *) ac_try_echo=$ac_try;; | ||
2300 | esac | ||
2301 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2302 | $as_echo "$ac_try_echo") >&5 | ||
2303 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2304 | ac_status=$? | ||
2305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2306 | (exit $ac_status); } | ||
2307 | |||
2308 | cat >conftest.$ac_ext <<_ACEOF | ||
2309 | /* confdefs.h. */ | ||
2310 | _ACEOF | ||
2311 | cat confdefs.h >>conftest.$ac_ext | ||
2312 | cat >>conftest.$ac_ext <<_ACEOF | ||
2313 | /* end confdefs.h. */ | ||
2314 | |||
2315 | int | ||
2316 | main () | ||
2317 | { | ||
2318 | |||
2319 | ; | ||
2320 | return 0; | ||
2321 | } | ||
2322 | _ACEOF | ||
2323 | ac_clean_files_save=$ac_clean_files | ||
2324 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2325 | # Try to create an executable without -o first, disregard a.out. | ||
2326 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2327 | # of exeext. | ||
2328 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2329 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
2330 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2331 | |||
2332 | # The possible output files: | ||
2333 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2334 | |||
2335 | ac_rmfiles= | ||
2336 | for ac_file in $ac_files | ||
2337 | do | ||
2338 | case $ac_file in | ||
2339 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2340 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2341 | esac | ||
2342 | done | ||
2343 | rm -f $ac_rmfiles | ||
2344 | |||
2345 | if { (ac_try="$ac_link_default" | ||
2346 | case "(($ac_try" in | ||
2347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2348 | *) ac_try_echo=$ac_try;; | ||
2349 | esac | ||
2350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2351 | $as_echo "$ac_try_echo") >&5 | ||
2352 | (eval "$ac_link_default") 2>&5 | ||
2353 | ac_status=$? | ||
2354 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2355 | (exit $ac_status); }; then | ||
2356 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2357 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2358 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2359 | # so that the user can short-circuit this test for compilers unknown to | ||
2360 | # Autoconf. | ||
2361 | for ac_file in $ac_files '' | ||
2362 | do | ||
2363 | test -f "$ac_file" || continue | ||
2364 | case $ac_file in | ||
2365 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
2366 | ;; | ||
2367 | [ab].out ) | ||
2368 | # We found the default executable, but exeext='' is most | ||
2369 | # certainly right. | ||
2370 | break;; | ||
2371 | *.* ) | ||
2372 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2373 | then :; else | ||
2374 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2375 | fi | ||
2376 | # We set ac_cv_exeext here because the later test for it is not | ||
2377 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2378 | # argument, so we may need to know it at that point already. | ||
2379 | # Even if this section looks crufty: it has the advantage of | ||
2380 | # actually working. | ||
2381 | break;; | ||
2382 | * ) | ||
2383 | break;; | ||
2384 | esac | ||
2385 | done | ||
2386 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2387 | |||
2388 | else | ||
2389 | ac_file='' | ||
2390 | fi | ||
2391 | |||
2392 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2393 | $as_echo "$ac_file" >&6; } | ||
2394 | if test -z "$ac_file"; then | ||
2395 | $as_echo "$as_me: failed program was:" >&5 | ||
2396 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2397 | |||
2398 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2399 | See \`config.log' for more details." >&5 | ||
2400 | $as_echo "$as_me: error: C compiler cannot create executables | ||
2401 | See \`config.log' for more details." >&2;} | ||
2402 | { (exit 77); exit 77; }; } | ||
2403 | fi | ||
2404 | |||
2405 | ac_exeext=$ac_cv_exeext | ||
2406 | |||
2407 | # Check that the compiler produces executables we can run. If not, either | ||
2408 | # the compiler is broken, or we cross compile. | ||
2409 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2410 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2411 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2412 | # If not cross compiling, check that we can run a simple program. | ||
2413 | if test "$cross_compiling" != yes; then | ||
2414 | if { ac_try='./$ac_file' | ||
2415 | { (case "(($ac_try" in | ||
2416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2417 | *) ac_try_echo=$ac_try;; | ||
2418 | esac | ||
2419 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2420 | $as_echo "$ac_try_echo") >&5 | ||
2421 | (eval "$ac_try") 2>&5 | ||
2422 | ac_status=$? | ||
2423 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2424 | (exit $ac_status); }; }; then | ||
2425 | cross_compiling=no | ||
2426 | else | ||
2427 | if test "$cross_compiling" = maybe; then | ||
2428 | cross_compiling=yes | ||
2429 | else | ||
2430 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2431 | If you meant to cross compile, use \`--host'. | ||
2432 | See \`config.log' for more details." >&5 | ||
2433 | $as_echo "$as_me: error: cannot run C compiled programs. | ||
2434 | If you meant to cross compile, use \`--host'. | ||
2435 | See \`config.log' for more details." >&2;} | ||
2436 | { (exit 1); exit 1; }; } | ||
2437 | fi | ||
2438 | fi | ||
2439 | fi | ||
2440 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
2441 | $as_echo "yes" >&6; } | ||
2442 | |||
2443 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
2444 | ac_clean_files=$ac_clean_files_save | ||
2445 | # Check that the compiler produces executables we can run. If not, either | ||
2446 | # the compiler is broken, or we cross compile. | ||
2447 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2448 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
2449 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2450 | $as_echo "$cross_compiling" >&6; } | ||
2451 | |||
2452 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2453 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
2454 | if { (ac_try="$ac_link" | ||
2455 | case "(($ac_try" in | ||
2456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2457 | *) ac_try_echo=$ac_try;; | ||
2458 | esac | ||
2459 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2460 | $as_echo "$ac_try_echo") >&5 | ||
2461 | (eval "$ac_link") 2>&5 | ||
2462 | ac_status=$? | ||
2463 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2464 | (exit $ac_status); }; then | ||
2465 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2466 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2467 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2468 | # `rm'. | ||
2469 | for ac_file in conftest.exe conftest conftest.*; do | ||
2470 | test -f "$ac_file" || continue | ||
2471 | case $ac_file in | ||
2472 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2473 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2474 | break;; | ||
2475 | * ) break;; | ||
2476 | esac | ||
2477 | done | ||
2478 | else | ||
2479 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2480 | See \`config.log' for more details." >&5 | ||
2481 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2482 | See \`config.log' for more details." >&2;} | ||
2483 | { (exit 1); exit 1; }; } | ||
2484 | fi | ||
2485 | |||
2486 | rm -f conftest$ac_cv_exeext | ||
2487 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2488 | $as_echo "$ac_cv_exeext" >&6; } | ||
2489 | |||
2490 | rm -f conftest.$ac_ext | ||
2491 | EXEEXT=$ac_cv_exeext | ||
2492 | ac_exeext=$EXEEXT | ||
2493 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2494 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
2495 | if test "${ac_cv_objext+set}" = set; then | ||
2496 | $as_echo_n "(cached) " >&6 | ||
2497 | else | ||
2498 | cat >conftest.$ac_ext <<_ACEOF | ||
2499 | /* confdefs.h. */ | ||
2500 | _ACEOF | ||
2501 | cat confdefs.h >>conftest.$ac_ext | ||
2502 | cat >>conftest.$ac_ext <<_ACEOF | ||
2503 | /* end confdefs.h. */ | ||
2504 | |||
2505 | int | ||
2506 | main () | ||
2507 | { | ||
2508 | |||
2509 | ; | ||
2510 | return 0; | ||
2511 | } | ||
2512 | _ACEOF | ||
2513 | rm -f conftest.o conftest.obj | ||
2514 | if { (ac_try="$ac_compile" | ||
2515 | case "(($ac_try" in | ||
2516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2517 | *) ac_try_echo=$ac_try;; | ||
2518 | esac | ||
2519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2520 | $as_echo "$ac_try_echo") >&5 | ||
2521 | (eval "$ac_compile") 2>&5 | ||
2522 | ac_status=$? | ||
2523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2524 | (exit $ac_status); }; then | ||
2525 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2526 | test -f "$ac_file" || continue; | ||
2527 | case $ac_file in | ||
2528 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
2529 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2530 | break;; | ||
2531 | esac | ||
2532 | done | ||
2533 | else | ||
2534 | $as_echo "$as_me: failed program was:" >&5 | ||
2535 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2536 | |||
2537 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2538 | See \`config.log' for more details." >&5 | ||
2539 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2540 | See \`config.log' for more details." >&2;} | ||
2541 | { (exit 1); exit 1; }; } | ||
2542 | fi | ||
2543 | |||
2544 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2545 | fi | ||
2546 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2547 | $as_echo "$ac_cv_objext" >&6; } | ||
2548 | OBJEXT=$ac_cv_objext | ||
2549 | ac_objext=$OBJEXT | ||
2550 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2551 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
2552 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2553 | $as_echo_n "(cached) " >&6 | ||
2554 | else | ||
2555 | cat >conftest.$ac_ext <<_ACEOF | ||
2556 | /* confdefs.h. */ | ||
2557 | _ACEOF | ||
2558 | cat confdefs.h >>conftest.$ac_ext | ||
2559 | cat >>conftest.$ac_ext <<_ACEOF | ||
2560 | /* end confdefs.h. */ | ||
2561 | |||
2562 | int | ||
2563 | main () | ||
2564 | { | ||
2565 | #ifndef __GNUC__ | ||
2566 | choke me | ||
2567 | #endif | ||
2568 | |||
2569 | ; | ||
2570 | return 0; | ||
2571 | } | ||
2572 | _ACEOF | ||
2573 | rm -f conftest.$ac_objext | ||
2574 | if { (ac_try="$ac_compile" | ||
2575 | case "(($ac_try" in | ||
2576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2577 | *) ac_try_echo=$ac_try;; | ||
2578 | esac | ||
2579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2580 | $as_echo "$ac_try_echo") >&5 | ||
2581 | (eval "$ac_compile") 2>conftest.er1 | ||
2582 | ac_status=$? | ||
2583 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2584 | rm -f conftest.er1 | ||
2585 | cat conftest.err >&5 | ||
2586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2587 | (exit $ac_status); } && { | ||
2588 | test -z "$ac_c_werror_flag" || | ||
2589 | test ! -s conftest.err | ||
2590 | } && test -s conftest.$ac_objext; then | ||
2591 | ac_compiler_gnu=yes | ||
2592 | else | ||
2593 | $as_echo "$as_me: failed program was:" >&5 | ||
2594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2595 | |||
2596 | ac_compiler_gnu=no | ||
2597 | fi | ||
2598 | |||
2599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2600 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2601 | |||
2602 | fi | ||
2603 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2604 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
2605 | if test $ac_compiler_gnu = yes; then | ||
2606 | GCC=yes | ||
2607 | else | ||
2608 | GCC= | ||
2609 | fi | ||
2610 | ac_test_CFLAGS=${CFLAGS+set} | ||
2611 | ac_save_CFLAGS=$CFLAGS | ||
2612 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2613 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
2614 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2615 | $as_echo_n "(cached) " >&6 | ||
2616 | else | ||
2617 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2618 | ac_c_werror_flag=yes | ||
2619 | ac_cv_prog_cc_g=no | ||
2620 | CFLAGS="-g" | ||
2621 | cat >conftest.$ac_ext <<_ACEOF | ||
2622 | /* confdefs.h. */ | ||
2623 | _ACEOF | ||
2624 | cat confdefs.h >>conftest.$ac_ext | ||
2625 | cat >>conftest.$ac_ext <<_ACEOF | ||
2626 | /* end confdefs.h. */ | ||
2627 | |||
2628 | int | ||
2629 | main () | ||
2630 | { | ||
2631 | |||
2632 | ; | ||
2633 | return 0; | ||
2634 | } | ||
2635 | _ACEOF | ||
2636 | rm -f conftest.$ac_objext | ||
2637 | if { (ac_try="$ac_compile" | ||
2638 | case "(($ac_try" in | ||
2639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2640 | *) ac_try_echo=$ac_try;; | ||
2641 | esac | ||
2642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2643 | $as_echo "$ac_try_echo") >&5 | ||
2644 | (eval "$ac_compile") 2>conftest.er1 | ||
2645 | ac_status=$? | ||
2646 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2647 | rm -f conftest.er1 | ||
2648 | cat conftest.err >&5 | ||
2649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2650 | (exit $ac_status); } && { | ||
2651 | test -z "$ac_c_werror_flag" || | ||
2652 | test ! -s conftest.err | ||
2653 | } && test -s conftest.$ac_objext; then | ||
2654 | ac_cv_prog_cc_g=yes | ||
2655 | else | ||
2656 | $as_echo "$as_me: failed program was:" >&5 | ||
2657 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2658 | |||
2659 | CFLAGS="" | ||
2660 | cat >conftest.$ac_ext <<_ACEOF | ||
2661 | /* confdefs.h. */ | ||
2662 | _ACEOF | ||
2663 | cat confdefs.h >>conftest.$ac_ext | ||
2664 | cat >>conftest.$ac_ext <<_ACEOF | ||
2665 | /* end confdefs.h. */ | ||
2666 | |||
2667 | int | ||
2668 | main () | ||
2669 | { | ||
2670 | |||
2671 | ; | ||
2672 | return 0; | ||
2673 | } | ||
2674 | _ACEOF | ||
2675 | rm -f conftest.$ac_objext | ||
2676 | if { (ac_try="$ac_compile" | ||
2677 | case "(($ac_try" in | ||
2678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2679 | *) ac_try_echo=$ac_try;; | ||
2680 | esac | ||
2681 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2682 | $as_echo "$ac_try_echo") >&5 | ||
2683 | (eval "$ac_compile") 2>conftest.er1 | ||
2684 | ac_status=$? | ||
2685 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2686 | rm -f conftest.er1 | ||
2687 | cat conftest.err >&5 | ||
2688 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2689 | (exit $ac_status); } && { | ||
2690 | test -z "$ac_c_werror_flag" || | ||
2691 | test ! -s conftest.err | ||
2692 | } && test -s conftest.$ac_objext; then | ||
2693 | : | ||
2694 | else | ||
2695 | $as_echo "$as_me: failed program was:" >&5 | ||
2696 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2697 | |||
2698 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2699 | CFLAGS="-g" | ||
2700 | cat >conftest.$ac_ext <<_ACEOF | ||
2701 | /* confdefs.h. */ | ||
2702 | _ACEOF | ||
2703 | cat confdefs.h >>conftest.$ac_ext | ||
2704 | cat >>conftest.$ac_ext <<_ACEOF | ||
2705 | /* end confdefs.h. */ | ||
2706 | |||
2707 | int | ||
2708 | main () | ||
2709 | { | ||
2710 | |||
2711 | ; | ||
2712 | return 0; | ||
2713 | } | ||
2714 | _ACEOF | ||
2715 | rm -f conftest.$ac_objext | ||
2716 | if { (ac_try="$ac_compile" | ||
2717 | case "(($ac_try" in | ||
2718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2719 | *) ac_try_echo=$ac_try;; | ||
2720 | esac | ||
2721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2722 | $as_echo "$ac_try_echo") >&5 | ||
2723 | (eval "$ac_compile") 2>conftest.er1 | ||
2724 | ac_status=$? | ||
2725 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2726 | rm -f conftest.er1 | ||
2727 | cat conftest.err >&5 | ||
2728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2729 | (exit $ac_status); } && { | ||
2730 | test -z "$ac_c_werror_flag" || | ||
2731 | test ! -s conftest.err | ||
2732 | } && test -s conftest.$ac_objext; then | ||
2733 | ac_cv_prog_cc_g=yes | ||
2734 | else | ||
2735 | $as_echo "$as_me: failed program was:" >&5 | ||
2736 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2737 | |||
2738 | |||
2739 | fi | ||
2740 | |||
2741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2742 | fi | ||
2743 | |||
2744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2745 | fi | ||
2746 | |||
2747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2748 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2749 | fi | ||
2750 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2751 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
2752 | if test "$ac_test_CFLAGS" = set; then | ||
2753 | CFLAGS=$ac_save_CFLAGS | ||
2754 | elif test $ac_cv_prog_cc_g = yes; then | ||
2755 | if test "$GCC" = yes; then | ||
2756 | CFLAGS="-g -O2" | ||
2757 | else | ||
2758 | CFLAGS="-g" | ||
2759 | fi | ||
2760 | else | ||
2761 | if test "$GCC" = yes; then | ||
2762 | CFLAGS="-O2" | ||
2763 | else | ||
2764 | CFLAGS= | ||
2765 | fi | ||
2766 | fi | ||
2767 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
2768 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
2769 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
2770 | $as_echo_n "(cached) " >&6 | ||
2771 | else | ||
2772 | ac_cv_prog_cc_c89=no | ||
2773 | ac_save_CC=$CC | ||
2774 | cat >conftest.$ac_ext <<_ACEOF | ||
2775 | /* confdefs.h. */ | ||
2776 | _ACEOF | ||
2777 | cat confdefs.h >>conftest.$ac_ext | ||
2778 | cat >>conftest.$ac_ext <<_ACEOF | ||
2779 | /* end confdefs.h. */ | ||
2780 | #include <stdarg.h> | ||
2781 | #include <stdio.h> | ||
2782 | #include <sys/types.h> | ||
2783 | #include <sys/stat.h> | ||
2784 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2785 | struct buf { int x; }; | ||
2786 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2787 | static char *e (p, i) | ||
2788 | char **p; | ||
2789 | int i; | ||
2790 | { | ||
2791 | return p[i]; | ||
2792 | } | ||
2793 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2794 | { | ||
2795 | char *s; | ||
2796 | va_list v; | ||
2797 | va_start (v,p); | ||
2798 | s = g (p, va_arg (v,int)); | ||
2799 | va_end (v); | ||
2800 | return s; | ||
2801 | } | ||
2802 | |||
2803 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2804 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2805 | These don't provoke an error unfortunately, instead are silently treated | ||
2806 | as 'x'. The following induces an error, until -std is added to get | ||
2807 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2808 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2809 | that's true only with -std. */ | ||
2810 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2811 | |||
2812 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2813 | inside strings and character constants. */ | ||
2814 | #define FOO(x) 'x' | ||
2815 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2816 | |||
2817 | int test (int i, double x); | ||
2818 | struct s1 {int (*f) (int a);}; | ||
2819 | struct s2 {int (*f) (double a);}; | ||
2820 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2821 | int argc; | ||
2822 | char **argv; | ||
2823 | int | ||
2824 | main () | ||
2825 | { | ||
2826 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2827 | ; | ||
2828 | return 0; | ||
2829 | } | ||
2830 | _ACEOF | ||
2831 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2832 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2833 | do | ||
2834 | CC="$ac_save_CC $ac_arg" | ||
2835 | rm -f conftest.$ac_objext | ||
2836 | if { (ac_try="$ac_compile" | ||
2837 | case "(($ac_try" in | ||
2838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2839 | *) ac_try_echo=$ac_try;; | ||
2840 | esac | ||
2841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
2842 | $as_echo "$ac_try_echo") >&5 | ||
2843 | (eval "$ac_compile") 2>conftest.er1 | ||
2844 | ac_status=$? | ||
2845 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2846 | rm -f conftest.er1 | ||
2847 | cat conftest.err >&5 | ||
2848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2849 | (exit $ac_status); } && { | ||
2850 | test -z "$ac_c_werror_flag" || | ||
2851 | test ! -s conftest.err | ||
2852 | } && test -s conftest.$ac_objext; then | ||
2853 | ac_cv_prog_cc_c89=$ac_arg | ||
2854 | else | ||
2855 | $as_echo "$as_me: failed program was:" >&5 | ||
2856 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2857 | |||
2858 | |||
2859 | fi | ||
2860 | |||
2861 | rm -f core conftest.err conftest.$ac_objext | ||
2862 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
2863 | done | ||
2864 | rm -f conftest.$ac_ext | ||
2865 | CC=$ac_save_CC | ||
2866 | |||
2867 | fi | ||
2868 | # AC_CACHE_VAL | ||
2869 | case "x$ac_cv_prog_cc_c89" in | ||
2870 | x) | ||
2871 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | ||
2872 | $as_echo "none needed" >&6; } ;; | ||
2873 | xno) | ||
2874 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | ||
2875 | $as_echo "unsupported" >&6; } ;; | ||
2876 | *) | ||
2877 | CC="$CC $ac_cv_prog_cc_c89" | ||
2878 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
2879 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
2880 | esac | ||
2881 | |||
2882 | |||
2883 | ac_ext=c | ||
2884 | ac_cpp='$CPP $CPPFLAGS' | ||
2885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2888 | |||
2889 | ac_aux_dir= | ||
2890 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | ||
2891 | if test -f "$ac_dir/install-sh"; then | ||
2892 | ac_aux_dir=$ac_dir | ||
2893 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
2894 | break | ||
2895 | elif test -f "$ac_dir/install.sh"; then | ||
2896 | ac_aux_dir=$ac_dir | ||
2897 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
2898 | break | ||
2899 | elif test -f "$ac_dir/shtool"; then | ||
2900 | ac_aux_dir=$ac_dir | ||
2901 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2902 | break | ||
2903 | fi | ||
2904 | done | ||
2905 | if test -z "$ac_aux_dir"; then | ||
2906 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | ||
2907 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | ||
2908 | { (exit 1); exit 1; }; } | ||
2909 | fi | ||
2910 | |||
2911 | # These three variables are undocumented and unsupported, | ||
2912 | # and are intended to be withdrawn in a future Autoconf release. | ||
2913 | # They can cause serious problems if a builder's source tree is in a directory | ||
2914 | # whose full name contains unusual characters. | ||
2915 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2916 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2917 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2918 | |||
2919 | |||
2920 | # Make sure we can run config.sub. | ||
2921 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2922 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
2923 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
2924 | { (exit 1); exit 1; }; } | ||
2925 | |||
2926 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 | ||
2927 | $as_echo_n "checking build system type... " >&6; } | ||
2928 | if test "${ac_cv_build+set}" = set; then | ||
2929 | $as_echo_n "(cached) " >&6 | ||
2930 | else | ||
2931 | ac_build_alias=$build_alias | ||
2932 | test "x$ac_build_alias" = x && | ||
2933 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2934 | test "x$ac_build_alias" = x && | ||
2935 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
2936 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
2937 | { (exit 1); exit 1; }; } | ||
2938 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2939 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
2940 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
2941 | { (exit 1); exit 1; }; } | ||
2942 | |||
2943 | fi | ||
2944 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
2945 | $as_echo "$ac_cv_build" >&6; } | ||
2946 | case $ac_cv_build in | ||
2947 | *-*-*) ;; | ||
2948 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
2949 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} | ||
2950 | { (exit 1); exit 1; }; };; | ||
2951 | esac | ||
2952 | build=$ac_cv_build | ||
2953 | ac_save_IFS=$IFS; IFS='-' | ||
2954 | set x $ac_cv_build | ||
2955 | shift | ||
2956 | build_cpu=$1 | ||
2957 | build_vendor=$2 | ||
2958 | shift; shift | ||
2959 | # Remember, the first character of IFS is used to create $*, | ||
2960 | # except with old shells: | ||
2961 | build_os=$* | ||
2962 | IFS=$ac_save_IFS | ||
2963 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2964 | |||
2965 | |||
2966 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 | ||
2967 | $as_echo_n "checking host system type... " >&6; } | ||
2968 | if test "${ac_cv_host+set}" = set; then | ||
2969 | $as_echo_n "(cached) " >&6 | ||
2970 | else | ||
2971 | if test "x$host_alias" = x; then | ||
2972 | ac_cv_host=$ac_cv_build | ||
2973 | else | ||
2974 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2975 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
2976 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
2977 | { (exit 1); exit 1; }; } | ||
2978 | fi | ||
2979 | |||
2980 | fi | ||
2981 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
2982 | $as_echo "$ac_cv_host" >&6; } | ||
2983 | case $ac_cv_host in | ||
2984 | *-*-*) ;; | ||
2985 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
2986 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} | ||
2987 | { (exit 1); exit 1; }; };; | ||
2988 | esac | ||
2989 | host=$ac_cv_host | ||
2990 | ac_save_IFS=$IFS; IFS='-' | ||
2991 | set x $ac_cv_host | ||
2992 | shift | ||
2993 | host_cpu=$1 | ||
2994 | host_vendor=$2 | ||
2995 | shift; shift | ||
2996 | # Remember, the first character of IFS is used to create $*, | ||
2997 | # except with old shells: | ||
2998 | host_os=$* | ||
2999 | IFS=$ac_save_IFS | ||
3000 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
3001 | |||
3002 | |||
3003 | |||
3004 | ac_ext=c | ||
3005 | ac_cpp='$CPP $CPPFLAGS' | ||
3006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3009 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3010 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3011 | # On Suns, sometimes $CPP names a directory. | ||
3012 | if test -n "$CPP" && test -d "$CPP"; then | ||
3013 | CPP= | ||
3014 | fi | ||
3015 | if test -z "$CPP"; then | ||
3016 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3017 | $as_echo_n "(cached) " >&6 | ||
3018 | else | ||
3019 | # Double quotes because CPP needs to be expanded | ||
3020 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3021 | do | ||
3022 | ac_preproc_ok=false | ||
3023 | for ac_c_preproc_warn_flag in '' yes | ||
3024 | do | ||
3025 | # Use a header file that comes with gcc, so configuring glibc | ||
3026 | # with a fresh cross-compiler works. | ||
3027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3028 | # <limits.h> exists even on freestanding compilers. | ||
3029 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3030 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3031 | cat >conftest.$ac_ext <<_ACEOF | ||
3032 | /* confdefs.h. */ | ||
3033 | _ACEOF | ||
3034 | cat confdefs.h >>conftest.$ac_ext | ||
3035 | cat >>conftest.$ac_ext <<_ACEOF | ||
3036 | /* end confdefs.h. */ | ||
3037 | #ifdef __STDC__ | ||
3038 | # include <limits.h> | ||
3039 | #else | ||
3040 | # include <assert.h> | ||
3041 | #endif | ||
3042 | Syntax error | ||
3043 | _ACEOF | ||
3044 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3045 | case "(($ac_try" in | ||
3046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3047 | *) ac_try_echo=$ac_try;; | ||
3048 | esac | ||
3049 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3050 | $as_echo "$ac_try_echo") >&5 | ||
3051 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3052 | ac_status=$? | ||
3053 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3054 | rm -f conftest.er1 | ||
3055 | cat conftest.err >&5 | ||
3056 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3057 | (exit $ac_status); } >/dev/null && { | ||
3058 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3059 | test ! -s conftest.err | ||
3060 | }; then | ||
3061 | : | ||
3062 | else | ||
3063 | $as_echo "$as_me: failed program was:" >&5 | ||
3064 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3065 | |||
3066 | # Broken: fails on valid input. | ||
3067 | continue | ||
3068 | fi | ||
3069 | |||
3070 | rm -f conftest.err conftest.$ac_ext | ||
3071 | |||
3072 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3073 | # can be detected and how. | ||
3074 | cat >conftest.$ac_ext <<_ACEOF | ||
3075 | /* confdefs.h. */ | ||
3076 | _ACEOF | ||
3077 | cat confdefs.h >>conftest.$ac_ext | ||
3078 | cat >>conftest.$ac_ext <<_ACEOF | ||
3079 | /* end confdefs.h. */ | ||
3080 | #include <ac_nonexistent.h> | ||
3081 | _ACEOF | ||
3082 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3083 | case "(($ac_try" in | ||
3084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3085 | *) ac_try_echo=$ac_try;; | ||
3086 | esac | ||
3087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3088 | $as_echo "$ac_try_echo") >&5 | ||
3089 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3090 | ac_status=$? | ||
3091 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3092 | rm -f conftest.er1 | ||
3093 | cat conftest.err >&5 | ||
3094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3095 | (exit $ac_status); } >/dev/null && { | ||
3096 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3097 | test ! -s conftest.err | ||
3098 | }; then | ||
3099 | # Broken: success on invalid input. | ||
3100 | continue | ||
3101 | else | ||
3102 | $as_echo "$as_me: failed program was:" >&5 | ||
3103 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3104 | |||
3105 | # Passes both tests. | ||
3106 | ac_preproc_ok=: | ||
3107 | break | ||
3108 | fi | ||
3109 | |||
3110 | rm -f conftest.err conftest.$ac_ext | ||
3111 | |||
3112 | done | ||
3113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3114 | rm -f conftest.err conftest.$ac_ext | ||
3115 | if $ac_preproc_ok; then | ||
3116 | break | ||
3117 | fi | ||
3118 | |||
3119 | done | ||
3120 | ac_cv_prog_CPP=$CPP | ||
3121 | |||
3122 | fi | ||
3123 | CPP=$ac_cv_prog_CPP | ||
3124 | else | ||
3125 | ac_cv_prog_CPP=$CPP | ||
3126 | fi | ||
3127 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3128 | $as_echo "$CPP" >&6; } | ||
3129 | ac_preproc_ok=false | ||
3130 | for ac_c_preproc_warn_flag in '' yes | ||
3131 | do | ||
3132 | # Use a header file that comes with gcc, so configuring glibc | ||
3133 | # with a fresh cross-compiler works. | ||
3134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3135 | # <limits.h> exists even on freestanding compilers. | ||
3136 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3137 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3138 | cat >conftest.$ac_ext <<_ACEOF | ||
3139 | /* confdefs.h. */ | ||
3140 | _ACEOF | ||
3141 | cat confdefs.h >>conftest.$ac_ext | ||
3142 | cat >>conftest.$ac_ext <<_ACEOF | ||
3143 | /* end confdefs.h. */ | ||
3144 | #ifdef __STDC__ | ||
3145 | # include <limits.h> | ||
3146 | #else | ||
3147 | # include <assert.h> | ||
3148 | #endif | ||
3149 | Syntax error | ||
3150 | _ACEOF | ||
3151 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3152 | case "(($ac_try" in | ||
3153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3154 | *) ac_try_echo=$ac_try;; | ||
3155 | esac | ||
3156 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3157 | $as_echo "$ac_try_echo") >&5 | ||
3158 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3159 | ac_status=$? | ||
3160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3161 | rm -f conftest.er1 | ||
3162 | cat conftest.err >&5 | ||
3163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3164 | (exit $ac_status); } >/dev/null && { | ||
3165 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3166 | test ! -s conftest.err | ||
3167 | }; then | ||
3168 | : | ||
3169 | else | ||
3170 | $as_echo "$as_me: failed program was:" >&5 | ||
3171 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3172 | |||
3173 | # Broken: fails on valid input. | ||
3174 | continue | ||
3175 | fi | ||
3176 | |||
3177 | rm -f conftest.err conftest.$ac_ext | ||
3178 | |||
3179 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3180 | # can be detected and how. | ||
3181 | cat >conftest.$ac_ext <<_ACEOF | ||
3182 | /* confdefs.h. */ | ||
3183 | _ACEOF | ||
3184 | cat confdefs.h >>conftest.$ac_ext | ||
3185 | cat >>conftest.$ac_ext <<_ACEOF | ||
3186 | /* end confdefs.h. */ | ||
3187 | #include <ac_nonexistent.h> | ||
3188 | _ACEOF | ||
3189 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3190 | case "(($ac_try" in | ||
3191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3192 | *) ac_try_echo=$ac_try;; | ||
3193 | esac | ||
3194 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3195 | $as_echo "$ac_try_echo") >&5 | ||
3196 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3197 | ac_status=$? | ||
3198 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3199 | rm -f conftest.er1 | ||
3200 | cat conftest.err >&5 | ||
3201 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3202 | (exit $ac_status); } >/dev/null && { | ||
3203 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3204 | test ! -s conftest.err | ||
3205 | }; then | ||
3206 | # Broken: success on invalid input. | ||
3207 | continue | ||
3208 | else | ||
3209 | $as_echo "$as_me: failed program was:" >&5 | ||
3210 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3211 | |||
3212 | # Passes both tests. | ||
3213 | ac_preproc_ok=: | ||
3214 | break | ||
3215 | fi | ||
3216 | |||
3217 | rm -f conftest.err conftest.$ac_ext | ||
3218 | |||
3219 | done | ||
3220 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3221 | rm -f conftest.err conftest.$ac_ext | ||
3222 | if $ac_preproc_ok; then | ||
3223 | : | ||
3224 | else | ||
3225 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
3226 | See \`config.log' for more details." >&5 | ||
3227 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
3228 | See \`config.log' for more details." >&2;} | ||
3229 | { (exit 1); exit 1; }; } | ||
3230 | fi | ||
3231 | |||
3232 | ac_ext=c | ||
3233 | ac_cpp='$CPP $CPPFLAGS' | ||
3234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3237 | |||
3238 | |||
3239 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
3240 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
3241 | if test "${ac_cv_path_GREP+set}" = set; then | ||
3242 | $as_echo_n "(cached) " >&6 | ||
3243 | else | ||
3244 | if test -z "$GREP"; then | ||
3245 | ac_path_GREP_found=false | ||
3246 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3248 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3249 | do | ||
3250 | IFS=$as_save_IFS | ||
3251 | test -z "$as_dir" && as_dir=. | ||
3252 | for ac_prog in grep ggrep; do | ||
3253 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3254 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3255 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
3256 | # Check for GNU ac_path_GREP and select it if it is found. | ||
3257 | # Check for GNU $ac_path_GREP | ||
3258 | case `"$ac_path_GREP" --version 2>&1` in | ||
3259 | *GNU*) | ||
3260 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
3261 | *) | ||
3262 | ac_count=0 | ||
3263 | $as_echo_n 0123456789 >"conftest.in" | ||
3264 | while : | ||
3265 | do | ||
3266 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3267 | mv "conftest.tmp" "conftest.in" | ||
3268 | cp "conftest.in" "conftest.nl" | ||
3269 | $as_echo 'GREP' >> "conftest.nl" | ||
3270 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3271 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3272 | ac_count=`expr $ac_count + 1` | ||
3273 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
3274 | # Best one so far, save it but keep looking for a better one | ||
3275 | ac_cv_path_GREP="$ac_path_GREP" | ||
3276 | ac_path_GREP_max=$ac_count | ||
3277 | fi | ||
3278 | # 10*(2^10) chars as input seems more than enough | ||
3279 | test $ac_count -gt 10 && break | ||
3280 | done | ||
3281 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3282 | esac | ||
3283 | |||
3284 | $ac_path_GREP_found && break 3 | ||
3285 | done | ||
3286 | done | ||
3287 | done | ||
3288 | IFS=$as_save_IFS | ||
3289 | if test -z "$ac_cv_path_GREP"; then | ||
3290 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3291 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3292 | { (exit 1); exit 1; }; } | ||
3293 | fi | ||
3294 | else | ||
3295 | ac_cv_path_GREP=$GREP | ||
3296 | fi | ||
3297 | |||
3298 | fi | ||
3299 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
3300 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
3301 | GREP="$ac_cv_path_GREP" | ||
3302 | |||
3303 | |||
3304 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3305 | $as_echo_n "checking for egrep... " >&6; } | ||
3306 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
3307 | $as_echo_n "(cached) " >&6 | ||
3308 | else | ||
3309 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
3310 | then ac_cv_path_EGREP="$GREP -E" | ||
3311 | else | ||
3312 | if test -z "$EGREP"; then | ||
3313 | ac_path_EGREP_found=false | ||
3314 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3316 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
3317 | do | ||
3318 | IFS=$as_save_IFS | ||
3319 | test -z "$as_dir" && as_dir=. | ||
3320 | for ac_prog in egrep; do | ||
3321 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3322 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
3323 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
3324 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
3325 | # Check for GNU $ac_path_EGREP | ||
3326 | case `"$ac_path_EGREP" --version 2>&1` in | ||
3327 | *GNU*) | ||
3328 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
3329 | *) | ||
3330 | ac_count=0 | ||
3331 | $as_echo_n 0123456789 >"conftest.in" | ||
3332 | while : | ||
3333 | do | ||
3334 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
3335 | mv "conftest.tmp" "conftest.in" | ||
3336 | cp "conftest.in" "conftest.nl" | ||
3337 | $as_echo 'EGREP' >> "conftest.nl" | ||
3338 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
3339 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
3340 | ac_count=`expr $ac_count + 1` | ||
3341 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
3342 | # Best one so far, save it but keep looking for a better one | ||
3343 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
3344 | ac_path_EGREP_max=$ac_count | ||
3345 | fi | ||
3346 | # 10*(2^10) chars as input seems more than enough | ||
3347 | test $ac_count -gt 10 && break | ||
3348 | done | ||
3349 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
3350 | esac | ||
3351 | |||
3352 | $ac_path_EGREP_found && break 3 | ||
3353 | done | ||
3354 | done | ||
3355 | done | ||
3356 | IFS=$as_save_IFS | ||
3357 | if test -z "$ac_cv_path_EGREP"; then | ||
3358 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
3359 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
3360 | { (exit 1); exit 1; }; } | ||
3361 | fi | ||
3362 | else | ||
3363 | ac_cv_path_EGREP=$EGREP | ||
3364 | fi | ||
3365 | |||
3366 | fi | ||
3367 | fi | ||
3368 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
3369 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
3370 | EGREP="$ac_cv_path_EGREP" | ||
3371 | |||
3372 | |||
3373 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
3374 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
3375 | if test "${ac_cv_header_stdc+set}" = set; then | ||
3376 | $as_echo_n "(cached) " >&6 | ||
3377 | else | ||
3378 | cat >conftest.$ac_ext <<_ACEOF | ||
3379 | /* confdefs.h. */ | ||
3380 | _ACEOF | ||
3381 | cat confdefs.h >>conftest.$ac_ext | ||
3382 | cat >>conftest.$ac_ext <<_ACEOF | ||
3383 | /* end confdefs.h. */ | ||
3384 | #include <stdlib.h> | ||
3385 | #include <stdarg.h> | ||
3386 | #include <string.h> | ||
3387 | #include <float.h> | ||
3388 | |||
3389 | int | ||
3390 | main () | ||
3391 | { | ||
3392 | |||
3393 | ; | ||
3394 | return 0; | ||
3395 | } | ||
3396 | _ACEOF | ||
3397 | rm -f conftest.$ac_objext | ||
3398 | if { (ac_try="$ac_compile" | ||
3399 | case "(($ac_try" in | ||
3400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3401 | *) ac_try_echo=$ac_try;; | ||
3402 | esac | ||
3403 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3404 | $as_echo "$ac_try_echo") >&5 | ||
3405 | (eval "$ac_compile") 2>conftest.er1 | ||
3406 | ac_status=$? | ||
3407 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3408 | rm -f conftest.er1 | ||
3409 | cat conftest.err >&5 | ||
3410 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3411 | (exit $ac_status); } && { | ||
3412 | test -z "$ac_c_werror_flag" || | ||
3413 | test ! -s conftest.err | ||
3414 | } && test -s conftest.$ac_objext; then | ||
3415 | ac_cv_header_stdc=yes | ||
3416 | else | ||
3417 | $as_echo "$as_me: failed program was:" >&5 | ||
3418 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3419 | |||
3420 | ac_cv_header_stdc=no | ||
3421 | fi | ||
3422 | |||
3423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3424 | |||
3425 | if test $ac_cv_header_stdc = yes; then | ||
3426 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
3427 | cat >conftest.$ac_ext <<_ACEOF | ||
3428 | /* confdefs.h. */ | ||
3429 | _ACEOF | ||
3430 | cat confdefs.h >>conftest.$ac_ext | ||
3431 | cat >>conftest.$ac_ext <<_ACEOF | ||
3432 | /* end confdefs.h. */ | ||
3433 | #include <string.h> | ||
3434 | |||
3435 | _ACEOF | ||
3436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3437 | $EGREP "memchr" >/dev/null 2>&1; then | ||
3438 | : | ||
3439 | else | ||
3440 | ac_cv_header_stdc=no | ||
3441 | fi | ||
3442 | rm -f conftest* | ||
3443 | |||
3444 | fi | ||
3445 | |||
3446 | if test $ac_cv_header_stdc = yes; then | ||
3447 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
3448 | cat >conftest.$ac_ext <<_ACEOF | ||
3449 | /* confdefs.h. */ | ||
3450 | _ACEOF | ||
3451 | cat confdefs.h >>conftest.$ac_ext | ||
3452 | cat >>conftest.$ac_ext <<_ACEOF | ||
3453 | /* end confdefs.h. */ | ||
3454 | #include <stdlib.h> | ||
3455 | |||
3456 | _ACEOF | ||
3457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
3458 | $EGREP "free" >/dev/null 2>&1; then | ||
3459 | : | ||
3460 | else | ||
3461 | ac_cv_header_stdc=no | ||
3462 | fi | ||
3463 | rm -f conftest* | ||
3464 | |||
3465 | fi | ||
3466 | |||
3467 | if test $ac_cv_header_stdc = yes; then | ||
3468 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
3469 | if test "$cross_compiling" = yes; then | ||
3470 | : | ||
3471 | else | ||
3472 | cat >conftest.$ac_ext <<_ACEOF | ||
3473 | /* confdefs.h. */ | ||
3474 | _ACEOF | ||
3475 | cat confdefs.h >>conftest.$ac_ext | ||
3476 | cat >>conftest.$ac_ext <<_ACEOF | ||
3477 | /* end confdefs.h. */ | ||
3478 | #include <ctype.h> | ||
3479 | #include <stdlib.h> | ||
3480 | #if ((' ' & 0x0FF) == 0x020) | ||
3481 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
3482 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
3483 | #else | ||
3484 | # define ISLOWER(c) \ | ||
3485 | (('a' <= (c) && (c) <= 'i') \ | ||
3486 | || ('j' <= (c) && (c) <= 'r') \ | ||
3487 | || ('s' <= (c) && (c) <= 'z')) | ||
3488 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
3489 | #endif | ||
3490 | |||
3491 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
3492 | int | ||
3493 | main () | ||
3494 | { | ||
3495 | int i; | ||
3496 | for (i = 0; i < 256; i++) | ||
3497 | if (XOR (islower (i), ISLOWER (i)) | ||
3498 | || toupper (i) != TOUPPER (i)) | ||
3499 | return 2; | ||
3500 | return 0; | ||
3501 | } | ||
3502 | _ACEOF | ||
3503 | rm -f conftest$ac_exeext | ||
3504 | if { (ac_try="$ac_link" | ||
3505 | case "(($ac_try" in | ||
3506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3507 | *) ac_try_echo=$ac_try;; | ||
3508 | esac | ||
3509 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3510 | $as_echo "$ac_try_echo") >&5 | ||
3511 | (eval "$ac_link") 2>&5 | ||
3512 | ac_status=$? | ||
3513 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3514 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3515 | { (case "(($ac_try" in | ||
3516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3517 | *) ac_try_echo=$ac_try;; | ||
3518 | esac | ||
3519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3520 | $as_echo "$ac_try_echo") >&5 | ||
3521 | (eval "$ac_try") 2>&5 | ||
3522 | ac_status=$? | ||
3523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3524 | (exit $ac_status); }; }; then | ||
3525 | : | ||
3526 | else | ||
3527 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
3528 | $as_echo "$as_me: failed program was:" >&5 | ||
3529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3530 | |||
3531 | ( exit $ac_status ) | ||
3532 | ac_cv_header_stdc=no | ||
3533 | fi | ||
3534 | rm -rf conftest.dSYM | ||
3535 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3536 | fi | ||
3537 | |||
3538 | |||
3539 | fi | ||
3540 | fi | ||
3541 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
3542 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
3543 | if test $ac_cv_header_stdc = yes; then | ||
3544 | |||
3545 | cat >>confdefs.h <<\_ACEOF | ||
3546 | #define STDC_HEADERS 1 | ||
3547 | _ACEOF | ||
3548 | |||
3549 | fi | ||
3550 | |||
3551 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
3552 | |||
3553 | |||
3554 | |||
3555 | |||
3556 | |||
3557 | |||
3558 | |||
3559 | |||
3560 | |||
3561 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
3562 | inttypes.h stdint.h unistd.h | ||
3563 | do | ||
3564 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
3565 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
3566 | $as_echo_n "checking for $ac_header... " >&6; } | ||
3567 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
3568 | $as_echo_n "(cached) " >&6 | ||
3569 | else | ||
3570 | cat >conftest.$ac_ext <<_ACEOF | ||
3571 | /* confdefs.h. */ | ||
3572 | _ACEOF | ||
3573 | cat confdefs.h >>conftest.$ac_ext | ||
3574 | cat >>conftest.$ac_ext <<_ACEOF | ||
3575 | /* end confdefs.h. */ | ||
3576 | $ac_includes_default | ||
3577 | |||
3578 | #include <$ac_header> | ||
3579 | _ACEOF | ||
3580 | rm -f conftest.$ac_objext | ||
3581 | if { (ac_try="$ac_compile" | ||
3582 | case "(($ac_try" in | ||
3583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3584 | *) ac_try_echo=$ac_try;; | ||
3585 | esac | ||
3586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3587 | $as_echo "$ac_try_echo") >&5 | ||
3588 | (eval "$ac_compile") 2>conftest.er1 | ||
3589 | ac_status=$? | ||
3590 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3591 | rm -f conftest.er1 | ||
3592 | cat conftest.err >&5 | ||
3593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3594 | (exit $ac_status); } && { | ||
3595 | test -z "$ac_c_werror_flag" || | ||
3596 | test ! -s conftest.err | ||
3597 | } && test -s conftest.$ac_objext; then | ||
3598 | eval "$as_ac_Header=yes" | ||
3599 | else | ||
3600 | $as_echo "$as_me: failed program was:" >&5 | ||
3601 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3602 | |||
3603 | eval "$as_ac_Header=no" | ||
3604 | fi | ||
3605 | |||
3606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3607 | fi | ||
3608 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
3609 | $as_echo "$as_val"'` | ||
3610 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
3611 | $as_echo "$ac_res" >&6; } | ||
3612 | if test `eval 'as_val=${'$as_ac_Header'} | ||
3613 | $as_echo "$as_val"'` = yes; then | ||
3614 | cat >>confdefs.h <<_ACEOF | ||
3615 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
3616 | _ACEOF | ||
3617 | |||
3618 | fi | ||
3619 | |||
3620 | done | ||
3621 | |||
3622 | |||
3623 | |||
3624 | { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | ||
3625 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | ||
3626 | if test "${ac_cv_c_bigendian+set}" = set; then | ||
3627 | $as_echo_n "(cached) " >&6 | ||
3628 | else | ||
3629 | ac_cv_c_bigendian=unknown | ||
3630 | # See if we're dealing with a universal compiler. | ||
3631 | cat >conftest.$ac_ext <<_ACEOF | ||
3632 | /* confdefs.h. */ | ||
3633 | _ACEOF | ||
3634 | cat confdefs.h >>conftest.$ac_ext | ||
3635 | cat >>conftest.$ac_ext <<_ACEOF | ||
3636 | /* end confdefs.h. */ | ||
3637 | #ifndef __APPLE_CC__ | ||
3638 | not a universal capable compiler | ||
3639 | #endif | ||
3640 | typedef int dummy; | ||
3641 | |||
3642 | _ACEOF | ||
3643 | rm -f conftest.$ac_objext | ||
3644 | if { (ac_try="$ac_compile" | ||
3645 | case "(($ac_try" in | ||
3646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3647 | *) ac_try_echo=$ac_try;; | ||
3648 | esac | ||
3649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3650 | $as_echo "$ac_try_echo") >&5 | ||
3651 | (eval "$ac_compile") 2>conftest.er1 | ||
3652 | ac_status=$? | ||
3653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3654 | rm -f conftest.er1 | ||
3655 | cat conftest.err >&5 | ||
3656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3657 | (exit $ac_status); } && { | ||
3658 | test -z "$ac_c_werror_flag" || | ||
3659 | test ! -s conftest.err | ||
3660 | } && test -s conftest.$ac_objext; then | ||
3661 | |||
3662 | # Check for potential -arch flags. It is not universal unless | ||
3663 | # there are some -arch flags. Note that *ppc* also matches | ||
3664 | # ppc64. This check is also rather less than ideal. | ||
3665 | case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #( | ||
3666 | *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;; | ||
3667 | esac | ||
3668 | else | ||
3669 | $as_echo "$as_me: failed program was:" >&5 | ||
3670 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3671 | |||
3672 | |||
3673 | fi | ||
3674 | |||
3675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3676 | if test $ac_cv_c_bigendian = unknown; then | ||
3677 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
3678 | cat >conftest.$ac_ext <<_ACEOF | ||
3679 | /* confdefs.h. */ | ||
3680 | _ACEOF | ||
3681 | cat confdefs.h >>conftest.$ac_ext | ||
3682 | cat >>conftest.$ac_ext <<_ACEOF | ||
3683 | /* end confdefs.h. */ | ||
3684 | #include <sys/types.h> | ||
3685 | #include <sys/param.h> | ||
3686 | |||
3687 | int | ||
3688 | main () | ||
3689 | { | ||
3690 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | ||
3691 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | ||
3692 | && LITTLE_ENDIAN) | ||
3693 | bogus endian macros | ||
3694 | #endif | ||
3695 | |||
3696 | ; | ||
3697 | return 0; | ||
3698 | } | ||
3699 | _ACEOF | ||
3700 | rm -f conftest.$ac_objext | ||
3701 | if { (ac_try="$ac_compile" | ||
3702 | case "(($ac_try" in | ||
3703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3704 | *) ac_try_echo=$ac_try;; | ||
3705 | esac | ||
3706 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3707 | $as_echo "$ac_try_echo") >&5 | ||
3708 | (eval "$ac_compile") 2>conftest.er1 | ||
3709 | ac_status=$? | ||
3710 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3711 | rm -f conftest.er1 | ||
3712 | cat conftest.err >&5 | ||
3713 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3714 | (exit $ac_status); } && { | ||
3715 | test -z "$ac_c_werror_flag" || | ||
3716 | test ! -s conftest.err | ||
3717 | } && test -s conftest.$ac_objext; then | ||
3718 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
3719 | cat >conftest.$ac_ext <<_ACEOF | ||
3720 | /* confdefs.h. */ | ||
3721 | _ACEOF | ||
3722 | cat confdefs.h >>conftest.$ac_ext | ||
3723 | cat >>conftest.$ac_ext <<_ACEOF | ||
3724 | /* end confdefs.h. */ | ||
3725 | #include <sys/types.h> | ||
3726 | #include <sys/param.h> | ||
3727 | |||
3728 | int | ||
3729 | main () | ||
3730 | { | ||
3731 | #if BYTE_ORDER != BIG_ENDIAN | ||
3732 | not big endian | ||
3733 | #endif | ||
3734 | |||
3735 | ; | ||
3736 | return 0; | ||
3737 | } | ||
3738 | _ACEOF | ||
3739 | rm -f conftest.$ac_objext | ||
3740 | if { (ac_try="$ac_compile" | ||
3741 | case "(($ac_try" in | ||
3742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3743 | *) ac_try_echo=$ac_try;; | ||
3744 | esac | ||
3745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3746 | $as_echo "$ac_try_echo") >&5 | ||
3747 | (eval "$ac_compile") 2>conftest.er1 | ||
3748 | ac_status=$? | ||
3749 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3750 | rm -f conftest.er1 | ||
3751 | cat conftest.err >&5 | ||
3752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3753 | (exit $ac_status); } && { | ||
3754 | test -z "$ac_c_werror_flag" || | ||
3755 | test ! -s conftest.err | ||
3756 | } && test -s conftest.$ac_objext; then | ||
3757 | ac_cv_c_bigendian=yes | ||
3758 | else | ||
3759 | $as_echo "$as_me: failed program was:" >&5 | ||
3760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3761 | |||
3762 | ac_cv_c_bigendian=no | ||
3763 | fi | ||
3764 | |||
3765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3766 | else | ||
3767 | $as_echo "$as_me: failed program was:" >&5 | ||
3768 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3769 | |||
3770 | |||
3771 | fi | ||
3772 | |||
3773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3774 | fi | ||
3775 | if test $ac_cv_c_bigendian = unknown; then | ||
3776 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | ||
3777 | cat >conftest.$ac_ext <<_ACEOF | ||
3778 | /* confdefs.h. */ | ||
3779 | _ACEOF | ||
3780 | cat confdefs.h >>conftest.$ac_ext | ||
3781 | cat >>conftest.$ac_ext <<_ACEOF | ||
3782 | /* end confdefs.h. */ | ||
3783 | #include <limits.h> | ||
3784 | |||
3785 | int | ||
3786 | main () | ||
3787 | { | ||
3788 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | ||
3789 | bogus endian macros | ||
3790 | #endif | ||
3791 | |||
3792 | ; | ||
3793 | return 0; | ||
3794 | } | ||
3795 | _ACEOF | ||
3796 | rm -f conftest.$ac_objext | ||
3797 | if { (ac_try="$ac_compile" | ||
3798 | case "(($ac_try" in | ||
3799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3800 | *) ac_try_echo=$ac_try;; | ||
3801 | esac | ||
3802 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3803 | $as_echo "$ac_try_echo") >&5 | ||
3804 | (eval "$ac_compile") 2>conftest.er1 | ||
3805 | ac_status=$? | ||
3806 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3807 | rm -f conftest.er1 | ||
3808 | cat conftest.err >&5 | ||
3809 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3810 | (exit $ac_status); } && { | ||
3811 | test -z "$ac_c_werror_flag" || | ||
3812 | test ! -s conftest.err | ||
3813 | } && test -s conftest.$ac_objext; then | ||
3814 | # It does; now see whether it defined to _BIG_ENDIAN or not. | ||
3815 | cat >conftest.$ac_ext <<_ACEOF | ||
3816 | /* confdefs.h. */ | ||
3817 | _ACEOF | ||
3818 | cat confdefs.h >>conftest.$ac_ext | ||
3819 | cat >>conftest.$ac_ext <<_ACEOF | ||
3820 | /* end confdefs.h. */ | ||
3821 | #include <limits.h> | ||
3822 | |||
3823 | int | ||
3824 | main () | ||
3825 | { | ||
3826 | #ifndef _BIG_ENDIAN | ||
3827 | not big endian | ||
3828 | #endif | ||
3829 | |||
3830 | ; | ||
3831 | return 0; | ||
3832 | } | ||
3833 | _ACEOF | ||
3834 | rm -f conftest.$ac_objext | ||
3835 | if { (ac_try="$ac_compile" | ||
3836 | case "(($ac_try" in | ||
3837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3838 | *) ac_try_echo=$ac_try;; | ||
3839 | esac | ||
3840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3841 | $as_echo "$ac_try_echo") >&5 | ||
3842 | (eval "$ac_compile") 2>conftest.er1 | ||
3843 | ac_status=$? | ||
3844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3845 | rm -f conftest.er1 | ||
3846 | cat conftest.err >&5 | ||
3847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3848 | (exit $ac_status); } && { | ||
3849 | test -z "$ac_c_werror_flag" || | ||
3850 | test ! -s conftest.err | ||
3851 | } && test -s conftest.$ac_objext; then | ||
3852 | ac_cv_c_bigendian=yes | ||
3853 | else | ||
3854 | $as_echo "$as_me: failed program was:" >&5 | ||
3855 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3856 | |||
3857 | ac_cv_c_bigendian=no | ||
3858 | fi | ||
3859 | |||
3860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3861 | else | ||
3862 | $as_echo "$as_me: failed program was:" >&5 | ||
3863 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3864 | |||
3865 | |||
3866 | fi | ||
3867 | |||
3868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3869 | fi | ||
3870 | if test $ac_cv_c_bigendian = unknown; then | ||
3871 | # Compile a test program. | ||
3872 | if test "$cross_compiling" = yes; then | ||
3873 | # Try to guess by grepping values from an object file. | ||
3874 | cat >conftest.$ac_ext <<_ACEOF | ||
3875 | /* confdefs.h. */ | ||
3876 | _ACEOF | ||
3877 | cat confdefs.h >>conftest.$ac_ext | ||
3878 | cat >>conftest.$ac_ext <<_ACEOF | ||
3879 | /* end confdefs.h. */ | ||
3880 | short int ascii_mm[] = | ||
3881 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | ||
3882 | short int ascii_ii[] = | ||
3883 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | ||
3884 | int use_ascii (int i) { | ||
3885 | return ascii_mm[i] + ascii_ii[i]; | ||
3886 | } | ||
3887 | short int ebcdic_ii[] = | ||
3888 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | ||
3889 | short int ebcdic_mm[] = | ||
3890 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | ||
3891 | int use_ebcdic (int i) { | ||
3892 | return ebcdic_mm[i] + ebcdic_ii[i]; | ||
3893 | } | ||
3894 | extern int foo; | ||
3895 | |||
3896 | int | ||
3897 | main () | ||
3898 | { | ||
3899 | return use_ascii (foo) == use_ebcdic (foo); | ||
3900 | ; | ||
3901 | return 0; | ||
3902 | } | ||
3903 | _ACEOF | ||
3904 | rm -f conftest.$ac_objext | ||
3905 | if { (ac_try="$ac_compile" | ||
3906 | case "(($ac_try" in | ||
3907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3908 | *) ac_try_echo=$ac_try;; | ||
3909 | esac | ||
3910 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3911 | $as_echo "$ac_try_echo") >&5 | ||
3912 | (eval "$ac_compile") 2>conftest.er1 | ||
3913 | ac_status=$? | ||
3914 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3915 | rm -f conftest.er1 | ||
3916 | cat conftest.err >&5 | ||
3917 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3918 | (exit $ac_status); } && { | ||
3919 | test -z "$ac_c_werror_flag" || | ||
3920 | test ! -s conftest.err | ||
3921 | } && test -s conftest.$ac_objext; then | ||
3922 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | ||
3923 | ac_cv_c_bigendian=yes | ||
3924 | fi | ||
3925 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | ||
3926 | if test "$ac_cv_c_bigendian" = unknown; then | ||
3927 | ac_cv_c_bigendian=no | ||
3928 | else | ||
3929 | # finding both strings is unlikely to happen, but who knows? | ||
3930 | ac_cv_c_bigendian=unknown | ||
3931 | fi | ||
3932 | fi | ||
3933 | else | ||
3934 | $as_echo "$as_me: failed program was:" >&5 | ||
3935 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3936 | |||
3937 | |||
3938 | fi | ||
3939 | |||
3940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3941 | else | ||
3942 | cat >conftest.$ac_ext <<_ACEOF | ||
3943 | /* confdefs.h. */ | ||
3944 | _ACEOF | ||
3945 | cat confdefs.h >>conftest.$ac_ext | ||
3946 | cat >>conftest.$ac_ext <<_ACEOF | ||
3947 | /* end confdefs.h. */ | ||
3948 | $ac_includes_default | ||
3949 | int | ||
3950 | main () | ||
3951 | { | ||
3952 | |||
3953 | /* Are we little or big endian? From Harbison&Steele. */ | ||
3954 | union | ||
3955 | { | ||
3956 | long int l; | ||
3957 | char c[sizeof (long int)]; | ||
3958 | } u; | ||
3959 | u.l = 1; | ||
3960 | return u.c[sizeof (long int) - 1] == 1; | ||
3961 | |||
3962 | ; | ||
3963 | return 0; | ||
3964 | } | ||
3965 | _ACEOF | ||
3966 | rm -f conftest$ac_exeext | ||
3967 | if { (ac_try="$ac_link" | ||
3968 | case "(($ac_try" in | ||
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3970 | *) ac_try_echo=$ac_try;; | ||
3971 | esac | ||
3972 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3973 | $as_echo "$ac_try_echo") >&5 | ||
3974 | (eval "$ac_link") 2>&5 | ||
3975 | ac_status=$? | ||
3976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3977 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
3978 | { (case "(($ac_try" in | ||
3979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3980 | *) ac_try_echo=$ac_try;; | ||
3981 | esac | ||
3982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
3983 | $as_echo "$ac_try_echo") >&5 | ||
3984 | (eval "$ac_try") 2>&5 | ||
3985 | ac_status=$? | ||
3986 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3987 | (exit $ac_status); }; }; then | ||
3988 | ac_cv_c_bigendian=no | ||
3989 | else | ||
3990 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
3991 | $as_echo "$as_me: failed program was:" >&5 | ||
3992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3993 | |||
3994 | ( exit $ac_status ) | ||
3995 | ac_cv_c_bigendian=yes | ||
3996 | fi | ||
3997 | rm -rf conftest.dSYM | ||
3998 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
3999 | fi | ||
4000 | |||
4001 | |||
4002 | fi | ||
4003 | fi | ||
4004 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | ||
4005 | $as_echo "$ac_cv_c_bigendian" >&6; } | ||
4006 | case $ac_cv_c_bigendian in #( | ||
4007 | yes) | ||
4008 | cat >>confdefs.h <<\_ACEOF | ||
4009 | #define WORDS_BIGENDIAN 1 | ||
4010 | _ACEOF | ||
4011 | ;; #( | ||
4012 | no) | ||
4013 | ;; #( | ||
4014 | universal) | ||
4015 | |||
4016 | cat >>confdefs.h <<\_ACEOF | ||
4017 | #define AC_APPLE_UNIVERSAL_BUILD 1 | ||
4018 | _ACEOF | ||
4019 | |||
4020 | ;; #( | ||
4021 | *) | ||
4022 | { { $as_echo "$as_me:$LINENO: error: unknown endianness | ||
4023 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | ||
4024 | $as_echo "$as_me: error: unknown endianness | ||
4025 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | ||
4026 | { (exit 1); exit 1; }; } ;; | ||
4027 | esac | ||
4028 | |||
4029 | |||
4030 | # Checks for programs. | ||
4031 | for ac_prog in gawk mawk nawk awk | ||
4032 | do | ||
4033 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4034 | set dummy $ac_prog; ac_word=$2 | ||
4035 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4036 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4037 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
4038 | $as_echo_n "(cached) " >&6 | ||
4039 | else | ||
4040 | if test -n "$AWK"; then | ||
4041 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
4042 | else | ||
4043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4044 | for as_dir in $PATH | ||
4045 | do | ||
4046 | IFS=$as_save_IFS | ||
4047 | test -z "$as_dir" && as_dir=. | ||
4048 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4049 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4050 | ac_cv_prog_AWK="$ac_prog" | ||
4051 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4052 | break 2 | ||
4053 | fi | ||
4054 | done | ||
4055 | done | ||
4056 | IFS=$as_save_IFS | ||
4057 | |||
4058 | fi | ||
4059 | fi | ||
4060 | AWK=$ac_cv_prog_AWK | ||
4061 | if test -n "$AWK"; then | ||
4062 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 | ||
4063 | $as_echo "$AWK" >&6; } | ||
4064 | else | ||
4065 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4066 | $as_echo "no" >&6; } | ||
4067 | fi | ||
4068 | |||
4069 | |||
4070 | test -n "$AWK" && break | ||
4071 | done | ||
4072 | |||
4073 | ac_ext=c | ||
4074 | ac_cpp='$CPP $CPPFLAGS' | ||
4075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4078 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
4079 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
4080 | # On Suns, sometimes $CPP names a directory. | ||
4081 | if test -n "$CPP" && test -d "$CPP"; then | ||
4082 | CPP= | ||
4083 | fi | ||
4084 | if test -z "$CPP"; then | ||
4085 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
4086 | $as_echo_n "(cached) " >&6 | ||
4087 | else | ||
4088 | # Double quotes because CPP needs to be expanded | ||
4089 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4090 | do | ||
4091 | ac_preproc_ok=false | ||
4092 | for ac_c_preproc_warn_flag in '' yes | ||
4093 | do | ||
4094 | # Use a header file that comes with gcc, so configuring glibc | ||
4095 | # with a fresh cross-compiler works. | ||
4096 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4097 | # <limits.h> exists even on freestanding compilers. | ||
4098 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4099 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4100 | cat >conftest.$ac_ext <<_ACEOF | ||
4101 | /* confdefs.h. */ | ||
4102 | _ACEOF | ||
4103 | cat confdefs.h >>conftest.$ac_ext | ||
4104 | cat >>conftest.$ac_ext <<_ACEOF | ||
4105 | /* end confdefs.h. */ | ||
4106 | #ifdef __STDC__ | ||
4107 | # include <limits.h> | ||
4108 | #else | ||
4109 | # include <assert.h> | ||
4110 | #endif | ||
4111 | Syntax error | ||
4112 | _ACEOF | ||
4113 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4114 | case "(($ac_try" in | ||
4115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4116 | *) ac_try_echo=$ac_try;; | ||
4117 | esac | ||
4118 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
4119 | $as_echo "$ac_try_echo") >&5 | ||
4120 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4121 | ac_status=$? | ||
4122 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4123 | rm -f conftest.er1 | ||
4124 | cat conftest.err >&5 | ||
4125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4126 | (exit $ac_status); } >/dev/null && { | ||
4127 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
4128 | test ! -s conftest.err | ||
4129 | }; then | ||
4130 | : | ||
4131 | else | ||
4132 | $as_echo "$as_me: failed program was:" >&5 | ||
4133 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4134 | |||
4135 | # Broken: fails on valid input. | ||
4136 | continue | ||
4137 | fi | ||
4138 | |||
4139 | rm -f conftest.err conftest.$ac_ext | ||
4140 | |||
4141 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4142 | # can be detected and how. | ||
4143 | cat >conftest.$ac_ext <<_ACEOF | ||
4144 | /* confdefs.h. */ | ||
4145 | _ACEOF | ||
4146 | cat confdefs.h >>conftest.$ac_ext | ||
4147 | cat >>conftest.$ac_ext <<_ACEOF | ||
4148 | /* end confdefs.h. */ | ||
4149 | #include <ac_nonexistent.h> | ||
4150 | _ACEOF | ||
4151 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4152 | case "(($ac_try" in | ||
4153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4154 | *) ac_try_echo=$ac_try;; | ||
4155 | esac | ||
4156 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
4157 | $as_echo "$ac_try_echo") >&5 | ||
4158 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4159 | ac_status=$? | ||
4160 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4161 | rm -f conftest.er1 | ||
4162 | cat conftest.err >&5 | ||
4163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4164 | (exit $ac_status); } >/dev/null && { | ||
4165 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
4166 | test ! -s conftest.err | ||
4167 | }; then | ||
4168 | # Broken: success on invalid input. | ||
4169 | continue | ||
4170 | else | ||
4171 | $as_echo "$as_me: failed program was:" >&5 | ||
4172 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4173 | |||
4174 | # Passes both tests. | ||
4175 | ac_preproc_ok=: | ||
4176 | break | ||
4177 | fi | ||
4178 | |||
4179 | rm -f conftest.err conftest.$ac_ext | ||
4180 | |||
4181 | done | ||
4182 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4183 | rm -f conftest.err conftest.$ac_ext | ||
4184 | if $ac_preproc_ok; then | ||
4185 | break | ||
4186 | fi | ||
4187 | |||
4188 | done | ||
4189 | ac_cv_prog_CPP=$CPP | ||
4190 | |||
4191 | fi | ||
4192 | CPP=$ac_cv_prog_CPP | ||
4193 | else | ||
4194 | ac_cv_prog_CPP=$CPP | ||
4195 | fi | ||
4196 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 | ||
4197 | $as_echo "$CPP" >&6; } | ||
4198 | ac_preproc_ok=false | ||
4199 | for ac_c_preproc_warn_flag in '' yes | ||
4200 | do | ||
4201 | # Use a header file that comes with gcc, so configuring glibc | ||
4202 | # with a fresh cross-compiler works. | ||
4203 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4204 | # <limits.h> exists even on freestanding compilers. | ||
4205 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4206 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4207 | cat >conftest.$ac_ext <<_ACEOF | ||
4208 | /* confdefs.h. */ | ||
4209 | _ACEOF | ||
4210 | cat confdefs.h >>conftest.$ac_ext | ||
4211 | cat >>conftest.$ac_ext <<_ACEOF | ||
4212 | /* end confdefs.h. */ | ||
4213 | #ifdef __STDC__ | ||
4214 | # include <limits.h> | ||
4215 | #else | ||
4216 | # include <assert.h> | ||
4217 | #endif | ||
4218 | Syntax error | ||
4219 | _ACEOF | ||
4220 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4221 | case "(($ac_try" in | ||
4222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4223 | *) ac_try_echo=$ac_try;; | ||
4224 | esac | ||
4225 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
4226 | $as_echo "$ac_try_echo") >&5 | ||
4227 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4228 | ac_status=$? | ||
4229 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4230 | rm -f conftest.er1 | ||
4231 | cat conftest.err >&5 | ||
4232 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4233 | (exit $ac_status); } >/dev/null && { | ||
4234 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
4235 | test ! -s conftest.err | ||
4236 | }; then | ||
4237 | : | ||
4238 | else | ||
4239 | $as_echo "$as_me: failed program was:" >&5 | ||
4240 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4241 | |||
4242 | # Broken: fails on valid input. | ||
4243 | continue | ||
4244 | fi | ||
4245 | |||
4246 | rm -f conftest.err conftest.$ac_ext | ||
4247 | |||
4248 | # OK, works on sane cases. Now check whether nonexistent headers | ||
4249 | # can be detected and how. | ||
4250 | cat >conftest.$ac_ext <<_ACEOF | ||
4251 | /* confdefs.h. */ | ||
4252 | _ACEOF | ||
4253 | cat confdefs.h >>conftest.$ac_ext | ||
4254 | cat >>conftest.$ac_ext <<_ACEOF | ||
4255 | /* end confdefs.h. */ | ||
4256 | #include <ac_nonexistent.h> | ||
4257 | _ACEOF | ||
4258 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
4259 | case "(($ac_try" in | ||
4260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4261 | *) ac_try_echo=$ac_try;; | ||
4262 | esac | ||
4263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
4264 | $as_echo "$ac_try_echo") >&5 | ||
4265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
4266 | ac_status=$? | ||
4267 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4268 | rm -f conftest.er1 | ||
4269 | cat conftest.err >&5 | ||
4270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4271 | (exit $ac_status); } >/dev/null && { | ||
4272 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
4273 | test ! -s conftest.err | ||
4274 | }; then | ||
4275 | # Broken: success on invalid input. | ||
4276 | continue | ||
4277 | else | ||
4278 | $as_echo "$as_me: failed program was:" >&5 | ||
4279 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4280 | |||
4281 | # Passes both tests. | ||
4282 | ac_preproc_ok=: | ||
4283 | break | ||
4284 | fi | ||
4285 | |||
4286 | rm -f conftest.err conftest.$ac_ext | ||
4287 | |||
4288 | done | ||
4289 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4290 | rm -f conftest.err conftest.$ac_ext | ||
4291 | if $ac_preproc_ok; then | ||
4292 | : | ||
4293 | else | ||
4294 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
4295 | See \`config.log' for more details." >&5 | ||
4296 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
4297 | See \`config.log' for more details." >&2;} | ||
4298 | { (exit 1); exit 1; }; } | ||
4299 | fi | ||
4300 | |||
4301 | ac_ext=c | ||
4302 | ac_cpp='$CPP $CPPFLAGS' | ||
4303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4306 | |||
4307 | if test -n "$ac_tool_prefix"; then | ||
4308 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
4309 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
4310 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4311 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4312 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
4313 | $as_echo_n "(cached) " >&6 | ||
4314 | else | ||
4315 | if test -n "$RANLIB"; then | ||
4316 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
4317 | else | ||
4318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4319 | for as_dir in $PATH | ||
4320 | do | ||
4321 | IFS=$as_save_IFS | ||
4322 | test -z "$as_dir" && as_dir=. | ||
4323 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4325 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
4326 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4327 | break 2 | ||
4328 | fi | ||
4329 | done | ||
4330 | done | ||
4331 | IFS=$as_save_IFS | ||
4332 | |||
4333 | fi | ||
4334 | fi | ||
4335 | RANLIB=$ac_cv_prog_RANLIB | ||
4336 | if test -n "$RANLIB"; then | ||
4337 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
4338 | $as_echo "$RANLIB" >&6; } | ||
4339 | else | ||
4340 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4341 | $as_echo "no" >&6; } | ||
4342 | fi | ||
4343 | |||
4344 | |||
4345 | fi | ||
4346 | if test -z "$ac_cv_prog_RANLIB"; then | ||
4347 | ac_ct_RANLIB=$RANLIB | ||
4348 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
4349 | set dummy ranlib; ac_word=$2 | ||
4350 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4351 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4352 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
4353 | $as_echo_n "(cached) " >&6 | ||
4354 | else | ||
4355 | if test -n "$ac_ct_RANLIB"; then | ||
4356 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
4357 | else | ||
4358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4359 | for as_dir in $PATH | ||
4360 | do | ||
4361 | IFS=$as_save_IFS | ||
4362 | test -z "$as_dir" && as_dir=. | ||
4363 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4364 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4365 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
4366 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4367 | break 2 | ||
4368 | fi | ||
4369 | done | ||
4370 | done | ||
4371 | IFS=$as_save_IFS | ||
4372 | |||
4373 | fi | ||
4374 | fi | ||
4375 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
4376 | if test -n "$ac_ct_RANLIB"; then | ||
4377 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
4378 | $as_echo "$ac_ct_RANLIB" >&6; } | ||
4379 | else | ||
4380 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4381 | $as_echo "no" >&6; } | ||
4382 | fi | ||
4383 | |||
4384 | if test "x$ac_ct_RANLIB" = x; then | ||
4385 | RANLIB=":" | ||
4386 | else | ||
4387 | case $cross_compiling:$ac_tool_warned in | ||
4388 | yes:) | ||
4389 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
4390 | whose name does not start with the host triplet. If you think this | ||
4391 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
4392 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
4393 | whose name does not start with the host triplet. If you think this | ||
4394 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
4395 | ac_tool_warned=yes ;; | ||
4396 | esac | ||
4397 | RANLIB=$ac_ct_RANLIB | ||
4398 | fi | ||
4399 | else | ||
4400 | RANLIB="$ac_cv_prog_RANLIB" | ||
4401 | fi | ||
4402 | |||
4403 | # Find a good install program. We prefer a C program (faster), | ||
4404 | # so one script is as good as another. But avoid the broken or | ||
4405 | # incompatible versions: | ||
4406 | # SysV /etc/install, /usr/sbin/install | ||
4407 | # SunOS /usr/etc/install | ||
4408 | # IRIX /sbin/install | ||
4409 | # AIX /bin/install | ||
4410 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
4411 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
4412 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
4413 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
4414 | # OS/2's system install, which has a completely different semantic | ||
4415 | # ./install, which can be erroneously created by make from ./install.sh. | ||
4416 | # Reject install programs that cannot install multiple files. | ||
4417 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
4418 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
4419 | if test -z "$INSTALL"; then | ||
4420 | if test "${ac_cv_path_install+set}" = set; then | ||
4421 | $as_echo_n "(cached) " >&6 | ||
4422 | else | ||
4423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4424 | for as_dir in $PATH | ||
4425 | do | ||
4426 | IFS=$as_save_IFS | ||
4427 | test -z "$as_dir" && as_dir=. | ||
4428 | # Account for people who put trailing slashes in PATH elements. | ||
4429 | case $as_dir/ in | ||
4430 | ./ | .// | /cC/* | \ | ||
4431 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
4432 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
4433 | /usr/ucb/* ) ;; | ||
4434 | *) | ||
4435 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
4436 | # Don't use installbsd from OSF since it installs stuff as root | ||
4437 | # by default. | ||
4438 | for ac_prog in ginstall scoinst install; do | ||
4439 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4440 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
4441 | if test $ac_prog = install && | ||
4442 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4443 | # AIX install. It has an incompatible calling convention. | ||
4444 | : | ||
4445 | elif test $ac_prog = install && | ||
4446 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
4447 | # program-specific install script used by HP pwplus--don't use. | ||
4448 | : | ||
4449 | else | ||
4450 | rm -rf conftest.one conftest.two conftest.dir | ||
4451 | echo one > conftest.one | ||
4452 | echo two > conftest.two | ||
4453 | mkdir conftest.dir | ||
4454 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
4455 | test -s conftest.one && test -s conftest.two && | ||
4456 | test -s conftest.dir/conftest.one && | ||
4457 | test -s conftest.dir/conftest.two | ||
4458 | then | ||
4459 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
4460 | break 3 | ||
4461 | fi | ||
4462 | fi | ||
4463 | fi | ||
4464 | done | ||
4465 | done | ||
4466 | ;; | ||
4467 | esac | ||
4468 | |||
4469 | done | ||
4470 | IFS=$as_save_IFS | ||
4471 | |||
4472 | rm -rf conftest.one conftest.two conftest.dir | ||
4473 | |||
4474 | fi | ||
4475 | if test "${ac_cv_path_install+set}" = set; then | ||
4476 | INSTALL=$ac_cv_path_install | ||
4477 | else | ||
4478 | # As a last resort, use the slow shell script. Don't cache a | ||
4479 | # value for INSTALL within a source directory, because that will | ||
4480 | # break other packages using the cache if that directory is | ||
4481 | # removed, or if the value is a relative name. | ||
4482 | INSTALL=$ac_install_sh | ||
4483 | fi | ||
4484 | fi | ||
4485 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
4486 | $as_echo "$INSTALL" >&6; } | ||
4487 | |||
4488 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
4489 | # It thinks the first close brace ends the variable substitution. | ||
4490 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
4491 | |||
4492 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
4493 | |||
4494 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
4495 | |||
4496 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4497 | $as_echo_n "checking for egrep... " >&6; } | ||
4498 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4499 | $as_echo_n "(cached) " >&6 | ||
4500 | else | ||
4501 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4502 | then ac_cv_path_EGREP="$GREP -E" | ||
4503 | else | ||
4504 | if test -z "$EGREP"; then | ||
4505 | ac_path_EGREP_found=false | ||
4506 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4508 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4509 | do | ||
4510 | IFS=$as_save_IFS | ||
4511 | test -z "$as_dir" && as_dir=. | ||
4512 | for ac_prog in egrep; do | ||
4513 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4514 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4515 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4516 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4517 | # Check for GNU $ac_path_EGREP | ||
4518 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4519 | *GNU*) | ||
4520 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4521 | *) | ||
4522 | ac_count=0 | ||
4523 | $as_echo_n 0123456789 >"conftest.in" | ||
4524 | while : | ||
4525 | do | ||
4526 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4527 | mv "conftest.tmp" "conftest.in" | ||
4528 | cp "conftest.in" "conftest.nl" | ||
4529 | $as_echo 'EGREP' >> "conftest.nl" | ||
4530 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4531 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4532 | ac_count=`expr $ac_count + 1` | ||
4533 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4534 | # Best one so far, save it but keep looking for a better one | ||
4535 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4536 | ac_path_EGREP_max=$ac_count | ||
4537 | fi | ||
4538 | # 10*(2^10) chars as input seems more than enough | ||
4539 | test $ac_count -gt 10 && break | ||
4540 | done | ||
4541 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4542 | esac | ||
4543 | |||
4544 | $ac_path_EGREP_found && break 3 | ||
4545 | done | ||
4546 | done | ||
4547 | done | ||
4548 | IFS=$as_save_IFS | ||
4549 | if test -z "$ac_cv_path_EGREP"; then | ||
4550 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4551 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4552 | { (exit 1); exit 1; }; } | ||
4553 | fi | ||
4554 | else | ||
4555 | ac_cv_path_EGREP=$EGREP | ||
4556 | fi | ||
4557 | |||
4558 | fi | ||
4559 | fi | ||
4560 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4561 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4562 | EGREP="$ac_cv_path_EGREP" | ||
4563 | |||
4564 | |||
4565 | # Extract the first word of "ar", so it can be a program name with args. | ||
4566 | set dummy ar; ac_word=$2 | ||
4567 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4568 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4569 | if test "${ac_cv_path_AR+set}" = set; then | ||
4570 | $as_echo_n "(cached) " >&6 | ||
4571 | else | ||
4572 | case $AR in | ||
4573 | [\\/]* | ?:[\\/]*) | ||
4574 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
4575 | ;; | ||
4576 | *) | ||
4577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4578 | for as_dir in $PATH | ||
4579 | do | ||
4580 | IFS=$as_save_IFS | ||
4581 | test -z "$as_dir" && as_dir=. | ||
4582 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4584 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | ||
4585 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4586 | break 2 | ||
4587 | fi | ||
4588 | done | ||
4589 | done | ||
4590 | IFS=$as_save_IFS | ||
4591 | |||
4592 | ;; | ||
4593 | esac | ||
4594 | fi | ||
4595 | AR=$ac_cv_path_AR | ||
4596 | if test -n "$AR"; then | ||
4597 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 | ||
4598 | $as_echo "$AR" >&6; } | ||
4599 | else | ||
4600 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4601 | $as_echo "no" >&6; } | ||
4602 | fi | ||
4603 | |||
4604 | |||
4605 | # Extract the first word of "cat", so it can be a program name with args. | ||
4606 | set dummy cat; ac_word=$2 | ||
4607 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4608 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4609 | if test "${ac_cv_path_CAT+set}" = set; then | ||
4610 | $as_echo_n "(cached) " >&6 | ||
4611 | else | ||
4612 | case $CAT in | ||
4613 | [\\/]* | ?:[\\/]*) | ||
4614 | ac_cv_path_CAT="$CAT" # Let the user override the test with a path. | ||
4615 | ;; | ||
4616 | *) | ||
4617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4618 | for as_dir in $PATH | ||
4619 | do | ||
4620 | IFS=$as_save_IFS | ||
4621 | test -z "$as_dir" && as_dir=. | ||
4622 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4624 | ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" | ||
4625 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4626 | break 2 | ||
4627 | fi | ||
4628 | done | ||
4629 | done | ||
4630 | IFS=$as_save_IFS | ||
4631 | |||
4632 | ;; | ||
4633 | esac | ||
4634 | fi | ||
4635 | CAT=$ac_cv_path_CAT | ||
4636 | if test -n "$CAT"; then | ||
4637 | { $as_echo "$as_me:$LINENO: result: $CAT" >&5 | ||
4638 | $as_echo "$CAT" >&6; } | ||
4639 | else | ||
4640 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4641 | $as_echo "no" >&6; } | ||
4642 | fi | ||
4643 | |||
4644 | |||
4645 | # Extract the first word of "kill", so it can be a program name with args. | ||
4646 | set dummy kill; ac_word=$2 | ||
4647 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4648 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4649 | if test "${ac_cv_path_KILL+set}" = set; then | ||
4650 | $as_echo_n "(cached) " >&6 | ||
4651 | else | ||
4652 | case $KILL in | ||
4653 | [\\/]* | ?:[\\/]*) | ||
4654 | ac_cv_path_KILL="$KILL" # Let the user override the test with a path. | ||
4655 | ;; | ||
4656 | *) | ||
4657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4658 | for as_dir in $PATH | ||
4659 | do | ||
4660 | IFS=$as_save_IFS | ||
4661 | test -z "$as_dir" && as_dir=. | ||
4662 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4664 | ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext" | ||
4665 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4666 | break 2 | ||
4667 | fi | ||
4668 | done | ||
4669 | done | ||
4670 | IFS=$as_save_IFS | ||
4671 | |||
4672 | ;; | ||
4673 | esac | ||
4674 | fi | ||
4675 | KILL=$ac_cv_path_KILL | ||
4676 | if test -n "$KILL"; then | ||
4677 | { $as_echo "$as_me:$LINENO: result: $KILL" >&5 | ||
4678 | $as_echo "$KILL" >&6; } | ||
4679 | else | ||
4680 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4681 | $as_echo "no" >&6; } | ||
4682 | fi | ||
4683 | |||
4684 | |||
4685 | for ac_prog in perl5 perl | ||
4686 | do | ||
4687 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4688 | set dummy $ac_prog; ac_word=$2 | ||
4689 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4690 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4691 | if test "${ac_cv_path_PERL+set}" = set; then | ||
4692 | $as_echo_n "(cached) " >&6 | ||
4693 | else | ||
4694 | case $PERL in | ||
4695 | [\\/]* | ?:[\\/]*) | ||
4696 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
4697 | ;; | ||
4698 | *) | ||
4699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4700 | for as_dir in $PATH | ||
4701 | do | ||
4702 | IFS=$as_save_IFS | ||
4703 | test -z "$as_dir" && as_dir=. | ||
4704 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4706 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | ||
4707 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4708 | break 2 | ||
4709 | fi | ||
4710 | done | ||
4711 | done | ||
4712 | IFS=$as_save_IFS | ||
4713 | |||
4714 | ;; | ||
4715 | esac | ||
4716 | fi | ||
4717 | PERL=$ac_cv_path_PERL | ||
4718 | if test -n "$PERL"; then | ||
4719 | { $as_echo "$as_me:$LINENO: result: $PERL" >&5 | ||
4720 | $as_echo "$PERL" >&6; } | ||
4721 | else | ||
4722 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4723 | $as_echo "no" >&6; } | ||
4724 | fi | ||
4725 | |||
4726 | |||
4727 | test -n "$PERL" && break | ||
4728 | done | ||
4729 | |||
4730 | # Extract the first word of "sed", so it can be a program name with args. | ||
4731 | set dummy sed; ac_word=$2 | ||
4732 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4733 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4734 | if test "${ac_cv_path_SED+set}" = set; then | ||
4735 | $as_echo_n "(cached) " >&6 | ||
4736 | else | ||
4737 | case $SED in | ||
4738 | [\\/]* | ?:[\\/]*) | ||
4739 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | ||
4740 | ;; | ||
4741 | *) | ||
4742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4743 | for as_dir in $PATH | ||
4744 | do | ||
4745 | IFS=$as_save_IFS | ||
4746 | test -z "$as_dir" && as_dir=. | ||
4747 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4749 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | ||
4750 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4751 | break 2 | ||
4752 | fi | ||
4753 | done | ||
4754 | done | ||
4755 | IFS=$as_save_IFS | ||
4756 | |||
4757 | ;; | ||
4758 | esac | ||
4759 | fi | ||
4760 | SED=$ac_cv_path_SED | ||
4761 | if test -n "$SED"; then | ||
4762 | { $as_echo "$as_me:$LINENO: result: $SED" >&5 | ||
4763 | $as_echo "$SED" >&6; } | ||
4764 | else | ||
4765 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4766 | $as_echo "no" >&6; } | ||
4767 | fi | ||
4768 | |||
4769 | |||
4770 | |||
4771 | # Extract the first word of "ent", so it can be a program name with args. | ||
4772 | set dummy ent; ac_word=$2 | ||
4773 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4774 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4775 | if test "${ac_cv_path_ENT+set}" = set; then | ||
4776 | $as_echo_n "(cached) " >&6 | ||
4777 | else | ||
4778 | case $ENT in | ||
4779 | [\\/]* | ?:[\\/]*) | ||
4780 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
4781 | ;; | ||
4782 | *) | ||
4783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4784 | for as_dir in $PATH | ||
4785 | do | ||
4786 | IFS=$as_save_IFS | ||
4787 | test -z "$as_dir" && as_dir=. | ||
4788 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4790 | ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext" | ||
4791 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4792 | break 2 | ||
4793 | fi | ||
4794 | done | ||
4795 | done | ||
4796 | IFS=$as_save_IFS | ||
4797 | |||
4798 | ;; | ||
4799 | esac | ||
4800 | fi | ||
4801 | ENT=$ac_cv_path_ENT | ||
4802 | if test -n "$ENT"; then | ||
4803 | { $as_echo "$as_me:$LINENO: result: $ENT" >&5 | ||
4804 | $as_echo "$ENT" >&6; } | ||
4805 | else | ||
4806 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4807 | $as_echo "no" >&6; } | ||
4808 | fi | ||
4809 | |||
4810 | |||
4811 | |||
4812 | # Extract the first word of "bash", so it can be a program name with args. | ||
4813 | set dummy bash; ac_word=$2 | ||
4814 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4815 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4816 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4817 | $as_echo_n "(cached) " >&6 | ||
4818 | else | ||
4819 | case $TEST_MINUS_S_SH in | ||
4820 | [\\/]* | ?:[\\/]*) | ||
4821 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4822 | ;; | ||
4823 | *) | ||
4824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4825 | for as_dir in $PATH | ||
4826 | do | ||
4827 | IFS=$as_save_IFS | ||
4828 | test -z "$as_dir" && as_dir=. | ||
4829 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4831 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4832 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4833 | break 2 | ||
4834 | fi | ||
4835 | done | ||
4836 | done | ||
4837 | IFS=$as_save_IFS | ||
4838 | |||
4839 | ;; | ||
4840 | esac | ||
4841 | fi | ||
4842 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4843 | if test -n "$TEST_MINUS_S_SH"; then | ||
4844 | { $as_echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4845 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4846 | else | ||
4847 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4848 | $as_echo "no" >&6; } | ||
4849 | fi | ||
4850 | |||
4851 | |||
4852 | # Extract the first word of "ksh", so it can be a program name with args. | ||
4853 | set dummy ksh; ac_word=$2 | ||
4854 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4855 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4856 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4857 | $as_echo_n "(cached) " >&6 | ||
4858 | else | ||
4859 | case $TEST_MINUS_S_SH in | ||
4860 | [\\/]* | ?:[\\/]*) | ||
4861 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4862 | ;; | ||
4863 | *) | ||
4864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4865 | for as_dir in $PATH | ||
4866 | do | ||
4867 | IFS=$as_save_IFS | ||
4868 | test -z "$as_dir" && as_dir=. | ||
4869 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4871 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4872 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4873 | break 2 | ||
4874 | fi | ||
4875 | done | ||
4876 | done | ||
4877 | IFS=$as_save_IFS | ||
4878 | |||
4879 | ;; | ||
4880 | esac | ||
4881 | fi | ||
4882 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4883 | if test -n "$TEST_MINUS_S_SH"; then | ||
4884 | { $as_echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4885 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4886 | else | ||
4887 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4888 | $as_echo "no" >&6; } | ||
4889 | fi | ||
4890 | |||
4891 | |||
4892 | # Extract the first word of "sh", so it can be a program name with args. | ||
4893 | set dummy sh; ac_word=$2 | ||
4894 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4895 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4896 | if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then | ||
4897 | $as_echo_n "(cached) " >&6 | ||
4898 | else | ||
4899 | case $TEST_MINUS_S_SH in | ||
4900 | [\\/]* | ?:[\\/]*) | ||
4901 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
4902 | ;; | ||
4903 | *) | ||
4904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4905 | for as_dir in $PATH | ||
4906 | do | ||
4907 | IFS=$as_save_IFS | ||
4908 | test -z "$as_dir" && as_dir=. | ||
4909 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4911 | ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4912 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4913 | break 2 | ||
4914 | fi | ||
4915 | done | ||
4916 | done | ||
4917 | IFS=$as_save_IFS | ||
4918 | |||
4919 | ;; | ||
4920 | esac | ||
4921 | fi | ||
4922 | TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH | ||
4923 | if test -n "$TEST_MINUS_S_SH"; then | ||
4924 | { $as_echo "$as_me:$LINENO: result: $TEST_MINUS_S_SH" >&5 | ||
4925 | $as_echo "$TEST_MINUS_S_SH" >&6; } | ||
4926 | else | ||
4927 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4928 | $as_echo "no" >&6; } | ||
4929 | fi | ||
4930 | |||
4931 | |||
4932 | # Extract the first word of "sh", so it can be a program name with args. | ||
4933 | set dummy sh; ac_word=$2 | ||
4934 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4935 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4936 | if test "${ac_cv_path_SH+set}" = set; then | ||
4937 | $as_echo_n "(cached) " >&6 | ||
4938 | else | ||
4939 | case $SH in | ||
4940 | [\\/]* | ?:[\\/]*) | ||
4941 | ac_cv_path_SH="$SH" # Let the user override the test with a path. | ||
4942 | ;; | ||
4943 | *) | ||
4944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4945 | for as_dir in $PATH | ||
4946 | do | ||
4947 | IFS=$as_save_IFS | ||
4948 | test -z "$as_dir" && as_dir=. | ||
4949 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4951 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | ||
4952 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4953 | break 2 | ||
4954 | fi | ||
4955 | done | ||
4956 | done | ||
4957 | IFS=$as_save_IFS | ||
4958 | |||
4959 | ;; | ||
4960 | esac | ||
4961 | fi | ||
4962 | SH=$ac_cv_path_SH | ||
4963 | if test -n "$SH"; then | ||
4964 | { $as_echo "$as_me:$LINENO: result: $SH" >&5 | ||
4965 | $as_echo "$SH" >&6; } | ||
4966 | else | ||
4967 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
4968 | $as_echo "no" >&6; } | ||
4969 | fi | ||
4970 | |||
4971 | |||
4972 | TEST_SHELL=sh | ||
4973 | |||
4974 | |||
4975 | # Extract the first word of "groupadd", so it can be a program name with args. | ||
4976 | set dummy groupadd; ac_word=$2 | ||
4977 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4978 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4979 | if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then | ||
4980 | $as_echo_n "(cached) " >&6 | ||
4981 | else | ||
4982 | case $PATH_GROUPADD_PROG in | ||
4983 | [\\/]* | ?:[\\/]*) | ||
4984 | ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path. | ||
4985 | ;; | ||
4986 | *) | ||
4987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4988 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
4989 | do | ||
4990 | IFS=$as_save_IFS | ||
4991 | test -z "$as_dir" && as_dir=. | ||
4992 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4993 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4994 | ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
4995 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4996 | break 2 | ||
4997 | fi | ||
4998 | done | ||
4999 | done | ||
5000 | IFS=$as_save_IFS | ||
5001 | |||
5002 | test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd" | ||
5003 | ;; | ||
5004 | esac | ||
5005 | fi | ||
5006 | PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG | ||
5007 | if test -n "$PATH_GROUPADD_PROG"; then | ||
5008 | { $as_echo "$as_me:$LINENO: result: $PATH_GROUPADD_PROG" >&5 | ||
5009 | $as_echo "$PATH_GROUPADD_PROG" >&6; } | ||
5010 | else | ||
5011 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5012 | $as_echo "no" >&6; } | ||
5013 | fi | ||
5014 | |||
5015 | |||
5016 | # Extract the first word of "useradd", so it can be a program name with args. | ||
5017 | set dummy useradd; ac_word=$2 | ||
5018 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5019 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5020 | if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then | ||
5021 | $as_echo_n "(cached) " >&6 | ||
5022 | else | ||
5023 | case $PATH_USERADD_PROG in | ||
5024 | [\\/]* | ?:[\\/]*) | ||
5025 | ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path. | ||
5026 | ;; | ||
5027 | *) | ||
5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5029 | for as_dir in /usr/sbin${PATH_SEPARATOR}/etc | ||
5030 | do | ||
5031 | IFS=$as_save_IFS | ||
5032 | test -z "$as_dir" && as_dir=. | ||
5033 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5035 | ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5036 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5037 | break 2 | ||
5038 | fi | ||
5039 | done | ||
5040 | done | ||
5041 | IFS=$as_save_IFS | ||
5042 | |||
5043 | test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd" | ||
5044 | ;; | ||
5045 | esac | ||
5046 | fi | ||
5047 | PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG | ||
5048 | if test -n "$PATH_USERADD_PROG"; then | ||
5049 | { $as_echo "$as_me:$LINENO: result: $PATH_USERADD_PROG" >&5 | ||
5050 | $as_echo "$PATH_USERADD_PROG" >&6; } | ||
5051 | else | ||
5052 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5053 | $as_echo "no" >&6; } | ||
5054 | fi | ||
5055 | |||
5056 | |||
5057 | # Extract the first word of "pkgmk", so it can be a program name with args. | ||
5058 | set dummy pkgmk; ac_word=$2 | ||
5059 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5060 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5061 | if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then | ||
5062 | $as_echo_n "(cached) " >&6 | ||
5063 | else | ||
5064 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5065 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test. | ||
5066 | else | ||
5067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5068 | for as_dir in $PATH | ||
5069 | do | ||
5070 | IFS=$as_save_IFS | ||
5071 | test -z "$as_dir" && as_dir=. | ||
5072 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5074 | ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes" | ||
5075 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5076 | break 2 | ||
5077 | fi | ||
5078 | done | ||
5079 | done | ||
5080 | IFS=$as_save_IFS | ||
5081 | |||
5082 | test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no" | ||
5083 | fi | ||
5084 | fi | ||
5085 | MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED | ||
5086 | if test -n "$MAKE_PACKAGE_SUPPORTED"; then | ||
5087 | { $as_echo "$as_me:$LINENO: result: $MAKE_PACKAGE_SUPPORTED" >&5 | ||
5088 | $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; } | ||
5089 | else | ||
5090 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5091 | $as_echo "no" >&6; } | ||
5092 | fi | ||
5093 | |||
5094 | |||
5095 | if test -x /sbin/sh; then | ||
5096 | STARTUP_SCRIPT_SHELL=/sbin/sh | ||
5097 | |||
5098 | else | ||
5099 | STARTUP_SCRIPT_SHELL=/bin/sh | ||
5100 | |||
5101 | fi | ||
5102 | |||
5103 | # System features | ||
5104 | # Check whether --enable-largefile was given. | ||
5105 | if test "${enable_largefile+set}" = set; then | ||
5106 | enableval=$enable_largefile; | ||
5107 | fi | ||
5108 | |||
5109 | if test "$enable_largefile" != no; then | ||
5110 | |||
5111 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | ||
5112 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | ||
5113 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | ||
5114 | $as_echo_n "(cached) " >&6 | ||
5115 | else | ||
5116 | ac_cv_sys_largefile_CC=no | ||
5117 | if test "$GCC" != yes; then | ||
5118 | ac_save_CC=$CC | ||
5119 | while :; do | ||
5120 | # IRIX 6.2 and later do not support large files by default, | ||
5121 | # so use the C compiler's -n32 option if that helps. | ||
5122 | cat >conftest.$ac_ext <<_ACEOF | ||
5123 | /* confdefs.h. */ | ||
5124 | _ACEOF | ||
5125 | cat confdefs.h >>conftest.$ac_ext | ||
5126 | cat >>conftest.$ac_ext <<_ACEOF | ||
5127 | /* end confdefs.h. */ | ||
5128 | #include <sys/types.h> | ||
5129 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5130 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5131 | since some C++ compilers masquerading as C compilers | ||
5132 | incorrectly reject 9223372036854775807. */ | ||
5133 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5134 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5135 | && LARGE_OFF_T % 2147483647 == 1) | ||
5136 | ? 1 : -1]; | ||
5137 | int | ||
5138 | main () | ||
5139 | { | ||
5140 | |||
5141 | ; | ||
5142 | return 0; | ||
5143 | } | ||
5144 | _ACEOF | ||
5145 | rm -f conftest.$ac_objext | ||
5146 | if { (ac_try="$ac_compile" | ||
5147 | case "(($ac_try" in | ||
5148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5149 | *) ac_try_echo=$ac_try;; | ||
5150 | esac | ||
5151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5152 | $as_echo "$ac_try_echo") >&5 | ||
5153 | (eval "$ac_compile") 2>conftest.er1 | ||
5154 | ac_status=$? | ||
5155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5156 | rm -f conftest.er1 | ||
5157 | cat conftest.err >&5 | ||
5158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5159 | (exit $ac_status); } && { | ||
5160 | test -z "$ac_c_werror_flag" || | ||
5161 | test ! -s conftest.err | ||
5162 | } && test -s conftest.$ac_objext; then | ||
5163 | break | ||
5164 | else | ||
5165 | $as_echo "$as_me: failed program was:" >&5 | ||
5166 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5167 | |||
5168 | |||
5169 | fi | ||
5170 | |||
5171 | rm -f core conftest.err conftest.$ac_objext | ||
5172 | CC="$CC -n32" | ||
5173 | rm -f conftest.$ac_objext | ||
5174 | if { (ac_try="$ac_compile" | ||
5175 | case "(($ac_try" in | ||
5176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5177 | *) ac_try_echo=$ac_try;; | ||
5178 | esac | ||
5179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5180 | $as_echo "$ac_try_echo") >&5 | ||
5181 | (eval "$ac_compile") 2>conftest.er1 | ||
5182 | ac_status=$? | ||
5183 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5184 | rm -f conftest.er1 | ||
5185 | cat conftest.err >&5 | ||
5186 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5187 | (exit $ac_status); } && { | ||
5188 | test -z "$ac_c_werror_flag" || | ||
5189 | test ! -s conftest.err | ||
5190 | } && test -s conftest.$ac_objext; then | ||
5191 | ac_cv_sys_largefile_CC=' -n32'; break | ||
5192 | else | ||
5193 | $as_echo "$as_me: failed program was:" >&5 | ||
5194 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5195 | |||
5196 | |||
5197 | fi | ||
5198 | |||
5199 | rm -f core conftest.err conftest.$ac_objext | ||
5200 | break | ||
5201 | done | ||
5202 | CC=$ac_save_CC | ||
5203 | rm -f conftest.$ac_ext | ||
5204 | fi | ||
5205 | fi | ||
5206 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | ||
5207 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | ||
5208 | if test "$ac_cv_sys_largefile_CC" != no; then | ||
5209 | CC=$CC$ac_cv_sys_largefile_CC | ||
5210 | fi | ||
5211 | |||
5212 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | ||
5213 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | ||
5214 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | ||
5215 | $as_echo_n "(cached) " >&6 | ||
5216 | else | ||
5217 | while :; do | ||
5218 | cat >conftest.$ac_ext <<_ACEOF | ||
5219 | /* confdefs.h. */ | ||
5220 | _ACEOF | ||
5221 | cat confdefs.h >>conftest.$ac_ext | ||
5222 | cat >>conftest.$ac_ext <<_ACEOF | ||
5223 | /* end confdefs.h. */ | ||
5224 | #include <sys/types.h> | ||
5225 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5226 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5227 | since some C++ compilers masquerading as C compilers | ||
5228 | incorrectly reject 9223372036854775807. */ | ||
5229 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5230 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5231 | && LARGE_OFF_T % 2147483647 == 1) | ||
5232 | ? 1 : -1]; | ||
5233 | int | ||
5234 | main () | ||
5235 | { | ||
5236 | |||
5237 | ; | ||
5238 | return 0; | ||
5239 | } | ||
5240 | _ACEOF | ||
5241 | rm -f conftest.$ac_objext | ||
5242 | if { (ac_try="$ac_compile" | ||
5243 | case "(($ac_try" in | ||
5244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5245 | *) ac_try_echo=$ac_try;; | ||
5246 | esac | ||
5247 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5248 | $as_echo "$ac_try_echo") >&5 | ||
5249 | (eval "$ac_compile") 2>conftest.er1 | ||
5250 | ac_status=$? | ||
5251 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5252 | rm -f conftest.er1 | ||
5253 | cat conftest.err >&5 | ||
5254 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5255 | (exit $ac_status); } && { | ||
5256 | test -z "$ac_c_werror_flag" || | ||
5257 | test ! -s conftest.err | ||
5258 | } && test -s conftest.$ac_objext; then | ||
5259 | ac_cv_sys_file_offset_bits=no; break | ||
5260 | else | ||
5261 | $as_echo "$as_me: failed program was:" >&5 | ||
5262 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5263 | |||
5264 | |||
5265 | fi | ||
5266 | |||
5267 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5268 | cat >conftest.$ac_ext <<_ACEOF | ||
5269 | /* confdefs.h. */ | ||
5270 | _ACEOF | ||
5271 | cat confdefs.h >>conftest.$ac_ext | ||
5272 | cat >>conftest.$ac_ext <<_ACEOF | ||
5273 | /* end confdefs.h. */ | ||
5274 | #define _FILE_OFFSET_BITS 64 | ||
5275 | #include <sys/types.h> | ||
5276 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5277 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5278 | since some C++ compilers masquerading as C compilers | ||
5279 | incorrectly reject 9223372036854775807. */ | ||
5280 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5281 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5282 | && LARGE_OFF_T % 2147483647 == 1) | ||
5283 | ? 1 : -1]; | ||
5284 | int | ||
5285 | main () | ||
5286 | { | ||
5287 | |||
5288 | ; | ||
5289 | return 0; | ||
5290 | } | ||
5291 | _ACEOF | ||
5292 | rm -f conftest.$ac_objext | ||
5293 | if { (ac_try="$ac_compile" | ||
5294 | case "(($ac_try" in | ||
5295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5296 | *) ac_try_echo=$ac_try;; | ||
5297 | esac | ||
5298 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5299 | $as_echo "$ac_try_echo") >&5 | ||
5300 | (eval "$ac_compile") 2>conftest.er1 | ||
5301 | ac_status=$? | ||
5302 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5303 | rm -f conftest.er1 | ||
5304 | cat conftest.err >&5 | ||
5305 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5306 | (exit $ac_status); } && { | ||
5307 | test -z "$ac_c_werror_flag" || | ||
5308 | test ! -s conftest.err | ||
5309 | } && test -s conftest.$ac_objext; then | ||
5310 | ac_cv_sys_file_offset_bits=64; break | ||
5311 | else | ||
5312 | $as_echo "$as_me: failed program was:" >&5 | ||
5313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5314 | |||
5315 | |||
5316 | fi | ||
5317 | |||
5318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5319 | ac_cv_sys_file_offset_bits=unknown | ||
5320 | break | ||
5321 | done | ||
5322 | fi | ||
5323 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | ||
5324 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | ||
5325 | case $ac_cv_sys_file_offset_bits in #( | ||
5326 | no | unknown) ;; | ||
5327 | *) | ||
5328 | cat >>confdefs.h <<_ACEOF | ||
5329 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | ||
5330 | _ACEOF | ||
5331 | ;; | ||
5332 | esac | ||
5333 | rm -rf conftest* | ||
5334 | if test $ac_cv_sys_file_offset_bits = unknown; then | ||
5335 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | ||
5336 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | ||
5337 | if test "${ac_cv_sys_large_files+set}" = set; then | ||
5338 | $as_echo_n "(cached) " >&6 | ||
5339 | else | ||
5340 | while :; do | ||
5341 | cat >conftest.$ac_ext <<_ACEOF | ||
5342 | /* confdefs.h. */ | ||
5343 | _ACEOF | ||
5344 | cat confdefs.h >>conftest.$ac_ext | ||
5345 | cat >>conftest.$ac_ext <<_ACEOF | ||
5346 | /* end confdefs.h. */ | ||
5347 | #include <sys/types.h> | ||
5348 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5349 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5350 | since some C++ compilers masquerading as C compilers | ||
5351 | incorrectly reject 9223372036854775807. */ | ||
5352 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5353 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5354 | && LARGE_OFF_T % 2147483647 == 1) | ||
5355 | ? 1 : -1]; | ||
5356 | int | ||
5357 | main () | ||
5358 | { | ||
5359 | |||
5360 | ; | ||
5361 | return 0; | ||
5362 | } | ||
5363 | _ACEOF | ||
5364 | rm -f conftest.$ac_objext | ||
5365 | if { (ac_try="$ac_compile" | ||
5366 | case "(($ac_try" in | ||
5367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5368 | *) ac_try_echo=$ac_try;; | ||
5369 | esac | ||
5370 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5371 | $as_echo "$ac_try_echo") >&5 | ||
5372 | (eval "$ac_compile") 2>conftest.er1 | ||
5373 | ac_status=$? | ||
5374 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5375 | rm -f conftest.er1 | ||
5376 | cat conftest.err >&5 | ||
5377 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5378 | (exit $ac_status); } && { | ||
5379 | test -z "$ac_c_werror_flag" || | ||
5380 | test ! -s conftest.err | ||
5381 | } && test -s conftest.$ac_objext; then | ||
5382 | ac_cv_sys_large_files=no; break | ||
5383 | else | ||
5384 | $as_echo "$as_me: failed program was:" >&5 | ||
5385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5386 | |||
5387 | |||
5388 | fi | ||
5389 | |||
5390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5391 | cat >conftest.$ac_ext <<_ACEOF | ||
5392 | /* confdefs.h. */ | ||
5393 | _ACEOF | ||
5394 | cat confdefs.h >>conftest.$ac_ext | ||
5395 | cat >>conftest.$ac_ext <<_ACEOF | ||
5396 | /* end confdefs.h. */ | ||
5397 | #define _LARGE_FILES 1 | ||
5398 | #include <sys/types.h> | ||
5399 | /* Check that off_t can represent 2**63 - 1 correctly. | ||
5400 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | ||
5401 | since some C++ compilers masquerading as C compilers | ||
5402 | incorrectly reject 9223372036854775807. */ | ||
5403 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
5404 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | ||
5405 | && LARGE_OFF_T % 2147483647 == 1) | ||
5406 | ? 1 : -1]; | ||
5407 | int | ||
5408 | main () | ||
5409 | { | ||
5410 | |||
5411 | ; | ||
5412 | return 0; | ||
5413 | } | ||
5414 | _ACEOF | ||
5415 | rm -f conftest.$ac_objext | ||
5416 | if { (ac_try="$ac_compile" | ||
5417 | case "(($ac_try" in | ||
5418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5419 | *) ac_try_echo=$ac_try;; | ||
5420 | esac | ||
5421 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5422 | $as_echo "$ac_try_echo") >&5 | ||
5423 | (eval "$ac_compile") 2>conftest.er1 | ||
5424 | ac_status=$? | ||
5425 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5426 | rm -f conftest.er1 | ||
5427 | cat conftest.err >&5 | ||
5428 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5429 | (exit $ac_status); } && { | ||
5430 | test -z "$ac_c_werror_flag" || | ||
5431 | test ! -s conftest.err | ||
5432 | } && test -s conftest.$ac_objext; then | ||
5433 | ac_cv_sys_large_files=1; break | ||
5434 | else | ||
5435 | $as_echo "$as_me: failed program was:" >&5 | ||
5436 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5437 | |||
5438 | |||
5439 | fi | ||
5440 | |||
5441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5442 | ac_cv_sys_large_files=unknown | ||
5443 | break | ||
5444 | done | ||
5445 | fi | ||
5446 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | ||
5447 | $as_echo "$ac_cv_sys_large_files" >&6; } | ||
5448 | case $ac_cv_sys_large_files in #( | ||
5449 | no | unknown) ;; | ||
5450 | *) | ||
5451 | cat >>confdefs.h <<_ACEOF | ||
5452 | #define _LARGE_FILES $ac_cv_sys_large_files | ||
5453 | _ACEOF | ||
5454 | ;; | ||
5455 | esac | ||
5456 | rm -rf conftest* | ||
5457 | fi | ||
5458 | fi | ||
5459 | |||
5460 | |||
5461 | if test -z "$AR" ; then | ||
5462 | { { $as_echo "$as_me:$LINENO: error: *** 'ar' missing, please install or fix your \$PATH ***" >&5 | ||
5463 | $as_echo "$as_me: error: *** 'ar' missing, please install or fix your \$PATH ***" >&2;} | ||
5464 | { (exit 1); exit 1; }; } | ||
5465 | fi | ||
5466 | |||
5467 | # Use LOGIN_PROGRAM from environment if possible | ||
5468 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
5469 | |||
5470 | cat >>confdefs.h <<_ACEOF | ||
5471 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
5472 | _ACEOF | ||
5473 | |||
5474 | else | ||
5475 | # Search for login | ||
5476 | # Extract the first word of "login", so it can be a program name with args. | ||
5477 | set dummy login; ac_word=$2 | ||
5478 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5479 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5480 | if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then | ||
5481 | $as_echo_n "(cached) " >&6 | ||
5482 | else | ||
5483 | case $LOGIN_PROGRAM_FALLBACK in | ||
5484 | [\\/]* | ?:[\\/]*) | ||
5485 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
5486 | ;; | ||
5487 | *) | ||
5488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5489 | for as_dir in $PATH | ||
5490 | do | ||
5491 | IFS=$as_save_IFS | ||
5492 | test -z "$as_dir" && as_dir=. | ||
5493 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5495 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext" | ||
5496 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5497 | break 2 | ||
5498 | fi | ||
5499 | done | ||
5500 | done | ||
5501 | IFS=$as_save_IFS | ||
5502 | |||
5503 | ;; | ||
5504 | esac | ||
5505 | fi | ||
5506 | LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK | ||
5507 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
5508 | { $as_echo "$as_me:$LINENO: result: $LOGIN_PROGRAM_FALLBACK" >&5 | ||
5509 | $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; } | ||
5510 | else | ||
5511 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5512 | $as_echo "no" >&6; } | ||
5513 | fi | ||
5514 | |||
5515 | |||
5516 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
5517 | cat >>confdefs.h <<_ACEOF | ||
5518 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
5519 | _ACEOF | ||
5520 | |||
5521 | fi | ||
5522 | fi | ||
5523 | |||
5524 | # Extract the first word of "passwd", so it can be a program name with args. | ||
5525 | set dummy passwd; ac_word=$2 | ||
5526 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5527 | $as_echo_n "checking for $ac_word... " >&6; } | ||
5528 | if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then | ||
5529 | $as_echo_n "(cached) " >&6 | ||
5530 | else | ||
5531 | case $PATH_PASSWD_PROG in | ||
5532 | [\\/]* | ?:[\\/]*) | ||
5533 | ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path. | ||
5534 | ;; | ||
5535 | *) | ||
5536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5537 | for as_dir in $PATH | ||
5538 | do | ||
5539 | IFS=$as_save_IFS | ||
5540 | test -z "$as_dir" && as_dir=. | ||
5541 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5542 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5543 | ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext" | ||
5544 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5545 | break 2 | ||
5546 | fi | ||
5547 | done | ||
5548 | done | ||
5549 | IFS=$as_save_IFS | ||
5550 | |||
5551 | ;; | ||
5552 | esac | ||
5553 | fi | ||
5554 | PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG | ||
5555 | if test -n "$PATH_PASSWD_PROG"; then | ||
5556 | { $as_echo "$as_me:$LINENO: result: $PATH_PASSWD_PROG" >&5 | ||
5557 | $as_echo "$PATH_PASSWD_PROG" >&6; } | ||
5558 | else | ||
5559 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5560 | $as_echo "no" >&6; } | ||
5561 | fi | ||
5562 | |||
5563 | |||
5564 | if test ! -z "$PATH_PASSWD_PROG" ; then | ||
5565 | |||
5566 | cat >>confdefs.h <<_ACEOF | ||
5567 | #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG" | ||
5568 | _ACEOF | ||
5569 | |||
5570 | fi | ||
5571 | |||
5572 | if test -z "$LD" ; then | ||
5573 | LD=$CC | ||
5574 | fi | ||
5575 | |||
5576 | |||
5577 | { $as_echo "$as_me:$LINENO: checking for inline" >&5 | ||
5578 | $as_echo_n "checking for inline... " >&6; } | ||
5579 | if test "${ac_cv_c_inline+set}" = set; then | ||
5580 | $as_echo_n "(cached) " >&6 | ||
5581 | else | ||
5582 | ac_cv_c_inline=no | ||
5583 | for ac_kw in inline __inline__ __inline; do | ||
5584 | cat >conftest.$ac_ext <<_ACEOF | ||
5585 | /* confdefs.h. */ | ||
5586 | _ACEOF | ||
5587 | cat confdefs.h >>conftest.$ac_ext | ||
5588 | cat >>conftest.$ac_ext <<_ACEOF | ||
5589 | /* end confdefs.h. */ | ||
5590 | #ifndef __cplusplus | ||
5591 | typedef int foo_t; | ||
5592 | static $ac_kw foo_t static_foo () {return 0; } | ||
5593 | $ac_kw foo_t foo () {return 0; } | ||
5594 | #endif | ||
5595 | |||
5596 | _ACEOF | ||
5597 | rm -f conftest.$ac_objext | ||
5598 | if { (ac_try="$ac_compile" | ||
5599 | case "(($ac_try" in | ||
5600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5601 | *) ac_try_echo=$ac_try;; | ||
5602 | esac | ||
5603 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5604 | $as_echo "$ac_try_echo") >&5 | ||
5605 | (eval "$ac_compile") 2>conftest.er1 | ||
5606 | ac_status=$? | ||
5607 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5608 | rm -f conftest.er1 | ||
5609 | cat conftest.err >&5 | ||
5610 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5611 | (exit $ac_status); } && { | ||
5612 | test -z "$ac_c_werror_flag" || | ||
5613 | test ! -s conftest.err | ||
5614 | } && test -s conftest.$ac_objext; then | ||
5615 | ac_cv_c_inline=$ac_kw | ||
5616 | else | ||
5617 | $as_echo "$as_me: failed program was:" >&5 | ||
5618 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5619 | |||
5620 | |||
5621 | fi | ||
5622 | |||
5623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5624 | test "$ac_cv_c_inline" != no && break | ||
5625 | done | ||
5626 | |||
5627 | fi | ||
5628 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
5629 | $as_echo "$ac_cv_c_inline" >&6; } | ||
5630 | |||
5631 | |||
5632 | case $ac_cv_c_inline in | ||
5633 | inline | yes) ;; | ||
5634 | *) | ||
5635 | case $ac_cv_c_inline in | ||
5636 | no) ac_val=;; | ||
5637 | *) ac_val=$ac_cv_c_inline;; | ||
5638 | esac | ||
5639 | cat >>confdefs.h <<_ACEOF | ||
5640 | #ifndef __cplusplus | ||
5641 | #define inline $ac_val | ||
5642 | #endif | ||
5643 | _ACEOF | ||
5644 | ;; | ||
5645 | esac | ||
5646 | |||
5647 | |||
5648 | { $as_echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5649 | $as_echo_n "checking whether LLONG_MAX is declared... " >&6; } | ||
5650 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5651 | $as_echo_n "(cached) " >&6 | ||
5652 | else | ||
5653 | cat >conftest.$ac_ext <<_ACEOF | ||
5654 | /* confdefs.h. */ | ||
5655 | _ACEOF | ||
5656 | cat confdefs.h >>conftest.$ac_ext | ||
5657 | cat >>conftest.$ac_ext <<_ACEOF | ||
5658 | /* end confdefs.h. */ | ||
5659 | #include <limits.h> | ||
5660 | |||
5661 | int | ||
5662 | main () | ||
5663 | { | ||
5664 | #ifndef LLONG_MAX | ||
5665 | (void) LLONG_MAX; | ||
5666 | #endif | ||
5667 | |||
5668 | ; | ||
5669 | return 0; | ||
5670 | } | ||
5671 | _ACEOF | ||
5672 | rm -f conftest.$ac_objext | ||
5673 | if { (ac_try="$ac_compile" | ||
5674 | case "(($ac_try" in | ||
5675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5676 | *) ac_try_echo=$ac_try;; | ||
5677 | esac | ||
5678 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5679 | $as_echo "$ac_try_echo") >&5 | ||
5680 | (eval "$ac_compile") 2>conftest.er1 | ||
5681 | ac_status=$? | ||
5682 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5683 | rm -f conftest.er1 | ||
5684 | cat conftest.err >&5 | ||
5685 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5686 | (exit $ac_status); } && { | ||
5687 | test -z "$ac_c_werror_flag" || | ||
5688 | test ! -s conftest.err | ||
5689 | } && test -s conftest.$ac_objext; then | ||
5690 | ac_cv_have_decl_LLONG_MAX=yes | ||
5691 | else | ||
5692 | $as_echo "$as_me: failed program was:" >&5 | ||
5693 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5694 | |||
5695 | ac_cv_have_decl_LLONG_MAX=no | ||
5696 | fi | ||
5697 | |||
5698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5699 | fi | ||
5700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5701 | $as_echo "$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5702 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5703 | have_llong_max=1 | ||
5704 | fi | ||
5705 | |||
5706 | |||
5707 | use_stack_protector=1 | ||
5708 | |||
5709 | # Check whether --with-stackprotect was given. | ||
5710 | if test "${with_stackprotect+set}" = set; then | ||
5711 | withval=$with_stackprotect; | ||
5712 | if test "x$withval" = "xno"; then | ||
5713 | use_stack_protector=0 | ||
5714 | fi | ||
5715 | fi | ||
5716 | |||
5717 | |||
5718 | if test "$GCC" = "yes" || test "$GCC" = "egcs"; then | ||
5719 | CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized" | ||
5720 | GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'` | ||
5721 | case $GCC_VER in | ||
5722 | 1.*) no_attrib_nonnull=1 ;; | ||
5723 | 2.8* | 2.9*) | ||
5724 | CFLAGS="$CFLAGS -Wsign-compare" | ||
5725 | no_attrib_nonnull=1 | ||
5726 | ;; | ||
5727 | 2.*) no_attrib_nonnull=1 ;; | ||
5728 | 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;; | ||
5729 | 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;; | ||
5730 | *) ;; | ||
5731 | esac | ||
5732 | |||
5733 | { $as_echo "$as_me:$LINENO: checking if $CC accepts -fno-builtin-memset" >&5 | ||
5734 | $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; } | ||
5735 | saved_CFLAGS="$CFLAGS" | ||
5736 | CFLAGS="$CFLAGS -fno-builtin-memset" | ||
5737 | cat >conftest.$ac_ext <<_ACEOF | ||
5738 | /* confdefs.h. */ | ||
5739 | _ACEOF | ||
5740 | cat confdefs.h >>conftest.$ac_ext | ||
5741 | cat >>conftest.$ac_ext <<_ACEOF | ||
5742 | /* end confdefs.h. */ | ||
5743 | |||
5744 | #include <string.h> | ||
5745 | int main(void){char b[10]; memset(b, 0, sizeof(b));} | ||
5746 | |||
5747 | _ACEOF | ||
5748 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5749 | if { (ac_try="$ac_link" | ||
5750 | case "(($ac_try" in | ||
5751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5752 | *) ac_try_echo=$ac_try;; | ||
5753 | esac | ||
5754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5755 | $as_echo "$ac_try_echo") >&5 | ||
5756 | (eval "$ac_link") 2>conftest.er1 | ||
5757 | ac_status=$? | ||
5758 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5759 | rm -f conftest.er1 | ||
5760 | cat conftest.err >&5 | ||
5761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5762 | (exit $ac_status); } && { | ||
5763 | test -z "$ac_c_werror_flag" || | ||
5764 | test ! -s conftest.err | ||
5765 | } && test -s conftest$ac_exeext && { | ||
5766 | test "$cross_compiling" = yes || | ||
5767 | $as_test_x conftest$ac_exeext | ||
5768 | }; then | ||
5769 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
5770 | $as_echo "yes" >&6; } | ||
5771 | else | ||
5772 | $as_echo "$as_me: failed program was:" >&5 | ||
5773 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5774 | |||
5775 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5776 | $as_echo "no" >&6; } | ||
5777 | CFLAGS="$saved_CFLAGS" | ||
5778 | |||
5779 | fi | ||
5780 | |||
5781 | rm -rf conftest.dSYM | ||
5782 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5783 | conftest$ac_exeext conftest.$ac_ext | ||
5784 | |||
5785 | # -fstack-protector-all doesn't always work for some GCC versions | ||
5786 | # and/or platforms, so we test if we can. If it's not supported | ||
5787 | # on a given platform gcc will emit a warning so we use -Werror. | ||
5788 | if test "x$use_stack_protector" = "x1"; then | ||
5789 | for t in -fstack-protector-all -fstack-protector; do | ||
5790 | { $as_echo "$as_me:$LINENO: checking if $CC supports $t" >&5 | ||
5791 | $as_echo_n "checking if $CC supports $t... " >&6; } | ||
5792 | saved_CFLAGS="$CFLAGS" | ||
5793 | saved_LDFLAGS="$LDFLAGS" | ||
5794 | CFLAGS="$CFLAGS $t -Werror" | ||
5795 | LDFLAGS="$LDFLAGS $t -Werror" | ||
5796 | cat >conftest.$ac_ext <<_ACEOF | ||
5797 | /* confdefs.h. */ | ||
5798 | _ACEOF | ||
5799 | cat confdefs.h >>conftest.$ac_ext | ||
5800 | cat >>conftest.$ac_ext <<_ACEOF | ||
5801 | /* end confdefs.h. */ | ||
5802 | |||
5803 | #include <stdio.h> | ||
5804 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5805 | |||
5806 | _ACEOF | ||
5807 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5808 | if { (ac_try="$ac_link" | ||
5809 | case "(($ac_try" in | ||
5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5811 | *) ac_try_echo=$ac_try;; | ||
5812 | esac | ||
5813 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5814 | $as_echo "$ac_try_echo") >&5 | ||
5815 | (eval "$ac_link") 2>conftest.er1 | ||
5816 | ac_status=$? | ||
5817 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5818 | rm -f conftest.er1 | ||
5819 | cat conftest.err >&5 | ||
5820 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5821 | (exit $ac_status); } && { | ||
5822 | test -z "$ac_c_werror_flag" || | ||
5823 | test ! -s conftest.err | ||
5824 | } && test -s conftest$ac_exeext && { | ||
5825 | test "$cross_compiling" = yes || | ||
5826 | $as_test_x conftest$ac_exeext | ||
5827 | }; then | ||
5828 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
5829 | $as_echo "yes" >&6; } | ||
5830 | CFLAGS="$saved_CFLAGS $t" | ||
5831 | LDFLAGS="$saved_LDFLAGS $t" | ||
5832 | { $as_echo "$as_me:$LINENO: checking if $t works" >&5 | ||
5833 | $as_echo_n "checking if $t works... " >&6; } | ||
5834 | if test "$cross_compiling" = yes; then | ||
5835 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: cannot test" >&5 | ||
5836 | $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;} | ||
5837 | break | ||
5838 | |||
5839 | else | ||
5840 | cat >conftest.$ac_ext <<_ACEOF | ||
5841 | /* confdefs.h. */ | ||
5842 | _ACEOF | ||
5843 | cat confdefs.h >>conftest.$ac_ext | ||
5844 | cat >>conftest.$ac_ext <<_ACEOF | ||
5845 | /* end confdefs.h. */ | ||
5846 | |||
5847 | #include <stdio.h> | ||
5848 | int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;} | ||
5849 | |||
5850 | _ACEOF | ||
5851 | rm -f conftest$ac_exeext | ||
5852 | if { (ac_try="$ac_link" | ||
5853 | case "(($ac_try" in | ||
5854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5855 | *) ac_try_echo=$ac_try;; | ||
5856 | esac | ||
5857 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5858 | $as_echo "$ac_try_echo") >&5 | ||
5859 | (eval "$ac_link") 2>&5 | ||
5860 | ac_status=$? | ||
5861 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
5863 | { (case "(($ac_try" in | ||
5864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5865 | *) ac_try_echo=$ac_try;; | ||
5866 | esac | ||
5867 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5868 | $as_echo "$ac_try_echo") >&5 | ||
5869 | (eval "$ac_try") 2>&5 | ||
5870 | ac_status=$? | ||
5871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5872 | (exit $ac_status); }; }; then | ||
5873 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
5874 | $as_echo "yes" >&6; } | ||
5875 | break | ||
5876 | else | ||
5877 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
5878 | $as_echo "$as_me: failed program was:" >&5 | ||
5879 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5880 | |||
5881 | ( exit $ac_status ) | ||
5882 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5883 | $as_echo "no" >&6; } | ||
5884 | fi | ||
5885 | rm -rf conftest.dSYM | ||
5886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
5887 | fi | ||
5888 | |||
5889 | |||
5890 | |||
5891 | else | ||
5892 | $as_echo "$as_me: failed program was:" >&5 | ||
5893 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5894 | |||
5895 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
5896 | $as_echo "no" >&6; } | ||
5897 | |||
5898 | fi | ||
5899 | |||
5900 | rm -rf conftest.dSYM | ||
5901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5902 | conftest$ac_exeext conftest.$ac_ext | ||
5903 | CFLAGS="$saved_CFLAGS" | ||
5904 | LDFLAGS="$saved_LDFLAGS" | ||
5905 | done | ||
5906 | fi | ||
5907 | |||
5908 | if test -z "$have_llong_max"; then | ||
5909 | # retry LLONG_MAX with -std=gnu99, needed on some Linuxes | ||
5910 | unset ac_cv_have_decl_LLONG_MAX | ||
5911 | saved_CFLAGS="$CFLAGS" | ||
5912 | CFLAGS="$CFLAGS -std=gnu99" | ||
5913 | { $as_echo "$as_me:$LINENO: checking whether LLONG_MAX is declared" >&5 | ||
5914 | $as_echo_n "checking whether LLONG_MAX is declared... " >&6; } | ||
5915 | if test "${ac_cv_have_decl_LLONG_MAX+set}" = set; then | ||
5916 | $as_echo_n "(cached) " >&6 | ||
5917 | else | ||
5918 | cat >conftest.$ac_ext <<_ACEOF | ||
5919 | /* confdefs.h. */ | ||
5920 | _ACEOF | ||
5921 | cat confdefs.h >>conftest.$ac_ext | ||
5922 | cat >>conftest.$ac_ext <<_ACEOF | ||
5923 | /* end confdefs.h. */ | ||
5924 | #include <limits.h> | ||
5925 | |||
5926 | |||
5927 | int | ||
5928 | main () | ||
5929 | { | ||
5930 | #ifndef LLONG_MAX | ||
5931 | (void) LLONG_MAX; | ||
5932 | #endif | ||
5933 | |||
5934 | ; | ||
5935 | return 0; | ||
5936 | } | ||
5937 | _ACEOF | ||
5938 | rm -f conftest.$ac_objext | ||
5939 | if { (ac_try="$ac_compile" | ||
5940 | case "(($ac_try" in | ||
5941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5942 | *) ac_try_echo=$ac_try;; | ||
5943 | esac | ||
5944 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
5945 | $as_echo "$ac_try_echo") >&5 | ||
5946 | (eval "$ac_compile") 2>conftest.er1 | ||
5947 | ac_status=$? | ||
5948 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5949 | rm -f conftest.er1 | ||
5950 | cat conftest.err >&5 | ||
5951 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5952 | (exit $ac_status); } && { | ||
5953 | test -z "$ac_c_werror_flag" || | ||
5954 | test ! -s conftest.err | ||
5955 | } && test -s conftest.$ac_objext; then | ||
5956 | ac_cv_have_decl_LLONG_MAX=yes | ||
5957 | else | ||
5958 | $as_echo "$as_me: failed program was:" >&5 | ||
5959 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5960 | |||
5961 | ac_cv_have_decl_LLONG_MAX=no | ||
5962 | fi | ||
5963 | |||
5964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5965 | fi | ||
5966 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_LLONG_MAX" >&5 | ||
5967 | $as_echo "$ac_cv_have_decl_LLONG_MAX" >&6; } | ||
5968 | if test $ac_cv_have_decl_LLONG_MAX = yes; then | ||
5969 | have_llong_max=1 | ||
5970 | else | ||
5971 | CFLAGS="$saved_CFLAGS" | ||
5972 | fi | ||
5973 | |||
5974 | fi | ||
5975 | fi | ||
5976 | |||
5977 | if test "x$no_attrib_nonnull" != "x1" ; then | ||
5978 | |||
5979 | cat >>confdefs.h <<\_ACEOF | ||
5980 | #define HAVE_ATTRIBUTE__NONNULL__ 1 | ||
5981 | _ACEOF | ||
5982 | |||
5983 | fi | ||
5984 | |||
5985 | |||
5986 | # Check whether --with-rpath was given. | ||
5987 | if test "${with_rpath+set}" = set; then | ||
5988 | withval=$with_rpath; | ||
5989 | if test "x$withval" = "xno" ; then | ||
5990 | need_dash_r="" | ||
5991 | fi | ||
5992 | if test "x$withval" = "xyes" ; then | ||
5993 | need_dash_r=1 | ||
5994 | fi | ||
5995 | |||
5996 | |||
5997 | fi | ||
5998 | |||
5999 | |||
6000 | # Allow user to specify flags | ||
6001 | |||
6002 | # Check whether --with-cflags was given. | ||
6003 | if test "${with_cflags+set}" = set; then | ||
6004 | withval=$with_cflags; | ||
6005 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6006 | test "x${withval}" != "xyes"; then | ||
6007 | CFLAGS="$CFLAGS $withval" | ||
6008 | fi | ||
6009 | |||
6010 | |||
6011 | fi | ||
6012 | |||
6013 | |||
6014 | # Check whether --with-cppflags was given. | ||
6015 | if test "${with_cppflags+set}" = set; then | ||
6016 | withval=$with_cppflags; | ||
6017 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6018 | test "x${withval}" != "xyes"; then | ||
6019 | CPPFLAGS="$CPPFLAGS $withval" | ||
6020 | fi | ||
6021 | |||
6022 | |||
6023 | fi | ||
6024 | |||
6025 | |||
6026 | # Check whether --with-ldflags was given. | ||
6027 | if test "${with_ldflags+set}" = set; then | ||
6028 | withval=$with_ldflags; | ||
6029 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6030 | test "x${withval}" != "xyes"; then | ||
6031 | LDFLAGS="$LDFLAGS $withval" | ||
6032 | fi | ||
6033 | |||
6034 | |||
6035 | fi | ||
6036 | |||
6037 | |||
6038 | # Check whether --with-libs was given. | ||
6039 | if test "${with_libs+set}" = set; then | ||
6040 | withval=$with_libs; | ||
6041 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
6042 | test "x${withval}" != "xyes"; then | ||
6043 | LIBS="$LIBS $withval" | ||
6044 | fi | ||
6045 | |||
6046 | |||
6047 | fi | ||
6048 | |||
6049 | |||
6050 | # Check whether --with-Werror was given. | ||
6051 | if test "${with_Werror+set}" = set; then | ||
6052 | withval=$with_Werror; | ||
6053 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
6054 | werror_flags="-Werror" | ||
6055 | if test "x${withval}" != "xyes"; then | ||
6056 | werror_flags="$withval" | ||
6057 | fi | ||
6058 | fi | ||
6059 | |||
6060 | |||
6061 | fi | ||
6062 | |||
6063 | |||
6064 | |||
6065 | |||
6066 | |||
6067 | |||
6068 | |||
6069 | |||
6070 | |||
6071 | |||
6072 | |||
6073 | |||
6074 | |||
6075 | |||
6076 | |||
6077 | |||
6078 | |||
6079 | |||
6080 | |||
6081 | |||
6082 | |||
6083 | |||
6084 | |||
6085 | |||
6086 | |||
6087 | |||
6088 | |||
6089 | |||
6090 | |||
6091 | |||
6092 | |||
6093 | |||
6094 | |||
6095 | |||
6096 | |||
6097 | |||
6098 | |||
6099 | |||
6100 | |||
6101 | |||
6102 | |||
6103 | |||
6104 | |||
6105 | |||
6106 | |||
6107 | |||
6108 | |||
6109 | |||
6110 | |||
6111 | |||
6112 | |||
6113 | |||
6114 | |||
6115 | |||
6116 | |||
6117 | |||
6118 | |||
6119 | |||
6120 | |||
6121 | |||
6122 | |||
6123 | |||
6124 | |||
6125 | |||
6126 | |||
6127 | for ac_header in \ | ||
6128 | bstring.h \ | ||
6129 | crypt.h \ | ||
6130 | crypto/sha2.h \ | ||
6131 | dirent.h \ | ||
6132 | endian.h \ | ||
6133 | features.h \ | ||
6134 | fcntl.h \ | ||
6135 | floatingpoint.h \ | ||
6136 | getopt.h \ | ||
6137 | glob.h \ | ||
6138 | ia.h \ | ||
6139 | iaf.h \ | ||
6140 | limits.h \ | ||
6141 | login.h \ | ||
6142 | maillock.h \ | ||
6143 | ndir.h \ | ||
6144 | net/if_tun.h \ | ||
6145 | netdb.h \ | ||
6146 | netgroup.h \ | ||
6147 | pam/pam_appl.h \ | ||
6148 | paths.h \ | ||
6149 | poll.h \ | ||
6150 | pty.h \ | ||
6151 | readpassphrase.h \ | ||
6152 | rpc/types.h \ | ||
6153 | security/pam_appl.h \ | ||
6154 | sha2.h \ | ||
6155 | shadow.h \ | ||
6156 | stddef.h \ | ||
6157 | stdint.h \ | ||
6158 | string.h \ | ||
6159 | strings.h \ | ||
6160 | sys/audit.h \ | ||
6161 | sys/bitypes.h \ | ||
6162 | sys/bsdtty.h \ | ||
6163 | sys/cdefs.h \ | ||
6164 | sys/dir.h \ | ||
6165 | sys/mman.h \ | ||
6166 | sys/ndir.h \ | ||
6167 | sys/poll.h \ | ||
6168 | sys/prctl.h \ | ||
6169 | sys/pstat.h \ | ||
6170 | sys/select.h \ | ||
6171 | sys/stat.h \ | ||
6172 | sys/stream.h \ | ||
6173 | sys/stropts.h \ | ||
6174 | sys/strtio.h \ | ||
6175 | sys/statvfs.h \ | ||
6176 | sys/sysmacros.h \ | ||
6177 | sys/time.h \ | ||
6178 | sys/timers.h \ | ||
6179 | sys/un.h \ | ||
6180 | time.h \ | ||
6181 | tmpdir.h \ | ||
6182 | ttyent.h \ | ||
6183 | ucred.h \ | ||
6184 | unistd.h \ | ||
6185 | usersec.h \ | ||
6186 | util.h \ | ||
6187 | utime.h \ | ||
6188 | utmp.h \ | ||
6189 | utmpx.h \ | ||
6190 | vis.h \ | ||
6191 | |||
6192 | do | ||
6193 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6195 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6196 | $as_echo_n "checking for $ac_header... " >&6; } | ||
6197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6198 | $as_echo_n "(cached) " >&6 | ||
6199 | fi | ||
6200 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
6201 | $as_echo "$as_val"'` | ||
6202 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6203 | $as_echo "$ac_res" >&6; } | ||
6204 | else | ||
6205 | # Is the header compilable? | ||
6206 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
6207 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
6208 | cat >conftest.$ac_ext <<_ACEOF | ||
6209 | /* confdefs.h. */ | ||
6210 | _ACEOF | ||
6211 | cat confdefs.h >>conftest.$ac_ext | ||
6212 | cat >>conftest.$ac_ext <<_ACEOF | ||
6213 | /* end confdefs.h. */ | ||
6214 | $ac_includes_default | ||
6215 | #include <$ac_header> | ||
6216 | _ACEOF | ||
6217 | rm -f conftest.$ac_objext | ||
6218 | if { (ac_try="$ac_compile" | ||
6219 | case "(($ac_try" in | ||
6220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6221 | *) ac_try_echo=$ac_try;; | ||
6222 | esac | ||
6223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6224 | $as_echo "$ac_try_echo") >&5 | ||
6225 | (eval "$ac_compile") 2>conftest.er1 | ||
6226 | ac_status=$? | ||
6227 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6228 | rm -f conftest.er1 | ||
6229 | cat conftest.err >&5 | ||
6230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6231 | (exit $ac_status); } && { | ||
6232 | test -z "$ac_c_werror_flag" || | ||
6233 | test ! -s conftest.err | ||
6234 | } && test -s conftest.$ac_objext; then | ||
6235 | ac_header_compiler=yes | ||
6236 | else | ||
6237 | $as_echo "$as_me: failed program was:" >&5 | ||
6238 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6239 | |||
6240 | ac_header_compiler=no | ||
6241 | fi | ||
6242 | |||
6243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6244 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
6245 | $as_echo "$ac_header_compiler" >&6; } | ||
6246 | |||
6247 | # Is the header present? | ||
6248 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
6249 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
6250 | cat >conftest.$ac_ext <<_ACEOF | ||
6251 | /* confdefs.h. */ | ||
6252 | _ACEOF | ||
6253 | cat confdefs.h >>conftest.$ac_ext | ||
6254 | cat >>conftest.$ac_ext <<_ACEOF | ||
6255 | /* end confdefs.h. */ | ||
6256 | #include <$ac_header> | ||
6257 | _ACEOF | ||
6258 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6259 | case "(($ac_try" in | ||
6260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6261 | *) ac_try_echo=$ac_try;; | ||
6262 | esac | ||
6263 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6264 | $as_echo "$ac_try_echo") >&5 | ||
6265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6266 | ac_status=$? | ||
6267 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6268 | rm -f conftest.er1 | ||
6269 | cat conftest.err >&5 | ||
6270 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6271 | (exit $ac_status); } >/dev/null && { | ||
6272 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
6273 | test ! -s conftest.err | ||
6274 | }; then | ||
6275 | ac_header_preproc=yes | ||
6276 | else | ||
6277 | $as_echo "$as_me: failed program was:" >&5 | ||
6278 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6279 | |||
6280 | ac_header_preproc=no | ||
6281 | fi | ||
6282 | |||
6283 | rm -f conftest.err conftest.$ac_ext | ||
6284 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
6285 | $as_echo "$ac_header_preproc" >&6; } | ||
6286 | |||
6287 | # So? What about this header? | ||
6288 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
6289 | yes:no: ) | ||
6290 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
6291 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
6292 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
6293 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
6294 | ac_header_preproc=yes | ||
6295 | ;; | ||
6296 | no:yes:* ) | ||
6297 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
6298 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
6299 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
6300 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
6301 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
6302 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
6303 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
6304 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
6305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
6306 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
6307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
6308 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
6309 | ( cat <<\_ASBOX | ||
6310 | ## ------------------------------------------- ## | ||
6311 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
6312 | ## ------------------------------------------- ## | ||
6313 | _ASBOX | ||
6314 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
6315 | ;; | ||
6316 | esac | ||
6317 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6318 | $as_echo_n "checking for $ac_header... " >&6; } | ||
6319 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6320 | $as_echo_n "(cached) " >&6 | ||
6321 | else | ||
6322 | eval "$as_ac_Header=\$ac_header_preproc" | ||
6323 | fi | ||
6324 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
6325 | $as_echo "$as_val"'` | ||
6326 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6327 | $as_echo "$ac_res" >&6; } | ||
6328 | |||
6329 | fi | ||
6330 | if test `eval 'as_val=${'$as_ac_Header'} | ||
6331 | $as_echo "$as_val"'` = yes; then | ||
6332 | cat >>confdefs.h <<_ACEOF | ||
6333 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6334 | _ACEOF | ||
6335 | |||
6336 | fi | ||
6337 | |||
6338 | done | ||
6339 | |||
6340 | |||
6341 | # lastlog.h requires sys/time.h to be included first on Solaris | ||
6342 | |||
6343 | for ac_header in lastlog.h | ||
6344 | do | ||
6345 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6346 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6347 | $as_echo_n "checking for $ac_header... " >&6; } | ||
6348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6349 | $as_echo_n "(cached) " >&6 | ||
6350 | else | ||
6351 | cat >conftest.$ac_ext <<_ACEOF | ||
6352 | /* confdefs.h. */ | ||
6353 | _ACEOF | ||
6354 | cat confdefs.h >>conftest.$ac_ext | ||
6355 | cat >>conftest.$ac_ext <<_ACEOF | ||
6356 | /* end confdefs.h. */ | ||
6357 | |||
6358 | #ifdef HAVE_SYS_TIME_H | ||
6359 | # include <sys/time.h> | ||
6360 | #endif | ||
6361 | |||
6362 | |||
6363 | #include <$ac_header> | ||
6364 | _ACEOF | ||
6365 | rm -f conftest.$ac_objext | ||
6366 | if { (ac_try="$ac_compile" | ||
6367 | case "(($ac_try" in | ||
6368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6369 | *) ac_try_echo=$ac_try;; | ||
6370 | esac | ||
6371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6372 | $as_echo "$ac_try_echo") >&5 | ||
6373 | (eval "$ac_compile") 2>conftest.er1 | ||
6374 | ac_status=$? | ||
6375 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6376 | rm -f conftest.er1 | ||
6377 | cat conftest.err >&5 | ||
6378 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6379 | (exit $ac_status); } && { | ||
6380 | test -z "$ac_c_werror_flag" || | ||
6381 | test ! -s conftest.err | ||
6382 | } && test -s conftest.$ac_objext; then | ||
6383 | eval "$as_ac_Header=yes" | ||
6384 | else | ||
6385 | $as_echo "$as_me: failed program was:" >&5 | ||
6386 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6387 | |||
6388 | eval "$as_ac_Header=no" | ||
6389 | fi | ||
6390 | |||
6391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6392 | fi | ||
6393 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
6394 | $as_echo "$as_val"'` | ||
6395 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6396 | $as_echo "$ac_res" >&6; } | ||
6397 | if test `eval 'as_val=${'$as_ac_Header'} | ||
6398 | $as_echo "$as_val"'` = yes; then | ||
6399 | cat >>confdefs.h <<_ACEOF | ||
6400 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6401 | _ACEOF | ||
6402 | |||
6403 | fi | ||
6404 | |||
6405 | done | ||
6406 | |||
6407 | |||
6408 | # sys/ptms.h requires sys/stream.h to be included first on Solaris | ||
6409 | |||
6410 | for ac_header in sys/ptms.h | ||
6411 | do | ||
6412 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6413 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6414 | $as_echo_n "checking for $ac_header... " >&6; } | ||
6415 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6416 | $as_echo_n "(cached) " >&6 | ||
6417 | else | ||
6418 | cat >conftest.$ac_ext <<_ACEOF | ||
6419 | /* confdefs.h. */ | ||
6420 | _ACEOF | ||
6421 | cat confdefs.h >>conftest.$ac_ext | ||
6422 | cat >>conftest.$ac_ext <<_ACEOF | ||
6423 | /* end confdefs.h. */ | ||
6424 | |||
6425 | #ifdef HAVE_SYS_STREAM_H | ||
6426 | # include <sys/stream.h> | ||
6427 | #endif | ||
6428 | |||
6429 | |||
6430 | #include <$ac_header> | ||
6431 | _ACEOF | ||
6432 | rm -f conftest.$ac_objext | ||
6433 | if { (ac_try="$ac_compile" | ||
6434 | case "(($ac_try" in | ||
6435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6436 | *) ac_try_echo=$ac_try;; | ||
6437 | esac | ||
6438 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6439 | $as_echo "$ac_try_echo") >&5 | ||
6440 | (eval "$ac_compile") 2>conftest.er1 | ||
6441 | ac_status=$? | ||
6442 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6443 | rm -f conftest.er1 | ||
6444 | cat conftest.err >&5 | ||
6445 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6446 | (exit $ac_status); } && { | ||
6447 | test -z "$ac_c_werror_flag" || | ||
6448 | test ! -s conftest.err | ||
6449 | } && test -s conftest.$ac_objext; then | ||
6450 | eval "$as_ac_Header=yes" | ||
6451 | else | ||
6452 | $as_echo "$as_me: failed program was:" >&5 | ||
6453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6454 | |||
6455 | eval "$as_ac_Header=no" | ||
6456 | fi | ||
6457 | |||
6458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6459 | fi | ||
6460 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
6461 | $as_echo "$as_val"'` | ||
6462 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6463 | $as_echo "$ac_res" >&6; } | ||
6464 | if test `eval 'as_val=${'$as_ac_Header'} | ||
6465 | $as_echo "$as_val"'` = yes; then | ||
6466 | cat >>confdefs.h <<_ACEOF | ||
6467 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6468 | _ACEOF | ||
6469 | |||
6470 | fi | ||
6471 | |||
6472 | done | ||
6473 | |||
6474 | |||
6475 | # login_cap.h requires sys/types.h on NetBSD | ||
6476 | |||
6477 | for ac_header in login_cap.h | ||
6478 | do | ||
6479 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6480 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6481 | $as_echo_n "checking for $ac_header... " >&6; } | ||
6482 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6483 | $as_echo_n "(cached) " >&6 | ||
6484 | else | ||
6485 | cat >conftest.$ac_ext <<_ACEOF | ||
6486 | /* confdefs.h. */ | ||
6487 | _ACEOF | ||
6488 | cat confdefs.h >>conftest.$ac_ext | ||
6489 | cat >>conftest.$ac_ext <<_ACEOF | ||
6490 | /* end confdefs.h. */ | ||
6491 | |||
6492 | #include <sys/types.h> | ||
6493 | |||
6494 | |||
6495 | #include <$ac_header> | ||
6496 | _ACEOF | ||
6497 | rm -f conftest.$ac_objext | ||
6498 | if { (ac_try="$ac_compile" | ||
6499 | case "(($ac_try" in | ||
6500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6501 | *) ac_try_echo=$ac_try;; | ||
6502 | esac | ||
6503 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6504 | $as_echo "$ac_try_echo") >&5 | ||
6505 | (eval "$ac_compile") 2>conftest.er1 | ||
6506 | ac_status=$? | ||
6507 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6508 | rm -f conftest.er1 | ||
6509 | cat conftest.err >&5 | ||
6510 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6511 | (exit $ac_status); } && { | ||
6512 | test -z "$ac_c_werror_flag" || | ||
6513 | test ! -s conftest.err | ||
6514 | } && test -s conftest.$ac_objext; then | ||
6515 | eval "$as_ac_Header=yes" | ||
6516 | else | ||
6517 | $as_echo "$as_me: failed program was:" >&5 | ||
6518 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6519 | |||
6520 | eval "$as_ac_Header=no" | ||
6521 | fi | ||
6522 | |||
6523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6524 | fi | ||
6525 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
6526 | $as_echo "$as_val"'` | ||
6527 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6528 | $as_echo "$ac_res" >&6; } | ||
6529 | if test `eval 'as_val=${'$as_ac_Header'} | ||
6530 | $as_echo "$as_val"'` = yes; then | ||
6531 | cat >>confdefs.h <<_ACEOF | ||
6532 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6533 | _ACEOF | ||
6534 | |||
6535 | fi | ||
6536 | |||
6537 | done | ||
6538 | |||
6539 | |||
6540 | # older BSDs need sys/param.h before sys/mount.h | ||
6541 | |||
6542 | for ac_header in sys/mount.h | ||
6543 | do | ||
6544 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
6545 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
6546 | $as_echo_n "checking for $ac_header... " >&6; } | ||
6547 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
6548 | $as_echo_n "(cached) " >&6 | ||
6549 | else | ||
6550 | cat >conftest.$ac_ext <<_ACEOF | ||
6551 | /* confdefs.h. */ | ||
6552 | _ACEOF | ||
6553 | cat confdefs.h >>conftest.$ac_ext | ||
6554 | cat >>conftest.$ac_ext <<_ACEOF | ||
6555 | /* end confdefs.h. */ | ||
6556 | |||
6557 | #include <sys/param.h> | ||
6558 | |||
6559 | |||
6560 | #include <$ac_header> | ||
6561 | _ACEOF | ||
6562 | rm -f conftest.$ac_objext | ||
6563 | if { (ac_try="$ac_compile" | ||
6564 | case "(($ac_try" in | ||
6565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6566 | *) ac_try_echo=$ac_try;; | ||
6567 | esac | ||
6568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6569 | $as_echo "$ac_try_echo") >&5 | ||
6570 | (eval "$ac_compile") 2>conftest.er1 | ||
6571 | ac_status=$? | ||
6572 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6573 | rm -f conftest.er1 | ||
6574 | cat conftest.err >&5 | ||
6575 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6576 | (exit $ac_status); } && { | ||
6577 | test -z "$ac_c_werror_flag" || | ||
6578 | test ! -s conftest.err | ||
6579 | } && test -s conftest.$ac_objext; then | ||
6580 | eval "$as_ac_Header=yes" | ||
6581 | else | ||
6582 | $as_echo "$as_me: failed program was:" >&5 | ||
6583 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6584 | |||
6585 | eval "$as_ac_Header=no" | ||
6586 | fi | ||
6587 | |||
6588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6589 | fi | ||
6590 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
6591 | $as_echo "$as_val"'` | ||
6592 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
6593 | $as_echo "$ac_res" >&6; } | ||
6594 | if test `eval 'as_val=${'$as_ac_Header'} | ||
6595 | $as_echo "$as_val"'` = yes; then | ||
6596 | cat >>confdefs.h <<_ACEOF | ||
6597 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
6598 | _ACEOF | ||
6599 | |||
6600 | fi | ||
6601 | |||
6602 | done | ||
6603 | |||
6604 | |||
6605 | # Messages for features tested for in target-specific section | ||
6606 | SIA_MSG="no" | ||
6607 | SPC_MSG="no" | ||
6608 | |||
6609 | # Check for some target-specific stuff | ||
6610 | case "$host" in | ||
6611 | *-*-aix*) | ||
6612 | # Some versions of VAC won't allow macro redefinitions at | ||
6613 | # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that | ||
6614 | # particularly with older versions of vac or xlc. | ||
6615 | # It also throws errors about null macro argments, but these are | ||
6616 | # not fatal. | ||
6617 | { $as_echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5 | ||
6618 | $as_echo_n "checking if compiler allows macro redefinitions... " >&6; } | ||
6619 | cat >conftest.$ac_ext <<_ACEOF | ||
6620 | /* confdefs.h. */ | ||
6621 | _ACEOF | ||
6622 | cat confdefs.h >>conftest.$ac_ext | ||
6623 | cat >>conftest.$ac_ext <<_ACEOF | ||
6624 | /* end confdefs.h. */ | ||
6625 | |||
6626 | #define testmacro foo | ||
6627 | #define testmacro bar | ||
6628 | int main(void) { exit(0); } | ||
6629 | |||
6630 | _ACEOF | ||
6631 | rm -f conftest.$ac_objext | ||
6632 | if { (ac_try="$ac_compile" | ||
6633 | case "(($ac_try" in | ||
6634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6635 | *) ac_try_echo=$ac_try;; | ||
6636 | esac | ||
6637 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6638 | $as_echo "$ac_try_echo") >&5 | ||
6639 | (eval "$ac_compile") 2>conftest.er1 | ||
6640 | ac_status=$? | ||
6641 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6642 | rm -f conftest.er1 | ||
6643 | cat conftest.err >&5 | ||
6644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6645 | (exit $ac_status); } && { | ||
6646 | test -z "$ac_c_werror_flag" || | ||
6647 | test ! -s conftest.err | ||
6648 | } && test -s conftest.$ac_objext; then | ||
6649 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
6650 | $as_echo "yes" >&6; } | ||
6651 | else | ||
6652 | $as_echo "$as_me: failed program was:" >&5 | ||
6653 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6654 | |||
6655 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
6656 | $as_echo "no" >&6; } | ||
6657 | CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`" | ||
6658 | LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`" | ||
6659 | CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6660 | CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`" | ||
6661 | |||
6662 | |||
6663 | fi | ||
6664 | |||
6665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6666 | |||
6667 | { $as_echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 | ||
6668 | $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; } | ||
6669 | if (test -z "$blibpath"); then | ||
6670 | blibpath="/usr/lib:/lib" | ||
6671 | fi | ||
6672 | saved_LDFLAGS="$LDFLAGS" | ||
6673 | if test "$GCC" = "yes"; then | ||
6674 | flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:" | ||
6675 | else | ||
6676 | flags="-blibpath: -Wl,-blibpath: -Wl,-rpath," | ||
6677 | fi | ||
6678 | for tryflags in $flags ;do | ||
6679 | if (test -z "$blibflags"); then | ||
6680 | LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" | ||
6681 | cat >conftest.$ac_ext <<_ACEOF | ||
6682 | /* confdefs.h. */ | ||
6683 | _ACEOF | ||
6684 | cat confdefs.h >>conftest.$ac_ext | ||
6685 | cat >>conftest.$ac_ext <<_ACEOF | ||
6686 | /* end confdefs.h. */ | ||
6687 | |||
6688 | int | ||
6689 | main () | ||
6690 | { | ||
6691 | |||
6692 | ; | ||
6693 | return 0; | ||
6694 | } | ||
6695 | _ACEOF | ||
6696 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6697 | if { (ac_try="$ac_link" | ||
6698 | case "(($ac_try" in | ||
6699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6700 | *) ac_try_echo=$ac_try;; | ||
6701 | esac | ||
6702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6703 | $as_echo "$ac_try_echo") >&5 | ||
6704 | (eval "$ac_link") 2>conftest.er1 | ||
6705 | ac_status=$? | ||
6706 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6707 | rm -f conftest.er1 | ||
6708 | cat conftest.err >&5 | ||
6709 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6710 | (exit $ac_status); } && { | ||
6711 | test -z "$ac_c_werror_flag" || | ||
6712 | test ! -s conftest.err | ||
6713 | } && test -s conftest$ac_exeext && { | ||
6714 | test "$cross_compiling" = yes || | ||
6715 | $as_test_x conftest$ac_exeext | ||
6716 | }; then | ||
6717 | blibflags=$tryflags | ||
6718 | else | ||
6719 | $as_echo "$as_me: failed program was:" >&5 | ||
6720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6721 | |||
6722 | |||
6723 | fi | ||
6724 | |||
6725 | rm -rf conftest.dSYM | ||
6726 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6727 | conftest$ac_exeext conftest.$ac_ext | ||
6728 | fi | ||
6729 | done | ||
6730 | if (test -z "$blibflags"); then | ||
6731 | { $as_echo "$as_me:$LINENO: result: not found" >&5 | ||
6732 | $as_echo "not found" >&6; } | ||
6733 | { { $as_echo "$as_me:$LINENO: error: *** must be able to specify blibpath on AIX - check config.log" >&5 | ||
6734 | $as_echo "$as_me: error: *** must be able to specify blibpath on AIX - check config.log" >&2;} | ||
6735 | { (exit 1); exit 1; }; } | ||
6736 | else | ||
6737 | { $as_echo "$as_me:$LINENO: result: $blibflags" >&5 | ||
6738 | $as_echo "$blibflags" >&6; } | ||
6739 | fi | ||
6740 | LDFLAGS="$saved_LDFLAGS" | ||
6741 | { $as_echo "$as_me:$LINENO: checking for authenticate" >&5 | ||
6742 | $as_echo_n "checking for authenticate... " >&6; } | ||
6743 | if test "${ac_cv_func_authenticate+set}" = set; then | ||
6744 | $as_echo_n "(cached) " >&6 | ||
6745 | else | ||
6746 | cat >conftest.$ac_ext <<_ACEOF | ||
6747 | /* confdefs.h. */ | ||
6748 | _ACEOF | ||
6749 | cat confdefs.h >>conftest.$ac_ext | ||
6750 | cat >>conftest.$ac_ext <<_ACEOF | ||
6751 | /* end confdefs.h. */ | ||
6752 | /* Define authenticate to an innocuous variant, in case <limits.h> declares authenticate. | ||
6753 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
6754 | #define authenticate innocuous_authenticate | ||
6755 | |||
6756 | /* System header to define __stub macros and hopefully few prototypes, | ||
6757 | which can conflict with char authenticate (); below. | ||
6758 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6759 | <limits.h> exists even on freestanding compilers. */ | ||
6760 | |||
6761 | #ifdef __STDC__ | ||
6762 | # include <limits.h> | ||
6763 | #else | ||
6764 | # include <assert.h> | ||
6765 | #endif | ||
6766 | |||
6767 | #undef authenticate | ||
6768 | |||
6769 | /* Override any GCC internal prototype to avoid an error. | ||
6770 | Use char because int might match the return type of a GCC | ||
6771 | builtin and then its argument prototype would still apply. */ | ||
6772 | #ifdef __cplusplus | ||
6773 | extern "C" | ||
6774 | #endif | ||
6775 | char authenticate (); | ||
6776 | /* The GNU C library defines this for functions which it implements | ||
6777 | to always fail with ENOSYS. Some functions are actually named | ||
6778 | something starting with __ and the normal name is an alias. */ | ||
6779 | #if defined __stub_authenticate || defined __stub___authenticate | ||
6780 | choke me | ||
6781 | #endif | ||
6782 | |||
6783 | int | ||
6784 | main () | ||
6785 | { | ||
6786 | return authenticate (); | ||
6787 | ; | ||
6788 | return 0; | ||
6789 | } | ||
6790 | _ACEOF | ||
6791 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6792 | if { (ac_try="$ac_link" | ||
6793 | case "(($ac_try" in | ||
6794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6795 | *) ac_try_echo=$ac_try;; | ||
6796 | esac | ||
6797 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6798 | $as_echo "$ac_try_echo") >&5 | ||
6799 | (eval "$ac_link") 2>conftest.er1 | ||
6800 | ac_status=$? | ||
6801 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6802 | rm -f conftest.er1 | ||
6803 | cat conftest.err >&5 | ||
6804 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6805 | (exit $ac_status); } && { | ||
6806 | test -z "$ac_c_werror_flag" || | ||
6807 | test ! -s conftest.err | ||
6808 | } && test -s conftest$ac_exeext && { | ||
6809 | test "$cross_compiling" = yes || | ||
6810 | $as_test_x conftest$ac_exeext | ||
6811 | }; then | ||
6812 | ac_cv_func_authenticate=yes | ||
6813 | else | ||
6814 | $as_echo "$as_me: failed program was:" >&5 | ||
6815 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6816 | |||
6817 | ac_cv_func_authenticate=no | ||
6818 | fi | ||
6819 | |||
6820 | rm -rf conftest.dSYM | ||
6821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6822 | conftest$ac_exeext conftest.$ac_ext | ||
6823 | fi | ||
6824 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_authenticate" >&5 | ||
6825 | $as_echo "$ac_cv_func_authenticate" >&6; } | ||
6826 | if test $ac_cv_func_authenticate = yes; then | ||
6827 | |||
6828 | cat >>confdefs.h <<\_ACEOF | ||
6829 | #define WITH_AIXAUTHENTICATE 1 | ||
6830 | _ACEOF | ||
6831 | |||
6832 | else | ||
6833 | { $as_echo "$as_me:$LINENO: checking for authenticate in -ls" >&5 | ||
6834 | $as_echo_n "checking for authenticate in -ls... " >&6; } | ||
6835 | if test "${ac_cv_lib_s_authenticate+set}" = set; then | ||
6836 | $as_echo_n "(cached) " >&6 | ||
6837 | else | ||
6838 | ac_check_lib_save_LIBS=$LIBS | ||
6839 | LIBS="-ls $LIBS" | ||
6840 | cat >conftest.$ac_ext <<_ACEOF | ||
6841 | /* confdefs.h. */ | ||
6842 | _ACEOF | ||
6843 | cat confdefs.h >>conftest.$ac_ext | ||
6844 | cat >>conftest.$ac_ext <<_ACEOF | ||
6845 | /* end confdefs.h. */ | ||
6846 | |||
6847 | /* Override any GCC internal prototype to avoid an error. | ||
6848 | Use char because int might match the return type of a GCC | ||
6849 | builtin and then its argument prototype would still apply. */ | ||
6850 | #ifdef __cplusplus | ||
6851 | extern "C" | ||
6852 | #endif | ||
6853 | char authenticate (); | ||
6854 | int | ||
6855 | main () | ||
6856 | { | ||
6857 | return authenticate (); | ||
6858 | ; | ||
6859 | return 0; | ||
6860 | } | ||
6861 | _ACEOF | ||
6862 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
6863 | if { (ac_try="$ac_link" | ||
6864 | case "(($ac_try" in | ||
6865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6866 | *) ac_try_echo=$ac_try;; | ||
6867 | esac | ||
6868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6869 | $as_echo "$ac_try_echo") >&5 | ||
6870 | (eval "$ac_link") 2>conftest.er1 | ||
6871 | ac_status=$? | ||
6872 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6873 | rm -f conftest.er1 | ||
6874 | cat conftest.err >&5 | ||
6875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6876 | (exit $ac_status); } && { | ||
6877 | test -z "$ac_c_werror_flag" || | ||
6878 | test ! -s conftest.err | ||
6879 | } && test -s conftest$ac_exeext && { | ||
6880 | test "$cross_compiling" = yes || | ||
6881 | $as_test_x conftest$ac_exeext | ||
6882 | }; then | ||
6883 | ac_cv_lib_s_authenticate=yes | ||
6884 | else | ||
6885 | $as_echo "$as_me: failed program was:" >&5 | ||
6886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6887 | |||
6888 | ac_cv_lib_s_authenticate=no | ||
6889 | fi | ||
6890 | |||
6891 | rm -rf conftest.dSYM | ||
6892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
6893 | conftest$ac_exeext conftest.$ac_ext | ||
6894 | LIBS=$ac_check_lib_save_LIBS | ||
6895 | fi | ||
6896 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_s_authenticate" >&5 | ||
6897 | $as_echo "$ac_cv_lib_s_authenticate" >&6; } | ||
6898 | if test $ac_cv_lib_s_authenticate = yes; then | ||
6899 | cat >>confdefs.h <<\_ACEOF | ||
6900 | #define WITH_AIXAUTHENTICATE 1 | ||
6901 | _ACEOF | ||
6902 | |||
6903 | LIBS="$LIBS -ls" | ||
6904 | |||
6905 | fi | ||
6906 | |||
6907 | |||
6908 | fi | ||
6909 | |||
6910 | { $as_echo "$as_me:$LINENO: checking whether authenticate is declared" >&5 | ||
6911 | $as_echo_n "checking whether authenticate is declared... " >&6; } | ||
6912 | if test "${ac_cv_have_decl_authenticate+set}" = set; then | ||
6913 | $as_echo_n "(cached) " >&6 | ||
6914 | else | ||
6915 | cat >conftest.$ac_ext <<_ACEOF | ||
6916 | /* confdefs.h. */ | ||
6917 | _ACEOF | ||
6918 | cat confdefs.h >>conftest.$ac_ext | ||
6919 | cat >>conftest.$ac_ext <<_ACEOF | ||
6920 | /* end confdefs.h. */ | ||
6921 | #include <usersec.h> | ||
6922 | |||
6923 | int | ||
6924 | main () | ||
6925 | { | ||
6926 | #ifndef authenticate | ||
6927 | (void) authenticate; | ||
6928 | #endif | ||
6929 | |||
6930 | ; | ||
6931 | return 0; | ||
6932 | } | ||
6933 | _ACEOF | ||
6934 | rm -f conftest.$ac_objext | ||
6935 | if { (ac_try="$ac_compile" | ||
6936 | case "(($ac_try" in | ||
6937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6938 | *) ac_try_echo=$ac_try;; | ||
6939 | esac | ||
6940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
6941 | $as_echo "$ac_try_echo") >&5 | ||
6942 | (eval "$ac_compile") 2>conftest.er1 | ||
6943 | ac_status=$? | ||
6944 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6945 | rm -f conftest.er1 | ||
6946 | cat conftest.err >&5 | ||
6947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6948 | (exit $ac_status); } && { | ||
6949 | test -z "$ac_c_werror_flag" || | ||
6950 | test ! -s conftest.err | ||
6951 | } && test -s conftest.$ac_objext; then | ||
6952 | ac_cv_have_decl_authenticate=yes | ||
6953 | else | ||
6954 | $as_echo "$as_me: failed program was:" >&5 | ||
6955 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6956 | |||
6957 | ac_cv_have_decl_authenticate=no | ||
6958 | fi | ||
6959 | |||
6960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6961 | fi | ||
6962 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_authenticate" >&5 | ||
6963 | $as_echo "$ac_cv_have_decl_authenticate" >&6; } | ||
6964 | if test $ac_cv_have_decl_authenticate = yes; then | ||
6965 | |||
6966 | cat >>confdefs.h <<_ACEOF | ||
6967 | #define HAVE_DECL_AUTHENTICATE 1 | ||
6968 | _ACEOF | ||
6969 | |||
6970 | |||
6971 | else | ||
6972 | cat >>confdefs.h <<_ACEOF | ||
6973 | #define HAVE_DECL_AUTHENTICATE 0 | ||
6974 | _ACEOF | ||
6975 | |||
6976 | |||
6977 | fi | ||
6978 | { $as_echo "$as_me:$LINENO: checking whether loginrestrictions is declared" >&5 | ||
6979 | $as_echo_n "checking whether loginrestrictions is declared... " >&6; } | ||
6980 | if test "${ac_cv_have_decl_loginrestrictions+set}" = set; then | ||
6981 | $as_echo_n "(cached) " >&6 | ||
6982 | else | ||
6983 | cat >conftest.$ac_ext <<_ACEOF | ||
6984 | /* confdefs.h. */ | ||
6985 | _ACEOF | ||
6986 | cat confdefs.h >>conftest.$ac_ext | ||
6987 | cat >>conftest.$ac_ext <<_ACEOF | ||
6988 | /* end confdefs.h. */ | ||
6989 | #include <usersec.h> | ||
6990 | |||
6991 | int | ||
6992 | main () | ||
6993 | { | ||
6994 | #ifndef loginrestrictions | ||
6995 | (void) loginrestrictions; | ||
6996 | #endif | ||
6997 | |||
6998 | ; | ||
6999 | return 0; | ||
7000 | } | ||
7001 | _ACEOF | ||
7002 | rm -f conftest.$ac_objext | ||
7003 | if { (ac_try="$ac_compile" | ||
7004 | case "(($ac_try" in | ||
7005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7006 | *) ac_try_echo=$ac_try;; | ||
7007 | esac | ||
7008 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7009 | $as_echo "$ac_try_echo") >&5 | ||
7010 | (eval "$ac_compile") 2>conftest.er1 | ||
7011 | ac_status=$? | ||
7012 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7013 | rm -f conftest.er1 | ||
7014 | cat conftest.err >&5 | ||
7015 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7016 | (exit $ac_status); } && { | ||
7017 | test -z "$ac_c_werror_flag" || | ||
7018 | test ! -s conftest.err | ||
7019 | } && test -s conftest.$ac_objext; then | ||
7020 | ac_cv_have_decl_loginrestrictions=yes | ||
7021 | else | ||
7022 | $as_echo "$as_me: failed program was:" >&5 | ||
7023 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7024 | |||
7025 | ac_cv_have_decl_loginrestrictions=no | ||
7026 | fi | ||
7027 | |||
7028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7029 | fi | ||
7030 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginrestrictions" >&5 | ||
7031 | $as_echo "$ac_cv_have_decl_loginrestrictions" >&6; } | ||
7032 | if test $ac_cv_have_decl_loginrestrictions = yes; then | ||
7033 | |||
7034 | cat >>confdefs.h <<_ACEOF | ||
7035 | #define HAVE_DECL_LOGINRESTRICTIONS 1 | ||
7036 | _ACEOF | ||
7037 | |||
7038 | |||
7039 | else | ||
7040 | cat >>confdefs.h <<_ACEOF | ||
7041 | #define HAVE_DECL_LOGINRESTRICTIONS 0 | ||
7042 | _ACEOF | ||
7043 | |||
7044 | |||
7045 | fi | ||
7046 | { $as_echo "$as_me:$LINENO: checking whether loginsuccess is declared" >&5 | ||
7047 | $as_echo_n "checking whether loginsuccess is declared... " >&6; } | ||
7048 | if test "${ac_cv_have_decl_loginsuccess+set}" = set; then | ||
7049 | $as_echo_n "(cached) " >&6 | ||
7050 | else | ||
7051 | cat >conftest.$ac_ext <<_ACEOF | ||
7052 | /* confdefs.h. */ | ||
7053 | _ACEOF | ||
7054 | cat confdefs.h >>conftest.$ac_ext | ||
7055 | cat >>conftest.$ac_ext <<_ACEOF | ||
7056 | /* end confdefs.h. */ | ||
7057 | #include <usersec.h> | ||
7058 | |||
7059 | int | ||
7060 | main () | ||
7061 | { | ||
7062 | #ifndef loginsuccess | ||
7063 | (void) loginsuccess; | ||
7064 | #endif | ||
7065 | |||
7066 | ; | ||
7067 | return 0; | ||
7068 | } | ||
7069 | _ACEOF | ||
7070 | rm -f conftest.$ac_objext | ||
7071 | if { (ac_try="$ac_compile" | ||
7072 | case "(($ac_try" in | ||
7073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7074 | *) ac_try_echo=$ac_try;; | ||
7075 | esac | ||
7076 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7077 | $as_echo "$ac_try_echo") >&5 | ||
7078 | (eval "$ac_compile") 2>conftest.er1 | ||
7079 | ac_status=$? | ||
7080 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7081 | rm -f conftest.er1 | ||
7082 | cat conftest.err >&5 | ||
7083 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7084 | (exit $ac_status); } && { | ||
7085 | test -z "$ac_c_werror_flag" || | ||
7086 | test ! -s conftest.err | ||
7087 | } && test -s conftest.$ac_objext; then | ||
7088 | ac_cv_have_decl_loginsuccess=yes | ||
7089 | else | ||
7090 | $as_echo "$as_me: failed program was:" >&5 | ||
7091 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7092 | |||
7093 | ac_cv_have_decl_loginsuccess=no | ||
7094 | fi | ||
7095 | |||
7096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7097 | fi | ||
7098 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginsuccess" >&5 | ||
7099 | $as_echo "$ac_cv_have_decl_loginsuccess" >&6; } | ||
7100 | if test $ac_cv_have_decl_loginsuccess = yes; then | ||
7101 | |||
7102 | cat >>confdefs.h <<_ACEOF | ||
7103 | #define HAVE_DECL_LOGINSUCCESS 1 | ||
7104 | _ACEOF | ||
7105 | |||
7106 | |||
7107 | else | ||
7108 | cat >>confdefs.h <<_ACEOF | ||
7109 | #define HAVE_DECL_LOGINSUCCESS 0 | ||
7110 | _ACEOF | ||
7111 | |||
7112 | |||
7113 | fi | ||
7114 | { $as_echo "$as_me:$LINENO: checking whether passwdexpired is declared" >&5 | ||
7115 | $as_echo_n "checking whether passwdexpired is declared... " >&6; } | ||
7116 | if test "${ac_cv_have_decl_passwdexpired+set}" = set; then | ||
7117 | $as_echo_n "(cached) " >&6 | ||
7118 | else | ||
7119 | cat >conftest.$ac_ext <<_ACEOF | ||
7120 | /* confdefs.h. */ | ||
7121 | _ACEOF | ||
7122 | cat confdefs.h >>conftest.$ac_ext | ||
7123 | cat >>conftest.$ac_ext <<_ACEOF | ||
7124 | /* end confdefs.h. */ | ||
7125 | #include <usersec.h> | ||
7126 | |||
7127 | int | ||
7128 | main () | ||
7129 | { | ||
7130 | #ifndef passwdexpired | ||
7131 | (void) passwdexpired; | ||
7132 | #endif | ||
7133 | |||
7134 | ; | ||
7135 | return 0; | ||
7136 | } | ||
7137 | _ACEOF | ||
7138 | rm -f conftest.$ac_objext | ||
7139 | if { (ac_try="$ac_compile" | ||
7140 | case "(($ac_try" in | ||
7141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7142 | *) ac_try_echo=$ac_try;; | ||
7143 | esac | ||
7144 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7145 | $as_echo "$ac_try_echo") >&5 | ||
7146 | (eval "$ac_compile") 2>conftest.er1 | ||
7147 | ac_status=$? | ||
7148 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7149 | rm -f conftest.er1 | ||
7150 | cat conftest.err >&5 | ||
7151 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7152 | (exit $ac_status); } && { | ||
7153 | test -z "$ac_c_werror_flag" || | ||
7154 | test ! -s conftest.err | ||
7155 | } && test -s conftest.$ac_objext; then | ||
7156 | ac_cv_have_decl_passwdexpired=yes | ||
7157 | else | ||
7158 | $as_echo "$as_me: failed program was:" >&5 | ||
7159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7160 | |||
7161 | ac_cv_have_decl_passwdexpired=no | ||
7162 | fi | ||
7163 | |||
7164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7165 | fi | ||
7166 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_passwdexpired" >&5 | ||
7167 | $as_echo "$ac_cv_have_decl_passwdexpired" >&6; } | ||
7168 | if test $ac_cv_have_decl_passwdexpired = yes; then | ||
7169 | |||
7170 | cat >>confdefs.h <<_ACEOF | ||
7171 | #define HAVE_DECL_PASSWDEXPIRED 1 | ||
7172 | _ACEOF | ||
7173 | |||
7174 | |||
7175 | else | ||
7176 | cat >>confdefs.h <<_ACEOF | ||
7177 | #define HAVE_DECL_PASSWDEXPIRED 0 | ||
7178 | _ACEOF | ||
7179 | |||
7180 | |||
7181 | fi | ||
7182 | { $as_echo "$as_me:$LINENO: checking whether setauthdb is declared" >&5 | ||
7183 | $as_echo_n "checking whether setauthdb is declared... " >&6; } | ||
7184 | if test "${ac_cv_have_decl_setauthdb+set}" = set; then | ||
7185 | $as_echo_n "(cached) " >&6 | ||
7186 | else | ||
7187 | cat >conftest.$ac_ext <<_ACEOF | ||
7188 | /* confdefs.h. */ | ||
7189 | _ACEOF | ||
7190 | cat confdefs.h >>conftest.$ac_ext | ||
7191 | cat >>conftest.$ac_ext <<_ACEOF | ||
7192 | /* end confdefs.h. */ | ||
7193 | #include <usersec.h> | ||
7194 | |||
7195 | int | ||
7196 | main () | ||
7197 | { | ||
7198 | #ifndef setauthdb | ||
7199 | (void) setauthdb; | ||
7200 | #endif | ||
7201 | |||
7202 | ; | ||
7203 | return 0; | ||
7204 | } | ||
7205 | _ACEOF | ||
7206 | rm -f conftest.$ac_objext | ||
7207 | if { (ac_try="$ac_compile" | ||
7208 | case "(($ac_try" in | ||
7209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7210 | *) ac_try_echo=$ac_try;; | ||
7211 | esac | ||
7212 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7213 | $as_echo "$ac_try_echo") >&5 | ||
7214 | (eval "$ac_compile") 2>conftest.er1 | ||
7215 | ac_status=$? | ||
7216 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7217 | rm -f conftest.er1 | ||
7218 | cat conftest.err >&5 | ||
7219 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7220 | (exit $ac_status); } && { | ||
7221 | test -z "$ac_c_werror_flag" || | ||
7222 | test ! -s conftest.err | ||
7223 | } && test -s conftest.$ac_objext; then | ||
7224 | ac_cv_have_decl_setauthdb=yes | ||
7225 | else | ||
7226 | $as_echo "$as_me: failed program was:" >&5 | ||
7227 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7228 | |||
7229 | ac_cv_have_decl_setauthdb=no | ||
7230 | fi | ||
7231 | |||
7232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7233 | fi | ||
7234 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setauthdb" >&5 | ||
7235 | $as_echo "$ac_cv_have_decl_setauthdb" >&6; } | ||
7236 | if test $ac_cv_have_decl_setauthdb = yes; then | ||
7237 | |||
7238 | cat >>confdefs.h <<_ACEOF | ||
7239 | #define HAVE_DECL_SETAUTHDB 1 | ||
7240 | _ACEOF | ||
7241 | |||
7242 | |||
7243 | else | ||
7244 | cat >>confdefs.h <<_ACEOF | ||
7245 | #define HAVE_DECL_SETAUTHDB 0 | ||
7246 | _ACEOF | ||
7247 | |||
7248 | |||
7249 | fi | ||
7250 | |||
7251 | |||
7252 | { $as_echo "$as_me:$LINENO: checking whether loginfailed is declared" >&5 | ||
7253 | $as_echo_n "checking whether loginfailed is declared... " >&6; } | ||
7254 | if test "${ac_cv_have_decl_loginfailed+set}" = set; then | ||
7255 | $as_echo_n "(cached) " >&6 | ||
7256 | else | ||
7257 | cat >conftest.$ac_ext <<_ACEOF | ||
7258 | /* confdefs.h. */ | ||
7259 | _ACEOF | ||
7260 | cat confdefs.h >>conftest.$ac_ext | ||
7261 | cat >>conftest.$ac_ext <<_ACEOF | ||
7262 | /* end confdefs.h. */ | ||
7263 | #include <usersec.h> | ||
7264 | |||
7265 | |||
7266 | int | ||
7267 | main () | ||
7268 | { | ||
7269 | #ifndef loginfailed | ||
7270 | (void) loginfailed; | ||
7271 | #endif | ||
7272 | |||
7273 | ; | ||
7274 | return 0; | ||
7275 | } | ||
7276 | _ACEOF | ||
7277 | rm -f conftest.$ac_objext | ||
7278 | if { (ac_try="$ac_compile" | ||
7279 | case "(($ac_try" in | ||
7280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7281 | *) ac_try_echo=$ac_try;; | ||
7282 | esac | ||
7283 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7284 | $as_echo "$ac_try_echo") >&5 | ||
7285 | (eval "$ac_compile") 2>conftest.er1 | ||
7286 | ac_status=$? | ||
7287 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7288 | rm -f conftest.er1 | ||
7289 | cat conftest.err >&5 | ||
7290 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7291 | (exit $ac_status); } && { | ||
7292 | test -z "$ac_c_werror_flag" || | ||
7293 | test ! -s conftest.err | ||
7294 | } && test -s conftest.$ac_objext; then | ||
7295 | ac_cv_have_decl_loginfailed=yes | ||
7296 | else | ||
7297 | $as_echo "$as_me: failed program was:" >&5 | ||
7298 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7299 | |||
7300 | ac_cv_have_decl_loginfailed=no | ||
7301 | fi | ||
7302 | |||
7303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7304 | fi | ||
7305 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_loginfailed" >&5 | ||
7306 | $as_echo "$ac_cv_have_decl_loginfailed" >&6; } | ||
7307 | if test $ac_cv_have_decl_loginfailed = yes; then | ||
7308 | |||
7309 | cat >>confdefs.h <<_ACEOF | ||
7310 | #define HAVE_DECL_LOGINFAILED 1 | ||
7311 | _ACEOF | ||
7312 | |||
7313 | { $as_echo "$as_me:$LINENO: checking if loginfailed takes 4 arguments" >&5 | ||
7314 | $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; } | ||
7315 | cat >conftest.$ac_ext <<_ACEOF | ||
7316 | /* confdefs.h. */ | ||
7317 | _ACEOF | ||
7318 | cat confdefs.h >>conftest.$ac_ext | ||
7319 | cat >>conftest.$ac_ext <<_ACEOF | ||
7320 | /* end confdefs.h. */ | ||
7321 | #include <usersec.h> | ||
7322 | int | ||
7323 | main () | ||
7324 | { | ||
7325 | (void)loginfailed("user","host","tty",0); | ||
7326 | ; | ||
7327 | return 0; | ||
7328 | } | ||
7329 | _ACEOF | ||
7330 | rm -f conftest.$ac_objext | ||
7331 | if { (ac_try="$ac_compile" | ||
7332 | case "(($ac_try" in | ||
7333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7334 | *) ac_try_echo=$ac_try;; | ||
7335 | esac | ||
7336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7337 | $as_echo "$ac_try_echo") >&5 | ||
7338 | (eval "$ac_compile") 2>conftest.er1 | ||
7339 | ac_status=$? | ||
7340 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7341 | rm -f conftest.er1 | ||
7342 | cat conftest.err >&5 | ||
7343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7344 | (exit $ac_status); } && { | ||
7345 | test -z "$ac_c_werror_flag" || | ||
7346 | test ! -s conftest.err | ||
7347 | } && test -s conftest.$ac_objext; then | ||
7348 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
7349 | $as_echo "yes" >&6; } | ||
7350 | |||
7351 | cat >>confdefs.h <<\_ACEOF | ||
7352 | #define AIX_LOGINFAILED_4ARG 1 | ||
7353 | _ACEOF | ||
7354 | |||
7355 | else | ||
7356 | $as_echo "$as_me: failed program was:" >&5 | ||
7357 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7358 | |||
7359 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
7360 | $as_echo "no" >&6; } | ||
7361 | |||
7362 | fi | ||
7363 | |||
7364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7365 | else | ||
7366 | cat >>confdefs.h <<_ACEOF | ||
7367 | #define HAVE_DECL_LOGINFAILED 0 | ||
7368 | _ACEOF | ||
7369 | |||
7370 | |||
7371 | fi | ||
7372 | |||
7373 | |||
7374 | |||
7375 | |||
7376 | for ac_func in getgrset setauthdb | ||
7377 | do | ||
7378 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
7379 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
7380 | $as_echo_n "checking for $ac_func... " >&6; } | ||
7381 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
7382 | $as_echo_n "(cached) " >&6 | ||
7383 | else | ||
7384 | cat >conftest.$ac_ext <<_ACEOF | ||
7385 | /* confdefs.h. */ | ||
7386 | _ACEOF | ||
7387 | cat confdefs.h >>conftest.$ac_ext | ||
7388 | cat >>conftest.$ac_ext <<_ACEOF | ||
7389 | /* end confdefs.h. */ | ||
7390 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
7391 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
7392 | #define $ac_func innocuous_$ac_func | ||
7393 | |||
7394 | /* System header to define __stub macros and hopefully few prototypes, | ||
7395 | which can conflict with char $ac_func (); below. | ||
7396 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
7397 | <limits.h> exists even on freestanding compilers. */ | ||
7398 | |||
7399 | #ifdef __STDC__ | ||
7400 | # include <limits.h> | ||
7401 | #else | ||
7402 | # include <assert.h> | ||
7403 | #endif | ||
7404 | |||
7405 | #undef $ac_func | ||
7406 | |||
7407 | /* Override any GCC internal prototype to avoid an error. | ||
7408 | Use char because int might match the return type of a GCC | ||
7409 | builtin and then its argument prototype would still apply. */ | ||
7410 | #ifdef __cplusplus | ||
7411 | extern "C" | ||
7412 | #endif | ||
7413 | char $ac_func (); | ||
7414 | /* The GNU C library defines this for functions which it implements | ||
7415 | to always fail with ENOSYS. Some functions are actually named | ||
7416 | something starting with __ and the normal name is an alias. */ | ||
7417 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
7418 | choke me | ||
7419 | #endif | ||
7420 | |||
7421 | int | ||
7422 | main () | ||
7423 | { | ||
7424 | return $ac_func (); | ||
7425 | ; | ||
7426 | return 0; | ||
7427 | } | ||
7428 | _ACEOF | ||
7429 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7430 | if { (ac_try="$ac_link" | ||
7431 | case "(($ac_try" in | ||
7432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7433 | *) ac_try_echo=$ac_try;; | ||
7434 | esac | ||
7435 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7436 | $as_echo "$ac_try_echo") >&5 | ||
7437 | (eval "$ac_link") 2>conftest.er1 | ||
7438 | ac_status=$? | ||
7439 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7440 | rm -f conftest.er1 | ||
7441 | cat conftest.err >&5 | ||
7442 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7443 | (exit $ac_status); } && { | ||
7444 | test -z "$ac_c_werror_flag" || | ||
7445 | test ! -s conftest.err | ||
7446 | } && test -s conftest$ac_exeext && { | ||
7447 | test "$cross_compiling" = yes || | ||
7448 | $as_test_x conftest$ac_exeext | ||
7449 | }; then | ||
7450 | eval "$as_ac_var=yes" | ||
7451 | else | ||
7452 | $as_echo "$as_me: failed program was:" >&5 | ||
7453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7454 | |||
7455 | eval "$as_ac_var=no" | ||
7456 | fi | ||
7457 | |||
7458 | rm -rf conftest.dSYM | ||
7459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7460 | conftest$ac_exeext conftest.$ac_ext | ||
7461 | fi | ||
7462 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
7463 | $as_echo "$as_val"'` | ||
7464 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
7465 | $as_echo "$ac_res" >&6; } | ||
7466 | if test `eval 'as_val=${'$as_ac_var'} | ||
7467 | $as_echo "$as_val"'` = yes; then | ||
7468 | cat >>confdefs.h <<_ACEOF | ||
7469 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
7470 | _ACEOF | ||
7471 | |||
7472 | fi | ||
7473 | done | ||
7474 | |||
7475 | { $as_echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5 | ||
7476 | $as_echo_n "checking whether F_CLOSEM is declared... " >&6; } | ||
7477 | if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then | ||
7478 | $as_echo_n "(cached) " >&6 | ||
7479 | else | ||
7480 | cat >conftest.$ac_ext <<_ACEOF | ||
7481 | /* confdefs.h. */ | ||
7482 | _ACEOF | ||
7483 | cat confdefs.h >>conftest.$ac_ext | ||
7484 | cat >>conftest.$ac_ext <<_ACEOF | ||
7485 | /* end confdefs.h. */ | ||
7486 | #include <limits.h> | ||
7487 | #include <fcntl.h> | ||
7488 | |||
7489 | |||
7490 | int | ||
7491 | main () | ||
7492 | { | ||
7493 | #ifndef F_CLOSEM | ||
7494 | (void) F_CLOSEM; | ||
7495 | #endif | ||
7496 | |||
7497 | ; | ||
7498 | return 0; | ||
7499 | } | ||
7500 | _ACEOF | ||
7501 | rm -f conftest.$ac_objext | ||
7502 | if { (ac_try="$ac_compile" | ||
7503 | case "(($ac_try" in | ||
7504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7505 | *) ac_try_echo=$ac_try;; | ||
7506 | esac | ||
7507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7508 | $as_echo "$ac_try_echo") >&5 | ||
7509 | (eval "$ac_compile") 2>conftest.er1 | ||
7510 | ac_status=$? | ||
7511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7512 | rm -f conftest.er1 | ||
7513 | cat conftest.err >&5 | ||
7514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7515 | (exit $ac_status); } && { | ||
7516 | test -z "$ac_c_werror_flag" || | ||
7517 | test ! -s conftest.err | ||
7518 | } && test -s conftest.$ac_objext; then | ||
7519 | ac_cv_have_decl_F_CLOSEM=yes | ||
7520 | else | ||
7521 | $as_echo "$as_me: failed program was:" >&5 | ||
7522 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7523 | |||
7524 | ac_cv_have_decl_F_CLOSEM=no | ||
7525 | fi | ||
7526 | |||
7527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7528 | fi | ||
7529 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5 | ||
7530 | $as_echo "$ac_cv_have_decl_F_CLOSEM" >&6; } | ||
7531 | if test $ac_cv_have_decl_F_CLOSEM = yes; then | ||
7532 | |||
7533 | cat >>confdefs.h <<\_ACEOF | ||
7534 | #define HAVE_FCNTL_CLOSEM 1 | ||
7535 | _ACEOF | ||
7536 | |||
7537 | fi | ||
7538 | |||
7539 | check_for_aix_broken_getaddrinfo=1 | ||
7540 | |||
7541 | cat >>confdefs.h <<\_ACEOF | ||
7542 | #define BROKEN_REALPATH 1 | ||
7543 | _ACEOF | ||
7544 | |||
7545 | |||
7546 | cat >>confdefs.h <<\_ACEOF | ||
7547 | #define SETEUID_BREAKS_SETUID 1 | ||
7548 | _ACEOF | ||
7549 | |||
7550 | |||
7551 | cat >>confdefs.h <<\_ACEOF | ||
7552 | #define BROKEN_SETREUID 1 | ||
7553 | _ACEOF | ||
7554 | |||
7555 | |||
7556 | cat >>confdefs.h <<\_ACEOF | ||
7557 | #define BROKEN_SETREGID 1 | ||
7558 | _ACEOF | ||
7559 | |||
7560 | |||
7561 | cat >>confdefs.h <<\_ACEOF | ||
7562 | #define DISABLE_LASTLOG 1 | ||
7563 | _ACEOF | ||
7564 | |||
7565 | |||
7566 | cat >>confdefs.h <<\_ACEOF | ||
7567 | #define LOGIN_NEEDS_UTMPX 1 | ||
7568 | _ACEOF | ||
7569 | |||
7570 | |||
7571 | cat >>confdefs.h <<\_ACEOF | ||
7572 | #define SPT_TYPE SPT_REUSEARGV | ||
7573 | _ACEOF | ||
7574 | |||
7575 | |||
7576 | cat >>confdefs.h <<\_ACEOF | ||
7577 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
7578 | _ACEOF | ||
7579 | |||
7580 | |||
7581 | cat >>confdefs.h <<\_ACEOF | ||
7582 | #define PTY_ZEROREAD 1 | ||
7583 | _ACEOF | ||
7584 | |||
7585 | ;; | ||
7586 | *-*-cygwin*) | ||
7587 | check_for_libcrypt_later=1 | ||
7588 | LIBS="$LIBS /usr/lib/textreadmode.o" | ||
7589 | |||
7590 | cat >>confdefs.h <<\_ACEOF | ||
7591 | #define HAVE_CYGWIN 1 | ||
7592 | _ACEOF | ||
7593 | |||
7594 | |||
7595 | cat >>confdefs.h <<\_ACEOF | ||
7596 | #define USE_PIPES 1 | ||
7597 | _ACEOF | ||
7598 | |||
7599 | |||
7600 | cat >>confdefs.h <<\_ACEOF | ||
7601 | #define DISABLE_SHADOW 1 | ||
7602 | _ACEOF | ||
7603 | |||
7604 | |||
7605 | cat >>confdefs.h <<\_ACEOF | ||
7606 | #define NO_X11_UNIX_SOCKETS 1 | ||
7607 | _ACEOF | ||
7608 | |||
7609 | |||
7610 | cat >>confdefs.h <<\_ACEOF | ||
7611 | #define NO_IPPORT_RESERVED_CONCEPT 1 | ||
7612 | _ACEOF | ||
7613 | |||
7614 | |||
7615 | cat >>confdefs.h <<\_ACEOF | ||
7616 | #define DISABLE_FD_PASSING 1 | ||
7617 | _ACEOF | ||
7618 | |||
7619 | |||
7620 | cat >>confdefs.h <<\_ACEOF | ||
7621 | #define SSH_IOBUFSZ 65536 | ||
7622 | _ACEOF | ||
7623 | |||
7624 | ;; | ||
7625 | *-*-dgux*) | ||
7626 | |||
7627 | cat >>confdefs.h <<\_ACEOF | ||
7628 | #define IP_TOS_IS_BROKEN 1 | ||
7629 | _ACEOF | ||
7630 | |||
7631 | cat >>confdefs.h <<\_ACEOF | ||
7632 | #define SETEUID_BREAKS_SETUID 1 | ||
7633 | _ACEOF | ||
7634 | |||
7635 | cat >>confdefs.h <<\_ACEOF | ||
7636 | #define BROKEN_SETREUID 1 | ||
7637 | _ACEOF | ||
7638 | |||
7639 | cat >>confdefs.h <<\_ACEOF | ||
7640 | #define BROKEN_SETREGID 1 | ||
7641 | _ACEOF | ||
7642 | |||
7643 | ;; | ||
7644 | *-*-darwin*) | ||
7645 | { $as_echo "$as_me:$LINENO: checking if we have working getaddrinfo" >&5 | ||
7646 | $as_echo_n "checking if we have working getaddrinfo... " >&6; } | ||
7647 | if test "$cross_compiling" = yes; then | ||
7648 | { $as_echo "$as_me:$LINENO: result: assume it is working" >&5 | ||
7649 | $as_echo "assume it is working" >&6; } | ||
7650 | else | ||
7651 | cat >conftest.$ac_ext <<_ACEOF | ||
7652 | /* confdefs.h. */ | ||
7653 | _ACEOF | ||
7654 | cat confdefs.h >>conftest.$ac_ext | ||
7655 | cat >>conftest.$ac_ext <<_ACEOF | ||
7656 | /* end confdefs.h. */ | ||
7657 | #include <mach-o/dyld.h> | ||
7658 | main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) | ||
7659 | exit(0); | ||
7660 | else | ||
7661 | exit(1); | ||
7662 | } | ||
7663 | _ACEOF | ||
7664 | rm -f conftest$ac_exeext | ||
7665 | if { (ac_try="$ac_link" | ||
7666 | case "(($ac_try" in | ||
7667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7668 | *) ac_try_echo=$ac_try;; | ||
7669 | esac | ||
7670 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7671 | $as_echo "$ac_try_echo") >&5 | ||
7672 | (eval "$ac_link") 2>&5 | ||
7673 | ac_status=$? | ||
7674 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
7676 | { (case "(($ac_try" in | ||
7677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7678 | *) ac_try_echo=$ac_try;; | ||
7679 | esac | ||
7680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7681 | $as_echo "$ac_try_echo") >&5 | ||
7682 | (eval "$ac_try") 2>&5 | ||
7683 | ac_status=$? | ||
7684 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7685 | (exit $ac_status); }; }; then | ||
7686 | { $as_echo "$as_me:$LINENO: result: working" >&5 | ||
7687 | $as_echo "working" >&6; } | ||
7688 | else | ||
7689 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
7690 | $as_echo "$as_me: failed program was:" >&5 | ||
7691 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7692 | |||
7693 | ( exit $ac_status ) | ||
7694 | { $as_echo "$as_me:$LINENO: result: buggy" >&5 | ||
7695 | $as_echo "buggy" >&6; } | ||
7696 | |||
7697 | cat >>confdefs.h <<\_ACEOF | ||
7698 | #define BROKEN_GETADDRINFO 1 | ||
7699 | _ACEOF | ||
7700 | |||
7701 | fi | ||
7702 | rm -rf conftest.dSYM | ||
7703 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
7704 | fi | ||
7705 | |||
7706 | |||
7707 | cat >>confdefs.h <<\_ACEOF | ||
7708 | #define SETEUID_BREAKS_SETUID 1 | ||
7709 | _ACEOF | ||
7710 | |||
7711 | cat >>confdefs.h <<\_ACEOF | ||
7712 | #define BROKEN_SETREUID 1 | ||
7713 | _ACEOF | ||
7714 | |||
7715 | cat >>confdefs.h <<\_ACEOF | ||
7716 | #define BROKEN_SETREGID 1 | ||
7717 | _ACEOF | ||
7718 | |||
7719 | |||
7720 | cat >>confdefs.h <<\_ACEOF | ||
7721 | #define BROKEN_GLOB 1 | ||
7722 | _ACEOF | ||
7723 | |||
7724 | |||
7725 | cat >>confdefs.h <<_ACEOF | ||
7726 | #define BIND_8_COMPAT 1 | ||
7727 | _ACEOF | ||
7728 | |||
7729 | |||
7730 | cat >>confdefs.h <<\_ACEOF | ||
7731 | #define SSH_TUN_FREEBSD 1 | ||
7732 | _ACEOF | ||
7733 | |||
7734 | |||
7735 | cat >>confdefs.h <<\_ACEOF | ||
7736 | #define SSH_TUN_COMPAT_AF 1 | ||
7737 | _ACEOF | ||
7738 | |||
7739 | |||
7740 | cat >>confdefs.h <<\_ACEOF | ||
7741 | #define SSH_TUN_PREPEND_AF 1 | ||
7742 | _ACEOF | ||
7743 | |||
7744 | |||
7745 | { $as_echo "$as_me:$LINENO: checking whether AU_IPv4 is declared" >&5 | ||
7746 | $as_echo_n "checking whether AU_IPv4 is declared... " >&6; } | ||
7747 | if test "${ac_cv_have_decl_AU_IPv4+set}" = set; then | ||
7748 | $as_echo_n "(cached) " >&6 | ||
7749 | else | ||
7750 | cat >conftest.$ac_ext <<_ACEOF | ||
7751 | /* confdefs.h. */ | ||
7752 | _ACEOF | ||
7753 | cat confdefs.h >>conftest.$ac_ext | ||
7754 | cat >>conftest.$ac_ext <<_ACEOF | ||
7755 | /* end confdefs.h. */ | ||
7756 | $ac_includes_default | ||
7757 | int | ||
7758 | main () | ||
7759 | { | ||
7760 | #ifndef AU_IPv4 | ||
7761 | (void) AU_IPv4; | ||
7762 | #endif | ||
7763 | |||
7764 | ; | ||
7765 | return 0; | ||
7766 | } | ||
7767 | _ACEOF | ||
7768 | rm -f conftest.$ac_objext | ||
7769 | if { (ac_try="$ac_compile" | ||
7770 | case "(($ac_try" in | ||
7771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7772 | *) ac_try_echo=$ac_try;; | ||
7773 | esac | ||
7774 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7775 | $as_echo "$ac_try_echo") >&5 | ||
7776 | (eval "$ac_compile") 2>conftest.er1 | ||
7777 | ac_status=$? | ||
7778 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7779 | rm -f conftest.er1 | ||
7780 | cat conftest.err >&5 | ||
7781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7782 | (exit $ac_status); } && { | ||
7783 | test -z "$ac_c_werror_flag" || | ||
7784 | test ! -s conftest.err | ||
7785 | } && test -s conftest.$ac_objext; then | ||
7786 | ac_cv_have_decl_AU_IPv4=yes | ||
7787 | else | ||
7788 | $as_echo "$as_me: failed program was:" >&5 | ||
7789 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7790 | |||
7791 | ac_cv_have_decl_AU_IPv4=no | ||
7792 | fi | ||
7793 | |||
7794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
7795 | fi | ||
7796 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_AU_IPv4" >&5 | ||
7797 | $as_echo "$ac_cv_have_decl_AU_IPv4" >&6; } | ||
7798 | if test $ac_cv_have_decl_AU_IPv4 = yes; then | ||
7799 | : | ||
7800 | else | ||
7801 | |||
7802 | cat >>confdefs.h <<\_ACEOF | ||
7803 | #define AU_IPv4 0 | ||
7804 | _ACEOF | ||
7805 | |||
7806 | #include <bsm/audit.h> | ||
7807 | |||
7808 | cat >>confdefs.h <<\_ACEOF | ||
7809 | #define LASTLOG_WRITE_PUTUTXLINE 1 | ||
7810 | _ACEOF | ||
7811 | |||
7812 | |||
7813 | fi | ||
7814 | |||
7815 | ;; | ||
7816 | *-*-dragonfly*) | ||
7817 | SSHDLIBS="$SSHDLIBS -lcrypt" | ||
7818 | ;; | ||
7819 | *-*-hpux*) | ||
7820 | # first we define all of the options common to all HP-UX releases | ||
7821 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" | ||
7822 | IPADDR_IN_DISPLAY=yes | ||
7823 | cat >>confdefs.h <<\_ACEOF | ||
7824 | #define USE_PIPES 1 | ||
7825 | _ACEOF | ||
7826 | |||
7827 | |||
7828 | cat >>confdefs.h <<\_ACEOF | ||
7829 | #define LOGIN_NO_ENDOPT 1 | ||
7830 | _ACEOF | ||
7831 | |||
7832 | cat >>confdefs.h <<\_ACEOF | ||
7833 | #define LOGIN_NEEDS_UTMPX 1 | ||
7834 | _ACEOF | ||
7835 | |||
7836 | |||
7837 | cat >>confdefs.h <<\_ACEOF | ||
7838 | #define LOCKED_PASSWD_STRING "*" | ||
7839 | _ACEOF | ||
7840 | |||
7841 | cat >>confdefs.h <<\_ACEOF | ||
7842 | #define SPT_TYPE SPT_PSTAT | ||
7843 | _ACEOF | ||
7844 | |||
7845 | MAIL="/var/mail/username" | ||
7846 | LIBS="$LIBS -lsec" | ||
7847 | |||
7848 | { $as_echo "$as_me:$LINENO: checking for t_error in -lxnet" >&5 | ||
7849 | $as_echo_n "checking for t_error in -lxnet... " >&6; } | ||
7850 | if test "${ac_cv_lib_xnet_t_error+set}" = set; then | ||
7851 | $as_echo_n "(cached) " >&6 | ||
7852 | else | ||
7853 | ac_check_lib_save_LIBS=$LIBS | ||
7854 | LIBS="-lxnet $LIBS" | ||
7855 | cat >conftest.$ac_ext <<_ACEOF | ||
7856 | /* confdefs.h. */ | ||
7857 | _ACEOF | ||
7858 | cat confdefs.h >>conftest.$ac_ext | ||
7859 | cat >>conftest.$ac_ext <<_ACEOF | ||
7860 | /* end confdefs.h. */ | ||
7861 | |||
7862 | /* Override any GCC internal prototype to avoid an error. | ||
7863 | Use char because int might match the return type of a GCC | ||
7864 | builtin and then its argument prototype would still apply. */ | ||
7865 | #ifdef __cplusplus | ||
7866 | extern "C" | ||
7867 | #endif | ||
7868 | char t_error (); | ||
7869 | int | ||
7870 | main () | ||
7871 | { | ||
7872 | return t_error (); | ||
7873 | ; | ||
7874 | return 0; | ||
7875 | } | ||
7876 | _ACEOF | ||
7877 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7878 | if { (ac_try="$ac_link" | ||
7879 | case "(($ac_try" in | ||
7880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
7881 | *) ac_try_echo=$ac_try;; | ||
7882 | esac | ||
7883 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
7884 | $as_echo "$ac_try_echo") >&5 | ||
7885 | (eval "$ac_link") 2>conftest.er1 | ||
7886 | ac_status=$? | ||
7887 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7888 | rm -f conftest.er1 | ||
7889 | cat conftest.err >&5 | ||
7890 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7891 | (exit $ac_status); } && { | ||
7892 | test -z "$ac_c_werror_flag" || | ||
7893 | test ! -s conftest.err | ||
7894 | } && test -s conftest$ac_exeext && { | ||
7895 | test "$cross_compiling" = yes || | ||
7896 | $as_test_x conftest$ac_exeext | ||
7897 | }; then | ||
7898 | ac_cv_lib_xnet_t_error=yes | ||
7899 | else | ||
7900 | $as_echo "$as_me: failed program was:" >&5 | ||
7901 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7902 | |||
7903 | ac_cv_lib_xnet_t_error=no | ||
7904 | fi | ||
7905 | |||
7906 | rm -rf conftest.dSYM | ||
7907 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
7908 | conftest$ac_exeext conftest.$ac_ext | ||
7909 | LIBS=$ac_check_lib_save_LIBS | ||
7910 | fi | ||
7911 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_t_error" >&5 | ||
7912 | $as_echo "$ac_cv_lib_xnet_t_error" >&6; } | ||
7913 | if test $ac_cv_lib_xnet_t_error = yes; then | ||
7914 | cat >>confdefs.h <<_ACEOF | ||
7915 | #define HAVE_LIBXNET 1 | ||
7916 | _ACEOF | ||
7917 | |||
7918 | LIBS="-lxnet $LIBS" | ||
7919 | |||
7920 | else | ||
7921 | { { $as_echo "$as_me:$LINENO: error: *** -lxnet needed on HP-UX - check config.log ***" >&5 | ||
7922 | $as_echo "$as_me: error: *** -lxnet needed on HP-UX - check config.log ***" >&2;} | ||
7923 | { (exit 1); exit 1; }; } | ||
7924 | fi | ||
7925 | |||
7926 | |||
7927 | # next, we define all of the options specific to major releases | ||
7928 | case "$host" in | ||
7929 | *-*-hpux10*) | ||
7930 | if test -z "$GCC"; then | ||
7931 | CFLAGS="$CFLAGS -Ae" | ||
7932 | fi | ||
7933 | ;; | ||
7934 | *-*-hpux11*) | ||
7935 | |||
7936 | cat >>confdefs.h <<\_ACEOF | ||
7937 | #define PAM_SUN_CODEBASE 1 | ||
7938 | _ACEOF | ||
7939 | |||
7940 | |||
7941 | cat >>confdefs.h <<\_ACEOF | ||
7942 | #define DISABLE_UTMP 1 | ||
7943 | _ACEOF | ||
7944 | |||
7945 | |||
7946 | cat >>confdefs.h <<\_ACEOF | ||
7947 | #define USE_BTMP 1 | ||
7948 | _ACEOF | ||
7949 | |||
7950 | check_for_hpux_broken_getaddrinfo=1 | ||
7951 | check_for_conflicting_getspnam=1 | ||
7952 | ;; | ||
7953 | esac | ||
7954 | |||
7955 | # lastly, we define options specific to minor releases | ||
7956 | case "$host" in | ||
7957 | *-*-hpux10.26) | ||
7958 | |||
7959 | cat >>confdefs.h <<\_ACEOF | ||
7960 | #define HAVE_SECUREWARE 1 | ||
7961 | _ACEOF | ||
7962 | |||
7963 | disable_ptmx_check=yes | ||
7964 | LIBS="$LIBS -lsecpw" | ||
7965 | ;; | ||
7966 | esac | ||
7967 | ;; | ||
7968 | *-*-irix5*) | ||
7969 | PATH="$PATH:/usr/etc" | ||
7970 | |||
7971 | cat >>confdefs.h <<\_ACEOF | ||
7972 | #define BROKEN_INET_NTOA 1 | ||
7973 | _ACEOF | ||
7974 | |||
7975 | cat >>confdefs.h <<\_ACEOF | ||
7976 | #define SETEUID_BREAKS_SETUID 1 | ||
7977 | _ACEOF | ||
7978 | |||
7979 | cat >>confdefs.h <<\_ACEOF | ||
7980 | #define BROKEN_SETREUID 1 | ||
7981 | _ACEOF | ||
7982 | |||
7983 | cat >>confdefs.h <<\_ACEOF | ||
7984 | #define BROKEN_SETREGID 1 | ||
7985 | _ACEOF | ||
7986 | |||
7987 | |||
7988 | cat >>confdefs.h <<\_ACEOF | ||
7989 | #define WITH_ABBREV_NO_TTY 1 | ||
7990 | _ACEOF | ||
7991 | |||
7992 | cat >>confdefs.h <<\_ACEOF | ||
7993 | #define LOCKED_PASSWD_STRING "*LK*" | ||
7994 | _ACEOF | ||
7995 | |||
7996 | ;; | ||
7997 | *-*-irix6*) | ||
7998 | PATH="$PATH:/usr/etc" | ||
7999 | |||
8000 | cat >>confdefs.h <<\_ACEOF | ||
8001 | #define WITH_IRIX_ARRAY 1 | ||
8002 | _ACEOF | ||
8003 | |||
8004 | |||
8005 | cat >>confdefs.h <<\_ACEOF | ||
8006 | #define WITH_IRIX_PROJECT 1 | ||
8007 | _ACEOF | ||
8008 | |||
8009 | |||
8010 | cat >>confdefs.h <<\_ACEOF | ||
8011 | #define WITH_IRIX_AUDIT 1 | ||
8012 | _ACEOF | ||
8013 | |||
8014 | { $as_echo "$as_me:$LINENO: checking for jlimit_startjob" >&5 | ||
8015 | $as_echo_n "checking for jlimit_startjob... " >&6; } | ||
8016 | if test "${ac_cv_func_jlimit_startjob+set}" = set; then | ||
8017 | $as_echo_n "(cached) " >&6 | ||
8018 | else | ||
8019 | cat >conftest.$ac_ext <<_ACEOF | ||
8020 | /* confdefs.h. */ | ||
8021 | _ACEOF | ||
8022 | cat confdefs.h >>conftest.$ac_ext | ||
8023 | cat >>conftest.$ac_ext <<_ACEOF | ||
8024 | /* end confdefs.h. */ | ||
8025 | /* Define jlimit_startjob to an innocuous variant, in case <limits.h> declares jlimit_startjob. | ||
8026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8027 | #define jlimit_startjob innocuous_jlimit_startjob | ||
8028 | |||
8029 | /* System header to define __stub macros and hopefully few prototypes, | ||
8030 | which can conflict with char jlimit_startjob (); below. | ||
8031 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8032 | <limits.h> exists even on freestanding compilers. */ | ||
8033 | |||
8034 | #ifdef __STDC__ | ||
8035 | # include <limits.h> | ||
8036 | #else | ||
8037 | # include <assert.h> | ||
8038 | #endif | ||
8039 | |||
8040 | #undef jlimit_startjob | ||
8041 | |||
8042 | /* Override any GCC internal prototype to avoid an error. | ||
8043 | Use char because int might match the return type of a GCC | ||
8044 | builtin and then its argument prototype would still apply. */ | ||
8045 | #ifdef __cplusplus | ||
8046 | extern "C" | ||
8047 | #endif | ||
8048 | char jlimit_startjob (); | ||
8049 | /* The GNU C library defines this for functions which it implements | ||
8050 | to always fail with ENOSYS. Some functions are actually named | ||
8051 | something starting with __ and the normal name is an alias. */ | ||
8052 | #if defined __stub_jlimit_startjob || defined __stub___jlimit_startjob | ||
8053 | choke me | ||
8054 | #endif | ||
8055 | |||
8056 | int | ||
8057 | main () | ||
8058 | { | ||
8059 | return jlimit_startjob (); | ||
8060 | ; | ||
8061 | return 0; | ||
8062 | } | ||
8063 | _ACEOF | ||
8064 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8065 | if { (ac_try="$ac_link" | ||
8066 | case "(($ac_try" in | ||
8067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8068 | *) ac_try_echo=$ac_try;; | ||
8069 | esac | ||
8070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8071 | $as_echo "$ac_try_echo") >&5 | ||
8072 | (eval "$ac_link") 2>conftest.er1 | ||
8073 | ac_status=$? | ||
8074 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8075 | rm -f conftest.er1 | ||
8076 | cat conftest.err >&5 | ||
8077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8078 | (exit $ac_status); } && { | ||
8079 | test -z "$ac_c_werror_flag" || | ||
8080 | test ! -s conftest.err | ||
8081 | } && test -s conftest$ac_exeext && { | ||
8082 | test "$cross_compiling" = yes || | ||
8083 | $as_test_x conftest$ac_exeext | ||
8084 | }; then | ||
8085 | ac_cv_func_jlimit_startjob=yes | ||
8086 | else | ||
8087 | $as_echo "$as_me: failed program was:" >&5 | ||
8088 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8089 | |||
8090 | ac_cv_func_jlimit_startjob=no | ||
8091 | fi | ||
8092 | |||
8093 | rm -rf conftest.dSYM | ||
8094 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8095 | conftest$ac_exeext conftest.$ac_ext | ||
8096 | fi | ||
8097 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_jlimit_startjob" >&5 | ||
8098 | $as_echo "$ac_cv_func_jlimit_startjob" >&6; } | ||
8099 | if test $ac_cv_func_jlimit_startjob = yes; then | ||
8100 | |||
8101 | cat >>confdefs.h <<\_ACEOF | ||
8102 | #define WITH_IRIX_JOBS 1 | ||
8103 | _ACEOF | ||
8104 | |||
8105 | fi | ||
8106 | |||
8107 | cat >>confdefs.h <<\_ACEOF | ||
8108 | #define BROKEN_INET_NTOA 1 | ||
8109 | _ACEOF | ||
8110 | |||
8111 | cat >>confdefs.h <<\_ACEOF | ||
8112 | #define SETEUID_BREAKS_SETUID 1 | ||
8113 | _ACEOF | ||
8114 | |||
8115 | cat >>confdefs.h <<\_ACEOF | ||
8116 | #define BROKEN_SETREUID 1 | ||
8117 | _ACEOF | ||
8118 | |||
8119 | cat >>confdefs.h <<\_ACEOF | ||
8120 | #define BROKEN_SETREGID 1 | ||
8121 | _ACEOF | ||
8122 | |||
8123 | |||
8124 | cat >>confdefs.h <<\_ACEOF | ||
8125 | #define BROKEN_UPDWTMPX 1 | ||
8126 | _ACEOF | ||
8127 | |||
8128 | cat >>confdefs.h <<\_ACEOF | ||
8129 | #define WITH_ABBREV_NO_TTY 1 | ||
8130 | _ACEOF | ||
8131 | |||
8132 | cat >>confdefs.h <<\_ACEOF | ||
8133 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8134 | _ACEOF | ||
8135 | |||
8136 | ;; | ||
8137 | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | ||
8138 | check_for_libcrypt_later=1 | ||
8139 | cat >>confdefs.h <<\_ACEOF | ||
8140 | #define PAM_TTY_KLUDGE 1 | ||
8141 | _ACEOF | ||
8142 | |||
8143 | cat >>confdefs.h <<\_ACEOF | ||
8144 | #define LOCKED_PASSWD_PREFIX "!" | ||
8145 | _ACEOF | ||
8146 | |||
8147 | cat >>confdefs.h <<\_ACEOF | ||
8148 | #define SPT_TYPE SPT_REUSEARGV | ||
8149 | _ACEOF | ||
8150 | |||
8151 | |||
8152 | cat >>confdefs.h <<\_ACEOF | ||
8153 | #define _PATH_BTMP "/var/log/btmp" | ||
8154 | _ACEOF | ||
8155 | |||
8156 | |||
8157 | cat >>confdefs.h <<\_ACEOF | ||
8158 | #define USE_BTMP 1 | ||
8159 | _ACEOF | ||
8160 | |||
8161 | ;; | ||
8162 | *-*-linux*) | ||
8163 | no_dev_ptmx=1 | ||
8164 | check_for_libcrypt_later=1 | ||
8165 | check_for_openpty_ctty_bug=1 | ||
8166 | |||
8167 | cat >>confdefs.h <<\_ACEOF | ||
8168 | #define PAM_TTY_KLUDGE 1 | ||
8169 | _ACEOF | ||
8170 | |||
8171 | |||
8172 | cat >>confdefs.h <<\_ACEOF | ||
8173 | #define LOCKED_PASSWD_PREFIX "!" | ||
8174 | _ACEOF | ||
8175 | |||
8176 | cat >>confdefs.h <<\_ACEOF | ||
8177 | #define SPT_TYPE SPT_REUSEARGV | ||
8178 | _ACEOF | ||
8179 | |||
8180 | |||
8181 | cat >>confdefs.h <<\_ACEOF | ||
8182 | #define LINK_OPNOTSUPP_ERRNO EPERM | ||
8183 | _ACEOF | ||
8184 | |||
8185 | |||
8186 | cat >>confdefs.h <<\_ACEOF | ||
8187 | #define _PATH_BTMP "/var/log/btmp" | ||
8188 | _ACEOF | ||
8189 | |||
8190 | cat >>confdefs.h <<\_ACEOF | ||
8191 | #define USE_BTMP 1 | ||
8192 | _ACEOF | ||
8193 | |||
8194 | inet6_default_4in6=yes | ||
8195 | case `uname -r` in | ||
8196 | 1.*|2.0.*) | ||
8197 | |||
8198 | cat >>confdefs.h <<\_ACEOF | ||
8199 | #define BROKEN_CMSG_TYPE 1 | ||
8200 | _ACEOF | ||
8201 | |||
8202 | ;; | ||
8203 | esac | ||
8204 | # tun(4) forwarding compat code | ||
8205 | |||
8206 | for ac_header in linux/if_tun.h | ||
8207 | do | ||
8208 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
8209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8210 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8211 | $as_echo_n "checking for $ac_header... " >&6; } | ||
8212 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8213 | $as_echo_n "(cached) " >&6 | ||
8214 | fi | ||
8215 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
8216 | $as_echo "$as_val"'` | ||
8217 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8218 | $as_echo "$ac_res" >&6; } | ||
8219 | else | ||
8220 | # Is the header compilable? | ||
8221 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
8222 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
8223 | cat >conftest.$ac_ext <<_ACEOF | ||
8224 | /* confdefs.h. */ | ||
8225 | _ACEOF | ||
8226 | cat confdefs.h >>conftest.$ac_ext | ||
8227 | cat >>conftest.$ac_ext <<_ACEOF | ||
8228 | /* end confdefs.h. */ | ||
8229 | $ac_includes_default | ||
8230 | #include <$ac_header> | ||
8231 | _ACEOF | ||
8232 | rm -f conftest.$ac_objext | ||
8233 | if { (ac_try="$ac_compile" | ||
8234 | case "(($ac_try" in | ||
8235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8236 | *) ac_try_echo=$ac_try;; | ||
8237 | esac | ||
8238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8239 | $as_echo "$ac_try_echo") >&5 | ||
8240 | (eval "$ac_compile") 2>conftest.er1 | ||
8241 | ac_status=$? | ||
8242 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8243 | rm -f conftest.er1 | ||
8244 | cat conftest.err >&5 | ||
8245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8246 | (exit $ac_status); } && { | ||
8247 | test -z "$ac_c_werror_flag" || | ||
8248 | test ! -s conftest.err | ||
8249 | } && test -s conftest.$ac_objext; then | ||
8250 | ac_header_compiler=yes | ||
8251 | else | ||
8252 | $as_echo "$as_me: failed program was:" >&5 | ||
8253 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8254 | |||
8255 | ac_header_compiler=no | ||
8256 | fi | ||
8257 | |||
8258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8259 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8260 | $as_echo "$ac_header_compiler" >&6; } | ||
8261 | |||
8262 | # Is the header present? | ||
8263 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
8264 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
8265 | cat >conftest.$ac_ext <<_ACEOF | ||
8266 | /* confdefs.h. */ | ||
8267 | _ACEOF | ||
8268 | cat confdefs.h >>conftest.$ac_ext | ||
8269 | cat >>conftest.$ac_ext <<_ACEOF | ||
8270 | /* end confdefs.h. */ | ||
8271 | #include <$ac_header> | ||
8272 | _ACEOF | ||
8273 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8274 | case "(($ac_try" in | ||
8275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8276 | *) ac_try_echo=$ac_try;; | ||
8277 | esac | ||
8278 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8279 | $as_echo "$ac_try_echo") >&5 | ||
8280 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8281 | ac_status=$? | ||
8282 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8283 | rm -f conftest.er1 | ||
8284 | cat conftest.err >&5 | ||
8285 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8286 | (exit $ac_status); } >/dev/null && { | ||
8287 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8288 | test ! -s conftest.err | ||
8289 | }; then | ||
8290 | ac_header_preproc=yes | ||
8291 | else | ||
8292 | $as_echo "$as_me: failed program was:" >&5 | ||
8293 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8294 | |||
8295 | ac_header_preproc=no | ||
8296 | fi | ||
8297 | |||
8298 | rm -f conftest.err conftest.$ac_ext | ||
8299 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8300 | $as_echo "$ac_header_preproc" >&6; } | ||
8301 | |||
8302 | # So? What about this header? | ||
8303 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8304 | yes:no: ) | ||
8305 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8306 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8307 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
8308 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
8309 | ac_header_preproc=yes | ||
8310 | ;; | ||
8311 | no:yes:* ) | ||
8312 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
8313 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
8314 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
8315 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
8316 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
8317 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
8318 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
8319 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8320 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
8321 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
8322 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
8323 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
8324 | ( cat <<\_ASBOX | ||
8325 | ## ------------------------------------------- ## | ||
8326 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8327 | ## ------------------------------------------- ## | ||
8328 | _ASBOX | ||
8329 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8330 | ;; | ||
8331 | esac | ||
8332 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
8333 | $as_echo_n "checking for $ac_header... " >&6; } | ||
8334 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8335 | $as_echo_n "(cached) " >&6 | ||
8336 | else | ||
8337 | eval "$as_ac_Header=\$ac_header_preproc" | ||
8338 | fi | ||
8339 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
8340 | $as_echo "$as_val"'` | ||
8341 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
8342 | $as_echo "$ac_res" >&6; } | ||
8343 | |||
8344 | fi | ||
8345 | if test `eval 'as_val=${'$as_ac_Header'} | ||
8346 | $as_echo "$as_val"'` = yes; then | ||
8347 | cat >>confdefs.h <<_ACEOF | ||
8348 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
8349 | _ACEOF | ||
8350 | |||
8351 | fi | ||
8352 | |||
8353 | done | ||
8354 | |||
8355 | if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then | ||
8356 | |||
8357 | cat >>confdefs.h <<\_ACEOF | ||
8358 | #define SSH_TUN_LINUX 1 | ||
8359 | _ACEOF | ||
8360 | |||
8361 | |||
8362 | cat >>confdefs.h <<\_ACEOF | ||
8363 | #define SSH_TUN_COMPAT_AF 1 | ||
8364 | _ACEOF | ||
8365 | |||
8366 | |||
8367 | cat >>confdefs.h <<\_ACEOF | ||
8368 | #define SSH_TUN_PREPEND_AF 1 | ||
8369 | _ACEOF | ||
8370 | |||
8371 | fi | ||
8372 | ;; | ||
8373 | mips-sony-bsd|mips-sony-newsos4) | ||
8374 | |||
8375 | cat >>confdefs.h <<\_ACEOF | ||
8376 | #define NEED_SETPGRP 1 | ||
8377 | _ACEOF | ||
8378 | |||
8379 | SONY=1 | ||
8380 | ;; | ||
8381 | *-*-netbsd*) | ||
8382 | check_for_libcrypt_before=1 | ||
8383 | if test "x$withval" != "xno" ; then | ||
8384 | need_dash_r=1 | ||
8385 | fi | ||
8386 | |||
8387 | cat >>confdefs.h <<\_ACEOF | ||
8388 | #define SSH_TUN_FREEBSD 1 | ||
8389 | _ACEOF | ||
8390 | |||
8391 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8392 | { $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8393 | $as_echo_n "checking for net/if_tap.h... " >&6; } | ||
8394 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8395 | $as_echo_n "(cached) " >&6 | ||
8396 | fi | ||
8397 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8398 | $as_echo "$ac_cv_header_net_if_tap_h" >&6; } | ||
8399 | else | ||
8400 | # Is the header compilable? | ||
8401 | { $as_echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8402 | $as_echo_n "checking net/if_tap.h usability... " >&6; } | ||
8403 | cat >conftest.$ac_ext <<_ACEOF | ||
8404 | /* confdefs.h. */ | ||
8405 | _ACEOF | ||
8406 | cat confdefs.h >>conftest.$ac_ext | ||
8407 | cat >>conftest.$ac_ext <<_ACEOF | ||
8408 | /* end confdefs.h. */ | ||
8409 | $ac_includes_default | ||
8410 | #include <net/if_tap.h> | ||
8411 | _ACEOF | ||
8412 | rm -f conftest.$ac_objext | ||
8413 | if { (ac_try="$ac_compile" | ||
8414 | case "(($ac_try" in | ||
8415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8416 | *) ac_try_echo=$ac_try;; | ||
8417 | esac | ||
8418 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8419 | $as_echo "$ac_try_echo") >&5 | ||
8420 | (eval "$ac_compile") 2>conftest.er1 | ||
8421 | ac_status=$? | ||
8422 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8423 | rm -f conftest.er1 | ||
8424 | cat conftest.err >&5 | ||
8425 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8426 | (exit $ac_status); } && { | ||
8427 | test -z "$ac_c_werror_flag" || | ||
8428 | test ! -s conftest.err | ||
8429 | } && test -s conftest.$ac_objext; then | ||
8430 | ac_header_compiler=yes | ||
8431 | else | ||
8432 | $as_echo "$as_me: failed program was:" >&5 | ||
8433 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8434 | |||
8435 | ac_header_compiler=no | ||
8436 | fi | ||
8437 | |||
8438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8439 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8440 | $as_echo "$ac_header_compiler" >&6; } | ||
8441 | |||
8442 | # Is the header present? | ||
8443 | { $as_echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8444 | $as_echo_n "checking net/if_tap.h presence... " >&6; } | ||
8445 | cat >conftest.$ac_ext <<_ACEOF | ||
8446 | /* confdefs.h. */ | ||
8447 | _ACEOF | ||
8448 | cat confdefs.h >>conftest.$ac_ext | ||
8449 | cat >>conftest.$ac_ext <<_ACEOF | ||
8450 | /* end confdefs.h. */ | ||
8451 | #include <net/if_tap.h> | ||
8452 | _ACEOF | ||
8453 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8454 | case "(($ac_try" in | ||
8455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8456 | *) ac_try_echo=$ac_try;; | ||
8457 | esac | ||
8458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8459 | $as_echo "$ac_try_echo") >&5 | ||
8460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8461 | ac_status=$? | ||
8462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8463 | rm -f conftest.er1 | ||
8464 | cat conftest.err >&5 | ||
8465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8466 | (exit $ac_status); } >/dev/null && { | ||
8467 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8468 | test ! -s conftest.err | ||
8469 | }; then | ||
8470 | ac_header_preproc=yes | ||
8471 | else | ||
8472 | $as_echo "$as_me: failed program was:" >&5 | ||
8473 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8474 | |||
8475 | ac_header_preproc=no | ||
8476 | fi | ||
8477 | |||
8478 | rm -f conftest.err conftest.$ac_ext | ||
8479 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8480 | $as_echo "$ac_header_preproc" >&6; } | ||
8481 | |||
8482 | # So? What about this header? | ||
8483 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8484 | yes:no: ) | ||
8485 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8486 | $as_echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8487 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8488 | $as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8489 | ac_header_preproc=yes | ||
8490 | ;; | ||
8491 | no:yes:* ) | ||
8492 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8493 | $as_echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8494 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8495 | $as_echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8496 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8497 | $as_echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8498 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8499 | $as_echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8500 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8501 | $as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8502 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8503 | $as_echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8504 | ( cat <<\_ASBOX | ||
8505 | ## ------------------------------------------- ## | ||
8506 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8507 | ## ------------------------------------------- ## | ||
8508 | _ASBOX | ||
8509 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8510 | ;; | ||
8511 | esac | ||
8512 | { $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8513 | $as_echo_n "checking for net/if_tap.h... " >&6; } | ||
8514 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8515 | $as_echo_n "(cached) " >&6 | ||
8516 | else | ||
8517 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8518 | fi | ||
8519 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8520 | $as_echo "$ac_cv_header_net_if_tap_h" >&6; } | ||
8521 | |||
8522 | fi | ||
8523 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8524 | : | ||
8525 | else | ||
8526 | |||
8527 | cat >>confdefs.h <<\_ACEOF | ||
8528 | #define SSH_TUN_NO_L2 1 | ||
8529 | _ACEOF | ||
8530 | |||
8531 | fi | ||
8532 | |||
8533 | |||
8534 | |||
8535 | cat >>confdefs.h <<\_ACEOF | ||
8536 | #define SSH_TUN_PREPEND_AF 1 | ||
8537 | _ACEOF | ||
8538 | |||
8539 | ;; | ||
8540 | *-*-freebsd*) | ||
8541 | check_for_libcrypt_later=1 | ||
8542 | |||
8543 | cat >>confdefs.h <<\_ACEOF | ||
8544 | #define LOCKED_PASSWD_PREFIX "*LOCKED*" | ||
8545 | _ACEOF | ||
8546 | |||
8547 | |||
8548 | cat >>confdefs.h <<\_ACEOF | ||
8549 | #define SSH_TUN_FREEBSD 1 | ||
8550 | _ACEOF | ||
8551 | |||
8552 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8553 | { $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8554 | $as_echo_n "checking for net/if_tap.h... " >&6; } | ||
8555 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8556 | $as_echo_n "(cached) " >&6 | ||
8557 | fi | ||
8558 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8559 | $as_echo "$ac_cv_header_net_if_tap_h" >&6; } | ||
8560 | else | ||
8561 | # Is the header compilable? | ||
8562 | { $as_echo "$as_me:$LINENO: checking net/if_tap.h usability" >&5 | ||
8563 | $as_echo_n "checking net/if_tap.h usability... " >&6; } | ||
8564 | cat >conftest.$ac_ext <<_ACEOF | ||
8565 | /* confdefs.h. */ | ||
8566 | _ACEOF | ||
8567 | cat confdefs.h >>conftest.$ac_ext | ||
8568 | cat >>conftest.$ac_ext <<_ACEOF | ||
8569 | /* end confdefs.h. */ | ||
8570 | $ac_includes_default | ||
8571 | #include <net/if_tap.h> | ||
8572 | _ACEOF | ||
8573 | rm -f conftest.$ac_objext | ||
8574 | if { (ac_try="$ac_compile" | ||
8575 | case "(($ac_try" in | ||
8576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8577 | *) ac_try_echo=$ac_try;; | ||
8578 | esac | ||
8579 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8580 | $as_echo "$ac_try_echo") >&5 | ||
8581 | (eval "$ac_compile") 2>conftest.er1 | ||
8582 | ac_status=$? | ||
8583 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8584 | rm -f conftest.er1 | ||
8585 | cat conftest.err >&5 | ||
8586 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8587 | (exit $ac_status); } && { | ||
8588 | test -z "$ac_c_werror_flag" || | ||
8589 | test ! -s conftest.err | ||
8590 | } && test -s conftest.$ac_objext; then | ||
8591 | ac_header_compiler=yes | ||
8592 | else | ||
8593 | $as_echo "$as_me: failed program was:" >&5 | ||
8594 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8595 | |||
8596 | ac_header_compiler=no | ||
8597 | fi | ||
8598 | |||
8599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
8600 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
8601 | $as_echo "$ac_header_compiler" >&6; } | ||
8602 | |||
8603 | # Is the header present? | ||
8604 | { $as_echo "$as_me:$LINENO: checking net/if_tap.h presence" >&5 | ||
8605 | $as_echo_n "checking net/if_tap.h presence... " >&6; } | ||
8606 | cat >conftest.$ac_ext <<_ACEOF | ||
8607 | /* confdefs.h. */ | ||
8608 | _ACEOF | ||
8609 | cat confdefs.h >>conftest.$ac_ext | ||
8610 | cat >>conftest.$ac_ext <<_ACEOF | ||
8611 | /* end confdefs.h. */ | ||
8612 | #include <net/if_tap.h> | ||
8613 | _ACEOF | ||
8614 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
8615 | case "(($ac_try" in | ||
8616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8617 | *) ac_try_echo=$ac_try;; | ||
8618 | esac | ||
8619 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8620 | $as_echo "$ac_try_echo") >&5 | ||
8621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
8622 | ac_status=$? | ||
8623 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8624 | rm -f conftest.er1 | ||
8625 | cat conftest.err >&5 | ||
8626 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8627 | (exit $ac_status); } >/dev/null && { | ||
8628 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
8629 | test ! -s conftest.err | ||
8630 | }; then | ||
8631 | ac_header_preproc=yes | ||
8632 | else | ||
8633 | $as_echo "$as_me: failed program was:" >&5 | ||
8634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8635 | |||
8636 | ac_header_preproc=no | ||
8637 | fi | ||
8638 | |||
8639 | rm -f conftest.err conftest.$ac_ext | ||
8640 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
8641 | $as_echo "$ac_header_preproc" >&6; } | ||
8642 | |||
8643 | # So? What about this header? | ||
8644 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
8645 | yes:no: ) | ||
8646 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
8647 | $as_echo "$as_me: WARNING: net/if_tap.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
8648 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the compiler's result" >&5 | ||
8649 | $as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the compiler's result" >&2;} | ||
8650 | ac_header_preproc=yes | ||
8651 | ;; | ||
8652 | no:yes:* ) | ||
8653 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: present but cannot be compiled" >&5 | ||
8654 | $as_echo "$as_me: WARNING: net/if_tap.h: present but cannot be compiled" >&2;} | ||
8655 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&5 | ||
8656 | $as_echo "$as_me: WARNING: net/if_tap.h: check for missing prerequisite headers?" >&2;} | ||
8657 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: see the Autoconf documentation" >&5 | ||
8658 | $as_echo "$as_me: WARNING: net/if_tap.h: see the Autoconf documentation" >&2;} | ||
8659 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
8660 | $as_echo "$as_me: WARNING: net/if_tap.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
8661 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&5 | ||
8662 | $as_echo "$as_me: WARNING: net/if_tap.h: proceeding with the preprocessor's result" >&2;} | ||
8663 | { $as_echo "$as_me:$LINENO: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&5 | ||
8664 | $as_echo "$as_me: WARNING: net/if_tap.h: in the future, the compiler will take precedence" >&2;} | ||
8665 | ( cat <<\_ASBOX | ||
8666 | ## ------------------------------------------- ## | ||
8667 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
8668 | ## ------------------------------------------- ## | ||
8669 | _ASBOX | ||
8670 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
8671 | ;; | ||
8672 | esac | ||
8673 | { $as_echo "$as_me:$LINENO: checking for net/if_tap.h" >&5 | ||
8674 | $as_echo_n "checking for net/if_tap.h... " >&6; } | ||
8675 | if test "${ac_cv_header_net_if_tap_h+set}" = set; then | ||
8676 | $as_echo_n "(cached) " >&6 | ||
8677 | else | ||
8678 | ac_cv_header_net_if_tap_h=$ac_header_preproc | ||
8679 | fi | ||
8680 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tap_h" >&5 | ||
8681 | $as_echo "$ac_cv_header_net_if_tap_h" >&6; } | ||
8682 | |||
8683 | fi | ||
8684 | if test $ac_cv_header_net_if_tap_h = yes; then | ||
8685 | : | ||
8686 | else | ||
8687 | |||
8688 | cat >>confdefs.h <<\_ACEOF | ||
8689 | #define SSH_TUN_NO_L2 1 | ||
8690 | _ACEOF | ||
8691 | |||
8692 | fi | ||
8693 | |||
8694 | |||
8695 | |||
8696 | cat >>confdefs.h <<\_ACEOF | ||
8697 | #define BROKEN_GLOB 1 | ||
8698 | _ACEOF | ||
8699 | |||
8700 | ;; | ||
8701 | *-*-bsdi*) | ||
8702 | cat >>confdefs.h <<\_ACEOF | ||
8703 | #define SETEUID_BREAKS_SETUID 1 | ||
8704 | _ACEOF | ||
8705 | |||
8706 | cat >>confdefs.h <<\_ACEOF | ||
8707 | #define BROKEN_SETREUID 1 | ||
8708 | _ACEOF | ||
8709 | |||
8710 | cat >>confdefs.h <<\_ACEOF | ||
8711 | #define BROKEN_SETREGID 1 | ||
8712 | _ACEOF | ||
8713 | |||
8714 | ;; | ||
8715 | *-next-*) | ||
8716 | conf_lastlog_location="/usr/adm/lastlog" | ||
8717 | conf_utmp_location=/etc/utmp | ||
8718 | conf_wtmp_location=/usr/adm/wtmp | ||
8719 | MAIL=/usr/spool/mail | ||
8720 | |||
8721 | cat >>confdefs.h <<\_ACEOF | ||
8722 | #define HAVE_NEXT 1 | ||
8723 | _ACEOF | ||
8724 | |||
8725 | cat >>confdefs.h <<\_ACEOF | ||
8726 | #define BROKEN_REALPATH 1 | ||
8727 | _ACEOF | ||
8728 | |||
8729 | cat >>confdefs.h <<\_ACEOF | ||
8730 | #define USE_PIPES 1 | ||
8731 | _ACEOF | ||
8732 | |||
8733 | |||
8734 | cat >>confdefs.h <<\_ACEOF | ||
8735 | #define BROKEN_SAVED_UIDS 1 | ||
8736 | _ACEOF | ||
8737 | |||
8738 | ;; | ||
8739 | *-*-openbsd*) | ||
8740 | |||
8741 | cat >>confdefs.h <<\_ACEOF | ||
8742 | #define HAVE_ATTRIBUTE__SENTINEL__ 1 | ||
8743 | _ACEOF | ||
8744 | |||
8745 | |||
8746 | cat >>confdefs.h <<\_ACEOF | ||
8747 | #define HAVE_ATTRIBUTE__BOUNDED__ 1 | ||
8748 | _ACEOF | ||
8749 | |||
8750 | |||
8751 | cat >>confdefs.h <<\_ACEOF | ||
8752 | #define SSH_TUN_OPENBSD 1 | ||
8753 | _ACEOF | ||
8754 | |||
8755 | |||
8756 | cat >>confdefs.h <<\_ACEOF | ||
8757 | #define SYSLOG_R_SAFE_IN_SIGHAND 1 | ||
8758 | _ACEOF | ||
8759 | |||
8760 | ;; | ||
8761 | *-*-solaris*) | ||
8762 | if test "x$withval" != "xno" ; then | ||
8763 | need_dash_r=1 | ||
8764 | fi | ||
8765 | cat >>confdefs.h <<\_ACEOF | ||
8766 | #define PAM_SUN_CODEBASE 1 | ||
8767 | _ACEOF | ||
8768 | |||
8769 | cat >>confdefs.h <<\_ACEOF | ||
8770 | #define LOGIN_NEEDS_UTMPX 1 | ||
8771 | _ACEOF | ||
8772 | |||
8773 | |||
8774 | cat >>confdefs.h <<\_ACEOF | ||
8775 | #define LOGIN_NEEDS_TERM 1 | ||
8776 | _ACEOF | ||
8777 | |||
8778 | cat >>confdefs.h <<\_ACEOF | ||
8779 | #define PAM_TTY_KLUDGE 1 | ||
8780 | _ACEOF | ||
8781 | |||
8782 | |||
8783 | cat >>confdefs.h <<\_ACEOF | ||
8784 | #define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 | ||
8785 | _ACEOF | ||
8786 | |||
8787 | cat >>confdefs.h <<\_ACEOF | ||
8788 | #define LOCKED_PASSWD_STRING "*LK*" | ||
8789 | _ACEOF | ||
8790 | |||
8791 | # Pushing STREAMS modules will cause sshd to acquire a controlling tty. | ||
8792 | |||
8793 | cat >>confdefs.h <<\_ACEOF | ||
8794 | #define SSHD_ACQUIRES_CTTY 1 | ||
8795 | _ACEOF | ||
8796 | |||
8797 | |||
8798 | cat >>confdefs.h <<\_ACEOF | ||
8799 | #define PASSWD_NEEDS_USERNAME 1 | ||
8800 | _ACEOF | ||
8801 | |||
8802 | |||
8803 | cat >>confdefs.h <<\_ACEOF | ||
8804 | #define BROKEN_TCGETATTR_ICANON 1 | ||
8805 | _ACEOF | ||
8806 | |||
8807 | external_path_file=/etc/default/login | ||
8808 | # hardwire lastlog location (can't detect it on some versions) | ||
8809 | conf_lastlog_location="/var/adm/lastlog" | ||
8810 | { $as_echo "$as_me:$LINENO: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
8811 | $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; } | ||
8812 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
8813 | if test "$sol2ver" -ge 8; then | ||
8814 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
8815 | $as_echo "yes" >&6; } | ||
8816 | cat >>confdefs.h <<\_ACEOF | ||
8817 | #define DISABLE_UTMP 1 | ||
8818 | _ACEOF | ||
8819 | |||
8820 | |||
8821 | cat >>confdefs.h <<\_ACEOF | ||
8822 | #define DISABLE_WTMP 1 | ||
8823 | _ACEOF | ||
8824 | |||
8825 | else | ||
8826 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
8827 | $as_echo "no" >&6; } | ||
8828 | fi | ||
8829 | |||
8830 | # Check whether --with-solaris-contracts was given. | ||
8831 | if test "${with_solaris_contracts+set}" = set; then | ||
8832 | withval=$with_solaris_contracts; | ||
8833 | { $as_echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5 | ||
8834 | $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; } | ||
8835 | if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then | ||
8836 | $as_echo_n "(cached) " >&6 | ||
8837 | else | ||
8838 | ac_check_lib_save_LIBS=$LIBS | ||
8839 | LIBS="-lcontract $LIBS" | ||
8840 | cat >conftest.$ac_ext <<_ACEOF | ||
8841 | /* confdefs.h. */ | ||
8842 | _ACEOF | ||
8843 | cat confdefs.h >>conftest.$ac_ext | ||
8844 | cat >>conftest.$ac_ext <<_ACEOF | ||
8845 | /* end confdefs.h. */ | ||
8846 | |||
8847 | /* Override any GCC internal prototype to avoid an error. | ||
8848 | Use char because int might match the return type of a GCC | ||
8849 | builtin and then its argument prototype would still apply. */ | ||
8850 | #ifdef __cplusplus | ||
8851 | extern "C" | ||
8852 | #endif | ||
8853 | char ct_tmpl_activate (); | ||
8854 | int | ||
8855 | main () | ||
8856 | { | ||
8857 | return ct_tmpl_activate (); | ||
8858 | ; | ||
8859 | return 0; | ||
8860 | } | ||
8861 | _ACEOF | ||
8862 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8863 | if { (ac_try="$ac_link" | ||
8864 | case "(($ac_try" in | ||
8865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8866 | *) ac_try_echo=$ac_try;; | ||
8867 | esac | ||
8868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8869 | $as_echo "$ac_try_echo") >&5 | ||
8870 | (eval "$ac_link") 2>conftest.er1 | ||
8871 | ac_status=$? | ||
8872 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8873 | rm -f conftest.er1 | ||
8874 | cat conftest.err >&5 | ||
8875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8876 | (exit $ac_status); } && { | ||
8877 | test -z "$ac_c_werror_flag" || | ||
8878 | test ! -s conftest.err | ||
8879 | } && test -s conftest$ac_exeext && { | ||
8880 | test "$cross_compiling" = yes || | ||
8881 | $as_test_x conftest$ac_exeext | ||
8882 | }; then | ||
8883 | ac_cv_lib_contract_ct_tmpl_activate=yes | ||
8884 | else | ||
8885 | $as_echo "$as_me: failed program was:" >&5 | ||
8886 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8887 | |||
8888 | ac_cv_lib_contract_ct_tmpl_activate=no | ||
8889 | fi | ||
8890 | |||
8891 | rm -rf conftest.dSYM | ||
8892 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8893 | conftest$ac_exeext conftest.$ac_ext | ||
8894 | LIBS=$ac_check_lib_save_LIBS | ||
8895 | fi | ||
8896 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5 | ||
8897 | $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; } | ||
8898 | if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then | ||
8899 | |||
8900 | cat >>confdefs.h <<\_ACEOF | ||
8901 | #define USE_SOLARIS_PROCESS_CONTRACTS 1 | ||
8902 | _ACEOF | ||
8903 | |||
8904 | SSHDLIBS="$SSHDLIBS -lcontract" | ||
8905 | |||
8906 | SPC_MSG="yes" | ||
8907 | fi | ||
8908 | |||
8909 | |||
8910 | fi | ||
8911 | |||
8912 | ;; | ||
8913 | *-*-sunos4*) | ||
8914 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
8915 | |||
8916 | for ac_func in getpwanam | ||
8917 | do | ||
8918 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
8919 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
8920 | $as_echo_n "checking for $ac_func... " >&6; } | ||
8921 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
8922 | $as_echo_n "(cached) " >&6 | ||
8923 | else | ||
8924 | cat >conftest.$ac_ext <<_ACEOF | ||
8925 | /* confdefs.h. */ | ||
8926 | _ACEOF | ||
8927 | cat confdefs.h >>conftest.$ac_ext | ||
8928 | cat >>conftest.$ac_ext <<_ACEOF | ||
8929 | /* end confdefs.h. */ | ||
8930 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
8931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8932 | #define $ac_func innocuous_$ac_func | ||
8933 | |||
8934 | /* System header to define __stub macros and hopefully few prototypes, | ||
8935 | which can conflict with char $ac_func (); below. | ||
8936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8937 | <limits.h> exists even on freestanding compilers. */ | ||
8938 | |||
8939 | #ifdef __STDC__ | ||
8940 | # include <limits.h> | ||
8941 | #else | ||
8942 | # include <assert.h> | ||
8943 | #endif | ||
8944 | |||
8945 | #undef $ac_func | ||
8946 | |||
8947 | /* Override any GCC internal prototype to avoid an error. | ||
8948 | Use char because int might match the return type of a GCC | ||
8949 | builtin and then its argument prototype would still apply. */ | ||
8950 | #ifdef __cplusplus | ||
8951 | extern "C" | ||
8952 | #endif | ||
8953 | char $ac_func (); | ||
8954 | /* The GNU C library defines this for functions which it implements | ||
8955 | to always fail with ENOSYS. Some functions are actually named | ||
8956 | something starting with __ and the normal name is an alias. */ | ||
8957 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
8958 | choke me | ||
8959 | #endif | ||
8960 | |||
8961 | int | ||
8962 | main () | ||
8963 | { | ||
8964 | return $ac_func (); | ||
8965 | ; | ||
8966 | return 0; | ||
8967 | } | ||
8968 | _ACEOF | ||
8969 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8970 | if { (ac_try="$ac_link" | ||
8971 | case "(($ac_try" in | ||
8972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8973 | *) ac_try_echo=$ac_try;; | ||
8974 | esac | ||
8975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
8976 | $as_echo "$ac_try_echo") >&5 | ||
8977 | (eval "$ac_link") 2>conftest.er1 | ||
8978 | ac_status=$? | ||
8979 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8980 | rm -f conftest.er1 | ||
8981 | cat conftest.err >&5 | ||
8982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8983 | (exit $ac_status); } && { | ||
8984 | test -z "$ac_c_werror_flag" || | ||
8985 | test ! -s conftest.err | ||
8986 | } && test -s conftest$ac_exeext && { | ||
8987 | test "$cross_compiling" = yes || | ||
8988 | $as_test_x conftest$ac_exeext | ||
8989 | }; then | ||
8990 | eval "$as_ac_var=yes" | ||
8991 | else | ||
8992 | $as_echo "$as_me: failed program was:" >&5 | ||
8993 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8994 | |||
8995 | eval "$as_ac_var=no" | ||
8996 | fi | ||
8997 | |||
8998 | rm -rf conftest.dSYM | ||
8999 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9000 | conftest$ac_exeext conftest.$ac_ext | ||
9001 | fi | ||
9002 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
9003 | $as_echo "$as_val"'` | ||
9004 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9005 | $as_echo "$ac_res" >&6; } | ||
9006 | if test `eval 'as_val=${'$as_ac_var'} | ||
9007 | $as_echo "$as_val"'` = yes; then | ||
9008 | cat >>confdefs.h <<_ACEOF | ||
9009 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9010 | _ACEOF | ||
9011 | |||
9012 | fi | ||
9013 | done | ||
9014 | |||
9015 | cat >>confdefs.h <<\_ACEOF | ||
9016 | #define PAM_SUN_CODEBASE 1 | ||
9017 | _ACEOF | ||
9018 | |||
9019 | conf_utmp_location=/etc/utmp | ||
9020 | conf_wtmp_location=/var/adm/wtmp | ||
9021 | conf_lastlog_location=/var/adm/lastlog | ||
9022 | cat >>confdefs.h <<\_ACEOF | ||
9023 | #define USE_PIPES 1 | ||
9024 | _ACEOF | ||
9025 | |||
9026 | ;; | ||
9027 | *-ncr-sysv*) | ||
9028 | LIBS="$LIBS -lc89" | ||
9029 | cat >>confdefs.h <<\_ACEOF | ||
9030 | #define USE_PIPES 1 | ||
9031 | _ACEOF | ||
9032 | |||
9033 | cat >>confdefs.h <<\_ACEOF | ||
9034 | #define SSHD_ACQUIRES_CTTY 1 | ||
9035 | _ACEOF | ||
9036 | |||
9037 | cat >>confdefs.h <<\_ACEOF | ||
9038 | #define SETEUID_BREAKS_SETUID 1 | ||
9039 | _ACEOF | ||
9040 | |||
9041 | cat >>confdefs.h <<\_ACEOF | ||
9042 | #define BROKEN_SETREUID 1 | ||
9043 | _ACEOF | ||
9044 | |||
9045 | cat >>confdefs.h <<\_ACEOF | ||
9046 | #define BROKEN_SETREGID 1 | ||
9047 | _ACEOF | ||
9048 | |||
9049 | ;; | ||
9050 | *-sni-sysv*) | ||
9051 | # /usr/ucblib MUST NOT be searched on ReliantUNIX | ||
9052 | |||
9053 | { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 | ||
9054 | $as_echo_n "checking for dlsym in -ldl... " >&6; } | ||
9055 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then | ||
9056 | $as_echo_n "(cached) " >&6 | ||
9057 | else | ||
9058 | ac_check_lib_save_LIBS=$LIBS | ||
9059 | LIBS="-ldl $LIBS" | ||
9060 | cat >conftest.$ac_ext <<_ACEOF | ||
9061 | /* confdefs.h. */ | ||
9062 | _ACEOF | ||
9063 | cat confdefs.h >>conftest.$ac_ext | ||
9064 | cat >>conftest.$ac_ext <<_ACEOF | ||
9065 | /* end confdefs.h. */ | ||
9066 | |||
9067 | /* Override any GCC internal prototype to avoid an error. | ||
9068 | Use char because int might match the return type of a GCC | ||
9069 | builtin and then its argument prototype would still apply. */ | ||
9070 | #ifdef __cplusplus | ||
9071 | extern "C" | ||
9072 | #endif | ||
9073 | char dlsym (); | ||
9074 | int | ||
9075 | main () | ||
9076 | { | ||
9077 | return dlsym (); | ||
9078 | ; | ||
9079 | return 0; | ||
9080 | } | ||
9081 | _ACEOF | ||
9082 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9083 | if { (ac_try="$ac_link" | ||
9084 | case "(($ac_try" in | ||
9085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9086 | *) ac_try_echo=$ac_try;; | ||
9087 | esac | ||
9088 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
9089 | $as_echo "$ac_try_echo") >&5 | ||
9090 | (eval "$ac_link") 2>conftest.er1 | ||
9091 | ac_status=$? | ||
9092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9093 | rm -f conftest.er1 | ||
9094 | cat conftest.err >&5 | ||
9095 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9096 | (exit $ac_status); } && { | ||
9097 | test -z "$ac_c_werror_flag" || | ||
9098 | test ! -s conftest.err | ||
9099 | } && test -s conftest$ac_exeext && { | ||
9100 | test "$cross_compiling" = yes || | ||
9101 | $as_test_x conftest$ac_exeext | ||
9102 | }; then | ||
9103 | ac_cv_lib_dl_dlsym=yes | ||
9104 | else | ||
9105 | $as_echo "$as_me: failed program was:" >&5 | ||
9106 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9107 | |||
9108 | ac_cv_lib_dl_dlsym=no | ||
9109 | fi | ||
9110 | |||
9111 | rm -rf conftest.dSYM | ||
9112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9113 | conftest$ac_exeext conftest.$ac_ext | ||
9114 | LIBS=$ac_check_lib_save_LIBS | ||
9115 | fi | ||
9116 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 | ||
9117 | $as_echo "$ac_cv_lib_dl_dlsym" >&6; } | ||
9118 | if test $ac_cv_lib_dl_dlsym = yes; then | ||
9119 | cat >>confdefs.h <<_ACEOF | ||
9120 | #define HAVE_LIBDL 1 | ||
9121 | _ACEOF | ||
9122 | |||
9123 | LIBS="-ldl $LIBS" | ||
9124 | |||
9125 | fi | ||
9126 | |||
9127 | # -lresolv needs to be at the end of LIBS or DNS lookups break | ||
9128 | { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
9129 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
9130 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then | ||
9131 | $as_echo_n "(cached) " >&6 | ||
9132 | else | ||
9133 | ac_check_lib_save_LIBS=$LIBS | ||
9134 | LIBS="-lresolv $LIBS" | ||
9135 | cat >conftest.$ac_ext <<_ACEOF | ||
9136 | /* confdefs.h. */ | ||
9137 | _ACEOF | ||
9138 | cat confdefs.h >>conftest.$ac_ext | ||
9139 | cat >>conftest.$ac_ext <<_ACEOF | ||
9140 | /* end confdefs.h. */ | ||
9141 | |||
9142 | /* Override any GCC internal prototype to avoid an error. | ||
9143 | Use char because int might match the return type of a GCC | ||
9144 | builtin and then its argument prototype would still apply. */ | ||
9145 | #ifdef __cplusplus | ||
9146 | extern "C" | ||
9147 | #endif | ||
9148 | char res_query (); | ||
9149 | int | ||
9150 | main () | ||
9151 | { | ||
9152 | return res_query (); | ||
9153 | ; | ||
9154 | return 0; | ||
9155 | } | ||
9156 | _ACEOF | ||
9157 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9158 | if { (ac_try="$ac_link" | ||
9159 | case "(($ac_try" in | ||
9160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9161 | *) ac_try_echo=$ac_try;; | ||
9162 | esac | ||
9163 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
9164 | $as_echo "$ac_try_echo") >&5 | ||
9165 | (eval "$ac_link") 2>conftest.er1 | ||
9166 | ac_status=$? | ||
9167 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9168 | rm -f conftest.er1 | ||
9169 | cat conftest.err >&5 | ||
9170 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9171 | (exit $ac_status); } && { | ||
9172 | test -z "$ac_c_werror_flag" || | ||
9173 | test ! -s conftest.err | ||
9174 | } && test -s conftest$ac_exeext && { | ||
9175 | test "$cross_compiling" = yes || | ||
9176 | $as_test_x conftest$ac_exeext | ||
9177 | }; then | ||
9178 | ac_cv_lib_resolv_res_query=yes | ||
9179 | else | ||
9180 | $as_echo "$as_me: failed program was:" >&5 | ||
9181 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9182 | |||
9183 | ac_cv_lib_resolv_res_query=no | ||
9184 | fi | ||
9185 | |||
9186 | rm -rf conftest.dSYM | ||
9187 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9188 | conftest$ac_exeext conftest.$ac_ext | ||
9189 | LIBS=$ac_check_lib_save_LIBS | ||
9190 | fi | ||
9191 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 | ||
9192 | $as_echo "$ac_cv_lib_resolv_res_query" >&6; } | ||
9193 | if test $ac_cv_lib_resolv_res_query = yes; then | ||
9194 | LIBS="$LIBS -lresolv" | ||
9195 | fi | ||
9196 | |||
9197 | IPADDR_IN_DISPLAY=yes | ||
9198 | cat >>confdefs.h <<\_ACEOF | ||
9199 | #define USE_PIPES 1 | ||
9200 | _ACEOF | ||
9201 | |||
9202 | cat >>confdefs.h <<\_ACEOF | ||
9203 | #define IP_TOS_IS_BROKEN 1 | ||
9204 | _ACEOF | ||
9205 | |||
9206 | cat >>confdefs.h <<\_ACEOF | ||
9207 | #define SETEUID_BREAKS_SETUID 1 | ||
9208 | _ACEOF | ||
9209 | |||
9210 | cat >>confdefs.h <<\_ACEOF | ||
9211 | #define BROKEN_SETREUID 1 | ||
9212 | _ACEOF | ||
9213 | |||
9214 | cat >>confdefs.h <<\_ACEOF | ||
9215 | #define BROKEN_SETREGID 1 | ||
9216 | _ACEOF | ||
9217 | |||
9218 | cat >>confdefs.h <<\_ACEOF | ||
9219 | #define SSHD_ACQUIRES_CTTY 1 | ||
9220 | _ACEOF | ||
9221 | |||
9222 | external_path_file=/etc/default/login | ||
9223 | # /usr/ucblib/libucb.a no longer needed on ReliantUNIX | ||
9224 | # Attention: always take care to bind libsocket and libnsl before libc, | ||
9225 | # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog | ||
9226 | ;; | ||
9227 | # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. | ||
9228 | *-*-sysv4.2*) | ||
9229 | cat >>confdefs.h <<\_ACEOF | ||
9230 | #define USE_PIPES 1 | ||
9231 | _ACEOF | ||
9232 | |||
9233 | cat >>confdefs.h <<\_ACEOF | ||
9234 | #define SETEUID_BREAKS_SETUID 1 | ||
9235 | _ACEOF | ||
9236 | |||
9237 | cat >>confdefs.h <<\_ACEOF | ||
9238 | #define BROKEN_SETREUID 1 | ||
9239 | _ACEOF | ||
9240 | |||
9241 | cat >>confdefs.h <<\_ACEOF | ||
9242 | #define BROKEN_SETREGID 1 | ||
9243 | _ACEOF | ||
9244 | |||
9245 | |||
9246 | cat >>confdefs.h <<\_ACEOF | ||
9247 | #define PASSWD_NEEDS_USERNAME 1 | ||
9248 | _ACEOF | ||
9249 | |||
9250 | cat >>confdefs.h <<\_ACEOF | ||
9251 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9252 | _ACEOF | ||
9253 | |||
9254 | ;; | ||
9255 | # UnixWare 7.x, OpenUNIX 8 | ||
9256 | *-*-sysv5*) | ||
9257 | |||
9258 | cat >>confdefs.h <<\_ACEOF | ||
9259 | #define UNIXWARE_LONG_PASSWORDS 1 | ||
9260 | _ACEOF | ||
9261 | |||
9262 | cat >>confdefs.h <<\_ACEOF | ||
9263 | #define USE_PIPES 1 | ||
9264 | _ACEOF | ||
9265 | |||
9266 | cat >>confdefs.h <<\_ACEOF | ||
9267 | #define SETEUID_BREAKS_SETUID 1 | ||
9268 | _ACEOF | ||
9269 | |||
9270 | cat >>confdefs.h <<\_ACEOF | ||
9271 | #define BROKEN_SETREUID 1 | ||
9272 | _ACEOF | ||
9273 | |||
9274 | cat >>confdefs.h <<\_ACEOF | ||
9275 | #define BROKEN_SETREGID 1 | ||
9276 | _ACEOF | ||
9277 | |||
9278 | cat >>confdefs.h <<\_ACEOF | ||
9279 | #define PASSWD_NEEDS_USERNAME 1 | ||
9280 | _ACEOF | ||
9281 | |||
9282 | case "$host" in | ||
9283 | *-*-sysv5SCO_SV*) # SCO OpenServer 6.x | ||
9284 | TEST_SHELL=/u95/bin/sh | ||
9285 | |||
9286 | cat >>confdefs.h <<\_ACEOF | ||
9287 | #define BROKEN_LIBIAF 1 | ||
9288 | _ACEOF | ||
9289 | |||
9290 | cat >>confdefs.h <<\_ACEOF | ||
9291 | #define BROKEN_UPDWTMPX 1 | ||
9292 | _ACEOF | ||
9293 | |||
9294 | { $as_echo "$as_me:$LINENO: checking for getluid in -lprot" >&5 | ||
9295 | $as_echo_n "checking for getluid in -lprot... " >&6; } | ||
9296 | if test "${ac_cv_lib_prot_getluid+set}" = set; then | ||
9297 | $as_echo_n "(cached) " >&6 | ||
9298 | else | ||
9299 | ac_check_lib_save_LIBS=$LIBS | ||
9300 | LIBS="-lprot $LIBS" | ||
9301 | cat >conftest.$ac_ext <<_ACEOF | ||
9302 | /* confdefs.h. */ | ||
9303 | _ACEOF | ||
9304 | cat confdefs.h >>conftest.$ac_ext | ||
9305 | cat >>conftest.$ac_ext <<_ACEOF | ||
9306 | /* end confdefs.h. */ | ||
9307 | |||
9308 | /* Override any GCC internal prototype to avoid an error. | ||
9309 | Use char because int might match the return type of a GCC | ||
9310 | builtin and then its argument prototype would still apply. */ | ||
9311 | #ifdef __cplusplus | ||
9312 | extern "C" | ||
9313 | #endif | ||
9314 | char getluid (); | ||
9315 | int | ||
9316 | main () | ||
9317 | { | ||
9318 | return getluid (); | ||
9319 | ; | ||
9320 | return 0; | ||
9321 | } | ||
9322 | _ACEOF | ||
9323 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9324 | if { (ac_try="$ac_link" | ||
9325 | case "(($ac_try" in | ||
9326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9327 | *) ac_try_echo=$ac_try;; | ||
9328 | esac | ||
9329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
9330 | $as_echo "$ac_try_echo") >&5 | ||
9331 | (eval "$ac_link") 2>conftest.er1 | ||
9332 | ac_status=$? | ||
9333 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9334 | rm -f conftest.er1 | ||
9335 | cat conftest.err >&5 | ||
9336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9337 | (exit $ac_status); } && { | ||
9338 | test -z "$ac_c_werror_flag" || | ||
9339 | test ! -s conftest.err | ||
9340 | } && test -s conftest$ac_exeext && { | ||
9341 | test "$cross_compiling" = yes || | ||
9342 | $as_test_x conftest$ac_exeext | ||
9343 | }; then | ||
9344 | ac_cv_lib_prot_getluid=yes | ||
9345 | else | ||
9346 | $as_echo "$as_me: failed program was:" >&5 | ||
9347 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9348 | |||
9349 | ac_cv_lib_prot_getluid=no | ||
9350 | fi | ||
9351 | |||
9352 | rm -rf conftest.dSYM | ||
9353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9354 | conftest$ac_exeext conftest.$ac_ext | ||
9355 | LIBS=$ac_check_lib_save_LIBS | ||
9356 | fi | ||
9357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getluid" >&5 | ||
9358 | $as_echo "$ac_cv_lib_prot_getluid" >&6; } | ||
9359 | if test $ac_cv_lib_prot_getluid = yes; then | ||
9360 | LIBS="$LIBS -lprot" | ||
9361 | |||
9362 | |||
9363 | for ac_func in getluid setluid | ||
9364 | do | ||
9365 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9366 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9367 | $as_echo_n "checking for $ac_func... " >&6; } | ||
9368 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9369 | $as_echo_n "(cached) " >&6 | ||
9370 | else | ||
9371 | cat >conftest.$ac_ext <<_ACEOF | ||
9372 | /* confdefs.h. */ | ||
9373 | _ACEOF | ||
9374 | cat confdefs.h >>conftest.$ac_ext | ||
9375 | cat >>conftest.$ac_ext <<_ACEOF | ||
9376 | /* end confdefs.h. */ | ||
9377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9379 | #define $ac_func innocuous_$ac_func | ||
9380 | |||
9381 | /* System header to define __stub macros and hopefully few prototypes, | ||
9382 | which can conflict with char $ac_func (); below. | ||
9383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9384 | <limits.h> exists even on freestanding compilers. */ | ||
9385 | |||
9386 | #ifdef __STDC__ | ||
9387 | # include <limits.h> | ||
9388 | #else | ||
9389 | # include <assert.h> | ||
9390 | #endif | ||
9391 | |||
9392 | #undef $ac_func | ||
9393 | |||
9394 | /* Override any GCC internal prototype to avoid an error. | ||
9395 | Use char because int might match the return type of a GCC | ||
9396 | builtin and then its argument prototype would still apply. */ | ||
9397 | #ifdef __cplusplus | ||
9398 | extern "C" | ||
9399 | #endif | ||
9400 | char $ac_func (); | ||
9401 | /* The GNU C library defines this for functions which it implements | ||
9402 | to always fail with ENOSYS. Some functions are actually named | ||
9403 | something starting with __ and the normal name is an alias. */ | ||
9404 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9405 | choke me | ||
9406 | #endif | ||
9407 | |||
9408 | int | ||
9409 | main () | ||
9410 | { | ||
9411 | return $ac_func (); | ||
9412 | ; | ||
9413 | return 0; | ||
9414 | } | ||
9415 | _ACEOF | ||
9416 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9417 | if { (ac_try="$ac_link" | ||
9418 | case "(($ac_try" in | ||
9419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9420 | *) ac_try_echo=$ac_try;; | ||
9421 | esac | ||
9422 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
9423 | $as_echo "$ac_try_echo") >&5 | ||
9424 | (eval "$ac_link") 2>conftest.er1 | ||
9425 | ac_status=$? | ||
9426 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9427 | rm -f conftest.er1 | ||
9428 | cat conftest.err >&5 | ||
9429 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9430 | (exit $ac_status); } && { | ||
9431 | test -z "$ac_c_werror_flag" || | ||
9432 | test ! -s conftest.err | ||
9433 | } && test -s conftest$ac_exeext && { | ||
9434 | test "$cross_compiling" = yes || | ||
9435 | $as_test_x conftest$ac_exeext | ||
9436 | }; then | ||
9437 | eval "$as_ac_var=yes" | ||
9438 | else | ||
9439 | $as_echo "$as_me: failed program was:" >&5 | ||
9440 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9441 | |||
9442 | eval "$as_ac_var=no" | ||
9443 | fi | ||
9444 | |||
9445 | rm -rf conftest.dSYM | ||
9446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9447 | conftest$ac_exeext conftest.$ac_ext | ||
9448 | fi | ||
9449 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
9450 | $as_echo "$as_val"'` | ||
9451 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9452 | $as_echo "$ac_res" >&6; } | ||
9453 | if test `eval 'as_val=${'$as_ac_var'} | ||
9454 | $as_echo "$as_val"'` = yes; then | ||
9455 | cat >>confdefs.h <<_ACEOF | ||
9456 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9457 | _ACEOF | ||
9458 | |||
9459 | fi | ||
9460 | done | ||
9461 | |||
9462 | cat >>confdefs.h <<\_ACEOF | ||
9463 | #define HAVE_SECUREWARE 1 | ||
9464 | _ACEOF | ||
9465 | |||
9466 | cat >>confdefs.h <<\_ACEOF | ||
9467 | #define DISABLE_SHADOW 1 | ||
9468 | _ACEOF | ||
9469 | |||
9470 | |||
9471 | fi | ||
9472 | |||
9473 | ;; | ||
9474 | *) cat >>confdefs.h <<\_ACEOF | ||
9475 | #define LOCKED_PASSWD_STRING "*LK*" | ||
9476 | _ACEOF | ||
9477 | |||
9478 | check_for_libcrypt_later=1 | ||
9479 | ;; | ||
9480 | esac | ||
9481 | ;; | ||
9482 | *-*-sysv*) | ||
9483 | ;; | ||
9484 | # SCO UNIX and OEM versions of SCO UNIX | ||
9485 | *-*-sco3.2v4*) | ||
9486 | { { $as_echo "$as_me:$LINENO: error: \"This Platform is no longer supported.\"" >&5 | ||
9487 | $as_echo "$as_me: error: \"This Platform is no longer supported.\"" >&2;} | ||
9488 | { (exit 1); exit 1; }; } | ||
9489 | ;; | ||
9490 | # SCO OpenServer 5.x | ||
9491 | *-*-sco3.2v5*) | ||
9492 | if test -z "$GCC"; then | ||
9493 | CFLAGS="$CFLAGS -belf" | ||
9494 | fi | ||
9495 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
9496 | no_dev_ptmx=1 | ||
9497 | cat >>confdefs.h <<\_ACEOF | ||
9498 | #define USE_PIPES 1 | ||
9499 | _ACEOF | ||
9500 | |||
9501 | cat >>confdefs.h <<\_ACEOF | ||
9502 | #define HAVE_SECUREWARE 1 | ||
9503 | _ACEOF | ||
9504 | |||
9505 | cat >>confdefs.h <<\_ACEOF | ||
9506 | #define DISABLE_SHADOW 1 | ||
9507 | _ACEOF | ||
9508 | |||
9509 | cat >>confdefs.h <<\_ACEOF | ||
9510 | #define DISABLE_FD_PASSING 1 | ||
9511 | _ACEOF | ||
9512 | |||
9513 | cat >>confdefs.h <<\_ACEOF | ||
9514 | #define SETEUID_BREAKS_SETUID 1 | ||
9515 | _ACEOF | ||
9516 | |||
9517 | cat >>confdefs.h <<\_ACEOF | ||
9518 | #define BROKEN_SETREUID 1 | ||
9519 | _ACEOF | ||
9520 | |||
9521 | cat >>confdefs.h <<\_ACEOF | ||
9522 | #define BROKEN_SETREGID 1 | ||
9523 | _ACEOF | ||
9524 | |||
9525 | cat >>confdefs.h <<\_ACEOF | ||
9526 | #define WITH_ABBREV_NO_TTY 1 | ||
9527 | _ACEOF | ||
9528 | |||
9529 | cat >>confdefs.h <<\_ACEOF | ||
9530 | #define BROKEN_UPDWTMPX 1 | ||
9531 | _ACEOF | ||
9532 | |||
9533 | cat >>confdefs.h <<\_ACEOF | ||
9534 | #define PASSWD_NEEDS_USERNAME 1 | ||
9535 | _ACEOF | ||
9536 | |||
9537 | |||
9538 | |||
9539 | for ac_func in getluid setluid | ||
9540 | do | ||
9541 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
9542 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
9543 | $as_echo_n "checking for $ac_func... " >&6; } | ||
9544 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
9545 | $as_echo_n "(cached) " >&6 | ||
9546 | else | ||
9547 | cat >conftest.$ac_ext <<_ACEOF | ||
9548 | /* confdefs.h. */ | ||
9549 | _ACEOF | ||
9550 | cat confdefs.h >>conftest.$ac_ext | ||
9551 | cat >>conftest.$ac_ext <<_ACEOF | ||
9552 | /* end confdefs.h. */ | ||
9553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
9554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9555 | #define $ac_func innocuous_$ac_func | ||
9556 | |||
9557 | /* System header to define __stub macros and hopefully few prototypes, | ||
9558 | which can conflict with char $ac_func (); below. | ||
9559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9560 | <limits.h> exists even on freestanding compilers. */ | ||
9561 | |||
9562 | #ifdef __STDC__ | ||
9563 | # include <limits.h> | ||
9564 | #else | ||
9565 | # include <assert.h> | ||
9566 | #endif | ||
9567 | |||
9568 | #undef $ac_func | ||
9569 | |||
9570 | /* Override any GCC internal prototype to avoid an error. | ||
9571 | Use char because int might match the return type of a GCC | ||
9572 | builtin and then its argument prototype would still apply. */ | ||
9573 | #ifdef __cplusplus | ||
9574 | extern "C" | ||
9575 | #endif | ||
9576 | char $ac_func (); | ||
9577 | /* The GNU C library defines this for functions which it implements | ||
9578 | to always fail with ENOSYS. Some functions are actually named | ||
9579 | something starting with __ and the normal name is an alias. */ | ||
9580 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
9581 | choke me | ||
9582 | #endif | ||
9583 | |||
9584 | int | ||
9585 | main () | ||
9586 | { | ||
9587 | return $ac_func (); | ||
9588 | ; | ||
9589 | return 0; | ||
9590 | } | ||
9591 | _ACEOF | ||
9592 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9593 | if { (ac_try="$ac_link" | ||
9594 | case "(($ac_try" in | ||
9595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9596 | *) ac_try_echo=$ac_try;; | ||
9597 | esac | ||
9598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
9599 | $as_echo "$ac_try_echo") >&5 | ||
9600 | (eval "$ac_link") 2>conftest.er1 | ||
9601 | ac_status=$? | ||
9602 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9603 | rm -f conftest.er1 | ||
9604 | cat conftest.err >&5 | ||
9605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9606 | (exit $ac_status); } && { | ||
9607 | test -z "$ac_c_werror_flag" || | ||
9608 | test ! -s conftest.err | ||
9609 | } && test -s conftest$ac_exeext && { | ||
9610 | test "$cross_compiling" = yes || | ||
9611 | $as_test_x conftest$ac_exeext | ||
9612 | }; then | ||
9613 | eval "$as_ac_var=yes" | ||
9614 | else | ||
9615 | $as_echo "$as_me: failed program was:" >&5 | ||
9616 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9617 | |||
9618 | eval "$as_ac_var=no" | ||
9619 | fi | ||
9620 | |||
9621 | rm -rf conftest.dSYM | ||
9622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9623 | conftest$ac_exeext conftest.$ac_ext | ||
9624 | fi | ||
9625 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
9626 | $as_echo "$as_val"'` | ||
9627 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
9628 | $as_echo "$ac_res" >&6; } | ||
9629 | if test `eval 'as_val=${'$as_ac_var'} | ||
9630 | $as_echo "$as_val"'` = yes; then | ||
9631 | cat >>confdefs.h <<_ACEOF | ||
9632 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
9633 | _ACEOF | ||
9634 | |||
9635 | fi | ||
9636 | done | ||
9637 | |||
9638 | MANTYPE=man | ||
9639 | TEST_SHELL=ksh | ||
9640 | ;; | ||
9641 | *-*-unicosmk*) | ||
9642 | |||
9643 | cat >>confdefs.h <<\_ACEOF | ||
9644 | #define NO_SSH_LASTLOG 1 | ||
9645 | _ACEOF | ||
9646 | |||
9647 | cat >>confdefs.h <<\_ACEOF | ||
9648 | #define SETEUID_BREAKS_SETUID 1 | ||
9649 | _ACEOF | ||
9650 | |||
9651 | cat >>confdefs.h <<\_ACEOF | ||
9652 | #define BROKEN_SETREUID 1 | ||
9653 | _ACEOF | ||
9654 | |||
9655 | cat >>confdefs.h <<\_ACEOF | ||
9656 | #define BROKEN_SETREGID 1 | ||
9657 | _ACEOF | ||
9658 | |||
9659 | cat >>confdefs.h <<\_ACEOF | ||
9660 | #define USE_PIPES 1 | ||
9661 | _ACEOF | ||
9662 | |||
9663 | cat >>confdefs.h <<\_ACEOF | ||
9664 | #define DISABLE_FD_PASSING 1 | ||
9665 | _ACEOF | ||
9666 | |||
9667 | LDFLAGS="$LDFLAGS" | ||
9668 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9669 | MANTYPE=cat | ||
9670 | ;; | ||
9671 | *-*-unicosmp*) | ||
9672 | cat >>confdefs.h <<\_ACEOF | ||
9673 | #define SETEUID_BREAKS_SETUID 1 | ||
9674 | _ACEOF | ||
9675 | |||
9676 | cat >>confdefs.h <<\_ACEOF | ||
9677 | #define BROKEN_SETREUID 1 | ||
9678 | _ACEOF | ||
9679 | |||
9680 | cat >>confdefs.h <<\_ACEOF | ||
9681 | #define BROKEN_SETREGID 1 | ||
9682 | _ACEOF | ||
9683 | |||
9684 | cat >>confdefs.h <<\_ACEOF | ||
9685 | #define WITH_ABBREV_NO_TTY 1 | ||
9686 | _ACEOF | ||
9687 | |||
9688 | cat >>confdefs.h <<\_ACEOF | ||
9689 | #define USE_PIPES 1 | ||
9690 | _ACEOF | ||
9691 | |||
9692 | cat >>confdefs.h <<\_ACEOF | ||
9693 | #define DISABLE_FD_PASSING 1 | ||
9694 | _ACEOF | ||
9695 | |||
9696 | LDFLAGS="$LDFLAGS" | ||
9697 | LIBS="$LIBS -lgen -lacid -ldb" | ||
9698 | MANTYPE=cat | ||
9699 | ;; | ||
9700 | *-*-unicos*) | ||
9701 | cat >>confdefs.h <<\_ACEOF | ||
9702 | #define SETEUID_BREAKS_SETUID 1 | ||
9703 | _ACEOF | ||
9704 | |||
9705 | cat >>confdefs.h <<\_ACEOF | ||
9706 | #define BROKEN_SETREUID 1 | ||
9707 | _ACEOF | ||
9708 | |||
9709 | cat >>confdefs.h <<\_ACEOF | ||
9710 | #define BROKEN_SETREGID 1 | ||
9711 | _ACEOF | ||
9712 | |||
9713 | cat >>confdefs.h <<\_ACEOF | ||
9714 | #define USE_PIPES 1 | ||
9715 | _ACEOF | ||
9716 | |||
9717 | cat >>confdefs.h <<\_ACEOF | ||
9718 | #define DISABLE_FD_PASSING 1 | ||
9719 | _ACEOF | ||
9720 | |||
9721 | cat >>confdefs.h <<\_ACEOF | ||
9722 | #define NO_SSH_LASTLOG 1 | ||
9723 | _ACEOF | ||
9724 | |||
9725 | LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal" | ||
9726 | LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm" | ||
9727 | MANTYPE=cat | ||
9728 | ;; | ||
9729 | *-dec-osf*) | ||
9730 | { $as_echo "$as_me:$LINENO: checking for Digital Unix SIA" >&5 | ||
9731 | $as_echo_n "checking for Digital Unix SIA... " >&6; } | ||
9732 | no_osfsia="" | ||
9733 | |||
9734 | # Check whether --with-osfsia was given. | ||
9735 | if test "${with_osfsia+set}" = set; then | ||
9736 | withval=$with_osfsia; | ||
9737 | if test "x$withval" = "xno" ; then | ||
9738 | { $as_echo "$as_me:$LINENO: result: disabled" >&5 | ||
9739 | $as_echo "disabled" >&6; } | ||
9740 | no_osfsia=1 | ||
9741 | fi | ||
9742 | |||
9743 | fi | ||
9744 | |||
9745 | if test -z "$no_osfsia" ; then | ||
9746 | if test -f /etc/sia/matrix.conf; then | ||
9747 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
9748 | $as_echo "yes" >&6; } | ||
9749 | |||
9750 | cat >>confdefs.h <<\_ACEOF | ||
9751 | #define HAVE_OSF_SIA 1 | ||
9752 | _ACEOF | ||
9753 | |||
9754 | |||
9755 | cat >>confdefs.h <<\_ACEOF | ||
9756 | #define DISABLE_LOGIN 1 | ||
9757 | _ACEOF | ||
9758 | |||
9759 | cat >>confdefs.h <<\_ACEOF | ||
9760 | #define DISABLE_FD_PASSING 1 | ||
9761 | _ACEOF | ||
9762 | |||
9763 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
9764 | SIA_MSG="yes" | ||
9765 | else | ||
9766 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
9767 | $as_echo "no" >&6; } | ||
9768 | |||
9769 | cat >>confdefs.h <<\_ACEOF | ||
9770 | #define LOCKED_PASSWD_SUBSTR "Nologin" | ||
9771 | _ACEOF | ||
9772 | |||
9773 | fi | ||
9774 | fi | ||
9775 | cat >>confdefs.h <<\_ACEOF | ||
9776 | #define BROKEN_GETADDRINFO 1 | ||
9777 | _ACEOF | ||
9778 | |||
9779 | cat >>confdefs.h <<\_ACEOF | ||
9780 | #define SETEUID_BREAKS_SETUID 1 | ||
9781 | _ACEOF | ||
9782 | |||
9783 | cat >>confdefs.h <<\_ACEOF | ||
9784 | #define BROKEN_SETREUID 1 | ||
9785 | _ACEOF | ||
9786 | |||
9787 | cat >>confdefs.h <<\_ACEOF | ||
9788 | #define BROKEN_SETREGID 1 | ||
9789 | _ACEOF | ||
9790 | |||
9791 | |||
9792 | cat >>confdefs.h <<\_ACEOF | ||
9793 | #define BROKEN_READV_COMPARISON 1 | ||
9794 | _ACEOF | ||
9795 | |||
9796 | ;; | ||
9797 | |||
9798 | *-*-nto-qnx*) | ||
9799 | cat >>confdefs.h <<\_ACEOF | ||
9800 | #define USE_PIPES 1 | ||
9801 | _ACEOF | ||
9802 | |||
9803 | cat >>confdefs.h <<\_ACEOF | ||
9804 | #define NO_X11_UNIX_SOCKETS 1 | ||
9805 | _ACEOF | ||
9806 | |||
9807 | |||
9808 | cat >>confdefs.h <<\_ACEOF | ||
9809 | #define MISSING_NFDBITS 1 | ||
9810 | _ACEOF | ||
9811 | |||
9812 | |||
9813 | cat >>confdefs.h <<\_ACEOF | ||
9814 | #define MISSING_HOWMANY 1 | ||
9815 | _ACEOF | ||
9816 | |||
9817 | |||
9818 | cat >>confdefs.h <<\_ACEOF | ||
9819 | #define MISSING_FD_MASK 1 | ||
9820 | _ACEOF | ||
9821 | |||
9822 | cat >>confdefs.h <<\_ACEOF | ||
9823 | #define DISABLE_LASTLOG 1 | ||
9824 | _ACEOF | ||
9825 | |||
9826 | cat >>confdefs.h <<\_ACEOF | ||
9827 | #define SSHD_ACQUIRES_CTTY 1 | ||
9828 | _ACEOF | ||
9829 | |||
9830 | |||
9831 | cat >>confdefs.h <<\_ACEOF | ||
9832 | #define BROKEN_SHADOW_EXPIRE 1 | ||
9833 | _ACEOF | ||
9834 | |||
9835 | enable_etc_default_login=no # has incompatible /etc/default/login | ||
9836 | case "$host" in | ||
9837 | *-*-nto-qnx6*) | ||
9838 | cat >>confdefs.h <<\_ACEOF | ||
9839 | #define DISABLE_FD_PASSING 1 | ||
9840 | _ACEOF | ||
9841 | |||
9842 | ;; | ||
9843 | esac | ||
9844 | ;; | ||
9845 | |||
9846 | *-*-ultrix*) | ||
9847 | |||
9848 | cat >>confdefs.h <<\_ACEOF | ||
9849 | #define BROKEN_GETGROUPS 1 | ||
9850 | _ACEOF | ||
9851 | |||
9852 | |||
9853 | cat >>confdefs.h <<\_ACEOF | ||
9854 | #define BROKEN_MMAP 1 | ||
9855 | _ACEOF | ||
9856 | |||
9857 | cat >>confdefs.h <<\_ACEOF | ||
9858 | #define NEED_SETPGRP 1 | ||
9859 | _ACEOF | ||
9860 | |||
9861 | |||
9862 | cat >>confdefs.h <<\_ACEOF | ||
9863 | #define HAVE_SYS_SYSLOG_H 1 | ||
9864 | _ACEOF | ||
9865 | |||
9866 | ;; | ||
9867 | |||
9868 | *-*-lynxos) | ||
9869 | CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__" | ||
9870 | cat >>confdefs.h <<\_ACEOF | ||
9871 | #define MISSING_HOWMANY 1 | ||
9872 | _ACEOF | ||
9873 | |||
9874 | |||
9875 | cat >>confdefs.h <<\_ACEOF | ||
9876 | #define BROKEN_SETVBUF 1 | ||
9877 | _ACEOF | ||
9878 | |||
9879 | ;; | ||
9880 | esac | ||
9881 | |||
9882 | { $as_echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 | ||
9883 | $as_echo_n "checking compiler and flags for sanity... " >&6; } | ||
9884 | if test "$cross_compiling" = yes; then | ||
9885 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking compiler sanity" >&5 | ||
9886 | $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;} | ||
9887 | |||
9888 | else | ||
9889 | cat >conftest.$ac_ext <<_ACEOF | ||
9890 | /* confdefs.h. */ | ||
9891 | _ACEOF | ||
9892 | cat confdefs.h >>conftest.$ac_ext | ||
9893 | cat >>conftest.$ac_ext <<_ACEOF | ||
9894 | /* end confdefs.h. */ | ||
9895 | |||
9896 | #include <stdio.h> | ||
9897 | int main(){exit(0);} | ||
9898 | |||
9899 | _ACEOF | ||
9900 | rm -f conftest$ac_exeext | ||
9901 | if { (ac_try="$ac_link" | ||
9902 | case "(($ac_try" in | ||
9903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9904 | *) ac_try_echo=$ac_try;; | ||
9905 | esac | ||
9906 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
9907 | $as_echo "$ac_try_echo") >&5 | ||
9908 | (eval "$ac_link") 2>&5 | ||
9909 | ac_status=$? | ||
9910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9911 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
9912 | { (case "(($ac_try" in | ||
9913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9914 | *) ac_try_echo=$ac_try;; | ||
9915 | esac | ||
9916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
9917 | $as_echo "$ac_try_echo") >&5 | ||
9918 | (eval "$ac_try") 2>&5 | ||
9919 | ac_status=$? | ||
9920 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9921 | (exit $ac_status); }; }; then | ||
9922 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
9923 | $as_echo "yes" >&6; } | ||
9924 | else | ||
9925 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
9926 | $as_echo "$as_me: failed program was:" >&5 | ||
9927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9928 | |||
9929 | ( exit $ac_status ) | ||
9930 | |||
9931 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
9932 | $as_echo "no" >&6; } | ||
9933 | { { $as_echo "$as_me:$LINENO: error: *** compiler cannot create working executables, check config.log ***" >&5 | ||
9934 | $as_echo "$as_me: error: *** compiler cannot create working executables, check config.log ***" >&2;} | ||
9935 | { (exit 1); exit 1; }; } | ||
9936 | |||
9937 | fi | ||
9938 | rm -rf conftest.dSYM | ||
9939 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
9940 | fi | ||
9941 | |||
9942 | |||
9943 | |||
9944 | # Checks for libraries. | ||
9945 | { $as_echo "$as_me:$LINENO: checking for yp_match" >&5 | ||
9946 | $as_echo_n "checking for yp_match... " >&6; } | ||
9947 | if test "${ac_cv_func_yp_match+set}" = set; then | ||
9948 | $as_echo_n "(cached) " >&6 | ||
9949 | else | ||
9950 | cat >conftest.$ac_ext <<_ACEOF | ||
9951 | /* confdefs.h. */ | ||
9952 | _ACEOF | ||
9953 | cat confdefs.h >>conftest.$ac_ext | ||
9954 | cat >>conftest.$ac_ext <<_ACEOF | ||
9955 | /* end confdefs.h. */ | ||
9956 | /* Define yp_match to an innocuous variant, in case <limits.h> declares yp_match. | ||
9957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9958 | #define yp_match innocuous_yp_match | ||
9959 | |||
9960 | /* System header to define __stub macros and hopefully few prototypes, | ||
9961 | which can conflict with char yp_match (); below. | ||
9962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9963 | <limits.h> exists even on freestanding compilers. */ | ||
9964 | |||
9965 | #ifdef __STDC__ | ||
9966 | # include <limits.h> | ||
9967 | #else | ||
9968 | # include <assert.h> | ||
9969 | #endif | ||
9970 | |||
9971 | #undef yp_match | ||
9972 | |||
9973 | /* Override any GCC internal prototype to avoid an error. | ||
9974 | Use char because int might match the return type of a GCC | ||
9975 | builtin and then its argument prototype would still apply. */ | ||
9976 | #ifdef __cplusplus | ||
9977 | extern "C" | ||
9978 | #endif | ||
9979 | char yp_match (); | ||
9980 | /* The GNU C library defines this for functions which it implements | ||
9981 | to always fail with ENOSYS. Some functions are actually named | ||
9982 | something starting with __ and the normal name is an alias. */ | ||
9983 | #if defined __stub_yp_match || defined __stub___yp_match | ||
9984 | choke me | ||
9985 | #endif | ||
9986 | |||
9987 | int | ||
9988 | main () | ||
9989 | { | ||
9990 | return yp_match (); | ||
9991 | ; | ||
9992 | return 0; | ||
9993 | } | ||
9994 | _ACEOF | ||
9995 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9996 | if { (ac_try="$ac_link" | ||
9997 | case "(($ac_try" in | ||
9998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9999 | *) ac_try_echo=$ac_try;; | ||
10000 | esac | ||
10001 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10002 | $as_echo "$ac_try_echo") >&5 | ||
10003 | (eval "$ac_link") 2>conftest.er1 | ||
10004 | ac_status=$? | ||
10005 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10006 | rm -f conftest.er1 | ||
10007 | cat conftest.err >&5 | ||
10008 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10009 | (exit $ac_status); } && { | ||
10010 | test -z "$ac_c_werror_flag" || | ||
10011 | test ! -s conftest.err | ||
10012 | } && test -s conftest$ac_exeext && { | ||
10013 | test "$cross_compiling" = yes || | ||
10014 | $as_test_x conftest$ac_exeext | ||
10015 | }; then | ||
10016 | ac_cv_func_yp_match=yes | ||
10017 | else | ||
10018 | $as_echo "$as_me: failed program was:" >&5 | ||
10019 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10020 | |||
10021 | ac_cv_func_yp_match=no | ||
10022 | fi | ||
10023 | |||
10024 | rm -rf conftest.dSYM | ||
10025 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10026 | conftest$ac_exeext conftest.$ac_ext | ||
10027 | fi | ||
10028 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_yp_match" >&5 | ||
10029 | $as_echo "$ac_cv_func_yp_match" >&6; } | ||
10030 | if test $ac_cv_func_yp_match = yes; then | ||
10031 | : | ||
10032 | else | ||
10033 | |||
10034 | { $as_echo "$as_me:$LINENO: checking for yp_match in -lnsl" >&5 | ||
10035 | $as_echo_n "checking for yp_match in -lnsl... " >&6; } | ||
10036 | if test "${ac_cv_lib_nsl_yp_match+set}" = set; then | ||
10037 | $as_echo_n "(cached) " >&6 | ||
10038 | else | ||
10039 | ac_check_lib_save_LIBS=$LIBS | ||
10040 | LIBS="-lnsl $LIBS" | ||
10041 | cat >conftest.$ac_ext <<_ACEOF | ||
10042 | /* confdefs.h. */ | ||
10043 | _ACEOF | ||
10044 | cat confdefs.h >>conftest.$ac_ext | ||
10045 | cat >>conftest.$ac_ext <<_ACEOF | ||
10046 | /* end confdefs.h. */ | ||
10047 | |||
10048 | /* Override any GCC internal prototype to avoid an error. | ||
10049 | Use char because int might match the return type of a GCC | ||
10050 | builtin and then its argument prototype would still apply. */ | ||
10051 | #ifdef __cplusplus | ||
10052 | extern "C" | ||
10053 | #endif | ||
10054 | char yp_match (); | ||
10055 | int | ||
10056 | main () | ||
10057 | { | ||
10058 | return yp_match (); | ||
10059 | ; | ||
10060 | return 0; | ||
10061 | } | ||
10062 | _ACEOF | ||
10063 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10064 | if { (ac_try="$ac_link" | ||
10065 | case "(($ac_try" in | ||
10066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10067 | *) ac_try_echo=$ac_try;; | ||
10068 | esac | ||
10069 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10070 | $as_echo "$ac_try_echo") >&5 | ||
10071 | (eval "$ac_link") 2>conftest.er1 | ||
10072 | ac_status=$? | ||
10073 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10074 | rm -f conftest.er1 | ||
10075 | cat conftest.err >&5 | ||
10076 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10077 | (exit $ac_status); } && { | ||
10078 | test -z "$ac_c_werror_flag" || | ||
10079 | test ! -s conftest.err | ||
10080 | } && test -s conftest$ac_exeext && { | ||
10081 | test "$cross_compiling" = yes || | ||
10082 | $as_test_x conftest$ac_exeext | ||
10083 | }; then | ||
10084 | ac_cv_lib_nsl_yp_match=yes | ||
10085 | else | ||
10086 | $as_echo "$as_me: failed program was:" >&5 | ||
10087 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10088 | |||
10089 | ac_cv_lib_nsl_yp_match=no | ||
10090 | fi | ||
10091 | |||
10092 | rm -rf conftest.dSYM | ||
10093 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10094 | conftest$ac_exeext conftest.$ac_ext | ||
10095 | LIBS=$ac_check_lib_save_LIBS | ||
10096 | fi | ||
10097 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_match" >&5 | ||
10098 | $as_echo "$ac_cv_lib_nsl_yp_match" >&6; } | ||
10099 | if test $ac_cv_lib_nsl_yp_match = yes; then | ||
10100 | cat >>confdefs.h <<_ACEOF | ||
10101 | #define HAVE_LIBNSL 1 | ||
10102 | _ACEOF | ||
10103 | |||
10104 | LIBS="-lnsl $LIBS" | ||
10105 | |||
10106 | fi | ||
10107 | |||
10108 | fi | ||
10109 | |||
10110 | { $as_echo "$as_me:$LINENO: checking for setsockopt" >&5 | ||
10111 | $as_echo_n "checking for setsockopt... " >&6; } | ||
10112 | if test "${ac_cv_func_setsockopt+set}" = set; then | ||
10113 | $as_echo_n "(cached) " >&6 | ||
10114 | else | ||
10115 | cat >conftest.$ac_ext <<_ACEOF | ||
10116 | /* confdefs.h. */ | ||
10117 | _ACEOF | ||
10118 | cat confdefs.h >>conftest.$ac_ext | ||
10119 | cat >>conftest.$ac_ext <<_ACEOF | ||
10120 | /* end confdefs.h. */ | ||
10121 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. | ||
10122 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10123 | #define setsockopt innocuous_setsockopt | ||
10124 | |||
10125 | /* System header to define __stub macros and hopefully few prototypes, | ||
10126 | which can conflict with char setsockopt (); below. | ||
10127 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10128 | <limits.h> exists even on freestanding compilers. */ | ||
10129 | |||
10130 | #ifdef __STDC__ | ||
10131 | # include <limits.h> | ||
10132 | #else | ||
10133 | # include <assert.h> | ||
10134 | #endif | ||
10135 | |||
10136 | #undef setsockopt | ||
10137 | |||
10138 | /* Override any GCC internal prototype to avoid an error. | ||
10139 | Use char because int might match the return type of a GCC | ||
10140 | builtin and then its argument prototype would still apply. */ | ||
10141 | #ifdef __cplusplus | ||
10142 | extern "C" | ||
10143 | #endif | ||
10144 | char setsockopt (); | ||
10145 | /* The GNU C library defines this for functions which it implements | ||
10146 | to always fail with ENOSYS. Some functions are actually named | ||
10147 | something starting with __ and the normal name is an alias. */ | ||
10148 | #if defined __stub_setsockopt || defined __stub___setsockopt | ||
10149 | choke me | ||
10150 | #endif | ||
10151 | |||
10152 | int | ||
10153 | main () | ||
10154 | { | ||
10155 | return setsockopt (); | ||
10156 | ; | ||
10157 | return 0; | ||
10158 | } | ||
10159 | _ACEOF | ||
10160 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10161 | if { (ac_try="$ac_link" | ||
10162 | case "(($ac_try" in | ||
10163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10164 | *) ac_try_echo=$ac_try;; | ||
10165 | esac | ||
10166 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10167 | $as_echo "$ac_try_echo") >&5 | ||
10168 | (eval "$ac_link") 2>conftest.er1 | ||
10169 | ac_status=$? | ||
10170 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10171 | rm -f conftest.er1 | ||
10172 | cat conftest.err >&5 | ||
10173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10174 | (exit $ac_status); } && { | ||
10175 | test -z "$ac_c_werror_flag" || | ||
10176 | test ! -s conftest.err | ||
10177 | } && test -s conftest$ac_exeext && { | ||
10178 | test "$cross_compiling" = yes || | ||
10179 | $as_test_x conftest$ac_exeext | ||
10180 | }; then | ||
10181 | ac_cv_func_setsockopt=yes | ||
10182 | else | ||
10183 | $as_echo "$as_me: failed program was:" >&5 | ||
10184 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10185 | |||
10186 | ac_cv_func_setsockopt=no | ||
10187 | fi | ||
10188 | |||
10189 | rm -rf conftest.dSYM | ||
10190 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10191 | conftest$ac_exeext conftest.$ac_ext | ||
10192 | fi | ||
10193 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 | ||
10194 | $as_echo "$ac_cv_func_setsockopt" >&6; } | ||
10195 | if test $ac_cv_func_setsockopt = yes; then | ||
10196 | : | ||
10197 | else | ||
10198 | |||
10199 | { $as_echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 | ||
10200 | $as_echo_n "checking for setsockopt in -lsocket... " >&6; } | ||
10201 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then | ||
10202 | $as_echo_n "(cached) " >&6 | ||
10203 | else | ||
10204 | ac_check_lib_save_LIBS=$LIBS | ||
10205 | LIBS="-lsocket $LIBS" | ||
10206 | cat >conftest.$ac_ext <<_ACEOF | ||
10207 | /* confdefs.h. */ | ||
10208 | _ACEOF | ||
10209 | cat confdefs.h >>conftest.$ac_ext | ||
10210 | cat >>conftest.$ac_ext <<_ACEOF | ||
10211 | /* end confdefs.h. */ | ||
10212 | |||
10213 | /* Override any GCC internal prototype to avoid an error. | ||
10214 | Use char because int might match the return type of a GCC | ||
10215 | builtin and then its argument prototype would still apply. */ | ||
10216 | #ifdef __cplusplus | ||
10217 | extern "C" | ||
10218 | #endif | ||
10219 | char setsockopt (); | ||
10220 | int | ||
10221 | main () | ||
10222 | { | ||
10223 | return setsockopt (); | ||
10224 | ; | ||
10225 | return 0; | ||
10226 | } | ||
10227 | _ACEOF | ||
10228 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10229 | if { (ac_try="$ac_link" | ||
10230 | case "(($ac_try" in | ||
10231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10232 | *) ac_try_echo=$ac_try;; | ||
10233 | esac | ||
10234 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10235 | $as_echo "$ac_try_echo") >&5 | ||
10236 | (eval "$ac_link") 2>conftest.er1 | ||
10237 | ac_status=$? | ||
10238 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10239 | rm -f conftest.er1 | ||
10240 | cat conftest.err >&5 | ||
10241 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10242 | (exit $ac_status); } && { | ||
10243 | test -z "$ac_c_werror_flag" || | ||
10244 | test ! -s conftest.err | ||
10245 | } && test -s conftest$ac_exeext && { | ||
10246 | test "$cross_compiling" = yes || | ||
10247 | $as_test_x conftest$ac_exeext | ||
10248 | }; then | ||
10249 | ac_cv_lib_socket_setsockopt=yes | ||
10250 | else | ||
10251 | $as_echo "$as_me: failed program was:" >&5 | ||
10252 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10253 | |||
10254 | ac_cv_lib_socket_setsockopt=no | ||
10255 | fi | ||
10256 | |||
10257 | rm -rf conftest.dSYM | ||
10258 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10259 | conftest$ac_exeext conftest.$ac_ext | ||
10260 | LIBS=$ac_check_lib_save_LIBS | ||
10261 | fi | ||
10262 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 | ||
10263 | $as_echo "$ac_cv_lib_socket_setsockopt" >&6; } | ||
10264 | if test $ac_cv_lib_socket_setsockopt = yes; then | ||
10265 | cat >>confdefs.h <<_ACEOF | ||
10266 | #define HAVE_LIBSOCKET 1 | ||
10267 | _ACEOF | ||
10268 | |||
10269 | LIBS="-lsocket $LIBS" | ||
10270 | |||
10271 | fi | ||
10272 | |||
10273 | fi | ||
10274 | |||
10275 | |||
10276 | |||
10277 | for ac_func in dirname | ||
10278 | do | ||
10279 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
10280 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
10281 | $as_echo_n "checking for $ac_func... " >&6; } | ||
10282 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10283 | $as_echo_n "(cached) " >&6 | ||
10284 | else | ||
10285 | cat >conftest.$ac_ext <<_ACEOF | ||
10286 | /* confdefs.h. */ | ||
10287 | _ACEOF | ||
10288 | cat confdefs.h >>conftest.$ac_ext | ||
10289 | cat >>conftest.$ac_ext <<_ACEOF | ||
10290 | /* end confdefs.h. */ | ||
10291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
10292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10293 | #define $ac_func innocuous_$ac_func | ||
10294 | |||
10295 | /* System header to define __stub macros and hopefully few prototypes, | ||
10296 | which can conflict with char $ac_func (); below. | ||
10297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10298 | <limits.h> exists even on freestanding compilers. */ | ||
10299 | |||
10300 | #ifdef __STDC__ | ||
10301 | # include <limits.h> | ||
10302 | #else | ||
10303 | # include <assert.h> | ||
10304 | #endif | ||
10305 | |||
10306 | #undef $ac_func | ||
10307 | |||
10308 | /* Override any GCC internal prototype to avoid an error. | ||
10309 | Use char because int might match the return type of a GCC | ||
10310 | builtin and then its argument prototype would still apply. */ | ||
10311 | #ifdef __cplusplus | ||
10312 | extern "C" | ||
10313 | #endif | ||
10314 | char $ac_func (); | ||
10315 | /* The GNU C library defines this for functions which it implements | ||
10316 | to always fail with ENOSYS. Some functions are actually named | ||
10317 | something starting with __ and the normal name is an alias. */ | ||
10318 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
10319 | choke me | ||
10320 | #endif | ||
10321 | |||
10322 | int | ||
10323 | main () | ||
10324 | { | ||
10325 | return $ac_func (); | ||
10326 | ; | ||
10327 | return 0; | ||
10328 | } | ||
10329 | _ACEOF | ||
10330 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10331 | if { (ac_try="$ac_link" | ||
10332 | case "(($ac_try" in | ||
10333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10334 | *) ac_try_echo=$ac_try;; | ||
10335 | esac | ||
10336 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10337 | $as_echo "$ac_try_echo") >&5 | ||
10338 | (eval "$ac_link") 2>conftest.er1 | ||
10339 | ac_status=$? | ||
10340 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10341 | rm -f conftest.er1 | ||
10342 | cat conftest.err >&5 | ||
10343 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10344 | (exit $ac_status); } && { | ||
10345 | test -z "$ac_c_werror_flag" || | ||
10346 | test ! -s conftest.err | ||
10347 | } && test -s conftest$ac_exeext && { | ||
10348 | test "$cross_compiling" = yes || | ||
10349 | $as_test_x conftest$ac_exeext | ||
10350 | }; then | ||
10351 | eval "$as_ac_var=yes" | ||
10352 | else | ||
10353 | $as_echo "$as_me: failed program was:" >&5 | ||
10354 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10355 | |||
10356 | eval "$as_ac_var=no" | ||
10357 | fi | ||
10358 | |||
10359 | rm -rf conftest.dSYM | ||
10360 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10361 | conftest$ac_exeext conftest.$ac_ext | ||
10362 | fi | ||
10363 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
10364 | $as_echo "$as_val"'` | ||
10365 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10366 | $as_echo "$ac_res" >&6; } | ||
10367 | if test `eval 'as_val=${'$as_ac_var'} | ||
10368 | $as_echo "$as_val"'` = yes; then | ||
10369 | cat >>confdefs.h <<_ACEOF | ||
10370 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
10371 | _ACEOF | ||
10372 | |||
10373 | for ac_header in libgen.h | ||
10374 | do | ||
10375 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10377 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10378 | $as_echo_n "checking for $ac_header... " >&6; } | ||
10379 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10380 | $as_echo_n "(cached) " >&6 | ||
10381 | fi | ||
10382 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
10383 | $as_echo "$as_val"'` | ||
10384 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10385 | $as_echo "$ac_res" >&6; } | ||
10386 | else | ||
10387 | # Is the header compilable? | ||
10388 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10389 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
10390 | cat >conftest.$ac_ext <<_ACEOF | ||
10391 | /* confdefs.h. */ | ||
10392 | _ACEOF | ||
10393 | cat confdefs.h >>conftest.$ac_ext | ||
10394 | cat >>conftest.$ac_ext <<_ACEOF | ||
10395 | /* end confdefs.h. */ | ||
10396 | $ac_includes_default | ||
10397 | #include <$ac_header> | ||
10398 | _ACEOF | ||
10399 | rm -f conftest.$ac_objext | ||
10400 | if { (ac_try="$ac_compile" | ||
10401 | case "(($ac_try" in | ||
10402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10403 | *) ac_try_echo=$ac_try;; | ||
10404 | esac | ||
10405 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10406 | $as_echo "$ac_try_echo") >&5 | ||
10407 | (eval "$ac_compile") 2>conftest.er1 | ||
10408 | ac_status=$? | ||
10409 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10410 | rm -f conftest.er1 | ||
10411 | cat conftest.err >&5 | ||
10412 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10413 | (exit $ac_status); } && { | ||
10414 | test -z "$ac_c_werror_flag" || | ||
10415 | test ! -s conftest.err | ||
10416 | } && test -s conftest.$ac_objext; then | ||
10417 | ac_header_compiler=yes | ||
10418 | else | ||
10419 | $as_echo "$as_me: failed program was:" >&5 | ||
10420 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10421 | |||
10422 | ac_header_compiler=no | ||
10423 | fi | ||
10424 | |||
10425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10426 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10427 | $as_echo "$ac_header_compiler" >&6; } | ||
10428 | |||
10429 | # Is the header present? | ||
10430 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10431 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
10432 | cat >conftest.$ac_ext <<_ACEOF | ||
10433 | /* confdefs.h. */ | ||
10434 | _ACEOF | ||
10435 | cat confdefs.h >>conftest.$ac_ext | ||
10436 | cat >>conftest.$ac_ext <<_ACEOF | ||
10437 | /* end confdefs.h. */ | ||
10438 | #include <$ac_header> | ||
10439 | _ACEOF | ||
10440 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10441 | case "(($ac_try" in | ||
10442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10443 | *) ac_try_echo=$ac_try;; | ||
10444 | esac | ||
10445 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10446 | $as_echo "$ac_try_echo") >&5 | ||
10447 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10448 | ac_status=$? | ||
10449 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10450 | rm -f conftest.er1 | ||
10451 | cat conftest.err >&5 | ||
10452 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10453 | (exit $ac_status); } >/dev/null && { | ||
10454 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10455 | test ! -s conftest.err | ||
10456 | }; then | ||
10457 | ac_header_preproc=yes | ||
10458 | else | ||
10459 | $as_echo "$as_me: failed program was:" >&5 | ||
10460 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10461 | |||
10462 | ac_header_preproc=no | ||
10463 | fi | ||
10464 | |||
10465 | rm -f conftest.err conftest.$ac_ext | ||
10466 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10467 | $as_echo "$ac_header_preproc" >&6; } | ||
10468 | |||
10469 | # So? What about this header? | ||
10470 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10471 | yes:no: ) | ||
10472 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10473 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10474 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10475 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10476 | ac_header_preproc=yes | ||
10477 | ;; | ||
10478 | no:yes:* ) | ||
10479 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10480 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10481 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10482 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10483 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10484 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10485 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10486 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10488 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10489 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10490 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10491 | ( cat <<\_ASBOX | ||
10492 | ## ------------------------------------------- ## | ||
10493 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10494 | ## ------------------------------------------- ## | ||
10495 | _ASBOX | ||
10496 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10497 | ;; | ||
10498 | esac | ||
10499 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10500 | $as_echo_n "checking for $ac_header... " >&6; } | ||
10501 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10502 | $as_echo_n "(cached) " >&6 | ||
10503 | else | ||
10504 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10505 | fi | ||
10506 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
10507 | $as_echo "$as_val"'` | ||
10508 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10509 | $as_echo "$ac_res" >&6; } | ||
10510 | |||
10511 | fi | ||
10512 | if test `eval 'as_val=${'$as_ac_Header'} | ||
10513 | $as_echo "$as_val"'` = yes; then | ||
10514 | cat >>confdefs.h <<_ACEOF | ||
10515 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10516 | _ACEOF | ||
10517 | |||
10518 | fi | ||
10519 | |||
10520 | done | ||
10521 | |||
10522 | else | ||
10523 | |||
10524 | { $as_echo "$as_me:$LINENO: checking for dirname in -lgen" >&5 | ||
10525 | $as_echo_n "checking for dirname in -lgen... " >&6; } | ||
10526 | if test "${ac_cv_lib_gen_dirname+set}" = set; then | ||
10527 | $as_echo_n "(cached) " >&6 | ||
10528 | else | ||
10529 | ac_check_lib_save_LIBS=$LIBS | ||
10530 | LIBS="-lgen $LIBS" | ||
10531 | cat >conftest.$ac_ext <<_ACEOF | ||
10532 | /* confdefs.h. */ | ||
10533 | _ACEOF | ||
10534 | cat confdefs.h >>conftest.$ac_ext | ||
10535 | cat >>conftest.$ac_ext <<_ACEOF | ||
10536 | /* end confdefs.h. */ | ||
10537 | |||
10538 | /* Override any GCC internal prototype to avoid an error. | ||
10539 | Use char because int might match the return type of a GCC | ||
10540 | builtin and then its argument prototype would still apply. */ | ||
10541 | #ifdef __cplusplus | ||
10542 | extern "C" | ||
10543 | #endif | ||
10544 | char dirname (); | ||
10545 | int | ||
10546 | main () | ||
10547 | { | ||
10548 | return dirname (); | ||
10549 | ; | ||
10550 | return 0; | ||
10551 | } | ||
10552 | _ACEOF | ||
10553 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10554 | if { (ac_try="$ac_link" | ||
10555 | case "(($ac_try" in | ||
10556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10557 | *) ac_try_echo=$ac_try;; | ||
10558 | esac | ||
10559 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10560 | $as_echo "$ac_try_echo") >&5 | ||
10561 | (eval "$ac_link") 2>conftest.er1 | ||
10562 | ac_status=$? | ||
10563 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10564 | rm -f conftest.er1 | ||
10565 | cat conftest.err >&5 | ||
10566 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10567 | (exit $ac_status); } && { | ||
10568 | test -z "$ac_c_werror_flag" || | ||
10569 | test ! -s conftest.err | ||
10570 | } && test -s conftest$ac_exeext && { | ||
10571 | test "$cross_compiling" = yes || | ||
10572 | $as_test_x conftest$ac_exeext | ||
10573 | }; then | ||
10574 | ac_cv_lib_gen_dirname=yes | ||
10575 | else | ||
10576 | $as_echo "$as_me: failed program was:" >&5 | ||
10577 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10578 | |||
10579 | ac_cv_lib_gen_dirname=no | ||
10580 | fi | ||
10581 | |||
10582 | rm -rf conftest.dSYM | ||
10583 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10584 | conftest$ac_exeext conftest.$ac_ext | ||
10585 | LIBS=$ac_check_lib_save_LIBS | ||
10586 | fi | ||
10587 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_dirname" >&5 | ||
10588 | $as_echo "$ac_cv_lib_gen_dirname" >&6; } | ||
10589 | if test $ac_cv_lib_gen_dirname = yes; then | ||
10590 | |||
10591 | { $as_echo "$as_me:$LINENO: checking for broken dirname" >&5 | ||
10592 | $as_echo_n "checking for broken dirname... " >&6; } | ||
10593 | if test "${ac_cv_have_broken_dirname+set}" = set; then | ||
10594 | $as_echo_n "(cached) " >&6 | ||
10595 | else | ||
10596 | |||
10597 | save_LIBS="$LIBS" | ||
10598 | LIBS="$LIBS -lgen" | ||
10599 | if test "$cross_compiling" = yes; then | ||
10600 | ac_cv_have_broken_dirname="no" | ||
10601 | else | ||
10602 | cat >conftest.$ac_ext <<_ACEOF | ||
10603 | /* confdefs.h. */ | ||
10604 | _ACEOF | ||
10605 | cat confdefs.h >>conftest.$ac_ext | ||
10606 | cat >>conftest.$ac_ext <<_ACEOF | ||
10607 | /* end confdefs.h. */ | ||
10608 | |||
10609 | #include <libgen.h> | ||
10610 | #include <string.h> | ||
10611 | |||
10612 | int main(int argc, char **argv) { | ||
10613 | char *s, buf[32]; | ||
10614 | |||
10615 | strncpy(buf,"/etc", 32); | ||
10616 | s = dirname(buf); | ||
10617 | if (!s || strncmp(s, "/", 32) != 0) { | ||
10618 | exit(1); | ||
10619 | } else { | ||
10620 | exit(0); | ||
10621 | } | ||
10622 | } | ||
10623 | |||
10624 | _ACEOF | ||
10625 | rm -f conftest$ac_exeext | ||
10626 | if { (ac_try="$ac_link" | ||
10627 | case "(($ac_try" in | ||
10628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10629 | *) ac_try_echo=$ac_try;; | ||
10630 | esac | ||
10631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10632 | $as_echo "$ac_try_echo") >&5 | ||
10633 | (eval "$ac_link") 2>&5 | ||
10634 | ac_status=$? | ||
10635 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
10637 | { (case "(($ac_try" in | ||
10638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10639 | *) ac_try_echo=$ac_try;; | ||
10640 | esac | ||
10641 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10642 | $as_echo "$ac_try_echo") >&5 | ||
10643 | (eval "$ac_try") 2>&5 | ||
10644 | ac_status=$? | ||
10645 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10646 | (exit $ac_status); }; }; then | ||
10647 | ac_cv_have_broken_dirname="no" | ||
10648 | else | ||
10649 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
10650 | $as_echo "$as_me: failed program was:" >&5 | ||
10651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10652 | |||
10653 | ( exit $ac_status ) | ||
10654 | ac_cv_have_broken_dirname="yes" | ||
10655 | fi | ||
10656 | rm -rf conftest.dSYM | ||
10657 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
10658 | fi | ||
10659 | |||
10660 | |||
10661 | LIBS="$save_LIBS" | ||
10662 | |||
10663 | fi | ||
10664 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_broken_dirname" >&5 | ||
10665 | $as_echo "$ac_cv_have_broken_dirname" >&6; } | ||
10666 | if test "x$ac_cv_have_broken_dirname" = "xno" ; then | ||
10667 | LIBS="$LIBS -lgen" | ||
10668 | cat >>confdefs.h <<\_ACEOF | ||
10669 | #define HAVE_DIRNAME 1 | ||
10670 | _ACEOF | ||
10671 | |||
10672 | |||
10673 | for ac_header in libgen.h | ||
10674 | do | ||
10675 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
10676 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10677 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10678 | $as_echo_n "checking for $ac_header... " >&6; } | ||
10679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10680 | $as_echo_n "(cached) " >&6 | ||
10681 | fi | ||
10682 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
10683 | $as_echo "$as_val"'` | ||
10684 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10685 | $as_echo "$ac_res" >&6; } | ||
10686 | else | ||
10687 | # Is the header compilable? | ||
10688 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
10689 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
10690 | cat >conftest.$ac_ext <<_ACEOF | ||
10691 | /* confdefs.h. */ | ||
10692 | _ACEOF | ||
10693 | cat confdefs.h >>conftest.$ac_ext | ||
10694 | cat >>conftest.$ac_ext <<_ACEOF | ||
10695 | /* end confdefs.h. */ | ||
10696 | $ac_includes_default | ||
10697 | #include <$ac_header> | ||
10698 | _ACEOF | ||
10699 | rm -f conftest.$ac_objext | ||
10700 | if { (ac_try="$ac_compile" | ||
10701 | case "(($ac_try" in | ||
10702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10703 | *) ac_try_echo=$ac_try;; | ||
10704 | esac | ||
10705 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10706 | $as_echo "$ac_try_echo") >&5 | ||
10707 | (eval "$ac_compile") 2>conftest.er1 | ||
10708 | ac_status=$? | ||
10709 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10710 | rm -f conftest.er1 | ||
10711 | cat conftest.err >&5 | ||
10712 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10713 | (exit $ac_status); } && { | ||
10714 | test -z "$ac_c_werror_flag" || | ||
10715 | test ! -s conftest.err | ||
10716 | } && test -s conftest.$ac_objext; then | ||
10717 | ac_header_compiler=yes | ||
10718 | else | ||
10719 | $as_echo "$as_me: failed program was:" >&5 | ||
10720 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10721 | |||
10722 | ac_header_compiler=no | ||
10723 | fi | ||
10724 | |||
10725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
10726 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
10727 | $as_echo "$ac_header_compiler" >&6; } | ||
10728 | |||
10729 | # Is the header present? | ||
10730 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
10731 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
10732 | cat >conftest.$ac_ext <<_ACEOF | ||
10733 | /* confdefs.h. */ | ||
10734 | _ACEOF | ||
10735 | cat confdefs.h >>conftest.$ac_ext | ||
10736 | cat >>conftest.$ac_ext <<_ACEOF | ||
10737 | /* end confdefs.h. */ | ||
10738 | #include <$ac_header> | ||
10739 | _ACEOF | ||
10740 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
10741 | case "(($ac_try" in | ||
10742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10743 | *) ac_try_echo=$ac_try;; | ||
10744 | esac | ||
10745 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10746 | $as_echo "$ac_try_echo") >&5 | ||
10747 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
10748 | ac_status=$? | ||
10749 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10750 | rm -f conftest.er1 | ||
10751 | cat conftest.err >&5 | ||
10752 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10753 | (exit $ac_status); } >/dev/null && { | ||
10754 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
10755 | test ! -s conftest.err | ||
10756 | }; then | ||
10757 | ac_header_preproc=yes | ||
10758 | else | ||
10759 | $as_echo "$as_me: failed program was:" >&5 | ||
10760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10761 | |||
10762 | ac_header_preproc=no | ||
10763 | fi | ||
10764 | |||
10765 | rm -f conftest.err conftest.$ac_ext | ||
10766 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
10767 | $as_echo "$ac_header_preproc" >&6; } | ||
10768 | |||
10769 | # So? What about this header? | ||
10770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
10771 | yes:no: ) | ||
10772 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
10773 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
10774 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
10775 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
10776 | ac_header_preproc=yes | ||
10777 | ;; | ||
10778 | no:yes:* ) | ||
10779 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
10780 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
10781 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
10782 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
10783 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
10784 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
10785 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
10786 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
10787 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
10788 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
10789 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
10790 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
10791 | ( cat <<\_ASBOX | ||
10792 | ## ------------------------------------------- ## | ||
10793 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
10794 | ## ------------------------------------------- ## | ||
10795 | _ASBOX | ||
10796 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
10797 | ;; | ||
10798 | esac | ||
10799 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
10800 | $as_echo_n "checking for $ac_header... " >&6; } | ||
10801 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
10802 | $as_echo_n "(cached) " >&6 | ||
10803 | else | ||
10804 | eval "$as_ac_Header=\$ac_header_preproc" | ||
10805 | fi | ||
10806 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
10807 | $as_echo "$as_val"'` | ||
10808 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
10809 | $as_echo "$ac_res" >&6; } | ||
10810 | |||
10811 | fi | ||
10812 | if test `eval 'as_val=${'$as_ac_Header'} | ||
10813 | $as_echo "$as_val"'` = yes; then | ||
10814 | cat >>confdefs.h <<_ACEOF | ||
10815 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
10816 | _ACEOF | ||
10817 | |||
10818 | fi | ||
10819 | |||
10820 | done | ||
10821 | |||
10822 | fi | ||
10823 | |||
10824 | fi | ||
10825 | |||
10826 | |||
10827 | fi | ||
10828 | done | ||
10829 | |||
10830 | |||
10831 | { $as_echo "$as_me:$LINENO: checking for getspnam" >&5 | ||
10832 | $as_echo_n "checking for getspnam... " >&6; } | ||
10833 | if test "${ac_cv_func_getspnam+set}" = set; then | ||
10834 | $as_echo_n "(cached) " >&6 | ||
10835 | else | ||
10836 | cat >conftest.$ac_ext <<_ACEOF | ||
10837 | /* confdefs.h. */ | ||
10838 | _ACEOF | ||
10839 | cat confdefs.h >>conftest.$ac_ext | ||
10840 | cat >>conftest.$ac_ext <<_ACEOF | ||
10841 | /* end confdefs.h. */ | ||
10842 | /* Define getspnam to an innocuous variant, in case <limits.h> declares getspnam. | ||
10843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
10844 | #define getspnam innocuous_getspnam | ||
10845 | |||
10846 | /* System header to define __stub macros and hopefully few prototypes, | ||
10847 | which can conflict with char getspnam (); below. | ||
10848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
10849 | <limits.h> exists even on freestanding compilers. */ | ||
10850 | |||
10851 | #ifdef __STDC__ | ||
10852 | # include <limits.h> | ||
10853 | #else | ||
10854 | # include <assert.h> | ||
10855 | #endif | ||
10856 | |||
10857 | #undef getspnam | ||
10858 | |||
10859 | /* Override any GCC internal prototype to avoid an error. | ||
10860 | Use char because int might match the return type of a GCC | ||
10861 | builtin and then its argument prototype would still apply. */ | ||
10862 | #ifdef __cplusplus | ||
10863 | extern "C" | ||
10864 | #endif | ||
10865 | char getspnam (); | ||
10866 | /* The GNU C library defines this for functions which it implements | ||
10867 | to always fail with ENOSYS. Some functions are actually named | ||
10868 | something starting with __ and the normal name is an alias. */ | ||
10869 | #if defined __stub_getspnam || defined __stub___getspnam | ||
10870 | choke me | ||
10871 | #endif | ||
10872 | |||
10873 | int | ||
10874 | main () | ||
10875 | { | ||
10876 | return getspnam (); | ||
10877 | ; | ||
10878 | return 0; | ||
10879 | } | ||
10880 | _ACEOF | ||
10881 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10882 | if { (ac_try="$ac_link" | ||
10883 | case "(($ac_try" in | ||
10884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10885 | *) ac_try_echo=$ac_try;; | ||
10886 | esac | ||
10887 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10888 | $as_echo "$ac_try_echo") >&5 | ||
10889 | (eval "$ac_link") 2>conftest.er1 | ||
10890 | ac_status=$? | ||
10891 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10892 | rm -f conftest.er1 | ||
10893 | cat conftest.err >&5 | ||
10894 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10895 | (exit $ac_status); } && { | ||
10896 | test -z "$ac_c_werror_flag" || | ||
10897 | test ! -s conftest.err | ||
10898 | } && test -s conftest$ac_exeext && { | ||
10899 | test "$cross_compiling" = yes || | ||
10900 | $as_test_x conftest$ac_exeext | ||
10901 | }; then | ||
10902 | ac_cv_func_getspnam=yes | ||
10903 | else | ||
10904 | $as_echo "$as_me: failed program was:" >&5 | ||
10905 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10906 | |||
10907 | ac_cv_func_getspnam=no | ||
10908 | fi | ||
10909 | |||
10910 | rm -rf conftest.dSYM | ||
10911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10912 | conftest$ac_exeext conftest.$ac_ext | ||
10913 | fi | ||
10914 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getspnam" >&5 | ||
10915 | $as_echo "$ac_cv_func_getspnam" >&6; } | ||
10916 | if test $ac_cv_func_getspnam = yes; then | ||
10917 | : | ||
10918 | else | ||
10919 | { $as_echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5 | ||
10920 | $as_echo_n "checking for getspnam in -lgen... " >&6; } | ||
10921 | if test "${ac_cv_lib_gen_getspnam+set}" = set; then | ||
10922 | $as_echo_n "(cached) " >&6 | ||
10923 | else | ||
10924 | ac_check_lib_save_LIBS=$LIBS | ||
10925 | LIBS="-lgen $LIBS" | ||
10926 | cat >conftest.$ac_ext <<_ACEOF | ||
10927 | /* confdefs.h. */ | ||
10928 | _ACEOF | ||
10929 | cat confdefs.h >>conftest.$ac_ext | ||
10930 | cat >>conftest.$ac_ext <<_ACEOF | ||
10931 | /* end confdefs.h. */ | ||
10932 | |||
10933 | /* Override any GCC internal prototype to avoid an error. | ||
10934 | Use char because int might match the return type of a GCC | ||
10935 | builtin and then its argument prototype would still apply. */ | ||
10936 | #ifdef __cplusplus | ||
10937 | extern "C" | ||
10938 | #endif | ||
10939 | char getspnam (); | ||
10940 | int | ||
10941 | main () | ||
10942 | { | ||
10943 | return getspnam (); | ||
10944 | ; | ||
10945 | return 0; | ||
10946 | } | ||
10947 | _ACEOF | ||
10948 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10949 | if { (ac_try="$ac_link" | ||
10950 | case "(($ac_try" in | ||
10951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
10952 | *) ac_try_echo=$ac_try;; | ||
10953 | esac | ||
10954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
10955 | $as_echo "$ac_try_echo") >&5 | ||
10956 | (eval "$ac_link") 2>conftest.er1 | ||
10957 | ac_status=$? | ||
10958 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10959 | rm -f conftest.er1 | ||
10960 | cat conftest.err >&5 | ||
10961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10962 | (exit $ac_status); } && { | ||
10963 | test -z "$ac_c_werror_flag" || | ||
10964 | test ! -s conftest.err | ||
10965 | } && test -s conftest$ac_exeext && { | ||
10966 | test "$cross_compiling" = yes || | ||
10967 | $as_test_x conftest$ac_exeext | ||
10968 | }; then | ||
10969 | ac_cv_lib_gen_getspnam=yes | ||
10970 | else | ||
10971 | $as_echo "$as_me: failed program was:" >&5 | ||
10972 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10973 | |||
10974 | ac_cv_lib_gen_getspnam=no | ||
10975 | fi | ||
10976 | |||
10977 | rm -rf conftest.dSYM | ||
10978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
10979 | conftest$ac_exeext conftest.$ac_ext | ||
10980 | LIBS=$ac_check_lib_save_LIBS | ||
10981 | fi | ||
10982 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5 | ||
10983 | $as_echo "$ac_cv_lib_gen_getspnam" >&6; } | ||
10984 | if test $ac_cv_lib_gen_getspnam = yes; then | ||
10985 | LIBS="$LIBS -lgen" | ||
10986 | fi | ||
10987 | |||
10988 | fi | ||
10989 | |||
10990 | { $as_echo "$as_me:$LINENO: checking for library containing basename" >&5 | ||
10991 | $as_echo_n "checking for library containing basename... " >&6; } | ||
10992 | if test "${ac_cv_search_basename+set}" = set; then | ||
10993 | $as_echo_n "(cached) " >&6 | ||
10994 | else | ||
10995 | ac_func_search_save_LIBS=$LIBS | ||
10996 | cat >conftest.$ac_ext <<_ACEOF | ||
10997 | /* confdefs.h. */ | ||
10998 | _ACEOF | ||
10999 | cat confdefs.h >>conftest.$ac_ext | ||
11000 | cat >>conftest.$ac_ext <<_ACEOF | ||
11001 | /* end confdefs.h. */ | ||
11002 | |||
11003 | /* Override any GCC internal prototype to avoid an error. | ||
11004 | Use char because int might match the return type of a GCC | ||
11005 | builtin and then its argument prototype would still apply. */ | ||
11006 | #ifdef __cplusplus | ||
11007 | extern "C" | ||
11008 | #endif | ||
11009 | char basename (); | ||
11010 | int | ||
11011 | main () | ||
11012 | { | ||
11013 | return basename (); | ||
11014 | ; | ||
11015 | return 0; | ||
11016 | } | ||
11017 | _ACEOF | ||
11018 | for ac_lib in '' gen; do | ||
11019 | if test -z "$ac_lib"; then | ||
11020 | ac_res="none required" | ||
11021 | else | ||
11022 | ac_res=-l$ac_lib | ||
11023 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
11024 | fi | ||
11025 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11026 | if { (ac_try="$ac_link" | ||
11027 | case "(($ac_try" in | ||
11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11029 | *) ac_try_echo=$ac_try;; | ||
11030 | esac | ||
11031 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11032 | $as_echo "$ac_try_echo") >&5 | ||
11033 | (eval "$ac_link") 2>conftest.er1 | ||
11034 | ac_status=$? | ||
11035 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11036 | rm -f conftest.er1 | ||
11037 | cat conftest.err >&5 | ||
11038 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11039 | (exit $ac_status); } && { | ||
11040 | test -z "$ac_c_werror_flag" || | ||
11041 | test ! -s conftest.err | ||
11042 | } && test -s conftest$ac_exeext && { | ||
11043 | test "$cross_compiling" = yes || | ||
11044 | $as_test_x conftest$ac_exeext | ||
11045 | }; then | ||
11046 | ac_cv_search_basename=$ac_res | ||
11047 | else | ||
11048 | $as_echo "$as_me: failed program was:" >&5 | ||
11049 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11050 | |||
11051 | |||
11052 | fi | ||
11053 | |||
11054 | rm -rf conftest.dSYM | ||
11055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11056 | conftest$ac_exeext | ||
11057 | if test "${ac_cv_search_basename+set}" = set; then | ||
11058 | break | ||
11059 | fi | ||
11060 | done | ||
11061 | if test "${ac_cv_search_basename+set}" = set; then | ||
11062 | : | ||
11063 | else | ||
11064 | ac_cv_search_basename=no | ||
11065 | fi | ||
11066 | rm conftest.$ac_ext | ||
11067 | LIBS=$ac_func_search_save_LIBS | ||
11068 | fi | ||
11069 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_basename" >&5 | ||
11070 | $as_echo "$ac_cv_search_basename" >&6; } | ||
11071 | ac_res=$ac_cv_search_basename | ||
11072 | if test "$ac_res" != no; then | ||
11073 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
11074 | |||
11075 | cat >>confdefs.h <<\_ACEOF | ||
11076 | #define HAVE_BASENAME 1 | ||
11077 | _ACEOF | ||
11078 | |||
11079 | fi | ||
11080 | |||
11081 | |||
11082 | |||
11083 | # Check whether --with-zlib was given. | ||
11084 | if test "${with_zlib+set}" = set; then | ||
11085 | withval=$with_zlib; if test "x$withval" = "xno" ; then | ||
11086 | { { $as_echo "$as_me:$LINENO: error: *** zlib is required ***" >&5 | ||
11087 | $as_echo "$as_me: error: *** zlib is required ***" >&2;} | ||
11088 | { (exit 1); exit 1; }; } | ||
11089 | elif test "x$withval" != "xyes"; then | ||
11090 | if test -d "$withval/lib"; then | ||
11091 | if test -n "${need_dash_r}"; then | ||
11092 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
11093 | else | ||
11094 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
11095 | fi | ||
11096 | else | ||
11097 | if test -n "${need_dash_r}"; then | ||
11098 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
11099 | else | ||
11100 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
11101 | fi | ||
11102 | fi | ||
11103 | if test -d "$withval/include"; then | ||
11104 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
11105 | else | ||
11106 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
11107 | fi | ||
11108 | fi | ||
11109 | |||
11110 | fi | ||
11111 | |||
11112 | |||
11113 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
11114 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
11115 | $as_echo_n "checking for zlib.h... " >&6; } | ||
11116 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
11117 | $as_echo_n "(cached) " >&6 | ||
11118 | fi | ||
11119 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
11120 | $as_echo "$ac_cv_header_zlib_h" >&6; } | ||
11121 | else | ||
11122 | # Is the header compilable? | ||
11123 | { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
11124 | $as_echo_n "checking zlib.h usability... " >&6; } | ||
11125 | cat >conftest.$ac_ext <<_ACEOF | ||
11126 | /* confdefs.h. */ | ||
11127 | _ACEOF | ||
11128 | cat confdefs.h >>conftest.$ac_ext | ||
11129 | cat >>conftest.$ac_ext <<_ACEOF | ||
11130 | /* end confdefs.h. */ | ||
11131 | $ac_includes_default | ||
11132 | #include <zlib.h> | ||
11133 | _ACEOF | ||
11134 | rm -f conftest.$ac_objext | ||
11135 | if { (ac_try="$ac_compile" | ||
11136 | case "(($ac_try" in | ||
11137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11138 | *) ac_try_echo=$ac_try;; | ||
11139 | esac | ||
11140 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11141 | $as_echo "$ac_try_echo") >&5 | ||
11142 | (eval "$ac_compile") 2>conftest.er1 | ||
11143 | ac_status=$? | ||
11144 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11145 | rm -f conftest.er1 | ||
11146 | cat conftest.err >&5 | ||
11147 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11148 | (exit $ac_status); } && { | ||
11149 | test -z "$ac_c_werror_flag" || | ||
11150 | test ! -s conftest.err | ||
11151 | } && test -s conftest.$ac_objext; then | ||
11152 | ac_header_compiler=yes | ||
11153 | else | ||
11154 | $as_echo "$as_me: failed program was:" >&5 | ||
11155 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11156 | |||
11157 | ac_header_compiler=no | ||
11158 | fi | ||
11159 | |||
11160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11161 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11162 | $as_echo "$ac_header_compiler" >&6; } | ||
11163 | |||
11164 | # Is the header present? | ||
11165 | { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
11166 | $as_echo_n "checking zlib.h presence... " >&6; } | ||
11167 | cat >conftest.$ac_ext <<_ACEOF | ||
11168 | /* confdefs.h. */ | ||
11169 | _ACEOF | ||
11170 | cat confdefs.h >>conftest.$ac_ext | ||
11171 | cat >>conftest.$ac_ext <<_ACEOF | ||
11172 | /* end confdefs.h. */ | ||
11173 | #include <zlib.h> | ||
11174 | _ACEOF | ||
11175 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11176 | case "(($ac_try" in | ||
11177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11178 | *) ac_try_echo=$ac_try;; | ||
11179 | esac | ||
11180 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11181 | $as_echo "$ac_try_echo") >&5 | ||
11182 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11183 | ac_status=$? | ||
11184 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11185 | rm -f conftest.er1 | ||
11186 | cat conftest.err >&5 | ||
11187 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11188 | (exit $ac_status); } >/dev/null && { | ||
11189 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11190 | test ! -s conftest.err | ||
11191 | }; then | ||
11192 | ac_header_preproc=yes | ||
11193 | else | ||
11194 | $as_echo "$as_me: failed program was:" >&5 | ||
11195 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11196 | |||
11197 | ac_header_preproc=no | ||
11198 | fi | ||
11199 | |||
11200 | rm -f conftest.err conftest.$ac_ext | ||
11201 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11202 | $as_echo "$ac_header_preproc" >&6; } | ||
11203 | |||
11204 | # So? What about this header? | ||
11205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11206 | yes:no: ) | ||
11207 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11208 | $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11209 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
11210 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
11211 | ac_header_preproc=yes | ||
11212 | ;; | ||
11213 | no:yes:* ) | ||
11214 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
11215 | $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
11216 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
11217 | $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
11218 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
11219 | $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
11220 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
11221 | $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11222 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
11223 | $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
11224 | { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
11225 | $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
11226 | ( cat <<\_ASBOX | ||
11227 | ## ------------------------------------------- ## | ||
11228 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11229 | ## ------------------------------------------- ## | ||
11230 | _ASBOX | ||
11231 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11232 | ;; | ||
11233 | esac | ||
11234 | { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
11235 | $as_echo_n "checking for zlib.h... " >&6; } | ||
11236 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
11237 | $as_echo_n "(cached) " >&6 | ||
11238 | else | ||
11239 | ac_cv_header_zlib_h=$ac_header_preproc | ||
11240 | fi | ||
11241 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
11242 | $as_echo "$ac_cv_header_zlib_h" >&6; } | ||
11243 | |||
11244 | fi | ||
11245 | if test $ac_cv_header_zlib_h = yes; then | ||
11246 | : | ||
11247 | else | ||
11248 | { { $as_echo "$as_me:$LINENO: error: *** zlib.h missing - please install first or check config.log ***" >&5 | ||
11249 | $as_echo "$as_me: error: *** zlib.h missing - please install first or check config.log ***" >&2;} | ||
11250 | { (exit 1); exit 1; }; } | ||
11251 | fi | ||
11252 | |||
11253 | |||
11254 | |||
11255 | { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | ||
11256 | $as_echo_n "checking for deflate in -lz... " >&6; } | ||
11257 | if test "${ac_cv_lib_z_deflate+set}" = set; then | ||
11258 | $as_echo_n "(cached) " >&6 | ||
11259 | else | ||
11260 | ac_check_lib_save_LIBS=$LIBS | ||
11261 | LIBS="-lz $LIBS" | ||
11262 | cat >conftest.$ac_ext <<_ACEOF | ||
11263 | /* confdefs.h. */ | ||
11264 | _ACEOF | ||
11265 | cat confdefs.h >>conftest.$ac_ext | ||
11266 | cat >>conftest.$ac_ext <<_ACEOF | ||
11267 | /* end confdefs.h. */ | ||
11268 | |||
11269 | /* Override any GCC internal prototype to avoid an error. | ||
11270 | Use char because int might match the return type of a GCC | ||
11271 | builtin and then its argument prototype would still apply. */ | ||
11272 | #ifdef __cplusplus | ||
11273 | extern "C" | ||
11274 | #endif | ||
11275 | char deflate (); | ||
11276 | int | ||
11277 | main () | ||
11278 | { | ||
11279 | return deflate (); | ||
11280 | ; | ||
11281 | return 0; | ||
11282 | } | ||
11283 | _ACEOF | ||
11284 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11285 | if { (ac_try="$ac_link" | ||
11286 | case "(($ac_try" in | ||
11287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11288 | *) ac_try_echo=$ac_try;; | ||
11289 | esac | ||
11290 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11291 | $as_echo "$ac_try_echo") >&5 | ||
11292 | (eval "$ac_link") 2>conftest.er1 | ||
11293 | ac_status=$? | ||
11294 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11295 | rm -f conftest.er1 | ||
11296 | cat conftest.err >&5 | ||
11297 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11298 | (exit $ac_status); } && { | ||
11299 | test -z "$ac_c_werror_flag" || | ||
11300 | test ! -s conftest.err | ||
11301 | } && test -s conftest$ac_exeext && { | ||
11302 | test "$cross_compiling" = yes || | ||
11303 | $as_test_x conftest$ac_exeext | ||
11304 | }; then | ||
11305 | ac_cv_lib_z_deflate=yes | ||
11306 | else | ||
11307 | $as_echo "$as_me: failed program was:" >&5 | ||
11308 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11309 | |||
11310 | ac_cv_lib_z_deflate=no | ||
11311 | fi | ||
11312 | |||
11313 | rm -rf conftest.dSYM | ||
11314 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11315 | conftest$ac_exeext conftest.$ac_ext | ||
11316 | LIBS=$ac_check_lib_save_LIBS | ||
11317 | fi | ||
11318 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | ||
11319 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | ||
11320 | if test $ac_cv_lib_z_deflate = yes; then | ||
11321 | cat >>confdefs.h <<_ACEOF | ||
11322 | #define HAVE_LIBZ 1 | ||
11323 | _ACEOF | ||
11324 | |||
11325 | LIBS="-lz $LIBS" | ||
11326 | |||
11327 | else | ||
11328 | |||
11329 | saved_CPPFLAGS="$CPPFLAGS" | ||
11330 | saved_LDFLAGS="$LDFLAGS" | ||
11331 | save_LIBS="$LIBS" | ||
11332 | if test -n "${need_dash_r}"; then | ||
11333 | LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}" | ||
11334 | else | ||
11335 | LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}" | ||
11336 | fi | ||
11337 | CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}" | ||
11338 | LIBS="$LIBS -lz" | ||
11339 | cat >conftest.$ac_ext <<_ACEOF | ||
11340 | /* confdefs.h. */ | ||
11341 | _ACEOF | ||
11342 | cat confdefs.h >>conftest.$ac_ext | ||
11343 | cat >>conftest.$ac_ext <<_ACEOF | ||
11344 | /* end confdefs.h. */ | ||
11345 | |||
11346 | /* Override any GCC internal prototype to avoid an error. | ||
11347 | Use char because int might match the return type of a GCC | ||
11348 | builtin and then its argument prototype would still apply. */ | ||
11349 | #ifdef __cplusplus | ||
11350 | extern "C" | ||
11351 | #endif | ||
11352 | char deflate (); | ||
11353 | int | ||
11354 | main () | ||
11355 | { | ||
11356 | return deflate (); | ||
11357 | ; | ||
11358 | return 0; | ||
11359 | } | ||
11360 | _ACEOF | ||
11361 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11362 | if { (ac_try="$ac_link" | ||
11363 | case "(($ac_try" in | ||
11364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11365 | *) ac_try_echo=$ac_try;; | ||
11366 | esac | ||
11367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11368 | $as_echo "$ac_try_echo") >&5 | ||
11369 | (eval "$ac_link") 2>conftest.er1 | ||
11370 | ac_status=$? | ||
11371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11372 | rm -f conftest.er1 | ||
11373 | cat conftest.err >&5 | ||
11374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11375 | (exit $ac_status); } && { | ||
11376 | test -z "$ac_c_werror_flag" || | ||
11377 | test ! -s conftest.err | ||
11378 | } && test -s conftest$ac_exeext && { | ||
11379 | test "$cross_compiling" = yes || | ||
11380 | $as_test_x conftest$ac_exeext | ||
11381 | }; then | ||
11382 | cat >>confdefs.h <<\_ACEOF | ||
11383 | #define HAVE_LIBZ 1 | ||
11384 | _ACEOF | ||
11385 | |||
11386 | else | ||
11387 | $as_echo "$as_me: failed program was:" >&5 | ||
11388 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11389 | |||
11390 | |||
11391 | { { $as_echo "$as_me:$LINENO: error: *** zlib missing - please install first or check config.log ***" >&5 | ||
11392 | $as_echo "$as_me: error: *** zlib missing - please install first or check config.log ***" >&2;} | ||
11393 | { (exit 1); exit 1; }; } | ||
11394 | |||
11395 | |||
11396 | fi | ||
11397 | |||
11398 | rm -rf conftest.dSYM | ||
11399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11400 | conftest$ac_exeext conftest.$ac_ext | ||
11401 | |||
11402 | |||
11403 | fi | ||
11404 | |||
11405 | |||
11406 | |||
11407 | # Check whether --with-zlib-version-check was given. | ||
11408 | if test "${with_zlib_version_check+set}" = set; then | ||
11409 | withval=$with_zlib_version_check; if test "x$withval" = "xno" ; then | ||
11410 | zlib_check_nonfatal=1 | ||
11411 | fi | ||
11412 | |||
11413 | |||
11414 | fi | ||
11415 | |||
11416 | |||
11417 | { $as_echo "$as_me:$LINENO: checking for possibly buggy zlib" >&5 | ||
11418 | $as_echo_n "checking for possibly buggy zlib... " >&6; } | ||
11419 | if test "$cross_compiling" = yes; then | ||
11420 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking zlib version" >&5 | ||
11421 | $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;} | ||
11422 | |||
11423 | else | ||
11424 | cat >conftest.$ac_ext <<_ACEOF | ||
11425 | /* confdefs.h. */ | ||
11426 | _ACEOF | ||
11427 | cat confdefs.h >>conftest.$ac_ext | ||
11428 | cat >>conftest.$ac_ext <<_ACEOF | ||
11429 | /* end confdefs.h. */ | ||
11430 | |||
11431 | #include <stdio.h> | ||
11432 | #include <zlib.h> | ||
11433 | int main() | ||
11434 | { | ||
11435 | int a=0, b=0, c=0, d=0, n, v; | ||
11436 | n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d); | ||
11437 | if (n != 3 && n != 4) | ||
11438 | exit(1); | ||
11439 | v = a*1000000 + b*10000 + c*100 + d; | ||
11440 | fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v); | ||
11441 | |||
11442 | /* 1.1.4 is OK */ | ||
11443 | if (a == 1 && b == 1 && c >= 4) | ||
11444 | exit(0); | ||
11445 | |||
11446 | /* 1.2.3 and up are OK */ | ||
11447 | if (v >= 1020300) | ||
11448 | exit(0); | ||
11449 | |||
11450 | exit(2); | ||
11451 | } | ||
11452 | |||
11453 | _ACEOF | ||
11454 | rm -f conftest$ac_exeext | ||
11455 | if { (ac_try="$ac_link" | ||
11456 | case "(($ac_try" in | ||
11457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11458 | *) ac_try_echo=$ac_try;; | ||
11459 | esac | ||
11460 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11461 | $as_echo "$ac_try_echo") >&5 | ||
11462 | (eval "$ac_link") 2>&5 | ||
11463 | ac_status=$? | ||
11464 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11465 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
11466 | { (case "(($ac_try" in | ||
11467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11468 | *) ac_try_echo=$ac_try;; | ||
11469 | esac | ||
11470 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11471 | $as_echo "$ac_try_echo") >&5 | ||
11472 | (eval "$ac_try") 2>&5 | ||
11473 | ac_status=$? | ||
11474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11475 | (exit $ac_status); }; }; then | ||
11476 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
11477 | $as_echo "no" >&6; } | ||
11478 | else | ||
11479 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
11480 | $as_echo "$as_me: failed program was:" >&5 | ||
11481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11482 | |||
11483 | ( exit $ac_status ) | ||
11484 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
11485 | $as_echo "yes" >&6; } | ||
11486 | if test -z "$zlib_check_nonfatal" ; then | ||
11487 | { { $as_echo "$as_me:$LINENO: error: *** zlib too old - check config.log *** | ||
11488 | Your reported zlib version has known security problems. It's possible your | ||
11489 | vendor has fixed these problems without changing the version number. If you | ||
11490 | are sure this is the case, you can disable the check by running | ||
11491 | \"./configure --without-zlib-version-check\". | ||
11492 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11493 | See http://www.gzip.org/zlib/ for details." >&5 | ||
11494 | $as_echo "$as_me: error: *** zlib too old - check config.log *** | ||
11495 | Your reported zlib version has known security problems. It's possible your | ||
11496 | vendor has fixed these problems without changing the version number. If you | ||
11497 | are sure this is the case, you can disable the check by running | ||
11498 | \"./configure --without-zlib-version-check\". | ||
11499 | If you are in doubt, upgrade zlib to version 1.2.3 or greater. | ||
11500 | See http://www.gzip.org/zlib/ for details." >&2;} | ||
11501 | { (exit 1); exit 1; }; } | ||
11502 | else | ||
11503 | { $as_echo "$as_me:$LINENO: WARNING: zlib version may have security problems" >&5 | ||
11504 | $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;} | ||
11505 | fi | ||
11506 | |||
11507 | fi | ||
11508 | rm -rf conftest.dSYM | ||
11509 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
11510 | fi | ||
11511 | |||
11512 | |||
11513 | |||
11514 | { $as_echo "$as_me:$LINENO: checking for strcasecmp" >&5 | ||
11515 | $as_echo_n "checking for strcasecmp... " >&6; } | ||
11516 | if test "${ac_cv_func_strcasecmp+set}" = set; then | ||
11517 | $as_echo_n "(cached) " >&6 | ||
11518 | else | ||
11519 | cat >conftest.$ac_ext <<_ACEOF | ||
11520 | /* confdefs.h. */ | ||
11521 | _ACEOF | ||
11522 | cat confdefs.h >>conftest.$ac_ext | ||
11523 | cat >>conftest.$ac_ext <<_ACEOF | ||
11524 | /* end confdefs.h. */ | ||
11525 | /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. | ||
11526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11527 | #define strcasecmp innocuous_strcasecmp | ||
11528 | |||
11529 | /* System header to define __stub macros and hopefully few prototypes, | ||
11530 | which can conflict with char strcasecmp (); below. | ||
11531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11532 | <limits.h> exists even on freestanding compilers. */ | ||
11533 | |||
11534 | #ifdef __STDC__ | ||
11535 | # include <limits.h> | ||
11536 | #else | ||
11537 | # include <assert.h> | ||
11538 | #endif | ||
11539 | |||
11540 | #undef strcasecmp | ||
11541 | |||
11542 | /* Override any GCC internal prototype to avoid an error. | ||
11543 | Use char because int might match the return type of a GCC | ||
11544 | builtin and then its argument prototype would still apply. */ | ||
11545 | #ifdef __cplusplus | ||
11546 | extern "C" | ||
11547 | #endif | ||
11548 | char strcasecmp (); | ||
11549 | /* The GNU C library defines this for functions which it implements | ||
11550 | to always fail with ENOSYS. Some functions are actually named | ||
11551 | something starting with __ and the normal name is an alias. */ | ||
11552 | #if defined __stub_strcasecmp || defined __stub___strcasecmp | ||
11553 | choke me | ||
11554 | #endif | ||
11555 | |||
11556 | int | ||
11557 | main () | ||
11558 | { | ||
11559 | return strcasecmp (); | ||
11560 | ; | ||
11561 | return 0; | ||
11562 | } | ||
11563 | _ACEOF | ||
11564 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11565 | if { (ac_try="$ac_link" | ||
11566 | case "(($ac_try" in | ||
11567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11568 | *) ac_try_echo=$ac_try;; | ||
11569 | esac | ||
11570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11571 | $as_echo "$ac_try_echo") >&5 | ||
11572 | (eval "$ac_link") 2>conftest.er1 | ||
11573 | ac_status=$? | ||
11574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11575 | rm -f conftest.er1 | ||
11576 | cat conftest.err >&5 | ||
11577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11578 | (exit $ac_status); } && { | ||
11579 | test -z "$ac_c_werror_flag" || | ||
11580 | test ! -s conftest.err | ||
11581 | } && test -s conftest$ac_exeext && { | ||
11582 | test "$cross_compiling" = yes || | ||
11583 | $as_test_x conftest$ac_exeext | ||
11584 | }; then | ||
11585 | ac_cv_func_strcasecmp=yes | ||
11586 | else | ||
11587 | $as_echo "$as_me: failed program was:" >&5 | ||
11588 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11589 | |||
11590 | ac_cv_func_strcasecmp=no | ||
11591 | fi | ||
11592 | |||
11593 | rm -rf conftest.dSYM | ||
11594 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11595 | conftest$ac_exeext conftest.$ac_ext | ||
11596 | fi | ||
11597 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 | ||
11598 | $as_echo "$ac_cv_func_strcasecmp" >&6; } | ||
11599 | if test $ac_cv_func_strcasecmp = yes; then | ||
11600 | : | ||
11601 | else | ||
11602 | { $as_echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 | ||
11603 | $as_echo_n "checking for strcasecmp in -lresolv... " >&6; } | ||
11604 | if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then | ||
11605 | $as_echo_n "(cached) " >&6 | ||
11606 | else | ||
11607 | ac_check_lib_save_LIBS=$LIBS | ||
11608 | LIBS="-lresolv $LIBS" | ||
11609 | cat >conftest.$ac_ext <<_ACEOF | ||
11610 | /* confdefs.h. */ | ||
11611 | _ACEOF | ||
11612 | cat confdefs.h >>conftest.$ac_ext | ||
11613 | cat >>conftest.$ac_ext <<_ACEOF | ||
11614 | /* end confdefs.h. */ | ||
11615 | |||
11616 | /* Override any GCC internal prototype to avoid an error. | ||
11617 | Use char because int might match the return type of a GCC | ||
11618 | builtin and then its argument prototype would still apply. */ | ||
11619 | #ifdef __cplusplus | ||
11620 | extern "C" | ||
11621 | #endif | ||
11622 | char strcasecmp (); | ||
11623 | int | ||
11624 | main () | ||
11625 | { | ||
11626 | return strcasecmp (); | ||
11627 | ; | ||
11628 | return 0; | ||
11629 | } | ||
11630 | _ACEOF | ||
11631 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11632 | if { (ac_try="$ac_link" | ||
11633 | case "(($ac_try" in | ||
11634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11635 | *) ac_try_echo=$ac_try;; | ||
11636 | esac | ||
11637 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11638 | $as_echo "$ac_try_echo") >&5 | ||
11639 | (eval "$ac_link") 2>conftest.er1 | ||
11640 | ac_status=$? | ||
11641 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11642 | rm -f conftest.er1 | ||
11643 | cat conftest.err >&5 | ||
11644 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11645 | (exit $ac_status); } && { | ||
11646 | test -z "$ac_c_werror_flag" || | ||
11647 | test ! -s conftest.err | ||
11648 | } && test -s conftest$ac_exeext && { | ||
11649 | test "$cross_compiling" = yes || | ||
11650 | $as_test_x conftest$ac_exeext | ||
11651 | }; then | ||
11652 | ac_cv_lib_resolv_strcasecmp=yes | ||
11653 | else | ||
11654 | $as_echo "$as_me: failed program was:" >&5 | ||
11655 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11656 | |||
11657 | ac_cv_lib_resolv_strcasecmp=no | ||
11658 | fi | ||
11659 | |||
11660 | rm -rf conftest.dSYM | ||
11661 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11662 | conftest$ac_exeext conftest.$ac_ext | ||
11663 | LIBS=$ac_check_lib_save_LIBS | ||
11664 | fi | ||
11665 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 | ||
11666 | $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; } | ||
11667 | if test $ac_cv_lib_resolv_strcasecmp = yes; then | ||
11668 | LIBS="$LIBS -lresolv" | ||
11669 | fi | ||
11670 | |||
11671 | |||
11672 | fi | ||
11673 | |||
11674 | |||
11675 | for ac_func in utimes | ||
11676 | do | ||
11677 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
11678 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
11679 | $as_echo_n "checking for $ac_func... " >&6; } | ||
11680 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11681 | $as_echo_n "(cached) " >&6 | ||
11682 | else | ||
11683 | cat >conftest.$ac_ext <<_ACEOF | ||
11684 | /* confdefs.h. */ | ||
11685 | _ACEOF | ||
11686 | cat confdefs.h >>conftest.$ac_ext | ||
11687 | cat >>conftest.$ac_ext <<_ACEOF | ||
11688 | /* end confdefs.h. */ | ||
11689 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
11690 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
11691 | #define $ac_func innocuous_$ac_func | ||
11692 | |||
11693 | /* System header to define __stub macros and hopefully few prototypes, | ||
11694 | which can conflict with char $ac_func (); below. | ||
11695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
11696 | <limits.h> exists even on freestanding compilers. */ | ||
11697 | |||
11698 | #ifdef __STDC__ | ||
11699 | # include <limits.h> | ||
11700 | #else | ||
11701 | # include <assert.h> | ||
11702 | #endif | ||
11703 | |||
11704 | #undef $ac_func | ||
11705 | |||
11706 | /* Override any GCC internal prototype to avoid an error. | ||
11707 | Use char because int might match the return type of a GCC | ||
11708 | builtin and then its argument prototype would still apply. */ | ||
11709 | #ifdef __cplusplus | ||
11710 | extern "C" | ||
11711 | #endif | ||
11712 | char $ac_func (); | ||
11713 | /* The GNU C library defines this for functions which it implements | ||
11714 | to always fail with ENOSYS. Some functions are actually named | ||
11715 | something starting with __ and the normal name is an alias. */ | ||
11716 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
11717 | choke me | ||
11718 | #endif | ||
11719 | |||
11720 | int | ||
11721 | main () | ||
11722 | { | ||
11723 | return $ac_func (); | ||
11724 | ; | ||
11725 | return 0; | ||
11726 | } | ||
11727 | _ACEOF | ||
11728 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11729 | if { (ac_try="$ac_link" | ||
11730 | case "(($ac_try" in | ||
11731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11732 | *) ac_try_echo=$ac_try;; | ||
11733 | esac | ||
11734 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11735 | $as_echo "$ac_try_echo") >&5 | ||
11736 | (eval "$ac_link") 2>conftest.er1 | ||
11737 | ac_status=$? | ||
11738 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11739 | rm -f conftest.er1 | ||
11740 | cat conftest.err >&5 | ||
11741 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11742 | (exit $ac_status); } && { | ||
11743 | test -z "$ac_c_werror_flag" || | ||
11744 | test ! -s conftest.err | ||
11745 | } && test -s conftest$ac_exeext && { | ||
11746 | test "$cross_compiling" = yes || | ||
11747 | $as_test_x conftest$ac_exeext | ||
11748 | }; then | ||
11749 | eval "$as_ac_var=yes" | ||
11750 | else | ||
11751 | $as_echo "$as_me: failed program was:" >&5 | ||
11752 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11753 | |||
11754 | eval "$as_ac_var=no" | ||
11755 | fi | ||
11756 | |||
11757 | rm -rf conftest.dSYM | ||
11758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11759 | conftest$ac_exeext conftest.$ac_ext | ||
11760 | fi | ||
11761 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
11762 | $as_echo "$as_val"'` | ||
11763 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11764 | $as_echo "$ac_res" >&6; } | ||
11765 | if test `eval 'as_val=${'$as_ac_var'} | ||
11766 | $as_echo "$as_val"'` = yes; then | ||
11767 | cat >>confdefs.h <<_ACEOF | ||
11768 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
11769 | _ACEOF | ||
11770 | |||
11771 | else | ||
11772 | { $as_echo "$as_me:$LINENO: checking for utimes in -lc89" >&5 | ||
11773 | $as_echo_n "checking for utimes in -lc89... " >&6; } | ||
11774 | if test "${ac_cv_lib_c89_utimes+set}" = set; then | ||
11775 | $as_echo_n "(cached) " >&6 | ||
11776 | else | ||
11777 | ac_check_lib_save_LIBS=$LIBS | ||
11778 | LIBS="-lc89 $LIBS" | ||
11779 | cat >conftest.$ac_ext <<_ACEOF | ||
11780 | /* confdefs.h. */ | ||
11781 | _ACEOF | ||
11782 | cat confdefs.h >>conftest.$ac_ext | ||
11783 | cat >>conftest.$ac_ext <<_ACEOF | ||
11784 | /* end confdefs.h. */ | ||
11785 | |||
11786 | /* Override any GCC internal prototype to avoid an error. | ||
11787 | Use char because int might match the return type of a GCC | ||
11788 | builtin and then its argument prototype would still apply. */ | ||
11789 | #ifdef __cplusplus | ||
11790 | extern "C" | ||
11791 | #endif | ||
11792 | char utimes (); | ||
11793 | int | ||
11794 | main () | ||
11795 | { | ||
11796 | return utimes (); | ||
11797 | ; | ||
11798 | return 0; | ||
11799 | } | ||
11800 | _ACEOF | ||
11801 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11802 | if { (ac_try="$ac_link" | ||
11803 | case "(($ac_try" in | ||
11804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11805 | *) ac_try_echo=$ac_try;; | ||
11806 | esac | ||
11807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11808 | $as_echo "$ac_try_echo") >&5 | ||
11809 | (eval "$ac_link") 2>conftest.er1 | ||
11810 | ac_status=$? | ||
11811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11812 | rm -f conftest.er1 | ||
11813 | cat conftest.err >&5 | ||
11814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11815 | (exit $ac_status); } && { | ||
11816 | test -z "$ac_c_werror_flag" || | ||
11817 | test ! -s conftest.err | ||
11818 | } && test -s conftest$ac_exeext && { | ||
11819 | test "$cross_compiling" = yes || | ||
11820 | $as_test_x conftest$ac_exeext | ||
11821 | }; then | ||
11822 | ac_cv_lib_c89_utimes=yes | ||
11823 | else | ||
11824 | $as_echo "$as_me: failed program was:" >&5 | ||
11825 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11826 | |||
11827 | ac_cv_lib_c89_utimes=no | ||
11828 | fi | ||
11829 | |||
11830 | rm -rf conftest.dSYM | ||
11831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11832 | conftest$ac_exeext conftest.$ac_ext | ||
11833 | LIBS=$ac_check_lib_save_LIBS | ||
11834 | fi | ||
11835 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c89_utimes" >&5 | ||
11836 | $as_echo "$ac_cv_lib_c89_utimes" >&6; } | ||
11837 | if test $ac_cv_lib_c89_utimes = yes; then | ||
11838 | cat >>confdefs.h <<\_ACEOF | ||
11839 | #define HAVE_UTIMES 1 | ||
11840 | _ACEOF | ||
11841 | |||
11842 | LIBS="$LIBS -lc89" | ||
11843 | fi | ||
11844 | |||
11845 | |||
11846 | fi | ||
11847 | done | ||
11848 | |||
11849 | |||
11850 | |||
11851 | for ac_header in libutil.h | ||
11852 | do | ||
11853 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
11854 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11855 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11856 | $as_echo_n "checking for $ac_header... " >&6; } | ||
11857 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11858 | $as_echo_n "(cached) " >&6 | ||
11859 | fi | ||
11860 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
11861 | $as_echo "$as_val"'` | ||
11862 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11863 | $as_echo "$ac_res" >&6; } | ||
11864 | else | ||
11865 | # Is the header compilable? | ||
11866 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
11867 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
11868 | cat >conftest.$ac_ext <<_ACEOF | ||
11869 | /* confdefs.h. */ | ||
11870 | _ACEOF | ||
11871 | cat confdefs.h >>conftest.$ac_ext | ||
11872 | cat >>conftest.$ac_ext <<_ACEOF | ||
11873 | /* end confdefs.h. */ | ||
11874 | $ac_includes_default | ||
11875 | #include <$ac_header> | ||
11876 | _ACEOF | ||
11877 | rm -f conftest.$ac_objext | ||
11878 | if { (ac_try="$ac_compile" | ||
11879 | case "(($ac_try" in | ||
11880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11881 | *) ac_try_echo=$ac_try;; | ||
11882 | esac | ||
11883 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11884 | $as_echo "$ac_try_echo") >&5 | ||
11885 | (eval "$ac_compile") 2>conftest.er1 | ||
11886 | ac_status=$? | ||
11887 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11888 | rm -f conftest.er1 | ||
11889 | cat conftest.err >&5 | ||
11890 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11891 | (exit $ac_status); } && { | ||
11892 | test -z "$ac_c_werror_flag" || | ||
11893 | test ! -s conftest.err | ||
11894 | } && test -s conftest.$ac_objext; then | ||
11895 | ac_header_compiler=yes | ||
11896 | else | ||
11897 | $as_echo "$as_me: failed program was:" >&5 | ||
11898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11899 | |||
11900 | ac_header_compiler=no | ||
11901 | fi | ||
11902 | |||
11903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
11904 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
11905 | $as_echo "$ac_header_compiler" >&6; } | ||
11906 | |||
11907 | # Is the header present? | ||
11908 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
11909 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
11910 | cat >conftest.$ac_ext <<_ACEOF | ||
11911 | /* confdefs.h. */ | ||
11912 | _ACEOF | ||
11913 | cat confdefs.h >>conftest.$ac_ext | ||
11914 | cat >>conftest.$ac_ext <<_ACEOF | ||
11915 | /* end confdefs.h. */ | ||
11916 | #include <$ac_header> | ||
11917 | _ACEOF | ||
11918 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
11919 | case "(($ac_try" in | ||
11920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11921 | *) ac_try_echo=$ac_try;; | ||
11922 | esac | ||
11923 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
11924 | $as_echo "$ac_try_echo") >&5 | ||
11925 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
11926 | ac_status=$? | ||
11927 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11928 | rm -f conftest.er1 | ||
11929 | cat conftest.err >&5 | ||
11930 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11931 | (exit $ac_status); } >/dev/null && { | ||
11932 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
11933 | test ! -s conftest.err | ||
11934 | }; then | ||
11935 | ac_header_preproc=yes | ||
11936 | else | ||
11937 | $as_echo "$as_me: failed program was:" >&5 | ||
11938 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11939 | |||
11940 | ac_header_preproc=no | ||
11941 | fi | ||
11942 | |||
11943 | rm -f conftest.err conftest.$ac_ext | ||
11944 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
11945 | $as_echo "$ac_header_preproc" >&6; } | ||
11946 | |||
11947 | # So? What about this header? | ||
11948 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
11949 | yes:no: ) | ||
11950 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
11951 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
11952 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
11953 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
11954 | ac_header_preproc=yes | ||
11955 | ;; | ||
11956 | no:yes:* ) | ||
11957 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
11958 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
11959 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
11960 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
11961 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
11962 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
11963 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
11964 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
11965 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
11966 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
11967 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
11968 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
11969 | ( cat <<\_ASBOX | ||
11970 | ## ------------------------------------------- ## | ||
11971 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
11972 | ## ------------------------------------------- ## | ||
11973 | _ASBOX | ||
11974 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
11975 | ;; | ||
11976 | esac | ||
11977 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
11978 | $as_echo_n "checking for $ac_header... " >&6; } | ||
11979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
11980 | $as_echo_n "(cached) " >&6 | ||
11981 | else | ||
11982 | eval "$as_ac_Header=\$ac_header_preproc" | ||
11983 | fi | ||
11984 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
11985 | $as_echo "$as_val"'` | ||
11986 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
11987 | $as_echo "$ac_res" >&6; } | ||
11988 | |||
11989 | fi | ||
11990 | if test `eval 'as_val=${'$as_ac_Header'} | ||
11991 | $as_echo "$as_val"'` = yes; then | ||
11992 | cat >>confdefs.h <<_ACEOF | ||
11993 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
11994 | _ACEOF | ||
11995 | |||
11996 | fi | ||
11997 | |||
11998 | done | ||
11999 | |||
12000 | { $as_echo "$as_me:$LINENO: checking for library containing login" >&5 | ||
12001 | $as_echo_n "checking for library containing login... " >&6; } | ||
12002 | if test "${ac_cv_search_login+set}" = set; then | ||
12003 | $as_echo_n "(cached) " >&6 | ||
12004 | else | ||
12005 | ac_func_search_save_LIBS=$LIBS | ||
12006 | cat >conftest.$ac_ext <<_ACEOF | ||
12007 | /* confdefs.h. */ | ||
12008 | _ACEOF | ||
12009 | cat confdefs.h >>conftest.$ac_ext | ||
12010 | cat >>conftest.$ac_ext <<_ACEOF | ||
12011 | /* end confdefs.h. */ | ||
12012 | |||
12013 | /* Override any GCC internal prototype to avoid an error. | ||
12014 | Use char because int might match the return type of a GCC | ||
12015 | builtin and then its argument prototype would still apply. */ | ||
12016 | #ifdef __cplusplus | ||
12017 | extern "C" | ||
12018 | #endif | ||
12019 | char login (); | ||
12020 | int | ||
12021 | main () | ||
12022 | { | ||
12023 | return login (); | ||
12024 | ; | ||
12025 | return 0; | ||
12026 | } | ||
12027 | _ACEOF | ||
12028 | for ac_lib in '' util bsd; do | ||
12029 | if test -z "$ac_lib"; then | ||
12030 | ac_res="none required" | ||
12031 | else | ||
12032 | ac_res=-l$ac_lib | ||
12033 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
12034 | fi | ||
12035 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12036 | if { (ac_try="$ac_link" | ||
12037 | case "(($ac_try" in | ||
12038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12039 | *) ac_try_echo=$ac_try;; | ||
12040 | esac | ||
12041 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12042 | $as_echo "$ac_try_echo") >&5 | ||
12043 | (eval "$ac_link") 2>conftest.er1 | ||
12044 | ac_status=$? | ||
12045 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12046 | rm -f conftest.er1 | ||
12047 | cat conftest.err >&5 | ||
12048 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12049 | (exit $ac_status); } && { | ||
12050 | test -z "$ac_c_werror_flag" || | ||
12051 | test ! -s conftest.err | ||
12052 | } && test -s conftest$ac_exeext && { | ||
12053 | test "$cross_compiling" = yes || | ||
12054 | $as_test_x conftest$ac_exeext | ||
12055 | }; then | ||
12056 | ac_cv_search_login=$ac_res | ||
12057 | else | ||
12058 | $as_echo "$as_me: failed program was:" >&5 | ||
12059 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12060 | |||
12061 | |||
12062 | fi | ||
12063 | |||
12064 | rm -rf conftest.dSYM | ||
12065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12066 | conftest$ac_exeext | ||
12067 | if test "${ac_cv_search_login+set}" = set; then | ||
12068 | break | ||
12069 | fi | ||
12070 | done | ||
12071 | if test "${ac_cv_search_login+set}" = set; then | ||
12072 | : | ||
12073 | else | ||
12074 | ac_cv_search_login=no | ||
12075 | fi | ||
12076 | rm conftest.$ac_ext | ||
12077 | LIBS=$ac_func_search_save_LIBS | ||
12078 | fi | ||
12079 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5 | ||
12080 | $as_echo "$ac_cv_search_login" >&6; } | ||
12081 | ac_res=$ac_cv_search_login | ||
12082 | if test "$ac_res" != no; then | ||
12083 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
12084 | |||
12085 | cat >>confdefs.h <<\_ACEOF | ||
12086 | #define HAVE_LOGIN 1 | ||
12087 | _ACEOF | ||
12088 | |||
12089 | fi | ||
12090 | |||
12091 | |||
12092 | |||
12093 | |||
12094 | |||
12095 | for ac_func in fmt_scaled logout updwtmp logwtmp | ||
12096 | do | ||
12097 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12098 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12099 | $as_echo_n "checking for $ac_func... " >&6; } | ||
12100 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12101 | $as_echo_n "(cached) " >&6 | ||
12102 | else | ||
12103 | cat >conftest.$ac_ext <<_ACEOF | ||
12104 | /* confdefs.h. */ | ||
12105 | _ACEOF | ||
12106 | cat confdefs.h >>conftest.$ac_ext | ||
12107 | cat >>conftest.$ac_ext <<_ACEOF | ||
12108 | /* end confdefs.h. */ | ||
12109 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12110 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12111 | #define $ac_func innocuous_$ac_func | ||
12112 | |||
12113 | /* System header to define __stub macros and hopefully few prototypes, | ||
12114 | which can conflict with char $ac_func (); below. | ||
12115 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12116 | <limits.h> exists even on freestanding compilers. */ | ||
12117 | |||
12118 | #ifdef __STDC__ | ||
12119 | # include <limits.h> | ||
12120 | #else | ||
12121 | # include <assert.h> | ||
12122 | #endif | ||
12123 | |||
12124 | #undef $ac_func | ||
12125 | |||
12126 | /* Override any GCC internal prototype to avoid an error. | ||
12127 | Use char because int might match the return type of a GCC | ||
12128 | builtin and then its argument prototype would still apply. */ | ||
12129 | #ifdef __cplusplus | ||
12130 | extern "C" | ||
12131 | #endif | ||
12132 | char $ac_func (); | ||
12133 | /* The GNU C library defines this for functions which it implements | ||
12134 | to always fail with ENOSYS. Some functions are actually named | ||
12135 | something starting with __ and the normal name is an alias. */ | ||
12136 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12137 | choke me | ||
12138 | #endif | ||
12139 | |||
12140 | int | ||
12141 | main () | ||
12142 | { | ||
12143 | return $ac_func (); | ||
12144 | ; | ||
12145 | return 0; | ||
12146 | } | ||
12147 | _ACEOF | ||
12148 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12149 | if { (ac_try="$ac_link" | ||
12150 | case "(($ac_try" in | ||
12151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12152 | *) ac_try_echo=$ac_try;; | ||
12153 | esac | ||
12154 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12155 | $as_echo "$ac_try_echo") >&5 | ||
12156 | (eval "$ac_link") 2>conftest.er1 | ||
12157 | ac_status=$? | ||
12158 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12159 | rm -f conftest.er1 | ||
12160 | cat conftest.err >&5 | ||
12161 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12162 | (exit $ac_status); } && { | ||
12163 | test -z "$ac_c_werror_flag" || | ||
12164 | test ! -s conftest.err | ||
12165 | } && test -s conftest$ac_exeext && { | ||
12166 | test "$cross_compiling" = yes || | ||
12167 | $as_test_x conftest$ac_exeext | ||
12168 | }; then | ||
12169 | eval "$as_ac_var=yes" | ||
12170 | else | ||
12171 | $as_echo "$as_me: failed program was:" >&5 | ||
12172 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12173 | |||
12174 | eval "$as_ac_var=no" | ||
12175 | fi | ||
12176 | |||
12177 | rm -rf conftest.dSYM | ||
12178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12179 | conftest$ac_exeext conftest.$ac_ext | ||
12180 | fi | ||
12181 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
12182 | $as_echo "$as_val"'` | ||
12183 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12184 | $as_echo "$ac_res" >&6; } | ||
12185 | if test `eval 'as_val=${'$as_ac_var'} | ||
12186 | $as_echo "$as_val"'` = yes; then | ||
12187 | cat >>confdefs.h <<_ACEOF | ||
12188 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12189 | _ACEOF | ||
12190 | |||
12191 | fi | ||
12192 | done | ||
12193 | |||
12194 | |||
12195 | |||
12196 | for ac_func in strftime | ||
12197 | do | ||
12198 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
12199 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
12200 | $as_echo_n "checking for $ac_func... " >&6; } | ||
12201 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
12202 | $as_echo_n "(cached) " >&6 | ||
12203 | else | ||
12204 | cat >conftest.$ac_ext <<_ACEOF | ||
12205 | /* confdefs.h. */ | ||
12206 | _ACEOF | ||
12207 | cat confdefs.h >>conftest.$ac_ext | ||
12208 | cat >>conftest.$ac_ext <<_ACEOF | ||
12209 | /* end confdefs.h. */ | ||
12210 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
12211 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12212 | #define $ac_func innocuous_$ac_func | ||
12213 | |||
12214 | /* System header to define __stub macros and hopefully few prototypes, | ||
12215 | which can conflict with char $ac_func (); below. | ||
12216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12217 | <limits.h> exists even on freestanding compilers. */ | ||
12218 | |||
12219 | #ifdef __STDC__ | ||
12220 | # include <limits.h> | ||
12221 | #else | ||
12222 | # include <assert.h> | ||
12223 | #endif | ||
12224 | |||
12225 | #undef $ac_func | ||
12226 | |||
12227 | /* Override any GCC internal prototype to avoid an error. | ||
12228 | Use char because int might match the return type of a GCC | ||
12229 | builtin and then its argument prototype would still apply. */ | ||
12230 | #ifdef __cplusplus | ||
12231 | extern "C" | ||
12232 | #endif | ||
12233 | char $ac_func (); | ||
12234 | /* The GNU C library defines this for functions which it implements | ||
12235 | to always fail with ENOSYS. Some functions are actually named | ||
12236 | something starting with __ and the normal name is an alias. */ | ||
12237 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
12238 | choke me | ||
12239 | #endif | ||
12240 | |||
12241 | int | ||
12242 | main () | ||
12243 | { | ||
12244 | return $ac_func (); | ||
12245 | ; | ||
12246 | return 0; | ||
12247 | } | ||
12248 | _ACEOF | ||
12249 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12250 | if { (ac_try="$ac_link" | ||
12251 | case "(($ac_try" in | ||
12252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12253 | *) ac_try_echo=$ac_try;; | ||
12254 | esac | ||
12255 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12256 | $as_echo "$ac_try_echo") >&5 | ||
12257 | (eval "$ac_link") 2>conftest.er1 | ||
12258 | ac_status=$? | ||
12259 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12260 | rm -f conftest.er1 | ||
12261 | cat conftest.err >&5 | ||
12262 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12263 | (exit $ac_status); } && { | ||
12264 | test -z "$ac_c_werror_flag" || | ||
12265 | test ! -s conftest.err | ||
12266 | } && test -s conftest$ac_exeext && { | ||
12267 | test "$cross_compiling" = yes || | ||
12268 | $as_test_x conftest$ac_exeext | ||
12269 | }; then | ||
12270 | eval "$as_ac_var=yes" | ||
12271 | else | ||
12272 | $as_echo "$as_me: failed program was:" >&5 | ||
12273 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12274 | |||
12275 | eval "$as_ac_var=no" | ||
12276 | fi | ||
12277 | |||
12278 | rm -rf conftest.dSYM | ||
12279 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12280 | conftest$ac_exeext conftest.$ac_ext | ||
12281 | fi | ||
12282 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
12283 | $as_echo "$as_val"'` | ||
12284 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
12285 | $as_echo "$ac_res" >&6; } | ||
12286 | if test `eval 'as_val=${'$as_ac_var'} | ||
12287 | $as_echo "$as_val"'` = yes; then | ||
12288 | cat >>confdefs.h <<_ACEOF | ||
12289 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
12290 | _ACEOF | ||
12291 | |||
12292 | else | ||
12293 | # strftime is in -lintl on SCO UNIX. | ||
12294 | { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | ||
12295 | $as_echo_n "checking for strftime in -lintl... " >&6; } | ||
12296 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | ||
12297 | $as_echo_n "(cached) " >&6 | ||
12298 | else | ||
12299 | ac_check_lib_save_LIBS=$LIBS | ||
12300 | LIBS="-lintl $LIBS" | ||
12301 | cat >conftest.$ac_ext <<_ACEOF | ||
12302 | /* confdefs.h. */ | ||
12303 | _ACEOF | ||
12304 | cat confdefs.h >>conftest.$ac_ext | ||
12305 | cat >>conftest.$ac_ext <<_ACEOF | ||
12306 | /* end confdefs.h. */ | ||
12307 | |||
12308 | /* Override any GCC internal prototype to avoid an error. | ||
12309 | Use char because int might match the return type of a GCC | ||
12310 | builtin and then its argument prototype would still apply. */ | ||
12311 | #ifdef __cplusplus | ||
12312 | extern "C" | ||
12313 | #endif | ||
12314 | char strftime (); | ||
12315 | int | ||
12316 | main () | ||
12317 | { | ||
12318 | return strftime (); | ||
12319 | ; | ||
12320 | return 0; | ||
12321 | } | ||
12322 | _ACEOF | ||
12323 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12324 | if { (ac_try="$ac_link" | ||
12325 | case "(($ac_try" in | ||
12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12327 | *) ac_try_echo=$ac_try;; | ||
12328 | esac | ||
12329 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12330 | $as_echo "$ac_try_echo") >&5 | ||
12331 | (eval "$ac_link") 2>conftest.er1 | ||
12332 | ac_status=$? | ||
12333 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12334 | rm -f conftest.er1 | ||
12335 | cat conftest.err >&5 | ||
12336 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12337 | (exit $ac_status); } && { | ||
12338 | test -z "$ac_c_werror_flag" || | ||
12339 | test ! -s conftest.err | ||
12340 | } && test -s conftest$ac_exeext && { | ||
12341 | test "$cross_compiling" = yes || | ||
12342 | $as_test_x conftest$ac_exeext | ||
12343 | }; then | ||
12344 | ac_cv_lib_intl_strftime=yes | ||
12345 | else | ||
12346 | $as_echo "$as_me: failed program was:" >&5 | ||
12347 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12348 | |||
12349 | ac_cv_lib_intl_strftime=no | ||
12350 | fi | ||
12351 | |||
12352 | rm -rf conftest.dSYM | ||
12353 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12354 | conftest$ac_exeext conftest.$ac_ext | ||
12355 | LIBS=$ac_check_lib_save_LIBS | ||
12356 | fi | ||
12357 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | ||
12358 | $as_echo "$ac_cv_lib_intl_strftime" >&6; } | ||
12359 | if test $ac_cv_lib_intl_strftime = yes; then | ||
12360 | cat >>confdefs.h <<\_ACEOF | ||
12361 | #define HAVE_STRFTIME 1 | ||
12362 | _ACEOF | ||
12363 | |||
12364 | LIBS="-lintl $LIBS" | ||
12365 | fi | ||
12366 | |||
12367 | fi | ||
12368 | done | ||
12369 | |||
12370 | |||
12371 | # Check for ALTDIRFUNC glob() extension | ||
12372 | { $as_echo "$as_me:$LINENO: checking for GLOB_ALTDIRFUNC support" >&5 | ||
12373 | $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; } | ||
12374 | cat >conftest.$ac_ext <<_ACEOF | ||
12375 | /* confdefs.h. */ | ||
12376 | _ACEOF | ||
12377 | cat confdefs.h >>conftest.$ac_ext | ||
12378 | cat >>conftest.$ac_ext <<_ACEOF | ||
12379 | /* end confdefs.h. */ | ||
12380 | |||
12381 | #include <glob.h> | ||
12382 | #ifdef GLOB_ALTDIRFUNC | ||
12383 | FOUNDIT | ||
12384 | #endif | ||
12385 | |||
12386 | _ACEOF | ||
12387 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
12388 | $EGREP "FOUNDIT" >/dev/null 2>&1; then | ||
12389 | |||
12390 | |||
12391 | cat >>confdefs.h <<\_ACEOF | ||
12392 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
12393 | _ACEOF | ||
12394 | |||
12395 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12396 | $as_echo "yes" >&6; } | ||
12397 | |||
12398 | else | ||
12399 | |||
12400 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
12401 | $as_echo "no" >&6; } | ||
12402 | |||
12403 | |||
12404 | fi | ||
12405 | rm -f conftest* | ||
12406 | |||
12407 | |||
12408 | # Check for g.gl_matchc glob() extension | ||
12409 | { $as_echo "$as_me:$LINENO: checking for gl_matchc field in glob_t" >&5 | ||
12410 | $as_echo_n "checking for gl_matchc field in glob_t... " >&6; } | ||
12411 | cat >conftest.$ac_ext <<_ACEOF | ||
12412 | /* confdefs.h. */ | ||
12413 | _ACEOF | ||
12414 | cat confdefs.h >>conftest.$ac_ext | ||
12415 | cat >>conftest.$ac_ext <<_ACEOF | ||
12416 | /* end confdefs.h. */ | ||
12417 | #include <glob.h> | ||
12418 | int | ||
12419 | main () | ||
12420 | { | ||
12421 | glob_t g; g.gl_matchc = 1; | ||
12422 | ; | ||
12423 | return 0; | ||
12424 | } | ||
12425 | _ACEOF | ||
12426 | rm -f conftest.$ac_objext | ||
12427 | if { (ac_try="$ac_compile" | ||
12428 | case "(($ac_try" in | ||
12429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12430 | *) ac_try_echo=$ac_try;; | ||
12431 | esac | ||
12432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12433 | $as_echo "$ac_try_echo") >&5 | ||
12434 | (eval "$ac_compile") 2>conftest.er1 | ||
12435 | ac_status=$? | ||
12436 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12437 | rm -f conftest.er1 | ||
12438 | cat conftest.err >&5 | ||
12439 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12440 | (exit $ac_status); } && { | ||
12441 | test -z "$ac_c_werror_flag" || | ||
12442 | test ! -s conftest.err | ||
12443 | } && test -s conftest.$ac_objext; then | ||
12444 | |||
12445 | |||
12446 | cat >>confdefs.h <<\_ACEOF | ||
12447 | #define GLOB_HAS_GL_MATCHC 1 | ||
12448 | _ACEOF | ||
12449 | |||
12450 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12451 | $as_echo "yes" >&6; } | ||
12452 | |||
12453 | else | ||
12454 | $as_echo "$as_me: failed program was:" >&5 | ||
12455 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12456 | |||
12457 | |||
12458 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
12459 | $as_echo "no" >&6; } | ||
12460 | |||
12461 | |||
12462 | fi | ||
12463 | |||
12464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12465 | |||
12466 | { $as_echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5 | ||
12467 | $as_echo_n "checking whether GLOB_NOMATCH is declared... " >&6; } | ||
12468 | if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then | ||
12469 | $as_echo_n "(cached) " >&6 | ||
12470 | else | ||
12471 | cat >conftest.$ac_ext <<_ACEOF | ||
12472 | /* confdefs.h. */ | ||
12473 | _ACEOF | ||
12474 | cat confdefs.h >>conftest.$ac_ext | ||
12475 | cat >>conftest.$ac_ext <<_ACEOF | ||
12476 | /* end confdefs.h. */ | ||
12477 | #include <glob.h> | ||
12478 | |||
12479 | int | ||
12480 | main () | ||
12481 | { | ||
12482 | #ifndef GLOB_NOMATCH | ||
12483 | (void) GLOB_NOMATCH; | ||
12484 | #endif | ||
12485 | |||
12486 | ; | ||
12487 | return 0; | ||
12488 | } | ||
12489 | _ACEOF | ||
12490 | rm -f conftest.$ac_objext | ||
12491 | if { (ac_try="$ac_compile" | ||
12492 | case "(($ac_try" in | ||
12493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12494 | *) ac_try_echo=$ac_try;; | ||
12495 | esac | ||
12496 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12497 | $as_echo "$ac_try_echo") >&5 | ||
12498 | (eval "$ac_compile") 2>conftest.er1 | ||
12499 | ac_status=$? | ||
12500 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12501 | rm -f conftest.er1 | ||
12502 | cat conftest.err >&5 | ||
12503 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12504 | (exit $ac_status); } && { | ||
12505 | test -z "$ac_c_werror_flag" || | ||
12506 | test ! -s conftest.err | ||
12507 | } && test -s conftest.$ac_objext; then | ||
12508 | ac_cv_have_decl_GLOB_NOMATCH=yes | ||
12509 | else | ||
12510 | $as_echo "$as_me: failed program was:" >&5 | ||
12511 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12512 | |||
12513 | ac_cv_have_decl_GLOB_NOMATCH=no | ||
12514 | fi | ||
12515 | |||
12516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12517 | fi | ||
12518 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5 | ||
12519 | $as_echo "$ac_cv_have_decl_GLOB_NOMATCH" >&6; } | ||
12520 | if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then | ||
12521 | |||
12522 | cat >>confdefs.h <<_ACEOF | ||
12523 | #define HAVE_DECL_GLOB_NOMATCH 1 | ||
12524 | _ACEOF | ||
12525 | |||
12526 | |||
12527 | else | ||
12528 | cat >>confdefs.h <<_ACEOF | ||
12529 | #define HAVE_DECL_GLOB_NOMATCH 0 | ||
12530 | _ACEOF | ||
12531 | |||
12532 | |||
12533 | fi | ||
12534 | |||
12535 | |||
12536 | |||
12537 | { $as_echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 | ||
12538 | $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; } | ||
12539 | if test "$cross_compiling" = yes; then | ||
12540 | |||
12541 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5 | ||
12542 | $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;} | ||
12543 | cat >>confdefs.h <<\_ACEOF | ||
12544 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12545 | _ACEOF | ||
12546 | |||
12547 | |||
12548 | |||
12549 | else | ||
12550 | cat >conftest.$ac_ext <<_ACEOF | ||
12551 | /* confdefs.h. */ | ||
12552 | _ACEOF | ||
12553 | cat confdefs.h >>conftest.$ac_ext | ||
12554 | cat >>conftest.$ac_ext <<_ACEOF | ||
12555 | /* end confdefs.h. */ | ||
12556 | |||
12557 | #include <sys/types.h> | ||
12558 | #include <dirent.h> | ||
12559 | int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));} | ||
12560 | |||
12561 | _ACEOF | ||
12562 | rm -f conftest$ac_exeext | ||
12563 | if { (ac_try="$ac_link" | ||
12564 | case "(($ac_try" in | ||
12565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12566 | *) ac_try_echo=$ac_try;; | ||
12567 | esac | ||
12568 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12569 | $as_echo "$ac_try_echo") >&5 | ||
12570 | (eval "$ac_link") 2>&5 | ||
12571 | ac_status=$? | ||
12572 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12573 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
12574 | { (case "(($ac_try" in | ||
12575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12576 | *) ac_try_echo=$ac_try;; | ||
12577 | esac | ||
12578 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12579 | $as_echo "$ac_try_echo") >&5 | ||
12580 | (eval "$ac_try") 2>&5 | ||
12581 | ac_status=$? | ||
12582 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12583 | (exit $ac_status); }; }; then | ||
12584 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12585 | $as_echo "yes" >&6; } | ||
12586 | else | ||
12587 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
12588 | $as_echo "$as_me: failed program was:" >&5 | ||
12589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12590 | |||
12591 | ( exit $ac_status ) | ||
12592 | |||
12593 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
12594 | $as_echo "no" >&6; } | ||
12595 | |||
12596 | cat >>confdefs.h <<\_ACEOF | ||
12597 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
12598 | _ACEOF | ||
12599 | |||
12600 | |||
12601 | fi | ||
12602 | rm -rf conftest.dSYM | ||
12603 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
12604 | fi | ||
12605 | |||
12606 | |||
12607 | |||
12608 | { $as_echo "$as_me:$LINENO: checking for /proc/pid/fd directory" >&5 | ||
12609 | $as_echo_n "checking for /proc/pid/fd directory... " >&6; } | ||
12610 | if test -d "/proc/$$/fd" ; then | ||
12611 | |||
12612 | cat >>confdefs.h <<\_ACEOF | ||
12613 | #define HAVE_PROC_PID 1 | ||
12614 | _ACEOF | ||
12615 | |||
12616 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12617 | $as_echo "yes" >&6; } | ||
12618 | else | ||
12619 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
12620 | $as_echo "no" >&6; } | ||
12621 | fi | ||
12622 | |||
12623 | # Check whether user wants S/Key support | ||
12624 | SKEY_MSG="no" | ||
12625 | |||
12626 | # Check whether --with-skey was given. | ||
12627 | if test "${with_skey+set}" = set; then | ||
12628 | withval=$with_skey; | ||
12629 | if test "x$withval" != "xno" ; then | ||
12630 | |||
12631 | if test "x$withval" != "xyes" ; then | ||
12632 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12633 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
12634 | fi | ||
12635 | |||
12636 | |||
12637 | cat >>confdefs.h <<\_ACEOF | ||
12638 | #define SKEY 1 | ||
12639 | _ACEOF | ||
12640 | |||
12641 | LIBS="-lskey $LIBS" | ||
12642 | SKEY_MSG="yes" | ||
12643 | |||
12644 | { $as_echo "$as_me:$LINENO: checking for s/key support" >&5 | ||
12645 | $as_echo_n "checking for s/key support... " >&6; } | ||
12646 | cat >conftest.$ac_ext <<_ACEOF | ||
12647 | /* confdefs.h. */ | ||
12648 | _ACEOF | ||
12649 | cat confdefs.h >>conftest.$ac_ext | ||
12650 | cat >>conftest.$ac_ext <<_ACEOF | ||
12651 | /* end confdefs.h. */ | ||
12652 | |||
12653 | #include <stdio.h> | ||
12654 | #include <skey.h> | ||
12655 | int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); } | ||
12656 | |||
12657 | _ACEOF | ||
12658 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12659 | if { (ac_try="$ac_link" | ||
12660 | case "(($ac_try" in | ||
12661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12662 | *) ac_try_echo=$ac_try;; | ||
12663 | esac | ||
12664 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12665 | $as_echo "$ac_try_echo") >&5 | ||
12666 | (eval "$ac_link") 2>conftest.er1 | ||
12667 | ac_status=$? | ||
12668 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12669 | rm -f conftest.er1 | ||
12670 | cat conftest.err >&5 | ||
12671 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12672 | (exit $ac_status); } && { | ||
12673 | test -z "$ac_c_werror_flag" || | ||
12674 | test ! -s conftest.err | ||
12675 | } && test -s conftest$ac_exeext && { | ||
12676 | test "$cross_compiling" = yes || | ||
12677 | $as_test_x conftest$ac_exeext | ||
12678 | }; then | ||
12679 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12680 | $as_echo "yes" >&6; } | ||
12681 | else | ||
12682 | $as_echo "$as_me: failed program was:" >&5 | ||
12683 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12684 | |||
12685 | |||
12686 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
12687 | $as_echo "no" >&6; } | ||
12688 | { { $as_echo "$as_me:$LINENO: error: ** Incomplete or missing s/key libraries." >&5 | ||
12689 | $as_echo "$as_me: error: ** Incomplete or missing s/key libraries." >&2;} | ||
12690 | { (exit 1); exit 1; }; } | ||
12691 | |||
12692 | fi | ||
12693 | |||
12694 | rm -rf conftest.dSYM | ||
12695 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12696 | conftest$ac_exeext conftest.$ac_ext | ||
12697 | { $as_echo "$as_me:$LINENO: checking if skeychallenge takes 4 arguments" >&5 | ||
12698 | $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; } | ||
12699 | cat >conftest.$ac_ext <<_ACEOF | ||
12700 | /* confdefs.h. */ | ||
12701 | _ACEOF | ||
12702 | cat confdefs.h >>conftest.$ac_ext | ||
12703 | cat >>conftest.$ac_ext <<_ACEOF | ||
12704 | /* end confdefs.h. */ | ||
12705 | #include <stdio.h> | ||
12706 | #include <skey.h> | ||
12707 | int | ||
12708 | main () | ||
12709 | { | ||
12710 | (void)skeychallenge(NULL,"name","",0); | ||
12711 | ; | ||
12712 | return 0; | ||
12713 | } | ||
12714 | _ACEOF | ||
12715 | rm -f conftest.$ac_objext | ||
12716 | if { (ac_try="$ac_compile" | ||
12717 | case "(($ac_try" in | ||
12718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12719 | *) ac_try_echo=$ac_try;; | ||
12720 | esac | ||
12721 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12722 | $as_echo "$ac_try_echo") >&5 | ||
12723 | (eval "$ac_compile") 2>conftest.er1 | ||
12724 | ac_status=$? | ||
12725 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12726 | rm -f conftest.er1 | ||
12727 | cat conftest.err >&5 | ||
12728 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12729 | (exit $ac_status); } && { | ||
12730 | test -z "$ac_c_werror_flag" || | ||
12731 | test ! -s conftest.err | ||
12732 | } && test -s conftest.$ac_objext; then | ||
12733 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12734 | $as_echo "yes" >&6; } | ||
12735 | |||
12736 | cat >>confdefs.h <<\_ACEOF | ||
12737 | #define SKEYCHALLENGE_4ARG 1 | ||
12738 | _ACEOF | ||
12739 | |||
12740 | else | ||
12741 | $as_echo "$as_me: failed program was:" >&5 | ||
12742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12743 | |||
12744 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
12745 | $as_echo "no" >&6; } | ||
12746 | |||
12747 | fi | ||
12748 | |||
12749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
12750 | fi | ||
12751 | |||
12752 | |||
12753 | fi | ||
12754 | |||
12755 | |||
12756 | # Check whether user wants TCP wrappers support | ||
12757 | TCPW_MSG="no" | ||
12758 | |||
12759 | # Check whether --with-tcp-wrappers was given. | ||
12760 | if test "${with_tcp_wrappers+set}" = set; then | ||
12761 | withval=$with_tcp_wrappers; | ||
12762 | if test "x$withval" != "xno" ; then | ||
12763 | saved_LIBS="$LIBS" | ||
12764 | saved_LDFLAGS="$LDFLAGS" | ||
12765 | saved_CPPFLAGS="$CPPFLAGS" | ||
12766 | if test -n "${withval}" && \ | ||
12767 | test "x${withval}" != "xyes"; then | ||
12768 | if test -d "${withval}/lib"; then | ||
12769 | if test -n "${need_dash_r}"; then | ||
12770 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12771 | else | ||
12772 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12773 | fi | ||
12774 | else | ||
12775 | if test -n "${need_dash_r}"; then | ||
12776 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
12777 | else | ||
12778 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
12779 | fi | ||
12780 | fi | ||
12781 | if test -d "${withval}/include"; then | ||
12782 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
12783 | else | ||
12784 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
12785 | fi | ||
12786 | fi | ||
12787 | LIBS="-lwrap $LIBS" | ||
12788 | { $as_echo "$as_me:$LINENO: checking for libwrap" >&5 | ||
12789 | $as_echo_n "checking for libwrap... " >&6; } | ||
12790 | cat >conftest.$ac_ext <<_ACEOF | ||
12791 | /* confdefs.h. */ | ||
12792 | _ACEOF | ||
12793 | cat confdefs.h >>conftest.$ac_ext | ||
12794 | cat >>conftest.$ac_ext <<_ACEOF | ||
12795 | /* end confdefs.h. */ | ||
12796 | |||
12797 | #include <sys/types.h> | ||
12798 | #include <sys/socket.h> | ||
12799 | #include <netinet/in.h> | ||
12800 | #include <tcpd.h> | ||
12801 | int deny_severity = 0, allow_severity = 0; | ||
12802 | |||
12803 | int | ||
12804 | main () | ||
12805 | { | ||
12806 | hosts_access(0); | ||
12807 | ; | ||
12808 | return 0; | ||
12809 | } | ||
12810 | _ACEOF | ||
12811 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12812 | if { (ac_try="$ac_link" | ||
12813 | case "(($ac_try" in | ||
12814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12815 | *) ac_try_echo=$ac_try;; | ||
12816 | esac | ||
12817 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12818 | $as_echo "$ac_try_echo") >&5 | ||
12819 | (eval "$ac_link") 2>conftest.er1 | ||
12820 | ac_status=$? | ||
12821 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12822 | rm -f conftest.er1 | ||
12823 | cat conftest.err >&5 | ||
12824 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12825 | (exit $ac_status); } && { | ||
12826 | test -z "$ac_c_werror_flag" || | ||
12827 | test ! -s conftest.err | ||
12828 | } && test -s conftest$ac_exeext && { | ||
12829 | test "$cross_compiling" = yes || | ||
12830 | $as_test_x conftest$ac_exeext | ||
12831 | }; then | ||
12832 | |||
12833 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12834 | $as_echo "yes" >&6; } | ||
12835 | |||
12836 | cat >>confdefs.h <<\_ACEOF | ||
12837 | #define LIBWRAP 1 | ||
12838 | _ACEOF | ||
12839 | |||
12840 | SSHDLIBS="$SSHDLIBS -lwrap" | ||
12841 | TCPW_MSG="yes" | ||
12842 | |||
12843 | else | ||
12844 | $as_echo "$as_me: failed program was:" >&5 | ||
12845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12846 | |||
12847 | |||
12848 | { { $as_echo "$as_me:$LINENO: error: *** libwrap missing" >&5 | ||
12849 | $as_echo "$as_me: error: *** libwrap missing" >&2;} | ||
12850 | { (exit 1); exit 1; }; } | ||
12851 | |||
12852 | |||
12853 | fi | ||
12854 | |||
12855 | rm -rf conftest.dSYM | ||
12856 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12857 | conftest$ac_exeext conftest.$ac_ext | ||
12858 | LIBS="$saved_LIBS" | ||
12859 | fi | ||
12860 | |||
12861 | |||
12862 | fi | ||
12863 | |||
12864 | |||
12865 | # Check whether user wants libedit support | ||
12866 | LIBEDIT_MSG="no" | ||
12867 | |||
12868 | # Check whether --with-libedit was given. | ||
12869 | if test "${with_libedit+set}" = set; then | ||
12870 | withval=$with_libedit; if test "x$withval" != "xno" ; then | ||
12871 | if test "x$withval" != "xyes"; then | ||
12872 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
12873 | if test -n "${need_dash_r}"; then | ||
12874 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
12875 | else | ||
12876 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
12877 | fi | ||
12878 | fi | ||
12879 | { $as_echo "$as_me:$LINENO: checking for el_init in -ledit" >&5 | ||
12880 | $as_echo_n "checking for el_init in -ledit... " >&6; } | ||
12881 | if test "${ac_cv_lib_edit_el_init+set}" = set; then | ||
12882 | $as_echo_n "(cached) " >&6 | ||
12883 | else | ||
12884 | ac_check_lib_save_LIBS=$LIBS | ||
12885 | LIBS="-ledit -lcurses | ||
12886 | $LIBS" | ||
12887 | cat >conftest.$ac_ext <<_ACEOF | ||
12888 | /* confdefs.h. */ | ||
12889 | _ACEOF | ||
12890 | cat confdefs.h >>conftest.$ac_ext | ||
12891 | cat >>conftest.$ac_ext <<_ACEOF | ||
12892 | /* end confdefs.h. */ | ||
12893 | |||
12894 | /* Override any GCC internal prototype to avoid an error. | ||
12895 | Use char because int might match the return type of a GCC | ||
12896 | builtin and then its argument prototype would still apply. */ | ||
12897 | #ifdef __cplusplus | ||
12898 | extern "C" | ||
12899 | #endif | ||
12900 | char el_init (); | ||
12901 | int | ||
12902 | main () | ||
12903 | { | ||
12904 | return el_init (); | ||
12905 | ; | ||
12906 | return 0; | ||
12907 | } | ||
12908 | _ACEOF | ||
12909 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12910 | if { (ac_try="$ac_link" | ||
12911 | case "(($ac_try" in | ||
12912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12913 | *) ac_try_echo=$ac_try;; | ||
12914 | esac | ||
12915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12916 | $as_echo "$ac_try_echo") >&5 | ||
12917 | (eval "$ac_link") 2>conftest.er1 | ||
12918 | ac_status=$? | ||
12919 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12920 | rm -f conftest.er1 | ||
12921 | cat conftest.err >&5 | ||
12922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12923 | (exit $ac_status); } && { | ||
12924 | test -z "$ac_c_werror_flag" || | ||
12925 | test ! -s conftest.err | ||
12926 | } && test -s conftest$ac_exeext && { | ||
12927 | test "$cross_compiling" = yes || | ||
12928 | $as_test_x conftest$ac_exeext | ||
12929 | }; then | ||
12930 | ac_cv_lib_edit_el_init=yes | ||
12931 | else | ||
12932 | $as_echo "$as_me: failed program was:" >&5 | ||
12933 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12934 | |||
12935 | ac_cv_lib_edit_el_init=no | ||
12936 | fi | ||
12937 | |||
12938 | rm -rf conftest.dSYM | ||
12939 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
12940 | conftest$ac_exeext conftest.$ac_ext | ||
12941 | LIBS=$ac_check_lib_save_LIBS | ||
12942 | fi | ||
12943 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_init" >&5 | ||
12944 | $as_echo "$ac_cv_lib_edit_el_init" >&6; } | ||
12945 | if test $ac_cv_lib_edit_el_init = yes; then | ||
12946 | |||
12947 | cat >>confdefs.h <<\_ACEOF | ||
12948 | #define USE_LIBEDIT 1 | ||
12949 | _ACEOF | ||
12950 | |||
12951 | LIBEDIT="-ledit -lcurses" | ||
12952 | LIBEDIT_MSG="yes" | ||
12953 | |||
12954 | |||
12955 | else | ||
12956 | { { $as_echo "$as_me:$LINENO: error: libedit not found" >&5 | ||
12957 | $as_echo "$as_me: error: libedit not found" >&2;} | ||
12958 | { (exit 1); exit 1; }; } | ||
12959 | fi | ||
12960 | |||
12961 | { $as_echo "$as_me:$LINENO: checking if libedit version is compatible" >&5 | ||
12962 | $as_echo_n "checking if libedit version is compatible... " >&6; } | ||
12963 | cat >conftest.$ac_ext <<_ACEOF | ||
12964 | /* confdefs.h. */ | ||
12965 | _ACEOF | ||
12966 | cat confdefs.h >>conftest.$ac_ext | ||
12967 | cat >>conftest.$ac_ext <<_ACEOF | ||
12968 | /* end confdefs.h. */ | ||
12969 | |||
12970 | #include <histedit.h> | ||
12971 | int main(void) | ||
12972 | { | ||
12973 | int i = H_SETSIZE; | ||
12974 | el_init("", NULL, NULL, NULL); | ||
12975 | exit(0); | ||
12976 | } | ||
12977 | |||
12978 | _ACEOF | ||
12979 | rm -f conftest.$ac_objext | ||
12980 | if { (ac_try="$ac_compile" | ||
12981 | case "(($ac_try" in | ||
12982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
12983 | *) ac_try_echo=$ac_try;; | ||
12984 | esac | ||
12985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
12986 | $as_echo "$ac_try_echo") >&5 | ||
12987 | (eval "$ac_compile") 2>conftest.er1 | ||
12988 | ac_status=$? | ||
12989 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12990 | rm -f conftest.er1 | ||
12991 | cat conftest.err >&5 | ||
12992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12993 | (exit $ac_status); } && { | ||
12994 | test -z "$ac_c_werror_flag" || | ||
12995 | test ! -s conftest.err | ||
12996 | } && test -s conftest.$ac_objext; then | ||
12997 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
12998 | $as_echo "yes" >&6; } | ||
12999 | else | ||
13000 | $as_echo "$as_me: failed program was:" >&5 | ||
13001 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13002 | |||
13003 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
13004 | $as_echo "no" >&6; } | ||
13005 | { { $as_echo "$as_me:$LINENO: error: libedit version is not compatible" >&5 | ||
13006 | $as_echo "$as_me: error: libedit version is not compatible" >&2;} | ||
13007 | { (exit 1); exit 1; }; } | ||
13008 | |||
13009 | fi | ||
13010 | |||
13011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13012 | fi | ||
13013 | |||
13014 | fi | ||
13015 | |||
13016 | |||
13017 | AUDIT_MODULE=none | ||
13018 | |||
13019 | # Check whether --with-audit was given. | ||
13020 | if test "${with_audit+set}" = set; then | ||
13021 | withval=$with_audit; | ||
13022 | { $as_echo "$as_me:$LINENO: checking for supported audit module" >&5 | ||
13023 | $as_echo_n "checking for supported audit module... " >&6; } | ||
13024 | case "$withval" in | ||
13025 | bsm) | ||
13026 | { $as_echo "$as_me:$LINENO: result: bsm" >&5 | ||
13027 | $as_echo "bsm" >&6; } | ||
13028 | AUDIT_MODULE=bsm | ||
13029 | |||
13030 | for ac_header in bsm/audit.h | ||
13031 | do | ||
13032 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
13033 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
13034 | $as_echo_n "checking for $ac_header... " >&6; } | ||
13035 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13036 | $as_echo_n "(cached) " >&6 | ||
13037 | else | ||
13038 | cat >conftest.$ac_ext <<_ACEOF | ||
13039 | /* confdefs.h. */ | ||
13040 | _ACEOF | ||
13041 | cat confdefs.h >>conftest.$ac_ext | ||
13042 | cat >>conftest.$ac_ext <<_ACEOF | ||
13043 | /* end confdefs.h. */ | ||
13044 | |||
13045 | #ifdef HAVE_TIME_H | ||
13046 | # include <time.h> | ||
13047 | #endif | ||
13048 | |||
13049 | |||
13050 | |||
13051 | #include <$ac_header> | ||
13052 | _ACEOF | ||
13053 | rm -f conftest.$ac_objext | ||
13054 | if { (ac_try="$ac_compile" | ||
13055 | case "(($ac_try" in | ||
13056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13057 | *) ac_try_echo=$ac_try;; | ||
13058 | esac | ||
13059 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13060 | $as_echo "$ac_try_echo") >&5 | ||
13061 | (eval "$ac_compile") 2>conftest.er1 | ||
13062 | ac_status=$? | ||
13063 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13064 | rm -f conftest.er1 | ||
13065 | cat conftest.err >&5 | ||
13066 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13067 | (exit $ac_status); } && { | ||
13068 | test -z "$ac_c_werror_flag" || | ||
13069 | test ! -s conftest.err | ||
13070 | } && test -s conftest.$ac_objext; then | ||
13071 | eval "$as_ac_Header=yes" | ||
13072 | else | ||
13073 | $as_echo "$as_me: failed program was:" >&5 | ||
13074 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13075 | |||
13076 | eval "$as_ac_Header=no" | ||
13077 | fi | ||
13078 | |||
13079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13080 | fi | ||
13081 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
13082 | $as_echo "$as_val"'` | ||
13083 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13084 | $as_echo "$ac_res" >&6; } | ||
13085 | if test `eval 'as_val=${'$as_ac_Header'} | ||
13086 | $as_echo "$as_val"'` = yes; then | ||
13087 | cat >>confdefs.h <<_ACEOF | ||
13088 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
13089 | _ACEOF | ||
13090 | |||
13091 | else | ||
13092 | { { $as_echo "$as_me:$LINENO: error: BSM enabled and bsm/audit.h not found" >&5 | ||
13093 | $as_echo "$as_me: error: BSM enabled and bsm/audit.h not found" >&2;} | ||
13094 | { (exit 1); exit 1; }; } | ||
13095 | fi | ||
13096 | |||
13097 | done | ||
13098 | |||
13099 | |||
13100 | { $as_echo "$as_me:$LINENO: checking for getaudit in -lbsm" >&5 | ||
13101 | $as_echo_n "checking for getaudit in -lbsm... " >&6; } | ||
13102 | if test "${ac_cv_lib_bsm_getaudit+set}" = set; then | ||
13103 | $as_echo_n "(cached) " >&6 | ||
13104 | else | ||
13105 | ac_check_lib_save_LIBS=$LIBS | ||
13106 | LIBS="-lbsm $LIBS" | ||
13107 | cat >conftest.$ac_ext <<_ACEOF | ||
13108 | /* confdefs.h. */ | ||
13109 | _ACEOF | ||
13110 | cat confdefs.h >>conftest.$ac_ext | ||
13111 | cat >>conftest.$ac_ext <<_ACEOF | ||
13112 | /* end confdefs.h. */ | ||
13113 | |||
13114 | /* Override any GCC internal prototype to avoid an error. | ||
13115 | Use char because int might match the return type of a GCC | ||
13116 | builtin and then its argument prototype would still apply. */ | ||
13117 | #ifdef __cplusplus | ||
13118 | extern "C" | ||
13119 | #endif | ||
13120 | char getaudit (); | ||
13121 | int | ||
13122 | main () | ||
13123 | { | ||
13124 | return getaudit (); | ||
13125 | ; | ||
13126 | return 0; | ||
13127 | } | ||
13128 | _ACEOF | ||
13129 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13130 | if { (ac_try="$ac_link" | ||
13131 | case "(($ac_try" in | ||
13132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13133 | *) ac_try_echo=$ac_try;; | ||
13134 | esac | ||
13135 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13136 | $as_echo "$ac_try_echo") >&5 | ||
13137 | (eval "$ac_link") 2>conftest.er1 | ||
13138 | ac_status=$? | ||
13139 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13140 | rm -f conftest.er1 | ||
13141 | cat conftest.err >&5 | ||
13142 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13143 | (exit $ac_status); } && { | ||
13144 | test -z "$ac_c_werror_flag" || | ||
13145 | test ! -s conftest.err | ||
13146 | } && test -s conftest$ac_exeext && { | ||
13147 | test "$cross_compiling" = yes || | ||
13148 | $as_test_x conftest$ac_exeext | ||
13149 | }; then | ||
13150 | ac_cv_lib_bsm_getaudit=yes | ||
13151 | else | ||
13152 | $as_echo "$as_me: failed program was:" >&5 | ||
13153 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13154 | |||
13155 | ac_cv_lib_bsm_getaudit=no | ||
13156 | fi | ||
13157 | |||
13158 | rm -rf conftest.dSYM | ||
13159 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13160 | conftest$ac_exeext conftest.$ac_ext | ||
13161 | LIBS=$ac_check_lib_save_LIBS | ||
13162 | fi | ||
13163 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_getaudit" >&5 | ||
13164 | $as_echo "$ac_cv_lib_bsm_getaudit" >&6; } | ||
13165 | if test $ac_cv_lib_bsm_getaudit = yes; then | ||
13166 | cat >>confdefs.h <<_ACEOF | ||
13167 | #define HAVE_LIBBSM 1 | ||
13168 | _ACEOF | ||
13169 | |||
13170 | LIBS="-lbsm $LIBS" | ||
13171 | |||
13172 | else | ||
13173 | { { $as_echo "$as_me:$LINENO: error: BSM enabled and required library not found" >&5 | ||
13174 | $as_echo "$as_me: error: BSM enabled and required library not found" >&2;} | ||
13175 | { (exit 1); exit 1; }; } | ||
13176 | fi | ||
13177 | |||
13178 | |||
13179 | for ac_func in getaudit | ||
13180 | do | ||
13181 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13182 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13183 | $as_echo_n "checking for $ac_func... " >&6; } | ||
13184 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13185 | $as_echo_n "(cached) " >&6 | ||
13186 | else | ||
13187 | cat >conftest.$ac_ext <<_ACEOF | ||
13188 | /* confdefs.h. */ | ||
13189 | _ACEOF | ||
13190 | cat confdefs.h >>conftest.$ac_ext | ||
13191 | cat >>conftest.$ac_ext <<_ACEOF | ||
13192 | /* end confdefs.h. */ | ||
13193 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13195 | #define $ac_func innocuous_$ac_func | ||
13196 | |||
13197 | /* System header to define __stub macros and hopefully few prototypes, | ||
13198 | which can conflict with char $ac_func (); below. | ||
13199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13200 | <limits.h> exists even on freestanding compilers. */ | ||
13201 | |||
13202 | #ifdef __STDC__ | ||
13203 | # include <limits.h> | ||
13204 | #else | ||
13205 | # include <assert.h> | ||
13206 | #endif | ||
13207 | |||
13208 | #undef $ac_func | ||
13209 | |||
13210 | /* Override any GCC internal prototype to avoid an error. | ||
13211 | Use char because int might match the return type of a GCC | ||
13212 | builtin and then its argument prototype would still apply. */ | ||
13213 | #ifdef __cplusplus | ||
13214 | extern "C" | ||
13215 | #endif | ||
13216 | char $ac_func (); | ||
13217 | /* The GNU C library defines this for functions which it implements | ||
13218 | to always fail with ENOSYS. Some functions are actually named | ||
13219 | something starting with __ and the normal name is an alias. */ | ||
13220 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13221 | choke me | ||
13222 | #endif | ||
13223 | |||
13224 | int | ||
13225 | main () | ||
13226 | { | ||
13227 | return $ac_func (); | ||
13228 | ; | ||
13229 | return 0; | ||
13230 | } | ||
13231 | _ACEOF | ||
13232 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13233 | if { (ac_try="$ac_link" | ||
13234 | case "(($ac_try" in | ||
13235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13236 | *) ac_try_echo=$ac_try;; | ||
13237 | esac | ||
13238 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13239 | $as_echo "$ac_try_echo") >&5 | ||
13240 | (eval "$ac_link") 2>conftest.er1 | ||
13241 | ac_status=$? | ||
13242 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13243 | rm -f conftest.er1 | ||
13244 | cat conftest.err >&5 | ||
13245 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13246 | (exit $ac_status); } && { | ||
13247 | test -z "$ac_c_werror_flag" || | ||
13248 | test ! -s conftest.err | ||
13249 | } && test -s conftest$ac_exeext && { | ||
13250 | test "$cross_compiling" = yes || | ||
13251 | $as_test_x conftest$ac_exeext | ||
13252 | }; then | ||
13253 | eval "$as_ac_var=yes" | ||
13254 | else | ||
13255 | $as_echo "$as_me: failed program was:" >&5 | ||
13256 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13257 | |||
13258 | eval "$as_ac_var=no" | ||
13259 | fi | ||
13260 | |||
13261 | rm -rf conftest.dSYM | ||
13262 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13263 | conftest$ac_exeext conftest.$ac_ext | ||
13264 | fi | ||
13265 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
13266 | $as_echo "$as_val"'` | ||
13267 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13268 | $as_echo "$ac_res" >&6; } | ||
13269 | if test `eval 'as_val=${'$as_ac_var'} | ||
13270 | $as_echo "$as_val"'` = yes; then | ||
13271 | cat >>confdefs.h <<_ACEOF | ||
13272 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13273 | _ACEOF | ||
13274 | |||
13275 | else | ||
13276 | { { $as_echo "$as_me:$LINENO: error: BSM enabled and required function not found" >&5 | ||
13277 | $as_echo "$as_me: error: BSM enabled and required function not found" >&2;} | ||
13278 | { (exit 1); exit 1; }; } | ||
13279 | fi | ||
13280 | done | ||
13281 | |||
13282 | # These are optional | ||
13283 | |||
13284 | |||
13285 | for ac_func in getaudit_addr aug_get_machine | ||
13286 | do | ||
13287 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13288 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13289 | $as_echo_n "checking for $ac_func... " >&6; } | ||
13290 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13291 | $as_echo_n "(cached) " >&6 | ||
13292 | else | ||
13293 | cat >conftest.$ac_ext <<_ACEOF | ||
13294 | /* confdefs.h. */ | ||
13295 | _ACEOF | ||
13296 | cat confdefs.h >>conftest.$ac_ext | ||
13297 | cat >>conftest.$ac_ext <<_ACEOF | ||
13298 | /* end confdefs.h. */ | ||
13299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13301 | #define $ac_func innocuous_$ac_func | ||
13302 | |||
13303 | /* System header to define __stub macros and hopefully few prototypes, | ||
13304 | which can conflict with char $ac_func (); below. | ||
13305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13306 | <limits.h> exists even on freestanding compilers. */ | ||
13307 | |||
13308 | #ifdef __STDC__ | ||
13309 | # include <limits.h> | ||
13310 | #else | ||
13311 | # include <assert.h> | ||
13312 | #endif | ||
13313 | |||
13314 | #undef $ac_func | ||
13315 | |||
13316 | /* Override any GCC internal prototype to avoid an error. | ||
13317 | Use char because int might match the return type of a GCC | ||
13318 | builtin and then its argument prototype would still apply. */ | ||
13319 | #ifdef __cplusplus | ||
13320 | extern "C" | ||
13321 | #endif | ||
13322 | char $ac_func (); | ||
13323 | /* The GNU C library defines this for functions which it implements | ||
13324 | to always fail with ENOSYS. Some functions are actually named | ||
13325 | something starting with __ and the normal name is an alias. */ | ||
13326 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13327 | choke me | ||
13328 | #endif | ||
13329 | |||
13330 | int | ||
13331 | main () | ||
13332 | { | ||
13333 | return $ac_func (); | ||
13334 | ; | ||
13335 | return 0; | ||
13336 | } | ||
13337 | _ACEOF | ||
13338 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13339 | if { (ac_try="$ac_link" | ||
13340 | case "(($ac_try" in | ||
13341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13342 | *) ac_try_echo=$ac_try;; | ||
13343 | esac | ||
13344 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13345 | $as_echo "$ac_try_echo") >&5 | ||
13346 | (eval "$ac_link") 2>conftest.er1 | ||
13347 | ac_status=$? | ||
13348 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13349 | rm -f conftest.er1 | ||
13350 | cat conftest.err >&5 | ||
13351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13352 | (exit $ac_status); } && { | ||
13353 | test -z "$ac_c_werror_flag" || | ||
13354 | test ! -s conftest.err | ||
13355 | } && test -s conftest$ac_exeext && { | ||
13356 | test "$cross_compiling" = yes || | ||
13357 | $as_test_x conftest$ac_exeext | ||
13358 | }; then | ||
13359 | eval "$as_ac_var=yes" | ||
13360 | else | ||
13361 | $as_echo "$as_me: failed program was:" >&5 | ||
13362 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13363 | |||
13364 | eval "$as_ac_var=no" | ||
13365 | fi | ||
13366 | |||
13367 | rm -rf conftest.dSYM | ||
13368 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13369 | conftest$ac_exeext conftest.$ac_ext | ||
13370 | fi | ||
13371 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
13372 | $as_echo "$as_val"'` | ||
13373 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13374 | $as_echo "$ac_res" >&6; } | ||
13375 | if test `eval 'as_val=${'$as_ac_var'} | ||
13376 | $as_echo "$as_val"'` = yes; then | ||
13377 | cat >>confdefs.h <<_ACEOF | ||
13378 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13379 | _ACEOF | ||
13380 | |||
13381 | fi | ||
13382 | done | ||
13383 | |||
13384 | |||
13385 | cat >>confdefs.h <<\_ACEOF | ||
13386 | #define USE_BSM_AUDIT 1 | ||
13387 | _ACEOF | ||
13388 | |||
13389 | ;; | ||
13390 | debug) | ||
13391 | AUDIT_MODULE=debug | ||
13392 | { $as_echo "$as_me:$LINENO: result: debug" >&5 | ||
13393 | $as_echo "debug" >&6; } | ||
13394 | |||
13395 | cat >>confdefs.h <<\_ACEOF | ||
13396 | #define SSH_AUDIT_EVENTS 1 | ||
13397 | _ACEOF | ||
13398 | |||
13399 | ;; | ||
13400 | no) | ||
13401 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
13402 | $as_echo "no" >&6; } | ||
13403 | ;; | ||
13404 | *) | ||
13405 | { { $as_echo "$as_me:$LINENO: error: Unknown audit module $withval" >&5 | ||
13406 | $as_echo "$as_me: error: Unknown audit module $withval" >&2;} | ||
13407 | { (exit 1); exit 1; }; } | ||
13408 | ;; | ||
13409 | esac | ||
13410 | |||
13411 | fi | ||
13412 | |||
13413 | |||
13414 | |||
13415 | |||
13416 | |||
13417 | |||
13418 | |||
13419 | |||
13420 | |||
13421 | |||
13422 | |||
13423 | |||
13424 | |||
13425 | |||
13426 | |||
13427 | |||
13428 | |||
13429 | |||
13430 | |||
13431 | |||
13432 | |||
13433 | |||
13434 | |||
13435 | |||
13436 | |||
13437 | |||
13438 | |||
13439 | |||
13440 | |||
13441 | |||
13442 | |||
13443 | |||
13444 | |||
13445 | |||
13446 | |||
13447 | |||
13448 | |||
13449 | |||
13450 | |||
13451 | |||
13452 | |||
13453 | |||
13454 | |||
13455 | |||
13456 | |||
13457 | |||
13458 | |||
13459 | |||
13460 | |||
13461 | |||
13462 | |||
13463 | |||
13464 | |||
13465 | |||
13466 | |||
13467 | |||
13468 | |||
13469 | |||
13470 | |||
13471 | |||
13472 | |||
13473 | |||
13474 | |||
13475 | |||
13476 | |||
13477 | |||
13478 | |||
13479 | |||
13480 | |||
13481 | |||
13482 | |||
13483 | |||
13484 | |||
13485 | |||
13486 | |||
13487 | |||
13488 | |||
13489 | |||
13490 | |||
13491 | |||
13492 | |||
13493 | |||
13494 | |||
13495 | |||
13496 | |||
13497 | |||
13498 | |||
13499 | |||
13500 | |||
13501 | |||
13502 | |||
13503 | for ac_func in \ | ||
13504 | arc4random \ | ||
13505 | arc4random_buf \ | ||
13506 | arc4random_uniform \ | ||
13507 | asprintf \ | ||
13508 | b64_ntop \ | ||
13509 | __b64_ntop \ | ||
13510 | b64_pton \ | ||
13511 | __b64_pton \ | ||
13512 | bcopy \ | ||
13513 | bindresvport_sa \ | ||
13514 | clock \ | ||
13515 | closefrom \ | ||
13516 | dirfd \ | ||
13517 | fchmod \ | ||
13518 | fchown \ | ||
13519 | freeaddrinfo \ | ||
13520 | fstatvfs \ | ||
13521 | futimes \ | ||
13522 | getaddrinfo \ | ||
13523 | getcwd \ | ||
13524 | getgrouplist \ | ||
13525 | getnameinfo \ | ||
13526 | getopt \ | ||
13527 | getpeereid \ | ||
13528 | getpeerucred \ | ||
13529 | _getpty \ | ||
13530 | getrlimit \ | ||
13531 | getttyent \ | ||
13532 | glob \ | ||
13533 | inet_aton \ | ||
13534 | inet_ntoa \ | ||
13535 | inet_ntop \ | ||
13536 | innetgr \ | ||
13537 | login_getcapbool \ | ||
13538 | md5_crypt \ | ||
13539 | memmove \ | ||
13540 | mkdtemp \ | ||
13541 | mmap \ | ||
13542 | ngetaddrinfo \ | ||
13543 | nsleep \ | ||
13544 | ogetaddrinfo \ | ||
13545 | openlog_r \ | ||
13546 | openpty \ | ||
13547 | poll \ | ||
13548 | prctl \ | ||
13549 | pstat \ | ||
13550 | readpassphrase \ | ||
13551 | realpath \ | ||
13552 | recvmsg \ | ||
13553 | rresvport_af \ | ||
13554 | sendmsg \ | ||
13555 | setdtablesize \ | ||
13556 | setegid \ | ||
13557 | setenv \ | ||
13558 | seteuid \ | ||
13559 | setgroups \ | ||
13560 | setlogin \ | ||
13561 | setpcred \ | ||
13562 | setproctitle \ | ||
13563 | setregid \ | ||
13564 | setreuid \ | ||
13565 | setrlimit \ | ||
13566 | setsid \ | ||
13567 | setvbuf \ | ||
13568 | sigaction \ | ||
13569 | sigvec \ | ||
13570 | snprintf \ | ||
13571 | socketpair \ | ||
13572 | statfs \ | ||
13573 | statvfs \ | ||
13574 | strdup \ | ||
13575 | strerror \ | ||
13576 | strlcat \ | ||
13577 | strlcpy \ | ||
13578 | strmode \ | ||
13579 | strnvis \ | ||
13580 | strtonum \ | ||
13581 | strtoll \ | ||
13582 | strtoul \ | ||
13583 | swap32 \ | ||
13584 | sysconf \ | ||
13585 | tcgetpgrp \ | ||
13586 | truncate \ | ||
13587 | unsetenv \ | ||
13588 | updwtmpx \ | ||
13589 | vasprintf \ | ||
13590 | vhangup \ | ||
13591 | vsnprintf \ | ||
13592 | waitpid \ | ||
13593 | |||
13594 | do | ||
13595 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13596 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13597 | $as_echo_n "checking for $ac_func... " >&6; } | ||
13598 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13599 | $as_echo_n "(cached) " >&6 | ||
13600 | else | ||
13601 | cat >conftest.$ac_ext <<_ACEOF | ||
13602 | /* confdefs.h. */ | ||
13603 | _ACEOF | ||
13604 | cat confdefs.h >>conftest.$ac_ext | ||
13605 | cat >>conftest.$ac_ext <<_ACEOF | ||
13606 | /* end confdefs.h. */ | ||
13607 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13608 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13609 | #define $ac_func innocuous_$ac_func | ||
13610 | |||
13611 | /* System header to define __stub macros and hopefully few prototypes, | ||
13612 | which can conflict with char $ac_func (); below. | ||
13613 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13614 | <limits.h> exists even on freestanding compilers. */ | ||
13615 | |||
13616 | #ifdef __STDC__ | ||
13617 | # include <limits.h> | ||
13618 | #else | ||
13619 | # include <assert.h> | ||
13620 | #endif | ||
13621 | |||
13622 | #undef $ac_func | ||
13623 | |||
13624 | /* Override any GCC internal prototype to avoid an error. | ||
13625 | Use char because int might match the return type of a GCC | ||
13626 | builtin and then its argument prototype would still apply. */ | ||
13627 | #ifdef __cplusplus | ||
13628 | extern "C" | ||
13629 | #endif | ||
13630 | char $ac_func (); | ||
13631 | /* The GNU C library defines this for functions which it implements | ||
13632 | to always fail with ENOSYS. Some functions are actually named | ||
13633 | something starting with __ and the normal name is an alias. */ | ||
13634 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13635 | choke me | ||
13636 | #endif | ||
13637 | |||
13638 | int | ||
13639 | main () | ||
13640 | { | ||
13641 | return $ac_func (); | ||
13642 | ; | ||
13643 | return 0; | ||
13644 | } | ||
13645 | _ACEOF | ||
13646 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13647 | if { (ac_try="$ac_link" | ||
13648 | case "(($ac_try" in | ||
13649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13650 | *) ac_try_echo=$ac_try;; | ||
13651 | esac | ||
13652 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13653 | $as_echo "$ac_try_echo") >&5 | ||
13654 | (eval "$ac_link") 2>conftest.er1 | ||
13655 | ac_status=$? | ||
13656 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13657 | rm -f conftest.er1 | ||
13658 | cat conftest.err >&5 | ||
13659 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13660 | (exit $ac_status); } && { | ||
13661 | test -z "$ac_c_werror_flag" || | ||
13662 | test ! -s conftest.err | ||
13663 | } && test -s conftest$ac_exeext && { | ||
13664 | test "$cross_compiling" = yes || | ||
13665 | $as_test_x conftest$ac_exeext | ||
13666 | }; then | ||
13667 | eval "$as_ac_var=yes" | ||
13668 | else | ||
13669 | $as_echo "$as_me: failed program was:" >&5 | ||
13670 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13671 | |||
13672 | eval "$as_ac_var=no" | ||
13673 | fi | ||
13674 | |||
13675 | rm -rf conftest.dSYM | ||
13676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13677 | conftest$ac_exeext conftest.$ac_ext | ||
13678 | fi | ||
13679 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
13680 | $as_echo "$as_val"'` | ||
13681 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13682 | $as_echo "$ac_res" >&6; } | ||
13683 | if test `eval 'as_val=${'$as_ac_var'} | ||
13684 | $as_echo "$as_val"'` = yes; then | ||
13685 | cat >>confdefs.h <<_ACEOF | ||
13686 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13687 | _ACEOF | ||
13688 | |||
13689 | fi | ||
13690 | done | ||
13691 | |||
13692 | |||
13693 | # IRIX has a const char return value for gai_strerror() | ||
13694 | |||
13695 | for ac_func in gai_strerror | ||
13696 | do | ||
13697 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
13698 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
13699 | $as_echo_n "checking for $ac_func... " >&6; } | ||
13700 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
13701 | $as_echo_n "(cached) " >&6 | ||
13702 | else | ||
13703 | cat >conftest.$ac_ext <<_ACEOF | ||
13704 | /* confdefs.h. */ | ||
13705 | _ACEOF | ||
13706 | cat confdefs.h >>conftest.$ac_ext | ||
13707 | cat >>conftest.$ac_ext <<_ACEOF | ||
13708 | /* end confdefs.h. */ | ||
13709 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
13710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13711 | #define $ac_func innocuous_$ac_func | ||
13712 | |||
13713 | /* System header to define __stub macros and hopefully few prototypes, | ||
13714 | which can conflict with char $ac_func (); below. | ||
13715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13716 | <limits.h> exists even on freestanding compilers. */ | ||
13717 | |||
13718 | #ifdef __STDC__ | ||
13719 | # include <limits.h> | ||
13720 | #else | ||
13721 | # include <assert.h> | ||
13722 | #endif | ||
13723 | |||
13724 | #undef $ac_func | ||
13725 | |||
13726 | /* Override any GCC internal prototype to avoid an error. | ||
13727 | Use char because int might match the return type of a GCC | ||
13728 | builtin and then its argument prototype would still apply. */ | ||
13729 | #ifdef __cplusplus | ||
13730 | extern "C" | ||
13731 | #endif | ||
13732 | char $ac_func (); | ||
13733 | /* The GNU C library defines this for functions which it implements | ||
13734 | to always fail with ENOSYS. Some functions are actually named | ||
13735 | something starting with __ and the normal name is an alias. */ | ||
13736 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
13737 | choke me | ||
13738 | #endif | ||
13739 | |||
13740 | int | ||
13741 | main () | ||
13742 | { | ||
13743 | return $ac_func (); | ||
13744 | ; | ||
13745 | return 0; | ||
13746 | } | ||
13747 | _ACEOF | ||
13748 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13749 | if { (ac_try="$ac_link" | ||
13750 | case "(($ac_try" in | ||
13751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13752 | *) ac_try_echo=$ac_try;; | ||
13753 | esac | ||
13754 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13755 | $as_echo "$ac_try_echo") >&5 | ||
13756 | (eval "$ac_link") 2>conftest.er1 | ||
13757 | ac_status=$? | ||
13758 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13759 | rm -f conftest.er1 | ||
13760 | cat conftest.err >&5 | ||
13761 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13762 | (exit $ac_status); } && { | ||
13763 | test -z "$ac_c_werror_flag" || | ||
13764 | test ! -s conftest.err | ||
13765 | } && test -s conftest$ac_exeext && { | ||
13766 | test "$cross_compiling" = yes || | ||
13767 | $as_test_x conftest$ac_exeext | ||
13768 | }; then | ||
13769 | eval "$as_ac_var=yes" | ||
13770 | else | ||
13771 | $as_echo "$as_me: failed program was:" >&5 | ||
13772 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13773 | |||
13774 | eval "$as_ac_var=no" | ||
13775 | fi | ||
13776 | |||
13777 | rm -rf conftest.dSYM | ||
13778 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13779 | conftest$ac_exeext conftest.$ac_ext | ||
13780 | fi | ||
13781 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
13782 | $as_echo "$as_val"'` | ||
13783 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
13784 | $as_echo "$ac_res" >&6; } | ||
13785 | if test `eval 'as_val=${'$as_ac_var'} | ||
13786 | $as_echo "$as_val"'` = yes; then | ||
13787 | cat >>confdefs.h <<_ACEOF | ||
13788 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
13789 | _ACEOF | ||
13790 | |||
13791 | cat >>confdefs.h <<\_ACEOF | ||
13792 | #define HAVE_GAI_STRERROR 1 | ||
13793 | _ACEOF | ||
13794 | |||
13795 | cat >conftest.$ac_ext <<_ACEOF | ||
13796 | /* confdefs.h. */ | ||
13797 | _ACEOF | ||
13798 | cat confdefs.h >>conftest.$ac_ext | ||
13799 | cat >>conftest.$ac_ext <<_ACEOF | ||
13800 | /* end confdefs.h. */ | ||
13801 | |||
13802 | #include <sys/types.h> | ||
13803 | #include <sys/socket.h> | ||
13804 | #include <netdb.h> | ||
13805 | |||
13806 | const char *gai_strerror(int); | ||
13807 | int | ||
13808 | main () | ||
13809 | { | ||
13810 | |||
13811 | char *str; | ||
13812 | |||
13813 | str = gai_strerror(0); | ||
13814 | ; | ||
13815 | return 0; | ||
13816 | } | ||
13817 | _ACEOF | ||
13818 | rm -f conftest.$ac_objext | ||
13819 | if { (ac_try="$ac_compile" | ||
13820 | case "(($ac_try" in | ||
13821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13822 | *) ac_try_echo=$ac_try;; | ||
13823 | esac | ||
13824 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13825 | $as_echo "$ac_try_echo") >&5 | ||
13826 | (eval "$ac_compile") 2>conftest.er1 | ||
13827 | ac_status=$? | ||
13828 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13829 | rm -f conftest.er1 | ||
13830 | cat conftest.err >&5 | ||
13831 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13832 | (exit $ac_status); } && { | ||
13833 | test -z "$ac_c_werror_flag" || | ||
13834 | test ! -s conftest.err | ||
13835 | } && test -s conftest.$ac_objext; then | ||
13836 | |||
13837 | |||
13838 | cat >>confdefs.h <<\_ACEOF | ||
13839 | #define HAVE_CONST_GAI_STRERROR_PROTO 1 | ||
13840 | _ACEOF | ||
13841 | |||
13842 | else | ||
13843 | $as_echo "$as_me: failed program was:" >&5 | ||
13844 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13845 | |||
13846 | |||
13847 | fi | ||
13848 | |||
13849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13850 | fi | ||
13851 | done | ||
13852 | |||
13853 | |||
13854 | { $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 | ||
13855 | $as_echo_n "checking for library containing nanosleep... " >&6; } | ||
13856 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13857 | $as_echo_n "(cached) " >&6 | ||
13858 | else | ||
13859 | ac_func_search_save_LIBS=$LIBS | ||
13860 | cat >conftest.$ac_ext <<_ACEOF | ||
13861 | /* confdefs.h. */ | ||
13862 | _ACEOF | ||
13863 | cat confdefs.h >>conftest.$ac_ext | ||
13864 | cat >>conftest.$ac_ext <<_ACEOF | ||
13865 | /* end confdefs.h. */ | ||
13866 | |||
13867 | /* Override any GCC internal prototype to avoid an error. | ||
13868 | Use char because int might match the return type of a GCC | ||
13869 | builtin and then its argument prototype would still apply. */ | ||
13870 | #ifdef __cplusplus | ||
13871 | extern "C" | ||
13872 | #endif | ||
13873 | char nanosleep (); | ||
13874 | int | ||
13875 | main () | ||
13876 | { | ||
13877 | return nanosleep (); | ||
13878 | ; | ||
13879 | return 0; | ||
13880 | } | ||
13881 | _ACEOF | ||
13882 | for ac_lib in '' rt posix4; do | ||
13883 | if test -z "$ac_lib"; then | ||
13884 | ac_res="none required" | ||
13885 | else | ||
13886 | ac_res=-l$ac_lib | ||
13887 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
13888 | fi | ||
13889 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13890 | if { (ac_try="$ac_link" | ||
13891 | case "(($ac_try" in | ||
13892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13893 | *) ac_try_echo=$ac_try;; | ||
13894 | esac | ||
13895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13896 | $as_echo "$ac_try_echo") >&5 | ||
13897 | (eval "$ac_link") 2>conftest.er1 | ||
13898 | ac_status=$? | ||
13899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13900 | rm -f conftest.er1 | ||
13901 | cat conftest.err >&5 | ||
13902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13903 | (exit $ac_status); } && { | ||
13904 | test -z "$ac_c_werror_flag" || | ||
13905 | test ! -s conftest.err | ||
13906 | } && test -s conftest$ac_exeext && { | ||
13907 | test "$cross_compiling" = yes || | ||
13908 | $as_test_x conftest$ac_exeext | ||
13909 | }; then | ||
13910 | ac_cv_search_nanosleep=$ac_res | ||
13911 | else | ||
13912 | $as_echo "$as_me: failed program was:" >&5 | ||
13913 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13914 | |||
13915 | |||
13916 | fi | ||
13917 | |||
13918 | rm -rf conftest.dSYM | ||
13919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13920 | conftest$ac_exeext | ||
13921 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13922 | break | ||
13923 | fi | ||
13924 | done | ||
13925 | if test "${ac_cv_search_nanosleep+set}" = set; then | ||
13926 | : | ||
13927 | else | ||
13928 | ac_cv_search_nanosleep=no | ||
13929 | fi | ||
13930 | rm conftest.$ac_ext | ||
13931 | LIBS=$ac_func_search_save_LIBS | ||
13932 | fi | ||
13933 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 | ||
13934 | $as_echo "$ac_cv_search_nanosleep" >&6; } | ||
13935 | ac_res=$ac_cv_search_nanosleep | ||
13936 | if test "$ac_res" != no; then | ||
13937 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
13938 | |||
13939 | cat >>confdefs.h <<\_ACEOF | ||
13940 | #define HAVE_NANOSLEEP 1 | ||
13941 | _ACEOF | ||
13942 | |||
13943 | fi | ||
13944 | |||
13945 | |||
13946 | { $as_echo "$as_me:$LINENO: checking whether getrusage is declared" >&5 | ||
13947 | $as_echo_n "checking whether getrusage is declared... " >&6; } | ||
13948 | if test "${ac_cv_have_decl_getrusage+set}" = set; then | ||
13949 | $as_echo_n "(cached) " >&6 | ||
13950 | else | ||
13951 | cat >conftest.$ac_ext <<_ACEOF | ||
13952 | /* confdefs.h. */ | ||
13953 | _ACEOF | ||
13954 | cat confdefs.h >>conftest.$ac_ext | ||
13955 | cat >>conftest.$ac_ext <<_ACEOF | ||
13956 | /* end confdefs.h. */ | ||
13957 | $ac_includes_default | ||
13958 | int | ||
13959 | main () | ||
13960 | { | ||
13961 | #ifndef getrusage | ||
13962 | (void) getrusage; | ||
13963 | #endif | ||
13964 | |||
13965 | ; | ||
13966 | return 0; | ||
13967 | } | ||
13968 | _ACEOF | ||
13969 | rm -f conftest.$ac_objext | ||
13970 | if { (ac_try="$ac_compile" | ||
13971 | case "(($ac_try" in | ||
13972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13973 | *) ac_try_echo=$ac_try;; | ||
13974 | esac | ||
13975 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
13976 | $as_echo "$ac_try_echo") >&5 | ||
13977 | (eval "$ac_compile") 2>conftest.er1 | ||
13978 | ac_status=$? | ||
13979 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13980 | rm -f conftest.er1 | ||
13981 | cat conftest.err >&5 | ||
13982 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13983 | (exit $ac_status); } && { | ||
13984 | test -z "$ac_c_werror_flag" || | ||
13985 | test ! -s conftest.err | ||
13986 | } && test -s conftest.$ac_objext; then | ||
13987 | ac_cv_have_decl_getrusage=yes | ||
13988 | else | ||
13989 | $as_echo "$as_me: failed program was:" >&5 | ||
13990 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13991 | |||
13992 | ac_cv_have_decl_getrusage=no | ||
13993 | fi | ||
13994 | |||
13995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
13996 | fi | ||
13997 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5 | ||
13998 | $as_echo "$ac_cv_have_decl_getrusage" >&6; } | ||
13999 | if test $ac_cv_have_decl_getrusage = yes; then | ||
14000 | |||
14001 | for ac_func in getrusage | ||
14002 | do | ||
14003 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14004 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14005 | $as_echo_n "checking for $ac_func... " >&6; } | ||
14006 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14007 | $as_echo_n "(cached) " >&6 | ||
14008 | else | ||
14009 | cat >conftest.$ac_ext <<_ACEOF | ||
14010 | /* confdefs.h. */ | ||
14011 | _ACEOF | ||
14012 | cat confdefs.h >>conftest.$ac_ext | ||
14013 | cat >>conftest.$ac_ext <<_ACEOF | ||
14014 | /* end confdefs.h. */ | ||
14015 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14017 | #define $ac_func innocuous_$ac_func | ||
14018 | |||
14019 | /* System header to define __stub macros and hopefully few prototypes, | ||
14020 | which can conflict with char $ac_func (); below. | ||
14021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14022 | <limits.h> exists even on freestanding compilers. */ | ||
14023 | |||
14024 | #ifdef __STDC__ | ||
14025 | # include <limits.h> | ||
14026 | #else | ||
14027 | # include <assert.h> | ||
14028 | #endif | ||
14029 | |||
14030 | #undef $ac_func | ||
14031 | |||
14032 | /* Override any GCC internal prototype to avoid an error. | ||
14033 | Use char because int might match the return type of a GCC | ||
14034 | builtin and then its argument prototype would still apply. */ | ||
14035 | #ifdef __cplusplus | ||
14036 | extern "C" | ||
14037 | #endif | ||
14038 | char $ac_func (); | ||
14039 | /* The GNU C library defines this for functions which it implements | ||
14040 | to always fail with ENOSYS. Some functions are actually named | ||
14041 | something starting with __ and the normal name is an alias. */ | ||
14042 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14043 | choke me | ||
14044 | #endif | ||
14045 | |||
14046 | int | ||
14047 | main () | ||
14048 | { | ||
14049 | return $ac_func (); | ||
14050 | ; | ||
14051 | return 0; | ||
14052 | } | ||
14053 | _ACEOF | ||
14054 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14055 | if { (ac_try="$ac_link" | ||
14056 | case "(($ac_try" in | ||
14057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14058 | *) ac_try_echo=$ac_try;; | ||
14059 | esac | ||
14060 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14061 | $as_echo "$ac_try_echo") >&5 | ||
14062 | (eval "$ac_link") 2>conftest.er1 | ||
14063 | ac_status=$? | ||
14064 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14065 | rm -f conftest.er1 | ||
14066 | cat conftest.err >&5 | ||
14067 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14068 | (exit $ac_status); } && { | ||
14069 | test -z "$ac_c_werror_flag" || | ||
14070 | test ! -s conftest.err | ||
14071 | } && test -s conftest$ac_exeext && { | ||
14072 | test "$cross_compiling" = yes || | ||
14073 | $as_test_x conftest$ac_exeext | ||
14074 | }; then | ||
14075 | eval "$as_ac_var=yes" | ||
14076 | else | ||
14077 | $as_echo "$as_me: failed program was:" >&5 | ||
14078 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14079 | |||
14080 | eval "$as_ac_var=no" | ||
14081 | fi | ||
14082 | |||
14083 | rm -rf conftest.dSYM | ||
14084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14085 | conftest$ac_exeext conftest.$ac_ext | ||
14086 | fi | ||
14087 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
14088 | $as_echo "$as_val"'` | ||
14089 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14090 | $as_echo "$ac_res" >&6; } | ||
14091 | if test `eval 'as_val=${'$as_ac_var'} | ||
14092 | $as_echo "$as_val"'` = yes; then | ||
14093 | cat >>confdefs.h <<_ACEOF | ||
14094 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14095 | _ACEOF | ||
14096 | |||
14097 | fi | ||
14098 | done | ||
14099 | |||
14100 | fi | ||
14101 | |||
14102 | { $as_echo "$as_me:$LINENO: checking whether strsep is declared" >&5 | ||
14103 | $as_echo_n "checking whether strsep is declared... " >&6; } | ||
14104 | if test "${ac_cv_have_decl_strsep+set}" = set; then | ||
14105 | $as_echo_n "(cached) " >&6 | ||
14106 | else | ||
14107 | cat >conftest.$ac_ext <<_ACEOF | ||
14108 | /* confdefs.h. */ | ||
14109 | _ACEOF | ||
14110 | cat confdefs.h >>conftest.$ac_ext | ||
14111 | cat >>conftest.$ac_ext <<_ACEOF | ||
14112 | /* end confdefs.h. */ | ||
14113 | |||
14114 | #ifdef HAVE_STRING_H | ||
14115 | # include <string.h> | ||
14116 | #endif | ||
14117 | |||
14118 | |||
14119 | int | ||
14120 | main () | ||
14121 | { | ||
14122 | #ifndef strsep | ||
14123 | (void) strsep; | ||
14124 | #endif | ||
14125 | |||
14126 | ; | ||
14127 | return 0; | ||
14128 | } | ||
14129 | _ACEOF | ||
14130 | rm -f conftest.$ac_objext | ||
14131 | if { (ac_try="$ac_compile" | ||
14132 | case "(($ac_try" in | ||
14133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14134 | *) ac_try_echo=$ac_try;; | ||
14135 | esac | ||
14136 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14137 | $as_echo "$ac_try_echo") >&5 | ||
14138 | (eval "$ac_compile") 2>conftest.er1 | ||
14139 | ac_status=$? | ||
14140 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14141 | rm -f conftest.er1 | ||
14142 | cat conftest.err >&5 | ||
14143 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14144 | (exit $ac_status); } && { | ||
14145 | test -z "$ac_c_werror_flag" || | ||
14146 | test ! -s conftest.err | ||
14147 | } && test -s conftest.$ac_objext; then | ||
14148 | ac_cv_have_decl_strsep=yes | ||
14149 | else | ||
14150 | $as_echo "$as_me: failed program was:" >&5 | ||
14151 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14152 | |||
14153 | ac_cv_have_decl_strsep=no | ||
14154 | fi | ||
14155 | |||
14156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14157 | fi | ||
14158 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsep" >&5 | ||
14159 | $as_echo "$ac_cv_have_decl_strsep" >&6; } | ||
14160 | if test $ac_cv_have_decl_strsep = yes; then | ||
14161 | |||
14162 | for ac_func in strsep | ||
14163 | do | ||
14164 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14165 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14166 | $as_echo_n "checking for $ac_func... " >&6; } | ||
14167 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14168 | $as_echo_n "(cached) " >&6 | ||
14169 | else | ||
14170 | cat >conftest.$ac_ext <<_ACEOF | ||
14171 | /* confdefs.h. */ | ||
14172 | _ACEOF | ||
14173 | cat confdefs.h >>conftest.$ac_ext | ||
14174 | cat >>conftest.$ac_ext <<_ACEOF | ||
14175 | /* end confdefs.h. */ | ||
14176 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14177 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14178 | #define $ac_func innocuous_$ac_func | ||
14179 | |||
14180 | /* System header to define __stub macros and hopefully few prototypes, | ||
14181 | which can conflict with char $ac_func (); below. | ||
14182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14183 | <limits.h> exists even on freestanding compilers. */ | ||
14184 | |||
14185 | #ifdef __STDC__ | ||
14186 | # include <limits.h> | ||
14187 | #else | ||
14188 | # include <assert.h> | ||
14189 | #endif | ||
14190 | |||
14191 | #undef $ac_func | ||
14192 | |||
14193 | /* Override any GCC internal prototype to avoid an error. | ||
14194 | Use char because int might match the return type of a GCC | ||
14195 | builtin and then its argument prototype would still apply. */ | ||
14196 | #ifdef __cplusplus | ||
14197 | extern "C" | ||
14198 | #endif | ||
14199 | char $ac_func (); | ||
14200 | /* The GNU C library defines this for functions which it implements | ||
14201 | to always fail with ENOSYS. Some functions are actually named | ||
14202 | something starting with __ and the normal name is an alias. */ | ||
14203 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14204 | choke me | ||
14205 | #endif | ||
14206 | |||
14207 | int | ||
14208 | main () | ||
14209 | { | ||
14210 | return $ac_func (); | ||
14211 | ; | ||
14212 | return 0; | ||
14213 | } | ||
14214 | _ACEOF | ||
14215 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14216 | if { (ac_try="$ac_link" | ||
14217 | case "(($ac_try" in | ||
14218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14219 | *) ac_try_echo=$ac_try;; | ||
14220 | esac | ||
14221 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14222 | $as_echo "$ac_try_echo") >&5 | ||
14223 | (eval "$ac_link") 2>conftest.er1 | ||
14224 | ac_status=$? | ||
14225 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14226 | rm -f conftest.er1 | ||
14227 | cat conftest.err >&5 | ||
14228 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14229 | (exit $ac_status); } && { | ||
14230 | test -z "$ac_c_werror_flag" || | ||
14231 | test ! -s conftest.err | ||
14232 | } && test -s conftest$ac_exeext && { | ||
14233 | test "$cross_compiling" = yes || | ||
14234 | $as_test_x conftest$ac_exeext | ||
14235 | }; then | ||
14236 | eval "$as_ac_var=yes" | ||
14237 | else | ||
14238 | $as_echo "$as_me: failed program was:" >&5 | ||
14239 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14240 | |||
14241 | eval "$as_ac_var=no" | ||
14242 | fi | ||
14243 | |||
14244 | rm -rf conftest.dSYM | ||
14245 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14246 | conftest$ac_exeext conftest.$ac_ext | ||
14247 | fi | ||
14248 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
14249 | $as_echo "$as_val"'` | ||
14250 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14251 | $as_echo "$ac_res" >&6; } | ||
14252 | if test `eval 'as_val=${'$as_ac_var'} | ||
14253 | $as_echo "$as_val"'` = yes; then | ||
14254 | cat >>confdefs.h <<_ACEOF | ||
14255 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14256 | _ACEOF | ||
14257 | |||
14258 | fi | ||
14259 | done | ||
14260 | |||
14261 | fi | ||
14262 | |||
14263 | |||
14264 | { $as_echo "$as_me:$LINENO: checking whether tcsendbreak is declared" >&5 | ||
14265 | $as_echo_n "checking whether tcsendbreak is declared... " >&6; } | ||
14266 | if test "${ac_cv_have_decl_tcsendbreak+set}" = set; then | ||
14267 | $as_echo_n "(cached) " >&6 | ||
14268 | else | ||
14269 | cat >conftest.$ac_ext <<_ACEOF | ||
14270 | /* confdefs.h. */ | ||
14271 | _ACEOF | ||
14272 | cat confdefs.h >>conftest.$ac_ext | ||
14273 | cat >>conftest.$ac_ext <<_ACEOF | ||
14274 | /* end confdefs.h. */ | ||
14275 | #include <termios.h> | ||
14276 | |||
14277 | |||
14278 | int | ||
14279 | main () | ||
14280 | { | ||
14281 | #ifndef tcsendbreak | ||
14282 | (void) tcsendbreak; | ||
14283 | #endif | ||
14284 | |||
14285 | ; | ||
14286 | return 0; | ||
14287 | } | ||
14288 | _ACEOF | ||
14289 | rm -f conftest.$ac_objext | ||
14290 | if { (ac_try="$ac_compile" | ||
14291 | case "(($ac_try" in | ||
14292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14293 | *) ac_try_echo=$ac_try;; | ||
14294 | esac | ||
14295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14296 | $as_echo "$ac_try_echo") >&5 | ||
14297 | (eval "$ac_compile") 2>conftest.er1 | ||
14298 | ac_status=$? | ||
14299 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14300 | rm -f conftest.er1 | ||
14301 | cat conftest.err >&5 | ||
14302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14303 | (exit $ac_status); } && { | ||
14304 | test -z "$ac_c_werror_flag" || | ||
14305 | test ! -s conftest.err | ||
14306 | } && test -s conftest.$ac_objext; then | ||
14307 | ac_cv_have_decl_tcsendbreak=yes | ||
14308 | else | ||
14309 | $as_echo "$as_me: failed program was:" >&5 | ||
14310 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14311 | |||
14312 | ac_cv_have_decl_tcsendbreak=no | ||
14313 | fi | ||
14314 | |||
14315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14316 | fi | ||
14317 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tcsendbreak" >&5 | ||
14318 | $as_echo "$ac_cv_have_decl_tcsendbreak" >&6; } | ||
14319 | if test $ac_cv_have_decl_tcsendbreak = yes; then | ||
14320 | cat >>confdefs.h <<\_ACEOF | ||
14321 | #define HAVE_TCSENDBREAK 1 | ||
14322 | _ACEOF | ||
14323 | |||
14324 | else | ||
14325 | |||
14326 | for ac_func in tcsendbreak | ||
14327 | do | ||
14328 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14329 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14330 | $as_echo_n "checking for $ac_func... " >&6; } | ||
14331 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14332 | $as_echo_n "(cached) " >&6 | ||
14333 | else | ||
14334 | cat >conftest.$ac_ext <<_ACEOF | ||
14335 | /* confdefs.h. */ | ||
14336 | _ACEOF | ||
14337 | cat confdefs.h >>conftest.$ac_ext | ||
14338 | cat >>conftest.$ac_ext <<_ACEOF | ||
14339 | /* end confdefs.h. */ | ||
14340 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14341 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14342 | #define $ac_func innocuous_$ac_func | ||
14343 | |||
14344 | /* System header to define __stub macros and hopefully few prototypes, | ||
14345 | which can conflict with char $ac_func (); below. | ||
14346 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14347 | <limits.h> exists even on freestanding compilers. */ | ||
14348 | |||
14349 | #ifdef __STDC__ | ||
14350 | # include <limits.h> | ||
14351 | #else | ||
14352 | # include <assert.h> | ||
14353 | #endif | ||
14354 | |||
14355 | #undef $ac_func | ||
14356 | |||
14357 | /* Override any GCC internal prototype to avoid an error. | ||
14358 | Use char because int might match the return type of a GCC | ||
14359 | builtin and then its argument prototype would still apply. */ | ||
14360 | #ifdef __cplusplus | ||
14361 | extern "C" | ||
14362 | #endif | ||
14363 | char $ac_func (); | ||
14364 | /* The GNU C library defines this for functions which it implements | ||
14365 | to always fail with ENOSYS. Some functions are actually named | ||
14366 | something starting with __ and the normal name is an alias. */ | ||
14367 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14368 | choke me | ||
14369 | #endif | ||
14370 | |||
14371 | int | ||
14372 | main () | ||
14373 | { | ||
14374 | return $ac_func (); | ||
14375 | ; | ||
14376 | return 0; | ||
14377 | } | ||
14378 | _ACEOF | ||
14379 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14380 | if { (ac_try="$ac_link" | ||
14381 | case "(($ac_try" in | ||
14382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14383 | *) ac_try_echo=$ac_try;; | ||
14384 | esac | ||
14385 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14386 | $as_echo "$ac_try_echo") >&5 | ||
14387 | (eval "$ac_link") 2>conftest.er1 | ||
14388 | ac_status=$? | ||
14389 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14390 | rm -f conftest.er1 | ||
14391 | cat conftest.err >&5 | ||
14392 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14393 | (exit $ac_status); } && { | ||
14394 | test -z "$ac_c_werror_flag" || | ||
14395 | test ! -s conftest.err | ||
14396 | } && test -s conftest$ac_exeext && { | ||
14397 | test "$cross_compiling" = yes || | ||
14398 | $as_test_x conftest$ac_exeext | ||
14399 | }; then | ||
14400 | eval "$as_ac_var=yes" | ||
14401 | else | ||
14402 | $as_echo "$as_me: failed program was:" >&5 | ||
14403 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14404 | |||
14405 | eval "$as_ac_var=no" | ||
14406 | fi | ||
14407 | |||
14408 | rm -rf conftest.dSYM | ||
14409 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14410 | conftest$ac_exeext conftest.$ac_ext | ||
14411 | fi | ||
14412 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
14413 | $as_echo "$as_val"'` | ||
14414 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14415 | $as_echo "$ac_res" >&6; } | ||
14416 | if test `eval 'as_val=${'$as_ac_var'} | ||
14417 | $as_echo "$as_val"'` = yes; then | ||
14418 | cat >>confdefs.h <<_ACEOF | ||
14419 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14420 | _ACEOF | ||
14421 | |||
14422 | fi | ||
14423 | done | ||
14424 | |||
14425 | fi | ||
14426 | |||
14427 | |||
14428 | { $as_echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 | ||
14429 | $as_echo_n "checking whether h_errno is declared... " >&6; } | ||
14430 | if test "${ac_cv_have_decl_h_errno+set}" = set; then | ||
14431 | $as_echo_n "(cached) " >&6 | ||
14432 | else | ||
14433 | cat >conftest.$ac_ext <<_ACEOF | ||
14434 | /* confdefs.h. */ | ||
14435 | _ACEOF | ||
14436 | cat confdefs.h >>conftest.$ac_ext | ||
14437 | cat >>conftest.$ac_ext <<_ACEOF | ||
14438 | /* end confdefs.h. */ | ||
14439 | #include <netdb.h> | ||
14440 | |||
14441 | int | ||
14442 | main () | ||
14443 | { | ||
14444 | #ifndef h_errno | ||
14445 | (void) h_errno; | ||
14446 | #endif | ||
14447 | |||
14448 | ; | ||
14449 | return 0; | ||
14450 | } | ||
14451 | _ACEOF | ||
14452 | rm -f conftest.$ac_objext | ||
14453 | if { (ac_try="$ac_compile" | ||
14454 | case "(($ac_try" in | ||
14455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14456 | *) ac_try_echo=$ac_try;; | ||
14457 | esac | ||
14458 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14459 | $as_echo "$ac_try_echo") >&5 | ||
14460 | (eval "$ac_compile") 2>conftest.er1 | ||
14461 | ac_status=$? | ||
14462 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14463 | rm -f conftest.er1 | ||
14464 | cat conftest.err >&5 | ||
14465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14466 | (exit $ac_status); } && { | ||
14467 | test -z "$ac_c_werror_flag" || | ||
14468 | test ! -s conftest.err | ||
14469 | } && test -s conftest.$ac_objext; then | ||
14470 | ac_cv_have_decl_h_errno=yes | ||
14471 | else | ||
14472 | $as_echo "$as_me: failed program was:" >&5 | ||
14473 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14474 | |||
14475 | ac_cv_have_decl_h_errno=no | ||
14476 | fi | ||
14477 | |||
14478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14479 | fi | ||
14480 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_h_errno" >&5 | ||
14481 | $as_echo "$ac_cv_have_decl_h_errno" >&6; } | ||
14482 | if test $ac_cv_have_decl_h_errno = yes; then | ||
14483 | |||
14484 | cat >>confdefs.h <<_ACEOF | ||
14485 | #define HAVE_DECL_H_ERRNO 1 | ||
14486 | _ACEOF | ||
14487 | |||
14488 | |||
14489 | else | ||
14490 | cat >>confdefs.h <<_ACEOF | ||
14491 | #define HAVE_DECL_H_ERRNO 0 | ||
14492 | _ACEOF | ||
14493 | |||
14494 | |||
14495 | fi | ||
14496 | |||
14497 | |||
14498 | |||
14499 | { $as_echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5 | ||
14500 | $as_echo_n "checking whether SHUT_RD is declared... " >&6; } | ||
14501 | if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then | ||
14502 | $as_echo_n "(cached) " >&6 | ||
14503 | else | ||
14504 | cat >conftest.$ac_ext <<_ACEOF | ||
14505 | /* confdefs.h. */ | ||
14506 | _ACEOF | ||
14507 | cat confdefs.h >>conftest.$ac_ext | ||
14508 | cat >>conftest.$ac_ext <<_ACEOF | ||
14509 | /* end confdefs.h. */ | ||
14510 | |||
14511 | #include <sys/types.h> | ||
14512 | #include <sys/socket.h> | ||
14513 | |||
14514 | |||
14515 | int | ||
14516 | main () | ||
14517 | { | ||
14518 | #ifndef SHUT_RD | ||
14519 | (void) SHUT_RD; | ||
14520 | #endif | ||
14521 | |||
14522 | ; | ||
14523 | return 0; | ||
14524 | } | ||
14525 | _ACEOF | ||
14526 | rm -f conftest.$ac_objext | ||
14527 | if { (ac_try="$ac_compile" | ||
14528 | case "(($ac_try" in | ||
14529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14530 | *) ac_try_echo=$ac_try;; | ||
14531 | esac | ||
14532 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14533 | $as_echo "$ac_try_echo") >&5 | ||
14534 | (eval "$ac_compile") 2>conftest.er1 | ||
14535 | ac_status=$? | ||
14536 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14537 | rm -f conftest.er1 | ||
14538 | cat conftest.err >&5 | ||
14539 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14540 | (exit $ac_status); } && { | ||
14541 | test -z "$ac_c_werror_flag" || | ||
14542 | test ! -s conftest.err | ||
14543 | } && test -s conftest.$ac_objext; then | ||
14544 | ac_cv_have_decl_SHUT_RD=yes | ||
14545 | else | ||
14546 | $as_echo "$as_me: failed program was:" >&5 | ||
14547 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14548 | |||
14549 | ac_cv_have_decl_SHUT_RD=no | ||
14550 | fi | ||
14551 | |||
14552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14553 | fi | ||
14554 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5 | ||
14555 | $as_echo "$ac_cv_have_decl_SHUT_RD" >&6; } | ||
14556 | if test $ac_cv_have_decl_SHUT_RD = yes; then | ||
14557 | |||
14558 | cat >>confdefs.h <<_ACEOF | ||
14559 | #define HAVE_DECL_SHUT_RD 1 | ||
14560 | _ACEOF | ||
14561 | |||
14562 | |||
14563 | else | ||
14564 | cat >>confdefs.h <<_ACEOF | ||
14565 | #define HAVE_DECL_SHUT_RD 0 | ||
14566 | _ACEOF | ||
14567 | |||
14568 | |||
14569 | fi | ||
14570 | |||
14571 | |||
14572 | |||
14573 | { $as_echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5 | ||
14574 | $as_echo_n "checking whether O_NONBLOCK is declared... " >&6; } | ||
14575 | if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then | ||
14576 | $as_echo_n "(cached) " >&6 | ||
14577 | else | ||
14578 | cat >conftest.$ac_ext <<_ACEOF | ||
14579 | /* confdefs.h. */ | ||
14580 | _ACEOF | ||
14581 | cat confdefs.h >>conftest.$ac_ext | ||
14582 | cat >>conftest.$ac_ext <<_ACEOF | ||
14583 | /* end confdefs.h. */ | ||
14584 | |||
14585 | #include <sys/types.h> | ||
14586 | #ifdef HAVE_SYS_STAT_H | ||
14587 | # include <sys/stat.h> | ||
14588 | #endif | ||
14589 | #ifdef HAVE_FCNTL_H | ||
14590 | # include <fcntl.h> | ||
14591 | #endif | ||
14592 | |||
14593 | |||
14594 | int | ||
14595 | main () | ||
14596 | { | ||
14597 | #ifndef O_NONBLOCK | ||
14598 | (void) O_NONBLOCK; | ||
14599 | #endif | ||
14600 | |||
14601 | ; | ||
14602 | return 0; | ||
14603 | } | ||
14604 | _ACEOF | ||
14605 | rm -f conftest.$ac_objext | ||
14606 | if { (ac_try="$ac_compile" | ||
14607 | case "(($ac_try" in | ||
14608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14609 | *) ac_try_echo=$ac_try;; | ||
14610 | esac | ||
14611 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14612 | $as_echo "$ac_try_echo") >&5 | ||
14613 | (eval "$ac_compile") 2>conftest.er1 | ||
14614 | ac_status=$? | ||
14615 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14616 | rm -f conftest.er1 | ||
14617 | cat conftest.err >&5 | ||
14618 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14619 | (exit $ac_status); } && { | ||
14620 | test -z "$ac_c_werror_flag" || | ||
14621 | test ! -s conftest.err | ||
14622 | } && test -s conftest.$ac_objext; then | ||
14623 | ac_cv_have_decl_O_NONBLOCK=yes | ||
14624 | else | ||
14625 | $as_echo "$as_me: failed program was:" >&5 | ||
14626 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14627 | |||
14628 | ac_cv_have_decl_O_NONBLOCK=no | ||
14629 | fi | ||
14630 | |||
14631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14632 | fi | ||
14633 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5 | ||
14634 | $as_echo "$ac_cv_have_decl_O_NONBLOCK" >&6; } | ||
14635 | if test $ac_cv_have_decl_O_NONBLOCK = yes; then | ||
14636 | |||
14637 | cat >>confdefs.h <<_ACEOF | ||
14638 | #define HAVE_DECL_O_NONBLOCK 1 | ||
14639 | _ACEOF | ||
14640 | |||
14641 | |||
14642 | else | ||
14643 | cat >>confdefs.h <<_ACEOF | ||
14644 | #define HAVE_DECL_O_NONBLOCK 0 | ||
14645 | _ACEOF | ||
14646 | |||
14647 | |||
14648 | fi | ||
14649 | |||
14650 | |||
14651 | |||
14652 | { $as_echo "$as_me:$LINENO: checking whether writev is declared" >&5 | ||
14653 | $as_echo_n "checking whether writev is declared... " >&6; } | ||
14654 | if test "${ac_cv_have_decl_writev+set}" = set; then | ||
14655 | $as_echo_n "(cached) " >&6 | ||
14656 | else | ||
14657 | cat >conftest.$ac_ext <<_ACEOF | ||
14658 | /* confdefs.h. */ | ||
14659 | _ACEOF | ||
14660 | cat confdefs.h >>conftest.$ac_ext | ||
14661 | cat >>conftest.$ac_ext <<_ACEOF | ||
14662 | /* end confdefs.h. */ | ||
14663 | |||
14664 | #include <sys/types.h> | ||
14665 | #include <sys/uio.h> | ||
14666 | #include <unistd.h> | ||
14667 | |||
14668 | |||
14669 | int | ||
14670 | main () | ||
14671 | { | ||
14672 | #ifndef writev | ||
14673 | (void) writev; | ||
14674 | #endif | ||
14675 | |||
14676 | ; | ||
14677 | return 0; | ||
14678 | } | ||
14679 | _ACEOF | ||
14680 | rm -f conftest.$ac_objext | ||
14681 | if { (ac_try="$ac_compile" | ||
14682 | case "(($ac_try" in | ||
14683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14684 | *) ac_try_echo=$ac_try;; | ||
14685 | esac | ||
14686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14687 | $as_echo "$ac_try_echo") >&5 | ||
14688 | (eval "$ac_compile") 2>conftest.er1 | ||
14689 | ac_status=$? | ||
14690 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14691 | rm -f conftest.er1 | ||
14692 | cat conftest.err >&5 | ||
14693 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14694 | (exit $ac_status); } && { | ||
14695 | test -z "$ac_c_werror_flag" || | ||
14696 | test ! -s conftest.err | ||
14697 | } && test -s conftest.$ac_objext; then | ||
14698 | ac_cv_have_decl_writev=yes | ||
14699 | else | ||
14700 | $as_echo "$as_me: failed program was:" >&5 | ||
14701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14702 | |||
14703 | ac_cv_have_decl_writev=no | ||
14704 | fi | ||
14705 | |||
14706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14707 | fi | ||
14708 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5 | ||
14709 | $as_echo "$ac_cv_have_decl_writev" >&6; } | ||
14710 | if test $ac_cv_have_decl_writev = yes; then | ||
14711 | |||
14712 | cat >>confdefs.h <<_ACEOF | ||
14713 | #define HAVE_DECL_WRITEV 1 | ||
14714 | _ACEOF | ||
14715 | |||
14716 | |||
14717 | else | ||
14718 | cat >>confdefs.h <<_ACEOF | ||
14719 | #define HAVE_DECL_WRITEV 0 | ||
14720 | _ACEOF | ||
14721 | |||
14722 | |||
14723 | fi | ||
14724 | |||
14725 | |||
14726 | |||
14727 | { $as_echo "$as_me:$LINENO: checking whether MAXSYMLINKS is declared" >&5 | ||
14728 | $as_echo_n "checking whether MAXSYMLINKS is declared... " >&6; } | ||
14729 | if test "${ac_cv_have_decl_MAXSYMLINKS+set}" = set; then | ||
14730 | $as_echo_n "(cached) " >&6 | ||
14731 | else | ||
14732 | cat >conftest.$ac_ext <<_ACEOF | ||
14733 | /* confdefs.h. */ | ||
14734 | _ACEOF | ||
14735 | cat confdefs.h >>conftest.$ac_ext | ||
14736 | cat >>conftest.$ac_ext <<_ACEOF | ||
14737 | /* end confdefs.h. */ | ||
14738 | |||
14739 | #include <sys/param.h> | ||
14740 | |||
14741 | |||
14742 | int | ||
14743 | main () | ||
14744 | { | ||
14745 | #ifndef MAXSYMLINKS | ||
14746 | (void) MAXSYMLINKS; | ||
14747 | #endif | ||
14748 | |||
14749 | ; | ||
14750 | return 0; | ||
14751 | } | ||
14752 | _ACEOF | ||
14753 | rm -f conftest.$ac_objext | ||
14754 | if { (ac_try="$ac_compile" | ||
14755 | case "(($ac_try" in | ||
14756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14757 | *) ac_try_echo=$ac_try;; | ||
14758 | esac | ||
14759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14760 | $as_echo "$ac_try_echo") >&5 | ||
14761 | (eval "$ac_compile") 2>conftest.er1 | ||
14762 | ac_status=$? | ||
14763 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14764 | rm -f conftest.er1 | ||
14765 | cat conftest.err >&5 | ||
14766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14767 | (exit $ac_status); } && { | ||
14768 | test -z "$ac_c_werror_flag" || | ||
14769 | test ! -s conftest.err | ||
14770 | } && test -s conftest.$ac_objext; then | ||
14771 | ac_cv_have_decl_MAXSYMLINKS=yes | ||
14772 | else | ||
14773 | $as_echo "$as_me: failed program was:" >&5 | ||
14774 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14775 | |||
14776 | ac_cv_have_decl_MAXSYMLINKS=no | ||
14777 | fi | ||
14778 | |||
14779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14780 | fi | ||
14781 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_MAXSYMLINKS" >&5 | ||
14782 | $as_echo "$ac_cv_have_decl_MAXSYMLINKS" >&6; } | ||
14783 | if test $ac_cv_have_decl_MAXSYMLINKS = yes; then | ||
14784 | |||
14785 | cat >>confdefs.h <<_ACEOF | ||
14786 | #define HAVE_DECL_MAXSYMLINKS 1 | ||
14787 | _ACEOF | ||
14788 | |||
14789 | |||
14790 | else | ||
14791 | cat >>confdefs.h <<_ACEOF | ||
14792 | #define HAVE_DECL_MAXSYMLINKS 0 | ||
14793 | _ACEOF | ||
14794 | |||
14795 | |||
14796 | fi | ||
14797 | |||
14798 | |||
14799 | |||
14800 | { $as_echo "$as_me:$LINENO: checking whether offsetof is declared" >&5 | ||
14801 | $as_echo_n "checking whether offsetof is declared... " >&6; } | ||
14802 | if test "${ac_cv_have_decl_offsetof+set}" = set; then | ||
14803 | $as_echo_n "(cached) " >&6 | ||
14804 | else | ||
14805 | cat >conftest.$ac_ext <<_ACEOF | ||
14806 | /* confdefs.h. */ | ||
14807 | _ACEOF | ||
14808 | cat confdefs.h >>conftest.$ac_ext | ||
14809 | cat >>conftest.$ac_ext <<_ACEOF | ||
14810 | /* end confdefs.h. */ | ||
14811 | |||
14812 | #include <stddef.h> | ||
14813 | |||
14814 | |||
14815 | int | ||
14816 | main () | ||
14817 | { | ||
14818 | #ifndef offsetof | ||
14819 | (void) offsetof; | ||
14820 | #endif | ||
14821 | |||
14822 | ; | ||
14823 | return 0; | ||
14824 | } | ||
14825 | _ACEOF | ||
14826 | rm -f conftest.$ac_objext | ||
14827 | if { (ac_try="$ac_compile" | ||
14828 | case "(($ac_try" in | ||
14829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14830 | *) ac_try_echo=$ac_try;; | ||
14831 | esac | ||
14832 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14833 | $as_echo "$ac_try_echo") >&5 | ||
14834 | (eval "$ac_compile") 2>conftest.er1 | ||
14835 | ac_status=$? | ||
14836 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14837 | rm -f conftest.er1 | ||
14838 | cat conftest.err >&5 | ||
14839 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14840 | (exit $ac_status); } && { | ||
14841 | test -z "$ac_c_werror_flag" || | ||
14842 | test ! -s conftest.err | ||
14843 | } && test -s conftest.$ac_objext; then | ||
14844 | ac_cv_have_decl_offsetof=yes | ||
14845 | else | ||
14846 | $as_echo "$as_me: failed program was:" >&5 | ||
14847 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14848 | |||
14849 | ac_cv_have_decl_offsetof=no | ||
14850 | fi | ||
14851 | |||
14852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
14853 | fi | ||
14854 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_offsetof" >&5 | ||
14855 | $as_echo "$ac_cv_have_decl_offsetof" >&6; } | ||
14856 | if test $ac_cv_have_decl_offsetof = yes; then | ||
14857 | |||
14858 | cat >>confdefs.h <<_ACEOF | ||
14859 | #define HAVE_DECL_OFFSETOF 1 | ||
14860 | _ACEOF | ||
14861 | |||
14862 | |||
14863 | else | ||
14864 | cat >>confdefs.h <<_ACEOF | ||
14865 | #define HAVE_DECL_OFFSETOF 0 | ||
14866 | _ACEOF | ||
14867 | |||
14868 | |||
14869 | fi | ||
14870 | |||
14871 | |||
14872 | |||
14873 | |||
14874 | for ac_func in setresuid | ||
14875 | do | ||
14876 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
14877 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
14878 | $as_echo_n "checking for $ac_func... " >&6; } | ||
14879 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
14880 | $as_echo_n "(cached) " >&6 | ||
14881 | else | ||
14882 | cat >conftest.$ac_ext <<_ACEOF | ||
14883 | /* confdefs.h. */ | ||
14884 | _ACEOF | ||
14885 | cat confdefs.h >>conftest.$ac_ext | ||
14886 | cat >>conftest.$ac_ext <<_ACEOF | ||
14887 | /* end confdefs.h. */ | ||
14888 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
14889 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
14890 | #define $ac_func innocuous_$ac_func | ||
14891 | |||
14892 | /* System header to define __stub macros and hopefully few prototypes, | ||
14893 | which can conflict with char $ac_func (); below. | ||
14894 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
14895 | <limits.h> exists even on freestanding compilers. */ | ||
14896 | |||
14897 | #ifdef __STDC__ | ||
14898 | # include <limits.h> | ||
14899 | #else | ||
14900 | # include <assert.h> | ||
14901 | #endif | ||
14902 | |||
14903 | #undef $ac_func | ||
14904 | |||
14905 | /* Override any GCC internal prototype to avoid an error. | ||
14906 | Use char because int might match the return type of a GCC | ||
14907 | builtin and then its argument prototype would still apply. */ | ||
14908 | #ifdef __cplusplus | ||
14909 | extern "C" | ||
14910 | #endif | ||
14911 | char $ac_func (); | ||
14912 | /* The GNU C library defines this for functions which it implements | ||
14913 | to always fail with ENOSYS. Some functions are actually named | ||
14914 | something starting with __ and the normal name is an alias. */ | ||
14915 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
14916 | choke me | ||
14917 | #endif | ||
14918 | |||
14919 | int | ||
14920 | main () | ||
14921 | { | ||
14922 | return $ac_func (); | ||
14923 | ; | ||
14924 | return 0; | ||
14925 | } | ||
14926 | _ACEOF | ||
14927 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14928 | if { (ac_try="$ac_link" | ||
14929 | case "(($ac_try" in | ||
14930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14931 | *) ac_try_echo=$ac_try;; | ||
14932 | esac | ||
14933 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14934 | $as_echo "$ac_try_echo") >&5 | ||
14935 | (eval "$ac_link") 2>conftest.er1 | ||
14936 | ac_status=$? | ||
14937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14938 | rm -f conftest.er1 | ||
14939 | cat conftest.err >&5 | ||
14940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14941 | (exit $ac_status); } && { | ||
14942 | test -z "$ac_c_werror_flag" || | ||
14943 | test ! -s conftest.err | ||
14944 | } && test -s conftest$ac_exeext && { | ||
14945 | test "$cross_compiling" = yes || | ||
14946 | $as_test_x conftest$ac_exeext | ||
14947 | }; then | ||
14948 | eval "$as_ac_var=yes" | ||
14949 | else | ||
14950 | $as_echo "$as_me: failed program was:" >&5 | ||
14951 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14952 | |||
14953 | eval "$as_ac_var=no" | ||
14954 | fi | ||
14955 | |||
14956 | rm -rf conftest.dSYM | ||
14957 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
14958 | conftest$ac_exeext conftest.$ac_ext | ||
14959 | fi | ||
14960 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
14961 | $as_echo "$as_val"'` | ||
14962 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
14963 | $as_echo "$ac_res" >&6; } | ||
14964 | if test `eval 'as_val=${'$as_ac_var'} | ||
14965 | $as_echo "$as_val"'` = yes; then | ||
14966 | cat >>confdefs.h <<_ACEOF | ||
14967 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
14968 | _ACEOF | ||
14969 | |||
14970 | { $as_echo "$as_me:$LINENO: checking if setresuid seems to work" >&5 | ||
14971 | $as_echo_n "checking if setresuid seems to work... " >&6; } | ||
14972 | if test "$cross_compiling" = yes; then | ||
14973 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
14974 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
14975 | |||
14976 | else | ||
14977 | cat >conftest.$ac_ext <<_ACEOF | ||
14978 | /* confdefs.h. */ | ||
14979 | _ACEOF | ||
14980 | cat confdefs.h >>conftest.$ac_ext | ||
14981 | cat >>conftest.$ac_ext <<_ACEOF | ||
14982 | /* end confdefs.h. */ | ||
14983 | |||
14984 | #include <stdlib.h> | ||
14985 | #include <errno.h> | ||
14986 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
14987 | |||
14988 | _ACEOF | ||
14989 | rm -f conftest$ac_exeext | ||
14990 | if { (ac_try="$ac_link" | ||
14991 | case "(($ac_try" in | ||
14992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
14993 | *) ac_try_echo=$ac_try;; | ||
14994 | esac | ||
14995 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
14996 | $as_echo "$ac_try_echo") >&5 | ||
14997 | (eval "$ac_link") 2>&5 | ||
14998 | ac_status=$? | ||
14999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15000 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15001 | { (case "(($ac_try" in | ||
15002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15003 | *) ac_try_echo=$ac_try;; | ||
15004 | esac | ||
15005 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15006 | $as_echo "$ac_try_echo") >&5 | ||
15007 | (eval "$ac_try") 2>&5 | ||
15008 | ac_status=$? | ||
15009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15010 | (exit $ac_status); }; }; then | ||
15011 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
15012 | $as_echo "yes" >&6; } | ||
15013 | else | ||
15014 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
15015 | $as_echo "$as_me: failed program was:" >&5 | ||
15016 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15017 | |||
15018 | ( exit $ac_status ) | ||
15019 | |||
15020 | cat >>confdefs.h <<\_ACEOF | ||
15021 | #define BROKEN_SETRESUID 1 | ||
15022 | _ACEOF | ||
15023 | |||
15024 | { $as_echo "$as_me:$LINENO: result: not implemented" >&5 | ||
15025 | $as_echo "not implemented" >&6; } | ||
15026 | fi | ||
15027 | rm -rf conftest.dSYM | ||
15028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15029 | fi | ||
15030 | |||
15031 | |||
15032 | |||
15033 | fi | ||
15034 | done | ||
15035 | |||
15036 | |||
15037 | |||
15038 | for ac_func in setresgid | ||
15039 | do | ||
15040 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15041 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15042 | $as_echo_n "checking for $ac_func... " >&6; } | ||
15043 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15044 | $as_echo_n "(cached) " >&6 | ||
15045 | else | ||
15046 | cat >conftest.$ac_ext <<_ACEOF | ||
15047 | /* confdefs.h. */ | ||
15048 | _ACEOF | ||
15049 | cat confdefs.h >>conftest.$ac_ext | ||
15050 | cat >>conftest.$ac_ext <<_ACEOF | ||
15051 | /* end confdefs.h. */ | ||
15052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15054 | #define $ac_func innocuous_$ac_func | ||
15055 | |||
15056 | /* System header to define __stub macros and hopefully few prototypes, | ||
15057 | which can conflict with char $ac_func (); below. | ||
15058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15059 | <limits.h> exists even on freestanding compilers. */ | ||
15060 | |||
15061 | #ifdef __STDC__ | ||
15062 | # include <limits.h> | ||
15063 | #else | ||
15064 | # include <assert.h> | ||
15065 | #endif | ||
15066 | |||
15067 | #undef $ac_func | ||
15068 | |||
15069 | /* Override any GCC internal prototype to avoid an error. | ||
15070 | Use char because int might match the return type of a GCC | ||
15071 | builtin and then its argument prototype would still apply. */ | ||
15072 | #ifdef __cplusplus | ||
15073 | extern "C" | ||
15074 | #endif | ||
15075 | char $ac_func (); | ||
15076 | /* The GNU C library defines this for functions which it implements | ||
15077 | to always fail with ENOSYS. Some functions are actually named | ||
15078 | something starting with __ and the normal name is an alias. */ | ||
15079 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15080 | choke me | ||
15081 | #endif | ||
15082 | |||
15083 | int | ||
15084 | main () | ||
15085 | { | ||
15086 | return $ac_func (); | ||
15087 | ; | ||
15088 | return 0; | ||
15089 | } | ||
15090 | _ACEOF | ||
15091 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15092 | if { (ac_try="$ac_link" | ||
15093 | case "(($ac_try" in | ||
15094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15095 | *) ac_try_echo=$ac_try;; | ||
15096 | esac | ||
15097 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15098 | $as_echo "$ac_try_echo") >&5 | ||
15099 | (eval "$ac_link") 2>conftest.er1 | ||
15100 | ac_status=$? | ||
15101 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15102 | rm -f conftest.er1 | ||
15103 | cat conftest.err >&5 | ||
15104 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15105 | (exit $ac_status); } && { | ||
15106 | test -z "$ac_c_werror_flag" || | ||
15107 | test ! -s conftest.err | ||
15108 | } && test -s conftest$ac_exeext && { | ||
15109 | test "$cross_compiling" = yes || | ||
15110 | $as_test_x conftest$ac_exeext | ||
15111 | }; then | ||
15112 | eval "$as_ac_var=yes" | ||
15113 | else | ||
15114 | $as_echo "$as_me: failed program was:" >&5 | ||
15115 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15116 | |||
15117 | eval "$as_ac_var=no" | ||
15118 | fi | ||
15119 | |||
15120 | rm -rf conftest.dSYM | ||
15121 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15122 | conftest$ac_exeext conftest.$ac_ext | ||
15123 | fi | ||
15124 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
15125 | $as_echo "$as_val"'` | ||
15126 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15127 | $as_echo "$ac_res" >&6; } | ||
15128 | if test `eval 'as_val=${'$as_ac_var'} | ||
15129 | $as_echo "$as_val"'` = yes; then | ||
15130 | cat >>confdefs.h <<_ACEOF | ||
15131 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15132 | _ACEOF | ||
15133 | |||
15134 | { $as_echo "$as_me:$LINENO: checking if setresgid seems to work" >&5 | ||
15135 | $as_echo_n "checking if setresgid seems to work... " >&6; } | ||
15136 | if test "$cross_compiling" = yes; then | ||
15137 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking setresuid" >&5 | ||
15138 | $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;} | ||
15139 | |||
15140 | else | ||
15141 | cat >conftest.$ac_ext <<_ACEOF | ||
15142 | /* confdefs.h. */ | ||
15143 | _ACEOF | ||
15144 | cat confdefs.h >>conftest.$ac_ext | ||
15145 | cat >>conftest.$ac_ext <<_ACEOF | ||
15146 | /* end confdefs.h. */ | ||
15147 | |||
15148 | #include <stdlib.h> | ||
15149 | #include <errno.h> | ||
15150 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | ||
15151 | |||
15152 | _ACEOF | ||
15153 | rm -f conftest$ac_exeext | ||
15154 | if { (ac_try="$ac_link" | ||
15155 | case "(($ac_try" in | ||
15156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15157 | *) ac_try_echo=$ac_try;; | ||
15158 | esac | ||
15159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15160 | $as_echo "$ac_try_echo") >&5 | ||
15161 | (eval "$ac_link") 2>&5 | ||
15162 | ac_status=$? | ||
15163 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15164 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
15165 | { (case "(($ac_try" in | ||
15166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15167 | *) ac_try_echo=$ac_try;; | ||
15168 | esac | ||
15169 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15170 | $as_echo "$ac_try_echo") >&5 | ||
15171 | (eval "$ac_try") 2>&5 | ||
15172 | ac_status=$? | ||
15173 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15174 | (exit $ac_status); }; }; then | ||
15175 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
15176 | $as_echo "yes" >&6; } | ||
15177 | else | ||
15178 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
15179 | $as_echo "$as_me: failed program was:" >&5 | ||
15180 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15181 | |||
15182 | ( exit $ac_status ) | ||
15183 | |||
15184 | cat >>confdefs.h <<\_ACEOF | ||
15185 | #define BROKEN_SETRESGID 1 | ||
15186 | _ACEOF | ||
15187 | |||
15188 | { $as_echo "$as_me:$LINENO: result: not implemented" >&5 | ||
15189 | $as_echo "not implemented" >&6; } | ||
15190 | fi | ||
15191 | rm -rf conftest.dSYM | ||
15192 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
15193 | fi | ||
15194 | |||
15195 | |||
15196 | |||
15197 | fi | ||
15198 | done | ||
15199 | |||
15200 | |||
15201 | |||
15202 | |||
15203 | for ac_func in gettimeofday time | ||
15204 | do | ||
15205 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15206 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15207 | $as_echo_n "checking for $ac_func... " >&6; } | ||
15208 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15209 | $as_echo_n "(cached) " >&6 | ||
15210 | else | ||
15211 | cat >conftest.$ac_ext <<_ACEOF | ||
15212 | /* confdefs.h. */ | ||
15213 | _ACEOF | ||
15214 | cat confdefs.h >>conftest.$ac_ext | ||
15215 | cat >>conftest.$ac_ext <<_ACEOF | ||
15216 | /* end confdefs.h. */ | ||
15217 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15219 | #define $ac_func innocuous_$ac_func | ||
15220 | |||
15221 | /* System header to define __stub macros and hopefully few prototypes, | ||
15222 | which can conflict with char $ac_func (); below. | ||
15223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15224 | <limits.h> exists even on freestanding compilers. */ | ||
15225 | |||
15226 | #ifdef __STDC__ | ||
15227 | # include <limits.h> | ||
15228 | #else | ||
15229 | # include <assert.h> | ||
15230 | #endif | ||
15231 | |||
15232 | #undef $ac_func | ||
15233 | |||
15234 | /* Override any GCC internal prototype to avoid an error. | ||
15235 | Use char because int might match the return type of a GCC | ||
15236 | builtin and then its argument prototype would still apply. */ | ||
15237 | #ifdef __cplusplus | ||
15238 | extern "C" | ||
15239 | #endif | ||
15240 | char $ac_func (); | ||
15241 | /* The GNU C library defines this for functions which it implements | ||
15242 | to always fail with ENOSYS. Some functions are actually named | ||
15243 | something starting with __ and the normal name is an alias. */ | ||
15244 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15245 | choke me | ||
15246 | #endif | ||
15247 | |||
15248 | int | ||
15249 | main () | ||
15250 | { | ||
15251 | return $ac_func (); | ||
15252 | ; | ||
15253 | return 0; | ||
15254 | } | ||
15255 | _ACEOF | ||
15256 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15257 | if { (ac_try="$ac_link" | ||
15258 | case "(($ac_try" in | ||
15259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15260 | *) ac_try_echo=$ac_try;; | ||
15261 | esac | ||
15262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15263 | $as_echo "$ac_try_echo") >&5 | ||
15264 | (eval "$ac_link") 2>conftest.er1 | ||
15265 | ac_status=$? | ||
15266 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15267 | rm -f conftest.er1 | ||
15268 | cat conftest.err >&5 | ||
15269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15270 | (exit $ac_status); } && { | ||
15271 | test -z "$ac_c_werror_flag" || | ||
15272 | test ! -s conftest.err | ||
15273 | } && test -s conftest$ac_exeext && { | ||
15274 | test "$cross_compiling" = yes || | ||
15275 | $as_test_x conftest$ac_exeext | ||
15276 | }; then | ||
15277 | eval "$as_ac_var=yes" | ||
15278 | else | ||
15279 | $as_echo "$as_me: failed program was:" >&5 | ||
15280 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15281 | |||
15282 | eval "$as_ac_var=no" | ||
15283 | fi | ||
15284 | |||
15285 | rm -rf conftest.dSYM | ||
15286 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15287 | conftest$ac_exeext conftest.$ac_ext | ||
15288 | fi | ||
15289 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
15290 | $as_echo "$as_val"'` | ||
15291 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15292 | $as_echo "$ac_res" >&6; } | ||
15293 | if test `eval 'as_val=${'$as_ac_var'} | ||
15294 | $as_echo "$as_val"'` = yes; then | ||
15295 | cat >>confdefs.h <<_ACEOF | ||
15296 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15297 | _ACEOF | ||
15298 | |||
15299 | fi | ||
15300 | done | ||
15301 | |||
15302 | |||
15303 | |||
15304 | |||
15305 | |||
15306 | |||
15307 | |||
15308 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
15309 | do | ||
15310 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15311 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15312 | $as_echo_n "checking for $ac_func... " >&6; } | ||
15313 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15314 | $as_echo_n "(cached) " >&6 | ||
15315 | else | ||
15316 | cat >conftest.$ac_ext <<_ACEOF | ||
15317 | /* confdefs.h. */ | ||
15318 | _ACEOF | ||
15319 | cat confdefs.h >>conftest.$ac_ext | ||
15320 | cat >>conftest.$ac_ext <<_ACEOF | ||
15321 | /* end confdefs.h. */ | ||
15322 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15323 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15324 | #define $ac_func innocuous_$ac_func | ||
15325 | |||
15326 | /* System header to define __stub macros and hopefully few prototypes, | ||
15327 | which can conflict with char $ac_func (); below. | ||
15328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15329 | <limits.h> exists even on freestanding compilers. */ | ||
15330 | |||
15331 | #ifdef __STDC__ | ||
15332 | # include <limits.h> | ||
15333 | #else | ||
15334 | # include <assert.h> | ||
15335 | #endif | ||
15336 | |||
15337 | #undef $ac_func | ||
15338 | |||
15339 | /* Override any GCC internal prototype to avoid an error. | ||
15340 | Use char because int might match the return type of a GCC | ||
15341 | builtin and then its argument prototype would still apply. */ | ||
15342 | #ifdef __cplusplus | ||
15343 | extern "C" | ||
15344 | #endif | ||
15345 | char $ac_func (); | ||
15346 | /* The GNU C library defines this for functions which it implements | ||
15347 | to always fail with ENOSYS. Some functions are actually named | ||
15348 | something starting with __ and the normal name is an alias. */ | ||
15349 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15350 | choke me | ||
15351 | #endif | ||
15352 | |||
15353 | int | ||
15354 | main () | ||
15355 | { | ||
15356 | return $ac_func (); | ||
15357 | ; | ||
15358 | return 0; | ||
15359 | } | ||
15360 | _ACEOF | ||
15361 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15362 | if { (ac_try="$ac_link" | ||
15363 | case "(($ac_try" in | ||
15364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15365 | *) ac_try_echo=$ac_try;; | ||
15366 | esac | ||
15367 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15368 | $as_echo "$ac_try_echo") >&5 | ||
15369 | (eval "$ac_link") 2>conftest.er1 | ||
15370 | ac_status=$? | ||
15371 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15372 | rm -f conftest.er1 | ||
15373 | cat conftest.err >&5 | ||
15374 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15375 | (exit $ac_status); } && { | ||
15376 | test -z "$ac_c_werror_flag" || | ||
15377 | test ! -s conftest.err | ||
15378 | } && test -s conftest$ac_exeext && { | ||
15379 | test "$cross_compiling" = yes || | ||
15380 | $as_test_x conftest$ac_exeext | ||
15381 | }; then | ||
15382 | eval "$as_ac_var=yes" | ||
15383 | else | ||
15384 | $as_echo "$as_me: failed program was:" >&5 | ||
15385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15386 | |||
15387 | eval "$as_ac_var=no" | ||
15388 | fi | ||
15389 | |||
15390 | rm -rf conftest.dSYM | ||
15391 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15392 | conftest$ac_exeext conftest.$ac_ext | ||
15393 | fi | ||
15394 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
15395 | $as_echo "$as_val"'` | ||
15396 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15397 | $as_echo "$ac_res" >&6; } | ||
15398 | if test `eval 'as_val=${'$as_ac_var'} | ||
15399 | $as_echo "$as_val"'` = yes; then | ||
15400 | cat >>confdefs.h <<_ACEOF | ||
15401 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15402 | _ACEOF | ||
15403 | |||
15404 | fi | ||
15405 | done | ||
15406 | |||
15407 | |||
15408 | for ac_func in utmpname | ||
15409 | do | ||
15410 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15411 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15412 | $as_echo_n "checking for $ac_func... " >&6; } | ||
15413 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15414 | $as_echo_n "(cached) " >&6 | ||
15415 | else | ||
15416 | cat >conftest.$ac_ext <<_ACEOF | ||
15417 | /* confdefs.h. */ | ||
15418 | _ACEOF | ||
15419 | cat confdefs.h >>conftest.$ac_ext | ||
15420 | cat >>conftest.$ac_ext <<_ACEOF | ||
15421 | /* end confdefs.h. */ | ||
15422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15424 | #define $ac_func innocuous_$ac_func | ||
15425 | |||
15426 | /* System header to define __stub macros and hopefully few prototypes, | ||
15427 | which can conflict with char $ac_func (); below. | ||
15428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15429 | <limits.h> exists even on freestanding compilers. */ | ||
15430 | |||
15431 | #ifdef __STDC__ | ||
15432 | # include <limits.h> | ||
15433 | #else | ||
15434 | # include <assert.h> | ||
15435 | #endif | ||
15436 | |||
15437 | #undef $ac_func | ||
15438 | |||
15439 | /* Override any GCC internal prototype to avoid an error. | ||
15440 | Use char because int might match the return type of a GCC | ||
15441 | builtin and then its argument prototype would still apply. */ | ||
15442 | #ifdef __cplusplus | ||
15443 | extern "C" | ||
15444 | #endif | ||
15445 | char $ac_func (); | ||
15446 | /* The GNU C library defines this for functions which it implements | ||
15447 | to always fail with ENOSYS. Some functions are actually named | ||
15448 | something starting with __ and the normal name is an alias. */ | ||
15449 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15450 | choke me | ||
15451 | #endif | ||
15452 | |||
15453 | int | ||
15454 | main () | ||
15455 | { | ||
15456 | return $ac_func (); | ||
15457 | ; | ||
15458 | return 0; | ||
15459 | } | ||
15460 | _ACEOF | ||
15461 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15462 | if { (ac_try="$ac_link" | ||
15463 | case "(($ac_try" in | ||
15464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15465 | *) ac_try_echo=$ac_try;; | ||
15466 | esac | ||
15467 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15468 | $as_echo "$ac_try_echo") >&5 | ||
15469 | (eval "$ac_link") 2>conftest.er1 | ||
15470 | ac_status=$? | ||
15471 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15472 | rm -f conftest.er1 | ||
15473 | cat conftest.err >&5 | ||
15474 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15475 | (exit $ac_status); } && { | ||
15476 | test -z "$ac_c_werror_flag" || | ||
15477 | test ! -s conftest.err | ||
15478 | } && test -s conftest$ac_exeext && { | ||
15479 | test "$cross_compiling" = yes || | ||
15480 | $as_test_x conftest$ac_exeext | ||
15481 | }; then | ||
15482 | eval "$as_ac_var=yes" | ||
15483 | else | ||
15484 | $as_echo "$as_me: failed program was:" >&5 | ||
15485 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15486 | |||
15487 | eval "$as_ac_var=no" | ||
15488 | fi | ||
15489 | |||
15490 | rm -rf conftest.dSYM | ||
15491 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15492 | conftest$ac_exeext conftest.$ac_ext | ||
15493 | fi | ||
15494 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
15495 | $as_echo "$as_val"'` | ||
15496 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15497 | $as_echo "$ac_res" >&6; } | ||
15498 | if test `eval 'as_val=${'$as_ac_var'} | ||
15499 | $as_echo "$as_val"'` = yes; then | ||
15500 | cat >>confdefs.h <<_ACEOF | ||
15501 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15502 | _ACEOF | ||
15503 | |||
15504 | fi | ||
15505 | done | ||
15506 | |||
15507 | |||
15508 | |||
15509 | |||
15510 | |||
15511 | |||
15512 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
15513 | do | ||
15514 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15515 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15516 | $as_echo_n "checking for $ac_func... " >&6; } | ||
15517 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15518 | $as_echo_n "(cached) " >&6 | ||
15519 | else | ||
15520 | cat >conftest.$ac_ext <<_ACEOF | ||
15521 | /* confdefs.h. */ | ||
15522 | _ACEOF | ||
15523 | cat confdefs.h >>conftest.$ac_ext | ||
15524 | cat >>conftest.$ac_ext <<_ACEOF | ||
15525 | /* end confdefs.h. */ | ||
15526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15528 | #define $ac_func innocuous_$ac_func | ||
15529 | |||
15530 | /* System header to define __stub macros and hopefully few prototypes, | ||
15531 | which can conflict with char $ac_func (); below. | ||
15532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15533 | <limits.h> exists even on freestanding compilers. */ | ||
15534 | |||
15535 | #ifdef __STDC__ | ||
15536 | # include <limits.h> | ||
15537 | #else | ||
15538 | # include <assert.h> | ||
15539 | #endif | ||
15540 | |||
15541 | #undef $ac_func | ||
15542 | |||
15543 | /* Override any GCC internal prototype to avoid an error. | ||
15544 | Use char because int might match the return type of a GCC | ||
15545 | builtin and then its argument prototype would still apply. */ | ||
15546 | #ifdef __cplusplus | ||
15547 | extern "C" | ||
15548 | #endif | ||
15549 | char $ac_func (); | ||
15550 | /* The GNU C library defines this for functions which it implements | ||
15551 | to always fail with ENOSYS. Some functions are actually named | ||
15552 | something starting with __ and the normal name is an alias. */ | ||
15553 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15554 | choke me | ||
15555 | #endif | ||
15556 | |||
15557 | int | ||
15558 | main () | ||
15559 | { | ||
15560 | return $ac_func (); | ||
15561 | ; | ||
15562 | return 0; | ||
15563 | } | ||
15564 | _ACEOF | ||
15565 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15566 | if { (ac_try="$ac_link" | ||
15567 | case "(($ac_try" in | ||
15568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15569 | *) ac_try_echo=$ac_try;; | ||
15570 | esac | ||
15571 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15572 | $as_echo "$ac_try_echo") >&5 | ||
15573 | (eval "$ac_link") 2>conftest.er1 | ||
15574 | ac_status=$? | ||
15575 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15576 | rm -f conftest.er1 | ||
15577 | cat conftest.err >&5 | ||
15578 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15579 | (exit $ac_status); } && { | ||
15580 | test -z "$ac_c_werror_flag" || | ||
15581 | test ! -s conftest.err | ||
15582 | } && test -s conftest$ac_exeext && { | ||
15583 | test "$cross_compiling" = yes || | ||
15584 | $as_test_x conftest$ac_exeext | ||
15585 | }; then | ||
15586 | eval "$as_ac_var=yes" | ||
15587 | else | ||
15588 | $as_echo "$as_me: failed program was:" >&5 | ||
15589 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15590 | |||
15591 | eval "$as_ac_var=no" | ||
15592 | fi | ||
15593 | |||
15594 | rm -rf conftest.dSYM | ||
15595 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15596 | conftest$ac_exeext conftest.$ac_ext | ||
15597 | fi | ||
15598 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
15599 | $as_echo "$as_val"'` | ||
15600 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15601 | $as_echo "$ac_res" >&6; } | ||
15602 | if test `eval 'as_val=${'$as_ac_var'} | ||
15603 | $as_echo "$as_val"'` = yes; then | ||
15604 | cat >>confdefs.h <<_ACEOF | ||
15605 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15606 | _ACEOF | ||
15607 | |||
15608 | fi | ||
15609 | done | ||
15610 | |||
15611 | |||
15612 | |||
15613 | for ac_func in setutxent utmpxname | ||
15614 | do | ||
15615 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15616 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15617 | $as_echo_n "checking for $ac_func... " >&6; } | ||
15618 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15619 | $as_echo_n "(cached) " >&6 | ||
15620 | else | ||
15621 | cat >conftest.$ac_ext <<_ACEOF | ||
15622 | /* confdefs.h. */ | ||
15623 | _ACEOF | ||
15624 | cat confdefs.h >>conftest.$ac_ext | ||
15625 | cat >>conftest.$ac_ext <<_ACEOF | ||
15626 | /* end confdefs.h. */ | ||
15627 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15629 | #define $ac_func innocuous_$ac_func | ||
15630 | |||
15631 | /* System header to define __stub macros and hopefully few prototypes, | ||
15632 | which can conflict with char $ac_func (); below. | ||
15633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15634 | <limits.h> exists even on freestanding compilers. */ | ||
15635 | |||
15636 | #ifdef __STDC__ | ||
15637 | # include <limits.h> | ||
15638 | #else | ||
15639 | # include <assert.h> | ||
15640 | #endif | ||
15641 | |||
15642 | #undef $ac_func | ||
15643 | |||
15644 | /* Override any GCC internal prototype to avoid an error. | ||
15645 | Use char because int might match the return type of a GCC | ||
15646 | builtin and then its argument prototype would still apply. */ | ||
15647 | #ifdef __cplusplus | ||
15648 | extern "C" | ||
15649 | #endif | ||
15650 | char $ac_func (); | ||
15651 | /* The GNU C library defines this for functions which it implements | ||
15652 | to always fail with ENOSYS. Some functions are actually named | ||
15653 | something starting with __ and the normal name is an alias. */ | ||
15654 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15655 | choke me | ||
15656 | #endif | ||
15657 | |||
15658 | int | ||
15659 | main () | ||
15660 | { | ||
15661 | return $ac_func (); | ||
15662 | ; | ||
15663 | return 0; | ||
15664 | } | ||
15665 | _ACEOF | ||
15666 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15667 | if { (ac_try="$ac_link" | ||
15668 | case "(($ac_try" in | ||
15669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15670 | *) ac_try_echo=$ac_try;; | ||
15671 | esac | ||
15672 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15673 | $as_echo "$ac_try_echo") >&5 | ||
15674 | (eval "$ac_link") 2>conftest.er1 | ||
15675 | ac_status=$? | ||
15676 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15677 | rm -f conftest.er1 | ||
15678 | cat conftest.err >&5 | ||
15679 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15680 | (exit $ac_status); } && { | ||
15681 | test -z "$ac_c_werror_flag" || | ||
15682 | test ! -s conftest.err | ||
15683 | } && test -s conftest$ac_exeext && { | ||
15684 | test "$cross_compiling" = yes || | ||
15685 | $as_test_x conftest$ac_exeext | ||
15686 | }; then | ||
15687 | eval "$as_ac_var=yes" | ||
15688 | else | ||
15689 | $as_echo "$as_me: failed program was:" >&5 | ||
15690 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15691 | |||
15692 | eval "$as_ac_var=no" | ||
15693 | fi | ||
15694 | |||
15695 | rm -rf conftest.dSYM | ||
15696 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15697 | conftest$ac_exeext conftest.$ac_ext | ||
15698 | fi | ||
15699 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
15700 | $as_echo "$as_val"'` | ||
15701 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15702 | $as_echo "$ac_res" >&6; } | ||
15703 | if test `eval 'as_val=${'$as_ac_var'} | ||
15704 | $as_echo "$as_val"'` = yes; then | ||
15705 | cat >>confdefs.h <<_ACEOF | ||
15706 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15707 | _ACEOF | ||
15708 | |||
15709 | fi | ||
15710 | done | ||
15711 | |||
15712 | |||
15713 | for ac_func in getlastlogxbyname | ||
15714 | do | ||
15715 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
15716 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
15717 | $as_echo_n "checking for $ac_func... " >&6; } | ||
15718 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
15719 | $as_echo_n "(cached) " >&6 | ||
15720 | else | ||
15721 | cat >conftest.$ac_ext <<_ACEOF | ||
15722 | /* confdefs.h. */ | ||
15723 | _ACEOF | ||
15724 | cat confdefs.h >>conftest.$ac_ext | ||
15725 | cat >>conftest.$ac_ext <<_ACEOF | ||
15726 | /* end confdefs.h. */ | ||
15727 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
15728 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15729 | #define $ac_func innocuous_$ac_func | ||
15730 | |||
15731 | /* System header to define __stub macros and hopefully few prototypes, | ||
15732 | which can conflict with char $ac_func (); below. | ||
15733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15734 | <limits.h> exists even on freestanding compilers. */ | ||
15735 | |||
15736 | #ifdef __STDC__ | ||
15737 | # include <limits.h> | ||
15738 | #else | ||
15739 | # include <assert.h> | ||
15740 | #endif | ||
15741 | |||
15742 | #undef $ac_func | ||
15743 | |||
15744 | /* Override any GCC internal prototype to avoid an error. | ||
15745 | Use char because int might match the return type of a GCC | ||
15746 | builtin and then its argument prototype would still apply. */ | ||
15747 | #ifdef __cplusplus | ||
15748 | extern "C" | ||
15749 | #endif | ||
15750 | char $ac_func (); | ||
15751 | /* The GNU C library defines this for functions which it implements | ||
15752 | to always fail with ENOSYS. Some functions are actually named | ||
15753 | something starting with __ and the normal name is an alias. */ | ||
15754 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
15755 | choke me | ||
15756 | #endif | ||
15757 | |||
15758 | int | ||
15759 | main () | ||
15760 | { | ||
15761 | return $ac_func (); | ||
15762 | ; | ||
15763 | return 0; | ||
15764 | } | ||
15765 | _ACEOF | ||
15766 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15767 | if { (ac_try="$ac_link" | ||
15768 | case "(($ac_try" in | ||
15769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15770 | *) ac_try_echo=$ac_try;; | ||
15771 | esac | ||
15772 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15773 | $as_echo "$ac_try_echo") >&5 | ||
15774 | (eval "$ac_link") 2>conftest.er1 | ||
15775 | ac_status=$? | ||
15776 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15777 | rm -f conftest.er1 | ||
15778 | cat conftest.err >&5 | ||
15779 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15780 | (exit $ac_status); } && { | ||
15781 | test -z "$ac_c_werror_flag" || | ||
15782 | test ! -s conftest.err | ||
15783 | } && test -s conftest$ac_exeext && { | ||
15784 | test "$cross_compiling" = yes || | ||
15785 | $as_test_x conftest$ac_exeext | ||
15786 | }; then | ||
15787 | eval "$as_ac_var=yes" | ||
15788 | else | ||
15789 | $as_echo "$as_me: failed program was:" >&5 | ||
15790 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15791 | |||
15792 | eval "$as_ac_var=no" | ||
15793 | fi | ||
15794 | |||
15795 | rm -rf conftest.dSYM | ||
15796 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15797 | conftest$ac_exeext conftest.$ac_ext | ||
15798 | fi | ||
15799 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
15800 | $as_echo "$as_val"'` | ||
15801 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
15802 | $as_echo "$ac_res" >&6; } | ||
15803 | if test `eval 'as_val=${'$as_ac_var'} | ||
15804 | $as_echo "$as_val"'` = yes; then | ||
15805 | cat >>confdefs.h <<_ACEOF | ||
15806 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
15807 | _ACEOF | ||
15808 | |||
15809 | fi | ||
15810 | done | ||
15811 | |||
15812 | |||
15813 | { $as_echo "$as_me:$LINENO: checking for daemon" >&5 | ||
15814 | $as_echo_n "checking for daemon... " >&6; } | ||
15815 | if test "${ac_cv_func_daemon+set}" = set; then | ||
15816 | $as_echo_n "(cached) " >&6 | ||
15817 | else | ||
15818 | cat >conftest.$ac_ext <<_ACEOF | ||
15819 | /* confdefs.h. */ | ||
15820 | _ACEOF | ||
15821 | cat confdefs.h >>conftest.$ac_ext | ||
15822 | cat >>conftest.$ac_ext <<_ACEOF | ||
15823 | /* end confdefs.h. */ | ||
15824 | /* Define daemon to an innocuous variant, in case <limits.h> declares daemon. | ||
15825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15826 | #define daemon innocuous_daemon | ||
15827 | |||
15828 | /* System header to define __stub macros and hopefully few prototypes, | ||
15829 | which can conflict with char daemon (); below. | ||
15830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15831 | <limits.h> exists even on freestanding compilers. */ | ||
15832 | |||
15833 | #ifdef __STDC__ | ||
15834 | # include <limits.h> | ||
15835 | #else | ||
15836 | # include <assert.h> | ||
15837 | #endif | ||
15838 | |||
15839 | #undef daemon | ||
15840 | |||
15841 | /* Override any GCC internal prototype to avoid an error. | ||
15842 | Use char because int might match the return type of a GCC | ||
15843 | builtin and then its argument prototype would still apply. */ | ||
15844 | #ifdef __cplusplus | ||
15845 | extern "C" | ||
15846 | #endif | ||
15847 | char daemon (); | ||
15848 | /* The GNU C library defines this for functions which it implements | ||
15849 | to always fail with ENOSYS. Some functions are actually named | ||
15850 | something starting with __ and the normal name is an alias. */ | ||
15851 | #if defined __stub_daemon || defined __stub___daemon | ||
15852 | choke me | ||
15853 | #endif | ||
15854 | |||
15855 | int | ||
15856 | main () | ||
15857 | { | ||
15858 | return daemon (); | ||
15859 | ; | ||
15860 | return 0; | ||
15861 | } | ||
15862 | _ACEOF | ||
15863 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15864 | if { (ac_try="$ac_link" | ||
15865 | case "(($ac_try" in | ||
15866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15867 | *) ac_try_echo=$ac_try;; | ||
15868 | esac | ||
15869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15870 | $as_echo "$ac_try_echo") >&5 | ||
15871 | (eval "$ac_link") 2>conftest.er1 | ||
15872 | ac_status=$? | ||
15873 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15874 | rm -f conftest.er1 | ||
15875 | cat conftest.err >&5 | ||
15876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15877 | (exit $ac_status); } && { | ||
15878 | test -z "$ac_c_werror_flag" || | ||
15879 | test ! -s conftest.err | ||
15880 | } && test -s conftest$ac_exeext && { | ||
15881 | test "$cross_compiling" = yes || | ||
15882 | $as_test_x conftest$ac_exeext | ||
15883 | }; then | ||
15884 | ac_cv_func_daemon=yes | ||
15885 | else | ||
15886 | $as_echo "$as_me: failed program was:" >&5 | ||
15887 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15888 | |||
15889 | ac_cv_func_daemon=no | ||
15890 | fi | ||
15891 | |||
15892 | rm -rf conftest.dSYM | ||
15893 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15894 | conftest$ac_exeext conftest.$ac_ext | ||
15895 | fi | ||
15896 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 | ||
15897 | $as_echo "$ac_cv_func_daemon" >&6; } | ||
15898 | if test $ac_cv_func_daemon = yes; then | ||
15899 | |||
15900 | cat >>confdefs.h <<\_ACEOF | ||
15901 | #define HAVE_DAEMON 1 | ||
15902 | _ACEOF | ||
15903 | |||
15904 | else | ||
15905 | { $as_echo "$as_me:$LINENO: checking for daemon in -lbsd" >&5 | ||
15906 | $as_echo_n "checking for daemon in -lbsd... " >&6; } | ||
15907 | if test "${ac_cv_lib_bsd_daemon+set}" = set; then | ||
15908 | $as_echo_n "(cached) " >&6 | ||
15909 | else | ||
15910 | ac_check_lib_save_LIBS=$LIBS | ||
15911 | LIBS="-lbsd $LIBS" | ||
15912 | cat >conftest.$ac_ext <<_ACEOF | ||
15913 | /* confdefs.h. */ | ||
15914 | _ACEOF | ||
15915 | cat confdefs.h >>conftest.$ac_ext | ||
15916 | cat >>conftest.$ac_ext <<_ACEOF | ||
15917 | /* end confdefs.h. */ | ||
15918 | |||
15919 | /* Override any GCC internal prototype to avoid an error. | ||
15920 | Use char because int might match the return type of a GCC | ||
15921 | builtin and then its argument prototype would still apply. */ | ||
15922 | #ifdef __cplusplus | ||
15923 | extern "C" | ||
15924 | #endif | ||
15925 | char daemon (); | ||
15926 | int | ||
15927 | main () | ||
15928 | { | ||
15929 | return daemon (); | ||
15930 | ; | ||
15931 | return 0; | ||
15932 | } | ||
15933 | _ACEOF | ||
15934 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15935 | if { (ac_try="$ac_link" | ||
15936 | case "(($ac_try" in | ||
15937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15938 | *) ac_try_echo=$ac_try;; | ||
15939 | esac | ||
15940 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
15941 | $as_echo "$ac_try_echo") >&5 | ||
15942 | (eval "$ac_link") 2>conftest.er1 | ||
15943 | ac_status=$? | ||
15944 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15945 | rm -f conftest.er1 | ||
15946 | cat conftest.err >&5 | ||
15947 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15948 | (exit $ac_status); } && { | ||
15949 | test -z "$ac_c_werror_flag" || | ||
15950 | test ! -s conftest.err | ||
15951 | } && test -s conftest$ac_exeext && { | ||
15952 | test "$cross_compiling" = yes || | ||
15953 | $as_test_x conftest$ac_exeext | ||
15954 | }; then | ||
15955 | ac_cv_lib_bsd_daemon=yes | ||
15956 | else | ||
15957 | $as_echo "$as_me: failed program was:" >&5 | ||
15958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15959 | |||
15960 | ac_cv_lib_bsd_daemon=no | ||
15961 | fi | ||
15962 | |||
15963 | rm -rf conftest.dSYM | ||
15964 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15965 | conftest$ac_exeext conftest.$ac_ext | ||
15966 | LIBS=$ac_check_lib_save_LIBS | ||
15967 | fi | ||
15968 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_daemon" >&5 | ||
15969 | $as_echo "$ac_cv_lib_bsd_daemon" >&6; } | ||
15970 | if test $ac_cv_lib_bsd_daemon = yes; then | ||
15971 | LIBS="$LIBS -lbsd"; cat >>confdefs.h <<\_ACEOF | ||
15972 | #define HAVE_DAEMON 1 | ||
15973 | _ACEOF | ||
15974 | |||
15975 | fi | ||
15976 | |||
15977 | |||
15978 | fi | ||
15979 | |||
15980 | |||
15981 | { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5 | ||
15982 | $as_echo_n "checking for getpagesize... " >&6; } | ||
15983 | if test "${ac_cv_func_getpagesize+set}" = set; then | ||
15984 | $as_echo_n "(cached) " >&6 | ||
15985 | else | ||
15986 | cat >conftest.$ac_ext <<_ACEOF | ||
15987 | /* confdefs.h. */ | ||
15988 | _ACEOF | ||
15989 | cat confdefs.h >>conftest.$ac_ext | ||
15990 | cat >>conftest.$ac_ext <<_ACEOF | ||
15991 | /* end confdefs.h. */ | ||
15992 | /* Define getpagesize to an innocuous variant, in case <limits.h> declares getpagesize. | ||
15993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
15994 | #define getpagesize innocuous_getpagesize | ||
15995 | |||
15996 | /* System header to define __stub macros and hopefully few prototypes, | ||
15997 | which can conflict with char getpagesize (); below. | ||
15998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
15999 | <limits.h> exists even on freestanding compilers. */ | ||
16000 | |||
16001 | #ifdef __STDC__ | ||
16002 | # include <limits.h> | ||
16003 | #else | ||
16004 | # include <assert.h> | ||
16005 | #endif | ||
16006 | |||
16007 | #undef getpagesize | ||
16008 | |||
16009 | /* Override any GCC internal prototype to avoid an error. | ||
16010 | Use char because int might match the return type of a GCC | ||
16011 | builtin and then its argument prototype would still apply. */ | ||
16012 | #ifdef __cplusplus | ||
16013 | extern "C" | ||
16014 | #endif | ||
16015 | char getpagesize (); | ||
16016 | /* The GNU C library defines this for functions which it implements | ||
16017 | to always fail with ENOSYS. Some functions are actually named | ||
16018 | something starting with __ and the normal name is an alias. */ | ||
16019 | #if defined __stub_getpagesize || defined __stub___getpagesize | ||
16020 | choke me | ||
16021 | #endif | ||
16022 | |||
16023 | int | ||
16024 | main () | ||
16025 | { | ||
16026 | return getpagesize (); | ||
16027 | ; | ||
16028 | return 0; | ||
16029 | } | ||
16030 | _ACEOF | ||
16031 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16032 | if { (ac_try="$ac_link" | ||
16033 | case "(($ac_try" in | ||
16034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16035 | *) ac_try_echo=$ac_try;; | ||
16036 | esac | ||
16037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16038 | $as_echo "$ac_try_echo") >&5 | ||
16039 | (eval "$ac_link") 2>conftest.er1 | ||
16040 | ac_status=$? | ||
16041 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16042 | rm -f conftest.er1 | ||
16043 | cat conftest.err >&5 | ||
16044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16045 | (exit $ac_status); } && { | ||
16046 | test -z "$ac_c_werror_flag" || | ||
16047 | test ! -s conftest.err | ||
16048 | } && test -s conftest$ac_exeext && { | ||
16049 | test "$cross_compiling" = yes || | ||
16050 | $as_test_x conftest$ac_exeext | ||
16051 | }; then | ||
16052 | ac_cv_func_getpagesize=yes | ||
16053 | else | ||
16054 | $as_echo "$as_me: failed program was:" >&5 | ||
16055 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16056 | |||
16057 | ac_cv_func_getpagesize=no | ||
16058 | fi | ||
16059 | |||
16060 | rm -rf conftest.dSYM | ||
16061 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16062 | conftest$ac_exeext conftest.$ac_ext | ||
16063 | fi | ||
16064 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpagesize" >&5 | ||
16065 | $as_echo "$ac_cv_func_getpagesize" >&6; } | ||
16066 | if test $ac_cv_func_getpagesize = yes; then | ||
16067 | |||
16068 | cat >>confdefs.h <<\_ACEOF | ||
16069 | #define HAVE_GETPAGESIZE 1 | ||
16070 | _ACEOF | ||
16071 | |||
16072 | else | ||
16073 | { $as_echo "$as_me:$LINENO: checking for getpagesize in -lucb" >&5 | ||
16074 | $as_echo_n "checking for getpagesize in -lucb... " >&6; } | ||
16075 | if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then | ||
16076 | $as_echo_n "(cached) " >&6 | ||
16077 | else | ||
16078 | ac_check_lib_save_LIBS=$LIBS | ||
16079 | LIBS="-lucb $LIBS" | ||
16080 | cat >conftest.$ac_ext <<_ACEOF | ||
16081 | /* confdefs.h. */ | ||
16082 | _ACEOF | ||
16083 | cat confdefs.h >>conftest.$ac_ext | ||
16084 | cat >>conftest.$ac_ext <<_ACEOF | ||
16085 | /* end confdefs.h. */ | ||
16086 | |||
16087 | /* Override any GCC internal prototype to avoid an error. | ||
16088 | Use char because int might match the return type of a GCC | ||
16089 | builtin and then its argument prototype would still apply. */ | ||
16090 | #ifdef __cplusplus | ||
16091 | extern "C" | ||
16092 | #endif | ||
16093 | char getpagesize (); | ||
16094 | int | ||
16095 | main () | ||
16096 | { | ||
16097 | return getpagesize (); | ||
16098 | ; | ||
16099 | return 0; | ||
16100 | } | ||
16101 | _ACEOF | ||
16102 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16103 | if { (ac_try="$ac_link" | ||
16104 | case "(($ac_try" in | ||
16105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16106 | *) ac_try_echo=$ac_try;; | ||
16107 | esac | ||
16108 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16109 | $as_echo "$ac_try_echo") >&5 | ||
16110 | (eval "$ac_link") 2>conftest.er1 | ||
16111 | ac_status=$? | ||
16112 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16113 | rm -f conftest.er1 | ||
16114 | cat conftest.err >&5 | ||
16115 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16116 | (exit $ac_status); } && { | ||
16117 | test -z "$ac_c_werror_flag" || | ||
16118 | test ! -s conftest.err | ||
16119 | } && test -s conftest$ac_exeext && { | ||
16120 | test "$cross_compiling" = yes || | ||
16121 | $as_test_x conftest$ac_exeext | ||
16122 | }; then | ||
16123 | ac_cv_lib_ucb_getpagesize=yes | ||
16124 | else | ||
16125 | $as_echo "$as_me: failed program was:" >&5 | ||
16126 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16127 | |||
16128 | ac_cv_lib_ucb_getpagesize=no | ||
16129 | fi | ||
16130 | |||
16131 | rm -rf conftest.dSYM | ||
16132 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
16133 | conftest$ac_exeext conftest.$ac_ext | ||
16134 | LIBS=$ac_check_lib_save_LIBS | ||
16135 | fi | ||
16136 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_getpagesize" >&5 | ||
16137 | $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; } | ||
16138 | if test $ac_cv_lib_ucb_getpagesize = yes; then | ||
16139 | LIBS="$LIBS -lucb"; cat >>confdefs.h <<\_ACEOF | ||
16140 | #define HAVE_GETPAGESIZE 1 | ||
16141 | _ACEOF | ||
16142 | |||
16143 | fi | ||
16144 | |||
16145 | |||
16146 | fi | ||
16147 | |||
16148 | |||
16149 | # Check for broken snprintf | ||
16150 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
16151 | { $as_echo "$as_me:$LINENO: checking whether snprintf correctly terminates long strings" >&5 | ||
16152 | $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; } | ||
16153 | if test "$cross_compiling" = yes; then | ||
16154 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
16155 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
16156 | |||
16157 | else | ||
16158 | cat >conftest.$ac_ext <<_ACEOF | ||
16159 | /* confdefs.h. */ | ||
16160 | _ACEOF | ||
16161 | cat confdefs.h >>conftest.$ac_ext | ||
16162 | cat >>conftest.$ac_ext <<_ACEOF | ||
16163 | /* end confdefs.h. */ | ||
16164 | |||
16165 | #include <stdio.h> | ||
16166 | int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');} | ||
16167 | |||
16168 | _ACEOF | ||
16169 | rm -f conftest$ac_exeext | ||
16170 | if { (ac_try="$ac_link" | ||
16171 | case "(($ac_try" in | ||
16172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16173 | *) ac_try_echo=$ac_try;; | ||
16174 | esac | ||
16175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16176 | $as_echo "$ac_try_echo") >&5 | ||
16177 | (eval "$ac_link") 2>&5 | ||
16178 | ac_status=$? | ||
16179 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16181 | { (case "(($ac_try" in | ||
16182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16183 | *) ac_try_echo=$ac_try;; | ||
16184 | esac | ||
16185 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16186 | $as_echo "$ac_try_echo") >&5 | ||
16187 | (eval "$ac_try") 2>&5 | ||
16188 | ac_status=$? | ||
16189 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16190 | (exit $ac_status); }; }; then | ||
16191 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16192 | $as_echo "yes" >&6; } | ||
16193 | else | ||
16194 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
16195 | $as_echo "$as_me: failed program was:" >&5 | ||
16196 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16197 | |||
16198 | ( exit $ac_status ) | ||
16199 | |||
16200 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16201 | $as_echo "no" >&6; } | ||
16202 | |||
16203 | cat >>confdefs.h <<\_ACEOF | ||
16204 | #define BROKEN_SNPRINTF 1 | ||
16205 | _ACEOF | ||
16206 | |||
16207 | { $as_echo "$as_me:$LINENO: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5 | ||
16208 | $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;} | ||
16209 | |||
16210 | fi | ||
16211 | rm -rf conftest.dSYM | ||
16212 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16213 | fi | ||
16214 | |||
16215 | |||
16216 | fi | ||
16217 | |||
16218 | # If we don't have a working asprintf, then we strongly depend on vsnprintf | ||
16219 | # returning the right thing on overflow: the number of characters it tried to | ||
16220 | # create (as per SUSv3) | ||
16221 | if test "x$ac_cv_func_asprintf" != "xyes" && \ | ||
16222 | test "x$ac_cv_func_vsnprintf" = "xyes" ; then | ||
16223 | { $as_echo "$as_me:$LINENO: checking whether vsnprintf returns correct values on overflow" >&5 | ||
16224 | $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; } | ||
16225 | if test "$cross_compiling" = yes; then | ||
16226 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working vsnprintf()" >&5 | ||
16227 | $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;} | ||
16228 | |||
16229 | else | ||
16230 | cat >conftest.$ac_ext <<_ACEOF | ||
16231 | /* confdefs.h. */ | ||
16232 | _ACEOF | ||
16233 | cat confdefs.h >>conftest.$ac_ext | ||
16234 | cat >>conftest.$ac_ext <<_ACEOF | ||
16235 | /* end confdefs.h. */ | ||
16236 | |||
16237 | #include <sys/types.h> | ||
16238 | #include <stdio.h> | ||
16239 | #include <stdarg.h> | ||
16240 | |||
16241 | int x_snprintf(char *str,size_t count,const char *fmt,...) | ||
16242 | { | ||
16243 | size_t ret; va_list ap; | ||
16244 | va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap); | ||
16245 | return ret; | ||
16246 | } | ||
16247 | int main(void) | ||
16248 | { | ||
16249 | char x[1]; | ||
16250 | exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1); | ||
16251 | } | ||
16252 | _ACEOF | ||
16253 | rm -f conftest$ac_exeext | ||
16254 | if { (ac_try="$ac_link" | ||
16255 | case "(($ac_try" in | ||
16256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16257 | *) ac_try_echo=$ac_try;; | ||
16258 | esac | ||
16259 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16260 | $as_echo "$ac_try_echo") >&5 | ||
16261 | (eval "$ac_link") 2>&5 | ||
16262 | ac_status=$? | ||
16263 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16264 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16265 | { (case "(($ac_try" in | ||
16266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16267 | *) ac_try_echo=$ac_try;; | ||
16268 | esac | ||
16269 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16270 | $as_echo "$ac_try_echo") >&5 | ||
16271 | (eval "$ac_try") 2>&5 | ||
16272 | ac_status=$? | ||
16273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16274 | (exit $ac_status); }; }; then | ||
16275 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16276 | $as_echo "yes" >&6; } | ||
16277 | else | ||
16278 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
16279 | $as_echo "$as_me: failed program was:" >&5 | ||
16280 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16281 | |||
16282 | ( exit $ac_status ) | ||
16283 | |||
16284 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16285 | $as_echo "no" >&6; } | ||
16286 | |||
16287 | cat >>confdefs.h <<\_ACEOF | ||
16288 | #define BROKEN_SNPRINTF 1 | ||
16289 | _ACEOF | ||
16290 | |||
16291 | { $as_echo "$as_me:$LINENO: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5 | ||
16292 | $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;} | ||
16293 | |||
16294 | fi | ||
16295 | rm -rf conftest.dSYM | ||
16296 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16297 | fi | ||
16298 | |||
16299 | |||
16300 | fi | ||
16301 | |||
16302 | # On systems where [v]snprintf is broken, but is declared in stdio, | ||
16303 | # check that the fmt argument is const char * or just char *. | ||
16304 | # This is only useful for when BROKEN_SNPRINTF | ||
16305 | { $as_echo "$as_me:$LINENO: checking whether snprintf can declare const char *fmt" >&5 | ||
16306 | $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; } | ||
16307 | cat >conftest.$ac_ext <<_ACEOF | ||
16308 | /* confdefs.h. */ | ||
16309 | _ACEOF | ||
16310 | cat confdefs.h >>conftest.$ac_ext | ||
16311 | cat >>conftest.$ac_ext <<_ACEOF | ||
16312 | /* end confdefs.h. */ | ||
16313 | #include <stdio.h> | ||
16314 | int snprintf(char *a, size_t b, const char *c, ...) { return 0; } | ||
16315 | int main(void) { snprintf(0, 0, 0); } | ||
16316 | |||
16317 | _ACEOF | ||
16318 | rm -f conftest.$ac_objext | ||
16319 | if { (ac_try="$ac_compile" | ||
16320 | case "(($ac_try" in | ||
16321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16322 | *) ac_try_echo=$ac_try;; | ||
16323 | esac | ||
16324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16325 | $as_echo "$ac_try_echo") >&5 | ||
16326 | (eval "$ac_compile") 2>conftest.er1 | ||
16327 | ac_status=$? | ||
16328 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16329 | rm -f conftest.er1 | ||
16330 | cat conftest.err >&5 | ||
16331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16332 | (exit $ac_status); } && { | ||
16333 | test -z "$ac_c_werror_flag" || | ||
16334 | test ! -s conftest.err | ||
16335 | } && test -s conftest.$ac_objext; then | ||
16336 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16337 | $as_echo "yes" >&6; } | ||
16338 | |||
16339 | cat >>confdefs.h <<\_ACEOF | ||
16340 | #define SNPRINTF_CONST const | ||
16341 | _ACEOF | ||
16342 | |||
16343 | else | ||
16344 | $as_echo "$as_me: failed program was:" >&5 | ||
16345 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16346 | |||
16347 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16348 | $as_echo "no" >&6; } | ||
16349 | cat >>confdefs.h <<\_ACEOF | ||
16350 | #define SNPRINTF_CONST /* not const */ | ||
16351 | _ACEOF | ||
16352 | |||
16353 | fi | ||
16354 | |||
16355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16356 | |||
16357 | # Check for missing getpeereid (or equiv) support | ||
16358 | NO_PEERCHECK="" | ||
16359 | if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then | ||
16360 | { $as_echo "$as_me:$LINENO: checking whether system supports SO_PEERCRED getsockopt" >&5 | ||
16361 | $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; } | ||
16362 | cat >conftest.$ac_ext <<_ACEOF | ||
16363 | /* confdefs.h. */ | ||
16364 | _ACEOF | ||
16365 | cat confdefs.h >>conftest.$ac_ext | ||
16366 | cat >>conftest.$ac_ext <<_ACEOF | ||
16367 | /* end confdefs.h. */ | ||
16368 | #include <sys/types.h> | ||
16369 | #include <sys/socket.h> | ||
16370 | int | ||
16371 | main () | ||
16372 | { | ||
16373 | int i = SO_PEERCRED; | ||
16374 | ; | ||
16375 | return 0; | ||
16376 | } | ||
16377 | _ACEOF | ||
16378 | rm -f conftest.$ac_objext | ||
16379 | if { (ac_try="$ac_compile" | ||
16380 | case "(($ac_try" in | ||
16381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16382 | *) ac_try_echo=$ac_try;; | ||
16383 | esac | ||
16384 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16385 | $as_echo "$ac_try_echo") >&5 | ||
16386 | (eval "$ac_compile") 2>conftest.er1 | ||
16387 | ac_status=$? | ||
16388 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16389 | rm -f conftest.er1 | ||
16390 | cat conftest.err >&5 | ||
16391 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16392 | (exit $ac_status); } && { | ||
16393 | test -z "$ac_c_werror_flag" || | ||
16394 | test ! -s conftest.err | ||
16395 | } && test -s conftest.$ac_objext; then | ||
16396 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16397 | $as_echo "yes" >&6; } | ||
16398 | |||
16399 | cat >>confdefs.h <<\_ACEOF | ||
16400 | #define HAVE_SO_PEERCRED 1 | ||
16401 | _ACEOF | ||
16402 | |||
16403 | |||
16404 | else | ||
16405 | $as_echo "$as_me: failed program was:" >&5 | ||
16406 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16407 | |||
16408 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16409 | $as_echo "no" >&6; } | ||
16410 | NO_PEERCHECK=1 | ||
16411 | |||
16412 | fi | ||
16413 | |||
16414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16415 | fi | ||
16416 | |||
16417 | if test "x$ac_cv_func_mkdtemp" = "xyes" ; then | ||
16418 | { $as_echo "$as_me:$LINENO: checking for (overly) strict mkstemp" >&5 | ||
16419 | $as_echo_n "checking for (overly) strict mkstemp... " >&6; } | ||
16420 | if test "$cross_compiling" = yes; then | ||
16421 | |||
16422 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16423 | $as_echo "yes" >&6; } | ||
16424 | cat >>confdefs.h <<\_ACEOF | ||
16425 | #define HAVE_STRICT_MKSTEMP 1 | ||
16426 | _ACEOF | ||
16427 | |||
16428 | |||
16429 | |||
16430 | else | ||
16431 | cat >conftest.$ac_ext <<_ACEOF | ||
16432 | /* confdefs.h. */ | ||
16433 | _ACEOF | ||
16434 | cat confdefs.h >>conftest.$ac_ext | ||
16435 | cat >>conftest.$ac_ext <<_ACEOF | ||
16436 | /* end confdefs.h. */ | ||
16437 | |||
16438 | #include <stdlib.h> | ||
16439 | main() { char template[]="conftest.mkstemp-test"; | ||
16440 | if (mkstemp(template) == -1) | ||
16441 | exit(1); | ||
16442 | unlink(template); exit(0); | ||
16443 | } | ||
16444 | |||
16445 | _ACEOF | ||
16446 | rm -f conftest$ac_exeext | ||
16447 | if { (ac_try="$ac_link" | ||
16448 | case "(($ac_try" in | ||
16449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16450 | *) ac_try_echo=$ac_try;; | ||
16451 | esac | ||
16452 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16453 | $as_echo "$ac_try_echo") >&5 | ||
16454 | (eval "$ac_link") 2>&5 | ||
16455 | ac_status=$? | ||
16456 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16457 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16458 | { (case "(($ac_try" in | ||
16459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16460 | *) ac_try_echo=$ac_try;; | ||
16461 | esac | ||
16462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16463 | $as_echo "$ac_try_echo") >&5 | ||
16464 | (eval "$ac_try") 2>&5 | ||
16465 | ac_status=$? | ||
16466 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16467 | (exit $ac_status); }; }; then | ||
16468 | |||
16469 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16470 | $as_echo "no" >&6; } | ||
16471 | |||
16472 | else | ||
16473 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
16474 | $as_echo "$as_me: failed program was:" >&5 | ||
16475 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16476 | |||
16477 | ( exit $ac_status ) | ||
16478 | |||
16479 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16480 | $as_echo "yes" >&6; } | ||
16481 | |||
16482 | cat >>confdefs.h <<\_ACEOF | ||
16483 | #define HAVE_STRICT_MKSTEMP 1 | ||
16484 | _ACEOF | ||
16485 | |||
16486 | |||
16487 | fi | ||
16488 | rm -rf conftest.dSYM | ||
16489 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16490 | fi | ||
16491 | |||
16492 | |||
16493 | fi | ||
16494 | |||
16495 | if test ! -z "$check_for_openpty_ctty_bug"; then | ||
16496 | { $as_echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5 | ||
16497 | $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; } | ||
16498 | if test "$cross_compiling" = yes; then | ||
16499 | |||
16500 | { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16501 | $as_echo "cross-compiling" >&6; } | ||
16502 | |||
16503 | |||
16504 | else | ||
16505 | cat >conftest.$ac_ext <<_ACEOF | ||
16506 | /* confdefs.h. */ | ||
16507 | _ACEOF | ||
16508 | cat confdefs.h >>conftest.$ac_ext | ||
16509 | cat >>conftest.$ac_ext <<_ACEOF | ||
16510 | /* end confdefs.h. */ | ||
16511 | |||
16512 | #include <stdio.h> | ||
16513 | #include <sys/fcntl.h> | ||
16514 | #include <sys/types.h> | ||
16515 | #include <sys/wait.h> | ||
16516 | |||
16517 | int | ||
16518 | main() | ||
16519 | { | ||
16520 | pid_t pid; | ||
16521 | int fd, ptyfd, ttyfd, status; | ||
16522 | |||
16523 | pid = fork(); | ||
16524 | if (pid < 0) { /* failed */ | ||
16525 | exit(1); | ||
16526 | } else if (pid > 0) { /* parent */ | ||
16527 | waitpid(pid, &status, 0); | ||
16528 | if (WIFEXITED(status)) | ||
16529 | exit(WEXITSTATUS(status)); | ||
16530 | else | ||
16531 | exit(2); | ||
16532 | } else { /* child */ | ||
16533 | close(0); close(1); close(2); | ||
16534 | setsid(); | ||
16535 | openpty(&ptyfd, &ttyfd, NULL, NULL, NULL); | ||
16536 | fd = open("/dev/tty", O_RDWR | O_NOCTTY); | ||
16537 | if (fd >= 0) | ||
16538 | exit(3); /* Acquired ctty: broken */ | ||
16539 | else | ||
16540 | exit(0); /* Did not acquire ctty: OK */ | ||
16541 | } | ||
16542 | } | ||
16543 | |||
16544 | _ACEOF | ||
16545 | rm -f conftest$ac_exeext | ||
16546 | if { (ac_try="$ac_link" | ||
16547 | case "(($ac_try" in | ||
16548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16549 | *) ac_try_echo=$ac_try;; | ||
16550 | esac | ||
16551 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16552 | $as_echo "$ac_try_echo") >&5 | ||
16553 | (eval "$ac_link") 2>&5 | ||
16554 | ac_status=$? | ||
16555 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16557 | { (case "(($ac_try" in | ||
16558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16559 | *) ac_try_echo=$ac_try;; | ||
16560 | esac | ||
16561 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16562 | $as_echo "$ac_try_echo") >&5 | ||
16563 | (eval "$ac_try") 2>&5 | ||
16564 | ac_status=$? | ||
16565 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16566 | (exit $ac_status); }; }; then | ||
16567 | |||
16568 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16569 | $as_echo "yes" >&6; } | ||
16570 | |||
16571 | else | ||
16572 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
16573 | $as_echo "$as_me: failed program was:" >&5 | ||
16574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16575 | |||
16576 | ( exit $ac_status ) | ||
16577 | |||
16578 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16579 | $as_echo "no" >&6; } | ||
16580 | cat >>confdefs.h <<\_ACEOF | ||
16581 | #define SSHD_ACQUIRES_CTTY 1 | ||
16582 | _ACEOF | ||
16583 | |||
16584 | |||
16585 | fi | ||
16586 | rm -rf conftest.dSYM | ||
16587 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16588 | fi | ||
16589 | |||
16590 | |||
16591 | fi | ||
16592 | |||
16593 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
16594 | test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then | ||
16595 | { $as_echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
16596 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
16597 | if test "$cross_compiling" = yes; then | ||
16598 | |||
16599 | { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16600 | $as_echo "cross-compiling" >&6; } | ||
16601 | |||
16602 | |||
16603 | else | ||
16604 | cat >conftest.$ac_ext <<_ACEOF | ||
16605 | /* confdefs.h. */ | ||
16606 | _ACEOF | ||
16607 | cat confdefs.h >>conftest.$ac_ext | ||
16608 | cat >>conftest.$ac_ext <<_ACEOF | ||
16609 | /* end confdefs.h. */ | ||
16610 | |||
16611 | #include <stdio.h> | ||
16612 | #include <sys/socket.h> | ||
16613 | #include <netdb.h> | ||
16614 | #include <errno.h> | ||
16615 | #include <netinet/in.h> | ||
16616 | |||
16617 | #define TEST_PORT "2222" | ||
16618 | |||
16619 | int | ||
16620 | main(void) | ||
16621 | { | ||
16622 | int err, sock; | ||
16623 | struct addrinfo *gai_ai, *ai, hints; | ||
16624 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
16625 | |||
16626 | memset(&hints, 0, sizeof(hints)); | ||
16627 | hints.ai_family = PF_UNSPEC; | ||
16628 | hints.ai_socktype = SOCK_STREAM; | ||
16629 | hints.ai_flags = AI_PASSIVE; | ||
16630 | |||
16631 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
16632 | if (err != 0) { | ||
16633 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
16634 | exit(1); | ||
16635 | } | ||
16636 | |||
16637 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
16638 | if (ai->ai_family != AF_INET6) | ||
16639 | continue; | ||
16640 | |||
16641 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
16642 | sizeof(ntop), strport, sizeof(strport), | ||
16643 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
16644 | |||
16645 | if (err != 0) { | ||
16646 | if (err == EAI_SYSTEM) | ||
16647 | perror("getnameinfo EAI_SYSTEM"); | ||
16648 | else | ||
16649 | fprintf(stderr, "getnameinfo failed: %s\n", | ||
16650 | gai_strerror(err)); | ||
16651 | exit(2); | ||
16652 | } | ||
16653 | |||
16654 | sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); | ||
16655 | if (sock < 0) | ||
16656 | perror("socket"); | ||
16657 | if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) { | ||
16658 | if (errno == EBADF) | ||
16659 | exit(3); | ||
16660 | } | ||
16661 | } | ||
16662 | exit(0); | ||
16663 | } | ||
16664 | |||
16665 | _ACEOF | ||
16666 | rm -f conftest$ac_exeext | ||
16667 | if { (ac_try="$ac_link" | ||
16668 | case "(($ac_try" in | ||
16669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16670 | *) ac_try_echo=$ac_try;; | ||
16671 | esac | ||
16672 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16673 | $as_echo "$ac_try_echo") >&5 | ||
16674 | (eval "$ac_link") 2>&5 | ||
16675 | ac_status=$? | ||
16676 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16678 | { (case "(($ac_try" in | ||
16679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16680 | *) ac_try_echo=$ac_try;; | ||
16681 | esac | ||
16682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16683 | $as_echo "$ac_try_echo") >&5 | ||
16684 | (eval "$ac_try") 2>&5 | ||
16685 | ac_status=$? | ||
16686 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16687 | (exit $ac_status); }; }; then | ||
16688 | |||
16689 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16690 | $as_echo "yes" >&6; } | ||
16691 | |||
16692 | else | ||
16693 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
16694 | $as_echo "$as_me: failed program was:" >&5 | ||
16695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16696 | |||
16697 | ( exit $ac_status ) | ||
16698 | |||
16699 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16700 | $as_echo "no" >&6; } | ||
16701 | cat >>confdefs.h <<\_ACEOF | ||
16702 | #define BROKEN_GETADDRINFO 1 | ||
16703 | _ACEOF | ||
16704 | |||
16705 | |||
16706 | fi | ||
16707 | rm -rf conftest.dSYM | ||
16708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16709 | fi | ||
16710 | |||
16711 | |||
16712 | fi | ||
16713 | |||
16714 | if test "x$ac_cv_func_getaddrinfo" = "xyes" && \ | ||
16715 | test "x$check_for_aix_broken_getaddrinfo" = "x1"; then | ||
16716 | { $as_echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5 | ||
16717 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } | ||
16718 | if test "$cross_compiling" = yes; then | ||
16719 | |||
16720 | { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5 | ||
16721 | $as_echo "cross-compiling" >&6; } | ||
16722 | |||
16723 | |||
16724 | else | ||
16725 | cat >conftest.$ac_ext <<_ACEOF | ||
16726 | /* confdefs.h. */ | ||
16727 | _ACEOF | ||
16728 | cat confdefs.h >>conftest.$ac_ext | ||
16729 | cat >>conftest.$ac_ext <<_ACEOF | ||
16730 | /* end confdefs.h. */ | ||
16731 | |||
16732 | #include <stdio.h> | ||
16733 | #include <sys/socket.h> | ||
16734 | #include <netdb.h> | ||
16735 | #include <errno.h> | ||
16736 | #include <netinet/in.h> | ||
16737 | |||
16738 | #define TEST_PORT "2222" | ||
16739 | |||
16740 | int | ||
16741 | main(void) | ||
16742 | { | ||
16743 | int err, sock; | ||
16744 | struct addrinfo *gai_ai, *ai, hints; | ||
16745 | char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL; | ||
16746 | |||
16747 | memset(&hints, 0, sizeof(hints)); | ||
16748 | hints.ai_family = PF_UNSPEC; | ||
16749 | hints.ai_socktype = SOCK_STREAM; | ||
16750 | hints.ai_flags = AI_PASSIVE; | ||
16751 | |||
16752 | err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai); | ||
16753 | if (err != 0) { | ||
16754 | fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err)); | ||
16755 | exit(1); | ||
16756 | } | ||
16757 | |||
16758 | for (ai = gai_ai; ai != NULL; ai = ai->ai_next) { | ||
16759 | if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) | ||
16760 | continue; | ||
16761 | |||
16762 | err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop, | ||
16763 | sizeof(ntop), strport, sizeof(strport), | ||
16764 | NI_NUMERICHOST|NI_NUMERICSERV); | ||
16765 | |||
16766 | if (ai->ai_family == AF_INET && err != 0) { | ||
16767 | perror("getnameinfo"); | ||
16768 | exit(2); | ||
16769 | } | ||
16770 | } | ||
16771 | exit(0); | ||
16772 | } | ||
16773 | |||
16774 | _ACEOF | ||
16775 | rm -f conftest$ac_exeext | ||
16776 | if { (ac_try="$ac_link" | ||
16777 | case "(($ac_try" in | ||
16778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16779 | *) ac_try_echo=$ac_try;; | ||
16780 | esac | ||
16781 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16782 | $as_echo "$ac_try_echo") >&5 | ||
16783 | (eval "$ac_link") 2>&5 | ||
16784 | ac_status=$? | ||
16785 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
16787 | { (case "(($ac_try" in | ||
16788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16789 | *) ac_try_echo=$ac_try;; | ||
16790 | esac | ||
16791 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16792 | $as_echo "$ac_try_echo") >&5 | ||
16793 | (eval "$ac_try") 2>&5 | ||
16794 | ac_status=$? | ||
16795 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16796 | (exit $ac_status); }; }; then | ||
16797 | |||
16798 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16799 | $as_echo "yes" >&6; } | ||
16800 | |||
16801 | cat >>confdefs.h <<\_ACEOF | ||
16802 | #define AIX_GETNAMEINFO_HACK 1 | ||
16803 | _ACEOF | ||
16804 | |||
16805 | |||
16806 | else | ||
16807 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
16808 | $as_echo "$as_me: failed program was:" >&5 | ||
16809 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16810 | |||
16811 | ( exit $ac_status ) | ||
16812 | |||
16813 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16814 | $as_echo "no" >&6; } | ||
16815 | cat >>confdefs.h <<\_ACEOF | ||
16816 | #define BROKEN_GETADDRINFO 1 | ||
16817 | _ACEOF | ||
16818 | |||
16819 | |||
16820 | fi | ||
16821 | rm -rf conftest.dSYM | ||
16822 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
16823 | fi | ||
16824 | |||
16825 | |||
16826 | fi | ||
16827 | |||
16828 | if test "x$check_for_conflicting_getspnam" = "x1"; then | ||
16829 | { $as_echo "$as_me:$LINENO: checking for conflicting getspnam in shadow.h" >&5 | ||
16830 | $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; } | ||
16831 | cat >conftest.$ac_ext <<_ACEOF | ||
16832 | |||
16833 | #include <shadow.h> | ||
16834 | int main(void) {exit(0);} | ||
16835 | |||
16836 | _ACEOF | ||
16837 | rm -f conftest.$ac_objext | ||
16838 | if { (ac_try="$ac_compile" | ||
16839 | case "(($ac_try" in | ||
16840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16841 | *) ac_try_echo=$ac_try;; | ||
16842 | esac | ||
16843 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16844 | $as_echo "$ac_try_echo") >&5 | ||
16845 | (eval "$ac_compile") 2>conftest.er1 | ||
16846 | ac_status=$? | ||
16847 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16848 | rm -f conftest.er1 | ||
16849 | cat conftest.err >&5 | ||
16850 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16851 | (exit $ac_status); } && { | ||
16852 | test -z "$ac_c_werror_flag" || | ||
16853 | test ! -s conftest.err | ||
16854 | } && test -s conftest.$ac_objext; then | ||
16855 | |||
16856 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
16857 | $as_echo "no" >&6; } | ||
16858 | |||
16859 | else | ||
16860 | $as_echo "$as_me: failed program was:" >&5 | ||
16861 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16862 | |||
16863 | |||
16864 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
16865 | $as_echo "yes" >&6; } | ||
16866 | |||
16867 | cat >>confdefs.h <<\_ACEOF | ||
16868 | #define GETSPNAM_CONFLICTING_DEFS 1 | ||
16869 | _ACEOF | ||
16870 | |||
16871 | |||
16872 | |||
16873 | fi | ||
16874 | |||
16875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16876 | fi | ||
16877 | |||
16878 | { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 | ||
16879 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | ||
16880 | if test "${ac_cv_func_getpgrp_void+set}" = set; then | ||
16881 | $as_echo_n "(cached) " >&6 | ||
16882 | else | ||
16883 | # Use it with a single arg. | ||
16884 | cat >conftest.$ac_ext <<_ACEOF | ||
16885 | /* confdefs.h. */ | ||
16886 | _ACEOF | ||
16887 | cat confdefs.h >>conftest.$ac_ext | ||
16888 | cat >>conftest.$ac_ext <<_ACEOF | ||
16889 | /* end confdefs.h. */ | ||
16890 | $ac_includes_default | ||
16891 | int | ||
16892 | main () | ||
16893 | { | ||
16894 | getpgrp (0); | ||
16895 | ; | ||
16896 | return 0; | ||
16897 | } | ||
16898 | _ACEOF | ||
16899 | rm -f conftest.$ac_objext | ||
16900 | if { (ac_try="$ac_compile" | ||
16901 | case "(($ac_try" in | ||
16902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
16903 | *) ac_try_echo=$ac_try;; | ||
16904 | esac | ||
16905 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
16906 | $as_echo "$ac_try_echo") >&5 | ||
16907 | (eval "$ac_compile") 2>conftest.er1 | ||
16908 | ac_status=$? | ||
16909 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16910 | rm -f conftest.er1 | ||
16911 | cat conftest.err >&5 | ||
16912 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16913 | (exit $ac_status); } && { | ||
16914 | test -z "$ac_c_werror_flag" || | ||
16915 | test ! -s conftest.err | ||
16916 | } && test -s conftest.$ac_objext; then | ||
16917 | ac_cv_func_getpgrp_void=no | ||
16918 | else | ||
16919 | $as_echo "$as_me: failed program was:" >&5 | ||
16920 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16921 | |||
16922 | ac_cv_func_getpgrp_void=yes | ||
16923 | fi | ||
16924 | |||
16925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
16926 | |||
16927 | fi | ||
16928 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 | ||
16929 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | ||
16930 | if test $ac_cv_func_getpgrp_void = yes; then | ||
16931 | |||
16932 | cat >>confdefs.h <<\_ACEOF | ||
16933 | #define GETPGRP_VOID 1 | ||
16934 | _ACEOF | ||
16935 | |||
16936 | fi | ||
16937 | |||
16938 | |||
16939 | # Search for OpenSSL | ||
16940 | saved_CPPFLAGS="$CPPFLAGS" | ||
16941 | saved_LDFLAGS="$LDFLAGS" | ||
16942 | |||
16943 | # Check whether --with-ssl-dir was given. | ||
16944 | if test "${with_ssl_dir+set}" = set; then | ||
16945 | withval=$with_ssl_dir; | ||
16946 | if test "x$withval" != "xno" ; then | ||
16947 | case "$withval" in | ||
16948 | # Relative paths | ||
16949 | ./*|../*) withval="`pwd`/$withval" | ||
16950 | esac | ||
16951 | if test -d "$withval/lib"; then | ||
16952 | if test -n "${need_dash_r}"; then | ||
16953 | LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" | ||
16954 | else | ||
16955 | LDFLAGS="-L${withval}/lib ${LDFLAGS}" | ||
16956 | fi | ||
16957 | else | ||
16958 | if test -n "${need_dash_r}"; then | ||
16959 | LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" | ||
16960 | else | ||
16961 | LDFLAGS="-L${withval} ${LDFLAGS}" | ||
16962 | fi | ||
16963 | fi | ||
16964 | if test -d "$withval/include"; then | ||
16965 | CPPFLAGS="-I${withval}/include ${CPPFLAGS}" | ||
16966 | else | ||
16967 | CPPFLAGS="-I${withval} ${CPPFLAGS}" | ||
16968 | fi | ||
16969 | fi | ||
16970 | |||
16971 | |||
16972 | fi | ||
16973 | |||
16974 | LIBS="-lcrypto $LIBS" | ||
16975 | cat >conftest.$ac_ext <<_ACEOF | ||
16976 | /* confdefs.h. */ | ||
16977 | _ACEOF | ||
16978 | cat confdefs.h >>conftest.$ac_ext | ||
16979 | cat >>conftest.$ac_ext <<_ACEOF | ||
16980 | /* end confdefs.h. */ | ||
16981 | |||
16982 | /* Override any GCC internal prototype to avoid an error. | ||
16983 | Use char because int might match the return type of a GCC | ||
16984 | builtin and then its argument prototype would still apply. */ | ||
16985 | #ifdef __cplusplus | ||
16986 | extern "C" | ||
16987 | #endif | ||
16988 | char RAND_add (); | ||
16989 | int | ||
16990 | main () | ||
16991 | { | ||
16992 | return RAND_add (); | ||
16993 | ; | ||
16994 | return 0; | ||
16995 | } | ||
16996 | _ACEOF | ||
16997 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16998 | if { (ac_try="$ac_link" | ||
16999 | case "(($ac_try" in | ||
17000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17001 | *) ac_try_echo=$ac_try;; | ||
17002 | esac | ||
17003 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17004 | $as_echo "$ac_try_echo") >&5 | ||
17005 | (eval "$ac_link") 2>conftest.er1 | ||
17006 | ac_status=$? | ||
17007 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17008 | rm -f conftest.er1 | ||
17009 | cat conftest.err >&5 | ||
17010 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17011 | (exit $ac_status); } && { | ||
17012 | test -z "$ac_c_werror_flag" || | ||
17013 | test ! -s conftest.err | ||
17014 | } && test -s conftest$ac_exeext && { | ||
17015 | test "$cross_compiling" = yes || | ||
17016 | $as_test_x conftest$ac_exeext | ||
17017 | }; then | ||
17018 | |||
17019 | cat >>confdefs.h <<\_ACEOF | ||
17020 | #define HAVE_OPENSSL 1 | ||
17021 | _ACEOF | ||
17022 | |||
17023 | else | ||
17024 | $as_echo "$as_me: failed program was:" >&5 | ||
17025 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17026 | |||
17027 | |||
17028 | if test -n "${need_dash_r}"; then | ||
17029 | LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
17030 | else | ||
17031 | LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}" | ||
17032 | fi | ||
17033 | CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}" | ||
17034 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
17035 | { $as_echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
17036 | $as_echo_n "checking for openssl/opensslv.h... " >&6; } | ||
17037 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
17038 | $as_echo_n "(cached) " >&6 | ||
17039 | fi | ||
17040 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
17041 | $as_echo "$ac_cv_header_openssl_opensslv_h" >&6; } | ||
17042 | else | ||
17043 | # Is the header compilable? | ||
17044 | { $as_echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5 | ||
17045 | $as_echo_n "checking openssl/opensslv.h usability... " >&6; } | ||
17046 | cat >conftest.$ac_ext <<_ACEOF | ||
17047 | /* confdefs.h. */ | ||
17048 | _ACEOF | ||
17049 | cat confdefs.h >>conftest.$ac_ext | ||
17050 | cat >>conftest.$ac_ext <<_ACEOF | ||
17051 | /* end confdefs.h. */ | ||
17052 | $ac_includes_default | ||
17053 | #include <openssl/opensslv.h> | ||
17054 | _ACEOF | ||
17055 | rm -f conftest.$ac_objext | ||
17056 | if { (ac_try="$ac_compile" | ||
17057 | case "(($ac_try" in | ||
17058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17059 | *) ac_try_echo=$ac_try;; | ||
17060 | esac | ||
17061 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17062 | $as_echo "$ac_try_echo") >&5 | ||
17063 | (eval "$ac_compile") 2>conftest.er1 | ||
17064 | ac_status=$? | ||
17065 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17066 | rm -f conftest.er1 | ||
17067 | cat conftest.err >&5 | ||
17068 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17069 | (exit $ac_status); } && { | ||
17070 | test -z "$ac_c_werror_flag" || | ||
17071 | test ! -s conftest.err | ||
17072 | } && test -s conftest.$ac_objext; then | ||
17073 | ac_header_compiler=yes | ||
17074 | else | ||
17075 | $as_echo "$as_me: failed program was:" >&5 | ||
17076 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17077 | |||
17078 | ac_header_compiler=no | ||
17079 | fi | ||
17080 | |||
17081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17082 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
17083 | $as_echo "$ac_header_compiler" >&6; } | ||
17084 | |||
17085 | # Is the header present? | ||
17086 | { $as_echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5 | ||
17087 | $as_echo_n "checking openssl/opensslv.h presence... " >&6; } | ||
17088 | cat >conftest.$ac_ext <<_ACEOF | ||
17089 | /* confdefs.h. */ | ||
17090 | _ACEOF | ||
17091 | cat confdefs.h >>conftest.$ac_ext | ||
17092 | cat >>conftest.$ac_ext <<_ACEOF | ||
17093 | /* end confdefs.h. */ | ||
17094 | #include <openssl/opensslv.h> | ||
17095 | _ACEOF | ||
17096 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
17097 | case "(($ac_try" in | ||
17098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17099 | *) ac_try_echo=$ac_try;; | ||
17100 | esac | ||
17101 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17102 | $as_echo "$ac_try_echo") >&5 | ||
17103 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
17104 | ac_status=$? | ||
17105 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17106 | rm -f conftest.er1 | ||
17107 | cat conftest.err >&5 | ||
17108 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17109 | (exit $ac_status); } >/dev/null && { | ||
17110 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
17111 | test ! -s conftest.err | ||
17112 | }; then | ||
17113 | ac_header_preproc=yes | ||
17114 | else | ||
17115 | $as_echo "$as_me: failed program was:" >&5 | ||
17116 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17117 | |||
17118 | ac_header_preproc=no | ||
17119 | fi | ||
17120 | |||
17121 | rm -f conftest.err conftest.$ac_ext | ||
17122 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
17123 | $as_echo "$ac_header_preproc" >&6; } | ||
17124 | |||
17125 | # So? What about this header? | ||
17126 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
17127 | yes:no: ) | ||
17128 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
17129 | $as_echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
17130 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5 | ||
17131 | $as_echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;} | ||
17132 | ac_header_preproc=yes | ||
17133 | ;; | ||
17134 | no:yes:* ) | ||
17135 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5 | ||
17136 | $as_echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;} | ||
17137 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5 | ||
17138 | $as_echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;} | ||
17139 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5 | ||
17140 | $as_echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;} | ||
17141 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
17142 | $as_echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
17143 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5 | ||
17144 | $as_echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;} | ||
17145 | { $as_echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5 | ||
17146 | $as_echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;} | ||
17147 | ( cat <<\_ASBOX | ||
17148 | ## ------------------------------------------- ## | ||
17149 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
17150 | ## ------------------------------------------- ## | ||
17151 | _ASBOX | ||
17152 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
17153 | ;; | ||
17154 | esac | ||
17155 | { $as_echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5 | ||
17156 | $as_echo_n "checking for openssl/opensslv.h... " >&6; } | ||
17157 | if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then | ||
17158 | $as_echo_n "(cached) " >&6 | ||
17159 | else | ||
17160 | ac_cv_header_openssl_opensslv_h=$ac_header_preproc | ||
17161 | fi | ||
17162 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5 | ||
17163 | $as_echo "$ac_cv_header_openssl_opensslv_h" >&6; } | ||
17164 | |||
17165 | fi | ||
17166 | if test $ac_cv_header_openssl_opensslv_h = yes; then | ||
17167 | : | ||
17168 | else | ||
17169 | { { $as_echo "$as_me:$LINENO: error: *** OpenSSL headers missing - please install first or check config.log ***" >&5 | ||
17170 | $as_echo "$as_me: error: *** OpenSSL headers missing - please install first or check config.log ***" >&2;} | ||
17171 | { (exit 1); exit 1; }; } | ||
17172 | fi | ||
17173 | |||
17174 | |||
17175 | cat >conftest.$ac_ext <<_ACEOF | ||
17176 | /* confdefs.h. */ | ||
17177 | _ACEOF | ||
17178 | cat confdefs.h >>conftest.$ac_ext | ||
17179 | cat >>conftest.$ac_ext <<_ACEOF | ||
17180 | /* end confdefs.h. */ | ||
17181 | |||
17182 | /* Override any GCC internal prototype to avoid an error. | ||
17183 | Use char because int might match the return type of a GCC | ||
17184 | builtin and then its argument prototype would still apply. */ | ||
17185 | #ifdef __cplusplus | ||
17186 | extern "C" | ||
17187 | #endif | ||
17188 | char RAND_add (); | ||
17189 | int | ||
17190 | main () | ||
17191 | { | ||
17192 | return RAND_add (); | ||
17193 | ; | ||
17194 | return 0; | ||
17195 | } | ||
17196 | _ACEOF | ||
17197 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17198 | if { (ac_try="$ac_link" | ||
17199 | case "(($ac_try" in | ||
17200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17201 | *) ac_try_echo=$ac_try;; | ||
17202 | esac | ||
17203 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17204 | $as_echo "$ac_try_echo") >&5 | ||
17205 | (eval "$ac_link") 2>conftest.er1 | ||
17206 | ac_status=$? | ||
17207 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17208 | rm -f conftest.er1 | ||
17209 | cat conftest.err >&5 | ||
17210 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17211 | (exit $ac_status); } && { | ||
17212 | test -z "$ac_c_werror_flag" || | ||
17213 | test ! -s conftest.err | ||
17214 | } && test -s conftest$ac_exeext && { | ||
17215 | test "$cross_compiling" = yes || | ||
17216 | $as_test_x conftest$ac_exeext | ||
17217 | }; then | ||
17218 | cat >>confdefs.h <<\_ACEOF | ||
17219 | #define HAVE_OPENSSL 1 | ||
17220 | _ACEOF | ||
17221 | |||
17222 | else | ||
17223 | $as_echo "$as_me: failed program was:" >&5 | ||
17224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17225 | |||
17226 | |||
17227 | { { $as_echo "$as_me:$LINENO: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&5 | ||
17228 | $as_echo "$as_me: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***" >&2;} | ||
17229 | { (exit 1); exit 1; }; } | ||
17230 | |||
17231 | |||
17232 | fi | ||
17233 | |||
17234 | rm -rf conftest.dSYM | ||
17235 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17236 | conftest$ac_exeext conftest.$ac_ext | ||
17237 | |||
17238 | |||
17239 | fi | ||
17240 | |||
17241 | rm -rf conftest.dSYM | ||
17242 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17243 | conftest$ac_exeext conftest.$ac_ext | ||
17244 | |||
17245 | # Determine OpenSSL header version | ||
17246 | { $as_echo "$as_me:$LINENO: checking OpenSSL header version" >&5 | ||
17247 | $as_echo_n "checking OpenSSL header version... " >&6; } | ||
17248 | if test "$cross_compiling" = yes; then | ||
17249 | |||
17250 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
17251 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
17252 | |||
17253 | |||
17254 | else | ||
17255 | cat >conftest.$ac_ext <<_ACEOF | ||
17256 | /* confdefs.h. */ | ||
17257 | _ACEOF | ||
17258 | cat confdefs.h >>conftest.$ac_ext | ||
17259 | cat >>conftest.$ac_ext <<_ACEOF | ||
17260 | /* end confdefs.h. */ | ||
17261 | |||
17262 | #include <stdio.h> | ||
17263 | #include <string.h> | ||
17264 | #include <openssl/opensslv.h> | ||
17265 | #define DATA "conftest.sslincver" | ||
17266 | int main(void) { | ||
17267 | FILE *fd; | ||
17268 | int rc; | ||
17269 | |||
17270 | fd = fopen(DATA,"w"); | ||
17271 | if(fd == NULL) | ||
17272 | exit(1); | ||
17273 | |||
17274 | if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) | ||
17275 | exit(1); | ||
17276 | |||
17277 | exit(0); | ||
17278 | } | ||
17279 | |||
17280 | _ACEOF | ||
17281 | rm -f conftest$ac_exeext | ||
17282 | if { (ac_try="$ac_link" | ||
17283 | case "(($ac_try" in | ||
17284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17285 | *) ac_try_echo=$ac_try;; | ||
17286 | esac | ||
17287 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17288 | $as_echo "$ac_try_echo") >&5 | ||
17289 | (eval "$ac_link") 2>&5 | ||
17290 | ac_status=$? | ||
17291 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17293 | { (case "(($ac_try" in | ||
17294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17295 | *) ac_try_echo=$ac_try;; | ||
17296 | esac | ||
17297 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17298 | $as_echo "$ac_try_echo") >&5 | ||
17299 | (eval "$ac_try") 2>&5 | ||
17300 | ac_status=$? | ||
17301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17302 | (exit $ac_status); }; }; then | ||
17303 | |||
17304 | ssl_header_ver=`cat conftest.sslincver` | ||
17305 | { $as_echo "$as_me:$LINENO: result: $ssl_header_ver" >&5 | ||
17306 | $as_echo "$ssl_header_ver" >&6; } | ||
17307 | |||
17308 | else | ||
17309 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
17310 | $as_echo "$as_me: failed program was:" >&5 | ||
17311 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17312 | |||
17313 | ( exit $ac_status ) | ||
17314 | |||
17315 | { $as_echo "$as_me:$LINENO: result: not found" >&5 | ||
17316 | $as_echo "not found" >&6; } | ||
17317 | { { $as_echo "$as_me:$LINENO: error: OpenSSL version header not found." >&5 | ||
17318 | $as_echo "$as_me: error: OpenSSL version header not found." >&2;} | ||
17319 | { (exit 1); exit 1; }; } | ||
17320 | |||
17321 | fi | ||
17322 | rm -rf conftest.dSYM | ||
17323 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17324 | fi | ||
17325 | |||
17326 | |||
17327 | |||
17328 | # Determine OpenSSL library version | ||
17329 | { $as_echo "$as_me:$LINENO: checking OpenSSL library version" >&5 | ||
17330 | $as_echo_n "checking OpenSSL library version... " >&6; } | ||
17331 | if test "$cross_compiling" = yes; then | ||
17332 | |||
17333 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
17334 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
17335 | |||
17336 | |||
17337 | else | ||
17338 | cat >conftest.$ac_ext <<_ACEOF | ||
17339 | /* confdefs.h. */ | ||
17340 | _ACEOF | ||
17341 | cat confdefs.h >>conftest.$ac_ext | ||
17342 | cat >>conftest.$ac_ext <<_ACEOF | ||
17343 | /* end confdefs.h. */ | ||
17344 | |||
17345 | #include <stdio.h> | ||
17346 | #include <string.h> | ||
17347 | #include <openssl/opensslv.h> | ||
17348 | #include <openssl/crypto.h> | ||
17349 | #define DATA "conftest.ssllibver" | ||
17350 | int main(void) { | ||
17351 | FILE *fd; | ||
17352 | int rc; | ||
17353 | |||
17354 | fd = fopen(DATA,"w"); | ||
17355 | if(fd == NULL) | ||
17356 | exit(1); | ||
17357 | |||
17358 | if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0) | ||
17359 | exit(1); | ||
17360 | |||
17361 | exit(0); | ||
17362 | } | ||
17363 | |||
17364 | _ACEOF | ||
17365 | rm -f conftest$ac_exeext | ||
17366 | if { (ac_try="$ac_link" | ||
17367 | case "(($ac_try" in | ||
17368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17369 | *) ac_try_echo=$ac_try;; | ||
17370 | esac | ||
17371 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17372 | $as_echo "$ac_try_echo") >&5 | ||
17373 | (eval "$ac_link") 2>&5 | ||
17374 | ac_status=$? | ||
17375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17377 | { (case "(($ac_try" in | ||
17378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17379 | *) ac_try_echo=$ac_try;; | ||
17380 | esac | ||
17381 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17382 | $as_echo "$ac_try_echo") >&5 | ||
17383 | (eval "$ac_try") 2>&5 | ||
17384 | ac_status=$? | ||
17385 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17386 | (exit $ac_status); }; }; then | ||
17387 | |||
17388 | ssl_library_ver=`cat conftest.ssllibver` | ||
17389 | { $as_echo "$as_me:$LINENO: result: $ssl_library_ver" >&5 | ||
17390 | $as_echo "$ssl_library_ver" >&6; } | ||
17391 | |||
17392 | else | ||
17393 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
17394 | $as_echo "$as_me: failed program was:" >&5 | ||
17395 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17396 | |||
17397 | ( exit $ac_status ) | ||
17398 | |||
17399 | { $as_echo "$as_me:$LINENO: result: not found" >&5 | ||
17400 | $as_echo "not found" >&6; } | ||
17401 | { { $as_echo "$as_me:$LINENO: error: OpenSSL library not found." >&5 | ||
17402 | $as_echo "$as_me: error: OpenSSL library not found." >&2;} | ||
17403 | { (exit 1); exit 1; }; } | ||
17404 | |||
17405 | fi | ||
17406 | rm -rf conftest.dSYM | ||
17407 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17408 | fi | ||
17409 | |||
17410 | |||
17411 | |||
17412 | |||
17413 | # Check whether --with-openssl-header-check was given. | ||
17414 | if test "${with_openssl_header_check+set}" = set; then | ||
17415 | withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then | ||
17416 | openssl_check_nonfatal=1 | ||
17417 | fi | ||
17418 | |||
17419 | |||
17420 | fi | ||
17421 | |||
17422 | |||
17423 | # Sanity check OpenSSL headers | ||
17424 | { $as_echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 | ||
17425 | $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; } | ||
17426 | if test "$cross_compiling" = yes; then | ||
17427 | |||
17428 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
17429 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
17430 | |||
17431 | |||
17432 | else | ||
17433 | cat >conftest.$ac_ext <<_ACEOF | ||
17434 | /* confdefs.h. */ | ||
17435 | _ACEOF | ||
17436 | cat confdefs.h >>conftest.$ac_ext | ||
17437 | cat >>conftest.$ac_ext <<_ACEOF | ||
17438 | /* end confdefs.h. */ | ||
17439 | |||
17440 | #include <string.h> | ||
17441 | #include <openssl/opensslv.h> | ||
17442 | int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } | ||
17443 | |||
17444 | _ACEOF | ||
17445 | rm -f conftest$ac_exeext | ||
17446 | if { (ac_try="$ac_link" | ||
17447 | case "(($ac_try" in | ||
17448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17449 | *) ac_try_echo=$ac_try;; | ||
17450 | esac | ||
17451 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17452 | $as_echo "$ac_try_echo") >&5 | ||
17453 | (eval "$ac_link") 2>&5 | ||
17454 | ac_status=$? | ||
17455 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17456 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
17457 | { (case "(($ac_try" in | ||
17458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17459 | *) ac_try_echo=$ac_try;; | ||
17460 | esac | ||
17461 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17462 | $as_echo "$ac_try_echo") >&5 | ||
17463 | (eval "$ac_try") 2>&5 | ||
17464 | ac_status=$? | ||
17465 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17466 | (exit $ac_status); }; }; then | ||
17467 | |||
17468 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
17469 | $as_echo "yes" >&6; } | ||
17470 | |||
17471 | else | ||
17472 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
17473 | $as_echo "$as_me: failed program was:" >&5 | ||
17474 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17475 | |||
17476 | ( exit $ac_status ) | ||
17477 | |||
17478 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
17479 | $as_echo "no" >&6; } | ||
17480 | if test "x$openssl_check_nonfatal" = "x"; then | ||
17481 | { { $as_echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your | ||
17482 | library. Check config.log for details. | ||
17483 | If you are sure your installation is consistent, you can disable the check | ||
17484 | by running \"./configure --without-openssl-header-check\". | ||
17485 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
17486 | " >&5 | ||
17487 | $as_echo "$as_me: error: Your OpenSSL headers do not match your | ||
17488 | library. Check config.log for details. | ||
17489 | If you are sure your installation is consistent, you can disable the check | ||
17490 | by running \"./configure --without-openssl-header-check\". | ||
17491 | Also see contrib/findssl.sh for help identifying header/library mismatches. | ||
17492 | " >&2;} | ||
17493 | { (exit 1); exit 1; }; } | ||
17494 | else | ||
17495 | { $as_echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your | ||
17496 | library. Check config.log for details. | ||
17497 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 | ||
17498 | $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your | ||
17499 | library. Check config.log for details. | ||
17500 | Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} | ||
17501 | fi | ||
17502 | |||
17503 | fi | ||
17504 | rm -rf conftest.dSYM | ||
17505 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
17506 | fi | ||
17507 | |||
17508 | |||
17509 | |||
17510 | { $as_echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5 | ||
17511 | $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; } | ||
17512 | cat >conftest.$ac_ext <<_ACEOF | ||
17513 | /* confdefs.h. */ | ||
17514 | _ACEOF | ||
17515 | cat confdefs.h >>conftest.$ac_ext | ||
17516 | cat >>conftest.$ac_ext <<_ACEOF | ||
17517 | /* end confdefs.h. */ | ||
17518 | |||
17519 | #include <openssl/evp.h> | ||
17520 | int main(void) { SSLeay_add_all_algorithms(); } | ||
17521 | |||
17522 | _ACEOF | ||
17523 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17524 | if { (ac_try="$ac_link" | ||
17525 | case "(($ac_try" in | ||
17526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17527 | *) ac_try_echo=$ac_try;; | ||
17528 | esac | ||
17529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17530 | $as_echo "$ac_try_echo") >&5 | ||
17531 | (eval "$ac_link") 2>conftest.er1 | ||
17532 | ac_status=$? | ||
17533 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17534 | rm -f conftest.er1 | ||
17535 | cat conftest.err >&5 | ||
17536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17537 | (exit $ac_status); } && { | ||
17538 | test -z "$ac_c_werror_flag" || | ||
17539 | test ! -s conftest.err | ||
17540 | } && test -s conftest$ac_exeext && { | ||
17541 | test "$cross_compiling" = yes || | ||
17542 | $as_test_x conftest$ac_exeext | ||
17543 | }; then | ||
17544 | |||
17545 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
17546 | $as_echo "yes" >&6; } | ||
17547 | |||
17548 | else | ||
17549 | $as_echo "$as_me: failed program was:" >&5 | ||
17550 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17551 | |||
17552 | |||
17553 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
17554 | $as_echo "no" >&6; } | ||
17555 | saved_LIBS="$LIBS" | ||
17556 | LIBS="$LIBS -ldl" | ||
17557 | { $as_echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5 | ||
17558 | $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; } | ||
17559 | cat >conftest.$ac_ext <<_ACEOF | ||
17560 | /* confdefs.h. */ | ||
17561 | _ACEOF | ||
17562 | cat confdefs.h >>conftest.$ac_ext | ||
17563 | cat >>conftest.$ac_ext <<_ACEOF | ||
17564 | /* end confdefs.h. */ | ||
17565 | |||
17566 | #include <openssl/evp.h> | ||
17567 | int main(void) { SSLeay_add_all_algorithms(); } | ||
17568 | |||
17569 | _ACEOF | ||
17570 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17571 | if { (ac_try="$ac_link" | ||
17572 | case "(($ac_try" in | ||
17573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17574 | *) ac_try_echo=$ac_try;; | ||
17575 | esac | ||
17576 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17577 | $as_echo "$ac_try_echo") >&5 | ||
17578 | (eval "$ac_link") 2>conftest.er1 | ||
17579 | ac_status=$? | ||
17580 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17581 | rm -f conftest.er1 | ||
17582 | cat conftest.err >&5 | ||
17583 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17584 | (exit $ac_status); } && { | ||
17585 | test -z "$ac_c_werror_flag" || | ||
17586 | test ! -s conftest.err | ||
17587 | } && test -s conftest$ac_exeext && { | ||
17588 | test "$cross_compiling" = yes || | ||
17589 | $as_test_x conftest$ac_exeext | ||
17590 | }; then | ||
17591 | |||
17592 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
17593 | $as_echo "yes" >&6; } | ||
17594 | |||
17595 | else | ||
17596 | $as_echo "$as_me: failed program was:" >&5 | ||
17597 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17598 | |||
17599 | |||
17600 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
17601 | $as_echo "no" >&6; } | ||
17602 | LIBS="$saved_LIBS" | ||
17603 | |||
17604 | |||
17605 | fi | ||
17606 | |||
17607 | rm -rf conftest.dSYM | ||
17608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17609 | conftest$ac_exeext conftest.$ac_ext | ||
17610 | |||
17611 | |||
17612 | fi | ||
17613 | |||
17614 | rm -rf conftest.dSYM | ||
17615 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17616 | conftest$ac_exeext conftest.$ac_ext | ||
17617 | |||
17618 | |||
17619 | # Check whether --with-ssl-engine was given. | ||
17620 | if test "${with_ssl_engine+set}" = set; then | ||
17621 | withval=$with_ssl_engine; if test "x$withval" != "xno" ; then | ||
17622 | { $as_echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5 | ||
17623 | $as_echo_n "checking for OpenSSL ENGINE support... " >&6; } | ||
17624 | cat >conftest.$ac_ext <<_ACEOF | ||
17625 | /* confdefs.h. */ | ||
17626 | _ACEOF | ||
17627 | cat confdefs.h >>conftest.$ac_ext | ||
17628 | cat >>conftest.$ac_ext <<_ACEOF | ||
17629 | /* end confdefs.h. */ | ||
17630 | #include <openssl/engine.h> | ||
17631 | int | ||
17632 | main () | ||
17633 | { | ||
17634 | |||
17635 | ENGINE_load_builtin_engines();ENGINE_register_all_complete(); | ||
17636 | |||
17637 | ; | ||
17638 | return 0; | ||
17639 | } | ||
17640 | _ACEOF | ||
17641 | rm -f conftest.$ac_objext | ||
17642 | if { (ac_try="$ac_compile" | ||
17643 | case "(($ac_try" in | ||
17644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17645 | *) ac_try_echo=$ac_try;; | ||
17646 | esac | ||
17647 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17648 | $as_echo "$ac_try_echo") >&5 | ||
17649 | (eval "$ac_compile") 2>conftest.er1 | ||
17650 | ac_status=$? | ||
17651 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17652 | rm -f conftest.er1 | ||
17653 | cat conftest.err >&5 | ||
17654 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17655 | (exit $ac_status); } && { | ||
17656 | test -z "$ac_c_werror_flag" || | ||
17657 | test ! -s conftest.err | ||
17658 | } && test -s conftest.$ac_objext; then | ||
17659 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
17660 | $as_echo "yes" >&6; } | ||
17661 | |||
17662 | cat >>confdefs.h <<\_ACEOF | ||
17663 | #define USE_OPENSSL_ENGINE 1 | ||
17664 | _ACEOF | ||
17665 | |||
17666 | |||
17667 | else | ||
17668 | $as_echo "$as_me: failed program was:" >&5 | ||
17669 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17670 | |||
17671 | { { $as_echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5 | ||
17672 | $as_echo "$as_me: error: OpenSSL ENGINE support not found" >&2;} | ||
17673 | { (exit 1); exit 1; }; } | ||
17674 | |||
17675 | fi | ||
17676 | |||
17677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
17678 | fi | ||
17679 | |||
17680 | fi | ||
17681 | |||
17682 | |||
17683 | # Check for OpenSSL without EVP_aes_{192,256}_cbc | ||
17684 | { $as_echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 | ||
17685 | $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; } | ||
17686 | cat >conftest.$ac_ext <<_ACEOF | ||
17687 | /* confdefs.h. */ | ||
17688 | _ACEOF | ||
17689 | cat confdefs.h >>conftest.$ac_ext | ||
17690 | cat >>conftest.$ac_ext <<_ACEOF | ||
17691 | /* end confdefs.h. */ | ||
17692 | |||
17693 | #include <string.h> | ||
17694 | #include <openssl/evp.h> | ||
17695 | int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} | ||
17696 | |||
17697 | _ACEOF | ||
17698 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17699 | if { (ac_try="$ac_link" | ||
17700 | case "(($ac_try" in | ||
17701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17702 | *) ac_try_echo=$ac_try;; | ||
17703 | esac | ||
17704 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17705 | $as_echo "$ac_try_echo") >&5 | ||
17706 | (eval "$ac_link") 2>conftest.er1 | ||
17707 | ac_status=$? | ||
17708 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17709 | rm -f conftest.er1 | ||
17710 | cat conftest.err >&5 | ||
17711 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17712 | (exit $ac_status); } && { | ||
17713 | test -z "$ac_c_werror_flag" || | ||
17714 | test ! -s conftest.err | ||
17715 | } && test -s conftest$ac_exeext && { | ||
17716 | test "$cross_compiling" = yes || | ||
17717 | $as_test_x conftest$ac_exeext | ||
17718 | }; then | ||
17719 | |||
17720 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
17721 | $as_echo "no" >&6; } | ||
17722 | |||
17723 | else | ||
17724 | $as_echo "$as_me: failed program was:" >&5 | ||
17725 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17726 | |||
17727 | |||
17728 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
17729 | $as_echo "yes" >&6; } | ||
17730 | |||
17731 | cat >>confdefs.h <<\_ACEOF | ||
17732 | #define OPENSSL_LOBOTOMISED_AES 1 | ||
17733 | _ACEOF | ||
17734 | |||
17735 | |||
17736 | |||
17737 | fi | ||
17738 | |||
17739 | rm -rf conftest.dSYM | ||
17740 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17741 | conftest$ac_exeext conftest.$ac_ext | ||
17742 | |||
17743 | { $as_echo "$as_me:$LINENO: checking if EVP_DigestUpdate returns an int" >&5 | ||
17744 | $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; } | ||
17745 | cat >conftest.$ac_ext <<_ACEOF | ||
17746 | /* confdefs.h. */ | ||
17747 | _ACEOF | ||
17748 | cat confdefs.h >>conftest.$ac_ext | ||
17749 | cat >>conftest.$ac_ext <<_ACEOF | ||
17750 | /* end confdefs.h. */ | ||
17751 | |||
17752 | #include <string.h> | ||
17753 | #include <openssl/evp.h> | ||
17754 | int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); } | ||
17755 | |||
17756 | _ACEOF | ||
17757 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17758 | if { (ac_try="$ac_link" | ||
17759 | case "(($ac_try" in | ||
17760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17761 | *) ac_try_echo=$ac_try;; | ||
17762 | esac | ||
17763 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17764 | $as_echo "$ac_try_echo") >&5 | ||
17765 | (eval "$ac_link") 2>conftest.er1 | ||
17766 | ac_status=$? | ||
17767 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17768 | rm -f conftest.er1 | ||
17769 | cat conftest.err >&5 | ||
17770 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17771 | (exit $ac_status); } && { | ||
17772 | test -z "$ac_c_werror_flag" || | ||
17773 | test ! -s conftest.err | ||
17774 | } && test -s conftest$ac_exeext && { | ||
17775 | test "$cross_compiling" = yes || | ||
17776 | $as_test_x conftest$ac_exeext | ||
17777 | }; then | ||
17778 | |||
17779 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
17780 | $as_echo "yes" >&6; } | ||
17781 | |||
17782 | else | ||
17783 | $as_echo "$as_me: failed program was:" >&5 | ||
17784 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17785 | |||
17786 | |||
17787 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
17788 | $as_echo "no" >&6; } | ||
17789 | |||
17790 | cat >>confdefs.h <<\_ACEOF | ||
17791 | #define OPENSSL_EVP_DIGESTUPDATE_VOID 1 | ||
17792 | _ACEOF | ||
17793 | |||
17794 | |||
17795 | |||
17796 | fi | ||
17797 | |||
17798 | rm -rf conftest.dSYM | ||
17799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17800 | conftest$ac_exeext conftest.$ac_ext | ||
17801 | |||
17802 | # Some systems want crypt() from libcrypt, *not* the version in OpenSSL, | ||
17803 | # because the system crypt() is more featureful. | ||
17804 | if test "x$check_for_libcrypt_before" = "x1"; then | ||
17805 | |||
17806 | { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
17807 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
17808 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
17809 | $as_echo_n "(cached) " >&6 | ||
17810 | else | ||
17811 | ac_check_lib_save_LIBS=$LIBS | ||
17812 | LIBS="-lcrypt $LIBS" | ||
17813 | cat >conftest.$ac_ext <<_ACEOF | ||
17814 | /* confdefs.h. */ | ||
17815 | _ACEOF | ||
17816 | cat confdefs.h >>conftest.$ac_ext | ||
17817 | cat >>conftest.$ac_ext <<_ACEOF | ||
17818 | /* end confdefs.h. */ | ||
17819 | |||
17820 | /* Override any GCC internal prototype to avoid an error. | ||
17821 | Use char because int might match the return type of a GCC | ||
17822 | builtin and then its argument prototype would still apply. */ | ||
17823 | #ifdef __cplusplus | ||
17824 | extern "C" | ||
17825 | #endif | ||
17826 | char crypt (); | ||
17827 | int | ||
17828 | main () | ||
17829 | { | ||
17830 | return crypt (); | ||
17831 | ; | ||
17832 | return 0; | ||
17833 | } | ||
17834 | _ACEOF | ||
17835 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17836 | if { (ac_try="$ac_link" | ||
17837 | case "(($ac_try" in | ||
17838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17839 | *) ac_try_echo=$ac_try;; | ||
17840 | esac | ||
17841 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17842 | $as_echo "$ac_try_echo") >&5 | ||
17843 | (eval "$ac_link") 2>conftest.er1 | ||
17844 | ac_status=$? | ||
17845 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17846 | rm -f conftest.er1 | ||
17847 | cat conftest.err >&5 | ||
17848 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17849 | (exit $ac_status); } && { | ||
17850 | test -z "$ac_c_werror_flag" || | ||
17851 | test ! -s conftest.err | ||
17852 | } && test -s conftest$ac_exeext && { | ||
17853 | test "$cross_compiling" = yes || | ||
17854 | $as_test_x conftest$ac_exeext | ||
17855 | }; then | ||
17856 | ac_cv_lib_crypt_crypt=yes | ||
17857 | else | ||
17858 | $as_echo "$as_me: failed program was:" >&5 | ||
17859 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17860 | |||
17861 | ac_cv_lib_crypt_crypt=no | ||
17862 | fi | ||
17863 | |||
17864 | rm -rf conftest.dSYM | ||
17865 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17866 | conftest$ac_exeext conftest.$ac_ext | ||
17867 | LIBS=$ac_check_lib_save_LIBS | ||
17868 | fi | ||
17869 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
17870 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
17871 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
17872 | cat >>confdefs.h <<_ACEOF | ||
17873 | #define HAVE_LIBCRYPT 1 | ||
17874 | _ACEOF | ||
17875 | |||
17876 | LIBS="-lcrypt $LIBS" | ||
17877 | |||
17878 | fi | ||
17879 | |||
17880 | fi | ||
17881 | |||
17882 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
17883 | # version in OpenSSL. | ||
17884 | if test "x$check_for_libcrypt_later" = "x1"; then | ||
17885 | { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 | ||
17886 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | ||
17887 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | ||
17888 | $as_echo_n "(cached) " >&6 | ||
17889 | else | ||
17890 | ac_check_lib_save_LIBS=$LIBS | ||
17891 | LIBS="-lcrypt $LIBS" | ||
17892 | cat >conftest.$ac_ext <<_ACEOF | ||
17893 | /* confdefs.h. */ | ||
17894 | _ACEOF | ||
17895 | cat confdefs.h >>conftest.$ac_ext | ||
17896 | cat >>conftest.$ac_ext <<_ACEOF | ||
17897 | /* end confdefs.h. */ | ||
17898 | |||
17899 | /* Override any GCC internal prototype to avoid an error. | ||
17900 | Use char because int might match the return type of a GCC | ||
17901 | builtin and then its argument prototype would still apply. */ | ||
17902 | #ifdef __cplusplus | ||
17903 | extern "C" | ||
17904 | #endif | ||
17905 | char crypt (); | ||
17906 | int | ||
17907 | main () | ||
17908 | { | ||
17909 | return crypt (); | ||
17910 | ; | ||
17911 | return 0; | ||
17912 | } | ||
17913 | _ACEOF | ||
17914 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17915 | if { (ac_try="$ac_link" | ||
17916 | case "(($ac_try" in | ||
17917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17918 | *) ac_try_echo=$ac_try;; | ||
17919 | esac | ||
17920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
17921 | $as_echo "$ac_try_echo") >&5 | ||
17922 | (eval "$ac_link") 2>conftest.er1 | ||
17923 | ac_status=$? | ||
17924 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17925 | rm -f conftest.er1 | ||
17926 | cat conftest.err >&5 | ||
17927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17928 | (exit $ac_status); } && { | ||
17929 | test -z "$ac_c_werror_flag" || | ||
17930 | test ! -s conftest.err | ||
17931 | } && test -s conftest$ac_exeext && { | ||
17932 | test "$cross_compiling" = yes || | ||
17933 | $as_test_x conftest$ac_exeext | ||
17934 | }; then | ||
17935 | ac_cv_lib_crypt_crypt=yes | ||
17936 | else | ||
17937 | $as_echo "$as_me: failed program was:" >&5 | ||
17938 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17939 | |||
17940 | ac_cv_lib_crypt_crypt=no | ||
17941 | fi | ||
17942 | |||
17943 | rm -rf conftest.dSYM | ||
17944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17945 | conftest$ac_exeext conftest.$ac_ext | ||
17946 | LIBS=$ac_check_lib_save_LIBS | ||
17947 | fi | ||
17948 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | ||
17949 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | ||
17950 | if test $ac_cv_lib_crypt_crypt = yes; then | ||
17951 | LIBS="$LIBS -lcrypt" | ||
17952 | fi | ||
17953 | |||
17954 | fi | ||
17955 | |||
17956 | # Search for SHA256 support in libc and/or OpenSSL | ||
17957 | |||
17958 | |||
17959 | for ac_func in SHA256_Update EVP_sha256 | ||
17960 | do | ||
17961 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
17962 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
17963 | $as_echo_n "checking for $ac_func... " >&6; } | ||
17964 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
17965 | $as_echo_n "(cached) " >&6 | ||
17966 | else | ||
17967 | cat >conftest.$ac_ext <<_ACEOF | ||
17968 | /* confdefs.h. */ | ||
17969 | _ACEOF | ||
17970 | cat confdefs.h >>conftest.$ac_ext | ||
17971 | cat >>conftest.$ac_ext <<_ACEOF | ||
17972 | /* end confdefs.h. */ | ||
17973 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
17974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17975 | #define $ac_func innocuous_$ac_func | ||
17976 | |||
17977 | /* System header to define __stub macros and hopefully few prototypes, | ||
17978 | which can conflict with char $ac_func (); below. | ||
17979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17980 | <limits.h> exists even on freestanding compilers. */ | ||
17981 | |||
17982 | #ifdef __STDC__ | ||
17983 | # include <limits.h> | ||
17984 | #else | ||
17985 | # include <assert.h> | ||
17986 | #endif | ||
17987 | |||
17988 | #undef $ac_func | ||
17989 | |||
17990 | /* Override any GCC internal prototype to avoid an error. | ||
17991 | Use char because int might match the return type of a GCC | ||
17992 | builtin and then its argument prototype would still apply. */ | ||
17993 | #ifdef __cplusplus | ||
17994 | extern "C" | ||
17995 | #endif | ||
17996 | char $ac_func (); | ||
17997 | /* The GNU C library defines this for functions which it implements | ||
17998 | to always fail with ENOSYS. Some functions are actually named | ||
17999 | something starting with __ and the normal name is an alias. */ | ||
18000 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18001 | choke me | ||
18002 | #endif | ||
18003 | |||
18004 | int | ||
18005 | main () | ||
18006 | { | ||
18007 | return $ac_func (); | ||
18008 | ; | ||
18009 | return 0; | ||
18010 | } | ||
18011 | _ACEOF | ||
18012 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18013 | if { (ac_try="$ac_link" | ||
18014 | case "(($ac_try" in | ||
18015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18016 | *) ac_try_echo=$ac_try;; | ||
18017 | esac | ||
18018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18019 | $as_echo "$ac_try_echo") >&5 | ||
18020 | (eval "$ac_link") 2>conftest.er1 | ||
18021 | ac_status=$? | ||
18022 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18023 | rm -f conftest.er1 | ||
18024 | cat conftest.err >&5 | ||
18025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18026 | (exit $ac_status); } && { | ||
18027 | test -z "$ac_c_werror_flag" || | ||
18028 | test ! -s conftest.err | ||
18029 | } && test -s conftest$ac_exeext && { | ||
18030 | test "$cross_compiling" = yes || | ||
18031 | $as_test_x conftest$ac_exeext | ||
18032 | }; then | ||
18033 | eval "$as_ac_var=yes" | ||
18034 | else | ||
18035 | $as_echo "$as_me: failed program was:" >&5 | ||
18036 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18037 | |||
18038 | eval "$as_ac_var=no" | ||
18039 | fi | ||
18040 | |||
18041 | rm -rf conftest.dSYM | ||
18042 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18043 | conftest$ac_exeext conftest.$ac_ext | ||
18044 | fi | ||
18045 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
18046 | $as_echo "$as_val"'` | ||
18047 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18048 | $as_echo "$ac_res" >&6; } | ||
18049 | if test `eval 'as_val=${'$as_ac_var'} | ||
18050 | $as_echo "$as_val"'` = yes; then | ||
18051 | cat >>confdefs.h <<_ACEOF | ||
18052 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18053 | _ACEOF | ||
18054 | |||
18055 | fi | ||
18056 | done | ||
18057 | |||
18058 | |||
18059 | saved_LIBS="$LIBS" | ||
18060 | { $as_echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 | ||
18061 | $as_echo_n "checking for ia_openinfo in -liaf... " >&6; } | ||
18062 | if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then | ||
18063 | $as_echo_n "(cached) " >&6 | ||
18064 | else | ||
18065 | ac_check_lib_save_LIBS=$LIBS | ||
18066 | LIBS="-liaf $LIBS" | ||
18067 | cat >conftest.$ac_ext <<_ACEOF | ||
18068 | /* confdefs.h. */ | ||
18069 | _ACEOF | ||
18070 | cat confdefs.h >>conftest.$ac_ext | ||
18071 | cat >>conftest.$ac_ext <<_ACEOF | ||
18072 | /* end confdefs.h. */ | ||
18073 | |||
18074 | /* Override any GCC internal prototype to avoid an error. | ||
18075 | Use char because int might match the return type of a GCC | ||
18076 | builtin and then its argument prototype would still apply. */ | ||
18077 | #ifdef __cplusplus | ||
18078 | extern "C" | ||
18079 | #endif | ||
18080 | char ia_openinfo (); | ||
18081 | int | ||
18082 | main () | ||
18083 | { | ||
18084 | return ia_openinfo (); | ||
18085 | ; | ||
18086 | return 0; | ||
18087 | } | ||
18088 | _ACEOF | ||
18089 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18090 | if { (ac_try="$ac_link" | ||
18091 | case "(($ac_try" in | ||
18092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18093 | *) ac_try_echo=$ac_try;; | ||
18094 | esac | ||
18095 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18096 | $as_echo "$ac_try_echo") >&5 | ||
18097 | (eval "$ac_link") 2>conftest.er1 | ||
18098 | ac_status=$? | ||
18099 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18100 | rm -f conftest.er1 | ||
18101 | cat conftest.err >&5 | ||
18102 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18103 | (exit $ac_status); } && { | ||
18104 | test -z "$ac_c_werror_flag" || | ||
18105 | test ! -s conftest.err | ||
18106 | } && test -s conftest$ac_exeext && { | ||
18107 | test "$cross_compiling" = yes || | ||
18108 | $as_test_x conftest$ac_exeext | ||
18109 | }; then | ||
18110 | ac_cv_lib_iaf_ia_openinfo=yes | ||
18111 | else | ||
18112 | $as_echo "$as_me: failed program was:" >&5 | ||
18113 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18114 | |||
18115 | ac_cv_lib_iaf_ia_openinfo=no | ||
18116 | fi | ||
18117 | |||
18118 | rm -rf conftest.dSYM | ||
18119 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18120 | conftest$ac_exeext conftest.$ac_ext | ||
18121 | LIBS=$ac_check_lib_save_LIBS | ||
18122 | fi | ||
18123 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iaf_ia_openinfo" >&5 | ||
18124 | $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; } | ||
18125 | if test $ac_cv_lib_iaf_ia_openinfo = yes; then | ||
18126 | |||
18127 | LIBS="$LIBS -liaf" | ||
18128 | |||
18129 | for ac_func in set_id | ||
18130 | do | ||
18131 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18132 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18133 | $as_echo_n "checking for $ac_func... " >&6; } | ||
18134 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18135 | $as_echo_n "(cached) " >&6 | ||
18136 | else | ||
18137 | cat >conftest.$ac_ext <<_ACEOF | ||
18138 | /* confdefs.h. */ | ||
18139 | _ACEOF | ||
18140 | cat confdefs.h >>conftest.$ac_ext | ||
18141 | cat >>conftest.$ac_ext <<_ACEOF | ||
18142 | /* end confdefs.h. */ | ||
18143 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18144 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18145 | #define $ac_func innocuous_$ac_func | ||
18146 | |||
18147 | /* System header to define __stub macros and hopefully few prototypes, | ||
18148 | which can conflict with char $ac_func (); below. | ||
18149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18150 | <limits.h> exists even on freestanding compilers. */ | ||
18151 | |||
18152 | #ifdef __STDC__ | ||
18153 | # include <limits.h> | ||
18154 | #else | ||
18155 | # include <assert.h> | ||
18156 | #endif | ||
18157 | |||
18158 | #undef $ac_func | ||
18159 | |||
18160 | /* Override any GCC internal prototype to avoid an error. | ||
18161 | Use char because int might match the return type of a GCC | ||
18162 | builtin and then its argument prototype would still apply. */ | ||
18163 | #ifdef __cplusplus | ||
18164 | extern "C" | ||
18165 | #endif | ||
18166 | char $ac_func (); | ||
18167 | /* The GNU C library defines this for functions which it implements | ||
18168 | to always fail with ENOSYS. Some functions are actually named | ||
18169 | something starting with __ and the normal name is an alias. */ | ||
18170 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18171 | choke me | ||
18172 | #endif | ||
18173 | |||
18174 | int | ||
18175 | main () | ||
18176 | { | ||
18177 | return $ac_func (); | ||
18178 | ; | ||
18179 | return 0; | ||
18180 | } | ||
18181 | _ACEOF | ||
18182 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18183 | if { (ac_try="$ac_link" | ||
18184 | case "(($ac_try" in | ||
18185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18186 | *) ac_try_echo=$ac_try;; | ||
18187 | esac | ||
18188 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18189 | $as_echo "$ac_try_echo") >&5 | ||
18190 | (eval "$ac_link") 2>conftest.er1 | ||
18191 | ac_status=$? | ||
18192 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18193 | rm -f conftest.er1 | ||
18194 | cat conftest.err >&5 | ||
18195 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18196 | (exit $ac_status); } && { | ||
18197 | test -z "$ac_c_werror_flag" || | ||
18198 | test ! -s conftest.err | ||
18199 | } && test -s conftest$ac_exeext && { | ||
18200 | test "$cross_compiling" = yes || | ||
18201 | $as_test_x conftest$ac_exeext | ||
18202 | }; then | ||
18203 | eval "$as_ac_var=yes" | ||
18204 | else | ||
18205 | $as_echo "$as_me: failed program was:" >&5 | ||
18206 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18207 | |||
18208 | eval "$as_ac_var=no" | ||
18209 | fi | ||
18210 | |||
18211 | rm -rf conftest.dSYM | ||
18212 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18213 | conftest$ac_exeext conftest.$ac_ext | ||
18214 | fi | ||
18215 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
18216 | $as_echo "$as_val"'` | ||
18217 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18218 | $as_echo "$ac_res" >&6; } | ||
18219 | if test `eval 'as_val=${'$as_ac_var'} | ||
18220 | $as_echo "$as_val"'` = yes; then | ||
18221 | cat >>confdefs.h <<_ACEOF | ||
18222 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18223 | _ACEOF | ||
18224 | SSHDLIBS="$SSHDLIBS -liaf" | ||
18225 | |||
18226 | cat >>confdefs.h <<\_ACEOF | ||
18227 | #define HAVE_LIBIAF 1 | ||
18228 | _ACEOF | ||
18229 | |||
18230 | |||
18231 | fi | ||
18232 | done | ||
18233 | |||
18234 | |||
18235 | fi | ||
18236 | |||
18237 | LIBS="$saved_LIBS" | ||
18238 | |||
18239 | ### Configure cryptographic random number support | ||
18240 | |||
18241 | # Check wheter OpenSSL seeds itself | ||
18242 | { $as_echo "$as_me:$LINENO: checking whether OpenSSL's PRNG is internally seeded" >&5 | ||
18243 | $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; } | ||
18244 | if test "$cross_compiling" = yes; then | ||
18245 | |||
18246 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: assuming yes" >&5 | ||
18247 | $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;} | ||
18248 | # This is safe, since all recent OpenSSL versions will | ||
18249 | # complain at runtime if not seeded correctly. | ||
18250 | OPENSSL_SEEDS_ITSELF=yes | ||
18251 | |||
18252 | |||
18253 | else | ||
18254 | cat >conftest.$ac_ext <<_ACEOF | ||
18255 | /* confdefs.h. */ | ||
18256 | _ACEOF | ||
18257 | cat confdefs.h >>conftest.$ac_ext | ||
18258 | cat >>conftest.$ac_ext <<_ACEOF | ||
18259 | /* end confdefs.h. */ | ||
18260 | |||
18261 | #include <string.h> | ||
18262 | #include <openssl/rand.h> | ||
18263 | int main(void) { exit(RAND_status() == 1 ? 0 : 1); } | ||
18264 | |||
18265 | _ACEOF | ||
18266 | rm -f conftest$ac_exeext | ||
18267 | if { (ac_try="$ac_link" | ||
18268 | case "(($ac_try" in | ||
18269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18270 | *) ac_try_echo=$ac_try;; | ||
18271 | esac | ||
18272 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18273 | $as_echo "$ac_try_echo") >&5 | ||
18274 | (eval "$ac_link") 2>&5 | ||
18275 | ac_status=$? | ||
18276 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
18278 | { (case "(($ac_try" in | ||
18279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18280 | *) ac_try_echo=$ac_try;; | ||
18281 | esac | ||
18282 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18283 | $as_echo "$ac_try_echo") >&5 | ||
18284 | (eval "$ac_try") 2>&5 | ||
18285 | ac_status=$? | ||
18286 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18287 | (exit $ac_status); }; }; then | ||
18288 | |||
18289 | OPENSSL_SEEDS_ITSELF=yes | ||
18290 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
18291 | $as_echo "yes" >&6; } | ||
18292 | |||
18293 | else | ||
18294 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
18295 | $as_echo "$as_me: failed program was:" >&5 | ||
18296 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18297 | |||
18298 | ( exit $ac_status ) | ||
18299 | |||
18300 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
18301 | $as_echo "no" >&6; } | ||
18302 | # Default to use of the rand helper if OpenSSL doesn't | ||
18303 | # seed itself | ||
18304 | USE_RAND_HELPER=yes | ||
18305 | |||
18306 | fi | ||
18307 | rm -rf conftest.dSYM | ||
18308 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
18309 | fi | ||
18310 | |||
18311 | |||
18312 | |||
18313 | # Check for PAM libs | ||
18314 | PAM_MSG="no" | ||
18315 | |||
18316 | # Check whether --with-pam was given. | ||
18317 | if test "${with_pam+set}" = set; then | ||
18318 | withval=$with_pam; | ||
18319 | if test "x$withval" != "xno" ; then | ||
18320 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \ | ||
18321 | test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then | ||
18322 | { { $as_echo "$as_me:$LINENO: error: PAM headers not found" >&5 | ||
18323 | $as_echo "$as_me: error: PAM headers not found" >&2;} | ||
18324 | { (exit 1); exit 1; }; } | ||
18325 | fi | ||
18326 | |||
18327 | saved_LIBS="$LIBS" | ||
18328 | |||
18329 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18330 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | ||
18331 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18332 | $as_echo_n "(cached) " >&6 | ||
18333 | else | ||
18334 | ac_check_lib_save_LIBS=$LIBS | ||
18335 | LIBS="-ldl $LIBS" | ||
18336 | cat >conftest.$ac_ext <<_ACEOF | ||
18337 | /* confdefs.h. */ | ||
18338 | _ACEOF | ||
18339 | cat confdefs.h >>conftest.$ac_ext | ||
18340 | cat >>conftest.$ac_ext <<_ACEOF | ||
18341 | /* end confdefs.h. */ | ||
18342 | |||
18343 | /* Override any GCC internal prototype to avoid an error. | ||
18344 | Use char because int might match the return type of a GCC | ||
18345 | builtin and then its argument prototype would still apply. */ | ||
18346 | #ifdef __cplusplus | ||
18347 | extern "C" | ||
18348 | #endif | ||
18349 | char dlopen (); | ||
18350 | int | ||
18351 | main () | ||
18352 | { | ||
18353 | return dlopen (); | ||
18354 | ; | ||
18355 | return 0; | ||
18356 | } | ||
18357 | _ACEOF | ||
18358 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18359 | if { (ac_try="$ac_link" | ||
18360 | case "(($ac_try" in | ||
18361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18362 | *) ac_try_echo=$ac_try;; | ||
18363 | esac | ||
18364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18365 | $as_echo "$ac_try_echo") >&5 | ||
18366 | (eval "$ac_link") 2>conftest.er1 | ||
18367 | ac_status=$? | ||
18368 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18369 | rm -f conftest.er1 | ||
18370 | cat conftest.err >&5 | ||
18371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18372 | (exit $ac_status); } && { | ||
18373 | test -z "$ac_c_werror_flag" || | ||
18374 | test ! -s conftest.err | ||
18375 | } && test -s conftest$ac_exeext && { | ||
18376 | test "$cross_compiling" = yes || | ||
18377 | $as_test_x conftest$ac_exeext | ||
18378 | }; then | ||
18379 | ac_cv_lib_dl_dlopen=yes | ||
18380 | else | ||
18381 | $as_echo "$as_me: failed program was:" >&5 | ||
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18383 | |||
18384 | ac_cv_lib_dl_dlopen=no | ||
18385 | fi | ||
18386 | |||
18387 | rm -rf conftest.dSYM | ||
18388 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18389 | conftest$ac_exeext conftest.$ac_ext | ||
18390 | LIBS=$ac_check_lib_save_LIBS | ||
18391 | fi | ||
18392 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
18393 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | ||
18394 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18395 | cat >>confdefs.h <<_ACEOF | ||
18396 | #define HAVE_LIBDL 1 | ||
18397 | _ACEOF | ||
18398 | |||
18399 | LIBS="-ldl $LIBS" | ||
18400 | |||
18401 | fi | ||
18402 | |||
18403 | |||
18404 | { $as_echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5 | ||
18405 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | ||
18406 | if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then | ||
18407 | $as_echo_n "(cached) " >&6 | ||
18408 | else | ||
18409 | ac_check_lib_save_LIBS=$LIBS | ||
18410 | LIBS="-lpam $LIBS" | ||
18411 | cat >conftest.$ac_ext <<_ACEOF | ||
18412 | /* confdefs.h. */ | ||
18413 | _ACEOF | ||
18414 | cat confdefs.h >>conftest.$ac_ext | ||
18415 | cat >>conftest.$ac_ext <<_ACEOF | ||
18416 | /* end confdefs.h. */ | ||
18417 | |||
18418 | /* Override any GCC internal prototype to avoid an error. | ||
18419 | Use char because int might match the return type of a GCC | ||
18420 | builtin and then its argument prototype would still apply. */ | ||
18421 | #ifdef __cplusplus | ||
18422 | extern "C" | ||
18423 | #endif | ||
18424 | char pam_set_item (); | ||
18425 | int | ||
18426 | main () | ||
18427 | { | ||
18428 | return pam_set_item (); | ||
18429 | ; | ||
18430 | return 0; | ||
18431 | } | ||
18432 | _ACEOF | ||
18433 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18434 | if { (ac_try="$ac_link" | ||
18435 | case "(($ac_try" in | ||
18436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18437 | *) ac_try_echo=$ac_try;; | ||
18438 | esac | ||
18439 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18440 | $as_echo "$ac_try_echo") >&5 | ||
18441 | (eval "$ac_link") 2>conftest.er1 | ||
18442 | ac_status=$? | ||
18443 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18444 | rm -f conftest.er1 | ||
18445 | cat conftest.err >&5 | ||
18446 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18447 | (exit $ac_status); } && { | ||
18448 | test -z "$ac_c_werror_flag" || | ||
18449 | test ! -s conftest.err | ||
18450 | } && test -s conftest$ac_exeext && { | ||
18451 | test "$cross_compiling" = yes || | ||
18452 | $as_test_x conftest$ac_exeext | ||
18453 | }; then | ||
18454 | ac_cv_lib_pam_pam_set_item=yes | ||
18455 | else | ||
18456 | $as_echo "$as_me: failed program was:" >&5 | ||
18457 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18458 | |||
18459 | ac_cv_lib_pam_pam_set_item=no | ||
18460 | fi | ||
18461 | |||
18462 | rm -rf conftest.dSYM | ||
18463 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18464 | conftest$ac_exeext conftest.$ac_ext | ||
18465 | LIBS=$ac_check_lib_save_LIBS | ||
18466 | fi | ||
18467 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5 | ||
18468 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | ||
18469 | if test $ac_cv_lib_pam_pam_set_item = yes; then | ||
18470 | cat >>confdefs.h <<_ACEOF | ||
18471 | #define HAVE_LIBPAM 1 | ||
18472 | _ACEOF | ||
18473 | |||
18474 | LIBS="-lpam $LIBS" | ||
18475 | |||
18476 | else | ||
18477 | { { $as_echo "$as_me:$LINENO: error: *** libpam missing" >&5 | ||
18478 | $as_echo "$as_me: error: *** libpam missing" >&2;} | ||
18479 | { (exit 1); exit 1; }; } | ||
18480 | fi | ||
18481 | |||
18482 | |||
18483 | for ac_func in pam_getenvlist | ||
18484 | do | ||
18485 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18486 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18487 | $as_echo_n "checking for $ac_func... " >&6; } | ||
18488 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18489 | $as_echo_n "(cached) " >&6 | ||
18490 | else | ||
18491 | cat >conftest.$ac_ext <<_ACEOF | ||
18492 | /* confdefs.h. */ | ||
18493 | _ACEOF | ||
18494 | cat confdefs.h >>conftest.$ac_ext | ||
18495 | cat >>conftest.$ac_ext <<_ACEOF | ||
18496 | /* end confdefs.h. */ | ||
18497 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18498 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18499 | #define $ac_func innocuous_$ac_func | ||
18500 | |||
18501 | /* System header to define __stub macros and hopefully few prototypes, | ||
18502 | which can conflict with char $ac_func (); below. | ||
18503 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18504 | <limits.h> exists even on freestanding compilers. */ | ||
18505 | |||
18506 | #ifdef __STDC__ | ||
18507 | # include <limits.h> | ||
18508 | #else | ||
18509 | # include <assert.h> | ||
18510 | #endif | ||
18511 | |||
18512 | #undef $ac_func | ||
18513 | |||
18514 | /* Override any GCC internal prototype to avoid an error. | ||
18515 | Use char because int might match the return type of a GCC | ||
18516 | builtin and then its argument prototype would still apply. */ | ||
18517 | #ifdef __cplusplus | ||
18518 | extern "C" | ||
18519 | #endif | ||
18520 | char $ac_func (); | ||
18521 | /* The GNU C library defines this for functions which it implements | ||
18522 | to always fail with ENOSYS. Some functions are actually named | ||
18523 | something starting with __ and the normal name is an alias. */ | ||
18524 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18525 | choke me | ||
18526 | #endif | ||
18527 | |||
18528 | int | ||
18529 | main () | ||
18530 | { | ||
18531 | return $ac_func (); | ||
18532 | ; | ||
18533 | return 0; | ||
18534 | } | ||
18535 | _ACEOF | ||
18536 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18537 | if { (ac_try="$ac_link" | ||
18538 | case "(($ac_try" in | ||
18539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18540 | *) ac_try_echo=$ac_try;; | ||
18541 | esac | ||
18542 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18543 | $as_echo "$ac_try_echo") >&5 | ||
18544 | (eval "$ac_link") 2>conftest.er1 | ||
18545 | ac_status=$? | ||
18546 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18547 | rm -f conftest.er1 | ||
18548 | cat conftest.err >&5 | ||
18549 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18550 | (exit $ac_status); } && { | ||
18551 | test -z "$ac_c_werror_flag" || | ||
18552 | test ! -s conftest.err | ||
18553 | } && test -s conftest$ac_exeext && { | ||
18554 | test "$cross_compiling" = yes || | ||
18555 | $as_test_x conftest$ac_exeext | ||
18556 | }; then | ||
18557 | eval "$as_ac_var=yes" | ||
18558 | else | ||
18559 | $as_echo "$as_me: failed program was:" >&5 | ||
18560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18561 | |||
18562 | eval "$as_ac_var=no" | ||
18563 | fi | ||
18564 | |||
18565 | rm -rf conftest.dSYM | ||
18566 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18567 | conftest$ac_exeext conftest.$ac_ext | ||
18568 | fi | ||
18569 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
18570 | $as_echo "$as_val"'` | ||
18571 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18572 | $as_echo "$ac_res" >&6; } | ||
18573 | if test `eval 'as_val=${'$as_ac_var'} | ||
18574 | $as_echo "$as_val"'` = yes; then | ||
18575 | cat >>confdefs.h <<_ACEOF | ||
18576 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18577 | _ACEOF | ||
18578 | |||
18579 | fi | ||
18580 | done | ||
18581 | |||
18582 | |||
18583 | for ac_func in pam_putenv | ||
18584 | do | ||
18585 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
18586 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
18587 | $as_echo_n "checking for $ac_func... " >&6; } | ||
18588 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
18589 | $as_echo_n "(cached) " >&6 | ||
18590 | else | ||
18591 | cat >conftest.$ac_ext <<_ACEOF | ||
18592 | /* confdefs.h. */ | ||
18593 | _ACEOF | ||
18594 | cat confdefs.h >>conftest.$ac_ext | ||
18595 | cat >>conftest.$ac_ext <<_ACEOF | ||
18596 | /* end confdefs.h. */ | ||
18597 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
18598 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18599 | #define $ac_func innocuous_$ac_func | ||
18600 | |||
18601 | /* System header to define __stub macros and hopefully few prototypes, | ||
18602 | which can conflict with char $ac_func (); below. | ||
18603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18604 | <limits.h> exists even on freestanding compilers. */ | ||
18605 | |||
18606 | #ifdef __STDC__ | ||
18607 | # include <limits.h> | ||
18608 | #else | ||
18609 | # include <assert.h> | ||
18610 | #endif | ||
18611 | |||
18612 | #undef $ac_func | ||
18613 | |||
18614 | /* Override any GCC internal prototype to avoid an error. | ||
18615 | Use char because int might match the return type of a GCC | ||
18616 | builtin and then its argument prototype would still apply. */ | ||
18617 | #ifdef __cplusplus | ||
18618 | extern "C" | ||
18619 | #endif | ||
18620 | char $ac_func (); | ||
18621 | /* The GNU C library defines this for functions which it implements | ||
18622 | to always fail with ENOSYS. Some functions are actually named | ||
18623 | something starting with __ and the normal name is an alias. */ | ||
18624 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
18625 | choke me | ||
18626 | #endif | ||
18627 | |||
18628 | int | ||
18629 | main () | ||
18630 | { | ||
18631 | return $ac_func (); | ||
18632 | ; | ||
18633 | return 0; | ||
18634 | } | ||
18635 | _ACEOF | ||
18636 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18637 | if { (ac_try="$ac_link" | ||
18638 | case "(($ac_try" in | ||
18639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18640 | *) ac_try_echo=$ac_try;; | ||
18641 | esac | ||
18642 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18643 | $as_echo "$ac_try_echo") >&5 | ||
18644 | (eval "$ac_link") 2>conftest.er1 | ||
18645 | ac_status=$? | ||
18646 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18647 | rm -f conftest.er1 | ||
18648 | cat conftest.err >&5 | ||
18649 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18650 | (exit $ac_status); } && { | ||
18651 | test -z "$ac_c_werror_flag" || | ||
18652 | test ! -s conftest.err | ||
18653 | } && test -s conftest$ac_exeext && { | ||
18654 | test "$cross_compiling" = yes || | ||
18655 | $as_test_x conftest$ac_exeext | ||
18656 | }; then | ||
18657 | eval "$as_ac_var=yes" | ||
18658 | else | ||
18659 | $as_echo "$as_me: failed program was:" >&5 | ||
18660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18661 | |||
18662 | eval "$as_ac_var=no" | ||
18663 | fi | ||
18664 | |||
18665 | rm -rf conftest.dSYM | ||
18666 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18667 | conftest$ac_exeext conftest.$ac_ext | ||
18668 | fi | ||
18669 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
18670 | $as_echo "$as_val"'` | ||
18671 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
18672 | $as_echo "$ac_res" >&6; } | ||
18673 | if test `eval 'as_val=${'$as_ac_var'} | ||
18674 | $as_echo "$as_val"'` = yes; then | ||
18675 | cat >>confdefs.h <<_ACEOF | ||
18676 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
18677 | _ACEOF | ||
18678 | |||
18679 | fi | ||
18680 | done | ||
18681 | |||
18682 | LIBS="$saved_LIBS" | ||
18683 | |||
18684 | PAM_MSG="yes" | ||
18685 | |||
18686 | SSHDLIBS="$SSHDLIBS -lpam" | ||
18687 | |||
18688 | cat >>confdefs.h <<\_ACEOF | ||
18689 | #define USE_PAM 1 | ||
18690 | _ACEOF | ||
18691 | |||
18692 | |||
18693 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18694 | case "$LIBS" in | ||
18695 | *-ldl*) | ||
18696 | # libdl already in LIBS | ||
18697 | ;; | ||
18698 | *) | ||
18699 | SSHDLIBS="$SSHDLIBS -ldl" | ||
18700 | ;; | ||
18701 | esac | ||
18702 | fi | ||
18703 | fi | ||
18704 | |||
18705 | |||
18706 | fi | ||
18707 | |||
18708 | |||
18709 | # Check for older PAM | ||
18710 | if test "x$PAM_MSG" = "xyes" ; then | ||
18711 | # Check PAM strerror arguments (old PAM) | ||
18712 | { $as_echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5 | ||
18713 | $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; } | ||
18714 | cat >conftest.$ac_ext <<_ACEOF | ||
18715 | /* confdefs.h. */ | ||
18716 | _ACEOF | ||
18717 | cat confdefs.h >>conftest.$ac_ext | ||
18718 | cat >>conftest.$ac_ext <<_ACEOF | ||
18719 | /* end confdefs.h. */ | ||
18720 | |||
18721 | #include <stdlib.h> | ||
18722 | #if defined(HAVE_SECURITY_PAM_APPL_H) | ||
18723 | #include <security/pam_appl.h> | ||
18724 | #elif defined (HAVE_PAM_PAM_APPL_H) | ||
18725 | #include <pam/pam_appl.h> | ||
18726 | #endif | ||
18727 | |||
18728 | int | ||
18729 | main () | ||
18730 | { | ||
18731 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
18732 | ; | ||
18733 | return 0; | ||
18734 | } | ||
18735 | _ACEOF | ||
18736 | rm -f conftest.$ac_objext | ||
18737 | if { (ac_try="$ac_compile" | ||
18738 | case "(($ac_try" in | ||
18739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18740 | *) ac_try_echo=$ac_try;; | ||
18741 | esac | ||
18742 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
18743 | $as_echo "$ac_try_echo") >&5 | ||
18744 | (eval "$ac_compile") 2>conftest.er1 | ||
18745 | ac_status=$? | ||
18746 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18747 | rm -f conftest.er1 | ||
18748 | cat conftest.err >&5 | ||
18749 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18750 | (exit $ac_status); } && { | ||
18751 | test -z "$ac_c_werror_flag" || | ||
18752 | test ! -s conftest.err | ||
18753 | } && test -s conftest.$ac_objext; then | ||
18754 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
18755 | $as_echo "no" >&6; } | ||
18756 | else | ||
18757 | $as_echo "$as_me: failed program was:" >&5 | ||
18758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18759 | |||
18760 | |||
18761 | |||
18762 | cat >>confdefs.h <<\_ACEOF | ||
18763 | #define HAVE_OLD_PAM 1 | ||
18764 | _ACEOF | ||
18765 | |||
18766 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
18767 | $as_echo "yes" >&6; } | ||
18768 | PAM_MSG="yes (old library)" | ||
18769 | |||
18770 | |||
18771 | fi | ||
18772 | |||
18773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
18774 | fi | ||
18775 | |||
18776 | # Do we want to force the use of the rand helper? | ||
18777 | |||
18778 | # Check whether --with-rand-helper was given. | ||
18779 | if test "${with_rand_helper+set}" = set; then | ||
18780 | withval=$with_rand_helper; | ||
18781 | if test "x$withval" = "xno" ; then | ||
18782 | # Force use of OpenSSL's internal RNG, even if | ||
18783 | # the previous test showed it to be unseeded. | ||
18784 | if test -z "$OPENSSL_SEEDS_ITSELF" ; then | ||
18785 | { $as_echo "$as_me:$LINENO: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5 | ||
18786 | $as_echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;} | ||
18787 | OPENSSL_SEEDS_ITSELF=yes | ||
18788 | USE_RAND_HELPER="" | ||
18789 | fi | ||
18790 | else | ||
18791 | USE_RAND_HELPER=yes | ||
18792 | fi | ||
18793 | |||
18794 | fi | ||
18795 | |||
18796 | |||
18797 | # Which randomness source do we use? | ||
18798 | if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then | ||
18799 | # OpenSSL only | ||
18800 | |||
18801 | cat >>confdefs.h <<\_ACEOF | ||
18802 | #define OPENSSL_PRNG_ONLY 1 | ||
18803 | _ACEOF | ||
18804 | |||
18805 | RAND_MSG="OpenSSL internal ONLY" | ||
18806 | INSTALL_SSH_RAND_HELPER="" | ||
18807 | elif test ! -z "$USE_RAND_HELPER" ; then | ||
18808 | # install rand helper | ||
18809 | RAND_MSG="ssh-rand-helper" | ||
18810 | INSTALL_SSH_RAND_HELPER="yes" | ||
18811 | fi | ||
18812 | |||
18813 | |||
18814 | ### Configuration of ssh-rand-helper | ||
18815 | |||
18816 | # PRNGD TCP socket | ||
18817 | |||
18818 | # Check whether --with-prngd-port was given. | ||
18819 | if test "${with_prngd_port+set}" = set; then | ||
18820 | withval=$with_prngd_port; | ||
18821 | case "$withval" in | ||
18822 | no) | ||
18823 | withval="" | ||
18824 | ;; | ||
18825 | [0-9]*) | ||
18826 | ;; | ||
18827 | *) | ||
18828 | { { $as_echo "$as_me:$LINENO: error: You must specify a numeric port number for --with-prngd-port" >&5 | ||
18829 | $as_echo "$as_me: error: You must specify a numeric port number for --with-prngd-port" >&2;} | ||
18830 | { (exit 1); exit 1; }; } | ||
18831 | ;; | ||
18832 | esac | ||
18833 | if test ! -z "$withval" ; then | ||
18834 | PRNGD_PORT="$withval" | ||
18835 | |||
18836 | cat >>confdefs.h <<_ACEOF | ||
18837 | #define PRNGD_PORT $PRNGD_PORT | ||
18838 | _ACEOF | ||
18839 | |||
18840 | fi | ||
18841 | |||
18842 | |||
18843 | fi | ||
18844 | |||
18845 | |||
18846 | # PRNGD Unix domain socket | ||
18847 | |||
18848 | # Check whether --with-prngd-socket was given. | ||
18849 | if test "${with_prngd_socket+set}" = set; then | ||
18850 | withval=$with_prngd_socket; | ||
18851 | case "$withval" in | ||
18852 | yes) | ||
18853 | withval="/var/run/egd-pool" | ||
18854 | ;; | ||
18855 | no) | ||
18856 | withval="" | ||
18857 | ;; | ||
18858 | /*) | ||
18859 | ;; | ||
18860 | *) | ||
18861 | { { $as_echo "$as_me:$LINENO: error: You must specify an absolute path to the entropy socket" >&5 | ||
18862 | $as_echo "$as_me: error: You must specify an absolute path to the entropy socket" >&2;} | ||
18863 | { (exit 1); exit 1; }; } | ||
18864 | ;; | ||
18865 | esac | ||
18866 | |||
18867 | if test ! -z "$withval" ; then | ||
18868 | if test ! -z "$PRNGD_PORT" ; then | ||
18869 | { { $as_echo "$as_me:$LINENO: error: You may not specify both a PRNGD/EGD port and socket" >&5 | ||
18870 | $as_echo "$as_me: error: You may not specify both a PRNGD/EGD port and socket" >&2;} | ||
18871 | { (exit 1); exit 1; }; } | ||
18872 | fi | ||
18873 | if test ! -r "$withval" ; then | ||
18874 | { $as_echo "$as_me:$LINENO: WARNING: Entropy socket is not readable" >&5 | ||
18875 | $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;} | ||
18876 | fi | ||
18877 | PRNGD_SOCKET="$withval" | ||
18878 | |||
18879 | cat >>confdefs.h <<_ACEOF | ||
18880 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
18881 | _ACEOF | ||
18882 | |||
18883 | fi | ||
18884 | |||
18885 | else | ||
18886 | |||
18887 | # Check for existing socket only if we don't have a random device already | ||
18888 | if test "$USE_RAND_HELPER" = yes ; then | ||
18889 | { $as_echo "$as_me:$LINENO: checking for PRNGD/EGD socket" >&5 | ||
18890 | $as_echo_n "checking for PRNGD/EGD socket... " >&6; } | ||
18891 | # Insert other locations here | ||
18892 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
18893 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
18894 | PRNGD_SOCKET="$sock" | ||
18895 | cat >>confdefs.h <<_ACEOF | ||
18896 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
18897 | _ACEOF | ||
18898 | |||
18899 | break; | ||
18900 | fi | ||
18901 | done | ||
18902 | if test ! -z "$PRNGD_SOCKET" ; then | ||
18903 | { $as_echo "$as_me:$LINENO: result: $PRNGD_SOCKET" >&5 | ||
18904 | $as_echo "$PRNGD_SOCKET" >&6; } | ||
18905 | else | ||
18906 | { $as_echo "$as_me:$LINENO: result: not found" >&5 | ||
18907 | $as_echo "not found" >&6; } | ||
18908 | fi | ||
18909 | fi | ||
18910 | |||
18911 | |||
18912 | fi | ||
18913 | |||
18914 | |||
18915 | # Change default command timeout for hashing entropy source | ||
18916 | entropy_timeout=200 | ||
18917 | |||
18918 | # Check whether --with-entropy-timeout was given. | ||
18919 | if test "${with_entropy_timeout+set}" = set; then | ||
18920 | withval=$with_entropy_timeout; | ||
18921 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18922 | test "x${withval}" != "xyes"; then | ||
18923 | entropy_timeout=$withval | ||
18924 | fi | ||
18925 | |||
18926 | |||
18927 | fi | ||
18928 | |||
18929 | |||
18930 | cat >>confdefs.h <<_ACEOF | ||
18931 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
18932 | _ACEOF | ||
18933 | |||
18934 | |||
18935 | SSH_PRIVSEP_USER=sshd | ||
18936 | |||
18937 | # Check whether --with-privsep-user was given. | ||
18938 | if test "${with_privsep_user+set}" = set; then | ||
18939 | withval=$with_privsep_user; | ||
18940 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
18941 | test "x${withval}" != "xyes"; then | ||
18942 | SSH_PRIVSEP_USER=$withval | ||
18943 | fi | ||
18944 | |||
18945 | |||
18946 | fi | ||
18947 | |||
18948 | |||
18949 | cat >>confdefs.h <<_ACEOF | ||
18950 | #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER" | ||
18951 | _ACEOF | ||
18952 | |||
18953 | |||
18954 | |||
18955 | # We do this little dance with the search path to insure | ||
18956 | # that programs that we select for use by installed programs | ||
18957 | # (which may be run by the super-user) come from trusted | ||
18958 | # locations before they come from the user's private area. | ||
18959 | # This should help avoid accidentally configuring some | ||
18960 | # random version of a program in someone's personal bin. | ||
18961 | |||
18962 | OPATH=$PATH | ||
18963 | PATH=/bin:/usr/bin | ||
18964 | test -h /bin 2> /dev/null && PATH=/usr/bin | ||
18965 | test -d /sbin && PATH=$PATH:/sbin | ||
18966 | test -d /usr/sbin && PATH=$PATH:/usr/sbin | ||
18967 | PATH=$PATH:/etc:$OPATH | ||
18968 | |||
18969 | # These programs are used by the command hashing source to gather entropy | ||
18970 | |||
18971 | # Extract the first word of "ls", so it can be a program name with args. | ||
18972 | set dummy ls; ac_word=$2 | ||
18973 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
18974 | $as_echo_n "checking for $ac_word... " >&6; } | ||
18975 | if test "${ac_cv_path_PROG_LS+set}" = set; then | ||
18976 | $as_echo_n "(cached) " >&6 | ||
18977 | else | ||
18978 | case $PROG_LS in | ||
18979 | [\\/]* | ?:[\\/]*) | ||
18980 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
18981 | ;; | ||
18982 | *) | ||
18983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
18984 | for as_dir in $PATH | ||
18985 | do | ||
18986 | IFS=$as_save_IFS | ||
18987 | test -z "$as_dir" && as_dir=. | ||
18988 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
18989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
18990 | ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext" | ||
18991 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
18992 | break 2 | ||
18993 | fi | ||
18994 | done | ||
18995 | done | ||
18996 | IFS=$as_save_IFS | ||
18997 | |||
18998 | ;; | ||
18999 | esac | ||
19000 | fi | ||
19001 | PROG_LS=$ac_cv_path_PROG_LS | ||
19002 | if test -n "$PROG_LS"; then | ||
19003 | { $as_echo "$as_me:$LINENO: result: $PROG_LS" >&5 | ||
19004 | $as_echo "$PROG_LS" >&6; } | ||
19005 | else | ||
19006 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19007 | $as_echo "no" >&6; } | ||
19008 | fi | ||
19009 | |||
19010 | |||
19011 | if test -z "$PROG_LS" ; then | ||
19012 | PROG_LS="undef" | ||
19013 | fi | ||
19014 | |||
19015 | |||
19016 | |||
19017 | # Extract the first word of "netstat", so it can be a program name with args. | ||
19018 | set dummy netstat; ac_word=$2 | ||
19019 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19020 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19021 | if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then | ||
19022 | $as_echo_n "(cached) " >&6 | ||
19023 | else | ||
19024 | case $PROG_NETSTAT in | ||
19025 | [\\/]* | ?:[\\/]*) | ||
19026 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
19027 | ;; | ||
19028 | *) | ||
19029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19030 | for as_dir in $PATH | ||
19031 | do | ||
19032 | IFS=$as_save_IFS | ||
19033 | test -z "$as_dir" && as_dir=. | ||
19034 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19036 | ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
19037 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19038 | break 2 | ||
19039 | fi | ||
19040 | done | ||
19041 | done | ||
19042 | IFS=$as_save_IFS | ||
19043 | |||
19044 | ;; | ||
19045 | esac | ||
19046 | fi | ||
19047 | PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT | ||
19048 | if test -n "$PROG_NETSTAT"; then | ||
19049 | { $as_echo "$as_me:$LINENO: result: $PROG_NETSTAT" >&5 | ||
19050 | $as_echo "$PROG_NETSTAT" >&6; } | ||
19051 | else | ||
19052 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19053 | $as_echo "no" >&6; } | ||
19054 | fi | ||
19055 | |||
19056 | |||
19057 | if test -z "$PROG_NETSTAT" ; then | ||
19058 | PROG_NETSTAT="undef" | ||
19059 | fi | ||
19060 | |||
19061 | |||
19062 | |||
19063 | # Extract the first word of "arp", so it can be a program name with args. | ||
19064 | set dummy arp; ac_word=$2 | ||
19065 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19066 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19067 | if test "${ac_cv_path_PROG_ARP+set}" = set; then | ||
19068 | $as_echo_n "(cached) " >&6 | ||
19069 | else | ||
19070 | case $PROG_ARP in | ||
19071 | [\\/]* | ?:[\\/]*) | ||
19072 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
19073 | ;; | ||
19074 | *) | ||
19075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19076 | for as_dir in $PATH | ||
19077 | do | ||
19078 | IFS=$as_save_IFS | ||
19079 | test -z "$as_dir" && as_dir=. | ||
19080 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19082 | ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext" | ||
19083 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19084 | break 2 | ||
19085 | fi | ||
19086 | done | ||
19087 | done | ||
19088 | IFS=$as_save_IFS | ||
19089 | |||
19090 | ;; | ||
19091 | esac | ||
19092 | fi | ||
19093 | PROG_ARP=$ac_cv_path_PROG_ARP | ||
19094 | if test -n "$PROG_ARP"; then | ||
19095 | { $as_echo "$as_me:$LINENO: result: $PROG_ARP" >&5 | ||
19096 | $as_echo "$PROG_ARP" >&6; } | ||
19097 | else | ||
19098 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19099 | $as_echo "no" >&6; } | ||
19100 | fi | ||
19101 | |||
19102 | |||
19103 | if test -z "$PROG_ARP" ; then | ||
19104 | PROG_ARP="undef" | ||
19105 | fi | ||
19106 | |||
19107 | |||
19108 | |||
19109 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
19110 | set dummy ifconfig; ac_word=$2 | ||
19111 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19112 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19113 | if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then | ||
19114 | $as_echo_n "(cached) " >&6 | ||
19115 | else | ||
19116 | case $PROG_IFCONFIG in | ||
19117 | [\\/]* | ?:[\\/]*) | ||
19118 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
19119 | ;; | ||
19120 | *) | ||
19121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19122 | for as_dir in $PATH | ||
19123 | do | ||
19124 | IFS=$as_save_IFS | ||
19125 | test -z "$as_dir" && as_dir=. | ||
19126 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19128 | ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
19129 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19130 | break 2 | ||
19131 | fi | ||
19132 | done | ||
19133 | done | ||
19134 | IFS=$as_save_IFS | ||
19135 | |||
19136 | ;; | ||
19137 | esac | ||
19138 | fi | ||
19139 | PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG | ||
19140 | if test -n "$PROG_IFCONFIG"; then | ||
19141 | { $as_echo "$as_me:$LINENO: result: $PROG_IFCONFIG" >&5 | ||
19142 | $as_echo "$PROG_IFCONFIG" >&6; } | ||
19143 | else | ||
19144 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19145 | $as_echo "no" >&6; } | ||
19146 | fi | ||
19147 | |||
19148 | |||
19149 | if test -z "$PROG_IFCONFIG" ; then | ||
19150 | PROG_IFCONFIG="undef" | ||
19151 | fi | ||
19152 | |||
19153 | |||
19154 | |||
19155 | # Extract the first word of "jstat", so it can be a program name with args. | ||
19156 | set dummy jstat; ac_word=$2 | ||
19157 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19158 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19159 | if test "${ac_cv_path_PROG_JSTAT+set}" = set; then | ||
19160 | $as_echo_n "(cached) " >&6 | ||
19161 | else | ||
19162 | case $PROG_JSTAT in | ||
19163 | [\\/]* | ?:[\\/]*) | ||
19164 | ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path. | ||
19165 | ;; | ||
19166 | *) | ||
19167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19168 | for as_dir in $PATH | ||
19169 | do | ||
19170 | IFS=$as_save_IFS | ||
19171 | test -z "$as_dir" && as_dir=. | ||
19172 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19174 | ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
19175 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19176 | break 2 | ||
19177 | fi | ||
19178 | done | ||
19179 | done | ||
19180 | IFS=$as_save_IFS | ||
19181 | |||
19182 | ;; | ||
19183 | esac | ||
19184 | fi | ||
19185 | PROG_JSTAT=$ac_cv_path_PROG_JSTAT | ||
19186 | if test -n "$PROG_JSTAT"; then | ||
19187 | { $as_echo "$as_me:$LINENO: result: $PROG_JSTAT" >&5 | ||
19188 | $as_echo "$PROG_JSTAT" >&6; } | ||
19189 | else | ||
19190 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19191 | $as_echo "no" >&6; } | ||
19192 | fi | ||
19193 | |||
19194 | |||
19195 | if test -z "$PROG_JSTAT" ; then | ||
19196 | PROG_JSTAT="undef" | ||
19197 | fi | ||
19198 | |||
19199 | |||
19200 | |||
19201 | # Extract the first word of "ps", so it can be a program name with args. | ||
19202 | set dummy ps; ac_word=$2 | ||
19203 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19204 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19205 | if test "${ac_cv_path_PROG_PS+set}" = set; then | ||
19206 | $as_echo_n "(cached) " >&6 | ||
19207 | else | ||
19208 | case $PROG_PS in | ||
19209 | [\\/]* | ?:[\\/]*) | ||
19210 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
19211 | ;; | ||
19212 | *) | ||
19213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19214 | for as_dir in $PATH | ||
19215 | do | ||
19216 | IFS=$as_save_IFS | ||
19217 | test -z "$as_dir" && as_dir=. | ||
19218 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19220 | ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext" | ||
19221 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19222 | break 2 | ||
19223 | fi | ||
19224 | done | ||
19225 | done | ||
19226 | IFS=$as_save_IFS | ||
19227 | |||
19228 | ;; | ||
19229 | esac | ||
19230 | fi | ||
19231 | PROG_PS=$ac_cv_path_PROG_PS | ||
19232 | if test -n "$PROG_PS"; then | ||
19233 | { $as_echo "$as_me:$LINENO: result: $PROG_PS" >&5 | ||
19234 | $as_echo "$PROG_PS" >&6; } | ||
19235 | else | ||
19236 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19237 | $as_echo "no" >&6; } | ||
19238 | fi | ||
19239 | |||
19240 | |||
19241 | if test -z "$PROG_PS" ; then | ||
19242 | PROG_PS="undef" | ||
19243 | fi | ||
19244 | |||
19245 | |||
19246 | |||
19247 | # Extract the first word of "sar", so it can be a program name with args. | ||
19248 | set dummy sar; ac_word=$2 | ||
19249 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19250 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19251 | if test "${ac_cv_path_PROG_SAR+set}" = set; then | ||
19252 | $as_echo_n "(cached) " >&6 | ||
19253 | else | ||
19254 | case $PROG_SAR in | ||
19255 | [\\/]* | ?:[\\/]*) | ||
19256 | ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path. | ||
19257 | ;; | ||
19258 | *) | ||
19259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19260 | for as_dir in $PATH | ||
19261 | do | ||
19262 | IFS=$as_save_IFS | ||
19263 | test -z "$as_dir" && as_dir=. | ||
19264 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19266 | ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext" | ||
19267 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19268 | break 2 | ||
19269 | fi | ||
19270 | done | ||
19271 | done | ||
19272 | IFS=$as_save_IFS | ||
19273 | |||
19274 | ;; | ||
19275 | esac | ||
19276 | fi | ||
19277 | PROG_SAR=$ac_cv_path_PROG_SAR | ||
19278 | if test -n "$PROG_SAR"; then | ||
19279 | { $as_echo "$as_me:$LINENO: result: $PROG_SAR" >&5 | ||
19280 | $as_echo "$PROG_SAR" >&6; } | ||
19281 | else | ||
19282 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19283 | $as_echo "no" >&6; } | ||
19284 | fi | ||
19285 | |||
19286 | |||
19287 | if test -z "$PROG_SAR" ; then | ||
19288 | PROG_SAR="undef" | ||
19289 | fi | ||
19290 | |||
19291 | |||
19292 | |||
19293 | # Extract the first word of "w", so it can be a program name with args. | ||
19294 | set dummy w; ac_word=$2 | ||
19295 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19296 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19297 | if test "${ac_cv_path_PROG_W+set}" = set; then | ||
19298 | $as_echo_n "(cached) " >&6 | ||
19299 | else | ||
19300 | case $PROG_W in | ||
19301 | [\\/]* | ?:[\\/]*) | ||
19302 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
19303 | ;; | ||
19304 | *) | ||
19305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19306 | for as_dir in $PATH | ||
19307 | do | ||
19308 | IFS=$as_save_IFS | ||
19309 | test -z "$as_dir" && as_dir=. | ||
19310 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19312 | ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext" | ||
19313 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19314 | break 2 | ||
19315 | fi | ||
19316 | done | ||
19317 | done | ||
19318 | IFS=$as_save_IFS | ||
19319 | |||
19320 | ;; | ||
19321 | esac | ||
19322 | fi | ||
19323 | PROG_W=$ac_cv_path_PROG_W | ||
19324 | if test -n "$PROG_W"; then | ||
19325 | { $as_echo "$as_me:$LINENO: result: $PROG_W" >&5 | ||
19326 | $as_echo "$PROG_W" >&6; } | ||
19327 | else | ||
19328 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19329 | $as_echo "no" >&6; } | ||
19330 | fi | ||
19331 | |||
19332 | |||
19333 | if test -z "$PROG_W" ; then | ||
19334 | PROG_W="undef" | ||
19335 | fi | ||
19336 | |||
19337 | |||
19338 | |||
19339 | # Extract the first word of "who", so it can be a program name with args. | ||
19340 | set dummy who; ac_word=$2 | ||
19341 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19342 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19343 | if test "${ac_cv_path_PROG_WHO+set}" = set; then | ||
19344 | $as_echo_n "(cached) " >&6 | ||
19345 | else | ||
19346 | case $PROG_WHO in | ||
19347 | [\\/]* | ?:[\\/]*) | ||
19348 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
19349 | ;; | ||
19350 | *) | ||
19351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19352 | for as_dir in $PATH | ||
19353 | do | ||
19354 | IFS=$as_save_IFS | ||
19355 | test -z "$as_dir" && as_dir=. | ||
19356 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19358 | ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext" | ||
19359 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19360 | break 2 | ||
19361 | fi | ||
19362 | done | ||
19363 | done | ||
19364 | IFS=$as_save_IFS | ||
19365 | |||
19366 | ;; | ||
19367 | esac | ||
19368 | fi | ||
19369 | PROG_WHO=$ac_cv_path_PROG_WHO | ||
19370 | if test -n "$PROG_WHO"; then | ||
19371 | { $as_echo "$as_me:$LINENO: result: $PROG_WHO" >&5 | ||
19372 | $as_echo "$PROG_WHO" >&6; } | ||
19373 | else | ||
19374 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19375 | $as_echo "no" >&6; } | ||
19376 | fi | ||
19377 | |||
19378 | |||
19379 | if test -z "$PROG_WHO" ; then | ||
19380 | PROG_WHO="undef" | ||
19381 | fi | ||
19382 | |||
19383 | |||
19384 | |||
19385 | # Extract the first word of "last", so it can be a program name with args. | ||
19386 | set dummy last; ac_word=$2 | ||
19387 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19388 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19389 | if test "${ac_cv_path_PROG_LAST+set}" = set; then | ||
19390 | $as_echo_n "(cached) " >&6 | ||
19391 | else | ||
19392 | case $PROG_LAST in | ||
19393 | [\\/]* | ?:[\\/]*) | ||
19394 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
19395 | ;; | ||
19396 | *) | ||
19397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19398 | for as_dir in $PATH | ||
19399 | do | ||
19400 | IFS=$as_save_IFS | ||
19401 | test -z "$as_dir" && as_dir=. | ||
19402 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19404 | ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext" | ||
19405 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19406 | break 2 | ||
19407 | fi | ||
19408 | done | ||
19409 | done | ||
19410 | IFS=$as_save_IFS | ||
19411 | |||
19412 | ;; | ||
19413 | esac | ||
19414 | fi | ||
19415 | PROG_LAST=$ac_cv_path_PROG_LAST | ||
19416 | if test -n "$PROG_LAST"; then | ||
19417 | { $as_echo "$as_me:$LINENO: result: $PROG_LAST" >&5 | ||
19418 | $as_echo "$PROG_LAST" >&6; } | ||
19419 | else | ||
19420 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19421 | $as_echo "no" >&6; } | ||
19422 | fi | ||
19423 | |||
19424 | |||
19425 | if test -z "$PROG_LAST" ; then | ||
19426 | PROG_LAST="undef" | ||
19427 | fi | ||
19428 | |||
19429 | |||
19430 | |||
19431 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
19432 | set dummy lastlog; ac_word=$2 | ||
19433 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19434 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19435 | if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then | ||
19436 | $as_echo_n "(cached) " >&6 | ||
19437 | else | ||
19438 | case $PROG_LASTLOG in | ||
19439 | [\\/]* | ?:[\\/]*) | ||
19440 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
19441 | ;; | ||
19442 | *) | ||
19443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19444 | for as_dir in $PATH | ||
19445 | do | ||
19446 | IFS=$as_save_IFS | ||
19447 | test -z "$as_dir" && as_dir=. | ||
19448 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19450 | ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext" | ||
19451 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19452 | break 2 | ||
19453 | fi | ||
19454 | done | ||
19455 | done | ||
19456 | IFS=$as_save_IFS | ||
19457 | |||
19458 | ;; | ||
19459 | esac | ||
19460 | fi | ||
19461 | PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG | ||
19462 | if test -n "$PROG_LASTLOG"; then | ||
19463 | { $as_echo "$as_me:$LINENO: result: $PROG_LASTLOG" >&5 | ||
19464 | $as_echo "$PROG_LASTLOG" >&6; } | ||
19465 | else | ||
19466 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19467 | $as_echo "no" >&6; } | ||
19468 | fi | ||
19469 | |||
19470 | |||
19471 | if test -z "$PROG_LASTLOG" ; then | ||
19472 | PROG_LASTLOG="undef" | ||
19473 | fi | ||
19474 | |||
19475 | |||
19476 | |||
19477 | # Extract the first word of "df", so it can be a program name with args. | ||
19478 | set dummy df; ac_word=$2 | ||
19479 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19480 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19481 | if test "${ac_cv_path_PROG_DF+set}" = set; then | ||
19482 | $as_echo_n "(cached) " >&6 | ||
19483 | else | ||
19484 | case $PROG_DF in | ||
19485 | [\\/]* | ?:[\\/]*) | ||
19486 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
19487 | ;; | ||
19488 | *) | ||
19489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19490 | for as_dir in $PATH | ||
19491 | do | ||
19492 | IFS=$as_save_IFS | ||
19493 | test -z "$as_dir" && as_dir=. | ||
19494 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19496 | ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext" | ||
19497 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19498 | break 2 | ||
19499 | fi | ||
19500 | done | ||
19501 | done | ||
19502 | IFS=$as_save_IFS | ||
19503 | |||
19504 | ;; | ||
19505 | esac | ||
19506 | fi | ||
19507 | PROG_DF=$ac_cv_path_PROG_DF | ||
19508 | if test -n "$PROG_DF"; then | ||
19509 | { $as_echo "$as_me:$LINENO: result: $PROG_DF" >&5 | ||
19510 | $as_echo "$PROG_DF" >&6; } | ||
19511 | else | ||
19512 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19513 | $as_echo "no" >&6; } | ||
19514 | fi | ||
19515 | |||
19516 | |||
19517 | if test -z "$PROG_DF" ; then | ||
19518 | PROG_DF="undef" | ||
19519 | fi | ||
19520 | |||
19521 | |||
19522 | |||
19523 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
19524 | set dummy vmstat; ac_word=$2 | ||
19525 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19526 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19527 | if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then | ||
19528 | $as_echo_n "(cached) " >&6 | ||
19529 | else | ||
19530 | case $PROG_VMSTAT in | ||
19531 | [\\/]* | ?:[\\/]*) | ||
19532 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
19533 | ;; | ||
19534 | *) | ||
19535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19536 | for as_dir in $PATH | ||
19537 | do | ||
19538 | IFS=$as_save_IFS | ||
19539 | test -z "$as_dir" && as_dir=. | ||
19540 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19542 | ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext" | ||
19543 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19544 | break 2 | ||
19545 | fi | ||
19546 | done | ||
19547 | done | ||
19548 | IFS=$as_save_IFS | ||
19549 | |||
19550 | ;; | ||
19551 | esac | ||
19552 | fi | ||
19553 | PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT | ||
19554 | if test -n "$PROG_VMSTAT"; then | ||
19555 | { $as_echo "$as_me:$LINENO: result: $PROG_VMSTAT" >&5 | ||
19556 | $as_echo "$PROG_VMSTAT" >&6; } | ||
19557 | else | ||
19558 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19559 | $as_echo "no" >&6; } | ||
19560 | fi | ||
19561 | |||
19562 | |||
19563 | if test -z "$PROG_VMSTAT" ; then | ||
19564 | PROG_VMSTAT="undef" | ||
19565 | fi | ||
19566 | |||
19567 | |||
19568 | |||
19569 | # Extract the first word of "uptime", so it can be a program name with args. | ||
19570 | set dummy uptime; ac_word=$2 | ||
19571 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19572 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19573 | if test "${ac_cv_path_PROG_UPTIME+set}" = set; then | ||
19574 | $as_echo_n "(cached) " >&6 | ||
19575 | else | ||
19576 | case $PROG_UPTIME in | ||
19577 | [\\/]* | ?:[\\/]*) | ||
19578 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
19579 | ;; | ||
19580 | *) | ||
19581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19582 | for as_dir in $PATH | ||
19583 | do | ||
19584 | IFS=$as_save_IFS | ||
19585 | test -z "$as_dir" && as_dir=. | ||
19586 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19588 | ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext" | ||
19589 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19590 | break 2 | ||
19591 | fi | ||
19592 | done | ||
19593 | done | ||
19594 | IFS=$as_save_IFS | ||
19595 | |||
19596 | ;; | ||
19597 | esac | ||
19598 | fi | ||
19599 | PROG_UPTIME=$ac_cv_path_PROG_UPTIME | ||
19600 | if test -n "$PROG_UPTIME"; then | ||
19601 | { $as_echo "$as_me:$LINENO: result: $PROG_UPTIME" >&5 | ||
19602 | $as_echo "$PROG_UPTIME" >&6; } | ||
19603 | else | ||
19604 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19605 | $as_echo "no" >&6; } | ||
19606 | fi | ||
19607 | |||
19608 | |||
19609 | if test -z "$PROG_UPTIME" ; then | ||
19610 | PROG_UPTIME="undef" | ||
19611 | fi | ||
19612 | |||
19613 | |||
19614 | |||
19615 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
19616 | set dummy ipcs; ac_word=$2 | ||
19617 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19618 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19619 | if test "${ac_cv_path_PROG_IPCS+set}" = set; then | ||
19620 | $as_echo_n "(cached) " >&6 | ||
19621 | else | ||
19622 | case $PROG_IPCS in | ||
19623 | [\\/]* | ?:[\\/]*) | ||
19624 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
19625 | ;; | ||
19626 | *) | ||
19627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19628 | for as_dir in $PATH | ||
19629 | do | ||
19630 | IFS=$as_save_IFS | ||
19631 | test -z "$as_dir" && as_dir=. | ||
19632 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19634 | ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext" | ||
19635 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19636 | break 2 | ||
19637 | fi | ||
19638 | done | ||
19639 | done | ||
19640 | IFS=$as_save_IFS | ||
19641 | |||
19642 | ;; | ||
19643 | esac | ||
19644 | fi | ||
19645 | PROG_IPCS=$ac_cv_path_PROG_IPCS | ||
19646 | if test -n "$PROG_IPCS"; then | ||
19647 | { $as_echo "$as_me:$LINENO: result: $PROG_IPCS" >&5 | ||
19648 | $as_echo "$PROG_IPCS" >&6; } | ||
19649 | else | ||
19650 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19651 | $as_echo "no" >&6; } | ||
19652 | fi | ||
19653 | |||
19654 | |||
19655 | if test -z "$PROG_IPCS" ; then | ||
19656 | PROG_IPCS="undef" | ||
19657 | fi | ||
19658 | |||
19659 | |||
19660 | |||
19661 | # Extract the first word of "tail", so it can be a program name with args. | ||
19662 | set dummy tail; ac_word=$2 | ||
19663 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
19664 | $as_echo_n "checking for $ac_word... " >&6; } | ||
19665 | if test "${ac_cv_path_PROG_TAIL+set}" = set; then | ||
19666 | $as_echo_n "(cached) " >&6 | ||
19667 | else | ||
19668 | case $PROG_TAIL in | ||
19669 | [\\/]* | ?:[\\/]*) | ||
19670 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
19671 | ;; | ||
19672 | *) | ||
19673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
19674 | for as_dir in $PATH | ||
19675 | do | ||
19676 | IFS=$as_save_IFS | ||
19677 | test -z "$as_dir" && as_dir=. | ||
19678 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
19679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
19680 | ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext" | ||
19681 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
19682 | break 2 | ||
19683 | fi | ||
19684 | done | ||
19685 | done | ||
19686 | IFS=$as_save_IFS | ||
19687 | |||
19688 | ;; | ||
19689 | esac | ||
19690 | fi | ||
19691 | PROG_TAIL=$ac_cv_path_PROG_TAIL | ||
19692 | if test -n "$PROG_TAIL"; then | ||
19693 | { $as_echo "$as_me:$LINENO: result: $PROG_TAIL" >&5 | ||
19694 | $as_echo "$PROG_TAIL" >&6; } | ||
19695 | else | ||
19696 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
19697 | $as_echo "no" >&6; } | ||
19698 | fi | ||
19699 | |||
19700 | |||
19701 | if test -z "$PROG_TAIL" ; then | ||
19702 | PROG_TAIL="undef" | ||
19703 | fi | ||
19704 | |||
19705 | |||
19706 | # restore PATH | ||
19707 | PATH=$OPATH | ||
19708 | |||
19709 | # Where does ssh-rand-helper get its randomness from? | ||
19710 | INSTALL_SSH_PRNG_CMDS="" | ||
19711 | if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then | ||
19712 | if test ! -z "$PRNGD_PORT" ; then | ||
19713 | RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT" | ||
19714 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
19715 | RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\"" | ||
19716 | else | ||
19717 | RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)" | ||
19718 | RAND_HELPER_CMDHASH=yes | ||
19719 | INSTALL_SSH_PRNG_CMDS="yes" | ||
19720 | fi | ||
19721 | fi | ||
19722 | |||
19723 | |||
19724 | |||
19725 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
19726 | if test ! -z "$SONY" ; then | ||
19727 | LIBS="$LIBS -liberty"; | ||
19728 | fi | ||
19729 | |||
19730 | # Check for long long datatypes | ||
19731 | { $as_echo "$as_me:$LINENO: checking for long long" >&5 | ||
19732 | $as_echo_n "checking for long long... " >&6; } | ||
19733 | if test "${ac_cv_type_long_long+set}" = set; then | ||
19734 | $as_echo_n "(cached) " >&6 | ||
19735 | else | ||
19736 | ac_cv_type_long_long=no | ||
19737 | cat >conftest.$ac_ext <<_ACEOF | ||
19738 | /* confdefs.h. */ | ||
19739 | _ACEOF | ||
19740 | cat confdefs.h >>conftest.$ac_ext | ||
19741 | cat >>conftest.$ac_ext <<_ACEOF | ||
19742 | /* end confdefs.h. */ | ||
19743 | $ac_includes_default | ||
19744 | int | ||
19745 | main () | ||
19746 | { | ||
19747 | if (sizeof (long long)) | ||
19748 | return 0; | ||
19749 | ; | ||
19750 | return 0; | ||
19751 | } | ||
19752 | _ACEOF | ||
19753 | rm -f conftest.$ac_objext | ||
19754 | if { (ac_try="$ac_compile" | ||
19755 | case "(($ac_try" in | ||
19756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19757 | *) ac_try_echo=$ac_try;; | ||
19758 | esac | ||
19759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
19760 | $as_echo "$ac_try_echo") >&5 | ||
19761 | (eval "$ac_compile") 2>conftest.er1 | ||
19762 | ac_status=$? | ||
19763 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19764 | rm -f conftest.er1 | ||
19765 | cat conftest.err >&5 | ||
19766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19767 | (exit $ac_status); } && { | ||
19768 | test -z "$ac_c_werror_flag" || | ||
19769 | test ! -s conftest.err | ||
19770 | } && test -s conftest.$ac_objext; then | ||
19771 | cat >conftest.$ac_ext <<_ACEOF | ||
19772 | /* confdefs.h. */ | ||
19773 | _ACEOF | ||
19774 | cat confdefs.h >>conftest.$ac_ext | ||
19775 | cat >>conftest.$ac_ext <<_ACEOF | ||
19776 | /* end confdefs.h. */ | ||
19777 | $ac_includes_default | ||
19778 | int | ||
19779 | main () | ||
19780 | { | ||
19781 | if (sizeof ((long long))) | ||
19782 | return 0; | ||
19783 | ; | ||
19784 | return 0; | ||
19785 | } | ||
19786 | _ACEOF | ||
19787 | rm -f conftest.$ac_objext | ||
19788 | if { (ac_try="$ac_compile" | ||
19789 | case "(($ac_try" in | ||
19790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19791 | *) ac_try_echo=$ac_try;; | ||
19792 | esac | ||
19793 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
19794 | $as_echo "$ac_try_echo") >&5 | ||
19795 | (eval "$ac_compile") 2>conftest.er1 | ||
19796 | ac_status=$? | ||
19797 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19798 | rm -f conftest.er1 | ||
19799 | cat conftest.err >&5 | ||
19800 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19801 | (exit $ac_status); } && { | ||
19802 | test -z "$ac_c_werror_flag" || | ||
19803 | test ! -s conftest.err | ||
19804 | } && test -s conftest.$ac_objext; then | ||
19805 | : | ||
19806 | else | ||
19807 | $as_echo "$as_me: failed program was:" >&5 | ||
19808 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19809 | |||
19810 | ac_cv_type_long_long=yes | ||
19811 | fi | ||
19812 | |||
19813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19814 | else | ||
19815 | $as_echo "$as_me: failed program was:" >&5 | ||
19816 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19817 | |||
19818 | |||
19819 | fi | ||
19820 | |||
19821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19822 | fi | ||
19823 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | ||
19824 | $as_echo "$ac_cv_type_long_long" >&6; } | ||
19825 | if test $ac_cv_type_long_long = yes; then | ||
19826 | |||
19827 | cat >>confdefs.h <<_ACEOF | ||
19828 | #define HAVE_LONG_LONG 1 | ||
19829 | _ACEOF | ||
19830 | |||
19831 | |||
19832 | fi | ||
19833 | { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5 | ||
19834 | $as_echo_n "checking for unsigned long long... " >&6; } | ||
19835 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then | ||
19836 | $as_echo_n "(cached) " >&6 | ||
19837 | else | ||
19838 | ac_cv_type_unsigned_long_long=no | ||
19839 | cat >conftest.$ac_ext <<_ACEOF | ||
19840 | /* confdefs.h. */ | ||
19841 | _ACEOF | ||
19842 | cat confdefs.h >>conftest.$ac_ext | ||
19843 | cat >>conftest.$ac_ext <<_ACEOF | ||
19844 | /* end confdefs.h. */ | ||
19845 | $ac_includes_default | ||
19846 | int | ||
19847 | main () | ||
19848 | { | ||
19849 | if (sizeof (unsigned long long)) | ||
19850 | return 0; | ||
19851 | ; | ||
19852 | return 0; | ||
19853 | } | ||
19854 | _ACEOF | ||
19855 | rm -f conftest.$ac_objext | ||
19856 | if { (ac_try="$ac_compile" | ||
19857 | case "(($ac_try" in | ||
19858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19859 | *) ac_try_echo=$ac_try;; | ||
19860 | esac | ||
19861 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
19862 | $as_echo "$ac_try_echo") >&5 | ||
19863 | (eval "$ac_compile") 2>conftest.er1 | ||
19864 | ac_status=$? | ||
19865 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19866 | rm -f conftest.er1 | ||
19867 | cat conftest.err >&5 | ||
19868 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19869 | (exit $ac_status); } && { | ||
19870 | test -z "$ac_c_werror_flag" || | ||
19871 | test ! -s conftest.err | ||
19872 | } && test -s conftest.$ac_objext; then | ||
19873 | cat >conftest.$ac_ext <<_ACEOF | ||
19874 | /* confdefs.h. */ | ||
19875 | _ACEOF | ||
19876 | cat confdefs.h >>conftest.$ac_ext | ||
19877 | cat >>conftest.$ac_ext <<_ACEOF | ||
19878 | /* end confdefs.h. */ | ||
19879 | $ac_includes_default | ||
19880 | int | ||
19881 | main () | ||
19882 | { | ||
19883 | if (sizeof ((unsigned long long))) | ||
19884 | return 0; | ||
19885 | ; | ||
19886 | return 0; | ||
19887 | } | ||
19888 | _ACEOF | ||
19889 | rm -f conftest.$ac_objext | ||
19890 | if { (ac_try="$ac_compile" | ||
19891 | case "(($ac_try" in | ||
19892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19893 | *) ac_try_echo=$ac_try;; | ||
19894 | esac | ||
19895 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
19896 | $as_echo "$ac_try_echo") >&5 | ||
19897 | (eval "$ac_compile") 2>conftest.er1 | ||
19898 | ac_status=$? | ||
19899 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19900 | rm -f conftest.er1 | ||
19901 | cat conftest.err >&5 | ||
19902 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19903 | (exit $ac_status); } && { | ||
19904 | test -z "$ac_c_werror_flag" || | ||
19905 | test ! -s conftest.err | ||
19906 | } && test -s conftest.$ac_objext; then | ||
19907 | : | ||
19908 | else | ||
19909 | $as_echo "$as_me: failed program was:" >&5 | ||
19910 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19911 | |||
19912 | ac_cv_type_unsigned_long_long=yes | ||
19913 | fi | ||
19914 | |||
19915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19916 | else | ||
19917 | $as_echo "$as_me: failed program was:" >&5 | ||
19918 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19919 | |||
19920 | |||
19921 | fi | ||
19922 | |||
19923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19924 | fi | ||
19925 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 | ||
19926 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } | ||
19927 | if test $ac_cv_type_unsigned_long_long = yes; then | ||
19928 | |||
19929 | cat >>confdefs.h <<_ACEOF | ||
19930 | #define HAVE_UNSIGNED_LONG_LONG 1 | ||
19931 | _ACEOF | ||
19932 | |||
19933 | |||
19934 | fi | ||
19935 | { $as_echo "$as_me:$LINENO: checking for long double" >&5 | ||
19936 | $as_echo_n "checking for long double... " >&6; } | ||
19937 | if test "${ac_cv_type_long_double+set}" = set; then | ||
19938 | $as_echo_n "(cached) " >&6 | ||
19939 | else | ||
19940 | ac_cv_type_long_double=no | ||
19941 | cat >conftest.$ac_ext <<_ACEOF | ||
19942 | /* confdefs.h. */ | ||
19943 | _ACEOF | ||
19944 | cat confdefs.h >>conftest.$ac_ext | ||
19945 | cat >>conftest.$ac_ext <<_ACEOF | ||
19946 | /* end confdefs.h. */ | ||
19947 | $ac_includes_default | ||
19948 | int | ||
19949 | main () | ||
19950 | { | ||
19951 | if (sizeof (long double)) | ||
19952 | return 0; | ||
19953 | ; | ||
19954 | return 0; | ||
19955 | } | ||
19956 | _ACEOF | ||
19957 | rm -f conftest.$ac_objext | ||
19958 | if { (ac_try="$ac_compile" | ||
19959 | case "(($ac_try" in | ||
19960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19961 | *) ac_try_echo=$ac_try;; | ||
19962 | esac | ||
19963 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
19964 | $as_echo "$ac_try_echo") >&5 | ||
19965 | (eval "$ac_compile") 2>conftest.er1 | ||
19966 | ac_status=$? | ||
19967 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19968 | rm -f conftest.er1 | ||
19969 | cat conftest.err >&5 | ||
19970 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19971 | (exit $ac_status); } && { | ||
19972 | test -z "$ac_c_werror_flag" || | ||
19973 | test ! -s conftest.err | ||
19974 | } && test -s conftest.$ac_objext; then | ||
19975 | cat >conftest.$ac_ext <<_ACEOF | ||
19976 | /* confdefs.h. */ | ||
19977 | _ACEOF | ||
19978 | cat confdefs.h >>conftest.$ac_ext | ||
19979 | cat >>conftest.$ac_ext <<_ACEOF | ||
19980 | /* end confdefs.h. */ | ||
19981 | $ac_includes_default | ||
19982 | int | ||
19983 | main () | ||
19984 | { | ||
19985 | if (sizeof ((long double))) | ||
19986 | return 0; | ||
19987 | ; | ||
19988 | return 0; | ||
19989 | } | ||
19990 | _ACEOF | ||
19991 | rm -f conftest.$ac_objext | ||
19992 | if { (ac_try="$ac_compile" | ||
19993 | case "(($ac_try" in | ||
19994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19995 | *) ac_try_echo=$ac_try;; | ||
19996 | esac | ||
19997 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
19998 | $as_echo "$ac_try_echo") >&5 | ||
19999 | (eval "$ac_compile") 2>conftest.er1 | ||
20000 | ac_status=$? | ||
20001 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20002 | rm -f conftest.er1 | ||
20003 | cat conftest.err >&5 | ||
20004 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20005 | (exit $ac_status); } && { | ||
20006 | test -z "$ac_c_werror_flag" || | ||
20007 | test ! -s conftest.err | ||
20008 | } && test -s conftest.$ac_objext; then | ||
20009 | : | ||
20010 | else | ||
20011 | $as_echo "$as_me: failed program was:" >&5 | ||
20012 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20013 | |||
20014 | ac_cv_type_long_double=yes | ||
20015 | fi | ||
20016 | |||
20017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20018 | else | ||
20019 | $as_echo "$as_me: failed program was:" >&5 | ||
20020 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20021 | |||
20022 | |||
20023 | fi | ||
20024 | |||
20025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20026 | fi | ||
20027 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | ||
20028 | $as_echo "$ac_cv_type_long_double" >&6; } | ||
20029 | if test $ac_cv_type_long_double = yes; then | ||
20030 | |||
20031 | cat >>confdefs.h <<_ACEOF | ||
20032 | #define HAVE_LONG_DOUBLE 1 | ||
20033 | _ACEOF | ||
20034 | |||
20035 | |||
20036 | fi | ||
20037 | |||
20038 | |||
20039 | # Check datatype sizes | ||
20040 | # The cast to long int works around a bug in the HP C Compiler | ||
20041 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20042 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20043 | # This bug is HP SR number 8606223364. | ||
20044 | { $as_echo "$as_me:$LINENO: checking size of char" >&5 | ||
20045 | $as_echo_n "checking size of char... " >&6; } | ||
20046 | if test "${ac_cv_sizeof_char+set}" = set; then | ||
20047 | $as_echo_n "(cached) " >&6 | ||
20048 | else | ||
20049 | if test "$cross_compiling" = yes; then | ||
20050 | # Depending upon the size, compute the lo and hi bounds. | ||
20051 | cat >conftest.$ac_ext <<_ACEOF | ||
20052 | /* confdefs.h. */ | ||
20053 | _ACEOF | ||
20054 | cat confdefs.h >>conftest.$ac_ext | ||
20055 | cat >>conftest.$ac_ext <<_ACEOF | ||
20056 | /* end confdefs.h. */ | ||
20057 | $ac_includes_default | ||
20058 | int | ||
20059 | main () | ||
20060 | { | ||
20061 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)]; | ||
20062 | test_array [0] = 0 | ||
20063 | |||
20064 | ; | ||
20065 | return 0; | ||
20066 | } | ||
20067 | _ACEOF | ||
20068 | rm -f conftest.$ac_objext | ||
20069 | if { (ac_try="$ac_compile" | ||
20070 | case "(($ac_try" in | ||
20071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20072 | *) ac_try_echo=$ac_try;; | ||
20073 | esac | ||
20074 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20075 | $as_echo "$ac_try_echo") >&5 | ||
20076 | (eval "$ac_compile") 2>conftest.er1 | ||
20077 | ac_status=$? | ||
20078 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20079 | rm -f conftest.er1 | ||
20080 | cat conftest.err >&5 | ||
20081 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20082 | (exit $ac_status); } && { | ||
20083 | test -z "$ac_c_werror_flag" || | ||
20084 | test ! -s conftest.err | ||
20085 | } && test -s conftest.$ac_objext; then | ||
20086 | ac_lo=0 ac_mid=0 | ||
20087 | while :; do | ||
20088 | cat >conftest.$ac_ext <<_ACEOF | ||
20089 | /* confdefs.h. */ | ||
20090 | _ACEOF | ||
20091 | cat confdefs.h >>conftest.$ac_ext | ||
20092 | cat >>conftest.$ac_ext <<_ACEOF | ||
20093 | /* end confdefs.h. */ | ||
20094 | $ac_includes_default | ||
20095 | int | ||
20096 | main () | ||
20097 | { | ||
20098 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; | ||
20099 | test_array [0] = 0 | ||
20100 | |||
20101 | ; | ||
20102 | return 0; | ||
20103 | } | ||
20104 | _ACEOF | ||
20105 | rm -f conftest.$ac_objext | ||
20106 | if { (ac_try="$ac_compile" | ||
20107 | case "(($ac_try" in | ||
20108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20109 | *) ac_try_echo=$ac_try;; | ||
20110 | esac | ||
20111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20112 | $as_echo "$ac_try_echo") >&5 | ||
20113 | (eval "$ac_compile") 2>conftest.er1 | ||
20114 | ac_status=$? | ||
20115 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20116 | rm -f conftest.er1 | ||
20117 | cat conftest.err >&5 | ||
20118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20119 | (exit $ac_status); } && { | ||
20120 | test -z "$ac_c_werror_flag" || | ||
20121 | test ! -s conftest.err | ||
20122 | } && test -s conftest.$ac_objext; then | ||
20123 | ac_hi=$ac_mid; break | ||
20124 | else | ||
20125 | $as_echo "$as_me: failed program was:" >&5 | ||
20126 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20127 | |||
20128 | ac_lo=`expr $ac_mid + 1` | ||
20129 | if test $ac_lo -le $ac_mid; then | ||
20130 | ac_lo= ac_hi= | ||
20131 | break | ||
20132 | fi | ||
20133 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20134 | fi | ||
20135 | |||
20136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20137 | done | ||
20138 | else | ||
20139 | $as_echo "$as_me: failed program was:" >&5 | ||
20140 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20141 | |||
20142 | cat >conftest.$ac_ext <<_ACEOF | ||
20143 | /* confdefs.h. */ | ||
20144 | _ACEOF | ||
20145 | cat confdefs.h >>conftest.$ac_ext | ||
20146 | cat >>conftest.$ac_ext <<_ACEOF | ||
20147 | /* end confdefs.h. */ | ||
20148 | $ac_includes_default | ||
20149 | int | ||
20150 | main () | ||
20151 | { | ||
20152 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)]; | ||
20153 | test_array [0] = 0 | ||
20154 | |||
20155 | ; | ||
20156 | return 0; | ||
20157 | } | ||
20158 | _ACEOF | ||
20159 | rm -f conftest.$ac_objext | ||
20160 | if { (ac_try="$ac_compile" | ||
20161 | case "(($ac_try" in | ||
20162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20163 | *) ac_try_echo=$ac_try;; | ||
20164 | esac | ||
20165 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20166 | $as_echo "$ac_try_echo") >&5 | ||
20167 | (eval "$ac_compile") 2>conftest.er1 | ||
20168 | ac_status=$? | ||
20169 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20170 | rm -f conftest.er1 | ||
20171 | cat conftest.err >&5 | ||
20172 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20173 | (exit $ac_status); } && { | ||
20174 | test -z "$ac_c_werror_flag" || | ||
20175 | test ! -s conftest.err | ||
20176 | } && test -s conftest.$ac_objext; then | ||
20177 | ac_hi=-1 ac_mid=-1 | ||
20178 | while :; do | ||
20179 | cat >conftest.$ac_ext <<_ACEOF | ||
20180 | /* confdefs.h. */ | ||
20181 | _ACEOF | ||
20182 | cat confdefs.h >>conftest.$ac_ext | ||
20183 | cat >>conftest.$ac_ext <<_ACEOF | ||
20184 | /* end confdefs.h. */ | ||
20185 | $ac_includes_default | ||
20186 | int | ||
20187 | main () | ||
20188 | { | ||
20189 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)]; | ||
20190 | test_array [0] = 0 | ||
20191 | |||
20192 | ; | ||
20193 | return 0; | ||
20194 | } | ||
20195 | _ACEOF | ||
20196 | rm -f conftest.$ac_objext | ||
20197 | if { (ac_try="$ac_compile" | ||
20198 | case "(($ac_try" in | ||
20199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20200 | *) ac_try_echo=$ac_try;; | ||
20201 | esac | ||
20202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20203 | $as_echo "$ac_try_echo") >&5 | ||
20204 | (eval "$ac_compile") 2>conftest.er1 | ||
20205 | ac_status=$? | ||
20206 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20207 | rm -f conftest.er1 | ||
20208 | cat conftest.err >&5 | ||
20209 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20210 | (exit $ac_status); } && { | ||
20211 | test -z "$ac_c_werror_flag" || | ||
20212 | test ! -s conftest.err | ||
20213 | } && test -s conftest.$ac_objext; then | ||
20214 | ac_lo=$ac_mid; break | ||
20215 | else | ||
20216 | $as_echo "$as_me: failed program was:" >&5 | ||
20217 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20218 | |||
20219 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20220 | if test $ac_mid -le $ac_hi; then | ||
20221 | ac_lo= ac_hi= | ||
20222 | break | ||
20223 | fi | ||
20224 | ac_mid=`expr 2 '*' $ac_mid` | ||
20225 | fi | ||
20226 | |||
20227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20228 | done | ||
20229 | else | ||
20230 | $as_echo "$as_me: failed program was:" >&5 | ||
20231 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20232 | |||
20233 | ac_lo= ac_hi= | ||
20234 | fi | ||
20235 | |||
20236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20237 | fi | ||
20238 | |||
20239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20240 | # Binary search between lo and hi bounds. | ||
20241 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20242 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20243 | cat >conftest.$ac_ext <<_ACEOF | ||
20244 | /* confdefs.h. */ | ||
20245 | _ACEOF | ||
20246 | cat confdefs.h >>conftest.$ac_ext | ||
20247 | cat >>conftest.$ac_ext <<_ACEOF | ||
20248 | /* end confdefs.h. */ | ||
20249 | $ac_includes_default | ||
20250 | int | ||
20251 | main () | ||
20252 | { | ||
20253 | static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; | ||
20254 | test_array [0] = 0 | ||
20255 | |||
20256 | ; | ||
20257 | return 0; | ||
20258 | } | ||
20259 | _ACEOF | ||
20260 | rm -f conftest.$ac_objext | ||
20261 | if { (ac_try="$ac_compile" | ||
20262 | case "(($ac_try" in | ||
20263 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20264 | *) ac_try_echo=$ac_try;; | ||
20265 | esac | ||
20266 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20267 | $as_echo "$ac_try_echo") >&5 | ||
20268 | (eval "$ac_compile") 2>conftest.er1 | ||
20269 | ac_status=$? | ||
20270 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20271 | rm -f conftest.er1 | ||
20272 | cat conftest.err >&5 | ||
20273 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20274 | (exit $ac_status); } && { | ||
20275 | test -z "$ac_c_werror_flag" || | ||
20276 | test ! -s conftest.err | ||
20277 | } && test -s conftest.$ac_objext; then | ||
20278 | ac_hi=$ac_mid | ||
20279 | else | ||
20280 | $as_echo "$as_me: failed program was:" >&5 | ||
20281 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20282 | |||
20283 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20284 | fi | ||
20285 | |||
20286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20287 | done | ||
20288 | case $ac_lo in | ||
20289 | ?*) ac_cv_sizeof_char=$ac_lo;; | ||
20290 | '') if test "$ac_cv_type_char" = yes; then | ||
20291 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
20292 | See \`config.log' for more details." >&5 | ||
20293 | $as_echo "$as_me: error: cannot compute sizeof (char) | ||
20294 | See \`config.log' for more details." >&2;} | ||
20295 | { (exit 77); exit 77; }; } | ||
20296 | else | ||
20297 | ac_cv_sizeof_char=0 | ||
20298 | fi ;; | ||
20299 | esac | ||
20300 | else | ||
20301 | cat >conftest.$ac_ext <<_ACEOF | ||
20302 | /* confdefs.h. */ | ||
20303 | _ACEOF | ||
20304 | cat confdefs.h >>conftest.$ac_ext | ||
20305 | cat >>conftest.$ac_ext <<_ACEOF | ||
20306 | /* end confdefs.h. */ | ||
20307 | $ac_includes_default | ||
20308 | static long int longval () { return (long int) (sizeof (char)); } | ||
20309 | static unsigned long int ulongval () { return (long int) (sizeof (char)); } | ||
20310 | #include <stdio.h> | ||
20311 | #include <stdlib.h> | ||
20312 | int | ||
20313 | main () | ||
20314 | { | ||
20315 | |||
20316 | FILE *f = fopen ("conftest.val", "w"); | ||
20317 | if (! f) | ||
20318 | return 1; | ||
20319 | if (((long int) (sizeof (char))) < 0) | ||
20320 | { | ||
20321 | long int i = longval (); | ||
20322 | if (i != ((long int) (sizeof (char)))) | ||
20323 | return 1; | ||
20324 | fprintf (f, "%ld", i); | ||
20325 | } | ||
20326 | else | ||
20327 | { | ||
20328 | unsigned long int i = ulongval (); | ||
20329 | if (i != ((long int) (sizeof (char)))) | ||
20330 | return 1; | ||
20331 | fprintf (f, "%lu", i); | ||
20332 | } | ||
20333 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
20334 | on some platforms. */ | ||
20335 | return ferror (f) || fclose (f) != 0; | ||
20336 | |||
20337 | ; | ||
20338 | return 0; | ||
20339 | } | ||
20340 | _ACEOF | ||
20341 | rm -f conftest$ac_exeext | ||
20342 | if { (ac_try="$ac_link" | ||
20343 | case "(($ac_try" in | ||
20344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20345 | *) ac_try_echo=$ac_try;; | ||
20346 | esac | ||
20347 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20348 | $as_echo "$ac_try_echo") >&5 | ||
20349 | (eval "$ac_link") 2>&5 | ||
20350 | ac_status=$? | ||
20351 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20352 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20353 | { (case "(($ac_try" in | ||
20354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20355 | *) ac_try_echo=$ac_try;; | ||
20356 | esac | ||
20357 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20358 | $as_echo "$ac_try_echo") >&5 | ||
20359 | (eval "$ac_try") 2>&5 | ||
20360 | ac_status=$? | ||
20361 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20362 | (exit $ac_status); }; }; then | ||
20363 | ac_cv_sizeof_char=`cat conftest.val` | ||
20364 | else | ||
20365 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
20366 | $as_echo "$as_me: failed program was:" >&5 | ||
20367 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20368 | |||
20369 | ( exit $ac_status ) | ||
20370 | if test "$ac_cv_type_char" = yes; then | ||
20371 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) | ||
20372 | See \`config.log' for more details." >&5 | ||
20373 | $as_echo "$as_me: error: cannot compute sizeof (char) | ||
20374 | See \`config.log' for more details." >&2;} | ||
20375 | { (exit 77); exit 77; }; } | ||
20376 | else | ||
20377 | ac_cv_sizeof_char=0 | ||
20378 | fi | ||
20379 | fi | ||
20380 | rm -rf conftest.dSYM | ||
20381 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20382 | fi | ||
20383 | rm -f conftest.val | ||
20384 | fi | ||
20385 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | ||
20386 | $as_echo "$ac_cv_sizeof_char" >&6; } | ||
20387 | |||
20388 | |||
20389 | |||
20390 | cat >>confdefs.h <<_ACEOF | ||
20391 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
20392 | _ACEOF | ||
20393 | |||
20394 | |||
20395 | # The cast to long int works around a bug in the HP C Compiler | ||
20396 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20397 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20398 | # This bug is HP SR number 8606223364. | ||
20399 | { $as_echo "$as_me:$LINENO: checking size of short int" >&5 | ||
20400 | $as_echo_n "checking size of short int... " >&6; } | ||
20401 | if test "${ac_cv_sizeof_short_int+set}" = set; then | ||
20402 | $as_echo_n "(cached) " >&6 | ||
20403 | else | ||
20404 | if test "$cross_compiling" = yes; then | ||
20405 | # Depending upon the size, compute the lo and hi bounds. | ||
20406 | cat >conftest.$ac_ext <<_ACEOF | ||
20407 | /* confdefs.h. */ | ||
20408 | _ACEOF | ||
20409 | cat confdefs.h >>conftest.$ac_ext | ||
20410 | cat >>conftest.$ac_ext <<_ACEOF | ||
20411 | /* end confdefs.h. */ | ||
20412 | $ac_includes_default | ||
20413 | int | ||
20414 | main () | ||
20415 | { | ||
20416 | static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= 0)]; | ||
20417 | test_array [0] = 0 | ||
20418 | |||
20419 | ; | ||
20420 | return 0; | ||
20421 | } | ||
20422 | _ACEOF | ||
20423 | rm -f conftest.$ac_objext | ||
20424 | if { (ac_try="$ac_compile" | ||
20425 | case "(($ac_try" in | ||
20426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20427 | *) ac_try_echo=$ac_try;; | ||
20428 | esac | ||
20429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20430 | $as_echo "$ac_try_echo") >&5 | ||
20431 | (eval "$ac_compile") 2>conftest.er1 | ||
20432 | ac_status=$? | ||
20433 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20434 | rm -f conftest.er1 | ||
20435 | cat conftest.err >&5 | ||
20436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20437 | (exit $ac_status); } && { | ||
20438 | test -z "$ac_c_werror_flag" || | ||
20439 | test ! -s conftest.err | ||
20440 | } && test -s conftest.$ac_objext; then | ||
20441 | ac_lo=0 ac_mid=0 | ||
20442 | while :; do | ||
20443 | cat >conftest.$ac_ext <<_ACEOF | ||
20444 | /* confdefs.h. */ | ||
20445 | _ACEOF | ||
20446 | cat confdefs.h >>conftest.$ac_ext | ||
20447 | cat >>conftest.$ac_ext <<_ACEOF | ||
20448 | /* end confdefs.h. */ | ||
20449 | $ac_includes_default | ||
20450 | int | ||
20451 | main () | ||
20452 | { | ||
20453 | static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)]; | ||
20454 | test_array [0] = 0 | ||
20455 | |||
20456 | ; | ||
20457 | return 0; | ||
20458 | } | ||
20459 | _ACEOF | ||
20460 | rm -f conftest.$ac_objext | ||
20461 | if { (ac_try="$ac_compile" | ||
20462 | case "(($ac_try" in | ||
20463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20464 | *) ac_try_echo=$ac_try;; | ||
20465 | esac | ||
20466 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20467 | $as_echo "$ac_try_echo") >&5 | ||
20468 | (eval "$ac_compile") 2>conftest.er1 | ||
20469 | ac_status=$? | ||
20470 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20471 | rm -f conftest.er1 | ||
20472 | cat conftest.err >&5 | ||
20473 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20474 | (exit $ac_status); } && { | ||
20475 | test -z "$ac_c_werror_flag" || | ||
20476 | test ! -s conftest.err | ||
20477 | } && test -s conftest.$ac_objext; then | ||
20478 | ac_hi=$ac_mid; break | ||
20479 | else | ||
20480 | $as_echo "$as_me: failed program was:" >&5 | ||
20481 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20482 | |||
20483 | ac_lo=`expr $ac_mid + 1` | ||
20484 | if test $ac_lo -le $ac_mid; then | ||
20485 | ac_lo= ac_hi= | ||
20486 | break | ||
20487 | fi | ||
20488 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20489 | fi | ||
20490 | |||
20491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20492 | done | ||
20493 | else | ||
20494 | $as_echo "$as_me: failed program was:" >&5 | ||
20495 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20496 | |||
20497 | cat >conftest.$ac_ext <<_ACEOF | ||
20498 | /* confdefs.h. */ | ||
20499 | _ACEOF | ||
20500 | cat confdefs.h >>conftest.$ac_ext | ||
20501 | cat >>conftest.$ac_ext <<_ACEOF | ||
20502 | /* end confdefs.h. */ | ||
20503 | $ac_includes_default | ||
20504 | int | ||
20505 | main () | ||
20506 | { | ||
20507 | static int test_array [1 - 2 * !(((long int) (sizeof (short int))) < 0)]; | ||
20508 | test_array [0] = 0 | ||
20509 | |||
20510 | ; | ||
20511 | return 0; | ||
20512 | } | ||
20513 | _ACEOF | ||
20514 | rm -f conftest.$ac_objext | ||
20515 | if { (ac_try="$ac_compile" | ||
20516 | case "(($ac_try" in | ||
20517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20518 | *) ac_try_echo=$ac_try;; | ||
20519 | esac | ||
20520 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20521 | $as_echo "$ac_try_echo") >&5 | ||
20522 | (eval "$ac_compile") 2>conftest.er1 | ||
20523 | ac_status=$? | ||
20524 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20525 | rm -f conftest.er1 | ||
20526 | cat conftest.err >&5 | ||
20527 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20528 | (exit $ac_status); } && { | ||
20529 | test -z "$ac_c_werror_flag" || | ||
20530 | test ! -s conftest.err | ||
20531 | } && test -s conftest.$ac_objext; then | ||
20532 | ac_hi=-1 ac_mid=-1 | ||
20533 | while :; do | ||
20534 | cat >conftest.$ac_ext <<_ACEOF | ||
20535 | /* confdefs.h. */ | ||
20536 | _ACEOF | ||
20537 | cat confdefs.h >>conftest.$ac_ext | ||
20538 | cat >>conftest.$ac_ext <<_ACEOF | ||
20539 | /* end confdefs.h. */ | ||
20540 | $ac_includes_default | ||
20541 | int | ||
20542 | main () | ||
20543 | { | ||
20544 | static int test_array [1 - 2 * !(((long int) (sizeof (short int))) >= $ac_mid)]; | ||
20545 | test_array [0] = 0 | ||
20546 | |||
20547 | ; | ||
20548 | return 0; | ||
20549 | } | ||
20550 | _ACEOF | ||
20551 | rm -f conftest.$ac_objext | ||
20552 | if { (ac_try="$ac_compile" | ||
20553 | case "(($ac_try" in | ||
20554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20555 | *) ac_try_echo=$ac_try;; | ||
20556 | esac | ||
20557 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20558 | $as_echo "$ac_try_echo") >&5 | ||
20559 | (eval "$ac_compile") 2>conftest.er1 | ||
20560 | ac_status=$? | ||
20561 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20562 | rm -f conftest.er1 | ||
20563 | cat conftest.err >&5 | ||
20564 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20565 | (exit $ac_status); } && { | ||
20566 | test -z "$ac_c_werror_flag" || | ||
20567 | test ! -s conftest.err | ||
20568 | } && test -s conftest.$ac_objext; then | ||
20569 | ac_lo=$ac_mid; break | ||
20570 | else | ||
20571 | $as_echo "$as_me: failed program was:" >&5 | ||
20572 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20573 | |||
20574 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20575 | if test $ac_mid -le $ac_hi; then | ||
20576 | ac_lo= ac_hi= | ||
20577 | break | ||
20578 | fi | ||
20579 | ac_mid=`expr 2 '*' $ac_mid` | ||
20580 | fi | ||
20581 | |||
20582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20583 | done | ||
20584 | else | ||
20585 | $as_echo "$as_me: failed program was:" >&5 | ||
20586 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20587 | |||
20588 | ac_lo= ac_hi= | ||
20589 | fi | ||
20590 | |||
20591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20592 | fi | ||
20593 | |||
20594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20595 | # Binary search between lo and hi bounds. | ||
20596 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20597 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20598 | cat >conftest.$ac_ext <<_ACEOF | ||
20599 | /* confdefs.h. */ | ||
20600 | _ACEOF | ||
20601 | cat confdefs.h >>conftest.$ac_ext | ||
20602 | cat >>conftest.$ac_ext <<_ACEOF | ||
20603 | /* end confdefs.h. */ | ||
20604 | $ac_includes_default | ||
20605 | int | ||
20606 | main () | ||
20607 | { | ||
20608 | static int test_array [1 - 2 * !(((long int) (sizeof (short int))) <= $ac_mid)]; | ||
20609 | test_array [0] = 0 | ||
20610 | |||
20611 | ; | ||
20612 | return 0; | ||
20613 | } | ||
20614 | _ACEOF | ||
20615 | rm -f conftest.$ac_objext | ||
20616 | if { (ac_try="$ac_compile" | ||
20617 | case "(($ac_try" in | ||
20618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20619 | *) ac_try_echo=$ac_try;; | ||
20620 | esac | ||
20621 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20622 | $as_echo "$ac_try_echo") >&5 | ||
20623 | (eval "$ac_compile") 2>conftest.er1 | ||
20624 | ac_status=$? | ||
20625 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20626 | rm -f conftest.er1 | ||
20627 | cat conftest.err >&5 | ||
20628 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20629 | (exit $ac_status); } && { | ||
20630 | test -z "$ac_c_werror_flag" || | ||
20631 | test ! -s conftest.err | ||
20632 | } && test -s conftest.$ac_objext; then | ||
20633 | ac_hi=$ac_mid | ||
20634 | else | ||
20635 | $as_echo "$as_me: failed program was:" >&5 | ||
20636 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20637 | |||
20638 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20639 | fi | ||
20640 | |||
20641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20642 | done | ||
20643 | case $ac_lo in | ||
20644 | ?*) ac_cv_sizeof_short_int=$ac_lo;; | ||
20645 | '') if test "$ac_cv_type_short_int" = yes; then | ||
20646 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
20647 | See \`config.log' for more details." >&5 | ||
20648 | $as_echo "$as_me: error: cannot compute sizeof (short int) | ||
20649 | See \`config.log' for more details." >&2;} | ||
20650 | { (exit 77); exit 77; }; } | ||
20651 | else | ||
20652 | ac_cv_sizeof_short_int=0 | ||
20653 | fi ;; | ||
20654 | esac | ||
20655 | else | ||
20656 | cat >conftest.$ac_ext <<_ACEOF | ||
20657 | /* confdefs.h. */ | ||
20658 | _ACEOF | ||
20659 | cat confdefs.h >>conftest.$ac_ext | ||
20660 | cat >>conftest.$ac_ext <<_ACEOF | ||
20661 | /* end confdefs.h. */ | ||
20662 | $ac_includes_default | ||
20663 | static long int longval () { return (long int) (sizeof (short int)); } | ||
20664 | static unsigned long int ulongval () { return (long int) (sizeof (short int)); } | ||
20665 | #include <stdio.h> | ||
20666 | #include <stdlib.h> | ||
20667 | int | ||
20668 | main () | ||
20669 | { | ||
20670 | |||
20671 | FILE *f = fopen ("conftest.val", "w"); | ||
20672 | if (! f) | ||
20673 | return 1; | ||
20674 | if (((long int) (sizeof (short int))) < 0) | ||
20675 | { | ||
20676 | long int i = longval (); | ||
20677 | if (i != ((long int) (sizeof (short int)))) | ||
20678 | return 1; | ||
20679 | fprintf (f, "%ld", i); | ||
20680 | } | ||
20681 | else | ||
20682 | { | ||
20683 | unsigned long int i = ulongval (); | ||
20684 | if (i != ((long int) (sizeof (short int)))) | ||
20685 | return 1; | ||
20686 | fprintf (f, "%lu", i); | ||
20687 | } | ||
20688 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
20689 | on some platforms. */ | ||
20690 | return ferror (f) || fclose (f) != 0; | ||
20691 | |||
20692 | ; | ||
20693 | return 0; | ||
20694 | } | ||
20695 | _ACEOF | ||
20696 | rm -f conftest$ac_exeext | ||
20697 | if { (ac_try="$ac_link" | ||
20698 | case "(($ac_try" in | ||
20699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20700 | *) ac_try_echo=$ac_try;; | ||
20701 | esac | ||
20702 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20703 | $as_echo "$ac_try_echo") >&5 | ||
20704 | (eval "$ac_link") 2>&5 | ||
20705 | ac_status=$? | ||
20706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20708 | { (case "(($ac_try" in | ||
20709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20710 | *) ac_try_echo=$ac_try;; | ||
20711 | esac | ||
20712 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20713 | $as_echo "$ac_try_echo") >&5 | ||
20714 | (eval "$ac_try") 2>&5 | ||
20715 | ac_status=$? | ||
20716 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20717 | (exit $ac_status); }; }; then | ||
20718 | ac_cv_sizeof_short_int=`cat conftest.val` | ||
20719 | else | ||
20720 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
20721 | $as_echo "$as_me: failed program was:" >&5 | ||
20722 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20723 | |||
20724 | ( exit $ac_status ) | ||
20725 | if test "$ac_cv_type_short_int" = yes; then | ||
20726 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short int) | ||
20727 | See \`config.log' for more details." >&5 | ||
20728 | $as_echo "$as_me: error: cannot compute sizeof (short int) | ||
20729 | See \`config.log' for more details." >&2;} | ||
20730 | { (exit 77); exit 77; }; } | ||
20731 | else | ||
20732 | ac_cv_sizeof_short_int=0 | ||
20733 | fi | ||
20734 | fi | ||
20735 | rm -rf conftest.dSYM | ||
20736 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20737 | fi | ||
20738 | rm -f conftest.val | ||
20739 | fi | ||
20740 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5 | ||
20741 | $as_echo "$ac_cv_sizeof_short_int" >&6; } | ||
20742 | |||
20743 | |||
20744 | |||
20745 | cat >>confdefs.h <<_ACEOF | ||
20746 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
20747 | _ACEOF | ||
20748 | |||
20749 | |||
20750 | # The cast to long int works around a bug in the HP C Compiler | ||
20751 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
20752 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
20753 | # This bug is HP SR number 8606223364. | ||
20754 | { $as_echo "$as_me:$LINENO: checking size of int" >&5 | ||
20755 | $as_echo_n "checking size of int... " >&6; } | ||
20756 | if test "${ac_cv_sizeof_int+set}" = set; then | ||
20757 | $as_echo_n "(cached) " >&6 | ||
20758 | else | ||
20759 | if test "$cross_compiling" = yes; then | ||
20760 | # Depending upon the size, compute the lo and hi bounds. | ||
20761 | cat >conftest.$ac_ext <<_ACEOF | ||
20762 | /* confdefs.h. */ | ||
20763 | _ACEOF | ||
20764 | cat confdefs.h >>conftest.$ac_ext | ||
20765 | cat >>conftest.$ac_ext <<_ACEOF | ||
20766 | /* end confdefs.h. */ | ||
20767 | $ac_includes_default | ||
20768 | int | ||
20769 | main () | ||
20770 | { | ||
20771 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; | ||
20772 | test_array [0] = 0 | ||
20773 | |||
20774 | ; | ||
20775 | return 0; | ||
20776 | } | ||
20777 | _ACEOF | ||
20778 | rm -f conftest.$ac_objext | ||
20779 | if { (ac_try="$ac_compile" | ||
20780 | case "(($ac_try" in | ||
20781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20782 | *) ac_try_echo=$ac_try;; | ||
20783 | esac | ||
20784 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20785 | $as_echo "$ac_try_echo") >&5 | ||
20786 | (eval "$ac_compile") 2>conftest.er1 | ||
20787 | ac_status=$? | ||
20788 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20789 | rm -f conftest.er1 | ||
20790 | cat conftest.err >&5 | ||
20791 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20792 | (exit $ac_status); } && { | ||
20793 | test -z "$ac_c_werror_flag" || | ||
20794 | test ! -s conftest.err | ||
20795 | } && test -s conftest.$ac_objext; then | ||
20796 | ac_lo=0 ac_mid=0 | ||
20797 | while :; do | ||
20798 | cat >conftest.$ac_ext <<_ACEOF | ||
20799 | /* confdefs.h. */ | ||
20800 | _ACEOF | ||
20801 | cat confdefs.h >>conftest.$ac_ext | ||
20802 | cat >>conftest.$ac_ext <<_ACEOF | ||
20803 | /* end confdefs.h. */ | ||
20804 | $ac_includes_default | ||
20805 | int | ||
20806 | main () | ||
20807 | { | ||
20808 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; | ||
20809 | test_array [0] = 0 | ||
20810 | |||
20811 | ; | ||
20812 | return 0; | ||
20813 | } | ||
20814 | _ACEOF | ||
20815 | rm -f conftest.$ac_objext | ||
20816 | if { (ac_try="$ac_compile" | ||
20817 | case "(($ac_try" in | ||
20818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20819 | *) ac_try_echo=$ac_try;; | ||
20820 | esac | ||
20821 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20822 | $as_echo "$ac_try_echo") >&5 | ||
20823 | (eval "$ac_compile") 2>conftest.er1 | ||
20824 | ac_status=$? | ||
20825 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20826 | rm -f conftest.er1 | ||
20827 | cat conftest.err >&5 | ||
20828 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20829 | (exit $ac_status); } && { | ||
20830 | test -z "$ac_c_werror_flag" || | ||
20831 | test ! -s conftest.err | ||
20832 | } && test -s conftest.$ac_objext; then | ||
20833 | ac_hi=$ac_mid; break | ||
20834 | else | ||
20835 | $as_echo "$as_me: failed program was:" >&5 | ||
20836 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20837 | |||
20838 | ac_lo=`expr $ac_mid + 1` | ||
20839 | if test $ac_lo -le $ac_mid; then | ||
20840 | ac_lo= ac_hi= | ||
20841 | break | ||
20842 | fi | ||
20843 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
20844 | fi | ||
20845 | |||
20846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20847 | done | ||
20848 | else | ||
20849 | $as_echo "$as_me: failed program was:" >&5 | ||
20850 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20851 | |||
20852 | cat >conftest.$ac_ext <<_ACEOF | ||
20853 | /* confdefs.h. */ | ||
20854 | _ACEOF | ||
20855 | cat confdefs.h >>conftest.$ac_ext | ||
20856 | cat >>conftest.$ac_ext <<_ACEOF | ||
20857 | /* end confdefs.h. */ | ||
20858 | $ac_includes_default | ||
20859 | int | ||
20860 | main () | ||
20861 | { | ||
20862 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; | ||
20863 | test_array [0] = 0 | ||
20864 | |||
20865 | ; | ||
20866 | return 0; | ||
20867 | } | ||
20868 | _ACEOF | ||
20869 | rm -f conftest.$ac_objext | ||
20870 | if { (ac_try="$ac_compile" | ||
20871 | case "(($ac_try" in | ||
20872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20873 | *) ac_try_echo=$ac_try;; | ||
20874 | esac | ||
20875 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20876 | $as_echo "$ac_try_echo") >&5 | ||
20877 | (eval "$ac_compile") 2>conftest.er1 | ||
20878 | ac_status=$? | ||
20879 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20880 | rm -f conftest.er1 | ||
20881 | cat conftest.err >&5 | ||
20882 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20883 | (exit $ac_status); } && { | ||
20884 | test -z "$ac_c_werror_flag" || | ||
20885 | test ! -s conftest.err | ||
20886 | } && test -s conftest.$ac_objext; then | ||
20887 | ac_hi=-1 ac_mid=-1 | ||
20888 | while :; do | ||
20889 | cat >conftest.$ac_ext <<_ACEOF | ||
20890 | /* confdefs.h. */ | ||
20891 | _ACEOF | ||
20892 | cat confdefs.h >>conftest.$ac_ext | ||
20893 | cat >>conftest.$ac_ext <<_ACEOF | ||
20894 | /* end confdefs.h. */ | ||
20895 | $ac_includes_default | ||
20896 | int | ||
20897 | main () | ||
20898 | { | ||
20899 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; | ||
20900 | test_array [0] = 0 | ||
20901 | |||
20902 | ; | ||
20903 | return 0; | ||
20904 | } | ||
20905 | _ACEOF | ||
20906 | rm -f conftest.$ac_objext | ||
20907 | if { (ac_try="$ac_compile" | ||
20908 | case "(($ac_try" in | ||
20909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20910 | *) ac_try_echo=$ac_try;; | ||
20911 | esac | ||
20912 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20913 | $as_echo "$ac_try_echo") >&5 | ||
20914 | (eval "$ac_compile") 2>conftest.er1 | ||
20915 | ac_status=$? | ||
20916 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20917 | rm -f conftest.er1 | ||
20918 | cat conftest.err >&5 | ||
20919 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20920 | (exit $ac_status); } && { | ||
20921 | test -z "$ac_c_werror_flag" || | ||
20922 | test ! -s conftest.err | ||
20923 | } && test -s conftest.$ac_objext; then | ||
20924 | ac_lo=$ac_mid; break | ||
20925 | else | ||
20926 | $as_echo "$as_me: failed program was:" >&5 | ||
20927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20928 | |||
20929 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
20930 | if test $ac_mid -le $ac_hi; then | ||
20931 | ac_lo= ac_hi= | ||
20932 | break | ||
20933 | fi | ||
20934 | ac_mid=`expr 2 '*' $ac_mid` | ||
20935 | fi | ||
20936 | |||
20937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20938 | done | ||
20939 | else | ||
20940 | $as_echo "$as_me: failed program was:" >&5 | ||
20941 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20942 | |||
20943 | ac_lo= ac_hi= | ||
20944 | fi | ||
20945 | |||
20946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20947 | fi | ||
20948 | |||
20949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20950 | # Binary search between lo and hi bounds. | ||
20951 | while test "x$ac_lo" != "x$ac_hi"; do | ||
20952 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
20953 | cat >conftest.$ac_ext <<_ACEOF | ||
20954 | /* confdefs.h. */ | ||
20955 | _ACEOF | ||
20956 | cat confdefs.h >>conftest.$ac_ext | ||
20957 | cat >>conftest.$ac_ext <<_ACEOF | ||
20958 | /* end confdefs.h. */ | ||
20959 | $ac_includes_default | ||
20960 | int | ||
20961 | main () | ||
20962 | { | ||
20963 | static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; | ||
20964 | test_array [0] = 0 | ||
20965 | |||
20966 | ; | ||
20967 | return 0; | ||
20968 | } | ||
20969 | _ACEOF | ||
20970 | rm -f conftest.$ac_objext | ||
20971 | if { (ac_try="$ac_compile" | ||
20972 | case "(($ac_try" in | ||
20973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20974 | *) ac_try_echo=$ac_try;; | ||
20975 | esac | ||
20976 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
20977 | $as_echo "$ac_try_echo") >&5 | ||
20978 | (eval "$ac_compile") 2>conftest.er1 | ||
20979 | ac_status=$? | ||
20980 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20981 | rm -f conftest.er1 | ||
20982 | cat conftest.err >&5 | ||
20983 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20984 | (exit $ac_status); } && { | ||
20985 | test -z "$ac_c_werror_flag" || | ||
20986 | test ! -s conftest.err | ||
20987 | } && test -s conftest.$ac_objext; then | ||
20988 | ac_hi=$ac_mid | ||
20989 | else | ||
20990 | $as_echo "$as_me: failed program was:" >&5 | ||
20991 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20992 | |||
20993 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
20994 | fi | ||
20995 | |||
20996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20997 | done | ||
20998 | case $ac_lo in | ||
20999 | ?*) ac_cv_sizeof_int=$ac_lo;; | ||
21000 | '') if test "$ac_cv_type_int" = yes; then | ||
21001 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
21002 | See \`config.log' for more details." >&5 | ||
21003 | $as_echo "$as_me: error: cannot compute sizeof (int) | ||
21004 | See \`config.log' for more details." >&2;} | ||
21005 | { (exit 77); exit 77; }; } | ||
21006 | else | ||
21007 | ac_cv_sizeof_int=0 | ||
21008 | fi ;; | ||
21009 | esac | ||
21010 | else | ||
21011 | cat >conftest.$ac_ext <<_ACEOF | ||
21012 | /* confdefs.h. */ | ||
21013 | _ACEOF | ||
21014 | cat confdefs.h >>conftest.$ac_ext | ||
21015 | cat >>conftest.$ac_ext <<_ACEOF | ||
21016 | /* end confdefs.h. */ | ||
21017 | $ac_includes_default | ||
21018 | static long int longval () { return (long int) (sizeof (int)); } | ||
21019 | static unsigned long int ulongval () { return (long int) (sizeof (int)); } | ||
21020 | #include <stdio.h> | ||
21021 | #include <stdlib.h> | ||
21022 | int | ||
21023 | main () | ||
21024 | { | ||
21025 | |||
21026 | FILE *f = fopen ("conftest.val", "w"); | ||
21027 | if (! f) | ||
21028 | return 1; | ||
21029 | if (((long int) (sizeof (int))) < 0) | ||
21030 | { | ||
21031 | long int i = longval (); | ||
21032 | if (i != ((long int) (sizeof (int)))) | ||
21033 | return 1; | ||
21034 | fprintf (f, "%ld", i); | ||
21035 | } | ||
21036 | else | ||
21037 | { | ||
21038 | unsigned long int i = ulongval (); | ||
21039 | if (i != ((long int) (sizeof (int)))) | ||
21040 | return 1; | ||
21041 | fprintf (f, "%lu", i); | ||
21042 | } | ||
21043 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
21044 | on some platforms. */ | ||
21045 | return ferror (f) || fclose (f) != 0; | ||
21046 | |||
21047 | ; | ||
21048 | return 0; | ||
21049 | } | ||
21050 | _ACEOF | ||
21051 | rm -f conftest$ac_exeext | ||
21052 | if { (ac_try="$ac_link" | ||
21053 | case "(($ac_try" in | ||
21054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21055 | *) ac_try_echo=$ac_try;; | ||
21056 | esac | ||
21057 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21058 | $as_echo "$ac_try_echo") >&5 | ||
21059 | (eval "$ac_link") 2>&5 | ||
21060 | ac_status=$? | ||
21061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21062 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21063 | { (case "(($ac_try" in | ||
21064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21065 | *) ac_try_echo=$ac_try;; | ||
21066 | esac | ||
21067 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21068 | $as_echo "$ac_try_echo") >&5 | ||
21069 | (eval "$ac_try") 2>&5 | ||
21070 | ac_status=$? | ||
21071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21072 | (exit $ac_status); }; }; then | ||
21073 | ac_cv_sizeof_int=`cat conftest.val` | ||
21074 | else | ||
21075 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
21076 | $as_echo "$as_me: failed program was:" >&5 | ||
21077 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21078 | |||
21079 | ( exit $ac_status ) | ||
21080 | if test "$ac_cv_type_int" = yes; then | ||
21081 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) | ||
21082 | See \`config.log' for more details." >&5 | ||
21083 | $as_echo "$as_me: error: cannot compute sizeof (int) | ||
21084 | See \`config.log' for more details." >&2;} | ||
21085 | { (exit 77); exit 77; }; } | ||
21086 | else | ||
21087 | ac_cv_sizeof_int=0 | ||
21088 | fi | ||
21089 | fi | ||
21090 | rm -rf conftest.dSYM | ||
21091 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21092 | fi | ||
21093 | rm -f conftest.val | ||
21094 | fi | ||
21095 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | ||
21096 | $as_echo "$ac_cv_sizeof_int" >&6; } | ||
21097 | |||
21098 | |||
21099 | |||
21100 | cat >>confdefs.h <<_ACEOF | ||
21101 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
21102 | _ACEOF | ||
21103 | |||
21104 | |||
21105 | # The cast to long int works around a bug in the HP C Compiler | ||
21106 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
21107 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
21108 | # This bug is HP SR number 8606223364. | ||
21109 | { $as_echo "$as_me:$LINENO: checking size of long int" >&5 | ||
21110 | $as_echo_n "checking size of long int... " >&6; } | ||
21111 | if test "${ac_cv_sizeof_long_int+set}" = set; then | ||
21112 | $as_echo_n "(cached) " >&6 | ||
21113 | else | ||
21114 | if test "$cross_compiling" = yes; then | ||
21115 | # Depending upon the size, compute the lo and hi bounds. | ||
21116 | cat >conftest.$ac_ext <<_ACEOF | ||
21117 | /* confdefs.h. */ | ||
21118 | _ACEOF | ||
21119 | cat confdefs.h >>conftest.$ac_ext | ||
21120 | cat >>conftest.$ac_ext <<_ACEOF | ||
21121 | /* end confdefs.h. */ | ||
21122 | $ac_includes_default | ||
21123 | int | ||
21124 | main () | ||
21125 | { | ||
21126 | static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= 0)]; | ||
21127 | test_array [0] = 0 | ||
21128 | |||
21129 | ; | ||
21130 | return 0; | ||
21131 | } | ||
21132 | _ACEOF | ||
21133 | rm -f conftest.$ac_objext | ||
21134 | if { (ac_try="$ac_compile" | ||
21135 | case "(($ac_try" in | ||
21136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21137 | *) ac_try_echo=$ac_try;; | ||
21138 | esac | ||
21139 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21140 | $as_echo "$ac_try_echo") >&5 | ||
21141 | (eval "$ac_compile") 2>conftest.er1 | ||
21142 | ac_status=$? | ||
21143 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21144 | rm -f conftest.er1 | ||
21145 | cat conftest.err >&5 | ||
21146 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21147 | (exit $ac_status); } && { | ||
21148 | test -z "$ac_c_werror_flag" || | ||
21149 | test ! -s conftest.err | ||
21150 | } && test -s conftest.$ac_objext; then | ||
21151 | ac_lo=0 ac_mid=0 | ||
21152 | while :; do | ||
21153 | cat >conftest.$ac_ext <<_ACEOF | ||
21154 | /* confdefs.h. */ | ||
21155 | _ACEOF | ||
21156 | cat confdefs.h >>conftest.$ac_ext | ||
21157 | cat >>conftest.$ac_ext <<_ACEOF | ||
21158 | /* end confdefs.h. */ | ||
21159 | $ac_includes_default | ||
21160 | int | ||
21161 | main () | ||
21162 | { | ||
21163 | static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)]; | ||
21164 | test_array [0] = 0 | ||
21165 | |||
21166 | ; | ||
21167 | return 0; | ||
21168 | } | ||
21169 | _ACEOF | ||
21170 | rm -f conftest.$ac_objext | ||
21171 | if { (ac_try="$ac_compile" | ||
21172 | case "(($ac_try" in | ||
21173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21174 | *) ac_try_echo=$ac_try;; | ||
21175 | esac | ||
21176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21177 | $as_echo "$ac_try_echo") >&5 | ||
21178 | (eval "$ac_compile") 2>conftest.er1 | ||
21179 | ac_status=$? | ||
21180 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21181 | rm -f conftest.er1 | ||
21182 | cat conftest.err >&5 | ||
21183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21184 | (exit $ac_status); } && { | ||
21185 | test -z "$ac_c_werror_flag" || | ||
21186 | test ! -s conftest.err | ||
21187 | } && test -s conftest.$ac_objext; then | ||
21188 | ac_hi=$ac_mid; break | ||
21189 | else | ||
21190 | $as_echo "$as_me: failed program was:" >&5 | ||
21191 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21192 | |||
21193 | ac_lo=`expr $ac_mid + 1` | ||
21194 | if test $ac_lo -le $ac_mid; then | ||
21195 | ac_lo= ac_hi= | ||
21196 | break | ||
21197 | fi | ||
21198 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
21199 | fi | ||
21200 | |||
21201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21202 | done | ||
21203 | else | ||
21204 | $as_echo "$as_me: failed program was:" >&5 | ||
21205 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21206 | |||
21207 | cat >conftest.$ac_ext <<_ACEOF | ||
21208 | /* confdefs.h. */ | ||
21209 | _ACEOF | ||
21210 | cat confdefs.h >>conftest.$ac_ext | ||
21211 | cat >>conftest.$ac_ext <<_ACEOF | ||
21212 | /* end confdefs.h. */ | ||
21213 | $ac_includes_default | ||
21214 | int | ||
21215 | main () | ||
21216 | { | ||
21217 | static int test_array [1 - 2 * !(((long int) (sizeof (long int))) < 0)]; | ||
21218 | test_array [0] = 0 | ||
21219 | |||
21220 | ; | ||
21221 | return 0; | ||
21222 | } | ||
21223 | _ACEOF | ||
21224 | rm -f conftest.$ac_objext | ||
21225 | if { (ac_try="$ac_compile" | ||
21226 | case "(($ac_try" in | ||
21227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21228 | *) ac_try_echo=$ac_try;; | ||
21229 | esac | ||
21230 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21231 | $as_echo "$ac_try_echo") >&5 | ||
21232 | (eval "$ac_compile") 2>conftest.er1 | ||
21233 | ac_status=$? | ||
21234 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21235 | rm -f conftest.er1 | ||
21236 | cat conftest.err >&5 | ||
21237 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21238 | (exit $ac_status); } && { | ||
21239 | test -z "$ac_c_werror_flag" || | ||
21240 | test ! -s conftest.err | ||
21241 | } && test -s conftest.$ac_objext; then | ||
21242 | ac_hi=-1 ac_mid=-1 | ||
21243 | while :; do | ||
21244 | cat >conftest.$ac_ext <<_ACEOF | ||
21245 | /* confdefs.h. */ | ||
21246 | _ACEOF | ||
21247 | cat confdefs.h >>conftest.$ac_ext | ||
21248 | cat >>conftest.$ac_ext <<_ACEOF | ||
21249 | /* end confdefs.h. */ | ||
21250 | $ac_includes_default | ||
21251 | int | ||
21252 | main () | ||
21253 | { | ||
21254 | static int test_array [1 - 2 * !(((long int) (sizeof (long int))) >= $ac_mid)]; | ||
21255 | test_array [0] = 0 | ||
21256 | |||
21257 | ; | ||
21258 | return 0; | ||
21259 | } | ||
21260 | _ACEOF | ||
21261 | rm -f conftest.$ac_objext | ||
21262 | if { (ac_try="$ac_compile" | ||
21263 | case "(($ac_try" in | ||
21264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21265 | *) ac_try_echo=$ac_try;; | ||
21266 | esac | ||
21267 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21268 | $as_echo "$ac_try_echo") >&5 | ||
21269 | (eval "$ac_compile") 2>conftest.er1 | ||
21270 | ac_status=$? | ||
21271 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21272 | rm -f conftest.er1 | ||
21273 | cat conftest.err >&5 | ||
21274 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21275 | (exit $ac_status); } && { | ||
21276 | test -z "$ac_c_werror_flag" || | ||
21277 | test ! -s conftest.err | ||
21278 | } && test -s conftest.$ac_objext; then | ||
21279 | ac_lo=$ac_mid; break | ||
21280 | else | ||
21281 | $as_echo "$as_me: failed program was:" >&5 | ||
21282 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21283 | |||
21284 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
21285 | if test $ac_mid -le $ac_hi; then | ||
21286 | ac_lo= ac_hi= | ||
21287 | break | ||
21288 | fi | ||
21289 | ac_mid=`expr 2 '*' $ac_mid` | ||
21290 | fi | ||
21291 | |||
21292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21293 | done | ||
21294 | else | ||
21295 | $as_echo "$as_me: failed program was:" >&5 | ||
21296 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21297 | |||
21298 | ac_lo= ac_hi= | ||
21299 | fi | ||
21300 | |||
21301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21302 | fi | ||
21303 | |||
21304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21305 | # Binary search between lo and hi bounds. | ||
21306 | while test "x$ac_lo" != "x$ac_hi"; do | ||
21307 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
21308 | cat >conftest.$ac_ext <<_ACEOF | ||
21309 | /* confdefs.h. */ | ||
21310 | _ACEOF | ||
21311 | cat confdefs.h >>conftest.$ac_ext | ||
21312 | cat >>conftest.$ac_ext <<_ACEOF | ||
21313 | /* end confdefs.h. */ | ||
21314 | $ac_includes_default | ||
21315 | int | ||
21316 | main () | ||
21317 | { | ||
21318 | static int test_array [1 - 2 * !(((long int) (sizeof (long int))) <= $ac_mid)]; | ||
21319 | test_array [0] = 0 | ||
21320 | |||
21321 | ; | ||
21322 | return 0; | ||
21323 | } | ||
21324 | _ACEOF | ||
21325 | rm -f conftest.$ac_objext | ||
21326 | if { (ac_try="$ac_compile" | ||
21327 | case "(($ac_try" in | ||
21328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21329 | *) ac_try_echo=$ac_try;; | ||
21330 | esac | ||
21331 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21332 | $as_echo "$ac_try_echo") >&5 | ||
21333 | (eval "$ac_compile") 2>conftest.er1 | ||
21334 | ac_status=$? | ||
21335 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21336 | rm -f conftest.er1 | ||
21337 | cat conftest.err >&5 | ||
21338 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21339 | (exit $ac_status); } && { | ||
21340 | test -z "$ac_c_werror_flag" || | ||
21341 | test ! -s conftest.err | ||
21342 | } && test -s conftest.$ac_objext; then | ||
21343 | ac_hi=$ac_mid | ||
21344 | else | ||
21345 | $as_echo "$as_me: failed program was:" >&5 | ||
21346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21347 | |||
21348 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
21349 | fi | ||
21350 | |||
21351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21352 | done | ||
21353 | case $ac_lo in | ||
21354 | ?*) ac_cv_sizeof_long_int=$ac_lo;; | ||
21355 | '') if test "$ac_cv_type_long_int" = yes; then | ||
21356 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
21357 | See \`config.log' for more details." >&5 | ||
21358 | $as_echo "$as_me: error: cannot compute sizeof (long int) | ||
21359 | See \`config.log' for more details." >&2;} | ||
21360 | { (exit 77); exit 77; }; } | ||
21361 | else | ||
21362 | ac_cv_sizeof_long_int=0 | ||
21363 | fi ;; | ||
21364 | esac | ||
21365 | else | ||
21366 | cat >conftest.$ac_ext <<_ACEOF | ||
21367 | /* confdefs.h. */ | ||
21368 | _ACEOF | ||
21369 | cat confdefs.h >>conftest.$ac_ext | ||
21370 | cat >>conftest.$ac_ext <<_ACEOF | ||
21371 | /* end confdefs.h. */ | ||
21372 | $ac_includes_default | ||
21373 | static long int longval () { return (long int) (sizeof (long int)); } | ||
21374 | static unsigned long int ulongval () { return (long int) (sizeof (long int)); } | ||
21375 | #include <stdio.h> | ||
21376 | #include <stdlib.h> | ||
21377 | int | ||
21378 | main () | ||
21379 | { | ||
21380 | |||
21381 | FILE *f = fopen ("conftest.val", "w"); | ||
21382 | if (! f) | ||
21383 | return 1; | ||
21384 | if (((long int) (sizeof (long int))) < 0) | ||
21385 | { | ||
21386 | long int i = longval (); | ||
21387 | if (i != ((long int) (sizeof (long int)))) | ||
21388 | return 1; | ||
21389 | fprintf (f, "%ld", i); | ||
21390 | } | ||
21391 | else | ||
21392 | { | ||
21393 | unsigned long int i = ulongval (); | ||
21394 | if (i != ((long int) (sizeof (long int)))) | ||
21395 | return 1; | ||
21396 | fprintf (f, "%lu", i); | ||
21397 | } | ||
21398 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
21399 | on some platforms. */ | ||
21400 | return ferror (f) || fclose (f) != 0; | ||
21401 | |||
21402 | ; | ||
21403 | return 0; | ||
21404 | } | ||
21405 | _ACEOF | ||
21406 | rm -f conftest$ac_exeext | ||
21407 | if { (ac_try="$ac_link" | ||
21408 | case "(($ac_try" in | ||
21409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21410 | *) ac_try_echo=$ac_try;; | ||
21411 | esac | ||
21412 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21413 | $as_echo "$ac_try_echo") >&5 | ||
21414 | (eval "$ac_link") 2>&5 | ||
21415 | ac_status=$? | ||
21416 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21417 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21418 | { (case "(($ac_try" in | ||
21419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21420 | *) ac_try_echo=$ac_try;; | ||
21421 | esac | ||
21422 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21423 | $as_echo "$ac_try_echo") >&5 | ||
21424 | (eval "$ac_try") 2>&5 | ||
21425 | ac_status=$? | ||
21426 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21427 | (exit $ac_status); }; }; then | ||
21428 | ac_cv_sizeof_long_int=`cat conftest.val` | ||
21429 | else | ||
21430 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
21431 | $as_echo "$as_me: failed program was:" >&5 | ||
21432 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21433 | |||
21434 | ( exit $ac_status ) | ||
21435 | if test "$ac_cv_type_long_int" = yes; then | ||
21436 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long int) | ||
21437 | See \`config.log' for more details." >&5 | ||
21438 | $as_echo "$as_me: error: cannot compute sizeof (long int) | ||
21439 | See \`config.log' for more details." >&2;} | ||
21440 | { (exit 77); exit 77; }; } | ||
21441 | else | ||
21442 | ac_cv_sizeof_long_int=0 | ||
21443 | fi | ||
21444 | fi | ||
21445 | rm -rf conftest.dSYM | ||
21446 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21447 | fi | ||
21448 | rm -f conftest.val | ||
21449 | fi | ||
21450 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5 | ||
21451 | $as_echo "$ac_cv_sizeof_long_int" >&6; } | ||
21452 | |||
21453 | |||
21454 | |||
21455 | cat >>confdefs.h <<_ACEOF | ||
21456 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
21457 | _ACEOF | ||
21458 | |||
21459 | |||
21460 | # The cast to long int works around a bug in the HP C Compiler | ||
21461 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | ||
21462 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | ||
21463 | # This bug is HP SR number 8606223364. | ||
21464 | { $as_echo "$as_me:$LINENO: checking size of long long int" >&5 | ||
21465 | $as_echo_n "checking size of long long int... " >&6; } | ||
21466 | if test "${ac_cv_sizeof_long_long_int+set}" = set; then | ||
21467 | $as_echo_n "(cached) " >&6 | ||
21468 | else | ||
21469 | if test "$cross_compiling" = yes; then | ||
21470 | # Depending upon the size, compute the lo and hi bounds. | ||
21471 | cat >conftest.$ac_ext <<_ACEOF | ||
21472 | /* confdefs.h. */ | ||
21473 | _ACEOF | ||
21474 | cat confdefs.h >>conftest.$ac_ext | ||
21475 | cat >>conftest.$ac_ext <<_ACEOF | ||
21476 | /* end confdefs.h. */ | ||
21477 | $ac_includes_default | ||
21478 | int | ||
21479 | main () | ||
21480 | { | ||
21481 | static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= 0)]; | ||
21482 | test_array [0] = 0 | ||
21483 | |||
21484 | ; | ||
21485 | return 0; | ||
21486 | } | ||
21487 | _ACEOF | ||
21488 | rm -f conftest.$ac_objext | ||
21489 | if { (ac_try="$ac_compile" | ||
21490 | case "(($ac_try" in | ||
21491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21492 | *) ac_try_echo=$ac_try;; | ||
21493 | esac | ||
21494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21495 | $as_echo "$ac_try_echo") >&5 | ||
21496 | (eval "$ac_compile") 2>conftest.er1 | ||
21497 | ac_status=$? | ||
21498 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21499 | rm -f conftest.er1 | ||
21500 | cat conftest.err >&5 | ||
21501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21502 | (exit $ac_status); } && { | ||
21503 | test -z "$ac_c_werror_flag" || | ||
21504 | test ! -s conftest.err | ||
21505 | } && test -s conftest.$ac_objext; then | ||
21506 | ac_lo=0 ac_mid=0 | ||
21507 | while :; do | ||
21508 | cat >conftest.$ac_ext <<_ACEOF | ||
21509 | /* confdefs.h. */ | ||
21510 | _ACEOF | ||
21511 | cat confdefs.h >>conftest.$ac_ext | ||
21512 | cat >>conftest.$ac_ext <<_ACEOF | ||
21513 | /* end confdefs.h. */ | ||
21514 | $ac_includes_default | ||
21515 | int | ||
21516 | main () | ||
21517 | { | ||
21518 | static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)]; | ||
21519 | test_array [0] = 0 | ||
21520 | |||
21521 | ; | ||
21522 | return 0; | ||
21523 | } | ||
21524 | _ACEOF | ||
21525 | rm -f conftest.$ac_objext | ||
21526 | if { (ac_try="$ac_compile" | ||
21527 | case "(($ac_try" in | ||
21528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21529 | *) ac_try_echo=$ac_try;; | ||
21530 | esac | ||
21531 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21532 | $as_echo "$ac_try_echo") >&5 | ||
21533 | (eval "$ac_compile") 2>conftest.er1 | ||
21534 | ac_status=$? | ||
21535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21536 | rm -f conftest.er1 | ||
21537 | cat conftest.err >&5 | ||
21538 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21539 | (exit $ac_status); } && { | ||
21540 | test -z "$ac_c_werror_flag" || | ||
21541 | test ! -s conftest.err | ||
21542 | } && test -s conftest.$ac_objext; then | ||
21543 | ac_hi=$ac_mid; break | ||
21544 | else | ||
21545 | $as_echo "$as_me: failed program was:" >&5 | ||
21546 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21547 | |||
21548 | ac_lo=`expr $ac_mid + 1` | ||
21549 | if test $ac_lo -le $ac_mid; then | ||
21550 | ac_lo= ac_hi= | ||
21551 | break | ||
21552 | fi | ||
21553 | ac_mid=`expr 2 '*' $ac_mid + 1` | ||
21554 | fi | ||
21555 | |||
21556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21557 | done | ||
21558 | else | ||
21559 | $as_echo "$as_me: failed program was:" >&5 | ||
21560 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21561 | |||
21562 | cat >conftest.$ac_ext <<_ACEOF | ||
21563 | /* confdefs.h. */ | ||
21564 | _ACEOF | ||
21565 | cat confdefs.h >>conftest.$ac_ext | ||
21566 | cat >>conftest.$ac_ext <<_ACEOF | ||
21567 | /* end confdefs.h. */ | ||
21568 | $ac_includes_default | ||
21569 | int | ||
21570 | main () | ||
21571 | { | ||
21572 | static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) < 0)]; | ||
21573 | test_array [0] = 0 | ||
21574 | |||
21575 | ; | ||
21576 | return 0; | ||
21577 | } | ||
21578 | _ACEOF | ||
21579 | rm -f conftest.$ac_objext | ||
21580 | if { (ac_try="$ac_compile" | ||
21581 | case "(($ac_try" in | ||
21582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21583 | *) ac_try_echo=$ac_try;; | ||
21584 | esac | ||
21585 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21586 | $as_echo "$ac_try_echo") >&5 | ||
21587 | (eval "$ac_compile") 2>conftest.er1 | ||
21588 | ac_status=$? | ||
21589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21590 | rm -f conftest.er1 | ||
21591 | cat conftest.err >&5 | ||
21592 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21593 | (exit $ac_status); } && { | ||
21594 | test -z "$ac_c_werror_flag" || | ||
21595 | test ! -s conftest.err | ||
21596 | } && test -s conftest.$ac_objext; then | ||
21597 | ac_hi=-1 ac_mid=-1 | ||
21598 | while :; do | ||
21599 | cat >conftest.$ac_ext <<_ACEOF | ||
21600 | /* confdefs.h. */ | ||
21601 | _ACEOF | ||
21602 | cat confdefs.h >>conftest.$ac_ext | ||
21603 | cat >>conftest.$ac_ext <<_ACEOF | ||
21604 | /* end confdefs.h. */ | ||
21605 | $ac_includes_default | ||
21606 | int | ||
21607 | main () | ||
21608 | { | ||
21609 | static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) >= $ac_mid)]; | ||
21610 | test_array [0] = 0 | ||
21611 | |||
21612 | ; | ||
21613 | return 0; | ||
21614 | } | ||
21615 | _ACEOF | ||
21616 | rm -f conftest.$ac_objext | ||
21617 | if { (ac_try="$ac_compile" | ||
21618 | case "(($ac_try" in | ||
21619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21620 | *) ac_try_echo=$ac_try;; | ||
21621 | esac | ||
21622 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21623 | $as_echo "$ac_try_echo") >&5 | ||
21624 | (eval "$ac_compile") 2>conftest.er1 | ||
21625 | ac_status=$? | ||
21626 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21627 | rm -f conftest.er1 | ||
21628 | cat conftest.err >&5 | ||
21629 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21630 | (exit $ac_status); } && { | ||
21631 | test -z "$ac_c_werror_flag" || | ||
21632 | test ! -s conftest.err | ||
21633 | } && test -s conftest.$ac_objext; then | ||
21634 | ac_lo=$ac_mid; break | ||
21635 | else | ||
21636 | $as_echo "$as_me: failed program was:" >&5 | ||
21637 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21638 | |||
21639 | ac_hi=`expr '(' $ac_mid ')' - 1` | ||
21640 | if test $ac_mid -le $ac_hi; then | ||
21641 | ac_lo= ac_hi= | ||
21642 | break | ||
21643 | fi | ||
21644 | ac_mid=`expr 2 '*' $ac_mid` | ||
21645 | fi | ||
21646 | |||
21647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21648 | done | ||
21649 | else | ||
21650 | $as_echo "$as_me: failed program was:" >&5 | ||
21651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21652 | |||
21653 | ac_lo= ac_hi= | ||
21654 | fi | ||
21655 | |||
21656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21657 | fi | ||
21658 | |||
21659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21660 | # Binary search between lo and hi bounds. | ||
21661 | while test "x$ac_lo" != "x$ac_hi"; do | ||
21662 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | ||
21663 | cat >conftest.$ac_ext <<_ACEOF | ||
21664 | /* confdefs.h. */ | ||
21665 | _ACEOF | ||
21666 | cat confdefs.h >>conftest.$ac_ext | ||
21667 | cat >>conftest.$ac_ext <<_ACEOF | ||
21668 | /* end confdefs.h. */ | ||
21669 | $ac_includes_default | ||
21670 | int | ||
21671 | main () | ||
21672 | { | ||
21673 | static int test_array [1 - 2 * !(((long int) (sizeof (long long int))) <= $ac_mid)]; | ||
21674 | test_array [0] = 0 | ||
21675 | |||
21676 | ; | ||
21677 | return 0; | ||
21678 | } | ||
21679 | _ACEOF | ||
21680 | rm -f conftest.$ac_objext | ||
21681 | if { (ac_try="$ac_compile" | ||
21682 | case "(($ac_try" in | ||
21683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21684 | *) ac_try_echo=$ac_try;; | ||
21685 | esac | ||
21686 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21687 | $as_echo "$ac_try_echo") >&5 | ||
21688 | (eval "$ac_compile") 2>conftest.er1 | ||
21689 | ac_status=$? | ||
21690 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21691 | rm -f conftest.er1 | ||
21692 | cat conftest.err >&5 | ||
21693 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21694 | (exit $ac_status); } && { | ||
21695 | test -z "$ac_c_werror_flag" || | ||
21696 | test ! -s conftest.err | ||
21697 | } && test -s conftest.$ac_objext; then | ||
21698 | ac_hi=$ac_mid | ||
21699 | else | ||
21700 | $as_echo "$as_me: failed program was:" >&5 | ||
21701 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21702 | |||
21703 | ac_lo=`expr '(' $ac_mid ')' + 1` | ||
21704 | fi | ||
21705 | |||
21706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21707 | done | ||
21708 | case $ac_lo in | ||
21709 | ?*) ac_cv_sizeof_long_long_int=$ac_lo;; | ||
21710 | '') if test "$ac_cv_type_long_long_int" = yes; then | ||
21711 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
21712 | See \`config.log' for more details." >&5 | ||
21713 | $as_echo "$as_me: error: cannot compute sizeof (long long int) | ||
21714 | See \`config.log' for more details." >&2;} | ||
21715 | { (exit 77); exit 77; }; } | ||
21716 | else | ||
21717 | ac_cv_sizeof_long_long_int=0 | ||
21718 | fi ;; | ||
21719 | esac | ||
21720 | else | ||
21721 | cat >conftest.$ac_ext <<_ACEOF | ||
21722 | /* confdefs.h. */ | ||
21723 | _ACEOF | ||
21724 | cat confdefs.h >>conftest.$ac_ext | ||
21725 | cat >>conftest.$ac_ext <<_ACEOF | ||
21726 | /* end confdefs.h. */ | ||
21727 | $ac_includes_default | ||
21728 | static long int longval () { return (long int) (sizeof (long long int)); } | ||
21729 | static unsigned long int ulongval () { return (long int) (sizeof (long long int)); } | ||
21730 | #include <stdio.h> | ||
21731 | #include <stdlib.h> | ||
21732 | int | ||
21733 | main () | ||
21734 | { | ||
21735 | |||
21736 | FILE *f = fopen ("conftest.val", "w"); | ||
21737 | if (! f) | ||
21738 | return 1; | ||
21739 | if (((long int) (sizeof (long long int))) < 0) | ||
21740 | { | ||
21741 | long int i = longval (); | ||
21742 | if (i != ((long int) (sizeof (long long int)))) | ||
21743 | return 1; | ||
21744 | fprintf (f, "%ld", i); | ||
21745 | } | ||
21746 | else | ||
21747 | { | ||
21748 | unsigned long int i = ulongval (); | ||
21749 | if (i != ((long int) (sizeof (long long int)))) | ||
21750 | return 1; | ||
21751 | fprintf (f, "%lu", i); | ||
21752 | } | ||
21753 | /* Do not output a trailing newline, as this causes \r\n confusion | ||
21754 | on some platforms. */ | ||
21755 | return ferror (f) || fclose (f) != 0; | ||
21756 | |||
21757 | ; | ||
21758 | return 0; | ||
21759 | } | ||
21760 | _ACEOF | ||
21761 | rm -f conftest$ac_exeext | ||
21762 | if { (ac_try="$ac_link" | ||
21763 | case "(($ac_try" in | ||
21764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21765 | *) ac_try_echo=$ac_try;; | ||
21766 | esac | ||
21767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21768 | $as_echo "$ac_try_echo") >&5 | ||
21769 | (eval "$ac_link") 2>&5 | ||
21770 | ac_status=$? | ||
21771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21772 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21773 | { (case "(($ac_try" in | ||
21774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21775 | *) ac_try_echo=$ac_try;; | ||
21776 | esac | ||
21777 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21778 | $as_echo "$ac_try_echo") >&5 | ||
21779 | (eval "$ac_try") 2>&5 | ||
21780 | ac_status=$? | ||
21781 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21782 | (exit $ac_status); }; }; then | ||
21783 | ac_cv_sizeof_long_long_int=`cat conftest.val` | ||
21784 | else | ||
21785 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
21786 | $as_echo "$as_me: failed program was:" >&5 | ||
21787 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21788 | |||
21789 | ( exit $ac_status ) | ||
21790 | if test "$ac_cv_type_long_long_int" = yes; then | ||
21791 | { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long int) | ||
21792 | See \`config.log' for more details." >&5 | ||
21793 | $as_echo "$as_me: error: cannot compute sizeof (long long int) | ||
21794 | See \`config.log' for more details." >&2;} | ||
21795 | { (exit 77); exit 77; }; } | ||
21796 | else | ||
21797 | ac_cv_sizeof_long_long_int=0 | ||
21798 | fi | ||
21799 | fi | ||
21800 | rm -rf conftest.dSYM | ||
21801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21802 | fi | ||
21803 | rm -f conftest.val | ||
21804 | fi | ||
21805 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5 | ||
21806 | $as_echo "$ac_cv_sizeof_long_long_int" >&6; } | ||
21807 | |||
21808 | |||
21809 | |||
21810 | cat >>confdefs.h <<_ACEOF | ||
21811 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
21812 | _ACEOF | ||
21813 | |||
21814 | |||
21815 | |||
21816 | # Sanity check long long for some platforms (AIX) | ||
21817 | if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then | ||
21818 | ac_cv_sizeof_long_long_int=0 | ||
21819 | fi | ||
21820 | |||
21821 | # compute LLONG_MIN and LLONG_MAX if we don't know them. | ||
21822 | if test -z "$have_llong_max"; then | ||
21823 | { $as_echo "$as_me:$LINENO: checking for max value of long long" >&5 | ||
21824 | $as_echo_n "checking for max value of long long... " >&6; } | ||
21825 | if test "$cross_compiling" = yes; then | ||
21826 | |||
21827 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking" >&5 | ||
21828 | $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;} | ||
21829 | |||
21830 | |||
21831 | else | ||
21832 | cat >conftest.$ac_ext <<_ACEOF | ||
21833 | /* confdefs.h. */ | ||
21834 | _ACEOF | ||
21835 | cat confdefs.h >>conftest.$ac_ext | ||
21836 | cat >>conftest.$ac_ext <<_ACEOF | ||
21837 | /* end confdefs.h. */ | ||
21838 | |||
21839 | #include <stdio.h> | ||
21840 | /* Why is this so damn hard? */ | ||
21841 | #ifdef __GNUC__ | ||
21842 | # undef __GNUC__ | ||
21843 | #endif | ||
21844 | #define __USE_ISOC99 | ||
21845 | #include <limits.h> | ||
21846 | #define DATA "conftest.llminmax" | ||
21847 | #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a)) | ||
21848 | |||
21849 | /* | ||
21850 | * printf in libc on some platforms (eg old Tru64) does not understand %lld so | ||
21851 | * we do this the hard way. | ||
21852 | */ | ||
21853 | static int | ||
21854 | fprint_ll(FILE *f, long long n) | ||
21855 | { | ||
21856 | unsigned int i; | ||
21857 | int l[sizeof(long long) * 8]; | ||
21858 | |||
21859 | if (n < 0) | ||
21860 | if (fprintf(f, "-") < 0) | ||
21861 | return -1; | ||
21862 | for (i = 0; n != 0; i++) { | ||
21863 | l[i] = my_abs(n % 10); | ||
21864 | n /= 10; | ||
21865 | } | ||
21866 | do { | ||
21867 | if (fprintf(f, "%d", l[--i]) < 0) | ||
21868 | return -1; | ||
21869 | } while (i != 0); | ||
21870 | if (fprintf(f, " ") < 0) | ||
21871 | return -1; | ||
21872 | return 0; | ||
21873 | } | ||
21874 | |||
21875 | int main(void) { | ||
21876 | FILE *f; | ||
21877 | long long i, llmin, llmax = 0; | ||
21878 | |||
21879 | if((f = fopen(DATA,"w")) == NULL) | ||
21880 | exit(1); | ||
21881 | |||
21882 | #if defined(LLONG_MIN) && defined(LLONG_MAX) | ||
21883 | fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n"); | ||
21884 | llmin = LLONG_MIN; | ||
21885 | llmax = LLONG_MAX; | ||
21886 | #else | ||
21887 | fprintf(stderr, "Calculating LLONG_MIN and LLONG_MAX\n"); | ||
21888 | /* This will work on one's complement and two's complement */ | ||
21889 | for (i = 1; i > llmax; i <<= 1, i++) | ||
21890 | llmax = i; | ||
21891 | llmin = llmax + 1LL; /* wrap */ | ||
21892 | #endif | ||
21893 | |||
21894 | /* Sanity check */ | ||
21895 | if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax | ||
21896 | || llmax - 1 > llmax || llmin == llmax || llmin == 0 | ||
21897 | || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) { | ||
21898 | fprintf(f, "unknown unknown\n"); | ||
21899 | exit(2); | ||
21900 | } | ||
21901 | |||
21902 | if (fprint_ll(f, llmin) < 0) | ||
21903 | exit(3); | ||
21904 | if (fprint_ll(f, llmax) < 0) | ||
21905 | exit(4); | ||
21906 | if (fclose(f) < 0) | ||
21907 | exit(5); | ||
21908 | exit(0); | ||
21909 | } | ||
21910 | |||
21911 | _ACEOF | ||
21912 | rm -f conftest$ac_exeext | ||
21913 | if { (ac_try="$ac_link" | ||
21914 | case "(($ac_try" in | ||
21915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21916 | *) ac_try_echo=$ac_try;; | ||
21917 | esac | ||
21918 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21919 | $as_echo "$ac_try_echo") >&5 | ||
21920 | (eval "$ac_link") 2>&5 | ||
21921 | ac_status=$? | ||
21922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21923 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21924 | { (case "(($ac_try" in | ||
21925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21926 | *) ac_try_echo=$ac_try;; | ||
21927 | esac | ||
21928 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
21929 | $as_echo "$ac_try_echo") >&5 | ||
21930 | (eval "$ac_try") 2>&5 | ||
21931 | ac_status=$? | ||
21932 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21933 | (exit $ac_status); }; }; then | ||
21934 | |||
21935 | llong_min=`$AWK '{print $1}' conftest.llminmax` | ||
21936 | llong_max=`$AWK '{print $2}' conftest.llminmax` | ||
21937 | |||
21938 | { $as_echo "$as_me:$LINENO: result: $llong_max" >&5 | ||
21939 | $as_echo "$llong_max" >&6; } | ||
21940 | |||
21941 | cat >>confdefs.h <<_ACEOF | ||
21942 | #define LLONG_MAX ${llong_max}LL | ||
21943 | _ACEOF | ||
21944 | |||
21945 | { $as_echo "$as_me:$LINENO: checking for min value of long long" >&5 | ||
21946 | $as_echo_n "checking for min value of long long... " >&6; } | ||
21947 | { $as_echo "$as_me:$LINENO: result: $llong_min" >&5 | ||
21948 | $as_echo "$llong_min" >&6; } | ||
21949 | |||
21950 | cat >>confdefs.h <<_ACEOF | ||
21951 | #define LLONG_MIN ${llong_min}LL | ||
21952 | _ACEOF | ||
21953 | |||
21954 | |||
21955 | else | ||
21956 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
21957 | $as_echo "$as_me: failed program was:" >&5 | ||
21958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21959 | |||
21960 | ( exit $ac_status ) | ||
21961 | |||
21962 | { $as_echo "$as_me:$LINENO: result: not found" >&5 | ||
21963 | $as_echo "not found" >&6; } | ||
21964 | |||
21965 | fi | ||
21966 | rm -rf conftest.dSYM | ||
21967 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21968 | fi | ||
21969 | |||
21970 | |||
21971 | fi | ||
21972 | |||
21973 | |||
21974 | # More checks for data types | ||
21975 | { $as_echo "$as_me:$LINENO: checking for u_int type" >&5 | ||
21976 | $as_echo_n "checking for u_int type... " >&6; } | ||
21977 | if test "${ac_cv_have_u_int+set}" = set; then | ||
21978 | $as_echo_n "(cached) " >&6 | ||
21979 | else | ||
21980 | |||
21981 | cat >conftest.$ac_ext <<_ACEOF | ||
21982 | /* confdefs.h. */ | ||
21983 | _ACEOF | ||
21984 | cat confdefs.h >>conftest.$ac_ext | ||
21985 | cat >>conftest.$ac_ext <<_ACEOF | ||
21986 | /* end confdefs.h. */ | ||
21987 | #include <sys/types.h> | ||
21988 | int | ||
21989 | main () | ||
21990 | { | ||
21991 | u_int a; a = 1; | ||
21992 | ; | ||
21993 | return 0; | ||
21994 | } | ||
21995 | _ACEOF | ||
21996 | rm -f conftest.$ac_objext | ||
21997 | if { (ac_try="$ac_compile" | ||
21998 | case "(($ac_try" in | ||
21999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22000 | *) ac_try_echo=$ac_try;; | ||
22001 | esac | ||
22002 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22003 | $as_echo "$ac_try_echo") >&5 | ||
22004 | (eval "$ac_compile") 2>conftest.er1 | ||
22005 | ac_status=$? | ||
22006 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22007 | rm -f conftest.er1 | ||
22008 | cat conftest.err >&5 | ||
22009 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22010 | (exit $ac_status); } && { | ||
22011 | test -z "$ac_c_werror_flag" || | ||
22012 | test ! -s conftest.err | ||
22013 | } && test -s conftest.$ac_objext; then | ||
22014 | ac_cv_have_u_int="yes" | ||
22015 | else | ||
22016 | $as_echo "$as_me: failed program was:" >&5 | ||
22017 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22018 | |||
22019 | ac_cv_have_u_int="no" | ||
22020 | |||
22021 | fi | ||
22022 | |||
22023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22024 | |||
22025 | fi | ||
22026 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5 | ||
22027 | $as_echo "$ac_cv_have_u_int" >&6; } | ||
22028 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
22029 | |||
22030 | cat >>confdefs.h <<\_ACEOF | ||
22031 | #define HAVE_U_INT 1 | ||
22032 | _ACEOF | ||
22033 | |||
22034 | have_u_int=1 | ||
22035 | fi | ||
22036 | |||
22037 | { $as_echo "$as_me:$LINENO: checking for intXX_t types" >&5 | ||
22038 | $as_echo_n "checking for intXX_t types... " >&6; } | ||
22039 | if test "${ac_cv_have_intxx_t+set}" = set; then | ||
22040 | $as_echo_n "(cached) " >&6 | ||
22041 | else | ||
22042 | |||
22043 | cat >conftest.$ac_ext <<_ACEOF | ||
22044 | /* confdefs.h. */ | ||
22045 | _ACEOF | ||
22046 | cat confdefs.h >>conftest.$ac_ext | ||
22047 | cat >>conftest.$ac_ext <<_ACEOF | ||
22048 | /* end confdefs.h. */ | ||
22049 | #include <sys/types.h> | ||
22050 | int | ||
22051 | main () | ||
22052 | { | ||
22053 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
22054 | ; | ||
22055 | return 0; | ||
22056 | } | ||
22057 | _ACEOF | ||
22058 | rm -f conftest.$ac_objext | ||
22059 | if { (ac_try="$ac_compile" | ||
22060 | case "(($ac_try" in | ||
22061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22062 | *) ac_try_echo=$ac_try;; | ||
22063 | esac | ||
22064 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22065 | $as_echo "$ac_try_echo") >&5 | ||
22066 | (eval "$ac_compile") 2>conftest.er1 | ||
22067 | ac_status=$? | ||
22068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22069 | rm -f conftest.er1 | ||
22070 | cat conftest.err >&5 | ||
22071 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22072 | (exit $ac_status); } && { | ||
22073 | test -z "$ac_c_werror_flag" || | ||
22074 | test ! -s conftest.err | ||
22075 | } && test -s conftest.$ac_objext; then | ||
22076 | ac_cv_have_intxx_t="yes" | ||
22077 | else | ||
22078 | $as_echo "$as_me: failed program was:" >&5 | ||
22079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22080 | |||
22081 | ac_cv_have_intxx_t="no" | ||
22082 | |||
22083 | fi | ||
22084 | |||
22085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22086 | |||
22087 | fi | ||
22088 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5 | ||
22089 | $as_echo "$ac_cv_have_intxx_t" >&6; } | ||
22090 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
22091 | |||
22092 | cat >>confdefs.h <<\_ACEOF | ||
22093 | #define HAVE_INTXX_T 1 | ||
22094 | _ACEOF | ||
22095 | |||
22096 | have_intxx_t=1 | ||
22097 | fi | ||
22098 | |||
22099 | if (test -z "$have_intxx_t" && \ | ||
22100 | test "x$ac_cv_header_stdint_h" = "xyes") | ||
22101 | then | ||
22102 | { $as_echo "$as_me:$LINENO: checking for intXX_t types in stdint.h" >&5 | ||
22103 | $as_echo_n "checking for intXX_t types in stdint.h... " >&6; } | ||
22104 | cat >conftest.$ac_ext <<_ACEOF | ||
22105 | /* confdefs.h. */ | ||
22106 | _ACEOF | ||
22107 | cat confdefs.h >>conftest.$ac_ext | ||
22108 | cat >>conftest.$ac_ext <<_ACEOF | ||
22109 | /* end confdefs.h. */ | ||
22110 | #include <stdint.h> | ||
22111 | int | ||
22112 | main () | ||
22113 | { | ||
22114 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
22115 | ; | ||
22116 | return 0; | ||
22117 | } | ||
22118 | _ACEOF | ||
22119 | rm -f conftest.$ac_objext | ||
22120 | if { (ac_try="$ac_compile" | ||
22121 | case "(($ac_try" in | ||
22122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22123 | *) ac_try_echo=$ac_try;; | ||
22124 | esac | ||
22125 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22126 | $as_echo "$ac_try_echo") >&5 | ||
22127 | (eval "$ac_compile") 2>conftest.er1 | ||
22128 | ac_status=$? | ||
22129 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22130 | rm -f conftest.er1 | ||
22131 | cat conftest.err >&5 | ||
22132 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22133 | (exit $ac_status); } && { | ||
22134 | test -z "$ac_c_werror_flag" || | ||
22135 | test ! -s conftest.err | ||
22136 | } && test -s conftest.$ac_objext; then | ||
22137 | |||
22138 | cat >>confdefs.h <<\_ACEOF | ||
22139 | #define HAVE_INTXX_T 1 | ||
22140 | _ACEOF | ||
22141 | |||
22142 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
22143 | $as_echo "yes" >&6; } | ||
22144 | |||
22145 | else | ||
22146 | $as_echo "$as_me: failed program was:" >&5 | ||
22147 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22148 | |||
22149 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
22150 | $as_echo "no" >&6; } | ||
22151 | |||
22152 | fi | ||
22153 | |||
22154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22155 | fi | ||
22156 | |||
22157 | { $as_echo "$as_me:$LINENO: checking for int64_t type" >&5 | ||
22158 | $as_echo_n "checking for int64_t type... " >&6; } | ||
22159 | if test "${ac_cv_have_int64_t+set}" = set; then | ||
22160 | $as_echo_n "(cached) " >&6 | ||
22161 | else | ||
22162 | |||
22163 | cat >conftest.$ac_ext <<_ACEOF | ||
22164 | /* confdefs.h. */ | ||
22165 | _ACEOF | ||
22166 | cat confdefs.h >>conftest.$ac_ext | ||
22167 | cat >>conftest.$ac_ext <<_ACEOF | ||
22168 | /* end confdefs.h. */ | ||
22169 | |||
22170 | #include <sys/types.h> | ||
22171 | #ifdef HAVE_STDINT_H | ||
22172 | # include <stdint.h> | ||
22173 | #endif | ||
22174 | #include <sys/socket.h> | ||
22175 | #ifdef HAVE_SYS_BITYPES_H | ||
22176 | # include <sys/bitypes.h> | ||
22177 | #endif | ||
22178 | |||
22179 | int | ||
22180 | main () | ||
22181 | { | ||
22182 | int64_t a; a = 1; | ||
22183 | ; | ||
22184 | return 0; | ||
22185 | } | ||
22186 | _ACEOF | ||
22187 | rm -f conftest.$ac_objext | ||
22188 | if { (ac_try="$ac_compile" | ||
22189 | case "(($ac_try" in | ||
22190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22191 | *) ac_try_echo=$ac_try;; | ||
22192 | esac | ||
22193 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22194 | $as_echo "$ac_try_echo") >&5 | ||
22195 | (eval "$ac_compile") 2>conftest.er1 | ||
22196 | ac_status=$? | ||
22197 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22198 | rm -f conftest.er1 | ||
22199 | cat conftest.err >&5 | ||
22200 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22201 | (exit $ac_status); } && { | ||
22202 | test -z "$ac_c_werror_flag" || | ||
22203 | test ! -s conftest.err | ||
22204 | } && test -s conftest.$ac_objext; then | ||
22205 | ac_cv_have_int64_t="yes" | ||
22206 | else | ||
22207 | $as_echo "$as_me: failed program was:" >&5 | ||
22208 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22209 | |||
22210 | ac_cv_have_int64_t="no" | ||
22211 | |||
22212 | fi | ||
22213 | |||
22214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22215 | |||
22216 | fi | ||
22217 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5 | ||
22218 | $as_echo "$ac_cv_have_int64_t" >&6; } | ||
22219 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
22220 | |||
22221 | cat >>confdefs.h <<\_ACEOF | ||
22222 | #define HAVE_INT64_T 1 | ||
22223 | _ACEOF | ||
22224 | |||
22225 | fi | ||
22226 | |||
22227 | { $as_echo "$as_me:$LINENO: checking for u_intXX_t types" >&5 | ||
22228 | $as_echo_n "checking for u_intXX_t types... " >&6; } | ||
22229 | if test "${ac_cv_have_u_intxx_t+set}" = set; then | ||
22230 | $as_echo_n "(cached) " >&6 | ||
22231 | else | ||
22232 | |||
22233 | cat >conftest.$ac_ext <<_ACEOF | ||
22234 | /* confdefs.h. */ | ||
22235 | _ACEOF | ||
22236 | cat confdefs.h >>conftest.$ac_ext | ||
22237 | cat >>conftest.$ac_ext <<_ACEOF | ||
22238 | /* end confdefs.h. */ | ||
22239 | #include <sys/types.h> | ||
22240 | int | ||
22241 | main () | ||
22242 | { | ||
22243 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
22244 | ; | ||
22245 | return 0; | ||
22246 | } | ||
22247 | _ACEOF | ||
22248 | rm -f conftest.$ac_objext | ||
22249 | if { (ac_try="$ac_compile" | ||
22250 | case "(($ac_try" in | ||
22251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22252 | *) ac_try_echo=$ac_try;; | ||
22253 | esac | ||
22254 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22255 | $as_echo "$ac_try_echo") >&5 | ||
22256 | (eval "$ac_compile") 2>conftest.er1 | ||
22257 | ac_status=$? | ||
22258 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22259 | rm -f conftest.er1 | ||
22260 | cat conftest.err >&5 | ||
22261 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22262 | (exit $ac_status); } && { | ||
22263 | test -z "$ac_c_werror_flag" || | ||
22264 | test ! -s conftest.err | ||
22265 | } && test -s conftest.$ac_objext; then | ||
22266 | ac_cv_have_u_intxx_t="yes" | ||
22267 | else | ||
22268 | $as_echo "$as_me: failed program was:" >&5 | ||
22269 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22270 | |||
22271 | ac_cv_have_u_intxx_t="no" | ||
22272 | |||
22273 | fi | ||
22274 | |||
22275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22276 | |||
22277 | fi | ||
22278 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5 | ||
22279 | $as_echo "$ac_cv_have_u_intxx_t" >&6; } | ||
22280 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
22281 | |||
22282 | cat >>confdefs.h <<\_ACEOF | ||
22283 | #define HAVE_U_INTXX_T 1 | ||
22284 | _ACEOF | ||
22285 | |||
22286 | have_u_intxx_t=1 | ||
22287 | fi | ||
22288 | |||
22289 | if test -z "$have_u_intxx_t" ; then | ||
22290 | { $as_echo "$as_me:$LINENO: checking for u_intXX_t types in sys/socket.h" >&5 | ||
22291 | $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; } | ||
22292 | cat >conftest.$ac_ext <<_ACEOF | ||
22293 | /* confdefs.h. */ | ||
22294 | _ACEOF | ||
22295 | cat confdefs.h >>conftest.$ac_ext | ||
22296 | cat >>conftest.$ac_ext <<_ACEOF | ||
22297 | /* end confdefs.h. */ | ||
22298 | #include <sys/socket.h> | ||
22299 | int | ||
22300 | main () | ||
22301 | { | ||
22302 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
22303 | ; | ||
22304 | return 0; | ||
22305 | } | ||
22306 | _ACEOF | ||
22307 | rm -f conftest.$ac_objext | ||
22308 | if { (ac_try="$ac_compile" | ||
22309 | case "(($ac_try" in | ||
22310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22311 | *) ac_try_echo=$ac_try;; | ||
22312 | esac | ||
22313 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22314 | $as_echo "$ac_try_echo") >&5 | ||
22315 | (eval "$ac_compile") 2>conftest.er1 | ||
22316 | ac_status=$? | ||
22317 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22318 | rm -f conftest.er1 | ||
22319 | cat conftest.err >&5 | ||
22320 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22321 | (exit $ac_status); } && { | ||
22322 | test -z "$ac_c_werror_flag" || | ||
22323 | test ! -s conftest.err | ||
22324 | } && test -s conftest.$ac_objext; then | ||
22325 | |||
22326 | cat >>confdefs.h <<\_ACEOF | ||
22327 | #define HAVE_U_INTXX_T 1 | ||
22328 | _ACEOF | ||
22329 | |||
22330 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
22331 | $as_echo "yes" >&6; } | ||
22332 | |||
22333 | else | ||
22334 | $as_echo "$as_me: failed program was:" >&5 | ||
22335 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22336 | |||
22337 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
22338 | $as_echo "no" >&6; } | ||
22339 | |||
22340 | fi | ||
22341 | |||
22342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22343 | fi | ||
22344 | |||
22345 | { $as_echo "$as_me:$LINENO: checking for u_int64_t types" >&5 | ||
22346 | $as_echo_n "checking for u_int64_t types... " >&6; } | ||
22347 | if test "${ac_cv_have_u_int64_t+set}" = set; then | ||
22348 | $as_echo_n "(cached) " >&6 | ||
22349 | else | ||
22350 | |||
22351 | cat >conftest.$ac_ext <<_ACEOF | ||
22352 | /* confdefs.h. */ | ||
22353 | _ACEOF | ||
22354 | cat confdefs.h >>conftest.$ac_ext | ||
22355 | cat >>conftest.$ac_ext <<_ACEOF | ||
22356 | /* end confdefs.h. */ | ||
22357 | #include <sys/types.h> | ||
22358 | int | ||
22359 | main () | ||
22360 | { | ||
22361 | u_int64_t a; a = 1; | ||
22362 | ; | ||
22363 | return 0; | ||
22364 | } | ||
22365 | _ACEOF | ||
22366 | rm -f conftest.$ac_objext | ||
22367 | if { (ac_try="$ac_compile" | ||
22368 | case "(($ac_try" in | ||
22369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22370 | *) ac_try_echo=$ac_try;; | ||
22371 | esac | ||
22372 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22373 | $as_echo "$ac_try_echo") >&5 | ||
22374 | (eval "$ac_compile") 2>conftest.er1 | ||
22375 | ac_status=$? | ||
22376 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22377 | rm -f conftest.er1 | ||
22378 | cat conftest.err >&5 | ||
22379 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22380 | (exit $ac_status); } && { | ||
22381 | test -z "$ac_c_werror_flag" || | ||
22382 | test ! -s conftest.err | ||
22383 | } && test -s conftest.$ac_objext; then | ||
22384 | ac_cv_have_u_int64_t="yes" | ||
22385 | else | ||
22386 | $as_echo "$as_me: failed program was:" >&5 | ||
22387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22388 | |||
22389 | ac_cv_have_u_int64_t="no" | ||
22390 | |||
22391 | fi | ||
22392 | |||
22393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22394 | |||
22395 | fi | ||
22396 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5 | ||
22397 | $as_echo "$ac_cv_have_u_int64_t" >&6; } | ||
22398 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
22399 | |||
22400 | cat >>confdefs.h <<\_ACEOF | ||
22401 | #define HAVE_U_INT64_T 1 | ||
22402 | _ACEOF | ||
22403 | |||
22404 | have_u_int64_t=1 | ||
22405 | fi | ||
22406 | |||
22407 | if test -z "$have_u_int64_t" ; then | ||
22408 | { $as_echo "$as_me:$LINENO: checking for u_int64_t type in sys/bitypes.h" >&5 | ||
22409 | $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; } | ||
22410 | cat >conftest.$ac_ext <<_ACEOF | ||
22411 | /* confdefs.h. */ | ||
22412 | _ACEOF | ||
22413 | cat confdefs.h >>conftest.$ac_ext | ||
22414 | cat >>conftest.$ac_ext <<_ACEOF | ||
22415 | /* end confdefs.h. */ | ||
22416 | #include <sys/bitypes.h> | ||
22417 | int | ||
22418 | main () | ||
22419 | { | ||
22420 | u_int64_t a; a = 1 | ||
22421 | ; | ||
22422 | return 0; | ||
22423 | } | ||
22424 | _ACEOF | ||
22425 | rm -f conftest.$ac_objext | ||
22426 | if { (ac_try="$ac_compile" | ||
22427 | case "(($ac_try" in | ||
22428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22429 | *) ac_try_echo=$ac_try;; | ||
22430 | esac | ||
22431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22432 | $as_echo "$ac_try_echo") >&5 | ||
22433 | (eval "$ac_compile") 2>conftest.er1 | ||
22434 | ac_status=$? | ||
22435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22436 | rm -f conftest.er1 | ||
22437 | cat conftest.err >&5 | ||
22438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22439 | (exit $ac_status); } && { | ||
22440 | test -z "$ac_c_werror_flag" || | ||
22441 | test ! -s conftest.err | ||
22442 | } && test -s conftest.$ac_objext; then | ||
22443 | |||
22444 | cat >>confdefs.h <<\_ACEOF | ||
22445 | #define HAVE_U_INT64_T 1 | ||
22446 | _ACEOF | ||
22447 | |||
22448 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
22449 | $as_echo "yes" >&6; } | ||
22450 | |||
22451 | else | ||
22452 | $as_echo "$as_me: failed program was:" >&5 | ||
22453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22454 | |||
22455 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
22456 | $as_echo "no" >&6; } | ||
22457 | |||
22458 | fi | ||
22459 | |||
22460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22461 | fi | ||
22462 | |||
22463 | if test -z "$have_u_intxx_t" ; then | ||
22464 | { $as_echo "$as_me:$LINENO: checking for uintXX_t types" >&5 | ||
22465 | $as_echo_n "checking for uintXX_t types... " >&6; } | ||
22466 | if test "${ac_cv_have_uintxx_t+set}" = set; then | ||
22467 | $as_echo_n "(cached) " >&6 | ||
22468 | else | ||
22469 | |||
22470 | cat >conftest.$ac_ext <<_ACEOF | ||
22471 | /* confdefs.h. */ | ||
22472 | _ACEOF | ||
22473 | cat confdefs.h >>conftest.$ac_ext | ||
22474 | cat >>conftest.$ac_ext <<_ACEOF | ||
22475 | /* end confdefs.h. */ | ||
22476 | |||
22477 | #include <sys/types.h> | ||
22478 | |||
22479 | int | ||
22480 | main () | ||
22481 | { | ||
22482 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
22483 | ; | ||
22484 | return 0; | ||
22485 | } | ||
22486 | _ACEOF | ||
22487 | rm -f conftest.$ac_objext | ||
22488 | if { (ac_try="$ac_compile" | ||
22489 | case "(($ac_try" in | ||
22490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22491 | *) ac_try_echo=$ac_try;; | ||
22492 | esac | ||
22493 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22494 | $as_echo "$ac_try_echo") >&5 | ||
22495 | (eval "$ac_compile") 2>conftest.er1 | ||
22496 | ac_status=$? | ||
22497 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22498 | rm -f conftest.er1 | ||
22499 | cat conftest.err >&5 | ||
22500 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22501 | (exit $ac_status); } && { | ||
22502 | test -z "$ac_c_werror_flag" || | ||
22503 | test ! -s conftest.err | ||
22504 | } && test -s conftest.$ac_objext; then | ||
22505 | ac_cv_have_uintxx_t="yes" | ||
22506 | else | ||
22507 | $as_echo "$as_me: failed program was:" >&5 | ||
22508 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22509 | |||
22510 | ac_cv_have_uintxx_t="no" | ||
22511 | |||
22512 | fi | ||
22513 | |||
22514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22515 | |||
22516 | fi | ||
22517 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5 | ||
22518 | $as_echo "$ac_cv_have_uintxx_t" >&6; } | ||
22519 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
22520 | |||
22521 | cat >>confdefs.h <<\_ACEOF | ||
22522 | #define HAVE_UINTXX_T 1 | ||
22523 | _ACEOF | ||
22524 | |||
22525 | fi | ||
22526 | fi | ||
22527 | |||
22528 | if test -z "$have_uintxx_t" ; then | ||
22529 | { $as_echo "$as_me:$LINENO: checking for uintXX_t types in stdint.h" >&5 | ||
22530 | $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; } | ||
22531 | cat >conftest.$ac_ext <<_ACEOF | ||
22532 | /* confdefs.h. */ | ||
22533 | _ACEOF | ||
22534 | cat confdefs.h >>conftest.$ac_ext | ||
22535 | cat >>conftest.$ac_ext <<_ACEOF | ||
22536 | /* end confdefs.h. */ | ||
22537 | #include <stdint.h> | ||
22538 | int | ||
22539 | main () | ||
22540 | { | ||
22541 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
22542 | ; | ||
22543 | return 0; | ||
22544 | } | ||
22545 | _ACEOF | ||
22546 | rm -f conftest.$ac_objext | ||
22547 | if { (ac_try="$ac_compile" | ||
22548 | case "(($ac_try" in | ||
22549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22550 | *) ac_try_echo=$ac_try;; | ||
22551 | esac | ||
22552 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22553 | $as_echo "$ac_try_echo") >&5 | ||
22554 | (eval "$ac_compile") 2>conftest.er1 | ||
22555 | ac_status=$? | ||
22556 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22557 | rm -f conftest.er1 | ||
22558 | cat conftest.err >&5 | ||
22559 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22560 | (exit $ac_status); } && { | ||
22561 | test -z "$ac_c_werror_flag" || | ||
22562 | test ! -s conftest.err | ||
22563 | } && test -s conftest.$ac_objext; then | ||
22564 | |||
22565 | cat >>confdefs.h <<\_ACEOF | ||
22566 | #define HAVE_UINTXX_T 1 | ||
22567 | _ACEOF | ||
22568 | |||
22569 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
22570 | $as_echo "yes" >&6; } | ||
22571 | |||
22572 | else | ||
22573 | $as_echo "$as_me: failed program was:" >&5 | ||
22574 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22575 | |||
22576 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
22577 | $as_echo "no" >&6; } | ||
22578 | |||
22579 | fi | ||
22580 | |||
22581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22582 | fi | ||
22583 | |||
22584 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
22585 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
22586 | then | ||
22587 | { $as_echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
22588 | $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; } | ||
22589 | cat >conftest.$ac_ext <<_ACEOF | ||
22590 | /* confdefs.h. */ | ||
22591 | _ACEOF | ||
22592 | cat confdefs.h >>conftest.$ac_ext | ||
22593 | cat >>conftest.$ac_ext <<_ACEOF | ||
22594 | /* end confdefs.h. */ | ||
22595 | |||
22596 | #include <sys/bitypes.h> | ||
22597 | |||
22598 | int | ||
22599 | main () | ||
22600 | { | ||
22601 | |||
22602 | int8_t a; int16_t b; int32_t c; | ||
22603 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
22604 | a = b = c = e = f = g = 1; | ||
22605 | |||
22606 | ; | ||
22607 | return 0; | ||
22608 | } | ||
22609 | _ACEOF | ||
22610 | rm -f conftest.$ac_objext | ||
22611 | if { (ac_try="$ac_compile" | ||
22612 | case "(($ac_try" in | ||
22613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22614 | *) ac_try_echo=$ac_try;; | ||
22615 | esac | ||
22616 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22617 | $as_echo "$ac_try_echo") >&5 | ||
22618 | (eval "$ac_compile") 2>conftest.er1 | ||
22619 | ac_status=$? | ||
22620 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22621 | rm -f conftest.er1 | ||
22622 | cat conftest.err >&5 | ||
22623 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22624 | (exit $ac_status); } && { | ||
22625 | test -z "$ac_c_werror_flag" || | ||
22626 | test ! -s conftest.err | ||
22627 | } && test -s conftest.$ac_objext; then | ||
22628 | |||
22629 | cat >>confdefs.h <<\_ACEOF | ||
22630 | #define HAVE_U_INTXX_T 1 | ||
22631 | _ACEOF | ||
22632 | |||
22633 | cat >>confdefs.h <<\_ACEOF | ||
22634 | #define HAVE_INTXX_T 1 | ||
22635 | _ACEOF | ||
22636 | |||
22637 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
22638 | $as_echo "yes" >&6; } | ||
22639 | |||
22640 | else | ||
22641 | $as_echo "$as_me: failed program was:" >&5 | ||
22642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22643 | |||
22644 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
22645 | $as_echo "no" >&6; } | ||
22646 | |||
22647 | fi | ||
22648 | |||
22649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22650 | fi | ||
22651 | |||
22652 | |||
22653 | { $as_echo "$as_me:$LINENO: checking for u_char" >&5 | ||
22654 | $as_echo_n "checking for u_char... " >&6; } | ||
22655 | if test "${ac_cv_have_u_char+set}" = set; then | ||
22656 | $as_echo_n "(cached) " >&6 | ||
22657 | else | ||
22658 | |||
22659 | cat >conftest.$ac_ext <<_ACEOF | ||
22660 | /* confdefs.h. */ | ||
22661 | _ACEOF | ||
22662 | cat confdefs.h >>conftest.$ac_ext | ||
22663 | cat >>conftest.$ac_ext <<_ACEOF | ||
22664 | /* end confdefs.h. */ | ||
22665 | |||
22666 | #include <sys/types.h> | ||
22667 | |||
22668 | int | ||
22669 | main () | ||
22670 | { | ||
22671 | u_char foo; foo = 125; | ||
22672 | ; | ||
22673 | return 0; | ||
22674 | } | ||
22675 | _ACEOF | ||
22676 | rm -f conftest.$ac_objext | ||
22677 | if { (ac_try="$ac_compile" | ||
22678 | case "(($ac_try" in | ||
22679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22680 | *) ac_try_echo=$ac_try;; | ||
22681 | esac | ||
22682 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22683 | $as_echo "$ac_try_echo") >&5 | ||
22684 | (eval "$ac_compile") 2>conftest.er1 | ||
22685 | ac_status=$? | ||
22686 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22687 | rm -f conftest.er1 | ||
22688 | cat conftest.err >&5 | ||
22689 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22690 | (exit $ac_status); } && { | ||
22691 | test -z "$ac_c_werror_flag" || | ||
22692 | test ! -s conftest.err | ||
22693 | } && test -s conftest.$ac_objext; then | ||
22694 | ac_cv_have_u_char="yes" | ||
22695 | else | ||
22696 | $as_echo "$as_me: failed program was:" >&5 | ||
22697 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22698 | |||
22699 | ac_cv_have_u_char="no" | ||
22700 | |||
22701 | fi | ||
22702 | |||
22703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22704 | |||
22705 | fi | ||
22706 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_u_char" >&5 | ||
22707 | $as_echo "$ac_cv_have_u_char" >&6; } | ||
22708 | if test "x$ac_cv_have_u_char" = "xyes" ; then | ||
22709 | |||
22710 | cat >>confdefs.h <<\_ACEOF | ||
22711 | #define HAVE_U_CHAR 1 | ||
22712 | _ACEOF | ||
22713 | |||
22714 | fi | ||
22715 | |||
22716 | |||
22717 | { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 | ||
22718 | $as_echo_n "checking for socklen_t... " >&6; } | ||
22719 | if test "${ac_cv_type_socklen_t+set}" = set; then | ||
22720 | $as_echo_n "(cached) " >&6 | ||
22721 | else | ||
22722 | ac_cv_type_socklen_t=no | ||
22723 | cat >conftest.$ac_ext <<_ACEOF | ||
22724 | /* confdefs.h. */ | ||
22725 | _ACEOF | ||
22726 | cat confdefs.h >>conftest.$ac_ext | ||
22727 | cat >>conftest.$ac_ext <<_ACEOF | ||
22728 | /* end confdefs.h. */ | ||
22729 | #include <sys/types.h> | ||
22730 | #include <sys/socket.h> | ||
22731 | |||
22732 | int | ||
22733 | main () | ||
22734 | { | ||
22735 | if (sizeof (socklen_t)) | ||
22736 | return 0; | ||
22737 | ; | ||
22738 | return 0; | ||
22739 | } | ||
22740 | _ACEOF | ||
22741 | rm -f conftest.$ac_objext | ||
22742 | if { (ac_try="$ac_compile" | ||
22743 | case "(($ac_try" in | ||
22744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22745 | *) ac_try_echo=$ac_try;; | ||
22746 | esac | ||
22747 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22748 | $as_echo "$ac_try_echo") >&5 | ||
22749 | (eval "$ac_compile") 2>conftest.er1 | ||
22750 | ac_status=$? | ||
22751 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22752 | rm -f conftest.er1 | ||
22753 | cat conftest.err >&5 | ||
22754 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22755 | (exit $ac_status); } && { | ||
22756 | test -z "$ac_c_werror_flag" || | ||
22757 | test ! -s conftest.err | ||
22758 | } && test -s conftest.$ac_objext; then | ||
22759 | cat >conftest.$ac_ext <<_ACEOF | ||
22760 | /* confdefs.h. */ | ||
22761 | _ACEOF | ||
22762 | cat confdefs.h >>conftest.$ac_ext | ||
22763 | cat >>conftest.$ac_ext <<_ACEOF | ||
22764 | /* end confdefs.h. */ | ||
22765 | #include <sys/types.h> | ||
22766 | #include <sys/socket.h> | ||
22767 | |||
22768 | int | ||
22769 | main () | ||
22770 | { | ||
22771 | if (sizeof ((socklen_t))) | ||
22772 | return 0; | ||
22773 | ; | ||
22774 | return 0; | ||
22775 | } | ||
22776 | _ACEOF | ||
22777 | rm -f conftest.$ac_objext | ||
22778 | if { (ac_try="$ac_compile" | ||
22779 | case "(($ac_try" in | ||
22780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22781 | *) ac_try_echo=$ac_try;; | ||
22782 | esac | ||
22783 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22784 | $as_echo "$ac_try_echo") >&5 | ||
22785 | (eval "$ac_compile") 2>conftest.er1 | ||
22786 | ac_status=$? | ||
22787 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22788 | rm -f conftest.er1 | ||
22789 | cat conftest.err >&5 | ||
22790 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22791 | (exit $ac_status); } && { | ||
22792 | test -z "$ac_c_werror_flag" || | ||
22793 | test ! -s conftest.err | ||
22794 | } && test -s conftest.$ac_objext; then | ||
22795 | : | ||
22796 | else | ||
22797 | $as_echo "$as_me: failed program was:" >&5 | ||
22798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22799 | |||
22800 | ac_cv_type_socklen_t=yes | ||
22801 | fi | ||
22802 | |||
22803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22804 | else | ||
22805 | $as_echo "$as_me: failed program was:" >&5 | ||
22806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22807 | |||
22808 | |||
22809 | fi | ||
22810 | |||
22811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22812 | fi | ||
22813 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | ||
22814 | $as_echo "$ac_cv_type_socklen_t" >&6; } | ||
22815 | if test $ac_cv_type_socklen_t = yes; then | ||
22816 | : | ||
22817 | else | ||
22818 | |||
22819 | { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 | ||
22820 | $as_echo_n "checking for socklen_t equivalent... " >&6; } | ||
22821 | if test "${curl_cv_socklen_t_equiv+set}" = set; then | ||
22822 | $as_echo_n "(cached) " >&6 | ||
22823 | else | ||
22824 | |||
22825 | # Systems have either "struct sockaddr *" or | ||
22826 | # "void *" as the second argument to getpeername | ||
22827 | curl_cv_socklen_t_equiv= | ||
22828 | for arg2 in "struct sockaddr" void; do | ||
22829 | for t in int size_t unsigned long "unsigned long"; do | ||
22830 | cat >conftest.$ac_ext <<_ACEOF | ||
22831 | /* confdefs.h. */ | ||
22832 | _ACEOF | ||
22833 | cat confdefs.h >>conftest.$ac_ext | ||
22834 | cat >>conftest.$ac_ext <<_ACEOF | ||
22835 | /* end confdefs.h. */ | ||
22836 | |||
22837 | #include <sys/types.h> | ||
22838 | #include <sys/socket.h> | ||
22839 | |||
22840 | int getpeername (int, $arg2 *, $t *); | ||
22841 | |||
22842 | int | ||
22843 | main () | ||
22844 | { | ||
22845 | |||
22846 | $t len; | ||
22847 | getpeername(0,0,&len); | ||
22848 | |||
22849 | ; | ||
22850 | return 0; | ||
22851 | } | ||
22852 | _ACEOF | ||
22853 | rm -f conftest.$ac_objext | ||
22854 | if { (ac_try="$ac_compile" | ||
22855 | case "(($ac_try" in | ||
22856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22857 | *) ac_try_echo=$ac_try;; | ||
22858 | esac | ||
22859 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22860 | $as_echo "$ac_try_echo") >&5 | ||
22861 | (eval "$ac_compile") 2>conftest.er1 | ||
22862 | ac_status=$? | ||
22863 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22864 | rm -f conftest.er1 | ||
22865 | cat conftest.err >&5 | ||
22866 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22867 | (exit $ac_status); } && { | ||
22868 | test -z "$ac_c_werror_flag" || | ||
22869 | test ! -s conftest.err | ||
22870 | } && test -s conftest.$ac_objext; then | ||
22871 | |||
22872 | curl_cv_socklen_t_equiv="$t" | ||
22873 | break | ||
22874 | |||
22875 | else | ||
22876 | $as_echo "$as_me: failed program was:" >&5 | ||
22877 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22878 | |||
22879 | |||
22880 | fi | ||
22881 | |||
22882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22883 | done | ||
22884 | done | ||
22885 | |||
22886 | if test "x$curl_cv_socklen_t_equiv" = x; then | ||
22887 | { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5 | ||
22888 | $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;} | ||
22889 | { (exit 1); exit 1; }; } | ||
22890 | fi | ||
22891 | |||
22892 | fi | ||
22893 | |||
22894 | { $as_echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 | ||
22895 | $as_echo "$curl_cv_socklen_t_equiv" >&6; } | ||
22896 | |||
22897 | cat >>confdefs.h <<_ACEOF | ||
22898 | #define socklen_t $curl_cv_socklen_t_equiv | ||
22899 | _ACEOF | ||
22900 | |||
22901 | fi | ||
22902 | |||
22903 | |||
22904 | |||
22905 | { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 | ||
22906 | $as_echo_n "checking for sig_atomic_t... " >&6; } | ||
22907 | if test "${ac_cv_type_sig_atomic_t+set}" = set; then | ||
22908 | $as_echo_n "(cached) " >&6 | ||
22909 | else | ||
22910 | ac_cv_type_sig_atomic_t=no | ||
22911 | cat >conftest.$ac_ext <<_ACEOF | ||
22912 | /* confdefs.h. */ | ||
22913 | _ACEOF | ||
22914 | cat confdefs.h >>conftest.$ac_ext | ||
22915 | cat >>conftest.$ac_ext <<_ACEOF | ||
22916 | /* end confdefs.h. */ | ||
22917 | #include <signal.h> | ||
22918 | |||
22919 | int | ||
22920 | main () | ||
22921 | { | ||
22922 | if (sizeof (sig_atomic_t)) | ||
22923 | return 0; | ||
22924 | ; | ||
22925 | return 0; | ||
22926 | } | ||
22927 | _ACEOF | ||
22928 | rm -f conftest.$ac_objext | ||
22929 | if { (ac_try="$ac_compile" | ||
22930 | case "(($ac_try" in | ||
22931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22932 | *) ac_try_echo=$ac_try;; | ||
22933 | esac | ||
22934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22935 | $as_echo "$ac_try_echo") >&5 | ||
22936 | (eval "$ac_compile") 2>conftest.er1 | ||
22937 | ac_status=$? | ||
22938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22939 | rm -f conftest.er1 | ||
22940 | cat conftest.err >&5 | ||
22941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22942 | (exit $ac_status); } && { | ||
22943 | test -z "$ac_c_werror_flag" || | ||
22944 | test ! -s conftest.err | ||
22945 | } && test -s conftest.$ac_objext; then | ||
22946 | cat >conftest.$ac_ext <<_ACEOF | ||
22947 | /* confdefs.h. */ | ||
22948 | _ACEOF | ||
22949 | cat confdefs.h >>conftest.$ac_ext | ||
22950 | cat >>conftest.$ac_ext <<_ACEOF | ||
22951 | /* end confdefs.h. */ | ||
22952 | #include <signal.h> | ||
22953 | |||
22954 | int | ||
22955 | main () | ||
22956 | { | ||
22957 | if (sizeof ((sig_atomic_t))) | ||
22958 | return 0; | ||
22959 | ; | ||
22960 | return 0; | ||
22961 | } | ||
22962 | _ACEOF | ||
22963 | rm -f conftest.$ac_objext | ||
22964 | if { (ac_try="$ac_compile" | ||
22965 | case "(($ac_try" in | ||
22966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22967 | *) ac_try_echo=$ac_try;; | ||
22968 | esac | ||
22969 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
22970 | $as_echo "$ac_try_echo") >&5 | ||
22971 | (eval "$ac_compile") 2>conftest.er1 | ||
22972 | ac_status=$? | ||
22973 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22974 | rm -f conftest.er1 | ||
22975 | cat conftest.err >&5 | ||
22976 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22977 | (exit $ac_status); } && { | ||
22978 | test -z "$ac_c_werror_flag" || | ||
22979 | test ! -s conftest.err | ||
22980 | } && test -s conftest.$ac_objext; then | ||
22981 | : | ||
22982 | else | ||
22983 | $as_echo "$as_me: failed program was:" >&5 | ||
22984 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22985 | |||
22986 | ac_cv_type_sig_atomic_t=yes | ||
22987 | fi | ||
22988 | |||
22989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22990 | else | ||
22991 | $as_echo "$as_me: failed program was:" >&5 | ||
22992 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22993 | |||
22994 | |||
22995 | fi | ||
22996 | |||
22997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
22998 | fi | ||
22999 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 | ||
23000 | $as_echo "$ac_cv_type_sig_atomic_t" >&6; } | ||
23001 | if test $ac_cv_type_sig_atomic_t = yes; then | ||
23002 | |||
23003 | cat >>confdefs.h <<_ACEOF | ||
23004 | #define HAVE_SIG_ATOMIC_T 1 | ||
23005 | _ACEOF | ||
23006 | |||
23007 | |||
23008 | fi | ||
23009 | |||
23010 | { $as_echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 | ||
23011 | $as_echo_n "checking for fsblkcnt_t... " >&6; } | ||
23012 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then | ||
23013 | $as_echo_n "(cached) " >&6 | ||
23014 | else | ||
23015 | ac_cv_type_fsblkcnt_t=no | ||
23016 | cat >conftest.$ac_ext <<_ACEOF | ||
23017 | /* confdefs.h. */ | ||
23018 | _ACEOF | ||
23019 | cat confdefs.h >>conftest.$ac_ext | ||
23020 | cat >>conftest.$ac_ext <<_ACEOF | ||
23021 | /* end confdefs.h. */ | ||
23022 | |||
23023 | #include <sys/types.h> | ||
23024 | #ifdef HAVE_SYS_BITYPES_H | ||
23025 | #include <sys/bitypes.h> | ||
23026 | #endif | ||
23027 | #ifdef HAVE_SYS_STATFS_H | ||
23028 | #include <sys/statfs.h> | ||
23029 | #endif | ||
23030 | #ifdef HAVE_SYS_STATVFS_H | ||
23031 | #include <sys/statvfs.h> | ||
23032 | #endif | ||
23033 | |||
23034 | |||
23035 | int | ||
23036 | main () | ||
23037 | { | ||
23038 | if (sizeof (fsblkcnt_t)) | ||
23039 | return 0; | ||
23040 | ; | ||
23041 | return 0; | ||
23042 | } | ||
23043 | _ACEOF | ||
23044 | rm -f conftest.$ac_objext | ||
23045 | if { (ac_try="$ac_compile" | ||
23046 | case "(($ac_try" in | ||
23047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23048 | *) ac_try_echo=$ac_try;; | ||
23049 | esac | ||
23050 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23051 | $as_echo "$ac_try_echo") >&5 | ||
23052 | (eval "$ac_compile") 2>conftest.er1 | ||
23053 | ac_status=$? | ||
23054 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23055 | rm -f conftest.er1 | ||
23056 | cat conftest.err >&5 | ||
23057 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23058 | (exit $ac_status); } && { | ||
23059 | test -z "$ac_c_werror_flag" || | ||
23060 | test ! -s conftest.err | ||
23061 | } && test -s conftest.$ac_objext; then | ||
23062 | cat >conftest.$ac_ext <<_ACEOF | ||
23063 | /* confdefs.h. */ | ||
23064 | _ACEOF | ||
23065 | cat confdefs.h >>conftest.$ac_ext | ||
23066 | cat >>conftest.$ac_ext <<_ACEOF | ||
23067 | /* end confdefs.h. */ | ||
23068 | |||
23069 | #include <sys/types.h> | ||
23070 | #ifdef HAVE_SYS_BITYPES_H | ||
23071 | #include <sys/bitypes.h> | ||
23072 | #endif | ||
23073 | #ifdef HAVE_SYS_STATFS_H | ||
23074 | #include <sys/statfs.h> | ||
23075 | #endif | ||
23076 | #ifdef HAVE_SYS_STATVFS_H | ||
23077 | #include <sys/statvfs.h> | ||
23078 | #endif | ||
23079 | |||
23080 | |||
23081 | int | ||
23082 | main () | ||
23083 | { | ||
23084 | if (sizeof ((fsblkcnt_t))) | ||
23085 | return 0; | ||
23086 | ; | ||
23087 | return 0; | ||
23088 | } | ||
23089 | _ACEOF | ||
23090 | rm -f conftest.$ac_objext | ||
23091 | if { (ac_try="$ac_compile" | ||
23092 | case "(($ac_try" in | ||
23093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23094 | *) ac_try_echo=$ac_try;; | ||
23095 | esac | ||
23096 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23097 | $as_echo "$ac_try_echo") >&5 | ||
23098 | (eval "$ac_compile") 2>conftest.er1 | ||
23099 | ac_status=$? | ||
23100 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23101 | rm -f conftest.er1 | ||
23102 | cat conftest.err >&5 | ||
23103 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23104 | (exit $ac_status); } && { | ||
23105 | test -z "$ac_c_werror_flag" || | ||
23106 | test ! -s conftest.err | ||
23107 | } && test -s conftest.$ac_objext; then | ||
23108 | : | ||
23109 | else | ||
23110 | $as_echo "$as_me: failed program was:" >&5 | ||
23111 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23112 | |||
23113 | ac_cv_type_fsblkcnt_t=yes | ||
23114 | fi | ||
23115 | |||
23116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23117 | else | ||
23118 | $as_echo "$as_me: failed program was:" >&5 | ||
23119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23120 | |||
23121 | |||
23122 | fi | ||
23123 | |||
23124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23125 | fi | ||
23126 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 | ||
23127 | $as_echo "$ac_cv_type_fsblkcnt_t" >&6; } | ||
23128 | if test $ac_cv_type_fsblkcnt_t = yes; then | ||
23129 | |||
23130 | cat >>confdefs.h <<_ACEOF | ||
23131 | #define HAVE_FSBLKCNT_T 1 | ||
23132 | _ACEOF | ||
23133 | |||
23134 | |||
23135 | fi | ||
23136 | { $as_echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 | ||
23137 | $as_echo_n "checking for fsfilcnt_t... " >&6; } | ||
23138 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then | ||
23139 | $as_echo_n "(cached) " >&6 | ||
23140 | else | ||
23141 | ac_cv_type_fsfilcnt_t=no | ||
23142 | cat >conftest.$ac_ext <<_ACEOF | ||
23143 | /* confdefs.h. */ | ||
23144 | _ACEOF | ||
23145 | cat confdefs.h >>conftest.$ac_ext | ||
23146 | cat >>conftest.$ac_ext <<_ACEOF | ||
23147 | /* end confdefs.h. */ | ||
23148 | |||
23149 | #include <sys/types.h> | ||
23150 | #ifdef HAVE_SYS_BITYPES_H | ||
23151 | #include <sys/bitypes.h> | ||
23152 | #endif | ||
23153 | #ifdef HAVE_SYS_STATFS_H | ||
23154 | #include <sys/statfs.h> | ||
23155 | #endif | ||
23156 | #ifdef HAVE_SYS_STATVFS_H | ||
23157 | #include <sys/statvfs.h> | ||
23158 | #endif | ||
23159 | |||
23160 | |||
23161 | int | ||
23162 | main () | ||
23163 | { | ||
23164 | if (sizeof (fsfilcnt_t)) | ||
23165 | return 0; | ||
23166 | ; | ||
23167 | return 0; | ||
23168 | } | ||
23169 | _ACEOF | ||
23170 | rm -f conftest.$ac_objext | ||
23171 | if { (ac_try="$ac_compile" | ||
23172 | case "(($ac_try" in | ||
23173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23174 | *) ac_try_echo=$ac_try;; | ||
23175 | esac | ||
23176 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23177 | $as_echo "$ac_try_echo") >&5 | ||
23178 | (eval "$ac_compile") 2>conftest.er1 | ||
23179 | ac_status=$? | ||
23180 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23181 | rm -f conftest.er1 | ||
23182 | cat conftest.err >&5 | ||
23183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23184 | (exit $ac_status); } && { | ||
23185 | test -z "$ac_c_werror_flag" || | ||
23186 | test ! -s conftest.err | ||
23187 | } && test -s conftest.$ac_objext; then | ||
23188 | cat >conftest.$ac_ext <<_ACEOF | ||
23189 | /* confdefs.h. */ | ||
23190 | _ACEOF | ||
23191 | cat confdefs.h >>conftest.$ac_ext | ||
23192 | cat >>conftest.$ac_ext <<_ACEOF | ||
23193 | /* end confdefs.h. */ | ||
23194 | |||
23195 | #include <sys/types.h> | ||
23196 | #ifdef HAVE_SYS_BITYPES_H | ||
23197 | #include <sys/bitypes.h> | ||
23198 | #endif | ||
23199 | #ifdef HAVE_SYS_STATFS_H | ||
23200 | #include <sys/statfs.h> | ||
23201 | #endif | ||
23202 | #ifdef HAVE_SYS_STATVFS_H | ||
23203 | #include <sys/statvfs.h> | ||
23204 | #endif | ||
23205 | |||
23206 | |||
23207 | int | ||
23208 | main () | ||
23209 | { | ||
23210 | if (sizeof ((fsfilcnt_t))) | ||
23211 | return 0; | ||
23212 | ; | ||
23213 | return 0; | ||
23214 | } | ||
23215 | _ACEOF | ||
23216 | rm -f conftest.$ac_objext | ||
23217 | if { (ac_try="$ac_compile" | ||
23218 | case "(($ac_try" in | ||
23219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23220 | *) ac_try_echo=$ac_try;; | ||
23221 | esac | ||
23222 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23223 | $as_echo "$ac_try_echo") >&5 | ||
23224 | (eval "$ac_compile") 2>conftest.er1 | ||
23225 | ac_status=$? | ||
23226 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23227 | rm -f conftest.er1 | ||
23228 | cat conftest.err >&5 | ||
23229 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23230 | (exit $ac_status); } && { | ||
23231 | test -z "$ac_c_werror_flag" || | ||
23232 | test ! -s conftest.err | ||
23233 | } && test -s conftest.$ac_objext; then | ||
23234 | : | ||
23235 | else | ||
23236 | $as_echo "$as_me: failed program was:" >&5 | ||
23237 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23238 | |||
23239 | ac_cv_type_fsfilcnt_t=yes | ||
23240 | fi | ||
23241 | |||
23242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23243 | else | ||
23244 | $as_echo "$as_me: failed program was:" >&5 | ||
23245 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23246 | |||
23247 | |||
23248 | fi | ||
23249 | |||
23250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23251 | fi | ||
23252 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 | ||
23253 | $as_echo "$ac_cv_type_fsfilcnt_t" >&6; } | ||
23254 | if test $ac_cv_type_fsfilcnt_t = yes; then | ||
23255 | |||
23256 | cat >>confdefs.h <<_ACEOF | ||
23257 | #define HAVE_FSFILCNT_T 1 | ||
23258 | _ACEOF | ||
23259 | |||
23260 | |||
23261 | fi | ||
23262 | |||
23263 | |||
23264 | { $as_echo "$as_me:$LINENO: checking for in_addr_t" >&5 | ||
23265 | $as_echo_n "checking for in_addr_t... " >&6; } | ||
23266 | if test "${ac_cv_type_in_addr_t+set}" = set; then | ||
23267 | $as_echo_n "(cached) " >&6 | ||
23268 | else | ||
23269 | ac_cv_type_in_addr_t=no | ||
23270 | cat >conftest.$ac_ext <<_ACEOF | ||
23271 | /* confdefs.h. */ | ||
23272 | _ACEOF | ||
23273 | cat confdefs.h >>conftest.$ac_ext | ||
23274 | cat >>conftest.$ac_ext <<_ACEOF | ||
23275 | /* end confdefs.h. */ | ||
23276 | #include <sys/types.h> | ||
23277 | #include <netinet/in.h> | ||
23278 | |||
23279 | int | ||
23280 | main () | ||
23281 | { | ||
23282 | if (sizeof (in_addr_t)) | ||
23283 | return 0; | ||
23284 | ; | ||
23285 | return 0; | ||
23286 | } | ||
23287 | _ACEOF | ||
23288 | rm -f conftest.$ac_objext | ||
23289 | if { (ac_try="$ac_compile" | ||
23290 | case "(($ac_try" in | ||
23291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23292 | *) ac_try_echo=$ac_try;; | ||
23293 | esac | ||
23294 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23295 | $as_echo "$ac_try_echo") >&5 | ||
23296 | (eval "$ac_compile") 2>conftest.er1 | ||
23297 | ac_status=$? | ||
23298 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23299 | rm -f conftest.er1 | ||
23300 | cat conftest.err >&5 | ||
23301 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23302 | (exit $ac_status); } && { | ||
23303 | test -z "$ac_c_werror_flag" || | ||
23304 | test ! -s conftest.err | ||
23305 | } && test -s conftest.$ac_objext; then | ||
23306 | cat >conftest.$ac_ext <<_ACEOF | ||
23307 | /* confdefs.h. */ | ||
23308 | _ACEOF | ||
23309 | cat confdefs.h >>conftest.$ac_ext | ||
23310 | cat >>conftest.$ac_ext <<_ACEOF | ||
23311 | /* end confdefs.h. */ | ||
23312 | #include <sys/types.h> | ||
23313 | #include <netinet/in.h> | ||
23314 | |||
23315 | int | ||
23316 | main () | ||
23317 | { | ||
23318 | if (sizeof ((in_addr_t))) | ||
23319 | return 0; | ||
23320 | ; | ||
23321 | return 0; | ||
23322 | } | ||
23323 | _ACEOF | ||
23324 | rm -f conftest.$ac_objext | ||
23325 | if { (ac_try="$ac_compile" | ||
23326 | case "(($ac_try" in | ||
23327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23328 | *) ac_try_echo=$ac_try;; | ||
23329 | esac | ||
23330 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23331 | $as_echo "$ac_try_echo") >&5 | ||
23332 | (eval "$ac_compile") 2>conftest.er1 | ||
23333 | ac_status=$? | ||
23334 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23335 | rm -f conftest.er1 | ||
23336 | cat conftest.err >&5 | ||
23337 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23338 | (exit $ac_status); } && { | ||
23339 | test -z "$ac_c_werror_flag" || | ||
23340 | test ! -s conftest.err | ||
23341 | } && test -s conftest.$ac_objext; then | ||
23342 | : | ||
23343 | else | ||
23344 | $as_echo "$as_me: failed program was:" >&5 | ||
23345 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23346 | |||
23347 | ac_cv_type_in_addr_t=yes | ||
23348 | fi | ||
23349 | |||
23350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23351 | else | ||
23352 | $as_echo "$as_me: failed program was:" >&5 | ||
23353 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23354 | |||
23355 | |||
23356 | fi | ||
23357 | |||
23358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23359 | fi | ||
23360 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5 | ||
23361 | $as_echo "$ac_cv_type_in_addr_t" >&6; } | ||
23362 | if test $ac_cv_type_in_addr_t = yes; then | ||
23363 | |||
23364 | cat >>confdefs.h <<_ACEOF | ||
23365 | #define HAVE_IN_ADDR_T 1 | ||
23366 | _ACEOF | ||
23367 | |||
23368 | |||
23369 | fi | ||
23370 | { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5 | ||
23371 | $as_echo_n "checking for in_port_t... " >&6; } | ||
23372 | if test "${ac_cv_type_in_port_t+set}" = set; then | ||
23373 | $as_echo_n "(cached) " >&6 | ||
23374 | else | ||
23375 | ac_cv_type_in_port_t=no | ||
23376 | cat >conftest.$ac_ext <<_ACEOF | ||
23377 | /* confdefs.h. */ | ||
23378 | _ACEOF | ||
23379 | cat confdefs.h >>conftest.$ac_ext | ||
23380 | cat >>conftest.$ac_ext <<_ACEOF | ||
23381 | /* end confdefs.h. */ | ||
23382 | #include <sys/types.h> | ||
23383 | #include <netinet/in.h> | ||
23384 | |||
23385 | int | ||
23386 | main () | ||
23387 | { | ||
23388 | if (sizeof (in_port_t)) | ||
23389 | return 0; | ||
23390 | ; | ||
23391 | return 0; | ||
23392 | } | ||
23393 | _ACEOF | ||
23394 | rm -f conftest.$ac_objext | ||
23395 | if { (ac_try="$ac_compile" | ||
23396 | case "(($ac_try" in | ||
23397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23398 | *) ac_try_echo=$ac_try;; | ||
23399 | esac | ||
23400 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23401 | $as_echo "$ac_try_echo") >&5 | ||
23402 | (eval "$ac_compile") 2>conftest.er1 | ||
23403 | ac_status=$? | ||
23404 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23405 | rm -f conftest.er1 | ||
23406 | cat conftest.err >&5 | ||
23407 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23408 | (exit $ac_status); } && { | ||
23409 | test -z "$ac_c_werror_flag" || | ||
23410 | test ! -s conftest.err | ||
23411 | } && test -s conftest.$ac_objext; then | ||
23412 | cat >conftest.$ac_ext <<_ACEOF | ||
23413 | /* confdefs.h. */ | ||
23414 | _ACEOF | ||
23415 | cat confdefs.h >>conftest.$ac_ext | ||
23416 | cat >>conftest.$ac_ext <<_ACEOF | ||
23417 | /* end confdefs.h. */ | ||
23418 | #include <sys/types.h> | ||
23419 | #include <netinet/in.h> | ||
23420 | |||
23421 | int | ||
23422 | main () | ||
23423 | { | ||
23424 | if (sizeof ((in_port_t))) | ||
23425 | return 0; | ||
23426 | ; | ||
23427 | return 0; | ||
23428 | } | ||
23429 | _ACEOF | ||
23430 | rm -f conftest.$ac_objext | ||
23431 | if { (ac_try="$ac_compile" | ||
23432 | case "(($ac_try" in | ||
23433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23434 | *) ac_try_echo=$ac_try;; | ||
23435 | esac | ||
23436 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23437 | $as_echo "$ac_try_echo") >&5 | ||
23438 | (eval "$ac_compile") 2>conftest.er1 | ||
23439 | ac_status=$? | ||
23440 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23441 | rm -f conftest.er1 | ||
23442 | cat conftest.err >&5 | ||
23443 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23444 | (exit $ac_status); } && { | ||
23445 | test -z "$ac_c_werror_flag" || | ||
23446 | test ! -s conftest.err | ||
23447 | } && test -s conftest.$ac_objext; then | ||
23448 | : | ||
23449 | else | ||
23450 | $as_echo "$as_me: failed program was:" >&5 | ||
23451 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23452 | |||
23453 | ac_cv_type_in_port_t=yes | ||
23454 | fi | ||
23455 | |||
23456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23457 | else | ||
23458 | $as_echo "$as_me: failed program was:" >&5 | ||
23459 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23460 | |||
23461 | |||
23462 | fi | ||
23463 | |||
23464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23465 | fi | ||
23466 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 | ||
23467 | $as_echo "$ac_cv_type_in_port_t" >&6; } | ||
23468 | if test $ac_cv_type_in_port_t = yes; then | ||
23469 | |||
23470 | cat >>confdefs.h <<_ACEOF | ||
23471 | #define HAVE_IN_PORT_T 1 | ||
23472 | _ACEOF | ||
23473 | |||
23474 | |||
23475 | fi | ||
23476 | |||
23477 | |||
23478 | { $as_echo "$as_me:$LINENO: checking for size_t" >&5 | ||
23479 | $as_echo_n "checking for size_t... " >&6; } | ||
23480 | if test "${ac_cv_have_size_t+set}" = set; then | ||
23481 | $as_echo_n "(cached) " >&6 | ||
23482 | else | ||
23483 | |||
23484 | cat >conftest.$ac_ext <<_ACEOF | ||
23485 | /* confdefs.h. */ | ||
23486 | _ACEOF | ||
23487 | cat confdefs.h >>conftest.$ac_ext | ||
23488 | cat >>conftest.$ac_ext <<_ACEOF | ||
23489 | /* end confdefs.h. */ | ||
23490 | |||
23491 | #include <sys/types.h> | ||
23492 | |||
23493 | int | ||
23494 | main () | ||
23495 | { | ||
23496 | size_t foo; foo = 1235; | ||
23497 | ; | ||
23498 | return 0; | ||
23499 | } | ||
23500 | _ACEOF | ||
23501 | rm -f conftest.$ac_objext | ||
23502 | if { (ac_try="$ac_compile" | ||
23503 | case "(($ac_try" in | ||
23504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23505 | *) ac_try_echo=$ac_try;; | ||
23506 | esac | ||
23507 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23508 | $as_echo "$ac_try_echo") >&5 | ||
23509 | (eval "$ac_compile") 2>conftest.er1 | ||
23510 | ac_status=$? | ||
23511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23512 | rm -f conftest.er1 | ||
23513 | cat conftest.err >&5 | ||
23514 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23515 | (exit $ac_status); } && { | ||
23516 | test -z "$ac_c_werror_flag" || | ||
23517 | test ! -s conftest.err | ||
23518 | } && test -s conftest.$ac_objext; then | ||
23519 | ac_cv_have_size_t="yes" | ||
23520 | else | ||
23521 | $as_echo "$as_me: failed program was:" >&5 | ||
23522 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23523 | |||
23524 | ac_cv_have_size_t="no" | ||
23525 | |||
23526 | fi | ||
23527 | |||
23528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23529 | |||
23530 | fi | ||
23531 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_size_t" >&5 | ||
23532 | $as_echo "$ac_cv_have_size_t" >&6; } | ||
23533 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
23534 | |||
23535 | cat >>confdefs.h <<\_ACEOF | ||
23536 | #define HAVE_SIZE_T 1 | ||
23537 | _ACEOF | ||
23538 | |||
23539 | fi | ||
23540 | |||
23541 | { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5 | ||
23542 | $as_echo_n "checking for ssize_t... " >&6; } | ||
23543 | if test "${ac_cv_have_ssize_t+set}" = set; then | ||
23544 | $as_echo_n "(cached) " >&6 | ||
23545 | else | ||
23546 | |||
23547 | cat >conftest.$ac_ext <<_ACEOF | ||
23548 | /* confdefs.h. */ | ||
23549 | _ACEOF | ||
23550 | cat confdefs.h >>conftest.$ac_ext | ||
23551 | cat >>conftest.$ac_ext <<_ACEOF | ||
23552 | /* end confdefs.h. */ | ||
23553 | |||
23554 | #include <sys/types.h> | ||
23555 | |||
23556 | int | ||
23557 | main () | ||
23558 | { | ||
23559 | ssize_t foo; foo = 1235; | ||
23560 | ; | ||
23561 | return 0; | ||
23562 | } | ||
23563 | _ACEOF | ||
23564 | rm -f conftest.$ac_objext | ||
23565 | if { (ac_try="$ac_compile" | ||
23566 | case "(($ac_try" in | ||
23567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23568 | *) ac_try_echo=$ac_try;; | ||
23569 | esac | ||
23570 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23571 | $as_echo "$ac_try_echo") >&5 | ||
23572 | (eval "$ac_compile") 2>conftest.er1 | ||
23573 | ac_status=$? | ||
23574 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23575 | rm -f conftest.er1 | ||
23576 | cat conftest.err >&5 | ||
23577 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23578 | (exit $ac_status); } && { | ||
23579 | test -z "$ac_c_werror_flag" || | ||
23580 | test ! -s conftest.err | ||
23581 | } && test -s conftest.$ac_objext; then | ||
23582 | ac_cv_have_ssize_t="yes" | ||
23583 | else | ||
23584 | $as_echo "$as_me: failed program was:" >&5 | ||
23585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23586 | |||
23587 | ac_cv_have_ssize_t="no" | ||
23588 | |||
23589 | fi | ||
23590 | |||
23591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23592 | |||
23593 | fi | ||
23594 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_ssize_t" >&5 | ||
23595 | $as_echo "$ac_cv_have_ssize_t" >&6; } | ||
23596 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
23597 | |||
23598 | cat >>confdefs.h <<\_ACEOF | ||
23599 | #define HAVE_SSIZE_T 1 | ||
23600 | _ACEOF | ||
23601 | |||
23602 | fi | ||
23603 | |||
23604 | { $as_echo "$as_me:$LINENO: checking for clock_t" >&5 | ||
23605 | $as_echo_n "checking for clock_t... " >&6; } | ||
23606 | if test "${ac_cv_have_clock_t+set}" = set; then | ||
23607 | $as_echo_n "(cached) " >&6 | ||
23608 | else | ||
23609 | |||
23610 | cat >conftest.$ac_ext <<_ACEOF | ||
23611 | /* confdefs.h. */ | ||
23612 | _ACEOF | ||
23613 | cat confdefs.h >>conftest.$ac_ext | ||
23614 | cat >>conftest.$ac_ext <<_ACEOF | ||
23615 | /* end confdefs.h. */ | ||
23616 | |||
23617 | #include <time.h> | ||
23618 | |||
23619 | int | ||
23620 | main () | ||
23621 | { | ||
23622 | clock_t foo; foo = 1235; | ||
23623 | ; | ||
23624 | return 0; | ||
23625 | } | ||
23626 | _ACEOF | ||
23627 | rm -f conftest.$ac_objext | ||
23628 | if { (ac_try="$ac_compile" | ||
23629 | case "(($ac_try" in | ||
23630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23631 | *) ac_try_echo=$ac_try;; | ||
23632 | esac | ||
23633 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23634 | $as_echo "$ac_try_echo") >&5 | ||
23635 | (eval "$ac_compile") 2>conftest.er1 | ||
23636 | ac_status=$? | ||
23637 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23638 | rm -f conftest.er1 | ||
23639 | cat conftest.err >&5 | ||
23640 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23641 | (exit $ac_status); } && { | ||
23642 | test -z "$ac_c_werror_flag" || | ||
23643 | test ! -s conftest.err | ||
23644 | } && test -s conftest.$ac_objext; then | ||
23645 | ac_cv_have_clock_t="yes" | ||
23646 | else | ||
23647 | $as_echo "$as_me: failed program was:" >&5 | ||
23648 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23649 | |||
23650 | ac_cv_have_clock_t="no" | ||
23651 | |||
23652 | fi | ||
23653 | |||
23654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23655 | |||
23656 | fi | ||
23657 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_clock_t" >&5 | ||
23658 | $as_echo "$ac_cv_have_clock_t" >&6; } | ||
23659 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
23660 | |||
23661 | cat >>confdefs.h <<\_ACEOF | ||
23662 | #define HAVE_CLOCK_T 1 | ||
23663 | _ACEOF | ||
23664 | |||
23665 | fi | ||
23666 | |||
23667 | { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5 | ||
23668 | $as_echo_n "checking for sa_family_t... " >&6; } | ||
23669 | if test "${ac_cv_have_sa_family_t+set}" = set; then | ||
23670 | $as_echo_n "(cached) " >&6 | ||
23671 | else | ||
23672 | |||
23673 | cat >conftest.$ac_ext <<_ACEOF | ||
23674 | /* confdefs.h. */ | ||
23675 | _ACEOF | ||
23676 | cat confdefs.h >>conftest.$ac_ext | ||
23677 | cat >>conftest.$ac_ext <<_ACEOF | ||
23678 | /* end confdefs.h. */ | ||
23679 | |||
23680 | #include <sys/types.h> | ||
23681 | #include <sys/socket.h> | ||
23682 | |||
23683 | int | ||
23684 | main () | ||
23685 | { | ||
23686 | sa_family_t foo; foo = 1235; | ||
23687 | ; | ||
23688 | return 0; | ||
23689 | } | ||
23690 | _ACEOF | ||
23691 | rm -f conftest.$ac_objext | ||
23692 | if { (ac_try="$ac_compile" | ||
23693 | case "(($ac_try" in | ||
23694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23695 | *) ac_try_echo=$ac_try;; | ||
23696 | esac | ||
23697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23698 | $as_echo "$ac_try_echo") >&5 | ||
23699 | (eval "$ac_compile") 2>conftest.er1 | ||
23700 | ac_status=$? | ||
23701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23702 | rm -f conftest.er1 | ||
23703 | cat conftest.err >&5 | ||
23704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23705 | (exit $ac_status); } && { | ||
23706 | test -z "$ac_c_werror_flag" || | ||
23707 | test ! -s conftest.err | ||
23708 | } && test -s conftest.$ac_objext; then | ||
23709 | ac_cv_have_sa_family_t="yes" | ||
23710 | else | ||
23711 | $as_echo "$as_me: failed program was:" >&5 | ||
23712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23713 | |||
23714 | cat >conftest.$ac_ext <<_ACEOF | ||
23715 | /* confdefs.h. */ | ||
23716 | _ACEOF | ||
23717 | cat confdefs.h >>conftest.$ac_ext | ||
23718 | cat >>conftest.$ac_ext <<_ACEOF | ||
23719 | /* end confdefs.h. */ | ||
23720 | |||
23721 | #include <sys/types.h> | ||
23722 | #include <sys/socket.h> | ||
23723 | #include <netinet/in.h> | ||
23724 | |||
23725 | int | ||
23726 | main () | ||
23727 | { | ||
23728 | sa_family_t foo; foo = 1235; | ||
23729 | ; | ||
23730 | return 0; | ||
23731 | } | ||
23732 | _ACEOF | ||
23733 | rm -f conftest.$ac_objext | ||
23734 | if { (ac_try="$ac_compile" | ||
23735 | case "(($ac_try" in | ||
23736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23737 | *) ac_try_echo=$ac_try;; | ||
23738 | esac | ||
23739 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23740 | $as_echo "$ac_try_echo") >&5 | ||
23741 | (eval "$ac_compile") 2>conftest.er1 | ||
23742 | ac_status=$? | ||
23743 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23744 | rm -f conftest.er1 | ||
23745 | cat conftest.err >&5 | ||
23746 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23747 | (exit $ac_status); } && { | ||
23748 | test -z "$ac_c_werror_flag" || | ||
23749 | test ! -s conftest.err | ||
23750 | } && test -s conftest.$ac_objext; then | ||
23751 | ac_cv_have_sa_family_t="yes" | ||
23752 | else | ||
23753 | $as_echo "$as_me: failed program was:" >&5 | ||
23754 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23755 | |||
23756 | ac_cv_have_sa_family_t="no" | ||
23757 | |||
23758 | fi | ||
23759 | |||
23760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23761 | |||
23762 | fi | ||
23763 | |||
23764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23765 | |||
23766 | fi | ||
23767 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_sa_family_t" >&5 | ||
23768 | $as_echo "$ac_cv_have_sa_family_t" >&6; } | ||
23769 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
23770 | |||
23771 | cat >>confdefs.h <<\_ACEOF | ||
23772 | #define HAVE_SA_FAMILY_T 1 | ||
23773 | _ACEOF | ||
23774 | |||
23775 | fi | ||
23776 | |||
23777 | { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 | ||
23778 | $as_echo_n "checking for pid_t... " >&6; } | ||
23779 | if test "${ac_cv_have_pid_t+set}" = set; then | ||
23780 | $as_echo_n "(cached) " >&6 | ||
23781 | else | ||
23782 | |||
23783 | cat >conftest.$ac_ext <<_ACEOF | ||
23784 | /* confdefs.h. */ | ||
23785 | _ACEOF | ||
23786 | cat confdefs.h >>conftest.$ac_ext | ||
23787 | cat >>conftest.$ac_ext <<_ACEOF | ||
23788 | /* end confdefs.h. */ | ||
23789 | |||
23790 | #include <sys/types.h> | ||
23791 | |||
23792 | int | ||
23793 | main () | ||
23794 | { | ||
23795 | pid_t foo; foo = 1235; | ||
23796 | ; | ||
23797 | return 0; | ||
23798 | } | ||
23799 | _ACEOF | ||
23800 | rm -f conftest.$ac_objext | ||
23801 | if { (ac_try="$ac_compile" | ||
23802 | case "(($ac_try" in | ||
23803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23804 | *) ac_try_echo=$ac_try;; | ||
23805 | esac | ||
23806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23807 | $as_echo "$ac_try_echo") >&5 | ||
23808 | (eval "$ac_compile") 2>conftest.er1 | ||
23809 | ac_status=$? | ||
23810 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23811 | rm -f conftest.er1 | ||
23812 | cat conftest.err >&5 | ||
23813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23814 | (exit $ac_status); } && { | ||
23815 | test -z "$ac_c_werror_flag" || | ||
23816 | test ! -s conftest.err | ||
23817 | } && test -s conftest.$ac_objext; then | ||
23818 | ac_cv_have_pid_t="yes" | ||
23819 | else | ||
23820 | $as_echo "$as_me: failed program was:" >&5 | ||
23821 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23822 | |||
23823 | ac_cv_have_pid_t="no" | ||
23824 | |||
23825 | fi | ||
23826 | |||
23827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23828 | |||
23829 | fi | ||
23830 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_pid_t" >&5 | ||
23831 | $as_echo "$ac_cv_have_pid_t" >&6; } | ||
23832 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
23833 | |||
23834 | cat >>confdefs.h <<\_ACEOF | ||
23835 | #define HAVE_PID_T 1 | ||
23836 | _ACEOF | ||
23837 | |||
23838 | fi | ||
23839 | |||
23840 | { $as_echo "$as_me:$LINENO: checking for mode_t" >&5 | ||
23841 | $as_echo_n "checking for mode_t... " >&6; } | ||
23842 | if test "${ac_cv_have_mode_t+set}" = set; then | ||
23843 | $as_echo_n "(cached) " >&6 | ||
23844 | else | ||
23845 | |||
23846 | cat >conftest.$ac_ext <<_ACEOF | ||
23847 | /* confdefs.h. */ | ||
23848 | _ACEOF | ||
23849 | cat confdefs.h >>conftest.$ac_ext | ||
23850 | cat >>conftest.$ac_ext <<_ACEOF | ||
23851 | /* end confdefs.h. */ | ||
23852 | |||
23853 | #include <sys/types.h> | ||
23854 | |||
23855 | int | ||
23856 | main () | ||
23857 | { | ||
23858 | mode_t foo; foo = 1235; | ||
23859 | ; | ||
23860 | return 0; | ||
23861 | } | ||
23862 | _ACEOF | ||
23863 | rm -f conftest.$ac_objext | ||
23864 | if { (ac_try="$ac_compile" | ||
23865 | case "(($ac_try" in | ||
23866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23867 | *) ac_try_echo=$ac_try;; | ||
23868 | esac | ||
23869 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23870 | $as_echo "$ac_try_echo") >&5 | ||
23871 | (eval "$ac_compile") 2>conftest.er1 | ||
23872 | ac_status=$? | ||
23873 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23874 | rm -f conftest.er1 | ||
23875 | cat conftest.err >&5 | ||
23876 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23877 | (exit $ac_status); } && { | ||
23878 | test -z "$ac_c_werror_flag" || | ||
23879 | test ! -s conftest.err | ||
23880 | } && test -s conftest.$ac_objext; then | ||
23881 | ac_cv_have_mode_t="yes" | ||
23882 | else | ||
23883 | $as_echo "$as_me: failed program was:" >&5 | ||
23884 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23885 | |||
23886 | ac_cv_have_mode_t="no" | ||
23887 | |||
23888 | fi | ||
23889 | |||
23890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23891 | |||
23892 | fi | ||
23893 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_mode_t" >&5 | ||
23894 | $as_echo "$ac_cv_have_mode_t" >&6; } | ||
23895 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
23896 | |||
23897 | cat >>confdefs.h <<\_ACEOF | ||
23898 | #define HAVE_MODE_T 1 | ||
23899 | _ACEOF | ||
23900 | |||
23901 | fi | ||
23902 | |||
23903 | |||
23904 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 | ||
23905 | $as_echo_n "checking for struct sockaddr_storage... " >&6; } | ||
23906 | if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then | ||
23907 | $as_echo_n "(cached) " >&6 | ||
23908 | else | ||
23909 | |||
23910 | cat >conftest.$ac_ext <<_ACEOF | ||
23911 | /* confdefs.h. */ | ||
23912 | _ACEOF | ||
23913 | cat confdefs.h >>conftest.$ac_ext | ||
23914 | cat >>conftest.$ac_ext <<_ACEOF | ||
23915 | /* end confdefs.h. */ | ||
23916 | |||
23917 | #include <sys/types.h> | ||
23918 | #include <sys/socket.h> | ||
23919 | |||
23920 | int | ||
23921 | main () | ||
23922 | { | ||
23923 | struct sockaddr_storage s; | ||
23924 | ; | ||
23925 | return 0; | ||
23926 | } | ||
23927 | _ACEOF | ||
23928 | rm -f conftest.$ac_objext | ||
23929 | if { (ac_try="$ac_compile" | ||
23930 | case "(($ac_try" in | ||
23931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23932 | *) ac_try_echo=$ac_try;; | ||
23933 | esac | ||
23934 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23935 | $as_echo "$ac_try_echo") >&5 | ||
23936 | (eval "$ac_compile") 2>conftest.er1 | ||
23937 | ac_status=$? | ||
23938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
23939 | rm -f conftest.er1 | ||
23940 | cat conftest.err >&5 | ||
23941 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
23942 | (exit $ac_status); } && { | ||
23943 | test -z "$ac_c_werror_flag" || | ||
23944 | test ! -s conftest.err | ||
23945 | } && test -s conftest.$ac_objext; then | ||
23946 | ac_cv_have_struct_sockaddr_storage="yes" | ||
23947 | else | ||
23948 | $as_echo "$as_me: failed program was:" >&5 | ||
23949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
23950 | |||
23951 | ac_cv_have_struct_sockaddr_storage="no" | ||
23952 | |||
23953 | fi | ||
23954 | |||
23955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
23956 | |||
23957 | fi | ||
23958 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_storage" >&5 | ||
23959 | $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; } | ||
23960 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
23961 | |||
23962 | cat >>confdefs.h <<\_ACEOF | ||
23963 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
23964 | _ACEOF | ||
23965 | |||
23966 | fi | ||
23967 | |||
23968 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5 | ||
23969 | $as_echo_n "checking for struct sockaddr_in6... " >&6; } | ||
23970 | if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then | ||
23971 | $as_echo_n "(cached) " >&6 | ||
23972 | else | ||
23973 | |||
23974 | cat >conftest.$ac_ext <<_ACEOF | ||
23975 | /* confdefs.h. */ | ||
23976 | _ACEOF | ||
23977 | cat confdefs.h >>conftest.$ac_ext | ||
23978 | cat >>conftest.$ac_ext <<_ACEOF | ||
23979 | /* end confdefs.h. */ | ||
23980 | |||
23981 | #include <sys/types.h> | ||
23982 | #include <netinet/in.h> | ||
23983 | |||
23984 | int | ||
23985 | main () | ||
23986 | { | ||
23987 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
23988 | ; | ||
23989 | return 0; | ||
23990 | } | ||
23991 | _ACEOF | ||
23992 | rm -f conftest.$ac_objext | ||
23993 | if { (ac_try="$ac_compile" | ||
23994 | case "(($ac_try" in | ||
23995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
23996 | *) ac_try_echo=$ac_try;; | ||
23997 | esac | ||
23998 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
23999 | $as_echo "$ac_try_echo") >&5 | ||
24000 | (eval "$ac_compile") 2>conftest.er1 | ||
24001 | ac_status=$? | ||
24002 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24003 | rm -f conftest.er1 | ||
24004 | cat conftest.err >&5 | ||
24005 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24006 | (exit $ac_status); } && { | ||
24007 | test -z "$ac_c_werror_flag" || | ||
24008 | test ! -s conftest.err | ||
24009 | } && test -s conftest.$ac_objext; then | ||
24010 | ac_cv_have_struct_sockaddr_in6="yes" | ||
24011 | else | ||
24012 | $as_echo "$as_me: failed program was:" >&5 | ||
24013 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24014 | |||
24015 | ac_cv_have_struct_sockaddr_in6="no" | ||
24016 | |||
24017 | fi | ||
24018 | |||
24019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24020 | |||
24021 | fi | ||
24022 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_sockaddr_in6" >&5 | ||
24023 | $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; } | ||
24024 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
24025 | |||
24026 | cat >>confdefs.h <<\_ACEOF | ||
24027 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
24028 | _ACEOF | ||
24029 | |||
24030 | fi | ||
24031 | |||
24032 | { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5 | ||
24033 | $as_echo_n "checking for struct in6_addr... " >&6; } | ||
24034 | if test "${ac_cv_have_struct_in6_addr+set}" = set; then | ||
24035 | $as_echo_n "(cached) " >&6 | ||
24036 | else | ||
24037 | |||
24038 | cat >conftest.$ac_ext <<_ACEOF | ||
24039 | /* confdefs.h. */ | ||
24040 | _ACEOF | ||
24041 | cat confdefs.h >>conftest.$ac_ext | ||
24042 | cat >>conftest.$ac_ext <<_ACEOF | ||
24043 | /* end confdefs.h. */ | ||
24044 | |||
24045 | #include <sys/types.h> | ||
24046 | #include <netinet/in.h> | ||
24047 | |||
24048 | int | ||
24049 | main () | ||
24050 | { | ||
24051 | struct in6_addr s; s.s6_addr[0] = 0; | ||
24052 | ; | ||
24053 | return 0; | ||
24054 | } | ||
24055 | _ACEOF | ||
24056 | rm -f conftest.$ac_objext | ||
24057 | if { (ac_try="$ac_compile" | ||
24058 | case "(($ac_try" in | ||
24059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24060 | *) ac_try_echo=$ac_try;; | ||
24061 | esac | ||
24062 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24063 | $as_echo "$ac_try_echo") >&5 | ||
24064 | (eval "$ac_compile") 2>conftest.er1 | ||
24065 | ac_status=$? | ||
24066 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24067 | rm -f conftest.er1 | ||
24068 | cat conftest.err >&5 | ||
24069 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24070 | (exit $ac_status); } && { | ||
24071 | test -z "$ac_c_werror_flag" || | ||
24072 | test ! -s conftest.err | ||
24073 | } && test -s conftest.$ac_objext; then | ||
24074 | ac_cv_have_struct_in6_addr="yes" | ||
24075 | else | ||
24076 | $as_echo "$as_me: failed program was:" >&5 | ||
24077 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24078 | |||
24079 | ac_cv_have_struct_in6_addr="no" | ||
24080 | |||
24081 | fi | ||
24082 | |||
24083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24084 | |||
24085 | fi | ||
24086 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_in6_addr" >&5 | ||
24087 | $as_echo "$ac_cv_have_struct_in6_addr" >&6; } | ||
24088 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
24089 | |||
24090 | cat >>confdefs.h <<\_ACEOF | ||
24091 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
24092 | _ACEOF | ||
24093 | |||
24094 | |||
24095 | { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 | ||
24096 | $as_echo_n "checking for struct sockaddr_in6.sin6_scope_id... " >&6; } | ||
24097 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then | ||
24098 | $as_echo_n "(cached) " >&6 | ||
24099 | else | ||
24100 | cat >conftest.$ac_ext <<_ACEOF | ||
24101 | /* confdefs.h. */ | ||
24102 | _ACEOF | ||
24103 | cat confdefs.h >>conftest.$ac_ext | ||
24104 | cat >>conftest.$ac_ext <<_ACEOF | ||
24105 | /* end confdefs.h. */ | ||
24106 | |||
24107 | #ifdef HAVE_SYS_TYPES_H | ||
24108 | #include <sys/types.h> | ||
24109 | #endif | ||
24110 | #include <netinet/in.h> | ||
24111 | |||
24112 | |||
24113 | int | ||
24114 | main () | ||
24115 | { | ||
24116 | static struct sockaddr_in6 ac_aggr; | ||
24117 | if (ac_aggr.sin6_scope_id) | ||
24118 | return 0; | ||
24119 | ; | ||
24120 | return 0; | ||
24121 | } | ||
24122 | _ACEOF | ||
24123 | rm -f conftest.$ac_objext | ||
24124 | if { (ac_try="$ac_compile" | ||
24125 | case "(($ac_try" in | ||
24126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24127 | *) ac_try_echo=$ac_try;; | ||
24128 | esac | ||
24129 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24130 | $as_echo "$ac_try_echo") >&5 | ||
24131 | (eval "$ac_compile") 2>conftest.er1 | ||
24132 | ac_status=$? | ||
24133 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24134 | rm -f conftest.er1 | ||
24135 | cat conftest.err >&5 | ||
24136 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24137 | (exit $ac_status); } && { | ||
24138 | test -z "$ac_c_werror_flag" || | ||
24139 | test ! -s conftest.err | ||
24140 | } && test -s conftest.$ac_objext; then | ||
24141 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
24142 | else | ||
24143 | $as_echo "$as_me: failed program was:" >&5 | ||
24144 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24145 | |||
24146 | cat >conftest.$ac_ext <<_ACEOF | ||
24147 | /* confdefs.h. */ | ||
24148 | _ACEOF | ||
24149 | cat confdefs.h >>conftest.$ac_ext | ||
24150 | cat >>conftest.$ac_ext <<_ACEOF | ||
24151 | /* end confdefs.h. */ | ||
24152 | |||
24153 | #ifdef HAVE_SYS_TYPES_H | ||
24154 | #include <sys/types.h> | ||
24155 | #endif | ||
24156 | #include <netinet/in.h> | ||
24157 | |||
24158 | |||
24159 | int | ||
24160 | main () | ||
24161 | { | ||
24162 | static struct sockaddr_in6 ac_aggr; | ||
24163 | if (sizeof ac_aggr.sin6_scope_id) | ||
24164 | return 0; | ||
24165 | ; | ||
24166 | return 0; | ||
24167 | } | ||
24168 | _ACEOF | ||
24169 | rm -f conftest.$ac_objext | ||
24170 | if { (ac_try="$ac_compile" | ||
24171 | case "(($ac_try" in | ||
24172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24173 | *) ac_try_echo=$ac_try;; | ||
24174 | esac | ||
24175 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24176 | $as_echo "$ac_try_echo") >&5 | ||
24177 | (eval "$ac_compile") 2>conftest.er1 | ||
24178 | ac_status=$? | ||
24179 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24180 | rm -f conftest.er1 | ||
24181 | cat conftest.err >&5 | ||
24182 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24183 | (exit $ac_status); } && { | ||
24184 | test -z "$ac_c_werror_flag" || | ||
24185 | test ! -s conftest.err | ||
24186 | } && test -s conftest.$ac_objext; then | ||
24187 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | ||
24188 | else | ||
24189 | $as_echo "$as_me: failed program was:" >&5 | ||
24190 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24191 | |||
24192 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no | ||
24193 | fi | ||
24194 | |||
24195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24196 | fi | ||
24197 | |||
24198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24199 | fi | ||
24200 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 | ||
24201 | $as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | ||
24202 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then | ||
24203 | |||
24204 | cat >>confdefs.h <<_ACEOF | ||
24205 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | ||
24206 | _ACEOF | ||
24207 | |||
24208 | |||
24209 | fi | ||
24210 | |||
24211 | fi | ||
24212 | |||
24213 | { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5 | ||
24214 | $as_echo_n "checking for struct addrinfo... " >&6; } | ||
24215 | if test "${ac_cv_have_struct_addrinfo+set}" = set; then | ||
24216 | $as_echo_n "(cached) " >&6 | ||
24217 | else | ||
24218 | |||
24219 | cat >conftest.$ac_ext <<_ACEOF | ||
24220 | /* confdefs.h. */ | ||
24221 | _ACEOF | ||
24222 | cat confdefs.h >>conftest.$ac_ext | ||
24223 | cat >>conftest.$ac_ext <<_ACEOF | ||
24224 | /* end confdefs.h. */ | ||
24225 | |||
24226 | #include <sys/types.h> | ||
24227 | #include <sys/socket.h> | ||
24228 | #include <netdb.h> | ||
24229 | |||
24230 | int | ||
24231 | main () | ||
24232 | { | ||
24233 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
24234 | ; | ||
24235 | return 0; | ||
24236 | } | ||
24237 | _ACEOF | ||
24238 | rm -f conftest.$ac_objext | ||
24239 | if { (ac_try="$ac_compile" | ||
24240 | case "(($ac_try" in | ||
24241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24242 | *) ac_try_echo=$ac_try;; | ||
24243 | esac | ||
24244 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24245 | $as_echo "$ac_try_echo") >&5 | ||
24246 | (eval "$ac_compile") 2>conftest.er1 | ||
24247 | ac_status=$? | ||
24248 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24249 | rm -f conftest.er1 | ||
24250 | cat conftest.err >&5 | ||
24251 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24252 | (exit $ac_status); } && { | ||
24253 | test -z "$ac_c_werror_flag" || | ||
24254 | test ! -s conftest.err | ||
24255 | } && test -s conftest.$ac_objext; then | ||
24256 | ac_cv_have_struct_addrinfo="yes" | ||
24257 | else | ||
24258 | $as_echo "$as_me: failed program was:" >&5 | ||
24259 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24260 | |||
24261 | ac_cv_have_struct_addrinfo="no" | ||
24262 | |||
24263 | fi | ||
24264 | |||
24265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24266 | |||
24267 | fi | ||
24268 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_addrinfo" >&5 | ||
24269 | $as_echo "$ac_cv_have_struct_addrinfo" >&6; } | ||
24270 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
24271 | |||
24272 | cat >>confdefs.h <<\_ACEOF | ||
24273 | #define HAVE_STRUCT_ADDRINFO 1 | ||
24274 | _ACEOF | ||
24275 | |||
24276 | fi | ||
24277 | |||
24278 | { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5 | ||
24279 | $as_echo_n "checking for struct timeval... " >&6; } | ||
24280 | if test "${ac_cv_have_struct_timeval+set}" = set; then | ||
24281 | $as_echo_n "(cached) " >&6 | ||
24282 | else | ||
24283 | |||
24284 | cat >conftest.$ac_ext <<_ACEOF | ||
24285 | /* confdefs.h. */ | ||
24286 | _ACEOF | ||
24287 | cat confdefs.h >>conftest.$ac_ext | ||
24288 | cat >>conftest.$ac_ext <<_ACEOF | ||
24289 | /* end confdefs.h. */ | ||
24290 | #include <sys/time.h> | ||
24291 | int | ||
24292 | main () | ||
24293 | { | ||
24294 | struct timeval tv; tv.tv_sec = 1; | ||
24295 | ; | ||
24296 | return 0; | ||
24297 | } | ||
24298 | _ACEOF | ||
24299 | rm -f conftest.$ac_objext | ||
24300 | if { (ac_try="$ac_compile" | ||
24301 | case "(($ac_try" in | ||
24302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24303 | *) ac_try_echo=$ac_try;; | ||
24304 | esac | ||
24305 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24306 | $as_echo "$ac_try_echo") >&5 | ||
24307 | (eval "$ac_compile") 2>conftest.er1 | ||
24308 | ac_status=$? | ||
24309 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24310 | rm -f conftest.er1 | ||
24311 | cat conftest.err >&5 | ||
24312 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24313 | (exit $ac_status); } && { | ||
24314 | test -z "$ac_c_werror_flag" || | ||
24315 | test ! -s conftest.err | ||
24316 | } && test -s conftest.$ac_objext; then | ||
24317 | ac_cv_have_struct_timeval="yes" | ||
24318 | else | ||
24319 | $as_echo "$as_me: failed program was:" >&5 | ||
24320 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24321 | |||
24322 | ac_cv_have_struct_timeval="no" | ||
24323 | |||
24324 | fi | ||
24325 | |||
24326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24327 | |||
24328 | fi | ||
24329 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_struct_timeval" >&5 | ||
24330 | $as_echo "$ac_cv_have_struct_timeval" >&6; } | ||
24331 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
24332 | |||
24333 | cat >>confdefs.h <<\_ACEOF | ||
24334 | #define HAVE_STRUCT_TIMEVAL 1 | ||
24335 | _ACEOF | ||
24336 | |||
24337 | have_struct_timeval=1 | ||
24338 | fi | ||
24339 | |||
24340 | { $as_echo "$as_me:$LINENO: checking for struct timespec" >&5 | ||
24341 | $as_echo_n "checking for struct timespec... " >&6; } | ||
24342 | if test "${ac_cv_type_struct_timespec+set}" = set; then | ||
24343 | $as_echo_n "(cached) " >&6 | ||
24344 | else | ||
24345 | ac_cv_type_struct_timespec=no | ||
24346 | cat >conftest.$ac_ext <<_ACEOF | ||
24347 | /* confdefs.h. */ | ||
24348 | _ACEOF | ||
24349 | cat confdefs.h >>conftest.$ac_ext | ||
24350 | cat >>conftest.$ac_ext <<_ACEOF | ||
24351 | /* end confdefs.h. */ | ||
24352 | $ac_includes_default | ||
24353 | int | ||
24354 | main () | ||
24355 | { | ||
24356 | if (sizeof (struct timespec)) | ||
24357 | return 0; | ||
24358 | ; | ||
24359 | return 0; | ||
24360 | } | ||
24361 | _ACEOF | ||
24362 | rm -f conftest.$ac_objext | ||
24363 | if { (ac_try="$ac_compile" | ||
24364 | case "(($ac_try" in | ||
24365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24366 | *) ac_try_echo=$ac_try;; | ||
24367 | esac | ||
24368 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24369 | $as_echo "$ac_try_echo") >&5 | ||
24370 | (eval "$ac_compile") 2>conftest.er1 | ||
24371 | ac_status=$? | ||
24372 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24373 | rm -f conftest.er1 | ||
24374 | cat conftest.err >&5 | ||
24375 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24376 | (exit $ac_status); } && { | ||
24377 | test -z "$ac_c_werror_flag" || | ||
24378 | test ! -s conftest.err | ||
24379 | } && test -s conftest.$ac_objext; then | ||
24380 | cat >conftest.$ac_ext <<_ACEOF | ||
24381 | /* confdefs.h. */ | ||
24382 | _ACEOF | ||
24383 | cat confdefs.h >>conftest.$ac_ext | ||
24384 | cat >>conftest.$ac_ext <<_ACEOF | ||
24385 | /* end confdefs.h. */ | ||
24386 | $ac_includes_default | ||
24387 | int | ||
24388 | main () | ||
24389 | { | ||
24390 | if (sizeof ((struct timespec))) | ||
24391 | return 0; | ||
24392 | ; | ||
24393 | return 0; | ||
24394 | } | ||
24395 | _ACEOF | ||
24396 | rm -f conftest.$ac_objext | ||
24397 | if { (ac_try="$ac_compile" | ||
24398 | case "(($ac_try" in | ||
24399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24400 | *) ac_try_echo=$ac_try;; | ||
24401 | esac | ||
24402 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24403 | $as_echo "$ac_try_echo") >&5 | ||
24404 | (eval "$ac_compile") 2>conftest.er1 | ||
24405 | ac_status=$? | ||
24406 | grep -v '^ *+' conftest.er1 >conftest.err | ||
24407 | rm -f conftest.er1 | ||
24408 | cat conftest.err >&5 | ||
24409 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24410 | (exit $ac_status); } && { | ||
24411 | test -z "$ac_c_werror_flag" || | ||
24412 | test ! -s conftest.err | ||
24413 | } && test -s conftest.$ac_objext; then | ||
24414 | : | ||
24415 | else | ||
24416 | $as_echo "$as_me: failed program was:" >&5 | ||
24417 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24418 | |||
24419 | ac_cv_type_struct_timespec=yes | ||
24420 | fi | ||
24421 | |||
24422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24423 | else | ||
24424 | $as_echo "$as_me: failed program was:" >&5 | ||
24425 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24426 | |||
24427 | |||
24428 | fi | ||
24429 | |||
24430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
24431 | fi | ||
24432 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5 | ||
24433 | $as_echo "$ac_cv_type_struct_timespec" >&6; } | ||
24434 | if test $ac_cv_type_struct_timespec = yes; then | ||
24435 | |||
24436 | cat >>confdefs.h <<_ACEOF | ||
24437 | #define HAVE_STRUCT_TIMESPEC 1 | ||
24438 | _ACEOF | ||
24439 | |||
24440 | |||
24441 | fi | ||
24442 | |||
24443 | |||
24444 | # We need int64_t or else certian parts of the compile will fail. | ||
24445 | if test "x$ac_cv_have_int64_t" = "xno" && \ | ||
24446 | test "x$ac_cv_sizeof_long_int" != "x8" && \ | ||
24447 | test "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
24448 | echo "OpenSSH requires int64_t support. Contact your vendor or install" | ||
24449 | echo "an alternative compiler (I.E., GCC) before continuing." | ||
24450 | echo "" | ||
24451 | exit 1; | ||
24452 | else | ||
24453 | if test "$cross_compiling" = yes; then | ||
24454 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Assuming working snprintf()" >&5 | ||
24455 | $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;} | ||
24456 | |||
24457 | else | ||
24458 | cat >conftest.$ac_ext <<_ACEOF | ||
24459 | /* confdefs.h. */ | ||
24460 | _ACEOF | ||
24461 | cat confdefs.h >>conftest.$ac_ext | ||
24462 | cat >>conftest.$ac_ext <<_ACEOF | ||
24463 | /* end confdefs.h. */ | ||
24464 | |||
24465 | #include <stdio.h> | ||
24466 | #include <string.h> | ||
24467 | #ifdef HAVE_SNPRINTF | ||
24468 | main() | ||
24469 | { | ||
24470 | char buf[50]; | ||
24471 | char expected_out[50]; | ||
24472 | int mazsize = 50 ; | ||
24473 | #if (SIZEOF_LONG_INT == 8) | ||
24474 | long int num = 0x7fffffffffffffff; | ||
24475 | #else | ||
24476 | long long num = 0x7fffffffffffffffll; | ||
24477 | #endif | ||
24478 | strcpy(expected_out, "9223372036854775807"); | ||
24479 | snprintf(buf, mazsize, "%lld", num); | ||
24480 | if(strcmp(buf, expected_out) != 0) | ||
24481 | exit(1); | ||
24482 | exit(0); | ||
24483 | } | ||
24484 | #else | ||
24485 | main() { exit(0); } | ||
24486 | #endif | ||
24487 | |||
24488 | _ACEOF | ||
24489 | rm -f conftest$ac_exeext | ||
24490 | if { (ac_try="$ac_link" | ||
24491 | case "(($ac_try" in | ||
24492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24493 | *) ac_try_echo=$ac_try;; | ||
24494 | esac | ||
24495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24496 | $as_echo "$ac_try_echo") >&5 | ||
24497 | (eval "$ac_link") 2>&5 | ||
24498 | ac_status=$? | ||
24499 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24500 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
24501 | { (case "(($ac_try" in | ||
24502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
24503 | *) ac_try_echo=$ac_try;; | ||
24504 | esac | ||
24505 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
24506 | $as_echo "$ac_try_echo") >&5 | ||
24507 | (eval "$ac_try") 2>&5 | ||
24508 | ac_status=$? | ||
24509 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
24510 | (exit $ac_status); }; }; then | ||
24511 | true | ||
24512 | else | ||
24513 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
24514 | $as_echo "$as_me: failed program was:" >&5 | ||
24515 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
24516 | |||
24517 | ( exit $ac_status ) | ||
24518 | cat >>confdefs.h <<\_ACEOF | ||
24519 | #define BROKEN_SNPRINTF 1 | ||
24520 | _ACEOF | ||
24521 | |||
24522 | fi | ||
24523 | rm -rf conftest.dSYM | ||
24524 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
24525 | fi | ||
24526 | |||
24527 | |||
24528 | fi | ||
24529 | |||
24530 | |||
24531 | # look for field 'ut_host' in header 'utmp.h' | ||
24532 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24533 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
24534 | { $as_echo "$as_me:$LINENO: checking for ut_host field in utmp.h" >&5 | ||
24535 | $as_echo_n "checking for ut_host field in utmp.h... " >&6; } | ||
24536 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24537 | $as_echo_n "(cached) " >&6 | ||
24538 | else | ||
24539 | |||
24540 | cat >conftest.$ac_ext <<_ACEOF | ||
24541 | /* confdefs.h. */ | ||
24542 | _ACEOF | ||
24543 | cat confdefs.h >>conftest.$ac_ext | ||
24544 | cat >>conftest.$ac_ext <<_ACEOF | ||
24545 | /* end confdefs.h. */ | ||
24546 | #include <utmp.h> | ||
24547 | |||
24548 | _ACEOF | ||
24549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24550 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
24551 | eval "$ossh_varname=yes" | ||
24552 | else | ||
24553 | eval "$ossh_varname=no" | ||
24554 | fi | ||
24555 | rm -f conftest* | ||
24556 | |||
24557 | fi | ||
24558 | |||
24559 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24560 | if test -n "`echo $ossh_varname`"; then | ||
24561 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24562 | $as_echo "$ossh_result" >&6; } | ||
24563 | if test "x$ossh_result" = "xyes"; then | ||
24564 | |||
24565 | cat >>confdefs.h <<\_ACEOF | ||
24566 | #define HAVE_HOST_IN_UTMP 1 | ||
24567 | _ACEOF | ||
24568 | |||
24569 | fi | ||
24570 | else | ||
24571 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24572 | $as_echo "no" >&6; } | ||
24573 | fi | ||
24574 | |||
24575 | |||
24576 | # look for field 'ut_host' in header 'utmpx.h' | ||
24577 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24578 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
24579 | { $as_echo "$as_me:$LINENO: checking for ut_host field in utmpx.h" >&5 | ||
24580 | $as_echo_n "checking for ut_host field in utmpx.h... " >&6; } | ||
24581 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24582 | $as_echo_n "(cached) " >&6 | ||
24583 | else | ||
24584 | |||
24585 | cat >conftest.$ac_ext <<_ACEOF | ||
24586 | /* confdefs.h. */ | ||
24587 | _ACEOF | ||
24588 | cat confdefs.h >>conftest.$ac_ext | ||
24589 | cat >>conftest.$ac_ext <<_ACEOF | ||
24590 | /* end confdefs.h. */ | ||
24591 | #include <utmpx.h> | ||
24592 | |||
24593 | _ACEOF | ||
24594 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24595 | $EGREP "ut_host" >/dev/null 2>&1; then | ||
24596 | eval "$ossh_varname=yes" | ||
24597 | else | ||
24598 | eval "$ossh_varname=no" | ||
24599 | fi | ||
24600 | rm -f conftest* | ||
24601 | |||
24602 | fi | ||
24603 | |||
24604 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24605 | if test -n "`echo $ossh_varname`"; then | ||
24606 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24607 | $as_echo "$ossh_result" >&6; } | ||
24608 | if test "x$ossh_result" = "xyes"; then | ||
24609 | |||
24610 | cat >>confdefs.h <<\_ACEOF | ||
24611 | #define HAVE_HOST_IN_UTMPX 1 | ||
24612 | _ACEOF | ||
24613 | |||
24614 | fi | ||
24615 | else | ||
24616 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24617 | $as_echo "no" >&6; } | ||
24618 | fi | ||
24619 | |||
24620 | |||
24621 | # look for field 'syslen' in header 'utmpx.h' | ||
24622 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24623 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
24624 | { $as_echo "$as_me:$LINENO: checking for syslen field in utmpx.h" >&5 | ||
24625 | $as_echo_n "checking for syslen field in utmpx.h... " >&6; } | ||
24626 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24627 | $as_echo_n "(cached) " >&6 | ||
24628 | else | ||
24629 | |||
24630 | cat >conftest.$ac_ext <<_ACEOF | ||
24631 | /* confdefs.h. */ | ||
24632 | _ACEOF | ||
24633 | cat confdefs.h >>conftest.$ac_ext | ||
24634 | cat >>conftest.$ac_ext <<_ACEOF | ||
24635 | /* end confdefs.h. */ | ||
24636 | #include <utmpx.h> | ||
24637 | |||
24638 | _ACEOF | ||
24639 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24640 | $EGREP "syslen" >/dev/null 2>&1; then | ||
24641 | eval "$ossh_varname=yes" | ||
24642 | else | ||
24643 | eval "$ossh_varname=no" | ||
24644 | fi | ||
24645 | rm -f conftest* | ||
24646 | |||
24647 | fi | ||
24648 | |||
24649 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24650 | if test -n "`echo $ossh_varname`"; then | ||
24651 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24652 | $as_echo "$ossh_result" >&6; } | ||
24653 | if test "x$ossh_result" = "xyes"; then | ||
24654 | |||
24655 | cat >>confdefs.h <<\_ACEOF | ||
24656 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
24657 | _ACEOF | ||
24658 | |||
24659 | fi | ||
24660 | else | ||
24661 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24662 | $as_echo "no" >&6; } | ||
24663 | fi | ||
24664 | |||
24665 | |||
24666 | # look for field 'ut_pid' in header 'utmp.h' | ||
24667 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24668 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
24669 | { $as_echo "$as_me:$LINENO: checking for ut_pid field in utmp.h" >&5 | ||
24670 | $as_echo_n "checking for ut_pid field in utmp.h... " >&6; } | ||
24671 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24672 | $as_echo_n "(cached) " >&6 | ||
24673 | else | ||
24674 | |||
24675 | cat >conftest.$ac_ext <<_ACEOF | ||
24676 | /* confdefs.h. */ | ||
24677 | _ACEOF | ||
24678 | cat confdefs.h >>conftest.$ac_ext | ||
24679 | cat >>conftest.$ac_ext <<_ACEOF | ||
24680 | /* end confdefs.h. */ | ||
24681 | #include <utmp.h> | ||
24682 | |||
24683 | _ACEOF | ||
24684 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24685 | $EGREP "ut_pid" >/dev/null 2>&1; then | ||
24686 | eval "$ossh_varname=yes" | ||
24687 | else | ||
24688 | eval "$ossh_varname=no" | ||
24689 | fi | ||
24690 | rm -f conftest* | ||
24691 | |||
24692 | fi | ||
24693 | |||
24694 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24695 | if test -n "`echo $ossh_varname`"; then | ||
24696 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24697 | $as_echo "$ossh_result" >&6; } | ||
24698 | if test "x$ossh_result" = "xyes"; then | ||
24699 | |||
24700 | cat >>confdefs.h <<\_ACEOF | ||
24701 | #define HAVE_PID_IN_UTMP 1 | ||
24702 | _ACEOF | ||
24703 | |||
24704 | fi | ||
24705 | else | ||
24706 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24707 | $as_echo "no" >&6; } | ||
24708 | fi | ||
24709 | |||
24710 | |||
24711 | # look for field 'ut_type' in header 'utmp.h' | ||
24712 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24713 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
24714 | { $as_echo "$as_me:$LINENO: checking for ut_type field in utmp.h" >&5 | ||
24715 | $as_echo_n "checking for ut_type field in utmp.h... " >&6; } | ||
24716 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24717 | $as_echo_n "(cached) " >&6 | ||
24718 | else | ||
24719 | |||
24720 | cat >conftest.$ac_ext <<_ACEOF | ||
24721 | /* confdefs.h. */ | ||
24722 | _ACEOF | ||
24723 | cat confdefs.h >>conftest.$ac_ext | ||
24724 | cat >>conftest.$ac_ext <<_ACEOF | ||
24725 | /* end confdefs.h. */ | ||
24726 | #include <utmp.h> | ||
24727 | |||
24728 | _ACEOF | ||
24729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24730 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
24731 | eval "$ossh_varname=yes" | ||
24732 | else | ||
24733 | eval "$ossh_varname=no" | ||
24734 | fi | ||
24735 | rm -f conftest* | ||
24736 | |||
24737 | fi | ||
24738 | |||
24739 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24740 | if test -n "`echo $ossh_varname`"; then | ||
24741 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24742 | $as_echo "$ossh_result" >&6; } | ||
24743 | if test "x$ossh_result" = "xyes"; then | ||
24744 | |||
24745 | cat >>confdefs.h <<\_ACEOF | ||
24746 | #define HAVE_TYPE_IN_UTMP 1 | ||
24747 | _ACEOF | ||
24748 | |||
24749 | fi | ||
24750 | else | ||
24751 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24752 | $as_echo "no" >&6; } | ||
24753 | fi | ||
24754 | |||
24755 | |||
24756 | # look for field 'ut_type' in header 'utmpx.h' | ||
24757 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24758 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
24759 | { $as_echo "$as_me:$LINENO: checking for ut_type field in utmpx.h" >&5 | ||
24760 | $as_echo_n "checking for ut_type field in utmpx.h... " >&6; } | ||
24761 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24762 | $as_echo_n "(cached) " >&6 | ||
24763 | else | ||
24764 | |||
24765 | cat >conftest.$ac_ext <<_ACEOF | ||
24766 | /* confdefs.h. */ | ||
24767 | _ACEOF | ||
24768 | cat confdefs.h >>conftest.$ac_ext | ||
24769 | cat >>conftest.$ac_ext <<_ACEOF | ||
24770 | /* end confdefs.h. */ | ||
24771 | #include <utmpx.h> | ||
24772 | |||
24773 | _ACEOF | ||
24774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24775 | $EGREP "ut_type" >/dev/null 2>&1; then | ||
24776 | eval "$ossh_varname=yes" | ||
24777 | else | ||
24778 | eval "$ossh_varname=no" | ||
24779 | fi | ||
24780 | rm -f conftest* | ||
24781 | |||
24782 | fi | ||
24783 | |||
24784 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24785 | if test -n "`echo $ossh_varname`"; then | ||
24786 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24787 | $as_echo "$ossh_result" >&6; } | ||
24788 | if test "x$ossh_result" = "xyes"; then | ||
24789 | |||
24790 | cat >>confdefs.h <<\_ACEOF | ||
24791 | #define HAVE_TYPE_IN_UTMPX 1 | ||
24792 | _ACEOF | ||
24793 | |||
24794 | fi | ||
24795 | else | ||
24796 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24797 | $as_echo "no" >&6; } | ||
24798 | fi | ||
24799 | |||
24800 | |||
24801 | # look for field 'ut_tv' in header 'utmp.h' | ||
24802 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24803 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
24804 | { $as_echo "$as_me:$LINENO: checking for ut_tv field in utmp.h" >&5 | ||
24805 | $as_echo_n "checking for ut_tv field in utmp.h... " >&6; } | ||
24806 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24807 | $as_echo_n "(cached) " >&6 | ||
24808 | else | ||
24809 | |||
24810 | cat >conftest.$ac_ext <<_ACEOF | ||
24811 | /* confdefs.h. */ | ||
24812 | _ACEOF | ||
24813 | cat confdefs.h >>conftest.$ac_ext | ||
24814 | cat >>conftest.$ac_ext <<_ACEOF | ||
24815 | /* end confdefs.h. */ | ||
24816 | #include <utmp.h> | ||
24817 | |||
24818 | _ACEOF | ||
24819 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24820 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
24821 | eval "$ossh_varname=yes" | ||
24822 | else | ||
24823 | eval "$ossh_varname=no" | ||
24824 | fi | ||
24825 | rm -f conftest* | ||
24826 | |||
24827 | fi | ||
24828 | |||
24829 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24830 | if test -n "`echo $ossh_varname`"; then | ||
24831 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24832 | $as_echo "$ossh_result" >&6; } | ||
24833 | if test "x$ossh_result" = "xyes"; then | ||
24834 | |||
24835 | cat >>confdefs.h <<\_ACEOF | ||
24836 | #define HAVE_TV_IN_UTMP 1 | ||
24837 | _ACEOF | ||
24838 | |||
24839 | fi | ||
24840 | else | ||
24841 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24842 | $as_echo "no" >&6; } | ||
24843 | fi | ||
24844 | |||
24845 | |||
24846 | # look for field 'ut_id' in header 'utmp.h' | ||
24847 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24848 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
24849 | { $as_echo "$as_me:$LINENO: checking for ut_id field in utmp.h" >&5 | ||
24850 | $as_echo_n "checking for ut_id field in utmp.h... " >&6; } | ||
24851 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24852 | $as_echo_n "(cached) " >&6 | ||
24853 | else | ||
24854 | |||
24855 | cat >conftest.$ac_ext <<_ACEOF | ||
24856 | /* confdefs.h. */ | ||
24857 | _ACEOF | ||
24858 | cat confdefs.h >>conftest.$ac_ext | ||
24859 | cat >>conftest.$ac_ext <<_ACEOF | ||
24860 | /* end confdefs.h. */ | ||
24861 | #include <utmp.h> | ||
24862 | |||
24863 | _ACEOF | ||
24864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24865 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
24866 | eval "$ossh_varname=yes" | ||
24867 | else | ||
24868 | eval "$ossh_varname=no" | ||
24869 | fi | ||
24870 | rm -f conftest* | ||
24871 | |||
24872 | fi | ||
24873 | |||
24874 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24875 | if test -n "`echo $ossh_varname`"; then | ||
24876 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24877 | $as_echo "$ossh_result" >&6; } | ||
24878 | if test "x$ossh_result" = "xyes"; then | ||
24879 | |||
24880 | cat >>confdefs.h <<\_ACEOF | ||
24881 | #define HAVE_ID_IN_UTMP 1 | ||
24882 | _ACEOF | ||
24883 | |||
24884 | fi | ||
24885 | else | ||
24886 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24887 | $as_echo "no" >&6; } | ||
24888 | fi | ||
24889 | |||
24890 | |||
24891 | # look for field 'ut_id' in header 'utmpx.h' | ||
24892 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24893 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
24894 | { $as_echo "$as_me:$LINENO: checking for ut_id field in utmpx.h" >&5 | ||
24895 | $as_echo_n "checking for ut_id field in utmpx.h... " >&6; } | ||
24896 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24897 | $as_echo_n "(cached) " >&6 | ||
24898 | else | ||
24899 | |||
24900 | cat >conftest.$ac_ext <<_ACEOF | ||
24901 | /* confdefs.h. */ | ||
24902 | _ACEOF | ||
24903 | cat confdefs.h >>conftest.$ac_ext | ||
24904 | cat >>conftest.$ac_ext <<_ACEOF | ||
24905 | /* end confdefs.h. */ | ||
24906 | #include <utmpx.h> | ||
24907 | |||
24908 | _ACEOF | ||
24909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24910 | $EGREP "ut_id" >/dev/null 2>&1; then | ||
24911 | eval "$ossh_varname=yes" | ||
24912 | else | ||
24913 | eval "$ossh_varname=no" | ||
24914 | fi | ||
24915 | rm -f conftest* | ||
24916 | |||
24917 | fi | ||
24918 | |||
24919 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24920 | if test -n "`echo $ossh_varname`"; then | ||
24921 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24922 | $as_echo "$ossh_result" >&6; } | ||
24923 | if test "x$ossh_result" = "xyes"; then | ||
24924 | |||
24925 | cat >>confdefs.h <<\_ACEOF | ||
24926 | #define HAVE_ID_IN_UTMPX 1 | ||
24927 | _ACEOF | ||
24928 | |||
24929 | fi | ||
24930 | else | ||
24931 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24932 | $as_echo "no" >&6; } | ||
24933 | fi | ||
24934 | |||
24935 | |||
24936 | # look for field 'ut_addr' in header 'utmp.h' | ||
24937 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
24938 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
24939 | { $as_echo "$as_me:$LINENO: checking for ut_addr field in utmp.h" >&5 | ||
24940 | $as_echo_n "checking for ut_addr field in utmp.h... " >&6; } | ||
24941 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24942 | $as_echo_n "(cached) " >&6 | ||
24943 | else | ||
24944 | |||
24945 | cat >conftest.$ac_ext <<_ACEOF | ||
24946 | /* confdefs.h. */ | ||
24947 | _ACEOF | ||
24948 | cat confdefs.h >>conftest.$ac_ext | ||
24949 | cat >>conftest.$ac_ext <<_ACEOF | ||
24950 | /* end confdefs.h. */ | ||
24951 | #include <utmp.h> | ||
24952 | |||
24953 | _ACEOF | ||
24954 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
24955 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
24956 | eval "$ossh_varname=yes" | ||
24957 | else | ||
24958 | eval "$ossh_varname=no" | ||
24959 | fi | ||
24960 | rm -f conftest* | ||
24961 | |||
24962 | fi | ||
24963 | |||
24964 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
24965 | if test -n "`echo $ossh_varname`"; then | ||
24966 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
24967 | $as_echo "$ossh_result" >&6; } | ||
24968 | if test "x$ossh_result" = "xyes"; then | ||
24969 | |||
24970 | cat >>confdefs.h <<\_ACEOF | ||
24971 | #define HAVE_ADDR_IN_UTMP 1 | ||
24972 | _ACEOF | ||
24973 | |||
24974 | fi | ||
24975 | else | ||
24976 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
24977 | $as_echo "no" >&6; } | ||
24978 | fi | ||
24979 | |||
24980 | |||
24981 | # look for field 'ut_addr' in header 'utmpx.h' | ||
24982 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
24983 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
24984 | { $as_echo "$as_me:$LINENO: checking for ut_addr field in utmpx.h" >&5 | ||
24985 | $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; } | ||
24986 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
24987 | $as_echo_n "(cached) " >&6 | ||
24988 | else | ||
24989 | |||
24990 | cat >conftest.$ac_ext <<_ACEOF | ||
24991 | /* confdefs.h. */ | ||
24992 | _ACEOF | ||
24993 | cat confdefs.h >>conftest.$ac_ext | ||
24994 | cat >>conftest.$ac_ext <<_ACEOF | ||
24995 | /* end confdefs.h. */ | ||
24996 | #include <utmpx.h> | ||
24997 | |||
24998 | _ACEOF | ||
24999 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25000 | $EGREP "ut_addr" >/dev/null 2>&1; then | ||
25001 | eval "$ossh_varname=yes" | ||
25002 | else | ||
25003 | eval "$ossh_varname=no" | ||
25004 | fi | ||
25005 | rm -f conftest* | ||
25006 | |||
25007 | fi | ||
25008 | |||
25009 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25010 | if test -n "`echo $ossh_varname`"; then | ||
25011 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25012 | $as_echo "$ossh_result" >&6; } | ||
25013 | if test "x$ossh_result" = "xyes"; then | ||
25014 | |||
25015 | cat >>confdefs.h <<\_ACEOF | ||
25016 | #define HAVE_ADDR_IN_UTMPX 1 | ||
25017 | _ACEOF | ||
25018 | |||
25019 | fi | ||
25020 | else | ||
25021 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25022 | $as_echo "no" >&6; } | ||
25023 | fi | ||
25024 | |||
25025 | |||
25026 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
25027 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25028 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
25029 | { $as_echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmp.h" >&5 | ||
25030 | $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; } | ||
25031 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25032 | $as_echo_n "(cached) " >&6 | ||
25033 | else | ||
25034 | |||
25035 | cat >conftest.$ac_ext <<_ACEOF | ||
25036 | /* confdefs.h. */ | ||
25037 | _ACEOF | ||
25038 | cat confdefs.h >>conftest.$ac_ext | ||
25039 | cat >>conftest.$ac_ext <<_ACEOF | ||
25040 | /* end confdefs.h. */ | ||
25041 | #include <utmp.h> | ||
25042 | |||
25043 | _ACEOF | ||
25044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25045 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
25046 | eval "$ossh_varname=yes" | ||
25047 | else | ||
25048 | eval "$ossh_varname=no" | ||
25049 | fi | ||
25050 | rm -f conftest* | ||
25051 | |||
25052 | fi | ||
25053 | |||
25054 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25055 | if test -n "`echo $ossh_varname`"; then | ||
25056 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25057 | $as_echo "$ossh_result" >&6; } | ||
25058 | if test "x$ossh_result" = "xyes"; then | ||
25059 | |||
25060 | cat >>confdefs.h <<\_ACEOF | ||
25061 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
25062 | _ACEOF | ||
25063 | |||
25064 | fi | ||
25065 | else | ||
25066 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25067 | $as_echo "no" >&6; } | ||
25068 | fi | ||
25069 | |||
25070 | |||
25071 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
25072 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25073 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
25074 | { $as_echo "$as_me:$LINENO: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
25075 | $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; } | ||
25076 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25077 | $as_echo_n "(cached) " >&6 | ||
25078 | else | ||
25079 | |||
25080 | cat >conftest.$ac_ext <<_ACEOF | ||
25081 | /* confdefs.h. */ | ||
25082 | _ACEOF | ||
25083 | cat confdefs.h >>conftest.$ac_ext | ||
25084 | cat >>conftest.$ac_ext <<_ACEOF | ||
25085 | /* end confdefs.h. */ | ||
25086 | #include <utmpx.h> | ||
25087 | |||
25088 | _ACEOF | ||
25089 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25090 | $EGREP "ut_addr_v6" >/dev/null 2>&1; then | ||
25091 | eval "$ossh_varname=yes" | ||
25092 | else | ||
25093 | eval "$ossh_varname=no" | ||
25094 | fi | ||
25095 | rm -f conftest* | ||
25096 | |||
25097 | fi | ||
25098 | |||
25099 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25100 | if test -n "`echo $ossh_varname`"; then | ||
25101 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25102 | $as_echo "$ossh_result" >&6; } | ||
25103 | if test "x$ossh_result" = "xyes"; then | ||
25104 | |||
25105 | cat >>confdefs.h <<\_ACEOF | ||
25106 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
25107 | _ACEOF | ||
25108 | |||
25109 | fi | ||
25110 | else | ||
25111 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25112 | $as_echo "no" >&6; } | ||
25113 | fi | ||
25114 | |||
25115 | |||
25116 | # look for field 'ut_exit' in header 'utmp.h' | ||
25117 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25118 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
25119 | { $as_echo "$as_me:$LINENO: checking for ut_exit field in utmp.h" >&5 | ||
25120 | $as_echo_n "checking for ut_exit field in utmp.h... " >&6; } | ||
25121 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25122 | $as_echo_n "(cached) " >&6 | ||
25123 | else | ||
25124 | |||
25125 | cat >conftest.$ac_ext <<_ACEOF | ||
25126 | /* confdefs.h. */ | ||
25127 | _ACEOF | ||
25128 | cat confdefs.h >>conftest.$ac_ext | ||
25129 | cat >>conftest.$ac_ext <<_ACEOF | ||
25130 | /* end confdefs.h. */ | ||
25131 | #include <utmp.h> | ||
25132 | |||
25133 | _ACEOF | ||
25134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25135 | $EGREP "ut_exit" >/dev/null 2>&1; then | ||
25136 | eval "$ossh_varname=yes" | ||
25137 | else | ||
25138 | eval "$ossh_varname=no" | ||
25139 | fi | ||
25140 | rm -f conftest* | ||
25141 | |||
25142 | fi | ||
25143 | |||
25144 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25145 | if test -n "`echo $ossh_varname`"; then | ||
25146 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25147 | $as_echo "$ossh_result" >&6; } | ||
25148 | if test "x$ossh_result" = "xyes"; then | ||
25149 | |||
25150 | cat >>confdefs.h <<\_ACEOF | ||
25151 | #define HAVE_EXIT_IN_UTMP 1 | ||
25152 | _ACEOF | ||
25153 | |||
25154 | fi | ||
25155 | else | ||
25156 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25157 | $as_echo "no" >&6; } | ||
25158 | fi | ||
25159 | |||
25160 | |||
25161 | # look for field 'ut_time' in header 'utmp.h' | ||
25162 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
25163 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
25164 | { $as_echo "$as_me:$LINENO: checking for ut_time field in utmp.h" >&5 | ||
25165 | $as_echo_n "checking for ut_time field in utmp.h... " >&6; } | ||
25166 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25167 | $as_echo_n "(cached) " >&6 | ||
25168 | else | ||
25169 | |||
25170 | cat >conftest.$ac_ext <<_ACEOF | ||
25171 | /* confdefs.h. */ | ||
25172 | _ACEOF | ||
25173 | cat confdefs.h >>conftest.$ac_ext | ||
25174 | cat >>conftest.$ac_ext <<_ACEOF | ||
25175 | /* end confdefs.h. */ | ||
25176 | #include <utmp.h> | ||
25177 | |||
25178 | _ACEOF | ||
25179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25180 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
25181 | eval "$ossh_varname=yes" | ||
25182 | else | ||
25183 | eval "$ossh_varname=no" | ||
25184 | fi | ||
25185 | rm -f conftest* | ||
25186 | |||
25187 | fi | ||
25188 | |||
25189 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25190 | if test -n "`echo $ossh_varname`"; then | ||
25191 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25192 | $as_echo "$ossh_result" >&6; } | ||
25193 | if test "x$ossh_result" = "xyes"; then | ||
25194 | |||
25195 | cat >>confdefs.h <<\_ACEOF | ||
25196 | #define HAVE_TIME_IN_UTMP 1 | ||
25197 | _ACEOF | ||
25198 | |||
25199 | fi | ||
25200 | else | ||
25201 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25202 | $as_echo "no" >&6; } | ||
25203 | fi | ||
25204 | |||
25205 | |||
25206 | # look for field 'ut_time' in header 'utmpx.h' | ||
25207 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25208 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
25209 | { $as_echo "$as_me:$LINENO: checking for ut_time field in utmpx.h" >&5 | ||
25210 | $as_echo_n "checking for ut_time field in utmpx.h... " >&6; } | ||
25211 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25212 | $as_echo_n "(cached) " >&6 | ||
25213 | else | ||
25214 | |||
25215 | cat >conftest.$ac_ext <<_ACEOF | ||
25216 | /* confdefs.h. */ | ||
25217 | _ACEOF | ||
25218 | cat confdefs.h >>conftest.$ac_ext | ||
25219 | cat >>conftest.$ac_ext <<_ACEOF | ||
25220 | /* end confdefs.h. */ | ||
25221 | #include <utmpx.h> | ||
25222 | |||
25223 | _ACEOF | ||
25224 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25225 | $EGREP "ut_time" >/dev/null 2>&1; then | ||
25226 | eval "$ossh_varname=yes" | ||
25227 | else | ||
25228 | eval "$ossh_varname=no" | ||
25229 | fi | ||
25230 | rm -f conftest* | ||
25231 | |||
25232 | fi | ||
25233 | |||
25234 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25235 | if test -n "`echo $ossh_varname`"; then | ||
25236 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25237 | $as_echo "$ossh_result" >&6; } | ||
25238 | if test "x$ossh_result" = "xyes"; then | ||
25239 | |||
25240 | cat >>confdefs.h <<\_ACEOF | ||
25241 | #define HAVE_TIME_IN_UTMPX 1 | ||
25242 | _ACEOF | ||
25243 | |||
25244 | fi | ||
25245 | else | ||
25246 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25247 | $as_echo "no" >&6; } | ||
25248 | fi | ||
25249 | |||
25250 | |||
25251 | # look for field 'ut_tv' in header 'utmpx.h' | ||
25252 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
25253 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
25254 | { $as_echo "$as_me:$LINENO: checking for ut_tv field in utmpx.h" >&5 | ||
25255 | $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; } | ||
25256 | if { as_var=$ossh_varname; eval "test \"\${$as_var+set}\" = set"; }; then | ||
25257 | $as_echo_n "(cached) " >&6 | ||
25258 | else | ||
25259 | |||
25260 | cat >conftest.$ac_ext <<_ACEOF | ||
25261 | /* confdefs.h. */ | ||
25262 | _ACEOF | ||
25263 | cat confdefs.h >>conftest.$ac_ext | ||
25264 | cat >>conftest.$ac_ext <<_ACEOF | ||
25265 | /* end confdefs.h. */ | ||
25266 | #include <utmpx.h> | ||
25267 | |||
25268 | _ACEOF | ||
25269 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
25270 | $EGREP "ut_tv" >/dev/null 2>&1; then | ||
25271 | eval "$ossh_varname=yes" | ||
25272 | else | ||
25273 | eval "$ossh_varname=no" | ||
25274 | fi | ||
25275 | rm -f conftest* | ||
25276 | |||
25277 | fi | ||
25278 | |||
25279 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
25280 | if test -n "`echo $ossh_varname`"; then | ||
25281 | { $as_echo "$as_me:$LINENO: result: $ossh_result" >&5 | ||
25282 | $as_echo "$ossh_result" >&6; } | ||
25283 | if test "x$ossh_result" = "xyes"; then | ||
25284 | |||
25285 | cat >>confdefs.h <<\_ACEOF | ||
25286 | #define HAVE_TV_IN_UTMPX 1 | ||
25287 | _ACEOF | ||
25288 | |||
25289 | fi | ||
25290 | else | ||
25291 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25292 | $as_echo "no" >&6; } | ||
25293 | fi | ||
25294 | |||
25295 | |||
25296 | { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | ||
25297 | $as_echo_n "checking for struct stat.st_blksize... " >&6; } | ||
25298 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | ||
25299 | $as_echo_n "(cached) " >&6 | ||
25300 | else | ||
25301 | cat >conftest.$ac_ext <<_ACEOF | ||
25302 | /* confdefs.h. */ | ||
25303 | _ACEOF | ||
25304 | cat confdefs.h >>conftest.$ac_ext | ||
25305 | cat >>conftest.$ac_ext <<_ACEOF | ||
25306 | /* end confdefs.h. */ | ||
25307 | $ac_includes_default | ||
25308 | int | ||
25309 | main () | ||
25310 | { | ||
25311 | static struct stat ac_aggr; | ||
25312 | if (ac_aggr.st_blksize) | ||
25313 | return 0; | ||
25314 | ; | ||
25315 | return 0; | ||
25316 | } | ||
25317 | _ACEOF | ||
25318 | rm -f conftest.$ac_objext | ||
25319 | if { (ac_try="$ac_compile" | ||
25320 | case "(($ac_try" in | ||
25321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25322 | *) ac_try_echo=$ac_try;; | ||
25323 | esac | ||
25324 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25325 | $as_echo "$ac_try_echo") >&5 | ||
25326 | (eval "$ac_compile") 2>conftest.er1 | ||
25327 | ac_status=$? | ||
25328 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25329 | rm -f conftest.er1 | ||
25330 | cat conftest.err >&5 | ||
25331 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25332 | (exit $ac_status); } && { | ||
25333 | test -z "$ac_c_werror_flag" || | ||
25334 | test ! -s conftest.err | ||
25335 | } && test -s conftest.$ac_objext; then | ||
25336 | ac_cv_member_struct_stat_st_blksize=yes | ||
25337 | else | ||
25338 | $as_echo "$as_me: failed program was:" >&5 | ||
25339 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25340 | |||
25341 | cat >conftest.$ac_ext <<_ACEOF | ||
25342 | /* confdefs.h. */ | ||
25343 | _ACEOF | ||
25344 | cat confdefs.h >>conftest.$ac_ext | ||
25345 | cat >>conftest.$ac_ext <<_ACEOF | ||
25346 | /* end confdefs.h. */ | ||
25347 | $ac_includes_default | ||
25348 | int | ||
25349 | main () | ||
25350 | { | ||
25351 | static struct stat ac_aggr; | ||
25352 | if (sizeof ac_aggr.st_blksize) | ||
25353 | return 0; | ||
25354 | ; | ||
25355 | return 0; | ||
25356 | } | ||
25357 | _ACEOF | ||
25358 | rm -f conftest.$ac_objext | ||
25359 | if { (ac_try="$ac_compile" | ||
25360 | case "(($ac_try" in | ||
25361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25362 | *) ac_try_echo=$ac_try;; | ||
25363 | esac | ||
25364 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25365 | $as_echo "$ac_try_echo") >&5 | ||
25366 | (eval "$ac_compile") 2>conftest.er1 | ||
25367 | ac_status=$? | ||
25368 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25369 | rm -f conftest.er1 | ||
25370 | cat conftest.err >&5 | ||
25371 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25372 | (exit $ac_status); } && { | ||
25373 | test -z "$ac_c_werror_flag" || | ||
25374 | test ! -s conftest.err | ||
25375 | } && test -s conftest.$ac_objext; then | ||
25376 | ac_cv_member_struct_stat_st_blksize=yes | ||
25377 | else | ||
25378 | $as_echo "$as_me: failed program was:" >&5 | ||
25379 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25380 | |||
25381 | ac_cv_member_struct_stat_st_blksize=no | ||
25382 | fi | ||
25383 | |||
25384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25385 | fi | ||
25386 | |||
25387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25388 | fi | ||
25389 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | ||
25390 | $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; } | ||
25391 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | ||
25392 | |||
25393 | cat >>confdefs.h <<_ACEOF | ||
25394 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | ||
25395 | _ACEOF | ||
25396 | |||
25397 | |||
25398 | fi | ||
25399 | |||
25400 | { $as_echo "$as_me:$LINENO: checking for struct __res_state.retrans" >&5 | ||
25401 | $as_echo_n "checking for struct __res_state.retrans... " >&6; } | ||
25402 | if test "${ac_cv_member_struct___res_state_retrans+set}" = set; then | ||
25403 | $as_echo_n "(cached) " >&6 | ||
25404 | else | ||
25405 | cat >conftest.$ac_ext <<_ACEOF | ||
25406 | /* confdefs.h. */ | ||
25407 | _ACEOF | ||
25408 | cat confdefs.h >>conftest.$ac_ext | ||
25409 | cat >>conftest.$ac_ext <<_ACEOF | ||
25410 | /* end confdefs.h. */ | ||
25411 | |||
25412 | #include <stdio.h> | ||
25413 | #if HAVE_SYS_TYPES_H | ||
25414 | # include <sys/types.h> | ||
25415 | #endif | ||
25416 | #include <netinet/in.h> | ||
25417 | #include <arpa/nameser.h> | ||
25418 | #include <resolv.h> | ||
25419 | |||
25420 | |||
25421 | int | ||
25422 | main () | ||
25423 | { | ||
25424 | static struct __res_state ac_aggr; | ||
25425 | if (ac_aggr.retrans) | ||
25426 | return 0; | ||
25427 | ; | ||
25428 | return 0; | ||
25429 | } | ||
25430 | _ACEOF | ||
25431 | rm -f conftest.$ac_objext | ||
25432 | if { (ac_try="$ac_compile" | ||
25433 | case "(($ac_try" in | ||
25434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25435 | *) ac_try_echo=$ac_try;; | ||
25436 | esac | ||
25437 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25438 | $as_echo "$ac_try_echo") >&5 | ||
25439 | (eval "$ac_compile") 2>conftest.er1 | ||
25440 | ac_status=$? | ||
25441 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25442 | rm -f conftest.er1 | ||
25443 | cat conftest.err >&5 | ||
25444 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25445 | (exit $ac_status); } && { | ||
25446 | test -z "$ac_c_werror_flag" || | ||
25447 | test ! -s conftest.err | ||
25448 | } && test -s conftest.$ac_objext; then | ||
25449 | ac_cv_member_struct___res_state_retrans=yes | ||
25450 | else | ||
25451 | $as_echo "$as_me: failed program was:" >&5 | ||
25452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25453 | |||
25454 | cat >conftest.$ac_ext <<_ACEOF | ||
25455 | /* confdefs.h. */ | ||
25456 | _ACEOF | ||
25457 | cat confdefs.h >>conftest.$ac_ext | ||
25458 | cat >>conftest.$ac_ext <<_ACEOF | ||
25459 | /* end confdefs.h. */ | ||
25460 | |||
25461 | #include <stdio.h> | ||
25462 | #if HAVE_SYS_TYPES_H | ||
25463 | # include <sys/types.h> | ||
25464 | #endif | ||
25465 | #include <netinet/in.h> | ||
25466 | #include <arpa/nameser.h> | ||
25467 | #include <resolv.h> | ||
25468 | |||
25469 | |||
25470 | int | ||
25471 | main () | ||
25472 | { | ||
25473 | static struct __res_state ac_aggr; | ||
25474 | if (sizeof ac_aggr.retrans) | ||
25475 | return 0; | ||
25476 | ; | ||
25477 | return 0; | ||
25478 | } | ||
25479 | _ACEOF | ||
25480 | rm -f conftest.$ac_objext | ||
25481 | if { (ac_try="$ac_compile" | ||
25482 | case "(($ac_try" in | ||
25483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25484 | *) ac_try_echo=$ac_try;; | ||
25485 | esac | ||
25486 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25487 | $as_echo "$ac_try_echo") >&5 | ||
25488 | (eval "$ac_compile") 2>conftest.er1 | ||
25489 | ac_status=$? | ||
25490 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25491 | rm -f conftest.er1 | ||
25492 | cat conftest.err >&5 | ||
25493 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25494 | (exit $ac_status); } && { | ||
25495 | test -z "$ac_c_werror_flag" || | ||
25496 | test ! -s conftest.err | ||
25497 | } && test -s conftest.$ac_objext; then | ||
25498 | ac_cv_member_struct___res_state_retrans=yes | ||
25499 | else | ||
25500 | $as_echo "$as_me: failed program was:" >&5 | ||
25501 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25502 | |||
25503 | ac_cv_member_struct___res_state_retrans=no | ||
25504 | fi | ||
25505 | |||
25506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25507 | fi | ||
25508 | |||
25509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25510 | fi | ||
25511 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct___res_state_retrans" >&5 | ||
25512 | $as_echo "$ac_cv_member_struct___res_state_retrans" >&6; } | ||
25513 | if test $ac_cv_member_struct___res_state_retrans = yes; then | ||
25514 | : | ||
25515 | else | ||
25516 | |||
25517 | cat >>confdefs.h <<\_ACEOF | ||
25518 | #define __res_state state | ||
25519 | _ACEOF | ||
25520 | |||
25521 | fi | ||
25522 | |||
25523 | |||
25524 | { $as_echo "$as_me:$LINENO: checking for ss_family field in struct sockaddr_storage" >&5 | ||
25525 | $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } | ||
25526 | if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then | ||
25527 | $as_echo_n "(cached) " >&6 | ||
25528 | else | ||
25529 | |||
25530 | cat >conftest.$ac_ext <<_ACEOF | ||
25531 | /* confdefs.h. */ | ||
25532 | _ACEOF | ||
25533 | cat confdefs.h >>conftest.$ac_ext | ||
25534 | cat >>conftest.$ac_ext <<_ACEOF | ||
25535 | /* end confdefs.h. */ | ||
25536 | |||
25537 | #include <sys/types.h> | ||
25538 | #include <sys/socket.h> | ||
25539 | |||
25540 | int | ||
25541 | main () | ||
25542 | { | ||
25543 | struct sockaddr_storage s; s.ss_family = 1; | ||
25544 | ; | ||
25545 | return 0; | ||
25546 | } | ||
25547 | _ACEOF | ||
25548 | rm -f conftest.$ac_objext | ||
25549 | if { (ac_try="$ac_compile" | ||
25550 | case "(($ac_try" in | ||
25551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25552 | *) ac_try_echo=$ac_try;; | ||
25553 | esac | ||
25554 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25555 | $as_echo "$ac_try_echo") >&5 | ||
25556 | (eval "$ac_compile") 2>conftest.er1 | ||
25557 | ac_status=$? | ||
25558 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25559 | rm -f conftest.er1 | ||
25560 | cat conftest.err >&5 | ||
25561 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25562 | (exit $ac_status); } && { | ||
25563 | test -z "$ac_c_werror_flag" || | ||
25564 | test ! -s conftest.err | ||
25565 | } && test -s conftest.$ac_objext; then | ||
25566 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
25567 | else | ||
25568 | $as_echo "$as_me: failed program was:" >&5 | ||
25569 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25570 | |||
25571 | ac_cv_have_ss_family_in_struct_ss="no" | ||
25572 | fi | ||
25573 | |||
25574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25575 | |||
25576 | fi | ||
25577 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_ss_family_in_struct_ss" >&5 | ||
25578 | $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } | ||
25579 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
25580 | |||
25581 | cat >>confdefs.h <<\_ACEOF | ||
25582 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
25583 | _ACEOF | ||
25584 | |||
25585 | fi | ||
25586 | |||
25587 | { $as_echo "$as_me:$LINENO: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
25588 | $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } | ||
25589 | if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then | ||
25590 | $as_echo_n "(cached) " >&6 | ||
25591 | else | ||
25592 | |||
25593 | cat >conftest.$ac_ext <<_ACEOF | ||
25594 | /* confdefs.h. */ | ||
25595 | _ACEOF | ||
25596 | cat confdefs.h >>conftest.$ac_ext | ||
25597 | cat >>conftest.$ac_ext <<_ACEOF | ||
25598 | /* end confdefs.h. */ | ||
25599 | |||
25600 | #include <sys/types.h> | ||
25601 | #include <sys/socket.h> | ||
25602 | |||
25603 | int | ||
25604 | main () | ||
25605 | { | ||
25606 | struct sockaddr_storage s; s.__ss_family = 1; | ||
25607 | ; | ||
25608 | return 0; | ||
25609 | } | ||
25610 | _ACEOF | ||
25611 | rm -f conftest.$ac_objext | ||
25612 | if { (ac_try="$ac_compile" | ||
25613 | case "(($ac_try" in | ||
25614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25615 | *) ac_try_echo=$ac_try;; | ||
25616 | esac | ||
25617 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25618 | $as_echo "$ac_try_echo") >&5 | ||
25619 | (eval "$ac_compile") 2>conftest.er1 | ||
25620 | ac_status=$? | ||
25621 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25622 | rm -f conftest.er1 | ||
25623 | cat conftest.err >&5 | ||
25624 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25625 | (exit $ac_status); } && { | ||
25626 | test -z "$ac_c_werror_flag" || | ||
25627 | test ! -s conftest.err | ||
25628 | } && test -s conftest.$ac_objext; then | ||
25629 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
25630 | else | ||
25631 | $as_echo "$as_me: failed program was:" >&5 | ||
25632 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25633 | |||
25634 | ac_cv_have___ss_family_in_struct_ss="no" | ||
25635 | |||
25636 | fi | ||
25637 | |||
25638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25639 | |||
25640 | fi | ||
25641 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have___ss_family_in_struct_ss" >&5 | ||
25642 | $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } | ||
25643 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
25644 | |||
25645 | cat >>confdefs.h <<\_ACEOF | ||
25646 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
25647 | _ACEOF | ||
25648 | |||
25649 | fi | ||
25650 | |||
25651 | { $as_echo "$as_me:$LINENO: checking for pw_class field in struct passwd" >&5 | ||
25652 | $as_echo_n "checking for pw_class field in struct passwd... " >&6; } | ||
25653 | if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then | ||
25654 | $as_echo_n "(cached) " >&6 | ||
25655 | else | ||
25656 | |||
25657 | cat >conftest.$ac_ext <<_ACEOF | ||
25658 | /* confdefs.h. */ | ||
25659 | _ACEOF | ||
25660 | cat confdefs.h >>conftest.$ac_ext | ||
25661 | cat >>conftest.$ac_ext <<_ACEOF | ||
25662 | /* end confdefs.h. */ | ||
25663 | |||
25664 | #include <pwd.h> | ||
25665 | |||
25666 | int | ||
25667 | main () | ||
25668 | { | ||
25669 | struct passwd p; p.pw_class = 0; | ||
25670 | ; | ||
25671 | return 0; | ||
25672 | } | ||
25673 | _ACEOF | ||
25674 | rm -f conftest.$ac_objext | ||
25675 | if { (ac_try="$ac_compile" | ||
25676 | case "(($ac_try" in | ||
25677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25678 | *) ac_try_echo=$ac_try;; | ||
25679 | esac | ||
25680 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25681 | $as_echo "$ac_try_echo") >&5 | ||
25682 | (eval "$ac_compile") 2>conftest.er1 | ||
25683 | ac_status=$? | ||
25684 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25685 | rm -f conftest.er1 | ||
25686 | cat conftest.err >&5 | ||
25687 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25688 | (exit $ac_status); } && { | ||
25689 | test -z "$ac_c_werror_flag" || | ||
25690 | test ! -s conftest.err | ||
25691 | } && test -s conftest.$ac_objext; then | ||
25692 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
25693 | else | ||
25694 | $as_echo "$as_me: failed program was:" >&5 | ||
25695 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25696 | |||
25697 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
25698 | |||
25699 | fi | ||
25700 | |||
25701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25702 | |||
25703 | fi | ||
25704 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_pw_class_in_struct_passwd" >&5 | ||
25705 | $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; } | ||
25706 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
25707 | |||
25708 | cat >>confdefs.h <<\_ACEOF | ||
25709 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
25710 | _ACEOF | ||
25711 | |||
25712 | fi | ||
25713 | |||
25714 | { $as_echo "$as_me:$LINENO: checking for pw_expire field in struct passwd" >&5 | ||
25715 | $as_echo_n "checking for pw_expire field in struct passwd... " >&6; } | ||
25716 | if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then | ||
25717 | $as_echo_n "(cached) " >&6 | ||
25718 | else | ||
25719 | |||
25720 | cat >conftest.$ac_ext <<_ACEOF | ||
25721 | /* confdefs.h. */ | ||
25722 | _ACEOF | ||
25723 | cat confdefs.h >>conftest.$ac_ext | ||
25724 | cat >>conftest.$ac_ext <<_ACEOF | ||
25725 | /* end confdefs.h. */ | ||
25726 | |||
25727 | #include <pwd.h> | ||
25728 | |||
25729 | int | ||
25730 | main () | ||
25731 | { | ||
25732 | struct passwd p; p.pw_expire = 0; | ||
25733 | ; | ||
25734 | return 0; | ||
25735 | } | ||
25736 | _ACEOF | ||
25737 | rm -f conftest.$ac_objext | ||
25738 | if { (ac_try="$ac_compile" | ||
25739 | case "(($ac_try" in | ||
25740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25741 | *) ac_try_echo=$ac_try;; | ||
25742 | esac | ||
25743 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25744 | $as_echo "$ac_try_echo") >&5 | ||
25745 | (eval "$ac_compile") 2>conftest.er1 | ||
25746 | ac_status=$? | ||
25747 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25748 | rm -f conftest.er1 | ||
25749 | cat conftest.err >&5 | ||
25750 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25751 | (exit $ac_status); } && { | ||
25752 | test -z "$ac_c_werror_flag" || | ||
25753 | test ! -s conftest.err | ||
25754 | } && test -s conftest.$ac_objext; then | ||
25755 | ac_cv_have_pw_expire_in_struct_passwd="yes" | ||
25756 | else | ||
25757 | $as_echo "$as_me: failed program was:" >&5 | ||
25758 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25759 | |||
25760 | ac_cv_have_pw_expire_in_struct_passwd="no" | ||
25761 | |||
25762 | fi | ||
25763 | |||
25764 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25765 | |||
25766 | fi | ||
25767 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5 | ||
25768 | $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; } | ||
25769 | if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then | ||
25770 | |||
25771 | cat >>confdefs.h <<\_ACEOF | ||
25772 | #define HAVE_PW_EXPIRE_IN_PASSWD 1 | ||
25773 | _ACEOF | ||
25774 | |||
25775 | fi | ||
25776 | |||
25777 | { $as_echo "$as_me:$LINENO: checking for pw_change field in struct passwd" >&5 | ||
25778 | $as_echo_n "checking for pw_change field in struct passwd... " >&6; } | ||
25779 | if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then | ||
25780 | $as_echo_n "(cached) " >&6 | ||
25781 | else | ||
25782 | |||
25783 | cat >conftest.$ac_ext <<_ACEOF | ||
25784 | /* confdefs.h. */ | ||
25785 | _ACEOF | ||
25786 | cat confdefs.h >>conftest.$ac_ext | ||
25787 | cat >>conftest.$ac_ext <<_ACEOF | ||
25788 | /* end confdefs.h. */ | ||
25789 | |||
25790 | #include <pwd.h> | ||
25791 | |||
25792 | int | ||
25793 | main () | ||
25794 | { | ||
25795 | struct passwd p; p.pw_change = 0; | ||
25796 | ; | ||
25797 | return 0; | ||
25798 | } | ||
25799 | _ACEOF | ||
25800 | rm -f conftest.$ac_objext | ||
25801 | if { (ac_try="$ac_compile" | ||
25802 | case "(($ac_try" in | ||
25803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25804 | *) ac_try_echo=$ac_try;; | ||
25805 | esac | ||
25806 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25807 | $as_echo "$ac_try_echo") >&5 | ||
25808 | (eval "$ac_compile") 2>conftest.er1 | ||
25809 | ac_status=$? | ||
25810 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25811 | rm -f conftest.er1 | ||
25812 | cat conftest.err >&5 | ||
25813 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25814 | (exit $ac_status); } && { | ||
25815 | test -z "$ac_c_werror_flag" || | ||
25816 | test ! -s conftest.err | ||
25817 | } && test -s conftest.$ac_objext; then | ||
25818 | ac_cv_have_pw_change_in_struct_passwd="yes" | ||
25819 | else | ||
25820 | $as_echo "$as_me: failed program was:" >&5 | ||
25821 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25822 | |||
25823 | ac_cv_have_pw_change_in_struct_passwd="no" | ||
25824 | |||
25825 | fi | ||
25826 | |||
25827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25828 | |||
25829 | fi | ||
25830 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_pw_change_in_struct_passwd" >&5 | ||
25831 | $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; } | ||
25832 | if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then | ||
25833 | |||
25834 | cat >>confdefs.h <<\_ACEOF | ||
25835 | #define HAVE_PW_CHANGE_IN_PASSWD 1 | ||
25836 | _ACEOF | ||
25837 | |||
25838 | fi | ||
25839 | |||
25840 | { $as_echo "$as_me:$LINENO: checking for msg_accrights field in struct msghdr" >&5 | ||
25841 | $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; } | ||
25842 | if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then | ||
25843 | $as_echo_n "(cached) " >&6 | ||
25844 | else | ||
25845 | |||
25846 | cat >conftest.$ac_ext <<_ACEOF | ||
25847 | |||
25848 | #include <sys/types.h> | ||
25849 | #include <sys/socket.h> | ||
25850 | #include <sys/uio.h> | ||
25851 | int main() { | ||
25852 | #ifdef msg_accrights | ||
25853 | #error "msg_accrights is a macro" | ||
25854 | exit(1); | ||
25855 | #endif | ||
25856 | struct msghdr m; | ||
25857 | m.msg_accrights = 0; | ||
25858 | exit(0); | ||
25859 | } | ||
25860 | |||
25861 | _ACEOF | ||
25862 | rm -f conftest.$ac_objext | ||
25863 | if { (ac_try="$ac_compile" | ||
25864 | case "(($ac_try" in | ||
25865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25866 | *) ac_try_echo=$ac_try;; | ||
25867 | esac | ||
25868 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25869 | $as_echo "$ac_try_echo") >&5 | ||
25870 | (eval "$ac_compile") 2>conftest.er1 | ||
25871 | ac_status=$? | ||
25872 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25873 | rm -f conftest.er1 | ||
25874 | cat conftest.err >&5 | ||
25875 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25876 | (exit $ac_status); } && { | ||
25877 | test -z "$ac_c_werror_flag" || | ||
25878 | test ! -s conftest.err | ||
25879 | } && test -s conftest.$ac_objext; then | ||
25880 | ac_cv_have_accrights_in_msghdr="yes" | ||
25881 | else | ||
25882 | $as_echo "$as_me: failed program was:" >&5 | ||
25883 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25884 | |||
25885 | ac_cv_have_accrights_in_msghdr="no" | ||
25886 | |||
25887 | fi | ||
25888 | |||
25889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
25890 | |||
25891 | fi | ||
25892 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_accrights_in_msghdr" >&5 | ||
25893 | $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; } | ||
25894 | if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then | ||
25895 | |||
25896 | cat >>confdefs.h <<\_ACEOF | ||
25897 | #define HAVE_ACCRIGHTS_IN_MSGHDR 1 | ||
25898 | _ACEOF | ||
25899 | |||
25900 | fi | ||
25901 | |||
25902 | { $as_echo "$as_me:$LINENO: checking if struct statvfs.f_fsid is integral type" >&5 | ||
25903 | $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; } | ||
25904 | cat >conftest.$ac_ext <<_ACEOF | ||
25905 | /* confdefs.h. */ | ||
25906 | _ACEOF | ||
25907 | cat confdefs.h >>conftest.$ac_ext | ||
25908 | cat >>conftest.$ac_ext <<_ACEOF | ||
25909 | /* end confdefs.h. */ | ||
25910 | |||
25911 | #include <sys/types.h> | ||
25912 | #include <sys/stat.h> | ||
25913 | #ifdef HAVE_SYS_TIME_H | ||
25914 | # include <sys/time.h> | ||
25915 | #endif | ||
25916 | #ifdef HAVE_SYS_MOUNT_H | ||
25917 | #include <sys/mount.h> | ||
25918 | #endif | ||
25919 | #ifdef HAVE_SYS_STATVFS_H | ||
25920 | #include <sys/statvfs.h> | ||
25921 | #endif | ||
25922 | |||
25923 | int | ||
25924 | main () | ||
25925 | { | ||
25926 | struct statvfs s; s.f_fsid = 0; | ||
25927 | ; | ||
25928 | return 0; | ||
25929 | } | ||
25930 | _ACEOF | ||
25931 | rm -f conftest.$ac_objext | ||
25932 | if { (ac_try="$ac_compile" | ||
25933 | case "(($ac_try" in | ||
25934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25935 | *) ac_try_echo=$ac_try;; | ||
25936 | esac | ||
25937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25938 | $as_echo "$ac_try_echo") >&5 | ||
25939 | (eval "$ac_compile") 2>conftest.er1 | ||
25940 | ac_status=$? | ||
25941 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25942 | rm -f conftest.er1 | ||
25943 | cat conftest.err >&5 | ||
25944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25945 | (exit $ac_status); } && { | ||
25946 | test -z "$ac_c_werror_flag" || | ||
25947 | test ! -s conftest.err | ||
25948 | } && test -s conftest.$ac_objext; then | ||
25949 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
25950 | $as_echo "yes" >&6; } | ||
25951 | else | ||
25952 | $as_echo "$as_me: failed program was:" >&5 | ||
25953 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
25954 | |||
25955 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
25956 | $as_echo "no" >&6; } | ||
25957 | |||
25958 | { $as_echo "$as_me:$LINENO: checking if fsid_t has member val" >&5 | ||
25959 | $as_echo_n "checking if fsid_t has member val... " >&6; } | ||
25960 | cat >conftest.$ac_ext <<_ACEOF | ||
25961 | /* confdefs.h. */ | ||
25962 | _ACEOF | ||
25963 | cat confdefs.h >>conftest.$ac_ext | ||
25964 | cat >>conftest.$ac_ext <<_ACEOF | ||
25965 | /* end confdefs.h. */ | ||
25966 | |||
25967 | #include <sys/types.h> | ||
25968 | #include <sys/statvfs.h> | ||
25969 | int | ||
25970 | main () | ||
25971 | { | ||
25972 | fsid_t t; t.val[0] = 0; | ||
25973 | ; | ||
25974 | return 0; | ||
25975 | } | ||
25976 | _ACEOF | ||
25977 | rm -f conftest.$ac_objext | ||
25978 | if { (ac_try="$ac_compile" | ||
25979 | case "(($ac_try" in | ||
25980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
25981 | *) ac_try_echo=$ac_try;; | ||
25982 | esac | ||
25983 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
25984 | $as_echo "$ac_try_echo") >&5 | ||
25985 | (eval "$ac_compile") 2>conftest.er1 | ||
25986 | ac_status=$? | ||
25987 | grep -v '^ *+' conftest.er1 >conftest.err | ||
25988 | rm -f conftest.er1 | ||
25989 | cat conftest.err >&5 | ||
25990 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
25991 | (exit $ac_status); } && { | ||
25992 | test -z "$ac_c_werror_flag" || | ||
25993 | test ! -s conftest.err | ||
25994 | } && test -s conftest.$ac_objext; then | ||
25995 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
25996 | $as_echo "yes" >&6; } | ||
25997 | |||
25998 | cat >>confdefs.h <<\_ACEOF | ||
25999 | #define FSID_HAS_VAL 1 | ||
26000 | _ACEOF | ||
26001 | |||
26002 | else | ||
26003 | $as_echo "$as_me: failed program was:" >&5 | ||
26004 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26005 | |||
26006 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
26007 | $as_echo "no" >&6; } | ||
26008 | fi | ||
26009 | |||
26010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26011 | |||
26012 | { $as_echo "$as_me:$LINENO: checking if f_fsid has member __val" >&5 | ||
26013 | $as_echo_n "checking if f_fsid has member __val... " >&6; } | ||
26014 | cat >conftest.$ac_ext <<_ACEOF | ||
26015 | /* confdefs.h. */ | ||
26016 | _ACEOF | ||
26017 | cat confdefs.h >>conftest.$ac_ext | ||
26018 | cat >>conftest.$ac_ext <<_ACEOF | ||
26019 | /* end confdefs.h. */ | ||
26020 | |||
26021 | #include <sys/types.h> | ||
26022 | #include <sys/statvfs.h> | ||
26023 | int | ||
26024 | main () | ||
26025 | { | ||
26026 | fsid_t t; t.__val[0] = 0; | ||
26027 | ; | ||
26028 | return 0; | ||
26029 | } | ||
26030 | _ACEOF | ||
26031 | rm -f conftest.$ac_objext | ||
26032 | if { (ac_try="$ac_compile" | ||
26033 | case "(($ac_try" in | ||
26034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26035 | *) ac_try_echo=$ac_try;; | ||
26036 | esac | ||
26037 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26038 | $as_echo "$ac_try_echo") >&5 | ||
26039 | (eval "$ac_compile") 2>conftest.er1 | ||
26040 | ac_status=$? | ||
26041 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26042 | rm -f conftest.er1 | ||
26043 | cat conftest.err >&5 | ||
26044 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26045 | (exit $ac_status); } && { | ||
26046 | test -z "$ac_c_werror_flag" || | ||
26047 | test ! -s conftest.err | ||
26048 | } && test -s conftest.$ac_objext; then | ||
26049 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
26050 | $as_echo "yes" >&6; } | ||
26051 | |||
26052 | cat >>confdefs.h <<\_ACEOF | ||
26053 | #define FSID_HAS___VAL 1 | ||
26054 | _ACEOF | ||
26055 | |||
26056 | else | ||
26057 | $as_echo "$as_me: failed program was:" >&5 | ||
26058 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26059 | |||
26060 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
26061 | $as_echo "no" >&6; } | ||
26062 | fi | ||
26063 | |||
26064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26065 | |||
26066 | fi | ||
26067 | |||
26068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26069 | |||
26070 | { $as_echo "$as_me:$LINENO: checking for msg_control field in struct msghdr" >&5 | ||
26071 | $as_echo_n "checking for msg_control field in struct msghdr... " >&6; } | ||
26072 | if test "${ac_cv_have_control_in_msghdr+set}" = set; then | ||
26073 | $as_echo_n "(cached) " >&6 | ||
26074 | else | ||
26075 | |||
26076 | cat >conftest.$ac_ext <<_ACEOF | ||
26077 | |||
26078 | #include <sys/types.h> | ||
26079 | #include <sys/socket.h> | ||
26080 | #include <sys/uio.h> | ||
26081 | int main() { | ||
26082 | #ifdef msg_control | ||
26083 | #error "msg_control is a macro" | ||
26084 | exit(1); | ||
26085 | #endif | ||
26086 | struct msghdr m; | ||
26087 | m.msg_control = 0; | ||
26088 | exit(0); | ||
26089 | } | ||
26090 | |||
26091 | _ACEOF | ||
26092 | rm -f conftest.$ac_objext | ||
26093 | if { (ac_try="$ac_compile" | ||
26094 | case "(($ac_try" in | ||
26095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26096 | *) ac_try_echo=$ac_try;; | ||
26097 | esac | ||
26098 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26099 | $as_echo "$ac_try_echo") >&5 | ||
26100 | (eval "$ac_compile") 2>conftest.er1 | ||
26101 | ac_status=$? | ||
26102 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26103 | rm -f conftest.er1 | ||
26104 | cat conftest.err >&5 | ||
26105 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26106 | (exit $ac_status); } && { | ||
26107 | test -z "$ac_c_werror_flag" || | ||
26108 | test ! -s conftest.err | ||
26109 | } && test -s conftest.$ac_objext; then | ||
26110 | ac_cv_have_control_in_msghdr="yes" | ||
26111 | else | ||
26112 | $as_echo "$as_me: failed program was:" >&5 | ||
26113 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26114 | |||
26115 | ac_cv_have_control_in_msghdr="no" | ||
26116 | |||
26117 | fi | ||
26118 | |||
26119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26120 | |||
26121 | fi | ||
26122 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_control_in_msghdr" >&5 | ||
26123 | $as_echo "$ac_cv_have_control_in_msghdr" >&6; } | ||
26124 | if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then | ||
26125 | |||
26126 | cat >>confdefs.h <<\_ACEOF | ||
26127 | #define HAVE_CONTROL_IN_MSGHDR 1 | ||
26128 | _ACEOF | ||
26129 | |||
26130 | fi | ||
26131 | |||
26132 | { $as_echo "$as_me:$LINENO: checking if libc defines __progname" >&5 | ||
26133 | $as_echo_n "checking if libc defines __progname... " >&6; } | ||
26134 | if test "${ac_cv_libc_defines___progname+set}" = set; then | ||
26135 | $as_echo_n "(cached) " >&6 | ||
26136 | else | ||
26137 | |||
26138 | cat >conftest.$ac_ext <<_ACEOF | ||
26139 | /* confdefs.h. */ | ||
26140 | _ACEOF | ||
26141 | cat confdefs.h >>conftest.$ac_ext | ||
26142 | cat >>conftest.$ac_ext <<_ACEOF | ||
26143 | /* end confdefs.h. */ | ||
26144 | |||
26145 | int | ||
26146 | main () | ||
26147 | { | ||
26148 | extern char *__progname; printf("%s", __progname); | ||
26149 | ; | ||
26150 | return 0; | ||
26151 | } | ||
26152 | _ACEOF | ||
26153 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26154 | if { (ac_try="$ac_link" | ||
26155 | case "(($ac_try" in | ||
26156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26157 | *) ac_try_echo=$ac_try;; | ||
26158 | esac | ||
26159 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26160 | $as_echo "$ac_try_echo") >&5 | ||
26161 | (eval "$ac_link") 2>conftest.er1 | ||
26162 | ac_status=$? | ||
26163 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26164 | rm -f conftest.er1 | ||
26165 | cat conftest.err >&5 | ||
26166 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26167 | (exit $ac_status); } && { | ||
26168 | test -z "$ac_c_werror_flag" || | ||
26169 | test ! -s conftest.err | ||
26170 | } && test -s conftest$ac_exeext && { | ||
26171 | test "$cross_compiling" = yes || | ||
26172 | $as_test_x conftest$ac_exeext | ||
26173 | }; then | ||
26174 | ac_cv_libc_defines___progname="yes" | ||
26175 | else | ||
26176 | $as_echo "$as_me: failed program was:" >&5 | ||
26177 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26178 | |||
26179 | ac_cv_libc_defines___progname="no" | ||
26180 | |||
26181 | fi | ||
26182 | |||
26183 | rm -rf conftest.dSYM | ||
26184 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26185 | conftest$ac_exeext conftest.$ac_ext | ||
26186 | |||
26187 | fi | ||
26188 | { $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines___progname" >&5 | ||
26189 | $as_echo "$ac_cv_libc_defines___progname" >&6; } | ||
26190 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
26191 | |||
26192 | cat >>confdefs.h <<\_ACEOF | ||
26193 | #define HAVE___PROGNAME 1 | ||
26194 | _ACEOF | ||
26195 | |||
26196 | fi | ||
26197 | |||
26198 | { $as_echo "$as_me:$LINENO: checking whether $CC implements __FUNCTION__" >&5 | ||
26199 | $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; } | ||
26200 | if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then | ||
26201 | $as_echo_n "(cached) " >&6 | ||
26202 | else | ||
26203 | |||
26204 | cat >conftest.$ac_ext <<_ACEOF | ||
26205 | /* confdefs.h. */ | ||
26206 | _ACEOF | ||
26207 | cat confdefs.h >>conftest.$ac_ext | ||
26208 | cat >>conftest.$ac_ext <<_ACEOF | ||
26209 | /* end confdefs.h. */ | ||
26210 | |||
26211 | #include <stdio.h> | ||
26212 | |||
26213 | int | ||
26214 | main () | ||
26215 | { | ||
26216 | printf("%s", __FUNCTION__); | ||
26217 | ; | ||
26218 | return 0; | ||
26219 | } | ||
26220 | _ACEOF | ||
26221 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26222 | if { (ac_try="$ac_link" | ||
26223 | case "(($ac_try" in | ||
26224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26225 | *) ac_try_echo=$ac_try;; | ||
26226 | esac | ||
26227 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26228 | $as_echo "$ac_try_echo") >&5 | ||
26229 | (eval "$ac_link") 2>conftest.er1 | ||
26230 | ac_status=$? | ||
26231 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26232 | rm -f conftest.er1 | ||
26233 | cat conftest.err >&5 | ||
26234 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26235 | (exit $ac_status); } && { | ||
26236 | test -z "$ac_c_werror_flag" || | ||
26237 | test ! -s conftest.err | ||
26238 | } && test -s conftest$ac_exeext && { | ||
26239 | test "$cross_compiling" = yes || | ||
26240 | $as_test_x conftest$ac_exeext | ||
26241 | }; then | ||
26242 | ac_cv_cc_implements___FUNCTION__="yes" | ||
26243 | else | ||
26244 | $as_echo "$as_me: failed program was:" >&5 | ||
26245 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26246 | |||
26247 | ac_cv_cc_implements___FUNCTION__="no" | ||
26248 | |||
26249 | fi | ||
26250 | |||
26251 | rm -rf conftest.dSYM | ||
26252 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26253 | conftest$ac_exeext conftest.$ac_ext | ||
26254 | |||
26255 | fi | ||
26256 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cc_implements___FUNCTION__" >&5 | ||
26257 | $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; } | ||
26258 | if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then | ||
26259 | |||
26260 | cat >>confdefs.h <<\_ACEOF | ||
26261 | #define HAVE___FUNCTION__ 1 | ||
26262 | _ACEOF | ||
26263 | |||
26264 | fi | ||
26265 | |||
26266 | { $as_echo "$as_me:$LINENO: checking whether $CC implements __func__" >&5 | ||
26267 | $as_echo_n "checking whether $CC implements __func__... " >&6; } | ||
26268 | if test "${ac_cv_cc_implements___func__+set}" = set; then | ||
26269 | $as_echo_n "(cached) " >&6 | ||
26270 | else | ||
26271 | |||
26272 | cat >conftest.$ac_ext <<_ACEOF | ||
26273 | /* confdefs.h. */ | ||
26274 | _ACEOF | ||
26275 | cat confdefs.h >>conftest.$ac_ext | ||
26276 | cat >>conftest.$ac_ext <<_ACEOF | ||
26277 | /* end confdefs.h. */ | ||
26278 | |||
26279 | #include <stdio.h> | ||
26280 | |||
26281 | int | ||
26282 | main () | ||
26283 | { | ||
26284 | printf("%s", __func__); | ||
26285 | ; | ||
26286 | return 0; | ||
26287 | } | ||
26288 | _ACEOF | ||
26289 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26290 | if { (ac_try="$ac_link" | ||
26291 | case "(($ac_try" in | ||
26292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26293 | *) ac_try_echo=$ac_try;; | ||
26294 | esac | ||
26295 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26296 | $as_echo "$ac_try_echo") >&5 | ||
26297 | (eval "$ac_link") 2>conftest.er1 | ||
26298 | ac_status=$? | ||
26299 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26300 | rm -f conftest.er1 | ||
26301 | cat conftest.err >&5 | ||
26302 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26303 | (exit $ac_status); } && { | ||
26304 | test -z "$ac_c_werror_flag" || | ||
26305 | test ! -s conftest.err | ||
26306 | } && test -s conftest$ac_exeext && { | ||
26307 | test "$cross_compiling" = yes || | ||
26308 | $as_test_x conftest$ac_exeext | ||
26309 | }; then | ||
26310 | ac_cv_cc_implements___func__="yes" | ||
26311 | else | ||
26312 | $as_echo "$as_me: failed program was:" >&5 | ||
26313 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26314 | |||
26315 | ac_cv_cc_implements___func__="no" | ||
26316 | |||
26317 | fi | ||
26318 | |||
26319 | rm -rf conftest.dSYM | ||
26320 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26321 | conftest$ac_exeext conftest.$ac_ext | ||
26322 | |||
26323 | fi | ||
26324 | { $as_echo "$as_me:$LINENO: result: $ac_cv_cc_implements___func__" >&5 | ||
26325 | $as_echo "$ac_cv_cc_implements___func__" >&6; } | ||
26326 | if test "x$ac_cv_cc_implements___func__" = "xyes" ; then | ||
26327 | |||
26328 | cat >>confdefs.h <<\_ACEOF | ||
26329 | #define HAVE___func__ 1 | ||
26330 | _ACEOF | ||
26331 | |||
26332 | fi | ||
26333 | |||
26334 | { $as_echo "$as_me:$LINENO: checking whether va_copy exists" >&5 | ||
26335 | $as_echo_n "checking whether va_copy exists... " >&6; } | ||
26336 | if test "${ac_cv_have_va_copy+set}" = set; then | ||
26337 | $as_echo_n "(cached) " >&6 | ||
26338 | else | ||
26339 | |||
26340 | cat >conftest.$ac_ext <<_ACEOF | ||
26341 | /* confdefs.h. */ | ||
26342 | _ACEOF | ||
26343 | cat confdefs.h >>conftest.$ac_ext | ||
26344 | cat >>conftest.$ac_ext <<_ACEOF | ||
26345 | /* end confdefs.h. */ | ||
26346 | #include <stdarg.h> | ||
26347 | va_list x,y; | ||
26348 | int | ||
26349 | main () | ||
26350 | { | ||
26351 | va_copy(x,y); | ||
26352 | ; | ||
26353 | return 0; | ||
26354 | } | ||
26355 | _ACEOF | ||
26356 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26357 | if { (ac_try="$ac_link" | ||
26358 | case "(($ac_try" in | ||
26359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26360 | *) ac_try_echo=$ac_try;; | ||
26361 | esac | ||
26362 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26363 | $as_echo "$ac_try_echo") >&5 | ||
26364 | (eval "$ac_link") 2>conftest.er1 | ||
26365 | ac_status=$? | ||
26366 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26367 | rm -f conftest.er1 | ||
26368 | cat conftest.err >&5 | ||
26369 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26370 | (exit $ac_status); } && { | ||
26371 | test -z "$ac_c_werror_flag" || | ||
26372 | test ! -s conftest.err | ||
26373 | } && test -s conftest$ac_exeext && { | ||
26374 | test "$cross_compiling" = yes || | ||
26375 | $as_test_x conftest$ac_exeext | ||
26376 | }; then | ||
26377 | ac_cv_have_va_copy="yes" | ||
26378 | else | ||
26379 | $as_echo "$as_me: failed program was:" >&5 | ||
26380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26381 | |||
26382 | ac_cv_have_va_copy="no" | ||
26383 | |||
26384 | fi | ||
26385 | |||
26386 | rm -rf conftest.dSYM | ||
26387 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26388 | conftest$ac_exeext conftest.$ac_ext | ||
26389 | |||
26390 | fi | ||
26391 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_va_copy" >&5 | ||
26392 | $as_echo "$ac_cv_have_va_copy" >&6; } | ||
26393 | if test "x$ac_cv_have_va_copy" = "xyes" ; then | ||
26394 | |||
26395 | cat >>confdefs.h <<\_ACEOF | ||
26396 | #define HAVE_VA_COPY 1 | ||
26397 | _ACEOF | ||
26398 | |||
26399 | fi | ||
26400 | |||
26401 | { $as_echo "$as_me:$LINENO: checking whether __va_copy exists" >&5 | ||
26402 | $as_echo_n "checking whether __va_copy exists... " >&6; } | ||
26403 | if test "${ac_cv_have___va_copy+set}" = set; then | ||
26404 | $as_echo_n "(cached) " >&6 | ||
26405 | else | ||
26406 | |||
26407 | cat >conftest.$ac_ext <<_ACEOF | ||
26408 | /* confdefs.h. */ | ||
26409 | _ACEOF | ||
26410 | cat confdefs.h >>conftest.$ac_ext | ||
26411 | cat >>conftest.$ac_ext <<_ACEOF | ||
26412 | /* end confdefs.h. */ | ||
26413 | #include <stdarg.h> | ||
26414 | va_list x,y; | ||
26415 | int | ||
26416 | main () | ||
26417 | { | ||
26418 | __va_copy(x,y); | ||
26419 | ; | ||
26420 | return 0; | ||
26421 | } | ||
26422 | _ACEOF | ||
26423 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26424 | if { (ac_try="$ac_link" | ||
26425 | case "(($ac_try" in | ||
26426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26427 | *) ac_try_echo=$ac_try;; | ||
26428 | esac | ||
26429 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26430 | $as_echo "$ac_try_echo") >&5 | ||
26431 | (eval "$ac_link") 2>conftest.er1 | ||
26432 | ac_status=$? | ||
26433 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26434 | rm -f conftest.er1 | ||
26435 | cat conftest.err >&5 | ||
26436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26437 | (exit $ac_status); } && { | ||
26438 | test -z "$ac_c_werror_flag" || | ||
26439 | test ! -s conftest.err | ||
26440 | } && test -s conftest$ac_exeext && { | ||
26441 | test "$cross_compiling" = yes || | ||
26442 | $as_test_x conftest$ac_exeext | ||
26443 | }; then | ||
26444 | ac_cv_have___va_copy="yes" | ||
26445 | else | ||
26446 | $as_echo "$as_me: failed program was:" >&5 | ||
26447 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26448 | |||
26449 | ac_cv_have___va_copy="no" | ||
26450 | |||
26451 | fi | ||
26452 | |||
26453 | rm -rf conftest.dSYM | ||
26454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26455 | conftest$ac_exeext conftest.$ac_ext | ||
26456 | |||
26457 | fi | ||
26458 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have___va_copy" >&5 | ||
26459 | $as_echo "$ac_cv_have___va_copy" >&6; } | ||
26460 | if test "x$ac_cv_have___va_copy" = "xyes" ; then | ||
26461 | |||
26462 | cat >>confdefs.h <<\_ACEOF | ||
26463 | #define HAVE___VA_COPY 1 | ||
26464 | _ACEOF | ||
26465 | |||
26466 | fi | ||
26467 | |||
26468 | { $as_echo "$as_me:$LINENO: checking whether getopt has optreset support" >&5 | ||
26469 | $as_echo_n "checking whether getopt has optreset support... " >&6; } | ||
26470 | if test "${ac_cv_have_getopt_optreset+set}" = set; then | ||
26471 | $as_echo_n "(cached) " >&6 | ||
26472 | else | ||
26473 | |||
26474 | cat >conftest.$ac_ext <<_ACEOF | ||
26475 | /* confdefs.h. */ | ||
26476 | _ACEOF | ||
26477 | cat confdefs.h >>conftest.$ac_ext | ||
26478 | cat >>conftest.$ac_ext <<_ACEOF | ||
26479 | /* end confdefs.h. */ | ||
26480 | |||
26481 | #include <getopt.h> | ||
26482 | |||
26483 | int | ||
26484 | main () | ||
26485 | { | ||
26486 | extern int optreset; optreset = 0; | ||
26487 | ; | ||
26488 | return 0; | ||
26489 | } | ||
26490 | _ACEOF | ||
26491 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26492 | if { (ac_try="$ac_link" | ||
26493 | case "(($ac_try" in | ||
26494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26495 | *) ac_try_echo=$ac_try;; | ||
26496 | esac | ||
26497 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26498 | $as_echo "$ac_try_echo") >&5 | ||
26499 | (eval "$ac_link") 2>conftest.er1 | ||
26500 | ac_status=$? | ||
26501 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26502 | rm -f conftest.er1 | ||
26503 | cat conftest.err >&5 | ||
26504 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26505 | (exit $ac_status); } && { | ||
26506 | test -z "$ac_c_werror_flag" || | ||
26507 | test ! -s conftest.err | ||
26508 | } && test -s conftest$ac_exeext && { | ||
26509 | test "$cross_compiling" = yes || | ||
26510 | $as_test_x conftest$ac_exeext | ||
26511 | }; then | ||
26512 | ac_cv_have_getopt_optreset="yes" | ||
26513 | else | ||
26514 | $as_echo "$as_me: failed program was:" >&5 | ||
26515 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26516 | |||
26517 | ac_cv_have_getopt_optreset="no" | ||
26518 | |||
26519 | fi | ||
26520 | |||
26521 | rm -rf conftest.dSYM | ||
26522 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26523 | conftest$ac_exeext conftest.$ac_ext | ||
26524 | |||
26525 | fi | ||
26526 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getopt_optreset" >&5 | ||
26527 | $as_echo "$ac_cv_have_getopt_optreset" >&6; } | ||
26528 | if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then | ||
26529 | |||
26530 | cat >>confdefs.h <<\_ACEOF | ||
26531 | #define HAVE_GETOPT_OPTRESET 1 | ||
26532 | _ACEOF | ||
26533 | |||
26534 | fi | ||
26535 | |||
26536 | { $as_echo "$as_me:$LINENO: checking if libc defines sys_errlist" >&5 | ||
26537 | $as_echo_n "checking if libc defines sys_errlist... " >&6; } | ||
26538 | if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then | ||
26539 | $as_echo_n "(cached) " >&6 | ||
26540 | else | ||
26541 | |||
26542 | cat >conftest.$ac_ext <<_ACEOF | ||
26543 | /* confdefs.h. */ | ||
26544 | _ACEOF | ||
26545 | cat confdefs.h >>conftest.$ac_ext | ||
26546 | cat >>conftest.$ac_ext <<_ACEOF | ||
26547 | /* end confdefs.h. */ | ||
26548 | |||
26549 | int | ||
26550 | main () | ||
26551 | { | ||
26552 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
26553 | ; | ||
26554 | return 0; | ||
26555 | } | ||
26556 | _ACEOF | ||
26557 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26558 | if { (ac_try="$ac_link" | ||
26559 | case "(($ac_try" in | ||
26560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26561 | *) ac_try_echo=$ac_try;; | ||
26562 | esac | ||
26563 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26564 | $as_echo "$ac_try_echo") >&5 | ||
26565 | (eval "$ac_link") 2>conftest.er1 | ||
26566 | ac_status=$? | ||
26567 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26568 | rm -f conftest.er1 | ||
26569 | cat conftest.err >&5 | ||
26570 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26571 | (exit $ac_status); } && { | ||
26572 | test -z "$ac_c_werror_flag" || | ||
26573 | test ! -s conftest.err | ||
26574 | } && test -s conftest$ac_exeext && { | ||
26575 | test "$cross_compiling" = yes || | ||
26576 | $as_test_x conftest$ac_exeext | ||
26577 | }; then | ||
26578 | ac_cv_libc_defines_sys_errlist="yes" | ||
26579 | else | ||
26580 | $as_echo "$as_me: failed program was:" >&5 | ||
26581 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26582 | |||
26583 | ac_cv_libc_defines_sys_errlist="no" | ||
26584 | |||
26585 | fi | ||
26586 | |||
26587 | rm -rf conftest.dSYM | ||
26588 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26589 | conftest$ac_exeext conftest.$ac_ext | ||
26590 | |||
26591 | fi | ||
26592 | { $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_errlist" >&5 | ||
26593 | $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; } | ||
26594 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
26595 | |||
26596 | cat >>confdefs.h <<\_ACEOF | ||
26597 | #define HAVE_SYS_ERRLIST 1 | ||
26598 | _ACEOF | ||
26599 | |||
26600 | fi | ||
26601 | |||
26602 | |||
26603 | { $as_echo "$as_me:$LINENO: checking if libc defines sys_nerr" >&5 | ||
26604 | $as_echo_n "checking if libc defines sys_nerr... " >&6; } | ||
26605 | if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then | ||
26606 | $as_echo_n "(cached) " >&6 | ||
26607 | else | ||
26608 | |||
26609 | cat >conftest.$ac_ext <<_ACEOF | ||
26610 | /* confdefs.h. */ | ||
26611 | _ACEOF | ||
26612 | cat confdefs.h >>conftest.$ac_ext | ||
26613 | cat >>conftest.$ac_ext <<_ACEOF | ||
26614 | /* end confdefs.h. */ | ||
26615 | |||
26616 | int | ||
26617 | main () | ||
26618 | { | ||
26619 | extern int sys_nerr; printf("%i", sys_nerr); | ||
26620 | ; | ||
26621 | return 0; | ||
26622 | } | ||
26623 | _ACEOF | ||
26624 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26625 | if { (ac_try="$ac_link" | ||
26626 | case "(($ac_try" in | ||
26627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26628 | *) ac_try_echo=$ac_try;; | ||
26629 | esac | ||
26630 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26631 | $as_echo "$ac_try_echo") >&5 | ||
26632 | (eval "$ac_link") 2>conftest.er1 | ||
26633 | ac_status=$? | ||
26634 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26635 | rm -f conftest.er1 | ||
26636 | cat conftest.err >&5 | ||
26637 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26638 | (exit $ac_status); } && { | ||
26639 | test -z "$ac_c_werror_flag" || | ||
26640 | test ! -s conftest.err | ||
26641 | } && test -s conftest$ac_exeext && { | ||
26642 | test "$cross_compiling" = yes || | ||
26643 | $as_test_x conftest$ac_exeext | ||
26644 | }; then | ||
26645 | ac_cv_libc_defines_sys_nerr="yes" | ||
26646 | else | ||
26647 | $as_echo "$as_me: failed program was:" >&5 | ||
26648 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26649 | |||
26650 | ac_cv_libc_defines_sys_nerr="no" | ||
26651 | |||
26652 | fi | ||
26653 | |||
26654 | rm -rf conftest.dSYM | ||
26655 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26656 | conftest$ac_exeext conftest.$ac_ext | ||
26657 | |||
26658 | fi | ||
26659 | { $as_echo "$as_me:$LINENO: result: $ac_cv_libc_defines_sys_nerr" >&5 | ||
26660 | $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; } | ||
26661 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
26662 | |||
26663 | cat >>confdefs.h <<\_ACEOF | ||
26664 | #define HAVE_SYS_NERR 1 | ||
26665 | _ACEOF | ||
26666 | |||
26667 | fi | ||
26668 | |||
26669 | SCARD_MSG="no" | ||
26670 | # Check whether user wants sectok support | ||
26671 | |||
26672 | # Check whether --with-sectok was given. | ||
26673 | if test "${with_sectok+set}" = set; then | ||
26674 | withval=$with_sectok; | ||
26675 | if test "x$withval" != "xno" ; then | ||
26676 | if test "x$withval" != "xyes" ; then | ||
26677 | CPPFLAGS="$CPPFLAGS -I${withval}" | ||
26678 | LDFLAGS="$LDFLAGS -L${withval}" | ||
26679 | if test ! -z "$need_dash_r" ; then | ||
26680 | LDFLAGS="$LDFLAGS -R${withval}" | ||
26681 | fi | ||
26682 | if test ! -z "$blibpath" ; then | ||
26683 | blibpath="$blibpath:${withval}" | ||
26684 | fi | ||
26685 | fi | ||
26686 | |||
26687 | for ac_header in sectok.h | ||
26688 | do | ||
26689 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
26690 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26691 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26692 | $as_echo_n "checking for $ac_header... " >&6; } | ||
26693 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26694 | $as_echo_n "(cached) " >&6 | ||
26695 | fi | ||
26696 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
26697 | $as_echo "$as_val"'` | ||
26698 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26699 | $as_echo "$ac_res" >&6; } | ||
26700 | else | ||
26701 | # Is the header compilable? | ||
26702 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
26703 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
26704 | cat >conftest.$ac_ext <<_ACEOF | ||
26705 | /* confdefs.h. */ | ||
26706 | _ACEOF | ||
26707 | cat confdefs.h >>conftest.$ac_ext | ||
26708 | cat >>conftest.$ac_ext <<_ACEOF | ||
26709 | /* end confdefs.h. */ | ||
26710 | $ac_includes_default | ||
26711 | #include <$ac_header> | ||
26712 | _ACEOF | ||
26713 | rm -f conftest.$ac_objext | ||
26714 | if { (ac_try="$ac_compile" | ||
26715 | case "(($ac_try" in | ||
26716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26717 | *) ac_try_echo=$ac_try;; | ||
26718 | esac | ||
26719 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26720 | $as_echo "$ac_try_echo") >&5 | ||
26721 | (eval "$ac_compile") 2>conftest.er1 | ||
26722 | ac_status=$? | ||
26723 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26724 | rm -f conftest.er1 | ||
26725 | cat conftest.err >&5 | ||
26726 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26727 | (exit $ac_status); } && { | ||
26728 | test -z "$ac_c_werror_flag" || | ||
26729 | test ! -s conftest.err | ||
26730 | } && test -s conftest.$ac_objext; then | ||
26731 | ac_header_compiler=yes | ||
26732 | else | ||
26733 | $as_echo "$as_me: failed program was:" >&5 | ||
26734 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26735 | |||
26736 | ac_header_compiler=no | ||
26737 | fi | ||
26738 | |||
26739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
26740 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
26741 | $as_echo "$ac_header_compiler" >&6; } | ||
26742 | |||
26743 | # Is the header present? | ||
26744 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
26745 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
26746 | cat >conftest.$ac_ext <<_ACEOF | ||
26747 | /* confdefs.h. */ | ||
26748 | _ACEOF | ||
26749 | cat confdefs.h >>conftest.$ac_ext | ||
26750 | cat >>conftest.$ac_ext <<_ACEOF | ||
26751 | /* end confdefs.h. */ | ||
26752 | #include <$ac_header> | ||
26753 | _ACEOF | ||
26754 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
26755 | case "(($ac_try" in | ||
26756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26757 | *) ac_try_echo=$ac_try;; | ||
26758 | esac | ||
26759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26760 | $as_echo "$ac_try_echo") >&5 | ||
26761 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
26762 | ac_status=$? | ||
26763 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26764 | rm -f conftest.er1 | ||
26765 | cat conftest.err >&5 | ||
26766 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26767 | (exit $ac_status); } >/dev/null && { | ||
26768 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
26769 | test ! -s conftest.err | ||
26770 | }; then | ||
26771 | ac_header_preproc=yes | ||
26772 | else | ||
26773 | $as_echo "$as_me: failed program was:" >&5 | ||
26774 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26775 | |||
26776 | ac_header_preproc=no | ||
26777 | fi | ||
26778 | |||
26779 | rm -f conftest.err conftest.$ac_ext | ||
26780 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
26781 | $as_echo "$ac_header_preproc" >&6; } | ||
26782 | |||
26783 | # So? What about this header? | ||
26784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
26785 | yes:no: ) | ||
26786 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
26787 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
26788 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
26789 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
26790 | ac_header_preproc=yes | ||
26791 | ;; | ||
26792 | no:yes:* ) | ||
26793 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
26794 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
26795 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
26796 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
26797 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
26798 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
26799 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
26800 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
26801 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
26802 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
26803 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
26804 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
26805 | ( cat <<\_ASBOX | ||
26806 | ## ------------------------------------------- ## | ||
26807 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
26808 | ## ------------------------------------------- ## | ||
26809 | _ASBOX | ||
26810 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
26811 | ;; | ||
26812 | esac | ||
26813 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
26814 | $as_echo_n "checking for $ac_header... " >&6; } | ||
26815 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
26816 | $as_echo_n "(cached) " >&6 | ||
26817 | else | ||
26818 | eval "$as_ac_Header=\$ac_header_preproc" | ||
26819 | fi | ||
26820 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
26821 | $as_echo "$as_val"'` | ||
26822 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
26823 | $as_echo "$ac_res" >&6; } | ||
26824 | |||
26825 | fi | ||
26826 | if test `eval 'as_val=${'$as_ac_Header'} | ||
26827 | $as_echo "$as_val"'` = yes; then | ||
26828 | cat >>confdefs.h <<_ACEOF | ||
26829 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
26830 | _ACEOF | ||
26831 | |||
26832 | fi | ||
26833 | |||
26834 | done | ||
26835 | |||
26836 | if test "$ac_cv_header_sectok_h" != yes; then | ||
26837 | { { $as_echo "$as_me:$LINENO: error: Can't find sectok.h" >&5 | ||
26838 | $as_echo "$as_me: error: Can't find sectok.h" >&2;} | ||
26839 | { (exit 1); exit 1; }; } | ||
26840 | fi | ||
26841 | |||
26842 | { $as_echo "$as_me:$LINENO: checking for sectok_open in -lsectok" >&5 | ||
26843 | $as_echo_n "checking for sectok_open in -lsectok... " >&6; } | ||
26844 | if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then | ||
26845 | $as_echo_n "(cached) " >&6 | ||
26846 | else | ||
26847 | ac_check_lib_save_LIBS=$LIBS | ||
26848 | LIBS="-lsectok $LIBS" | ||
26849 | cat >conftest.$ac_ext <<_ACEOF | ||
26850 | /* confdefs.h. */ | ||
26851 | _ACEOF | ||
26852 | cat confdefs.h >>conftest.$ac_ext | ||
26853 | cat >>conftest.$ac_ext <<_ACEOF | ||
26854 | /* end confdefs.h. */ | ||
26855 | |||
26856 | /* Override any GCC internal prototype to avoid an error. | ||
26857 | Use char because int might match the return type of a GCC | ||
26858 | builtin and then its argument prototype would still apply. */ | ||
26859 | #ifdef __cplusplus | ||
26860 | extern "C" | ||
26861 | #endif | ||
26862 | char sectok_open (); | ||
26863 | int | ||
26864 | main () | ||
26865 | { | ||
26866 | return sectok_open (); | ||
26867 | ; | ||
26868 | return 0; | ||
26869 | } | ||
26870 | _ACEOF | ||
26871 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
26872 | if { (ac_try="$ac_link" | ||
26873 | case "(($ac_try" in | ||
26874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
26875 | *) ac_try_echo=$ac_try;; | ||
26876 | esac | ||
26877 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
26878 | $as_echo "$ac_try_echo") >&5 | ||
26879 | (eval "$ac_link") 2>conftest.er1 | ||
26880 | ac_status=$? | ||
26881 | grep -v '^ *+' conftest.er1 >conftest.err | ||
26882 | rm -f conftest.er1 | ||
26883 | cat conftest.err >&5 | ||
26884 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
26885 | (exit $ac_status); } && { | ||
26886 | test -z "$ac_c_werror_flag" || | ||
26887 | test ! -s conftest.err | ||
26888 | } && test -s conftest$ac_exeext && { | ||
26889 | test "$cross_compiling" = yes || | ||
26890 | $as_test_x conftest$ac_exeext | ||
26891 | }; then | ||
26892 | ac_cv_lib_sectok_sectok_open=yes | ||
26893 | else | ||
26894 | $as_echo "$as_me: failed program was:" >&5 | ||
26895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
26896 | |||
26897 | ac_cv_lib_sectok_sectok_open=no | ||
26898 | fi | ||
26899 | |||
26900 | rm -rf conftest.dSYM | ||
26901 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
26902 | conftest$ac_exeext conftest.$ac_ext | ||
26903 | LIBS=$ac_check_lib_save_LIBS | ||
26904 | fi | ||
26905 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sectok_sectok_open" >&5 | ||
26906 | $as_echo "$ac_cv_lib_sectok_sectok_open" >&6; } | ||
26907 | if test $ac_cv_lib_sectok_sectok_open = yes; then | ||
26908 | cat >>confdefs.h <<_ACEOF | ||
26909 | #define HAVE_LIBSECTOK 1 | ||
26910 | _ACEOF | ||
26911 | |||
26912 | LIBS="-lsectok $LIBS" | ||
26913 | |||
26914 | fi | ||
26915 | |||
26916 | if test "$ac_cv_lib_sectok_sectok_open" != yes; then | ||
26917 | { { $as_echo "$as_me:$LINENO: error: Can't find libsectok" >&5 | ||
26918 | $as_echo "$as_me: error: Can't find libsectok" >&2;} | ||
26919 | { (exit 1); exit 1; }; } | ||
26920 | fi | ||
26921 | |||
26922 | cat >>confdefs.h <<\_ACEOF | ||
26923 | #define SMARTCARD 1 | ||
26924 | _ACEOF | ||
26925 | |||
26926 | |||
26927 | cat >>confdefs.h <<\_ACEOF | ||
26928 | #define USE_SECTOK 1 | ||
26929 | _ACEOF | ||
26930 | |||
26931 | SCARD_MSG="yes, using sectok" | ||
26932 | fi | ||
26933 | |||
26934 | |||
26935 | fi | ||
26936 | |||
26937 | |||
26938 | # Check whether user wants OpenSC support | ||
26939 | OPENSC_CONFIG="no" | ||
26940 | |||
26941 | # Check whether --with-opensc was given. | ||
26942 | if test "${with_opensc+set}" = set; then | ||
26943 | withval=$with_opensc; | ||
26944 | if test "x$withval" != "xno" ; then | ||
26945 | if test "x$withval" != "xyes" ; then | ||
26946 | OPENSC_CONFIG=$withval/bin/opensc-config | ||
26947 | else | ||
26948 | # Extract the first word of "opensc-config", so it can be a program name with args. | ||
26949 | set dummy opensc-config; ac_word=$2 | ||
26950 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
26951 | $as_echo_n "checking for $ac_word... " >&6; } | ||
26952 | if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then | ||
26953 | $as_echo_n "(cached) " >&6 | ||
26954 | else | ||
26955 | case $OPENSC_CONFIG in | ||
26956 | [\\/]* | ?:[\\/]*) | ||
26957 | ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path. | ||
26958 | ;; | ||
26959 | *) | ||
26960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
26961 | for as_dir in $PATH | ||
26962 | do | ||
26963 | IFS=$as_save_IFS | ||
26964 | test -z "$as_dir" && as_dir=. | ||
26965 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
26966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
26967 | ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
26968 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
26969 | break 2 | ||
26970 | fi | ||
26971 | done | ||
26972 | done | ||
26973 | IFS=$as_save_IFS | ||
26974 | |||
26975 | test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no" | ||
26976 | ;; | ||
26977 | esac | ||
26978 | fi | ||
26979 | OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG | ||
26980 | if test -n "$OPENSC_CONFIG"; then | ||
26981 | { $as_echo "$as_me:$LINENO: result: $OPENSC_CONFIG" >&5 | ||
26982 | $as_echo "$OPENSC_CONFIG" >&6; } | ||
26983 | else | ||
26984 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
26985 | $as_echo "no" >&6; } | ||
26986 | fi | ||
26987 | |||
26988 | |||
26989 | fi | ||
26990 | if test "$OPENSC_CONFIG" != "no"; then | ||
26991 | LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` | ||
26992 | LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` | ||
26993 | CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" | ||
26994 | LIBS="$LIBS $LIBOPENSC_LIBS" | ||
26995 | cat >>confdefs.h <<\_ACEOF | ||
26996 | #define SMARTCARD 1 | ||
26997 | _ACEOF | ||
26998 | |||
26999 | |||
27000 | cat >>confdefs.h <<\_ACEOF | ||
27001 | #define USE_OPENSC 1 | ||
27002 | _ACEOF | ||
27003 | |||
27004 | SCARD_MSG="yes, using OpenSC" | ||
27005 | fi | ||
27006 | fi | ||
27007 | |||
27008 | |||
27009 | fi | ||
27010 | |||
27011 | |||
27012 | # Check libraries needed by DNS fingerprint support | ||
27013 | { $as_echo "$as_me:$LINENO: checking for library containing getrrsetbyname" >&5 | ||
27014 | $as_echo_n "checking for library containing getrrsetbyname... " >&6; } | ||
27015 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
27016 | $as_echo_n "(cached) " >&6 | ||
27017 | else | ||
27018 | ac_func_search_save_LIBS=$LIBS | ||
27019 | cat >conftest.$ac_ext <<_ACEOF | ||
27020 | /* confdefs.h. */ | ||
27021 | _ACEOF | ||
27022 | cat confdefs.h >>conftest.$ac_ext | ||
27023 | cat >>conftest.$ac_ext <<_ACEOF | ||
27024 | /* end confdefs.h. */ | ||
27025 | |||
27026 | /* Override any GCC internal prototype to avoid an error. | ||
27027 | Use char because int might match the return type of a GCC | ||
27028 | builtin and then its argument prototype would still apply. */ | ||
27029 | #ifdef __cplusplus | ||
27030 | extern "C" | ||
27031 | #endif | ||
27032 | char getrrsetbyname (); | ||
27033 | int | ||
27034 | main () | ||
27035 | { | ||
27036 | return getrrsetbyname (); | ||
27037 | ; | ||
27038 | return 0; | ||
27039 | } | ||
27040 | _ACEOF | ||
27041 | for ac_lib in '' resolv; do | ||
27042 | if test -z "$ac_lib"; then | ||
27043 | ac_res="none required" | ||
27044 | else | ||
27045 | ac_res=-l$ac_lib | ||
27046 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27047 | fi | ||
27048 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27049 | if { (ac_try="$ac_link" | ||
27050 | case "(($ac_try" in | ||
27051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27052 | *) ac_try_echo=$ac_try;; | ||
27053 | esac | ||
27054 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27055 | $as_echo "$ac_try_echo") >&5 | ||
27056 | (eval "$ac_link") 2>conftest.er1 | ||
27057 | ac_status=$? | ||
27058 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27059 | rm -f conftest.er1 | ||
27060 | cat conftest.err >&5 | ||
27061 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27062 | (exit $ac_status); } && { | ||
27063 | test -z "$ac_c_werror_flag" || | ||
27064 | test ! -s conftest.err | ||
27065 | } && test -s conftest$ac_exeext && { | ||
27066 | test "$cross_compiling" = yes || | ||
27067 | $as_test_x conftest$ac_exeext | ||
27068 | }; then | ||
27069 | ac_cv_search_getrrsetbyname=$ac_res | ||
27070 | else | ||
27071 | $as_echo "$as_me: failed program was:" >&5 | ||
27072 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27073 | |||
27074 | |||
27075 | fi | ||
27076 | |||
27077 | rm -rf conftest.dSYM | ||
27078 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27079 | conftest$ac_exeext | ||
27080 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
27081 | break | ||
27082 | fi | ||
27083 | done | ||
27084 | if test "${ac_cv_search_getrrsetbyname+set}" = set; then | ||
27085 | : | ||
27086 | else | ||
27087 | ac_cv_search_getrrsetbyname=no | ||
27088 | fi | ||
27089 | rm conftest.$ac_ext | ||
27090 | LIBS=$ac_func_search_save_LIBS | ||
27091 | fi | ||
27092 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getrrsetbyname" >&5 | ||
27093 | $as_echo "$ac_cv_search_getrrsetbyname" >&6; } | ||
27094 | ac_res=$ac_cv_search_getrrsetbyname | ||
27095 | if test "$ac_res" != no; then | ||
27096 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27097 | |||
27098 | cat >>confdefs.h <<\_ACEOF | ||
27099 | #define HAVE_GETRRSETBYNAME 1 | ||
27100 | _ACEOF | ||
27101 | |||
27102 | else | ||
27103 | |||
27104 | # Needed by our getrrsetbyname() | ||
27105 | { $as_echo "$as_me:$LINENO: checking for library containing res_query" >&5 | ||
27106 | $as_echo_n "checking for library containing res_query... " >&6; } | ||
27107 | if test "${ac_cv_search_res_query+set}" = set; then | ||
27108 | $as_echo_n "(cached) " >&6 | ||
27109 | else | ||
27110 | ac_func_search_save_LIBS=$LIBS | ||
27111 | cat >conftest.$ac_ext <<_ACEOF | ||
27112 | /* confdefs.h. */ | ||
27113 | _ACEOF | ||
27114 | cat confdefs.h >>conftest.$ac_ext | ||
27115 | cat >>conftest.$ac_ext <<_ACEOF | ||
27116 | /* end confdefs.h. */ | ||
27117 | |||
27118 | /* Override any GCC internal prototype to avoid an error. | ||
27119 | Use char because int might match the return type of a GCC | ||
27120 | builtin and then its argument prototype would still apply. */ | ||
27121 | #ifdef __cplusplus | ||
27122 | extern "C" | ||
27123 | #endif | ||
27124 | char res_query (); | ||
27125 | int | ||
27126 | main () | ||
27127 | { | ||
27128 | return res_query (); | ||
27129 | ; | ||
27130 | return 0; | ||
27131 | } | ||
27132 | _ACEOF | ||
27133 | for ac_lib in '' resolv; do | ||
27134 | if test -z "$ac_lib"; then | ||
27135 | ac_res="none required" | ||
27136 | else | ||
27137 | ac_res=-l$ac_lib | ||
27138 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27139 | fi | ||
27140 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27141 | if { (ac_try="$ac_link" | ||
27142 | case "(($ac_try" in | ||
27143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27144 | *) ac_try_echo=$ac_try;; | ||
27145 | esac | ||
27146 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27147 | $as_echo "$ac_try_echo") >&5 | ||
27148 | (eval "$ac_link") 2>conftest.er1 | ||
27149 | ac_status=$? | ||
27150 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27151 | rm -f conftest.er1 | ||
27152 | cat conftest.err >&5 | ||
27153 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27154 | (exit $ac_status); } && { | ||
27155 | test -z "$ac_c_werror_flag" || | ||
27156 | test ! -s conftest.err | ||
27157 | } && test -s conftest$ac_exeext && { | ||
27158 | test "$cross_compiling" = yes || | ||
27159 | $as_test_x conftest$ac_exeext | ||
27160 | }; then | ||
27161 | ac_cv_search_res_query=$ac_res | ||
27162 | else | ||
27163 | $as_echo "$as_me: failed program was:" >&5 | ||
27164 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27165 | |||
27166 | |||
27167 | fi | ||
27168 | |||
27169 | rm -rf conftest.dSYM | ||
27170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27171 | conftest$ac_exeext | ||
27172 | if test "${ac_cv_search_res_query+set}" = set; then | ||
27173 | break | ||
27174 | fi | ||
27175 | done | ||
27176 | if test "${ac_cv_search_res_query+set}" = set; then | ||
27177 | : | ||
27178 | else | ||
27179 | ac_cv_search_res_query=no | ||
27180 | fi | ||
27181 | rm conftest.$ac_ext | ||
27182 | LIBS=$ac_func_search_save_LIBS | ||
27183 | fi | ||
27184 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_res_query" >&5 | ||
27185 | $as_echo "$ac_cv_search_res_query" >&6; } | ||
27186 | ac_res=$ac_cv_search_res_query | ||
27187 | if test "$ac_res" != no; then | ||
27188 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27189 | |||
27190 | fi | ||
27191 | |||
27192 | { $as_echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
27193 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
27194 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27195 | $as_echo_n "(cached) " >&6 | ||
27196 | else | ||
27197 | ac_func_search_save_LIBS=$LIBS | ||
27198 | cat >conftest.$ac_ext <<_ACEOF | ||
27199 | /* confdefs.h. */ | ||
27200 | _ACEOF | ||
27201 | cat confdefs.h >>conftest.$ac_ext | ||
27202 | cat >>conftest.$ac_ext <<_ACEOF | ||
27203 | /* end confdefs.h. */ | ||
27204 | |||
27205 | /* Override any GCC internal prototype to avoid an error. | ||
27206 | Use char because int might match the return type of a GCC | ||
27207 | builtin and then its argument prototype would still apply. */ | ||
27208 | #ifdef __cplusplus | ||
27209 | extern "C" | ||
27210 | #endif | ||
27211 | char dn_expand (); | ||
27212 | int | ||
27213 | main () | ||
27214 | { | ||
27215 | return dn_expand (); | ||
27216 | ; | ||
27217 | return 0; | ||
27218 | } | ||
27219 | _ACEOF | ||
27220 | for ac_lib in '' resolv; do | ||
27221 | if test -z "$ac_lib"; then | ||
27222 | ac_res="none required" | ||
27223 | else | ||
27224 | ac_res=-l$ac_lib | ||
27225 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
27226 | fi | ||
27227 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27228 | if { (ac_try="$ac_link" | ||
27229 | case "(($ac_try" in | ||
27230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27231 | *) ac_try_echo=$ac_try;; | ||
27232 | esac | ||
27233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27234 | $as_echo "$ac_try_echo") >&5 | ||
27235 | (eval "$ac_link") 2>conftest.er1 | ||
27236 | ac_status=$? | ||
27237 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27238 | rm -f conftest.er1 | ||
27239 | cat conftest.err >&5 | ||
27240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27241 | (exit $ac_status); } && { | ||
27242 | test -z "$ac_c_werror_flag" || | ||
27243 | test ! -s conftest.err | ||
27244 | } && test -s conftest$ac_exeext && { | ||
27245 | test "$cross_compiling" = yes || | ||
27246 | $as_test_x conftest$ac_exeext | ||
27247 | }; then | ||
27248 | ac_cv_search_dn_expand=$ac_res | ||
27249 | else | ||
27250 | $as_echo "$as_me: failed program was:" >&5 | ||
27251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27252 | |||
27253 | |||
27254 | fi | ||
27255 | |||
27256 | rm -rf conftest.dSYM | ||
27257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27258 | conftest$ac_exeext | ||
27259 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27260 | break | ||
27261 | fi | ||
27262 | done | ||
27263 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
27264 | : | ||
27265 | else | ||
27266 | ac_cv_search_dn_expand=no | ||
27267 | fi | ||
27268 | rm conftest.$ac_ext | ||
27269 | LIBS=$ac_func_search_save_LIBS | ||
27270 | fi | ||
27271 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
27272 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
27273 | ac_res=$ac_cv_search_dn_expand | ||
27274 | if test "$ac_res" != no; then | ||
27275 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
27276 | |||
27277 | fi | ||
27278 | |||
27279 | { $as_echo "$as_me:$LINENO: checking if res_query will link" >&5 | ||
27280 | $as_echo_n "checking if res_query will link... " >&6; } | ||
27281 | cat >conftest.$ac_ext <<_ACEOF | ||
27282 | |||
27283 | #include "confdefs.h" | ||
27284 | #include <sys/types.h> | ||
27285 | #include <netinet/in.h> | ||
27286 | #include <arpa/nameser.h> | ||
27287 | #include <netdb.h> | ||
27288 | #include <resolv.h> | ||
27289 | int main() | ||
27290 | { | ||
27291 | res_query (0, 0, 0, 0, 0); | ||
27292 | return 0; | ||
27293 | } | ||
27294 | |||
27295 | _ACEOF | ||
27296 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27297 | if { (ac_try="$ac_link" | ||
27298 | case "(($ac_try" in | ||
27299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27300 | *) ac_try_echo=$ac_try;; | ||
27301 | esac | ||
27302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27303 | $as_echo "$ac_try_echo") >&5 | ||
27304 | (eval "$ac_link") 2>conftest.er1 | ||
27305 | ac_status=$? | ||
27306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27307 | rm -f conftest.er1 | ||
27308 | cat conftest.err >&5 | ||
27309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27310 | (exit $ac_status); } && { | ||
27311 | test -z "$ac_c_werror_flag" || | ||
27312 | test ! -s conftest.err | ||
27313 | } && test -s conftest$ac_exeext && { | ||
27314 | test "$cross_compiling" = yes || | ||
27315 | $as_test_x conftest$ac_exeext | ||
27316 | }; then | ||
27317 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
27318 | $as_echo "yes" >&6; } | ||
27319 | else | ||
27320 | $as_echo "$as_me: failed program was:" >&5 | ||
27321 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27322 | |||
27323 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
27324 | $as_echo "no" >&6; } | ||
27325 | saved_LIBS="$LIBS" | ||
27326 | LIBS="$LIBS -lresolv" | ||
27327 | { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 | ||
27328 | $as_echo_n "checking for res_query in -lresolv... " >&6; } | ||
27329 | cat >conftest.$ac_ext <<_ACEOF | ||
27330 | |||
27331 | #include "confdefs.h" | ||
27332 | #include <sys/types.h> | ||
27333 | #include <netinet/in.h> | ||
27334 | #include <arpa/nameser.h> | ||
27335 | #include <netdb.h> | ||
27336 | #include <resolv.h> | ||
27337 | int main() | ||
27338 | { | ||
27339 | res_query (0, 0, 0, 0, 0); | ||
27340 | return 0; | ||
27341 | } | ||
27342 | |||
27343 | _ACEOF | ||
27344 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27345 | if { (ac_try="$ac_link" | ||
27346 | case "(($ac_try" in | ||
27347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27348 | *) ac_try_echo=$ac_try;; | ||
27349 | esac | ||
27350 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27351 | $as_echo "$ac_try_echo") >&5 | ||
27352 | (eval "$ac_link") 2>conftest.er1 | ||
27353 | ac_status=$? | ||
27354 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27355 | rm -f conftest.er1 | ||
27356 | cat conftest.err >&5 | ||
27357 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27358 | (exit $ac_status); } && { | ||
27359 | test -z "$ac_c_werror_flag" || | ||
27360 | test ! -s conftest.err | ||
27361 | } && test -s conftest$ac_exeext && { | ||
27362 | test "$cross_compiling" = yes || | ||
27363 | $as_test_x conftest$ac_exeext | ||
27364 | }; then | ||
27365 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
27366 | $as_echo "yes" >&6; } | ||
27367 | else | ||
27368 | $as_echo "$as_me: failed program was:" >&5 | ||
27369 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27370 | |||
27371 | LIBS="$saved_LIBS" | ||
27372 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
27373 | $as_echo "no" >&6; } | ||
27374 | fi | ||
27375 | |||
27376 | rm -rf conftest.dSYM | ||
27377 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27378 | conftest$ac_exeext conftest.$ac_ext | ||
27379 | |||
27380 | fi | ||
27381 | |||
27382 | rm -rf conftest.dSYM | ||
27383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27384 | conftest$ac_exeext conftest.$ac_ext | ||
27385 | |||
27386 | |||
27387 | for ac_func in _getshort _getlong | ||
27388 | do | ||
27389 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
27390 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
27391 | $as_echo_n "checking for $ac_func... " >&6; } | ||
27392 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
27393 | $as_echo_n "(cached) " >&6 | ||
27394 | else | ||
27395 | cat >conftest.$ac_ext <<_ACEOF | ||
27396 | /* confdefs.h. */ | ||
27397 | _ACEOF | ||
27398 | cat confdefs.h >>conftest.$ac_ext | ||
27399 | cat >>conftest.$ac_ext <<_ACEOF | ||
27400 | /* end confdefs.h. */ | ||
27401 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
27402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
27403 | #define $ac_func innocuous_$ac_func | ||
27404 | |||
27405 | /* System header to define __stub macros and hopefully few prototypes, | ||
27406 | which can conflict with char $ac_func (); below. | ||
27407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
27408 | <limits.h> exists even on freestanding compilers. */ | ||
27409 | |||
27410 | #ifdef __STDC__ | ||
27411 | # include <limits.h> | ||
27412 | #else | ||
27413 | # include <assert.h> | ||
27414 | #endif | ||
27415 | |||
27416 | #undef $ac_func | ||
27417 | |||
27418 | /* Override any GCC internal prototype to avoid an error. | ||
27419 | Use char because int might match the return type of a GCC | ||
27420 | builtin and then its argument prototype would still apply. */ | ||
27421 | #ifdef __cplusplus | ||
27422 | extern "C" | ||
27423 | #endif | ||
27424 | char $ac_func (); | ||
27425 | /* The GNU C library defines this for functions which it implements | ||
27426 | to always fail with ENOSYS. Some functions are actually named | ||
27427 | something starting with __ and the normal name is an alias. */ | ||
27428 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
27429 | choke me | ||
27430 | #endif | ||
27431 | |||
27432 | int | ||
27433 | main () | ||
27434 | { | ||
27435 | return $ac_func (); | ||
27436 | ; | ||
27437 | return 0; | ||
27438 | } | ||
27439 | _ACEOF | ||
27440 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27441 | if { (ac_try="$ac_link" | ||
27442 | case "(($ac_try" in | ||
27443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27444 | *) ac_try_echo=$ac_try;; | ||
27445 | esac | ||
27446 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27447 | $as_echo "$ac_try_echo") >&5 | ||
27448 | (eval "$ac_link") 2>conftest.er1 | ||
27449 | ac_status=$? | ||
27450 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27451 | rm -f conftest.er1 | ||
27452 | cat conftest.err >&5 | ||
27453 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27454 | (exit $ac_status); } && { | ||
27455 | test -z "$ac_c_werror_flag" || | ||
27456 | test ! -s conftest.err | ||
27457 | } && test -s conftest$ac_exeext && { | ||
27458 | test "$cross_compiling" = yes || | ||
27459 | $as_test_x conftest$ac_exeext | ||
27460 | }; then | ||
27461 | eval "$as_ac_var=yes" | ||
27462 | else | ||
27463 | $as_echo "$as_me: failed program was:" >&5 | ||
27464 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27465 | |||
27466 | eval "$as_ac_var=no" | ||
27467 | fi | ||
27468 | |||
27469 | rm -rf conftest.dSYM | ||
27470 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27471 | conftest$ac_exeext conftest.$ac_ext | ||
27472 | fi | ||
27473 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
27474 | $as_echo "$as_val"'` | ||
27475 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
27476 | $as_echo "$ac_res" >&6; } | ||
27477 | if test `eval 'as_val=${'$as_ac_var'} | ||
27478 | $as_echo "$as_val"'` = yes; then | ||
27479 | cat >>confdefs.h <<_ACEOF | ||
27480 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
27481 | _ACEOF | ||
27482 | |||
27483 | fi | ||
27484 | done | ||
27485 | |||
27486 | { $as_echo "$as_me:$LINENO: checking whether _getshort is declared" >&5 | ||
27487 | $as_echo_n "checking whether _getshort is declared... " >&6; } | ||
27488 | if test "${ac_cv_have_decl__getshort+set}" = set; then | ||
27489 | $as_echo_n "(cached) " >&6 | ||
27490 | else | ||
27491 | cat >conftest.$ac_ext <<_ACEOF | ||
27492 | /* confdefs.h. */ | ||
27493 | _ACEOF | ||
27494 | cat confdefs.h >>conftest.$ac_ext | ||
27495 | cat >>conftest.$ac_ext <<_ACEOF | ||
27496 | /* end confdefs.h. */ | ||
27497 | #include <sys/types.h> | ||
27498 | #include <arpa/nameser.h> | ||
27499 | |||
27500 | int | ||
27501 | main () | ||
27502 | { | ||
27503 | #ifndef _getshort | ||
27504 | (void) _getshort; | ||
27505 | #endif | ||
27506 | |||
27507 | ; | ||
27508 | return 0; | ||
27509 | } | ||
27510 | _ACEOF | ||
27511 | rm -f conftest.$ac_objext | ||
27512 | if { (ac_try="$ac_compile" | ||
27513 | case "(($ac_try" in | ||
27514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27515 | *) ac_try_echo=$ac_try;; | ||
27516 | esac | ||
27517 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27518 | $as_echo "$ac_try_echo") >&5 | ||
27519 | (eval "$ac_compile") 2>conftest.er1 | ||
27520 | ac_status=$? | ||
27521 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27522 | rm -f conftest.er1 | ||
27523 | cat conftest.err >&5 | ||
27524 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27525 | (exit $ac_status); } && { | ||
27526 | test -z "$ac_c_werror_flag" || | ||
27527 | test ! -s conftest.err | ||
27528 | } && test -s conftest.$ac_objext; then | ||
27529 | ac_cv_have_decl__getshort=yes | ||
27530 | else | ||
27531 | $as_echo "$as_me: failed program was:" >&5 | ||
27532 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27533 | |||
27534 | ac_cv_have_decl__getshort=no | ||
27535 | fi | ||
27536 | |||
27537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27538 | fi | ||
27539 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__getshort" >&5 | ||
27540 | $as_echo "$ac_cv_have_decl__getshort" >&6; } | ||
27541 | if test $ac_cv_have_decl__getshort = yes; then | ||
27542 | |||
27543 | cat >>confdefs.h <<_ACEOF | ||
27544 | #define HAVE_DECL__GETSHORT 1 | ||
27545 | _ACEOF | ||
27546 | |||
27547 | |||
27548 | else | ||
27549 | cat >>confdefs.h <<_ACEOF | ||
27550 | #define HAVE_DECL__GETSHORT 0 | ||
27551 | _ACEOF | ||
27552 | |||
27553 | |||
27554 | fi | ||
27555 | { $as_echo "$as_me:$LINENO: checking whether _getlong is declared" >&5 | ||
27556 | $as_echo_n "checking whether _getlong is declared... " >&6; } | ||
27557 | if test "${ac_cv_have_decl__getlong+set}" = set; then | ||
27558 | $as_echo_n "(cached) " >&6 | ||
27559 | else | ||
27560 | cat >conftest.$ac_ext <<_ACEOF | ||
27561 | /* confdefs.h. */ | ||
27562 | _ACEOF | ||
27563 | cat confdefs.h >>conftest.$ac_ext | ||
27564 | cat >>conftest.$ac_ext <<_ACEOF | ||
27565 | /* end confdefs.h. */ | ||
27566 | #include <sys/types.h> | ||
27567 | #include <arpa/nameser.h> | ||
27568 | |||
27569 | int | ||
27570 | main () | ||
27571 | { | ||
27572 | #ifndef _getlong | ||
27573 | (void) _getlong; | ||
27574 | #endif | ||
27575 | |||
27576 | ; | ||
27577 | return 0; | ||
27578 | } | ||
27579 | _ACEOF | ||
27580 | rm -f conftest.$ac_objext | ||
27581 | if { (ac_try="$ac_compile" | ||
27582 | case "(($ac_try" in | ||
27583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27584 | *) ac_try_echo=$ac_try;; | ||
27585 | esac | ||
27586 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27587 | $as_echo "$ac_try_echo") >&5 | ||
27588 | (eval "$ac_compile") 2>conftest.er1 | ||
27589 | ac_status=$? | ||
27590 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27591 | rm -f conftest.er1 | ||
27592 | cat conftest.err >&5 | ||
27593 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27594 | (exit $ac_status); } && { | ||
27595 | test -z "$ac_c_werror_flag" || | ||
27596 | test ! -s conftest.err | ||
27597 | } && test -s conftest.$ac_objext; then | ||
27598 | ac_cv_have_decl__getlong=yes | ||
27599 | else | ||
27600 | $as_echo "$as_me: failed program was:" >&5 | ||
27601 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27602 | |||
27603 | ac_cv_have_decl__getlong=no | ||
27604 | fi | ||
27605 | |||
27606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27607 | fi | ||
27608 | { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__getlong" >&5 | ||
27609 | $as_echo "$ac_cv_have_decl__getlong" >&6; } | ||
27610 | if test $ac_cv_have_decl__getlong = yes; then | ||
27611 | |||
27612 | cat >>confdefs.h <<_ACEOF | ||
27613 | #define HAVE_DECL__GETLONG 1 | ||
27614 | _ACEOF | ||
27615 | |||
27616 | |||
27617 | else | ||
27618 | cat >>confdefs.h <<_ACEOF | ||
27619 | #define HAVE_DECL__GETLONG 0 | ||
27620 | _ACEOF | ||
27621 | |||
27622 | |||
27623 | fi | ||
27624 | |||
27625 | |||
27626 | { $as_echo "$as_me:$LINENO: checking for HEADER.ad" >&5 | ||
27627 | $as_echo_n "checking for HEADER.ad... " >&6; } | ||
27628 | if test "${ac_cv_member_HEADER_ad+set}" = set; then | ||
27629 | $as_echo_n "(cached) " >&6 | ||
27630 | else | ||
27631 | cat >conftest.$ac_ext <<_ACEOF | ||
27632 | /* confdefs.h. */ | ||
27633 | _ACEOF | ||
27634 | cat confdefs.h >>conftest.$ac_ext | ||
27635 | cat >>conftest.$ac_ext <<_ACEOF | ||
27636 | /* end confdefs.h. */ | ||
27637 | #include <arpa/nameser.h> | ||
27638 | |||
27639 | int | ||
27640 | main () | ||
27641 | { | ||
27642 | static HEADER ac_aggr; | ||
27643 | if (ac_aggr.ad) | ||
27644 | return 0; | ||
27645 | ; | ||
27646 | return 0; | ||
27647 | } | ||
27648 | _ACEOF | ||
27649 | rm -f conftest.$ac_objext | ||
27650 | if { (ac_try="$ac_compile" | ||
27651 | case "(($ac_try" in | ||
27652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27653 | *) ac_try_echo=$ac_try;; | ||
27654 | esac | ||
27655 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27656 | $as_echo "$ac_try_echo") >&5 | ||
27657 | (eval "$ac_compile") 2>conftest.er1 | ||
27658 | ac_status=$? | ||
27659 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27660 | rm -f conftest.er1 | ||
27661 | cat conftest.err >&5 | ||
27662 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27663 | (exit $ac_status); } && { | ||
27664 | test -z "$ac_c_werror_flag" || | ||
27665 | test ! -s conftest.err | ||
27666 | } && test -s conftest.$ac_objext; then | ||
27667 | ac_cv_member_HEADER_ad=yes | ||
27668 | else | ||
27669 | $as_echo "$as_me: failed program was:" >&5 | ||
27670 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27671 | |||
27672 | cat >conftest.$ac_ext <<_ACEOF | ||
27673 | /* confdefs.h. */ | ||
27674 | _ACEOF | ||
27675 | cat confdefs.h >>conftest.$ac_ext | ||
27676 | cat >>conftest.$ac_ext <<_ACEOF | ||
27677 | /* end confdefs.h. */ | ||
27678 | #include <arpa/nameser.h> | ||
27679 | |||
27680 | int | ||
27681 | main () | ||
27682 | { | ||
27683 | static HEADER ac_aggr; | ||
27684 | if (sizeof ac_aggr.ad) | ||
27685 | return 0; | ||
27686 | ; | ||
27687 | return 0; | ||
27688 | } | ||
27689 | _ACEOF | ||
27690 | rm -f conftest.$ac_objext | ||
27691 | if { (ac_try="$ac_compile" | ||
27692 | case "(($ac_try" in | ||
27693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27694 | *) ac_try_echo=$ac_try;; | ||
27695 | esac | ||
27696 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27697 | $as_echo "$ac_try_echo") >&5 | ||
27698 | (eval "$ac_compile") 2>conftest.er1 | ||
27699 | ac_status=$? | ||
27700 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27701 | rm -f conftest.er1 | ||
27702 | cat conftest.err >&5 | ||
27703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27704 | (exit $ac_status); } && { | ||
27705 | test -z "$ac_c_werror_flag" || | ||
27706 | test ! -s conftest.err | ||
27707 | } && test -s conftest.$ac_objext; then | ||
27708 | ac_cv_member_HEADER_ad=yes | ||
27709 | else | ||
27710 | $as_echo "$as_me: failed program was:" >&5 | ||
27711 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27712 | |||
27713 | ac_cv_member_HEADER_ad=no | ||
27714 | fi | ||
27715 | |||
27716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27717 | fi | ||
27718 | |||
27719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27720 | fi | ||
27721 | { $as_echo "$as_me:$LINENO: result: $ac_cv_member_HEADER_ad" >&5 | ||
27722 | $as_echo "$ac_cv_member_HEADER_ad" >&6; } | ||
27723 | if test $ac_cv_member_HEADER_ad = yes; then | ||
27724 | |||
27725 | cat >>confdefs.h <<\_ACEOF | ||
27726 | #define HAVE_HEADER_AD 1 | ||
27727 | _ACEOF | ||
27728 | |||
27729 | fi | ||
27730 | |||
27731 | |||
27732 | fi | ||
27733 | |||
27734 | |||
27735 | { $as_echo "$as_me:$LINENO: checking if struct __res_state _res is an extern" >&5 | ||
27736 | $as_echo_n "checking if struct __res_state _res is an extern... " >&6; } | ||
27737 | cat >conftest.$ac_ext <<_ACEOF | ||
27738 | |||
27739 | #include <stdio.h> | ||
27740 | #if HAVE_SYS_TYPES_H | ||
27741 | # include <sys/types.h> | ||
27742 | #endif | ||
27743 | #include <netinet/in.h> | ||
27744 | #include <arpa/nameser.h> | ||
27745 | #include <resolv.h> | ||
27746 | extern struct __res_state _res; | ||
27747 | int main() { return 0; } | ||
27748 | |||
27749 | _ACEOF | ||
27750 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27751 | if { (ac_try="$ac_link" | ||
27752 | case "(($ac_try" in | ||
27753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27754 | *) ac_try_echo=$ac_try;; | ||
27755 | esac | ||
27756 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27757 | $as_echo "$ac_try_echo") >&5 | ||
27758 | (eval "$ac_link") 2>conftest.er1 | ||
27759 | ac_status=$? | ||
27760 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27761 | rm -f conftest.er1 | ||
27762 | cat conftest.err >&5 | ||
27763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27764 | (exit $ac_status); } && { | ||
27765 | test -z "$ac_c_werror_flag" || | ||
27766 | test ! -s conftest.err | ||
27767 | } && test -s conftest$ac_exeext && { | ||
27768 | test "$cross_compiling" = yes || | ||
27769 | $as_test_x conftest$ac_exeext | ||
27770 | }; then | ||
27771 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
27772 | $as_echo "yes" >&6; } | ||
27773 | |||
27774 | cat >>confdefs.h <<\_ACEOF | ||
27775 | #define HAVE__RES_EXTERN 1 | ||
27776 | _ACEOF | ||
27777 | |||
27778 | |||
27779 | else | ||
27780 | $as_echo "$as_me: failed program was:" >&5 | ||
27781 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27782 | |||
27783 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
27784 | $as_echo "no" >&6; } | ||
27785 | |||
27786 | fi | ||
27787 | |||
27788 | rm -rf conftest.dSYM | ||
27789 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
27790 | conftest$ac_exeext conftest.$ac_ext | ||
27791 | |||
27792 | # Check whether user wants SELinux support | ||
27793 | SELINUX_MSG="no" | ||
27794 | LIBSELINUX="" | ||
27795 | |||
27796 | # Check whether --with-selinux was given. | ||
27797 | if test "${with_selinux+set}" = set; then | ||
27798 | withval=$with_selinux; if test "x$withval" != "xno" ; then | ||
27799 | save_LIBS="$LIBS" | ||
27800 | |||
27801 | cat >>confdefs.h <<\_ACEOF | ||
27802 | #define WITH_SELINUX 1 | ||
27803 | _ACEOF | ||
27804 | |||
27805 | SELINUX_MSG="yes" | ||
27806 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
27807 | { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
27808 | $as_echo_n "checking for selinux/selinux.h... " >&6; } | ||
27809 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
27810 | $as_echo_n "(cached) " >&6 | ||
27811 | fi | ||
27812 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
27813 | $as_echo "$ac_cv_header_selinux_selinux_h" >&6; } | ||
27814 | else | ||
27815 | # Is the header compilable? | ||
27816 | { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5 | ||
27817 | $as_echo_n "checking selinux/selinux.h usability... " >&6; } | ||
27818 | cat >conftest.$ac_ext <<_ACEOF | ||
27819 | /* confdefs.h. */ | ||
27820 | _ACEOF | ||
27821 | cat confdefs.h >>conftest.$ac_ext | ||
27822 | cat >>conftest.$ac_ext <<_ACEOF | ||
27823 | /* end confdefs.h. */ | ||
27824 | $ac_includes_default | ||
27825 | #include <selinux/selinux.h> | ||
27826 | _ACEOF | ||
27827 | rm -f conftest.$ac_objext | ||
27828 | if { (ac_try="$ac_compile" | ||
27829 | case "(($ac_try" in | ||
27830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27831 | *) ac_try_echo=$ac_try;; | ||
27832 | esac | ||
27833 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27834 | $as_echo "$ac_try_echo") >&5 | ||
27835 | (eval "$ac_compile") 2>conftest.er1 | ||
27836 | ac_status=$? | ||
27837 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27838 | rm -f conftest.er1 | ||
27839 | cat conftest.err >&5 | ||
27840 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27841 | (exit $ac_status); } && { | ||
27842 | test -z "$ac_c_werror_flag" || | ||
27843 | test ! -s conftest.err | ||
27844 | } && test -s conftest.$ac_objext; then | ||
27845 | ac_header_compiler=yes | ||
27846 | else | ||
27847 | $as_echo "$as_me: failed program was:" >&5 | ||
27848 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27849 | |||
27850 | ac_header_compiler=no | ||
27851 | fi | ||
27852 | |||
27853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
27854 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
27855 | $as_echo "$ac_header_compiler" >&6; } | ||
27856 | |||
27857 | # Is the header present? | ||
27858 | { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5 | ||
27859 | $as_echo_n "checking selinux/selinux.h presence... " >&6; } | ||
27860 | cat >conftest.$ac_ext <<_ACEOF | ||
27861 | /* confdefs.h. */ | ||
27862 | _ACEOF | ||
27863 | cat confdefs.h >>conftest.$ac_ext | ||
27864 | cat >>conftest.$ac_ext <<_ACEOF | ||
27865 | /* end confdefs.h. */ | ||
27866 | #include <selinux/selinux.h> | ||
27867 | _ACEOF | ||
27868 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
27869 | case "(($ac_try" in | ||
27870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27871 | *) ac_try_echo=$ac_try;; | ||
27872 | esac | ||
27873 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27874 | $as_echo "$ac_try_echo") >&5 | ||
27875 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
27876 | ac_status=$? | ||
27877 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27878 | rm -f conftest.er1 | ||
27879 | cat conftest.err >&5 | ||
27880 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27881 | (exit $ac_status); } >/dev/null && { | ||
27882 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
27883 | test ! -s conftest.err | ||
27884 | }; then | ||
27885 | ac_header_preproc=yes | ||
27886 | else | ||
27887 | $as_echo "$as_me: failed program was:" >&5 | ||
27888 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
27889 | |||
27890 | ac_header_preproc=no | ||
27891 | fi | ||
27892 | |||
27893 | rm -f conftest.err conftest.$ac_ext | ||
27894 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
27895 | $as_echo "$ac_header_preproc" >&6; } | ||
27896 | |||
27897 | # So? What about this header? | ||
27898 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
27899 | yes:no: ) | ||
27900 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
27901 | $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
27902 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5 | ||
27903 | $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;} | ||
27904 | ac_header_preproc=yes | ||
27905 | ;; | ||
27906 | no:yes:* ) | ||
27907 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5 | ||
27908 | $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;} | ||
27909 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5 | ||
27910 | $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;} | ||
27911 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5 | ||
27912 | $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;} | ||
27913 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
27914 | $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
27915 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5 | ||
27916 | $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;} | ||
27917 | { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5 | ||
27918 | $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;} | ||
27919 | ( cat <<\_ASBOX | ||
27920 | ## ------------------------------------------- ## | ||
27921 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
27922 | ## ------------------------------------------- ## | ||
27923 | _ASBOX | ||
27924 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
27925 | ;; | ||
27926 | esac | ||
27927 | { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5 | ||
27928 | $as_echo_n "checking for selinux/selinux.h... " >&6; } | ||
27929 | if test "${ac_cv_header_selinux_selinux_h+set}" = set; then | ||
27930 | $as_echo_n "(cached) " >&6 | ||
27931 | else | ||
27932 | ac_cv_header_selinux_selinux_h=$ac_header_preproc | ||
27933 | fi | ||
27934 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5 | ||
27935 | $as_echo "$ac_cv_header_selinux_selinux_h" >&6; } | ||
27936 | |||
27937 | fi | ||
27938 | if test $ac_cv_header_selinux_selinux_h = yes; then | ||
27939 | : | ||
27940 | else | ||
27941 | { { $as_echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5 | ||
27942 | $as_echo "$as_me: error: SELinux support requires selinux.h header" >&2;} | ||
27943 | { (exit 1); exit 1; }; } | ||
27944 | fi | ||
27945 | |||
27946 | |||
27947 | { $as_echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5 | ||
27948 | $as_echo_n "checking for setexeccon in -lselinux... " >&6; } | ||
27949 | if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then | ||
27950 | $as_echo_n "(cached) " >&6 | ||
27951 | else | ||
27952 | ac_check_lib_save_LIBS=$LIBS | ||
27953 | LIBS="-lselinux $LIBS" | ||
27954 | cat >conftest.$ac_ext <<_ACEOF | ||
27955 | /* confdefs.h. */ | ||
27956 | _ACEOF | ||
27957 | cat confdefs.h >>conftest.$ac_ext | ||
27958 | cat >>conftest.$ac_ext <<_ACEOF | ||
27959 | /* end confdefs.h. */ | ||
27960 | |||
27961 | /* Override any GCC internal prototype to avoid an error. | ||
27962 | Use char because int might match the return type of a GCC | ||
27963 | builtin and then its argument prototype would still apply. */ | ||
27964 | #ifdef __cplusplus | ||
27965 | extern "C" | ||
27966 | #endif | ||
27967 | char setexeccon (); | ||
27968 | int | ||
27969 | main () | ||
27970 | { | ||
27971 | return setexeccon (); | ||
27972 | ; | ||
27973 | return 0; | ||
27974 | } | ||
27975 | _ACEOF | ||
27976 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
27977 | if { (ac_try="$ac_link" | ||
27978 | case "(($ac_try" in | ||
27979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
27980 | *) ac_try_echo=$ac_try;; | ||
27981 | esac | ||
27982 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
27983 | $as_echo "$ac_try_echo") >&5 | ||
27984 | (eval "$ac_link") 2>conftest.er1 | ||
27985 | ac_status=$? | ||
27986 | grep -v '^ *+' conftest.er1 >conftest.err | ||
27987 | rm -f conftest.er1 | ||
27988 | cat conftest.err >&5 | ||
27989 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
27990 | (exit $ac_status); } && { | ||
27991 | test -z "$ac_c_werror_flag" || | ||
27992 | test ! -s conftest.err | ||
27993 | } && test -s conftest$ac_exeext && { | ||
27994 | test "$cross_compiling" = yes || | ||
27995 | $as_test_x conftest$ac_exeext | ||
27996 | }; then | ||
27997 | ac_cv_lib_selinux_setexeccon=yes | ||
27998 | else | ||
27999 | $as_echo "$as_me: failed program was:" >&5 | ||
28000 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28001 | |||
28002 | ac_cv_lib_selinux_setexeccon=no | ||
28003 | fi | ||
28004 | |||
28005 | rm -rf conftest.dSYM | ||
28006 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28007 | conftest$ac_exeext conftest.$ac_ext | ||
28008 | LIBS=$ac_check_lib_save_LIBS | ||
28009 | fi | ||
28010 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5 | ||
28011 | $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; } | ||
28012 | if test $ac_cv_lib_selinux_setexeccon = yes; then | ||
28013 | LIBSELINUX="-lselinux" | ||
28014 | else | ||
28015 | { { $as_echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5 | ||
28016 | $as_echo "$as_me: error: SELinux support requires libselinux library" >&2;} | ||
28017 | { (exit 1); exit 1; }; } | ||
28018 | fi | ||
28019 | |||
28020 | SSHDLIBS="$SSHDLIBS $LIBSELINUX" | ||
28021 | |||
28022 | |||
28023 | for ac_func in getseuserbyname get_default_context_with_level | ||
28024 | do | ||
28025 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
28026 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
28027 | $as_echo_n "checking for $ac_func... " >&6; } | ||
28028 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28029 | $as_echo_n "(cached) " >&6 | ||
28030 | else | ||
28031 | cat >conftest.$ac_ext <<_ACEOF | ||
28032 | /* confdefs.h. */ | ||
28033 | _ACEOF | ||
28034 | cat confdefs.h >>conftest.$ac_ext | ||
28035 | cat >>conftest.$ac_ext <<_ACEOF | ||
28036 | /* end confdefs.h. */ | ||
28037 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
28038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
28039 | #define $ac_func innocuous_$ac_func | ||
28040 | |||
28041 | /* System header to define __stub macros and hopefully few prototypes, | ||
28042 | which can conflict with char $ac_func (); below. | ||
28043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
28044 | <limits.h> exists even on freestanding compilers. */ | ||
28045 | |||
28046 | #ifdef __STDC__ | ||
28047 | # include <limits.h> | ||
28048 | #else | ||
28049 | # include <assert.h> | ||
28050 | #endif | ||
28051 | |||
28052 | #undef $ac_func | ||
28053 | |||
28054 | /* Override any GCC internal prototype to avoid an error. | ||
28055 | Use char because int might match the return type of a GCC | ||
28056 | builtin and then its argument prototype would still apply. */ | ||
28057 | #ifdef __cplusplus | ||
28058 | extern "C" | ||
28059 | #endif | ||
28060 | char $ac_func (); | ||
28061 | /* The GNU C library defines this for functions which it implements | ||
28062 | to always fail with ENOSYS. Some functions are actually named | ||
28063 | something starting with __ and the normal name is an alias. */ | ||
28064 | #if defined __stub_$ac_func || defined __stub___$ac_func | ||
28065 | choke me | ||
28066 | #endif | ||
28067 | |||
28068 | int | ||
28069 | main () | ||
28070 | { | ||
28071 | return $ac_func (); | ||
28072 | ; | ||
28073 | return 0; | ||
28074 | } | ||
28075 | _ACEOF | ||
28076 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28077 | if { (ac_try="$ac_link" | ||
28078 | case "(($ac_try" in | ||
28079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28080 | *) ac_try_echo=$ac_try;; | ||
28081 | esac | ||
28082 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28083 | $as_echo "$ac_try_echo") >&5 | ||
28084 | (eval "$ac_link") 2>conftest.er1 | ||
28085 | ac_status=$? | ||
28086 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28087 | rm -f conftest.er1 | ||
28088 | cat conftest.err >&5 | ||
28089 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28090 | (exit $ac_status); } && { | ||
28091 | test -z "$ac_c_werror_flag" || | ||
28092 | test ! -s conftest.err | ||
28093 | } && test -s conftest$ac_exeext && { | ||
28094 | test "$cross_compiling" = yes || | ||
28095 | $as_test_x conftest$ac_exeext | ||
28096 | }; then | ||
28097 | eval "$as_ac_var=yes" | ||
28098 | else | ||
28099 | $as_echo "$as_me: failed program was:" >&5 | ||
28100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28101 | |||
28102 | eval "$as_ac_var=no" | ||
28103 | fi | ||
28104 | |||
28105 | rm -rf conftest.dSYM | ||
28106 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28107 | conftest$ac_exeext conftest.$ac_ext | ||
28108 | fi | ||
28109 | ac_res=`eval 'as_val=${'$as_ac_var'} | ||
28110 | $as_echo "$as_val"'` | ||
28111 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28112 | $as_echo "$ac_res" >&6; } | ||
28113 | if test `eval 'as_val=${'$as_ac_var'} | ||
28114 | $as_echo "$as_val"'` = yes; then | ||
28115 | cat >>confdefs.h <<_ACEOF | ||
28116 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
28117 | _ACEOF | ||
28118 | |||
28119 | fi | ||
28120 | done | ||
28121 | |||
28122 | LIBS="$save_LIBS" | ||
28123 | fi | ||
28124 | |||
28125 | fi | ||
28126 | |||
28127 | |||
28128 | # Check whether user wants Kerberos 5 support | ||
28129 | KRB5_MSG="no" | ||
28130 | |||
28131 | # Check whether --with-kerberos5 was given. | ||
28132 | if test "${with_kerberos5+set}" = set; then | ||
28133 | withval=$with_kerberos5; if test "x$withval" != "xno" ; then | ||
28134 | if test "x$withval" = "xyes" ; then | ||
28135 | KRB5ROOT="/usr/local" | ||
28136 | else | ||
28137 | KRB5ROOT=${withval} | ||
28138 | fi | ||
28139 | |||
28140 | |||
28141 | cat >>confdefs.h <<\_ACEOF | ||
28142 | #define KRB5 1 | ||
28143 | _ACEOF | ||
28144 | |||
28145 | KRB5_MSG="yes" | ||
28146 | |||
28147 | # Extract the first word of "krb5-config", so it can be a program name with args. | ||
28148 | set dummy krb5-config; ac_word=$2 | ||
28149 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
28150 | $as_echo_n "checking for $ac_word... " >&6; } | ||
28151 | if test "${ac_cv_path_KRB5CONF+set}" = set; then | ||
28152 | $as_echo_n "(cached) " >&6 | ||
28153 | else | ||
28154 | case $KRB5CONF in | ||
28155 | [\\/]* | ?:[\\/]*) | ||
28156 | ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path. | ||
28157 | ;; | ||
28158 | *) | ||
28159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
28160 | as_dummy="$KRB5ROOT/bin:$PATH" | ||
28161 | for as_dir in $as_dummy | ||
28162 | do | ||
28163 | IFS=$as_save_IFS | ||
28164 | test -z "$as_dir" && as_dir=. | ||
28165 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
28166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
28167 | ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext" | ||
28168 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
28169 | break 2 | ||
28170 | fi | ||
28171 | done | ||
28172 | done | ||
28173 | IFS=$as_save_IFS | ||
28174 | |||
28175 | test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config" | ||
28176 | ;; | ||
28177 | esac | ||
28178 | fi | ||
28179 | KRB5CONF=$ac_cv_path_KRB5CONF | ||
28180 | if test -n "$KRB5CONF"; then | ||
28181 | { $as_echo "$as_me:$LINENO: result: $KRB5CONF" >&5 | ||
28182 | $as_echo "$KRB5CONF" >&6; } | ||
28183 | else | ||
28184 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
28185 | $as_echo "no" >&6; } | ||
28186 | fi | ||
28187 | |||
28188 | |||
28189 | if test -x $KRB5CONF ; then | ||
28190 | |||
28191 | { $as_echo "$as_me:$LINENO: checking for gssapi support" >&5 | ||
28192 | $as_echo_n "checking for gssapi support... " >&6; } | ||
28193 | if $KRB5CONF | grep gssapi >/dev/null ; then | ||
28194 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
28195 | $as_echo "yes" >&6; } | ||
28196 | |||
28197 | cat >>confdefs.h <<\_ACEOF | ||
28198 | #define GSSAPI 1 | ||
28199 | _ACEOF | ||
28200 | |||
28201 | k5confopts=gssapi | ||
28202 | else | ||
28203 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
28204 | $as_echo "no" >&6; } | ||
28205 | k5confopts="" | ||
28206 | fi | ||
28207 | K5CFLAGS="`$KRB5CONF --cflags $k5confopts`" | ||
28208 | K5LIBS="`$KRB5CONF --libs $k5confopts`" | ||
28209 | CPPFLAGS="$CPPFLAGS $K5CFLAGS" | ||
28210 | { $as_echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
28211 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
28212 | cat >conftest.$ac_ext <<_ACEOF | ||
28213 | /* confdefs.h. */ | ||
28214 | _ACEOF | ||
28215 | cat confdefs.h >>conftest.$ac_ext | ||
28216 | cat >>conftest.$ac_ext <<_ACEOF | ||
28217 | /* end confdefs.h. */ | ||
28218 | #include <krb5.h> | ||
28219 | int | ||
28220 | main () | ||
28221 | { | ||
28222 | char *tmp = heimdal_version; | ||
28223 | ; | ||
28224 | return 0; | ||
28225 | } | ||
28226 | _ACEOF | ||
28227 | rm -f conftest.$ac_objext | ||
28228 | if { (ac_try="$ac_compile" | ||
28229 | case "(($ac_try" in | ||
28230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28231 | *) ac_try_echo=$ac_try;; | ||
28232 | esac | ||
28233 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28234 | $as_echo "$ac_try_echo") >&5 | ||
28235 | (eval "$ac_compile") 2>conftest.er1 | ||
28236 | ac_status=$? | ||
28237 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28238 | rm -f conftest.er1 | ||
28239 | cat conftest.err >&5 | ||
28240 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28241 | (exit $ac_status); } && { | ||
28242 | test -z "$ac_c_werror_flag" || | ||
28243 | test ! -s conftest.err | ||
28244 | } && test -s conftest.$ac_objext; then | ||
28245 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
28246 | $as_echo "yes" >&6; } | ||
28247 | |||
28248 | cat >>confdefs.h <<\_ACEOF | ||
28249 | #define HEIMDAL 1 | ||
28250 | _ACEOF | ||
28251 | |||
28252 | else | ||
28253 | $as_echo "$as_me: failed program was:" >&5 | ||
28254 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28255 | |||
28256 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
28257 | $as_echo "no" >&6; } | ||
28258 | |||
28259 | fi | ||
28260 | |||
28261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28262 | else | ||
28263 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include" | ||
28264 | LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib" | ||
28265 | { $as_echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5 | ||
28266 | $as_echo_n "checking whether we are using Heimdal... " >&6; } | ||
28267 | cat >conftest.$ac_ext <<_ACEOF | ||
28268 | /* confdefs.h. */ | ||
28269 | _ACEOF | ||
28270 | cat confdefs.h >>conftest.$ac_ext | ||
28271 | cat >>conftest.$ac_ext <<_ACEOF | ||
28272 | /* end confdefs.h. */ | ||
28273 | #include <krb5.h> | ||
28274 | int | ||
28275 | main () | ||
28276 | { | ||
28277 | char *tmp = heimdal_version; | ||
28278 | ; | ||
28279 | return 0; | ||
28280 | } | ||
28281 | _ACEOF | ||
28282 | rm -f conftest.$ac_objext | ||
28283 | if { (ac_try="$ac_compile" | ||
28284 | case "(($ac_try" in | ||
28285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28286 | *) ac_try_echo=$ac_try;; | ||
28287 | esac | ||
28288 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28289 | $as_echo "$ac_try_echo") >&5 | ||
28290 | (eval "$ac_compile") 2>conftest.er1 | ||
28291 | ac_status=$? | ||
28292 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28293 | rm -f conftest.er1 | ||
28294 | cat conftest.err >&5 | ||
28295 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28296 | (exit $ac_status); } && { | ||
28297 | test -z "$ac_c_werror_flag" || | ||
28298 | test ! -s conftest.err | ||
28299 | } && test -s conftest.$ac_objext; then | ||
28300 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
28301 | $as_echo "yes" >&6; } | ||
28302 | cat >>confdefs.h <<\_ACEOF | ||
28303 | #define HEIMDAL 1 | ||
28304 | _ACEOF | ||
28305 | |||
28306 | K5LIBS="-lkrb5 -ldes" | ||
28307 | K5LIBS="$K5LIBS -lcom_err -lasn1" | ||
28308 | { $as_echo "$as_me:$LINENO: checking for net_write in -lroken" >&5 | ||
28309 | $as_echo_n "checking for net_write in -lroken... " >&6; } | ||
28310 | if test "${ac_cv_lib_roken_net_write+set}" = set; then | ||
28311 | $as_echo_n "(cached) " >&6 | ||
28312 | else | ||
28313 | ac_check_lib_save_LIBS=$LIBS | ||
28314 | LIBS="-lroken $LIBS" | ||
28315 | cat >conftest.$ac_ext <<_ACEOF | ||
28316 | /* confdefs.h. */ | ||
28317 | _ACEOF | ||
28318 | cat confdefs.h >>conftest.$ac_ext | ||
28319 | cat >>conftest.$ac_ext <<_ACEOF | ||
28320 | /* end confdefs.h. */ | ||
28321 | |||
28322 | /* Override any GCC internal prototype to avoid an error. | ||
28323 | Use char because int might match the return type of a GCC | ||
28324 | builtin and then its argument prototype would still apply. */ | ||
28325 | #ifdef __cplusplus | ||
28326 | extern "C" | ||
28327 | #endif | ||
28328 | char net_write (); | ||
28329 | int | ||
28330 | main () | ||
28331 | { | ||
28332 | return net_write (); | ||
28333 | ; | ||
28334 | return 0; | ||
28335 | } | ||
28336 | _ACEOF | ||
28337 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28338 | if { (ac_try="$ac_link" | ||
28339 | case "(($ac_try" in | ||
28340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28341 | *) ac_try_echo=$ac_try;; | ||
28342 | esac | ||
28343 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28344 | $as_echo "$ac_try_echo") >&5 | ||
28345 | (eval "$ac_link") 2>conftest.er1 | ||
28346 | ac_status=$? | ||
28347 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28348 | rm -f conftest.er1 | ||
28349 | cat conftest.err >&5 | ||
28350 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28351 | (exit $ac_status); } && { | ||
28352 | test -z "$ac_c_werror_flag" || | ||
28353 | test ! -s conftest.err | ||
28354 | } && test -s conftest$ac_exeext && { | ||
28355 | test "$cross_compiling" = yes || | ||
28356 | $as_test_x conftest$ac_exeext | ||
28357 | }; then | ||
28358 | ac_cv_lib_roken_net_write=yes | ||
28359 | else | ||
28360 | $as_echo "$as_me: failed program was:" >&5 | ||
28361 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28362 | |||
28363 | ac_cv_lib_roken_net_write=no | ||
28364 | fi | ||
28365 | |||
28366 | rm -rf conftest.dSYM | ||
28367 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28368 | conftest$ac_exeext conftest.$ac_ext | ||
28369 | LIBS=$ac_check_lib_save_LIBS | ||
28370 | fi | ||
28371 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_roken_net_write" >&5 | ||
28372 | $as_echo "$ac_cv_lib_roken_net_write" >&6; } | ||
28373 | if test $ac_cv_lib_roken_net_write = yes; then | ||
28374 | K5LIBS="$K5LIBS -lroken" | ||
28375 | fi | ||
28376 | |||
28377 | |||
28378 | else | ||
28379 | $as_echo "$as_me: failed program was:" >&5 | ||
28380 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28381 | |||
28382 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
28383 | $as_echo "no" >&6; } | ||
28384 | K5LIBS="-lkrb5 -lk5crypto -lcom_err" | ||
28385 | |||
28386 | |||
28387 | fi | ||
28388 | |||
28389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28390 | { $as_echo "$as_me:$LINENO: checking for library containing dn_expand" >&5 | ||
28391 | $as_echo_n "checking for library containing dn_expand... " >&6; } | ||
28392 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
28393 | $as_echo_n "(cached) " >&6 | ||
28394 | else | ||
28395 | ac_func_search_save_LIBS=$LIBS | ||
28396 | cat >conftest.$ac_ext <<_ACEOF | ||
28397 | /* confdefs.h. */ | ||
28398 | _ACEOF | ||
28399 | cat confdefs.h >>conftest.$ac_ext | ||
28400 | cat >>conftest.$ac_ext <<_ACEOF | ||
28401 | /* end confdefs.h. */ | ||
28402 | |||
28403 | /* Override any GCC internal prototype to avoid an error. | ||
28404 | Use char because int might match the return type of a GCC | ||
28405 | builtin and then its argument prototype would still apply. */ | ||
28406 | #ifdef __cplusplus | ||
28407 | extern "C" | ||
28408 | #endif | ||
28409 | char dn_expand (); | ||
28410 | int | ||
28411 | main () | ||
28412 | { | ||
28413 | return dn_expand (); | ||
28414 | ; | ||
28415 | return 0; | ||
28416 | } | ||
28417 | _ACEOF | ||
28418 | for ac_lib in '' resolv; do | ||
28419 | if test -z "$ac_lib"; then | ||
28420 | ac_res="none required" | ||
28421 | else | ||
28422 | ac_res=-l$ac_lib | ||
28423 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
28424 | fi | ||
28425 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28426 | if { (ac_try="$ac_link" | ||
28427 | case "(($ac_try" in | ||
28428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28429 | *) ac_try_echo=$ac_try;; | ||
28430 | esac | ||
28431 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28432 | $as_echo "$ac_try_echo") >&5 | ||
28433 | (eval "$ac_link") 2>conftest.er1 | ||
28434 | ac_status=$? | ||
28435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28436 | rm -f conftest.er1 | ||
28437 | cat conftest.err >&5 | ||
28438 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28439 | (exit $ac_status); } && { | ||
28440 | test -z "$ac_c_werror_flag" || | ||
28441 | test ! -s conftest.err | ||
28442 | } && test -s conftest$ac_exeext && { | ||
28443 | test "$cross_compiling" = yes || | ||
28444 | $as_test_x conftest$ac_exeext | ||
28445 | }; then | ||
28446 | ac_cv_search_dn_expand=$ac_res | ||
28447 | else | ||
28448 | $as_echo "$as_me: failed program was:" >&5 | ||
28449 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28450 | |||
28451 | |||
28452 | fi | ||
28453 | |||
28454 | rm -rf conftest.dSYM | ||
28455 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28456 | conftest$ac_exeext | ||
28457 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
28458 | break | ||
28459 | fi | ||
28460 | done | ||
28461 | if test "${ac_cv_search_dn_expand+set}" = set; then | ||
28462 | : | ||
28463 | else | ||
28464 | ac_cv_search_dn_expand=no | ||
28465 | fi | ||
28466 | rm conftest.$ac_ext | ||
28467 | LIBS=$ac_func_search_save_LIBS | ||
28468 | fi | ||
28469 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dn_expand" >&5 | ||
28470 | $as_echo "$ac_cv_search_dn_expand" >&6; } | ||
28471 | ac_res=$ac_cv_search_dn_expand | ||
28472 | if test "$ac_res" != no; then | ||
28473 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
28474 | |||
28475 | fi | ||
28476 | |||
28477 | |||
28478 | { $as_echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5 | ||
28479 | $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; } | ||
28480 | if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then | ||
28481 | $as_echo_n "(cached) " >&6 | ||
28482 | else | ||
28483 | ac_check_lib_save_LIBS=$LIBS | ||
28484 | LIBS="-lgssapi_krb5 $K5LIBS $LIBS" | ||
28485 | cat >conftest.$ac_ext <<_ACEOF | ||
28486 | /* confdefs.h. */ | ||
28487 | _ACEOF | ||
28488 | cat confdefs.h >>conftest.$ac_ext | ||
28489 | cat >>conftest.$ac_ext <<_ACEOF | ||
28490 | /* end confdefs.h. */ | ||
28491 | |||
28492 | /* Override any GCC internal prototype to avoid an error. | ||
28493 | Use char because int might match the return type of a GCC | ||
28494 | builtin and then its argument prototype would still apply. */ | ||
28495 | #ifdef __cplusplus | ||
28496 | extern "C" | ||
28497 | #endif | ||
28498 | char gss_init_sec_context (); | ||
28499 | int | ||
28500 | main () | ||
28501 | { | ||
28502 | return gss_init_sec_context (); | ||
28503 | ; | ||
28504 | return 0; | ||
28505 | } | ||
28506 | _ACEOF | ||
28507 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28508 | if { (ac_try="$ac_link" | ||
28509 | case "(($ac_try" in | ||
28510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28511 | *) ac_try_echo=$ac_try;; | ||
28512 | esac | ||
28513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28514 | $as_echo "$ac_try_echo") >&5 | ||
28515 | (eval "$ac_link") 2>conftest.er1 | ||
28516 | ac_status=$? | ||
28517 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28518 | rm -f conftest.er1 | ||
28519 | cat conftest.err >&5 | ||
28520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28521 | (exit $ac_status); } && { | ||
28522 | test -z "$ac_c_werror_flag" || | ||
28523 | test ! -s conftest.err | ||
28524 | } && test -s conftest$ac_exeext && { | ||
28525 | test "$cross_compiling" = yes || | ||
28526 | $as_test_x conftest$ac_exeext | ||
28527 | }; then | ||
28528 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes | ||
28529 | else | ||
28530 | $as_echo "$as_me: failed program was:" >&5 | ||
28531 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28532 | |||
28533 | ac_cv_lib_gssapi_krb5_gss_init_sec_context=no | ||
28534 | fi | ||
28535 | |||
28536 | rm -rf conftest.dSYM | ||
28537 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28538 | conftest$ac_exeext conftest.$ac_ext | ||
28539 | LIBS=$ac_check_lib_save_LIBS | ||
28540 | fi | ||
28541 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5 | ||
28542 | $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; } | ||
28543 | if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then | ||
28544 | cat >>confdefs.h <<\_ACEOF | ||
28545 | #define GSSAPI 1 | ||
28546 | _ACEOF | ||
28547 | |||
28548 | K5LIBS="-lgssapi_krb5 $K5LIBS" | ||
28549 | else | ||
28550 | { $as_echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5 | ||
28551 | $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; } | ||
28552 | if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then | ||
28553 | $as_echo_n "(cached) " >&6 | ||
28554 | else | ||
28555 | ac_check_lib_save_LIBS=$LIBS | ||
28556 | LIBS="-lgssapi $K5LIBS $LIBS" | ||
28557 | cat >conftest.$ac_ext <<_ACEOF | ||
28558 | /* confdefs.h. */ | ||
28559 | _ACEOF | ||
28560 | cat confdefs.h >>conftest.$ac_ext | ||
28561 | cat >>conftest.$ac_ext <<_ACEOF | ||
28562 | /* end confdefs.h. */ | ||
28563 | |||
28564 | /* Override any GCC internal prototype to avoid an error. | ||
28565 | Use char because int might match the return type of a GCC | ||
28566 | builtin and then its argument prototype would still apply. */ | ||
28567 | #ifdef __cplusplus | ||
28568 | extern "C" | ||
28569 | #endif | ||
28570 | char gss_init_sec_context (); | ||
28571 | int | ||
28572 | main () | ||
28573 | { | ||
28574 | return gss_init_sec_context (); | ||
28575 | ; | ||
28576 | return 0; | ||
28577 | } | ||
28578 | _ACEOF | ||
28579 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
28580 | if { (ac_try="$ac_link" | ||
28581 | case "(($ac_try" in | ||
28582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28583 | *) ac_try_echo=$ac_try;; | ||
28584 | esac | ||
28585 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28586 | $as_echo "$ac_try_echo") >&5 | ||
28587 | (eval "$ac_link") 2>conftest.er1 | ||
28588 | ac_status=$? | ||
28589 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28590 | rm -f conftest.er1 | ||
28591 | cat conftest.err >&5 | ||
28592 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28593 | (exit $ac_status); } && { | ||
28594 | test -z "$ac_c_werror_flag" || | ||
28595 | test ! -s conftest.err | ||
28596 | } && test -s conftest$ac_exeext && { | ||
28597 | test "$cross_compiling" = yes || | ||
28598 | $as_test_x conftest$ac_exeext | ||
28599 | }; then | ||
28600 | ac_cv_lib_gssapi_gss_init_sec_context=yes | ||
28601 | else | ||
28602 | $as_echo "$as_me: failed program was:" >&5 | ||
28603 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28604 | |||
28605 | ac_cv_lib_gssapi_gss_init_sec_context=no | ||
28606 | fi | ||
28607 | |||
28608 | rm -rf conftest.dSYM | ||
28609 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
28610 | conftest$ac_exeext conftest.$ac_ext | ||
28611 | LIBS=$ac_check_lib_save_LIBS | ||
28612 | fi | ||
28613 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5 | ||
28614 | $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; } | ||
28615 | if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then | ||
28616 | cat >>confdefs.h <<\_ACEOF | ||
28617 | #define GSSAPI 1 | ||
28618 | _ACEOF | ||
28619 | |||
28620 | K5LIBS="-lgssapi $K5LIBS" | ||
28621 | else | ||
28622 | { $as_echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api library - build may fail" >&5 | ||
28623 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;} | ||
28624 | fi | ||
28625 | |||
28626 | |||
28627 | fi | ||
28628 | |||
28629 | |||
28630 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
28631 | { $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
28632 | $as_echo_n "checking for gssapi.h... " >&6; } | ||
28633 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
28634 | $as_echo_n "(cached) " >&6 | ||
28635 | fi | ||
28636 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
28637 | $as_echo "$ac_cv_header_gssapi_h" >&6; } | ||
28638 | else | ||
28639 | # Is the header compilable? | ||
28640 | { $as_echo "$as_me:$LINENO: checking gssapi.h usability" >&5 | ||
28641 | $as_echo_n "checking gssapi.h usability... " >&6; } | ||
28642 | cat >conftest.$ac_ext <<_ACEOF | ||
28643 | /* confdefs.h. */ | ||
28644 | _ACEOF | ||
28645 | cat confdefs.h >>conftest.$ac_ext | ||
28646 | cat >>conftest.$ac_ext <<_ACEOF | ||
28647 | /* end confdefs.h. */ | ||
28648 | $ac_includes_default | ||
28649 | #include <gssapi.h> | ||
28650 | _ACEOF | ||
28651 | rm -f conftest.$ac_objext | ||
28652 | if { (ac_try="$ac_compile" | ||
28653 | case "(($ac_try" in | ||
28654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28655 | *) ac_try_echo=$ac_try;; | ||
28656 | esac | ||
28657 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28658 | $as_echo "$ac_try_echo") >&5 | ||
28659 | (eval "$ac_compile") 2>conftest.er1 | ||
28660 | ac_status=$? | ||
28661 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28662 | rm -f conftest.er1 | ||
28663 | cat conftest.err >&5 | ||
28664 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28665 | (exit $ac_status); } && { | ||
28666 | test -z "$ac_c_werror_flag" || | ||
28667 | test ! -s conftest.err | ||
28668 | } && test -s conftest.$ac_objext; then | ||
28669 | ac_header_compiler=yes | ||
28670 | else | ||
28671 | $as_echo "$as_me: failed program was:" >&5 | ||
28672 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28673 | |||
28674 | ac_header_compiler=no | ||
28675 | fi | ||
28676 | |||
28677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28678 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28679 | $as_echo "$ac_header_compiler" >&6; } | ||
28680 | |||
28681 | # Is the header present? | ||
28682 | { $as_echo "$as_me:$LINENO: checking gssapi.h presence" >&5 | ||
28683 | $as_echo_n "checking gssapi.h presence... " >&6; } | ||
28684 | cat >conftest.$ac_ext <<_ACEOF | ||
28685 | /* confdefs.h. */ | ||
28686 | _ACEOF | ||
28687 | cat confdefs.h >>conftest.$ac_ext | ||
28688 | cat >>conftest.$ac_ext <<_ACEOF | ||
28689 | /* end confdefs.h. */ | ||
28690 | #include <gssapi.h> | ||
28691 | _ACEOF | ||
28692 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28693 | case "(($ac_try" in | ||
28694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28695 | *) ac_try_echo=$ac_try;; | ||
28696 | esac | ||
28697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28698 | $as_echo "$ac_try_echo") >&5 | ||
28699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28700 | ac_status=$? | ||
28701 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28702 | rm -f conftest.er1 | ||
28703 | cat conftest.err >&5 | ||
28704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28705 | (exit $ac_status); } >/dev/null && { | ||
28706 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28707 | test ! -s conftest.err | ||
28708 | }; then | ||
28709 | ac_header_preproc=yes | ||
28710 | else | ||
28711 | $as_echo "$as_me: failed program was:" >&5 | ||
28712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28713 | |||
28714 | ac_header_preproc=no | ||
28715 | fi | ||
28716 | |||
28717 | rm -f conftest.err conftest.$ac_ext | ||
28718 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28719 | $as_echo "$ac_header_preproc" >&6; } | ||
28720 | |||
28721 | # So? What about this header? | ||
28722 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28723 | yes:no: ) | ||
28724 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28725 | $as_echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28726 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5 | ||
28727 | $as_echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;} | ||
28728 | ac_header_preproc=yes | ||
28729 | ;; | ||
28730 | no:yes:* ) | ||
28731 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5 | ||
28732 | $as_echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;} | ||
28733 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5 | ||
28734 | $as_echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;} | ||
28735 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5 | ||
28736 | $as_echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;} | ||
28737 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
28738 | $as_echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28739 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5 | ||
28740 | $as_echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;} | ||
28741 | { $as_echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5 | ||
28742 | $as_echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;} | ||
28743 | ( cat <<\_ASBOX | ||
28744 | ## ------------------------------------------- ## | ||
28745 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28746 | ## ------------------------------------------- ## | ||
28747 | _ASBOX | ||
28748 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28749 | ;; | ||
28750 | esac | ||
28751 | { $as_echo "$as_me:$LINENO: checking for gssapi.h" >&5 | ||
28752 | $as_echo_n "checking for gssapi.h... " >&6; } | ||
28753 | if test "${ac_cv_header_gssapi_h+set}" = set; then | ||
28754 | $as_echo_n "(cached) " >&6 | ||
28755 | else | ||
28756 | ac_cv_header_gssapi_h=$ac_header_preproc | ||
28757 | fi | ||
28758 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5 | ||
28759 | $as_echo "$ac_cv_header_gssapi_h" >&6; } | ||
28760 | |||
28761 | fi | ||
28762 | if test $ac_cv_header_gssapi_h = yes; then | ||
28763 | : | ||
28764 | else | ||
28765 | unset ac_cv_header_gssapi_h | ||
28766 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
28767 | |||
28768 | for ac_header in gssapi.h | ||
28769 | do | ||
28770 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
28771 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28772 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28773 | $as_echo_n "checking for $ac_header... " >&6; } | ||
28774 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28775 | $as_echo_n "(cached) " >&6 | ||
28776 | fi | ||
28777 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
28778 | $as_echo "$as_val"'` | ||
28779 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28780 | $as_echo "$ac_res" >&6; } | ||
28781 | else | ||
28782 | # Is the header compilable? | ||
28783 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
28784 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
28785 | cat >conftest.$ac_ext <<_ACEOF | ||
28786 | /* confdefs.h. */ | ||
28787 | _ACEOF | ||
28788 | cat confdefs.h >>conftest.$ac_ext | ||
28789 | cat >>conftest.$ac_ext <<_ACEOF | ||
28790 | /* end confdefs.h. */ | ||
28791 | $ac_includes_default | ||
28792 | #include <$ac_header> | ||
28793 | _ACEOF | ||
28794 | rm -f conftest.$ac_objext | ||
28795 | if { (ac_try="$ac_compile" | ||
28796 | case "(($ac_try" in | ||
28797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28798 | *) ac_try_echo=$ac_try;; | ||
28799 | esac | ||
28800 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28801 | $as_echo "$ac_try_echo") >&5 | ||
28802 | (eval "$ac_compile") 2>conftest.er1 | ||
28803 | ac_status=$? | ||
28804 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28805 | rm -f conftest.er1 | ||
28806 | cat conftest.err >&5 | ||
28807 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28808 | (exit $ac_status); } && { | ||
28809 | test -z "$ac_c_werror_flag" || | ||
28810 | test ! -s conftest.err | ||
28811 | } && test -s conftest.$ac_objext; then | ||
28812 | ac_header_compiler=yes | ||
28813 | else | ||
28814 | $as_echo "$as_me: failed program was:" >&5 | ||
28815 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28816 | |||
28817 | ac_header_compiler=no | ||
28818 | fi | ||
28819 | |||
28820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28821 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28822 | $as_echo "$ac_header_compiler" >&6; } | ||
28823 | |||
28824 | # Is the header present? | ||
28825 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
28826 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
28827 | cat >conftest.$ac_ext <<_ACEOF | ||
28828 | /* confdefs.h. */ | ||
28829 | _ACEOF | ||
28830 | cat confdefs.h >>conftest.$ac_ext | ||
28831 | cat >>conftest.$ac_ext <<_ACEOF | ||
28832 | /* end confdefs.h. */ | ||
28833 | #include <$ac_header> | ||
28834 | _ACEOF | ||
28835 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28836 | case "(($ac_try" in | ||
28837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28838 | *) ac_try_echo=$ac_try;; | ||
28839 | esac | ||
28840 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28841 | $as_echo "$ac_try_echo") >&5 | ||
28842 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28843 | ac_status=$? | ||
28844 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28845 | rm -f conftest.er1 | ||
28846 | cat conftest.err >&5 | ||
28847 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28848 | (exit $ac_status); } >/dev/null && { | ||
28849 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
28850 | test ! -s conftest.err | ||
28851 | }; then | ||
28852 | ac_header_preproc=yes | ||
28853 | else | ||
28854 | $as_echo "$as_me: failed program was:" >&5 | ||
28855 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28856 | |||
28857 | ac_header_preproc=no | ||
28858 | fi | ||
28859 | |||
28860 | rm -f conftest.err conftest.$ac_ext | ||
28861 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
28862 | $as_echo "$ac_header_preproc" >&6; } | ||
28863 | |||
28864 | # So? What about this header? | ||
28865 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
28866 | yes:no: ) | ||
28867 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
28868 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
28869 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
28870 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
28871 | ac_header_preproc=yes | ||
28872 | ;; | ||
28873 | no:yes:* ) | ||
28874 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
28875 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
28876 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
28877 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
28878 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
28879 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
28880 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
28881 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
28882 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
28883 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
28884 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
28885 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
28886 | ( cat <<\_ASBOX | ||
28887 | ## ------------------------------------------- ## | ||
28888 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
28889 | ## ------------------------------------------- ## | ||
28890 | _ASBOX | ||
28891 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
28892 | ;; | ||
28893 | esac | ||
28894 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
28895 | $as_echo_n "checking for $ac_header... " >&6; } | ||
28896 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
28897 | $as_echo_n "(cached) " >&6 | ||
28898 | else | ||
28899 | eval "$as_ac_Header=\$ac_header_preproc" | ||
28900 | fi | ||
28901 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
28902 | $as_echo "$as_val"'` | ||
28903 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
28904 | $as_echo "$ac_res" >&6; } | ||
28905 | |||
28906 | fi | ||
28907 | if test `eval 'as_val=${'$as_ac_Header'} | ||
28908 | $as_echo "$as_val"'` = yes; then | ||
28909 | cat >>confdefs.h <<_ACEOF | ||
28910 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
28911 | _ACEOF | ||
28912 | |||
28913 | else | ||
28914 | { $as_echo "$as_me:$LINENO: WARNING: Cannot find any suitable gss-api header - build may fail" >&5 | ||
28915 | $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;} | ||
28916 | |||
28917 | fi | ||
28918 | |||
28919 | done | ||
28920 | |||
28921 | |||
28922 | |||
28923 | fi | ||
28924 | |||
28925 | |||
28926 | |||
28927 | oldCPP="$CPPFLAGS" | ||
28928 | CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi" | ||
28929 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
28930 | { $as_echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
28931 | $as_echo_n "checking for gssapi_krb5.h... " >&6; } | ||
28932 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
28933 | $as_echo_n "(cached) " >&6 | ||
28934 | fi | ||
28935 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
28936 | $as_echo "$ac_cv_header_gssapi_krb5_h" >&6; } | ||
28937 | else | ||
28938 | # Is the header compilable? | ||
28939 | { $as_echo "$as_me:$LINENO: checking gssapi_krb5.h usability" >&5 | ||
28940 | $as_echo_n "checking gssapi_krb5.h usability... " >&6; } | ||
28941 | cat >conftest.$ac_ext <<_ACEOF | ||
28942 | /* confdefs.h. */ | ||
28943 | _ACEOF | ||
28944 | cat confdefs.h >>conftest.$ac_ext | ||
28945 | cat >>conftest.$ac_ext <<_ACEOF | ||
28946 | /* end confdefs.h. */ | ||
28947 | $ac_includes_default | ||
28948 | #include <gssapi_krb5.h> | ||
28949 | _ACEOF | ||
28950 | rm -f conftest.$ac_objext | ||
28951 | if { (ac_try="$ac_compile" | ||
28952 | case "(($ac_try" in | ||
28953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28954 | *) ac_try_echo=$ac_try;; | ||
28955 | esac | ||
28956 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28957 | $as_echo "$ac_try_echo") >&5 | ||
28958 | (eval "$ac_compile") 2>conftest.er1 | ||
28959 | ac_status=$? | ||
28960 | grep -v '^ *+' conftest.er1 >conftest.err | ||
28961 | rm -f conftest.er1 | ||
28962 | cat conftest.err >&5 | ||
28963 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
28964 | (exit $ac_status); } && { | ||
28965 | test -z "$ac_c_werror_flag" || | ||
28966 | test ! -s conftest.err | ||
28967 | } && test -s conftest.$ac_objext; then | ||
28968 | ac_header_compiler=yes | ||
28969 | else | ||
28970 | $as_echo "$as_me: failed program was:" >&5 | ||
28971 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
28972 | |||
28973 | ac_header_compiler=no | ||
28974 | fi | ||
28975 | |||
28976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
28977 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
28978 | $as_echo "$ac_header_compiler" >&6; } | ||
28979 | |||
28980 | # Is the header present? | ||
28981 | { $as_echo "$as_me:$LINENO: checking gssapi_krb5.h presence" >&5 | ||
28982 | $as_echo_n "checking gssapi_krb5.h presence... " >&6; } | ||
28983 | cat >conftest.$ac_ext <<_ACEOF | ||
28984 | /* confdefs.h. */ | ||
28985 | _ACEOF | ||
28986 | cat confdefs.h >>conftest.$ac_ext | ||
28987 | cat >>conftest.$ac_ext <<_ACEOF | ||
28988 | /* end confdefs.h. */ | ||
28989 | #include <gssapi_krb5.h> | ||
28990 | _ACEOF | ||
28991 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
28992 | case "(($ac_try" in | ||
28993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
28994 | *) ac_try_echo=$ac_try;; | ||
28995 | esac | ||
28996 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
28997 | $as_echo "$ac_try_echo") >&5 | ||
28998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
28999 | ac_status=$? | ||
29000 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29001 | rm -f conftest.er1 | ||
29002 | cat conftest.err >&5 | ||
29003 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29004 | (exit $ac_status); } >/dev/null && { | ||
29005 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
29006 | test ! -s conftest.err | ||
29007 | }; then | ||
29008 | ac_header_preproc=yes | ||
29009 | else | ||
29010 | $as_echo "$as_me: failed program was:" >&5 | ||
29011 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29012 | |||
29013 | ac_header_preproc=no | ||
29014 | fi | ||
29015 | |||
29016 | rm -f conftest.err conftest.$ac_ext | ||
29017 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
29018 | $as_echo "$ac_header_preproc" >&6; } | ||
29019 | |||
29020 | # So? What about this header? | ||
29021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
29022 | yes:no: ) | ||
29023 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
29024 | $as_echo "$as_me: WARNING: gssapi_krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
29025 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&5 | ||
29026 | $as_echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the compiler's result" >&2;} | ||
29027 | ac_header_preproc=yes | ||
29028 | ;; | ||
29029 | no:yes:* ) | ||
29030 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: present but cannot be compiled" >&5 | ||
29031 | $as_echo "$as_me: WARNING: gssapi_krb5.h: present but cannot be compiled" >&2;} | ||
29032 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&5 | ||
29033 | $as_echo "$as_me: WARNING: gssapi_krb5.h: check for missing prerequisite headers?" >&2;} | ||
29034 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&5 | ||
29035 | $as_echo "$as_me: WARNING: gssapi_krb5.h: see the Autoconf documentation" >&2;} | ||
29036 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
29037 | $as_echo "$as_me: WARNING: gssapi_krb5.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
29038 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&5 | ||
29039 | $as_echo "$as_me: WARNING: gssapi_krb5.h: proceeding with the preprocessor's result" >&2;} | ||
29040 | { $as_echo "$as_me:$LINENO: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&5 | ||
29041 | $as_echo "$as_me: WARNING: gssapi_krb5.h: in the future, the compiler will take precedence" >&2;} | ||
29042 | ( cat <<\_ASBOX | ||
29043 | ## ------------------------------------------- ## | ||
29044 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
29045 | ## ------------------------------------------- ## | ||
29046 | _ASBOX | ||
29047 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
29048 | ;; | ||
29049 | esac | ||
29050 | { $as_echo "$as_me:$LINENO: checking for gssapi_krb5.h" >&5 | ||
29051 | $as_echo_n "checking for gssapi_krb5.h... " >&6; } | ||
29052 | if test "${ac_cv_header_gssapi_krb5_h+set}" = set; then | ||
29053 | $as_echo_n "(cached) " >&6 | ||
29054 | else | ||
29055 | ac_cv_header_gssapi_krb5_h=$ac_header_preproc | ||
29056 | fi | ||
29057 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_krb5_h" >&5 | ||
29058 | $as_echo "$ac_cv_header_gssapi_krb5_h" >&6; } | ||
29059 | |||
29060 | fi | ||
29061 | if test $ac_cv_header_gssapi_krb5_h = yes; then | ||
29062 | : | ||
29063 | else | ||
29064 | CPPFLAGS="$oldCPP" | ||
29065 | fi | ||
29066 | |||
29067 | |||
29068 | |||
29069 | fi | ||
29070 | if test ! -z "$need_dash_r" ; then | ||
29071 | LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib" | ||
29072 | fi | ||
29073 | if test ! -z "$blibpath" ; then | ||
29074 | blibpath="$blibpath:${KRB5ROOT}/lib" | ||
29075 | fi | ||
29076 | |||
29077 | |||
29078 | |||
29079 | for ac_header in gssapi.h gssapi/gssapi.h | ||
29080 | do | ||
29081 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
29082 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29083 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29084 | $as_echo_n "checking for $ac_header... " >&6; } | ||
29085 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29086 | $as_echo_n "(cached) " >&6 | ||
29087 | fi | ||
29088 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
29089 | $as_echo "$as_val"'` | ||
29090 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29091 | $as_echo "$ac_res" >&6; } | ||
29092 | else | ||
29093 | # Is the header compilable? | ||
29094 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
29095 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
29096 | cat >conftest.$ac_ext <<_ACEOF | ||
29097 | /* confdefs.h. */ | ||
29098 | _ACEOF | ||
29099 | cat confdefs.h >>conftest.$ac_ext | ||
29100 | cat >>conftest.$ac_ext <<_ACEOF | ||
29101 | /* end confdefs.h. */ | ||
29102 | $ac_includes_default | ||
29103 | #include <$ac_header> | ||
29104 | _ACEOF | ||
29105 | rm -f conftest.$ac_objext | ||
29106 | if { (ac_try="$ac_compile" | ||
29107 | case "(($ac_try" in | ||
29108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29109 | *) ac_try_echo=$ac_try;; | ||
29110 | esac | ||
29111 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29112 | $as_echo "$ac_try_echo") >&5 | ||
29113 | (eval "$ac_compile") 2>conftest.er1 | ||
29114 | ac_status=$? | ||
29115 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29116 | rm -f conftest.er1 | ||
29117 | cat conftest.err >&5 | ||
29118 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29119 | (exit $ac_status); } && { | ||
29120 | test -z "$ac_c_werror_flag" || | ||
29121 | test ! -s conftest.err | ||
29122 | } && test -s conftest.$ac_objext; then | ||
29123 | ac_header_compiler=yes | ||
29124 | else | ||
29125 | $as_echo "$as_me: failed program was:" >&5 | ||
29126 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29127 | |||
29128 | ac_header_compiler=no | ||
29129 | fi | ||
29130 | |||
29131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29132 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
29133 | $as_echo "$ac_header_compiler" >&6; } | ||
29134 | |||
29135 | # Is the header present? | ||
29136 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
29137 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
29138 | cat >conftest.$ac_ext <<_ACEOF | ||
29139 | /* confdefs.h. */ | ||
29140 | _ACEOF | ||
29141 | cat confdefs.h >>conftest.$ac_ext | ||
29142 | cat >>conftest.$ac_ext <<_ACEOF | ||
29143 | /* end confdefs.h. */ | ||
29144 | #include <$ac_header> | ||
29145 | _ACEOF | ||
29146 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
29147 | case "(($ac_try" in | ||
29148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29149 | *) ac_try_echo=$ac_try;; | ||
29150 | esac | ||
29151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29152 | $as_echo "$ac_try_echo") >&5 | ||
29153 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
29154 | ac_status=$? | ||
29155 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29156 | rm -f conftest.er1 | ||
29157 | cat conftest.err >&5 | ||
29158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29159 | (exit $ac_status); } >/dev/null && { | ||
29160 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
29161 | test ! -s conftest.err | ||
29162 | }; then | ||
29163 | ac_header_preproc=yes | ||
29164 | else | ||
29165 | $as_echo "$as_me: failed program was:" >&5 | ||
29166 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29167 | |||
29168 | ac_header_preproc=no | ||
29169 | fi | ||
29170 | |||
29171 | rm -f conftest.err conftest.$ac_ext | ||
29172 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
29173 | $as_echo "$ac_header_preproc" >&6; } | ||
29174 | |||
29175 | # So? What about this header? | ||
29176 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
29177 | yes:no: ) | ||
29178 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
29179 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
29180 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
29181 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
29182 | ac_header_preproc=yes | ||
29183 | ;; | ||
29184 | no:yes:* ) | ||
29185 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
29186 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
29187 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
29188 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
29189 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
29190 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
29191 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
29192 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
29193 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
29194 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
29195 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
29196 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
29197 | ( cat <<\_ASBOX | ||
29198 | ## ------------------------------------------- ## | ||
29199 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
29200 | ## ------------------------------------------- ## | ||
29201 | _ASBOX | ||
29202 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
29203 | ;; | ||
29204 | esac | ||
29205 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29206 | $as_echo_n "checking for $ac_header... " >&6; } | ||
29207 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29208 | $as_echo_n "(cached) " >&6 | ||
29209 | else | ||
29210 | eval "$as_ac_Header=\$ac_header_preproc" | ||
29211 | fi | ||
29212 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
29213 | $as_echo "$as_val"'` | ||
29214 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29215 | $as_echo "$ac_res" >&6; } | ||
29216 | |||
29217 | fi | ||
29218 | if test `eval 'as_val=${'$as_ac_Header'} | ||
29219 | $as_echo "$as_val"'` = yes; then | ||
29220 | cat >>confdefs.h <<_ACEOF | ||
29221 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
29222 | _ACEOF | ||
29223 | |||
29224 | fi | ||
29225 | |||
29226 | done | ||
29227 | |||
29228 | |||
29229 | |||
29230 | for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h | ||
29231 | do | ||
29232 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
29233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29234 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29235 | $as_echo_n "checking for $ac_header... " >&6; } | ||
29236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29237 | $as_echo_n "(cached) " >&6 | ||
29238 | fi | ||
29239 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
29240 | $as_echo "$as_val"'` | ||
29241 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29242 | $as_echo "$ac_res" >&6; } | ||
29243 | else | ||
29244 | # Is the header compilable? | ||
29245 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
29246 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
29247 | cat >conftest.$ac_ext <<_ACEOF | ||
29248 | /* confdefs.h. */ | ||
29249 | _ACEOF | ||
29250 | cat confdefs.h >>conftest.$ac_ext | ||
29251 | cat >>conftest.$ac_ext <<_ACEOF | ||
29252 | /* end confdefs.h. */ | ||
29253 | $ac_includes_default | ||
29254 | #include <$ac_header> | ||
29255 | _ACEOF | ||
29256 | rm -f conftest.$ac_objext | ||
29257 | if { (ac_try="$ac_compile" | ||
29258 | case "(($ac_try" in | ||
29259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29260 | *) ac_try_echo=$ac_try;; | ||
29261 | esac | ||
29262 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29263 | $as_echo "$ac_try_echo") >&5 | ||
29264 | (eval "$ac_compile") 2>conftest.er1 | ||
29265 | ac_status=$? | ||
29266 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29267 | rm -f conftest.er1 | ||
29268 | cat conftest.err >&5 | ||
29269 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29270 | (exit $ac_status); } && { | ||
29271 | test -z "$ac_c_werror_flag" || | ||
29272 | test ! -s conftest.err | ||
29273 | } && test -s conftest.$ac_objext; then | ||
29274 | ac_header_compiler=yes | ||
29275 | else | ||
29276 | $as_echo "$as_me: failed program was:" >&5 | ||
29277 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29278 | |||
29279 | ac_header_compiler=no | ||
29280 | fi | ||
29281 | |||
29282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29283 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
29284 | $as_echo "$ac_header_compiler" >&6; } | ||
29285 | |||
29286 | # Is the header present? | ||
29287 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
29288 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
29289 | cat >conftest.$ac_ext <<_ACEOF | ||
29290 | /* confdefs.h. */ | ||
29291 | _ACEOF | ||
29292 | cat confdefs.h >>conftest.$ac_ext | ||
29293 | cat >>conftest.$ac_ext <<_ACEOF | ||
29294 | /* end confdefs.h. */ | ||
29295 | #include <$ac_header> | ||
29296 | _ACEOF | ||
29297 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
29298 | case "(($ac_try" in | ||
29299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29300 | *) ac_try_echo=$ac_try;; | ||
29301 | esac | ||
29302 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29303 | $as_echo "$ac_try_echo") >&5 | ||
29304 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
29305 | ac_status=$? | ||
29306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29307 | rm -f conftest.er1 | ||
29308 | cat conftest.err >&5 | ||
29309 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29310 | (exit $ac_status); } >/dev/null && { | ||
29311 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
29312 | test ! -s conftest.err | ||
29313 | }; then | ||
29314 | ac_header_preproc=yes | ||
29315 | else | ||
29316 | $as_echo "$as_me: failed program was:" >&5 | ||
29317 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29318 | |||
29319 | ac_header_preproc=no | ||
29320 | fi | ||
29321 | |||
29322 | rm -f conftest.err conftest.$ac_ext | ||
29323 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
29324 | $as_echo "$ac_header_preproc" >&6; } | ||
29325 | |||
29326 | # So? What about this header? | ||
29327 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
29328 | yes:no: ) | ||
29329 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
29330 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
29331 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
29332 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
29333 | ac_header_preproc=yes | ||
29334 | ;; | ||
29335 | no:yes:* ) | ||
29336 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
29337 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
29338 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
29339 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
29340 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
29341 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
29342 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
29343 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
29344 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
29345 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
29346 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
29347 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
29348 | ( cat <<\_ASBOX | ||
29349 | ## ------------------------------------------- ## | ||
29350 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
29351 | ## ------------------------------------------- ## | ||
29352 | _ASBOX | ||
29353 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
29354 | ;; | ||
29355 | esac | ||
29356 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29357 | $as_echo_n "checking for $ac_header... " >&6; } | ||
29358 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29359 | $as_echo_n "(cached) " >&6 | ||
29360 | else | ||
29361 | eval "$as_ac_Header=\$ac_header_preproc" | ||
29362 | fi | ||
29363 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
29364 | $as_echo "$as_val"'` | ||
29365 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29366 | $as_echo "$ac_res" >&6; } | ||
29367 | |||
29368 | fi | ||
29369 | if test `eval 'as_val=${'$as_ac_Header'} | ||
29370 | $as_echo "$as_val"'` = yes; then | ||
29371 | cat >>confdefs.h <<_ACEOF | ||
29372 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
29373 | _ACEOF | ||
29374 | |||
29375 | fi | ||
29376 | |||
29377 | done | ||
29378 | |||
29379 | |||
29380 | |||
29381 | for ac_header in gssapi_generic.h gssapi/gssapi_generic.h | ||
29382 | do | ||
29383 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
29384 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29385 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29386 | $as_echo_n "checking for $ac_header... " >&6; } | ||
29387 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29388 | $as_echo_n "(cached) " >&6 | ||
29389 | fi | ||
29390 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
29391 | $as_echo "$as_val"'` | ||
29392 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29393 | $as_echo "$ac_res" >&6; } | ||
29394 | else | ||
29395 | # Is the header compilable? | ||
29396 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
29397 | $as_echo_n "checking $ac_header usability... " >&6; } | ||
29398 | cat >conftest.$ac_ext <<_ACEOF | ||
29399 | /* confdefs.h. */ | ||
29400 | _ACEOF | ||
29401 | cat confdefs.h >>conftest.$ac_ext | ||
29402 | cat >>conftest.$ac_ext <<_ACEOF | ||
29403 | /* end confdefs.h. */ | ||
29404 | $ac_includes_default | ||
29405 | #include <$ac_header> | ||
29406 | _ACEOF | ||
29407 | rm -f conftest.$ac_objext | ||
29408 | if { (ac_try="$ac_compile" | ||
29409 | case "(($ac_try" in | ||
29410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29411 | *) ac_try_echo=$ac_try;; | ||
29412 | esac | ||
29413 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29414 | $as_echo "$ac_try_echo") >&5 | ||
29415 | (eval "$ac_compile") 2>conftest.er1 | ||
29416 | ac_status=$? | ||
29417 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29418 | rm -f conftest.er1 | ||
29419 | cat conftest.err >&5 | ||
29420 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29421 | (exit $ac_status); } && { | ||
29422 | test -z "$ac_c_werror_flag" || | ||
29423 | test ! -s conftest.err | ||
29424 | } && test -s conftest.$ac_objext; then | ||
29425 | ac_header_compiler=yes | ||
29426 | else | ||
29427 | $as_echo "$as_me: failed program was:" >&5 | ||
29428 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29429 | |||
29430 | ac_header_compiler=no | ||
29431 | fi | ||
29432 | |||
29433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29434 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
29435 | $as_echo "$ac_header_compiler" >&6; } | ||
29436 | |||
29437 | # Is the header present? | ||
29438 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
29439 | $as_echo_n "checking $ac_header presence... " >&6; } | ||
29440 | cat >conftest.$ac_ext <<_ACEOF | ||
29441 | /* confdefs.h. */ | ||
29442 | _ACEOF | ||
29443 | cat confdefs.h >>conftest.$ac_ext | ||
29444 | cat >>conftest.$ac_ext <<_ACEOF | ||
29445 | /* end confdefs.h. */ | ||
29446 | #include <$ac_header> | ||
29447 | _ACEOF | ||
29448 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
29449 | case "(($ac_try" in | ||
29450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29451 | *) ac_try_echo=$ac_try;; | ||
29452 | esac | ||
29453 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29454 | $as_echo "$ac_try_echo") >&5 | ||
29455 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
29456 | ac_status=$? | ||
29457 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29458 | rm -f conftest.er1 | ||
29459 | cat conftest.err >&5 | ||
29460 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29461 | (exit $ac_status); } >/dev/null && { | ||
29462 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
29463 | test ! -s conftest.err | ||
29464 | }; then | ||
29465 | ac_header_preproc=yes | ||
29466 | else | ||
29467 | $as_echo "$as_me: failed program was:" >&5 | ||
29468 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29469 | |||
29470 | ac_header_preproc=no | ||
29471 | fi | ||
29472 | |||
29473 | rm -f conftest.err conftest.$ac_ext | ||
29474 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
29475 | $as_echo "$ac_header_preproc" >&6; } | ||
29476 | |||
29477 | # So? What about this header? | ||
29478 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
29479 | yes:no: ) | ||
29480 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
29481 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
29482 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
29483 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
29484 | ac_header_preproc=yes | ||
29485 | ;; | ||
29486 | no:yes:* ) | ||
29487 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
29488 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
29489 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
29490 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
29491 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
29492 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
29493 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
29494 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
29495 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
29496 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
29497 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
29498 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
29499 | ( cat <<\_ASBOX | ||
29500 | ## ------------------------------------------- ## | ||
29501 | ## Report this to openssh-unix-dev@mindrot.org ## | ||
29502 | ## ------------------------------------------- ## | ||
29503 | _ASBOX | ||
29504 | ) | sed "s/^/$as_me: WARNING: /" >&2 | ||
29505 | ;; | ||
29506 | esac | ||
29507 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
29508 | $as_echo_n "checking for $ac_header... " >&6; } | ||
29509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
29510 | $as_echo_n "(cached) " >&6 | ||
29511 | else | ||
29512 | eval "$as_ac_Header=\$ac_header_preproc" | ||
29513 | fi | ||
29514 | ac_res=`eval 'as_val=${'$as_ac_Header'} | ||
29515 | $as_echo "$as_val"'` | ||
29516 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
29517 | $as_echo "$ac_res" >&6; } | ||
29518 | |||
29519 | fi | ||
29520 | if test `eval 'as_val=${'$as_ac_Header'} | ||
29521 | $as_echo "$as_val"'` = yes; then | ||
29522 | cat >>confdefs.h <<_ACEOF | ||
29523 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
29524 | _ACEOF | ||
29525 | |||
29526 | fi | ||
29527 | |||
29528 | done | ||
29529 | |||
29530 | |||
29531 | LIBS="$LIBS $K5LIBS" | ||
29532 | { $as_echo "$as_me:$LINENO: checking for library containing k_hasafs" >&5 | ||
29533 | $as_echo_n "checking for library containing k_hasafs... " >&6; } | ||
29534 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
29535 | $as_echo_n "(cached) " >&6 | ||
29536 | else | ||
29537 | ac_func_search_save_LIBS=$LIBS | ||
29538 | cat >conftest.$ac_ext <<_ACEOF | ||
29539 | /* confdefs.h. */ | ||
29540 | _ACEOF | ||
29541 | cat confdefs.h >>conftest.$ac_ext | ||
29542 | cat >>conftest.$ac_ext <<_ACEOF | ||
29543 | /* end confdefs.h. */ | ||
29544 | |||
29545 | /* Override any GCC internal prototype to avoid an error. | ||
29546 | Use char because int might match the return type of a GCC | ||
29547 | builtin and then its argument prototype would still apply. */ | ||
29548 | #ifdef __cplusplus | ||
29549 | extern "C" | ||
29550 | #endif | ||
29551 | char k_hasafs (); | ||
29552 | int | ||
29553 | main () | ||
29554 | { | ||
29555 | return k_hasafs (); | ||
29556 | ; | ||
29557 | return 0; | ||
29558 | } | ||
29559 | _ACEOF | ||
29560 | for ac_lib in '' kafs; do | ||
29561 | if test -z "$ac_lib"; then | ||
29562 | ac_res="none required" | ||
29563 | else | ||
29564 | ac_res=-l$ac_lib | ||
29565 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
29566 | fi | ||
29567 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
29568 | if { (ac_try="$ac_link" | ||
29569 | case "(($ac_try" in | ||
29570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29571 | *) ac_try_echo=$ac_try;; | ||
29572 | esac | ||
29573 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29574 | $as_echo "$ac_try_echo") >&5 | ||
29575 | (eval "$ac_link") 2>conftest.er1 | ||
29576 | ac_status=$? | ||
29577 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29578 | rm -f conftest.er1 | ||
29579 | cat conftest.err >&5 | ||
29580 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29581 | (exit $ac_status); } && { | ||
29582 | test -z "$ac_c_werror_flag" || | ||
29583 | test ! -s conftest.err | ||
29584 | } && test -s conftest$ac_exeext && { | ||
29585 | test "$cross_compiling" = yes || | ||
29586 | $as_test_x conftest$ac_exeext | ||
29587 | }; then | ||
29588 | ac_cv_search_k_hasafs=$ac_res | ||
29589 | else | ||
29590 | $as_echo "$as_me: failed program was:" >&5 | ||
29591 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29592 | |||
29593 | |||
29594 | fi | ||
29595 | |||
29596 | rm -rf conftest.dSYM | ||
29597 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
29598 | conftest$ac_exeext | ||
29599 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
29600 | break | ||
29601 | fi | ||
29602 | done | ||
29603 | if test "${ac_cv_search_k_hasafs+set}" = set; then | ||
29604 | : | ||
29605 | else | ||
29606 | ac_cv_search_k_hasafs=no | ||
29607 | fi | ||
29608 | rm conftest.$ac_ext | ||
29609 | LIBS=$ac_func_search_save_LIBS | ||
29610 | fi | ||
29611 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_k_hasafs" >&5 | ||
29612 | $as_echo "$ac_cv_search_k_hasafs" >&6; } | ||
29613 | ac_res=$ac_cv_search_k_hasafs | ||
29614 | if test "$ac_res" != no; then | ||
29615 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
29616 | |||
29617 | cat >>confdefs.h <<\_ACEOF | ||
29618 | #define USE_AFS 1 | ||
29619 | _ACEOF | ||
29620 | |||
29621 | fi | ||
29622 | |||
29623 | fi | ||
29624 | |||
29625 | |||
29626 | fi | ||
29627 | |||
29628 | |||
29629 | # Looking for programs, paths and files | ||
29630 | |||
29631 | PRIVSEP_PATH=/var/empty | ||
29632 | |||
29633 | # Check whether --with-privsep-path was given. | ||
29634 | if test "${with_privsep_path+set}" = set; then | ||
29635 | withval=$with_privsep_path; | ||
29636 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
29637 | test "x${withval}" != "xyes"; then | ||
29638 | PRIVSEP_PATH=$withval | ||
29639 | fi | ||
29640 | |||
29641 | |||
29642 | fi | ||
29643 | |||
29644 | |||
29645 | |||
29646 | |||
29647 | # Check whether --with-xauth was given. | ||
29648 | if test "${with_xauth+set}" = set; then | ||
29649 | withval=$with_xauth; | ||
29650 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
29651 | test "x${withval}" != "xyes"; then | ||
29652 | xauth_path=$withval | ||
29653 | fi | ||
29654 | |||
29655 | else | ||
29656 | |||
29657 | TestPath="$PATH" | ||
29658 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin" | ||
29659 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11" | ||
29660 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin" | ||
29661 | TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin" | ||
29662 | # Extract the first word of "xauth", so it can be a program name with args. | ||
29663 | set dummy xauth; ac_word=$2 | ||
29664 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
29665 | $as_echo_n "checking for $ac_word... " >&6; } | ||
29666 | if test "${ac_cv_path_xauth_path+set}" = set; then | ||
29667 | $as_echo_n "(cached) " >&6 | ||
29668 | else | ||
29669 | case $xauth_path in | ||
29670 | [\\/]* | ?:[\\/]*) | ||
29671 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
29672 | ;; | ||
29673 | *) | ||
29674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29675 | for as_dir in $TestPath | ||
29676 | do | ||
29677 | IFS=$as_save_IFS | ||
29678 | test -z "$as_dir" && as_dir=. | ||
29679 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
29680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
29681 | ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext" | ||
29682 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
29683 | break 2 | ||
29684 | fi | ||
29685 | done | ||
29686 | done | ||
29687 | IFS=$as_save_IFS | ||
29688 | |||
29689 | ;; | ||
29690 | esac | ||
29691 | fi | ||
29692 | xauth_path=$ac_cv_path_xauth_path | ||
29693 | if test -n "$xauth_path"; then | ||
29694 | { $as_echo "$as_me:$LINENO: result: $xauth_path" >&5 | ||
29695 | $as_echo "$xauth_path" >&6; } | ||
29696 | else | ||
29697 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
29698 | $as_echo "no" >&6; } | ||
29699 | fi | ||
29700 | |||
29701 | |||
29702 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
29703 | xauth_path="/usr/openwin/bin/xauth" | ||
29704 | fi | ||
29705 | |||
29706 | |||
29707 | fi | ||
29708 | |||
29709 | |||
29710 | STRIP_OPT=-s | ||
29711 | # Check whether --enable-strip was given. | ||
29712 | if test "${enable_strip+set}" = set; then | ||
29713 | enableval=$enable_strip; | ||
29714 | if test "x$enableval" = "xno" ; then | ||
29715 | STRIP_OPT= | ||
29716 | fi | ||
29717 | |||
29718 | |||
29719 | fi | ||
29720 | |||
29721 | |||
29722 | |||
29723 | if test -z "$xauth_path" ; then | ||
29724 | XAUTH_PATH="undefined" | ||
29725 | |||
29726 | else | ||
29727 | |||
29728 | cat >>confdefs.h <<_ACEOF | ||
29729 | #define XAUTH_PATH "$xauth_path" | ||
29730 | _ACEOF | ||
29731 | |||
29732 | XAUTH_PATH=$xauth_path | ||
29733 | |||
29734 | fi | ||
29735 | |||
29736 | # Check for mail directory (last resort if we cannot get it from headers) | ||
29737 | if test ! -z "$MAIL" ; then | ||
29738 | maildir=`dirname $MAIL` | ||
29739 | |||
29740 | cat >>confdefs.h <<_ACEOF | ||
29741 | #define MAIL_DIRECTORY "$maildir" | ||
29742 | _ACEOF | ||
29743 | |||
29744 | fi | ||
29745 | |||
29746 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then | ||
29747 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptmx test" >&5 | ||
29748 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;} | ||
29749 | disable_ptmx_check=yes | ||
29750 | fi | ||
29751 | if test -z "$no_dev_ptmx" ; then | ||
29752 | if test "x$disable_ptmx_check" != "xyes" ; then | ||
29753 | { $as_echo "$as_me:$LINENO: checking for \"/dev/ptmx\"" >&5 | ||
29754 | $as_echo_n "checking for \"/dev/ptmx\"... " >&6; } | ||
29755 | if test "${ac_cv_file___dev_ptmx_+set}" = set; then | ||
29756 | $as_echo_n "(cached) " >&6 | ||
29757 | else | ||
29758 | test "$cross_compiling" = yes && | ||
29759 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
29760 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
29761 | { (exit 1); exit 1; }; } | ||
29762 | if test -r ""/dev/ptmx""; then | ||
29763 | ac_cv_file___dev_ptmx_=yes | ||
29764 | else | ||
29765 | ac_cv_file___dev_ptmx_=no | ||
29766 | fi | ||
29767 | fi | ||
29768 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptmx_" >&5 | ||
29769 | $as_echo "$ac_cv_file___dev_ptmx_" >&6; } | ||
29770 | if test $ac_cv_file___dev_ptmx_ = yes; then | ||
29771 | |||
29772 | |||
29773 | cat >>confdefs.h <<_ACEOF | ||
29774 | #define HAVE_DEV_PTMX 1 | ||
29775 | _ACEOF | ||
29776 | |||
29777 | have_dev_ptmx=1 | ||
29778 | |||
29779 | |||
29780 | fi | ||
29781 | |||
29782 | fi | ||
29783 | fi | ||
29784 | |||
29785 | if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then | ||
29786 | { $as_echo "$as_me:$LINENO: checking for \"/dev/ptc\"" >&5 | ||
29787 | $as_echo_n "checking for \"/dev/ptc\"... " >&6; } | ||
29788 | if test "${ac_cv_file___dev_ptc_+set}" = set; then | ||
29789 | $as_echo_n "(cached) " >&6 | ||
29790 | else | ||
29791 | test "$cross_compiling" = yes && | ||
29792 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
29793 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
29794 | { (exit 1); exit 1; }; } | ||
29795 | if test -r ""/dev/ptc""; then | ||
29796 | ac_cv_file___dev_ptc_=yes | ||
29797 | else | ||
29798 | ac_cv_file___dev_ptc_=no | ||
29799 | fi | ||
29800 | fi | ||
29801 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file___dev_ptc_" >&5 | ||
29802 | $as_echo "$ac_cv_file___dev_ptc_" >&6; } | ||
29803 | if test $ac_cv_file___dev_ptc_ = yes; then | ||
29804 | |||
29805 | |||
29806 | cat >>confdefs.h <<_ACEOF | ||
29807 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
29808 | _ACEOF | ||
29809 | |||
29810 | have_dev_ptc=1 | ||
29811 | |||
29812 | |||
29813 | fi | ||
29814 | |||
29815 | else | ||
29816 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: Disabling /dev/ptc test" >&5 | ||
29817 | $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;} | ||
29818 | fi | ||
29819 | |||
29820 | # Options from here on. Some of these are preset by platform above | ||
29821 | |||
29822 | # Check whether --with-mantype was given. | ||
29823 | if test "${with_mantype+set}" = set; then | ||
29824 | withval=$with_mantype; | ||
29825 | case "$withval" in | ||
29826 | man|cat|doc) | ||
29827 | MANTYPE=$withval | ||
29828 | ;; | ||
29829 | *) | ||
29830 | { { $as_echo "$as_me:$LINENO: error: invalid man type: $withval" >&5 | ||
29831 | $as_echo "$as_me: error: invalid man type: $withval" >&2;} | ||
29832 | { (exit 1); exit 1; }; } | ||
29833 | ;; | ||
29834 | esac | ||
29835 | |||
29836 | |||
29837 | fi | ||
29838 | |||
29839 | if test -z "$MANTYPE"; then | ||
29840 | TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" | ||
29841 | for ac_prog in nroff awf | ||
29842 | do | ||
29843 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
29844 | set dummy $ac_prog; ac_word=$2 | ||
29845 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
29846 | $as_echo_n "checking for $ac_word... " >&6; } | ||
29847 | if test "${ac_cv_path_NROFF+set}" = set; then | ||
29848 | $as_echo_n "(cached) " >&6 | ||
29849 | else | ||
29850 | case $NROFF in | ||
29851 | [\\/]* | ?:[\\/]*) | ||
29852 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
29853 | ;; | ||
29854 | *) | ||
29855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
29856 | for as_dir in $TestPath | ||
29857 | do | ||
29858 | IFS=$as_save_IFS | ||
29859 | test -z "$as_dir" && as_dir=. | ||
29860 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
29861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
29862 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" | ||
29863 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
29864 | break 2 | ||
29865 | fi | ||
29866 | done | ||
29867 | done | ||
29868 | IFS=$as_save_IFS | ||
29869 | |||
29870 | ;; | ||
29871 | esac | ||
29872 | fi | ||
29873 | NROFF=$ac_cv_path_NROFF | ||
29874 | if test -n "$NROFF"; then | ||
29875 | { $as_echo "$as_me:$LINENO: result: $NROFF" >&5 | ||
29876 | $as_echo "$NROFF" >&6; } | ||
29877 | else | ||
29878 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
29879 | $as_echo "no" >&6; } | ||
29880 | fi | ||
29881 | |||
29882 | |||
29883 | test -n "$NROFF" && break | ||
29884 | done | ||
29885 | test -n "$NROFF" || NROFF="/bin/false" | ||
29886 | |||
29887 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
29888 | MANTYPE=doc | ||
29889 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
29890 | MANTYPE=man | ||
29891 | else | ||
29892 | MANTYPE=cat | ||
29893 | fi | ||
29894 | fi | ||
29895 | |||
29896 | if test "$MANTYPE" = "doc"; then | ||
29897 | mansubdir=man; | ||
29898 | else | ||
29899 | mansubdir=$MANTYPE; | ||
29900 | fi | ||
29901 | |||
29902 | |||
29903 | # Check whether to enable MD5 passwords | ||
29904 | MD5_MSG="no" | ||
29905 | |||
29906 | # Check whether --with-md5-passwords was given. | ||
29907 | if test "${with_md5_passwords+set}" = set; then | ||
29908 | withval=$with_md5_passwords; | ||
29909 | if test "x$withval" != "xno" ; then | ||
29910 | |||
29911 | cat >>confdefs.h <<\_ACEOF | ||
29912 | #define HAVE_MD5_PASSWORDS 1 | ||
29913 | _ACEOF | ||
29914 | |||
29915 | MD5_MSG="yes" | ||
29916 | fi | ||
29917 | |||
29918 | |||
29919 | fi | ||
29920 | |||
29921 | |||
29922 | # Whether to disable shadow password support | ||
29923 | |||
29924 | # Check whether --with-shadow was given. | ||
29925 | if test "${with_shadow+set}" = set; then | ||
29926 | withval=$with_shadow; | ||
29927 | if test "x$withval" = "xno" ; then | ||
29928 | cat >>confdefs.h <<\_ACEOF | ||
29929 | #define DISABLE_SHADOW 1 | ||
29930 | _ACEOF | ||
29931 | |||
29932 | disable_shadow=yes | ||
29933 | fi | ||
29934 | |||
29935 | |||
29936 | fi | ||
29937 | |||
29938 | |||
29939 | if test -z "$disable_shadow" ; then | ||
29940 | { $as_echo "$as_me:$LINENO: checking if the systems has expire shadow information" >&5 | ||
29941 | $as_echo_n "checking if the systems has expire shadow information... " >&6; } | ||
29942 | cat >conftest.$ac_ext <<_ACEOF | ||
29943 | /* confdefs.h. */ | ||
29944 | _ACEOF | ||
29945 | cat confdefs.h >>conftest.$ac_ext | ||
29946 | cat >>conftest.$ac_ext <<_ACEOF | ||
29947 | /* end confdefs.h. */ | ||
29948 | |||
29949 | #include <sys/types.h> | ||
29950 | #include <shadow.h> | ||
29951 | struct spwd sp; | ||
29952 | |||
29953 | int | ||
29954 | main () | ||
29955 | { | ||
29956 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
29957 | ; | ||
29958 | return 0; | ||
29959 | } | ||
29960 | _ACEOF | ||
29961 | rm -f conftest.$ac_objext | ||
29962 | if { (ac_try="$ac_compile" | ||
29963 | case "(($ac_try" in | ||
29964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
29965 | *) ac_try_echo=$ac_try;; | ||
29966 | esac | ||
29967 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
29968 | $as_echo "$ac_try_echo") >&5 | ||
29969 | (eval "$ac_compile") 2>conftest.er1 | ||
29970 | ac_status=$? | ||
29971 | grep -v '^ *+' conftest.er1 >conftest.err | ||
29972 | rm -f conftest.er1 | ||
29973 | cat conftest.err >&5 | ||
29974 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
29975 | (exit $ac_status); } && { | ||
29976 | test -z "$ac_c_werror_flag" || | ||
29977 | test ! -s conftest.err | ||
29978 | } && test -s conftest.$ac_objext; then | ||
29979 | sp_expire_available=yes | ||
29980 | else | ||
29981 | $as_echo "$as_me: failed program was:" >&5 | ||
29982 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
29983 | |||
29984 | |||
29985 | |||
29986 | fi | ||
29987 | |||
29988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
29989 | |||
29990 | if test "x$sp_expire_available" = "xyes" ; then | ||
29991 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
29992 | $as_echo "yes" >&6; } | ||
29993 | |||
29994 | cat >>confdefs.h <<\_ACEOF | ||
29995 | #define HAS_SHADOW_EXPIRE 1 | ||
29996 | _ACEOF | ||
29997 | |||
29998 | else | ||
29999 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30000 | $as_echo "no" >&6; } | ||
30001 | fi | ||
30002 | fi | ||
30003 | |||
30004 | # Use ip address instead of hostname in $DISPLAY | ||
30005 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
30006 | DISPLAY_HACK_MSG="yes" | ||
30007 | |||
30008 | cat >>confdefs.h <<\_ACEOF | ||
30009 | #define IPADDR_IN_DISPLAY 1 | ||
30010 | _ACEOF | ||
30011 | |||
30012 | else | ||
30013 | DISPLAY_HACK_MSG="no" | ||
30014 | |||
30015 | # Check whether --with-ipaddr-display was given. | ||
30016 | if test "${with_ipaddr_display+set}" = set; then | ||
30017 | withval=$with_ipaddr_display; | ||
30018 | if test "x$withval" != "xno" ; then | ||
30019 | cat >>confdefs.h <<\_ACEOF | ||
30020 | #define IPADDR_IN_DISPLAY 1 | ||
30021 | _ACEOF | ||
30022 | |||
30023 | DISPLAY_HACK_MSG="yes" | ||
30024 | fi | ||
30025 | |||
30026 | |||
30027 | fi | ||
30028 | |||
30029 | fi | ||
30030 | |||
30031 | # check for /etc/default/login and use it if present. | ||
30032 | # Check whether --enable-etc-default-login was given. | ||
30033 | if test "${enable_etc_default_login+set}" = set; then | ||
30034 | enableval=$enable_etc_default_login; if test "x$enableval" = "xno"; then | ||
30035 | { $as_echo "$as_me:$LINENO: /etc/default/login handling disabled" >&5 | ||
30036 | $as_echo "$as_me: /etc/default/login handling disabled" >&6;} | ||
30037 | etc_default_login=no | ||
30038 | else | ||
30039 | etc_default_login=yes | ||
30040 | fi | ||
30041 | else | ||
30042 | if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; | ||
30043 | then | ||
30044 | { $as_echo "$as_me:$LINENO: WARNING: cross compiling: not checking /etc/default/login" >&5 | ||
30045 | $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;} | ||
30046 | etc_default_login=no | ||
30047 | else | ||
30048 | etc_default_login=yes | ||
30049 | fi | ||
30050 | |||
30051 | fi | ||
30052 | |||
30053 | |||
30054 | if test "x$etc_default_login" != "xno"; then | ||
30055 | { $as_echo "$as_me:$LINENO: checking for \"/etc/default/login\"" >&5 | ||
30056 | $as_echo_n "checking for \"/etc/default/login\"... " >&6; } | ||
30057 | if test "${ac_cv_file___etc_default_login_+set}" = set; then | ||
30058 | $as_echo_n "(cached) " >&6 | ||
30059 | else | ||
30060 | test "$cross_compiling" = yes && | ||
30061 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 | ||
30062 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} | ||
30063 | { (exit 1); exit 1; }; } | ||
30064 | if test -r ""/etc/default/login""; then | ||
30065 | ac_cv_file___etc_default_login_=yes | ||
30066 | else | ||
30067 | ac_cv_file___etc_default_login_=no | ||
30068 | fi | ||
30069 | fi | ||
30070 | { $as_echo "$as_me:$LINENO: result: $ac_cv_file___etc_default_login_" >&5 | ||
30071 | $as_echo "$ac_cv_file___etc_default_login_" >&6; } | ||
30072 | if test $ac_cv_file___etc_default_login_ = yes; then | ||
30073 | external_path_file=/etc/default/login | ||
30074 | fi | ||
30075 | |||
30076 | if test "x$external_path_file" = "x/etc/default/login"; then | ||
30077 | |||
30078 | cat >>confdefs.h <<\_ACEOF | ||
30079 | #define HAVE_ETC_DEFAULT_LOGIN 1 | ||
30080 | _ACEOF | ||
30081 | |||
30082 | fi | ||
30083 | fi | ||
30084 | |||
30085 | if test $ac_cv_func_login_getcapbool = "yes" && \ | ||
30086 | test $ac_cv_header_login_cap_h = "yes" ; then | ||
30087 | external_path_file=/etc/login.conf | ||
30088 | fi | ||
30089 | |||
30090 | # Whether to mess with the default path | ||
30091 | SERVER_PATH_MSG="(default)" | ||
30092 | |||
30093 | # Check whether --with-default-path was given. | ||
30094 | if test "${with_default_path+set}" = set; then | ||
30095 | withval=$with_default_path; | ||
30096 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
30097 | { $as_echo "$as_me:$LINENO: WARNING: | ||
30098 | --with-default-path=PATH has no effect on this system. | ||
30099 | Edit /etc/login.conf instead." >&5 | ||
30100 | $as_echo "$as_me: WARNING: | ||
30101 | --with-default-path=PATH has no effect on this system. | ||
30102 | Edit /etc/login.conf instead." >&2;} | ||
30103 | elif test "x$withval" != "xno" ; then | ||
30104 | if test ! -z "$external_path_file" ; then | ||
30105 | { $as_echo "$as_me:$LINENO: WARNING: | ||
30106 | --with-default-path=PATH will only be used if PATH is not defined in | ||
30107 | $external_path_file ." >&5 | ||
30108 | $as_echo "$as_me: WARNING: | ||
30109 | --with-default-path=PATH will only be used if PATH is not defined in | ||
30110 | $external_path_file ." >&2;} | ||
30111 | fi | ||
30112 | user_path="$withval" | ||
30113 | SERVER_PATH_MSG="$withval" | ||
30114 | fi | ||
30115 | |||
30116 | else | ||
30117 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
30118 | { $as_echo "$as_me:$LINENO: WARNING: Make sure the path to scp is in /etc/login.conf" >&5 | ||
30119 | $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;} | ||
30120 | else | ||
30121 | if test ! -z "$external_path_file" ; then | ||
30122 | { $as_echo "$as_me:$LINENO: WARNING: | ||
30123 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
30124 | otherwise scp will not work." >&5 | ||
30125 | $as_echo "$as_me: WARNING: | ||
30126 | If PATH is defined in $external_path_file, ensure the path to scp is included, | ||
30127 | otherwise scp will not work." >&2;} | ||
30128 | fi | ||
30129 | if test "$cross_compiling" = yes; then | ||
30130 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
30131 | |||
30132 | else | ||
30133 | cat >conftest.$ac_ext <<_ACEOF | ||
30134 | /* confdefs.h. */ | ||
30135 | _ACEOF | ||
30136 | cat confdefs.h >>conftest.$ac_ext | ||
30137 | cat >>conftest.$ac_ext <<_ACEOF | ||
30138 | /* end confdefs.h. */ | ||
30139 | |||
30140 | /* find out what STDPATH is */ | ||
30141 | #include <stdio.h> | ||
30142 | #ifdef HAVE_PATHS_H | ||
30143 | # include <paths.h> | ||
30144 | #endif | ||
30145 | #ifndef _PATH_STDPATH | ||
30146 | # ifdef _PATH_USERPATH /* Irix */ | ||
30147 | # define _PATH_STDPATH _PATH_USERPATH | ||
30148 | # else | ||
30149 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
30150 | # endif | ||
30151 | #endif | ||
30152 | #include <sys/types.h> | ||
30153 | #include <sys/stat.h> | ||
30154 | #include <fcntl.h> | ||
30155 | #define DATA "conftest.stdpath" | ||
30156 | |||
30157 | main() | ||
30158 | { | ||
30159 | FILE *fd; | ||
30160 | int rc; | ||
30161 | |||
30162 | fd = fopen(DATA,"w"); | ||
30163 | if(fd == NULL) | ||
30164 | exit(1); | ||
30165 | |||
30166 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
30167 | exit(1); | ||
30168 | |||
30169 | exit(0); | ||
30170 | } | ||
30171 | |||
30172 | _ACEOF | ||
30173 | rm -f conftest$ac_exeext | ||
30174 | if { (ac_try="$ac_link" | ||
30175 | case "(($ac_try" in | ||
30176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30177 | *) ac_try_echo=$ac_try;; | ||
30178 | esac | ||
30179 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30180 | $as_echo "$ac_try_echo") >&5 | ||
30181 | (eval "$ac_link") 2>&5 | ||
30182 | ac_status=$? | ||
30183 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30184 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
30185 | { (case "(($ac_try" in | ||
30186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30187 | *) ac_try_echo=$ac_try;; | ||
30188 | esac | ||
30189 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30190 | $as_echo "$ac_try_echo") >&5 | ||
30191 | (eval "$ac_try") 2>&5 | ||
30192 | ac_status=$? | ||
30193 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30194 | (exit $ac_status); }; }; then | ||
30195 | user_path=`cat conftest.stdpath` | ||
30196 | else | ||
30197 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
30198 | $as_echo "$as_me: failed program was:" >&5 | ||
30199 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30200 | |||
30201 | ( exit $ac_status ) | ||
30202 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
30203 | fi | ||
30204 | rm -rf conftest.dSYM | ||
30205 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
30206 | fi | ||
30207 | |||
30208 | |||
30209 | # make sure $bindir is in USER_PATH so scp will work | ||
30210 | t_bindir=`eval echo ${bindir}` | ||
30211 | case $t_bindir in | ||
30212 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
30213 | esac | ||
30214 | case $t_bindir in | ||
30215 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
30216 | esac | ||
30217 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
30218 | if test $? -ne 0 ; then | ||
30219 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
30220 | if test $? -ne 0 ; then | ||
30221 | user_path=$user_path:$t_bindir | ||
30222 | { $as_echo "$as_me:$LINENO: result: Adding $t_bindir to USER_PATH so scp will work" >&5 | ||
30223 | $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; } | ||
30224 | fi | ||
30225 | fi | ||
30226 | fi | ||
30227 | |||
30228 | fi | ||
30229 | |||
30230 | if test "x$external_path_file" != "x/etc/login.conf" ; then | ||
30231 | |||
30232 | cat >>confdefs.h <<_ACEOF | ||
30233 | #define USER_PATH "$user_path" | ||
30234 | _ACEOF | ||
30235 | |||
30236 | |||
30237 | fi | ||
30238 | |||
30239 | # Set superuser path separately to user path | ||
30240 | |||
30241 | # Check whether --with-superuser-path was given. | ||
30242 | if test "${with_superuser_path+set}" = set; then | ||
30243 | withval=$with_superuser_path; | ||
30244 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
30245 | test "x${withval}" != "xyes"; then | ||
30246 | |||
30247 | cat >>confdefs.h <<_ACEOF | ||
30248 | #define SUPERUSER_PATH "$withval" | ||
30249 | _ACEOF | ||
30250 | |||
30251 | superuser_path=$withval | ||
30252 | fi | ||
30253 | |||
30254 | |||
30255 | fi | ||
30256 | |||
30257 | |||
30258 | |||
30259 | { $as_echo "$as_me:$LINENO: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
30260 | $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; } | ||
30261 | IPV4_IN6_HACK_MSG="no" | ||
30262 | |||
30263 | # Check whether --with-4in6 was given. | ||
30264 | if test "${with_4in6+set}" = set; then | ||
30265 | withval=$with_4in6; | ||
30266 | if test "x$withval" != "xno" ; then | ||
30267 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
30268 | $as_echo "yes" >&6; } | ||
30269 | |||
30270 | cat >>confdefs.h <<\_ACEOF | ||
30271 | #define IPV4_IN_IPV6 1 | ||
30272 | _ACEOF | ||
30273 | |||
30274 | IPV4_IN6_HACK_MSG="yes" | ||
30275 | else | ||
30276 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30277 | $as_echo "no" >&6; } | ||
30278 | fi | ||
30279 | |||
30280 | else | ||
30281 | |||
30282 | if test "x$inet6_default_4in6" = "xyes"; then | ||
30283 | { $as_echo "$as_me:$LINENO: result: yes (default)" >&5 | ||
30284 | $as_echo "yes (default)" >&6; } | ||
30285 | cat >>confdefs.h <<\_ACEOF | ||
30286 | #define IPV4_IN_IPV6 1 | ||
30287 | _ACEOF | ||
30288 | |||
30289 | IPV4_IN6_HACK_MSG="yes" | ||
30290 | else | ||
30291 | { $as_echo "$as_me:$LINENO: result: no (default)" >&5 | ||
30292 | $as_echo "no (default)" >&6; } | ||
30293 | fi | ||
30294 | |||
30295 | |||
30296 | fi | ||
30297 | |||
30298 | |||
30299 | # Whether to enable BSD auth support | ||
30300 | BSD_AUTH_MSG=no | ||
30301 | |||
30302 | # Check whether --with-bsd-auth was given. | ||
30303 | if test "${with_bsd_auth+set}" = set; then | ||
30304 | withval=$with_bsd_auth; | ||
30305 | if test "x$withval" != "xno" ; then | ||
30306 | |||
30307 | cat >>confdefs.h <<\_ACEOF | ||
30308 | #define BSD_AUTH 1 | ||
30309 | _ACEOF | ||
30310 | |||
30311 | BSD_AUTH_MSG=yes | ||
30312 | fi | ||
30313 | |||
30314 | |||
30315 | fi | ||
30316 | |||
30317 | |||
30318 | # Where to place sshd.pid | ||
30319 | piddir=/var/run | ||
30320 | # make sure the directory exists | ||
30321 | if test ! -d $piddir ; then | ||
30322 | piddir=`eval echo ${sysconfdir}` | ||
30323 | case $piddir in | ||
30324 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
30325 | esac | ||
30326 | fi | ||
30327 | |||
30328 | |||
30329 | # Check whether --with-pid-dir was given. | ||
30330 | if test "${with_pid_dir+set}" = set; then | ||
30331 | withval=$with_pid_dir; | ||
30332 | if test -n "$withval" && test "x$withval" != "xno" && \ | ||
30333 | test "x${withval}" != "xyes"; then | ||
30334 | piddir=$withval | ||
30335 | if test ! -d $piddir ; then | ||
30336 | { $as_echo "$as_me:$LINENO: WARNING: ** no $piddir directory on this system **" >&5 | ||
30337 | $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;} | ||
30338 | fi | ||
30339 | fi | ||
30340 | |||
30341 | |||
30342 | fi | ||
30343 | |||
30344 | |||
30345 | |||
30346 | cat >>confdefs.h <<_ACEOF | ||
30347 | #define _PATH_SSH_PIDDIR "$piddir" | ||
30348 | _ACEOF | ||
30349 | |||
30350 | |||
30351 | |||
30352 | # Check whether --enable-lastlog was given. | ||
30353 | if test "${enable_lastlog+set}" = set; then | ||
30354 | enableval=$enable_lastlog; | ||
30355 | if test "x$enableval" = "xno" ; then | ||
30356 | cat >>confdefs.h <<\_ACEOF | ||
30357 | #define DISABLE_LASTLOG 1 | ||
30358 | _ACEOF | ||
30359 | |||
30360 | fi | ||
30361 | |||
30362 | |||
30363 | fi | ||
30364 | |||
30365 | # Check whether --enable-utmp was given. | ||
30366 | if test "${enable_utmp+set}" = set; then | ||
30367 | enableval=$enable_utmp; | ||
30368 | if test "x$enableval" = "xno" ; then | ||
30369 | cat >>confdefs.h <<\_ACEOF | ||
30370 | #define DISABLE_UTMP 1 | ||
30371 | _ACEOF | ||
30372 | |||
30373 | fi | ||
30374 | |||
30375 | |||
30376 | fi | ||
30377 | |||
30378 | # Check whether --enable-utmpx was given. | ||
30379 | if test "${enable_utmpx+set}" = set; then | ||
30380 | enableval=$enable_utmpx; | ||
30381 | if test "x$enableval" = "xno" ; then | ||
30382 | |||
30383 | cat >>confdefs.h <<\_ACEOF | ||
30384 | #define DISABLE_UTMPX 1 | ||
30385 | _ACEOF | ||
30386 | |||
30387 | fi | ||
30388 | |||
30389 | |||
30390 | fi | ||
30391 | |||
30392 | # Check whether --enable-wtmp was given. | ||
30393 | if test "${enable_wtmp+set}" = set; then | ||
30394 | enableval=$enable_wtmp; | ||
30395 | if test "x$enableval" = "xno" ; then | ||
30396 | cat >>confdefs.h <<\_ACEOF | ||
30397 | #define DISABLE_WTMP 1 | ||
30398 | _ACEOF | ||
30399 | |||
30400 | fi | ||
30401 | |||
30402 | |||
30403 | fi | ||
30404 | |||
30405 | # Check whether --enable-wtmpx was given. | ||
30406 | if test "${enable_wtmpx+set}" = set; then | ||
30407 | enableval=$enable_wtmpx; | ||
30408 | if test "x$enableval" = "xno" ; then | ||
30409 | |||
30410 | cat >>confdefs.h <<\_ACEOF | ||
30411 | #define DISABLE_WTMPX 1 | ||
30412 | _ACEOF | ||
30413 | |||
30414 | fi | ||
30415 | |||
30416 | |||
30417 | fi | ||
30418 | |||
30419 | # Check whether --enable-libutil was given. | ||
30420 | if test "${enable_libutil+set}" = set; then | ||
30421 | enableval=$enable_libutil; | ||
30422 | if test "x$enableval" = "xno" ; then | ||
30423 | cat >>confdefs.h <<\_ACEOF | ||
30424 | #define DISABLE_LOGIN 1 | ||
30425 | _ACEOF | ||
30426 | |||
30427 | fi | ||
30428 | |||
30429 | |||
30430 | fi | ||
30431 | |||
30432 | # Check whether --enable-pututline was given. | ||
30433 | if test "${enable_pututline+set}" = set; then | ||
30434 | enableval=$enable_pututline; | ||
30435 | if test "x$enableval" = "xno" ; then | ||
30436 | |||
30437 | cat >>confdefs.h <<\_ACEOF | ||
30438 | #define DISABLE_PUTUTLINE 1 | ||
30439 | _ACEOF | ||
30440 | |||
30441 | fi | ||
30442 | |||
30443 | |||
30444 | fi | ||
30445 | |||
30446 | # Check whether --enable-pututxline was given. | ||
30447 | if test "${enable_pututxline+set}" = set; then | ||
30448 | enableval=$enable_pututxline; | ||
30449 | if test "x$enableval" = "xno" ; then | ||
30450 | |||
30451 | cat >>confdefs.h <<\_ACEOF | ||
30452 | #define DISABLE_PUTUTXLINE 1 | ||
30453 | _ACEOF | ||
30454 | |||
30455 | fi | ||
30456 | |||
30457 | |||
30458 | fi | ||
30459 | |||
30460 | |||
30461 | # Check whether --with-lastlog was given. | ||
30462 | if test "${with_lastlog+set}" = set; then | ||
30463 | withval=$with_lastlog; | ||
30464 | if test "x$withval" = "xno" ; then | ||
30465 | cat >>confdefs.h <<\_ACEOF | ||
30466 | #define DISABLE_LASTLOG 1 | ||
30467 | _ACEOF | ||
30468 | |||
30469 | elif test -n "$withval" && test "x${withval}" != "xyes"; then | ||
30470 | conf_lastlog_location=$withval | ||
30471 | fi | ||
30472 | |||
30473 | |||
30474 | fi | ||
30475 | |||
30476 | |||
30477 | |||
30478 | { $as_echo "$as_me:$LINENO: checking if your system defines LASTLOG_FILE" >&5 | ||
30479 | $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; } | ||
30480 | cat >conftest.$ac_ext <<_ACEOF | ||
30481 | /* confdefs.h. */ | ||
30482 | _ACEOF | ||
30483 | cat confdefs.h >>conftest.$ac_ext | ||
30484 | cat >>conftest.$ac_ext <<_ACEOF | ||
30485 | /* end confdefs.h. */ | ||
30486 | |||
30487 | #include <sys/types.h> | ||
30488 | #include <utmp.h> | ||
30489 | #ifdef HAVE_LASTLOG_H | ||
30490 | # include <lastlog.h> | ||
30491 | #endif | ||
30492 | #ifdef HAVE_PATHS_H | ||
30493 | # include <paths.h> | ||
30494 | #endif | ||
30495 | #ifdef HAVE_LOGIN_H | ||
30496 | # include <login.h> | ||
30497 | #endif | ||
30498 | |||
30499 | int | ||
30500 | main () | ||
30501 | { | ||
30502 | char *lastlog = LASTLOG_FILE; | ||
30503 | ; | ||
30504 | return 0; | ||
30505 | } | ||
30506 | _ACEOF | ||
30507 | rm -f conftest.$ac_objext | ||
30508 | if { (ac_try="$ac_compile" | ||
30509 | case "(($ac_try" in | ||
30510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30511 | *) ac_try_echo=$ac_try;; | ||
30512 | esac | ||
30513 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30514 | $as_echo "$ac_try_echo") >&5 | ||
30515 | (eval "$ac_compile") 2>conftest.er1 | ||
30516 | ac_status=$? | ||
30517 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30518 | rm -f conftest.er1 | ||
30519 | cat conftest.err >&5 | ||
30520 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30521 | (exit $ac_status); } && { | ||
30522 | test -z "$ac_c_werror_flag" || | ||
30523 | test ! -s conftest.err | ||
30524 | } && test -s conftest.$ac_objext; then | ||
30525 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
30526 | $as_echo "yes" >&6; } | ||
30527 | else | ||
30528 | $as_echo "$as_me: failed program was:" >&5 | ||
30529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30530 | |||
30531 | |||
30532 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30533 | $as_echo "no" >&6; } | ||
30534 | { $as_echo "$as_me:$LINENO: checking if your system defines _PATH_LASTLOG" >&5 | ||
30535 | $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; } | ||
30536 | cat >conftest.$ac_ext <<_ACEOF | ||
30537 | /* confdefs.h. */ | ||
30538 | _ACEOF | ||
30539 | cat confdefs.h >>conftest.$ac_ext | ||
30540 | cat >>conftest.$ac_ext <<_ACEOF | ||
30541 | /* end confdefs.h. */ | ||
30542 | |||
30543 | #include <sys/types.h> | ||
30544 | #include <utmp.h> | ||
30545 | #ifdef HAVE_LASTLOG_H | ||
30546 | # include <lastlog.h> | ||
30547 | #endif | ||
30548 | #ifdef HAVE_PATHS_H | ||
30549 | # include <paths.h> | ||
30550 | #endif | ||
30551 | |||
30552 | int | ||
30553 | main () | ||
30554 | { | ||
30555 | char *lastlog = _PATH_LASTLOG; | ||
30556 | ; | ||
30557 | return 0; | ||
30558 | } | ||
30559 | _ACEOF | ||
30560 | rm -f conftest.$ac_objext | ||
30561 | if { (ac_try="$ac_compile" | ||
30562 | case "(($ac_try" in | ||
30563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30564 | *) ac_try_echo=$ac_try;; | ||
30565 | esac | ||
30566 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30567 | $as_echo "$ac_try_echo") >&5 | ||
30568 | (eval "$ac_compile") 2>conftest.er1 | ||
30569 | ac_status=$? | ||
30570 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30571 | rm -f conftest.er1 | ||
30572 | cat conftest.err >&5 | ||
30573 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30574 | (exit $ac_status); } && { | ||
30575 | test -z "$ac_c_werror_flag" || | ||
30576 | test ! -s conftest.err | ||
30577 | } && test -s conftest.$ac_objext; then | ||
30578 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
30579 | $as_echo "yes" >&6; } | ||
30580 | else | ||
30581 | $as_echo "$as_me: failed program was:" >&5 | ||
30582 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30583 | |||
30584 | |||
30585 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30586 | $as_echo "no" >&6; } | ||
30587 | system_lastlog_path=no | ||
30588 | |||
30589 | fi | ||
30590 | |||
30591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30592 | |||
30593 | |||
30594 | fi | ||
30595 | |||
30596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30597 | |||
30598 | if test -z "$conf_lastlog_location"; then | ||
30599 | if test x"$system_lastlog_path" = x"no" ; then | ||
30600 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
30601 | if (test -d "$f" || test -f "$f") ; then | ||
30602 | conf_lastlog_location=$f | ||
30603 | fi | ||
30604 | done | ||
30605 | if test -z "$conf_lastlog_location"; then | ||
30606 | { $as_echo "$as_me:$LINENO: WARNING: ** Cannot find lastlog **" >&5 | ||
30607 | $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;} | ||
30608 | fi | ||
30609 | fi | ||
30610 | fi | ||
30611 | |||
30612 | if test -n "$conf_lastlog_location"; then | ||
30613 | |||
30614 | cat >>confdefs.h <<_ACEOF | ||
30615 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
30616 | _ACEOF | ||
30617 | |||
30618 | fi | ||
30619 | |||
30620 | { $as_echo "$as_me:$LINENO: checking if your system defines UTMP_FILE" >&5 | ||
30621 | $as_echo_n "checking if your system defines UTMP_FILE... " >&6; } | ||
30622 | cat >conftest.$ac_ext <<_ACEOF | ||
30623 | /* confdefs.h. */ | ||
30624 | _ACEOF | ||
30625 | cat confdefs.h >>conftest.$ac_ext | ||
30626 | cat >>conftest.$ac_ext <<_ACEOF | ||
30627 | /* end confdefs.h. */ | ||
30628 | |||
30629 | #include <sys/types.h> | ||
30630 | #include <utmp.h> | ||
30631 | #ifdef HAVE_PATHS_H | ||
30632 | # include <paths.h> | ||
30633 | #endif | ||
30634 | |||
30635 | int | ||
30636 | main () | ||
30637 | { | ||
30638 | char *utmp = UTMP_FILE; | ||
30639 | ; | ||
30640 | return 0; | ||
30641 | } | ||
30642 | _ACEOF | ||
30643 | rm -f conftest.$ac_objext | ||
30644 | if { (ac_try="$ac_compile" | ||
30645 | case "(($ac_try" in | ||
30646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30647 | *) ac_try_echo=$ac_try;; | ||
30648 | esac | ||
30649 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30650 | $as_echo "$ac_try_echo") >&5 | ||
30651 | (eval "$ac_compile") 2>conftest.er1 | ||
30652 | ac_status=$? | ||
30653 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30654 | rm -f conftest.er1 | ||
30655 | cat conftest.err >&5 | ||
30656 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30657 | (exit $ac_status); } && { | ||
30658 | test -z "$ac_c_werror_flag" || | ||
30659 | test ! -s conftest.err | ||
30660 | } && test -s conftest.$ac_objext; then | ||
30661 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
30662 | $as_echo "yes" >&6; } | ||
30663 | else | ||
30664 | $as_echo "$as_me: failed program was:" >&5 | ||
30665 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30666 | |||
30667 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30668 | $as_echo "no" >&6; } | ||
30669 | system_utmp_path=no | ||
30670 | |||
30671 | fi | ||
30672 | |||
30673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30674 | if test -z "$conf_utmp_location"; then | ||
30675 | if test x"$system_utmp_path" = x"no" ; then | ||
30676 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
30677 | if test -f $f ; then | ||
30678 | conf_utmp_location=$f | ||
30679 | fi | ||
30680 | done | ||
30681 | if test -z "$conf_utmp_location"; then | ||
30682 | cat >>confdefs.h <<\_ACEOF | ||
30683 | #define DISABLE_UTMP 1 | ||
30684 | _ACEOF | ||
30685 | |||
30686 | fi | ||
30687 | fi | ||
30688 | fi | ||
30689 | if test -n "$conf_utmp_location"; then | ||
30690 | |||
30691 | cat >>confdefs.h <<_ACEOF | ||
30692 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
30693 | _ACEOF | ||
30694 | |||
30695 | fi | ||
30696 | |||
30697 | { $as_echo "$as_me:$LINENO: checking if your system defines WTMP_FILE" >&5 | ||
30698 | $as_echo_n "checking if your system defines WTMP_FILE... " >&6; } | ||
30699 | cat >conftest.$ac_ext <<_ACEOF | ||
30700 | /* confdefs.h. */ | ||
30701 | _ACEOF | ||
30702 | cat confdefs.h >>conftest.$ac_ext | ||
30703 | cat >>conftest.$ac_ext <<_ACEOF | ||
30704 | /* end confdefs.h. */ | ||
30705 | |||
30706 | #include <sys/types.h> | ||
30707 | #include <utmp.h> | ||
30708 | #ifdef HAVE_PATHS_H | ||
30709 | # include <paths.h> | ||
30710 | #endif | ||
30711 | |||
30712 | int | ||
30713 | main () | ||
30714 | { | ||
30715 | char *wtmp = WTMP_FILE; | ||
30716 | ; | ||
30717 | return 0; | ||
30718 | } | ||
30719 | _ACEOF | ||
30720 | rm -f conftest.$ac_objext | ||
30721 | if { (ac_try="$ac_compile" | ||
30722 | case "(($ac_try" in | ||
30723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30724 | *) ac_try_echo=$ac_try;; | ||
30725 | esac | ||
30726 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30727 | $as_echo "$ac_try_echo") >&5 | ||
30728 | (eval "$ac_compile") 2>conftest.er1 | ||
30729 | ac_status=$? | ||
30730 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30731 | rm -f conftest.er1 | ||
30732 | cat conftest.err >&5 | ||
30733 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30734 | (exit $ac_status); } && { | ||
30735 | test -z "$ac_c_werror_flag" || | ||
30736 | test ! -s conftest.err | ||
30737 | } && test -s conftest.$ac_objext; then | ||
30738 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
30739 | $as_echo "yes" >&6; } | ||
30740 | else | ||
30741 | $as_echo "$as_me: failed program was:" >&5 | ||
30742 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30743 | |||
30744 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30745 | $as_echo "no" >&6; } | ||
30746 | system_wtmp_path=no | ||
30747 | |||
30748 | fi | ||
30749 | |||
30750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30751 | if test -z "$conf_wtmp_location"; then | ||
30752 | if test x"$system_wtmp_path" = x"no" ; then | ||
30753 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
30754 | if test -f $f ; then | ||
30755 | conf_wtmp_location=$f | ||
30756 | fi | ||
30757 | done | ||
30758 | if test -z "$conf_wtmp_location"; then | ||
30759 | cat >>confdefs.h <<\_ACEOF | ||
30760 | #define DISABLE_WTMP 1 | ||
30761 | _ACEOF | ||
30762 | |||
30763 | fi | ||
30764 | fi | ||
30765 | fi | ||
30766 | if test -n "$conf_wtmp_location"; then | ||
30767 | |||
30768 | cat >>confdefs.h <<_ACEOF | ||
30769 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
30770 | _ACEOF | ||
30771 | |||
30772 | fi | ||
30773 | |||
30774 | |||
30775 | { $as_echo "$as_me:$LINENO: checking if your system defines UTMPX_FILE" >&5 | ||
30776 | $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; } | ||
30777 | cat >conftest.$ac_ext <<_ACEOF | ||
30778 | /* confdefs.h. */ | ||
30779 | _ACEOF | ||
30780 | cat confdefs.h >>conftest.$ac_ext | ||
30781 | cat >>conftest.$ac_ext <<_ACEOF | ||
30782 | /* end confdefs.h. */ | ||
30783 | |||
30784 | #include <sys/types.h> | ||
30785 | #include <utmp.h> | ||
30786 | #ifdef HAVE_UTMPX_H | ||
30787 | #include <utmpx.h> | ||
30788 | #endif | ||
30789 | #ifdef HAVE_PATHS_H | ||
30790 | # include <paths.h> | ||
30791 | #endif | ||
30792 | |||
30793 | int | ||
30794 | main () | ||
30795 | { | ||
30796 | char *utmpx = UTMPX_FILE; | ||
30797 | ; | ||
30798 | return 0; | ||
30799 | } | ||
30800 | _ACEOF | ||
30801 | rm -f conftest.$ac_objext | ||
30802 | if { (ac_try="$ac_compile" | ||
30803 | case "(($ac_try" in | ||
30804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30805 | *) ac_try_echo=$ac_try;; | ||
30806 | esac | ||
30807 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30808 | $as_echo "$ac_try_echo") >&5 | ||
30809 | (eval "$ac_compile") 2>conftest.er1 | ||
30810 | ac_status=$? | ||
30811 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30812 | rm -f conftest.er1 | ||
30813 | cat conftest.err >&5 | ||
30814 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30815 | (exit $ac_status); } && { | ||
30816 | test -z "$ac_c_werror_flag" || | ||
30817 | test ! -s conftest.err | ||
30818 | } && test -s conftest.$ac_objext; then | ||
30819 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
30820 | $as_echo "yes" >&6; } | ||
30821 | else | ||
30822 | $as_echo "$as_me: failed program was:" >&5 | ||
30823 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30824 | |||
30825 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30826 | $as_echo "no" >&6; } | ||
30827 | system_utmpx_path=no | ||
30828 | |||
30829 | fi | ||
30830 | |||
30831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30832 | if test -z "$conf_utmpx_location"; then | ||
30833 | if test x"$system_utmpx_path" = x"no" ; then | ||
30834 | cat >>confdefs.h <<\_ACEOF | ||
30835 | #define DISABLE_UTMPX 1 | ||
30836 | _ACEOF | ||
30837 | |||
30838 | fi | ||
30839 | else | ||
30840 | |||
30841 | cat >>confdefs.h <<_ACEOF | ||
30842 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
30843 | _ACEOF | ||
30844 | |||
30845 | fi | ||
30846 | |||
30847 | { $as_echo "$as_me:$LINENO: checking if your system defines WTMPX_FILE" >&5 | ||
30848 | $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; } | ||
30849 | cat >conftest.$ac_ext <<_ACEOF | ||
30850 | /* confdefs.h. */ | ||
30851 | _ACEOF | ||
30852 | cat confdefs.h >>conftest.$ac_ext | ||
30853 | cat >>conftest.$ac_ext <<_ACEOF | ||
30854 | /* end confdefs.h. */ | ||
30855 | |||
30856 | #include <sys/types.h> | ||
30857 | #include <utmp.h> | ||
30858 | #ifdef HAVE_UTMPX_H | ||
30859 | #include <utmpx.h> | ||
30860 | #endif | ||
30861 | #ifdef HAVE_PATHS_H | ||
30862 | # include <paths.h> | ||
30863 | #endif | ||
30864 | |||
30865 | int | ||
30866 | main () | ||
30867 | { | ||
30868 | char *wtmpx = WTMPX_FILE; | ||
30869 | ; | ||
30870 | return 0; | ||
30871 | } | ||
30872 | _ACEOF | ||
30873 | rm -f conftest.$ac_objext | ||
30874 | if { (ac_try="$ac_compile" | ||
30875 | case "(($ac_try" in | ||
30876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
30877 | *) ac_try_echo=$ac_try;; | ||
30878 | esac | ||
30879 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | ||
30880 | $as_echo "$ac_try_echo") >&5 | ||
30881 | (eval "$ac_compile") 2>conftest.er1 | ||
30882 | ac_status=$? | ||
30883 | grep -v '^ *+' conftest.er1 >conftest.err | ||
30884 | rm -f conftest.er1 | ||
30885 | cat conftest.err >&5 | ||
30886 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
30887 | (exit $ac_status); } && { | ||
30888 | test -z "$ac_c_werror_flag" || | ||
30889 | test ! -s conftest.err | ||
30890 | } && test -s conftest.$ac_objext; then | ||
30891 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | ||
30892 | $as_echo "yes" >&6; } | ||
30893 | else | ||
30894 | $as_echo "$as_me: failed program was:" >&5 | ||
30895 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
30896 | |||
30897 | { $as_echo "$as_me:$LINENO: result: no" >&5 | ||
30898 | $as_echo "no" >&6; } | ||
30899 | system_wtmpx_path=no | ||
30900 | |||
30901 | fi | ||
30902 | |||
30903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
30904 | if test -z "$conf_wtmpx_location"; then | ||
30905 | if test x"$system_wtmpx_path" = x"no" ; then | ||
30906 | cat >>confdefs.h <<\_ACEOF | ||
30907 | #define DISABLE_WTMPX 1 | ||
30908 | _ACEOF | ||
30909 | |||
30910 | fi | ||
30911 | else | ||
30912 | |||
30913 | cat >>confdefs.h <<_ACEOF | ||
30914 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
30915 | _ACEOF | ||
30916 | |||
30917 | fi | ||
30918 | |||
30919 | |||
30920 | if test ! -z "$blibpath" ; then | ||
30921 | LDFLAGS="$LDFLAGS $blibflags$blibpath" | ||
30922 | { $as_echo "$as_me:$LINENO: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5 | ||
30923 | $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} | ||
30924 | fi | ||
30925 | |||
30926 | CFLAGS="$CFLAGS $werror_flags" | ||
30927 | |||
30928 | if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \ | ||
30929 | test "x$ac_cv_func_getaddrinfo" != "xyes" ; then | ||
30930 | TEST_SSH_IPV6=no | ||
30931 | |||
30932 | else | ||
30933 | TEST_SSH_IPV6=yes | ||
30934 | |||
30935 | fi | ||
30936 | |||
30937 | |||
30938 | ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh" | ||
30939 | |||
30940 | cat >confcache <<\_ACEOF | ||
30941 | # This file is a shell script that caches the results of configure | ||
30942 | # tests run on this system so they can be shared between configure | ||
30943 | # scripts and configure runs, see configure's option --config-cache. | ||
30944 | # It is not useful on other systems. If it contains results you don't | ||
30945 | # want to keep, you may remove or edit it. | ||
30946 | # | ||
30947 | # config.status only pays attention to the cache file if you give it | ||
30948 | # the --recheck option to rerun configure. | ||
30949 | # | ||
30950 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
30951 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
30952 | # following values. | ||
30953 | |||
30954 | _ACEOF | ||
30955 | |||
30956 | # The following way of writing the cache mishandles newlines in values, | ||
30957 | # but we know of no workaround that is simple, portable, and efficient. | ||
30958 | # So, we kill variables containing newlines. | ||
30959 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
30960 | # and sets the high bit in the cache file unless we assign to the vars. | ||
30961 | ( | ||
30962 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
30963 | eval ac_val=\$$ac_var | ||
30964 | case $ac_val in #( | ||
30965 | *${as_nl}*) | ||
30966 | case $ac_var in #( | ||
30967 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
30968 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
30969 | esac | ||
30970 | case $ac_var in #( | ||
30971 | _ | IFS | as_nl) ;; #( | ||
30972 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
30973 | *) $as_unset $ac_var ;; | ||
30974 | esac ;; | ||
30975 | esac | ||
30976 | done | ||
30977 | |||
30978 | (set) 2>&1 | | ||
30979 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
30980 | *${as_nl}ac_space=\ *) | ||
30981 | # `set' does not quote correctly, so add quotes (double-quote | ||
30982 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
30983 | sed -n \ | ||
30984 | "s/'/'\\\\''/g; | ||
30985 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
30986 | ;; #( | ||
30987 | *) | ||
30988 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
30989 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
30990 | ;; | ||
30991 | esac | | ||
30992 | sort | ||
30993 | ) | | ||
30994 | sed ' | ||
30995 | /^ac_cv_env_/b end | ||
30996 | t clear | ||
30997 | :clear | ||
30998 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
30999 | t end | ||
31000 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
31001 | :end' >>confcache | ||
31002 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
31003 | if test -w "$cache_file"; then | ||
31004 | test "x$cache_file" != "x/dev/null" && | ||
31005 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
31006 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
31007 | cat confcache >$cache_file | ||
31008 | else | ||
31009 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
31010 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
31011 | fi | ||
31012 | fi | ||
31013 | rm -f confcache | ||
31014 | |||
31015 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
31016 | # Let make expand exec_prefix. | ||
31017 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
31018 | |||
31019 | DEFS=-DHAVE_CONFIG_H | ||
31020 | |||
31021 | ac_libobjs= | ||
31022 | ac_ltlibobjs= | ||
31023 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
31024 | # 1. Remove the extension, and $U if already installed. | ||
31025 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
31026 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
31027 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
31028 | # will be set to the directory where LIBOBJS objects are built. | ||
31029 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
31030 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
31031 | done | ||
31032 | LIBOBJS=$ac_libobjs | ||
31033 | |||
31034 | LTLIBOBJS=$ac_ltlibobjs | ||
31035 | |||
31036 | |||
31037 | |||
31038 | |||
31039 | : ${CONFIG_STATUS=./config.status} | ||
31040 | ac_write_fail=0 | ||
31041 | ac_clean_files_save=$ac_clean_files | ||
31042 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
31043 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
31044 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
31045 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31046 | #! $SHELL | ||
31047 | # Generated by $as_me. | ||
31048 | # Run this file to recreate the current configuration. | ||
31049 | # Compiler output produced by configure, useful for debugging | ||
31050 | # configure, is in config.log if it exists. | ||
31051 | |||
31052 | debug=false | ||
31053 | ac_cs_recheck=false | ||
31054 | ac_cs_silent=false | ||
31055 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
31056 | _ACEOF | ||
31057 | |||
31058 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31059 | ## --------------------- ## | ||
31060 | ## M4sh Initialization. ## | ||
31061 | ## --------------------- ## | ||
31062 | |||
31063 | # Be more Bourne compatible | ||
31064 | DUALCASE=1; export DUALCASE # for MKS sh | ||
31065 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
31066 | emulate sh | ||
31067 | NULLCMD=: | ||
31068 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
31069 | # is contrary to our usage. Disable this feature. | ||
31070 | alias -g '${1+"$@"}'='"$@"' | ||
31071 | setopt NO_GLOB_SUBST | ||
31072 | else | ||
31073 | case `(set -o) 2>/dev/null` in | ||
31074 | *posix*) set -o posix ;; | ||
31075 | esac | ||
31076 | |||
31077 | fi | ||
31078 | |||
31079 | |||
31080 | |||
31081 | |||
31082 | # PATH needs CR | ||
31083 | # Avoid depending upon Character Ranges. | ||
31084 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
31085 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
31086 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
31087 | as_cr_digits='0123456789' | ||
31088 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
31089 | |||
31090 | as_nl=' | ||
31091 | ' | ||
31092 | export as_nl | ||
31093 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
31094 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
31095 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
31096 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
31097 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
31098 | as_echo='printf %s\n' | ||
31099 | as_echo_n='printf %s' | ||
31100 | else | ||
31101 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
31102 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
31103 | as_echo_n='/usr/ucb/echo -n' | ||
31104 | else | ||
31105 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
31106 | as_echo_n_body='eval | ||
31107 | arg=$1; | ||
31108 | case $arg in | ||
31109 | *"$as_nl"*) | ||
31110 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
31111 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
31112 | esac; | ||
31113 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
31114 | ' | ||
31115 | export as_echo_n_body | ||
31116 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
31117 | fi | ||
31118 | export as_echo_body | ||
31119 | as_echo='sh -c $as_echo_body as_echo' | ||
31120 | fi | ||
31121 | |||
31122 | # The user is always right. | ||
31123 | if test "${PATH_SEPARATOR+set}" != set; then | ||
31124 | PATH_SEPARATOR=: | ||
31125 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
31126 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
31127 | PATH_SEPARATOR=';' | ||
31128 | } | ||
31129 | fi | ||
31130 | |||
31131 | # Support unset when possible. | ||
31132 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
31133 | as_unset=unset | ||
31134 | else | ||
31135 | as_unset=false | ||
31136 | fi | ||
31137 | |||
31138 | |||
31139 | # IFS | ||
31140 | # We need space, tab and new line, in precisely that order. Quoting is | ||
31141 | # there to prevent editors from complaining about space-tab. | ||
31142 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
31143 | # splitting by setting IFS to empty value.) | ||
31144 | IFS=" "" $as_nl" | ||
31145 | |||
31146 | # Find who we are. Look in the path if we contain no directory separator. | ||
31147 | case $0 in | ||
31148 | *[\\/]* ) as_myself=$0 ;; | ||
31149 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
31150 | for as_dir in $PATH | ||
31151 | do | ||
31152 | IFS=$as_save_IFS | ||
31153 | test -z "$as_dir" && as_dir=. | ||
31154 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
31155 | done | ||
31156 | IFS=$as_save_IFS | ||
31157 | |||
31158 | ;; | ||
31159 | esac | ||
31160 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
31161 | # in which case we are not to be found in the path. | ||
31162 | if test "x$as_myself" = x; then | ||
31163 | as_myself=$0 | ||
31164 | fi | ||
31165 | if test ! -f "$as_myself"; then | ||
31166 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
31167 | { (exit 1); exit 1; } | ||
31168 | fi | ||
31169 | |||
31170 | # Work around bugs in pre-3.0 UWIN ksh. | ||
31171 | for as_var in ENV MAIL MAILPATH | ||
31172 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
31173 | done | ||
31174 | PS1='$ ' | ||
31175 | PS2='> ' | ||
31176 | PS4='+ ' | ||
31177 | |||
31178 | # NLS nuisances. | ||
31179 | LC_ALL=C | ||
31180 | export LC_ALL | ||
31181 | LANGUAGE=C | ||
31182 | export LANGUAGE | ||
31183 | |||
31184 | # Required to use basename. | ||
31185 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
31186 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
31187 | as_expr=expr | ||
31188 | else | ||
31189 | as_expr=false | ||
31190 | fi | ||
31191 | |||
31192 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
31193 | as_basename=basename | ||
31194 | else | ||
31195 | as_basename=false | ||
31196 | fi | ||
31197 | |||
31198 | |||
31199 | # Name of the executable. | ||
31200 | as_me=`$as_basename -- "$0" || | ||
31201 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
31202 | X"$0" : 'X\(//\)$' \| \ | ||
31203 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
31204 | $as_echo X/"$0" | | ||
31205 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
31206 | s//\1/ | ||
31207 | q | ||
31208 | } | ||
31209 | /^X\/\(\/\/\)$/{ | ||
31210 | s//\1/ | ||
31211 | q | ||
31212 | } | ||
31213 | /^X\/\(\/\).*/{ | ||
31214 | s//\1/ | ||
31215 | q | ||
31216 | } | ||
31217 | s/.*/./; q'` | ||
31218 | |||
31219 | # CDPATH. | ||
31220 | $as_unset CDPATH | ||
31221 | |||
31222 | |||
31223 | |||
31224 | as_lineno_1=$LINENO | ||
31225 | as_lineno_2=$LINENO | ||
31226 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
31227 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
31228 | |||
31229 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
31230 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
31231 | # line-number line after each line using $LINENO; the second 'sed' | ||
31232 | # does the real work. The second script uses 'N' to pair each | ||
31233 | # line-number line with the line containing $LINENO, and appends | ||
31234 | # trailing '-' during substitution so that $LINENO is not a special | ||
31235 | # case at line end. | ||
31236 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
31237 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
31238 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
31239 | sed -n ' | ||
31240 | p | ||
31241 | /[$]LINENO/= | ||
31242 | ' <$as_myself | | ||
31243 | sed ' | ||
31244 | s/[$]LINENO.*/&-/ | ||
31245 | t lineno | ||
31246 | b | ||
31247 | :lineno | ||
31248 | N | ||
31249 | :loop | ||
31250 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
31251 | t loop | ||
31252 | s/-\n.*// | ||
31253 | ' >$as_me.lineno && | ||
31254 | chmod +x "$as_me.lineno" || | ||
31255 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
31256 | { (exit 1); exit 1; }; } | ||
31257 | |||
31258 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
31259 | # (the dirname of $[0] is not the place where we might find the | ||
31260 | # original and so on. Autoconf is especially sensitive to this). | ||
31261 | . "./$as_me.lineno" | ||
31262 | # Exit status is that of the last command. | ||
31263 | exit | ||
31264 | } | ||
31265 | |||
31266 | |||
31267 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
31268 | as_dirname=dirname | ||
31269 | else | ||
31270 | as_dirname=false | ||
31271 | fi | ||
31272 | |||
31273 | ECHO_C= ECHO_N= ECHO_T= | ||
31274 | case `echo -n x` in | ||
31275 | -n*) | ||
31276 | case `echo 'x\c'` in | ||
31277 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
31278 | *) ECHO_C='\c';; | ||
31279 | esac;; | ||
31280 | *) | ||
31281 | ECHO_N='-n';; | ||
31282 | esac | ||
31283 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
31284 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
31285 | as_expr=expr | ||
31286 | else | ||
31287 | as_expr=false | ||
31288 | fi | ||
31289 | |||
31290 | rm -f conf$$ conf$$.exe conf$$.file | ||
31291 | if test -d conf$$.dir; then | ||
31292 | rm -f conf$$.dir/conf$$.file | ||
31293 | else | ||
31294 | rm -f conf$$.dir | ||
31295 | mkdir conf$$.dir 2>/dev/null | ||
31296 | fi | ||
31297 | if (echo >conf$$.file) 2>/dev/null; then | ||
31298 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
31299 | as_ln_s='ln -s' | ||
31300 | # ... but there are two gotchas: | ||
31301 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
31302 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
31303 | # In both cases, we have to default to `cp -p'. | ||
31304 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
31305 | as_ln_s='cp -p' | ||
31306 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
31307 | as_ln_s=ln | ||
31308 | else | ||
31309 | as_ln_s='cp -p' | ||
31310 | fi | ||
31311 | else | ||
31312 | as_ln_s='cp -p' | ||
31313 | fi | ||
31314 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
31315 | rmdir conf$$.dir 2>/dev/null | ||
31316 | |||
31317 | if mkdir -p . 2>/dev/null; then | ||
31318 | as_mkdir_p=: | ||
31319 | else | ||
31320 | test -d ./-p && rmdir ./-p | ||
31321 | as_mkdir_p=false | ||
31322 | fi | ||
31323 | |||
31324 | if test -x / >/dev/null 2>&1; then | ||
31325 | as_test_x='test -x' | ||
31326 | else | ||
31327 | if ls -dL / >/dev/null 2>&1; then | ||
31328 | as_ls_L_option=L | ||
31329 | else | ||
31330 | as_ls_L_option= | ||
31331 | fi | ||
31332 | as_test_x=' | ||
31333 | eval sh -c '\'' | ||
31334 | if test -d "$1"; then | ||
31335 | test -d "$1/."; | ||
31336 | else | ||
31337 | case $1 in | ||
31338 | -*)set "./$1";; | ||
31339 | esac; | ||
31340 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
31341 | ???[sx]*):;;*)false;;esac;fi | ||
31342 | '\'' sh | ||
31343 | ' | ||
31344 | fi | ||
31345 | as_executable_p=$as_test_x | ||
31346 | |||
31347 | # Sed expression to map a string onto a valid CPP name. | ||
31348 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
31349 | |||
31350 | # Sed expression to map a string onto a valid variable name. | ||
31351 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
31352 | |||
31353 | |||
31354 | exec 6>&1 | ||
31355 | |||
31356 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
31357 | # report actual input values of CONFIG_FILES etc. instead of their | ||
31358 | # values after options handling. | ||
31359 | ac_log=" | ||
31360 | This file was extended by OpenSSH $as_me Portable, which was | ||
31361 | generated by GNU Autoconf 2.62. Invocation command line was | ||
31362 | |||
31363 | CONFIG_FILES = $CONFIG_FILES | ||
31364 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
31365 | CONFIG_LINKS = $CONFIG_LINKS | ||
31366 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
31367 | $ $0 $@ | ||
31368 | |||
31369 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
31370 | " | ||
31371 | |||
31372 | _ACEOF | ||
31373 | |||
31374 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31375 | # Files that config.status was made for. | ||
31376 | config_files="$ac_config_files" | ||
31377 | config_headers="$ac_config_headers" | ||
31378 | |||
31379 | _ACEOF | ||
31380 | |||
31381 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31382 | ac_cs_usage="\ | ||
31383 | \`$as_me' instantiates files from templates according to the | ||
31384 | current configuration. | ||
31385 | |||
31386 | Usage: $0 [OPTIONS] [FILE]... | ||
31387 | |||
31388 | -h, --help print this help, then exit | ||
31389 | -V, --version print version number and configuration settings, then exit | ||
31390 | -q, --quiet do not print progress messages | ||
31391 | -d, --debug don't remove temporary files | ||
31392 | --recheck update $as_me by reconfiguring in the same conditions | ||
31393 | --file=FILE[:TEMPLATE] | ||
31394 | instantiate the configuration file FILE | ||
31395 | --header=FILE[:TEMPLATE] | ||
31396 | instantiate the configuration header FILE | ||
31397 | |||
31398 | Configuration files: | ||
31399 | $config_files | ||
31400 | |||
31401 | Configuration headers: | ||
31402 | $config_headers | ||
31403 | |||
31404 | Report bugs to <bug-autoconf@gnu.org>." | ||
31405 | |||
31406 | _ACEOF | ||
31407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31408 | ac_cs_version="\\ | ||
31409 | OpenSSH config.status Portable | ||
31410 | configured by $0, generated by GNU Autoconf 2.62, | ||
31411 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
31412 | |||
31413 | Copyright (C) 2008 Free Software Foundation, Inc. | ||
31414 | This config.status script is free software; the Free Software Foundation | ||
31415 | gives unlimited permission to copy, distribute and modify it." | ||
31416 | |||
31417 | ac_pwd='$ac_pwd' | ||
31418 | srcdir='$srcdir' | ||
31419 | INSTALL='$INSTALL' | ||
31420 | AWK='$AWK' | ||
31421 | test -n "\$AWK" || AWK=awk | ||
31422 | _ACEOF | ||
31423 | |||
31424 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31425 | # The default lists apply if the user does not specify any file. | ||
31426 | ac_need_defaults=: | ||
31427 | while test $# != 0 | ||
31428 | do | ||
31429 | case $1 in | ||
31430 | --*=*) | ||
31431 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
31432 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
31433 | ac_shift=: | ||
31434 | ;; | ||
31435 | *) | ||
31436 | ac_option=$1 | ||
31437 | ac_optarg=$2 | ||
31438 | ac_shift=shift | ||
31439 | ;; | ||
31440 | esac | ||
31441 | |||
31442 | case $ac_option in | ||
31443 | # Handling of the options. | ||
31444 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
31445 | ac_cs_recheck=: ;; | ||
31446 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
31447 | $as_echo "$ac_cs_version"; exit ;; | ||
31448 | --debug | --debu | --deb | --de | --d | -d ) | ||
31449 | debug=: ;; | ||
31450 | --file | --fil | --fi | --f ) | ||
31451 | $ac_shift | ||
31452 | case $ac_optarg in | ||
31453 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
31454 | esac | ||
31455 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | ||
31456 | ac_need_defaults=false;; | ||
31457 | --header | --heade | --head | --hea ) | ||
31458 | $ac_shift | ||
31459 | case $ac_optarg in | ||
31460 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
31461 | esac | ||
31462 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | ||
31463 | ac_need_defaults=false;; | ||
31464 | --he | --h) | ||
31465 | # Conflict between --help and --header | ||
31466 | { $as_echo "$as_me: error: ambiguous option: $1 | ||
31467 | Try \`$0 --help' for more information." >&2 | ||
31468 | { (exit 1); exit 1; }; };; | ||
31469 | --help | --hel | -h ) | ||
31470 | $as_echo "$ac_cs_usage"; exit ;; | ||
31471 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
31472 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
31473 | ac_cs_silent=: ;; | ||
31474 | |||
31475 | # This is an error. | ||
31476 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | ||
31477 | Try \`$0 --help' for more information." >&2 | ||
31478 | { (exit 1); exit 1; }; } ;; | ||
31479 | |||
31480 | *) ac_config_targets="$ac_config_targets $1" | ||
31481 | ac_need_defaults=false ;; | ||
31482 | |||
31483 | esac | ||
31484 | shift | ||
31485 | done | ||
31486 | |||
31487 | ac_configure_extra_args= | ||
31488 | |||
31489 | if $ac_cs_silent; then | ||
31490 | exec 6>/dev/null | ||
31491 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
31492 | fi | ||
31493 | |||
31494 | _ACEOF | ||
31495 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31496 | if \$ac_cs_recheck; then | ||
31497 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
31498 | shift | ||
31499 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | ||
31500 | CONFIG_SHELL='$SHELL' | ||
31501 | export CONFIG_SHELL | ||
31502 | exec "\$@" | ||
31503 | fi | ||
31504 | |||
31505 | _ACEOF | ||
31506 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31507 | exec 5>>config.log | ||
31508 | { | ||
31509 | echo | ||
31510 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
31511 | ## Running $as_me. ## | ||
31512 | _ASBOX | ||
31513 | $as_echo "$ac_log" | ||
31514 | } >&5 | ||
31515 | |||
31516 | _ACEOF | ||
31517 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31518 | _ACEOF | ||
31519 | |||
31520 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31521 | |||
31522 | # Handling of arguments. | ||
31523 | for ac_config_target in $ac_config_targets | ||
31524 | do | ||
31525 | case $ac_config_target in | ||
31526 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | ||
31527 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
31528 | "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; | ||
31529 | "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; | ||
31530 | "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;; | ||
31531 | "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; | ||
31532 | "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;; | ||
31533 | "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; | ||
31534 | "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; | ||
31535 | "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; | ||
31536 | |||
31537 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
31538 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
31539 | { (exit 1); exit 1; }; };; | ||
31540 | esac | ||
31541 | done | ||
31542 | |||
31543 | |||
31544 | # If the user did not use the arguments to specify the items to instantiate, | ||
31545 | # then the envvar interface is used. Set only those that are not. | ||
31546 | # We use the long form for the default assignment because of an extremely | ||
31547 | # bizarre bug on SunOS 4.1.3. | ||
31548 | if $ac_need_defaults; then | ||
31549 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
31550 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
31551 | fi | ||
31552 | |||
31553 | # Have a temporary directory for convenience. Make it in the build tree | ||
31554 | # simply because there is no reason against having it here, and in addition, | ||
31555 | # creating and moving files from /tmp can sometimes cause problems. | ||
31556 | # Hook for its removal unless debugging. | ||
31557 | # Note that there is a small window in which the directory will not be cleaned: | ||
31558 | # after its creation but before its name has been assigned to `$tmp'. | ||
31559 | $debug || | ||
31560 | { | ||
31561 | tmp= | ||
31562 | trap 'exit_status=$? | ||
31563 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
31564 | ' 0 | ||
31565 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
31566 | } | ||
31567 | # Create a (secure) tmp directory for tmp files. | ||
31568 | |||
31569 | { | ||
31570 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
31571 | test -n "$tmp" && test -d "$tmp" | ||
31572 | } || | ||
31573 | { | ||
31574 | tmp=./conf$$-$RANDOM | ||
31575 | (umask 077 && mkdir "$tmp") | ||
31576 | } || | ||
31577 | { | ||
31578 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | ||
31579 | { (exit 1); exit 1; } | ||
31580 | } | ||
31581 | |||
31582 | # Set up the scripts for CONFIG_FILES section. | ||
31583 | # No need to generate them if there are no CONFIG_FILES. | ||
31584 | # This happens for instance with `./config.status config.h'. | ||
31585 | if test -n "$CONFIG_FILES"; then | ||
31586 | |||
31587 | |||
31588 | ac_cr=' ' | ||
31589 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | ||
31590 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | ||
31591 | ac_cs_awk_cr='\\r' | ||
31592 | else | ||
31593 | ac_cs_awk_cr=$ac_cr | ||
31594 | fi | ||
31595 | |||
31596 | echo 'BEGIN {' >"$tmp/subs1.awk" && | ||
31597 | _ACEOF | ||
31598 | |||
31599 | |||
31600 | { | ||
31601 | echo "cat >conf$$subs.awk <<_ACEOF" && | ||
31602 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | ||
31603 | echo "_ACEOF" | ||
31604 | } >conf$$subs.sh || | ||
31605 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
31606 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
31607 | { (exit 1); exit 1; }; } | ||
31608 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | ||
31609 | ac_delim='%!_!# ' | ||
31610 | for ac_last_try in false false false false false :; do | ||
31611 | . ./conf$$subs.sh || | ||
31612 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
31613 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
31614 | { (exit 1); exit 1; }; } | ||
31615 | |||
31616 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then | ||
31617 | break | ||
31618 | elif $ac_last_try; then | ||
31619 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
31620 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
31621 | { (exit 1); exit 1; }; } | ||
31622 | else | ||
31623 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
31624 | fi | ||
31625 | done | ||
31626 | rm -f conf$$subs.sh | ||
31627 | |||
31628 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31629 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | ||
31630 | _ACEOF | ||
31631 | sed -n ' | ||
31632 | h | ||
31633 | s/^/S["/; s/!.*/"]=/ | ||
31634 | p | ||
31635 | g | ||
31636 | s/^[^!]*!// | ||
31637 | :repl | ||
31638 | t repl | ||
31639 | s/'"$ac_delim"'$// | ||
31640 | t delim | ||
31641 | :nl | ||
31642 | h | ||
31643 | s/\(.\{148\}\).*/\1/ | ||
31644 | t more1 | ||
31645 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | ||
31646 | p | ||
31647 | n | ||
31648 | b repl | ||
31649 | :more1 | ||
31650 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
31651 | p | ||
31652 | g | ||
31653 | s/.\{148\}// | ||
31654 | t nl | ||
31655 | :delim | ||
31656 | h | ||
31657 | s/\(.\{148\}\).*/\1/ | ||
31658 | t more2 | ||
31659 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | ||
31660 | p | ||
31661 | b | ||
31662 | :more2 | ||
31663 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | ||
31664 | p | ||
31665 | g | ||
31666 | s/.\{148\}// | ||
31667 | t delim | ||
31668 | ' <conf$$subs.awk | sed ' | ||
31669 | /^[^""]/{ | ||
31670 | N | ||
31671 | s/\n// | ||
31672 | } | ||
31673 | ' >>$CONFIG_STATUS || ac_write_fail=1 | ||
31674 | rm -f conf$$subs.awk | ||
31675 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31676 | _ACAWK | ||
31677 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | ||
31678 | for (key in S) S_is_set[key] = 1 | ||
31679 | FS = "" | ||
31680 | |||
31681 | } | ||
31682 | { | ||
31683 | line = $ 0 | ||
31684 | nfields = split(line, field, "@") | ||
31685 | substed = 0 | ||
31686 | len = length(field[1]) | ||
31687 | for (i = 2; i < nfields; i++) { | ||
31688 | key = field[i] | ||
31689 | keylen = length(key) | ||
31690 | if (S_is_set[key]) { | ||
31691 | value = S[key] | ||
31692 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | ||
31693 | len += length(value) + length(field[++i]) | ||
31694 | substed = 1 | ||
31695 | } else | ||
31696 | len += 1 + keylen | ||
31697 | } | ||
31698 | |||
31699 | print line | ||
31700 | } | ||
31701 | |||
31702 | _ACAWK | ||
31703 | _ACEOF | ||
31704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31705 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | ||
31706 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | ||
31707 | else | ||
31708 | cat | ||
31709 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | ||
31710 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | ||
31711 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | ||
31712 | { (exit 1); exit 1; }; } | ||
31713 | _ACEOF | ||
31714 | |||
31715 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
31716 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
31717 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
31718 | # (actually we leave an empty line to preserve line numbers). | ||
31719 | if test "x$srcdir" = x.; then | ||
31720 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
31721 | s/:*\$(srcdir):*/:/ | ||
31722 | s/:*\${srcdir}:*/:/ | ||
31723 | s/:*@srcdir@:*/:/ | ||
31724 | s/^\([^=]*=[ ]*\):*/\1/ | ||
31725 | s/:*$// | ||
31726 | s/^[^=]*=[ ]*$// | ||
31727 | }' | ||
31728 | fi | ||
31729 | |||
31730 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31731 | fi # test -n "$CONFIG_FILES" | ||
31732 | |||
31733 | # Set up the scripts for CONFIG_HEADERS section. | ||
31734 | # No need to generate them if there are no CONFIG_HEADERS. | ||
31735 | # This happens for instance with `./config.status Makefile'. | ||
31736 | if test -n "$CONFIG_HEADERS"; then | ||
31737 | cat >"$tmp/defines.awk" <<\_ACAWK || | ||
31738 | BEGIN { | ||
31739 | _ACEOF | ||
31740 | |||
31741 | # Transform confdefs.h into an awk script `defines.awk', embedded as | ||
31742 | # here-document in config.status, that substitutes the proper values into | ||
31743 | # config.h.in to produce config.h. | ||
31744 | |||
31745 | # Create a delimiter string that does not exist in confdefs.h, to ease | ||
31746 | # handling of long lines. | ||
31747 | ac_delim='%!_!# ' | ||
31748 | for ac_last_try in false false :; do | ||
31749 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | ||
31750 | if test -z "$ac_t"; then | ||
31751 | break | ||
31752 | elif $ac_last_try; then | ||
31753 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | ||
31754 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | ||
31755 | { (exit 1); exit 1; }; } | ||
31756 | else | ||
31757 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
31758 | fi | ||
31759 | done | ||
31760 | |||
31761 | # For the awk script, D is an array of macro values keyed by name, | ||
31762 | # likewise P contains macro parameters if any. Preserve backslash | ||
31763 | # newline sequences. | ||
31764 | |||
31765 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
31766 | sed -n ' | ||
31767 | s/.\{148\}/&'"$ac_delim"'/g | ||
31768 | t rset | ||
31769 | :rset | ||
31770 | s/^[ ]*#[ ]*define[ ][ ]*/ / | ||
31771 | t def | ||
31772 | d | ||
31773 | :def | ||
31774 | s/\\$// | ||
31775 | t bsnl | ||
31776 | s/["\\]/\\&/g | ||
31777 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
31778 | D["\1"]=" \3"/p | ||
31779 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | ||
31780 | d | ||
31781 | :bsnl | ||
31782 | s/["\\]/\\&/g | ||
31783 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | ||
31784 | D["\1"]=" \3\\\\\\n"\\/p | ||
31785 | t cont | ||
31786 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | ||
31787 | t cont | ||
31788 | d | ||
31789 | :cont | ||
31790 | n | ||
31791 | s/.\{148\}/&'"$ac_delim"'/g | ||
31792 | t clear | ||
31793 | :clear | ||
31794 | s/\\$// | ||
31795 | t bsnlc | ||
31796 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | ||
31797 | d | ||
31798 | :bsnlc | ||
31799 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | ||
31800 | b cont | ||
31801 | ' <confdefs.h | sed ' | ||
31802 | s/'"$ac_delim"'/"\\\ | ||
31803 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | ||
31804 | |||
31805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
31806 | for (key in D) D_is_set[key] = 1 | ||
31807 | FS = "" | ||
31808 | } | ||
31809 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | ||
31810 | line = \$ 0 | ||
31811 | split(line, arg, " ") | ||
31812 | if (arg[1] == "#") { | ||
31813 | defundef = arg[2] | ||
31814 | mac1 = arg[3] | ||
31815 | } else { | ||
31816 | defundef = substr(arg[1], 2) | ||
31817 | mac1 = arg[2] | ||
31818 | } | ||
31819 | split(mac1, mac2, "(") #) | ||
31820 | macro = mac2[1] | ||
31821 | if (D_is_set[macro]) { | ||
31822 | # Preserve the white space surrounding the "#". | ||
31823 | prefix = substr(line, 1, index(line, defundef) - 1) | ||
31824 | print prefix "define", macro P[macro] D[macro] | ||
31825 | next | ||
31826 | } else { | ||
31827 | # Replace #undef with comments. This is necessary, for example, | ||
31828 | # in the case of _POSIX_SOURCE, which is predefined and required | ||
31829 | # on some systems where configure will not decide to define it. | ||
31830 | if (defundef == "undef") { | ||
31831 | print "/*", line, "*/" | ||
31832 | next | ||
31833 | } | ||
31834 | } | ||
31835 | } | ||
31836 | { print } | ||
31837 | _ACAWK | ||
31838 | _ACEOF | ||
31839 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
31840 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | ||
31841 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | ||
31842 | { (exit 1); exit 1; }; } | ||
31843 | fi # test -n "$CONFIG_HEADERS" | ||
31844 | |||
31845 | |||
31846 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | ||
31847 | shift | ||
31848 | for ac_tag | ||
31849 | do | ||
31850 | case $ac_tag in | ||
31851 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
31852 | esac | ||
31853 | case $ac_mode$ac_tag in | ||
31854 | :[FHL]*:*);; | ||
31855 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
31856 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
31857 | { (exit 1); exit 1; }; };; | ||
31858 | :[FH]-) ac_tag=-:-;; | ||
31859 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
31860 | esac | ||
31861 | ac_save_IFS=$IFS | ||
31862 | IFS=: | ||
31863 | set x $ac_tag | ||
31864 | IFS=$ac_save_IFS | ||
31865 | shift | ||
31866 | ac_file=$1 | ||
31867 | shift | ||
31868 | |||
31869 | case $ac_mode in | ||
31870 | :L) ac_source=$1;; | ||
31871 | :[FH]) | ||
31872 | ac_file_inputs= | ||
31873 | for ac_f | ||
31874 | do | ||
31875 | case $ac_f in | ||
31876 | -) ac_f="$tmp/stdin";; | ||
31877 | *) # Look for the file first in the build tree, then in the source tree | ||
31878 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
31879 | # because $ac_f cannot contain `:'. | ||
31880 | test -f "$ac_f" || | ||
31881 | case $ac_f in | ||
31882 | [\\/$]*) false;; | ||
31883 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
31884 | esac || | ||
31885 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
31886 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
31887 | { (exit 1); exit 1; }; };; | ||
31888 | esac | ||
31889 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | ||
31890 | ac_file_inputs="$ac_file_inputs '$ac_f'" | ||
31891 | done | ||
31892 | |||
31893 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
31894 | # use $as_me), people would be surprised to read: | ||
31895 | # /* config.h. Generated by config.status. */ | ||
31896 | configure_input='Generated from '` | ||
31897 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | ||
31898 | `' by configure.' | ||
31899 | if test x"$ac_file" != x-; then | ||
31900 | configure_input="$ac_file. $configure_input" | ||
31901 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
31902 | $as_echo "$as_me: creating $ac_file" >&6;} | ||
31903 | fi | ||
31904 | # Neutralize special characters interpreted by sed in replacement strings. | ||
31905 | case $configure_input in #( | ||
31906 | *\&* | *\|* | *\\* ) | ||
31907 | ac_sed_conf_input=`$as_echo "$configure_input" | | ||
31908 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | ||
31909 | *) ac_sed_conf_input=$configure_input;; | ||
31910 | esac | ||
31911 | |||
31912 | case $ac_tag in | ||
31913 | *:-:* | *:-) cat >"$tmp/stdin" \ | ||
31914 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | ||
31915 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | ||
31916 | { (exit 1); exit 1; }; } ;; | ||
31917 | esac | ||
31918 | ;; | ||
31919 | esac | ||
31920 | |||
31921 | ac_dir=`$as_dirname -- "$ac_file" || | ||
31922 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
31923 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
31924 | X"$ac_file" : 'X\(//\)$' \| \ | ||
31925 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
31926 | $as_echo X"$ac_file" | | ||
31927 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
31928 | s//\1/ | ||
31929 | q | ||
31930 | } | ||
31931 | /^X\(\/\/\)[^/].*/{ | ||
31932 | s//\1/ | ||
31933 | q | ||
31934 | } | ||
31935 | /^X\(\/\/\)$/{ | ||
31936 | s//\1/ | ||
31937 | q | ||
31938 | } | ||
31939 | /^X\(\/\).*/{ | ||
31940 | s//\1/ | ||
31941 | q | ||
31942 | } | ||
31943 | s/.*/./; q'` | ||
31944 | { as_dir="$ac_dir" | ||
31945 | case $as_dir in #( | ||
31946 | -*) as_dir=./$as_dir;; | ||
31947 | esac | ||
31948 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
31949 | as_dirs= | ||
31950 | while :; do | ||
31951 | case $as_dir in #( | ||
31952 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
31953 | *) as_qdir=$as_dir;; | ||
31954 | esac | ||
31955 | as_dirs="'$as_qdir' $as_dirs" | ||
31956 | as_dir=`$as_dirname -- "$as_dir" || | ||
31957 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
31958 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
31959 | X"$as_dir" : 'X\(//\)$' \| \ | ||
31960 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
31961 | $as_echo X"$as_dir" | | ||
31962 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
31963 | s//\1/ | ||
31964 | q | ||
31965 | } | ||
31966 | /^X\(\/\/\)[^/].*/{ | ||
31967 | s//\1/ | ||
31968 | q | ||
31969 | } | ||
31970 | /^X\(\/\/\)$/{ | ||
31971 | s//\1/ | ||
31972 | q | ||
31973 | } | ||
31974 | /^X\(\/\).*/{ | ||
31975 | s//\1/ | ||
31976 | q | ||
31977 | } | ||
31978 | s/.*/./; q'` | ||
31979 | test -d "$as_dir" && break | ||
31980 | done | ||
31981 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
31982 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
31983 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
31984 | { (exit 1); exit 1; }; }; } | ||
31985 | ac_builddir=. | ||
31986 | |||
31987 | case "$ac_dir" in | ||
31988 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
31989 | *) | ||
31990 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
31991 | # A ".." for each directory in $ac_dir_suffix. | ||
31992 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
31993 | case $ac_top_builddir_sub in | ||
31994 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
31995 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
31996 | esac ;; | ||
31997 | esac | ||
31998 | ac_abs_top_builddir=$ac_pwd | ||
31999 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
32000 | # for backward compatibility: | ||
32001 | ac_top_builddir=$ac_top_build_prefix | ||
32002 | |||
32003 | case $srcdir in | ||
32004 | .) # We are building in place. | ||
32005 | ac_srcdir=. | ||
32006 | ac_top_srcdir=$ac_top_builddir_sub | ||
32007 | ac_abs_top_srcdir=$ac_pwd ;; | ||
32008 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
32009 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
32010 | ac_top_srcdir=$srcdir | ||
32011 | ac_abs_top_srcdir=$srcdir ;; | ||
32012 | *) # Relative name. | ||
32013 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
32014 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
32015 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
32016 | esac | ||
32017 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
32018 | |||
32019 | |||
32020 | case $ac_mode in | ||
32021 | :F) | ||
32022 | # | ||
32023 | # CONFIG_FILE | ||
32024 | # | ||
32025 | |||
32026 | case $INSTALL in | ||
32027 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
32028 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
32029 | esac | ||
32030 | _ACEOF | ||
32031 | |||
32032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32033 | # If the template does not know about datarootdir, expand it. | ||
32034 | # FIXME: This hack should be removed a few years after 2.60. | ||
32035 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
32036 | |||
32037 | ac_sed_dataroot=' | ||
32038 | /datarootdir/ { | ||
32039 | p | ||
32040 | q | ||
32041 | } | ||
32042 | /@datadir@/p | ||
32043 | /@docdir@/p | ||
32044 | /@infodir@/p | ||
32045 | /@localedir@/p | ||
32046 | /@mandir@/p | ||
32047 | ' | ||
32048 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | ||
32049 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
32050 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
32051 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
32052 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
32053 | _ACEOF | ||
32054 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32055 | ac_datarootdir_hack=' | ||
32056 | s&@datadir@&$datadir&g | ||
32057 | s&@docdir@&$docdir&g | ||
32058 | s&@infodir@&$infodir&g | ||
32059 | s&@localedir@&$localedir&g | ||
32060 | s&@mandir@&$mandir&g | ||
32061 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
32062 | esac | ||
32063 | _ACEOF | ||
32064 | |||
32065 | # Neutralize VPATH when `$srcdir' = `.'. | ||
32066 | # Shell code in configure.ac might set extrasub. | ||
32067 | # FIXME: do we really want to maintain this feature? | ||
32068 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
32069 | ac_sed_extra="$ac_vpsub | ||
32070 | $extrasub | ||
32071 | _ACEOF | ||
32072 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | ||
32073 | :t | ||
32074 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
32075 | s|@configure_input@|$ac_sed_conf_input|;t t | ||
32076 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
32077 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | ||
32078 | s&@srcdir@&$ac_srcdir&;t t | ||
32079 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
32080 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
32081 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
32082 | s&@builddir@&$ac_builddir&;t t | ||
32083 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
32084 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
32085 | s&@INSTALL@&$ac_INSTALL&;t t | ||
32086 | $ac_datarootdir_hack | ||
32087 | " | ||
32088 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | ||
32089 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | ||
32090 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | ||
32091 | { (exit 1); exit 1; }; } | ||
32092 | |||
32093 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
32094 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
32095 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
32096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
32097 | which seems to be undefined. Please make sure it is defined." >&5 | ||
32098 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
32099 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
32100 | |||
32101 | rm -f "$tmp/stdin" | ||
32102 | case $ac_file in | ||
32103 | -) cat "$tmp/out" && rm -f "$tmp/out";; | ||
32104 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | ||
32105 | esac \ | ||
32106 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | ||
32107 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | ||
32108 | { (exit 1); exit 1; }; } | ||
32109 | ;; | ||
32110 | :H) | ||
32111 | # | ||
32112 | # CONFIG_HEADER | ||
32113 | # | ||
32114 | if test x"$ac_file" != x-; then | ||
32115 | { | ||
32116 | $as_echo "/* $configure_input */" \ | ||
32117 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | ||
32118 | } >"$tmp/config.h" \ | ||
32119 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | ||
32120 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | ||
32121 | { (exit 1); exit 1; }; } | ||
32122 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | ||
32123 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
32124 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | ||
32125 | else | ||
32126 | rm -f "$ac_file" | ||
32127 | mv "$tmp/config.h" "$ac_file" \ | ||
32128 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | ||
32129 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | ||
32130 | { (exit 1); exit 1; }; } | ||
32131 | fi | ||
32132 | else | ||
32133 | $as_echo "/* $configure_input */" \ | ||
32134 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | ||
32135 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | ||
32136 | $as_echo "$as_me: error: could not create -" >&2;} | ||
32137 | { (exit 1); exit 1; }; } | ||
32138 | fi | ||
32139 | ;; | ||
32140 | |||
32141 | |||
32142 | esac | ||
32143 | |||
32144 | done # for ac_tag | ||
32145 | |||
32146 | |||
32147 | { (exit 0); exit 0; } | ||
32148 | _ACEOF | ||
32149 | chmod +x $CONFIG_STATUS | ||
32150 | ac_clean_files=$ac_clean_files_save | ||
32151 | |||
32152 | test $ac_write_fail = 0 || | ||
32153 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | ||
32154 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | ||
32155 | { (exit 1); exit 1; }; } | ||
32156 | |||
32157 | |||
32158 | # configure is writing to config.log, and then calls config.status. | ||
32159 | # config.status does its own redirection, appending to config.log. | ||
32160 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
32161 | # by configure, so config.status won't be able to write to it; its | ||
32162 | # output is simply discarded. So we exec the FD to /dev/null, | ||
32163 | # effectively closing config.log, so it can be properly (re)opened and | ||
32164 | # appended to by config.status. When coming back to configure, we | ||
32165 | # need to make the FD available again. | ||
32166 | if test "$no_create" != yes; then | ||
32167 | ac_cs_success=: | ||
32168 | ac_config_status_args= | ||
32169 | test "$silent" = yes && | ||
32170 | ac_config_status_args="$ac_config_status_args --quiet" | ||
32171 | exec 5>/dev/null | ||
32172 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
32173 | exec 5>>config.log | ||
32174 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
32175 | # would make configure fail if this is the last instruction. | ||
32176 | $ac_cs_success || { (exit 1); exit 1; } | ||
32177 | fi | ||
32178 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | ||
32179 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 | ||
32180 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} | ||
32181 | fi | ||
32182 | |||
32183 | |||
32184 | # Print summary of options | ||
32185 | |||
32186 | # Someone please show me a better way :) | ||
32187 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
32188 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
32189 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
32190 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
32191 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
32192 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
32193 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
32194 | H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}` | ||
32195 | I=`eval echo ${user_path}` ; I=`eval echo ${I}` | ||
32196 | J=`eval echo ${superuser_path}` ; J=`eval echo ${J}` | ||
32197 | |||
32198 | echo "" | ||
32199 | echo "OpenSSH has been configured with the following options:" | ||
32200 | echo " User binaries: $B" | ||
32201 | echo " System binaries: $C" | ||
32202 | echo " Configuration files: $D" | ||
32203 | echo " Askpass program: $E" | ||
32204 | echo " Manual pages: $F" | ||
32205 | echo " PID file: $G" | ||
32206 | echo " Privilege separation chroot path: $H" | ||
32207 | if test "x$external_path_file" = "x/etc/login.conf" ; then | ||
32208 | echo " At runtime, sshd will use the path defined in $external_path_file" | ||
32209 | echo " Make sure the path to scp is present, otherwise scp will not work" | ||
32210 | else | ||
32211 | echo " sshd default user PATH: $I" | ||
32212 | if test ! -z "$external_path_file"; then | ||
32213 | echo " (If PATH is set in $external_path_file it will be used instead. If" | ||
32214 | echo " used, ensure the path to scp is present, otherwise scp will not work.)" | ||
32215 | fi | ||
32216 | fi | ||
32217 | if test ! -z "$superuser_path" ; then | ||
32218 | echo " sshd superuser user PATH: $J" | ||
32219 | fi | ||
32220 | echo " Manpage format: $MANTYPE" | ||
32221 | echo " PAM support: $PAM_MSG" | ||
32222 | echo " OSF SIA support: $SIA_MSG" | ||
32223 | echo " KerberosV support: $KRB5_MSG" | ||
32224 | echo " SELinux support: $SELINUX_MSG" | ||
32225 | echo " Smartcard support: $SCARD_MSG" | ||
32226 | echo " S/KEY support: $SKEY_MSG" | ||
32227 | echo " TCP Wrappers support: $TCPW_MSG" | ||
32228 | echo " MD5 password support: $MD5_MSG" | ||
32229 | echo " libedit support: $LIBEDIT_MSG" | ||
32230 | echo " Solaris process contract support: $SPC_MSG" | ||
32231 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
32232 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
32233 | echo " BSD Auth support: $BSD_AUTH_MSG" | ||
32234 | echo " Random number source: $RAND_MSG" | ||
32235 | if test ! -z "$USE_RAND_HELPER" ; then | ||
32236 | echo " ssh-rand-helper collects from: $RAND_HELPER_MSG" | ||
32237 | fi | ||
32238 | |||
32239 | echo "" | ||
32240 | |||
32241 | echo " Host: ${host}" | ||
32242 | echo " Compiler: ${CC}" | ||
32243 | echo " Compiler flags: ${CFLAGS}" | ||
32244 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
32245 | echo " Linker flags: ${LDFLAGS}" | ||
32246 | echo " Libraries: ${LIBS}" | ||
32247 | if test ! -z "${SSHDLIBS}"; then | ||
32248 | echo " +for sshd: ${SSHDLIBS}" | ||
32249 | fi | ||
32250 | |||
32251 | echo "" | ||
32252 | |||
32253 | if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then | ||
32254 | echo "SVR4 style packages are supported with \"make package\"" | ||
32255 | echo "" | ||
32256 | fi | ||
32257 | |||
32258 | if test "x$PAM_MSG" = "xyes" ; then | ||
32259 | echo "PAM is enabled. You may need to install a PAM control file " | ||
32260 | echo "for sshd, otherwise password authentication may fail. " | ||
32261 | echo "Example PAM control files can be found in the contrib/ " | ||
32262 | echo "subdirectory" | ||
32263 | echo "" | ||
32264 | fi | ||
32265 | |||
32266 | if test ! -z "$RAND_HELPER_CMDHASH" ; then | ||
32267 | echo "WARNING: you are using the builtin random number collection " | ||
32268 | echo "service. Please read WARNING.RNG and request that your OS " | ||
32269 | echo "vendor includes kernel-based random number collection in " | ||
32270 | echo "future versions of your OS." | ||
32271 | echo "" | ||
32272 | fi | ||
32273 | |||
32274 | if test ! -z "$NO_PEERCHECK" ; then | ||
32275 | echo "WARNING: the operating system that you are using does not" | ||
32276 | echo "appear to support getpeereid(), getpeerucred() or the" | ||
32277 | echo "SO_PEERCRED getsockopt() option. These facilities are used to" | ||
32278 | echo "enforce security checks to prevent unauthorised connections to" | ||
32279 | echo "ssh-agent. Their absence increases the risk that a malicious" | ||
32280 | echo "user can connect to your agent." | ||
32281 | echo "" | ||
32282 | fi | ||
32283 | |||
32284 | if test "$AUDIT_MODULE" = "bsm" ; then | ||
32285 | echo "WARNING: BSM audit support is currently considered EXPERIMENTAL." | ||
32286 | echo "See the Solaris section in README.platform for details." | ||
32287 | fi | ||