call gssapi_set_username() for keyex method too
[openssh.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.469.4.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for OpenSSH Portable.
5 #
6 # Report bugs to <openssh-unix-dev@mindrot.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142   emulate sh
143   NULLCMD=:
144   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145   # is contrary to our usage.  Disable this feature.
146   alias -g '\${1+\"\$@\"}'='\"\$@\"'
147   setopt NO_GLOB_SUBST
148 else
149   case \`(set -o) 2>/dev/null\` in #(
150   *posix*) :
151     set -o posix ;; #(
152   *) :
153      ;;
154 esac
155 fi
156 "
157   as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171   exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179   if (eval "$as_required") 2>/dev/null; then :
180   as_have_required=yes
181 else
182   as_have_required=no
183 fi
184   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
186 else
187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 as_found=false
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 do
191   IFS=$as_save_IFS
192   test -z "$as_dir" && as_dir=.
193   as_found=:
194   case $as_dir in #(
195          /*)
196            for as_base in sh bash ksh sh5; do
197              # Try only shells that exist, to save several forks.
198              as_shell=$as_dir/$as_base
199              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   CONFIG_SHELL=$as_shell as_have_required=yes
202                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   break 2
204 fi
205 fi
206            done;;
207        esac
208   as_found=false
209 done
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212   CONFIG_SHELL=$SHELL as_have_required=yes
213 fi; }
214 IFS=$as_save_IFS
215
216
217       if test "x$CONFIG_SHELL" != x; then :
218   # We cannot yet assume a decent shell, so we have to provide a
219         # neutralization value for shells without unset; and this also
220         # works around shells that cannot unset nonexistent variables.
221         # Preserve -v and -x to the replacement shell.
222         BASH_ENV=/dev/null
223         ENV=/dev/null
224         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225         export CONFIG_SHELL
226         case $- in # ((((
227           *v*x* | *x*v* ) as_opts=-vx ;;
228           *v* ) as_opts=-v ;;
229           *x* ) as_opts=-x ;;
230           * ) as_opts= ;;
231         esac
232         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
233 fi
234
235     if test x$as_have_required = xno; then :
236   $as_echo "$0: This script requires a shell more modern than all"
237   $as_echo "$0: the shells that I found on your system."
238   if test x${ZSH_VERSION+set} = xset ; then
239     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241   else
242     $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: openssh-unix-dev@mindrot.org about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
247   fi
248   exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266   { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275   return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283   set +e
284   as_fn_set_status $1
285   exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294   case $as_dir in #(
295   -*) as_dir=./$as_dir;;
296   esac
297   test -d "$as_dir" || eval $as_mkdir_p || {
298     as_dirs=
299     while :; do
300       case $as_dir in #(
301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302       *) as_qdir=$as_dir;;
303       esac
304       as_dirs="'$as_qdir' $as_dirs"
305       as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307          X"$as_dir" : 'X\(//\)[^/]' \| \
308          X"$as_dir" : 'X\(//\)$' \| \
309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)[^/].*/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\).*/{
324             s//\1/
325             q
326           }
327           s/.*/./; q'`
328       test -d "$as_dir" && break
329     done
330     test -z "$as_dirs" || eval "mkdir $as_dirs"
331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342   eval 'as_fn_append ()
343   {
344     eval $1+=\$2
345   }'
346 else
347   as_fn_append ()
348   {
349     eval $1=\$$1\$2
350   }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359   eval 'as_fn_arith ()
360   {
361     as_val=$(( $* ))
362   }'
363 else
364   as_fn_arith ()
365   {
366     as_val=`expr "$@" || test $? -eq 1`
367   }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378   as_status=$1; test $as_status -eq 0 && as_status=1
379   if test "$4"; then
380     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382   fi
383   $as_echo "$as_me: error: $2" >&2
384   as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388    test "X`expr 00001 : '.*\(...\)'`" = X001; then
389   as_expr=expr
390 else
391   as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395   as_basename=basename
396 else
397   as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401   as_dirname=dirname
402 else
403   as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408          X"$0" : 'X\(//\)$' \| \
409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411     sed '/^.*\/\([^/][^/]*\)\/*$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\/\)$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\).*/{
420             s//\1/
421             q
422           }
423           s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433   as_lineno_1=$LINENO as_lineno_1a=$LINENO
434   as_lineno_2=$LINENO as_lineno_2a=$LINENO
435   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456   # Don't try to exec as it changes $[0], causing all sort of problems
457   # (the dirname of $[0] is not the place where we might find the
458   # original and so on.  Autoconf is especially sensitive to this).
459   . "./$as_me.lineno"
460   # Exit status is that of the last command.
461   exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467   case `echo 'xy\c'` in
468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
469   xy)  ECHO_C='\c';;
470   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471        ECHO_T=' ';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479   rm -f conf$$.dir/conf$$.file
480 else
481   rm -f conf$$.dir
482   mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485   if ln -s conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s='ln -s'
487     # ... but there are two gotchas:
488     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490     # In both cases, we have to default to `cp -p'.
491     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492       as_ln_s='cp -p'
493   elif ln conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s=ln
495   else
496     as_ln_s='cp -p'
497   fi
498 else
499   as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505   as_mkdir_p='mkdir -p "$as_dir"'
506 else
507   test -d ./-p && rmdir ./-p
508   as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512   as_test_x='test -x'
513 else
514   if ls -dL / >/dev/null 2>&1; then
515     as_ls_L_option=L
516   else
517     as_ls_L_option=
518   fi
519   as_test_x='
520     eval sh -c '\''
521       if test -d "$1"; then
522         test -d "$1/.";
523       else
524         case $1 in #(
525         -*)set "./$1";;
526         esac;
527         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528         ???[sx]*):;;*)false;;esac;fi
529     '\'' sh
530   '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='OpenSSH'
563 PACKAGE_TARNAME='openssh'
564 PACKAGE_VERSION='Portable'
565 PACKAGE_STRING='OpenSSH Portable'
566 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
567 PACKAGE_URL=''
568
569 ac_unique_file="ssh.c"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
572 #include <stdio.h>
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
575 #endif
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
578 #endif
579 #ifdef STDC_HEADERS
580 # include <stdlib.h>
581 # include <stddef.h>
582 #else
583 # ifdef HAVE_STDLIB_H
584 #  include <stdlib.h>
585 # endif
586 #endif
587 #ifdef HAVE_STRING_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #  include <memory.h>
590 # endif
591 # include <string.h>
592 #endif
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
595 #endif
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
598 #endif
599 #ifdef HAVE_STDINT_H
600 # include <stdint.h>
601 #endif
602 #ifdef HAVE_UNISTD_H
603 # include <unistd.h>
604 #endif"
605
606 ac_subst_vars='LTLIBOBJS
607 LIBOBJS
608 TEST_SSH_IPV6
609 piddir
610 user_path
611 mansubdir
612 MANTYPE
613 XAUTH_PATH
614 STRIP_OPT
615 xauth_path
616 PRIVSEP_PATH
617 KRB5CONF
618 SSHDLIBS
619 SSHLIBS
620 INSTALL_SSH_PRNG_CMDS
621 PROG_TAIL
622 PROG_IPCS
623 PROG_UPTIME
624 PROG_VMSTAT
625 PROG_DF
626 PROG_LASTLOG
627 PROG_LAST
628 PROG_WHO
629 PROG_W
630 PROG_SAR
631 PROG_PS
632 PROG_JSTAT
633 PROG_IFCONFIG
634 PROG_ARP
635 PROG_NETSTAT
636 PROG_LS
637 SSH_PRIVSEP_USER
638 INSTALL_SSH_RAND_HELPER
639 COMMENT_OUT_ECC
640 TEST_SSH_ECC
641 TEST_SSH_SHA256
642 LIBEDIT
643 PKGCONFIG
644 LD
645 PATH_PASSWD_PROG
646 LOGIN_PROGRAM_FALLBACK
647 STARTUP_SCRIPT_SHELL
648 MAKE_PACKAGE_SUPPORTED
649 PATH_USERADD_PROG
650 PATH_GROUPADD_PROG
651 MANFMT
652 TEST_SHELL
653 MANDOC
654 NROFF
655 GROFF
656 SH
657 TEST_MINUS_S_SH
658 ENT
659 SED
660 PERL
661 KILL
662 CAT
663 AR
664 INSTALL_DATA
665 INSTALL_SCRIPT
666 INSTALL_PROGRAM
667 RANLIB
668 AWK
669 EGREP
670 GREP
671 CPP
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_largefile
729 with_stackprotect
730 with_rpath
731 with_cflags
732 with_cppflags
733 with_ldflags
734 with_libs
735 with_Werror
736 with_solaris_contracts
737 with_solaris_projects
738 with_osfsia
739 with_zlib
740 with_zlib_version_check
741 with_skey
742 with_tcp_wrappers
743 with_libedit
744 with_audit
745 with_ssl_dir
746 with_openssl_header_check
747 with_ssl_engine
748 with_pam
749 with_rand_helper
750 with_prngd_port
751 with_prngd_socket
752 with_entropy_timeout
753 with_privsep_user
754 with_selinux
755 with_kerberos5
756 with_privsep_path
757 with_xauth
758 enable_strip
759 with_mantype
760 with_md5_passwords
761 with_shadow
762 with_ipaddr_display
763 enable_etc_default_login
764 with_default_path
765 with_superuser_path
766 with_4in6
767 with_bsd_auth
768 with_pid_dir
769 enable_lastlog
770 enable_utmp
771 enable_utmpx
772 enable_wtmp
773 enable_wtmpx
774 enable_libutil
775 enable_pututline
776 enable_pututxline
777 with_lastlog
778 '
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842   # If the previous option needs an argument, assign it.
843   if test -n "$ac_prev"; then
844     eval $ac_prev=\$ac_option
845     ac_prev=
846     continue
847   fi
848
849   case $ac_option in
850   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851   *=)   ac_optarg= ;;
852   *)    ac_optarg=yes ;;
853   esac
854
855   # Accept the important Cygnus configure options, so we can diagnose typos.
856
857   case $ac_dashdash$ac_option in
858   --)
859     ac_dashdash=yes ;;
860
861   -bindir | --bindir | --bindi | --bind | --bin | --bi)
862     ac_prev=bindir ;;
863   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864     bindir=$ac_optarg ;;
865
866   -build | --build | --buil | --bui | --bu)
867     ac_prev=build_alias ;;
868   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869     build_alias=$ac_optarg ;;
870
871   -cache-file | --cache-file | --cache-fil | --cache-fi \
872   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873     ac_prev=cache_file ;;
874   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876     cache_file=$ac_optarg ;;
877
878   --config-cache | -C)
879     cache_file=config.cache ;;
880
881   -datadir | --datadir | --datadi | --datad)
882     ac_prev=datadir ;;
883   -datadir=* | --datadir=* | --datadi=* | --datad=*)
884     datadir=$ac_optarg ;;
885
886   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887   | --dataroo | --dataro | --datar)
888     ac_prev=datarootdir ;;
889   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891     datarootdir=$ac_optarg ;;
892
893   -disable-* | --disable-*)
894     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895     # Reject names that are not valid shell variable names.
896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897       as_fn_error $? "invalid feature name: $ac_useropt"
898     ac_useropt_orig=$ac_useropt
899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900     case $ac_user_opts in
901       *"
902 "enable_$ac_useropt"
903 "*) ;;
904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905          ac_unrecognized_sep=', ';;
906     esac
907     eval enable_$ac_useropt=no ;;
908
909   -docdir | --docdir | --docdi | --doc | --do)
910     ac_prev=docdir ;;
911   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912     docdir=$ac_optarg ;;
913
914   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915     ac_prev=dvidir ;;
916   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917     dvidir=$ac_optarg ;;
918
919   -enable-* | --enable-*)
920     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923       as_fn_error $? "invalid feature name: $ac_useropt"
924     ac_useropt_orig=$ac_useropt
925     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926     case $ac_user_opts in
927       *"
928 "enable_$ac_useropt"
929 "*) ;;
930       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931          ac_unrecognized_sep=', ';;
932     esac
933     eval enable_$ac_useropt=\$ac_optarg ;;
934
935   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937   | --exec | --exe | --ex)
938     ac_prev=exec_prefix ;;
939   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941   | --exec=* | --exe=* | --ex=*)
942     exec_prefix=$ac_optarg ;;
943
944   -gas | --gas | --ga | --g)
945     # Obsolete; use --with-gas.
946     with_gas=yes ;;
947
948   -help | --help | --hel | --he | -h)
949     ac_init_help=long ;;
950   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951     ac_init_help=recursive ;;
952   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953     ac_init_help=short ;;
954
955   -host | --host | --hos | --ho)
956     ac_prev=host_alias ;;
957   -host=* | --host=* | --hos=* | --ho=*)
958     host_alias=$ac_optarg ;;
959
960   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961     ac_prev=htmldir ;;
962   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963   | --ht=*)
964     htmldir=$ac_optarg ;;
965
966   -includedir | --includedir | --includedi | --included | --include \
967   | --includ | --inclu | --incl | --inc)
968     ac_prev=includedir ;;
969   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970   | --includ=* | --inclu=* | --incl=* | --inc=*)
971     includedir=$ac_optarg ;;
972
973   -infodir | --infodir | --infodi | --infod | --info | --inf)
974     ac_prev=infodir ;;
975   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976     infodir=$ac_optarg ;;
977
978   -libdir | --libdir | --libdi | --libd)
979     ac_prev=libdir ;;
980   -libdir=* | --libdir=* | --libdi=* | --libd=*)
981     libdir=$ac_optarg ;;
982
983   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984   | --libexe | --libex | --libe)
985     ac_prev=libexecdir ;;
986   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987   | --libexe=* | --libex=* | --libe=*)
988     libexecdir=$ac_optarg ;;
989
990   -localedir | --localedir | --localedi | --localed | --locale)
991     ac_prev=localedir ;;
992   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993     localedir=$ac_optarg ;;
994
995   -localstatedir | --localstatedir | --localstatedi | --localstated \
996   | --localstate | --localstat | --localsta | --localst | --locals)
997     ac_prev=localstatedir ;;
998   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000     localstatedir=$ac_optarg ;;
1001
1002   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003     ac_prev=mandir ;;
1004   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005     mandir=$ac_optarg ;;
1006
1007   -nfp | --nfp | --nf)
1008     # Obsolete; use --without-fp.
1009     with_fp=no ;;
1010
1011   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012   | --no-cr | --no-c | -n)
1013     no_create=yes ;;
1014
1015   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017     no_recursion=yes ;;
1018
1019   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021   | --oldin | --oldi | --old | --ol | --o)
1022     ac_prev=oldincludedir ;;
1023   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026     oldincludedir=$ac_optarg ;;
1027
1028   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029     ac_prev=prefix ;;
1030   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031     prefix=$ac_optarg ;;
1032
1033   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034   | --program-pre | --program-pr | --program-p)
1035     ac_prev=program_prefix ;;
1036   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038     program_prefix=$ac_optarg ;;
1039
1040   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041   | --program-suf | --program-su | --program-s)
1042     ac_prev=program_suffix ;;
1043   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045     program_suffix=$ac_optarg ;;
1046
1047   -program-transform-name | --program-transform-name \
1048   | --program-transform-nam | --program-transform-na \
1049   | --program-transform-n | --program-transform- \
1050   | --program-transform | --program-transfor \
1051   | --program-transfo | --program-transf \
1052   | --program-trans | --program-tran \
1053   | --progr-tra | --program-tr | --program-t)
1054     ac_prev=program_transform_name ;;
1055   -program-transform-name=* | --program-transform-name=* \
1056   | --program-transform-nam=* | --program-transform-na=* \
1057   | --program-transform-n=* | --program-transform-=* \
1058   | --program-transform=* | --program-transfor=* \
1059   | --program-transfo=* | --program-transf=* \
1060   | --program-trans=* | --program-tran=* \
1061   | --progr-tra=* | --program-tr=* | --program-t=*)
1062     program_transform_name=$ac_optarg ;;
1063
1064   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065     ac_prev=pdfdir ;;
1066   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067     pdfdir=$ac_optarg ;;
1068
1069   -psdir | --psdir | --psdi | --psd | --ps)
1070     ac_prev=psdir ;;
1071   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072     psdir=$ac_optarg ;;
1073
1074   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075   | -silent | --silent | --silen | --sile | --sil)
1076     silent=yes ;;
1077
1078   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079     ac_prev=sbindir ;;
1080   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081   | --sbi=* | --sb=*)
1082     sbindir=$ac_optarg ;;
1083
1084   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086   | --sharedst | --shareds | --shared | --share | --shar \
1087   | --sha | --sh)
1088     ac_prev=sharedstatedir ;;
1089   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092   | --sha=* | --sh=*)
1093     sharedstatedir=$ac_optarg ;;
1094
1095   -site | --site | --sit)
1096     ac_prev=site ;;
1097   -site=* | --site=* | --sit=*)
1098     site=$ac_optarg ;;
1099
1100   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101     ac_prev=srcdir ;;
1102   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103     srcdir=$ac_optarg ;;
1104
1105   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106   | --syscon | --sysco | --sysc | --sys | --sy)
1107     ac_prev=sysconfdir ;;
1108   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110     sysconfdir=$ac_optarg ;;
1111
1112   -target | --target | --targe | --targ | --tar | --ta | --t)
1113     ac_prev=target_alias ;;
1114   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115     target_alias=$ac_optarg ;;
1116
1117   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118     verbose=yes ;;
1119
1120   -version | --version | --versio | --versi | --vers | -V)
1121     ac_init_version=: ;;
1122
1123   -with-* | --with-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       as_fn_error $? "invalid package name: $ac_useropt"
1128     ac_useropt_orig=$ac_useropt
1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130     case $ac_user_opts in
1131       *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135          ac_unrecognized_sep=', ';;
1136     esac
1137     eval with_$ac_useropt=\$ac_optarg ;;
1138
1139   -without-* | --without-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     case $ac_envvar in #(
1181       '' | [0-9]* | *[!_$as_cr_alnum]* )
1182       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183     esac
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204   case $enable_option_checking in
1205     no) ;;
1206     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208   esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213                 datadir sysconfdir sharedstatedir localstatedir includedir \
1214                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215                 libdir localedir mandir
1216 do
1217   eval ac_val=\$$ac_var
1218   # Remove trailing slashes.
1219   case $ac_val in
1220     */ )
1221       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222       eval $ac_var=\$ac_val;;
1223   esac
1224   # Be sure to have absolute directory names.
1225   case $ac_val in
1226     [\\/$]* | ?:[\\/]* )  continue;;
1227     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228   esac
1229   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1244     If a cross compiler is detected then cross compile mode will be used" >&2
1245   elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247   fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259   as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261   as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266   ac_srcdir_defaulted=yes
1267   # Try the directory containing this script, then the parent directory.
1268   ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270          X"$as_myself" : 'X\(//\)[^/]' \| \
1271          X"$as_myself" : 'X\(//\)$' \| \
1272          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\/\)[^/].*/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\).*/{
1287             s//\1/
1288             q
1289           }
1290           s/.*/./; q'`
1291   srcdir=$ac_confdir
1292   if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294   fi
1295 else
1296   ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305         pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308   srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_env_${ac_var}_value=\$${ac_var}
1319   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327   # Omit some internal or obsolete options to make the list less imposing.
1328   # This message is too long to be a string in the A/UX 3.1 sh.
1329   cat <<_ACEOF
1330 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE.  See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340   -h, --help              display this help and exit
1341       --help=short        display options specific to this package
1342       --help=recursive    display the short help of all the included packages
1343   -V, --version           display version information and exit
1344   -q, --quiet, --silent   do not print \`checking ...' messages
1345       --cache-file=FILE   cache test results in FILE [disabled]
1346   -C, --config-cache      alias for \`--cache-file=config.cache'
1347   -n, --no-create         do not create output files
1348       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351   --prefix=PREFIX         install architecture-independent files in PREFIX
1352                           [$ac_default_prefix]
1353   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1354                           [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364   --bindir=DIR            user executables [EPREFIX/bin]
1365   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1366   --libexecdir=DIR        program executables [EPREFIX/libexec]
1367   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1368   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1369   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1370   --libdir=DIR            object code libraries [EPREFIX/lib]
1371   --includedir=DIR        C header files [PREFIX/include]
1372   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1373   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1374   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1375   --infodir=DIR           info documentation [DATAROOTDIR/info]
1376   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1377   --mandir=DIR            man documentation [DATAROOTDIR/man]
1378   --docdir=DIR            documentation root [DATAROOTDIR/doc/openssh]
1379   --htmldir=DIR           html documentation [DOCDIR]
1380   --dvidir=DIR            dvi documentation [DOCDIR]
1381   --pdfdir=DIR            pdf documentation [DOCDIR]
1382   --psdir=DIR             ps documentation [DOCDIR]
1383 _ACEOF
1384
1385   cat <<\_ACEOF
1386
1387 System types:
1388   --build=BUILD     configure for building on BUILD [guessed]
1389   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of OpenSSH Portable:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-option-checking  ignore unrecognized --enable/--with options
1401   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403   --disable-largefile     omit support for large files
1404   --disable-strip         Disable calling strip(1) on install
1405   --disable-etc-default-login Disable using PATH from /etc/default/login no
1406   --disable-lastlog       disable use of lastlog even if detected no
1407   --disable-utmp          disable use of utmp even if detected no
1408   --disable-utmpx         disable use of utmpx even if detected no
1409   --disable-wtmp          disable use of wtmp even if detected no
1410   --disable-wtmpx         disable use of wtmpx even if detected no
1411   --disable-libutil       disable use of libutil (login() etc.) no
1412   --disable-pututline     disable use of pututline() etc. (uwtmp) no
1413   --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
1414
1415 Optional Packages:
1416   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1417   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1418   --without-stackprotect  Don't use compiler's stack protection
1419   --without-rpath         Disable auto-added -R linker paths
1420   --with-cflags           Specify additional flags to pass to compiler
1421   --with-cppflags         Specify additional flags to pass to preprocessor
1422   --with-ldflags          Specify additional flags to pass to linker
1423   --with-libs             Specify additional libraries to link with
1424   --with-Werror           Build main code with -Werror
1425   --with-solaris-contracts Enable Solaris process contracts (experimental)
1426   --with-solaris-projects Enable Solaris projects (experimental)
1427   --with-osfsia           Enable Digital Unix SIA
1428   --with-zlib=PATH        Use zlib in PATH
1429   --without-zlib-version-check Disable zlib version check
1430   --with-skey[=PATH]      Enable S/Key support (optionally in PATH)
1431   --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1432   --with-libedit[=PATH]   Enable libedit support for sftp
1433   --with-audit=module     Enable audit support (modules=debug,bsm,linux)
1434   --with-ssl-dir=PATH     Specify path to OpenSSL installation
1435   --without-openssl-header-check Disable OpenSSL version consistency check
1436   --with-ssl-engine       Enable OpenSSL (hardware) ENGINE support
1437   --with-pam              Enable PAM support
1438   --with-rand-helper      Use subprocess to gather strong randomness
1439   --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
1440   --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1441   --with-entropy-timeout  Specify entropy gathering command timeout (msec)
1442   --with-privsep-user=user Specify non-privileged user for privilege separation
1443   --with-selinux          Enable SELinux support
1444   --with-kerberos5=PATH   Enable Kerberos 5 support
1445   --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1446   --with-xauth=PATH       Specify path to xauth program
1447   --with-mantype=man|cat|doc  Set man page type
1448   --with-md5-passwords    Enable use of MD5 passwords
1449   --without-shadow        Disable shadow password support
1450   --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY
1451   --with-default-path=    Specify default \$PATH environment for server
1452   --with-superuser-path=  Specify different path for super-user
1453   --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
1454   --with-bsd-auth         Enable BSD auth support
1455   --with-pid-dir=PATH     Specify location of ssh.pid file
1456   --with-lastlog=FILE|DIR specify lastlog location common locations
1457
1458 Some influential environment variables:
1459   CC          C compiler command
1460   CFLAGS      C compiler flags
1461   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462               nonstandard directory <lib dir>
1463   LIBS        libraries to pass to the linker, e.g. -l<library>
1464   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CPP         C preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <openssh-unix-dev@mindrot.org>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" ||
1480       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481       continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 OpenSSH configure Portable
1535 generated by GNU Autoconf 2.68
1536
1537 Copyright (C) 2010 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541   exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext
1555   if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_compile") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest.$ac_objext; then :
1574   ac_retval=0
1575 else
1576   $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579         ac_retval=1
1580 fi
1581   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582   as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_run LINENO
1587 # ----------------------
1588 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1589 # that executables *can* be run.
1590 ac_fn_c_try_run ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   if { { ac_try="$ac_link"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_link") 2>&5
1601   ac_status=$?
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1604   { { case "(($ac_try" in
1605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606   *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610   (eval "$ac_try") 2>&5
1611   ac_status=$?
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; }; }; then :
1614   ac_retval=0
1615 else
1616   $as_echo "$as_me: program exited with status $ac_status" >&5
1617        $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620        ac_retval=$ac_status
1621 fi
1622   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_run
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637   *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642   ac_status=$?
1643   if test -s conftest.err; then
1644     grep -v '^ *+' conftest.err >conftest.er1
1645     cat conftest.er1 >&5
1646     mv -f conftest.er1 conftest.err
1647   fi
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } > conftest.i && {
1650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651          test ! -s conftest.err
1652        }; then :
1653   ac_retval=0
1654 else
1655   $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658     ac_retval=1
1659 fi
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675   $as_echo_n "(cached) " >&6
1676 else
1677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h.  */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683   eval "$3=yes"
1684 else
1685   eval "$3=no"
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 eval ac_res=\$$3
1690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694 } # ac_fn_c_check_header_compile
1695
1696 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1697 # ---------------------------------------------
1698 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1699 # accordingly.
1700 ac_fn_c_check_decl ()
1701 {
1702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703   as_decl_name=`echo $2|sed 's/ *(.*//'`
1704   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1706 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1707 if eval \${$3+:} false; then :
1708   $as_echo_n "(cached) " >&6
1709 else
1710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h.  */
1712 $4
1713 int
1714 main ()
1715 {
1716 #ifndef $as_decl_name
1717 #ifdef __cplusplus
1718   (void) $as_decl_use;
1719 #else
1720   (void) $as_decl_name;
1721 #endif
1722 #endif
1723
1724   ;
1725   return 0;
1726 }
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729   eval "$3=yes"
1730 else
1731   eval "$3=no"
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 fi
1735 eval ac_res=\$$3
1736                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739
1740 } # ac_fn_c_check_decl
1741
1742 # ac_fn_c_try_link LINENO
1743 # -----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_link ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   rm -f conftest.$ac_objext conftest$ac_exeext
1749   if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_link") 2>conftest.err
1757   ac_status=$?
1758   if test -s conftest.err; then
1759     grep -v '^ *+' conftest.err >conftest.er1
1760     cat conftest.er1 >&5
1761     mv -f conftest.er1 conftest.err
1762   fi
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; } && {
1765          test -z "$ac_c_werror_flag" ||
1766          test ! -s conftest.err
1767        } && test -s conftest$ac_exeext && {
1768          test "$cross_compiling" = yes ||
1769          $as_test_x conftest$ac_exeext
1770        }; then :
1771   ac_retval=0
1772 else
1773   $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776         ac_retval=1
1777 fi
1778   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780   # interfere with the next link command; also delete a directory that is
1781   # left behind by Apple's compiler.  We do this before executing the actions.
1782   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_link
1787
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1792 # accordingly.
1793 ac_fn_c_check_header_mongrel ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   if eval \${$3+:} false; then :
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 else
1806   # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   ac_header_compiler=yes
1816 else
1817   ac_header_compiler=no
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1822
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831   ac_header_preproc=yes
1832 else
1833   ac_header_preproc=no
1834 fi
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1838
1839 # So?  What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841   yes:no: )
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846     ;;
1847   no:yes:* )
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ( $as_echo "## ------------------------------------------- ##
1859 ## Report this to openssh-unix-dev@mindrot.org ##
1860 ## ------------------------------------------- ##"
1861      ) | sed "s/^/$as_me: WARNING:     /" >&2
1862     ;;
1863 esac
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867   $as_echo_n "(cached) " >&6
1868 else
1869   eval "$3=\$ac_header_compiler"
1870 fi
1871 eval ac_res=\$$3
1872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 fi
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_header_mongrel
1878
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1894 #define $2 innocuous_$2
1895
1896 /* System header to define __stub macros and hopefully few prototypes,
1897     which can conflict with char $2 (); below.
1898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899     <limits.h> exists even on freestanding compilers.  */
1900
1901 #ifdef __STDC__
1902 # include <limits.h>
1903 #else
1904 # include <assert.h>
1905 #endif
1906
1907 #undef $2
1908
1909 /* Override any GCC internal prototype to avoid an error.
1910    Use char because int might match the return type of a GCC
1911    builtin and then its argument prototype would still apply.  */
1912 #ifdef __cplusplus
1913 extern "C"
1914 #endif
1915 char $2 ();
1916 /* The GNU C library defines this for functions which it implements
1917     to always fail with ENOSYS.  Some functions are actually named
1918     something starting with __ and the normal name is an alias.  */
1919 #if defined __stub_$2 || defined __stub___$2
1920 choke me
1921 #endif
1922
1923 int
1924 main ()
1925 {
1926 return $2 ();
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_link "$LINENO"; then :
1932   eval "$3=yes"
1933 else
1934   eval "$3=no"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext \
1937     conftest$ac_exeext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_func
1945
1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1947 # -------------------------------------------
1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
1949 # variable VAR accordingly.
1950 ac_fn_c_check_type ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956   $as_echo_n "(cached) " >&6
1957 else
1958   eval "$3=no"
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $4
1962 int
1963 main ()
1964 {
1965 if (sizeof ($2))
1966          return 0;
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h.  */
1974 $4
1975 int
1976 main ()
1977 {
1978 if (sizeof (($2)))
1979             return 0;
1980   ;
1981   return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985
1986 else
1987   eval "$3=yes"
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_type
1999
2000 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2001 # --------------------------------------------
2002 # Tries to find the compile-time value of EXPR in a program that includes
2003 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2004 # computed
2005 ac_fn_c_compute_int ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   if test "$cross_compiling" = yes; then
2009     # Depending upon the size, compute the lo and hi bounds.
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $4
2013 int
2014 main ()
2015 {
2016 static int test_array [1 - 2 * !(($2) >= 0)];
2017 test_array [0] = 0
2018
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   ac_lo=0 ac_mid=0
2025   while :; do
2026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $4
2029 int
2030 main ()
2031 {
2032 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2033 test_array [0] = 0
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   ac_hi=$ac_mid; break
2041 else
2042   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2043                         if test $ac_lo -le $ac_mid; then
2044                           ac_lo= ac_hi=
2045                           break
2046                         fi
2047                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050   done
2051 else
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) < 0)];
2059 test_array [0] = 0
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066   ac_hi=-1 ac_mid=-1
2067   while :; do
2068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 $4
2071 int
2072 main ()
2073 {
2074 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2075 test_array [0] = 0
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082   ac_lo=$ac_mid; break
2083 else
2084   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2085                         if test $ac_mid -le $ac_hi; then
2086                           ac_lo= ac_hi=
2087                           break
2088                         fi
2089                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092   done
2093 else
2094   ac_lo= ac_hi=
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 # Binary search between lo and hi bounds.
2100 while test "x$ac_lo" != "x$ac_hi"; do
2101   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h.  */
2104 $4
2105 int
2106 main ()
2107 {
2108 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109 test_array [0] = 0
2110
2111   ;
2112   return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116   ac_hi=$ac_mid
2117 else
2118   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 done
2122 case $ac_lo in #((
2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2124 '') ac_retval=1 ;;
2125 esac
2126   else
2127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 static long int longval () { return $2; }
2131 static unsigned long int ulongval () { return $2; }
2132 #include <stdio.h>
2133 #include <stdlib.h>
2134 int
2135 main ()
2136 {
2137
2138   FILE *f = fopen ("conftest.val", "w");
2139   if (! f)
2140     return 1;
2141   if (($2) < 0)
2142     {
2143       long int i = longval ();
2144       if (i != ($2))
2145         return 1;
2146       fprintf (f, "%ld", i);
2147     }
2148   else
2149     {
2150       unsigned long int i = ulongval ();
2151       if (i != ($2))
2152         return 1;
2153       fprintf (f, "%lu", i);
2154     }
2155   /* Do not output a trailing newline, as this causes \r\n confusion
2156      on some platforms.  */
2157   return ferror (f) || fclose (f) != 0;
2158
2159   ;
2160   return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_run "$LINENO"; then :
2164   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2165 else
2166   ac_retval=1
2167 fi
2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2169   conftest.$ac_objext conftest.beam conftest.$ac_ext
2170 rm -f conftest.val
2171
2172   fi
2173   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174   as_fn_set_status $ac_retval
2175
2176 } # ac_fn_c_compute_int
2177
2178 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2179 # ----------------------------------------------------
2180 # Tries to find if the field MEMBER exists in type AGGR, after including
2181 # INCLUDES, setting cache variable VAR accordingly.
2182 ac_fn_c_check_member ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2186 $as_echo_n "checking for $2.$3... " >&6; }
2187 if eval \${$4+:} false; then :
2188   $as_echo_n "(cached) " >&6
2189 else
2190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192 $5
2193 int
2194 main ()
2195 {
2196 static $2 ac_aggr;
2197 if (ac_aggr.$3)
2198 return 0;
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204   eval "$4=yes"
2205 else
2206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h.  */
2208 $5
2209 int
2210 main ()
2211 {
2212 static $2 ac_aggr;
2213 if (sizeof ac_aggr.$3)
2214 return 0;
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220   eval "$4=yes"
2221 else
2222   eval "$4=no"
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 fi
2228 eval ac_res=\$$4
2229                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232
2233 } # ac_fn_c_check_member
2234 cat >config.log <<_ACEOF
2235 This file contains any messages produced by compilers while
2236 running configure, to aid debugging if configure makes a mistake.
2237
2238 It was created by OpenSSH $as_me Portable, which was
2239 generated by GNU Autoconf 2.68.  Invocation command line was
2240
2241   $ $0 $@
2242
2243 _ACEOF
2244 exec 5>>config.log
2245 {
2246 cat <<_ASUNAME
2247 ## --------- ##
2248 ## Platform. ##
2249 ## --------- ##
2250
2251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2256
2257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2258 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2259
2260 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2261 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2263 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2264 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2265 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2266 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2267
2268 _ASUNAME
2269
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2272 do
2273   IFS=$as_save_IFS
2274   test -z "$as_dir" && as_dir=.
2275     $as_echo "PATH: $as_dir"
2276   done
2277 IFS=$as_save_IFS
2278
2279 } >&5
2280
2281 cat >&5 <<_ACEOF
2282
2283
2284 ## ----------- ##
2285 ## Core tests. ##
2286 ## ----------- ##
2287
2288 _ACEOF
2289
2290
2291 # Keep a trace of the command line.
2292 # Strip out --no-create and --no-recursion so they do not pile up.
2293 # Strip out --silent because we don't want to record it for future runs.
2294 # Also quote any args containing shell meta-characters.
2295 # Make two passes to allow for proper duplicate-argument suppression.
2296 ac_configure_args=
2297 ac_configure_args0=
2298 ac_configure_args1=
2299 ac_must_keep_next=false
2300 for ac_pass in 1 2
2301 do
2302   for ac_arg
2303   do
2304     case $ac_arg in
2305     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2306     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2307     | -silent | --silent | --silen | --sile | --sil)
2308       continue ;;
2309     *\'*)
2310       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2311     esac
2312     case $ac_pass in
2313     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2314     2)
2315       as_fn_append ac_configure_args1 " '$ac_arg'"
2316       if test $ac_must_keep_next = true; then
2317         ac_must_keep_next=false # Got value, back to normal.
2318       else
2319         case $ac_arg in
2320           *=* | --config-cache | -C | -disable-* | --disable-* \
2321           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2322           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2323           | -with-* | --with-* | -without-* | --without-* | --x)
2324             case "$ac_configure_args0 " in
2325               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2326             esac
2327             ;;
2328           -* ) ac_must_keep_next=true ;;
2329         esac
2330       fi
2331       as_fn_append ac_configure_args " '$ac_arg'"
2332       ;;
2333     esac
2334   done
2335 done
2336 { ac_configure_args0=; unset ac_configure_args0;}
2337 { ac_configure_args1=; unset ac_configure_args1;}
2338
2339 # When interrupted or exit'd, cleanup temporary files, and complete
2340 # config.log.  We remove comments because anyway the quotes in there
2341 # would cause problems or look ugly.
2342 # WARNING: Use '\'' to represent an apostrophe within the trap.
2343 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2344 trap 'exit_status=$?
2345   # Save into config.log some information that might help in debugging.
2346   {
2347     echo
2348
2349     $as_echo "## ---------------- ##
2350 ## Cache variables. ##
2351 ## ---------------- ##"
2352     echo
2353     # The following way of writing the cache mishandles newlines in values,
2354 (
2355   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2356     eval ac_val=\$$ac_var
2357     case $ac_val in #(
2358     *${as_nl}*)
2359       case $ac_var in #(
2360       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2362       esac
2363       case $ac_var in #(
2364       _ | IFS | as_nl) ;; #(
2365       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2366       *) { eval $ac_var=; unset $ac_var;} ;;
2367       esac ;;
2368     esac
2369   done
2370   (set) 2>&1 |
2371     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2372     *${as_nl}ac_space=\ *)
2373       sed -n \
2374         "s/'\''/'\''\\\\'\'''\''/g;
2375           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2376       ;; #(
2377     *)
2378       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2379       ;;
2380     esac |
2381     sort
2382 )
2383     echo
2384
2385     $as_echo "## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##"
2388     echo
2389     for ac_var in $ac_subst_vars
2390     do
2391       eval ac_val=\$$ac_var
2392       case $ac_val in
2393       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394       esac
2395       $as_echo "$ac_var='\''$ac_val'\''"
2396     done | sort
2397     echo
2398
2399     if test -n "$ac_subst_files"; then
2400       $as_echo "## ------------------- ##
2401 ## File substitutions. ##
2402 ## ------------------- ##"
2403       echo
2404       for ac_var in $ac_subst_files
2405       do
2406         eval ac_val=\$$ac_var
2407         case $ac_val in
2408         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409         esac
2410         $as_echo "$ac_var='\''$ac_val'\''"
2411       done | sort
2412       echo
2413     fi
2414
2415     if test -s confdefs.h; then
2416       $as_echo "## ----------- ##
2417 ## confdefs.h. ##
2418 ## ----------- ##"
2419       echo
2420       cat confdefs.h
2421       echo
2422     fi
2423     test "$ac_signal" != 0 &&
2424       $as_echo "$as_me: caught signal $ac_signal"
2425     $as_echo "$as_me: exit $exit_status"
2426   } >&5
2427   rm -f core *.core core.conftest.* &&
2428     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2429     exit $exit_status
2430 ' 0
2431 for ac_signal in 1 2 13 15; do
2432   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2433 done
2434 ac_signal=0
2435
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2438
2439 $as_echo "/* confdefs.h */" > confdefs.h
2440
2441 # Predefined preprocessor variables.
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_NAME "$PACKAGE_NAME"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2449 _ACEOF
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2453 _ACEOF
2454
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_STRING "$PACKAGE_STRING"
2457 _ACEOF
2458
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2461 _ACEOF
2462
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_URL "$PACKAGE_URL"
2465 _ACEOF
2466
2467
2468 # Let the site file select an alternate cache file if it wants to.
2469 # Prefer an explicitly selected file to automatically selected ones.
2470 ac_site_file1=NONE
2471 ac_site_file2=NONE
2472 if test -n "$CONFIG_SITE"; then
2473   # We do not want a PATH search for config.site.
2474   case $CONFIG_SITE in #((
2475     -*)  ac_site_file1=./$CONFIG_SITE;;
2476     */*) ac_site_file1=$CONFIG_SITE;;
2477     *)   ac_site_file1=./$CONFIG_SITE;;
2478   esac
2479 elif test "x$prefix" != xNONE; then
2480   ac_site_file1=$prefix/share/config.site
2481   ac_site_file2=$prefix/etc/config.site
2482 else
2483   ac_site_file1=$ac_default_prefix/share/config.site
2484   ac_site_file2=$ac_default_prefix/etc/config.site
2485 fi
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2487 do
2488   test "x$ac_site_file" = xNONE && continue
2489   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492     sed 's/^/| /' "$ac_site_file" >&5
2493     . "$ac_site_file" \
2494       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 as_fn_error $? "failed to load site script $ac_site_file
2497 See \`config.log' for more details" "$LINENO" 5; }
2498   fi
2499 done
2500
2501 if test -r "$cache_file"; then
2502   # Some versions of bash will fail to source /dev/null (special files
2503   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2504   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2505     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2507     case $cache_file in
2508       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509       *)                      . "./$cache_file";;
2510     esac
2511   fi
2512 else
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2515   >$cache_file
2516 fi
2517
2518 # Check that the precious variables saved in the cache have kept the same
2519 # value.
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523   eval ac_new_set=\$ac_env_${ac_var}_set
2524   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525   eval ac_new_val=\$ac_env_${ac_var}_value
2526   case $ac_old_set,$ac_new_set in
2527     set,)
2528       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530       ac_cache_corrupted=: ;;
2531     ,set)
2532       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534       ac_cache_corrupted=: ;;
2535     ,);;
2536     *)
2537       if test "x$ac_old_val" != "x$ac_new_val"; then
2538         # differences in whitespace do not lead to failure.
2539         ac_old_val_w=`echo x $ac_old_val`
2540         ac_new_val_w=`echo x $ac_new_val`
2541         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544           ac_cache_corrupted=:
2545         else
2546           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548           eval $ac_var=\$ac_old_val
2549         fi
2550         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2551 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2552         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2554       fi;;
2555   esac
2556   # Pass precious variables to config.status.
2557   if test "$ac_new_set" = set; then
2558     case $ac_new_val in
2559     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560     *) ac_arg=$ac_var=$ac_new_val ;;
2561     esac
2562     case " $ac_configure_args " in
2563       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2564       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2565     esac
2566   fi
2567 done
2568 if $ac_cache_corrupted; then
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2574 fi
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2578
2579 ac_ext=c
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584
2585
2586
2587
2588
2589 # local macros
2590
2591
2592 ac_config_headers="$ac_config_headers config.h"
2593
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_CC+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   if test -n "$CC"; then
2608   ac_cv_prog_CC="$CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 CC=$ac_cv_prog_CC
2628 if test -n "$CC"; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2630 $as_echo "$CC" >&6; }
2631 else
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 fi
2638 if test -z "$ac_cv_prog_CC"; then
2639   ac_ct_CC=$CC
2640   # Extract the first word of "gcc", so it can be a program name with args.
2641 set dummy gcc; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$ac_ct_CC"; then
2648   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_ac_ct_CC="gcc"
2658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662   done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2668 if test -n "$ac_ct_CC"; then
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2670 $as_echo "$ac_ct_CC" >&6; }
2671 else
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676   if test "x$ac_ct_CC" = x; then
2677     CC=""
2678   else
2679     case $cross_compiling:$ac_tool_warned in
2680 yes:)
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685     CC=$ac_ct_CC
2686   fi
2687 else
2688   CC="$ac_cv_prog_CC"
2689 fi
2690
2691 if test -z "$CC"; then
2692           if test -n "$ac_tool_prefix"; then
2693     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}cc; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_CC+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   if test -n "$CC"; then
2701   ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708     for ac_exec_ext in '' $ac_executable_extensions; do
2709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710     ac_cv_prog_CC="${ac_tool_prefix}cc"
2711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715   done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 $as_echo "$CC" >&6; }
2724 else
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730   fi
2731 fi
2732 if test -z "$CC"; then
2733   # Extract the first word of "cc", so it can be a program name with args.
2734 set dummy cc; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_CC+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   if test -n "$CC"; then
2741   ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743   ac_prog_rejected=no
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749     for ac_exec_ext in '' $ac_executable_extensions; do
2750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2752        ac_prog_rejected=yes
2753        continue
2754      fi
2755     ac_cv_prog_CC="cc"
2756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760   done
2761 IFS=$as_save_IFS
2762
2763 if test $ac_prog_rejected = yes; then
2764   # We found a bogon in the path, so make sure we never use it.
2765   set dummy $ac_cv_prog_CC
2766   shift
2767   if test $# != 0; then
2768     # We chose a different compiler from the bogus one.
2769     # However, it has the same basename, so the bogon will be chosen
2770     # first if we set CC to just the basename; use the full file name.
2771     shift
2772     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2773   fi
2774 fi
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$CC"; then
2789   if test -n "$ac_tool_prefix"; then
2790   for ac_prog in cl.exe
2791   do
2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if ${ac_cv_prog_CC+:} false; then :
2797   $as_echo_n "(cached) " >&6
2798 else
2799   if test -n "$CC"; then
2800   ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807     for ac_exec_ext in '' $ac_executable_extensions; do
2808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814   done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829     test -n "$CC" && break
2830   done
2831 fi
2832 if test -z "$CC"; then
2833   ac_ct_CC=$CC
2834   for ac_prog in cl.exe
2835 do
2836   # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2841   $as_echo_n "(cached) " >&6
2842 else
2843   if test -n "$ac_ct_CC"; then
2844   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851     for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_ac_ct_CC="$ac_prog"
2854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858   done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873   test -n "$ac_ct_CC" && break
2874 done
2875
2876   if test "x$ac_ct_CC" = x; then
2877     CC=""
2878   else
2879     case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885     CC=$ac_ct_CC
2886   fi
2887 fi
2888
2889 fi
2890
2891
2892 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894 as_fn_error $? "no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details" "$LINENO" 5; }
2896
2897 # Provide some information about the compiler.
2898 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2899 set X $ac_compile
2900 ac_compiler=$2
2901 for ac_option in --version -v -V -qversion; do
2902   { { ac_try="$ac_compiler $ac_option >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908 $as_echo "$ac_try_echo"; } >&5
2909   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2910   ac_status=$?
2911   if test -s conftest.err; then
2912     sed '10a\
2913 ... rest of stderr output deleted ...
2914          10q' conftest.err >conftest.er1
2915     cat conftest.er1 >&5
2916   fi
2917   rm -f conftest.er1 conftest.err
2918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919   test $ac_status = 0; }
2920 done
2921
2922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2923 /* end confdefs.h.  */
2924
2925 int
2926 main ()
2927 {
2928
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 ac_clean_files_save=$ac_clean_files
2934 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2935 # Try to create an executable without -o first, disregard a.out.
2936 # It will help us diagnose broken compilers, and finding out an intuition
2937 # of exeext.
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2939 $as_echo_n "checking whether the C compiler works... " >&6; }
2940 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2941
2942 # The possible output files:
2943 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2944
2945 ac_rmfiles=
2946 for ac_file in $ac_files
2947 do
2948   case $ac_file in
2949     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2950     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2951   esac
2952 done
2953 rm -f $ac_rmfiles
2954
2955 if { { ac_try="$ac_link_default"
2956 case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 $as_echo "$ac_try_echo"; } >&5
2962   (eval "$ac_link_default") 2>&5
2963   ac_status=$?
2964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965   test $ac_status = 0; }; then :
2966   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2967 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2968 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2969 # so that the user can short-circuit this test for compilers unknown to
2970 # Autoconf.
2971 for ac_file in $ac_files ''
2972 do
2973   test -f "$ac_file" || continue
2974   case $ac_file in
2975     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2976         ;;
2977     [ab].out )
2978         # We found the default executable, but exeext='' is most
2979         # certainly right.
2980         break;;
2981     *.* )
2982         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2983         then :; else
2984            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985         fi
2986         # We set ac_cv_exeext here because the later test for it is not
2987         # safe: cross compilers may not add the suffix if given an `-o'
2988         # argument, so we may need to know it at that point already.
2989         # Even if this section looks crufty: it has the advantage of
2990         # actually working.
2991         break;;
2992     * )
2993         break;;
2994   esac
2995 done
2996 test "$ac_cv_exeext" = no && ac_cv_exeext=
2997
2998 else
2999   ac_file=''
3000 fi
3001 if test -z "$ac_file"; then :
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3004 $as_echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error 77 "C compiler cannot create executables
3010 See \`config.log' for more details" "$LINENO" 5; }
3011 else
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3014 fi
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3016 $as_echo_n "checking for C compiler default output file name... " >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3018 $as_echo "$ac_file" >&6; }
3019 ac_exeext=$ac_cv_exeext
3020
3021 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3022 ac_clean_files=$ac_clean_files_save
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3024 $as_echo_n "checking for suffix of executables... " >&6; }
3025 if { { ac_try="$ac_link"
3026 case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032   (eval "$ac_link") 2>&5
3033   ac_status=$?
3034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035   test $ac_status = 0; }; then :
3036   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3037 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3038 # work properly (i.e., refer to `conftest.exe'), while it won't with
3039 # `rm'.
3040 for ac_file in conftest.exe conftest conftest.*; do
3041   test -f "$ac_file" || continue
3042   case $ac_file in
3043     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3044     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3045           break;;
3046     * ) break;;
3047   esac
3048 done
3049 else
3050   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3053 See \`config.log' for more details" "$LINENO" 5; }
3054 fi
3055 rm -f conftest conftest$ac_cv_exeext
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3057 $as_echo "$ac_cv_exeext" >&6; }
3058
3059 rm -f conftest.$ac_ext
3060 EXEEXT=$ac_cv_exeext
3061 ac_exeext=$EXEEXT
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h.  */
3064 #include <stdio.h>
3065 int
3066 main ()
3067 {
3068 FILE *f = fopen ("conftest.out", "w");
3069  return ferror (f) || fclose (f) != 0;
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 ac_clean_files="$ac_clean_files conftest.out"
3076 # Check that the compiler produces executables we can run.  If not, either
3077 # the compiler is broken, or we cross compile.
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3079 $as_echo_n "checking whether we are cross compiling... " >&6; }
3080 if test "$cross_compiling" != yes; then
3081   { { ac_try="$ac_link"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088   (eval "$ac_link") 2>&5
3089   ac_status=$?
3090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091   test $ac_status = 0; }
3092   if { ac_try='./conftest$ac_cv_exeext'
3093   { { case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102   test $ac_status = 0; }; }; then
3103     cross_compiling=no
3104   else
3105     if test "$cross_compiling" = maybe; then
3106         cross_compiling=yes
3107     else
3108         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 as_fn_error $? "cannot run C compiled programs.
3111 If you meant to cross compile, use \`--host'.
3112 See \`config.log' for more details" "$LINENO" 5; }
3113     fi
3114   fi
3115 fi
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3117 $as_echo "$cross_compiling" >&6; }
3118
3119 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3120 ac_clean_files=$ac_clean_files_save
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3122 $as_echo_n "checking for suffix of object files... " >&6; }
3123 if ${ac_cv_objext+:} false; then :
3124   $as_echo_n "(cached) " >&6
3125 else
3126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.o conftest.obj
3138 if { { ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145   (eval "$ac_compile") 2>&5
3146   ac_status=$?
3147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148   test $ac_status = 0; }; then :
3149   for ac_file in conftest.o conftest.obj conftest.*; do
3150   test -f "$ac_file" || continue;
3151   case $ac_file in
3152     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3153     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3154        break;;
3155   esac
3156 done
3157 else
3158   $as_echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "cannot compute suffix of object files: cannot compile
3164 See \`config.log' for more details" "$LINENO" 5; }
3165 fi
3166 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3167 fi
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3169 $as_echo "$ac_cv_objext" >&6; }
3170 OBJEXT=$ac_cv_objext
3171 ac_objext=$OBJEXT
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3173 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3174 if ${ac_cv_c_compiler_gnu+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h.  */
3179
3180 int
3181 main ()
3182 {
3183 #ifndef __GNUC__
3184        choke me
3185 #endif
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 if ac_fn_c_try_compile "$LINENO"; then :
3192   ac_compiler_gnu=yes
3193 else
3194   ac_compiler_gnu=no
3195 fi
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3198
3199 fi
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3201 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3202 if test $ac_compiler_gnu = yes; then
3203   GCC=yes
3204 else
3205   GCC=
3206 fi
3207 ac_test_CFLAGS=${CFLAGS+set}
3208 ac_save_CFLAGS=$CFLAGS
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3210 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3211 if ${ac_cv_prog_cc_g+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   ac_save_c_werror_flag=$ac_c_werror_flag
3215    ac_c_werror_flag=yes
3216    ac_cv_prog_cc_g=no
3217    CFLAGS="-g"
3218    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h.  */
3220
3221 int
3222 main ()
3223 {
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 if ac_fn_c_try_compile "$LINENO"; then :
3230   ac_cv_prog_cc_g=yes
3231 else
3232   CFLAGS=""
3233       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h.  */
3235
3236 int
3237 main ()
3238 {
3239
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 if ac_fn_c_try_compile "$LINENO"; then :
3245
3246 else
3247   ac_c_werror_flag=$ac_save_c_werror_flag
3248          CFLAGS="-g"
3249          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h.  */
3251
3252 int
3253 main ()
3254 {
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 if ac_fn_c_try_compile "$LINENO"; then :
3261   ac_cv_prog_cc_g=yes
3262 fi
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 fi
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268    ac_c_werror_flag=$ac_save_c_werror_flag
3269 fi
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3271 $as_echo "$ac_cv_prog_cc_g" >&6; }
3272 if test "$ac_test_CFLAGS" = set; then
3273   CFLAGS=$ac_save_CFLAGS
3274 elif test $ac_cv_prog_cc_g = yes; then
3275   if test "$GCC" = yes; then
3276     CFLAGS="-g -O2"
3277   else
3278     CFLAGS="-g"
3279   fi
3280 else
3281   if test "$GCC" = yes; then
3282     CFLAGS="-O2"
3283   else
3284     CFLAGS=
3285   fi
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3288 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3289 if ${ac_cv_prog_cc_c89+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   ac_cv_prog_cc_c89=no
3293 ac_save_CC=$CC
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h.  */
3296 #include <stdarg.h>
3297 #include <stdio.h>
3298 #include <sys/types.h>
3299 #include <sys/stat.h>
3300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3301 struct buf { int x; };
3302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3303 static char *e (p, i)
3304      char **p;
3305      int i;
3306 {
3307   return p[i];
3308 }
3309 static char *f (char * (*g) (char **, int), char **p, ...)
3310 {
3311   char *s;
3312   va_list v;
3313   va_start (v,p);
3314   s = g (p, va_arg (v,int));
3315   va_end (v);
3316   return s;
3317 }
3318
3319 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3320    function prototypes and stuff, but not '\xHH' hex character constants.
3321    These don't provoke an error unfortunately, instead are silently treated
3322    as 'x'.  The following induces an error, until -std is added to get
3323    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3324    array size at least.  It's necessary to write '\x00'==0 to get something
3325    that's true only with -std.  */
3326 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3327
3328 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3329    inside strings and character constants.  */
3330 #define FOO(x) 'x'
3331 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3332
3333 int test (int i, double x);
3334 struct s1 {int (*f) (int a);};
3335 struct s2 {int (*f) (double a);};
3336 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337 int argc;
3338 char **argv;
3339 int
3340 main ()
3341 {
3342 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3348         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3349 do
3350   CC="$ac_save_CC $ac_arg"
3351   if ac_fn_c_try_compile "$LINENO"; then :
3352   ac_cv_prog_cc_c89=$ac_arg
3353 fi
3354 rm -f core conftest.err conftest.$ac_objext
3355   test "x$ac_cv_prog_cc_c89" != "xno" && break
3356 done
3357 rm -f conftest.$ac_ext
3358 CC=$ac_save_CC
3359
3360 fi
3361 # AC_CACHE_VAL
3362 case "x$ac_cv_prog_cc_c89" in
3363   x)
3364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3365 $as_echo "none needed" >&6; } ;;
3366   xno)
3367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3368 $as_echo "unsupported" >&6; } ;;
3369   *)
3370     CC="$CC $ac_cv_prog_cc_c89"
3371     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3372 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3373 esac
3374 if test "x$ac_cv_prog_cc_c89" != xno; then :
3375
3376 fi
3377
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383
3384 ac_aux_dir=
3385 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3386   if test -f "$ac_dir/install-sh"; then
3387     ac_aux_dir=$ac_dir
3388     ac_install_sh="$ac_aux_dir/install-sh -c"
3389     break
3390   elif test -f "$ac_dir/install.sh"; then
3391     ac_aux_dir=$ac_dir
3392     ac_install_sh="$ac_aux_dir/install.sh -c"
3393     break
3394   elif test -f "$ac_dir/shtool"; then
3395     ac_aux_dir=$ac_dir
3396     ac_install_sh="$ac_aux_dir/shtool install -c"
3397     break
3398   fi
3399 done
3400 if test -z "$ac_aux_dir"; then
3401   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3402 fi
3403
3404 # These three variables are undocumented and unsupported,
3405 # and are intended to be withdrawn in a future Autoconf release.
3406 # They can cause serious problems if a builder's source tree is in a directory
3407 # whose full name contains unusual characters.
3408 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3409 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3410 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3411
3412
3413 # Make sure we can run config.sub.
3414 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3415   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3416
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3418 $as_echo_n "checking build system type... " >&6; }
3419 if ${ac_cv_build+:} false; then :
3420   $as_echo_n "(cached) " >&6
3421 else
3422   ac_build_alias=$build_alias
3423 test "x$ac_build_alias" = x &&
3424   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3425 test "x$ac_build_alias" = x &&
3426   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3428   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3429
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3432 $as_echo "$ac_cv_build" >&6; }
3433 case $ac_cv_build in
3434 *-*-*) ;;
3435 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3436 esac
3437 build=$ac_cv_build
3438 ac_save_IFS=$IFS; IFS='-'
3439 set x $ac_cv_build
3440 shift
3441 build_cpu=$1
3442 build_vendor=$2
3443 shift; shift
3444 # Remember, the first character of IFS is used to create $*,
3445 # except with old shells:
3446 build_os=$*
3447 IFS=$ac_save_IFS
3448 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3449
3450
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3452 $as_echo_n "checking host system type... " >&6; }
3453 if ${ac_cv_host+:} false; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   if test "x$host_alias" = x; then
3457   ac_cv_host=$ac_cv_build
3458 else
3459   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3460     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3461 fi
3462
3463 fi
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3465 $as_echo "$ac_cv_host" >&6; }
3466 case $ac_cv_host in
3467 *-*-*) ;;
3468 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3469 esac
3470 host=$ac_cv_host
3471 ac_save_IFS=$IFS; IFS='-'
3472 set x $ac_cv_host
3473 shift
3474 host_cpu=$1
3475 host_vendor=$2
3476 shift; shift
3477 # Remember, the first character of IFS is used to create $*,
3478 # except with old shells:
3479 host_os=$*
3480 IFS=$ac_save_IFS
3481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3482
3483
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3491 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3492 # On Suns, sometimes $CPP names a directory.
3493 if test -n "$CPP" && test -d "$CPP"; then
3494   CPP=
3495 fi
3496 if test -z "$CPP"; then
3497   if ${ac_cv_prog_CPP+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500       # Double quotes because CPP needs to be expanded
3501     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3502     do
3503       ac_preproc_ok=false
3504 for ac_c_preproc_warn_flag in '' yes
3505 do
3506   # Use a header file that comes with gcc, so configuring glibc
3507   # with a fresh cross-compiler works.
3508   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3509   # <limits.h> exists even on freestanding compilers.
3510   # On the NeXT, cc -E runs the code through the compiler's parser,
3511   # not just through cpp. "Syntax error" is here to catch this case.
3512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514 #ifdef __STDC__
3515 # include <limits.h>
3516 #else
3517 # include <assert.h>
3518 #endif
3519                      Syntax error
3520 _ACEOF
3521 if ac_fn_c_try_cpp "$LINENO"; then :
3522
3523 else
3524   # Broken: fails on valid input.
3525 continue
3526 fi
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3528
3529   # OK, works on sane cases.  Now check whether nonexistent headers
3530   # can be detected and how.
3531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h.  */
3533 #include <ac_nonexistent.h>
3534 _ACEOF
3535 if ac_fn_c_try_cpp "$LINENO"; then :
3536   # Broken: success on invalid input.
3537 continue
3538 else
3539   # Passes both tests.
3540 ac_preproc_ok=:
3541 break
3542 fi
3543 rm -f conftest.err conftest.i conftest.$ac_ext
3544
3545 done
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.i conftest.err conftest.$ac_ext
3548 if $ac_preproc_ok; then :
3549   break
3550 fi
3551
3552     done
3553     ac_cv_prog_CPP=$CPP
3554
3555 fi
3556   CPP=$ac_cv_prog_CPP
3557 else
3558   ac_cv_prog_CPP=$CPP
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3561 $as_echo "$CPP" >&6; }
3562 ac_preproc_ok=false
3563 for ac_c_preproc_warn_flag in '' yes
3564 do
3565   # Use a header file that comes with gcc, so configuring glibc
3566   # with a fresh cross-compiler works.
3567   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568   # <limits.h> exists even on freestanding compilers.
3569   # On the NeXT, cc -E runs the code through the compiler's parser,
3570   # not just through cpp. "Syntax error" is here to catch this case.
3571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h.  */
3573 #ifdef __STDC__
3574 # include <limits.h>
3575 #else
3576 # include <assert.h>
3577 #endif
3578                      Syntax error
3579 _ACEOF
3580 if ac_fn_c_try_cpp "$LINENO"; then :
3581
3582 else
3583   # Broken: fails on valid input.
3584 continue
3585 fi
3586 rm -f conftest.err conftest.i conftest.$ac_ext
3587
3588   # OK, works on sane cases.  Now check whether nonexistent headers
3589   # can be detected and how.
3590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h.  */
3592 #include <ac_nonexistent.h>
3593 _ACEOF
3594 if ac_fn_c_try_cpp "$LINENO"; then :
3595   # Broken: success on invalid input.
3596 continue
3597 else
3598   # Passes both tests.
3599 ac_preproc_ok=:
3600 break
3601 fi
3602 rm -f conftest.err conftest.i conftest.$ac_ext
3603
3604 done
3605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606 rm -f conftest.i conftest.err conftest.$ac_ext
3607 if $ac_preproc_ok; then :
3608
3609 else
3610   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details" "$LINENO" 5; }
3614 fi
3615
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3624 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3625 if ${ac_cv_path_GREP+:} false; then :
3626   $as_echo_n "(cached) " >&6
3627 else
3628   if test -z "$GREP"; then
3629   ac_path_GREP_found=false
3630   # Loop through the user's path and test for each of PROGNAME-LIST
3631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636     for ac_prog in grep ggrep; do
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3639       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3640 # Check for GNU ac_path_GREP and select it if it is found.
3641   # Check for GNU $ac_path_GREP
3642 case `"$ac_path_GREP" --version 2>&1` in
3643 *GNU*)
3644   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3645 *)
3646   ac_count=0
3647   $as_echo_n 0123456789 >"conftest.in"
3648   while :
3649   do
3650     cat "conftest.in" "conftest.in" >"conftest.tmp"
3651     mv "conftest.tmp" "conftest.in"
3652     cp "conftest.in" "conftest.nl"
3653     $as_echo 'GREP' >> "conftest.nl"
3654     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656     as_fn_arith $ac_count + 1 && ac_count=$as_val
3657     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3658       # Best one so far, save it but keep looking for a better one
3659       ac_cv_path_GREP="$ac_path_GREP"
3660       ac_path_GREP_max=$ac_count
3661     fi
3662     # 10*(2^10) chars as input seems more than enough
3663     test $ac_count -gt 10 && break
3664   done
3665   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666 esac
3667
3668       $ac_path_GREP_found && break 3
3669     done
3670   done
3671   done
3672 IFS=$as_save_IFS
3673   if test -z "$ac_cv_path_GREP"; then
3674     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3675   fi
3676 else
3677   ac_cv_path_GREP=$GREP
3678 fi
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3682 $as_echo "$ac_cv_path_GREP" >&6; }
3683  GREP="$ac_cv_path_GREP"
3684
3685
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3687 $as_echo_n "checking for egrep... " >&6; }
3688 if ${ac_cv_path_EGREP+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3692    then ac_cv_path_EGREP="$GREP -E"
3693    else
3694      if test -z "$EGREP"; then
3695   ac_path_EGREP_found=false
3696   # Loop through the user's path and test for each of PROGNAME-LIST
3697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702     for ac_prog in egrep; do
3703     for ac_exec_ext in '' $ac_executable_extensions; do
3704       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3706 # Check for GNU ac_path_EGREP and select it if it is found.
3707   # Check for GNU $ac_path_EGREP
3708 case `"$ac_path_EGREP" --version 2>&1` in
3709 *GNU*)
3710   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711 *)
3712   ac_count=0
3713   $as_echo_n 0123456789 >"conftest.in"
3714   while :
3715   do
3716     cat "conftest.in" "conftest.in" >"conftest.tmp"
3717     mv "conftest.tmp" "conftest.in"
3718     cp "conftest.in" "conftest.nl"
3719     $as_echo 'EGREP' >> "conftest.nl"
3720     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722     as_fn_arith $ac_count + 1 && ac_count=$as_val
3723     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724       # Best one so far, save it but keep looking for a better one
3725       ac_cv_path_EGREP="$ac_path_EGREP"
3726       ac_path_EGREP_max=$ac_count
3727     fi
3728     # 10*(2^10) chars as input seems more than enough
3729     test $ac_count -gt 10 && break
3730   done
3731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732 esac
3733
3734       $ac_path_EGREP_found && break 3
3735     done
3736   done
3737   done
3738 IFS=$as_save_IFS
3739   if test -z "$ac_cv_path_EGREP"; then
3740     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3741   fi
3742 else
3743   ac_cv_path_EGREP=$EGREP
3744 fi
3745
3746    fi
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3749 $as_echo "$ac_cv_path_EGREP" >&6; }
3750  EGREP="$ac_cv_path_EGREP"
3751
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3754 $as_echo_n "checking for ANSI C header files... " >&6; }
3755 if ${ac_cv_header_stdc+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760 #include <stdlib.h>
3761 #include <stdarg.h>
3762 #include <string.h>
3763 #include <float.h>
3764
3765 int
3766 main ()
3767 {
3768
3769   ;
3770   return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774   ac_cv_header_stdc=yes
3775 else
3776   ac_cv_header_stdc=no
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779
3780 if test $ac_cv_header_stdc = yes; then
3781   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784 #include <string.h>
3785
3786 _ACEOF
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788   $EGREP "memchr" >/dev/null 2>&1; then :
3789
3790 else
3791   ac_cv_header_stdc=no
3792 fi
3793 rm -f conftest*
3794
3795 fi
3796
3797 if test $ac_cv_header_stdc = yes; then
3798   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801 #include <stdlib.h>
3802
3803 _ACEOF
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805   $EGREP "free" >/dev/null 2>&1; then :
3806
3807 else
3808   ac_cv_header_stdc=no
3809 fi
3810 rm -f conftest*
3811
3812 fi
3813
3814 if test $ac_cv_header_stdc = yes; then
3815   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816   if test "$cross_compiling" = yes; then :
3817   :
3818 else
3819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821 #include <ctype.h>
3822 #include <stdlib.h>
3823 #if ((' ' & 0x0FF) == 0x020)
3824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3826 #else
3827 # define ISLOWER(c) \
3828                    (('a' <= (c) && (c) <= 'i') \
3829                      || ('j' <= (c) && (c) <= 'r') \
3830                      || ('s' <= (c) && (c) <= 'z'))
3831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3832 #endif
3833
3834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3835 int
3836 main ()
3837 {
3838   int i;
3839   for (i = 0; i < 256; i++)
3840     if (XOR (islower (i), ISLOWER (i))
3841         || toupper (i) != TOUPPER (i))
3842       return 2;
3843   return 0;
3844 }
3845 _ACEOF
3846 if ac_fn_c_try_run "$LINENO"; then :
3847
3848 else
3849   ac_cv_header_stdc=no
3850 fi
3851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3852   conftest.$ac_objext conftest.beam conftest.$ac_ext
3853 fi
3854
3855 fi
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3858 $as_echo "$ac_cv_header_stdc" >&6; }
3859 if test $ac_cv_header_stdc = yes; then
3860
3861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3862
3863 fi
3864
3865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3867                   inttypes.h stdint.h unistd.h
3868 do :
3869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3871 "
3872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3873   cat >>confdefs.h <<_ACEOF
3874 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3875 _ACEOF
3876
3877 fi
3878
3879 done
3880
3881
3882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3883 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3884 if ${ac_cv_c_bigendian+:} false; then :
3885   $as_echo_n "(cached) " >&6
3886 else
3887   ac_cv_c_bigendian=unknown
3888     # See if we're dealing with a universal compiler.
3889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h.  */
3891 #ifndef __APPLE_CC__
3892                not a universal capable compiler
3893              #endif
3894              typedef int dummy;
3895
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898
3899         # Check for potential -arch flags.  It is not universal unless
3900         # there are at least two -arch flags with different values.
3901         ac_arch=
3902         ac_prev=
3903         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3904          if test -n "$ac_prev"; then
3905            case $ac_word in
3906              i?86 | x86_64 | ppc | ppc64)
3907                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3908                  ac_arch=$ac_word
3909                else
3910                  ac_cv_c_bigendian=universal
3911                  break
3912                fi
3913                ;;
3914            esac
3915            ac_prev=
3916          elif test "x$ac_word" = "x-arch"; then
3917            ac_prev=arch
3918          fi
3919        done
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922     if test $ac_cv_c_bigendian = unknown; then
3923       # See if sys/param.h defines the BYTE_ORDER macro.
3924       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h.  */
3926 #include <sys/types.h>
3927              #include <sys/param.h>
3928
3929 int
3930 main ()
3931 {
3932 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3933                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3934                      && LITTLE_ENDIAN)
3935               bogus endian macros
3936              #endif
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943   # It does; now see whether it defined to BIG_ENDIAN or not.
3944          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946 #include <sys/types.h>
3947                 #include <sys/param.h>
3948
3949 int
3950 main ()
3951 {
3952 #if BYTE_ORDER != BIG_ENDIAN
3953                  not big endian
3954                 #endif
3955
3956   ;
3957   return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961   ac_cv_c_bigendian=yes
3962 else
3963   ac_cv_c_bigendian=no
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968     fi
3969     if test $ac_cv_c_bigendian = unknown; then
3970       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h.  */
3973 #include <limits.h>
3974
3975 int
3976 main ()
3977 {
3978 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3979               bogus endian macros
3980              #endif
3981
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987   # It does; now see whether it defined to _BIG_ENDIAN or not.
3988          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990 #include <limits.h>
3991
3992 int
3993 main ()
3994 {
3995 #ifndef _BIG_ENDIAN
3996                  not big endian
3997                 #endif
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004   ac_cv_c_bigendian=yes
4005 else
4006   ac_cv_c_bigendian=no
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011     fi
4012     if test $ac_cv_c_bigendian = unknown; then
4013       # Compile a test program.
4014       if test "$cross_compiling" = yes; then :
4015   # Try to guess by grepping values from an object file.
4016          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h.  */
4018 short int ascii_mm[] =
4019                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4020                 short int ascii_ii[] =
4021                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4022                 int use_ascii (int i) {
4023                   return ascii_mm[i] + ascii_ii[i];
4024                 }
4025                 short int ebcdic_ii[] =
4026                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4027                 short int ebcdic_mm[] =
4028                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4029                 int use_ebcdic (int i) {
4030                   return ebcdic_mm[i] + ebcdic_ii[i];
4031                 }
4032                 extern int foo;
4033
4034 int
4035 main ()
4036 {
4037 return use_ascii (foo) == use_ebcdic (foo);
4038   ;
4039   return 0;
4040 }
4041 _ACEOF
4042 if ac_fn_c_try_compile "$LINENO"; then :
4043   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4044               ac_cv_c_bigendian=yes
4045             fi
4046             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4047               if test "$ac_cv_c_bigendian" = unknown; then
4048                 ac_cv_c_bigendian=no
4049               else
4050                 # finding both strings is unlikely to happen, but who knows?
4051                 ac_cv_c_bigendian=unknown
4052               fi
4053             fi
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 else
4057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h.  */
4059 $ac_includes_default
4060 int
4061 main ()
4062 {
4063
4064              /* Are we little or big endian?  From Harbison&Steele.  */
4065              union
4066              {
4067                long int l;
4068                char c[sizeof (long int)];
4069              } u;
4070              u.l = 1;
4071              return u.c[sizeof (long int) - 1] == 1;
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_run "$LINENO"; then :
4078   ac_cv_c_bigendian=no
4079 else
4080   ac_cv_c_bigendian=yes
4081 fi
4082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4083   conftest.$ac_objext conftest.beam conftest.$ac_ext
4084 fi
4085
4086     fi
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4089 $as_echo "$ac_cv_c_bigendian" >&6; }
4090  case $ac_cv_c_bigendian in #(
4091    yes)
4092      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4093 ;; #(
4094    no)
4095       ;; #(
4096    universal)
4097
4098 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4099
4100      ;; #(
4101    *)
4102      as_fn_error $? "unknown endianness
4103  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4104  esac
4105
4106
4107 # Checks for programs.
4108 for ac_prog in gawk mawk nawk awk
4109 do
4110   # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_AWK+:} false; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   if test -n "$AWK"; then
4118   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125     for ac_exec_ext in '' $ac_executable_extensions; do
4126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127     ac_cv_prog_AWK="$ac_prog"
4128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132   done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 AWK=$ac_cv_prog_AWK
4138 if test -n "$AWK"; then
4139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4140 $as_echo "$AWK" >&6; }
4141 else
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146
4147   test -n "$AWK" && break
4148 done
4149
4150 ac_ext=c
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4156 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4159   CPP=
4160 fi
4161 if test -z "$CPP"; then
4162   if ${ac_cv_prog_CPP+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165       # Double quotes because CPP needs to be expanded
4166     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4167     do
4168       ac_preproc_ok=false
4169 for ac_c_preproc_warn_flag in '' yes
4170 do
4171   # Use a header file that comes with gcc, so configuring glibc
4172   # with a fresh cross-compiler works.
4173   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4174   # <limits.h> exists even on freestanding compilers.
4175   # On the NeXT, cc -E runs the code through the compiler's parser,
4176   # not just through cpp. "Syntax error" is here to catch this case.
4177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h.  */
4179 #ifdef __STDC__
4180 # include <limits.h>
4181 #else
4182 # include <assert.h>
4183 #endif
4184                      Syntax error
4185 _ACEOF
4186 if ac_fn_c_try_cpp "$LINENO"; then :
4187
4188 else
4189   # Broken: fails on valid input.
4190 continue
4191 fi
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194   # OK, works on sane cases.  Now check whether nonexistent headers
4195   # can be detected and how.
4196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h.  */
4198 #include <ac_nonexistent.h>
4199 _ACEOF
4200 if ac_fn_c_try_cpp "$LINENO"; then :
4201   # Broken: success on invalid input.
4202 continue
4203 else
4204   # Passes both tests.
4205 ac_preproc_ok=:
4206 break
4207 fi
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4209
4210 done
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.i conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then :
4214   break
4215 fi
4216
4217     done
4218     ac_cv_prog_CPP=$CPP
4219
4220 fi
4221   CPP=$ac_cv_prog_CPP
4222 else
4223   ac_cv_prog_CPP=$CPP
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4226 $as_echo "$CPP" >&6; }
4227 ac_preproc_ok=false
4228 for ac_c_preproc_warn_flag in '' yes
4229 do
4230   # Use a header file that comes with gcc, so configuring glibc
4231   # with a fresh cross-compiler works.
4232   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4233   # <limits.h> exists even on freestanding compilers.
4234   # On the NeXT, cc -E runs the code through the compiler's parser,
4235   # not just through cpp. "Syntax error" is here to catch this case.
4236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238 #ifdef __STDC__
4239 # include <limits.h>
4240 #else
4241 # include <assert.h>
4242 #endif
4243                      Syntax error
4244 _ACEOF
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4246
4247 else
4248   # Broken: fails on valid input.
4249 continue
4250 fi
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4252
4253   # OK, works on sane cases.  Now check whether nonexistent headers
4254   # can be detected and how.
4255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h.  */
4257 #include <ac_nonexistent.h>
4258 _ACEOF
4259 if ac_fn_c_try_cpp "$LINENO"; then :
4260   # Broken: success on invalid input.
4261 continue
4262 else
4263   # Passes both tests.
4264 ac_preproc_ok=:
4265 break
4266 fi
4267 rm -f conftest.err conftest.i conftest.$ac_ext
4268
4269 done
4270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4271 rm -f conftest.i conftest.err conftest.$ac_ext
4272 if $ac_preproc_ok; then :
4273
4274 else
4275   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4278 See \`config.log' for more details" "$LINENO" 5; }
4279 fi
4280
4281 ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287 if test -n "$ac_tool_prefix"; then
4288   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_RANLIB+:} false; then :
4293   $as_echo_n "(cached) " >&6
4294 else
4295   if test -n "$RANLIB"; then
4296   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303     for ac_exec_ext in '' $ac_executable_extensions; do
4304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310   done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 RANLIB=$ac_cv_prog_RANLIB
4316 if test -n "$RANLIB"; then
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4318 $as_echo "$RANLIB" >&6; }
4319 else
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 fi
4323
4324
4325 fi
4326 if test -z "$ac_cv_prog_RANLIB"; then
4327   ac_ct_RANLIB=$RANLIB
4328   # Extract the first word of "ranlib", so it can be a program name with args.
4329 set dummy ranlib; ac_word=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4333   $as_echo_n "(cached) " >&6
4334 else
4335   if test -n "$ac_ct_RANLIB"; then
4336   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4337 else
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345     ac_cv_prog_ac_ct_RANLIB="ranlib"
4346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350   done
4351 IFS=$as_save_IFS
4352
4353 fi
4354 fi
4355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4356 if test -n "$ac_ct_RANLIB"; then
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4358 $as_echo "$ac_ct_RANLIB" >&6; }
4359 else
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364   if test "x$ac_ct_RANLIB" = x; then
4365     RANLIB=":"
4366   else
4367     case $cross_compiling:$ac_tool_warned in
4368 yes:)
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4371 ac_tool_warned=yes ;;
4372 esac
4373     RANLIB=$ac_ct_RANLIB
4374   fi
4375 else
4376   RANLIB="$ac_cv_prog_RANLIB"
4377 fi
4378
4379 # Find a good install program.  We prefer a C program (faster),
4380 # so one script is as good as another.  But avoid the broken or
4381 # incompatible versions:
4382 # SysV /etc/install, /usr/sbin/install
4383 # SunOS /usr/etc/install
4384 # IRIX /sbin/install
4385 # AIX /bin/install
4386 # AmigaOS /C/install, which installs bootblocks on floppy discs
4387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4390 # OS/2's system install, which has a completely different semantic
4391 # ./install, which can be erroneously created by make from ./install.sh.
4392 # Reject install programs that cannot install multiple files.
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4394 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4395 if test -z "$INSTALL"; then
4396 if ${ac_cv_path_install+:} false; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404     # Account for people who put trailing slashes in PATH elements.
4405 case $as_dir/ in #((
4406   ./ | .// | /[cC]/* | \
4407   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4408   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4409   /usr/ucb/* ) ;;
4410   *)
4411     # OSF1 and SCO ODT 3.0 have their own names for install.
4412     # Don't use installbsd from OSF since it installs stuff as root
4413     # by default.
4414     for ac_prog in ginstall scoinst install; do
4415       for ac_exec_ext in '' $ac_executable_extensions; do
4416         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4417           if test $ac_prog = install &&
4418             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4419             # AIX install.  It has an incompatible calling convention.
4420             :
4421           elif test $ac_prog = install &&
4422             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4423             # program-specific install script used by HP pwplus--don't use.
4424             :
4425           else
4426             rm -rf conftest.one conftest.two conftest.dir
4427             echo one > conftest.one
4428             echo two > conftest.two
4429             mkdir conftest.dir
4430             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4431               test -s conftest.one && test -s conftest.two &&
4432               test -s conftest.dir/conftest.one &&
4433               test -s conftest.dir/conftest.two
4434             then
4435               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4436               break 3
4437             fi
4438           fi
4439         fi
4440       done
4441     done
4442     ;;
4443 esac
4444
4445   done
4446 IFS=$as_save_IFS
4447
4448 rm -rf conftest.one conftest.two conftest.dir
4449
4450 fi
4451   if test "${ac_cv_path_install+set}" = set; then
4452     INSTALL=$ac_cv_path_install
4453   else
4454     # As a last resort, use the slow shell script.  Don't cache a
4455     # value for INSTALL within a source directory, because that will
4456     # break other packages using the cache if that directory is
4457     # removed, or if the value is a relative name.
4458     INSTALL=$ac_install_sh
4459   fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4462 $as_echo "$INSTALL" >&6; }
4463
4464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4465 # It thinks the first close brace ends the variable substitution.
4466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4467
4468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4469
4470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4471
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4473 $as_echo_n "checking for egrep... " >&6; }
4474 if ${ac_cv_path_EGREP+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4478    then ac_cv_path_EGREP="$GREP -E"
4479    else
4480      if test -z "$EGREP"; then
4481   ac_path_EGREP_found=false
4482   # Loop through the user's path and test for each of PROGNAME-LIST
4483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4485 do
4486   IFS=$as_save_IFS
4487   test -z "$as_dir" && as_dir=.
4488     for ac_prog in egrep; do
4489     for ac_exec_ext in '' $ac_executable_extensions; do
4490       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4491       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4492 # Check for GNU ac_path_EGREP and select it if it is found.
4493   # Check for GNU $ac_path_EGREP
4494 case `"$ac_path_EGREP" --version 2>&1` in
4495 *GNU*)
4496   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4497 *)
4498   ac_count=0
4499   $as_echo_n 0123456789 >"conftest.in"
4500   while :
4501   do
4502     cat "conftest.in" "conftest.in" >"conftest.tmp"
4503     mv "conftest.tmp" "conftest.in"
4504     cp "conftest.in" "conftest.nl"
4505     $as_echo 'EGREP' >> "conftest.nl"
4506     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4507     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4508     as_fn_arith $ac_count + 1 && ac_count=$as_val
4509     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4510       # Best one so far, save it but keep looking for a better one
4511       ac_cv_path_EGREP="$ac_path_EGREP"
4512       ac_path_EGREP_max=$ac_count
4513     fi
4514     # 10*(2^10) chars as input seems more than enough
4515     test $ac_count -gt 10 && break
4516   done
4517   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4518 esac
4519
4520       $ac_path_EGREP_found && break 3
4521     done
4522   done
4523   done
4524 IFS=$as_save_IFS
4525   if test -z "$ac_cv_path_EGREP"; then
4526     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4527   fi
4528 else
4529   ac_cv_path_EGREP=$EGREP
4530 fi
4531
4532    fi
4533 fi
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4535 $as_echo "$ac_cv_path_EGREP" >&6; }
4536  EGREP="$ac_cv_path_EGREP"
4537
4538
4539 # Extract the first word of "ar", so it can be a program name with args.
4540 set dummy ar; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_path_AR+:} false; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   case $AR in
4547   [\\/]* | ?:[\\/]*)
4548   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4549   ;;
4550   *)
4551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4553 do
4554   IFS=$as_save_IFS
4555   test -z "$as_dir" && as_dir=.
4556     for ac_exec_ext in '' $ac_executable_extensions; do
4557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560     break 2
4561   fi
4562 done
4563   done
4564 IFS=$as_save_IFS
4565
4566   ;;
4567 esac
4568 fi
4569 AR=$ac_cv_path_AR
4570 if test -n "$AR"; then
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4572 $as_echo "$AR" >&6; }
4573 else
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577
4578
4579 # Extract the first word of "cat", so it can be a program name with args.
4580 set dummy cat; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_path_CAT+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   case $CAT in
4587   [\\/]* | ?:[\\/]*)
4588   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4589   ;;
4590   *)
4591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596     for ac_exec_ext in '' $ac_executable_extensions; do
4597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603   done
4604 IFS=$as_save_IFS
4605
4606   ;;
4607 esac
4608 fi
4609 CAT=$ac_cv_path_CAT
4610 if test -n "$CAT"; then
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4612 $as_echo "$CAT" >&6; }
4613 else
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616 fi
4617
4618
4619 # Extract the first word of "kill", so it can be a program name with args.
4620 set dummy kill; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_path_KILL+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626   case $KILL in
4627   [\\/]* | ?:[\\/]*)
4628   ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4629   ;;
4630   *)
4631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636     for ac_exec_ext in '' $ac_executable_extensions; do
4637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638     ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643   done
4644 IFS=$as_save_IFS
4645
4646   ;;
4647 esac
4648 fi
4649 KILL=$ac_cv_path_KILL
4650 if test -n "$KILL"; then
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4652 $as_echo "$KILL" >&6; }
4653 else
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4656 fi
4657
4658
4659 for ac_prog in perl5 perl
4660 do
4661   # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_path_PERL+:} false; then :
4666   $as_echo_n "(cached) " >&6
4667 else
4668   case $PERL in
4669   [\\/]* | ?:[\\/]*)
4670   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4671   ;;
4672   *)
4673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678     for ac_exec_ext in '' $ac_executable_extensions; do
4679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685   done
4686 IFS=$as_save_IFS
4687
4688   ;;
4689 esac
4690 fi
4691 PERL=$ac_cv_path_PERL
4692 if test -n "$PERL"; then
4693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4694 $as_echo "$PERL" >&6; }
4695 else
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700
4701   test -n "$PERL" && break
4702 done
4703
4704 # Extract the first word of "sed", so it can be a program name with args.
4705 set dummy sed; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if ${ac_cv_path_SED+:} false; then :
4709   $as_echo_n "(cached) " >&6
4710 else
4711   case $SED in
4712   [\\/]* | ?:[\\/]*)
4713   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4714   ;;
4715   *)
4716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719   IFS=$as_save_IFS
4720   test -z "$as_dir" && as_dir=.
4721     for ac_exec_ext in '' $ac_executable_extensions; do
4722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725     break 2
4726   fi
4727 done
4728   done
4729 IFS=$as_save_IFS
4730
4731   ;;
4732 esac
4733 fi
4734 SED=$ac_cv_path_SED
4735 if test -n "$SED"; then
4736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4737 $as_echo "$SED" >&6; }
4738 else
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744
4745 # Extract the first word of "ent", so it can be a program name with args.
4746 set dummy ent; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_path_ENT+:} false; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   case $ENT in
4753   [\\/]* | ?:[\\/]*)
4754   ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4755   ;;
4756   *)
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764     ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769   done
4770 IFS=$as_save_IFS
4771
4772   ;;
4773 esac
4774 fi
4775 ENT=$ac_cv_path_ENT
4776 if test -n "$ENT"; then
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4778 $as_echo "$ENT" >&6; }
4779 else
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784
4785
4786 # Extract the first word of "bash", so it can be a program name with args.
4787 set dummy bash; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   case $TEST_MINUS_S_SH in
4794   [\\/]* | ?:[\\/]*)
4795   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4796   ;;
4797   *)
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     for ac_exec_ext in '' $ac_executable_extensions; do
4804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807     break 2
4808   fi
4809 done
4810   done
4811 IFS=$as_save_IFS
4812
4813   ;;
4814 esac
4815 fi
4816 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4817 if test -n "$TEST_MINUS_S_SH"; then
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4819 $as_echo "$TEST_MINUS_S_SH" >&6; }
4820 else
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826 # Extract the first word of "ksh", so it can be a program name with args.
4827 set dummy ksh; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   case $TEST_MINUS_S_SH in
4834   [\\/]* | ?:[\\/]*)
4835   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4836   ;;
4837   *)
4838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843     for ac_exec_ext in '' $ac_executable_extensions; do
4844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850   done
4851 IFS=$as_save_IFS
4852
4853   ;;
4854 esac
4855 fi
4856 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4857 if test -n "$TEST_MINUS_S_SH"; then
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4859 $as_echo "$TEST_MINUS_S_SH" >&6; }
4860 else
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866 # Extract the first word of "sh", so it can be a program name with args.
4867 set dummy sh; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4871   $as_echo_n "(cached) " >&6
4872 else
4873   case $TEST_MINUS_S_SH in
4874   [\\/]* | ?:[\\/]*)
4875   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4876   ;;
4877   *)
4878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883     for ac_exec_ext in '' $ac_executable_extensions; do
4884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890   done
4891 IFS=$as_save_IFS
4892
4893   ;;
4894 esac
4895 fi
4896 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4897 if test -n "$TEST_MINUS_S_SH"; then
4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4899 $as_echo "$TEST_MINUS_S_SH" >&6; }
4900 else
4901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4903 fi
4904
4905
4906 # Extract the first word of "sh", so it can be a program name with args.
4907 set dummy sh; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_SH+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   case $SH in
4914   [\\/]* | ?:[\\/]*)
4915   ac_cv_path_SH="$SH" # Let the user override the test with a path.
4916   ;;
4917   *)
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930   done
4931 IFS=$as_save_IFS
4932
4933   ;;
4934 esac
4935 fi
4936 SH=$ac_cv_path_SH
4937 if test -n "$SH"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4939 $as_echo "$SH" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945
4946 # Extract the first word of "groff", so it can be a program name with args.
4947 set dummy groff; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_path_GROFF+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   case $GROFF in
4954   [\\/]* | ?:[\\/]*)
4955   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4956   ;;
4957   *)
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970   done
4971 IFS=$as_save_IFS
4972
4973   ;;
4974 esac
4975 fi
4976 GROFF=$ac_cv_path_GROFF
4977 if test -n "$GROFF"; then
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4979 $as_echo "$GROFF" >&6; }
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984
4985
4986 # Extract the first word of "nroff", so it can be a program name with args.
4987 set dummy nroff; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_NROFF+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   case $NROFF in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003     for ac_exec_ext in '' $ac_executable_extensions; do
5004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
5006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010   done
5011 IFS=$as_save_IFS
5012
5013   ;;
5014 esac
5015 fi
5016 NROFF=$ac_cv_path_NROFF
5017 if test -n "$NROFF"; then
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5019 $as_echo "$NROFF" >&6; }
5020 else
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 # Extract the first word of "mandoc", so it can be a program name with args.
5027 set dummy mandoc; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_MANDOC+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   case $MANDOC in
5034   [\\/]* | ?:[\\/]*)
5035   ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5036   ;;
5037   *)
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043     for ac_exec_ext in '' $ac_executable_extensions; do
5044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045     ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050   done
5051 IFS=$as_save_IFS
5052
5053   ;;
5054 esac
5055 fi
5056 MANDOC=$ac_cv_path_MANDOC
5057 if test -n "$MANDOC"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5059 $as_echo "$MANDOC" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066 TEST_SHELL=sh
5067
5068
5069 if test "x$MANDOC" != "x" ; then
5070         MANFMT="$MANDOC"
5071 elif test "x$NROFF" != "x" ; then
5072         MANFMT="$NROFF -mandoc"
5073 elif test "x$GROFF" != "x" ; then
5074         MANFMT="$GROFF -mandoc -Tascii"
5075 else
5076         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5077 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5078         MANFMT="false"
5079 fi
5080
5081
5082 # Extract the first word of "groupadd", so it can be a program name with args.
5083 set dummy groupadd; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   case $PATH_GROUPADD_PROG in
5090   [\\/]* | ?:[\\/]*)
5091   ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5092   ;;
5093   *)
5094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_exec_ext in '' $ac_executable_extensions; do
5100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101     ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103     break 2
5104   fi
5105 done
5106   done
5107 IFS=$as_save_IFS
5108
5109   test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5110   ;;
5111 esac
5112 fi
5113 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5114 if test -n "$PATH_GROUPADD_PROG"; then
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5116 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5117 else
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 fi
5121
5122
5123 # Extract the first word of "useradd", so it can be a program name with args.
5124 set dummy useradd; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   case $PATH_USERADD_PROG in
5131   [\\/]* | ?:[\\/]*)
5132   ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5133   ;;
5134   *)
5135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142     ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149
5150   test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5151   ;;
5152 esac
5153 fi
5154 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5155 if test -n "$PATH_USERADD_PROG"; then
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5157 $as_echo "$PATH_USERADD_PROG" >&6; }
5158 else
5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5161 fi
5162
5163
5164 # Extract the first word of "pkgmk", so it can be a program name with args.
5165 set dummy pkgmk; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5169   $as_echo_n "(cached) " >&6
5170 else
5171   if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5172   ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177   IFS=$as_save_IFS
5178   test -z "$as_dir" && as_dir=.
5179     for ac_exec_ext in '' $ac_executable_extensions; do
5180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181     ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183     break 2
5184   fi
5185 done
5186   done
5187 IFS=$as_save_IFS
5188
5189   test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5190 fi
5191 fi
5192 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5193 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5195 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5196 else
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 if test -x /sbin/sh; then
5203         STARTUP_SCRIPT_SHELL=/sbin/sh
5204
5205 else
5206         STARTUP_SCRIPT_SHELL=/bin/sh
5207
5208 fi
5209
5210 # System features
5211 # Check whether --enable-largefile was given.
5212 if test "${enable_largefile+set}" = set; then :
5213   enableval=$enable_largefile;
5214 fi
5215
5216 if test "$enable_largefile" != no; then
5217
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5219 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5220 if ${ac_cv_sys_largefile_CC+:} false; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   ac_cv_sys_largefile_CC=no
5224      if test "$GCC" != yes; then
5225        ac_save_CC=$CC
5226        while :; do
5227          # IRIX 6.2 and later do not support large files by default,
5228          # so use the C compiler's -n32 option if that helps.
5229          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h.  */
5231 #include <sys/types.h>
5232  /* Check that off_t can represent 2**63 - 1 correctly.
5233     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5234     since some C++ compilers masquerading as C compilers
5235     incorrectly reject 9223372036854775807.  */
5236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5237   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5238                        && LARGE_OFF_T % 2147483647 == 1)
5239                       ? 1 : -1];
5240 int
5241 main ()
5242 {
5243
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248          if ac_fn_c_try_compile "$LINENO"; then :
5249   break
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext
5252          CC="$CC -n32"
5253          if ac_fn_c_try_compile "$LINENO"; then :
5254   ac_cv_sys_largefile_CC=' -n32'; break
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext
5257          break
5258        done
5259        CC=$ac_save_CC
5260        rm -f conftest.$ac_ext
5261     fi
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5264 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5265   if test "$ac_cv_sys_largefile_CC" != no; then
5266     CC=$CC$ac_cv_sys_largefile_CC
5267   fi
5268
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5270 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5271 if ${ac_cv_sys_file_offset_bits+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   while :; do
5275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277 #include <sys/types.h>
5278  /* Check that off_t can represent 2**63 - 1 correctly.
5279     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5280     since some C++ compilers masquerading as C compilers
5281     incorrectly reject 9223372036854775807.  */
5282 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5283   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5284                        && LARGE_OFF_T % 2147483647 == 1)
5285                       ? 1 : -1];
5286 int
5287 main ()
5288 {
5289
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"; then :
5295   ac_cv_sys_file_offset_bits=no; break
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h.  */
5300 #define _FILE_OFFSET_BITS 64
5301 #include <sys/types.h>
5302  /* Check that off_t can represent 2**63 - 1 correctly.
5303     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5304     since some C++ compilers masquerading as C compilers
5305     incorrectly reject 9223372036854775807.  */
5306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5307   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5308                        && LARGE_OFF_T % 2147483647 == 1)
5309                       ? 1 : -1];
5310 int
5311 main ()
5312 {
5313
5314   ;
5315   return 0;
5316 }
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319   ac_cv_sys_file_offset_bits=64; break
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322   ac_cv_sys_file_offset_bits=unknown
5323   break
5324 done
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5327 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5328 case $ac_cv_sys_file_offset_bits in #(
5329   no | unknown) ;;
5330   *)
5331 cat >>confdefs.h <<_ACEOF
5332 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5333 _ACEOF
5334 ;;
5335 esac
5336 rm -rf conftest*
5337   if test $ac_cv_sys_file_offset_bits = unknown; then
5338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5339 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5340 if ${ac_cv_sys_large_files+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   while :; do
5344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h.  */
5346 #include <sys/types.h>
5347  /* Check that off_t can represent 2**63 - 1 correctly.
5348     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5349     since some C++ compilers masquerading as C compilers
5350     incorrectly reject 9223372036854775807.  */
5351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5352   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5353                        && LARGE_OFF_T % 2147483647 == 1)
5354                       ? 1 : -1];
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364   ac_cv_sys_large_files=no; break
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h.  */
5369 #define _LARGE_FILES 1
5370 #include <sys/types.h>
5371  /* Check that off_t can represent 2**63 - 1 correctly.
5372     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373     since some C++ compilers masquerading as C compilers
5374     incorrectly reject 9223372036854775807.  */
5375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377                        && LARGE_OFF_T % 2147483647 == 1)
5378                       ? 1 : -1];
5379 int
5380 main ()
5381 {
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388   ac_cv_sys_large_files=1; break
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391   ac_cv_sys_large_files=unknown
5392   break
5393 done
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5396 $as_echo "$ac_cv_sys_large_files" >&6; }
5397 case $ac_cv_sys_large_files in #(
5398   no | unknown) ;;
5399   *)
5400 cat >>confdefs.h <<_ACEOF
5401 #define _LARGE_FILES $ac_cv_sys_large_files
5402 _ACEOF
5403 ;;
5404 esac
5405 rm -rf conftest*
5406   fi
5407 fi
5408
5409
5410 if test -z "$AR" ; then
5411         as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5412 fi
5413
5414 # Use LOGIN_PROGRAM from environment if possible
5415 if test ! -z "$LOGIN_PROGRAM" ; then
5416
5417 cat >>confdefs.h <<_ACEOF
5418 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5419 _ACEOF
5420
5421 else
5422         # Search for login
5423         # Extract the first word of "login", so it can be a program name with args.
5424 set dummy login; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   case $LOGIN_PROGRAM_FALLBACK in
5431   [\\/]* | ?:[\\/]*)
5432   ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5433   ;;
5434   *)
5435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438   IFS=$as_save_IFS
5439   test -z "$as_dir" && as_dir=.
5440     for ac_exec_ext in '' $ac_executable_extensions; do
5441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442     ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444     break 2
5445   fi
5446 done
5447   done
5448 IFS=$as_save_IFS
5449
5450   ;;
5451 esac
5452 fi
5453 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5454 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5456 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5457 else
5458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5460 fi
5461
5462
5463         if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5464                 cat >>confdefs.h <<_ACEOF
5465 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5466 _ACEOF
5467
5468         fi
5469 fi
5470
5471 # Extract the first word of "passwd", so it can be a program name with args.
5472 set dummy passwd; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   case $PATH_PASSWD_PROG in
5479   [\\/]* | ?:[\\/]*)
5480   ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5481   ;;
5482   *)
5483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488     for ac_exec_ext in '' $ac_executable_extensions; do
5489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490     ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492     break 2
5493   fi
5494 done
5495   done
5496 IFS=$as_save_IFS
5497
5498   ;;
5499 esac
5500 fi
5501 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5502 if test -n "$PATH_PASSWD_PROG"; then
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5504 $as_echo "$PATH_PASSWD_PROG" >&6; }
5505 else
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510
5511 if test ! -z "$PATH_PASSWD_PROG" ; then
5512
5513 cat >>confdefs.h <<_ACEOF
5514 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5515 _ACEOF
5516
5517 fi
5518
5519 if test -z "$LD" ; then
5520         LD=$CC
5521 fi
5522
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5525 $as_echo_n "checking for inline... " >&6; }
5526 if ${ac_cv_c_inline+:} false; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   ac_cv_c_inline=no
5530 for ac_kw in inline __inline__ __inline; do
5531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h.  */
5533 #ifndef __cplusplus
5534 typedef int foo_t;
5535 static $ac_kw foo_t static_foo () {return 0; }
5536 $ac_kw foo_t foo () {return 0; }
5537 #endif
5538
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541   ac_cv_c_inline=$ac_kw
5542 fi
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544   test "$ac_cv_c_inline" != no && break
5545 done
5546
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5549 $as_echo "$ac_cv_c_inline" >&6; }
5550
5551 case $ac_cv_c_inline in
5552   inline | yes) ;;
5553   *)
5554     case $ac_cv_c_inline in
5555       no) ac_val=;;
5556       *) ac_val=$ac_cv_c_inline;;
5557     esac
5558     cat >>confdefs.h <<_ACEOF
5559 #ifndef __cplusplus
5560 #define inline $ac_val
5561 #endif
5562 _ACEOF
5563     ;;
5564 esac
5565
5566
5567 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5568 "
5569 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5570   have_llong_max=1
5571 fi
5572
5573
5574 use_stack_protector=1
5575
5576 # Check whether --with-stackprotect was given.
5577 if test "${with_stackprotect+set}" = set; then :
5578   withval=$with_stackprotect;
5579     if test "x$withval" = "xno"; then
5580         use_stack_protector=0
5581     fi
5582 fi
5583
5584
5585
5586 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5587         {
5588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5589 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5590         saved_CFLAGS="$CFLAGS"
5591         CFLAGS="$CFLAGS -Wall"
5592         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h.  */
5594 void main(void) { return 0; }
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5599 else
5600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602                   CFLAGS="$saved_CFLAGS"
5603
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 }
5607         {
5608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5609 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5610         saved_CFLAGS="$CFLAGS"
5611         CFLAGS="$CFLAGS -Wpointer-arith"
5612         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h.  */
5614 void main(void) { return 0; }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5619 else
5620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622                   CFLAGS="$saved_CFLAGS"
5623
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 }
5627         {
5628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5629 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5630         saved_CFLAGS="$CFLAGS"
5631         CFLAGS="$CFLAGS -Wuninitialized"
5632         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634 void main(void) { return 0; }
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5638 $as_echo "yes" >&6; }
5639 else
5640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642                   CFLAGS="$saved_CFLAGS"
5643
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 }
5647         {
5648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5649 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5650         saved_CFLAGS="$CFLAGS"
5651         CFLAGS="$CFLAGS -Wsign-compare"
5652         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654 void main(void) { return 0; }
5655 _ACEOF
5656 if ac_fn_c_try_compile "$LINENO"; then :
5657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5659 else
5660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662                   CFLAGS="$saved_CFLAGS"
5663
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 }
5667         {
5668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5669 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5670         saved_CFLAGS="$CFLAGS"
5671         CFLAGS="$CFLAGS -Wformat-security"
5672         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h.  */
5674 void main(void) { return 0; }
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679 else
5680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682                   CFLAGS="$saved_CFLAGS"
5683
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 }
5687         {
5688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-pointer-sign" >&5
5689 $as_echo_n "checking if $CC supports -Wno-pointer-sign... " >&6; }
5690         saved_CFLAGS="$CFLAGS"
5691         CFLAGS="$CFLAGS -Wno-pointer-sign"
5692         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h.  */
5694 void main(void) { return 0; }
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 $as_echo "yes" >&6; }
5699 else
5700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702                   CFLAGS="$saved_CFLAGS"
5703
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 }
5707         {
5708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-result" >&5
5709 $as_echo_n "checking if $CC supports -Wno-unused-result... " >&6; }
5710         saved_CFLAGS="$CFLAGS"
5711         CFLAGS="$CFLAGS -Wno-unused-result"
5712         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h.  */
5714 void main(void) { return 0; }
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5718 $as_echo "yes" >&6; }
5719 else
5720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721 $as_echo "no" >&6; }
5722                   CFLAGS="$saved_CFLAGS"
5723
5724 fi
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 }
5727         {
5728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5729 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5730         saved_CFLAGS="$CFLAGS"
5731         CFLAGS="$CFLAGS -fno-strict-aliasing"
5732         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h.  */
5734 void main(void) { return 0; }
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5739 else
5740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742                   CFLAGS="$saved_CFLAGS"
5743
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 }
5747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5748 $as_echo_n "checking gcc version... " >&6; }
5749         GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5750         case $GCC_VER in
5751                 1.*) no_attrib_nonnull=1 ;;
5752                 2.8* | 2.9*)
5753                      no_attrib_nonnull=1
5754                      ;;
5755                 2.*) no_attrib_nonnull=1 ;;
5756                 *) ;;
5757         esac
5758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5759 $as_echo "$GCC_VER" >&6; }
5760
5761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5762 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5763         saved_CFLAGS="$CFLAGS"
5764         CFLAGS="$CFLAGS -fno-builtin-memset"
5765         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h.  */
5767
5768 #include <string.h>
5769 int main(void){char b[10]; memset(b, 0, sizeof(b));}
5770
5771 _ACEOF
5772 if ac_fn_c_try_link "$LINENO"; then :
5773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5774 $as_echo "yes" >&6; }
5775 else
5776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778                   CFLAGS="$saved_CFLAGS"
5779
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext \
5782     conftest$ac_exeext conftest.$ac_ext
5783
5784         # -fstack-protector-all doesn't always work for some GCC versions
5785         # and/or platforms, so we test if we can.  If it's not supported
5786         # on a given platform gcc will emit a warning so we use -Werror.
5787         if test "x$use_stack_protector" = "x1"; then
5788             for t in -fstack-protector-all -fstack-protector; do
5789                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5790 $as_echo_n "checking if $CC supports $t... " >&6; }
5791                 saved_CFLAGS="$CFLAGS"
5792                 saved_LDFLAGS="$LDFLAGS"
5793                 CFLAGS="$CFLAGS $t -Werror"
5794                 LDFLAGS="$LDFLAGS $t -Werror"
5795                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h.  */
5797
5798 #include <stdio.h>
5799 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5800
5801 _ACEOF
5802 if ac_fn_c_try_link "$LINENO"; then :
5803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804 $as_echo "yes" >&6; }
5805                       CFLAGS="$saved_CFLAGS $t"
5806                       LDFLAGS="$saved_LDFLAGS $t"
5807                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5808 $as_echo_n "checking if $t works... " >&6; }
5809                       if test "$cross_compiling" = yes; then :
5810    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5811 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5812                           break
5813
5814 else
5815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h.  */
5817
5818 #include <stdio.h>
5819 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5820
5821 _ACEOF
5822 if ac_fn_c_try_run "$LINENO"; then :
5823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 $as_echo "yes" >&6; }
5825                           break
5826 else
5827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5829 fi
5830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5831   conftest.$ac_objext conftest.beam conftest.$ac_ext
5832 fi
5833
5834
5835 else
5836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext \
5841     conftest$ac_exeext conftest.$ac_ext
5842                 CFLAGS="$saved_CFLAGS"
5843                 LDFLAGS="$saved_LDFLAGS"
5844             done
5845         fi
5846
5847         if test -z "$have_llong_max"; then
5848                 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5849                 unset ac_cv_have_decl_LLONG_MAX
5850                 saved_CFLAGS="$CFLAGS"
5851                 CFLAGS="$CFLAGS -std=gnu99"
5852                 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5853
5854 "
5855 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5856   have_llong_max=1
5857 else
5858   CFLAGS="$saved_CFLAGS"
5859 fi
5860
5861         fi
5862 fi
5863
5864 if test "x$no_attrib_nonnull" != "x1" ; then
5865
5866 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5867
5868 fi
5869
5870
5871 # Check whether --with-rpath was given.
5872 if test "${with_rpath+set}" = set; then :
5873   withval=$with_rpath;
5874                 if test "x$withval" = "xno" ; then
5875                         need_dash_r=""
5876                 fi
5877                 if test "x$withval" = "xyes" ; then
5878                         need_dash_r=1
5879                 fi
5880
5881
5882 fi
5883
5884
5885 # Allow user to specify flags
5886
5887 # Check whether --with-cflags was given.
5888 if test "${with_cflags+set}" = set; then :
5889   withval=$with_cflags;
5890                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5891                     test "x${withval}" != "xyes"; then
5892                         CFLAGS="$CFLAGS $withval"
5893                 fi
5894
5895
5896 fi
5897
5898
5899 # Check whether --with-cppflags was given.
5900 if test "${with_cppflags+set}" = set; then :
5901   withval=$with_cppflags;
5902                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5903                     test "x${withval}" != "xyes"; then
5904                         CPPFLAGS="$CPPFLAGS $withval"
5905                 fi
5906
5907
5908 fi
5909
5910
5911 # Check whether --with-ldflags was given.
5912 if test "${with_ldflags+set}" = set; then :
5913   withval=$with_ldflags;
5914                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5915                     test "x${withval}" != "xyes"; then
5916                         LDFLAGS="$LDFLAGS $withval"
5917                 fi
5918
5919
5920 fi
5921
5922
5923 # Check whether --with-libs was given.
5924 if test "${with_libs+set}" = set; then :
5925   withval=$with_libs;
5926                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5927                     test "x${withval}" != "xyes"; then
5928                         LIBS="$LIBS $withval"
5929                 fi
5930
5931
5932 fi
5933
5934
5935 # Check whether --with-Werror was given.
5936 if test "${with_Werror+set}" = set; then :
5937   withval=$with_Werror;
5938                 if test -n "$withval"  &&  test "x$withval" != "xno"; then
5939                         werror_flags="-Werror"
5940                         if test "x${withval}" != "xyes"; then
5941                                 werror_flags="$withval"
5942                         fi
5943                 fi
5944
5945
5946 fi
5947
5948
5949 for ac_header in \
5950         bstring.h \
5951         crypt.h \
5952         crypto/sha2.h \
5953         dirent.h \
5954         endian.h \
5955         features.h \
5956         fcntl.h \
5957         floatingpoint.h \
5958         getopt.h \
5959         glob.h \
5960         ia.h \
5961         iaf.h \
5962         limits.h \
5963         login.h \
5964         maillock.h \
5965         ndir.h \
5966         net/if_tun.h \
5967         netdb.h \
5968         netgroup.h \
5969         pam/pam_appl.h \
5970         paths.h \
5971         poll.h \
5972         pty.h \
5973         readpassphrase.h \
5974         rpc/types.h \
5975         security/pam_appl.h \
5976         sha2.h \
5977         shadow.h \
5978         stddef.h \
5979         stdint.h \
5980         string.h \
5981         strings.h \
5982         sys/audit.h \
5983         sys/bitypes.h \
5984         sys/bsdtty.h \
5985         sys/cdefs.h \
5986         sys/dir.h \
5987         sys/mman.h \
5988         sys/ndir.h \
5989         sys/poll.h \
5990         sys/prctl.h \
5991         sys/pstat.h \
5992         sys/select.h \
5993         sys/stat.h \
5994         sys/stream.h \
5995         sys/stropts.h \
5996         sys/strtio.h \
5997         sys/statvfs.h \
5998         sys/sysmacros.h \
5999         sys/time.h \
6000         sys/timers.h \
6001         sys/un.h \
6002         time.h \
6003         tmpdir.h \
6004         ttyent.h \
6005         ucred.h \
6006         unistd.h \
6007         usersec.h \
6008         util.h \
6009         utime.h \
6010         utmp.h \
6011         utmpx.h \
6012         vis.h \
6013
6014 do :
6015   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6016 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6018   cat >>confdefs.h <<_ACEOF
6019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6020 _ACEOF
6021
6022 fi
6023
6024 done
6025
6026
6027 # lastlog.h requires sys/time.h to be included first on Solaris
6028 for ac_header in lastlog.h
6029 do :
6030   ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6031 #ifdef HAVE_SYS_TIME_H
6032 # include <sys/time.h>
6033 #endif
6034
6035 "
6036 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6037   cat >>confdefs.h <<_ACEOF
6038 #define HAVE_LASTLOG_H 1
6039 _ACEOF
6040
6041 fi
6042
6043 done
6044
6045
6046 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6047 for ac_header in sys/ptms.h
6048 do :
6049   ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6050 #ifdef HAVE_SYS_STREAM_H
6051 # include <sys/stream.h>
6052 #endif
6053
6054 "
6055 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6056   cat >>confdefs.h <<_ACEOF
6057 #define HAVE_SYS_PTMS_H 1
6058 _ACEOF
6059
6060 fi
6061
6062 done
6063
6064
6065 # login_cap.h requires sys/types.h on NetBSD
6066 for ac_header in login_cap.h
6067 do :
6068   ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6069 #include <sys/types.h>
6070
6071 "
6072 if test "x$ac_cv_header_login_cap_h" = xyes; then :
6073   cat >>confdefs.h <<_ACEOF
6074 #define HAVE_LOGIN_CAP_H 1
6075 _ACEOF
6076
6077 fi
6078
6079 done
6080
6081
6082 # older BSDs need sys/param.h before sys/mount.h
6083 for ac_header in sys/mount.h
6084 do :
6085   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6086 #include <sys/param.h>
6087
6088 "
6089 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6090   cat >>confdefs.h <<_ACEOF
6091 #define HAVE_SYS_MOUNT_H 1
6092 _ACEOF
6093
6094 fi
6095
6096 done
6097
6098
6099 # Messages for features tested for in target-specific section
6100 SIA_MSG="no"
6101 SPC_MSG="no"
6102 SP_MSG="no"
6103
6104 # Check for some target-specific stuff
6105 case "$host" in
6106 *-*-aix*)
6107         # Some versions of VAC won't allow macro redefinitions at
6108         # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6109         # particularly with older versions of vac or xlc.
6110         # It also throws errors about null macro argments, but these are
6111         # not fatal.
6112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6113 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6114         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h.  */
6116
6117 #define testmacro foo
6118 #define testmacro bar
6119 int main(void) { exit(0); }
6120
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6124 $as_echo "yes" >&6; }
6125 else
6126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6128               CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6129               LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6130               CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6131               CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6132
6133
6134 fi
6135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136
6137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6138 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6139         if (test -z "$blibpath"); then
6140                 blibpath="/usr/lib:/lib"
6141         fi
6142         saved_LDFLAGS="$LDFLAGS"
6143         if test "$GCC" = "yes"; then
6144                 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6145         else
6146                 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6147         fi
6148         for tryflags in $flags ;do
6149                 if (test -z "$blibflags"); then
6150                         LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6151                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h.  */
6153
6154 int
6155 main ()
6156 {
6157
6158   ;
6159   return 0;
6160 }
6161 _ACEOF
6162 if ac_fn_c_try_link "$LINENO"; then :
6163   blibflags=$tryflags
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext \
6166     conftest$ac_exeext conftest.$ac_ext
6167                 fi
6168         done
6169         if (test -z "$blibflags"); then
6170                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6171 $as_echo "not found" >&6; }
6172                 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6173         else
6174                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6175 $as_echo "$blibflags" >&6; }
6176         fi
6177         LDFLAGS="$saved_LDFLAGS"
6178                 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6179 if test "x$ac_cv_func_authenticate" = xyes; then :
6180
6181 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6182
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6185 $as_echo_n "checking for authenticate in -ls... " >&6; }
6186 if ${ac_cv_lib_s_authenticate+:} false; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189   ac_check_lib_save_LIBS=$LIBS
6190 LIBS="-ls  $LIBS"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h.  */
6193
6194 /* Override any GCC internal prototype to avoid an error.
6195    Use char because int might match the return type of a GCC
6196    builtin and then its argument prototype would still apply.  */
6197 #ifdef __cplusplus
6198 extern "C"
6199 #endif
6200 char authenticate ();
6201 int
6202 main ()
6203 {
6204 return authenticate ();
6205   ;
6206   return 0;
6207 }
6208 _ACEOF
6209 if ac_fn_c_try_link "$LINENO"; then :
6210   ac_cv_lib_s_authenticate=yes
6211 else
6212   ac_cv_lib_s_authenticate=no
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext \
6215     conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6217 fi
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6219 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6220 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6221    $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6222
6223                                 LIBS="$LIBS -ls"
6224
6225 fi
6226
6227
6228 fi
6229
6230                 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6231 "
6232 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6233   ac_have_decl=1
6234 else
6235   ac_have_decl=0
6236 fi
6237
6238 cat >>confdefs.h <<_ACEOF
6239 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6240 _ACEOF
6241 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6242 "
6243 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6244   ac_have_decl=1
6245 else
6246   ac_have_decl=0
6247 fi
6248
6249 cat >>confdefs.h <<_ACEOF
6250 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6251 _ACEOF
6252 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6253 "
6254 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6255   ac_have_decl=1
6256 else
6257   ac_have_decl=0
6258 fi
6259
6260 cat >>confdefs.h <<_ACEOF
6261 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6262 _ACEOF
6263 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6264 "
6265 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6266   ac_have_decl=1
6267 else
6268   ac_have_decl=0
6269 fi
6270
6271 cat >>confdefs.h <<_ACEOF
6272 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6273 _ACEOF
6274 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6275 "
6276 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6277   ac_have_decl=1
6278 else
6279   ac_have_decl=0
6280 fi
6281
6282 cat >>confdefs.h <<_ACEOF
6283 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6284 _ACEOF
6285
6286                 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6287
6288 "
6289 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6290   ac_have_decl=1
6291 else
6292   ac_have_decl=0
6293 fi
6294
6295 cat >>confdefs.h <<_ACEOF
6296 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6297 _ACEOF
6298 if test $ac_have_decl = 1; then :
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6300 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6301                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h.  */
6303 #include <usersec.h>
6304 int
6305 main ()
6306 {
6307 (void)loginfailed("user","host","tty",0);
6308   ;
6309   return 0;
6310 }
6311 _ACEOF
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6314 $as_echo "yes" >&6; }
6315
6316 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6317
6318 else
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325
6326         for ac_func in getgrset setauthdb
6327 do :
6328   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6331   cat >>confdefs.h <<_ACEOF
6332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6333 _ACEOF
6334
6335 fi
6336 done
6337
6338         ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6339               #include <fcntl.h>
6340
6341 "
6342 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6343
6344 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6345
6346 fi
6347
6348         check_for_aix_broken_getaddrinfo=1
6349
6350 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6351
6352
6353 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6354
6355
6356 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6357
6358
6359 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6360
6361
6362 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6363
6364
6365 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6366
6367
6368 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6369
6370
6371 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6372
6373
6374 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6375
6376         ;;
6377 *-*-cygwin*)
6378         check_for_libcrypt_later=1
6379         LIBS="$LIBS /usr/lib/textreadmode.o"
6380
6381 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6382
6383
6384 $as_echo "#define USE_PIPES 1" >>confdefs.h
6385
6386
6387 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6388
6389
6390 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6391
6392
6393 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6394
6395
6396 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6397
6398
6399 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6400
6401
6402 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6403
6404         ;;
6405 *-*-dgux*)
6406
6407 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6408
6409         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6410
6411         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6412
6413         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6414
6415         ;;
6416 *-*-darwin*)
6417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6418 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6419         if test "$cross_compiling" = yes; then :
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6421 $as_echo "assume it is working" >&6; }
6422 else
6423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h.  */
6425 #include <mach-o/dyld.h>
6426 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6427                 exit(0);
6428         else
6429                 exit(1);
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_run "$LINENO"; then :
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6434 $as_echo "working" >&6; }
6435 else
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6437 $as_echo "buggy" >&6; }
6438
6439 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6440
6441 fi
6442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6443   conftest.$ac_objext conftest.beam conftest.$ac_ext
6444 fi
6445
6446         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6447
6448         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6449
6450         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6451
6452
6453 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6454
6455
6456 cat >>confdefs.h <<_ACEOF
6457 #define BIND_8_COMPAT 1
6458 _ACEOF
6459
6460
6461 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6462
6463
6464 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6465
6466
6467 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6468
6469
6470         ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6471 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
6472
6473 else
6474
6475 $as_echo "#define AU_IPv4 0" >>confdefs.h
6476
6477             #include <bsm/audit.h>
6478
6479 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6480
6481
6482 fi
6483
6484         ;;
6485 *-*-dragonfly*)
6486         SSHDLIBS="$SSHDLIBS -lcrypt"
6487         ;;
6488 *-*-haiku*)
6489     LIBS="$LIBS -lbsd "
6490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6491 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6492 if ${ac_cv_lib_network_socket+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   ac_check_lib_save_LIBS=$LIBS
6496 LIBS="-lnetwork  $LIBS"
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h.  */
6499
6500 /* Override any GCC internal prototype to avoid an error.
6501    Use char because int might match the return type of a GCC
6502    builtin and then its argument prototype would still apply.  */
6503 #ifdef __cplusplus
6504 extern "C"
6505 #endif
6506 char socket ();
6507 int
6508 main ()
6509 {
6510 return socket ();
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 if ac_fn_c_try_link "$LINENO"; then :
6516   ac_cv_lib_network_socket=yes
6517 else
6518   ac_cv_lib_network_socket=no
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext \
6521     conftest$ac_exeext conftest.$ac_ext
6522 LIBS=$ac_check_lib_save_LIBS
6523 fi
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6525 $as_echo "$ac_cv_lib_network_socket" >&6; }
6526 if test "x$ac_cv_lib_network_socket" = xyes; then :
6527   cat >>confdefs.h <<_ACEOF
6528 #define HAVE_LIBNETWORK 1
6529 _ACEOF
6530
6531   LIBS="-lnetwork $LIBS"
6532
6533 fi
6534
6535     $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6536
6537     MANTYPE=man
6538     ;;
6539 *-*-hpux*)
6540         # first we define all of the options common to all HP-UX releases
6541         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6542         IPADDR_IN_DISPLAY=yes
6543         $as_echo "#define USE_PIPES 1" >>confdefs.h
6544
6545
6546 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6547
6548         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6549
6550
6551 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6552
6553         $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6554
6555         MAIL="/var/mail/username"
6556         LIBS="$LIBS -lsec"
6557         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6558 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6559 if ${ac_cv_lib_xnet_t_error+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   ac_check_lib_save_LIBS=$LIBS
6563 LIBS="-lxnet  $LIBS"
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h.  */
6566
6567 /* Override any GCC internal prototype to avoid an error.
6568    Use char because int might match the return type of a GCC
6569    builtin and then its argument prototype would still apply.  */
6570 #ifdef __cplusplus
6571 extern "C"
6572 #endif
6573 char t_error ();
6574 int
6575 main ()
6576 {
6577 return t_error ();
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_link "$LINENO"; then :
6583   ac_cv_lib_xnet_t_error=yes
6584 else
6585   ac_cv_lib_xnet_t_error=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext \
6588     conftest$ac_exeext conftest.$ac_ext
6589 LIBS=$ac_check_lib_save_LIBS
6590 fi
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6592 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6593 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
6594   cat >>confdefs.h <<_ACEOF
6595 #define HAVE_LIBXNET 1
6596 _ACEOF
6597
6598   LIBS="-lxnet $LIBS"
6599
6600 else
6601   as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6602 fi
6603
6604
6605         # next, we define all of the options specific to major releases
6606         case "$host" in
6607         *-*-hpux10*)
6608                 if test -z "$GCC"; then
6609                         CFLAGS="$CFLAGS -Ae"
6610                 fi
6611                 ;;
6612         *-*-hpux11*)
6613
6614 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6615
6616
6617 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6618
6619
6620 $as_echo "#define USE_BTMP 1" >>confdefs.h
6621
6622                 check_for_hpux_broken_getaddrinfo=1
6623                 check_for_conflicting_getspnam=1
6624                 ;;
6625         esac
6626
6627         # lastly, we define options specific to minor releases
6628         case "$host" in
6629         *-*-hpux10.26)
6630
6631 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6632
6633                 disable_ptmx_check=yes
6634                 LIBS="$LIBS -lsecpw"
6635                 ;;
6636         esac
6637         ;;
6638 *-*-irix5*)
6639         PATH="$PATH:/usr/etc"
6640
6641 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6642
6643         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6644
6645         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6646
6647         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6648
6649
6650 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6651
6652         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6653
6654         ;;
6655 *-*-irix6*)
6656         PATH="$PATH:/usr/etc"
6657
6658 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6659
6660
6661 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6662
6663
6664 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6665
6666         ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6667 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
6668
6669 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6670
6671 fi
6672
6673         $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6674
6675         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6676
6677         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6678
6679         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6680
6681
6682 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6683
6684         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6685
6686         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6687
6688         ;;
6689 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6690         check_for_libcrypt_later=1
6691         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6692
6693         $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6694
6695         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6696
6697
6698 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6699
6700
6701 $as_echo "#define USE_BTMP 1" >>confdefs.h
6702
6703         ;;
6704 *-*-linux*)
6705         no_dev_ptmx=1
6706         check_for_libcrypt_later=1
6707         check_for_openpty_ctty_bug=1
6708
6709 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6710
6711
6712 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6713
6714         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6715
6716
6717 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6718
6719
6720 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6721
6722         $as_echo "#define USE_BTMP 1" >>confdefs.h
6723
6724
6725 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6726
6727         inet6_default_4in6=yes
6728         case `uname -r` in
6729         1.*|2.0.*)
6730
6731 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6732
6733                 ;;
6734         esac
6735         # tun(4) forwarding compat code
6736         for ac_header in linux/if_tun.h
6737 do :
6738   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6739 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
6740   cat >>confdefs.h <<_ACEOF
6741 #define HAVE_LINUX_IF_TUN_H 1
6742 _ACEOF
6743
6744 fi
6745
6746 done
6747
6748         if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6749
6750 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6751
6752
6753 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6754
6755
6756 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6757
6758         fi
6759         ;;
6760 mips-sony-bsd|mips-sony-newsos4)
6761
6762 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6763
6764         SONY=1
6765         ;;
6766 *-*-netbsd*)
6767         check_for_libcrypt_before=1
6768         if test "x$withval" != "xno" ; then
6769                 need_dash_r=1
6770         fi
6771
6772 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6773
6774         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6775 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6776
6777 else
6778
6779 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6780
6781 fi
6782
6783
6784
6785 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6786
6787         ;;
6788 *-*-freebsd*)
6789         check_for_libcrypt_later=1
6790
6791 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6792
6793
6794 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6795
6796         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6797 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6798
6799 else
6800
6801 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6802
6803 fi
6804
6805
6806
6807 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6808
6809         ;;
6810 *-*-bsdi*)
6811         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6812
6813         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6814
6815         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6816
6817         ;;
6818 *-next-*)
6819         conf_lastlog_location="/usr/adm/lastlog"
6820         conf_utmp_location=/etc/utmp
6821         conf_wtmp_location=/usr/adm/wtmp
6822         MAIL=/usr/spool/mail
6823
6824 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6825
6826         $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6827
6828         $as_echo "#define USE_PIPES 1" >>confdefs.h
6829
6830
6831 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6832
6833         ;;
6834 *-*-openbsd*)
6835
6836 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6837
6838
6839 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6840
6841
6842 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6843
6844
6845 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6846
6847         ;;
6848 *-*-solaris*)
6849         if test "x$withval" != "xno" ; then
6850                 need_dash_r=1
6851         fi
6852         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6853
6854         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6855
6856
6857 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6858
6859         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6860
6861
6862 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6863
6864         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6865
6866         # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6867
6868 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6869
6870
6871 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6872
6873
6874 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
6875
6876         external_path_file=/etc/default/login
6877         # hardwire lastlog location (can't detect it on some versions)
6878         conf_lastlog_location="/var/adm/lastlog"
6879         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
6880 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
6881         sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
6882         if test "$sol2ver" -ge 8; then
6883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6885                 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6886
6887
6888 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6889
6890         else
6891                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893         fi
6894
6895 # Check whether --with-solaris-contracts was given.
6896 if test "${with_solaris_contracts+set}" = set; then :
6897   withval=$with_solaris_contracts;
6898                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
6899 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
6900 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   ac_check_lib_save_LIBS=$LIBS
6904 LIBS="-lcontract  $LIBS"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h.  */
6907
6908 /* Override any GCC internal prototype to avoid an error.
6909    Use char because int might match the return type of a GCC
6910    builtin and then its argument prototype would still apply.  */
6911 #ifdef __cplusplus
6912 extern "C"
6913 #endif
6914 char ct_tmpl_activate ();
6915 int
6916 main ()
6917 {
6918 return ct_tmpl_activate ();
6919   ;
6920   return 0;
6921 }
6922 _ACEOF
6923 if ac_fn_c_try_link "$LINENO"; then :
6924   ac_cv_lib_contract_ct_tmpl_activate=yes
6925 else
6926   ac_cv_lib_contract_ct_tmpl_activate=no
6927 fi
6928 rm -f core conftest.err conftest.$ac_objext \
6929     conftest$ac_exeext conftest.$ac_ext
6930 LIBS=$ac_check_lib_save_LIBS
6931 fi
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
6933 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
6934 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
6935
6936 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
6937
6938                           SSHDLIBS="$SSHDLIBS -lcontract"
6939                           SPC_MSG="yes"
6940 fi
6941
6942
6943 fi
6944
6945
6946 # Check whether --with-solaris-projects was given.
6947 if test "${with_solaris_projects+set}" = set; then :
6948   withval=$with_solaris_projects;
6949                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
6950 $as_echo_n "checking for setproject in -lproject... " >&6; }
6951 if ${ac_cv_lib_project_setproject+:} false; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   ac_check_lib_save_LIBS=$LIBS
6955 LIBS="-lproject  $LIBS"
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958
6959 /* Override any GCC internal prototype to avoid an error.
6960    Use char because int might match the return type of a GCC
6961    builtin and then its argument prototype would still apply.  */
6962 #ifdef __cplusplus
6963 extern "C"
6964 #endif
6965 char setproject ();
6966 int
6967 main ()
6968 {
6969 return setproject ();
6970   ;
6971   return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_link "$LINENO"; then :
6975   ac_cv_lib_project_setproject=yes
6976 else
6977   ac_cv_lib_project_setproject=no
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext \
6980     conftest$ac_exeext conftest.$ac_ext
6981 LIBS=$ac_check_lib_save_LIBS
6982 fi
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
6984 $as_echo "$ac_cv_lib_project_setproject" >&6; }
6985 if test "x$ac_cv_lib_project_setproject" = xyes; then :
6986
6987 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
6988
6989                         SSHDLIBS="$SSHDLIBS -lproject"
6990                         SP_MSG="yes"
6991 fi
6992
6993
6994 fi
6995
6996         ;;
6997 *-*-sunos4*)
6998         CPPFLAGS="$CPPFLAGS -DSUNOS4"
6999         for ac_func in getpwanam
7000 do :
7001   ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7002 if test "x$ac_cv_func_getpwanam" = xyes; then :
7003   cat >>confdefs.h <<_ACEOF
7004 #define HAVE_GETPWANAM 1
7005 _ACEOF
7006
7007 fi
7008 done
7009
7010         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7011
7012         conf_utmp_location=/etc/utmp
7013         conf_wtmp_location=/var/adm/wtmp
7014         conf_lastlog_location=/var/adm/lastlog
7015         $as_echo "#define USE_PIPES 1" >>confdefs.h
7016
7017         ;;
7018 *-ncr-sysv*)
7019         LIBS="$LIBS -lc89"
7020         $as_echo "#define USE_PIPES 1" >>confdefs.h
7021
7022         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7023
7024         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7025
7026         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7027
7028         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7029
7030         ;;
7031 *-sni-sysv*)
7032         # /usr/ucblib MUST NOT be searched on ReliantUNIX
7033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7034 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7035 if ${ac_cv_lib_dl_dlsym+:} false; then :
7036   $as_echo_n "(cached) " >&6
7037 else
7038   ac_check_lib_save_LIBS=$LIBS
7039 LIBS="-ldl  $LIBS"
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h.  */
7042
7043 /* Override any GCC internal prototype to avoid an error.
7044    Use char because int might match the return type of a GCC
7045    builtin and then its argument prototype would still apply.  */
7046 #ifdef __cplusplus
7047 extern "C"
7048 #endif
7049 char dlsym ();
7050 int
7051 main ()
7052 {
7053 return dlsym ();
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 if ac_fn_c_try_link "$LINENO"; then :
7059   ac_cv_lib_dl_dlsym=yes
7060 else
7061   ac_cv_lib_dl_dlsym=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext \
7064     conftest$ac_exeext conftest.$ac_ext
7065 LIBS=$ac_check_lib_save_LIBS
7066 fi
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7068 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7069 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7070   cat >>confdefs.h <<_ACEOF
7071 #define HAVE_LIBDL 1
7072 _ACEOF
7073
7074   LIBS="-ldl $LIBS"
7075
7076 fi
7077
7078         # -lresolv needs to be at the end of LIBS or DNS lookups break
7079         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7080 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7081 if ${ac_cv_lib_resolv_res_query+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   ac_check_lib_save_LIBS=$LIBS
7085 LIBS="-lresolv  $LIBS"
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h.  */
7088
7089 /* Override any GCC internal prototype to avoid an error.
7090    Use char because int might match the return type of a GCC
7091    builtin and then its argument prototype would still apply.  */
7092 #ifdef __cplusplus
7093 extern "C"
7094 #endif
7095 char res_query ();
7096 int
7097 main ()
7098 {
7099 return res_query ();
7100   ;
7101   return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_link "$LINENO"; then :
7105   ac_cv_lib_resolv_res_query=yes
7106 else
7107   ac_cv_lib_resolv_res_query=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext \
7110     conftest$ac_exeext conftest.$ac_ext
7111 LIBS=$ac_check_lib_save_LIBS
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7114 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7115 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7116    LIBS="$LIBS -lresolv"
7117 fi
7118
7119         IPADDR_IN_DISPLAY=yes
7120         $as_echo "#define USE_PIPES 1" >>confdefs.h
7121
7122         $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7123
7124         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7125
7126         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7127
7128         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7129
7130         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7131
7132         external_path_file=/etc/default/login
7133         # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7134         # Attention: always take care to bind libsocket and libnsl before libc,
7135         # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7136         ;;
7137 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7138 *-*-sysv4.2*)
7139         $as_echo "#define USE_PIPES 1" >>confdefs.h
7140
7141         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7142
7143         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7144
7145         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7146
7147
7148 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7149
7150         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7151
7152         ;;
7153 # UnixWare 7.x, OpenUNIX 8
7154 *-*-sysv5*)
7155         CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7156
7157 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7158
7159         $as_echo "#define USE_PIPES 1" >>confdefs.h
7160
7161         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7162
7163         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7164
7165         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7166
7167         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7168
7169         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7170
7171         case "$host" in
7172         *-*-sysv5SCO_SV*)       # SCO OpenServer 6.x
7173                 TEST_SHELL=/u95/bin/sh
7174
7175 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7176
7177                 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7178
7179                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7180 $as_echo_n "checking for getluid in -lprot... " >&6; }
7181 if ${ac_cv_lib_prot_getluid+:} false; then :
7182   $as_echo_n "(cached) " >&6
7183 else
7184   ac_check_lib_save_LIBS=$LIBS
7185 LIBS="-lprot  $LIBS"
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188
7189 /* Override any GCC internal prototype to avoid an error.
7190    Use char because int might match the return type of a GCC
7191    builtin and then its argument prototype would still apply.  */
7192 #ifdef __cplusplus
7193 extern "C"
7194 #endif
7195 char getluid ();
7196 int
7197 main ()
7198 {
7199 return getluid ();
7200   ;
7201   return 0;
7202 }
7203 _ACEOF
7204 if ac_fn_c_try_link "$LINENO"; then :
7205   ac_cv_lib_prot_getluid=yes
7206 else
7207   ac_cv_lib_prot_getluid=no
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext \
7210     conftest$ac_exeext conftest.$ac_ext
7211 LIBS=$ac_check_lib_save_LIBS
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7214 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7215 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
7216    LIBS="$LIBS -lprot"
7217                         for ac_func in getluid setluid
7218 do :
7219   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7221 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7222   cat >>confdefs.h <<_ACEOF
7223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7224 _ACEOF
7225
7226 fi
7227 done
7228
7229                         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7230
7231                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7232
7233
7234 fi
7235
7236                 ;;
7237         *)      $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7238
7239                 check_for_libcrypt_later=1
7240                 ;;
7241         esac
7242         ;;
7243 *-*-sysv*)
7244         ;;
7245 # SCO UNIX and OEM versions of SCO UNIX
7246 *-*-sco3.2v4*)
7247         as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7248         ;;
7249 # SCO OpenServer 5.x
7250 *-*-sco3.2v5*)
7251         if test -z "$GCC"; then
7252                 CFLAGS="$CFLAGS -belf"
7253         fi
7254         LIBS="$LIBS -lprot -lx -ltinfo -lm"
7255         no_dev_ptmx=1
7256         $as_echo "#define USE_PIPES 1" >>confdefs.h
7257
7258         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7259
7260         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7261
7262         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7263
7264         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7265
7266         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7267
7268         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7269
7270         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7271
7272         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7273
7274         $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7275
7276         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7277
7278         for ac_func in getluid setluid
7279 do :
7280   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7282 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7283   cat >>confdefs.h <<_ACEOF
7284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7285 _ACEOF
7286
7287 fi
7288 done
7289
7290         MANTYPE=man
7291         TEST_SHELL=ksh
7292         ;;
7293 *-*-unicosmk*)
7294
7295 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7296
7297         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7298
7299         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7300
7301         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7302
7303         $as_echo "#define USE_PIPES 1" >>confdefs.h
7304
7305         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7306
7307         LDFLAGS="$LDFLAGS"
7308         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7309         MANTYPE=cat
7310         ;;
7311 *-*-unicosmp*)
7312         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7313
7314         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7315
7316         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7317
7318         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7319
7320         $as_echo "#define USE_PIPES 1" >>confdefs.h
7321
7322         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7323
7324         LDFLAGS="$LDFLAGS"
7325         LIBS="$LIBS -lgen -lacid -ldb"
7326         MANTYPE=cat
7327         ;;
7328 *-*-unicos*)
7329         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7330
7331         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7332
7333         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7334
7335         $as_echo "#define USE_PIPES 1" >>confdefs.h
7336
7337         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7338
7339         $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7340
7341         LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7342         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7343         MANTYPE=cat
7344         ;;
7345 *-dec-osf*)
7346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7347 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7348         no_osfsia=""
7349
7350 # Check whether --with-osfsia was given.
7351 if test "${with_osfsia+set}" = set; then :
7352   withval=$with_osfsia;
7353                         if test "x$withval" = "xno" ; then
7354                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7355 $as_echo "disabled" >&6; }
7356                                 no_osfsia=1
7357                         fi
7358
7359 fi
7360
7361         if test -z "$no_osfsia" ; then
7362                 if test -f /etc/sia/matrix.conf; then
7363                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7364 $as_echo "yes" >&6; }
7365
7366 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7367
7368
7369 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7370
7371                         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7372
7373                         LIBS="$LIBS -lsecurity -ldb -lm -laud"
7374                         SIA_MSG="yes"
7375                 else
7376                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378
7379 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7380
7381                 fi
7382         fi
7383         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7384
7385         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7386
7387         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7388
7389         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7390
7391
7392 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7393
7394         ;;
7395
7396 *-*-nto-qnx*)
7397         $as_echo "#define USE_PIPES 1" >>confdefs.h
7398
7399         $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7400
7401
7402 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7403
7404
7405 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7406
7407
7408 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7409
7410         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7411
7412         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7413
7414
7415 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7416
7417         enable_etc_default_login=no     # has incompatible /etc/default/login
7418         case "$host" in
7419         *-*-nto-qnx6*)
7420                 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7421
7422                 ;;
7423         esac
7424         ;;
7425
7426 *-*-ultrix*)
7427
7428 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7429
7430
7431 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7432
7433         $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7434
7435
7436 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7437
7438         ;;
7439
7440 *-*-lynxos)
7441         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7442         $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7443
7444
7445 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7446
7447         ;;
7448 esac
7449
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7451 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7452 if test "$cross_compiling" = yes; then :
7453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7454 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7455
7456 else
7457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h.  */
7459
7460 #include <stdio.h>
7461 int main(){exit(0);}
7462
7463 _ACEOF
7464 if ac_fn_c_try_run "$LINENO"; then :
7465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7466 $as_echo "yes" >&6; }
7467 else
7468
7469                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471                 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7472
7473 fi
7474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7475   conftest.$ac_objext conftest.beam conftest.$ac_ext
7476 fi
7477
7478
7479 # Checks for libraries.
7480 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7481 if test "x$ac_cv_func_yp_match" = xyes; then :
7482
7483 else
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7485 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7486 if ${ac_cv_lib_nsl_yp_match+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   ac_check_lib_save_LIBS=$LIBS
7490 LIBS="-lnsl  $LIBS"
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h.  */
7493
7494 /* Override any GCC internal prototype to avoid an error.
7495    Use char because int might match the return type of a GCC
7496    builtin and then its argument prototype would still apply.  */
7497 #ifdef __cplusplus
7498 extern "C"
7499 #endif
7500 char yp_match ();
7501 int
7502 main ()
7503 {
7504 return yp_match ();
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 if ac_fn_c_try_link "$LINENO"; then :
7510   ac_cv_lib_nsl_yp_match=yes
7511 else
7512   ac_cv_lib_nsl_yp_match=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext \
7515     conftest$ac_exeext conftest.$ac_ext
7516 LIBS=$ac_check_lib_save_LIBS
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7519 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7520 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
7521   cat >>confdefs.h <<_ACEOF
7522 #define HAVE_LIBNSL 1
7523 _ACEOF
7524
7525   LIBS="-lnsl $LIBS"
7526
7527 fi
7528
7529 fi
7530
7531 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7532 if test "x$ac_cv_func_setsockopt" = xyes; then :
7533
7534 else
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7536 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7537 if ${ac_cv_lib_socket_setsockopt+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-lsocket  $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h.  */
7544
7545 /* Override any GCC internal prototype to avoid an error.
7546    Use char because int might match the return type of a GCC
7547    builtin and then its argument prototype would still apply.  */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char setsockopt ();
7552 int
7553 main ()
7554 {
7555 return setsockopt ();
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561   ac_cv_lib_socket_setsockopt=yes
7562 else
7563   ac_cv_lib_socket_setsockopt=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext \
7566     conftest$ac_exeext conftest.$ac_ext
7567 LIBS=$ac_check_lib_save_LIBS
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7570 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7571 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7572   cat >>confdefs.h <<_ACEOF
7573 #define HAVE_LIBSOCKET 1
7574 _ACEOF
7575
7576   LIBS="-lsocket $LIBS"
7577
7578 fi
7579
7580 fi
7581
7582
7583 for ac_func in dirname
7584 do :
7585   ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7586 if test "x$ac_cv_func_dirname" = xyes; then :
7587   cat >>confdefs.h <<_ACEOF
7588 #define HAVE_DIRNAME 1
7589 _ACEOF
7590  for ac_header in libgen.h
7591 do :
7592   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7593 if test "x$ac_cv_header_libgen_h" = xyes; then :
7594   cat >>confdefs.h <<_ACEOF
7595 #define HAVE_LIBGEN_H 1
7596 _ACEOF
7597
7598 fi
7599
7600 done
7601
7602 else
7603
7604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7605 $as_echo_n "checking for dirname in -lgen... " >&6; }
7606 if ${ac_cv_lib_gen_dirname+:} false; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   ac_check_lib_save_LIBS=$LIBS
7610 LIBS="-lgen  $LIBS"
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h.  */
7613
7614 /* Override any GCC internal prototype to avoid an error.
7615    Use char because int might match the return type of a GCC
7616    builtin and then its argument prototype would still apply.  */
7617 #ifdef __cplusplus
7618 extern "C"
7619 #endif
7620 char dirname ();
7621 int
7622 main ()
7623 {
7624 return dirname ();
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_link "$LINENO"; then :
7630   ac_cv_lib_gen_dirname=yes
7631 else
7632   ac_cv_lib_gen_dirname=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext \
7635     conftest$ac_exeext conftest.$ac_ext
7636 LIBS=$ac_check_lib_save_LIBS
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7639 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7640 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
7641
7642                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7643 $as_echo_n "checking for broken dirname... " >&6; }
7644 if ${ac_cv_have_broken_dirname+:} false; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647
7648                         save_LIBS="$LIBS"
7649                         LIBS="$LIBS -lgen"
7650                         if test "$cross_compiling" = yes; then :
7651    ac_cv_have_broken_dirname="no"
7652 else
7653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655
7656 #include <libgen.h>
7657 #include <string.h>
7658
7659 int main(int argc, char **argv) {
7660     char *s, buf[32];
7661
7662     strncpy(buf,"/etc", 32);
7663     s = dirname(buf);
7664     if (!s || strncmp(s, "/", 32) != 0) {
7665         exit(1);
7666     } else {
7667         exit(0);
7668     }
7669 }
7670
7671 _ACEOF
7672 if ac_fn_c_try_run "$LINENO"; then :
7673    ac_cv_have_broken_dirname="no"
7674 else
7675    ac_cv_have_broken_dirname="yes"
7676 fi
7677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7678   conftest.$ac_objext conftest.beam conftest.$ac_ext
7679 fi
7680
7681                         LIBS="$save_LIBS"
7682
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7685 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7686                 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7687                         LIBS="$LIBS -lgen"
7688                         $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7689
7690                         for ac_header in libgen.h
7691 do :
7692   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7693 if test "x$ac_cv_header_libgen_h" = xyes; then :
7694   cat >>confdefs.h <<_ACEOF
7695 #define HAVE_LIBGEN_H 1
7696 _ACEOF
7697
7698 fi
7699
7700 done
7701
7702                 fi
7703
7704 fi
7705
7706
7707 fi
7708 done
7709
7710
7711 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7712 if test "x$ac_cv_func_getspnam" = xyes; then :
7713
7714 else
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7716 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7717 if ${ac_cv_lib_gen_getspnam+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720   ac_check_lib_save_LIBS=$LIBS
7721 LIBS="-lgen  $LIBS"
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h.  */
7724
7725 /* Override any GCC internal prototype to avoid an error.
7726    Use char because int might match the return type of a GCC
7727    builtin and then its argument prototype would still apply.  */
7728 #ifdef __cplusplus
7729 extern "C"
7730 #endif
7731 char getspnam ();
7732 int
7733 main ()
7734 {
7735 return getspnam ();
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_link "$LINENO"; then :
7741   ac_cv_lib_gen_getspnam=yes
7742 else
7743   ac_cv_lib_gen_getspnam=no
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext \
7746     conftest$ac_exeext conftest.$ac_ext
7747 LIBS=$ac_check_lib_save_LIBS
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7750 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7751 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
7752   LIBS="$LIBS -lgen"
7753 fi
7754
7755 fi
7756
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7758 $as_echo_n "checking for library containing basename... " >&6; }
7759 if ${ac_cv_search_basename+:} false; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   ac_func_search_save_LIBS=$LIBS
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h.  */
7765
7766 /* Override any GCC internal prototype to avoid an error.
7767    Use char because int might match the return type of a GCC
7768    builtin and then its argument prototype would still apply.  */
7769 #ifdef __cplusplus
7770 extern "C"
7771 #endif
7772 char basename ();
7773 int
7774 main ()
7775 {
7776 return basename ();
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 for ac_lib in '' gen; do
7782   if test -z "$ac_lib"; then
7783     ac_res="none required"
7784   else
7785     ac_res=-l$ac_lib
7786     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7787   fi
7788   if ac_fn_c_try_link "$LINENO"; then :
7789   ac_cv_search_basename=$ac_res
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext \
7792     conftest$ac_exeext
7793   if ${ac_cv_search_basename+:} false; then :
7794   break
7795 fi
7796 done
7797 if ${ac_cv_search_basename+:} false; then :
7798
7799 else
7800   ac_cv_search_basename=no
7801 fi
7802 rm conftest.$ac_ext
7803 LIBS=$ac_func_search_save_LIBS
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7806 $as_echo "$ac_cv_search_basename" >&6; }
7807 ac_res=$ac_cv_search_basename
7808 if test "$ac_res" != no; then :
7809   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7810
7811 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7812
7813 fi
7814
7815
7816
7817 # Check whether --with-zlib was given.
7818 if test "${with_zlib+set}" = set; then :
7819   withval=$with_zlib;  if test "x$withval" = "xno" ; then
7820                 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7821           elif test "x$withval" != "xyes"; then
7822                 if test -d "$withval/lib"; then
7823                         if test -n "${need_dash_r}"; then
7824                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7825                         else
7826                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7827                         fi
7828                 else
7829                         if test -n "${need_dash_r}"; then
7830                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7831                         else
7832                                 LDFLAGS="-L${withval} ${LDFLAGS}"
7833                         fi
7834                 fi
7835                 if test -d "$withval/include"; then
7836                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7837                 else
7838                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
7839                 fi
7840         fi
7841
7842 fi
7843
7844
7845 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7846 if test "x$ac_cv_header_zlib_h" = xyes; then :
7847
7848 else
7849   as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7850 fi
7851
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7854 $as_echo_n "checking for deflate in -lz... " >&6; }
7855 if ${ac_cv_lib_z_deflate+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   ac_check_lib_save_LIBS=$LIBS
7859 LIBS="-lz  $LIBS"
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h.  */
7862
7863 /* Override any GCC internal prototype to avoid an error.
7864    Use char because int might match the return type of a GCC
7865    builtin and then its argument prototype would still apply.  */
7866 #ifdef __cplusplus
7867 extern "C"
7868 #endif
7869 char deflate ();
7870 int
7871 main ()
7872 {
7873 return deflate ();
7874   ;
7875   return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_link "$LINENO"; then :
7879   ac_cv_lib_z_deflate=yes
7880 else
7881   ac_cv_lib_z_deflate=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext \
7884     conftest$ac_exeext conftest.$ac_ext
7885 LIBS=$ac_check_lib_save_LIBS
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
7888 $as_echo "$ac_cv_lib_z_deflate" >&6; }
7889 if test "x$ac_cv_lib_z_deflate" = xyes; then :
7890   cat >>confdefs.h <<_ACEOF
7891 #define HAVE_LIBZ 1
7892 _ACEOF
7893
7894   LIBS="-lz $LIBS"
7895
7896 else
7897
7898                 saved_CPPFLAGS="$CPPFLAGS"
7899                 saved_LDFLAGS="$LDFLAGS"
7900                 save_LIBS="$LIBS"
7901                                 if test -n "${need_dash_r}"; then
7902                         LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
7903                 else
7904                         LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
7905                 fi
7906                 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
7907                 LIBS="$LIBS -lz"
7908                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h.  */
7910
7911 /* Override any GCC internal prototype to avoid an error.
7912    Use char because int might match the return type of a GCC
7913    builtin and then its argument prototype would still apply.  */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 char deflate ();
7918 int
7919 main ()
7920 {
7921 return deflate ();
7922   ;
7923   return 0;
7924 }
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"; then :
7927   $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7928
7929 else
7930
7931                                 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
7932
7933
7934 fi
7935 rm -f core conftest.err conftest.$ac_objext \
7936     conftest$ac_exeext conftest.$ac_ext
7937
7938
7939 fi
7940
7941
7942
7943 # Check whether --with-zlib-version-check was given.
7944 if test "${with_zlib_version_check+set}" = set; then :
7945   withval=$with_zlib_version_check;   if test "x$withval" = "xno" ; then
7946                 zlib_check_nonfatal=1
7947            fi
7948
7949
7950 fi
7951
7952
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
7954 $as_echo_n "checking for possibly buggy zlib... " >&6; }
7955 if test "$cross_compiling" = yes; then :
7956         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
7957 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
7958
7959 else
7960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h.  */
7962
7963 #include <stdio.h>
7964 #include <zlib.h>
7965 int main()
7966 {
7967         int a=0, b=0, c=0, d=0, n, v;
7968         n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
7969         if (n != 3 && n != 4)
7970                 exit(1);
7971         v = a*1000000 + b*10000 + c*100 + d;
7972         fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
7973
7974         /* 1.1.4 is OK */
7975         if (a == 1 && b == 1 && c >= 4)
7976                 exit(0);
7977
7978         /* 1.2.3 and up are OK */
7979         if (v >= 1020300)
7980                 exit(0);
7981
7982         exit(2);
7983 }
7984
7985 _ACEOF
7986 if ac_fn_c_try_run "$LINENO"; then :
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 else
7990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7991 $as_echo "yes" >&6; }
7992           if test -z "$zlib_check_nonfatal" ; then
7993                 as_fn_error $? "*** zlib too old - check config.log ***
7994 Your reported zlib version has known security problems.  It's possible your
7995 vendor has fixed these problems without changing the version number.  If you
7996 are sure this is the case, you can disable the check by running
7997 \"./configure --without-zlib-version-check\".
7998 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
7999 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8000           else
8001                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8002 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8003           fi
8004
8005 fi
8006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8007   conftest.$ac_objext conftest.beam conftest.$ac_ext
8008 fi
8009
8010
8011 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8012 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8013
8014 else
8015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8016 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8017 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   ac_check_lib_save_LIBS=$LIBS
8021 LIBS="-lresolv  $LIBS"
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h.  */
8024
8025 /* Override any GCC internal prototype to avoid an error.
8026    Use char because int might match the return type of a GCC
8027    builtin and then its argument prototype would still apply.  */
8028 #ifdef __cplusplus
8029 extern "C"
8030 #endif
8031 char strcasecmp ();
8032 int
8033 main ()
8034 {
8035 return strcasecmp ();
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 if ac_fn_c_try_link "$LINENO"; then :
8041   ac_cv_lib_resolv_strcasecmp=yes
8042 else
8043   ac_cv_lib_resolv_strcasecmp=no
8044 fi
8045 rm -f core conftest.err conftest.$ac_objext \
8046     conftest$ac_exeext conftest.$ac_ext
8047 LIBS=$ac_check_lib_save_LIBS
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8050 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8051 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8052   LIBS="$LIBS -lresolv"
8053 fi
8054
8055
8056 fi
8057
8058 for ac_func in utimes
8059 do :
8060   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8061 if test "x$ac_cv_func_utimes" = xyes; then :
8062   cat >>confdefs.h <<_ACEOF
8063 #define HAVE_UTIMES 1
8064 _ACEOF
8065
8066 else
8067    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8068 $as_echo_n "checking for utimes in -lc89... " >&6; }
8069 if ${ac_cv_lib_c89_utimes+:} false; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   ac_check_lib_save_LIBS=$LIBS
8073 LIBS="-lc89  $LIBS"
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h.  */
8076
8077 /* Override any GCC internal prototype to avoid an error.
8078    Use char because int might match the return type of a GCC
8079    builtin and then its argument prototype would still apply.  */
8080 #ifdef __cplusplus
8081 extern "C"
8082 #endif
8083 char utimes ();
8084 int
8085 main ()
8086 {
8087 return utimes ();
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 if ac_fn_c_try_link "$LINENO"; then :
8093   ac_cv_lib_c89_utimes=yes
8094 else
8095   ac_cv_lib_c89_utimes=no
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext \
8098     conftest$ac_exeext conftest.$ac_ext
8099 LIBS=$ac_check_lib_save_LIBS
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8102 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8103 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8104   $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8105
8106                                         LIBS="$LIBS -lc89"
8107 fi
8108
8109
8110 fi
8111 done
8112
8113
8114 for ac_header in libutil.h
8115 do :
8116   ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8117 if test "x$ac_cv_header_libutil_h" = xyes; then :
8118   cat >>confdefs.h <<_ACEOF
8119 #define HAVE_LIBUTIL_H 1
8120 _ACEOF
8121
8122 fi
8123
8124 done
8125
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8127 $as_echo_n "checking for library containing login... " >&6; }
8128 if ${ac_cv_search_login+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   ac_func_search_save_LIBS=$LIBS
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h.  */
8134
8135 /* Override any GCC internal prototype to avoid an error.
8136    Use char because int might match the return type of a GCC
8137    builtin and then its argument prototype would still apply.  */
8138 #ifdef __cplusplus
8139 extern "C"
8140 #endif
8141 char login ();
8142 int
8143 main ()
8144 {
8145 return login ();
8146   ;
8147   return 0;
8148 }
8149 _ACEOF
8150 for ac_lib in '' util bsd; do
8151   if test -z "$ac_lib"; then
8152     ac_res="none required"
8153   else
8154     ac_res=-l$ac_lib
8155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8156   fi
8157   if ac_fn_c_try_link "$LINENO"; then :
8158   ac_cv_search_login=$ac_res
8159 fi
8160 rm -f core conftest.err conftest.$ac_objext \
8161     conftest$ac_exeext
8162   if ${ac_cv_search_login+:} false; then :
8163   break
8164 fi
8165 done
8166 if ${ac_cv_search_login+:} false; then :
8167
8168 else
8169   ac_cv_search_login=no
8170 fi
8171 rm conftest.$ac_ext
8172 LIBS=$ac_func_search_save_LIBS
8173 fi
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8175 $as_echo "$ac_cv_search_login" >&6; }
8176 ac_res=$ac_cv_search_login
8177 if test "$ac_res" != no; then :
8178   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8179
8180 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
8181
8182 fi
8183
8184 for ac_func in fmt_scaled logout updwtmp logwtmp
8185 do :
8186   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8189   cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8191 _ACEOF
8192
8193 fi
8194 done
8195
8196
8197 for ac_func in strftime
8198 do :
8199   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8200 if test "x$ac_cv_func_strftime" = xyes; then :
8201   cat >>confdefs.h <<_ACEOF
8202 #define HAVE_STRFTIME 1
8203 _ACEOF
8204
8205 else
8206   # strftime is in -lintl on SCO UNIX.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8208 $as_echo_n "checking for strftime in -lintl... " >&6; }
8209 if ${ac_cv_lib_intl_strftime+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lintl  $LIBS"
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h.  */
8216
8217 /* Override any GCC internal prototype to avoid an error.
8218    Use char because int might match the return type of a GCC
8219    builtin and then its argument prototype would still apply.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char strftime ();
8224 int
8225 main ()
8226 {
8227 return strftime ();
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233   ac_cv_lib_intl_strftime=yes
8234 else
8235   ac_cv_lib_intl_strftime=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238     conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8242 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8243 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8244   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8245
8246 LIBS="-lintl $LIBS"
8247 fi
8248
8249 fi
8250 done
8251
8252
8253 # Check for ALTDIRFUNC glob() extension
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8255 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258
8259                 #include <glob.h>
8260                 #ifdef GLOB_ALTDIRFUNC
8261                 FOUNDIT
8262                 #endif
8263
8264 _ACEOF
8265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8266   $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8267
8268
8269 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8270
8271                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8273
8274 else
8275
8276                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278
8279
8280 fi
8281 rm -f conftest*
8282
8283
8284 # Check for g.gl_matchc glob() extension
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8286 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h.  */
8289  #include <glob.h>
8290 int
8291 main ()
8292 {
8293 glob_t g; g.gl_matchc = 1;
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 if ac_fn_c_try_compile "$LINENO"; then :
8299
8300
8301 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8302
8303                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8304 $as_echo "yes" >&6; }
8305
8306 else
8307
8308                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8310
8311
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314
8315 # Check for g.gl_statv glob() extension
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8317 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320  #include <glob.h>
8321 int
8322 main ()
8323 {
8324
8325 #ifndef GLOB_KEEPSTAT
8326 #error "glob does not support GLOB_KEEPSTAT extension"
8327 #endif
8328 glob_t g;
8329 g.gl_statv = NULL;
8330
8331   ;
8332   return 0;
8333 }
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336
8337
8338 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8339
8340                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8341 $as_echo "yes" >&6; }
8342
8343 else
8344
8345                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8347
8348
8349 fi
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351
8352 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8353 "
8354 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
8355   ac_have_decl=1
8356 else
8357   ac_have_decl=0
8358 fi
8359
8360 cat >>confdefs.h <<_ACEOF
8361 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8362 _ACEOF
8363
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8366 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8367 if test "$cross_compiling" = yes; then :
8368
8369                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8370 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8371                 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8372
8373
8374
8375 else
8376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h.  */
8378
8379 #include <sys/types.h>
8380 #include <dirent.h>
8381 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
8382
8383 _ACEOF
8384 if ac_fn_c_try_run "$LINENO"; then :
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8386 $as_echo "yes" >&6; }
8387 else
8388
8389                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391
8392 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8393
8394
8395 fi
8396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8397   conftest.$ac_objext conftest.beam conftest.$ac_ext
8398 fi
8399
8400
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8402 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8403 if test -d "/proc/$$/fd" ; then
8404
8405 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8406
8407         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408 $as_echo "yes" >&6; }
8409 else
8410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8412 fi
8413
8414 # Check whether user wants S/Key support
8415 SKEY_MSG="no"
8416
8417 # Check whether --with-skey was given.
8418 if test "${with_skey+set}" = set; then :
8419   withval=$with_skey;
8420                 if test "x$withval" != "xno" ; then
8421
8422                         if test "x$withval" != "xyes" ; then
8423                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8424                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
8425                         fi
8426
8427
8428 $as_echo "#define SKEY 1" >>confdefs.h
8429
8430                         LIBS="-lskey $LIBS"
8431                         SKEY_MSG="yes"
8432
8433                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8434 $as_echo_n "checking for s/key support... " >&6; }
8435                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h.  */
8437
8438 #include <stdio.h>
8439 #include <skey.h>
8440 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
8441
8442 _ACEOF
8443 if ac_fn_c_try_link "$LINENO"; then :
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445 $as_echo "yes" >&6; }
8446 else
8447
8448                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450                                         as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8451
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext \
8454     conftest$ac_exeext conftest.$ac_ext
8455                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8456 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8457                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h.  */
8459 #include <stdio.h>
8460                                  #include <skey.h>
8461 int
8462 main ()
8463 {
8464 (void)skeychallenge(NULL,"name","",0);
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 if ac_fn_c_try_compile "$LINENO"; then :
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8471 $as_echo "yes" >&6; }
8472
8473 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8474
8475 else
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481                 fi
8482
8483
8484 fi
8485
8486
8487 # Check whether user wants TCP wrappers support
8488 TCPW_MSG="no"
8489
8490 # Check whether --with-tcp-wrappers was given.
8491 if test "${with_tcp_wrappers+set}" = set; then :
8492   withval=$with_tcp_wrappers;
8493                 if test "x$withval" != "xno" ; then
8494                         saved_LIBS="$LIBS"
8495                         saved_LDFLAGS="$LDFLAGS"
8496                         saved_CPPFLAGS="$CPPFLAGS"
8497                         if test -n "${withval}" && \
8498                             test "x${withval}" != "xyes"; then
8499                                 if test -d "${withval}/lib"; then
8500                                         if test -n "${need_dash_r}"; then
8501                                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8502                                         else
8503                                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8504                                         fi
8505                                 else
8506                                         if test -n "${need_dash_r}"; then
8507                                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8508                                         else
8509                                                 LDFLAGS="-L${withval} ${LDFLAGS}"
8510                                         fi
8511                                 fi
8512                                 if test -d "${withval}/include"; then
8513                                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8514                                 else
8515                                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
8516                                 fi
8517                         fi
8518                         LIBS="-lwrap $LIBS"
8519                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8520 $as_echo_n "checking for libwrap... " >&6; }
8521                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h.  */
8523
8524 #include <sys/types.h>
8525 #include <sys/socket.h>
8526 #include <netinet/in.h>
8527 #include <tcpd.h>
8528                                         int deny_severity = 0, allow_severity = 0;
8529
8530 int
8531 main ()
8532 {
8533 hosts_access(0);
8534   ;
8535   return 0;
8536 }
8537 _ACEOF
8538 if ac_fn_c_try_link "$LINENO"; then :
8539
8540                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8541 $as_echo "yes" >&6; }
8542
8543 $as_echo "#define LIBWRAP 1" >>confdefs.h
8544
8545                                         SSHDLIBS="$SSHDLIBS -lwrap"
8546                                         TCPW_MSG="yes"
8547
8548 else
8549
8550                                         as_fn_error $? "*** libwrap missing" "$LINENO" 5
8551
8552
8553 fi
8554 rm -f core conftest.err conftest.$ac_objext \
8555     conftest$ac_exeext conftest.$ac_ext
8556                         LIBS="$saved_LIBS"
8557                 fi
8558
8559
8560 fi
8561
8562
8563 # Check whether user wants libedit support
8564 LIBEDIT_MSG="no"
8565
8566 # Check whether --with-libedit was given.
8567 if test "${with_libedit+set}" = set; then :
8568   withval=$with_libedit;  if test "x$withval" != "xno" ; then
8569                 if test "x$withval" = "xyes" ; then
8570                         # Extract the first word of "pkg-config", so it can be a program name with args.
8571 set dummy pkg-config; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_path_PKGCONFIG+:} false; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   case $PKGCONFIG in
8578   [\\/]* | ?:[\\/]*)
8579   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
8580   ;;
8581   *)
8582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8584 do
8585   IFS=$as_save_IFS
8586   test -z "$as_dir" && as_dir=.
8587     for ac_exec_ext in '' $ac_executable_extensions; do
8588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591     break 2
8592   fi
8593 done
8594   done
8595 IFS=$as_save_IFS
8596
8597   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
8598   ;;
8599 esac
8600 fi
8601 PKGCONFIG=$ac_cv_path_PKGCONFIG
8602 if test -n "$PKGCONFIG"; then
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8604 $as_echo "$PKGCONFIG" >&6; }
8605 else
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 fi
8609
8610
8611                         if test "x$PKGCONFIG" != "xno"; then
8612                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
8613 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
8614                                 if "$PKGCONFIG" libedit; then
8615                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8616 $as_echo "yes" >&6; }
8617                                         use_pkgconfig_for_libedit=yes
8618                                 else
8619                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 $as_echo "no" >&6; }
8621                                 fi
8622                         fi
8623                 else
8624                         CPPFLAGS="$CPPFLAGS -I${withval}/include"
8625                         if test -n "${need_dash_r}"; then
8626                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8627                         else
8628                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8629                         fi
8630                 fi
8631                 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
8632                         LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
8633                         CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
8634                 else
8635                         LIBEDIT="-ledit -lcurses"
8636                 fi
8637                 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
8638                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8639 $as_echo_n "checking for el_init in -ledit... " >&6; }
8640 if ${ac_cv_lib_edit_el_init+:} false; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   ac_check_lib_save_LIBS=$LIBS
8644 LIBS="-ledit  $OTHERLIBS
8645                  $LIBS"
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h.  */
8648
8649 /* Override any GCC internal prototype to avoid an error.
8650    Use char because int might match the return type of a GCC
8651    builtin and then its argument prototype would still apply.  */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 char el_init ();
8656 int
8657 main ()
8658 {
8659 return el_init ();
8660   ;
8661   return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_link "$LINENO"; then :
8665   ac_cv_lib_edit_el_init=yes
8666 else
8667   ac_cv_lib_edit_el_init=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext \
8670     conftest$ac_exeext conftest.$ac_ext
8671 LIBS=$ac_check_lib_save_LIBS
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8674 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8675 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
8676
8677 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8678
8679                           LIBEDIT_MSG="yes"
8680
8681
8682 else
8683    as_fn_error $? "libedit not found" "$LINENO" 5
8684 fi
8685
8686                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8687 $as_echo_n "checking if libedit version is compatible... " >&6; }
8688                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h.  */
8690
8691 #include <histedit.h>
8692 int main(void)
8693 {
8694         int i = H_SETSIZE;
8695         el_init("", NULL, NULL, NULL);
8696         exit(0);
8697 }
8698
8699 _ACEOF
8700 if ac_fn_c_try_compile "$LINENO"; then :
8701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8702 $as_echo "yes" >&6; }
8703 else
8704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8706                       as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8707
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710         fi
8711
8712 fi
8713
8714
8715 AUDIT_MODULE=none
8716
8717 # Check whether --with-audit was given.
8718 if test "${with_audit+set}" = set; then :
8719   withval=$with_audit;
8720           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8721 $as_echo_n "checking for supported audit module... " >&6; }
8722           case "$withval" in
8723           bsm)
8724                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8725 $as_echo "bsm" >&6; }
8726                 AUDIT_MODULE=bsm
8727                                 for ac_header in bsm/audit.h
8728 do :
8729   ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8730 #ifdef HAVE_TIME_H
8731 # include <time.h>
8732 #endif
8733
8734
8735 "
8736 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
8737   cat >>confdefs.h <<_ACEOF
8738 #define HAVE_BSM_AUDIT_H 1
8739 _ACEOF
8740
8741 else
8742   as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8743 fi
8744
8745 done
8746
8747                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8748 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8749 if ${ac_cv_lib_bsm_getaudit+:} false; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752   ac_check_lib_save_LIBS=$LIBS
8753 LIBS="-lbsm  $LIBS"
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756
8757 /* Override any GCC internal prototype to avoid an error.
8758    Use char because int might match the return type of a GCC
8759    builtin and then its argument prototype would still apply.  */
8760 #ifdef __cplusplus
8761 extern "C"
8762 #endif
8763 char getaudit ();
8764 int
8765 main ()
8766 {
8767 return getaudit ();
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 if ac_fn_c_try_link "$LINENO"; then :
8773   ac_cv_lib_bsm_getaudit=yes
8774 else
8775   ac_cv_lib_bsm_getaudit=no
8776 fi
8777 rm -f core conftest.err conftest.$ac_objext \
8778     conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
8782 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
8783 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
8784   cat >>confdefs.h <<_ACEOF
8785 #define HAVE_LIBBSM 1
8786 _ACEOF
8787
8788   LIBS="-lbsm $LIBS"
8789
8790 else
8791   as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
8792 fi
8793
8794                 for ac_func in getaudit
8795 do :
8796   ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
8797 if test "x$ac_cv_func_getaudit" = xyes; then :
8798   cat >>confdefs.h <<_ACEOF
8799 #define HAVE_GETAUDIT 1
8800 _ACEOF
8801
8802 else
8803   as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
8804 fi
8805 done
8806
8807                 # These are optional
8808                 for ac_func in getaudit_addr aug_get_machine
8809 do :
8810   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8813   cat >>confdefs.h <<_ACEOF
8814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8815 _ACEOF
8816
8817 fi
8818 done
8819
8820
8821 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
8822
8823                 ;;
8824           linux)
8825                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
8826 $as_echo "linux" >&6; }
8827                 AUDIT_MODULE=linux
8828                                 for ac_header in libaudit.h
8829 do :
8830   ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
8831 if test "x$ac_cv_header_libaudit_h" = xyes; then :
8832   cat >>confdefs.h <<_ACEOF
8833 #define HAVE_LIBAUDIT_H 1
8834 _ACEOF
8835
8836 fi
8837
8838 done
8839
8840                 SSHDLIBS="$SSHDLIBS -laudit"
8841
8842 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
8843
8844                 ;;
8845           debug)
8846                 AUDIT_MODULE=debug
8847                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
8848 $as_echo "debug" >&6; }
8849
8850 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
8851
8852                 ;;
8853           no)
8854                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8856                 ;;
8857           *)
8858                 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
8859                 ;;
8860         esac
8861
8862 fi
8863
8864
8865 for ac_func in \
8866         arc4random \
8867         arc4random_buf \
8868         arc4random_uniform \
8869         asprintf \
8870         b64_ntop \
8871         __b64_ntop \
8872         b64_pton \
8873         __b64_pton \
8874         bcopy \
8875         bindresvport_sa \
8876         clock \
8877         closefrom \
8878         dirfd \
8879         fchmod \
8880         fchown \
8881         freeaddrinfo \
8882         fstatvfs \
8883         futimes \
8884         getaddrinfo \
8885         getcwd \
8886         getgrouplist \
8887         getnameinfo \
8888         getopt \
8889         getpeereid \
8890         getpeerucred \
8891         _getpty \
8892         getrlimit \
8893         getttyent \
8894         glob \
8895         group_from_gid \
8896         inet_aton \
8897         inet_ntoa \
8898         inet_ntop \
8899         innetgr \
8900         login_getcapbool \
8901         md5_crypt \
8902         memmove \
8903         mkdtemp \
8904         mmap \
8905         ngetaddrinfo \
8906         nsleep \
8907         ogetaddrinfo \
8908         openlog_r \
8909         openpty \
8910         poll \
8911         prctl \
8912         pstat \
8913         readpassphrase \
8914         realpath \
8915         recvmsg \
8916         rresvport_af \
8917         sendmsg \
8918         setdtablesize \
8919         setegid \
8920         setenv \
8921         seteuid \
8922         setgroupent \
8923         setgroups \
8924         setlogin \
8925         setpassent\
8926         setpcred \
8927         setproctitle \
8928         setregid \
8929         setreuid \
8930         setrlimit \
8931         setsid \
8932         setvbuf \
8933         sigaction \
8934         sigvec \
8935         snprintf \
8936         socketpair \
8937         statfs \
8938         statvfs \
8939         strdup \
8940         strerror \
8941         strlcat \
8942         strlcpy \
8943         strmode \
8944         strnvis \
8945         strptime \
8946         strtonum \
8947         strtoll \
8948         strtoul \
8949         swap32 \
8950         sysconf \
8951         tcgetpgrp \
8952         timingsafe_bcmp \
8953         truncate \
8954         unsetenv \
8955         updwtmpx \
8956         user_from_uid \
8957         vasprintf \
8958         vhangup \
8959         vsnprintf \
8960         waitpid \
8961
8962 do :
8963   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8964 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8965 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8966   cat >>confdefs.h <<_ACEOF
8967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8968 _ACEOF
8969
8970 fi
8971 done
8972
8973
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976
8977 #include <ctype.h>
8978 int main(void)
8979 {
8980         return (isblank('a'));
8981 }
8982
8983 _ACEOF
8984 if ac_fn_c_try_link "$LINENO"; then :
8985
8986 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
8987
8988
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext \
8991     conftest$ac_exeext conftest.$ac_ext
8992
8993 # PKCS#11 support requires dlopen() and co
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8995 $as_echo_n "checking for library containing dlopen... " >&6; }
8996 if ${ac_cv_search_dlopen+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   ac_func_search_save_LIBS=$LIBS
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h.  */
9002
9003 /* Override any GCC internal prototype to avoid an error.
9004    Use char because int might match the return type of a GCC
9005    builtin and then its argument prototype would still apply.  */
9006 #ifdef __cplusplus
9007 extern "C"
9008 #endif
9009 char dlopen ();
9010 int
9011 main ()
9012 {
9013 return dlopen ();
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 for ac_lib in '' dl; do
9019   if test -z "$ac_lib"; then
9020     ac_res="none required"
9021   else
9022     ac_res=-l$ac_lib
9023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9024   fi
9025   if ac_fn_c_try_link "$LINENO"; then :
9026   ac_cv_search_dlopen=$ac_res
9027 fi
9028 rm -f core conftest.err conftest.$ac_objext \
9029     conftest$ac_exeext
9030   if ${ac_cv_search_dlopen+:} false; then :
9031   break
9032 fi
9033 done
9034 if ${ac_cv_search_dlopen+:} false; then :
9035
9036 else
9037   ac_cv_search_dlopen=no
9038 fi
9039 rm conftest.$ac_ext
9040 LIBS=$ac_func_search_save_LIBS
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9043 $as_echo "$ac_cv_search_dlopen" >&6; }
9044 ac_res=$ac_cv_search_dlopen
9045 if test "$ac_res" != no; then :
9046   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9047
9048 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9049
9050
9051 fi
9052
9053
9054 # IRIX has a const char return value for gai_strerror()
9055 for ac_func in gai_strerror
9056 do :
9057   ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9058 if test "x$ac_cv_func_gai_strerror" = xyes; then :
9059   cat >>confdefs.h <<_ACEOF
9060 #define HAVE_GAI_STRERROR 1
9061 _ACEOF
9062
9063         $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9064
9065         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h.  */
9067
9068 #include <sys/types.h>
9069 #include <sys/socket.h>
9070 #include <netdb.h>
9071
9072 const char *gai_strerror(int);
9073 int
9074 main ()
9075 {
9076
9077 char *str;
9078
9079 str = gai_strerror(0);
9080   ;
9081   return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_compile "$LINENO"; then :
9085
9086
9087 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9088
9089 fi
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 done
9093
9094
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9096 $as_echo_n "checking for library containing nanosleep... " >&6; }
9097 if ${ac_cv_search_nanosleep+:} false; then :
9098   $as_echo_n "(cached) " >&6
9099 else
9100   ac_func_search_save_LIBS=$LIBS
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h.  */
9103
9104 /* Override any GCC internal prototype to avoid an error.
9105    Use char because int might match the return type of a GCC
9106    builtin and then its argument prototype would still apply.  */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 char nanosleep ();
9111 int
9112 main ()
9113 {
9114 return nanosleep ();
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 for ac_lib in '' rt posix4; do
9120   if test -z "$ac_lib"; then
9121     ac_res="none required"
9122   else
9123     ac_res=-l$ac_lib
9124     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9125   fi
9126   if ac_fn_c_try_link "$LINENO"; then :
9127   ac_cv_search_nanosleep=$ac_res
9128 fi
9129 rm -f core conftest.err conftest.$ac_objext \
9130     conftest$ac_exeext
9131   if ${ac_cv_search_nanosleep+:} false; then :
9132   break
9133 fi
9134 done
9135 if ${ac_cv_search_nanosleep+:} false; then :
9136
9137 else
9138   ac_cv_search_nanosleep=no
9139 fi
9140 rm conftest.$ac_ext
9141 LIBS=$ac_func_search_save_LIBS
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9144 $as_echo "$ac_cv_search_nanosleep" >&6; }
9145 ac_res=$ac_cv_search_nanosleep
9146 if test "$ac_res" != no; then :
9147   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9148
9149 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9150
9151 fi
9152
9153
9154 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9155 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
9156   for ac_func in getrusage
9157 do :
9158   ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9159 if test "x$ac_cv_func_getrusage" = xyes; then :
9160   cat >>confdefs.h <<_ACEOF
9161 #define HAVE_GETRUSAGE 1
9162 _ACEOF
9163
9164 fi
9165 done
9166
9167 fi
9168
9169 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9170 #ifdef HAVE_STRING_H
9171 # include <string.h>
9172 #endif
9173
9174 "
9175 if test "x$ac_cv_have_decl_strsep" = xyes; then :
9176   for ac_func in strsep
9177 do :
9178   ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9179 if test "x$ac_cv_func_strsep" = xyes; then :
9180   cat >>confdefs.h <<_ACEOF
9181 #define HAVE_STRSEP 1
9182 _ACEOF
9183
9184 fi
9185 done
9186
9187 fi
9188
9189
9190 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9191
9192 "
9193 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
9194   $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9195
9196 else
9197   for ac_func in tcsendbreak
9198 do :
9199   ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9200 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
9201   cat >>confdefs.h <<_ACEOF
9202 #define HAVE_TCSENDBREAK 1
9203 _ACEOF
9204
9205 fi
9206 done
9207
9208 fi
9209
9210
9211 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9212 "
9213 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
9214   ac_have_decl=1
9215 else
9216   ac_have_decl=0
9217 fi
9218
9219 cat >>confdefs.h <<_ACEOF
9220 #define HAVE_DECL_H_ERRNO $ac_have_decl
9221 _ACEOF
9222
9223
9224 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9225 #include <sys/types.h>
9226 #include <sys/socket.h>
9227
9228 "
9229 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
9230   ac_have_decl=1
9231 else
9232   ac_have_decl=0
9233 fi
9234
9235 cat >>confdefs.h <<_ACEOF
9236 #define HAVE_DECL_SHUT_RD $ac_have_decl
9237 _ACEOF
9238
9239
9240 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9241 #include <sys/types.h>
9242 #ifdef HAVE_SYS_STAT_H
9243 # include <sys/stat.h>
9244 #endif
9245 #ifdef HAVE_FCNTL_H
9246 # include <fcntl.h>
9247 #endif
9248
9249 "
9250 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
9251   ac_have_decl=1
9252 else
9253   ac_have_decl=0
9254 fi
9255
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
9258 _ACEOF
9259
9260
9261 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9262 #include <sys/types.h>
9263 #include <sys/uio.h>
9264 #include <unistd.h>
9265
9266 "
9267 if test "x$ac_cv_have_decl_writev" = xyes; then :
9268   ac_have_decl=1
9269 else
9270   ac_have_decl=0
9271 fi
9272
9273 cat >>confdefs.h <<_ACEOF
9274 #define HAVE_DECL_WRITEV $ac_have_decl
9275 _ACEOF
9276
9277
9278 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9279 #include <sys/param.h>
9280
9281 "
9282 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
9283   ac_have_decl=1
9284 else
9285   ac_have_decl=0
9286 fi
9287
9288 cat >>confdefs.h <<_ACEOF
9289 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9290 _ACEOF
9291
9292
9293 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9294 #include <stddef.h>
9295
9296 "
9297 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
9298   ac_have_decl=1
9299 else
9300   ac_have_decl=0
9301 fi
9302
9303 cat >>confdefs.h <<_ACEOF
9304 #define HAVE_DECL_OFFSETOF $ac_have_decl
9305 _ACEOF
9306
9307
9308 for ac_func in setresuid
9309 do :
9310   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9311 if test "x$ac_cv_func_setresuid" = xyes; then :
9312   cat >>confdefs.h <<_ACEOF
9313 #define HAVE_SETRESUID 1
9314 _ACEOF
9315
9316                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9317 $as_echo_n "checking if setresuid seems to work... " >&6; }
9318         if test "$cross_compiling" = yes; then :
9319   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9320 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9321
9322 else
9323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h.  */
9325
9326 #include <stdlib.h>
9327 #include <errno.h>
9328 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
9329
9330 _ACEOF
9331 if ac_fn_c_try_run "$LINENO"; then :
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333 $as_echo "yes" >&6; }
9334 else
9335
9336 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9337
9338                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9339 $as_echo "not implemented" >&6; }
9340 fi
9341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9342   conftest.$ac_objext conftest.beam conftest.$ac_ext
9343 fi
9344
9345
9346 fi
9347 done
9348
9349
9350 for ac_func in setresgid
9351 do :
9352   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9353 if test "x$ac_cv_func_setresgid" = xyes; then :
9354   cat >>confdefs.h <<_ACEOF
9355 #define HAVE_SETRESGID 1
9356 _ACEOF
9357
9358                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
9359 $as_echo_n "checking if setresgid seems to work... " >&6; }
9360         if test "$cross_compiling" = yes; then :
9361   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9362 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9363
9364 else
9365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h.  */
9367
9368 #include <stdlib.h>
9369 #include <errno.h>
9370 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
9371
9372 _ACEOF
9373 if ac_fn_c_try_run "$LINENO"; then :
9374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9375 $as_echo "yes" >&6; }
9376 else
9377
9378 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
9379
9380                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9381 $as_echo "not implemented" >&6; }
9382 fi
9383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9384   conftest.$ac_objext conftest.beam conftest.$ac_ext
9385 fi
9386
9387
9388 fi
9389 done
9390
9391
9392 for ac_func in gettimeofday time
9393 do :
9394   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9395 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9396 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9397   cat >>confdefs.h <<_ACEOF
9398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9399 _ACEOF
9400
9401 fi
9402 done
9403
9404 for ac_func in endutent getutent getutid getutline pututline setutent
9405 do :
9406   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9408 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9409   cat >>confdefs.h <<_ACEOF
9410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9411 _ACEOF
9412
9413 fi
9414 done
9415
9416 for ac_func in utmpname
9417 do :
9418   ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
9419 if test "x$ac_cv_func_utmpname" = xyes; then :
9420   cat >>confdefs.h <<_ACEOF
9421 #define HAVE_UTMPNAME 1
9422 _ACEOF
9423
9424 fi
9425 done
9426
9427 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
9428 do :
9429   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9432   cat >>confdefs.h <<_ACEOF
9433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9434 _ACEOF
9435
9436 fi
9437 done
9438
9439 for ac_func in setutxdb setutxent utmpxname
9440 do :
9441   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9444   cat >>confdefs.h <<_ACEOF
9445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9446 _ACEOF
9447
9448 fi
9449 done
9450
9451 for ac_func in getlastlogxbyname
9452 do :
9453   ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
9454 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
9455   cat >>confdefs.h <<_ACEOF
9456 #define HAVE_GETLASTLOGXBYNAME 1
9457 _ACEOF
9458
9459 fi
9460 done
9461
9462
9463 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
9464 if test "x$ac_cv_func_daemon" = xyes; then :
9465
9466 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9467
9468 else
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
9470 $as_echo_n "checking for daemon in -lbsd... " >&6; }
9471 if ${ac_cv_lib_bsd_daemon+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   ac_check_lib_save_LIBS=$LIBS
9475 LIBS="-lbsd  $LIBS"
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h.  */
9478
9479 /* Override any GCC internal prototype to avoid an error.
9480    Use char because int might match the return type of a GCC
9481    builtin and then its argument prototype would still apply.  */
9482 #ifdef __cplusplus
9483 extern "C"
9484 #endif
9485 char daemon ();
9486 int
9487 main ()
9488 {
9489 return daemon ();
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495   ac_cv_lib_bsd_daemon=yes
9496 else
9497   ac_cv_lib_bsd_daemon=no
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500     conftest$ac_exeext conftest.$ac_ext
9501 LIBS=$ac_check_lib_save_LIBS
9502 fi
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
9504 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
9505 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
9506   LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9507
9508 fi
9509
9510
9511 fi
9512
9513
9514 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9515 if test "x$ac_cv_func_getpagesize" = xyes; then :
9516
9517 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9518
9519 else
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
9521 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
9522 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
9523   $as_echo_n "(cached) " >&6
9524 else
9525   ac_check_lib_save_LIBS=$LIBS
9526 LIBS="-lucb  $LIBS"
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h.  */
9529
9530 /* Override any GCC internal prototype to avoid an error.
9531    Use char because int might match the return type of a GCC
9532    builtin and then its argument prototype would still apply.  */
9533 #ifdef __cplusplus
9534 extern "C"
9535 #endif
9536 char getpagesize ();
9537 int
9538 main ()
9539 {
9540 return getpagesize ();
9541   ;
9542   return 0;
9543 }
9544 _ACEOF
9545 if ac_fn_c_try_link "$LINENO"; then :
9546   ac_cv_lib_ucb_getpagesize=yes
9547 else
9548   ac_cv_lib_ucb_getpagesize=no
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext \
9551     conftest$ac_exeext conftest.$ac_ext
9552 LIBS=$ac_check_lib_save_LIBS
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
9555 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
9556 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
9557   LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9558
9559 fi
9560
9561
9562 fi
9563
9564
9565 # Check for broken snprintf
9566 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9568 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9569         if test "$cross_compiling" = yes; then :
9570    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9571 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9572
9573 else
9574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h.  */
9576
9577 #include <stdio.h>
9578 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
9579
9580 _ACEOF
9581 if ac_fn_c_try_run "$LINENO"; then :
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9583 $as_echo "yes" >&6; }
9584 else
9585
9586                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9588
9589 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9590
9591                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9592 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9593
9594 fi
9595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9596   conftest.$ac_objext conftest.beam conftest.$ac_ext
9597 fi
9598
9599 fi
9600
9601 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9602 # returning the right thing on overflow: the number of characters it tried to
9603 # create (as per SUSv3)
9604 if test "x$ac_cv_func_asprintf" != "xyes" && \
9605    test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9607 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9608         if test "$cross_compiling" = yes; then :
9609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9610 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9611
9612 else
9613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h.  */
9615
9616 #include <sys/types.h>
9617 #include <stdio.h>
9618 #include <stdarg.h>
9619
9620 int x_snprintf(char *str,size_t count,const char *fmt,...)
9621 {
9622         size_t ret; va_list ap;
9623         va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9624         return ret;
9625 }
9626 int main(void)
9627 {
9628         char x[1];
9629         exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9630 }
9631 _ACEOF
9632 if ac_fn_c_try_run "$LINENO"; then :
9633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9634 $as_echo "yes" >&6; }
9635 else
9636
9637                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9639
9640 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9641
9642                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9643 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9644
9645 fi
9646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9647   conftest.$ac_objext conftest.beam conftest.$ac_ext
9648 fi
9649
9650 fi
9651
9652 # On systems where [v]snprintf is broken, but is declared in stdio,
9653 # check that the fmt argument is const char * or just char *.
9654 # This is only useful for when BROKEN_SNPRINTF
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9656 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h.  */
9659 #include <stdio.h>
9660            int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9661            int main(void) { snprintf(0, 0, 0); }
9662
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9666 $as_echo "yes" >&6; }
9667
9668 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9669
9670 else
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9673     $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9674
9675 fi
9676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677
9678 # Check for missing getpeereid (or equiv) support
9679 NO_PEERCHECK=""
9680 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9682 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9683         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h.  */
9685 #include <sys/types.h>
9686                  #include <sys/socket.h>
9687 int
9688 main ()
9689 {
9690 int i = SO_PEERCRED;
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 if ac_fn_c_try_compile "$LINENO"; then :
9696    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697 $as_echo "yes" >&6; }
9698
9699 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9700
9701
9702 else
9703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705                 NO_PEERCHECK=1
9706
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 fi
9710
9711 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9713 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9714 if test "$cross_compiling" = yes; then :
9715
9716                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9717 $as_echo "yes" >&6; }
9718                 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9719
9720
9721
9722 else
9723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h.  */
9725
9726 #include <stdlib.h>
9727 main() { char template[]="conftest.mkstemp-test";
9728 if (mkstemp(template) == -1)
9729         exit(1);
9730 unlink(template); exit(0);
9731 }
9732
9733 _ACEOF
9734 if ac_fn_c_try_run "$LINENO"; then :
9735
9736                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; }
9738
9739 else
9740
9741                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9743
9744 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9745
9746
9747 fi
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749   conftest.$ac_objext conftest.beam conftest.$ac_ext
9750 fi
9751
9752 fi
9753
9754 if test ! -z "$check_for_openpty_ctty_bug"; then
9755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
9756 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
9757         if test "$cross_compiling" = yes; then :
9758
9759                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9760 $as_echo "cross-compiling" >&6; }
9761
9762
9763 else
9764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h.  */
9766
9767 #include <stdio.h>
9768 #include <sys/fcntl.h>
9769 #include <sys/types.h>
9770 #include <sys/wait.h>
9771
9772 int
9773 main()
9774 {
9775         pid_t pid;
9776         int fd, ptyfd, ttyfd, status;
9777
9778         pid = fork();
9779         if (pid < 0) {          /* failed */
9780                 exit(1);
9781         } else if (pid > 0) {   /* parent */
9782                 waitpid(pid, &status, 0);
9783                 if (WIFEXITED(status))
9784                         exit(WEXITSTATUS(status));
9785                 else
9786                         exit(2);
9787         } else {                /* child */
9788                 close(0); close(1); close(2);
9789                 setsid();
9790                 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
9791                 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
9792                 if (fd >= 0)
9793                         exit(3);        /* Acquired ctty: broken */
9794                 else
9795                         exit(0);        /* Did not acquire ctty: OK */
9796         }
9797 }
9798
9799 _ACEOF
9800 if ac_fn_c_try_run "$LINENO"; then :
9801
9802                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9803 $as_echo "yes" >&6; }
9804
9805 else
9806
9807                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9809                         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
9810
9811
9812 fi
9813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9814   conftest.$ac_objext conftest.beam conftest.$ac_ext
9815 fi
9816
9817 fi
9818
9819 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9820     test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
9821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9822 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9823         if test "$cross_compiling" = yes; then :
9824
9825                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9826 $as_echo "cross-compiling" >&6; }
9827
9828
9829 else
9830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h.  */
9832
9833 #include <stdio.h>
9834 #include <sys/socket.h>
9835 #include <netdb.h>
9836 #include <errno.h>
9837 #include <netinet/in.h>
9838
9839 #define TEST_PORT "2222"
9840
9841 int
9842 main(void)
9843 {
9844         int err, sock;
9845         struct addrinfo *gai_ai, *ai, hints;
9846         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9847
9848         memset(&hints, 0, sizeof(hints));
9849         hints.ai_family = PF_UNSPEC;
9850         hints.ai_socktype = SOCK_STREAM;
9851         hints.ai_flags = AI_PASSIVE;
9852
9853         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9854         if (err != 0) {
9855                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9856                 exit(1);
9857         }
9858
9859         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9860                 if (ai->ai_family != AF_INET6)
9861                         continue;
9862
9863                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9864                     sizeof(ntop), strport, sizeof(strport),
9865                     NI_NUMERICHOST|NI_NUMERICSERV);
9866
9867                 if (err != 0) {
9868                         if (err == EAI_SYSTEM)
9869                                 perror("getnameinfo EAI_SYSTEM");
9870                         else
9871                                 fprintf(stderr, "getnameinfo failed: %s\n",
9872                                     gai_strerror(err));
9873                         exit(2);
9874                 }
9875
9876                 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
9877                 if (sock < 0)
9878                         perror("socket");
9879                 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
9880                         if (errno == EBADF)
9881                                 exit(3);
9882                 }
9883         }
9884         exit(0);
9885 }
9886
9887 _ACEOF
9888 if ac_fn_c_try_run "$LINENO"; then :
9889
9890                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9891 $as_echo "yes" >&6; }
9892
9893 else
9894
9895                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9897                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9898
9899
9900 fi
9901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9902   conftest.$ac_objext conftest.beam conftest.$ac_ext
9903 fi
9904
9905 fi
9906
9907 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9908     test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
9909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9910 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9911         if test "$cross_compiling" = yes; then :
9912
9913                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9914 $as_echo "cross-compiling" >&6; }
9915
9916
9917 else
9918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h.  */
9920
9921 #include <stdio.h>
9922 #include <sys/socket.h>
9923 #include <netdb.h>
9924 #include <errno.h>
9925 #include <netinet/in.h>
9926
9927 #define TEST_PORT "2222"
9928
9929 int
9930 main(void)
9931 {
9932         int err, sock;
9933         struct addrinfo *gai_ai, *ai, hints;
9934         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9935
9936         memset(&hints, 0, sizeof(hints));
9937         hints.ai_family = PF_UNSPEC;
9938         hints.ai_socktype = SOCK_STREAM;
9939         hints.ai_flags = AI_PASSIVE;
9940
9941         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9942         if (err != 0) {
9943                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9944                 exit(1);
9945         }
9946
9947         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9948                 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
9949                         continue;
9950
9951                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9952                     sizeof(ntop), strport, sizeof(strport),
9953                     NI_NUMERICHOST|NI_NUMERICSERV);
9954
9955                 if (ai->ai_family == AF_INET && err != 0) {
9956                         perror("getnameinfo");
9957                         exit(2);
9958                 }
9959         }
9960         exit(0);
9961 }
9962
9963 _ACEOF
9964 if ac_fn_c_try_run "$LINENO"; then :
9965
9966                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9967 $as_echo "yes" >&6; }
9968
9969 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
9970
9971
9972 else
9973
9974                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9976                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9977
9978
9979 fi
9980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9981   conftest.$ac_objext conftest.beam conftest.$ac_ext
9982 fi
9983
9984 fi
9985
9986 if test "x$check_for_conflicting_getspnam" = "x1"; then
9987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
9988 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
9989         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h.  */
9991
9992 #include <shadow.h>
9993 int main(void) {exit(0);}
9994
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"; then :
9997
9998                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000
10001 else
10002
10003                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10004 $as_echo "yes" >&6; }
10005
10006 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10007
10008
10009
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 fi
10013
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10015 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10016 if ${ac_cv_func_getpgrp_void+:} false; then :
10017   $as_echo_n "(cached) " >&6
10018 else
10019   # Use it with a single arg.
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h.  */
10022 $ac_includes_default
10023 int
10024 main ()
10025 {
10026 getpgrp (0);
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 if ac_fn_c_try_compile "$LINENO"; then :
10032   ac_cv_func_getpgrp_void=no
10033 else
10034   ac_cv_func_getpgrp_void=yes
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10040 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10041 if test $ac_cv_func_getpgrp_void = yes; then
10042
10043 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10044
10045 fi
10046
10047
10048 # Search for OpenSSL
10049 saved_CPPFLAGS="$CPPFLAGS"
10050 saved_LDFLAGS="$LDFLAGS"
10051
10052 # Check whether --with-ssl-dir was given.
10053 if test "${with_ssl_dir+set}" = set; then :
10054   withval=$with_ssl_dir;
10055                 if test "x$withval" != "xno" ; then
10056                         case "$withval" in
10057                                 # Relative paths
10058                                 ./*|../*)       withval="`pwd`/$withval"
10059                         esac
10060                         if test -d "$withval/lib"; then
10061                                 if test -n "${need_dash_r}"; then
10062                                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10063                                 else
10064                                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10065                                 fi
10066                         elif test -d "$withval/lib64"; then
10067                                 if test -n "${need_dash_r}"; then
10068                                         LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10069                                 else
10070                                         LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10071                                 fi
10072                         else
10073                                 if test -n "${need_dash_r}"; then
10074                                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10075                                 else
10076                                         LDFLAGS="-L${withval} ${LDFLAGS}"
10077                                 fi
10078                         fi
10079                         if test -d "$withval/include"; then
10080                                 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10081                         else
10082                                 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10083                         fi
10084                 fi
10085
10086
10087 fi
10088
10089 LIBS="-lcrypto $LIBS"
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h.  */
10092
10093 /* Override any GCC internal prototype to avoid an error.
10094    Use char because int might match the return type of a GCC
10095    builtin and then its argument prototype would still apply.  */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 char RAND_add ();
10100 int
10101 main ()
10102 {
10103 return RAND_add ();
10104   ;
10105   return 0;
10106 }
10107 _ACEOF
10108 if ac_fn_c_try_link "$LINENO"; then :
10109
10110 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10111
10112 else
10113
10114                                 if test -n "${need_dash_r}"; then
10115                         LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10116                 else
10117                         LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10118                 fi
10119                 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10120                 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10121 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
10122
10123 else
10124   as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10125 fi
10126
10127
10128                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h.  */
10130
10131 /* Override any GCC internal prototype to avoid an error.
10132    Use char because int might match the return type of a GCC
10133    builtin and then its argument prototype would still apply.  */
10134 #ifdef __cplusplus
10135 extern "C"
10136 #endif
10137 char RAND_add ();
10138 int
10139 main ()
10140 {
10141 return RAND_add ();
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 if ac_fn_c_try_link "$LINENO"; then :
10147   $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10148
10149 else
10150
10151                                 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10152
10153
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156     conftest$ac_exeext conftest.$ac_ext
10157
10158
10159 fi
10160 rm -f core conftest.err conftest.$ac_objext \
10161     conftest$ac_exeext conftest.$ac_ext
10162
10163 # Determine OpenSSL header version
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10165 $as_echo_n "checking OpenSSL header version... " >&6; }
10166 if test "$cross_compiling" = yes; then :
10167
10168                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10169 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10170
10171
10172 else
10173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175
10176 #include <stdio.h>
10177 #include <string.h>
10178 #include <openssl/opensslv.h>
10179 #define DATA "conftest.sslincver"
10180 int main(void) {
10181         FILE *fd;
10182         int rc;
10183
10184         fd = fopen(DATA,"w");
10185         if(fd == NULL)
10186                 exit(1);
10187
10188         if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10189                 exit(1);
10190
10191         exit(0);
10192 }
10193
10194 _ACEOF
10195 if ac_fn_c_try_run "$LINENO"; then :
10196
10197                 ssl_header_ver=`cat conftest.sslincver`
10198                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10199 $as_echo "$ssl_header_ver" >&6; }
10200
10201 else
10202
10203                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10204 $as_echo "not found" >&6; }
10205                 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10206
10207 fi
10208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10209   conftest.$ac_objext conftest.beam conftest.$ac_ext
10210 fi
10211
10212
10213 # Determine OpenSSL library version
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10215 $as_echo_n "checking OpenSSL library version... " >&6; }
10216 if test "$cross_compiling" = yes; then :
10217
10218                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10219 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10220
10221
10222 else
10223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h.  */
10225
10226 #include <stdio.h>
10227 #include <string.h>
10228 #include <openssl/opensslv.h>
10229 #include <openssl/crypto.h>
10230 #define DATA "conftest.ssllibver"
10231 int main(void) {
10232         FILE *fd;
10233         int rc;
10234
10235         fd = fopen(DATA,"w");
10236         if(fd == NULL)
10237                 exit(1);
10238
10239         if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10240                 exit(1);
10241
10242         exit(0);
10243 }
10244
10245 _ACEOF
10246 if ac_fn_c_try_run "$LINENO"; then :
10247
10248                 ssl_library_ver=`cat conftest.ssllibver`
10249                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10250 $as_echo "$ssl_library_ver" >&6; }
10251
10252 else
10253
10254                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10255 $as_echo "not found" >&6; }
10256                 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10257
10258 fi
10259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10260   conftest.$ac_objext conftest.beam conftest.$ac_ext
10261 fi
10262
10263
10264
10265 # Check whether --with-openssl-header-check was given.
10266 if test "${with_openssl_header_check+set}" = set; then :
10267   withval=$with_openssl_header_check;   if test "x$withval" = "xno" ; then
10268                 openssl_check_nonfatal=1
10269            fi
10270
10271
10272 fi
10273
10274
10275 # Sanity check OpenSSL headers
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
10277 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
10278 if test "$cross_compiling" = yes; then :
10279
10280                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10281 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10282
10283
10284 else
10285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h.  */
10287
10288 #include <string.h>
10289 #include <openssl/opensslv.h>
10290 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
10291
10292 _ACEOF
10293 if ac_fn_c_try_run "$LINENO"; then :
10294
10295                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10296 $as_echo "yes" >&6; }
10297
10298 else
10299
10300                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10302                 if test "x$openssl_check_nonfatal" = "x"; then
10303                         as_fn_error $? "Your OpenSSL headers do not match your
10304 library. Check config.log for details.
10305 If you are sure your installation is consistent, you can disable the check
10306 by running \"./configure --without-openssl-header-check\".
10307 Also see contrib/findssl.sh for help identifying header/library mismatches.
10308 " "$LINENO" 5
10309                 else
10310                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
10311 library. Check config.log for details.
10312 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
10313 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
10314 library. Check config.log for details.
10315 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
10316                 fi
10317
10318 fi
10319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10320   conftest.$ac_objext conftest.beam conftest.$ac_ext
10321 fi
10322
10323
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
10325 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
10326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h.  */
10328
10329 #include <openssl/evp.h>
10330 int main(void) { SSLeay_add_all_algorithms(); }
10331
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334
10335                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336 $as_echo "yes" >&6; }
10337
10338 else
10339
10340                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10342                 saved_LIBS="$LIBS"
10343                 LIBS="$LIBS -ldl"
10344                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
10345 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
10346                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348
10349 #include <openssl/evp.h>
10350 int main(void) { SSLeay_add_all_algorithms(); }
10351
10352 _ACEOF
10353 if ac_fn_c_try_link "$LINENO"; then :
10354
10355                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356 $as_echo "yes" >&6; }
10357
10358 else
10359
10360                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361 $as_echo "no" >&6; }
10362                                 LIBS="$saved_LIBS"
10363
10364
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext \
10367     conftest$ac_exeext conftest.$ac_ext
10368
10369
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372     conftest$ac_exeext conftest.$ac_ext
10373
10374 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
10375 do :
10376   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10379   cat >>confdefs.h <<_ACEOF
10380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10381 _ACEOF
10382
10383 fi
10384 done
10385
10386
10387
10388 # Check whether --with-ssl-engine was given.
10389 if test "${with_ssl_engine+set}" = set; then :
10390   withval=$with_ssl_engine;  if test "x$withval" != "xno" ; then
10391                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
10392 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
10393                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h.  */
10395  #include <openssl/engine.h>
10396 int
10397 main ()
10398 {
10399
10400 ENGINE_load_builtin_engines();ENGINE_register_all_complete();
10401
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 if ac_fn_c_try_compile "$LINENO"; then :
10407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10408 $as_echo "yes" >&6; }
10409
10410 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
10411
10412
10413 else
10414    as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
10415
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418           fi
10419
10420 fi
10421
10422
10423 # Check for OpenSSL without EVP_aes_{192,256}_cbc
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
10425 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h.  */
10428
10429 #include <string.h>
10430 #include <openssl/evp.h>
10431 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
10432
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435
10436                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438
10439 else
10440
10441                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10442 $as_echo "yes" >&6; }
10443
10444 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
10445
10446
10447
10448 fi
10449 rm -f core conftest.err conftest.$ac_objext \
10450     conftest$ac_exeext conftest.$ac_ext
10451
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
10453 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h.  */
10456
10457 #include <string.h>
10458 #include <openssl/evp.h>
10459 int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
10460
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463
10464                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10465 $as_echo "yes" >&6; }
10466
10467 else
10468
10469                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10471
10472 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
10473
10474
10475
10476 fi
10477 rm -f core conftest.err conftest.$ac_objext \
10478     conftest$ac_exeext conftest.$ac_ext
10479
10480 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
10481 # because the system crypt() is more featureful.
10482 if test "x$check_for_libcrypt_before" = "x1"; then
10483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10484 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10485 if ${ac_cv_lib_crypt_crypt+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-lcrypt  $LIBS"
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h.  */
10492
10493 /* Override any GCC internal prototype to avoid an error.
10494    Use char because int might match the return type of a GCC
10495    builtin and then its argument prototype would still apply.  */
10496 #ifdef __cplusplus
10497 extern "C"
10498 #endif
10499 char crypt ();
10500 int
10501 main ()
10502 {
10503 return crypt ();
10504   ;
10505   return 0;
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509   ac_cv_lib_crypt_crypt=yes
10510 else
10511   ac_cv_lib_crypt_crypt=no
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext \
10514     conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10518 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10519 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10520   cat >>confdefs.h <<_ACEOF
10521 #define HAVE_LIBCRYPT 1
10522 _ACEOF
10523
10524   LIBS="-lcrypt $LIBS"
10525
10526 fi
10527
10528 fi
10529
10530 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
10531 # version in OpenSSL.
10532 if test "x$check_for_libcrypt_later" = "x1"; then
10533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10534 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10535 if ${ac_cv_lib_crypt_crypt+:} false; then :
10536   $as_echo_n "(cached) " >&6
10537 else
10538   ac_check_lib_save_LIBS=$LIBS
10539 LIBS="-lcrypt  $LIBS"
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h.  */
10542
10543 /* Override any GCC internal prototype to avoid an error.
10544    Use char because int might match the return type of a GCC
10545    builtin and then its argument prototype would still apply.  */
10546 #ifdef __cplusplus
10547 extern "C"
10548 #endif
10549 char crypt ();
10550 int
10551 main ()
10552 {
10553 return crypt ();
10554   ;
10555   return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"; then :
10559   ac_cv_lib_crypt_crypt=yes
10560 else
10561   ac_cv_lib_crypt_crypt=no
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext \
10564     conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10566 fi
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10568 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10569 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10570   LIBS="$LIBS -lcrypt"
10571 fi
10572
10573 fi
10574
10575 # Search for SHA256 support in libc and/or OpenSSL
10576 for ac_func in SHA256_Update EVP_sha256
10577 do :
10578   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10581   cat >>confdefs.h <<_ACEOF
10582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10583 _ACEOF
10584  TEST_SSH_SHA256=yes
10585 else
10586   TEST_SSH_SHA256=no
10587 fi
10588 done
10589
10590
10591
10592 # Check complete ECC support in OpenSSL
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
10594 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h.  */
10597
10598 #include <openssl/ec.h>
10599 #include <openssl/ecdh.h>
10600 #include <openssl/ecdsa.h>
10601 #include <openssl/evp.h>
10602 #include <openssl/objects.h>
10603 #include <openssl/opensslv.h>
10604 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
10605 # error "OpenSSL < 0.9.8g has unreliable ECC code"
10606 #endif
10607 int main(void) {
10608         EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
10609         const EVP_MD *m = EVP_sha512(); /* We need this too */
10610 }
10611
10612 _ACEOF
10613 if ac_fn_c_try_link "$LINENO"; then :
10614
10615                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; }
10617
10618 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
10619
10620                 TEST_SSH_ECC=yes
10621                 COMMENT_OUT_ECC=""
10622
10623 else
10624
10625                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10627                 TEST_SSH_ECC=no
10628                 COMMENT_OUT_ECC="#no ecc#"
10629
10630
10631 fi
10632 rm -f core conftest.err conftest.$ac_objext \
10633     conftest$ac_exeext conftest.$ac_ext
10634
10635
10636
10637 saved_LIBS="$LIBS"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10639 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10640 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
10641   $as_echo_n "(cached) " >&6
10642 else
10643   ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-liaf  $LIBS"
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h.  */
10647
10648 /* Override any GCC internal prototype to avoid an error.
10649    Use char because int might match the return type of a GCC
10650    builtin and then its argument prototype would still apply.  */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char ia_openinfo ();
10655 int
10656 main ()
10657 {
10658 return ia_openinfo ();
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664   ac_cv_lib_iaf_ia_openinfo=yes
10665 else
10666   ac_cv_lib_iaf_ia_openinfo=no
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext \
10669     conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10671 fi
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
10673 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
10674 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
10675
10676         LIBS="$LIBS -liaf"
10677         for ac_func in set_id
10678 do :
10679   ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
10680 if test "x$ac_cv_func_set_id" = xyes; then :
10681   cat >>confdefs.h <<_ACEOF
10682 #define HAVE_SET_ID 1
10683 _ACEOF
10684  SSHDLIBS="$SSHDLIBS -liaf"
10685
10686 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
10687
10688
10689 fi
10690 done
10691
10692
10693 fi
10694
10695 LIBS="$saved_LIBS"
10696
10697 ### Configure cryptographic random number support
10698
10699 # Check wheter OpenSSL seeds itself
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
10701 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
10702 if test "$cross_compiling" = yes; then :
10703
10704                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10705 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
10706                 # This is safe, since all recent OpenSSL versions will
10707                 # complain at runtime if not seeded correctly.
10708                 OPENSSL_SEEDS_ITSELF=yes
10709
10710
10711 else
10712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h.  */
10714
10715 #include <string.h>
10716 #include <openssl/rand.h>
10717 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
10718
10719 _ACEOF
10720 if ac_fn_c_try_run "$LINENO"; then :
10721
10722                 OPENSSL_SEEDS_ITSELF=yes
10723                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10724 $as_echo "yes" >&6; }
10725
10726 else
10727
10728                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10730                 # Default to use of the rand helper if OpenSSL doesn't
10731                 # seed itself
10732                 USE_RAND_HELPER=yes
10733
10734 fi
10735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10736   conftest.$ac_objext conftest.beam conftest.$ac_ext
10737 fi
10738
10739
10740 # Check for PAM libs
10741 PAM_MSG="no"
10742
10743 # Check whether --with-pam was given.
10744 if test "${with_pam+set}" = set; then :
10745   withval=$with_pam;
10746                 if test "x$withval" != "xno" ; then
10747                         if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
10748                            test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
10749                                 as_fn_error $? "PAM headers not found" "$LINENO" 5
10750                         fi
10751
10752                         saved_LIBS="$LIBS"
10753                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10755 if ${ac_cv_lib_dl_dlopen+:} false; then :
10756   $as_echo_n "(cached) " >&6
10757 else
10758   ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-ldl  $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h.  */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764    Use char because int might match the return type of a GCC
10765    builtin and then its argument prototype would still apply.  */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char dlopen ();
10770 int
10771 main ()
10772 {
10773 return dlopen ();
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779   ac_cv_lib_dl_dlopen=yes
10780 else
10781   ac_cv_lib_dl_dlopen=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784     conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10789 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10790   cat >>confdefs.h <<_ACEOF
10791 #define HAVE_LIBDL 1
10792 _ACEOF
10793
10794   LIBS="-ldl $LIBS"
10795
10796 fi
10797
10798                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
10799 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
10800 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
10801   $as_echo_n "(cached) " >&6
10802 else
10803   ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-lpam  $LIBS"
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h.  */
10807
10808 /* Override any GCC internal prototype to avoid an error.
10809    Use char because int might match the return type of a GCC
10810    builtin and then its argument prototype would still apply.  */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char pam_set_item ();
10815 int
10816 main ()
10817 {
10818 return pam_set_item ();
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824   ac_cv_lib_pam_pam_set_item=yes
10825 else
10826   ac_cv_lib_pam_pam_set_item=no
10827 fi
10828 rm -f core conftest.err conftest.$ac_objext \
10829     conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10831 fi
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
10833 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
10834 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
10835   cat >>confdefs.h <<_ACEOF
10836 #define HAVE_LIBPAM 1
10837 _ACEOF
10838
10839   LIBS="-lpam $LIBS"
10840
10841 else
10842   as_fn_error $? "*** libpam missing" "$LINENO" 5
10843 fi
10844
10845                         for ac_func in pam_getenvlist
10846 do :
10847   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
10848 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
10849   cat >>confdefs.h <<_ACEOF
10850 #define HAVE_PAM_GETENVLIST 1
10851 _ACEOF
10852
10853 fi
10854 done
10855
10856                         for ac_func in pam_putenv
10857 do :
10858   ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
10859 if test "x$ac_cv_func_pam_putenv" = xyes; then :
10860   cat >>confdefs.h <<_ACEOF
10861 #define HAVE_PAM_PUTENV 1
10862 _ACEOF
10863
10864 fi
10865 done
10866
10867                         LIBS="$saved_LIBS"
10868
10869                         PAM_MSG="yes"
10870
10871                         SSHDLIBS="$SSHDLIBS -lpam"
10872
10873 $as_echo "#define USE_PAM 1" >>confdefs.h
10874
10875
10876                         if test $ac_cv_lib_dl_dlopen = yes; then
10877                                 case "$LIBS" in
10878                                 *-ldl*)
10879                                         # libdl already in LIBS
10880                                         ;;
10881                                 *)
10882                                         SSHDLIBS="$SSHDLIBS -ldl"
10883                                         ;;
10884                                 esac
10885                         fi
10886                 fi
10887
10888
10889 fi
10890
10891
10892 # Check for older PAM
10893 if test "x$PAM_MSG" = "xyes" ; then
10894         # Check PAM strerror arguments (old PAM)
10895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
10896 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
10897         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h.  */
10899
10900 #include <stdlib.h>
10901 #if defined(HAVE_SECURITY_PAM_APPL_H)
10902 #include <security/pam_appl.h>
10903 #elif defined (HAVE_PAM_PAM_APPL_H)
10904 #include <pam/pam_appl.h>
10905 #endif
10906
10907 int
10908 main ()
10909 {
10910 (void)pam_strerror((pam_handle_t *)NULL, -1);
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_compile "$LINENO"; then :
10916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10918 else
10919
10920
10921 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
10922
10923                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10924 $as_echo "yes" >&6; }
10925                         PAM_MSG="yes (old library)"
10926
10927
10928 fi
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 fi
10931
10932 # Do we want to force the use of the rand helper?
10933
10934 # Check whether --with-rand-helper was given.
10935 if test "${with_rand_helper+set}" = set; then :
10936   withval=$with_rand_helper;
10937                 if test "x$withval" = "xno" ; then
10938                         # Force use of OpenSSL's internal RNG, even if
10939                         # the previous test showed it to be unseeded.
10940                         if test -z "$OPENSSL_SEEDS_ITSELF" ; then
10941                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
10942 $as_echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
10943                                 OPENSSL_SEEDS_ITSELF=yes
10944                                 USE_RAND_HELPER=""
10945                         fi
10946                 else
10947                         USE_RAND_HELPER=yes
10948                 fi
10949
10950 fi
10951
10952
10953 # Which randomness source do we use?
10954 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
10955         # OpenSSL only
10956
10957 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
10958
10959         RAND_MSG="OpenSSL internal ONLY"
10960         INSTALL_SSH_RAND_HELPER=""
10961 elif test ! -z "$USE_RAND_HELPER" ; then
10962         # install rand helper
10963         RAND_MSG="ssh-rand-helper"
10964         INSTALL_SSH_RAND_HELPER="yes"
10965 fi
10966
10967
10968 ### Configuration of ssh-rand-helper
10969
10970 # PRNGD TCP socket
10971
10972 # Check whether --with-prngd-port was given.
10973 if test "${with_prngd_port+set}" = set; then :
10974   withval=$with_prngd_port;
10975                 case "$withval" in
10976                 no)
10977                         withval=""
10978                         ;;
10979                 [0-9]*)
10980                         ;;
10981                 *)
10982                         as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
10983                         ;;
10984                 esac
10985                 if test ! -z "$withval" ; then
10986                         PRNGD_PORT="$withval"
10987
10988 cat >>confdefs.h <<_ACEOF
10989 #define PRNGD_PORT $PRNGD_PORT
10990 _ACEOF
10991
10992                 fi
10993
10994
10995 fi
10996
10997
10998 # PRNGD Unix domain socket
10999
11000 # Check whether --with-prngd-socket was given.
11001 if test "${with_prngd_socket+set}" = set; then :
11002   withval=$with_prngd_socket;
11003                 case "$withval" in
11004                 yes)
11005                         withval="/var/run/egd-pool"
11006                         ;;
11007                 no)
11008                         withval=""
11009                         ;;
11010                 /*)
11011                         ;;
11012                 *)
11013                         as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11014                         ;;
11015                 esac
11016
11017                 if test ! -z "$withval" ; then
11018                         if test ! -z "$PRNGD_PORT" ; then
11019                                 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11020                         fi
11021                         if test ! -r "$withval" ; then
11022                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11023 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11024                         fi
11025                         PRNGD_SOCKET="$withval"
11026
11027 cat >>confdefs.h <<_ACEOF
11028 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11029 _ACEOF
11030
11031                 fi
11032
11033 else
11034
11035                 # Check for existing socket only if we don't have a random device already
11036                 if test "$USE_RAND_HELPER" = yes ; then
11037                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11038 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11039                         # Insert other locations here
11040                         for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11041                                 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11042                                         PRNGD_SOCKET="$sock"
11043                                         cat >>confdefs.h <<_ACEOF
11044 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11045 _ACEOF
11046
11047                                         break;
11048                                 fi
11049                         done
11050                         if test ! -z "$PRNGD_SOCKET" ; then
11051                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11052 $as_echo "$PRNGD_SOCKET" >&6; }
11053                         else
11054                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11055 $as_echo "not found" >&6; }
11056                         fi
11057                 fi
11058
11059
11060 fi
11061
11062
11063 # Change default command timeout for hashing entropy source
11064 entropy_timeout=200
11065
11066 # Check whether --with-entropy-timeout was given.
11067 if test "${with_entropy_timeout+set}" = set; then :
11068   withval=$with_entropy_timeout;
11069                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
11070                     test "x${withval}" != "xyes"; then
11071                         entropy_timeout=$withval
11072                 fi
11073
11074
11075 fi
11076
11077
11078 cat >>confdefs.h <<_ACEOF
11079 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
11080 _ACEOF
11081
11082
11083 SSH_PRIVSEP_USER=sshd
11084
11085 # Check whether --with-privsep-user was given.
11086 if test "${with_privsep_user+set}" = set; then :
11087   withval=$with_privsep_user;
11088                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
11089                     test "x${withval}" != "xyes"; then
11090                         SSH_PRIVSEP_USER=$withval
11091                 fi
11092
11093
11094 fi
11095
11096
11097 cat >>confdefs.h <<_ACEOF
11098 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11099 _ACEOF
11100
11101
11102
11103 # We do this little dance with the search path to insure
11104 # that programs that we select for use by installed programs
11105 # (which may be run by the super-user) come from trusted
11106 # locations before they come from the user's private area.
11107 # This should help avoid accidentally configuring some
11108 # random version of a program in someone's personal bin.
11109
11110 OPATH=$PATH
11111 PATH=/bin:/usr/bin
11112 test -h /bin 2> /dev/null && PATH=/usr/bin
11113 test -d /sbin && PATH=$PATH:/sbin
11114 test -d /usr/sbin && PATH=$PATH:/usr/sbin
11115 PATH=$PATH:/etc:$OPATH
11116
11117 # These programs are used by the command hashing source to gather entropy
11118
11119         # Extract the first word of "ls", so it can be a program name with args.
11120 set dummy ls; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if ${ac_cv_path_PROG_LS+:} false; then :
11124   $as_echo_n "(cached) " >&6
11125 else
11126   case $PROG_LS in
11127   [\\/]* | ?:[\\/]*)
11128   ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
11129   ;;
11130   *)
11131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11133 do
11134   IFS=$as_save_IFS
11135   test -z "$as_dir" && as_dir=.
11136     for ac_exec_ext in '' $ac_executable_extensions; do
11137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138     ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
11139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140     break 2
11141   fi
11142 done
11143   done
11144 IFS=$as_save_IFS
11145
11146   ;;
11147 esac
11148 fi
11149 PROG_LS=$ac_cv_path_PROG_LS
11150 if test -n "$PROG_LS"; then
11151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LS" >&5
11152 $as_echo "$PROG_LS" >&6; }
11153 else
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155 $as_echo "no" >&6; }
11156 fi
11157
11158
11159         if test -z "$PROG_LS" ; then
11160                 PROG_LS="undef"
11161         fi
11162
11163
11164
11165         # Extract the first word of "netstat", so it can be a program name with args.
11166 set dummy netstat; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_path_PROG_NETSTAT+:} false; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   case $PROG_NETSTAT in
11173   [\\/]* | ?:[\\/]*)
11174   ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
11175   ;;
11176   *)
11177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11179 do
11180   IFS=$as_save_IFS
11181   test -z "$as_dir" && as_dir=.
11182     for ac_exec_ext in '' $ac_executable_extensions; do
11183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184     ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
11185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186     break 2
11187   fi
11188 done
11189   done
11190 IFS=$as_save_IFS
11191
11192   ;;
11193 esac
11194 fi
11195 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
11196 if test -n "$PROG_NETSTAT"; then
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_NETSTAT" >&5
11198 $as_echo "$PROG_NETSTAT" >&6; }
11199 else
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 fi
11203
11204
11205         if test -z "$PROG_NETSTAT" ; then
11206                 PROG_NETSTAT="undef"
11207         fi
11208
11209
11210
11211         # Extract the first word of "arp", so it can be a program name with args.
11212 set dummy arp; ac_word=$2
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11214 $as_echo_n "checking for $ac_word... " >&6; }
11215 if ${ac_cv_path_PROG_ARP+:} false; then :
11216   $as_echo_n "(cached) " >&6
11217 else
11218   case $PROG_ARP in
11219   [\\/]* | ?:[\\/]*)
11220   ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
11221   ;;
11222   *)
11223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11225 do
11226   IFS=$as_save_IFS
11227   test -z "$as_dir" && as_dir=.
11228     for ac_exec_ext in '' $ac_executable_extensions; do
11229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230     ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
11231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232     break 2
11233   fi
11234 done
11235   done
11236 IFS=$as_save_IFS
11237
11238   ;;
11239 esac
11240 fi
11241 PROG_ARP=$ac_cv_path_PROG_ARP
11242 if test -n "$PROG_ARP"; then
11243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_ARP" >&5
11244 $as_echo "$PROG_ARP" >&6; }
11245 else
11246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; }
11248 fi
11249
11250
11251         if test -z "$PROG_ARP" ; then
11252                 PROG_ARP="undef"
11253         fi
11254
11255
11256
11257         # Extract the first word of "ifconfig", so it can be a program name with args.
11258 set dummy ifconfig; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if ${ac_cv_path_PROG_IFCONFIG+:} false; then :
11262   $as_echo_n "(cached) " >&6
11263 else
11264   case $PROG_IFCONFIG in
11265   [\\/]* | ?:[\\/]*)
11266   ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
11267   ;;
11268   *)
11269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272   IFS=$as_save_IFS
11273   test -z "$as_dir" && as_dir=.
11274     for ac_exec_ext in '' $ac_executable_extensions; do
11275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276     ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
11277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278     break 2
11279   fi
11280 done
11281   done
11282 IFS=$as_save_IFS
11283
11284   ;;
11285 esac
11286 fi
11287 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
11288 if test -n "$PROG_IFCONFIG"; then
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IFCONFIG" >&5
11290 $as_echo "$PROG_IFCONFIG" >&6; }
11291 else
11292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297         if test -z "$PROG_IFCONFIG" ; then
11298                 PROG_IFCONFIG="undef"
11299         fi
11300
11301
11302
11303         # Extract the first word of "jstat", so it can be a program name with args.
11304 set dummy jstat; ac_word=$2
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306 $as_echo_n "checking for $ac_word... " >&6; }
11307 if ${ac_cv_path_PROG_JSTAT+:} false; then :
11308   $as_echo_n "(cached) " >&6
11309 else
11310   case $PROG_JSTAT in
11311   [\\/]* | ?:[\\/]*)
11312   ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
11313   ;;
11314   *)
11315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316 for as_dir in $PATH
11317 do
11318   IFS=$as_save_IFS
11319   test -z "$as_dir" && as_dir=.
11320     for ac_exec_ext in '' $ac_executable_extensions; do
11321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11322     ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
11323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324     break 2
11325   fi
11326 done
11327   done
11328 IFS=$as_save_IFS
11329
11330   ;;
11331 esac
11332 fi
11333 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
11334 if test -n "$PROG_JSTAT"; then
11335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_JSTAT" >&5
11336 $as_echo "$PROG_JSTAT" >&6; }
11337 else
11338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11340 fi
11341
11342
11343         if test -z "$PROG_JSTAT" ; then
11344                 PROG_JSTAT="undef"
11345         fi
11346
11347
11348
11349         # Extract the first word of "ps", so it can be a program name with args.
11350 set dummy ps; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if ${ac_cv_path_PROG_PS+:} false; then :
11354   $as_echo_n "(cached) " >&6
11355 else
11356   case $PROG_PS in
11357   [\\/]* | ?:[\\/]*)
11358   ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
11359   ;;
11360   *)
11361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11363 do
11364   IFS=$as_save_IFS
11365   test -z "$as_dir" && as_dir=.
11366     for ac_exec_ext in '' $ac_executable_extensions; do
11367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368     ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
11369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370     break 2
11371   fi
11372 done
11373   done
11374 IFS=$as_save_IFS
11375
11376   ;;
11377 esac
11378 fi
11379 PROG_PS=$ac_cv_path_PROG_PS
11380 if test -n "$PROG_PS"; then
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PS" >&5
11382 $as_echo "$PROG_PS" >&6; }
11383 else
11384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385 $as_echo "no" >&6; }
11386 fi
11387
11388
11389         if test -z "$PROG_PS" ; then
11390                 PROG_PS="undef"
11391         fi
11392
11393
11394
11395         # Extract the first word of "sar", so it can be a program name with args.
11396 set dummy sar; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if ${ac_cv_path_PROG_SAR+:} false; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402   case $PROG_SAR in
11403   [\\/]* | ?:[\\/]*)
11404   ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
11405   ;;
11406   *)
11407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11409 do
11410   IFS=$as_save_IFS
11411   test -z "$as_dir" && as_dir=.
11412     for ac_exec_ext in '' $ac_executable_extensions; do
11413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414     ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
11415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416     break 2
11417   fi
11418 done
11419   done
11420 IFS=$as_save_IFS
11421
11422   ;;
11423 esac
11424 fi
11425 PROG_SAR=$ac_cv_path_PROG_SAR
11426 if test -n "$PROG_SAR"; then
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SAR" >&5
11428 $as_echo "$PROG_SAR" >&6; }
11429 else
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433
11434
11435         if test -z "$PROG_SAR" ; then
11436                 PROG_SAR="undef"
11437         fi
11438
11439
11440
11441         # Extract the first word of "w", so it can be a program name with args.
11442 set dummy w; ac_word=$2
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11444 $as_echo_n "checking for $ac_word... " >&6; }
11445 if ${ac_cv_path_PROG_W+:} false; then :
11446   $as_echo_n "(cached) " >&6
11447 else
11448   case $PROG_W in
11449   [\\/]* | ?:[\\/]*)
11450   ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
11451   ;;
11452   *)
11453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11455 do
11456   IFS=$as_save_IFS
11457   test -z "$as_dir" && as_dir=.
11458     for ac_exec_ext in '' $ac_executable_extensions; do
11459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460     ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
11461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11462     break 2
11463   fi
11464 done
11465   done
11466 IFS=$as_save_IFS
11467
11468   ;;
11469 esac
11470 fi
11471 PROG_W=$ac_cv_path_PROG_W
11472 if test -n "$PROG_W"; then
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_W" >&5
11474 $as_echo "$PROG_W" >&6; }
11475 else
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478 fi
11479
11480
11481         if test -z "$PROG_W" ; then
11482                 PROG_W="undef"
11483         fi
11484
11485
11486
11487         # Extract the first word of "who", so it can be a program name with args.
11488 set dummy who; ac_word=$2
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if ${ac_cv_path_PROG_WHO+:} false; then :
11492   $as_echo_n "(cached) " >&6
11493 else
11494   case $PROG_WHO in
11495   [\\/]* | ?:[\\/]*)
11496   ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
11497   ;;
11498   *)
11499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502   IFS=$as_save_IFS
11503   test -z "$as_dir" && as_dir=.
11504     for ac_exec_ext in '' $ac_executable_extensions; do
11505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506     ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
11507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508     break 2
11509   fi
11510 done
11511   done
11512 IFS=$as_save_IFS
11513
11514   ;;
11515 esac
11516 fi
11517 PROG_WHO=$ac_cv_path_PROG_WHO
11518 if test -n "$PROG_WHO"; then
11519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_WHO" >&5
11520 $as_echo "$PROG_WHO" >&6; }
11521 else
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524 fi
11525
11526
11527         if test -z "$PROG_WHO" ; then
11528                 PROG_WHO="undef"
11529         fi
11530
11531
11532
11533         # Extract the first word of "last", so it can be a program name with args.
11534 set dummy last; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if ${ac_cv_path_PROG_LAST+:} false; then :
11538   $as_echo_n "(cached) " >&6
11539 else
11540   case $PROG_LAST in
11541   [\\/]* | ?:[\\/]*)
11542   ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
11543   ;;
11544   *)
11545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548   IFS=$as_save_IFS
11549   test -z "$as_dir" && as_dir=.
11550     for ac_exec_ext in '' $ac_executable_extensions; do
11551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11552     ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
11553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554     break 2
11555   fi
11556 done
11557   done
11558 IFS=$as_save_IFS
11559
11560   ;;
11561 esac
11562 fi
11563 PROG_LAST=$ac_cv_path_PROG_LAST
11564 if test -n "$PROG_LAST"; then
11565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LAST" >&5
11566 $as_echo "$PROG_LAST" >&6; }
11567 else
11568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570 fi
11571
11572
11573         if test -z "$PROG_LAST" ; then
11574                 PROG_LAST="undef"
11575         fi
11576
11577
11578
11579         # Extract the first word of "lastlog", so it can be a program name with args.
11580 set dummy lastlog; ac_word=$2
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 $as_echo_n "checking for $ac_word... " >&6; }
11583 if ${ac_cv_path_PROG_LASTLOG+:} false; then :
11584   $as_echo_n "(cached) " >&6
11585 else
11586   case $PROG_LASTLOG in
11587   [\\/]* | ?:[\\/]*)
11588   ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
11589   ;;
11590   *)
11591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11593 do
11594   IFS=$as_save_IFS
11595   test -z "$as_dir" && as_dir=.
11596     for ac_exec_ext in '' $ac_executable_extensions; do
11597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598     ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
11599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600     break 2
11601   fi
11602 done
11603   done
11604 IFS=$as_save_IFS
11605
11606   ;;
11607 esac
11608 fi
11609 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
11610 if test -n "$PROG_LASTLOG"; then
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LASTLOG" >&5
11612 $as_echo "$PROG_LASTLOG" >&6; }
11613 else
11614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11616 fi
11617
11618
11619         if test -z "$PROG_LASTLOG" ; then
11620                 PROG_LASTLOG="undef"
11621         fi
11622
11623
11624
11625         # Extract the first word of "df", so it can be a program name with args.
11626 set dummy df; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if ${ac_cv_path_PROG_DF+:} false; then :
11630   $as_echo_n "(cached) " >&6
11631 else
11632   case $PROG_DF in
11633   [\\/]* | ?:[\\/]*)
11634   ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
11635   ;;
11636   *)
11637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH
11639 do
11640   IFS=$as_save_IFS
11641   test -z "$as_dir" && as_dir=.
11642     for ac_exec_ext in '' $ac_executable_extensions; do
11643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644     ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
11645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646     break 2
11647   fi
11648 done
11649   done
11650 IFS=$as_save_IFS
11651
11652   ;;
11653 esac
11654 fi
11655 PROG_DF=$ac_cv_path_PROG_DF
11656 if test -n "$PROG_DF"; then
11657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DF" >&5
11658 $as_echo "$PROG_DF" >&6; }
11659 else
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662 fi
11663
11664
11665         if test -z "$PROG_DF" ; then
11666                 PROG_DF="undef"
11667         fi
11668
11669
11670
11671         # Extract the first word of "vmstat", so it can be a program name with args.
11672 set dummy vmstat; ac_word=$2
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11674 $as_echo_n "checking for $ac_word... " >&6; }
11675 if ${ac_cv_path_PROG_VMSTAT+:} false; then :
11676   $as_echo_n "(cached) " >&6
11677 else
11678   case $PROG_VMSTAT in
11679   [\\/]* | ?:[\\/]*)
11680   ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
11681   ;;
11682   *)
11683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11685 do
11686   IFS=$as_save_IFS
11687   test -z "$as_dir" && as_dir=.
11688     for ac_exec_ext in '' $ac_executable_extensions; do
11689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11690     ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
11691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11692     break 2
11693   fi
11694 done
11695   done
11696 IFS=$as_save_IFS
11697
11698   ;;
11699 esac
11700 fi
11701 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
11702 if test -n "$PROG_VMSTAT"; then
11703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_VMSTAT" >&5
11704 $as_echo "$PROG_VMSTAT" >&6; }
11705 else
11706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11708 fi
11709
11710
11711         if test -z "$PROG_VMSTAT" ; then
11712                 PROG_VMSTAT="undef"
11713         fi
11714
11715
11716
11717         # Extract the first word of "uptime", so it can be a program name with args.
11718 set dummy uptime; ac_word=$2
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11720 $as_echo_n "checking for $ac_word... " >&6; }
11721 if ${ac_cv_path_PROG_UPTIME+:} false; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724   case $PROG_UPTIME in
11725   [\\/]* | ?:[\\/]*)
11726   ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
11727   ;;
11728   *)
11729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11730 for as_dir in $PATH
11731 do
11732   IFS=$as_save_IFS
11733   test -z "$as_dir" && as_dir=.
11734     for ac_exec_ext in '' $ac_executable_extensions; do
11735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11736     ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
11737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11738     break 2
11739   fi
11740 done
11741   done
11742 IFS=$as_save_IFS
11743
11744   ;;
11745 esac
11746 fi
11747 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
11748 if test -n "$PROG_UPTIME"; then
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_UPTIME" >&5
11750 $as_echo "$PROG_UPTIME" >&6; }
11751 else
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11754 fi
11755
11756
11757         if test -z "$PROG_UPTIME" ; then
11758                 PROG_UPTIME="undef"
11759         fi
11760
11761
11762
11763         # Extract the first word of "ipcs", so it can be a program name with args.
11764 set dummy ipcs; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_path_PROG_IPCS+:} false; then :
11768   $as_echo_n "(cached) " >&6
11769 else
11770   case $PROG_IPCS in
11771   [\\/]* | ?:[\\/]*)
11772   ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
11773   ;;
11774   *)
11775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11777 do
11778   IFS=$as_save_IFS
11779   test -z "$as_dir" && as_dir=.
11780     for ac_exec_ext in '' $ac_executable_extensions; do
11781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11782     ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
11783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784     break 2
11785   fi
11786 done
11787   done
11788 IFS=$as_save_IFS
11789
11790   ;;
11791 esac
11792 fi
11793 PROG_IPCS=$ac_cv_path_PROG_IPCS
11794 if test -n "$PROG_IPCS"; then
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IPCS" >&5
11796 $as_echo "$PROG_IPCS" >&6; }
11797 else
11798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11800 fi
11801
11802
11803         if test -z "$PROG_IPCS" ; then
11804                 PROG_IPCS="undef"
11805         fi
11806
11807
11808
11809         # Extract the first word of "tail", so it can be a program name with args.
11810 set dummy tail; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_path_PROG_TAIL+:} false; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816   case $PROG_TAIL in
11817   [\\/]* | ?:[\\/]*)
11818   ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
11819   ;;
11820   *)
11821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11823 do
11824   IFS=$as_save_IFS
11825   test -z "$as_dir" && as_dir=.
11826     for ac_exec_ext in '' $ac_executable_extensions; do
11827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828     ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
11829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830     break 2
11831   fi
11832 done
11833   done
11834 IFS=$as_save_IFS
11835
11836   ;;
11837 esac
11838 fi
11839 PROG_TAIL=$ac_cv_path_PROG_TAIL
11840 if test -n "$PROG_TAIL"; then
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAIL" >&5
11842 $as_echo "$PROG_TAIL" >&6; }
11843 else
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847
11848
11849         if test -z "$PROG_TAIL" ; then
11850                 PROG_TAIL="undef"
11851         fi
11852
11853
11854 # restore PATH
11855 PATH=$OPATH
11856
11857 # Where does ssh-rand-helper get its randomness from?
11858 INSTALL_SSH_PRNG_CMDS=""
11859 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
11860         if test ! -z "$PRNGD_PORT" ; then
11861                 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
11862         elif test ! -z "$PRNGD_SOCKET" ; then
11863                 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
11864         else
11865                 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
11866                 RAND_HELPER_CMDHASH=yes
11867                 INSTALL_SSH_PRNG_CMDS="yes"
11868         fi
11869 fi
11870
11871
11872
11873 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11874 if test ! -z "$SONY" ; then
11875   LIBS="$LIBS -liberty";
11876 fi
11877
11878 # Check for  long long datatypes
11879 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11880 if test "x$ac_cv_type_long_long" = xyes; then :
11881
11882 cat >>confdefs.h <<_ACEOF
11883 #define HAVE_LONG_LONG 1
11884 _ACEOF
11885
11886
11887 fi
11888 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11889 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
11890
11891 cat >>confdefs.h <<_ACEOF
11892 #define HAVE_UNSIGNED_LONG_LONG 1
11893 _ACEOF
11894
11895
11896 fi
11897 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11898 if test "x$ac_cv_type_long_double" = xyes; then :
11899
11900 cat >>confdefs.h <<_ACEOF
11901 #define HAVE_LONG_DOUBLE 1
11902 _ACEOF
11903
11904
11905 fi
11906
11907
11908 # Check datatype sizes
11909 # The cast to long int works around a bug in the HP C Compiler
11910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11912 # This bug is HP SR number 8606223364.
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11914 $as_echo_n "checking size of char... " >&6; }
11915 if ${ac_cv_sizeof_char+:} false; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
11919
11920 else
11921   if test "$ac_cv_type_char" = yes; then
11922      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11924 as_fn_error 77 "cannot compute sizeof (char)
11925 See \`config.log' for more details" "$LINENO" 5; }
11926    else
11927      ac_cv_sizeof_char=0
11928    fi
11929 fi
11930
11931 fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11933 $as_echo "$ac_cv_sizeof_char" >&6; }
11934
11935
11936
11937 cat >>confdefs.h <<_ACEOF
11938 #define SIZEOF_CHAR $ac_cv_sizeof_char
11939 _ACEOF
11940
11941
11942 # The cast to long int works around a bug in the HP C Compiler
11943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11945 # This bug is HP SR number 8606223364.
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11947 $as_echo_n "checking size of short int... " >&6; }
11948 if ${ac_cv_sizeof_short_int+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
11952
11953 else
11954   if test "$ac_cv_type_short_int" = yes; then
11955      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11957 as_fn_error 77 "cannot compute sizeof (short int)
11958 See \`config.log' for more details" "$LINENO" 5; }
11959    else
11960      ac_cv_sizeof_short_int=0
11961    fi
11962 fi
11963
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11966 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11967
11968
11969
11970 cat >>confdefs.h <<_ACEOF
11971 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11972 _ACEOF
11973
11974
11975 # The cast to long int works around a bug in the HP C Compiler
11976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11978 # This bug is HP SR number 8606223364.
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11980 $as_echo_n "checking size of int... " >&6; }
11981 if ${ac_cv_sizeof_int+:} false; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11985
11986 else
11987   if test "$ac_cv_type_int" = yes; then
11988      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11990 as_fn_error 77 "cannot compute sizeof (int)
11991 See \`config.log' for more details" "$LINENO" 5; }
11992    else
11993      ac_cv_sizeof_int=0
11994    fi
11995 fi
11996
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11999 $as_echo "$ac_cv_sizeof_int" >&6; }
12000
12001
12002
12003 cat >>confdefs.h <<_ACEOF
12004 #define SIZEOF_INT $ac_cv_sizeof_int
12005 _ACEOF
12006
12007
12008 # The cast to long int works around a bug in the HP C Compiler
12009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12011 # This bug is HP SR number 8606223364.
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
12013 $as_echo_n "checking size of long int... " >&6; }
12014 if ${ac_cv_sizeof_long_int+:} false; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
12018
12019 else
12020   if test "$ac_cv_type_long_int" = yes; then
12021      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12023 as_fn_error 77 "cannot compute sizeof (long int)
12024 See \`config.log' for more details" "$LINENO" 5; }
12025    else
12026      ac_cv_sizeof_long_int=0
12027    fi
12028 fi
12029
12030 fi
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
12032 $as_echo "$ac_cv_sizeof_long_int" >&6; }
12033
12034
12035
12036 cat >>confdefs.h <<_ACEOF
12037 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
12038 _ACEOF
12039
12040
12041 # The cast to long int works around a bug in the HP C Compiler
12042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12044 # This bug is HP SR number 8606223364.
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
12046 $as_echo_n "checking size of long long int... " >&6; }
12047 if ${ac_cv_sizeof_long_long_int+:} false; then :
12048   $as_echo_n "(cached) " >&6
12049 else
12050   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
12051
12052 else
12053   if test "$ac_cv_type_long_long_int" = yes; then
12054      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12056 as_fn_error 77 "cannot compute sizeof (long long int)
12057 See \`config.log' for more details" "$LINENO" 5; }
12058    else
12059      ac_cv_sizeof_long_long_int=0
12060    fi
12061 fi
12062
12063 fi
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
12065 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
12066
12067
12068
12069 cat >>confdefs.h <<_ACEOF
12070 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
12071 _ACEOF
12072
12073
12074
12075 # Sanity check long long for some platforms (AIX)
12076 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
12077         ac_cv_sizeof_long_long_int=0
12078 fi
12079
12080 # compute LLONG_MIN and LLONG_MAX if we don't know them.
12081 if test -z "$have_llong_max"; then
12082         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
12083 $as_echo_n "checking for max value of long long... " >&6; }
12084         if test "$cross_compiling" = yes; then :
12085
12086                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
12087 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
12088
12089
12090 else
12091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093
12094 #include <stdio.h>
12095 /* Why is this so damn hard? */
12096 #ifdef __GNUC__
12097 # undef __GNUC__
12098 #endif
12099 #define __USE_ISOC99
12100 #include <limits.h>
12101 #define DATA "conftest.llminmax"
12102 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
12103
12104 /*
12105  * printf in libc on some platforms (eg old Tru64) does not understand %lld so
12106  * we do this the hard way.
12107  */
12108 static int
12109 fprint_ll(FILE *f, long long n)
12110 {
12111         unsigned int i;
12112         int l[sizeof(long long) * 8];
12113
12114         if (n < 0)
12115                 if (fprintf(f, "-") < 0)
12116                         return -1;
12117         for (i = 0; n != 0; i++) {
12118                 l[i] = my_abs(n % 10);
12119                 n /= 10;
12120         }
12121         do {
12122                 if (fprintf(f, "%d", l[--i]) < 0)
12123                         return -1;
12124         } while (i != 0);
12125         if (fprintf(f, " ") < 0)
12126                 return -1;
12127         return 0;
12128 }
12129
12130 int main(void) {
12131         FILE *f;
12132         long long i, llmin, llmax = 0;
12133
12134         if((f = fopen(DATA,"w")) == NULL)
12135                 exit(1);
12136
12137 #if defined(LLONG_MIN) && defined(LLONG_MAX)
12138         fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
12139         llmin = LLONG_MIN;
12140         llmax = LLONG_MAX;
12141 #else
12142         fprintf(stderr, "Calculating  LLONG_MIN and LLONG_MAX\n");
12143         /* This will work on one's complement and two's complement */
12144         for (i = 1; i > llmax; i <<= 1, i++)
12145                 llmax = i;
12146         llmin = llmax + 1LL;    /* wrap */
12147 #endif
12148
12149         /* Sanity check */
12150         if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
12151             || llmax - 1 > llmax || llmin == llmax || llmin == 0
12152             || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
12153                 fprintf(f, "unknown unknown\n");
12154                 exit(2);
12155         }
12156
12157         if (fprint_ll(f, llmin) < 0)
12158                 exit(3);
12159         if (fprint_ll(f, llmax) < 0)
12160                 exit(4);
12161         if (fclose(f) < 0)
12162                 exit(5);
12163         exit(0);
12164 }
12165
12166 _ACEOF
12167 if ac_fn_c_try_run "$LINENO"; then :
12168
12169                         llong_min=`$AWK '{print $1}' conftest.llminmax`
12170                         llong_max=`$AWK '{print $2}' conftest.llminmax`
12171
12172                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
12173 $as_echo "$llong_max" >&6; }
12174
12175 cat >>confdefs.h <<_ACEOF
12176 #define LLONG_MAX ${llong_max}LL
12177 _ACEOF
12178
12179                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
12180 $as_echo_n "checking for min value of long long... " >&6; }
12181                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
12182 $as_echo "$llong_min" >&6; }
12183
12184 cat >>confdefs.h <<_ACEOF
12185 #define LLONG_MIN ${llong_min}LL
12186 _ACEOF
12187
12188
12189 else
12190
12191                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12192 $as_echo "not found" >&6; }
12193
12194 fi
12195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12196   conftest.$ac_objext conftest.beam conftest.$ac_ext
12197 fi
12198
12199 fi
12200
12201
12202 # More checks for data types
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
12204 $as_echo_n "checking for u_int type... " >&6; }
12205 if ${ac_cv_have_u_int+:} false; then :
12206   $as_echo_n "(cached) " >&6
12207 else
12208
12209         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h.  */
12211  #include <sys/types.h>
12212 int
12213 main ()
12214 {
12215  u_int a; a = 1;
12216   ;
12217   return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_compile "$LINENO"; then :
12221    ac_cv_have_u_int="yes"
12222 else
12223    ac_cv_have_u_int="no"
12224
12225 fi
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
12230 $as_echo "$ac_cv_have_u_int" >&6; }
12231 if test "x$ac_cv_have_u_int" = "xyes" ; then
12232
12233 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
12234
12235         have_u_int=1
12236 fi
12237
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
12239 $as_echo_n "checking for intXX_t types... " >&6; }
12240 if ${ac_cv_have_intxx_t+:} false; then :
12241   $as_echo_n "(cached) " >&6
12242 else
12243
12244         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h.  */
12246  #include <sys/types.h>
12247 int
12248 main ()
12249 {
12250  int8_t a; int16_t b; int32_t c; a = b = c = 1;
12251   ;
12252   return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256    ac_cv_have_intxx_t="yes"
12257 else
12258    ac_cv_have_intxx_t="no"
12259
12260 fi
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
12265 $as_echo "$ac_cv_have_intxx_t" >&6; }
12266 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
12267
12268 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12269
12270         have_intxx_t=1
12271 fi
12272
12273 if (test -z "$have_intxx_t" && \
12274            test "x$ac_cv_header_stdint_h" = "xyes")
12275 then
12276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
12277 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
12278         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280  #include <stdint.h>
12281 int
12282 main ()
12283 {
12284  int8_t a; int16_t b; int32_t c; a = b = c = 1;
12285   ;
12286   return 0;
12287 }
12288 _ACEOF
12289 if ac_fn_c_try_compile "$LINENO"; then :
12290
12291                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12292
12293                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12294 $as_echo "yes" >&6; }
12295
12296 else
12297    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12299
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302 fi
12303
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
12305 $as_echo_n "checking for int64_t type... " >&6; }
12306 if ${ac_cv_have_int64_t+:} false; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309
12310         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h.  */
12312
12313 #include <sys/types.h>
12314 #ifdef HAVE_STDINT_H
12315 # include <stdint.h>
12316 #endif
12317 #include <sys/socket.h>
12318 #ifdef HAVE_SYS_BITYPES_H
12319 # include <sys/bitypes.h>
12320 #endif
12321
12322 int
12323 main ()
12324 {
12325  int64_t a; a = 1;
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331    ac_cv_have_int64_t="yes"
12332 else
12333    ac_cv_have_int64_t="no"
12334
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
12340 $as_echo "$ac_cv_have_int64_t" >&6; }
12341 if test "x$ac_cv_have_int64_t" = "xyes" ; then
12342
12343 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
12344
12345 fi
12346
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
12348 $as_echo_n "checking for u_intXX_t types... " >&6; }
12349 if ${ac_cv_have_u_intxx_t+:} false; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352
12353         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h.  */
12355  #include <sys/types.h>
12356 int
12357 main ()
12358 {
12359  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12360   ;
12361   return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_c_try_compile "$LINENO"; then :
12365    ac_cv_have_u_intxx_t="yes"
12366 else
12367    ac_cv_have_u_intxx_t="no"
12368
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
12374 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
12375 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
12376
12377 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12378
12379         have_u_intxx_t=1
12380 fi
12381
12382 if test -z "$have_u_intxx_t" ; then
12383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
12384 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
12385         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h.  */
12387  #include <sys/socket.h>
12388 int
12389 main ()
12390 {
12391  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_compile "$LINENO"; then :
12397
12398                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12399
12400                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12402
12403 else
12404    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406
12407 fi
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
12412 $as_echo_n "checking for u_int64_t types... " >&6; }
12413 if ${ac_cv_have_u_int64_t+:} false; then :
12414   $as_echo_n "(cached) " >&6
12415 else
12416
12417         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h.  */
12419  #include <sys/types.h>
12420 int
12421 main ()
12422 {
12423  u_int64_t a; a = 1;
12424   ;
12425   return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429    ac_cv_have_u_int64_t="yes"
12430 else
12431    ac_cv_have_u_int64_t="no"
12432
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
12438 $as_echo "$ac_cv_have_u_int64_t" >&6; }
12439 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12440
12441 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12442
12443         have_u_int64_t=1
12444 fi
12445
12446 if test -z "$have_u_int64_t" ; then
12447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
12448 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
12449         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h.  */
12451  #include <sys/bitypes.h>
12452 int
12453 main ()
12454 {
12455  u_int64_t a; a = 1
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 if ac_fn_c_try_compile "$LINENO"; then :
12461
12462                         $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12463
12464                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12465 $as_echo "yes" >&6; }
12466
12467 else
12468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469 $as_echo "no" >&6; }
12470
12471 fi
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 fi
12474
12475 if test -z "$have_u_intxx_t" ; then
12476         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12477 $as_echo_n "checking for uintXX_t types... " >&6; }
12478 if ${ac_cv_have_uintxx_t+:} false; then :
12479   $as_echo_n "(cached) " >&6
12480 else
12481
12482                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h.  */
12484
12485 #include <sys/types.h>
12486
12487 int
12488 main ()
12489 {
12490  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496    ac_cv_have_uintxx_t="yes"
12497 else
12498    ac_cv_have_uintxx_t="no"
12499
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12505 $as_echo "$ac_cv_have_uintxx_t" >&6; }
12506         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12507
12508 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12509
12510         fi
12511 fi
12512
12513 if test -z "$have_uintxx_t" ; then
12514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12515 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12516         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h.  */
12518  #include <stdint.h>
12519 int
12520 main ()
12521 {
12522  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 if ac_fn_c_try_compile "$LINENO"; then :
12528
12529                         $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12530
12531                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 $as_echo "yes" >&6; }
12533
12534 else
12535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12537
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540 fi
12541
12542 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12543            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12544 then
12545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12546 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12547         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h.  */
12549
12550 #include <sys/bitypes.h>
12551
12552 int
12553 main ()
12554 {
12555
12556                         int8_t a; int16_t b; int32_t c;
12557                         u_int8_t e; u_int16_t f; u_int32_t g;
12558                         a = b = c = e = f = g = 1;
12559
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_c_try_compile "$LINENO"; then :
12565
12566                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12567
12568                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12569
12570                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12572
12573 else
12574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 fi
12580
12581
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12583 $as_echo_n "checking for u_char... " >&6; }
12584 if ${ac_cv_have_u_char+:} false; then :
12585   $as_echo_n "(cached) " >&6
12586 else
12587
12588         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h.  */
12590
12591 #include <sys/types.h>
12592
12593 int
12594 main ()
12595 {
12596  u_char foo; foo = 125;
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602    ac_cv_have_u_char="yes"
12603 else
12604    ac_cv_have_u_char="no"
12605
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12611 $as_echo "$ac_cv_have_u_char" >&6; }
12612 if test "x$ac_cv_have_u_char" = "xyes" ; then
12613
12614 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12615
12616 fi
12617
12618
12619    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12620 #include <sys/socket.h>
12621 "
12622 if test "x$ac_cv_type_socklen_t" = xyes; then :
12623
12624 else
12625
12626       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12627 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12628       if ${curl_cv_socklen_t_equiv+:} false; then :
12629   $as_echo_n "(cached) " >&6
12630 else
12631
12632          # Systems have either "struct sockaddr *" or
12633          # "void *" as the second argument to getpeername
12634          curl_cv_socklen_t_equiv=
12635          for arg2 in "struct sockaddr" void; do
12636             for t in int size_t unsigned long "unsigned long"; do
12637                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h.  */
12639
12640                   #include <sys/types.h>
12641                   #include <sys/socket.h>
12642
12643                   int getpeername (int, $arg2 *, $t *);
12644
12645 int
12646 main ()
12647 {
12648
12649                   $t len;
12650                   getpeername(0,0,&len);
12651
12652   ;
12653   return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_c_try_compile "$LINENO"; then :
12657
12658                   curl_cv_socklen_t_equiv="$t"
12659                   break
12660
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663             done
12664          done
12665
12666          if test "x$curl_cv_socklen_t_equiv" = x; then
12667             as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12668          fi
12669
12670 fi
12671
12672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12673 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12674
12675 cat >>confdefs.h <<_ACEOF
12676 #define socklen_t $curl_cv_socklen_t_equiv
12677 _ACEOF
12678
12679 fi
12680
12681
12682
12683 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12684 "
12685 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
12686
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_SIG_ATOMIC_T 1
12689 _ACEOF
12690
12691
12692 fi
12693
12694 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12695 #include <sys/types.h>
12696 #ifdef HAVE_SYS_BITYPES_H
12697 #include <sys/bitypes.h>
12698 #endif
12699 #ifdef HAVE_SYS_STATFS_H
12700 #include <sys/statfs.h>
12701 #endif
12702 #ifdef HAVE_SYS_STATVFS_H
12703 #include <sys/statvfs.h>
12704 #endif
12705
12706 "
12707 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
12708
12709 cat >>confdefs.h <<_ACEOF
12710 #define HAVE_FSBLKCNT_T 1
12711 _ACEOF
12712
12713
12714 fi
12715 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12716 #include <sys/types.h>
12717 #ifdef HAVE_SYS_BITYPES_H
12718 #include <sys/bitypes.h>
12719 #endif
12720 #ifdef HAVE_SYS_STATFS_H
12721 #include <sys/statfs.h>
12722 #endif
12723 #ifdef HAVE_SYS_STATVFS_H
12724 #include <sys/statvfs.h>
12725 #endif
12726
12727 "
12728 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
12729
12730 cat >>confdefs.h <<_ACEOF
12731 #define HAVE_FSFILCNT_T 1
12732 _ACEOF
12733
12734
12735 fi
12736
12737
12738 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12739 #include <netinet/in.h>
12740 "
12741 if test "x$ac_cv_type_in_addr_t" = xyes; then :
12742
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_IN_ADDR_T 1
12745 _ACEOF
12746
12747
12748 fi
12749 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12750 #include <netinet/in.h>
12751 "
12752 if test "x$ac_cv_type_in_port_t" = xyes; then :
12753
12754 cat >>confdefs.h <<_ACEOF
12755 #define HAVE_IN_PORT_T 1
12756 _ACEOF
12757
12758
12759 fi
12760
12761
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12763 $as_echo_n "checking for size_t... " >&6; }
12764 if ${ac_cv_have_size_t+:} false; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767
12768         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h.  */
12770
12771 #include <sys/types.h>
12772
12773 int
12774 main ()
12775 {
12776  size_t foo; foo = 1235;
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782    ac_cv_have_size_t="yes"
12783 else
12784    ac_cv_have_size_t="no"
12785
12786 fi
12787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788
12789 fi
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12791 $as_echo "$ac_cv_have_size_t" >&6; }
12792 if test "x$ac_cv_have_size_t" = "xyes" ; then
12793
12794 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12795
12796 fi
12797
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12799 $as_echo_n "checking for ssize_t... " >&6; }
12800 if ${ac_cv_have_ssize_t+:} false; then :
12801   $as_echo_n "(cached) " >&6
12802 else
12803
12804         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h.  */
12806
12807 #include <sys/types.h>
12808
12809 int
12810 main ()
12811 {
12812  ssize_t foo; foo = 1235;
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 if ac_fn_c_try_compile "$LINENO"; then :
12818    ac_cv_have_ssize_t="yes"
12819 else
12820    ac_cv_have_ssize_t="no"
12821
12822 fi
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824
12825 fi
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12827 $as_echo "$ac_cv_have_ssize_t" >&6; }
12828 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12829
12830 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12831
12832 fi
12833
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12835 $as_echo_n "checking for clock_t... " >&6; }
12836 if ${ac_cv_have_clock_t+:} false; then :
12837   $as_echo_n "(cached) " >&6
12838 else
12839
12840         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h.  */
12842
12843 #include <time.h>
12844
12845 int
12846 main ()
12847 {
12848  clock_t foo; foo = 1235;
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854    ac_cv_have_clock_t="yes"
12855 else
12856    ac_cv_have_clock_t="no"
12857
12858 fi
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860
12861 fi
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12863 $as_echo "$ac_cv_have_clock_t" >&6; }
12864 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12865
12866 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12867
12868 fi
12869
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12871 $as_echo_n "checking for sa_family_t... " >&6; }
12872 if ${ac_cv_have_sa_family_t+:} false; then :
12873   $as_echo_n "(cached) " >&6
12874 else
12875
12876         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h.  */
12878
12879 #include <sys/types.h>
12880 #include <sys/socket.h>
12881
12882 int
12883 main ()
12884 {
12885  sa_family_t foo; foo = 1235;
12886   ;
12887   return 0;
12888 }
12889 _ACEOF
12890 if ac_fn_c_try_compile "$LINENO"; then :
12891    ac_cv_have_sa_family_t="yes"
12892 else
12893    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h.  */
12895
12896 #include <sys/types.h>
12897 #include <sys/socket.h>
12898 #include <netinet/in.h>
12899
12900 int
12901 main ()
12902 {
12903  sa_family_t foo; foo = 1235;
12904   ;
12905   return 0;
12906 }
12907 _ACEOF
12908 if ac_fn_c_try_compile "$LINENO"; then :
12909    ac_cv_have_sa_family_t="yes"
12910 else
12911    ac_cv_have_sa_family_t="no"
12912
12913 fi
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915
12916 fi
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918
12919 fi
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12921 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12922 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12923
12924 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12925
12926 fi
12927
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12929 $as_echo_n "checking for pid_t... " >&6; }
12930 if ${ac_cv_have_pid_t+:} false; then :
12931   $as_echo_n "(cached) " >&6
12932 else
12933
12934         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h.  */
12936
12937 #include <sys/types.h>
12938
12939 int
12940 main ()
12941 {
12942  pid_t foo; foo = 1235;
12943   ;
12944   return 0;
12945 }
12946 _ACEOF
12947 if ac_fn_c_try_compile "$LINENO"; then :
12948    ac_cv_have_pid_t="yes"
12949 else
12950    ac_cv_have_pid_t="no"
12951
12952 fi
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954
12955 fi
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12957 $as_echo "$ac_cv_have_pid_t" >&6; }
12958 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12959
12960 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12961
12962 fi
12963
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12965 $as_echo_n "checking for mode_t... " >&6; }
12966 if ${ac_cv_have_mode_t+:} false; then :
12967   $as_echo_n "(cached) " >&6
12968 else
12969
12970         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h.  */
12972
12973 #include <sys/types.h>
12974
12975 int
12976 main ()
12977 {
12978  mode_t foo; foo = 1235;
12979   ;
12980   return 0;
12981 }
12982 _ACEOF
12983 if ac_fn_c_try_compile "$LINENO"; then :
12984    ac_cv_have_mode_t="yes"
12985 else
12986    ac_cv_have_mode_t="no"
12987
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990
12991 fi
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12993 $as_echo "$ac_cv_have_mode_t" >&6; }
12994 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12995
12996 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12997
12998 fi
12999
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
13002 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
13003 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
13004   $as_echo_n "(cached) " >&6
13005 else
13006
13007         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h.  */
13009
13010 #include <sys/types.h>
13011 #include <sys/socket.h>
13012
13013 int
13014 main ()
13015 {
13016  struct sockaddr_storage s;
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 if ac_fn_c_try_compile "$LINENO"; then :
13022    ac_cv_have_struct_sockaddr_storage="yes"
13023 else
13024    ac_cv_have_struct_sockaddr_storage="no"
13025
13026 fi
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028
13029 fi
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
13031 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
13032 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
13033
13034 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
13035
13036 fi
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
13039 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
13040 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
13041   $as_echo_n "(cached) " >&6
13042 else
13043
13044         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h.  */
13046
13047 #include <sys/types.h>
13048 #include <netinet/in.h>
13049
13050 int
13051 main ()
13052 {
13053  struct sockaddr_in6 s; s.sin6_family = 0;
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_compile "$LINENO"; then :
13059    ac_cv_have_struct_sockaddr_in6="yes"
13060 else
13061    ac_cv_have_struct_sockaddr_in6="no"
13062
13063 fi
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065
13066 fi
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
13068 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
13069 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
13070
13071 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
13072
13073 fi
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
13076 $as_echo_n "checking for struct in6_addr... " >&6; }
13077 if ${ac_cv_have_struct_in6_addr+:} false; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080
13081         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h.  */
13083
13084 #include <sys/types.h>
13085 #include <netinet/in.h>
13086
13087 int
13088 main ()
13089 {
13090  struct in6_addr s; s.s6_addr[0] = 0;
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096    ac_cv_have_struct_in6_addr="yes"
13097 else
13098    ac_cv_have_struct_in6_addr="no"
13099
13100 fi
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
13105 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
13106 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
13107
13108 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
13109
13110
13111         ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
13112 #ifdef HAVE_SYS_TYPES_H
13113 #include <sys/types.h>
13114 #endif
13115 #include <netinet/in.h>
13116
13117 "
13118 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13119
13120 cat >>confdefs.h <<_ACEOF
13121 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13122 _ACEOF
13123
13124
13125 fi
13126
13127 fi
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
13130 $as_echo_n "checking for struct addrinfo... " >&6; }
13131 if ${ac_cv_have_struct_addrinfo+:} false; then :
13132   $as_echo_n "(cached) " >&6
13133 else
13134
13135         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h.  */
13137
13138 #include <sys/types.h>
13139 #include <sys/socket.h>
13140 #include <netdb.h>
13141
13142 int
13143 main ()
13144 {
13145  struct addrinfo s; s.ai_flags = AI_PASSIVE;
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151    ac_cv_have_struct_addrinfo="yes"
13152 else
13153    ac_cv_have_struct_addrinfo="no"
13154
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
13160 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
13161 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
13162
13163 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
13164
13165 fi
13166
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
13168 $as_echo_n "checking for struct timeval... " >&6; }
13169 if ${ac_cv_have_struct_timeval+:} false; then :
13170   $as_echo_n "(cached) " >&6
13171 else
13172
13173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h.  */
13175  #include <sys/time.h>
13176 int
13177 main ()
13178 {
13179  struct timeval tv; tv.tv_sec = 1;
13180   ;
13181   return 0;
13182 }
13183 _ACEOF
13184 if ac_fn_c_try_compile "$LINENO"; then :
13185    ac_cv_have_struct_timeval="yes"
13186 else
13187    ac_cv_have_struct_timeval="no"
13188
13189 fi
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
13194 $as_echo "$ac_cv_have_struct_timeval" >&6; }
13195 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
13196
13197 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
13198
13199         have_struct_timeval=1
13200 fi
13201
13202 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
13203 if test "x$ac_cv_type_struct_timespec" = xyes; then :
13204
13205 cat >>confdefs.h <<_ACEOF
13206 #define HAVE_STRUCT_TIMESPEC 1
13207 _ACEOF
13208
13209
13210 fi
13211
13212
13213 # We need int64_t or else certian parts of the compile will fail.
13214 if test "x$ac_cv_have_int64_t" = "xno" && \
13215         test "x$ac_cv_sizeof_long_int" != "x8" && \
13216         test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
13217         echo "OpenSSH requires int64_t support.  Contact your vendor or install"
13218         echo "an alternative compiler (I.E., GCC) before continuing."
13219         echo ""
13220         exit 1;
13221 else
13222         if test "$cross_compiling" = yes; then :
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
13224 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
13225
13226 else
13227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h.  */
13229
13230 #include <stdio.h>
13231 #include <string.h>
13232 #ifdef HAVE_SNPRINTF
13233 main()
13234 {
13235         char buf[50];
13236         char expected_out[50];
13237         int mazsize = 50 ;
13238 #if (SIZEOF_LONG_INT == 8)
13239         long int num = 0x7fffffffffffffff;
13240 #else
13241         long long num = 0x7fffffffffffffffll;
13242 #endif
13243         strcpy(expected_out, "9223372036854775807");
13244         snprintf(buf, mazsize, "%lld", num);
13245         if(strcmp(buf, expected_out) != 0)
13246                 exit(1);
13247         exit(0);
13248 }
13249 #else
13250 main() { exit(0); }
13251 #endif
13252
13253 _ACEOF
13254 if ac_fn_c_try_run "$LINENO"; then :
13255    true
13256 else
13257    $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
13258
13259 fi
13260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13261   conftest.$ac_objext conftest.beam conftest.$ac_ext
13262 fi
13263
13264 fi
13265
13266
13267 # look for field 'ut_host' in header 'utmp.h'
13268                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13269                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
13271 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
13272         if eval \${$ossh_varname+:} false; then :
13273   $as_echo_n "(cached) " >&6
13274 else
13275
13276                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h.  */
13278 #include <utmp.h>
13279
13280 _ACEOF
13281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13282   $EGREP "ut_host" >/dev/null 2>&1; then :
13283                         eval "$ossh_varname=yes"
13284 else
13285                         eval "$ossh_varname=no"
13286 fi
13287 rm -f conftest*
13288
13289 fi
13290
13291         ossh_result=`eval 'echo $'"$ossh_varname"`
13292         if test -n "`echo $ossh_varname`"; then
13293                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13294 $as_echo "$ossh_result" >&6; }
13295                 if test "x$ossh_result" = "xyes"; then
13296
13297 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
13298
13299                 fi
13300         else
13301                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302 $as_echo "no" >&6; }
13303         fi
13304
13305
13306 # look for field 'ut_host' in header 'utmpx.h'
13307                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13308                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
13309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
13310 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
13311         if eval \${$ossh_varname+:} false; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314
13315                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h.  */
13317 #include <utmpx.h>
13318
13319 _ACEOF
13320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13321   $EGREP "ut_host" >/dev/null 2>&1; then :
13322                         eval "$ossh_varname=yes"
13323 else
13324                         eval "$ossh_varname=no"
13325 fi
13326 rm -f conftest*
13327
13328 fi
13329
13330         ossh_result=`eval 'echo $'"$ossh_varname"`
13331         if test -n "`echo $ossh_varname`"; then
13332                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13333 $as_echo "$ossh_result" >&6; }
13334                 if test "x$ossh_result" = "xyes"; then
13335
13336 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
13337
13338                 fi
13339         else
13340                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342         fi
13343
13344
13345 # look for field 'syslen' in header 'utmpx.h'
13346                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13347                 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
13348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
13349 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
13350         if eval \${$ossh_varname+:} false; then :
13351   $as_echo_n "(cached) " >&6
13352 else
13353
13354                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h.  */
13356 #include <utmpx.h>
13357
13358 _ACEOF
13359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13360   $EGREP "syslen" >/dev/null 2>&1; then :
13361                         eval "$ossh_varname=yes"
13362 else
13363                         eval "$ossh_varname=no"
13364 fi
13365 rm -f conftest*
13366
13367 fi
13368
13369         ossh_result=`eval 'echo $'"$ossh_varname"`
13370         if test -n "`echo $ossh_varname`"; then
13371                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13372 $as_echo "$ossh_result" >&6; }
13373                 if test "x$ossh_result" = "xyes"; then
13374
13375 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
13376
13377                 fi
13378         else
13379                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13381         fi
13382
13383
13384 # look for field 'ut_pid' in header 'utmp.h'
13385                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13386                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
13387         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
13388 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
13389         if eval \${$ossh_varname+:} false; then :
13390   $as_echo_n "(cached) " >&6
13391 else
13392
13393                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h.  */
13395 #include <utmp.h>
13396
13397 _ACEOF
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399   $EGREP "ut_pid" >/dev/null 2>&1; then :
13400                         eval "$ossh_varname=yes"
13401 else
13402                         eval "$ossh_varname=no"
13403 fi
13404 rm -f conftest*
13405
13406 fi
13407
13408         ossh_result=`eval 'echo $'"$ossh_varname"`
13409         if test -n "`echo $ossh_varname`"; then
13410                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13411 $as_echo "$ossh_result" >&6; }
13412                 if test "x$ossh_result" = "xyes"; then
13413
13414 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
13415
13416                 fi
13417         else
13418                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13420         fi
13421
13422
13423 # look for field 'ut_type' in header 'utmp.h'
13424                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13425                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
13427 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
13428         if eval \${$ossh_varname+:} false; then :
13429   $as_echo_n "(cached) " >&6
13430 else
13431
13432                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h.  */
13434 #include <utmp.h>
13435
13436 _ACEOF
13437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13438   $EGREP "ut_type" >/dev/null 2>&1; then :
13439                         eval "$ossh_varname=yes"
13440 else
13441                         eval "$ossh_varname=no"
13442 fi
13443 rm -f conftest*
13444
13445 fi
13446
13447         ossh_result=`eval 'echo $'"$ossh_varname"`
13448         if test -n "`echo $ossh_varname`"; then
13449                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13450 $as_echo "$ossh_result" >&6; }
13451                 if test "x$ossh_result" = "xyes"; then
13452
13453 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
13454
13455                 fi
13456         else
13457                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13459         fi
13460
13461
13462 # look for field 'ut_type' in header 'utmpx.h'
13463                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13464                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13466 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13467         if eval \${$ossh_varname+:} false; then :
13468   $as_echo_n "(cached) " >&6
13469 else
13470
13471                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h.  */
13473 #include <utmpx.h>
13474
13475 _ACEOF
13476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13477   $EGREP "ut_type" >/dev/null 2>&1; then :
13478                         eval "$ossh_varname=yes"
13479 else
13480                         eval "$ossh_varname=no"
13481 fi
13482 rm -f conftest*
13483
13484 fi
13485
13486         ossh_result=`eval 'echo $'"$ossh_varname"`
13487         if test -n "`echo $ossh_varname`"; then
13488                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13489 $as_echo "$ossh_result" >&6; }
13490                 if test "x$ossh_result" = "xyes"; then
13491
13492 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13493
13494                 fi
13495         else
13496                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13498         fi
13499
13500
13501 # look for field 'ut_tv' in header 'utmp.h'
13502                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13503                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13505 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13506         if eval \${$ossh_varname+:} false; then :
13507   $as_echo_n "(cached) " >&6
13508 else
13509
13510                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h.  */
13512 #include <utmp.h>
13513
13514 _ACEOF
13515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13516   $EGREP "ut_tv" >/dev/null 2>&1; then :
13517                         eval "$ossh_varname=yes"
13518 else
13519                         eval "$ossh_varname=no"
13520 fi
13521 rm -f conftest*
13522
13523 fi
13524
13525         ossh_result=`eval 'echo $'"$ossh_varname"`
13526         if test -n "`echo $ossh_varname`"; then
13527                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13528 $as_echo "$ossh_result" >&6; }
13529                 if test "x$ossh_result" = "xyes"; then
13530
13531 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13532
13533                 fi
13534         else
13535                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536 $as_echo "no" >&6; }
13537         fi
13538
13539
13540 # look for field 'ut_id' in header 'utmp.h'
13541                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13542                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13544 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13545         if eval \${$ossh_varname+:} false; then :
13546   $as_echo_n "(cached) " >&6
13547 else
13548
13549                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h.  */
13551 #include <utmp.h>
13552
13553 _ACEOF
13554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13555   $EGREP "ut_id" >/dev/null 2>&1; then :
13556                         eval "$ossh_varname=yes"
13557 else
13558                         eval "$ossh_varname=no"
13559 fi
13560 rm -f conftest*
13561
13562 fi
13563
13564         ossh_result=`eval 'echo $'"$ossh_varname"`
13565         if test -n "`echo $ossh_varname`"; then
13566                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13567 $as_echo "$ossh_result" >&6; }
13568                 if test "x$ossh_result" = "xyes"; then
13569
13570 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13571
13572                 fi
13573         else
13574                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13576         fi
13577
13578
13579 # look for field 'ut_id' in header 'utmpx.h'
13580                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13581                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13583 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13584         if eval \${$ossh_varname+:} false; then :
13585   $as_echo_n "(cached) " >&6
13586 else
13587
13588                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h.  */
13590 #include <utmpx.h>
13591
13592 _ACEOF
13593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13594   $EGREP "ut_id" >/dev/null 2>&1; then :
13595                         eval "$ossh_varname=yes"
13596 else
13597                         eval "$ossh_varname=no"
13598 fi
13599 rm -f conftest*
13600
13601 fi
13602
13603         ossh_result=`eval 'echo $'"$ossh_varname"`
13604         if test -n "`echo $ossh_varname`"; then
13605                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13606 $as_echo "$ossh_result" >&6; }
13607                 if test "x$ossh_result" = "xyes"; then
13608
13609 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13610
13611                 fi
13612         else
13613                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13615         fi
13616
13617
13618 # look for field 'ut_addr' in header 'utmp.h'
13619                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13620                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13622 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13623         if eval \${$ossh_varname+:} false; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626
13627                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h.  */
13629 #include <utmp.h>
13630
13631 _ACEOF
13632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13633   $EGREP "ut_addr" >/dev/null 2>&1; then :
13634                         eval "$ossh_varname=yes"
13635 else
13636                         eval "$ossh_varname=no"
13637 fi
13638 rm -f conftest*
13639
13640 fi
13641
13642         ossh_result=`eval 'echo $'"$ossh_varname"`
13643         if test -n "`echo $ossh_varname`"; then
13644                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13645 $as_echo "$ossh_result" >&6; }
13646                 if test "x$ossh_result" = "xyes"; then
13647
13648 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13649
13650                 fi
13651         else
13652                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13654         fi
13655
13656
13657 # look for field 'ut_addr' in header 'utmpx.h'
13658                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13659                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13660         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13661 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13662         if eval \${$ossh_varname+:} false; then :
13663   $as_echo_n "(cached) " >&6
13664 else
13665
13666                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h.  */
13668 #include <utmpx.h>
13669
13670 _ACEOF
13671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672   $EGREP "ut_addr" >/dev/null 2>&1; then :
13673                         eval "$ossh_varname=yes"
13674 else
13675                         eval "$ossh_varname=no"
13676 fi
13677 rm -f conftest*
13678
13679 fi
13680
13681         ossh_result=`eval 'echo $'"$ossh_varname"`
13682         if test -n "`echo $ossh_varname`"; then
13683                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13684 $as_echo "$ossh_result" >&6; }
13685                 if test "x$ossh_result" = "xyes"; then
13686
13687 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13688
13689                 fi
13690         else
13691                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13692 $as_echo "no" >&6; }
13693         fi
13694
13695
13696 # look for field 'ut_addr_v6' in header 'utmp.h'
13697                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13698                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13700 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13701         if eval \${$ossh_varname+:} false; then :
13702   $as_echo_n "(cached) " >&6
13703 else
13704
13705                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h.  */
13707 #include <utmp.h>
13708
13709 _ACEOF
13710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13711   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13712                         eval "$ossh_varname=yes"
13713 else
13714                         eval "$ossh_varname=no"
13715 fi
13716 rm -f conftest*
13717
13718 fi
13719
13720         ossh_result=`eval 'echo $'"$ossh_varname"`
13721         if test -n "`echo $ossh_varname`"; then
13722                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13723 $as_echo "$ossh_result" >&6; }
13724                 if test "x$ossh_result" = "xyes"; then
13725
13726 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13727
13728                 fi
13729         else
13730                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13732         fi
13733
13734
13735 # look for field 'ut_addr_v6' in header 'utmpx.h'
13736                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13737                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13738         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13739 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13740         if eval \${$ossh_varname+:} false; then :
13741   $as_echo_n "(cached) " >&6
13742 else
13743
13744                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h.  */
13746 #include <utmpx.h>
13747
13748 _ACEOF
13749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13750   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13751                         eval "$ossh_varname=yes"
13752 else
13753                         eval "$ossh_varname=no"
13754 fi
13755 rm -f conftest*
13756
13757 fi
13758
13759         ossh_result=`eval 'echo $'"$ossh_varname"`
13760         if test -n "`echo $ossh_varname`"; then
13761                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13762 $as_echo "$ossh_result" >&6; }
13763                 if test "x$ossh_result" = "xyes"; then
13764
13765 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13766
13767                 fi
13768         else
13769                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13771         fi
13772
13773
13774 # look for field 'ut_exit' in header 'utmp.h'
13775                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13776                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13778 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13779         if eval \${$ossh_varname+:} false; then :
13780   $as_echo_n "(cached) " >&6
13781 else
13782
13783                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h.  */
13785 #include <utmp.h>
13786
13787 _ACEOF
13788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13789   $EGREP "ut_exit" >/dev/null 2>&1; then :
13790                         eval "$ossh_varname=yes"
13791 else
13792                         eval "$ossh_varname=no"
13793 fi
13794 rm -f conftest*
13795
13796 fi
13797
13798         ossh_result=`eval 'echo $'"$ossh_varname"`
13799         if test -n "`echo $ossh_varname`"; then
13800                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13801 $as_echo "$ossh_result" >&6; }
13802                 if test "x$ossh_result" = "xyes"; then
13803
13804 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13805
13806                 fi
13807         else
13808                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13810         fi
13811
13812
13813 # look for field 'ut_time' in header 'utmp.h'
13814                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13815                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13817 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13818         if eval \${$ossh_varname+:} false; then :
13819   $as_echo_n "(cached) " >&6
13820 else
13821
13822                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h.  */
13824 #include <utmp.h>
13825
13826 _ACEOF
13827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13828   $EGREP "ut_time" >/dev/null 2>&1; then :
13829                         eval "$ossh_varname=yes"
13830 else
13831                         eval "$ossh_varname=no"
13832 fi
13833 rm -f conftest*
13834
13835 fi
13836
13837         ossh_result=`eval 'echo $'"$ossh_varname"`
13838         if test -n "`echo $ossh_varname`"; then
13839                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13840 $as_echo "$ossh_result" >&6; }
13841                 if test "x$ossh_result" = "xyes"; then
13842
13843 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13844
13845                 fi
13846         else
13847                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848 $as_echo "no" >&6; }
13849         fi
13850
13851
13852 # look for field 'ut_time' in header 'utmpx.h'
13853                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13854                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13856 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13857         if eval \${$ossh_varname+:} false; then :
13858   $as_echo_n "(cached) " >&6
13859 else
13860
13861                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h.  */
13863 #include <utmpx.h>
13864
13865 _ACEOF
13866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13867   $EGREP "ut_time" >/dev/null 2>&1; then :
13868                         eval "$ossh_varname=yes"
13869 else
13870                         eval "$ossh_varname=no"
13871 fi
13872 rm -f conftest*
13873
13874 fi
13875
13876         ossh_result=`eval 'echo $'"$ossh_varname"`
13877         if test -n "`echo $ossh_varname`"; then
13878                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13879 $as_echo "$ossh_result" >&6; }
13880                 if test "x$ossh_result" = "xyes"; then
13881
13882 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13883
13884                 fi
13885         else
13886                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13888         fi
13889
13890
13891 # look for field 'ut_tv' in header 'utmpx.h'
13892                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13893                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13895 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13896         if eval \${$ossh_varname+:} false; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899
13900                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902 #include <utmpx.h>
13903
13904 _ACEOF
13905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13906   $EGREP "ut_tv" >/dev/null 2>&1; then :
13907                         eval "$ossh_varname=yes"
13908 else
13909                         eval "$ossh_varname=no"
13910 fi
13911 rm -f conftest*
13912
13913 fi
13914
13915         ossh_result=`eval 'echo $'"$ossh_varname"`
13916         if test -n "`echo $ossh_varname`"; then
13917                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13918 $as_echo "$ossh_result" >&6; }
13919                 if test "x$ossh_result" = "xyes"; then
13920
13921 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13922
13923                 fi
13924         else
13925                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13927         fi
13928
13929
13930 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13931 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13932
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13935 _ACEOF
13936
13937
13938 fi
13939
13940 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13941 #include <stdio.h>
13942 #if HAVE_SYS_TYPES_H
13943 # include <sys/types.h>
13944 #endif
13945 #include <netinet/in.h>
13946 #include <arpa/nameser.h>
13947 #include <resolv.h>
13948
13949 "
13950 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
13951
13952 else
13953
13954 $as_echo "#define __res_state state" >>confdefs.h
13955
13956 fi
13957
13958
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13960 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13961 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
13962   $as_echo_n "(cached) " >&6
13963 else
13964
13965         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967
13968 #include <sys/types.h>
13969 #include <sys/socket.h>
13970
13971 int
13972 main ()
13973 {
13974  struct sockaddr_storage s; s.ss_family = 1;
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_compile "$LINENO"; then :
13980    ac_cv_have_ss_family_in_struct_ss="yes"
13981 else
13982    ac_cv_have_ss_family_in_struct_ss="no"
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985
13986 fi
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13988 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13989 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13990
13991 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13992
13993 fi
13994
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13996 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13997 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
13998   $as_echo_n "(cached) " >&6
13999 else
14000
14001         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h.  */
14003
14004 #include <sys/types.h>
14005 #include <sys/socket.h>
14006
14007 int
14008 main ()
14009 {
14010  struct sockaddr_storage s; s.__ss_family = 1;
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_compile "$LINENO"; then :
14016    ac_cv_have___ss_family_in_struct_ss="yes"
14017 else
14018    ac_cv_have___ss_family_in_struct_ss="no"
14019
14020 fi
14021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14022
14023 fi
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
14025 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
14026 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
14027
14028 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
14029
14030 fi
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
14033 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
14034 if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then :
14035   $as_echo_n "(cached) " >&6
14036 else
14037
14038         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h.  */
14040
14041 #include <pwd.h>
14042
14043 int
14044 main ()
14045 {
14046  struct passwd p; p.pw_class = 0;
14047   ;
14048   return 0;
14049 }
14050 _ACEOF
14051 if ac_fn_c_try_compile "$LINENO"; then :
14052    ac_cv_have_pw_class_in_struct_passwd="yes"
14053 else
14054    ac_cv_have_pw_class_in_struct_passwd="no"
14055
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058
14059 fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
14061 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
14062 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
14063
14064 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
14065
14066 fi
14067
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
14069 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
14070 if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then :
14071   $as_echo_n "(cached) " >&6
14072 else
14073
14074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h.  */
14076
14077 #include <pwd.h>
14078
14079 int
14080 main ()
14081 {
14082  struct passwd p; p.pw_expire = 0;
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088    ac_cv_have_pw_expire_in_struct_passwd="yes"
14089 else
14090    ac_cv_have_pw_expire_in_struct_passwd="no"
14091
14092 fi
14093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14094
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
14097 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
14098 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
14099
14100 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
14101
14102 fi
14103
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
14105 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
14106 if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then :
14107   $as_echo_n "(cached) " >&6
14108 else
14109
14110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h.  */
14112
14113 #include <pwd.h>
14114
14115 int
14116 main ()
14117 {
14118  struct passwd p; p.pw_change = 0;
14119   ;
14120   return 0;
14121 }
14122 _ACEOF
14123 if ac_fn_c_try_compile "$LINENO"; then :
14124    ac_cv_have_pw_change_in_struct_passwd="yes"
14125 else
14126    ac_cv_have_pw_change_in_struct_passwd="no"
14127
14128 fi
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
14133 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
14134 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
14135
14136 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
14137
14138 fi
14139
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
14141 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
14142 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
14143   $as_echo_n "(cached) " >&6
14144 else
14145
14146         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h.  */
14148
14149 #include <sys/types.h>
14150 #include <sys/socket.h>
14151 #include <sys/uio.h>
14152 int main() {
14153 #ifdef msg_accrights
14154 #error "msg_accrights is a macro"
14155 exit(1);
14156 #endif
14157 struct msghdr m;
14158 m.msg_accrights = 0;
14159 exit(0);
14160 }
14161
14162 _ACEOF
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164    ac_cv_have_accrights_in_msghdr="yes"
14165 else
14166    ac_cv_have_accrights_in_msghdr="no"
14167
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
14173 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
14174 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
14175
14176 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
14177
14178 fi
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
14181 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h.  */
14184
14185 #include <sys/types.h>
14186 #include <sys/stat.h>
14187 #ifdef HAVE_SYS_TIME_H
14188 # include <sys/time.h>
14189 #endif
14190 #ifdef HAVE_SYS_MOUNT_H
14191 #include <sys/mount.h>
14192 #endif
14193 #ifdef HAVE_SYS_STATVFS_H
14194 #include <sys/statvfs.h>
14195 #endif
14196
14197 int
14198 main ()
14199 {
14200 struct statvfs s; s.f_fsid = 0;
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 if ac_fn_c_try_compile "$LINENO"; then :
14206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14207 $as_echo "yes" >&6; }
14208 else
14209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14211
14212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
14213 $as_echo_n "checking if fsid_t has member val... " >&6; }
14214         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h.  */
14216
14217 #include <sys/types.h>
14218 #include <sys/statvfs.h>
14219 int
14220 main ()
14221 {
14222 fsid_t t; t.val[0] = 0;
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_compile "$LINENO"; then :
14228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14229 $as_echo "yes" >&6; }
14230
14231 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
14232
14233 else
14234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14235 $as_echo "no" >&6; }
14236 fi
14237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238
14239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
14240 $as_echo_n "checking if f_fsid has member __val... " >&6; }
14241         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h.  */
14243
14244 #include <sys/types.h>
14245 #include <sys/statvfs.h>
14246 int
14247 main ()
14248 {
14249 fsid_t t; t.__val[0] = 0;
14250   ;
14251   return 0;
14252 }
14253 _ACEOF
14254 if ac_fn_c_try_compile "$LINENO"; then :
14255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256 $as_echo "yes" >&6; }
14257
14258 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
14259
14260 else
14261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262 $as_echo "no" >&6; }
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
14270 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
14271 if ${ac_cv_have_control_in_msghdr+:} false; then :
14272   $as_echo_n "(cached) " >&6
14273 else
14274
14275         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h.  */
14277
14278 #include <sys/types.h>
14279 #include <sys/socket.h>
14280 #include <sys/uio.h>
14281 int main() {
14282 #ifdef msg_control
14283 #error "msg_control is a macro"
14284 exit(1);
14285 #endif
14286 struct msghdr m;
14287 m.msg_control = 0;
14288 exit(0);
14289 }
14290
14291 _ACEOF
14292 if ac_fn_c_try_compile "$LINENO"; then :
14293    ac_cv_have_control_in_msghdr="yes"
14294 else
14295    ac_cv_have_control_in_msghdr="no"
14296
14297 fi
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
14302 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
14303 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
14304
14305 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
14306
14307 fi
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
14310 $as_echo_n "checking if libc defines __progname... " >&6; }
14311 if ${ac_cv_libc_defines___progname+:} false; then :
14312   $as_echo_n "(cached) " >&6
14313 else
14314
14315         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h.  */
14317
14318 int
14319 main ()
14320 {
14321  extern char *__progname; printf("%s", __progname);
14322   ;
14323   return 0;
14324 }
14325 _ACEOF
14326 if ac_fn_c_try_link "$LINENO"; then :
14327    ac_cv_libc_defines___progname="yes"
14328 else
14329    ac_cv_libc_defines___progname="no"
14330
14331 fi
14332 rm -f core conftest.err conftest.$ac_objext \
14333     conftest$ac_exeext conftest.$ac_ext
14334
14335 fi
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
14337 $as_echo "$ac_cv_libc_defines___progname" >&6; }
14338 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
14339
14340 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
14341
14342 fi
14343
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
14345 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
14346 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
14347   $as_echo_n "(cached) " >&6
14348 else
14349
14350         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h.  */
14352
14353 #include <stdio.h>
14354
14355 int
14356 main ()
14357 {
14358  printf("%s", __FUNCTION__);
14359   ;
14360   return 0;
14361 }
14362 _ACEOF
14363 if ac_fn_c_try_link "$LINENO"; then :
14364    ac_cv_cc_implements___FUNCTION__="yes"
14365 else
14366    ac_cv_cc_implements___FUNCTION__="no"
14367
14368 fi
14369 rm -f core conftest.err conftest.$ac_objext \
14370     conftest$ac_exeext conftest.$ac_ext
14371
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
14374 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
14375 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
14376
14377 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
14378
14379 fi
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
14382 $as_echo_n "checking whether $CC implements __func__... " >&6; }
14383 if ${ac_cv_cc_implements___func__+:} false; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386
14387         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h.  */
14389
14390 #include <stdio.h>
14391
14392 int
14393 main ()
14394 {
14395  printf("%s", __func__);
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 if ac_fn_c_try_link "$LINENO"; then :
14401    ac_cv_cc_implements___func__="yes"
14402 else
14403    ac_cv_cc_implements___func__="no"
14404
14405 fi
14406 rm -f core conftest.err conftest.$ac_objext \
14407     conftest$ac_exeext conftest.$ac_ext
14408
14409 fi
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
14411 $as_echo "$ac_cv_cc_implements___func__" >&6; }
14412 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14413
14414 $as_echo "#define HAVE___func__ 1" >>confdefs.h
14415
14416 fi
14417
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
14419 $as_echo_n "checking whether va_copy exists... " >&6; }
14420 if ${ac_cv_have_va_copy+:} false; then :
14421   $as_echo_n "(cached) " >&6
14422 else
14423
14424         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h.  */
14426 #include <stdarg.h>
14427                  va_list x,y;
14428 int
14429 main ()
14430 {
14431 va_copy(x,y);
14432   ;
14433   return 0;
14434 }
14435 _ACEOF
14436 if ac_fn_c_try_link "$LINENO"; then :
14437    ac_cv_have_va_copy="yes"
14438 else
14439    ac_cv_have_va_copy="no"
14440
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext \
14443     conftest$ac_exeext conftest.$ac_ext
14444
14445 fi
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
14447 $as_echo "$ac_cv_have_va_copy" >&6; }
14448 if test "x$ac_cv_have_va_copy" = "xyes" ; then
14449
14450 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14451
14452 fi
14453
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
14455 $as_echo_n "checking whether __va_copy exists... " >&6; }
14456 if ${ac_cv_have___va_copy+:} false; then :
14457   $as_echo_n "(cached) " >&6
14458 else
14459
14460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h.  */
14462 #include <stdarg.h>
14463                  va_list x,y;
14464 int
14465 main ()
14466 {
14467 __va_copy(x,y);
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"; then :
14473    ac_cv_have___va_copy="yes"
14474 else
14475    ac_cv_have___va_copy="no"
14476
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext \
14479     conftest$ac_exeext conftest.$ac_ext
14480
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14483 $as_echo "$ac_cv_have___va_copy" >&6; }
14484 if test "x$ac_cv_have___va_copy" = "xyes" ; then
14485
14486 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14487
14488 fi
14489
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14491 $as_echo_n "checking whether getopt has optreset support... " >&6; }
14492 if ${ac_cv_have_getopt_optreset+:} false; then :
14493   $as_echo_n "(cached) " >&6
14494 else
14495
14496         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h.  */
14498
14499 #include <getopt.h>
14500
14501 int
14502 main ()
14503 {
14504  extern int optreset; optreset = 0;
14505   ;
14506   return 0;
14507 }
14508 _ACEOF
14509 if ac_fn_c_try_link "$LINENO"; then :
14510    ac_cv_have_getopt_optreset="yes"
14511 else
14512    ac_cv_have_getopt_optreset="no"
14513
14514 fi
14515 rm -f core conftest.err conftest.$ac_objext \
14516     conftest$ac_exeext conftest.$ac_ext
14517
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14520 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
14521 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14522
14523 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14524
14525 fi
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14528 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
14529 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
14530   $as_echo_n "(cached) " >&6
14531 else
14532
14533         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h.  */
14535
14536 int
14537 main ()
14538 {
14539  extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 if ac_fn_c_try_link "$LINENO"; then :
14545    ac_cv_libc_defines_sys_errlist="yes"
14546 else
14547    ac_cv_libc_defines_sys_errlist="no"
14548
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext \
14551     conftest$ac_exeext conftest.$ac_ext
14552
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14555 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14556 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14557
14558 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14559
14560 fi
14561
14562
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14564 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
14565 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
14566   $as_echo_n "(cached) " >&6
14567 else
14568
14569         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h.  */
14571
14572 int
14573 main ()
14574 {
14575  extern int sys_nerr; printf("%i", sys_nerr);
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 if ac_fn_c_try_link "$LINENO"; then :
14581    ac_cv_libc_defines_sys_nerr="yes"
14582 else
14583    ac_cv_libc_defines_sys_nerr="no"
14584
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext \
14587     conftest$ac_exeext conftest.$ac_ext
14588
14589 fi
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14591 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14592 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14593
14594 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14595
14596 fi
14597
14598 # Check libraries needed by DNS fingerprint support
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14600 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14601 if ${ac_cv_search_getrrsetbyname+:} false; then :
14602   $as_echo_n "(cached) " >&6
14603 else
14604   ac_func_search_save_LIBS=$LIBS
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h.  */
14607
14608 /* Override any GCC internal prototype to avoid an error.
14609    Use char because int might match the return type of a GCC
14610    builtin and then its argument prototype would still apply.  */
14611 #ifdef __cplusplus
14612 extern "C"
14613 #endif
14614 char getrrsetbyname ();
14615 int
14616 main ()
14617 {
14618 return getrrsetbyname ();
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 for ac_lib in '' resolv; do
14624   if test -z "$ac_lib"; then
14625     ac_res="none required"
14626   else
14627     ac_res=-l$ac_lib
14628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14629   fi
14630   if ac_fn_c_try_link "$LINENO"; then :
14631   ac_cv_search_getrrsetbyname=$ac_res
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext \
14634     conftest$ac_exeext
14635   if ${ac_cv_search_getrrsetbyname+:} false; then :
14636   break
14637 fi
14638 done
14639 if ${ac_cv_search_getrrsetbyname+:} false; then :
14640
14641 else
14642   ac_cv_search_getrrsetbyname=no
14643 fi
14644 rm conftest.$ac_ext
14645 LIBS=$ac_func_search_save_LIBS
14646 fi
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14648 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14649 ac_res=$ac_cv_search_getrrsetbyname
14650 if test "$ac_res" != no; then :
14651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14652
14653 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14654
14655 else
14656
14657                 # Needed by our getrrsetbyname()
14658                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14659 $as_echo_n "checking for library containing res_query... " >&6; }
14660 if ${ac_cv_search_res_query+:} false; then :
14661   $as_echo_n "(cached) " >&6
14662 else
14663   ac_func_search_save_LIBS=$LIBS
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h.  */
14666
14667 /* Override any GCC internal prototype to avoid an error.
14668    Use char because int might match the return type of a GCC
14669    builtin and then its argument prototype would still apply.  */
14670 #ifdef __cplusplus
14671 extern "C"
14672 #endif
14673 char res_query ();
14674 int
14675 main ()
14676 {
14677 return res_query ();
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 for ac_lib in '' resolv; do
14683   if test -z "$ac_lib"; then
14684     ac_res="none required"
14685   else
14686     ac_res=-l$ac_lib
14687     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14688   fi
14689   if ac_fn_c_try_link "$LINENO"; then :
14690   ac_cv_search_res_query=$ac_res
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext \
14693     conftest$ac_exeext
14694   if ${ac_cv_search_res_query+:} false; then :
14695   break
14696 fi
14697 done
14698 if ${ac_cv_search_res_query+:} false; then :
14699
14700 else
14701   ac_cv_search_res_query=no
14702 fi
14703 rm conftest.$ac_ext
14704 LIBS=$ac_func_search_save_LIBS
14705 fi
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14707 $as_echo "$ac_cv_search_res_query" >&6; }
14708 ac_res=$ac_cv_search_res_query
14709 if test "$ac_res" != no; then :
14710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14711
14712 fi
14713
14714                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14715 $as_echo_n "checking for library containing dn_expand... " >&6; }
14716 if ${ac_cv_search_dn_expand+:} false; then :
14717   $as_echo_n "(cached) " >&6
14718 else
14719   ac_func_search_save_LIBS=$LIBS
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h.  */
14722
14723 /* Override any GCC internal prototype to avoid an error.
14724    Use char because int might match the return type of a GCC
14725    builtin and then its argument prototype would still apply.  */
14726 #ifdef __cplusplus
14727 extern "C"
14728 #endif
14729 char dn_expand ();
14730 int
14731 main ()
14732 {
14733 return dn_expand ();
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 for ac_lib in '' resolv; do
14739   if test -z "$ac_lib"; then
14740     ac_res="none required"
14741   else
14742     ac_res=-l$ac_lib
14743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14744   fi
14745   if ac_fn_c_try_link "$LINENO"; then :
14746   ac_cv_search_dn_expand=$ac_res
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext \
14749     conftest$ac_exeext
14750   if ${ac_cv_search_dn_expand+:} false; then :
14751   break
14752 fi
14753 done
14754 if ${ac_cv_search_dn_expand+:} false; then :
14755
14756 else
14757   ac_cv_search_dn_expand=no
14758 fi
14759 rm conftest.$ac_ext
14760 LIBS=$ac_func_search_save_LIBS
14761 fi
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14763 $as_echo "$ac_cv_search_dn_expand" >&6; }
14764 ac_res=$ac_cv_search_dn_expand
14765 if test "$ac_res" != no; then :
14766   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14767
14768 fi
14769
14770                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14771 $as_echo_n "checking if res_query will link... " >&6; }
14772                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h.  */
14774
14775 #include "confdefs.h"
14776 #include <sys/types.h>
14777 #include <netinet/in.h>
14778 #include <arpa/nameser.h>
14779 #include <netdb.h>
14780 #include <resolv.h>
14781 int main()
14782 {
14783         res_query (0, 0, 0, 0, 0);
14784         return 0;
14785 }
14786
14787 _ACEOF
14788 if ac_fn_c_try_link "$LINENO"; then :
14789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14790 $as_echo "yes" >&6; }
14791 else
14792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14793 $as_echo "no" >&6; }
14794                     saved_LIBS="$LIBS"
14795                     LIBS="$LIBS -lresolv"
14796                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14797 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14798                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h.  */
14800
14801 #include "confdefs.h"
14802 #include <sys/types.h>
14803 #include <netinet/in.h>
14804 #include <arpa/nameser.h>
14805 #include <netdb.h>
14806 #include <resolv.h>
14807 int main()
14808 {
14809         res_query (0, 0, 0, 0, 0);
14810         return 0;
14811 }
14812
14813 _ACEOF
14814 if ac_fn_c_try_link "$LINENO"; then :
14815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14816 $as_echo "yes" >&6; }
14817 else
14818   LIBS="$saved_LIBS"
14819                          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14820 $as_echo "no" >&6; }
14821 fi
14822 rm -f core conftest.err conftest.$ac_objext \
14823     conftest$ac_exeext conftest.$ac_ext
14824
14825 fi
14826 rm -f core conftest.err conftest.$ac_objext \
14827     conftest$ac_exeext conftest.$ac_ext
14828                 for ac_func in _getshort _getlong
14829 do :
14830   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14833   cat >>confdefs.h <<_ACEOF
14834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 _ACEOF
14836
14837 fi
14838 done
14839
14840                 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14841                     #include <arpa/nameser.h>
14842 "
14843 if test "x$ac_cv_have_decl__getshort" = xyes; then :
14844   ac_have_decl=1
14845 else
14846   ac_have_decl=0
14847 fi
14848
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_DECL__GETSHORT $ac_have_decl
14851 _ACEOF
14852 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14853                     #include <arpa/nameser.h>
14854 "
14855 if test "x$ac_cv_have_decl__getlong" = xyes; then :
14856   ac_have_decl=1
14857 else
14858   ac_have_decl=0
14859 fi
14860
14861 cat >>confdefs.h <<_ACEOF
14862 #define HAVE_DECL__GETLONG $ac_have_decl
14863 _ACEOF
14864
14865                 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14866 "
14867 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
14868
14869 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14870
14871 fi
14872
14873
14874 fi
14875
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14878 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h.  */
14881
14882 #include <stdio.h>
14883 #if HAVE_SYS_TYPES_H
14884 # include <sys/types.h>
14885 #endif
14886 #include <netinet/in.h>
14887 #include <arpa/nameser.h>
14888 #include <resolv.h>
14889 extern struct __res_state _res;
14890 int main() { return 0; }
14891
14892 _ACEOF
14893 if ac_fn_c_try_link "$LINENO"; then :
14894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14895 $as_echo "yes" >&6; }
14896
14897 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14898
14899
14900 else
14901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14903
14904 fi
14905 rm -f core conftest.err conftest.$ac_objext \
14906     conftest$ac_exeext conftest.$ac_ext
14907
14908 # Check whether user wants SELinux support
14909 SELINUX_MSG="no"
14910 LIBSELINUX=""
14911
14912 # Check whether --with-selinux was given.
14913 if test "${with_selinux+set}" = set; then :
14914   withval=$with_selinux;  if test "x$withval" != "xno" ; then
14915                 save_LIBS="$LIBS"
14916
14917 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14918
14919                 SELINUX_MSG="yes"
14920                 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14921 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
14922
14923 else
14924   as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14925 fi
14926
14927
14928                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14929 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14930 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
14931   $as_echo_n "(cached) " >&6
14932 else
14933   ac_check_lib_save_LIBS=$LIBS
14934 LIBS="-lselinux  $LIBS"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h.  */
14937
14938 /* Override any GCC internal prototype to avoid an error.
14939    Use char because int might match the return type of a GCC
14940    builtin and then its argument prototype would still apply.  */
14941 #ifdef __cplusplus
14942 extern "C"
14943 #endif
14944 char setexeccon ();
14945 int
14946 main ()
14947 {
14948 return setexeccon ();
14949   ;
14950   return 0;
14951 }
14952 _ACEOF
14953 if ac_fn_c_try_link "$LINENO"; then :
14954   ac_cv_lib_selinux_setexeccon=yes
14955 else
14956   ac_cv_lib_selinux_setexeccon=no
14957 fi
14958 rm -f core conftest.err conftest.$ac_objext \
14959     conftest$ac_exeext conftest.$ac_ext
14960 LIBS=$ac_check_lib_save_LIBS
14961 fi
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14963 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14964 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
14965    LIBSELINUX="-lselinux"
14966                           LIBS="$LIBS -lselinux"
14967
14968 else
14969   as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14970 fi
14971
14972                 SSHLIBS="$SSHLIBS $LIBSELINUX"
14973                 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14974                 for ac_func in getseuserbyname get_default_context_with_level
14975 do :
14976   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14979   cat >>confdefs.h <<_ACEOF
14980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14981 _ACEOF
14982
14983 fi
14984 done
14985
14986                 LIBS="$save_LIBS"
14987         fi
14988
14989 fi
14990
14991
14992
14993
14994 # Check whether user wants Kerberos 5 support
14995 KRB5_MSG="no"
14996
14997 # Check whether --with-kerberos5 was given.
14998 if test "${with_kerberos5+set}" = set; then :
14999   withval=$with_kerberos5;  if test "x$withval" != "xno" ; then
15000                 if test "x$withval" = "xyes" ; then
15001                         KRB5ROOT="/usr/local"
15002                 else
15003                         KRB5ROOT=${withval}
15004                 fi
15005
15006
15007 $as_echo "#define KRB5 1" >>confdefs.h
15008
15009                 KRB5_MSG="yes"
15010
15011                 # Extract the first word of "krb5-config", so it can be a program name with args.
15012 set dummy krb5-config; ac_word=$2
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15014 $as_echo_n "checking for $ac_word... " >&6; }
15015 if ${ac_cv_path_KRB5CONF+:} false; then :
15016   $as_echo_n "(cached) " >&6
15017 else
15018   case $KRB5CONF in
15019   [\\/]* | ?:[\\/]*)
15020   ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
15021   ;;
15022   *)
15023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15024 as_dummy="$KRB5ROOT/bin:$PATH"
15025 for as_dir in $as_dummy
15026 do
15027   IFS=$as_save_IFS
15028   test -z "$as_dir" && as_dir=.
15029     for ac_exec_ext in '' $ac_executable_extensions; do
15030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15031     ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
15032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15033     break 2
15034   fi
15035 done
15036   done
15037 IFS=$as_save_IFS
15038
15039   test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
15040   ;;
15041 esac
15042 fi
15043 KRB5CONF=$ac_cv_path_KRB5CONF
15044 if test -n "$KRB5CONF"; then
15045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
15046 $as_echo "$KRB5CONF" >&6; }
15047 else
15048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15049 $as_echo "no" >&6; }
15050 fi
15051
15052
15053                 if test -x $KRB5CONF ; then
15054
15055                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
15056 $as_echo_n "checking for gssapi support... " >&6; }
15057                         if $KRB5CONF | grep gssapi >/dev/null ; then
15058                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15059 $as_echo "yes" >&6; }
15060
15061 $as_echo "#define GSSAPI 1" >>confdefs.h
15062
15063                                 k5confopts=gssapi
15064                         else
15065                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 $as_echo "no" >&6; }
15067                                 k5confopts=""
15068                         fi
15069                         K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
15070                         K5LIBS="`$KRB5CONF --libs $k5confopts`"
15071                         CPPFLAGS="$CPPFLAGS $K5CFLAGS"
15072                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15073 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15074                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h.  */
15076  #include <krb5.h>
15077 int
15078 main ()
15079 {
15080  char *tmp = heimdal_version;
15081   ;
15082   return 0;
15083 }
15084 _ACEOF
15085 if ac_fn_c_try_compile "$LINENO"; then :
15086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15087 $as_echo "yes" >&6; }
15088
15089 $as_echo "#define HEIMDAL 1" >>confdefs.h
15090
15091 else
15092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15093 $as_echo "no" >&6; }
15094
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097                 else
15098                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
15099                         LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
15100                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
15101 $as_echo_n "checking whether we are using Heimdal... " >&6; }
15102                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h.  */
15104  #include <krb5.h>
15105 int
15106 main ()
15107 {
15108  char *tmp = heimdal_version;
15109   ;
15110   return 0;
15111 }
15112 _ACEOF
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15115 $as_echo "yes" >&6; }
15116                                          $as_echo "#define HEIMDAL 1" >>confdefs.h
15117
15118                                          K5LIBS="-lkrb5"
15119                                          K5LIBS="$K5LIBS -lcom_err -lasn1"
15120                                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
15121 $as_echo_n "checking for net_write in -lroken... " >&6; }
15122 if ${ac_cv_lib_roken_net_write+:} false; then :
15123   $as_echo_n "(cached) " >&6
15124 else
15125   ac_check_lib_save_LIBS=$LIBS
15126 LIBS="-lroken  $LIBS"
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h.  */
15129
15130 /* Override any GCC internal prototype to avoid an error.
15131    Use char because int might match the return type of a GCC
15132    builtin and then its argument prototype would still apply.  */
15133 #ifdef __cplusplus
15134 extern "C"
15135 #endif
15136 char net_write ();
15137 int
15138 main ()
15139 {
15140 return net_write ();
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 if ac_fn_c_try_link "$LINENO"; then :
15146   ac_cv_lib_roken_net_write=yes
15147 else
15148   ac_cv_lib_roken_net_write=no
15149 fi
15150 rm -f core conftest.err conftest.$ac_objext \
15151     conftest$ac_exeext conftest.$ac_ext
15152 LIBS=$ac_check_lib_save_LIBS
15153 fi
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
15155 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
15156 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
15157   K5LIBS="$K5LIBS -lroken"
15158 fi
15159
15160                                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15161 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15162 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
15163   $as_echo_n "(cached) " >&6
15164 else
15165   ac_check_lib_save_LIBS=$LIBS
15166 LIBS="-ldes  $LIBS"
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h.  */
15169
15170 /* Override any GCC internal prototype to avoid an error.
15171    Use char because int might match the return type of a GCC
15172    builtin and then its argument prototype would still apply.  */
15173 #ifdef __cplusplus
15174 extern "C"
15175 #endif
15176 char des_cbc_encrypt ();
15177 int
15178 main ()
15179 {
15180 return des_cbc_encrypt ();
15181   ;
15182   return 0;
15183 }
15184 _ACEOF
15185 if ac_fn_c_try_link "$LINENO"; then :
15186   ac_cv_lib_des_des_cbc_encrypt=yes
15187 else
15188   ac_cv_lib_des_des_cbc_encrypt=no
15189 fi
15190 rm -f core conftest.err conftest.$ac_objext \
15191     conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15193 fi
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15195 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15196 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
15197   K5LIBS="$K5LIBS -ldes"
15198 fi
15199
15200
15201 else
15202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15203 $as_echo "no" >&6; }
15204                                          K5LIBS="-lkrb5 -lk5crypto -lcom_err"
15205
15206
15207 fi
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
15210 $as_echo_n "checking for library containing dn_expand... " >&6; }
15211 if ${ac_cv_search_dn_expand+:} false; then :
15212   $as_echo_n "(cached) " >&6
15213 else
15214   ac_func_search_save_LIBS=$LIBS
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h.  */
15217
15218 /* Override any GCC internal prototype to avoid an error.
15219    Use char because int might match the return type of a GCC
15220    builtin and then its argument prototype would still apply.  */
15221 #ifdef __cplusplus
15222 extern "C"
15223 #endif
15224 char dn_expand ();
15225 int
15226 main ()
15227 {
15228 return dn_expand ();
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 for ac_lib in '' resolv; do
15234   if test -z "$ac_lib"; then
15235     ac_res="none required"
15236   else
15237     ac_res=-l$ac_lib
15238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15239   fi
15240   if ac_fn_c_try_link "$LINENO"; then :
15241   ac_cv_search_dn_expand=$ac_res
15242 fi
15243 rm -f core conftest.err conftest.$ac_objext \
15244     conftest$ac_exeext
15245   if ${ac_cv_search_dn_expand+:} false; then :
15246   break
15247 fi
15248 done
15249 if ${ac_cv_search_dn_expand+:} false; then :
15250
15251 else
15252   ac_cv_search_dn_expand=no
15253 fi
15254 rm conftest.$ac_ext
15255 LIBS=$ac_func_search_save_LIBS
15256 fi
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
15258 $as_echo "$ac_cv_search_dn_expand" >&6; }
15259 ac_res=$ac_cv_search_dn_expand
15260 if test "$ac_res" != no; then :
15261   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15262
15263 fi
15264
15265
15266                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
15267 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
15268 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
15269   $as_echo_n "(cached) " >&6
15270 else
15271   ac_check_lib_save_LIBS=$LIBS
15272 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h.  */
15275
15276 /* Override any GCC internal prototype to avoid an error.
15277    Use char because int might match the return type of a GCC
15278    builtin and then its argument prototype would still apply.  */
15279 #ifdef __cplusplus
15280 extern "C"
15281 #endif
15282 char gss_init_sec_context ();
15283 int
15284 main ()
15285 {
15286 return gss_init_sec_context ();
15287   ;
15288   return 0;
15289 }
15290 _ACEOF
15291 if ac_fn_c_try_link "$LINENO"; then :
15292   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
15293 else
15294   ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext \
15297     conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15299 fi
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
15301 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
15302 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
15303    $as_echo "#define GSSAPI 1" >>confdefs.h
15304
15305                                   K5LIBS="-lgssapi_krb5 $K5LIBS"
15306 else
15307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
15308 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
15309 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
15310   $as_echo_n "(cached) " >&6
15311 else
15312   ac_check_lib_save_LIBS=$LIBS
15313 LIBS="-lgssapi $K5LIBS $LIBS"
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h.  */
15316
15317 /* Override any GCC internal prototype to avoid an error.
15318    Use char because int might match the return type of a GCC
15319    builtin and then its argument prototype would still apply.  */
15320 #ifdef __cplusplus
15321 extern "C"
15322 #endif
15323 char gss_init_sec_context ();
15324 int
15325 main ()
15326 {
15327 return gss_init_sec_context ();
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 if ac_fn_c_try_link "$LINENO"; then :
15333   ac_cv_lib_gssapi_gss_init_sec_context=yes
15334 else
15335   ac_cv_lib_gssapi_gss_init_sec_context=no
15336 fi
15337 rm -f core conftest.err conftest.$ac_objext \
15338     conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15340 fi
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
15342 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
15343 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
15344    $as_echo "#define GSSAPI 1" >>confdefs.h
15345
15346                                           K5LIBS="-lgssapi $K5LIBS"
15347 else
15348   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
15349 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
15350 fi
15351
15352
15353 fi
15354
15355
15356                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15357 if test "x$ac_cv_header_gssapi_h" = xyes; then :
15358
15359 else
15360    unset ac_cv_header_gssapi_h
15361                                   CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15362                                   for ac_header in gssapi.h
15363 do :
15364   ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
15365 if test "x$ac_cv_header_gssapi_h" = xyes; then :
15366   cat >>confdefs.h <<_ACEOF
15367 #define HAVE_GSSAPI_H 1
15368 _ACEOF
15369
15370 else
15371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
15372 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
15373
15374 fi
15375
15376 done
15377
15378
15379
15380 fi
15381
15382
15383
15384                         oldCPP="$CPPFLAGS"
15385                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15386                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
15387 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
15388
15389 else
15390    CPPFLAGS="$oldCPP"
15391 fi
15392
15393
15394
15395                 fi
15396                 if test ! -z "$need_dash_r" ; then
15397                         LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15398                 fi
15399                 if test ! -z "$blibpath" ; then
15400                         blibpath="$blibpath:${KRB5ROOT}/lib"
15401                 fi
15402
15403                 for ac_header in gssapi.h gssapi/gssapi.h
15404 do :
15405   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15408   cat >>confdefs.h <<_ACEOF
15409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15410 _ACEOF
15411
15412 fi
15413
15414 done
15415
15416                 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15417 do :
15418   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15419 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15421   cat >>confdefs.h <<_ACEOF
15422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15423 _ACEOF
15424
15425 fi
15426
15427 done
15428
15429                 for ac_header in gssapi_ext.h gssapi/gssapi_ext.h
15430 do :
15431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15434   cat >>confdefs.h <<_ACEOF
15435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15436 _ACEOF
15437
15438 fi
15439
15440 done
15441
15442
15443                 LIBS="$LIBS $K5LIBS"
15444                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15445 $as_echo_n "checking for library containing k_hasafs... " >&6; }
15446 if ${ac_cv_search_k_hasafs+:} false; then :
15447   $as_echo_n "(cached) " >&6
15448 else
15449   ac_func_search_save_LIBS=$LIBS
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h.  */
15452
15453 /* Override any GCC internal prototype to avoid an error.
15454    Use char because int might match the return type of a GCC
15455    builtin and then its argument prototype would still apply.  */
15456 #ifdef __cplusplus
15457 extern "C"
15458 #endif
15459 char k_hasafs ();
15460 int
15461 main ()
15462 {
15463 return k_hasafs ();
15464   ;
15465   return 0;
15466 }
15467 _ACEOF
15468 for ac_lib in '' kafs; do
15469   if test -z "$ac_lib"; then
15470     ac_res="none required"
15471   else
15472     ac_res=-l$ac_lib
15473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15474   fi
15475   if ac_fn_c_try_link "$LINENO"; then :
15476   ac_cv_search_k_hasafs=$ac_res
15477 fi
15478 rm -f core conftest.err conftest.$ac_objext \
15479     conftest$ac_exeext
15480   if ${ac_cv_search_k_hasafs+:} false; then :
15481   break
15482 fi
15483 done
15484 if ${ac_cv_search_k_hasafs+:} false; then :
15485
15486 else
15487   ac_cv_search_k_hasafs=no
15488 fi
15489 rm conftest.$ac_ext
15490 LIBS=$ac_func_search_save_LIBS
15491 fi
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15493 $as_echo "$ac_cv_search_k_hasafs" >&6; }
15494 ac_res=$ac_cv_search_k_hasafs
15495 if test "$ac_res" != no; then :
15496   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15497
15498 $as_echo "#define USE_AFS 1" >>confdefs.h
15499
15500 fi
15501
15502         fi
15503
15504
15505 fi
15506
15507
15508 # Looking for programs, paths and files
15509
15510 PRIVSEP_PATH=/var/empty
15511
15512 # Check whether --with-privsep-path was given.
15513 if test "${with_privsep_path+set}" = set; then :
15514   withval=$with_privsep_path;
15515                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15516                     test "x${withval}" != "xyes"; then
15517                         PRIVSEP_PATH=$withval
15518                 fi
15519
15520
15521 fi
15522
15523
15524
15525
15526 # Check whether --with-xauth was given.
15527 if test "${with_xauth+set}" = set; then :
15528   withval=$with_xauth;
15529                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15530                     test "x${withval}" != "xyes"; then
15531                         xauth_path=$withval
15532                 fi
15533
15534 else
15535
15536                 TestPath="$PATH"
15537                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15538                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15539                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15540                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15541                 # Extract the first word of "xauth", so it can be a program name with args.
15542 set dummy xauth; ac_word=$2
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544 $as_echo_n "checking for $ac_word... " >&6; }
15545 if ${ac_cv_path_xauth_path+:} false; then :
15546   $as_echo_n "(cached) " >&6
15547 else
15548   case $xauth_path in
15549   [\\/]* | ?:[\\/]*)
15550   ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15551   ;;
15552   *)
15553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15554 for as_dir in $TestPath
15555 do
15556   IFS=$as_save_IFS
15557   test -z "$as_dir" && as_dir=.
15558     for ac_exec_ext in '' $ac_executable_extensions; do
15559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15560     ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15562     break 2
15563   fi
15564 done
15565   done
15566 IFS=$as_save_IFS
15567
15568   ;;
15569 esac
15570 fi
15571 xauth_path=$ac_cv_path_xauth_path
15572 if test -n "$xauth_path"; then
15573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15574 $as_echo "$xauth_path" >&6; }
15575 else
15576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15578 fi
15579
15580
15581                 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15582                         xauth_path="/usr/openwin/bin/xauth"
15583                 fi
15584
15585
15586 fi
15587
15588
15589 STRIP_OPT=-s
15590 # Check whether --enable-strip was given.
15591 if test "${enable_strip+set}" = set; then :
15592   enableval=$enable_strip;
15593                 if test "x$enableval" = "xno" ; then
15594                         STRIP_OPT=
15595                 fi
15596
15597
15598 fi
15599
15600
15601
15602 if test -z "$xauth_path" ; then
15603         XAUTH_PATH="undefined"
15604
15605 else
15606
15607 cat >>confdefs.h <<_ACEOF
15608 #define XAUTH_PATH "$xauth_path"
15609 _ACEOF
15610
15611         XAUTH_PATH=$xauth_path
15612
15613 fi
15614
15615 # Check for mail directory (last resort if we cannot get it from headers)
15616 if test ! -z "$MAIL" ; then
15617         maildir=`dirname $MAIL`
15618
15619 cat >>confdefs.h <<_ACEOF
15620 #define MAIL_DIRECTORY "$maildir"
15621 _ACEOF
15622
15623 fi
15624
15625 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15627 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15628         disable_ptmx_check=yes
15629 fi
15630 if test -z "$no_dev_ptmx" ; then
15631         if test "x$disable_ptmx_check" != "xyes" ; then
15632                 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15634 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15635 if eval \${$as_ac_File+:} false; then :
15636   $as_echo_n "(cached) " >&6
15637 else
15638   test "$cross_compiling" = yes &&
15639   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15640 if test -r ""/dev/ptmx""; then
15641   eval "$as_ac_File=yes"
15642 else
15643   eval "$as_ac_File=no"
15644 fi
15645 fi
15646 eval ac_res=\$$as_ac_File
15647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15648 $as_echo "$ac_res" >&6; }
15649 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15650
15651
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_DEV_PTMX 1
15654 _ACEOF
15655
15656                                 have_dev_ptmx=1
15657
15658
15659 fi
15660
15661         fi
15662 fi
15663
15664 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15665         as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15667 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15668 if eval \${$as_ac_File+:} false; then :
15669   $as_echo_n "(cached) " >&6
15670 else
15671   test "$cross_compiling" = yes &&
15672   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15673 if test -r ""/dev/ptc""; then
15674   eval "$as_ac_File=yes"
15675 else
15676   eval "$as_ac_File=no"
15677 fi
15678 fi
15679 eval ac_res=\$$as_ac_File
15680                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15681 $as_echo "$ac_res" >&6; }
15682 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15683
15684
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_DEV_PTS_AND_PTC 1
15687 _ACEOF
15688
15689                         have_dev_ptc=1
15690
15691
15692 fi
15693
15694 else
15695         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15696 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15697 fi
15698
15699 # Options from here on. Some of these are preset by platform above
15700
15701 # Check whether --with-mantype was given.
15702 if test "${with_mantype+set}" = set; then :
15703   withval=$with_mantype;
15704                 case "$withval" in
15705                 man|cat|doc)
15706                         MANTYPE=$withval
15707                         ;;
15708                 *)
15709                         as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15710                         ;;
15711                 esac
15712
15713
15714 fi
15715
15716 if test -z "$MANTYPE"; then
15717         TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15718         for ac_prog in nroff awf
15719 do
15720   # Extract the first word of "$ac_prog", so it can be a program name with args.
15721 set dummy $ac_prog; ac_word=$2
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15723 $as_echo_n "checking for $ac_word... " >&6; }
15724 if ${ac_cv_path_NROFF+:} false; then :
15725   $as_echo_n "(cached) " >&6
15726 else
15727   case $NROFF in
15728   [\\/]* | ?:[\\/]*)
15729   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15730   ;;
15731   *)
15732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15733 for as_dir in $TestPath
15734 do
15735   IFS=$as_save_IFS
15736   test -z "$as_dir" && as_dir=.
15737     for ac_exec_ext in '' $ac_executable_extensions; do
15738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15739     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15741     break 2
15742   fi
15743 done
15744   done
15745 IFS=$as_save_IFS
15746
15747   ;;
15748 esac
15749 fi
15750 NROFF=$ac_cv_path_NROFF
15751 if test -n "$NROFF"; then
15752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15753 $as_echo "$NROFF" >&6; }
15754 else
15755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15756 $as_echo "no" >&6; }
15757 fi
15758
15759
15760   test -n "$NROFF" && break
15761 done
15762 test -n "$NROFF" || NROFF="/bin/false"
15763
15764         if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15765                 MANTYPE=doc
15766         elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15767                 MANTYPE=man
15768         else
15769                 MANTYPE=cat
15770         fi
15771 fi
15772
15773 if test "$MANTYPE" = "doc"; then
15774         mansubdir=man;
15775 else
15776         mansubdir=$MANTYPE;
15777 fi
15778
15779
15780 # Check whether to enable MD5 passwords
15781 MD5_MSG="no"
15782
15783 # Check whether --with-md5-passwords was given.
15784 if test "${with_md5_passwords+set}" = set; then :
15785   withval=$with_md5_passwords;
15786                 if test "x$withval" != "xno" ; then
15787
15788 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15789
15790                         MD5_MSG="yes"
15791                 fi
15792
15793
15794 fi
15795
15796
15797 # Whether to disable shadow password support
15798
15799 # Check whether --with-shadow was given.
15800 if test "${with_shadow+set}" = set; then :
15801   withval=$with_shadow;
15802                 if test "x$withval" = "xno" ; then
15803                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15804
15805                         disable_shadow=yes
15806                 fi
15807
15808
15809 fi
15810
15811
15812 if test -z "$disable_shadow" ; then
15813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15814 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15815         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h.  */
15817
15818 #include <sys/types.h>
15819 #include <shadow.h>
15820         struct spwd sp;
15821
15822 int
15823 main ()
15824 {
15825  sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15826   ;
15827   return 0;
15828 }
15829 _ACEOF
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831    sp_expire_available=yes
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834
15835         if test "x$sp_expire_available" = "xyes" ; then
15836                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15837 $as_echo "yes" >&6; }
15838
15839 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15840
15841         else
15842                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15843 $as_echo "no" >&6; }
15844         fi
15845 fi
15846
15847 # Use ip address instead of hostname in $DISPLAY
15848 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15849         DISPLAY_HACK_MSG="yes"
15850
15851 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15852
15853 else
15854         DISPLAY_HACK_MSG="no"
15855
15856 # Check whether --with-ipaddr-display was given.
15857 if test "${with_ipaddr_display+set}" = set; then :
15858   withval=$with_ipaddr_display;
15859                         if test "x$withval" != "xno" ; then
15860                                 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15861
15862                                 DISPLAY_HACK_MSG="yes"
15863                         fi
15864
15865
15866 fi
15867
15868 fi
15869
15870 # check for /etc/default/login and use it if present.
15871 # Check whether --enable-etc-default-login was given.
15872 if test "${enable_etc_default_login+set}" = set; then :
15873   enableval=$enable_etc_default_login;  if test "x$enableval" = "xno"; then
15874                 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15875 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15876                 etc_default_login=no
15877           else
15878                 etc_default_login=yes
15879           fi
15880 else
15881    if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15882           then
15883                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15884 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15885                 etc_default_login=no
15886           else
15887                 etc_default_login=yes
15888           fi
15889
15890 fi
15891
15892
15893 if test "x$etc_default_login" != "xno"; then
15894         as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15896 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15897 if eval \${$as_ac_File+:} false; then :
15898   $as_echo_n "(cached) " >&6
15899 else
15900   test "$cross_compiling" = yes &&
15901   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15902 if test -r ""/etc/default/login""; then
15903   eval "$as_ac_File=yes"
15904 else
15905   eval "$as_ac_File=no"
15906 fi
15907 fi
15908 eval ac_res=\$$as_ac_File
15909                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15910 $as_echo "$ac_res" >&6; }
15911 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15912    external_path_file=/etc/default/login
15913 fi
15914
15915         if test "x$external_path_file" = "x/etc/default/login"; then
15916
15917 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15918
15919         fi
15920 fi
15921
15922 if test $ac_cv_func_login_getcapbool = "yes" && \
15923         test $ac_cv_header_login_cap_h = "yes" ; then
15924         external_path_file=/etc/login.conf
15925 fi
15926
15927 # Whether to mess with the default path
15928 SERVER_PATH_MSG="(default)"
15929
15930 # Check whether --with-default-path was given.
15931 if test "${with_default_path+set}" = set; then :
15932   withval=$with_default_path;
15933                 if test "x$external_path_file" = "x/etc/login.conf" ; then
15934                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15935 --with-default-path=PATH has no effect on this system.
15936 Edit /etc/login.conf instead." >&5
15937 $as_echo "$as_me: WARNING:
15938 --with-default-path=PATH has no effect on this system.
15939 Edit /etc/login.conf instead." >&2;}
15940                 elif test "x$withval" != "xno" ; then
15941                         if test ! -z "$external_path_file" ; then
15942                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15943 --with-default-path=PATH will only be used if PATH is not defined in
15944 $external_path_file ." >&5
15945 $as_echo "$as_me: WARNING:
15946 --with-default-path=PATH will only be used if PATH is not defined in
15947 $external_path_file ." >&2;}
15948                         fi
15949                         user_path="$withval"
15950                         SERVER_PATH_MSG="$withval"
15951                 fi
15952
15953 else
15954    if test "x$external_path_file" = "x/etc/login.conf" ; then
15955                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15956 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15957         else
15958                 if test ! -z "$external_path_file" ; then
15959                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15960 If PATH is defined in $external_path_file, ensure the path to scp is included,
15961 otherwise scp will not work." >&5
15962 $as_echo "$as_me: WARNING:
15963 If PATH is defined in $external_path_file, ensure the path to scp is included,
15964 otherwise scp will not work." >&2;}
15965                 fi
15966                 if test "$cross_compiling" = yes; then :
15967    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15968
15969 else
15970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h.  */
15972
15973 /* find out what STDPATH is */
15974 #include <stdio.h>
15975 #ifdef HAVE_PATHS_H
15976 # include <paths.h>
15977 #endif
15978 #ifndef _PATH_STDPATH
15979 # ifdef _PATH_USERPATH  /* Irix */
15980 #  define _PATH_STDPATH _PATH_USERPATH
15981 # else
15982 #  define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15983 # endif
15984 #endif
15985 #include <sys/types.h>
15986 #include <sys/stat.h>
15987 #include <fcntl.h>
15988 #define DATA "conftest.stdpath"
15989
15990 main()
15991 {
15992         FILE *fd;
15993         int rc;
15994
15995         fd = fopen(DATA,"w");
15996         if(fd == NULL)
15997                 exit(1);
15998
15999         if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
16000                 exit(1);
16001
16002         exit(0);
16003 }
16004
16005 _ACEOF
16006 if ac_fn_c_try_run "$LINENO"; then :
16007    user_path=`cat conftest.stdpath`
16008 else
16009    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
16010 fi
16011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16012   conftest.$ac_objext conftest.beam conftest.$ac_ext
16013 fi
16014
16015 # make sure $bindir is in USER_PATH so scp will work
16016                 t_bindir=`eval echo ${bindir}`
16017                 case $t_bindir in
16018                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
16019                 esac
16020                 case $t_bindir in
16021                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
16022                 esac
16023                 echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
16024                 if test $? -ne 0  ; then
16025                         echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
16026                         if test $? -ne 0  ; then
16027                                 user_path=$user_path:$t_bindir
16028                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
16029 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
16030                         fi
16031                 fi
16032         fi
16033
16034 fi
16035
16036 if test "x$external_path_file" != "x/etc/login.conf" ; then
16037
16038 cat >>confdefs.h <<_ACEOF
16039 #define USER_PATH "$user_path"
16040 _ACEOF
16041
16042
16043 fi
16044
16045 # Set superuser path separately to user path
16046
16047 # Check whether --with-superuser-path was given.
16048 if test "${with_superuser_path+set}" = set; then :
16049   withval=$with_superuser_path;
16050                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
16051                     test "x${withval}" != "xyes"; then
16052
16053 cat >>confdefs.h <<_ACEOF
16054 #define SUPERUSER_PATH "$withval"
16055 _ACEOF
16056
16057                         superuser_path=$withval
16058                 fi
16059
16060
16061 fi
16062
16063
16064
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
16066 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
16067 IPV4_IN6_HACK_MSG="no"
16068
16069 # Check whether --with-4in6 was given.
16070 if test "${with_4in6+set}" = set; then :
16071   withval=$with_4in6;
16072                 if test "x$withval" != "xno" ; then
16073                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16074 $as_echo "yes" >&6; }
16075
16076 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16077
16078                         IPV4_IN6_HACK_MSG="yes"
16079                 else
16080                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16082                 fi
16083
16084 else
16085
16086                 if test "x$inet6_default_4in6" = "xyes"; then
16087                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
16088 $as_echo "yes (default)" >&6; }
16089                         $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
16090
16091                         IPV4_IN6_HACK_MSG="yes"
16092                 else
16093                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
16094 $as_echo "no (default)" >&6; }
16095                 fi
16096
16097
16098 fi
16099
16100
16101 # Whether to enable BSD auth support
16102 BSD_AUTH_MSG=no
16103
16104 # Check whether --with-bsd-auth was given.
16105 if test "${with_bsd_auth+set}" = set; then :
16106   withval=$with_bsd_auth;
16107                 if test "x$withval" != "xno" ; then
16108
16109 $as_echo "#define BSD_AUTH 1" >>confdefs.h
16110
16111                         BSD_AUTH_MSG=yes
16112                 fi
16113
16114
16115 fi
16116
16117
16118 # Where to place sshd.pid
16119 piddir=/var/run
16120 # make sure the directory exists
16121 if test ! -d $piddir ; then
16122         piddir=`eval echo ${sysconfdir}`
16123         case $piddir in
16124                 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
16125         esac
16126 fi
16127
16128
16129 # Check whether --with-pid-dir was given.
16130 if test "${with_pid_dir+set}" = set; then :
16131   withval=$with_pid_dir;
16132                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
16133                     test "x${withval}" != "xyes"; then
16134                         piddir=$withval
16135                         if test ! -d $piddir ; then
16136                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
16137 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
16138                         fi
16139                 fi
16140
16141
16142 fi
16143
16144
16145
16146 cat >>confdefs.h <<_ACEOF
16147 #define _PATH_SSH_PIDDIR "$piddir"
16148 _ACEOF
16149
16150
16151
16152 # Check whether --enable-lastlog was given.
16153 if test "${enable_lastlog+set}" = set; then :
16154   enableval=$enable_lastlog;
16155                 if test "x$enableval" = "xno" ; then
16156                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16157
16158                 fi
16159
16160
16161 fi
16162
16163 # Check whether --enable-utmp was given.
16164 if test "${enable_utmp+set}" = set; then :
16165   enableval=$enable_utmp;
16166                 if test "x$enableval" = "xno" ; then
16167                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16168
16169                 fi
16170
16171
16172 fi
16173
16174 # Check whether --enable-utmpx was given.
16175 if test "${enable_utmpx+set}" = set; then :
16176   enableval=$enable_utmpx;
16177                 if test "x$enableval" = "xno" ; then
16178
16179 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
16180
16181                 fi
16182
16183
16184 fi
16185
16186 # Check whether --enable-wtmp was given.
16187 if test "${enable_wtmp+set}" = set; then :
16188   enableval=$enable_wtmp;
16189                 if test "x$enableval" = "xno" ; then
16190                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16191
16192                 fi
16193
16194
16195 fi
16196
16197 # Check whether --enable-wtmpx was given.
16198 if test "${enable_wtmpx+set}" = set; then :
16199   enableval=$enable_wtmpx;
16200                 if test "x$enableval" = "xno" ; then
16201
16202 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16203
16204                 fi
16205
16206
16207 fi
16208
16209 # Check whether --enable-libutil was given.
16210 if test "${enable_libutil+set}" = set; then :
16211   enableval=$enable_libutil;
16212                 if test "x$enableval" = "xno" ; then
16213                         $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
16214
16215                 fi
16216
16217
16218 fi
16219
16220 # Check whether --enable-pututline was given.
16221 if test "${enable_pututline+set}" = set; then :
16222   enableval=$enable_pututline;
16223                 if test "x$enableval" = "xno" ; then
16224
16225 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
16226
16227                 fi
16228
16229
16230 fi
16231
16232 # Check whether --enable-pututxline was given.
16233 if test "${enable_pututxline+set}" = set; then :
16234   enableval=$enable_pututxline;
16235                 if test "x$enableval" = "xno" ; then
16236
16237 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
16238
16239                 fi
16240
16241
16242 fi
16243
16244
16245 # Check whether --with-lastlog was given.
16246 if test "${with_lastlog+set}" = set; then :
16247   withval=$with_lastlog;
16248                 if test "x$withval" = "xno" ; then
16249                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
16250
16251                 elif test -n "$withval"  &&  test "x${withval}" != "xyes"; then
16252                         conf_lastlog_location=$withval
16253                 fi
16254
16255
16256 fi
16257
16258
16259
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
16261 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h.  */
16264
16265 #include <sys/types.h>
16266 #include <utmp.h>
16267 #ifdef HAVE_LASTLOG_H
16268 #  include <lastlog.h>
16269 #endif
16270 #ifdef HAVE_PATHS_H
16271 #  include <paths.h>
16272 #endif
16273 #ifdef HAVE_LOGIN_H
16274 # include <login.h>
16275 #endif
16276
16277 int
16278 main ()
16279 {
16280  char *lastlog = LASTLOG_FILE;
16281   ;
16282   return 0;
16283 }
16284 _ACEOF
16285 if ac_fn_c_try_compile "$LINENO"; then :
16286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16287 $as_echo "yes" >&6; }
16288 else
16289
16290                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 $as_echo "no" >&6; }
16292                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
16293 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
16294                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h.  */
16296
16297 #include <sys/types.h>
16298 #include <utmp.h>
16299 #ifdef HAVE_LASTLOG_H
16300 #  include <lastlog.h>
16301 #endif
16302 #ifdef HAVE_PATHS_H
16303 #  include <paths.h>
16304 #endif
16305
16306 int
16307 main ()
16308 {
16309  char *lastlog = _PATH_LASTLOG;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 if ac_fn_c_try_compile "$LINENO"; then :
16315    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16316 $as_echo "yes" >&6; }
16317 else
16318
16319                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16321                         system_lastlog_path=no
16322
16323 fi
16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16325
16326
16327 fi
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329
16330 if test -z "$conf_lastlog_location"; then
16331         if test x"$system_lastlog_path" = x"no" ; then
16332                 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16333                                 if (test -d "$f" || test -f "$f") ; then
16334                                         conf_lastlog_location=$f
16335                                 fi
16336                 done
16337                 if test -z "$conf_lastlog_location"; then
16338                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16339 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16340                                         fi
16341         fi
16342 fi
16343
16344 if test -n "$conf_lastlog_location"; then
16345
16346 cat >>confdefs.h <<_ACEOF
16347 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
16348 _ACEOF
16349
16350 fi
16351
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16353 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h.  */
16356
16357 #include <sys/types.h>
16358 #include <utmp.h>
16359 #ifdef HAVE_PATHS_H
16360 #  include <paths.h>
16361 #endif
16362
16363 int
16364 main ()
16365 {
16366  char *utmp = UTMP_FILE;
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 if ac_fn_c_try_compile "$LINENO"; then :
16372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16373 $as_echo "yes" >&6; }
16374 else
16375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16376 $as_echo "no" >&6; }
16377           system_utmp_path=no
16378
16379 fi
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 if test -z "$conf_utmp_location"; then
16382         if test x"$system_utmp_path" = x"no" ; then
16383                 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16384                         if test -f $f ; then
16385                                 conf_utmp_location=$f
16386                         fi
16387                 done
16388                 if test -z "$conf_utmp_location"; then
16389                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16390
16391                 fi
16392         fi
16393 fi
16394 if test -n "$conf_utmp_location"; then
16395
16396 cat >>confdefs.h <<_ACEOF
16397 #define CONF_UTMP_FILE "$conf_utmp_location"
16398 _ACEOF
16399
16400 fi
16401
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16403 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h.  */
16406
16407 #include <sys/types.h>
16408 #include <utmp.h>
16409 #ifdef HAVE_PATHS_H
16410 #  include <paths.h>
16411 #endif
16412
16413 int
16414 main ()
16415 {
16416  char *wtmp = WTMP_FILE;
16417   ;
16418   return 0;
16419 }
16420 _ACEOF
16421 if ac_fn_c_try_compile "$LINENO"; then :
16422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16423 $as_echo "yes" >&6; }
16424 else
16425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16427           system_wtmp_path=no
16428
16429 fi
16430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431 if test -z "$conf_wtmp_location"; then
16432         if test x"$system_wtmp_path" = x"no" ; then
16433                 for f in /usr/adm/wtmp /var/log/wtmp; do
16434                         if test -f $f ; then
16435                                 conf_wtmp_location=$f
16436                         fi
16437                 done
16438                 if test -z "$conf_wtmp_location"; then
16439                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16440
16441                 fi
16442         fi
16443 fi
16444 if test -n "$conf_wtmp_location"; then
16445
16446 cat >>confdefs.h <<_ACEOF
16447 #define CONF_WTMP_FILE "$conf_wtmp_location"
16448 _ACEOF
16449
16450 fi
16451
16452
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16454 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h.  */
16457
16458 #include <sys/types.h>
16459 #include <utmp.h>
16460 #ifdef HAVE_UTMPX_H
16461 #include <utmpx.h>
16462 #endif
16463 #ifdef HAVE_PATHS_H
16464 #  include <paths.h>
16465 #endif
16466
16467 int
16468 main ()
16469 {
16470  char *wtmpx = WTMPX_FILE;
16471   ;
16472   return 0;
16473 }
16474 _ACEOF
16475 if ac_fn_c_try_compile "$LINENO"; then :
16476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16477 $as_echo "yes" >&6; }
16478 else
16479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16480 $as_echo "no" >&6; }
16481           system_wtmpx_path=no
16482
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485 if test -z "$conf_wtmpx_location"; then
16486         if test x"$system_wtmpx_path" = x"no" ; then
16487                 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16488
16489         fi
16490 else
16491
16492 cat >>confdefs.h <<_ACEOF
16493 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16494 _ACEOF
16495
16496 fi
16497
16498
16499 if test ! -z "$blibpath" ; then
16500         LDFLAGS="$LDFLAGS $blibflags$blibpath"
16501         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16502 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16503 fi
16504
16505 CFLAGS="$CFLAGS $werror_flags"
16506
16507 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16508         TEST_SSH_IPV6=no
16509 else
16510         TEST_SSH_IPV6=yes
16511 fi
16512 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16513 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
16514   TEST_SSH_IPV6=no
16515 fi
16516
16517 TEST_SSH_IPV6=$TEST_SSH_IPV6
16518
16519
16520
16521 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile ssh_prng_cmds survey.sh"
16522
16523 cat >confcache <<\_ACEOF
16524 # This file is a shell script that caches the results of configure
16525 # tests run on this system so they can be shared between configure
16526 # scripts and configure runs, see configure's option --config-cache.
16527 # It is not useful on other systems.  If it contains results you don't
16528 # want to keep, you may remove or edit it.
16529 #
16530 # config.status only pays attention to the cache file if you give it
16531 # the --recheck option to rerun configure.
16532 #
16533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16535 # following values.
16536
16537 _ACEOF
16538
16539 # The following way of writing the cache mishandles newlines in values,
16540 # but we know of no workaround that is simple, portable, and efficient.
16541 # So, we kill variables containing newlines.
16542 # Ultrix sh set writes to stderr and can't be redirected directly,
16543 # and sets the high bit in the cache file unless we assign to the vars.
16544 (
16545   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16546     eval ac_val=\$$ac_var
16547     case $ac_val in #(
16548     *${as_nl}*)
16549       case $ac_var in #(
16550       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16551 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16552       esac
16553       case $ac_var in #(
16554       _ | IFS | as_nl) ;; #(
16555       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16556       *) { eval $ac_var=; unset $ac_var;} ;;
16557       esac ;;
16558     esac
16559   done
16560
16561   (set) 2>&1 |
16562     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16563     *${as_nl}ac_space=\ *)
16564       # `set' does not quote correctly, so add quotes: double-quote
16565       # substitution turns \\\\ into \\, and sed turns \\ into \.
16566       sed -n \
16567         "s/'/'\\\\''/g;
16568           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16569       ;; #(
16570     *)
16571       # `set' quotes correctly as required by POSIX, so do not add quotes.
16572       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16573       ;;
16574     esac |
16575     sort
16576 ) |
16577   sed '
16578      /^ac_cv_env_/b end
16579      t clear
16580      :clear
16581      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16582      t end
16583      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16584      :end' >>confcache
16585 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16586   if test -w "$cache_file"; then
16587     if test "x$cache_file" != "x/dev/null"; then
16588       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16589 $as_echo "$as_me: updating cache $cache_file" >&6;}
16590       if test ! -f "$cache_file" || test -h "$cache_file"; then
16591         cat confcache >"$cache_file"
16592       else
16593         case $cache_file in #(
16594         */* | ?:*)
16595           mv -f confcache "$cache_file"$$ &&
16596           mv -f "$cache_file"$$ "$cache_file" ;; #(
16597         *)
16598           mv -f confcache "$cache_file" ;;
16599         esac
16600       fi
16601     fi
16602   else
16603     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16604 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16605   fi
16606 fi
16607 rm -f confcache
16608
16609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16610 # Let make expand exec_prefix.
16611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16612
16613 DEFS=-DHAVE_CONFIG_H
16614
16615 ac_libobjs=
16616 ac_ltlibobjs=
16617 U=
16618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16619   # 1. Remove the extension, and $U if already installed.
16620   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16621   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16622   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16623   #    will be set to the directory where LIBOBJS objects are built.
16624   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16625   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16626 done
16627 LIBOBJS=$ac_libobjs
16628
16629 LTLIBOBJS=$ac_ltlibobjs
16630
16631
16632
16633
16634 : "${CONFIG_STATUS=./config.status}"
16635 ac_write_fail=0
16636 ac_clean_files_save=$ac_clean_files
16637 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16639 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16640 as_write_fail=0
16641 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16642 #! $SHELL
16643 # Generated by $as_me.
16644 # Run this file to recreate the current configuration.
16645 # Compiler output produced by configure, useful for debugging
16646 # configure, is in config.log if it exists.
16647
16648 debug=false
16649 ac_cs_recheck=false
16650 ac_cs_silent=false
16651
16652 SHELL=\${CONFIG_SHELL-$SHELL}
16653 export SHELL
16654 _ASEOF
16655 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16656 ## -------------------- ##
16657 ## M4sh Initialization. ##
16658 ## -------------------- ##
16659
16660 # Be more Bourne compatible
16661 DUALCASE=1; export DUALCASE # for MKS sh
16662 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16663   emulate sh
16664   NULLCMD=:
16665   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16666   # is contrary to our usage.  Disable this feature.
16667   alias -g '${1+"$@"}'='"$@"'
16668   setopt NO_GLOB_SUBST
16669 else
16670   case `(set -o) 2>/dev/null` in #(
16671   *posix*) :
16672     set -o posix ;; #(
16673   *) :
16674      ;;
16675 esac
16676 fi
16677
16678
16679 as_nl='
16680 '
16681 export as_nl
16682 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16683 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16686 # Prefer a ksh shell builtin over an external printf program on Solaris,
16687 # but without wasting forks for bash or zsh.
16688 if test -z "$BASH_VERSION$ZSH_VERSION" \
16689     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16690   as_echo='print -r --'
16691   as_echo_n='print -rn --'
16692 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16693   as_echo='printf %s\n'
16694   as_echo_n='printf %s'
16695 else
16696   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16697     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16698     as_echo_n='/usr/ucb/echo -n'
16699   else
16700     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16701     as_echo_n_body='eval
16702       arg=$1;
16703       case $arg in #(
16704       *"$as_nl"*)
16705         expr "X$arg" : "X\\(.*\\)$as_nl";
16706         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16707       esac;
16708       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16709     '
16710     export as_echo_n_body
16711     as_echo_n='sh -c $as_echo_n_body as_echo'
16712   fi
16713   export as_echo_body
16714   as_echo='sh -c $as_echo_body as_echo'
16715 fi
16716
16717 # The user is always right.
16718 if test "${PATH_SEPARATOR+set}" != set; then
16719   PATH_SEPARATOR=:
16720   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16721     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16722       PATH_SEPARATOR=';'
16723   }
16724 fi
16725
16726
16727 # IFS
16728 # We need space, tab and new line, in precisely that order.  Quoting is
16729 # there to prevent editors from complaining about space-tab.
16730 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16731 # splitting by setting IFS to empty value.)
16732 IFS=" ""        $as_nl"
16733
16734 # Find who we are.  Look in the path if we contain no directory separator.
16735 as_myself=
16736 case $0 in #((
16737   *[\\/]* ) as_myself=$0 ;;
16738   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16739 for as_dir in $PATH
16740 do
16741   IFS=$as_save_IFS
16742   test -z "$as_dir" && as_dir=.
16743     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16744   done
16745 IFS=$as_save_IFS
16746
16747      ;;
16748 esac
16749 # We did not find ourselves, most probably we were run as `sh COMMAND'
16750 # in which case we are not to be found in the path.
16751 if test "x$as_myself" = x; then
16752   as_myself=$0
16753 fi
16754 if test ! -f "$as_myself"; then
16755   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16756   exit 1
16757 fi
16758
16759 # Unset variables that we do not need and which cause bugs (e.g. in
16760 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16761 # suppresses any "Segmentation fault" message there.  '((' could
16762 # trigger a bug in pdksh 5.2.14.
16763 for as_var in BASH_ENV ENV MAIL MAILPATH
16764 do eval test x\${$as_var+set} = xset \
16765   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16766 done
16767 PS1='$ '
16768 PS2='> '
16769 PS4='+ '
16770
16771 # NLS nuisances.
16772 LC_ALL=C
16773 export LC_ALL
16774 LANGUAGE=C
16775 export LANGUAGE
16776
16777 # CDPATH.
16778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16779
16780
16781 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16782 # ----------------------------------------
16783 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16784 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16785 # script with STATUS, using 1 if that was 0.
16786 as_fn_error ()
16787 {
16788   as_status=$1; test $as_status -eq 0 && as_status=1
16789   if test "$4"; then
16790     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16791     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16792   fi
16793   $as_echo "$as_me: error: $2" >&2
16794   as_fn_exit $as_status
16795 } # as_fn_error
16796
16797
16798 # as_fn_set_status STATUS
16799 # -----------------------
16800 # Set $? to STATUS, without forking.
16801 as_fn_set_status ()
16802 {
16803   return $1
16804 } # as_fn_set_status
16805
16806 # as_fn_exit STATUS
16807 # -----------------
16808 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16809 as_fn_exit ()
16810 {
16811   set +e
16812   as_fn_set_status $1
16813   exit $1
16814 } # as_fn_exit
16815
16816 # as_fn_unset VAR
16817 # ---------------
16818 # Portably unset VAR.
16819 as_fn_unset ()
16820 {
16821   { eval $1=; unset $1;}
16822 }
16823 as_unset=as_fn_unset
16824 # as_fn_append VAR VALUE
16825 # ----------------------
16826 # Append the text in VALUE to the end of the definition contained in VAR. Take
16827 # advantage of any shell optimizations that allow amortized linear growth over
16828 # repeated appends, instead of the typical quadratic growth present in naive
16829 # implementations.
16830 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16831   eval 'as_fn_append ()
16832   {
16833     eval $1+=\$2
16834   }'
16835 else
16836   as_fn_append ()
16837   {
16838     eval $1=\$$1\$2
16839   }
16840 fi # as_fn_append
16841
16842 # as_fn_arith ARG...
16843 # ------------------
16844 # Perform arithmetic evaluation on the ARGs, and store the result in the
16845 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16846 # must be portable across $(()) and expr.
16847 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16848   eval 'as_fn_arith ()
16849   {
16850     as_val=$(( $* ))
16851   }'
16852 else
16853   as_fn_arith ()
16854   {
16855     as_val=`expr "$@" || test $? -eq 1`
16856   }
16857 fi # as_fn_arith
16858
16859
16860 if expr a : '\(a\)' >/dev/null 2>&1 &&
16861    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16862   as_expr=expr
16863 else
16864   as_expr=false
16865 fi
16866
16867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16868   as_basename=basename
16869 else
16870   as_basename=false
16871 fi
16872
16873 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16874   as_dirname=dirname
16875 else
16876   as_dirname=false
16877 fi
16878
16879 as_me=`$as_basename -- "$0" ||
16880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16881          X"$0" : 'X\(//\)$' \| \
16882          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16883 $as_echo X/"$0" |
16884     sed '/^.*\/\([^/][^/]*\)\/*$/{
16885             s//\1/
16886             q
16887           }
16888           /^X\/\(\/\/\)$/{
16889             s//\1/
16890             q
16891           }
16892           /^X\/\(\/\).*/{
16893             s//\1/
16894             q
16895           }
16896           s/.*/./; q'`
16897
16898 # Avoid depending upon Character Ranges.
16899 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16900 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16901 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16902 as_cr_digits='0123456789'
16903 as_cr_alnum=$as_cr_Letters$as_cr_digits
16904
16905 ECHO_C= ECHO_N= ECHO_T=
16906 case `echo -n x` in #(((((
16907 -n*)
16908   case `echo 'xy\c'` in
16909   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16910   xy)  ECHO_C='\c';;
16911   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16912        ECHO_T=' ';;
16913   esac;;
16914 *)
16915   ECHO_N='-n';;
16916 esac
16917
16918 rm -f conf$$ conf$$.exe conf$$.file
16919 if test -d conf$$.dir; then
16920   rm -f conf$$.dir/conf$$.file
16921 else
16922   rm -f conf$$.dir
16923   mkdir conf$$.dir 2>/dev/null
16924 fi
16925 if (echo >conf$$.file) 2>/dev/null; then
16926   if ln -s conf$$.file conf$$ 2>/dev/null; then
16927     as_ln_s='ln -s'
16928     # ... but there are two gotchas:
16929     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16930     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16931     # In both cases, we have to default to `cp -p'.
16932     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16933       as_ln_s='cp -p'
16934   elif ln conf$$.file conf$$ 2>/dev/null; then
16935     as_ln_s=ln
16936   else
16937     as_ln_s='cp -p'
16938   fi
16939 else
16940   as_ln_s='cp -p'
16941 fi
16942 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16943 rmdir conf$$.dir 2>/dev/null
16944
16945
16946 # as_fn_mkdir_p
16947 # -------------
16948 # Create "$as_dir" as a directory, including parents if necessary.
16949 as_fn_mkdir_p ()
16950 {
16951
16952   case $as_dir in #(
16953   -*) as_dir=./$as_dir;;
16954   esac
16955   test -d "$as_dir" || eval $as_mkdir_p || {
16956     as_dirs=
16957     while :; do
16958       case $as_dir in #(
16959       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16960       *) as_qdir=$as_dir;;
16961       esac
16962       as_dirs="'$as_qdir' $as_dirs"
16963       as_dir=`$as_dirname -- "$as_dir" ||
16964 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16965          X"$as_dir" : 'X\(//\)[^/]' \| \
16966          X"$as_dir" : 'X\(//\)$' \| \
16967          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16968 $as_echo X"$as_dir" |
16969     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16970             s//\1/
16971             q
16972           }
16973           /^X\(\/\/\)[^/].*/{
16974             s//\1/
16975             q
16976           }
16977           /^X\(\/\/\)$/{
16978             s//\1/
16979             q
16980           }
16981           /^X\(\/\).*/{
16982             s//\1/
16983             q
16984           }
16985           s/.*/./; q'`
16986       test -d "$as_dir" && break
16987     done
16988     test -z "$as_dirs" || eval "mkdir $as_dirs"
16989   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16990
16991
16992 } # as_fn_mkdir_p
16993 if mkdir -p . 2>/dev/null; then
16994   as_mkdir_p='mkdir -p "$as_dir"'
16995 else
16996   test -d ./-p && rmdir ./-p
16997   as_mkdir_p=false
16998 fi
16999
17000 if test -x / >/dev/null 2>&1; then
17001   as_test_x='test -x'
17002 else
17003   if ls -dL / >/dev/null 2>&1; then
17004     as_ls_L_option=L
17005   else
17006     as_ls_L_option=
17007   fi
17008   as_test_x='
17009     eval sh -c '\''
17010       if test -d "$1"; then
17011         test -d "$1/.";
17012       else
17013         case $1 in #(
17014         -*)set "./$1";;
17015         esac;
17016         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17017         ???[sx]*):;;*)false;;esac;fi
17018     '\'' sh
17019   '
17020 fi
17021 as_executable_p=$as_test_x
17022
17023 # Sed expression to map a string onto a valid CPP name.
17024 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17025
17026 # Sed expression to map a string onto a valid variable name.
17027 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17028
17029
17030 exec 6>&1
17031 ## ----------------------------------- ##
17032 ## Main body of $CONFIG_STATUS script. ##
17033 ## ----------------------------------- ##
17034 _ASEOF
17035 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17036
17037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17038 # Save the log message, to keep $0 and so on meaningful, and to
17039 # report actual input values of CONFIG_FILES etc. instead of their
17040 # values after options handling.
17041 ac_log="
17042 This file was extended by OpenSSH $as_me Portable, which was
17043 generated by GNU Autoconf 2.68.  Invocation command line was
17044
17045   CONFIG_FILES    = $CONFIG_FILES
17046   CONFIG_HEADERS  = $CONFIG_HEADERS
17047   CONFIG_LINKS    = $CONFIG_LINKS
17048   CONFIG_COMMANDS = $CONFIG_COMMANDS
17049   $ $0 $@
17050
17051 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17052 "
17053
17054 _ACEOF
17055
17056 case $ac_config_files in *"
17057 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17058 esac
17059
17060 case $ac_config_headers in *"
17061 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17062 esac
17063
17064
17065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17066 # Files that config.status was made for.
17067 config_files="$ac_config_files"
17068 config_headers="$ac_config_headers"
17069
17070 _ACEOF
17071
17072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17073 ac_cs_usage="\
17074 \`$as_me' instantiates files and other configuration actions
17075 from templates according to the current configuration.  Unless the files
17076 and actions are specified as TAGs, all are instantiated by default.
17077
17078 Usage: $0 [OPTION]... [TAG]...
17079
17080   -h, --help       print this help, then exit
17081   -V, --version    print version number and configuration settings, then exit
17082       --config     print configuration, then exit
17083   -q, --quiet, --silent
17084                    do not print progress messages
17085   -d, --debug      don't remove temporary files
17086       --recheck    update $as_me by reconfiguring in the same conditions
17087       --file=FILE[:TEMPLATE]
17088                    instantiate the configuration file FILE
17089       --header=FILE[:TEMPLATE]
17090                    instantiate the configuration header FILE
17091
17092 Configuration files:
17093 $config_files
17094
17095 Configuration headers:
17096 $config_headers
17097
17098 Report bugs to <openssh-unix-dev@mindrot.org>."
17099
17100 _ACEOF
17101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17102 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17103 ac_cs_version="\\
17104 OpenSSH config.status Portable
17105 configured by $0, generated by GNU Autoconf 2.68,
17106   with options \\"\$ac_cs_config\\"
17107
17108 Copyright (C) 2010 Free Software Foundation, Inc.
17109 This config.status script is free software; the Free Software Foundation
17110 gives unlimited permission to copy, distribute and modify it."
17111
17112 ac_pwd='$ac_pwd'
17113 srcdir='$srcdir'
17114 INSTALL='$INSTALL'
17115 AWK='$AWK'
17116 test -n "\$AWK" || AWK=awk
17117 _ACEOF
17118
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 # The default lists apply if the user does not specify any file.
17121 ac_need_defaults=:
17122 while test $# != 0
17123 do
17124   case $1 in
17125   --*=?*)
17126     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17127     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17128     ac_shift=:
17129     ;;
17130   --*=)
17131     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17132     ac_optarg=
17133     ac_shift=:
17134     ;;
17135   *)
17136     ac_option=$1
17137     ac_optarg=$2
17138     ac_shift=shift
17139     ;;
17140   esac
17141
17142   case $ac_option in
17143   # Handling of the options.
17144   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17145     ac_cs_recheck=: ;;
17146   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17147     $as_echo "$ac_cs_version"; exit ;;
17148   --config | --confi | --conf | --con | --co | --c )
17149     $as_echo "$ac_cs_config"; exit ;;
17150   --debug | --debu | --deb | --de | --d | -d )
17151     debug=: ;;
17152   --file | --fil | --fi | --f )
17153     $ac_shift
17154     case $ac_optarg in
17155     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17156     '') as_fn_error $? "missing file argument" ;;
17157     esac
17158     as_fn_append CONFIG_FILES " '$ac_optarg'"
17159     ac_need_defaults=false;;
17160   --header | --heade | --head | --hea )
17161     $ac_shift
17162     case $ac_optarg in
17163     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17164     esac
17165     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17166     ac_need_defaults=false;;
17167   --he | --h)
17168     # Conflict between --help and --header
17169     as_fn_error $? "ambiguous option: \`$1'
17170 Try \`$0 --help' for more information.";;
17171   --help | --hel | -h )
17172     $as_echo "$ac_cs_usage"; exit ;;
17173   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17174   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17175     ac_cs_silent=: ;;
17176
17177   # This is an error.
17178   -*) as_fn_error $? "unrecognized option: \`$1'
17179 Try \`$0 --help' for more information." ;;
17180
17181   *) as_fn_append ac_config_targets " $1"
17182      ac_need_defaults=false ;;
17183
17184   esac
17185   shift
17186 done
17187
17188 ac_configure_extra_args=
17189
17190 if $ac_cs_silent; then
17191   exec 6>/dev/null
17192   ac_configure_extra_args="$ac_configure_extra_args --silent"
17193 fi
17194
17195 _ACEOF
17196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17197 if \$ac_cs_recheck; then
17198   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17199   shift
17200   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17201   CONFIG_SHELL='$SHELL'
17202   export CONFIG_SHELL
17203   exec "\$@"
17204 fi
17205
17206 _ACEOF
17207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17208 exec 5>>config.log
17209 {
17210   echo
17211   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17212 ## Running $as_me. ##
17213 _ASBOX
17214   $as_echo "$ac_log"
17215 } >&5
17216
17217 _ACEOF
17218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17219 _ACEOF
17220
17221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17222
17223 # Handling of arguments.
17224 for ac_config_target in $ac_config_targets
17225 do
17226   case $ac_config_target in
17227     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17228     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17229     "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
17230     "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
17231     "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
17232     "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
17233     "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
17234     "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
17235     "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
17236
17237   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17238   esac
17239 done
17240
17241
17242 # If the user did not use the arguments to specify the items to instantiate,
17243 # then the envvar interface is used.  Set only those that are not.
17244 # We use the long form for the default assignment because of an extremely
17245 # bizarre bug on SunOS 4.1.3.
17246 if $ac_need_defaults; then
17247   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17248   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17249 fi
17250
17251 # Have a temporary directory for convenience.  Make it in the build tree
17252 # simply because there is no reason against having it here, and in addition,
17253 # creating and moving files from /tmp can sometimes cause problems.
17254 # Hook for its removal unless debugging.
17255 # Note that there is a small window in which the directory will not be cleaned:
17256 # after its creation but before its name has been assigned to `$tmp'.
17257 $debug ||
17258 {
17259   tmp= ac_tmp=
17260   trap 'exit_status=$?
17261   : "${ac_tmp:=$tmp}"
17262   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17263 ' 0
17264   trap 'as_fn_exit 1' 1 2 13 15
17265 }
17266 # Create a (secure) tmp directory for tmp files.
17267
17268 {
17269   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17270   test -d "$tmp"
17271 }  ||
17272 {
17273   tmp=./conf$$-$RANDOM
17274   (umask 077 && mkdir "$tmp")
17275 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17276 ac_tmp=$tmp
17277
17278 # Set up the scripts for CONFIG_FILES section.
17279 # No need to generate them if there are no CONFIG_FILES.
17280 # This happens for instance with `./config.status config.h'.
17281 if test -n "$CONFIG_FILES"; then
17282
17283
17284 ac_cr=`echo X | tr X '\015'`
17285 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17286 # But we know of no other shell where ac_cr would be empty at this
17287 # point, so we can use a bashism as a fallback.
17288 if test "x$ac_cr" = x; then
17289   eval ac_cr=\$\'\\r\'
17290 fi
17291 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17292 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17293   ac_cs_awk_cr='\\r'
17294 else
17295   ac_cs_awk_cr=$ac_cr
17296 fi
17297
17298 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17299 _ACEOF
17300
17301
17302 {
17303   echo "cat >conf$$subs.awk <<_ACEOF" &&
17304   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17305   echo "_ACEOF"
17306 } >conf$$subs.sh ||
17307   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17308 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17309 ac_delim='%!_!# '
17310 for ac_last_try in false false false false false :; do
17311   . ./conf$$subs.sh ||
17312     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17313
17314   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17315   if test $ac_delim_n = $ac_delim_num; then
17316     break
17317   elif $ac_last_try; then
17318     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17319   else
17320     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17321   fi
17322 done
17323 rm -f conf$$subs.sh
17324
17325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17326 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17327 _ACEOF
17328 sed -n '
17329 h
17330 s/^/S["/; s/!.*/"]=/
17331 p
17332 g
17333 s/^[^!]*!//
17334 :repl
17335 t repl
17336 s/'"$ac_delim"'$//
17337 t delim
17338 :nl
17339 h
17340 s/\(.\{148\}\)..*/\1/
17341 t more1
17342 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17343 p
17344 n
17345 b repl
17346 :more1
17347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17348 p
17349 g
17350 s/.\{148\}//
17351 t nl
17352 :delim
17353 h
17354 s/\(.\{148\}\)..*/\1/
17355 t more2
17356 s/["\\]/\\&/g; s/^/"/; s/$/"/
17357 p
17358 b
17359 :more2
17360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17361 p
17362 g
17363 s/.\{148\}//
17364 t delim
17365 ' <conf$$subs.awk | sed '
17366 /^[^""]/{
17367   N
17368   s/\n//
17369 }
17370 ' >>$CONFIG_STATUS || ac_write_fail=1
17371 rm -f conf$$subs.awk
17372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17373 _ACAWK
17374 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17375   for (key in S) S_is_set[key] = 1
17376   FS = "\a"
17377
17378 }
17379 {
17380   line = $ 0
17381   nfields = split(line, field, "@")
17382   substed = 0
17383   len = length(field[1])
17384   for (i = 2; i < nfields; i++) {
17385     key = field[i]
17386     keylen = length(key)
17387     if (S_is_set[key]) {
17388       value = S[key]
17389       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17390       len += length(value) + length(field[++i])
17391       substed = 1
17392     } else
17393       len += 1 + keylen
17394   }
17395
17396   print line
17397 }
17398
17399 _ACAWK
17400 _ACEOF
17401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17403   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17404 else
17405   cat
17406 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17407   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17408 _ACEOF
17409
17410 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17411 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17412 # trailing colons and then remove the whole line if VPATH becomes empty
17413 # (actually we leave an empty line to preserve line numbers).
17414 if test "x$srcdir" = x.; then
17415   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17416 h
17417 s///
17418 s/^/:/
17419 s/[      ]*$/:/
17420 s/:\$(srcdir):/:/g
17421 s/:\${srcdir}:/:/g
17422 s/:@srcdir@:/:/g
17423 s/^:*//
17424 s/:*$//
17425 x
17426 s/\(=[   ]*\).*/\1/
17427 G
17428 s/\n//
17429 s/^[^=]*=[       ]*$//
17430 }'
17431 fi
17432
17433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17434 fi # test -n "$CONFIG_FILES"
17435
17436 # Set up the scripts for CONFIG_HEADERS section.
17437 # No need to generate them if there are no CONFIG_HEADERS.
17438 # This happens for instance with `./config.status Makefile'.
17439 if test -n "$CONFIG_HEADERS"; then
17440 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17441 BEGIN {
17442 _ACEOF
17443
17444 # Transform confdefs.h into an awk script `defines.awk', embedded as
17445 # here-document in config.status, that substitutes the proper values into
17446 # config.h.in to produce config.h.
17447
17448 # Create a delimiter string that does not exist in confdefs.h, to ease
17449 # handling of long lines.
17450 ac_delim='%!_!# '
17451 for ac_last_try in false false :; do
17452   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17453   if test -z "$ac_tt"; then
17454     break
17455   elif $ac_last_try; then
17456     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17457   else
17458     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17459   fi
17460 done
17461
17462 # For the awk script, D is an array of macro values keyed by name,
17463 # likewise P contains macro parameters if any.  Preserve backslash
17464 # newline sequences.
17465
17466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17467 sed -n '
17468 s/.\{148\}/&'"$ac_delim"'/g
17469 t rset
17470 :rset
17471 s/^[     ]*#[    ]*define[       ][      ]*/ /
17472 t def
17473 d
17474 :def
17475 s/\\$//
17476 t bsnl
17477 s/["\\]/\\&/g
17478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17479 D["\1"]=" \3"/p
17480 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17481 d
17482 :bsnl
17483 s/["\\]/\\&/g
17484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17485 D["\1"]=" \3\\\\\\n"\\/p
17486 t cont
17487 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17488 t cont
17489 d
17490 :cont
17491 n
17492 s/.\{148\}/&'"$ac_delim"'/g
17493 t clear
17494 :clear
17495 s/\\$//
17496 t bsnlc
17497 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17498 d
17499 :bsnlc
17500 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17501 b cont
17502 ' <confdefs.h | sed '
17503 s/'"$ac_delim"'/"\\\
17504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17505
17506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17507   for (key in D) D_is_set[key] = 1
17508   FS = "\a"
17509 }
17510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17511   line = \$ 0
17512   split(line, arg, " ")
17513   if (arg[1] == "#") {
17514     defundef = arg[2]
17515     mac1 = arg[3]
17516   } else {
17517     defundef = substr(arg[1], 2)
17518     mac1 = arg[2]
17519   }
17520   split(mac1, mac2, "(") #)
17521   macro = mac2[1]
17522   prefix = substr(line, 1, index(line, defundef) - 1)
17523   if (D_is_set[macro]) {
17524     # Preserve the white space surrounding the "#".
17525     print prefix "define", macro P[macro] D[macro]
17526     next
17527   } else {
17528     # Replace #undef with comments.  This is necessary, for example,
17529     # in the case of _POSIX_SOURCE, which is predefined and required
17530     # on some systems where configure will not decide to define it.
17531     if (defundef == "undef") {
17532       print "/*", prefix defundef, macro, "*/"
17533       next
17534     }
17535   }
17536 }
17537 { print }
17538 _ACAWK
17539 _ACEOF
17540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17541   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17542 fi # test -n "$CONFIG_HEADERS"
17543
17544
17545 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17546 shift
17547 for ac_tag
17548 do
17549   case $ac_tag in
17550   :[FHLC]) ac_mode=$ac_tag; continue;;
17551   esac
17552   case $ac_mode$ac_tag in
17553   :[FHL]*:*);;
17554   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17555   :[FH]-) ac_tag=-:-;;
17556   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17557   esac
17558   ac_save_IFS=$IFS
17559   IFS=:
17560   set x $ac_tag
17561   IFS=$ac_save_IFS
17562   shift
17563   ac_file=$1
17564   shift
17565
17566   case $ac_mode in
17567   :L) ac_source=$1;;
17568   :[FH])
17569     ac_file_inputs=
17570     for ac_f
17571     do
17572       case $ac_f in
17573       -) ac_f="$ac_tmp/stdin";;
17574       *) # Look for the file first in the build tree, then in the source tree
17575          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17576          # because $ac_f cannot contain `:'.
17577          test -f "$ac_f" ||
17578            case $ac_f in
17579            [\\/$]*) false;;
17580            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17581            esac ||
17582            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17583       esac
17584       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17585       as_fn_append ac_file_inputs " '$ac_f'"
17586     done
17587
17588     # Let's still pretend it is `configure' which instantiates (i.e., don't
17589     # use $as_me), people would be surprised to read:
17590     #    /* config.h.  Generated by config.status.  */
17591     configure_input='Generated from '`
17592           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17593         `' by configure.'
17594     if test x"$ac_file" != x-; then
17595       configure_input="$ac_file.  $configure_input"
17596       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17597 $as_echo "$as_me: creating $ac_file" >&6;}
17598     fi
17599     # Neutralize special characters interpreted by sed in replacement strings.
17600     case $configure_input in #(
17601     *\&* | *\|* | *\\* )
17602        ac_sed_conf_input=`$as_echo "$configure_input" |
17603        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17604     *) ac_sed_conf_input=$configure_input;;
17605     esac
17606
17607     case $ac_tag in
17608     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17609       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17610     esac
17611     ;;
17612   esac
17613
17614   ac_dir=`$as_dirname -- "$ac_file" ||
17615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616          X"$ac_file" : 'X\(//\)[^/]' \| \
17617          X"$ac_file" : 'X\(//\)$' \| \
17618          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17619 $as_echo X"$ac_file" |
17620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17621             s//\1/
17622             q
17623           }
17624           /^X\(\/\/\)[^/].*/{
17625             s//\1/
17626             q
17627           }
17628           /^X\(\/\/\)$/{
17629             s//\1/
17630             q
17631           }
17632           /^X\(\/\).*/{
17633             s//\1/
17634             q
17635           }
17636           s/.*/./; q'`
17637   as_dir="$ac_dir"; as_fn_mkdir_p
17638   ac_builddir=.
17639
17640 case "$ac_dir" in
17641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17642 *)
17643   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17644   # A ".." for each directory in $ac_dir_suffix.
17645   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17646   case $ac_top_builddir_sub in
17647   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17648   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17649   esac ;;
17650 esac
17651 ac_abs_top_builddir=$ac_pwd
17652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17653 # for backward compatibility:
17654 ac_top_builddir=$ac_top_build_prefix
17655
17656 case $srcdir in
17657   .)  # We are building in place.
17658     ac_srcdir=.
17659     ac_top_srcdir=$ac_top_builddir_sub
17660     ac_abs_top_srcdir=$ac_pwd ;;
17661   [\\/]* | ?:[\\/]* )  # Absolute name.
17662     ac_srcdir=$srcdir$ac_dir_suffix;
17663     ac_top_srcdir=$srcdir
17664     ac_abs_top_srcdir=$srcdir ;;
17665   *) # Relative name.
17666     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17667     ac_top_srcdir=$ac_top_build_prefix$srcdir
17668     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17669 esac
17670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17671
17672
17673   case $ac_mode in
17674   :F)
17675   #
17676   # CONFIG_FILE
17677   #
17678
17679   case $INSTALL in
17680   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17681   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17682   esac
17683 _ACEOF
17684
17685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17686 # If the template does not know about datarootdir, expand it.
17687 # FIXME: This hack should be removed a few years after 2.60.
17688 ac_datarootdir_hack=; ac_datarootdir_seen=
17689 ac_sed_dataroot='
17690 /datarootdir/ {
17691   p
17692   q
17693 }
17694 /@datadir@/p
17695 /@docdir@/p
17696 /@infodir@/p
17697 /@localedir@/p
17698 /@mandir@/p'
17699 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17700 *datarootdir*) ac_datarootdir_seen=yes;;
17701 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17702   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17703 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17704 _ACEOF
17705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17706   ac_datarootdir_hack='
17707   s&@datadir@&$datadir&g
17708   s&@docdir@&$docdir&g
17709   s&@infodir@&$infodir&g
17710   s&@localedir@&$localedir&g
17711   s&@mandir@&$mandir&g
17712   s&\\\${datarootdir}&$datarootdir&g' ;;
17713 esac
17714 _ACEOF
17715
17716 # Neutralize VPATH when `$srcdir' = `.'.
17717 # Shell code in configure.ac might set extrasub.
17718 # FIXME: do we really want to maintain this feature?
17719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17720 ac_sed_extra="$ac_vpsub
17721 $extrasub
17722 _ACEOF
17723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17724 :t
17725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17726 s|@configure_input@|$ac_sed_conf_input|;t t
17727 s&@top_builddir@&$ac_top_builddir_sub&;t t
17728 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17729 s&@srcdir@&$ac_srcdir&;t t
17730 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17731 s&@top_srcdir@&$ac_top_srcdir&;t t
17732 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17733 s&@builddir@&$ac_builddir&;t t
17734 s&@abs_builddir@&$ac_abs_builddir&;t t
17735 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17736 s&@INSTALL@&$ac_INSTALL&;t t
17737 $ac_datarootdir_hack
17738 "
17739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17740   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17741
17742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17743   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17744   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17745       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17747 which seems to be undefined.  Please make sure it is defined" >&5
17748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17749 which seems to be undefined.  Please make sure it is defined" >&2;}
17750
17751   rm -f "$ac_tmp/stdin"
17752   case $ac_file in
17753   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17754   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17755   esac \
17756   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17757  ;;
17758   :H)
17759   #
17760   # CONFIG_HEADER
17761   #
17762   if test x"$ac_file" != x-; then
17763     {
17764       $as_echo "/* $configure_input  */" \
17765       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17766     } >"$ac_tmp/config.h" \
17767       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17768     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17769       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17770 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17771     else
17772       rm -f "$ac_file"
17773       mv "$ac_tmp/config.h" "$ac_file" \
17774         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17775     fi
17776   else
17777     $as_echo "/* $configure_input  */" \
17778       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17779       || as_fn_error $? "could not create -" "$LINENO" 5
17780   fi
17781  ;;
17782
17783
17784   esac
17785
17786 done # for ac_tag
17787
17788
17789 as_fn_exit 0
17790 _ACEOF
17791 ac_clean_files=$ac_clean_files_save
17792
17793 test $ac_write_fail = 0 ||
17794   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17795
17796
17797 # configure is writing to config.log, and then calls config.status.
17798 # config.status does its own redirection, appending to config.log.
17799 # Unfortunately, on DOS this fails, as config.log is still kept open
17800 # by configure, so config.status won't be able to write to it; its
17801 # output is simply discarded.  So we exec the FD to /dev/null,
17802 # effectively closing config.log, so it can be properly (re)opened and
17803 # appended to by config.status.  When coming back to configure, we
17804 # need to make the FD available again.
17805 if test "$no_create" != yes; then
17806   ac_cs_success=:
17807   ac_config_status_args=
17808   test "$silent" = yes &&
17809     ac_config_status_args="$ac_config_status_args --quiet"
17810   exec 5>/dev/null
17811   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17812   exec 5>>config.log
17813   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17814   # would make configure fail if this is the last instruction.
17815   $ac_cs_success || as_fn_exit 1
17816 fi
17817 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17818   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17819 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17820 fi
17821
17822
17823 # Print summary of options
17824
17825 # Someone please show me a better way :)
17826 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17827 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17828 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17829 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17830 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17831 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17832 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17833 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17834 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17835 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17836
17837 echo ""
17838 echo "OpenSSH has been configured with the following options:"
17839 echo "                     User binaries: $B"
17840 echo "                   System binaries: $C"
17841 echo "               Configuration files: $D"
17842 echo "                   Askpass program: $E"
17843 echo "                      Manual pages: $F"
17844 echo "                          PID file: $G"
17845 echo "  Privilege separation chroot path: $H"
17846 if test "x$external_path_file" = "x/etc/login.conf" ; then
17847 echo "   At runtime, sshd will use the path defined in $external_path_file"
17848 echo "   Make sure the path to scp is present, otherwise scp will not work"
17849 else
17850 echo "            sshd default user PATH: $I"
17851         if test ! -z "$external_path_file"; then
17852 echo "   (If PATH is set in $external_path_file it will be used instead. If"
17853 echo "   used, ensure the path to scp is present, otherwise scp will not work.)"
17854         fi
17855 fi
17856 if test ! -z "$superuser_path" ; then
17857 echo "          sshd superuser user PATH: $J"
17858 fi
17859 echo "                    Manpage format: $MANTYPE"
17860 echo "                       PAM support: $PAM_MSG"
17861 echo "                   OSF SIA support: $SIA_MSG"
17862 echo "                 KerberosV support: $KRB5_MSG"
17863 echo "                   SELinux support: $SELINUX_MSG"
17864 echo "                 Smartcard support: $SCARD_MSG"
17865 echo "                     S/KEY support: $SKEY_MSG"
17866 echo "              TCP Wrappers support: $TCPW_MSG"
17867 echo "              MD5 password support: $MD5_MSG"
17868 echo "                   libedit support: $LIBEDIT_MSG"
17869 echo "  Solaris process contract support: $SPC_MSG"
17870 echo "           Solaris project support: $SP_MSG"
17871 echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17872 echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17873 echo "                  BSD Auth support: $BSD_AUTH_MSG"
17874 echo "              Random number source: $RAND_MSG"
17875 if test ! -z "$USE_RAND_HELPER" ; then
17876 echo "     ssh-rand-helper collects from: $RAND_HELPER_MSG"
17877 fi
17878
17879 echo ""
17880
17881 echo "              Host: ${host}"
17882 echo "          Compiler: ${CC}"
17883 echo "    Compiler flags: ${CFLAGS}"
17884 echo "Preprocessor flags: ${CPPFLAGS}"
17885 echo "      Linker flags: ${LDFLAGS}"
17886 echo "         Libraries: ${LIBS}"
17887 if test ! -z "${SSHDLIBS}"; then
17888 echo "         +for sshd: ${SSHDLIBS}"
17889 fi
17890 if test ! -z "${SSHLIBS}"; then
17891 echo "          +for ssh: ${SSHLIBS}"
17892 fi
17893
17894 echo ""
17895
17896 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17897         echo "SVR4 style packages are supported with \"make package\""
17898         echo ""
17899 fi
17900
17901 if test "x$PAM_MSG" = "xyes" ; then
17902         echo "PAM is enabled. You may need to install a PAM control file "
17903         echo "for sshd, otherwise password authentication may fail. "
17904         echo "Example PAM control files can be found in the contrib/ "
17905         echo "subdirectory"
17906         echo ""
17907 fi
17908
17909 if test ! -z "$RAND_HELPER_CMDHASH" ; then
17910         echo "WARNING: you are using the builtin random number collection "
17911         echo "service. Please read WARNING.RNG and request that your OS "
17912         echo "vendor includes kernel-based random number collection in "
17913         echo "future versions of your OS."
17914         echo ""
17915 fi
17916
17917 if test ! -z "$NO_PEERCHECK" ; then
17918         echo "WARNING: the operating system that you are using does not"
17919         echo "appear to support getpeereid(), getpeerucred() or the"
17920         echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17921         echo "enforce security checks to prevent unauthorised connections to"
17922         echo "ssh-agent. Their absence increases the risk that a malicious"
17923         echo "user can connect to your agent."
17924         echo ""
17925 fi
17926
17927 if test "$AUDIT_MODULE" = "bsm" ; then
17928         echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17929         echo "See the Solaris section in README.platform for details."
17930 fi