allow prompting for GSS creds
[openssh.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.480 .
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 SSH_PRIVSEP_USER
621 COMMENT_OUT_ECC
622 TEST_SSH_ECC
623 TEST_SSH_SHA256
624 LIBEDIT
625 PKGCONFIG
626 LD
627 PATH_PASSWD_PROG
628 LOGIN_PROGRAM_FALLBACK
629 STARTUP_SCRIPT_SHELL
630 MAKE_PACKAGE_SUPPORTED
631 PATH_USERADD_PROG
632 PATH_GROUPADD_PROG
633 MANFMT
634 TEST_SHELL
635 MANDOC
636 NROFF
637 GROFF
638 SH
639 TEST_MINUS_S_SH
640 ENT
641 SED
642 PERL
643 KILL
644 CAT
645 AR
646 INSTALL_DATA
647 INSTALL_SCRIPT
648 INSTALL_PROGRAM
649 RANLIB
650 AWK
651 EGREP
652 GREP
653 CPP
654 host_os
655 host_vendor
656 host_cpu
657 host
658 build_os
659 build_vendor
660 build_cpu
661 build
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
668 CC
669 target_alias
670 host_alias
671 build_alias
672 LIBS
673 ECHO_T
674 ECHO_N
675 ECHO_C
676 DEFS
677 mandir
678 localedir
679 libdir
680 psdir
681 pdfdir
682 dvidir
683 htmldir
684 infodir
685 docdir
686 oldincludedir
687 includedir
688 localstatedir
689 sharedstatedir
690 sysconfdir
691 datadir
692 datarootdir
693 libexecdir
694 sbindir
695 bindir
696 program_transform_name
697 prefix
698 exec_prefix
699 PACKAGE_URL
700 PACKAGE_BUGREPORT
701 PACKAGE_STRING
702 PACKAGE_VERSION
703 PACKAGE_TARNAME
704 PACKAGE_NAME
705 PATH_SEPARATOR
706 SHELL'
707 ac_subst_files=''
708 ac_user_opts='
709 enable_option_checking
710 enable_largefile
711 with_stackprotect
712 with_rpath
713 with_cflags
714 with_cppflags
715 with_ldflags
716 with_libs
717 with_Werror
718 with_solaris_contracts
719 with_solaris_projects
720 with_osfsia
721 with_zlib
722 with_zlib_version_check
723 with_skey
724 with_tcp_wrappers
725 with_libedit
726 with_audit
727 with_ssl_dir
728 with_openssl_header_check
729 with_ssl_engine
730 with_prngd_port
731 with_prngd_socket
732 with_pam
733 with_privsep_user
734 with_sandbox
735 with_selinux
736 with_kerberos5
737 with_privsep_path
738 with_xauth
739 enable_strip
740 with_maildir
741 with_mantype
742 with_md5_passwords
743 with_shadow
744 with_ipaddr_display
745 enable_etc_default_login
746 with_default_path
747 with_superuser_path
748 with_4in6
749 with_bsd_auth
750 with_pid_dir
751 enable_lastlog
752 enable_utmp
753 enable_utmpx
754 enable_wtmp
755 enable_wtmpx
756 enable_libutil
757 enable_pututline
758 enable_pututxline
759 with_lastlog
760 '
761       ac_precious_vars='build_alias
762 host_alias
763 target_alias
764 CC
765 CFLAGS
766 LDFLAGS
767 LIBS
768 CPPFLAGS
769 CPP'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824   # If the previous option needs an argument, assign it.
825   if test -n "$ac_prev"; then
826     eval $ac_prev=\$ac_option
827     ac_prev=
828     continue
829   fi
830
831   case $ac_option in
832   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833   *=)   ac_optarg= ;;
834   *)    ac_optarg=yes ;;
835   esac
836
837   # Accept the important Cygnus configure options, so we can diagnose typos.
838
839   case $ac_dashdash$ac_option in
840   --)
841     ac_dashdash=yes ;;
842
843   -bindir | --bindir | --bindi | --bind | --bin | --bi)
844     ac_prev=bindir ;;
845   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846     bindir=$ac_optarg ;;
847
848   -build | --build | --buil | --bui | --bu)
849     ac_prev=build_alias ;;
850   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851     build_alias=$ac_optarg ;;
852
853   -cache-file | --cache-file | --cache-fil | --cache-fi \
854   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855     ac_prev=cache_file ;;
856   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858     cache_file=$ac_optarg ;;
859
860   --config-cache | -C)
861     cache_file=config.cache ;;
862
863   -datadir | --datadir | --datadi | --datad)
864     ac_prev=datadir ;;
865   -datadir=* | --datadir=* | --datadi=* | --datad=*)
866     datadir=$ac_optarg ;;
867
868   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869   | --dataroo | --dataro | --datar)
870     ac_prev=datarootdir ;;
871   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873     datarootdir=$ac_optarg ;;
874
875   -disable-* | --disable-*)
876     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877     # Reject names that are not valid shell variable names.
878     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879       as_fn_error $? "invalid feature name: $ac_useropt"
880     ac_useropt_orig=$ac_useropt
881     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882     case $ac_user_opts in
883       *"
884 "enable_$ac_useropt"
885 "*) ;;
886       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887          ac_unrecognized_sep=', ';;
888     esac
889     eval enable_$ac_useropt=no ;;
890
891   -docdir | --docdir | --docdi | --doc | --do)
892     ac_prev=docdir ;;
893   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894     docdir=$ac_optarg ;;
895
896   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897     ac_prev=dvidir ;;
898   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899     dvidir=$ac_optarg ;;
900
901   -enable-* | --enable-*)
902     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903     # Reject names that are not valid shell variable names.
904     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905       as_fn_error $? "invalid feature name: $ac_useropt"
906     ac_useropt_orig=$ac_useropt
907     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908     case $ac_user_opts in
909       *"
910 "enable_$ac_useropt"
911 "*) ;;
912       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913          ac_unrecognized_sep=', ';;
914     esac
915     eval enable_$ac_useropt=\$ac_optarg ;;
916
917   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919   | --exec | --exe | --ex)
920     ac_prev=exec_prefix ;;
921   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923   | --exec=* | --exe=* | --ex=*)
924     exec_prefix=$ac_optarg ;;
925
926   -gas | --gas | --ga | --g)
927     # Obsolete; use --with-gas.
928     with_gas=yes ;;
929
930   -help | --help | --hel | --he | -h)
931     ac_init_help=long ;;
932   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933     ac_init_help=recursive ;;
934   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935     ac_init_help=short ;;
936
937   -host | --host | --hos | --ho)
938     ac_prev=host_alias ;;
939   -host=* | --host=* | --hos=* | --ho=*)
940     host_alias=$ac_optarg ;;
941
942   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943     ac_prev=htmldir ;;
944   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945   | --ht=*)
946     htmldir=$ac_optarg ;;
947
948   -includedir | --includedir | --includedi | --included | --include \
949   | --includ | --inclu | --incl | --inc)
950     ac_prev=includedir ;;
951   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952   | --includ=* | --inclu=* | --incl=* | --inc=*)
953     includedir=$ac_optarg ;;
954
955   -infodir | --infodir | --infodi | --infod | --info | --inf)
956     ac_prev=infodir ;;
957   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958     infodir=$ac_optarg ;;
959
960   -libdir | --libdir | --libdi | --libd)
961     ac_prev=libdir ;;
962   -libdir=* | --libdir=* | --libdi=* | --libd=*)
963     libdir=$ac_optarg ;;
964
965   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966   | --libexe | --libex | --libe)
967     ac_prev=libexecdir ;;
968   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969   | --libexe=* | --libex=* | --libe=*)
970     libexecdir=$ac_optarg ;;
971
972   -localedir | --localedir | --localedi | --localed | --locale)
973     ac_prev=localedir ;;
974   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975     localedir=$ac_optarg ;;
976
977   -localstatedir | --localstatedir | --localstatedi | --localstated \
978   | --localstate | --localstat | --localsta | --localst | --locals)
979     ac_prev=localstatedir ;;
980   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982     localstatedir=$ac_optarg ;;
983
984   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985     ac_prev=mandir ;;
986   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987     mandir=$ac_optarg ;;
988
989   -nfp | --nfp | --nf)
990     # Obsolete; use --without-fp.
991     with_fp=no ;;
992
993   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994   | --no-cr | --no-c | -n)
995     no_create=yes ;;
996
997   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999     no_recursion=yes ;;
1000
1001   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003   | --oldin | --oldi | --old | --ol | --o)
1004     ac_prev=oldincludedir ;;
1005   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008     oldincludedir=$ac_optarg ;;
1009
1010   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011     ac_prev=prefix ;;
1012   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013     prefix=$ac_optarg ;;
1014
1015   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016   | --program-pre | --program-pr | --program-p)
1017     ac_prev=program_prefix ;;
1018   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020     program_prefix=$ac_optarg ;;
1021
1022   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023   | --program-suf | --program-su | --program-s)
1024     ac_prev=program_suffix ;;
1025   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027     program_suffix=$ac_optarg ;;
1028
1029   -program-transform-name | --program-transform-name \
1030   | --program-transform-nam | --program-transform-na \
1031   | --program-transform-n | --program-transform- \
1032   | --program-transform | --program-transfor \
1033   | --program-transfo | --program-transf \
1034   | --program-trans | --program-tran \
1035   | --progr-tra | --program-tr | --program-t)
1036     ac_prev=program_transform_name ;;
1037   -program-transform-name=* | --program-transform-name=* \
1038   | --program-transform-nam=* | --program-transform-na=* \
1039   | --program-transform-n=* | --program-transform-=* \
1040   | --program-transform=* | --program-transfor=* \
1041   | --program-transfo=* | --program-transf=* \
1042   | --program-trans=* | --program-tran=* \
1043   | --progr-tra=* | --program-tr=* | --program-t=*)
1044     program_transform_name=$ac_optarg ;;
1045
1046   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047     ac_prev=pdfdir ;;
1048   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049     pdfdir=$ac_optarg ;;
1050
1051   -psdir | --psdir | --psdi | --psd | --ps)
1052     ac_prev=psdir ;;
1053   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054     psdir=$ac_optarg ;;
1055
1056   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057   | -silent | --silent | --silen | --sile | --sil)
1058     silent=yes ;;
1059
1060   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061     ac_prev=sbindir ;;
1062   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063   | --sbi=* | --sb=*)
1064     sbindir=$ac_optarg ;;
1065
1066   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068   | --sharedst | --shareds | --shared | --share | --shar \
1069   | --sha | --sh)
1070     ac_prev=sharedstatedir ;;
1071   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074   | --sha=* | --sh=*)
1075     sharedstatedir=$ac_optarg ;;
1076
1077   -site | --site | --sit)
1078     ac_prev=site ;;
1079   -site=* | --site=* | --sit=*)
1080     site=$ac_optarg ;;
1081
1082   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083     ac_prev=srcdir ;;
1084   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085     srcdir=$ac_optarg ;;
1086
1087   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088   | --syscon | --sysco | --sysc | --sys | --sy)
1089     ac_prev=sysconfdir ;;
1090   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092     sysconfdir=$ac_optarg ;;
1093
1094   -target | --target | --targe | --targ | --tar | --ta | --t)
1095     ac_prev=target_alias ;;
1096   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097     target_alias=$ac_optarg ;;
1098
1099   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100     verbose=yes ;;
1101
1102   -version | --version | --versio | --versi | --vers | -V)
1103     ac_init_version=: ;;
1104
1105   -with-* | --with-*)
1106     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107     # Reject names that are not valid shell variable names.
1108     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109       as_fn_error $? "invalid package name: $ac_useropt"
1110     ac_useropt_orig=$ac_useropt
1111     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112     case $ac_user_opts in
1113       *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117          ac_unrecognized_sep=', ';;
1118     esac
1119     eval with_$ac_useropt=\$ac_optarg ;;
1120
1121   -without-* | --without-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error $? "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=no ;;
1136
1137   --x)
1138     # Obsolete; use --with-x.
1139     with_x=yes ;;
1140
1141   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142   | --x-incl | --x-inc | --x-in | --x-i)
1143     ac_prev=x_includes ;;
1144   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146     x_includes=$ac_optarg ;;
1147
1148   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150     ac_prev=x_libraries ;;
1151   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153     x_libraries=$ac_optarg ;;
1154
1155   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1157     ;;
1158
1159   *=*)
1160     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161     # Reject names that are not valid shell variable names.
1162     case $ac_envvar in #(
1163       '' | [0-9]* | *[!_$as_cr_alnum]* )
1164       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165     esac
1166     eval $ac_envvar=\$ac_optarg
1167     export $ac_envvar ;;
1168
1169   *)
1170     # FIXME: should be removed in autoconf 3.0.
1171     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175     ;;
1176
1177   esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182   as_fn_error $? "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186   case $enable_option_checking in
1187     no) ;;
1188     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190   esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195                 datadir sysconfdir sharedstatedir localstatedir includedir \
1196                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197                 libdir localedir mandir
1198 do
1199   eval ac_val=\$$ac_var
1200   # Remove trailing slashes.
1201   case $ac_val in
1202     */ )
1203       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204       eval $ac_var=\$ac_val;;
1205   esac
1206   # Be sure to have absolute directory names.
1207   case $ac_val in
1208     [\\/$]* | ?:[\\/]* )  continue;;
1209     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210   esac
1211   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223   if test "x$build_alias" = x; then
1224     cross_compiling=maybe
1225     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226     If a cross compiler is detected then cross compile mode will be used" >&2
1227   elif test "x$build_alias" != "x$host_alias"; then
1228     cross_compiling=yes
1229   fi
1230 fi
1231
1232 ac_tool_prefix=
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235 test "$silent" = yes && exec 6>/dev/null
1236
1237
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241   as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243   as_fn_error $? "pwd does not report name of working directory"
1244
1245
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248   ac_srcdir_defaulted=yes
1249   # Try the directory containing this script, then the parent directory.
1250   ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252          X"$as_myself" : 'X\(//\)[^/]' \| \
1253          X"$as_myself" : 'X\(//\)$' \| \
1254          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\/\)[^/].*/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\).*/{
1269             s//\1/
1270             q
1271           }
1272           s/.*/./; q'`
1273   srcdir=$ac_confdir
1274   if test ! -r "$srcdir/$ac_unique_file"; then
1275     srcdir=..
1276   fi
1277 else
1278   ac_srcdir_defaulted=no
1279 fi
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287         pwd)`
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1290   srcdir=.
1291 fi
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1295 case $srcdir in
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 esac
1298 for ac_var in $ac_precious_vars; do
1299   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300   eval ac_env_${ac_var}_value=\$${ac_var}
1301   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303 done
1304
1305 #
1306 # Report the --help message.
1307 #
1308 if test "$ac_init_help" = "long"; then
1309   # Omit some internal or obsolete options to make the list less imposing.
1310   # This message is too long to be a string in the A/UX 3.1 sh.
1311   cat <<_ACEOF
1312 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1313
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE.  See below for descriptions of some of the useful variables.
1318
1319 Defaults for the options are specified in brackets.
1320
1321 Configuration:
1322   -h, --help              display this help and exit
1323       --help=short        display options specific to this package
1324       --help=recursive    display the short help of all the included packages
1325   -V, --version           display version information and exit
1326   -q, --quiet, --silent   do not print \`checking ...' messages
1327       --cache-file=FILE   cache test results in FILE [disabled]
1328   -C, --config-cache      alias for \`--cache-file=config.cache'
1329   -n, --no-create         do not create output files
1330       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1331
1332 Installation directories:
1333   --prefix=PREFIX         install architecture-independent files in PREFIX
1334                           [$ac_default_prefix]
1335   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1336                           [PREFIX]
1337
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1342
1343 For better control, use the options below.
1344
1345 Fine tuning of the installation directories:
1346   --bindir=DIR            user executables [EPREFIX/bin]
1347   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1348   --libexecdir=DIR        program executables [EPREFIX/libexec]
1349   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1350   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1351   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1352   --libdir=DIR            object code libraries [EPREFIX/lib]
1353   --includedir=DIR        C header files [PREFIX/include]
1354   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1355   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1356   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1357   --infodir=DIR           info documentation [DATAROOTDIR/info]
1358   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1359   --mandir=DIR            man documentation [DATAROOTDIR/man]
1360   --docdir=DIR            documentation root [DATAROOTDIR/doc/openssh]
1361   --htmldir=DIR           html documentation [DOCDIR]
1362   --dvidir=DIR            dvi documentation [DOCDIR]
1363   --pdfdir=DIR            pdf documentation [DOCDIR]
1364   --psdir=DIR             ps documentation [DOCDIR]
1365 _ACEOF
1366
1367   cat <<\_ACEOF
1368
1369 System types:
1370   --build=BUILD     configure for building on BUILD [guessed]
1371   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1372 _ACEOF
1373 fi
1374
1375 if test -n "$ac_init_help"; then
1376   case $ac_init_help in
1377      short | recursive ) echo "Configuration of OpenSSH Portable:";;
1378    esac
1379   cat <<\_ACEOF
1380
1381 Optional Features:
1382   --disable-option-checking  ignore unrecognized --enable/--with options
1383   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1384   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1385   --disable-largefile     omit support for large files
1386   --disable-strip         Disable calling strip(1) on install
1387   --disable-etc-default-login Disable using PATH from /etc/default/login no
1388   --disable-lastlog       disable use of lastlog even if detected no
1389   --disable-utmp          disable use of utmp even if detected no
1390   --disable-utmpx         disable use of utmpx even if detected no
1391   --disable-wtmp          disable use of wtmp even if detected no
1392   --disable-wtmpx         disable use of wtmpx even if detected no
1393   --disable-libutil       disable use of libutil (login() etc.) no
1394   --disable-pututline     disable use of pututline() etc. (uwtmp) no
1395   --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
1396
1397 Optional Packages:
1398   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1400   --without-stackprotect  Don't use compiler's stack protection
1401   --without-rpath         Disable auto-added -R linker paths
1402   --with-cflags           Specify additional flags to pass to compiler
1403   --with-cppflags         Specify additional flags to pass to preprocessor
1404   --with-ldflags          Specify additional flags to pass to linker
1405   --with-libs             Specify additional libraries to link with
1406   --with-Werror           Build main code with -Werror
1407   --with-solaris-contracts Enable Solaris process contracts (experimental)
1408   --with-solaris-projects Enable Solaris projects (experimental)
1409   --with-osfsia           Enable Digital Unix SIA
1410   --with-zlib=PATH        Use zlib in PATH
1411   --without-zlib-version-check Disable zlib version check
1412   --with-skey[=PATH]      Enable S/Key support (optionally in PATH)
1413   --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1414   --with-libedit[=PATH]   Enable libedit support for sftp
1415   --with-audit=module     Enable audit support (modules=debug,bsm,linux)
1416   --with-ssl-dir=PATH     Specify path to OpenSSL installation
1417   --without-openssl-header-check Disable OpenSSL version consistency check
1418   --with-ssl-engine       Enable OpenSSL (hardware) ENGINE support
1419   --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
1420   --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1421   --with-pam              Enable PAM support
1422   --with-privsep-user=user Specify non-privileged user for privilege separation
1423   --with-sandbox=style    Specify privilege separation sandbox (no, darwin, rlimit, systrace)
1424   --with-selinux          Enable SELinux support
1425   --with-kerberos5=PATH   Enable Kerberos 5 support
1426   --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1427   --with-xauth=PATH       Specify path to xauth program
1428   --with-maildir=/path/to/mail    Specify your system mail directory
1429   --with-mantype=man|cat|doc  Set man page type
1430   --with-md5-passwords    Enable use of MD5 passwords
1431   --without-shadow        Disable shadow password support
1432   --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY
1433   --with-default-path=    Specify default \$PATH environment for server
1434   --with-superuser-path=  Specify different path for super-user
1435   --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
1436   --with-bsd-auth         Enable BSD auth support
1437   --with-pid-dir=PATH     Specify location of ssh.pid file
1438   --with-lastlog=FILE|DIR specify lastlog location common locations
1439
1440 Some influential environment variables:
1441   CC          C compiler command
1442   CFLAGS      C compiler flags
1443   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444               nonstandard directory <lib dir>
1445   LIBS        libraries to pass to the linker, e.g. -l<library>
1446   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447               you have headers in a nonstandard directory <include dir>
1448   CPP         C preprocessor
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to <openssh-unix-dev@mindrot.org>.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459   # If there are subdirs, report their specific --help.
1460   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461     test -d "$ac_dir" ||
1462       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463       continue
1464     ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470   # A ".." for each directory in $ac_dir_suffix.
1471   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472   case $ac_top_builddir_sub in
1473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475   esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483   .)  # We are building in place.
1484     ac_srcdir=.
1485     ac_top_srcdir=$ac_top_builddir_sub
1486     ac_abs_top_srcdir=$ac_pwd ;;
1487   [\\/]* | ?:[\\/]* )  # Absolute name.
1488     ac_srcdir=$srcdir$ac_dir_suffix;
1489     ac_top_srcdir=$srcdir
1490     ac_abs_top_srcdir=$srcdir ;;
1491   *) # Relative name.
1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498     cd "$ac_dir" || { ac_status=$?; continue; }
1499     # Check for guested configure.
1500     if test -f "$ac_srcdir/configure.gnu"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503     elif test -f "$ac_srcdir/configure"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure" --help=recursive
1506     else
1507       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508     fi || ac_status=$?
1509     cd "$ac_pwd" || { ac_status=$?; break; }
1510   done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515   cat <<\_ACEOF
1516 OpenSSH configure Portable
1517 generated by GNU Autoconf 2.68
1518
1519 Copyright (C) 2010 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523   exit
1524 fi
1525
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1529
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1534 {
1535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536   rm -f conftest.$ac_objext
1537   if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540   *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544   (eval "$ac_compile") 2>conftest.err
1545   ac_status=$?
1546   if test -s conftest.err; then
1547     grep -v '^ *+' conftest.err >conftest.er1
1548     cat conftest.er1 >&5
1549     mv -f conftest.er1 conftest.err
1550   fi
1551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552   test $ac_status = 0; } && {
1553          test -z "$ac_c_werror_flag" ||
1554          test ! -s conftest.err
1555        } && test -s conftest.$ac_objext; then :
1556   ac_retval=0
1557 else
1558   $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561         ac_retval=1
1562 fi
1563   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564   as_fn_set_status $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_c_try_run LINENO
1569 # ----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1571 # that executables *can* be run.
1572 ac_fn_c_try_run ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578   *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582   (eval "$ac_link") 2>&5
1583   ac_status=$?
1584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1586   { { case "(($ac_try" in
1587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588   *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592   (eval "$ac_try") 2>&5
1593   ac_status=$?
1594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595   test $ac_status = 0; }; }; then :
1596   ac_retval=0
1597 else
1598   $as_echo "$as_me: program exited with status $ac_status" >&5
1599        $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602        ac_retval=$ac_status
1603 fi
1604   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606   as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_run
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } > conftest.i && {
1632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        }; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640     ac_retval=1
1641 fi
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists and can be compiled using the include files in
1650 # INCLUDES, setting the cache variable VAR accordingly.
1651 ac_fn_c_check_header_compile ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655 $as_echo_n "checking for $2... " >&6; }
1656 if eval \${$3+:} false; then :
1657   $as_echo_n "(cached) " >&6
1658 else
1659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h.  */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"; then :
1665   eval "$3=yes"
1666 else
1667   eval "$3=no"
1668 fi
1669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 fi
1671 eval ac_res=\$$3
1672                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 $as_echo "$ac_res" >&6; }
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_header_compile
1677
1678 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1679 # ---------------------------------------------
1680 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1681 # accordingly.
1682 ac_fn_c_check_decl ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   as_decl_name=`echo $2|sed 's/ *(.*//'`
1686   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1688 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1689 if eval \${$3+:} false; then :
1690   $as_echo_n "(cached) " >&6
1691 else
1692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 $4
1695 int
1696 main ()
1697 {
1698 #ifndef $as_decl_name
1699 #ifdef __cplusplus
1700   (void) $as_decl_use;
1701 #else
1702   (void) $as_decl_name;
1703 #endif
1704 #endif
1705
1706   ;
1707   return 0;
1708 }
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711   eval "$3=yes"
1712 else
1713   eval "$3=no"
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722 } # ac_fn_c_check_decl
1723
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   rm -f conftest.$ac_objext conftest$ac_exeext
1731   if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734   *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738   (eval "$ac_link") 2>conftest.err
1739   ac_status=$?
1740   if test -s conftest.err; then
1741     grep -v '^ *+' conftest.err >conftest.er1
1742     cat conftest.er1 >&5
1743     mv -f conftest.er1 conftest.err
1744   fi
1745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746   test $ac_status = 0; } && {
1747          test -z "$ac_c_werror_flag" ||
1748          test ! -s conftest.err
1749        } && test -s conftest$ac_exeext && {
1750          test "$cross_compiling" = yes ||
1751          $as_test_x conftest$ac_exeext
1752        }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758         ac_retval=1
1759 fi
1760   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762   # interfere with the next link command; also delete a directory that is
1763   # left behind by Apple's compiler.  We do this before executing the actions.
1764   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_link
1769
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if eval \${$3+:} false; then :
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782   $as_echo_n "(cached) " >&6
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788   # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797   ac_header_compiler=yes
1798 else
1799   ac_header_compiler=no
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1804
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813   ac_header_preproc=yes
1814 else
1815   ac_header_preproc=no
1816 fi
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1820
1821 # So?  What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823   yes:no: )
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828     ;;
1829   no:yes:* )
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## ------------------------------------------- ##
1841 ## Report this to openssh-unix-dev@mindrot.org ##
1842 ## ------------------------------------------- ##"
1843      ) | sed "s/^/$as_me: WARNING:     /" >&2
1844     ;;
1845 esac
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   eval "$3=\$ac_header_compiler"
1852 fi
1853 eval ac_res=\$$3
1854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 fi
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_mongrel
1860
1861 # ac_fn_c_check_func LINENO FUNC VAR
1862 # ----------------------------------
1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1864 ac_fn_c_check_func ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870   $as_echo_n "(cached) " >&6
1871 else
1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876 #define $2 innocuous_$2
1877
1878 /* System header to define __stub macros and hopefully few prototypes,
1879     which can conflict with char $2 (); below.
1880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881     <limits.h> exists even on freestanding compilers.  */
1882
1883 #ifdef __STDC__
1884 # include <limits.h>
1885 #else
1886 # include <assert.h>
1887 #endif
1888
1889 #undef $2
1890
1891 /* Override any GCC internal prototype to avoid an error.
1892    Use char because int might match the return type of a GCC
1893    builtin and then its argument prototype would still apply.  */
1894 #ifdef __cplusplus
1895 extern "C"
1896 #endif
1897 char $2 ();
1898 /* The GNU C library defines this for functions which it implements
1899     to always fail with ENOSYS.  Some functions are actually named
1900     something starting with __ and the normal name is an alias.  */
1901 #if defined __stub_$2 || defined __stub___$2
1902 choke me
1903 #endif
1904
1905 int
1906 main ()
1907 {
1908 return $2 ();
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_link "$LINENO"; then :
1914   eval "$3=yes"
1915 else
1916   eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext \
1919     conftest$ac_exeext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_func
1927
1928 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1929 # -------------------------------------------
1930 # Tests whether TYPE exists after having included INCLUDES, setting cache
1931 # variable VAR accordingly.
1932 ac_fn_c_check_type ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938   $as_echo_n "(cached) " >&6
1939 else
1940   eval "$3=no"
1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 $4
1944 int
1945 main ()
1946 {
1947 if (sizeof ($2))
1948          return 0;
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 $4
1957 int
1958 main ()
1959 {
1960 if (sizeof (($2)))
1961             return 0;
1962   ;
1963   return 0;
1964 }
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967
1968 else
1969   eval "$3=yes"
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 fi
1975 eval ac_res=\$$3
1976                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
1980 } # ac_fn_c_check_type
1981
1982 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1983 # --------------------------------------------
1984 # Tries to find the compile-time value of EXPR in a program that includes
1985 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1986 # computed
1987 ac_fn_c_compute_int ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   if test "$cross_compiling" = yes; then
1991     # Depending upon the size, compute the lo and hi bounds.
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 $4
1995 int
1996 main ()
1997 {
1998 static int test_array [1 - 2 * !(($2) >= 0)];
1999 test_array [0] = 0
2000
2001   ;
2002   return 0;
2003 }
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006   ac_lo=0 ac_mid=0
2007   while :; do
2008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 int
2012 main ()
2013 {
2014 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2015 test_array [0] = 0
2016
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   ac_hi=$ac_mid; break
2023 else
2024   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2025                         if test $ac_lo -le $ac_mid; then
2026                           ac_lo= ac_hi=
2027                           break
2028                         fi
2029                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032   done
2033 else
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 int
2038 main ()
2039 {
2040 static int test_array [1 - 2 * !(($2) < 0)];
2041 test_array [0] = 0
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   ac_hi=-1 ac_mid=-1
2049   while :; do
2050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h.  */
2052 $4
2053 int
2054 main ()
2055 {
2056 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2057 test_array [0] = 0
2058
2059   ;
2060   return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064   ac_lo=$ac_mid; break
2065 else
2066   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2067                         if test $ac_mid -le $ac_hi; then
2068                           ac_lo= ac_hi=
2069                           break
2070                         fi
2071                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074   done
2075 else
2076   ac_lo= ac_hi=
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 # Binary search between lo and hi bounds.
2082 while test "x$ac_lo" != "x$ac_hi"; do
2083   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h.  */
2086 $4
2087 int
2088 main ()
2089 {
2090 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 test_array [0] = 0
2092
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098   ac_hi=$ac_mid
2099 else
2100   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 done
2104 case $ac_lo in #((
2105 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2106 '') ac_retval=1 ;;
2107 esac
2108   else
2109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 static long int longval () { return $2; }
2113 static unsigned long int ulongval () { return $2; }
2114 #include <stdio.h>
2115 #include <stdlib.h>
2116 int
2117 main ()
2118 {
2119
2120   FILE *f = fopen ("conftest.val", "w");
2121   if (! f)
2122     return 1;
2123   if (($2) < 0)
2124     {
2125       long int i = longval ();
2126       if (i != ($2))
2127         return 1;
2128       fprintf (f, "%ld", i);
2129     }
2130   else
2131     {
2132       unsigned long int i = ulongval ();
2133       if (i != ($2))
2134         return 1;
2135       fprintf (f, "%lu", i);
2136     }
2137   /* Do not output a trailing newline, as this causes \r\n confusion
2138      on some platforms.  */
2139   return ferror (f) || fclose (f) != 0;
2140
2141   ;
2142   return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_run "$LINENO"; then :
2146   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2147 else
2148   ac_retval=1
2149 fi
2150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2151   conftest.$ac_objext conftest.beam conftest.$ac_ext
2152 rm -f conftest.val
2153
2154   fi
2155   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156   as_fn_set_status $ac_retval
2157
2158 } # ac_fn_c_compute_int
2159
2160 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2161 # ----------------------------------------------------
2162 # Tries to find if the field MEMBER exists in type AGGR, after including
2163 # INCLUDES, setting cache variable VAR accordingly.
2164 ac_fn_c_check_member ()
2165 {
2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2168 $as_echo_n "checking for $2.$3... " >&6; }
2169 if eval \${$4+:} false; then :
2170   $as_echo_n "(cached) " >&6
2171 else
2172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h.  */
2174 $5
2175 int
2176 main ()
2177 {
2178 static $2 ac_aggr;
2179 if (ac_aggr.$3)
2180 return 0;
2181   ;
2182   return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186   eval "$4=yes"
2187 else
2188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 $5
2191 int
2192 main ()
2193 {
2194 static $2 ac_aggr;
2195 if (sizeof ac_aggr.$3)
2196 return 0;
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202   eval "$4=yes"
2203 else
2204   eval "$4=no"
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 eval ac_res=\$$4
2211                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215 } # ac_fn_c_check_member
2216 cat >config.log <<_ACEOF
2217 This file contains any messages produced by compilers while
2218 running configure, to aid debugging if configure makes a mistake.
2219
2220 It was created by OpenSSH $as_me Portable, which was
2221 generated by GNU Autoconf 2.68.  Invocation command line was
2222
2223   $ $0 $@
2224
2225 _ACEOF
2226 exec 5>>config.log
2227 {
2228 cat <<_ASUNAME
2229 ## --------- ##
2230 ## Platform. ##
2231 ## --------- ##
2232
2233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238
2239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2240 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2241
2242 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2243 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2245 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2246 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2247 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2248 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2249
2250 _ASUNAME
2251
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255   IFS=$as_save_IFS
2256   test -z "$as_dir" && as_dir=.
2257     $as_echo "PATH: $as_dir"
2258   done
2259 IFS=$as_save_IFS
2260
2261 } >&5
2262
2263 cat >&5 <<_ACEOF
2264
2265
2266 ## ----------- ##
2267 ## Core tests. ##
2268 ## ----------- ##
2269
2270 _ACEOF
2271
2272
2273 # Keep a trace of the command line.
2274 # Strip out --no-create and --no-recursion so they do not pile up.
2275 # Strip out --silent because we don't want to record it for future runs.
2276 # Also quote any args containing shell meta-characters.
2277 # Make two passes to allow for proper duplicate-argument suppression.
2278 ac_configure_args=
2279 ac_configure_args0=
2280 ac_configure_args1=
2281 ac_must_keep_next=false
2282 for ac_pass in 1 2
2283 do
2284   for ac_arg
2285   do
2286     case $ac_arg in
2287     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289     | -silent | --silent | --silen | --sile | --sil)
2290       continue ;;
2291     *\'*)
2292       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2293     esac
2294     case $ac_pass in
2295     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296     2)
2297       as_fn_append ac_configure_args1 " '$ac_arg'"
2298       if test $ac_must_keep_next = true; then
2299         ac_must_keep_next=false # Got value, back to normal.
2300       else
2301         case $ac_arg in
2302           *=* | --config-cache | -C | -disable-* | --disable-* \
2303           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305           | -with-* | --with-* | -without-* | --without-* | --x)
2306             case "$ac_configure_args0 " in
2307               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308             esac
2309             ;;
2310           -* ) ac_must_keep_next=true ;;
2311         esac
2312       fi
2313       as_fn_append ac_configure_args " '$ac_arg'"
2314       ;;
2315     esac
2316   done
2317 done
2318 { ac_configure_args0=; unset ac_configure_args0;}
2319 { ac_configure_args1=; unset ac_configure_args1;}
2320
2321 # When interrupted or exit'd, cleanup temporary files, and complete
2322 # config.log.  We remove comments because anyway the quotes in there
2323 # would cause problems or look ugly.
2324 # WARNING: Use '\'' to represent an apostrophe within the trap.
2325 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326 trap 'exit_status=$?
2327   # Save into config.log some information that might help in debugging.
2328   {
2329     echo
2330
2331     $as_echo "## ---------------- ##
2332 ## Cache variables. ##
2333 ## ---------------- ##"
2334     echo
2335     # The following way of writing the cache mishandles newlines in values,
2336 (
2337   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338     eval ac_val=\$$ac_var
2339     case $ac_val in #(
2340     *${as_nl}*)
2341       case $ac_var in #(
2342       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344       esac
2345       case $ac_var in #(
2346       _ | IFS | as_nl) ;; #(
2347       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348       *) { eval $ac_var=; unset $ac_var;} ;;
2349       esac ;;
2350     esac
2351   done
2352   (set) 2>&1 |
2353     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354     *${as_nl}ac_space=\ *)
2355       sed -n \
2356         "s/'\''/'\''\\\\'\'''\''/g;
2357           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358       ;; #(
2359     *)
2360       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361       ;;
2362     esac |
2363     sort
2364 )
2365     echo
2366
2367     $as_echo "## ----------------- ##
2368 ## Output variables. ##
2369 ## ----------------- ##"
2370     echo
2371     for ac_var in $ac_subst_vars
2372     do
2373       eval ac_val=\$$ac_var
2374       case $ac_val in
2375       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376       esac
2377       $as_echo "$ac_var='\''$ac_val'\''"
2378     done | sort
2379     echo
2380
2381     if test -n "$ac_subst_files"; then
2382       $as_echo "## ------------------- ##
2383 ## File substitutions. ##
2384 ## ------------------- ##"
2385       echo
2386       for ac_var in $ac_subst_files
2387       do
2388         eval ac_val=\$$ac_var
2389         case $ac_val in
2390         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391         esac
2392         $as_echo "$ac_var='\''$ac_val'\''"
2393       done | sort
2394       echo
2395     fi
2396
2397     if test -s confdefs.h; then
2398       $as_echo "## ----------- ##
2399 ## confdefs.h. ##
2400 ## ----------- ##"
2401       echo
2402       cat confdefs.h
2403       echo
2404     fi
2405     test "$ac_signal" != 0 &&
2406       $as_echo "$as_me: caught signal $ac_signal"
2407     $as_echo "$as_me: exit $exit_status"
2408   } >&5
2409   rm -f core *.core core.conftest.* &&
2410     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411     exit $exit_status
2412 ' 0
2413 for ac_signal in 1 2 13 15; do
2414   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415 done
2416 ac_signal=0
2417
2418 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2419 rm -f -r conftest* confdefs.h
2420
2421 $as_echo "/* confdefs.h */" > confdefs.h
2422
2423 # Predefined preprocessor variables.
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_NAME "$PACKAGE_NAME"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_STRING "$PACKAGE_STRING"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_URL "$PACKAGE_URL"
2447 _ACEOF
2448
2449
2450 # Let the site file select an alternate cache file if it wants to.
2451 # Prefer an explicitly selected file to automatically selected ones.
2452 ac_site_file1=NONE
2453 ac_site_file2=NONE
2454 if test -n "$CONFIG_SITE"; then
2455   # We do not want a PATH search for config.site.
2456   case $CONFIG_SITE in #((
2457     -*)  ac_site_file1=./$CONFIG_SITE;;
2458     */*) ac_site_file1=$CONFIG_SITE;;
2459     *)   ac_site_file1=./$CONFIG_SITE;;
2460   esac
2461 elif test "x$prefix" != xNONE; then
2462   ac_site_file1=$prefix/share/config.site
2463   ac_site_file2=$prefix/etc/config.site
2464 else
2465   ac_site_file1=$ac_default_prefix/share/config.site
2466   ac_site_file2=$ac_default_prefix/etc/config.site
2467 fi
2468 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469 do
2470   test "x$ac_site_file" = xNONE && continue
2471   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474     sed 's/^/| /' "$ac_site_file" >&5
2475     . "$ac_site_file" \
2476       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478 as_fn_error $? "failed to load site script $ac_site_file
2479 See \`config.log' for more details" "$LINENO" 5; }
2480   fi
2481 done
2482
2483 if test -r "$cache_file"; then
2484   # Some versions of bash will fail to source /dev/null (special files
2485   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2486   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488 $as_echo "$as_me: loading cache $cache_file" >&6;}
2489     case $cache_file in
2490       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491       *)                      . "./$cache_file";;
2492     esac
2493   fi
2494 else
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496 $as_echo "$as_me: creating cache $cache_file" >&6;}
2497   >$cache_file
2498 fi
2499
2500 # Check that the precious variables saved in the cache have kept the same
2501 # value.
2502 ac_cache_corrupted=false
2503 for ac_var in $ac_precious_vars; do
2504   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505   eval ac_new_set=\$ac_env_${ac_var}_set
2506   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507   eval ac_new_val=\$ac_env_${ac_var}_value
2508   case $ac_old_set,$ac_new_set in
2509     set,)
2510       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512       ac_cache_corrupted=: ;;
2513     ,set)
2514       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516       ac_cache_corrupted=: ;;
2517     ,);;
2518     *)
2519       if test "x$ac_old_val" != "x$ac_new_val"; then
2520         # differences in whitespace do not lead to failure.
2521         ac_old_val_w=`echo x $ac_old_val`
2522         ac_new_val_w=`echo x $ac_new_val`
2523         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526           ac_cache_corrupted=:
2527         else
2528           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530           eval $ac_var=\$ac_old_val
2531         fi
2532         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2533 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2534         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2535 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2536       fi;;
2537   esac
2538   # Pass precious variables to config.status.
2539   if test "$ac_new_set" = set; then
2540     case $ac_new_val in
2541     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542     *) ac_arg=$ac_var=$ac_new_val ;;
2543     esac
2544     case " $ac_configure_args " in
2545       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2546       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547     esac
2548   fi
2549 done
2550 if $ac_cache_corrupted; then
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556 fi
2557 ## -------------------- ##
2558 ## Main body of script. ##
2559 ## -------------------- ##
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575
2576
2577 ac_config_headers="$ac_config_headers config.h"
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 if test -n "$ac_tool_prefix"; then
2585   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2586 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_CC+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   if test -n "$CC"; then
2593   ac_cv_prog_CC="$CC" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     for ac_exec_ext in '' $ac_executable_extensions; do
2601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604     break 2
2605   fi
2606 done
2607   done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 CC=$ac_cv_prog_CC
2613 if test -n "$CC"; then
2614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2615 $as_echo "$CC" >&6; }
2616 else
2617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622 fi
2623 if test -z "$ac_cv_prog_CC"; then
2624   ac_ct_CC=$CC
2625   # Extract the first word of "gcc", so it can be a program name with args.
2626 set dummy gcc; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   if test -n "$ac_ct_CC"; then
2633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640     for ac_exec_ext in '' $ac_executable_extensions; do
2641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642     ac_cv_prog_ac_ct_CC="gcc"
2643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647   done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653 if test -n "$ac_ct_CC"; then
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2655 $as_echo "$ac_ct_CC" >&6; }
2656 else
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661   if test "x$ac_ct_CC" = x; then
2662     CC=""
2663   else
2664     case $cross_compiling:$ac_tool_warned in
2665 yes:)
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2668 ac_tool_warned=yes ;;
2669 esac
2670     CC=$ac_ct_CC
2671   fi
2672 else
2673   CC="$ac_cv_prog_CC"
2674 fi
2675
2676 if test -z "$CC"; then
2677           if test -n "$ac_tool_prefix"; then
2678     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2679 set dummy ${ac_tool_prefix}cc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_CC+:} false; then :
2683   $as_echo_n "(cached) " >&6
2684 else
2685   if test -n "$CC"; then
2686   ac_cv_prog_CC="$CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693     for ac_exec_ext in '' $ac_executable_extensions; do
2694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695     ac_cv_prog_CC="${ac_tool_prefix}cc"
2696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700   done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 CC=$ac_cv_prog_CC
2706 if test -n "$CC"; then
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2708 $as_echo "$CC" >&6; }
2709 else
2710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714
2715   fi
2716 fi
2717 if test -z "$CC"; then
2718   # Extract the first word of "cc", so it can be a program name with args.
2719 set dummy cc; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_CC+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   if test -n "$CC"; then
2726   ac_cv_prog_CC="$CC" # Let the user override the test.
2727 else
2728   ac_prog_rejected=no
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732   IFS=$as_save_IFS
2733   test -z "$as_dir" && as_dir=.
2734     for ac_exec_ext in '' $ac_executable_extensions; do
2735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2737        ac_prog_rejected=yes
2738        continue
2739      fi
2740     ac_cv_prog_CC="cc"
2741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742     break 2
2743   fi
2744 done
2745   done
2746 IFS=$as_save_IFS
2747
2748 if test $ac_prog_rejected = yes; then
2749   # We found a bogon in the path, so make sure we never use it.
2750   set dummy $ac_cv_prog_CC
2751   shift
2752   if test $# != 0; then
2753     # We chose a different compiler from the bogus one.
2754     # However, it has the same basename, so the bogon will be chosen
2755     # first if we set CC to just the basename; use the full file name.
2756     shift
2757     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2758   fi
2759 fi
2760 fi
2761 fi
2762 CC=$ac_cv_prog_CC
2763 if test -n "$CC"; then
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2765 $as_echo "$CC" >&6; }
2766 else
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771
2772 fi
2773 if test -z "$CC"; then
2774   if test -n "$ac_tool_prefix"; then
2775   for ac_prog in cl.exe
2776   do
2777     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_CC+:} false; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   if test -n "$CC"; then
2785   ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792     for ac_exec_ext in '' $ac_executable_extensions; do
2793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799   done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 CC=$ac_cv_prog_CC
2805 if test -n "$CC"; then
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807 $as_echo "$CC" >&6; }
2808 else
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814     test -n "$CC" && break
2815   done
2816 fi
2817 if test -z "$CC"; then
2818   ac_ct_CC=$CC
2819   for ac_prog in cl.exe
2820 do
2821   # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test -n "$ac_ct_CC"; then
2829   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836     for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_prog_ac_ct_CC="$ac_prog"
2839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843   done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851 $as_echo "$ac_ct_CC" >&6; }
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 fi
2856
2857
2858   test -n "$ac_ct_CC" && break
2859 done
2860
2861   if test "x$ac_ct_CC" = x; then
2862     CC=""
2863   else
2864     case $cross_compiling:$ac_tool_warned in
2865 yes:)
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868 ac_tool_warned=yes ;;
2869 esac
2870     CC=$ac_ct_CC
2871   fi
2872 fi
2873
2874 fi
2875
2876
2877 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 as_fn_error $? "no acceptable C compiler found in \$PATH
2880 See \`config.log' for more details" "$LINENO" 5; }
2881
2882 # Provide some information about the compiler.
2883 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2884 set X $ac_compile
2885 ac_compiler=$2
2886 for ac_option in --version -v -V -qversion; do
2887   { { ac_try="$ac_compiler $ac_option >&5"
2888 case "(($ac_try" in
2889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890   *) ac_try_echo=$ac_try;;
2891 esac
2892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2895   ac_status=$?
2896   if test -s conftest.err; then
2897     sed '10a\
2898 ... rest of stderr output deleted ...
2899          10q' conftest.err >conftest.er1
2900     cat conftest.er1 >&5
2901   fi
2902   rm -f conftest.er1 conftest.err
2903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904   test $ac_status = 0; }
2905 done
2906
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h.  */
2909
2910 int
2911 main ()
2912 {
2913
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 ac_clean_files_save=$ac_clean_files
2919 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2920 # Try to create an executable without -o first, disregard a.out.
2921 # It will help us diagnose broken compilers, and finding out an intuition
2922 # of exeext.
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2924 $as_echo_n "checking whether the C compiler works... " >&6; }
2925 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2926
2927 # The possible output files:
2928 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2929
2930 ac_rmfiles=
2931 for ac_file in $ac_files
2932 do
2933   case $ac_file in
2934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2935     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2936   esac
2937 done
2938 rm -f $ac_rmfiles
2939
2940 if { { ac_try="$ac_link_default"
2941 case "(($ac_try" in
2942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943   *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947   (eval "$ac_link_default") 2>&5
2948   ac_status=$?
2949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950   test $ac_status = 0; }; then :
2951   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2952 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2953 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2954 # so that the user can short-circuit this test for compilers unknown to
2955 # Autoconf.
2956 for ac_file in $ac_files ''
2957 do
2958   test -f "$ac_file" || continue
2959   case $ac_file in
2960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2961         ;;
2962     [ab].out )
2963         # We found the default executable, but exeext='' is most
2964         # certainly right.
2965         break;;
2966     *.* )
2967         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2968         then :; else
2969            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2970         fi
2971         # We set ac_cv_exeext here because the later test for it is not
2972         # safe: cross compilers may not add the suffix if given an `-o'
2973         # argument, so we may need to know it at that point already.
2974         # Even if this section looks crufty: it has the advantage of
2975         # actually working.
2976         break;;
2977     * )
2978         break;;
2979   esac
2980 done
2981 test "$ac_cv_exeext" = no && ac_cv_exeext=
2982
2983 else
2984   ac_file=''
2985 fi
2986 if test -z "$ac_file"; then :
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error 77 "C compiler cannot create executables
2995 See \`config.log' for more details" "$LINENO" 5; }
2996 else
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3001 $as_echo_n "checking for C compiler default output file name... " >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3003 $as_echo "$ac_file" >&6; }
3004 ac_exeext=$ac_cv_exeext
3005
3006 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3007 ac_clean_files=$ac_clean_files_save
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3009 $as_echo_n "checking for suffix of executables... " >&6; }
3010 if { { ac_try="$ac_link"
3011 case "(($ac_try" in
3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013   *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017   (eval "$ac_link") 2>&5
3018   ac_status=$?
3019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020   test $ac_status = 0; }; then :
3021   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3022 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3023 # work properly (i.e., refer to `conftest.exe'), while it won't with
3024 # `rm'.
3025 for ac_file in conftest.exe conftest conftest.*; do
3026   test -f "$ac_file" || continue
3027   case $ac_file in
3028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3029     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030           break;;
3031     * ) break;;
3032   esac
3033 done
3034 else
3035   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3038 See \`config.log' for more details" "$LINENO" 5; }
3039 fi
3040 rm -f conftest conftest$ac_cv_exeext
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3042 $as_echo "$ac_cv_exeext" >&6; }
3043
3044 rm -f conftest.$ac_ext
3045 EXEEXT=$ac_cv_exeext
3046 ac_exeext=$EXEEXT
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h.  */
3049 #include <stdio.h>
3050 int
3051 main ()
3052 {
3053 FILE *f = fopen ("conftest.out", "w");
3054  return ferror (f) || fclose (f) != 0;
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 ac_clean_files="$ac_clean_files conftest.out"
3061 # Check that the compiler produces executables we can run.  If not, either
3062 # the compiler is broken, or we cross compile.
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3064 $as_echo_n "checking whether we are cross compiling... " >&6; }
3065 if test "$cross_compiling" != yes; then
3066   { { ac_try="$ac_link"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073   (eval "$ac_link") 2>&5
3074   ac_status=$?
3075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076   test $ac_status = 0; }
3077   if { ac_try='./conftest$ac_cv_exeext'
3078   { { case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087   test $ac_status = 0; }; }; then
3088     cross_compiling=no
3089   else
3090     if test "$cross_compiling" = maybe; then
3091         cross_compiling=yes
3092     else
3093         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "cannot run C compiled programs.
3096 If you meant to cross compile, use \`--host'.
3097 See \`config.log' for more details" "$LINENO" 5; }
3098     fi
3099   fi
3100 fi
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3102 $as_echo "$cross_compiling" >&6; }
3103
3104 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3105 ac_clean_files=$ac_clean_files_save
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3107 $as_echo_n "checking for suffix of object files... " >&6; }
3108 if ${ac_cv_objext+:} false; then :
3109   $as_echo_n "(cached) " >&6
3110 else
3111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.o conftest.obj
3123 if { { ac_try="$ac_compile"
3124 case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130   (eval "$ac_compile") 2>&5
3131   ac_status=$?
3132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133   test $ac_status = 0; }; then :
3134   for ac_file in conftest.o conftest.obj conftest.*; do
3135   test -f "$ac_file" || continue;
3136   case $ac_file in
3137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3138     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3139        break;;
3140   esac
3141 done
3142 else
3143   $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "cannot compute suffix of object files: cannot compile
3149 See \`config.log' for more details" "$LINENO" 5; }
3150 fi
3151 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3152 fi
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3154 $as_echo "$ac_cv_objext" >&6; }
3155 OBJEXT=$ac_cv_objext
3156 ac_objext=$OBJEXT
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3158 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3159 if ${ac_cv_c_compiler_gnu+:} false; then :
3160   $as_echo_n "(cached) " >&6
3161 else
3162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h.  */
3164
3165 int
3166 main ()
3167 {
3168 #ifndef __GNUC__
3169        choke me
3170 #endif
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 if ac_fn_c_try_compile "$LINENO"; then :
3177   ac_compiler_gnu=yes
3178 else
3179   ac_compiler_gnu=no
3180 fi
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3183
3184 fi
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3186 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3187 if test $ac_compiler_gnu = yes; then
3188   GCC=yes
3189 else
3190   GCC=
3191 fi
3192 ac_test_CFLAGS=${CFLAGS+set}
3193 ac_save_CFLAGS=$CFLAGS
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3195 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3196 if ${ac_cv_prog_cc_g+:} false; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   ac_save_c_werror_flag=$ac_c_werror_flag
3200    ac_c_werror_flag=yes
3201    ac_cv_prog_cc_g=no
3202    CFLAGS="-g"
3203    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h.  */
3205
3206 int
3207 main ()
3208 {
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 if ac_fn_c_try_compile "$LINENO"; then :
3215   ac_cv_prog_cc_g=yes
3216 else
3217   CFLAGS=""
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
3231 else
3232   ac_c_werror_flag=$ac_save_c_werror_flag
3233          CFLAGS="-g"
3234          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 if ac_fn_c_try_compile "$LINENO"; then :
3246   ac_cv_prog_cc_g=yes
3247 fi
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 fi
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253    ac_c_werror_flag=$ac_save_c_werror_flag
3254 fi
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3256 $as_echo "$ac_cv_prog_cc_g" >&6; }
3257 if test "$ac_test_CFLAGS" = set; then
3258   CFLAGS=$ac_save_CFLAGS
3259 elif test $ac_cv_prog_cc_g = yes; then
3260   if test "$GCC" = yes; then
3261     CFLAGS="-g -O2"
3262   else
3263     CFLAGS="-g"
3264   fi
3265 else
3266   if test "$GCC" = yes; then
3267     CFLAGS="-O2"
3268   else
3269     CFLAGS=
3270   fi
3271 fi
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3273 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3274 if ${ac_cv_prog_cc_c89+:} false; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   ac_cv_prog_cc_c89=no
3278 ac_save_CC=$CC
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h.  */
3281 #include <stdarg.h>
3282 #include <stdio.h>
3283 #include <sys/types.h>
3284 #include <sys/stat.h>
3285 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3286 struct buf { int x; };
3287 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3288 static char *e (p, i)
3289      char **p;
3290      int i;
3291 {
3292   return p[i];
3293 }
3294 static char *f (char * (*g) (char **, int), char **p, ...)
3295 {
3296   char *s;
3297   va_list v;
3298   va_start (v,p);
3299   s = g (p, va_arg (v,int));
3300   va_end (v);
3301   return s;
3302 }
3303
3304 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3305    function prototypes and stuff, but not '\xHH' hex character constants.
3306    These don't provoke an error unfortunately, instead are silently treated
3307    as 'x'.  The following induces an error, until -std is added to get
3308    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3309    array size at least.  It's necessary to write '\x00'==0 to get something
3310    that's true only with -std.  */
3311 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312
3313 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3314    inside strings and character constants.  */
3315 #define FOO(x) 'x'
3316 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317
3318 int test (int i, double x);
3319 struct s1 {int (*f) (int a);};
3320 struct s2 {int (*f) (double a);};
3321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3322 int argc;
3323 char **argv;
3324 int
3325 main ()
3326 {
3327 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3328   ;
3329   return 0;
3330 }
3331 _ACEOF
3332 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3333         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 do
3335   CC="$ac_save_CC $ac_arg"
3336   if ac_fn_c_try_compile "$LINENO"; then :
3337   ac_cv_prog_cc_c89=$ac_arg
3338 fi
3339 rm -f core conftest.err conftest.$ac_objext
3340   test "x$ac_cv_prog_cc_c89" != "xno" && break
3341 done
3342 rm -f conftest.$ac_ext
3343 CC=$ac_save_CC
3344
3345 fi
3346 # AC_CACHE_VAL
3347 case "x$ac_cv_prog_cc_c89" in
3348   x)
3349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3350 $as_echo "none needed" >&6; } ;;
3351   xno)
3352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3353 $as_echo "unsupported" >&6; } ;;
3354   *)
3355     CC="$CC $ac_cv_prog_cc_c89"
3356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3357 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3358 esac
3359 if test "x$ac_cv_prog_cc_c89" != xno; then :
3360
3361 fi
3362
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368
3369 ac_aux_dir=
3370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3371   if test -f "$ac_dir/install-sh"; then
3372     ac_aux_dir=$ac_dir
3373     ac_install_sh="$ac_aux_dir/install-sh -c"
3374     break
3375   elif test -f "$ac_dir/install.sh"; then
3376     ac_aux_dir=$ac_dir
3377     ac_install_sh="$ac_aux_dir/install.sh -c"
3378     break
3379   elif test -f "$ac_dir/shtool"; then
3380     ac_aux_dir=$ac_dir
3381     ac_install_sh="$ac_aux_dir/shtool install -c"
3382     break
3383   fi
3384 done
3385 if test -z "$ac_aux_dir"; then
3386   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3387 fi
3388
3389 # These three variables are undocumented and unsupported,
3390 # and are intended to be withdrawn in a future Autoconf release.
3391 # They can cause serious problems if a builder's source tree is in a directory
3392 # whose full name contains unusual characters.
3393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3395 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3396
3397
3398 # Make sure we can run config.sub.
3399 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3400   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3403 $as_echo_n "checking build system type... " >&6; }
3404 if ${ac_cv_build+:} false; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407   ac_build_alias=$build_alias
3408 test "x$ac_build_alias" = x &&
3409   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3410 test "x$ac_build_alias" = x &&
3411   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3412 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3413   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3414
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3417 $as_echo "$ac_cv_build" >&6; }
3418 case $ac_cv_build in
3419 *-*-*) ;;
3420 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3421 esac
3422 build=$ac_cv_build
3423 ac_save_IFS=$IFS; IFS='-'
3424 set x $ac_cv_build
3425 shift
3426 build_cpu=$1
3427 build_vendor=$2
3428 shift; shift
3429 # Remember, the first character of IFS is used to create $*,
3430 # except with old shells:
3431 build_os=$*
3432 IFS=$ac_save_IFS
3433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3434
3435
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3437 $as_echo_n "checking host system type... " >&6; }
3438 if ${ac_cv_host+:} false; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441   if test "x$host_alias" = x; then
3442   ac_cv_host=$ac_cv_build
3443 else
3444   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3445     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3446 fi
3447
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3450 $as_echo "$ac_cv_host" >&6; }
3451 case $ac_cv_host in
3452 *-*-*) ;;
3453 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3454 esac
3455 host=$ac_cv_host
3456 ac_save_IFS=$IFS; IFS='-'
3457 set x $ac_cv_host
3458 shift
3459 host_cpu=$1
3460 host_vendor=$2
3461 shift; shift
3462 # Remember, the first character of IFS is used to create $*,
3463 # except with old shells:
3464 host_os=$*
3465 IFS=$ac_save_IFS
3466 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3467
3468
3469
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3477 # On Suns, sometimes $CPP names a directory.
3478 if test -n "$CPP" && test -d "$CPP"; then
3479   CPP=
3480 fi
3481 if test -z "$CPP"; then
3482   if ${ac_cv_prog_CPP+:} false; then :
3483   $as_echo_n "(cached) " >&6
3484 else
3485       # Double quotes because CPP needs to be expanded
3486     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3487     do
3488       ac_preproc_ok=false
3489 for ac_c_preproc_warn_flag in '' yes
3490 do
3491   # Use a header file that comes with gcc, so configuring glibc
3492   # with a fresh cross-compiler works.
3493   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3494   # <limits.h> exists even on freestanding compilers.
3495   # On the NeXT, cc -E runs the code through the compiler's parser,
3496   # not just through cpp. "Syntax error" is here to catch this case.
3497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h.  */
3499 #ifdef __STDC__
3500 # include <limits.h>
3501 #else
3502 # include <assert.h>
3503 #endif
3504                      Syntax error
3505 _ACEOF
3506 if ac_fn_c_try_cpp "$LINENO"; then :
3507
3508 else
3509   # Broken: fails on valid input.
3510 continue
3511 fi
3512 rm -f conftest.err conftest.i conftest.$ac_ext
3513
3514   # OK, works on sane cases.  Now check whether nonexistent headers
3515   # can be detected and how.
3516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518 #include <ac_nonexistent.h>
3519 _ACEOF
3520 if ac_fn_c_try_cpp "$LINENO"; then :
3521   # Broken: success on invalid input.
3522 continue
3523 else
3524   # Passes both tests.
3525 ac_preproc_ok=:
3526 break
3527 fi
3528 rm -f conftest.err conftest.i conftest.$ac_ext
3529
3530 done
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.i conftest.err conftest.$ac_ext
3533 if $ac_preproc_ok; then :
3534   break
3535 fi
3536
3537     done
3538     ac_cv_prog_CPP=$CPP
3539
3540 fi
3541   CPP=$ac_cv_prog_CPP
3542 else
3543   ac_cv_prog_CPP=$CPP
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3546 $as_echo "$CPP" >&6; }
3547 ac_preproc_ok=false
3548 for ac_c_preproc_warn_flag in '' yes
3549 do
3550   # Use a header file that comes with gcc, so configuring glibc
3551   # with a fresh cross-compiler works.
3552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553   # <limits.h> exists even on freestanding compilers.
3554   # On the NeXT, cc -E runs the code through the compiler's parser,
3555   # not just through cpp. "Syntax error" is here to catch this case.
3556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558 #ifdef __STDC__
3559 # include <limits.h>
3560 #else
3561 # include <assert.h>
3562 #endif
3563                      Syntax error
3564 _ACEOF
3565 if ac_fn_c_try_cpp "$LINENO"; then :
3566
3567 else
3568   # Broken: fails on valid input.
3569 continue
3570 fi
3571 rm -f conftest.err conftest.i conftest.$ac_ext
3572
3573   # OK, works on sane cases.  Now check whether nonexistent headers
3574   # can be detected and how.
3575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577 #include <ac_nonexistent.h>
3578 _ACEOF
3579 if ac_fn_c_try_cpp "$LINENO"; then :
3580   # Broken: success on invalid input.
3581 continue
3582 else
3583   # Passes both tests.
3584 ac_preproc_ok=:
3585 break
3586 fi
3587 rm -f conftest.err conftest.i conftest.$ac_ext
3588
3589 done
3590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3591 rm -f conftest.i conftest.err conftest.$ac_ext
3592 if $ac_preproc_ok; then :
3593
3594 else
3595   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3598 See \`config.log' for more details" "$LINENO" 5; }
3599 fi
3600
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606
3607
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3610 if ${ac_cv_path_GREP+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   if test -z "$GREP"; then
3614   ac_path_GREP_found=false
3615   # Loop through the user's path and test for each of PROGNAME-LIST
3616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3618 do
3619   IFS=$as_save_IFS
3620   test -z "$as_dir" && as_dir=.
3621     for ac_prog in grep ggrep; do
3622     for ac_exec_ext in '' $ac_executable_extensions; do
3623       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3624       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3625 # Check for GNU ac_path_GREP and select it if it is found.
3626   # Check for GNU $ac_path_GREP
3627 case `"$ac_path_GREP" --version 2>&1` in
3628 *GNU*)
3629   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3630 *)
3631   ac_count=0
3632   $as_echo_n 0123456789 >"conftest.in"
3633   while :
3634   do
3635     cat "conftest.in" "conftest.in" >"conftest.tmp"
3636     mv "conftest.tmp" "conftest.in"
3637     cp "conftest.in" "conftest.nl"
3638     $as_echo 'GREP' >> "conftest.nl"
3639     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641     as_fn_arith $ac_count + 1 && ac_count=$as_val
3642     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3643       # Best one so far, save it but keep looking for a better one
3644       ac_cv_path_GREP="$ac_path_GREP"
3645       ac_path_GREP_max=$ac_count
3646     fi
3647     # 10*(2^10) chars as input seems more than enough
3648     test $ac_count -gt 10 && break
3649   done
3650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651 esac
3652
3653       $ac_path_GREP_found && break 3
3654     done
3655   done
3656   done
3657 IFS=$as_save_IFS
3658   if test -z "$ac_cv_path_GREP"; then
3659     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3660   fi
3661 else
3662   ac_cv_path_GREP=$GREP
3663 fi
3664
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3667 $as_echo "$ac_cv_path_GREP" >&6; }
3668  GREP="$ac_cv_path_GREP"
3669
3670
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3672 $as_echo_n "checking for egrep... " >&6; }
3673 if ${ac_cv_path_EGREP+:} false; then :
3674   $as_echo_n "(cached) " >&6
3675 else
3676   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3677    then ac_cv_path_EGREP="$GREP -E"
3678    else
3679      if test -z "$EGREP"; then
3680   ac_path_EGREP_found=false
3681   # Loop through the user's path and test for each of PROGNAME-LIST
3682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687     for ac_prog in egrep; do
3688     for ac_exec_ext in '' $ac_executable_extensions; do
3689       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3690       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3691 # Check for GNU ac_path_EGREP and select it if it is found.
3692   # Check for GNU $ac_path_EGREP
3693 case `"$ac_path_EGREP" --version 2>&1` in
3694 *GNU*)
3695   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3696 *)
3697   ac_count=0
3698   $as_echo_n 0123456789 >"conftest.in"
3699   while :
3700   do
3701     cat "conftest.in" "conftest.in" >"conftest.tmp"
3702     mv "conftest.tmp" "conftest.in"
3703     cp "conftest.in" "conftest.nl"
3704     $as_echo 'EGREP' >> "conftest.nl"
3705     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707     as_fn_arith $ac_count + 1 && ac_count=$as_val
3708     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3709       # Best one so far, save it but keep looking for a better one
3710       ac_cv_path_EGREP="$ac_path_EGREP"
3711       ac_path_EGREP_max=$ac_count
3712     fi
3713     # 10*(2^10) chars as input seems more than enough
3714     test $ac_count -gt 10 && break
3715   done
3716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717 esac
3718
3719       $ac_path_EGREP_found && break 3
3720     done
3721   done
3722   done
3723 IFS=$as_save_IFS
3724   if test -z "$ac_cv_path_EGREP"; then
3725     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3726   fi
3727 else
3728   ac_cv_path_EGREP=$EGREP
3729 fi
3730
3731    fi
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3734 $as_echo "$ac_cv_path_EGREP" >&6; }
3735  EGREP="$ac_cv_path_EGREP"
3736
3737
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3739 $as_echo_n "checking for ANSI C header files... " >&6; }
3740 if ${ac_cv_header_stdc+:} false; then :
3741   $as_echo_n "(cached) " >&6
3742 else
3743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h.  */
3745 #include <stdlib.h>
3746 #include <stdarg.h>
3747 #include <string.h>
3748 #include <float.h>
3749
3750 int
3751 main ()
3752 {
3753
3754   ;
3755   return 0;
3756 }
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759   ac_cv_header_stdc=yes
3760 else
3761   ac_cv_header_stdc=no
3762 fi
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764
3765 if test $ac_cv_header_stdc = yes; then
3766   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769 #include <string.h>
3770
3771 _ACEOF
3772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773   $EGREP "memchr" >/dev/null 2>&1; then :
3774
3775 else
3776   ac_cv_header_stdc=no
3777 fi
3778 rm -f conftest*
3779
3780 fi
3781
3782 if test $ac_cv_header_stdc = yes; then
3783   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h.  */
3786 #include <stdlib.h>
3787
3788 _ACEOF
3789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790   $EGREP "free" >/dev/null 2>&1; then :
3791
3792 else
3793   ac_cv_header_stdc=no
3794 fi
3795 rm -f conftest*
3796
3797 fi
3798
3799 if test $ac_cv_header_stdc = yes; then
3800   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3801   if test "$cross_compiling" = yes; then :
3802   :
3803 else
3804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806 #include <ctype.h>
3807 #include <stdlib.h>
3808 #if ((' ' & 0x0FF) == 0x020)
3809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3811 #else
3812 # define ISLOWER(c) \
3813                    (('a' <= (c) && (c) <= 'i') \
3814                      || ('j' <= (c) && (c) <= 'r') \
3815                      || ('s' <= (c) && (c) <= 'z'))
3816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3817 #endif
3818
3819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3820 int
3821 main ()
3822 {
3823   int i;
3824   for (i = 0; i < 256; i++)
3825     if (XOR (islower (i), ISLOWER (i))
3826         || toupper (i) != TOUPPER (i))
3827       return 2;
3828   return 0;
3829 }
3830 _ACEOF
3831 if ac_fn_c_try_run "$LINENO"; then :
3832
3833 else
3834   ac_cv_header_stdc=no
3835 fi
3836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3837   conftest.$ac_objext conftest.beam conftest.$ac_ext
3838 fi
3839
3840 fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3843 $as_echo "$ac_cv_header_stdc" >&6; }
3844 if test $ac_cv_header_stdc = yes; then
3845
3846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3847
3848 fi
3849
3850 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3852                   inttypes.h stdint.h unistd.h
3853 do :
3854   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3855 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3856 "
3857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3858   cat >>confdefs.h <<_ACEOF
3859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3860 _ACEOF
3861
3862 fi
3863
3864 done
3865
3866
3867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3868 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3869 if ${ac_cv_c_bigendian+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   ac_cv_c_bigendian=unknown
3873     # See if we're dealing with a universal compiler.
3874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h.  */
3876 #ifndef __APPLE_CC__
3877                not a universal capable compiler
3878              #endif
3879              typedef int dummy;
3880
3881 _ACEOF
3882 if ac_fn_c_try_compile "$LINENO"; then :
3883
3884         # Check for potential -arch flags.  It is not universal unless
3885         # there are at least two -arch flags with different values.
3886         ac_arch=
3887         ac_prev=
3888         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3889          if test -n "$ac_prev"; then
3890            case $ac_word in
3891              i?86 | x86_64 | ppc | ppc64)
3892                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3893                  ac_arch=$ac_word
3894                else
3895                  ac_cv_c_bigendian=universal
3896                  break
3897                fi
3898                ;;
3899            esac
3900            ac_prev=
3901          elif test "x$ac_word" = "x-arch"; then
3902            ac_prev=arch
3903          fi
3904        done
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907     if test $ac_cv_c_bigendian = unknown; then
3908       # See if sys/param.h defines the BYTE_ORDER macro.
3909       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h.  */
3911 #include <sys/types.h>
3912              #include <sys/param.h>
3913
3914 int
3915 main ()
3916 {
3917 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3918                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3919                      && LITTLE_ENDIAN)
3920               bogus endian macros
3921              #endif
3922
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"; then :
3928   # It does; now see whether it defined to BIG_ENDIAN or not.
3929          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931 #include <sys/types.h>
3932                 #include <sys/param.h>
3933
3934 int
3935 main ()
3936 {
3937 #if BYTE_ORDER != BIG_ENDIAN
3938                  not big endian
3939                 #endif
3940
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946   ac_cv_c_bigendian=yes
3947 else
3948   ac_cv_c_bigendian=no
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 fi
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953     fi
3954     if test $ac_cv_c_bigendian = unknown; then
3955       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3956       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958 #include <limits.h>
3959
3960 int
3961 main ()
3962 {
3963 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3964               bogus endian macros
3965              #endif
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972   # It does; now see whether it defined to _BIG_ENDIAN or not.
3973          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h.  */
3975 #include <limits.h>
3976
3977 int
3978 main ()
3979 {
3980 #ifndef _BIG_ENDIAN
3981                  not big endian
3982                 #endif
3983
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989   ac_cv_c_bigendian=yes
3990 else
3991   ac_cv_c_bigendian=no
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996     fi
3997     if test $ac_cv_c_bigendian = unknown; then
3998       # Compile a test program.
3999       if test "$cross_compiling" = yes; then :
4000   # Try to guess by grepping values from an object file.
4001          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003 short int ascii_mm[] =
4004                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4005                 short int ascii_ii[] =
4006                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4007                 int use_ascii (int i) {
4008                   return ascii_mm[i] + ascii_ii[i];
4009                 }
4010                 short int ebcdic_ii[] =
4011                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4012                 short int ebcdic_mm[] =
4013                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4014                 int use_ebcdic (int i) {
4015                   return ebcdic_mm[i] + ebcdic_ii[i];
4016                 }
4017                 extern int foo;
4018
4019 int
4020 main ()
4021 {
4022 return use_ascii (foo) == use_ebcdic (foo);
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4029               ac_cv_c_bigendian=yes
4030             fi
4031             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4032               if test "$ac_cv_c_bigendian" = unknown; then
4033                 ac_cv_c_bigendian=no
4034               else
4035                 # finding both strings is unlikely to happen, but who knows?
4036                 ac_cv_c_bigendian=unknown
4037               fi
4038             fi
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 else
4042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h.  */
4044 $ac_includes_default
4045 int
4046 main ()
4047 {
4048
4049              /* Are we little or big endian?  From Harbison&Steele.  */
4050              union
4051              {
4052                long int l;
4053                char c[sizeof (long int)];
4054              } u;
4055              u.l = 1;
4056              return u.c[sizeof (long int) - 1] == 1;
4057
4058   ;
4059   return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_run "$LINENO"; then :
4063   ac_cv_c_bigendian=no
4064 else
4065   ac_cv_c_bigendian=yes
4066 fi
4067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4068   conftest.$ac_objext conftest.beam conftest.$ac_ext
4069 fi
4070
4071     fi
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4074 $as_echo "$ac_cv_c_bigendian" >&6; }
4075  case $ac_cv_c_bigendian in #(
4076    yes)
4077      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4078 ;; #(
4079    no)
4080       ;; #(
4081    universal)
4082
4083 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4084
4085      ;; #(
4086    *)
4087      as_fn_error $? "unknown endianness
4088  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4089  esac
4090
4091
4092 # Checks for programs.
4093 for ac_prog in gawk mawk nawk awk
4094 do
4095   # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy $ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_AWK+:} false; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   if test -n "$AWK"; then
4103   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110     for ac_exec_ext in '' $ac_executable_extensions; do
4111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112     ac_cv_prog_AWK="$ac_prog"
4113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117   done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 AWK=$ac_cv_prog_AWK
4123 if test -n "$AWK"; then
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4125 $as_echo "$AWK" >&6; }
4126 else
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131
4132   test -n "$AWK" && break
4133 done
4134
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4141 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4142 # On Suns, sometimes $CPP names a directory.
4143 if test -n "$CPP" && test -d "$CPP"; then
4144   CPP=
4145 fi
4146 if test -z "$CPP"; then
4147   if ${ac_cv_prog_CPP+:} false; then :
4148   $as_echo_n "(cached) " >&6
4149 else
4150       # Double quotes because CPP needs to be expanded
4151     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4152     do
4153       ac_preproc_ok=false
4154 for ac_c_preproc_warn_flag in '' yes
4155 do
4156   # Use a header file that comes with gcc, so configuring glibc
4157   # with a fresh cross-compiler works.
4158   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159   # <limits.h> exists even on freestanding compilers.
4160   # On the NeXT, cc -E runs the code through the compiler's parser,
4161   # not just through cpp. "Syntax error" is here to catch this case.
4162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h.  */
4164 #ifdef __STDC__
4165 # include <limits.h>
4166 #else
4167 # include <assert.h>
4168 #endif
4169                      Syntax error
4170 _ACEOF
4171 if ac_fn_c_try_cpp "$LINENO"; then :
4172
4173 else
4174   # Broken: fails on valid input.
4175 continue
4176 fi
4177 rm -f conftest.err conftest.i conftest.$ac_ext
4178
4179   # OK, works on sane cases.  Now check whether nonexistent headers
4180   # can be detected and how.
4181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183 #include <ac_nonexistent.h>
4184 _ACEOF
4185 if ac_fn_c_try_cpp "$LINENO"; then :
4186   # Broken: success on invalid input.
4187 continue
4188 else
4189   # Passes both tests.
4190 ac_preproc_ok=:
4191 break
4192 fi
4193 rm -f conftest.err conftest.i conftest.$ac_ext
4194
4195 done
4196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 rm -f conftest.i conftest.err conftest.$ac_ext
4198 if $ac_preproc_ok; then :
4199   break
4200 fi
4201
4202     done
4203     ac_cv_prog_CPP=$CPP
4204
4205 fi
4206   CPP=$ac_cv_prog_CPP
4207 else
4208   ac_cv_prog_CPP=$CPP
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4211 $as_echo "$CPP" >&6; }
4212 ac_preproc_ok=false
4213 for ac_c_preproc_warn_flag in '' yes
4214 do
4215   # Use a header file that comes with gcc, so configuring glibc
4216   # with a fresh cross-compiler works.
4217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218   # <limits.h> exists even on freestanding compilers.
4219   # On the NeXT, cc -E runs the code through the compiler's parser,
4220   # not just through cpp. "Syntax error" is here to catch this case.
4221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h.  */
4223 #ifdef __STDC__
4224 # include <limits.h>
4225 #else
4226 # include <assert.h>
4227 #endif
4228                      Syntax error
4229 _ACEOF
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4231
4232 else
4233   # Broken: fails on valid input.
4234 continue
4235 fi
4236 rm -f conftest.err conftest.i conftest.$ac_ext
4237
4238   # OK, works on sane cases.  Now check whether nonexistent headers
4239   # can be detected and how.
4240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h.  */
4242 #include <ac_nonexistent.h>
4243 _ACEOF
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4245   # Broken: success on invalid input.
4246 continue
4247 else
4248   # Passes both tests.
4249 ac_preproc_ok=:
4250 break
4251 fi
4252 rm -f conftest.err conftest.i conftest.$ac_ext
4253
4254 done
4255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256 rm -f conftest.i conftest.err conftest.$ac_ext
4257 if $ac_preproc_ok; then :
4258
4259 else
4260   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4263 See \`config.log' for more details" "$LINENO" 5; }
4264 fi
4265
4266 ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272 if test -n "$ac_tool_prefix"; then
4273   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_prog_RANLIB+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -n "$RANLIB"; then
4281   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288     for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295   done
4296 IFS=$as_save_IFS
4297
4298 fi
4299 fi
4300 RANLIB=$ac_cv_prog_RANLIB
4301 if test -n "$RANLIB"; then
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4303 $as_echo "$RANLIB" >&6; }
4304 else
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 fi
4308
4309
4310 fi
4311 if test -z "$ac_cv_prog_RANLIB"; then
4312   ac_ct_RANLIB=$RANLIB
4313   # Extract the first word of "ranlib", so it can be a program name with args.
4314 set dummy ranlib; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -n "$ac_ct_RANLIB"; then
4321   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328     for ac_exec_ext in '' $ac_executable_extensions; do
4329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330     ac_cv_prog_ac_ct_RANLIB="ranlib"
4331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332     break 2
4333   fi
4334 done
4335   done
4336 IFS=$as_save_IFS
4337
4338 fi
4339 fi
4340 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4341 if test -n "$ac_ct_RANLIB"; then
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4343 $as_echo "$ac_ct_RANLIB" >&6; }
4344 else
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4347 fi
4348
4349   if test "x$ac_ct_RANLIB" = x; then
4350     RANLIB=":"
4351   else
4352     case $cross_compiling:$ac_tool_warned in
4353 yes:)
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4356 ac_tool_warned=yes ;;
4357 esac
4358     RANLIB=$ac_ct_RANLIB
4359   fi
4360 else
4361   RANLIB="$ac_cv_prog_RANLIB"
4362 fi
4363
4364 # Find a good install program.  We prefer a C program (faster),
4365 # so one script is as good as another.  But avoid the broken or
4366 # incompatible versions:
4367 # SysV /etc/install, /usr/sbin/install
4368 # SunOS /usr/etc/install
4369 # IRIX /sbin/install
4370 # AIX /bin/install
4371 # AmigaOS /C/install, which installs bootblocks on floppy discs
4372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4375 # OS/2's system install, which has a completely different semantic
4376 # ./install, which can be erroneously created by make from ./install.sh.
4377 # Reject install programs that cannot install multiple files.
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4380 if test -z "$INSTALL"; then
4381 if ${ac_cv_path_install+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389     # Account for people who put trailing slashes in PATH elements.
4390 case $as_dir/ in #((
4391   ./ | .// | /[cC]/* | \
4392   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4393   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4394   /usr/ucb/* ) ;;
4395   *)
4396     # OSF1 and SCO ODT 3.0 have their own names for install.
4397     # Don't use installbsd from OSF since it installs stuff as root
4398     # by default.
4399     for ac_prog in ginstall scoinst install; do
4400       for ac_exec_ext in '' $ac_executable_extensions; do
4401         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4402           if test $ac_prog = install &&
4403             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4404             # AIX install.  It has an incompatible calling convention.
4405             :
4406           elif test $ac_prog = install &&
4407             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4408             # program-specific install script used by HP pwplus--don't use.
4409             :
4410           else
4411             rm -rf conftest.one conftest.two conftest.dir
4412             echo one > conftest.one
4413             echo two > conftest.two
4414             mkdir conftest.dir
4415             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4416               test -s conftest.one && test -s conftest.two &&
4417               test -s conftest.dir/conftest.one &&
4418               test -s conftest.dir/conftest.two
4419             then
4420               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4421               break 3
4422             fi
4423           fi
4424         fi
4425       done
4426     done
4427     ;;
4428 esac
4429
4430   done
4431 IFS=$as_save_IFS
4432
4433 rm -rf conftest.one conftest.two conftest.dir
4434
4435 fi
4436   if test "${ac_cv_path_install+set}" = set; then
4437     INSTALL=$ac_cv_path_install
4438   else
4439     # As a last resort, use the slow shell script.  Don't cache a
4440     # value for INSTALL within a source directory, because that will
4441     # break other packages using the cache if that directory is
4442     # removed, or if the value is a relative name.
4443     INSTALL=$ac_install_sh
4444   fi
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4447 $as_echo "$INSTALL" >&6; }
4448
4449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4450 # It thinks the first close brace ends the variable substitution.
4451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4452
4453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4454
4455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4458 $as_echo_n "checking for egrep... " >&6; }
4459 if ${ac_cv_path_EGREP+:} false; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4463    then ac_cv_path_EGREP="$GREP -E"
4464    else
4465      if test -z "$EGREP"; then
4466   ac_path_EGREP_found=false
4467   # Loop through the user's path and test for each of PROGNAME-LIST
4468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473     for ac_prog in egrep; do
4474     for ac_exec_ext in '' $ac_executable_extensions; do
4475       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4476       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4477 # Check for GNU ac_path_EGREP and select it if it is found.
4478   # Check for GNU $ac_path_EGREP
4479 case `"$ac_path_EGREP" --version 2>&1` in
4480 *GNU*)
4481   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4482 *)
4483   ac_count=0
4484   $as_echo_n 0123456789 >"conftest.in"
4485   while :
4486   do
4487     cat "conftest.in" "conftest.in" >"conftest.tmp"
4488     mv "conftest.tmp" "conftest.in"
4489     cp "conftest.in" "conftest.nl"
4490     $as_echo 'EGREP' >> "conftest.nl"
4491     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4492     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4493     as_fn_arith $ac_count + 1 && ac_count=$as_val
4494     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4495       # Best one so far, save it but keep looking for a better one
4496       ac_cv_path_EGREP="$ac_path_EGREP"
4497       ac_path_EGREP_max=$ac_count
4498     fi
4499     # 10*(2^10) chars as input seems more than enough
4500     test $ac_count -gt 10 && break
4501   done
4502   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4503 esac
4504
4505       $ac_path_EGREP_found && break 3
4506     done
4507   done
4508   done
4509 IFS=$as_save_IFS
4510   if test -z "$ac_cv_path_EGREP"; then
4511     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4512   fi
4513 else
4514   ac_cv_path_EGREP=$EGREP
4515 fi
4516
4517    fi
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4520 $as_echo "$ac_cv_path_EGREP" >&6; }
4521  EGREP="$ac_cv_path_EGREP"
4522
4523
4524 # Extract the first word of "ar", so it can be a program name with args.
4525 set dummy ar; ac_word=$2
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 $as_echo_n "checking for $ac_word... " >&6; }
4528 if ${ac_cv_path_AR+:} false; then :
4529   $as_echo_n "(cached) " >&6
4530 else
4531   case $AR in
4532   [\\/]* | ?:[\\/]*)
4533   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4534   ;;
4535   *)
4536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541     for ac_exec_ext in '' $ac_executable_extensions; do
4542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548   done
4549 IFS=$as_save_IFS
4550
4551   ;;
4552 esac
4553 fi
4554 AR=$ac_cv_path_AR
4555 if test -n "$AR"; then
4556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4557 $as_echo "$AR" >&6; }
4558 else
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 # Extract the first word of "cat", so it can be a program name with args.
4565 set dummy cat; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if ${ac_cv_path_CAT+:} false; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   case $CAT in
4572   [\\/]* | ?:[\\/]*)
4573   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4574   ;;
4575   *)
4576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581     for ac_exec_ext in '' $ac_executable_extensions; do
4582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585     break 2
4586   fi
4587 done
4588   done
4589 IFS=$as_save_IFS
4590
4591   ;;
4592 esac
4593 fi
4594 CAT=$ac_cv_path_CAT
4595 if test -n "$CAT"; then
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4597 $as_echo "$CAT" >&6; }
4598 else
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603
4604 # Extract the first word of "kill", so it can be a program name with args.
4605 set dummy kill; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_path_KILL+:} false; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611   case $KILL in
4612   [\\/]* | ?:[\\/]*)
4613   ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4614   ;;
4615   *)
4616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621     for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628   done
4629 IFS=$as_save_IFS
4630
4631   ;;
4632 esac
4633 fi
4634 KILL=$ac_cv_path_KILL
4635 if test -n "$KILL"; then
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4637 $as_echo "$KILL" >&6; }
4638 else
4639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4641 fi
4642
4643
4644 for ac_prog in perl5 perl
4645 do
4646   # Extract the first word of "$ac_prog", so it can be a program name with args.
4647 set dummy $ac_prog; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_PERL+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   case $PERL in
4654   [\\/]* | ?:[\\/]*)
4655   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4656   ;;
4657   *)
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670   done
4671 IFS=$as_save_IFS
4672
4673   ;;
4674 esac
4675 fi
4676 PERL=$ac_cv_path_PERL
4677 if test -n "$PERL"; then
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4679 $as_echo "$PERL" >&6; }
4680 else
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685
4686   test -n "$PERL" && break
4687 done
4688
4689 # Extract the first word of "sed", so it can be a program name with args.
4690 set dummy sed; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_path_SED+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   case $SED in
4697   [\\/]* | ?:[\\/]*)
4698   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4699   ;;
4700   *)
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706     for ac_exec_ext in '' $ac_executable_extensions; do
4707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710     break 2
4711   fi
4712 done
4713   done
4714 IFS=$as_save_IFS
4715
4716   ;;
4717 esac
4718 fi
4719 SED=$ac_cv_path_SED
4720 if test -n "$SED"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4722 $as_echo "$SED" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729
4730 # Extract the first word of "ent", so it can be a program name with args.
4731 set dummy ent; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_path_ENT+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   case $ENT in
4738   [\\/]* | ?:[\\/]*)
4739   ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4740   ;;
4741   *)
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747     for ac_exec_ext in '' $ac_executable_extensions; do
4748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749     ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754   done
4755 IFS=$as_save_IFS
4756
4757   ;;
4758 esac
4759 fi
4760 ENT=$ac_cv_path_ENT
4761 if test -n "$ENT"; then
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4763 $as_echo "$ENT" >&6; }
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768
4769
4770
4771 # Extract the first word of "bash", so it can be a program name with args.
4772 set dummy bash; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   case $TEST_MINUS_S_SH in
4779   [\\/]* | ?:[\\/]*)
4780   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4781   ;;
4782   *)
4783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788     for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795   done
4796 IFS=$as_save_IFS
4797
4798   ;;
4799 esac
4800 fi
4801 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4802 if test -n "$TEST_MINUS_S_SH"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4804 $as_echo "$TEST_MINUS_S_SH" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 # Extract the first word of "ksh", so it can be a program name with args.
4812 set dummy ksh; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818   case $TEST_MINUS_S_SH in
4819   [\\/]* | ?:[\\/]*)
4820   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4821   ;;
4822   *)
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_exec_ext in '' $ac_executable_extensions; do
4829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832     break 2
4833   fi
4834 done
4835   done
4836 IFS=$as_save_IFS
4837
4838   ;;
4839 esac
4840 fi
4841 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4842 if test -n "$TEST_MINUS_S_SH"; then
4843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4844 $as_echo "$TEST_MINUS_S_SH" >&6; }
4845 else
4846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 # Extract the first word of "sh", so it can be a program name with args.
4852 set dummy sh; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_path_TEST_MINUS_S_SH+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   case $TEST_MINUS_S_SH in
4859   [\\/]* | ?:[\\/]*)
4860   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4861   ;;
4862   *)
4863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868     for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875   done
4876 IFS=$as_save_IFS
4877
4878   ;;
4879 esac
4880 fi
4881 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4882 if test -n "$TEST_MINUS_S_SH"; then
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4884 $as_echo "$TEST_MINUS_S_SH" >&6; }
4885 else
4886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889
4890
4891 # Extract the first word of "sh", so it can be a program name with args.
4892 set dummy sh; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_path_SH+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   case $SH in
4899   [\\/]* | ?:[\\/]*)
4900   ac_cv_path_SH="$SH" # Let the user override the test with a path.
4901   ;;
4902   *)
4903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908     for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915   done
4916 IFS=$as_save_IFS
4917
4918   ;;
4919 esac
4920 fi
4921 SH=$ac_cv_path_SH
4922 if test -n "$SH"; then
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4924 $as_echo "$SH" >&6; }
4925 else
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930
4931 # Extract the first word of "groff", so it can be a program name with args.
4932 set dummy groff; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_path_GROFF+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   case $GROFF in
4939   [\\/]* | ?:[\\/]*)
4940   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4941   ;;
4942   *)
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955   done
4956 IFS=$as_save_IFS
4957
4958   ;;
4959 esac
4960 fi
4961 GROFF=$ac_cv_path_GROFF
4962 if test -n "$GROFF"; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4964 $as_echo "$GROFF" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971 # Extract the first word of "nroff", so it can be a program name with args.
4972 set dummy nroff; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_path_NROFF+:} false; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978   case $NROFF in
4979   [\\/]* | ?:[\\/]*)
4980   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4981   ;;
4982   *)
4983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988     for ac_exec_ext in '' $ac_executable_extensions; do
4989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995   done
4996 IFS=$as_save_IFS
4997
4998   ;;
4999 esac
5000 fi
5001 NROFF=$ac_cv_path_NROFF
5002 if test -n "$NROFF"; then
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
5004 $as_echo "$NROFF" >&6; }
5005 else
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010
5011 # Extract the first word of "mandoc", so it can be a program name with args.
5012 set dummy mandoc; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_path_MANDOC+:} false; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018   case $MANDOC in
5019   [\\/]* | ?:[\\/]*)
5020   ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5021   ;;
5022   *)
5023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030     ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035   done
5036 IFS=$as_save_IFS
5037
5038   ;;
5039 esac
5040 fi
5041 MANDOC=$ac_cv_path_MANDOC
5042 if test -n "$MANDOC"; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5044 $as_echo "$MANDOC" >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049
5050
5051 TEST_SHELL=sh
5052
5053
5054 if test "x$MANDOC" != "x" ; then
5055         MANFMT="$MANDOC"
5056 elif test "x$NROFF" != "x" ; then
5057         MANFMT="$NROFF -mandoc"
5058 elif test "x$GROFF" != "x" ; then
5059         MANFMT="$GROFF -mandoc -Tascii"
5060 else
5061         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5062 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5063         MANFMT="false"
5064 fi
5065
5066
5067 # Extract the first word of "groupadd", so it can be a program name with args.
5068 set dummy groupadd; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_path_PATH_GROUPADD_PROG+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   case $PATH_GROUPADD_PROG in
5075   [\\/]* | ?:[\\/]*)
5076   ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5077   ;;
5078   *)
5079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084     for ac_exec_ext in '' $ac_executable_extensions; do
5085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086     ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091   done
5092 IFS=$as_save_IFS
5093
5094   test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5095   ;;
5096 esac
5097 fi
5098 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5099 if test -n "$PATH_GROUPADD_PROG"; then
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5101 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5102 else
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108 # Extract the first word of "useradd", so it can be a program name with args.
5109 set dummy useradd; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_path_PATH_USERADD_PROG+:} false; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   case $PATH_USERADD_PROG in
5116   [\\/]* | ?:[\\/]*)
5117   ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5118   ;;
5119   *)
5120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5122 do
5123   IFS=$as_save_IFS
5124   test -z "$as_dir" && as_dir=.
5125     for ac_exec_ext in '' $ac_executable_extensions; do
5126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127     ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129     break 2
5130   fi
5131 done
5132   done
5133 IFS=$as_save_IFS
5134
5135   test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5136   ;;
5137 esac
5138 fi
5139 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5140 if test -n "$PATH_USERADD_PROG"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5142 $as_echo "$PATH_USERADD_PROG" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149 # Extract the first word of "pkgmk", so it can be a program name with args.
5150 set dummy pkgmk; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5157   ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166     ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done
5172 IFS=$as_save_IFS
5173
5174   test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5175 fi
5176 fi
5177 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5178 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5180 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 if test -x /sbin/sh; then
5188         STARTUP_SCRIPT_SHELL=/sbin/sh
5189
5190 else
5191         STARTUP_SCRIPT_SHELL=/bin/sh
5192
5193 fi
5194
5195 # System features
5196 # Check whether --enable-largefile was given.
5197 if test "${enable_largefile+set}" = set; then :
5198   enableval=$enable_largefile;
5199 fi
5200
5201 if test "$enable_largefile" != no; then
5202
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5204 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5205 if ${ac_cv_sys_largefile_CC+:} false; then :
5206   $as_echo_n "(cached) " >&6
5207 else
5208   ac_cv_sys_largefile_CC=no
5209      if test "$GCC" != yes; then
5210        ac_save_CC=$CC
5211        while :; do
5212          # IRIX 6.2 and later do not support large files by default,
5213          # so use the C compiler's -n32 option if that helps.
5214          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h.  */
5216 #include <sys/types.h>
5217  /* Check that off_t can represent 2**63 - 1 correctly.
5218     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5219     since some C++ compilers masquerading as C compilers
5220     incorrectly reject 9223372036854775807.  */
5221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5222   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5223                        && LARGE_OFF_T % 2147483647 == 1)
5224                       ? 1 : -1];
5225 int
5226 main ()
5227 {
5228
5229   ;
5230   return 0;
5231 }
5232 _ACEOF
5233          if ac_fn_c_try_compile "$LINENO"; then :
5234   break
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext
5237          CC="$CC -n32"
5238          if ac_fn_c_try_compile "$LINENO"; then :
5239   ac_cv_sys_largefile_CC=' -n32'; break
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext
5242          break
5243        done
5244        CC=$ac_save_CC
5245        rm -f conftest.$ac_ext
5246     fi
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5249 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5250   if test "$ac_cv_sys_largefile_CC" != no; then
5251     CC=$CC$ac_cv_sys_largefile_CC
5252   fi
5253
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5255 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5256 if ${ac_cv_sys_file_offset_bits+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   while :; do
5260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h.  */
5262 #include <sys/types.h>
5263  /* Check that off_t can represent 2**63 - 1 correctly.
5264     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5265     since some C++ compilers masquerading as C compilers
5266     incorrectly reject 9223372036854775807.  */
5267 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5268   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5269                        && LARGE_OFF_T % 2147483647 == 1)
5270                       ? 1 : -1];
5271 int
5272 main ()
5273 {
5274
5275   ;
5276   return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280   ac_cv_sys_file_offset_bits=no; break
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h.  */
5285 #define _FILE_OFFSET_BITS 64
5286 #include <sys/types.h>
5287  /* Check that off_t can represent 2**63 - 1 correctly.
5288     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5289     since some C++ compilers masquerading as C compilers
5290     incorrectly reject 9223372036854775807.  */
5291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5292   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5293                        && LARGE_OFF_T % 2147483647 == 1)
5294                       ? 1 : -1];
5295 int
5296 main ()
5297 {
5298
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304   ac_cv_sys_file_offset_bits=64; break
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307   ac_cv_sys_file_offset_bits=unknown
5308   break
5309 done
5310 fi
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5312 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5313 case $ac_cv_sys_file_offset_bits in #(
5314   no | unknown) ;;
5315   *)
5316 cat >>confdefs.h <<_ACEOF
5317 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5318 _ACEOF
5319 ;;
5320 esac
5321 rm -rf conftest*
5322   if test $ac_cv_sys_file_offset_bits = unknown; then
5323     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5324 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5325 if ${ac_cv_sys_large_files+:} false; then :
5326   $as_echo_n "(cached) " >&6
5327 else
5328   while :; do
5329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331 #include <sys/types.h>
5332  /* Check that off_t can represent 2**63 - 1 correctly.
5333     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5334     since some C++ compilers masquerading as C compilers
5335     incorrectly reject 9223372036854775807.  */
5336 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5337   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5338                        && LARGE_OFF_T % 2147483647 == 1)
5339                       ? 1 : -1];
5340 int
5341 main ()
5342 {
5343
5344   ;
5345   return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349   ac_cv_sys_large_files=no; break
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h.  */
5354 #define _LARGE_FILES 1
5355 #include <sys/types.h>
5356  /* Check that off_t can represent 2**63 - 1 correctly.
5357     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5358     since some C++ compilers masquerading as C compilers
5359     incorrectly reject 9223372036854775807.  */
5360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5361   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5362                        && LARGE_OFF_T % 2147483647 == 1)
5363                       ? 1 : -1];
5364 int
5365 main ()
5366 {
5367
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373   ac_cv_sys_large_files=1; break
5374 fi
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376   ac_cv_sys_large_files=unknown
5377   break
5378 done
5379 fi
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5381 $as_echo "$ac_cv_sys_large_files" >&6; }
5382 case $ac_cv_sys_large_files in #(
5383   no | unknown) ;;
5384   *)
5385 cat >>confdefs.h <<_ACEOF
5386 #define _LARGE_FILES $ac_cv_sys_large_files
5387 _ACEOF
5388 ;;
5389 esac
5390 rm -rf conftest*
5391   fi
5392 fi
5393
5394
5395 if test -z "$AR" ; then
5396         as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5397 fi
5398
5399 # Use LOGIN_PROGRAM from environment if possible
5400 if test ! -z "$LOGIN_PROGRAM" ; then
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5404 _ACEOF
5405
5406 else
5407         # Search for login
5408         # Extract the first word of "login", so it can be a program name with args.
5409 set dummy login; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_path_LOGIN_PROGRAM_FALLBACK+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   case $LOGIN_PROGRAM_FALLBACK in
5416   [\\/]* | ?:[\\/]*)
5417   ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5418   ;;
5419   *)
5420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423   IFS=$as_save_IFS
5424   test -z "$as_dir" && as_dir=.
5425     for ac_exec_ext in '' $ac_executable_extensions; do
5426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427     ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429     break 2
5430   fi
5431 done
5432   done
5433 IFS=$as_save_IFS
5434
5435   ;;
5436 esac
5437 fi
5438 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5439 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5441 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5442 else
5443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447
5448         if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5449                 cat >>confdefs.h <<_ACEOF
5450 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5451 _ACEOF
5452
5453         fi
5454 fi
5455
5456 # Extract the first word of "passwd", so it can be a program name with args.
5457 set dummy passwd; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_path_PATH_PASSWD_PROG+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463   case $PATH_PASSWD_PROG in
5464   [\\/]* | ?:[\\/]*)
5465   ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5466   ;;
5467   *)
5468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471   IFS=$as_save_IFS
5472   test -z "$as_dir" && as_dir=.
5473     for ac_exec_ext in '' $ac_executable_extensions; do
5474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475     ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477     break 2
5478   fi
5479 done
5480   done
5481 IFS=$as_save_IFS
5482
5483   ;;
5484 esac
5485 fi
5486 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5487 if test -n "$PATH_PASSWD_PROG"; then
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5489 $as_echo "$PATH_PASSWD_PROG" >&6; }
5490 else
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496 if test ! -z "$PATH_PASSWD_PROG" ; then
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5500 _ACEOF
5501
5502 fi
5503
5504 if test -z "$LD" ; then
5505         LD=$CC
5506 fi
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5510 $as_echo_n "checking for inline... " >&6; }
5511 if ${ac_cv_c_inline+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   ac_cv_c_inline=no
5515 for ac_kw in inline __inline__ __inline; do
5516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h.  */
5518 #ifndef __cplusplus
5519 typedef int foo_t;
5520 static $ac_kw foo_t static_foo () {return 0; }
5521 $ac_kw foo_t foo () {return 0; }
5522 #endif
5523
5524 _ACEOF
5525 if ac_fn_c_try_compile "$LINENO"; then :
5526   ac_cv_c_inline=$ac_kw
5527 fi
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529   test "$ac_cv_c_inline" != no && break
5530 done
5531
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5534 $as_echo "$ac_cv_c_inline" >&6; }
5535
5536 case $ac_cv_c_inline in
5537   inline | yes) ;;
5538   *)
5539     case $ac_cv_c_inline in
5540       no) ac_val=;;
5541       *) ac_val=$ac_cv_c_inline;;
5542     esac
5543     cat >>confdefs.h <<_ACEOF
5544 #ifndef __cplusplus
5545 #define inline $ac_val
5546 #endif
5547 _ACEOF
5548     ;;
5549 esac
5550
5551
5552 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5553 "
5554 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5555   have_llong_max=1
5556 fi
5557
5558 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5559         #include <sys/types.h>
5560         #include <sys/param.h>
5561         #include <dev/systrace.h>
5562
5563 "
5564 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = xyes; then :
5565   have_systr_policy_kill=1
5566 fi
5567
5568 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5569         #include <sys/types.h>
5570         #include <sys/resource.h>
5571
5572 "
5573 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = xyes; then :
5574
5575 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5576
5577 fi
5578
5579
5580 use_stack_protector=1
5581
5582 # Check whether --with-stackprotect was given.
5583 if test "${with_stackprotect+set}" = set; then :
5584   withval=$with_stackprotect;
5585     if test "x$withval" = "xno"; then
5586         use_stack_protector=0
5587     fi
5588 fi
5589
5590
5591
5592 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5593         {
5594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5595 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5596         saved_CFLAGS="$CFLAGS"
5597         CFLAGS="$CFLAGS -Wall"
5598         _define_flag=""
5599         test "x$_define_flag" = "x" && _define_flag="-Wall"
5600         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h.  */
5602 int main(void) { return 0; }
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606 $as_echo "yes" >&6; }
5607                   CFLAGS="$saved_CFLAGS $_define_flag"
5608 else
5609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611                   CFLAGS="$saved_CFLAGS"
5612
5613 fi
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 }
5616         {
5617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5618 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5619         saved_CFLAGS="$CFLAGS"
5620         CFLAGS="$CFLAGS -Wpointer-arith"
5621         _define_flag=""
5622         test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5623         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h.  */
5625 int main(void) { return 0; }
5626 _ACEOF
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5629 $as_echo "yes" >&6; }
5630                   CFLAGS="$saved_CFLAGS $_define_flag"
5631 else
5632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634                   CFLAGS="$saved_CFLAGS"
5635
5636 fi
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 }
5639         {
5640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5641 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5642         saved_CFLAGS="$CFLAGS"
5643         CFLAGS="$CFLAGS -Wuninitialized"
5644         _define_flag=""
5645         test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5646         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h.  */
5648 int main(void) { return 0; }
5649 _ACEOF
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652 $as_echo "yes" >&6; }
5653                   CFLAGS="$saved_CFLAGS $_define_flag"
5654 else
5655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657                   CFLAGS="$saved_CFLAGS"
5658
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 }
5662         {
5663         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5664 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5665         saved_CFLAGS="$CFLAGS"
5666         CFLAGS="$CFLAGS -Wsign-compare"
5667         _define_flag=""
5668         test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5669         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h.  */
5671 int main(void) { return 0; }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5676                   CFLAGS="$saved_CFLAGS $_define_flag"
5677 else
5678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680                   CFLAGS="$saved_CFLAGS"
5681
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 }
5685         {
5686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5687 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5688         saved_CFLAGS="$CFLAGS"
5689         CFLAGS="$CFLAGS -Wformat-security"
5690         _define_flag=""
5691         test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5692         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h.  */
5694 int 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                   CFLAGS="$saved_CFLAGS $_define_flag"
5700 else
5701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703                   CFLAGS="$saved_CFLAGS"
5704
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 }
5708         {
5709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5710 $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5711         saved_CFLAGS="$CFLAGS"
5712         CFLAGS="$CFLAGS -Wpointer-sign"
5713         _define_flag="-Wno-pointer-sign"
5714         test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5715         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h.  */
5717 int main(void) { return 0; }
5718 _ACEOF
5719 if ac_fn_c_try_compile "$LINENO"; then :
5720    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721 $as_echo "yes" >&6; }
5722                   CFLAGS="$saved_CFLAGS $_define_flag"
5723 else
5724    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726                   CFLAGS="$saved_CFLAGS"
5727
5728 fi
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 }
5731         {
5732         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5733 $as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5734         saved_CFLAGS="$CFLAGS"
5735         CFLAGS="$CFLAGS -Wunused-result"
5736         _define_flag="-Wno-unused-result"
5737         test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5738         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h.  */
5740 int main(void) { return 0; }
5741 _ACEOF
5742 if ac_fn_c_try_compile "$LINENO"; then :
5743    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5744 $as_echo "yes" >&6; }
5745                   CFLAGS="$saved_CFLAGS $_define_flag"
5746 else
5747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749                   CFLAGS="$saved_CFLAGS"
5750
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 }
5754         {
5755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5756 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5757         saved_CFLAGS="$CFLAGS"
5758         CFLAGS="$CFLAGS -fno-strict-aliasing"
5759         _define_flag=""
5760         test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5761         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h.  */
5763 int main(void) { return 0; }
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5767 $as_echo "yes" >&6; }
5768                   CFLAGS="$saved_CFLAGS $_define_flag"
5769 else
5770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772                   CFLAGS="$saved_CFLAGS"
5773
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 }
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5778 $as_echo_n "checking gcc version... " >&6; }
5779         GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5780         case $GCC_VER in
5781                 1.*) no_attrib_nonnull=1 ;;
5782                 2.8* | 2.9*)
5783                      no_attrib_nonnull=1
5784                      ;;
5785                 2.*) no_attrib_nonnull=1 ;;
5786                 *) ;;
5787         esac
5788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5789 $as_echo "$GCC_VER" >&6; }
5790
5791         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5792 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5793         saved_CFLAGS="$CFLAGS"
5794         CFLAGS="$CFLAGS -fno-builtin-memset"
5795         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h.  */
5797  #include <string.h>
5798 int
5799 main ()
5800 {
5801  char b[10]; memset(b, 0, sizeof(b));
5802   ;
5803   return 0;
5804 }
5805 _ACEOF
5806 if ac_fn_c_try_link "$LINENO"; then :
5807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5808 $as_echo "yes" >&6; }
5809 else
5810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812                   CFLAGS="$saved_CFLAGS"
5813
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext \
5816     conftest$ac_exeext conftest.$ac_ext
5817
5818         # -fstack-protector-all doesn't always work for some GCC versions
5819         # and/or platforms, so we test if we can.  If it's not supported
5820         # on a given platform gcc will emit a warning so we use -Werror.
5821         if test "x$use_stack_protector" = "x1"; then
5822             for t in -fstack-protector-all -fstack-protector; do
5823                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5824 $as_echo_n "checking if $CC supports $t... " >&6; }
5825                 saved_CFLAGS="$CFLAGS"
5826                 saved_LDFLAGS="$LDFLAGS"
5827                 CFLAGS="$CFLAGS $t -Werror"
5828                 LDFLAGS="$LDFLAGS $t -Werror"
5829                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h.  */
5831  #include <stdio.h>
5832 int
5833 main ()
5834 {
5835
5836         char x[256];
5837         snprintf(x, sizeof(x), "XXX");
5838
5839   ;
5840   return 0;
5841 }
5842 _ACEOF
5843 if ac_fn_c_try_link "$LINENO"; then :
5844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5845 $as_echo "yes" >&6; }
5846                       CFLAGS="$saved_CFLAGS $t"
5847                       LDFLAGS="$saved_LDFLAGS $t"
5848                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5849 $as_echo_n "checking if $t works... " >&6; }
5850                       if test "$cross_compiling" = yes; then :
5851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5852 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5853                           break
5854
5855 else
5856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h.  */
5858  #include <stdio.h>
5859 int
5860 main ()
5861 {
5862
5863         char x[256];
5864         snprintf(x, sizeof(x), "XXX");
5865
5866   ;
5867   return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_c_try_run "$LINENO"; then :
5871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5872 $as_echo "yes" >&6; }
5873                           break
5874 else
5875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5877 fi
5878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5879   conftest.$ac_objext conftest.beam conftest.$ac_ext
5880 fi
5881
5882
5883 else
5884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext \
5889     conftest$ac_exeext conftest.$ac_ext
5890                 CFLAGS="$saved_CFLAGS"
5891                 LDFLAGS="$saved_LDFLAGS"
5892             done
5893         fi
5894
5895         if test -z "$have_llong_max"; then
5896                 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5897                 unset ac_cv_have_decl_LLONG_MAX
5898                 saved_CFLAGS="$CFLAGS"
5899                 CFLAGS="$CFLAGS -std=gnu99"
5900                 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5901
5902 "
5903 if test "x$ac_cv_have_decl_LLONG_MAX" = xyes; then :
5904   have_llong_max=1
5905 else
5906   CFLAGS="$saved_CFLAGS"
5907 fi
5908
5909         fi
5910 fi
5911
5912 if test "x$no_attrib_nonnull" != "x1" ; then
5913
5914 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5915
5916 fi
5917
5918
5919 # Check whether --with-rpath was given.
5920 if test "${with_rpath+set}" = set; then :
5921   withval=$with_rpath;
5922                 if test "x$withval" = "xno" ; then
5923                         need_dash_r=""
5924                 fi
5925                 if test "x$withval" = "xyes" ; then
5926                         need_dash_r=1
5927                 fi
5928
5929
5930 fi
5931
5932
5933 # Allow user to specify flags
5934
5935 # Check whether --with-cflags was given.
5936 if test "${with_cflags+set}" = set; then :
5937   withval=$with_cflags;
5938                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5939                     test "x${withval}" != "xyes"; then
5940                         CFLAGS="$CFLAGS $withval"
5941                 fi
5942
5943
5944 fi
5945
5946
5947 # Check whether --with-cppflags was given.
5948 if test "${with_cppflags+set}" = set; then :
5949   withval=$with_cppflags;
5950                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5951                     test "x${withval}" != "xyes"; then
5952                         CPPFLAGS="$CPPFLAGS $withval"
5953                 fi
5954
5955
5956 fi
5957
5958
5959 # Check whether --with-ldflags was given.
5960 if test "${with_ldflags+set}" = set; then :
5961   withval=$with_ldflags;
5962                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5963                     test "x${withval}" != "xyes"; then
5964                         LDFLAGS="$LDFLAGS $withval"
5965                 fi
5966
5967
5968 fi
5969
5970
5971 # Check whether --with-libs was given.
5972 if test "${with_libs+set}" = set; then :
5973   withval=$with_libs;
5974                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5975                     test "x${withval}" != "xyes"; then
5976                         LIBS="$LIBS $withval"
5977                 fi
5978
5979
5980 fi
5981
5982
5983 # Check whether --with-Werror was given.
5984 if test "${with_Werror+set}" = set; then :
5985   withval=$with_Werror;
5986                 if test -n "$withval"  &&  test "x$withval" != "xno"; then
5987                         werror_flags="-Werror"
5988                         if test "x${withval}" != "xyes"; then
5989                                 werror_flags="$withval"
5990                         fi
5991                 fi
5992
5993
5994 fi
5995
5996
5997 for ac_header in  \
5998         bstring.h \
5999         crypt.h \
6000         crypto/sha2.h \
6001         dirent.h \
6002         endian.h \
6003         features.h \
6004         fcntl.h \
6005         floatingpoint.h \
6006         getopt.h \
6007         glob.h \
6008         ia.h \
6009         iaf.h \
6010         limits.h \
6011         login.h \
6012         maillock.h \
6013         ndir.h \
6014         net/if_tun.h \
6015         netdb.h \
6016         netgroup.h \
6017         pam/pam_appl.h \
6018         paths.h \
6019         poll.h \
6020         pty.h \
6021         readpassphrase.h \
6022         rpc/types.h \
6023         security/pam_appl.h \
6024         sha2.h \
6025         shadow.h \
6026         stddef.h \
6027         stdint.h \
6028         string.h \
6029         strings.h \
6030         sys/audit.h \
6031         sys/bitypes.h \
6032         sys/bsdtty.h \
6033         sys/cdefs.h \
6034         sys/dir.h \
6035         sys/mman.h \
6036         sys/ndir.h \
6037         sys/poll.h \
6038         sys/prctl.h \
6039         sys/pstat.h \
6040         sys/select.h \
6041         sys/stat.h \
6042         sys/stream.h \
6043         sys/stropts.h \
6044         sys/strtio.h \
6045         sys/statvfs.h \
6046         sys/sysmacros.h \
6047         sys/time.h \
6048         sys/timers.h \
6049         sys/un.h \
6050         time.h \
6051         tmpdir.h \
6052         ttyent.h \
6053         ucred.h \
6054         unistd.h \
6055         usersec.h \
6056         util.h \
6057         utime.h \
6058         utmp.h \
6059         utmpx.h \
6060         vis.h \
6061
6062 do :
6063   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6064 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6066   cat >>confdefs.h <<_ACEOF
6067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6068 _ACEOF
6069
6070 fi
6071
6072 done
6073
6074
6075 # lastlog.h requires sys/time.h to be included first on Solaris
6076 for ac_header in lastlog.h
6077 do :
6078   ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6079 #ifdef HAVE_SYS_TIME_H
6080 # include <sys/time.h>
6081 #endif
6082
6083 "
6084 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6085   cat >>confdefs.h <<_ACEOF
6086 #define HAVE_LASTLOG_H 1
6087 _ACEOF
6088
6089 fi
6090
6091 done
6092
6093
6094 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6095 for ac_header in sys/ptms.h
6096 do :
6097   ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6098 #ifdef HAVE_SYS_STREAM_H
6099 # include <sys/stream.h>
6100 #endif
6101
6102 "
6103 if test "x$ac_cv_header_sys_ptms_h" = xyes; then :
6104   cat >>confdefs.h <<_ACEOF
6105 #define HAVE_SYS_PTMS_H 1
6106 _ACEOF
6107
6108 fi
6109
6110 done
6111
6112
6113 # login_cap.h requires sys/types.h on NetBSD
6114 for ac_header in login_cap.h
6115 do :
6116   ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6117 #include <sys/types.h>
6118
6119 "
6120 if test "x$ac_cv_header_login_cap_h" = xyes; then :
6121   cat >>confdefs.h <<_ACEOF
6122 #define HAVE_LOGIN_CAP_H 1
6123 _ACEOF
6124
6125 fi
6126
6127 done
6128
6129
6130 # older BSDs need sys/param.h before sys/mount.h
6131 for ac_header in sys/mount.h
6132 do :
6133   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6134 #include <sys/param.h>
6135
6136 "
6137 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6138   cat >>confdefs.h <<_ACEOF
6139 #define HAVE_SYS_MOUNT_H 1
6140 _ACEOF
6141
6142 fi
6143
6144 done
6145
6146
6147 # Messages for features tested for in target-specific section
6148 SIA_MSG="no"
6149 SPC_MSG="no"
6150 SP_MSG="no"
6151
6152 # Check for some target-specific stuff
6153 case "$host" in
6154 *-*-aix*)
6155         # Some versions of VAC won't allow macro redefinitions at
6156         # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6157         # particularly with older versions of vac or xlc.
6158         # It also throws errors about null macro argments, but these are
6159         # not fatal.
6160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6161 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6162         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h.  */
6164
6165 #define testmacro foo
6166 #define testmacro bar
6167 int
6168 main ()
6169 {
6170  exit(0);
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"; then :
6176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6177 $as_echo "yes" >&6; }
6178 else
6179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181               CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6182               LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6183               CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6184               CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6185
6186
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189
6190         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6191 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6192         if (test -z "$blibpath"); then
6193                 blibpath="/usr/lib:/lib"
6194         fi
6195         saved_LDFLAGS="$LDFLAGS"
6196         if test "$GCC" = "yes"; then
6197                 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6198         else
6199                 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6200         fi
6201         for tryflags in $flags ;do
6202                 if (test -z "$blibflags"); then
6203                         LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6204                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h.  */
6206
6207 int
6208 main ()
6209 {
6210
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 if ac_fn_c_try_link "$LINENO"; then :
6216   blibflags=$tryflags
6217 fi
6218 rm -f core conftest.err conftest.$ac_objext \
6219     conftest$ac_exeext conftest.$ac_ext
6220                 fi
6221         done
6222         if (test -z "$blibflags"); then
6223                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6224 $as_echo "not found" >&6; }
6225                 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6226         else
6227                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6228 $as_echo "$blibflags" >&6; }
6229         fi
6230         LDFLAGS="$saved_LDFLAGS"
6231                 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6232 if test "x$ac_cv_func_authenticate" = xyes; then :
6233
6234 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6235
6236 else
6237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6238 $as_echo_n "checking for authenticate in -ls... " >&6; }
6239 if ${ac_cv_lib_s_authenticate+:} false; then :
6240   $as_echo_n "(cached) " >&6
6241 else
6242   ac_check_lib_save_LIBS=$LIBS
6243 LIBS="-ls  $LIBS"
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h.  */
6246
6247 /* Override any GCC internal prototype to avoid an error.
6248    Use char because int might match the return type of a GCC
6249    builtin and then its argument prototype would still apply.  */
6250 #ifdef __cplusplus
6251 extern "C"
6252 #endif
6253 char authenticate ();
6254 int
6255 main ()
6256 {
6257 return authenticate ();
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 if ac_fn_c_try_link "$LINENO"; then :
6263   ac_cv_lib_s_authenticate=yes
6264 else
6265   ac_cv_lib_s_authenticate=no
6266 fi
6267 rm -f core conftest.err conftest.$ac_objext \
6268     conftest$ac_exeext conftest.$ac_ext
6269 LIBS=$ac_check_lib_save_LIBS
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6272 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6273 if test "x$ac_cv_lib_s_authenticate" = xyes; then :
6274    $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6275
6276                                 LIBS="$LIBS -ls"
6277
6278 fi
6279
6280
6281 fi
6282
6283                 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6284 "
6285 if test "x$ac_cv_have_decl_authenticate" = xyes; then :
6286   ac_have_decl=1
6287 else
6288   ac_have_decl=0
6289 fi
6290
6291 cat >>confdefs.h <<_ACEOF
6292 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6293 _ACEOF
6294 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6295 "
6296 if test "x$ac_cv_have_decl_loginrestrictions" = xyes; then :
6297   ac_have_decl=1
6298 else
6299   ac_have_decl=0
6300 fi
6301
6302 cat >>confdefs.h <<_ACEOF
6303 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6304 _ACEOF
6305 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6306 "
6307 if test "x$ac_cv_have_decl_loginsuccess" = xyes; then :
6308   ac_have_decl=1
6309 else
6310   ac_have_decl=0
6311 fi
6312
6313 cat >>confdefs.h <<_ACEOF
6314 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6315 _ACEOF
6316 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6317 "
6318 if test "x$ac_cv_have_decl_passwdexpired" = xyes; then :
6319   ac_have_decl=1
6320 else
6321   ac_have_decl=0
6322 fi
6323
6324 cat >>confdefs.h <<_ACEOF
6325 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6326 _ACEOF
6327 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6328 "
6329 if test "x$ac_cv_have_decl_setauthdb" = xyes; then :
6330   ac_have_decl=1
6331 else
6332   ac_have_decl=0
6333 fi
6334
6335 cat >>confdefs.h <<_ACEOF
6336 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6337 _ACEOF
6338
6339                 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6340
6341 "
6342 if test "x$ac_cv_have_decl_loginfailed" = xyes; then :
6343   ac_have_decl=1
6344 else
6345   ac_have_decl=0
6346 fi
6347
6348 cat >>confdefs.h <<_ACEOF
6349 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6350 _ACEOF
6351 if test $ac_have_decl = 1; then :
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6353 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6354             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h.  */
6356  #include <usersec.h>
6357 int
6358 main ()
6359 {
6360  (void)loginfailed("user","host","tty",0);
6361   ;
6362   return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367 $as_echo "yes" >&6; }
6368
6369 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6370
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374
6375 fi
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 fi
6378
6379         for ac_func in getgrset setauthdb
6380 do :
6381   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6383 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6384   cat >>confdefs.h <<_ACEOF
6385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6386 _ACEOF
6387
6388 fi
6389 done
6390
6391         ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6392               #include <fcntl.h>
6393
6394 "
6395 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
6396
6397 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6398
6399 fi
6400
6401         check_for_aix_broken_getaddrinfo=1
6402
6403 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6404
6405
6406 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6407
6408
6409 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6410
6411
6412 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6413
6414
6415 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6416
6417
6418 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6419
6420
6421 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6422
6423
6424 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6425
6426
6427 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6428
6429         ;;
6430 *-*-cygwin*)
6431         check_for_libcrypt_later=1
6432         LIBS="$LIBS /usr/lib/textreadmode.o"
6433
6434 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6435
6436
6437 $as_echo "#define USE_PIPES 1" >>confdefs.h
6438
6439
6440 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6441
6442
6443 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6444
6445
6446 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6447
6448
6449 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6450
6451
6452 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6453
6454
6455 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6456
6457         ;;
6458 *-*-dgux*)
6459
6460 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6461
6462         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6463
6464         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6465
6466         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6467
6468         ;;
6469 *-*-darwin*)
6470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6471 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6472         if test "$cross_compiling" = yes; then :
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6474 $as_echo "assume it is working" >&6; }
6475 else
6476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h.  */
6478  #include <mach-o/dyld.h>
6479 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6480                 exit(0);
6481         else
6482                 exit(1);
6483 }
6484
6485 _ACEOF
6486 if ac_fn_c_try_run "$LINENO"; then :
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6488 $as_echo "working" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6491 $as_echo "buggy" >&6; }
6492
6493 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6494
6495
6496 fi
6497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6498   conftest.$ac_objext conftest.beam conftest.$ac_ext
6499 fi
6500
6501         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6502
6503         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6504
6505         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6506
6507
6508 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6509
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define BIND_8_COMPAT 1
6513 _ACEOF
6514
6515
6516 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6517
6518
6519 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6520
6521
6522 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6523
6524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the Security Authorization Session API" >&5
6525 $as_echo_n "checking if we have the Security Authorization Session API... " >&6; }
6526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h.  */
6528 #include <Security/AuthSession.h>
6529 int
6530 main ()
6531 {
6532 SessionCreate(0, 0);
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_c_try_compile "$LINENO"; then :
6538   ac_cv_use_security_session_api="yes"
6539
6540 $as_echo "#define USE_SECURITY_SESSION_API 1" >>confdefs.h
6541
6542                  LIBS="$LIBS -framework Security"
6543                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6544 $as_echo "yes" >&6; }
6545 else
6546   ac_cv_use_security_session_api="no"
6547                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have an in-memory credentials cache" >&5
6552 $as_echo_n "checking if we have an in-memory credentials cache... " >&6; }
6553         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h.  */
6555 #include <Kerberos/Kerberos.h>
6556 int
6557 main ()
6558 {
6559 cc_context_t c;
6560                  (void) cc_initialize (&c, 0, NULL, NULL);
6561   ;
6562   return 0;
6563 }
6564 _ACEOF
6565 if ac_fn_c_try_compile "$LINENO"; then :
6566
6567 $as_echo "#define USE_CCAPI 1" >>confdefs.h
6568
6569                  LIBS="$LIBS -framework Security"
6570                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6571 $as_echo "yes" >&6; }
6572                  if test "x$ac_cv_use_security_session_api" = "xno"; then
6573                         as_fn_error $? "*** Need a security framework to use the credentials cache API ***" "$LINENO" 5
6574                 fi
6575 else
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581
6582         ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6583 if test "x$ac_cv_have_decl_AU_IPv4" = xyes; then :
6584
6585 else
6586
6587 $as_echo "#define AU_IPv4 0" >>confdefs.h
6588
6589             #include <bsm/audit.h>
6590
6591 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6592
6593
6594 fi
6595
6596
6597 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6598
6599         for ac_func in sandbox_init
6600 do :
6601   ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6602 if test "x$ac_cv_func_sandbox_init" = xyes; then :
6603   cat >>confdefs.h <<_ACEOF
6604 #define HAVE_SANDBOX_INIT 1
6605 _ACEOF
6606
6607 fi
6608 done
6609
6610         for ac_header in sandbox.h
6611 do :
6612   ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6613 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6614   cat >>confdefs.h <<_ACEOF
6615 #define HAVE_SANDBOX_H 1
6616 _ACEOF
6617
6618 fi
6619
6620 done
6621
6622         ;;
6623 *-*-dragonfly*)
6624         SSHDLIBS="$SSHDLIBS -lcrypt"
6625         ;;
6626 *-*-haiku*)
6627     LIBS="$LIBS -lbsd "
6628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6629 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6630 if ${ac_cv_lib_network_socket+:} false; then :
6631   $as_echo_n "(cached) " >&6
6632 else
6633   ac_check_lib_save_LIBS=$LIBS
6634 LIBS="-lnetwork  $LIBS"
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h.  */
6637
6638 /* Override any GCC internal prototype to avoid an error.
6639    Use char because int might match the return type of a GCC
6640    builtin and then its argument prototype would still apply.  */
6641 #ifdef __cplusplus
6642 extern "C"
6643 #endif
6644 char socket ();
6645 int
6646 main ()
6647 {
6648 return socket ();
6649   ;
6650   return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"; then :
6654   ac_cv_lib_network_socket=yes
6655 else
6656   ac_cv_lib_network_socket=no
6657 fi
6658 rm -f core conftest.err conftest.$ac_objext \
6659     conftest$ac_exeext conftest.$ac_ext
6660 LIBS=$ac_check_lib_save_LIBS
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6663 $as_echo "$ac_cv_lib_network_socket" >&6; }
6664 if test "x$ac_cv_lib_network_socket" = xyes; then :
6665   cat >>confdefs.h <<_ACEOF
6666 #define HAVE_LIBNETWORK 1
6667 _ACEOF
6668
6669   LIBS="-lnetwork $LIBS"
6670
6671 fi
6672
6673     $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6674
6675     MANTYPE=man
6676     ;;
6677 *-*-hpux*)
6678         # first we define all of the options common to all HP-UX releases
6679         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6680         IPADDR_IN_DISPLAY=yes
6681         $as_echo "#define USE_PIPES 1" >>confdefs.h
6682
6683
6684 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6685
6686         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6687
6688
6689 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6690
6691         $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6692
6693         maildir="/var/mail"
6694         LIBS="$LIBS -lsec"
6695         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6696 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6697 if ${ac_cv_lib_xnet_t_error+:} false; then :
6698   $as_echo_n "(cached) " >&6
6699 else
6700   ac_check_lib_save_LIBS=$LIBS
6701 LIBS="-lxnet  $LIBS"
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h.  */
6704
6705 /* Override any GCC internal prototype to avoid an error.
6706    Use char because int might match the return type of a GCC
6707    builtin and then its argument prototype would still apply.  */
6708 #ifdef __cplusplus
6709 extern "C"
6710 #endif
6711 char t_error ();
6712 int
6713 main ()
6714 {
6715 return t_error ();
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 if ac_fn_c_try_link "$LINENO"; then :
6721   ac_cv_lib_xnet_t_error=yes
6722 else
6723   ac_cv_lib_xnet_t_error=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext \
6726     conftest$ac_exeext conftest.$ac_ext
6727 LIBS=$ac_check_lib_save_LIBS
6728 fi
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6730 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6731 if test "x$ac_cv_lib_xnet_t_error" = xyes; then :
6732   cat >>confdefs.h <<_ACEOF
6733 #define HAVE_LIBXNET 1
6734 _ACEOF
6735
6736   LIBS="-lxnet $LIBS"
6737
6738 else
6739   as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6740 fi
6741
6742
6743         # next, we define all of the options specific to major releases
6744         case "$host" in
6745         *-*-hpux10*)
6746                 if test -z "$GCC"; then
6747                         CFLAGS="$CFLAGS -Ae"
6748                 fi
6749                 ;;
6750         *-*-hpux11*)
6751
6752 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6753
6754
6755 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6756
6757
6758 $as_echo "#define USE_BTMP 1" >>confdefs.h
6759
6760                 check_for_hpux_broken_getaddrinfo=1
6761                 check_for_conflicting_getspnam=1
6762                 ;;
6763         esac
6764
6765         # lastly, we define options specific to minor releases
6766         case "$host" in
6767         *-*-hpux10.26)
6768
6769 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6770
6771                 disable_ptmx_check=yes
6772                 LIBS="$LIBS -lsecpw"
6773                 ;;
6774         esac
6775         ;;
6776 *-*-irix5*)
6777         PATH="$PATH:/usr/etc"
6778
6779 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6780
6781         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6782
6783         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6784
6785         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6786
6787
6788 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6789
6790         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6791
6792         ;;
6793 *-*-irix6*)
6794         PATH="$PATH:/usr/etc"
6795
6796 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6797
6798
6799 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6800
6801
6802 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6803
6804         ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6805 if test "x$ac_cv_func_jlimit_startjob" = xyes; then :
6806
6807 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6808
6809 fi
6810
6811         $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6812
6813         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6814
6815         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6816
6817         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6818
6819
6820 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6821
6822         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6823
6824         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6825
6826         ;;
6827 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6828         check_for_libcrypt_later=1
6829         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6830
6831         $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6832
6833         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6834
6835
6836 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6837
6838
6839 $as_echo "#define USE_BTMP 1" >>confdefs.h
6840
6841         ;;
6842 *-*-linux*)
6843         no_dev_ptmx=1
6844         check_for_libcrypt_later=1
6845         check_for_openpty_ctty_bug=1
6846
6847 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6848
6849
6850 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6851
6852         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6853
6854
6855 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6856
6857
6858 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6859
6860         $as_echo "#define USE_BTMP 1" >>confdefs.h
6861
6862
6863 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6864
6865         inet6_default_4in6=yes
6866         case `uname -r` in
6867         1.*|2.0.*)
6868
6869 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6870
6871                 ;;
6872         esac
6873         # tun(4) forwarding compat code
6874         for ac_header in linux/if_tun.h
6875 do :
6876   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6877 if test "x$ac_cv_header_linux_if_tun_h" = xyes; then :
6878   cat >>confdefs.h <<_ACEOF
6879 #define HAVE_LINUX_IF_TUN_H 1
6880 _ACEOF
6881
6882 fi
6883
6884 done
6885
6886         if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6887
6888 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6889
6890
6891 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6892
6893
6894 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6895
6896         fi
6897         ;;
6898 mips-sony-bsd|mips-sony-newsos4)
6899
6900 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6901
6902         SONY=1
6903         ;;
6904 *-*-netbsd*)
6905         check_for_libcrypt_before=1
6906         if test "x$withval" != "xno" ; then
6907                 need_dash_r=1
6908         fi
6909
6910 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6911
6912         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6913 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6914
6915 else
6916
6917 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6918
6919 fi
6920
6921
6922
6923 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6924
6925         ;;
6926 *-*-freebsd*)
6927         check_for_libcrypt_later=1
6928
6929 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6930
6931
6932 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6933
6934         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6935 if test "x$ac_cv_header_net_if_tap_h" = xyes; then :
6936
6937 else
6938
6939 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6940
6941 fi
6942
6943
6944
6945 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6946
6947         ;;
6948 *-*-bsdi*)
6949         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6950
6951         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6952
6953         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6954
6955         ;;
6956 *-next-*)
6957         conf_lastlog_location="/usr/adm/lastlog"
6958         conf_utmp_location=/etc/utmp
6959         conf_wtmp_location=/usr/adm/wtmp
6960         maildir=/usr/spool/mail
6961
6962 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6963
6964         $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6965
6966         $as_echo "#define USE_PIPES 1" >>confdefs.h
6967
6968
6969 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6970
6971         ;;
6972 *-*-openbsd*)
6973
6974 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6975
6976
6977 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6978
6979
6980 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6981
6982
6983 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6984
6985         ;;
6986 *-*-solaris*)
6987         if test "x$withval" != "xno" ; then
6988                 need_dash_r=1
6989         fi
6990         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6991
6992         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6993
6994
6995 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6996
6997         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6998
6999
7000 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
7001
7002         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7003
7004         # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
7005
7006 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7007
7008
7009 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7010
7011
7012 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7013
7014         external_path_file=/etc/default/login
7015         # hardwire lastlog location (can't detect it on some versions)
7016         conf_lastlog_location="/var/adm/lastlog"
7017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7018 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7019         sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7020         if test "$sol2ver" -ge 8; then
7021                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7022 $as_echo "yes" >&6; }
7023                 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7024
7025
7026 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7027
7028         else
7029                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031         fi
7032
7033 # Check whether --with-solaris-contracts was given.
7034 if test "${with_solaris_contracts+set}" = set; then :
7035   withval=$with_solaris_contracts;
7036                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7037 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7038 if ${ac_cv_lib_contract_ct_tmpl_activate+:} false; then :
7039   $as_echo_n "(cached) " >&6
7040 else
7041   ac_check_lib_save_LIBS=$LIBS
7042 LIBS="-lcontract  $LIBS"
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h.  */
7045
7046 /* Override any GCC internal prototype to avoid an error.
7047    Use char because int might match the return type of a GCC
7048    builtin and then its argument prototype would still apply.  */
7049 #ifdef __cplusplus
7050 extern "C"
7051 #endif
7052 char ct_tmpl_activate ();
7053 int
7054 main ()
7055 {
7056 return ct_tmpl_activate ();
7057   ;
7058   return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_c_try_link "$LINENO"; then :
7062   ac_cv_lib_contract_ct_tmpl_activate=yes
7063 else
7064   ac_cv_lib_contract_ct_tmpl_activate=no
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext \
7067     conftest$ac_exeext conftest.$ac_ext
7068 LIBS=$ac_check_lib_save_LIBS
7069 fi
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7071 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7072 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = xyes; then :
7073
7074 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7075
7076                           SSHDLIBS="$SSHDLIBS -lcontract"
7077                           SPC_MSG="yes"
7078 fi
7079
7080
7081 fi
7082
7083
7084 # Check whether --with-solaris-projects was given.
7085 if test "${with_solaris_projects+set}" = set; then :
7086   withval=$with_solaris_projects;
7087                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7088 $as_echo_n "checking for setproject in -lproject... " >&6; }
7089 if ${ac_cv_lib_project_setproject+:} false; then :
7090   $as_echo_n "(cached) " >&6
7091 else
7092   ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-lproject  $LIBS"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h.  */
7096
7097 /* Override any GCC internal prototype to avoid an error.
7098    Use char because int might match the return type of a GCC
7099    builtin and then its argument prototype would still apply.  */
7100 #ifdef __cplusplus
7101 extern "C"
7102 #endif
7103 char setproject ();
7104 int
7105 main ()
7106 {
7107 return setproject ();
7108   ;
7109   return 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_link "$LINENO"; then :
7113   ac_cv_lib_project_setproject=yes
7114 else
7115   ac_cv_lib_project_setproject=no
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext \
7118     conftest$ac_exeext conftest.$ac_ext
7119 LIBS=$ac_check_lib_save_LIBS
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7122 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7123 if test "x$ac_cv_lib_project_setproject" = xyes; then :
7124
7125 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7126
7127                         SSHDLIBS="$SSHDLIBS -lproject"
7128                         SP_MSG="yes"
7129 fi
7130
7131
7132 fi
7133
7134         ;;
7135 *-*-sunos4*)
7136         CPPFLAGS="$CPPFLAGS -DSUNOS4"
7137         for ac_func in getpwanam
7138 do :
7139   ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7140 if test "x$ac_cv_func_getpwanam" = xyes; then :
7141   cat >>confdefs.h <<_ACEOF
7142 #define HAVE_GETPWANAM 1
7143 _ACEOF
7144
7145 fi
7146 done
7147
7148         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7149
7150         conf_utmp_location=/etc/utmp
7151         conf_wtmp_location=/var/adm/wtmp
7152         conf_lastlog_location=/var/adm/lastlog
7153         $as_echo "#define USE_PIPES 1" >>confdefs.h
7154
7155         ;;
7156 *-ncr-sysv*)
7157         LIBS="$LIBS -lc89"
7158         $as_echo "#define USE_PIPES 1" >>confdefs.h
7159
7160         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7161
7162         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7163
7164         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7165
7166         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7167
7168         ;;
7169 *-sni-sysv*)
7170         # /usr/ucblib MUST NOT be searched on ReliantUNIX
7171         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7172 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7173 if ${ac_cv_lib_dl_dlsym+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   ac_check_lib_save_LIBS=$LIBS
7177 LIBS="-ldl  $LIBS"
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h.  */
7180
7181 /* Override any GCC internal prototype to avoid an error.
7182    Use char because int might match the return type of a GCC
7183    builtin and then its argument prototype would still apply.  */
7184 #ifdef __cplusplus
7185 extern "C"
7186 #endif
7187 char dlsym ();
7188 int
7189 main ()
7190 {
7191 return dlsym ();
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_link "$LINENO"; then :
7197   ac_cv_lib_dl_dlsym=yes
7198 else
7199   ac_cv_lib_dl_dlsym=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext \
7202     conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7206 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7207 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
7208   cat >>confdefs.h <<_ACEOF
7209 #define HAVE_LIBDL 1
7210 _ACEOF
7211
7212   LIBS="-ldl $LIBS"
7213
7214 fi
7215
7216         # -lresolv needs to be at the end of LIBS or DNS lookups break
7217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7218 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7219 if ${ac_cv_lib_resolv_res_query+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   ac_check_lib_save_LIBS=$LIBS
7223 LIBS="-lresolv  $LIBS"
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226
7227 /* Override any GCC internal prototype to avoid an error.
7228    Use char because int might match the return type of a GCC
7229    builtin and then its argument prototype would still apply.  */
7230 #ifdef __cplusplus
7231 extern "C"
7232 #endif
7233 char res_query ();
7234 int
7235 main ()
7236 {
7237 return res_query ();
7238   ;
7239   return 0;
7240 }
7241 _ACEOF
7242 if ac_fn_c_try_link "$LINENO"; then :
7243   ac_cv_lib_resolv_res_query=yes
7244 else
7245   ac_cv_lib_resolv_res_query=no
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext \
7248     conftest$ac_exeext conftest.$ac_ext
7249 LIBS=$ac_check_lib_save_LIBS
7250 fi
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7252 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7253 if test "x$ac_cv_lib_resolv_res_query" = xyes; then :
7254    LIBS="$LIBS -lresolv"
7255 fi
7256
7257         IPADDR_IN_DISPLAY=yes
7258         $as_echo "#define USE_PIPES 1" >>confdefs.h
7259
7260         $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7261
7262         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7263
7264         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7265
7266         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7267
7268         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7269
7270         external_path_file=/etc/default/login
7271         # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7272         # Attention: always take care to bind libsocket and libnsl before libc,
7273         # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7274         ;;
7275 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7276 *-*-sysv4.2*)
7277         $as_echo "#define USE_PIPES 1" >>confdefs.h
7278
7279         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7280
7281         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7282
7283         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7284
7285
7286 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7287
7288         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7289
7290         ;;
7291 # UnixWare 7.x, OpenUNIX 8
7292 *-*-sysv5*)
7293         CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7294
7295 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7296
7297         $as_echo "#define USE_PIPES 1" >>confdefs.h
7298
7299         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7300
7301         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7302
7303         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7304
7305         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7306
7307         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7308
7309         case "$host" in
7310         *-*-sysv5SCO_SV*)       # SCO OpenServer 6.x
7311                 maildir=/var/spool/mail
7312                 TEST_SHELL=/u95/bin/sh
7313
7314 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7315
7316                 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7317
7318                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7319 $as_echo_n "checking for getluid in -lprot... " >&6; }
7320 if ${ac_cv_lib_prot_getluid+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   ac_check_lib_save_LIBS=$LIBS
7324 LIBS="-lprot  $LIBS"
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h.  */
7327
7328 /* Override any GCC internal prototype to avoid an error.
7329    Use char because int might match the return type of a GCC
7330    builtin and then its argument prototype would still apply.  */
7331 #ifdef __cplusplus
7332 extern "C"
7333 #endif
7334 char getluid ();
7335 int
7336 main ()
7337 {
7338 return getluid ();
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 if ac_fn_c_try_link "$LINENO"; then :
7344   ac_cv_lib_prot_getluid=yes
7345 else
7346   ac_cv_lib_prot_getluid=no
7347 fi
7348 rm -f core conftest.err conftest.$ac_objext \
7349     conftest$ac_exeext conftest.$ac_ext
7350 LIBS=$ac_check_lib_save_LIBS
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7353 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7354 if test "x$ac_cv_lib_prot_getluid" = xyes; then :
7355    LIBS="$LIBS -lprot"
7356                         for ac_func in getluid setluid
7357 do :
7358   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7360 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7361   cat >>confdefs.h <<_ACEOF
7362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7363 _ACEOF
7364
7365 fi
7366 done
7367
7368                         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7369
7370                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7371
7372
7373 fi
7374
7375                 ;;
7376         *)      $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7377
7378                 check_for_libcrypt_later=1
7379                 ;;
7380         esac
7381         ;;
7382 *-*-sysv*)
7383         ;;
7384 # SCO UNIX and OEM versions of SCO UNIX
7385 *-*-sco3.2v4*)
7386         as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7387         ;;
7388 # SCO OpenServer 5.x
7389 *-*-sco3.2v5*)
7390         if test -z "$GCC"; then
7391                 CFLAGS="$CFLAGS -belf"
7392         fi
7393         LIBS="$LIBS -lprot -lx -ltinfo -lm"
7394         no_dev_ptmx=1
7395         $as_echo "#define USE_PIPES 1" >>confdefs.h
7396
7397         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7398
7399         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7400
7401         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7402
7403         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7404
7405         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7406
7407         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7408
7409         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7410
7411         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7412
7413         $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7414
7415         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7416
7417         for ac_func in getluid setluid
7418 do :
7419   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7421 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7422   cat >>confdefs.h <<_ACEOF
7423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7424 _ACEOF
7425
7426 fi
7427 done
7428
7429         MANTYPE=man
7430         TEST_SHELL=ksh
7431         ;;
7432 *-*-unicosmk*)
7433
7434 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7435
7436         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7437
7438         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7439
7440         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7441
7442         $as_echo "#define USE_PIPES 1" >>confdefs.h
7443
7444         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7445
7446         LDFLAGS="$LDFLAGS"
7447         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7448         MANTYPE=cat
7449         ;;
7450 *-*-unicosmp*)
7451         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7452
7453         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7454
7455         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7456
7457         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7458
7459         $as_echo "#define USE_PIPES 1" >>confdefs.h
7460
7461         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7462
7463         LDFLAGS="$LDFLAGS"
7464         LIBS="$LIBS -lgen -lacid -ldb"
7465         MANTYPE=cat
7466         ;;
7467 *-*-unicos*)
7468         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7469
7470         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7471
7472         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7473
7474         $as_echo "#define USE_PIPES 1" >>confdefs.h
7475
7476         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7477
7478         $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7479
7480         LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7481         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7482         MANTYPE=cat
7483         ;;
7484 *-dec-osf*)
7485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7486 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7487         no_osfsia=""
7488
7489 # Check whether --with-osfsia was given.
7490 if test "${with_osfsia+set}" = set; then :
7491   withval=$with_osfsia;
7492                         if test "x$withval" = "xno" ; then
7493                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7494 $as_echo "disabled" >&6; }
7495                                 no_osfsia=1
7496                         fi
7497
7498 fi
7499
7500         if test -z "$no_osfsia" ; then
7501                 if test -f /etc/sia/matrix.conf; then
7502                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503 $as_echo "yes" >&6; }
7504
7505 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7506
7507
7508 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7509
7510                         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7511
7512                         LIBS="$LIBS -lsecurity -ldb -lm -laud"
7513                         SIA_MSG="yes"
7514                 else
7515                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517
7518 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7519
7520                 fi
7521         fi
7522         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7523
7524         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7525
7526         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7527
7528         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7529
7530
7531 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7532
7533         ;;
7534
7535 *-*-nto-qnx*)
7536         $as_echo "#define USE_PIPES 1" >>confdefs.h
7537
7538         $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7539
7540
7541 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7542
7543
7544 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7545
7546
7547 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7548
7549         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7550
7551         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7552
7553
7554 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7555
7556         enable_etc_default_login=no     # has incompatible /etc/default/login
7557         case "$host" in
7558         *-*-nto-qnx6*)
7559                 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7560
7561                 ;;
7562         esac
7563         ;;
7564
7565 *-*-ultrix*)
7566
7567 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7568
7569
7570 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7571
7572         $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7573
7574
7575 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7576
7577         ;;
7578
7579 *-*-lynxos)
7580         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7581         $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7582
7583
7584 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7585
7586         ;;
7587 esac
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7590 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7591 if test "$cross_compiling" = yes; then :
7592         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7593 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7594
7595 else
7596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h.  */
7598  #include <stdio.h>
7599 int
7600 main ()
7601 {
7602  exit(0);
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_run "$LINENO"; then :
7608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7609 $as_echo "yes" >&6; }
7610 else
7611
7612                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7614                 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7615
7616 fi
7617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7618   conftest.$ac_objext conftest.beam conftest.$ac_ext
7619 fi
7620
7621
7622 # Checks for libraries.
7623 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7624 if test "x$ac_cv_func_yp_match" = xyes; then :
7625
7626 else
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7628 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7629 if ${ac_cv_lib_nsl_yp_match+:} false; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   ac_check_lib_save_LIBS=$LIBS
7633 LIBS="-lnsl  $LIBS"
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636
7637 /* Override any GCC internal prototype to avoid an error.
7638    Use char because int might match the return type of a GCC
7639    builtin and then its argument prototype would still apply.  */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char yp_match ();
7644 int
7645 main ()
7646 {
7647 return yp_match ();
7648   ;
7649   return 0;
7650 }
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"; then :
7653   ac_cv_lib_nsl_yp_match=yes
7654 else
7655   ac_cv_lib_nsl_yp_match=no
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext \
7658     conftest$ac_exeext conftest.$ac_ext
7659 LIBS=$ac_check_lib_save_LIBS
7660 fi
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7662 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7663 if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
7664   cat >>confdefs.h <<_ACEOF
7665 #define HAVE_LIBNSL 1
7666 _ACEOF
7667
7668   LIBS="-lnsl $LIBS"
7669
7670 fi
7671
7672 fi
7673
7674 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7675 if test "x$ac_cv_func_setsockopt" = xyes; then :
7676
7677 else
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7679 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7680 if ${ac_cv_lib_socket_setsockopt+:} false; then :
7681   $as_echo_n "(cached) " >&6
7682 else
7683   ac_check_lib_save_LIBS=$LIBS
7684 LIBS="-lsocket  $LIBS"
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h.  */
7687
7688 /* Override any GCC internal prototype to avoid an error.
7689    Use char because int might match the return type of a GCC
7690    builtin and then its argument prototype would still apply.  */
7691 #ifdef __cplusplus
7692 extern "C"
7693 #endif
7694 char setsockopt ();
7695 int
7696 main ()
7697 {
7698 return setsockopt ();
7699   ;
7700   return 0;
7701 }
7702 _ACEOF
7703 if ac_fn_c_try_link "$LINENO"; then :
7704   ac_cv_lib_socket_setsockopt=yes
7705 else
7706   ac_cv_lib_socket_setsockopt=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext \
7709     conftest$ac_exeext conftest.$ac_ext
7710 LIBS=$ac_check_lib_save_LIBS
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7713 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7714 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
7715   cat >>confdefs.h <<_ACEOF
7716 #define HAVE_LIBSOCKET 1
7717 _ACEOF
7718
7719   LIBS="-lsocket $LIBS"
7720
7721 fi
7722
7723 fi
7724
7725
7726 for ac_func in dirname
7727 do :
7728   ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7729 if test "x$ac_cv_func_dirname" = xyes; then :
7730   cat >>confdefs.h <<_ACEOF
7731 #define HAVE_DIRNAME 1
7732 _ACEOF
7733  for ac_header in libgen.h
7734 do :
7735   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7736 if test "x$ac_cv_header_libgen_h" = xyes; then :
7737   cat >>confdefs.h <<_ACEOF
7738 #define HAVE_LIBGEN_H 1
7739 _ACEOF
7740
7741 fi
7742
7743 done
7744
7745 else
7746
7747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7748 $as_echo_n "checking for dirname in -lgen... " >&6; }
7749 if ${ac_cv_lib_gen_dirname+:} false; then :
7750   $as_echo_n "(cached) " >&6
7751 else
7752   ac_check_lib_save_LIBS=$LIBS
7753 LIBS="-lgen  $LIBS"
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h.  */
7756
7757 /* Override any GCC internal prototype to avoid an error.
7758    Use char because int might match the return type of a GCC
7759    builtin and then its argument prototype would still apply.  */
7760 #ifdef __cplusplus
7761 extern "C"
7762 #endif
7763 char dirname ();
7764 int
7765 main ()
7766 {
7767 return dirname ();
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 if ac_fn_c_try_link "$LINENO"; then :
7773   ac_cv_lib_gen_dirname=yes
7774 else
7775   ac_cv_lib_gen_dirname=no
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext \
7778     conftest$ac_exeext conftest.$ac_ext
7779 LIBS=$ac_check_lib_save_LIBS
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7782 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7783 if test "x$ac_cv_lib_gen_dirname" = xyes; then :
7784
7785                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7786 $as_echo_n "checking for broken dirname... " >&6; }
7787 if ${ac_cv_have_broken_dirname+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790
7791                         save_LIBS="$LIBS"
7792                         LIBS="$LIBS -lgen"
7793                         if test "$cross_compiling" = yes; then :
7794    ac_cv_have_broken_dirname="no"
7795 else
7796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798
7799 #include <libgen.h>
7800 #include <string.h>
7801
7802 int main(int argc, char **argv) {
7803     char *s, buf[32];
7804
7805     strncpy(buf,"/etc", 32);
7806     s = dirname(buf);
7807     if (!s || strncmp(s, "/", 32) != 0) {
7808         exit(1);
7809     } else {
7810         exit(0);
7811     }
7812 }
7813
7814 _ACEOF
7815 if ac_fn_c_try_run "$LINENO"; then :
7816    ac_cv_have_broken_dirname="no"
7817 else
7818    ac_cv_have_broken_dirname="yes"
7819 fi
7820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7821   conftest.$ac_objext conftest.beam conftest.$ac_ext
7822 fi
7823
7824                         LIBS="$save_LIBS"
7825
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7828 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7829                 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7830                         LIBS="$LIBS -lgen"
7831                         $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7832
7833                         for ac_header in libgen.h
7834 do :
7835   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7836 if test "x$ac_cv_header_libgen_h" = xyes; then :
7837   cat >>confdefs.h <<_ACEOF
7838 #define HAVE_LIBGEN_H 1
7839 _ACEOF
7840
7841 fi
7842
7843 done
7844
7845                 fi
7846
7847 fi
7848
7849
7850 fi
7851 done
7852
7853
7854 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7855 if test "x$ac_cv_func_getspnam" = xyes; then :
7856
7857 else
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7859 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7860 if ${ac_cv_lib_gen_getspnam+:} false; then :
7861   $as_echo_n "(cached) " >&6
7862 else
7863   ac_check_lib_save_LIBS=$LIBS
7864 LIBS="-lgen  $LIBS"
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h.  */
7867
7868 /* Override any GCC internal prototype to avoid an error.
7869    Use char because int might match the return type of a GCC
7870    builtin and then its argument prototype would still apply.  */
7871 #ifdef __cplusplus
7872 extern "C"
7873 #endif
7874 char getspnam ();
7875 int
7876 main ()
7877 {
7878 return getspnam ();
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 if ac_fn_c_try_link "$LINENO"; then :
7884   ac_cv_lib_gen_getspnam=yes
7885 else
7886   ac_cv_lib_gen_getspnam=no
7887 fi
7888 rm -f core conftest.err conftest.$ac_objext \
7889     conftest$ac_exeext conftest.$ac_ext
7890 LIBS=$ac_check_lib_save_LIBS
7891 fi
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7893 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7894 if test "x$ac_cv_lib_gen_getspnam" = xyes; then :
7895   LIBS="$LIBS -lgen"
7896 fi
7897
7898 fi
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7901 $as_echo_n "checking for library containing basename... " >&6; }
7902 if ${ac_cv_search_basename+:} false; then :
7903   $as_echo_n "(cached) " >&6
7904 else
7905   ac_func_search_save_LIBS=$LIBS
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h.  */
7908
7909 /* Override any GCC internal prototype to avoid an error.
7910    Use char because int might match the return type of a GCC
7911    builtin and then its argument prototype would still apply.  */
7912 #ifdef __cplusplus
7913 extern "C"
7914 #endif
7915 char basename ();
7916 int
7917 main ()
7918 {
7919 return basename ();
7920   ;
7921   return 0;
7922 }
7923 _ACEOF
7924 for ac_lib in '' gen; do
7925   if test -z "$ac_lib"; then
7926     ac_res="none required"
7927   else
7928     ac_res=-l$ac_lib
7929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7930   fi
7931   if ac_fn_c_try_link "$LINENO"; then :
7932   ac_cv_search_basename=$ac_res
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext \
7935     conftest$ac_exeext
7936   if ${ac_cv_search_basename+:} false; then :
7937   break
7938 fi
7939 done
7940 if ${ac_cv_search_basename+:} false; then :
7941
7942 else
7943   ac_cv_search_basename=no
7944 fi
7945 rm conftest.$ac_ext
7946 LIBS=$ac_func_search_save_LIBS
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7949 $as_echo "$ac_cv_search_basename" >&6; }
7950 ac_res=$ac_cv_search_basename
7951 if test "$ac_res" != no; then :
7952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7953
7954 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7955
7956 fi
7957
7958
7959
7960 # Check whether --with-zlib was given.
7961 if test "${with_zlib+set}" = set; then :
7962   withval=$with_zlib;  if test "x$withval" = "xno" ; then
7963                 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7964           elif test "x$withval" != "xyes"; then
7965                 if test -d "$withval/lib"; then
7966                         if test -n "${need_dash_r}"; then
7967                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7968                         else
7969                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7970                         fi
7971                 else
7972                         if test -n "${need_dash_r}"; then
7973                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7974                         else
7975                                 LDFLAGS="-L${withval} ${LDFLAGS}"
7976                         fi
7977                 fi
7978                 if test -d "$withval/include"; then
7979                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7980                 else
7981                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
7982                 fi
7983         fi
7984
7985 fi
7986
7987
7988 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7989 if test "x$ac_cv_header_zlib_h" = xyes; then :
7990
7991 else
7992   as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7993 fi
7994
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7997 $as_echo_n "checking for deflate in -lz... " >&6; }
7998 if ${ac_cv_lib_z_deflate+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   ac_check_lib_save_LIBS=$LIBS
8002 LIBS="-lz  $LIBS"
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h.  */
8005
8006 /* Override any GCC internal prototype to avoid an error.
8007    Use char because int might match the return type of a GCC
8008    builtin and then its argument prototype would still apply.  */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char deflate ();
8013 int
8014 main ()
8015 {
8016 return deflate ();
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022   ac_cv_lib_z_deflate=yes
8023 else
8024   ac_cv_lib_z_deflate=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext \
8027     conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8029 fi
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8031 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8032 if test "x$ac_cv_lib_z_deflate" = xyes; then :
8033   cat >>confdefs.h <<_ACEOF
8034 #define HAVE_LIBZ 1
8035 _ACEOF
8036
8037   LIBS="-lz $LIBS"
8038
8039 else
8040
8041                 saved_CPPFLAGS="$CPPFLAGS"
8042                 saved_LDFLAGS="$LDFLAGS"
8043                 save_LIBS="$LIBS"
8044                                 if test -n "${need_dash_r}"; then
8045                         LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8046                 else
8047                         LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8048                 fi
8049                 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8050                 LIBS="$LIBS -lz"
8051                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h.  */
8053
8054 /* Override any GCC internal prototype to avoid an error.
8055    Use char because int might match the return type of a GCC
8056    builtin and then its argument prototype would still apply.  */
8057 #ifdef __cplusplus
8058 extern "C"
8059 #endif
8060 char deflate ();
8061 int
8062 main ()
8063 {
8064 return deflate ();
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 if ac_fn_c_try_link "$LINENO"; then :
8070   $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8071
8072 else
8073
8074                                 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8075
8076
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext \
8079     conftest$ac_exeext conftest.$ac_ext
8080
8081
8082 fi
8083
8084
8085
8086 # Check whether --with-zlib-version-check was given.
8087 if test "${with_zlib_version_check+set}" = set; then :
8088   withval=$with_zlib_version_check;   if test "x$withval" = "xno" ; then
8089                 zlib_check_nonfatal=1
8090            fi
8091
8092
8093 fi
8094
8095
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8097 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8098 if test "$cross_compiling" = yes; then :
8099         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8100 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8101
8102 else
8103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h.  */
8105
8106 #include <stdio.h>
8107 #include <zlib.h>
8108
8109 int
8110 main ()
8111 {
8112
8113         int a=0, b=0, c=0, d=0, n, v;
8114         n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8115         if (n != 3 && n != 4)
8116                 exit(1);
8117         v = a*1000000 + b*10000 + c*100 + d;
8118         fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8119
8120         /* 1.1.4 is OK */
8121         if (a == 1 && b == 1 && c >= 4)
8122                 exit(0);
8123
8124         /* 1.2.3 and up are OK */
8125         if (v >= 1020300)
8126                 exit(0);
8127
8128         exit(2);
8129
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_run "$LINENO"; then :
8135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8137 else
8138    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8139 $as_echo "yes" >&6; }
8140           if test -z "$zlib_check_nonfatal" ; then
8141                 as_fn_error $? "*** zlib too old - check config.log ***
8142 Your reported zlib version has known security problems.  It's possible your
8143 vendor has fixed these problems without changing the version number.  If you
8144 are sure this is the case, you can disable the check by running
8145 \"./configure --without-zlib-version-check\".
8146 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8147 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8148           else
8149                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8150 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8151           fi
8152
8153 fi
8154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8155   conftest.$ac_objext conftest.beam conftest.$ac_ext
8156 fi
8157
8158
8159 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8160 if test "x$ac_cv_func_strcasecmp" = xyes; then :
8161
8162 else
8163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8164 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8165 if ${ac_cv_lib_resolv_strcasecmp+:} false; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168   ac_check_lib_save_LIBS=$LIBS
8169 LIBS="-lresolv  $LIBS"
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h.  */
8172
8173 /* Override any GCC internal prototype to avoid an error.
8174    Use char because int might match the return type of a GCC
8175    builtin and then its argument prototype would still apply.  */
8176 #ifdef __cplusplus
8177 extern "C"
8178 #endif
8179 char strcasecmp ();
8180 int
8181 main ()
8182 {
8183 return strcasecmp ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"; then :
8189   ac_cv_lib_resolv_strcasecmp=yes
8190 else
8191   ac_cv_lib_resolv_strcasecmp=no
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext \
8194     conftest$ac_exeext conftest.$ac_ext
8195 LIBS=$ac_check_lib_save_LIBS
8196 fi
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8198 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8199 if test "x$ac_cv_lib_resolv_strcasecmp" = xyes; then :
8200   LIBS="$LIBS -lresolv"
8201 fi
8202
8203
8204 fi
8205
8206 for ac_func in utimes
8207 do :
8208   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8209 if test "x$ac_cv_func_utimes" = xyes; then :
8210   cat >>confdefs.h <<_ACEOF
8211 #define HAVE_UTIMES 1
8212 _ACEOF
8213
8214 else
8215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8216 $as_echo_n "checking for utimes in -lc89... " >&6; }
8217 if ${ac_cv_lib_c89_utimes+:} false; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   ac_check_lib_save_LIBS=$LIBS
8221 LIBS="-lc89  $LIBS"
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h.  */
8224
8225 /* Override any GCC internal prototype to avoid an error.
8226    Use char because int might match the return type of a GCC
8227    builtin and then its argument prototype would still apply.  */
8228 #ifdef __cplusplus
8229 extern "C"
8230 #endif
8231 char utimes ();
8232 int
8233 main ()
8234 {
8235 return utimes ();
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 if ac_fn_c_try_link "$LINENO"; then :
8241   ac_cv_lib_c89_utimes=yes
8242 else
8243   ac_cv_lib_c89_utimes=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext \
8246     conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8248 fi
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8250 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8251 if test "x$ac_cv_lib_c89_utimes" = xyes; then :
8252   $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8253
8254                                         LIBS="$LIBS -lc89"
8255 fi
8256
8257
8258 fi
8259 done
8260
8261
8262 for ac_header in libutil.h
8263 do :
8264   ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8265 if test "x$ac_cv_header_libutil_h" = xyes; then :
8266   cat >>confdefs.h <<_ACEOF
8267 #define HAVE_LIBUTIL_H 1
8268 _ACEOF
8269
8270 fi
8271
8272 done
8273
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8275 $as_echo_n "checking for library containing login... " >&6; }
8276 if ${ac_cv_search_login+:} false; then :
8277   $as_echo_n "(cached) " >&6
8278 else
8279   ac_func_search_save_LIBS=$LIBS
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h.  */
8282
8283 /* Override any GCC internal prototype to avoid an error.
8284    Use char because int might match the return type of a GCC
8285    builtin and then its argument prototype would still apply.  */
8286 #ifdef __cplusplus
8287 extern "C"
8288 #endif
8289 char login ();
8290 int
8291 main ()
8292 {
8293 return login ();
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 for ac_lib in '' util bsd; do
8299   if test -z "$ac_lib"; then
8300     ac_res="none required"
8301   else
8302     ac_res=-l$ac_lib
8303     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8304   fi
8305   if ac_fn_c_try_link "$LINENO"; then :
8306   ac_cv_search_login=$ac_res
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext \
8309     conftest$ac_exeext
8310   if ${ac_cv_search_login+:} false; then :
8311   break
8312 fi
8313 done
8314 if ${ac_cv_search_login+:} false; then :
8315
8316 else
8317   ac_cv_search_login=no
8318 fi
8319 rm conftest.$ac_ext
8320 LIBS=$ac_func_search_save_LIBS
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8323 $as_echo "$ac_cv_search_login" >&6; }
8324 ac_res=$ac_cv_search_login
8325 if test "$ac_res" != no; then :
8326   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8327
8328 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
8329
8330 fi
8331
8332 for ac_func in fmt_scaled logout updwtmp logwtmp
8333 do :
8334   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8335 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8336 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8337   cat >>confdefs.h <<_ACEOF
8338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8339 _ACEOF
8340
8341 fi
8342 done
8343
8344
8345 for ac_func in strftime
8346 do :
8347   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8348 if test "x$ac_cv_func_strftime" = xyes; then :
8349   cat >>confdefs.h <<_ACEOF
8350 #define HAVE_STRFTIME 1
8351 _ACEOF
8352
8353 else
8354   # strftime is in -lintl on SCO UNIX.
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8356 $as_echo_n "checking for strftime in -lintl... " >&6; }
8357 if ${ac_cv_lib_intl_strftime+:} false; then :
8358   $as_echo_n "(cached) " >&6
8359 else
8360   ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lintl  $LIBS"
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h.  */
8364
8365 /* Override any GCC internal prototype to avoid an error.
8366    Use char because int might match the return type of a GCC
8367    builtin and then its argument prototype would still apply.  */
8368 #ifdef __cplusplus
8369 extern "C"
8370 #endif
8371 char strftime ();
8372 int
8373 main ()
8374 {
8375 return strftime ();
8376   ;
8377   return 0;
8378 }
8379 _ACEOF
8380 if ac_fn_c_try_link "$LINENO"; then :
8381   ac_cv_lib_intl_strftime=yes
8382 else
8383   ac_cv_lib_intl_strftime=no
8384 fi
8385 rm -f core conftest.err conftest.$ac_objext \
8386     conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8388 fi
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8390 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8391 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
8392   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8393
8394 LIBS="-lintl $LIBS"
8395 fi
8396
8397 fi
8398 done
8399
8400
8401 # Check for ALTDIRFUNC glob() extension
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8403 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h.  */
8406
8407                 #include <glob.h>
8408                 #ifdef GLOB_ALTDIRFUNC
8409                 FOUNDIT
8410                 #endif
8411
8412 _ACEOF
8413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8414   $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8415
8416
8417 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8418
8419                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8420 $as_echo "yes" >&6; }
8421
8422 else
8423
8424                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426
8427
8428 fi
8429 rm -f conftest*
8430
8431
8432 # Check for g.gl_matchc glob() extension
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8434 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h.  */
8437  #include <glob.h>
8438 int
8439 main ()
8440 {
8441  glob_t g; g.gl_matchc = 1;
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447
8448
8449 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8450
8451                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8453
8454 else
8455
8456                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8458
8459 fi
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461
8462 # Check for g.gl_statv glob() extension
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8464 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h.  */
8467  #include <glob.h>
8468 int
8469 main ()
8470 {
8471
8472 #ifndef GLOB_KEEPSTAT
8473 #error "glob does not support GLOB_KEEPSTAT extension"
8474 #endif
8475 glob_t g;
8476 g.gl_statv = NULL;
8477
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483
8484
8485 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8486
8487                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8488 $as_echo "yes" >&6; }
8489
8490 else
8491
8492                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494
8495
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8498
8499 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8500 "
8501 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = xyes; then :
8502   ac_have_decl=1
8503 else
8504   ac_have_decl=0
8505 fi
8506
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8509 _ACEOF
8510
8511
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8513 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8514 if test "$cross_compiling" = yes; then :
8515
8516                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8517 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8518                 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8519
8520
8521
8522 else
8523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h.  */
8525
8526 #include <sys/types.h>
8527 #include <dirent.h>
8528 int
8529 main ()
8530 {
8531
8532         struct dirent d;
8533         exit(sizeof(d.d_name)<=sizeof(char));
8534
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 if ac_fn_c_try_run "$LINENO"; then :
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8541 $as_echo "yes" >&6; }
8542 else
8543
8544                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546
8547 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8548
8549
8550 fi
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8552   conftest.$ac_objext conftest.beam conftest.$ac_ext
8553 fi
8554
8555
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8557 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8558 if test -d "/proc/$$/fd" ; then
8559
8560 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8561
8562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8563 $as_echo "yes" >&6; }
8564 else
8565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 fi
8568
8569 # Check whether user wants S/Key support
8570 SKEY_MSG="no"
8571
8572 # Check whether --with-skey was given.
8573 if test "${with_skey+set}" = set; then :
8574   withval=$with_skey;
8575                 if test "x$withval" != "xno" ; then
8576
8577                         if test "x$withval" != "xyes" ; then
8578                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8579                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
8580                         fi
8581
8582
8583 $as_echo "#define SKEY 1" >>confdefs.h
8584
8585                         LIBS="-lskey $LIBS"
8586                         SKEY_MSG="yes"
8587
8588                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8589 $as_echo_n "checking for s/key support... " >&6; }
8590                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h.  */
8592
8593 #include <stdio.h>
8594 #include <skey.h>
8595
8596 int
8597 main ()
8598 {
8599
8600         char *ff = skey_keyinfo(""); ff="";
8601         exit(0);
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8609 $as_echo "yes" >&6; }
8610 else
8611
8612                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614                                         as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8615
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext \
8618     conftest$ac_exeext conftest.$ac_ext
8619                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8620 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8621                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h.  */
8623
8624 #include <stdio.h>
8625 #include <skey.h>
8626
8627 int
8628 main ()
8629 {
8630
8631         (void)skeychallenge(NULL,"name","",0);
8632
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 if ac_fn_c_try_compile "$LINENO"; then :
8638
8639                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8640 $as_echo "yes" >&6; }
8641
8642 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8643
8644 else
8645
8646                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648
8649 fi
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651                 fi
8652
8653
8654 fi
8655
8656
8657 # Check whether user wants TCP wrappers support
8658 TCPW_MSG="no"
8659
8660 # Check whether --with-tcp-wrappers was given.
8661 if test "${with_tcp_wrappers+set}" = set; then :
8662   withval=$with_tcp_wrappers;
8663                 if test "x$withval" != "xno" ; then
8664                         saved_LIBS="$LIBS"
8665                         saved_LDFLAGS="$LDFLAGS"
8666                         saved_CPPFLAGS="$CPPFLAGS"
8667                         if test -n "${withval}" && \
8668                             test "x${withval}" != "xyes"; then
8669                                 if test -d "${withval}/lib"; then
8670                                         if test -n "${need_dash_r}"; then
8671                                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8672                                         else
8673                                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8674                                         fi
8675                                 else
8676                                         if test -n "${need_dash_r}"; then
8677                                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8678                                         else
8679                                                 LDFLAGS="-L${withval} ${LDFLAGS}"
8680                                         fi
8681                                 fi
8682                                 if test -d "${withval}/include"; then
8683                                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8684                                 else
8685                                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
8686                                 fi
8687                         fi
8688                         LIBS="-lwrap $LIBS"
8689                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8690 $as_echo_n "checking for libwrap... " >&6; }
8691                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h.  */
8693
8694 #include <sys/types.h>
8695 #include <sys/socket.h>
8696 #include <netinet/in.h>
8697 #include <tcpd.h>
8698 int deny_severity = 0, allow_severity = 0;
8699
8700 int
8701 main ()
8702 {
8703
8704         hosts_access(0);
8705
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711
8712                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8713 $as_echo "yes" >&6; }
8714
8715 $as_echo "#define LIBWRAP 1" >>confdefs.h
8716
8717                                         SSHDLIBS="$SSHDLIBS -lwrap"
8718                                         TCPW_MSG="yes"
8719
8720 else
8721
8722                                         as_fn_error $? "*** libwrap missing" "$LINENO" 5
8723
8724
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext \
8727     conftest$ac_exeext conftest.$ac_ext
8728                         LIBS="$saved_LIBS"
8729                 fi
8730
8731
8732 fi
8733
8734
8735 # Check whether user wants libedit support
8736 LIBEDIT_MSG="no"
8737
8738 # Check whether --with-libedit was given.
8739 if test "${with_libedit+set}" = set; then :
8740   withval=$with_libedit;  if test "x$withval" != "xno" ; then
8741                 if test "x$withval" = "xyes" ; then
8742                         # Extract the first word of "pkg-config", so it can be a program name with args.
8743 set dummy pkg-config; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if ${ac_cv_path_PKGCONFIG+:} false; then :
8747   $as_echo_n "(cached) " >&6
8748 else
8749   case $PKGCONFIG in
8750   [\\/]* | ?:[\\/]*)
8751   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
8752   ;;
8753   *)
8754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8756 do
8757   IFS=$as_save_IFS
8758   test -z "$as_dir" && as_dir=.
8759     for ac_exec_ext in '' $ac_executable_extensions; do
8760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763     break 2
8764   fi
8765 done
8766   done
8767 IFS=$as_save_IFS
8768
8769   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
8770   ;;
8771 esac
8772 fi
8773 PKGCONFIG=$ac_cv_path_PKGCONFIG
8774 if test -n "$PKGCONFIG"; then
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8776 $as_echo "$PKGCONFIG" >&6; }
8777 else
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782
8783                         if test "x$PKGCONFIG" != "xno"; then
8784                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
8785 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
8786                                 if "$PKGCONFIG" libedit; then
8787                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8788 $as_echo "yes" >&6; }
8789                                         use_pkgconfig_for_libedit=yes
8790                                 else
8791                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8793                                 fi
8794                         fi
8795                 else
8796                         CPPFLAGS="$CPPFLAGS -I${withval}/include"
8797                         if test -n "${need_dash_r}"; then
8798                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8799                         else
8800                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8801                         fi
8802                 fi
8803                 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
8804                         LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
8805                         CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
8806                 else
8807                         LIBEDIT="-ledit -lcurses"
8808                 fi
8809                 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
8810                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8811 $as_echo_n "checking for el_init in -ledit... " >&6; }
8812 if ${ac_cv_lib_edit_el_init+:} false; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   ac_check_lib_save_LIBS=$LIBS
8816 LIBS="-ledit  $OTHERLIBS
8817                  $LIBS"
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h.  */
8820
8821 /* Override any GCC internal prototype to avoid an error.
8822    Use char because int might match the return type of a GCC
8823    builtin and then its argument prototype would still apply.  */
8824 #ifdef __cplusplus
8825 extern "C"
8826 #endif
8827 char el_init ();
8828 int
8829 main ()
8830 {
8831 return el_init ();
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837   ac_cv_lib_edit_el_init=yes
8838 else
8839   ac_cv_lib_edit_el_init=no
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext \
8842     conftest$ac_exeext conftest.$ac_ext
8843 LIBS=$ac_check_lib_save_LIBS
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8846 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8847 if test "x$ac_cv_lib_edit_el_init" = xyes; then :
8848
8849 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8850
8851                           LIBEDIT_MSG="yes"
8852
8853
8854 else
8855    as_fn_error $? "libedit not found" "$LINENO" 5
8856 fi
8857
8858                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8859 $as_echo_n "checking if libedit version is compatible... " >&6; }
8860                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h.  */
8862  #include <histedit.h>
8863 int
8864 main ()
8865 {
8866
8867         int i = H_SETSIZE;
8868         el_init("", NULL, NULL, NULL);
8869         exit(0);
8870
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8877 $as_echo "yes" >&6; }
8878 else
8879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8881                       as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8882
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885         fi
8886
8887 fi
8888
8889
8890 AUDIT_MODULE=none
8891
8892 # Check whether --with-audit was given.
8893 if test "${with_audit+set}" = set; then :
8894   withval=$with_audit;
8895           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8896 $as_echo_n "checking for supported audit module... " >&6; }
8897           case "$withval" in
8898           bsm)
8899                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8900 $as_echo "bsm" >&6; }
8901                 AUDIT_MODULE=bsm
8902                                 for ac_header in bsm/audit.h
8903 do :
8904   ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8905 #ifdef HAVE_TIME_H
8906 # include <time.h>
8907 #endif
8908
8909
8910 "
8911 if test "x$ac_cv_header_bsm_audit_h" = xyes; then :
8912   cat >>confdefs.h <<_ACEOF
8913 #define HAVE_BSM_AUDIT_H 1
8914 _ACEOF
8915
8916 else
8917   as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8918 fi
8919
8920 done
8921
8922                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8923 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8924 if ${ac_cv_lib_bsm_getaudit+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   ac_check_lib_save_LIBS=$LIBS
8928 LIBS="-lbsm  $LIBS"
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h.  */
8931
8932 /* Override any GCC internal prototype to avoid an error.
8933    Use char because int might match the return type of a GCC
8934    builtin and then its argument prototype would still apply.  */
8935 #ifdef __cplusplus
8936 extern "C"
8937 #endif
8938 char getaudit ();
8939 int
8940 main ()
8941 {
8942 return getaudit ();
8943   ;
8944   return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_link "$LINENO"; then :
8948   ac_cv_lib_bsm_getaudit=yes
8949 else
8950   ac_cv_lib_bsm_getaudit=no
8951 fi
8952 rm -f core conftest.err conftest.$ac_objext \
8953     conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
8957 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
8958 if test "x$ac_cv_lib_bsm_getaudit" = xyes; then :
8959   cat >>confdefs.h <<_ACEOF
8960 #define HAVE_LIBBSM 1
8961 _ACEOF
8962
8963   LIBS="-lbsm $LIBS"
8964
8965 else
8966   as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
8967 fi
8968
8969                 for ac_func in getaudit
8970 do :
8971   ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
8972 if test "x$ac_cv_func_getaudit" = xyes; then :
8973   cat >>confdefs.h <<_ACEOF
8974 #define HAVE_GETAUDIT 1
8975 _ACEOF
8976
8977 else
8978   as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
8979 fi
8980 done
8981
8982                 # These are optional
8983                 for ac_func in getaudit_addr aug_get_machine
8984 do :
8985   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8986 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8987 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8988   cat >>confdefs.h <<_ACEOF
8989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8990 _ACEOF
8991
8992 fi
8993 done
8994
8995
8996 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
8997
8998                 ;;
8999           linux)
9000                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
9001 $as_echo "linux" >&6; }
9002                 AUDIT_MODULE=linux
9003                                 for ac_header in libaudit.h
9004 do :
9005   ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
9006 if test "x$ac_cv_header_libaudit_h" = xyes; then :
9007   cat >>confdefs.h <<_ACEOF
9008 #define HAVE_LIBAUDIT_H 1
9009 _ACEOF
9010
9011 fi
9012
9013 done
9014
9015                 SSHDLIBS="$SSHDLIBS -laudit"
9016
9017 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
9018
9019                 ;;
9020           debug)
9021                 AUDIT_MODULE=debug
9022                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
9023 $as_echo "debug" >&6; }
9024
9025 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
9026
9027                 ;;
9028           no)
9029                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9031                 ;;
9032           *)
9033                 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
9034                 ;;
9035         esac
9036
9037 fi
9038
9039
9040 for ac_func in  \
9041         arc4random \
9042         arc4random_buf \
9043         arc4random_uniform \
9044         asprintf \
9045         b64_ntop \
9046         __b64_ntop \
9047         b64_pton \
9048         __b64_pton \
9049         bcopy \
9050         bindresvport_sa \
9051         clock \
9052         closefrom \
9053         dirfd \
9054         fchmod \
9055         fchown \
9056         freeaddrinfo \
9057         fstatvfs \
9058         futimes \
9059         getaddrinfo \
9060         getcwd \
9061         getgrouplist \
9062         getnameinfo \
9063         getopt \
9064         getpeereid \
9065         getpeerucred \
9066         _getpty \
9067         getrlimit \
9068         getttyent \
9069         glob \
9070         group_from_gid \
9071         inet_aton \
9072         inet_ntoa \
9073         inet_ntop \
9074         innetgr \
9075         login_getcapbool \
9076         md5_crypt \
9077         memmove \
9078         mkdtemp \
9079         mmap \
9080         ngetaddrinfo \
9081         nsleep \
9082         ogetaddrinfo \
9083         openlog_r \
9084         openpty \
9085         poll \
9086         prctl \
9087         pstat \
9088         readpassphrase \
9089         realpath \
9090         recvmsg \
9091         rresvport_af \
9092         sendmsg \
9093         setdtablesize \
9094         setegid \
9095         setenv \
9096         seteuid \
9097         setgroupent \
9098         setgroups \
9099         setlogin \
9100         setpassent\
9101         setpcred \
9102         setproctitle \
9103         setregid \
9104         setreuid \
9105         setrlimit \
9106         setsid \
9107         setvbuf \
9108         sigaction \
9109         sigvec \
9110         snprintf \
9111         socketpair \
9112         statfs \
9113         statvfs \
9114         strdup \
9115         strerror \
9116         strlcat \
9117         strlcpy \
9118         strmode \
9119         strnvis \
9120         strptime \
9121         strtonum \
9122         strtoll \
9123         strtoul \
9124         swap32 \
9125         sysconf \
9126         tcgetpgrp \
9127         timingsafe_bcmp \
9128         truncate \
9129         unsetenv \
9130         updwtmpx \
9131         user_from_uid \
9132         vasprintf \
9133         vhangup \
9134         vsnprintf \
9135         waitpid \
9136
9137 do :
9138   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9141   cat >>confdefs.h <<_ACEOF
9142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9143 _ACEOF
9144
9145 fi
9146 done
9147
9148
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h.  */
9151  #include <ctype.h>
9152 int
9153 main ()
9154 {
9155  return (isblank('a'));
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"; then :
9161
9162 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9163
9164
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext \
9167     conftest$ac_exeext conftest.$ac_ext
9168
9169 # PKCS#11 support requires dlopen() and co
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9171 $as_echo_n "checking for library containing dlopen... " >&6; }
9172 if ${ac_cv_search_dlopen+:} false; then :
9173   $as_echo_n "(cached) " >&6
9174 else
9175   ac_func_search_save_LIBS=$LIBS
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h.  */
9178
9179 /* Override any GCC internal prototype to avoid an error.
9180    Use char because int might match the return type of a GCC
9181    builtin and then its argument prototype would still apply.  */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 char dlopen ();
9186 int
9187 main ()
9188 {
9189 return dlopen ();
9190   ;
9191   return 0;
9192 }
9193 _ACEOF
9194 for ac_lib in '' dl; do
9195   if test -z "$ac_lib"; then
9196     ac_res="none required"
9197   else
9198     ac_res=-l$ac_lib
9199     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9200   fi
9201   if ac_fn_c_try_link "$LINENO"; then :
9202   ac_cv_search_dlopen=$ac_res
9203 fi
9204 rm -f core conftest.err conftest.$ac_objext \
9205     conftest$ac_exeext
9206   if ${ac_cv_search_dlopen+:} false; then :
9207   break
9208 fi
9209 done
9210 if ${ac_cv_search_dlopen+:} false; then :
9211
9212 else
9213   ac_cv_search_dlopen=no
9214 fi
9215 rm conftest.$ac_ext
9216 LIBS=$ac_func_search_save_LIBS
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9219 $as_echo "$ac_cv_search_dlopen" >&6; }
9220 ac_res=$ac_cv_search_dlopen
9221 if test "$ac_res" != no; then :
9222   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9223
9224 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9225
9226
9227 fi
9228
9229
9230 # IRIX has a const char return value for gai_strerror()
9231 for ac_func in gai_strerror
9232 do :
9233   ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9234 if test "x$ac_cv_func_gai_strerror" = xyes; then :
9235   cat >>confdefs.h <<_ACEOF
9236 #define HAVE_GAI_STRERROR 1
9237 _ACEOF
9238
9239         $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9240
9241         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h.  */
9243
9244 #include <sys/types.h>
9245 #include <sys/socket.h>
9246 #include <netdb.h>
9247
9248 const char *gai_strerror(int);
9249
9250 int
9251 main ()
9252 {
9253
9254         char *str;
9255         str = gai_strerror(0);
9256
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 if ac_fn_c_try_compile "$LINENO"; then :
9262
9263
9264 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9265
9266 fi
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 fi
9269 done
9270
9271
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9273 $as_echo_n "checking for library containing nanosleep... " >&6; }
9274 if ${ac_cv_search_nanosleep+:} false; then :
9275   $as_echo_n "(cached) " >&6
9276 else
9277   ac_func_search_save_LIBS=$LIBS
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h.  */
9280
9281 /* Override any GCC internal prototype to avoid an error.
9282    Use char because int might match the return type of a GCC
9283    builtin and then its argument prototype would still apply.  */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 char nanosleep ();
9288 int
9289 main ()
9290 {
9291 return nanosleep ();
9292   ;
9293   return 0;
9294 }
9295 _ACEOF
9296 for ac_lib in '' rt posix4; do
9297   if test -z "$ac_lib"; then
9298     ac_res="none required"
9299   else
9300     ac_res=-l$ac_lib
9301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9302   fi
9303   if ac_fn_c_try_link "$LINENO"; then :
9304   ac_cv_search_nanosleep=$ac_res
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext \
9307     conftest$ac_exeext
9308   if ${ac_cv_search_nanosleep+:} false; then :
9309   break
9310 fi
9311 done
9312 if ${ac_cv_search_nanosleep+:} false; then :
9313
9314 else
9315   ac_cv_search_nanosleep=no
9316 fi
9317 rm conftest.$ac_ext
9318 LIBS=$ac_func_search_save_LIBS
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9321 $as_echo "$ac_cv_search_nanosleep" >&6; }
9322 ac_res=$ac_cv_search_nanosleep
9323 if test "$ac_res" != no; then :
9324   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9325
9326 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9327
9328 fi
9329
9330
9331 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9332 if test "x$ac_cv_have_decl_getrusage" = xyes; then :
9333   for ac_func in getrusage
9334 do :
9335   ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9336 if test "x$ac_cv_func_getrusage" = xyes; then :
9337   cat >>confdefs.h <<_ACEOF
9338 #define HAVE_GETRUSAGE 1
9339 _ACEOF
9340
9341 fi
9342 done
9343
9344 fi
9345
9346 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9347 #ifdef HAVE_STRING_H
9348 # include <string.h>
9349 #endif
9350
9351 "
9352 if test "x$ac_cv_have_decl_strsep" = xyes; then :
9353   for ac_func in strsep
9354 do :
9355   ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9356 if test "x$ac_cv_func_strsep" = xyes; then :
9357   cat >>confdefs.h <<_ACEOF
9358 #define HAVE_STRSEP 1
9359 _ACEOF
9360
9361 fi
9362 done
9363
9364 fi
9365
9366
9367 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9368
9369 "
9370 if test "x$ac_cv_have_decl_tcsendbreak" = xyes; then :
9371   $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9372
9373 else
9374   for ac_func in tcsendbreak
9375 do :
9376   ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9377 if test "x$ac_cv_func_tcsendbreak" = xyes; then :
9378   cat >>confdefs.h <<_ACEOF
9379 #define HAVE_TCSENDBREAK 1
9380 _ACEOF
9381
9382 fi
9383 done
9384
9385 fi
9386
9387
9388 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9389 "
9390 if test "x$ac_cv_have_decl_h_errno" = xyes; then :
9391   ac_have_decl=1
9392 else
9393   ac_have_decl=0
9394 fi
9395
9396 cat >>confdefs.h <<_ACEOF
9397 #define HAVE_DECL_H_ERRNO $ac_have_decl
9398 _ACEOF
9399
9400
9401 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9402 #include <sys/types.h>
9403 #include <sys/socket.h>
9404
9405 "
9406 if test "x$ac_cv_have_decl_SHUT_RD" = xyes; then :
9407   ac_have_decl=1
9408 else
9409   ac_have_decl=0
9410 fi
9411
9412 cat >>confdefs.h <<_ACEOF
9413 #define HAVE_DECL_SHUT_RD $ac_have_decl
9414 _ACEOF
9415
9416
9417 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9418 #include <sys/types.h>
9419 #ifdef HAVE_SYS_STAT_H
9420 # include <sys/stat.h>
9421 #endif
9422 #ifdef HAVE_FCNTL_H
9423 # include <fcntl.h>
9424 #endif
9425
9426 "
9427 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
9428   ac_have_decl=1
9429 else
9430   ac_have_decl=0
9431 fi
9432
9433 cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
9435 _ACEOF
9436
9437
9438 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9439 #include <sys/types.h>
9440 #include <sys/uio.h>
9441 #include <unistd.h>
9442
9443 "
9444 if test "x$ac_cv_have_decl_writev" = xyes; then :
9445   ac_have_decl=1
9446 else
9447   ac_have_decl=0
9448 fi
9449
9450 cat >>confdefs.h <<_ACEOF
9451 #define HAVE_DECL_WRITEV $ac_have_decl
9452 _ACEOF
9453
9454
9455 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9456 #include <sys/param.h>
9457
9458 "
9459 if test "x$ac_cv_have_decl_MAXSYMLINKS" = xyes; then :
9460   ac_have_decl=1
9461 else
9462   ac_have_decl=0
9463 fi
9464
9465 cat >>confdefs.h <<_ACEOF
9466 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9467 _ACEOF
9468
9469
9470 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9471 #include <stddef.h>
9472
9473 "
9474 if test "x$ac_cv_have_decl_offsetof" = xyes; then :
9475   ac_have_decl=1
9476 else
9477   ac_have_decl=0
9478 fi
9479
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_DECL_OFFSETOF $ac_have_decl
9482 _ACEOF
9483
9484
9485 for ac_func in setresuid
9486 do :
9487   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9488 if test "x$ac_cv_func_setresuid" = xyes; then :
9489   cat >>confdefs.h <<_ACEOF
9490 #define HAVE_SETRESUID 1
9491 _ACEOF
9492
9493                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9494 $as_echo_n "checking if setresuid seems to work... " >&6; }
9495         if test "$cross_compiling" = yes; then :
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9497 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9498
9499 else
9500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h.  */
9502
9503 #include <stdlib.h>
9504 #include <errno.h>
9505
9506 int
9507 main ()
9508 {
9509
9510         errno=0;
9511         setresuid(0,0,0);
9512         if (errno==ENOSYS)
9513                 exit(1);
9514         else
9515                 exit(0);
9516
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 if ac_fn_c_try_run "$LINENO"; then :
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9523 $as_echo "yes" >&6; }
9524 else
9525
9526 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9527
9528                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9529 $as_echo "not implemented" >&6; }
9530 fi
9531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9532   conftest.$ac_objext conftest.beam conftest.$ac_ext
9533 fi
9534
9535
9536 fi
9537 done
9538
9539
9540 for ac_func in setresgid
9541 do :
9542   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9543 if test "x$ac_cv_func_setresgid" = xyes; then :
9544   cat >>confdefs.h <<_ACEOF
9545 #define HAVE_SETRESGID 1
9546 _ACEOF
9547
9548                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
9549 $as_echo_n "checking if setresgid seems to work... " >&6; }
9550         if test "$cross_compiling" = yes; then :
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9552 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9553
9554 else
9555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h.  */
9557
9558 #include <stdlib.h>
9559 #include <errno.h>
9560
9561 int
9562 main ()
9563 {
9564
9565         errno=0;
9566         setresgid(0,0,0);
9567         if (errno==ENOSYS)
9568                 exit(1);
9569         else
9570                 exit(0);
9571
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 if ac_fn_c_try_run "$LINENO"; then :
9577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9578 $as_echo "yes" >&6; }
9579 else
9580
9581 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
9582
9583                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9584 $as_echo "not implemented" >&6; }
9585 fi
9586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9587   conftest.$ac_objext conftest.beam conftest.$ac_ext
9588 fi
9589
9590
9591 fi
9592 done
9593
9594
9595 for ac_func in gettimeofday time
9596 do :
9597   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9600   cat >>confdefs.h <<_ACEOF
9601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9602 _ACEOF
9603
9604 fi
9605 done
9606
9607 for ac_func in endutent getutent getutid getutline pututline setutent
9608 do :
9609   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9612   cat >>confdefs.h <<_ACEOF
9613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9614 _ACEOF
9615
9616 fi
9617 done
9618
9619 for ac_func in utmpname
9620 do :
9621   ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
9622 if test "x$ac_cv_func_utmpname" = xyes; then :
9623   cat >>confdefs.h <<_ACEOF
9624 #define HAVE_UTMPNAME 1
9625 _ACEOF
9626
9627 fi
9628 done
9629
9630 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
9631 do :
9632   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9635   cat >>confdefs.h <<_ACEOF
9636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9637 _ACEOF
9638
9639 fi
9640 done
9641
9642 for ac_func in setutxdb setutxent utmpxname
9643 do :
9644   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9647   cat >>confdefs.h <<_ACEOF
9648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9649 _ACEOF
9650
9651 fi
9652 done
9653
9654 for ac_func in getlastlogxbyname
9655 do :
9656   ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
9657 if test "x$ac_cv_func_getlastlogxbyname" = xyes; then :
9658   cat >>confdefs.h <<_ACEOF
9659 #define HAVE_GETLASTLOGXBYNAME 1
9660 _ACEOF
9661
9662 fi
9663 done
9664
9665
9666 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
9667 if test "x$ac_cv_func_daemon" = xyes; then :
9668
9669 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9670
9671 else
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
9673 $as_echo_n "checking for daemon in -lbsd... " >&6; }
9674 if ${ac_cv_lib_bsd_daemon+:} false; then :
9675   $as_echo_n "(cached) " >&6
9676 else
9677   ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-lbsd  $LIBS"
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h.  */
9681
9682 /* Override any GCC internal prototype to avoid an error.
9683    Use char because int might match the return type of a GCC
9684    builtin and then its argument prototype would still apply.  */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char daemon ();
9689 int
9690 main ()
9691 {
9692 return daemon ();
9693   ;
9694   return 0;
9695 }
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698   ac_cv_lib_bsd_daemon=yes
9699 else
9700   ac_cv_lib_bsd_daemon=no
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext \
9703     conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_lib_save_LIBS
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
9707 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
9708 if test "x$ac_cv_lib_bsd_daemon" = xyes; then :
9709   LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9710
9711 fi
9712
9713
9714 fi
9715
9716
9717 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9718 if test "x$ac_cv_func_getpagesize" = xyes; then :
9719
9720 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9721
9722 else
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
9724 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
9725 if ${ac_cv_lib_ucb_getpagesize+:} false; then :
9726   $as_echo_n "(cached) " >&6
9727 else
9728   ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-lucb  $LIBS"
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h.  */
9732
9733 /* Override any GCC internal prototype to avoid an error.
9734    Use char because int might match the return type of a GCC
9735    builtin and then its argument prototype would still apply.  */
9736 #ifdef __cplusplus
9737 extern "C"
9738 #endif
9739 char getpagesize ();
9740 int
9741 main ()
9742 {
9743 return getpagesize ();
9744   ;
9745   return 0;
9746 }
9747 _ACEOF
9748 if ac_fn_c_try_link "$LINENO"; then :
9749   ac_cv_lib_ucb_getpagesize=yes
9750 else
9751   ac_cv_lib_ucb_getpagesize=no
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext \
9754     conftest$ac_exeext conftest.$ac_ext
9755 LIBS=$ac_check_lib_save_LIBS
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
9758 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
9759 if test "x$ac_cv_lib_ucb_getpagesize" = xyes; then :
9760   LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9761
9762 fi
9763
9764
9765 fi
9766
9767
9768 # Check for broken snprintf
9769 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9771 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9772         if test "$cross_compiling" = yes; then :
9773    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9774 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9775
9776 else
9777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h.  */
9779  #include <stdio.h>
9780 int
9781 main ()
9782 {
9783
9784         char b[5];
9785         snprintf(b,5,"123456789");
9786         exit(b[4]!='\0');
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_run "$LINENO"; then :
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9794 $as_echo "yes" >&6; }
9795 else
9796
9797                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9798 $as_echo "no" >&6; }
9799
9800 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9801
9802                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9803 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9804
9805 fi
9806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9807   conftest.$ac_objext conftest.beam conftest.$ac_ext
9808 fi
9809
9810 fi
9811
9812 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9813 # returning the right thing on overflow: the number of characters it tried to
9814 # create (as per SUSv3)
9815 if test "x$ac_cv_func_asprintf" != "xyes" && \
9816    test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9818 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9819         if test "$cross_compiling" = yes; then :
9820    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9821 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9822
9823 else
9824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h.  */
9826
9827 #include <sys/types.h>
9828 #include <stdio.h>
9829 #include <stdarg.h>
9830
9831 int x_snprintf(char *str,size_t count,const char *fmt,...)
9832 {
9833         size_t ret; va_list ap;
9834         va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9835         return ret;
9836 }
9837
9838 int
9839 main ()
9840 {
9841
9842         char x[1];
9843         exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9844
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 if ac_fn_c_try_run "$LINENO"; then :
9850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9851 $as_echo "yes" >&6; }
9852 else
9853
9854                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9856
9857 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9858
9859                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9860 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9861
9862 fi
9863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9864   conftest.$ac_objext conftest.beam conftest.$ac_ext
9865 fi
9866
9867 fi
9868
9869 # On systems where [v]snprintf is broken, but is declared in stdio,
9870 # check that the fmt argument is const char * or just char *.
9871 # This is only useful for when BROKEN_SNPRINTF
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9873 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h.  */
9876
9877 #include <stdio.h>
9878 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9879
9880 int
9881 main ()
9882 {
9883
9884         snprintf(0, 0, 0);
9885
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9892 $as_echo "yes" >&6; }
9893
9894 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9895
9896 else
9897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9899     $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9900
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903
9904 # Check for missing getpeereid (or equiv) support
9905 NO_PEERCHECK=""
9906 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9908 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9909         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h.  */
9911
9912 #include <sys/types.h>
9913 #include <sys/socket.h>
9914 int
9915 main ()
9916 {
9917 int i = SO_PEERCRED;
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 if ac_fn_c_try_compile "$LINENO"; then :
9923    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9925
9926 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9927
9928
9929 else
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931 $as_echo "no" >&6; }
9932                 NO_PEERCHECK=1
9933
9934 fi
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937
9938 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9940 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9941 if test "$cross_compiling" = yes; then :
9942
9943                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9944 $as_echo "yes" >&6; }
9945                 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9946
9947
9948
9949 else
9950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h.  */
9952
9953 #include <stdlib.h>
9954
9955 int
9956 main ()
9957 {
9958
9959         char template[]="conftest.mkstemp-test";
9960         if (mkstemp(template) == -1)
9961                 exit(1);
9962         unlink(template);
9963         exit(0);
9964
9965   ;
9966   return 0;
9967 }
9968 _ACEOF
9969 if ac_fn_c_try_run "$LINENO"; then :
9970
9971                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9973
9974 else
9975
9976                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977 $as_echo "yes" >&6; }
9978
9979 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9980
9981
9982 fi
9983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9984   conftest.$ac_objext conftest.beam conftest.$ac_ext
9985 fi
9986
9987 fi
9988
9989 if test ! -z "$check_for_openpty_ctty_bug"; then
9990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
9991 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
9992         if test "$cross_compiling" = yes; then :
9993
9994                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
9995 $as_echo "cross-compiling, assuming yes" >&6; }
9996
9997
9998 else
9999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h.  */
10001
10002 #include <stdio.h>
10003 #include <sys/fcntl.h>
10004 #include <sys/types.h>
10005 #include <sys/wait.h>
10006
10007 int
10008 main ()
10009 {
10010
10011         pid_t pid;
10012         int fd, ptyfd, ttyfd, status;
10013
10014         pid = fork();
10015         if (pid < 0) {          /* failed */
10016                 exit(1);
10017         } else if (pid > 0) {   /* parent */
10018                 waitpid(pid, &status, 0);
10019                 if (WIFEXITED(status))
10020                         exit(WEXITSTATUS(status));
10021                 else
10022                         exit(2);
10023         } else {                /* child */
10024                 close(0); close(1); close(2);
10025                 setsid();
10026                 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
10027                 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
10028                 if (fd >= 0)
10029                         exit(3);        /* Acquired ctty: broken */
10030                 else
10031                         exit(0);        /* Did not acquire ctty: OK */
10032         }
10033
10034   ;
10035   return 0;
10036 }
10037 _ACEOF
10038 if ac_fn_c_try_run "$LINENO"; then :
10039
10040                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10041 $as_echo "yes" >&6; }
10042
10043 else
10044
10045                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10047                         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
10048
10049
10050 fi
10051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10052   conftest.$ac_objext conftest.beam conftest.$ac_ext
10053 fi
10054
10055 fi
10056
10057 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10058     test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10060 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10061         if test "$cross_compiling" = yes; then :
10062
10063                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10064 $as_echo "cross-compiling, assuming yes" >&6; }
10065
10066
10067 else
10068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h.  */
10070
10071 #include <stdio.h>
10072 #include <sys/socket.h>
10073 #include <netdb.h>
10074 #include <errno.h>
10075 #include <netinet/in.h>
10076
10077 #define TEST_PORT "2222"
10078
10079 int
10080 main ()
10081 {
10082
10083         int err, sock;
10084         struct addrinfo *gai_ai, *ai, hints;
10085         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10086
10087         memset(&hints, 0, sizeof(hints));
10088         hints.ai_family = PF_UNSPEC;
10089         hints.ai_socktype = SOCK_STREAM;
10090         hints.ai_flags = AI_PASSIVE;
10091
10092         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10093         if (err != 0) {
10094                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10095                 exit(1);
10096         }
10097
10098         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10099                 if (ai->ai_family != AF_INET6)
10100                         continue;
10101
10102                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10103                     sizeof(ntop), strport, sizeof(strport),
10104                     NI_NUMERICHOST|NI_NUMERICSERV);
10105
10106                 if (err != 0) {
10107                         if (err == EAI_SYSTEM)
10108                                 perror("getnameinfo EAI_SYSTEM");
10109                         else
10110                                 fprintf(stderr, "getnameinfo failed: %s\n",
10111                                     gai_strerror(err));
10112                         exit(2);
10113                 }
10114
10115                 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10116                 if (sock < 0)
10117                         perror("socket");
10118                 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10119                         if (errno == EBADF)
10120                                 exit(3);
10121                 }
10122         }
10123         exit(0);
10124
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_run "$LINENO"; then :
10130
10131                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10132 $as_echo "yes" >&6; }
10133
10134 else
10135
10136                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10139
10140
10141 fi
10142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10143   conftest.$ac_objext conftest.beam conftest.$ac_ext
10144 fi
10145
10146 fi
10147
10148 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10149     test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10150         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10151 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10152         if test "$cross_compiling" = yes; then :
10153
10154                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10155 $as_echo "cross-compiling, assuming no" >&6; }
10156
10157
10158 else
10159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h.  */
10161
10162 #include <stdio.h>
10163 #include <sys/socket.h>
10164 #include <netdb.h>
10165 #include <errno.h>
10166 #include <netinet/in.h>
10167
10168 #define TEST_PORT "2222"
10169
10170 int
10171 main ()
10172 {
10173
10174         int err, sock;
10175         struct addrinfo *gai_ai, *ai, hints;
10176         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10177
10178         memset(&hints, 0, sizeof(hints));
10179         hints.ai_family = PF_UNSPEC;
10180         hints.ai_socktype = SOCK_STREAM;
10181         hints.ai_flags = AI_PASSIVE;
10182
10183         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10184         if (err != 0) {
10185                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10186                 exit(1);
10187         }
10188
10189         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10190                 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
10191                         continue;
10192
10193                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10194                     sizeof(ntop), strport, sizeof(strport),
10195                     NI_NUMERICHOST|NI_NUMERICSERV);
10196
10197                 if (ai->ai_family == AF_INET && err != 0) {
10198                         perror("getnameinfo");
10199                         exit(2);
10200                 }
10201         }
10202         exit(0);
10203
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_run "$LINENO"; then :
10209
10210                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10211 $as_echo "yes" >&6; }
10212
10213 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
10214
10215
10216 else
10217
10218                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10220                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10221
10222
10223 fi
10224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10225   conftest.$ac_objext conftest.beam conftest.$ac_ext
10226 fi
10227
10228 fi
10229
10230 if test "x$check_for_conflicting_getspnam" = "x1"; then
10231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
10232 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
10233         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h.  */
10235  #include <shadow.h>
10236 int
10237 main ()
10238 {
10239  exit(0);
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 if ac_fn_c_try_compile "$LINENO"; then :
10245
10246                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10248
10249 else
10250
10251                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10252 $as_echo "yes" >&6; }
10253
10254 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10255
10256
10257
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 fi
10261
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10263 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10264 if ${ac_cv_func_getpgrp_void+:} false; then :
10265   $as_echo_n "(cached) " >&6
10266 else
10267   # Use it with a single arg.
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h.  */
10270 $ac_includes_default
10271 int
10272 main ()
10273 {
10274 getpgrp (0);
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 if ac_fn_c_try_compile "$LINENO"; then :
10280   ac_cv_func_getpgrp_void=no
10281 else
10282   ac_cv_func_getpgrp_void=yes
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285
10286 fi
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10288 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10289 if test $ac_cv_func_getpgrp_void = yes; then
10290
10291 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10292
10293 fi
10294
10295
10296 # Search for OpenSSL
10297 saved_CPPFLAGS="$CPPFLAGS"
10298 saved_LDFLAGS="$LDFLAGS"
10299
10300 # Check whether --with-ssl-dir was given.
10301 if test "${with_ssl_dir+set}" = set; then :
10302   withval=$with_ssl_dir;
10303                 if test "x$withval" != "xno" ; then
10304                         case "$withval" in
10305                                 # Relative paths
10306                                 ./*|../*)       withval="`pwd`/$withval"
10307                         esac
10308                         if test -d "$withval/lib"; then
10309                                 if test -n "${need_dash_r}"; then
10310                                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10311                                 else
10312                                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10313                                 fi
10314                         elif test -d "$withval/lib64"; then
10315                                 if test -n "${need_dash_r}"; then
10316                                         LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10317                                 else
10318                                         LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10319                                 fi
10320                         else
10321                                 if test -n "${need_dash_r}"; then
10322                                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10323                                 else
10324                                         LDFLAGS="-L${withval} ${LDFLAGS}"
10325                                 fi
10326                         fi
10327                         if test -d "$withval/include"; then
10328                                 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10329                         else
10330                                 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10331                         fi
10332                 fi
10333
10334
10335 fi
10336
10337 LIBS="-lcrypto $LIBS"
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h.  */
10340
10341 /* Override any GCC internal prototype to avoid an error.
10342    Use char because int might match the return type of a GCC
10343    builtin and then its argument prototype would still apply.  */
10344 #ifdef __cplusplus
10345 extern "C"
10346 #endif
10347 char RAND_add ();
10348 int
10349 main ()
10350 {
10351 return RAND_add ();
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 if ac_fn_c_try_link "$LINENO"; then :
10357
10358 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10359
10360 else
10361
10362                                 if test -n "${need_dash_r}"; then
10363                         LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10364                 else
10365                         LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10366                 fi
10367                 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10368                 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10369 if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then :
10370
10371 else
10372   as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10373 fi
10374
10375
10376                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h.  */
10378
10379 /* Override any GCC internal prototype to avoid an error.
10380    Use char because int might match the return type of a GCC
10381    builtin and then its argument prototype would still apply.  */
10382 #ifdef __cplusplus
10383 extern "C"
10384 #endif
10385 char RAND_add ();
10386 int
10387 main ()
10388 {
10389 return RAND_add ();
10390   ;
10391   return 0;
10392 }
10393 _ACEOF
10394 if ac_fn_c_try_link "$LINENO"; then :
10395   $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10396
10397 else
10398
10399                                 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10400
10401
10402 fi
10403 rm -f core conftest.err conftest.$ac_objext \
10404     conftest$ac_exeext conftest.$ac_ext
10405
10406
10407 fi
10408 rm -f core conftest.err conftest.$ac_objext \
10409     conftest$ac_exeext conftest.$ac_ext
10410
10411 # Determine OpenSSL header version
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10413 $as_echo_n "checking OpenSSL header version... " >&6; }
10414 if test "$cross_compiling" = yes; then :
10415
10416                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10417 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10418
10419
10420 else
10421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h.  */
10423
10424 #include <stdio.h>
10425 #include <string.h>
10426 #include <openssl/opensslv.h>
10427 #define DATA "conftest.sslincver"
10428
10429 int
10430 main ()
10431 {
10432
10433         FILE *fd;
10434         int rc;
10435
10436         fd = fopen(DATA,"w");
10437         if(fd == NULL)
10438                 exit(1);
10439
10440         if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10441                 exit(1);
10442
10443         exit(0);
10444
10445   ;
10446   return 0;
10447 }
10448 _ACEOF
10449 if ac_fn_c_try_run "$LINENO"; then :
10450
10451                 ssl_header_ver=`cat conftest.sslincver`
10452                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10453 $as_echo "$ssl_header_ver" >&6; }
10454
10455 else
10456
10457                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10458 $as_echo "not found" >&6; }
10459                 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10460
10461 fi
10462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10463   conftest.$ac_objext conftest.beam conftest.$ac_ext
10464 fi
10465
10466
10467 # Determine OpenSSL library version
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10469 $as_echo_n "checking OpenSSL library version... " >&6; }
10470 if test "$cross_compiling" = yes; then :
10471
10472                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10473 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10474
10475
10476 else
10477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h.  */
10479
10480 #include <stdio.h>
10481 #include <string.h>
10482 #include <openssl/opensslv.h>
10483 #include <openssl/crypto.h>
10484 #define DATA "conftest.ssllibver"
10485
10486 int
10487 main ()
10488 {
10489
10490         FILE *fd;
10491         int rc;
10492
10493         fd = fopen(DATA,"w");
10494         if(fd == NULL)
10495                 exit(1);
10496
10497         if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10498                 exit(1);
10499
10500         exit(0);
10501
10502   ;
10503   return 0;
10504 }
10505 _ACEOF
10506 if ac_fn_c_try_run "$LINENO"; then :
10507
10508                 ssl_library_ver=`cat conftest.ssllibver`
10509                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10510 $as_echo "$ssl_library_ver" >&6; }
10511
10512 else
10513
10514                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10515 $as_echo "not found" >&6; }
10516                 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10517
10518 fi
10519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10520   conftest.$ac_objext conftest.beam conftest.$ac_ext
10521 fi
10522
10523
10524
10525 # Check whether --with-openssl-header-check was given.
10526 if test "${with_openssl_header_check+set}" = set; then :
10527   withval=$with_openssl_header_check;   if test "x$withval" = "xno" ; then
10528                 openssl_check_nonfatal=1
10529            fi
10530
10531
10532 fi
10533
10534
10535 # Sanity check OpenSSL headers
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
10537 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
10538 if test "$cross_compiling" = yes; then :
10539
10540                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10541 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10542
10543
10544 else
10545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h.  */
10547
10548 #include <string.h>
10549 #include <openssl/opensslv.h>
10550
10551 int
10552 main ()
10553 {
10554
10555         exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
10556
10557   ;
10558   return 0;
10559 }
10560 _ACEOF
10561 if ac_fn_c_try_run "$LINENO"; then :
10562
10563                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10564 $as_echo "yes" >&6; }
10565
10566 else
10567
10568                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10570                 if test "x$openssl_check_nonfatal" = "x"; then
10571                         as_fn_error $? "Your OpenSSL headers do not match your
10572 library. Check config.log for details.
10573 If you are sure your installation is consistent, you can disable the check
10574 by running \"./configure --without-openssl-header-check\".
10575 Also see contrib/findssl.sh for help identifying header/library mismatches.
10576 " "$LINENO" 5
10577                 else
10578                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
10579 library. Check config.log for details.
10580 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
10581 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
10582 library. Check config.log for details.
10583 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
10584                 fi
10585
10586 fi
10587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10588   conftest.$ac_objext conftest.beam conftest.$ac_ext
10589 fi
10590
10591
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
10593 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h.  */
10596  #include <openssl/evp.h>
10597 int
10598 main ()
10599 {
10600  SSLeay_add_all_algorithms();
10601   ;
10602   return 0;
10603 }
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"; then :
10606
10607                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10608 $as_echo "yes" >&6; }
10609
10610 else
10611
10612                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614                 saved_LIBS="$LIBS"
10615                 LIBS="$LIBS -ldl"
10616                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
10617 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
10618                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h.  */
10620  #include <openssl/evp.h>
10621 int
10622 main ()
10623 {
10624  SSLeay_add_all_algorithms();
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 if ac_fn_c_try_link "$LINENO"; then :
10630
10631                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; }
10633
10634 else
10635
10636                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10638                                 LIBS="$saved_LIBS"
10639
10640
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext \
10643     conftest$ac_exeext conftest.$ac_ext
10644
10645
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext \
10648     conftest$ac_exeext conftest.$ac_ext
10649
10650 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
10651 do :
10652   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10655   cat >>confdefs.h <<_ACEOF
10656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10657 _ACEOF
10658
10659 fi
10660 done
10661
10662
10663
10664 # Check whether --with-ssl-engine was given.
10665 if test "${with_ssl_engine+set}" = set; then :
10666   withval=$with_ssl_engine;  if test "x$withval" != "xno" ; then
10667                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
10668 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
10669                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h.  */
10671
10672 #include <openssl/engine.h>
10673
10674 int
10675 main ()
10676 {
10677
10678         ENGINE_load_builtin_engines();
10679         ENGINE_register_all_complete();
10680
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_compile "$LINENO"; then :
10686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; }
10688
10689 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
10690
10691
10692 else
10693    as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
10694
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697           fi
10698
10699 fi
10700
10701
10702 # Check for OpenSSL without EVP_aes_{192,256}_cbc
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
10704 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h.  */
10707
10708 #include <string.h>
10709 #include <openssl/evp.h>
10710
10711 int
10712 main ()
10713 {
10714
10715         exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
10716
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722
10723                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10725
10726 else
10727
10728                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729 $as_echo "yes" >&6; }
10730
10731 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
10732
10733
10734
10735 fi
10736 rm -f core conftest.err conftest.$ac_objext \
10737     conftest$ac_exeext conftest.$ac_ext
10738
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
10740 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h.  */
10743
10744 #include <string.h>
10745 #include <openssl/evp.h>
10746
10747 int
10748 main ()
10749 {
10750
10751         if(EVP_DigestUpdate(NULL, NULL,0))
10752                 exit(0);
10753
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_link "$LINENO"; then :
10759
10760                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10761 $as_echo "yes" >&6; }
10762
10763 else
10764
10765                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767
10768 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
10769
10770
10771
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext \
10774     conftest$ac_exeext conftest.$ac_ext
10775
10776 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
10777 # because the system crypt() is more featureful.
10778 if test "x$check_for_libcrypt_before" = "x1"; then
10779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10780 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10781 if ${ac_cv_lib_crypt_crypt+:} false; then :
10782   $as_echo_n "(cached) " >&6
10783 else
10784   ac_check_lib_save_LIBS=$LIBS
10785 LIBS="-lcrypt  $LIBS"
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h.  */
10788
10789 /* Override any GCC internal prototype to avoid an error.
10790    Use char because int might match the return type of a GCC
10791    builtin and then its argument prototype would still apply.  */
10792 #ifdef __cplusplus
10793 extern "C"
10794 #endif
10795 char crypt ();
10796 int
10797 main ()
10798 {
10799 return crypt ();
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 if ac_fn_c_try_link "$LINENO"; then :
10805   ac_cv_lib_crypt_crypt=yes
10806 else
10807   ac_cv_lib_crypt_crypt=no
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810     conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10812 fi
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10814 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10815 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10816   cat >>confdefs.h <<_ACEOF
10817 #define HAVE_LIBCRYPT 1
10818 _ACEOF
10819
10820   LIBS="-lcrypt $LIBS"
10821
10822 fi
10823
10824 fi
10825
10826 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
10827 # version in OpenSSL.
10828 if test "x$check_for_libcrypt_later" = "x1"; then
10829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10830 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10831 if ${ac_cv_lib_crypt_crypt+:} false; then :
10832   $as_echo_n "(cached) " >&6
10833 else
10834   ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-lcrypt  $LIBS"
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h.  */
10838
10839 /* Override any GCC internal prototype to avoid an error.
10840    Use char because int might match the return type of a GCC
10841    builtin and then its argument prototype would still apply.  */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char crypt ();
10846 int
10847 main ()
10848 {
10849 return crypt ();
10850   ;
10851   return 0;
10852 }
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855   ac_cv_lib_crypt_crypt=yes
10856 else
10857   ac_cv_lib_crypt_crypt=no
10858 fi
10859 rm -f core conftest.err conftest.$ac_objext \
10860     conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10864 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10865 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
10866   LIBS="$LIBS -lcrypt"
10867 fi
10868
10869 fi
10870
10871 # Search for SHA256 support in libc and/or OpenSSL
10872 for ac_func in SHA256_Update EVP_sha256
10873 do :
10874   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10877   cat >>confdefs.h <<_ACEOF
10878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10879 _ACEOF
10880  TEST_SSH_SHA256=yes
10881 else
10882   TEST_SSH_SHA256=no
10883 fi
10884 done
10885
10886
10887
10888 # Check complete ECC support in OpenSSL
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
10890 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h.  */
10893
10894 #include <openssl/ec.h>
10895 #include <openssl/ecdh.h>
10896 #include <openssl/ecdsa.h>
10897 #include <openssl/evp.h>
10898 #include <openssl/objects.h>
10899 #include <openssl/opensslv.h>
10900 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
10901 # error "OpenSSL < 0.9.8g has unreliable ECC code"
10902 #endif
10903
10904 int
10905 main ()
10906 {
10907
10908         EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
10909         const EVP_MD *m = EVP_sha512(); /* We need this too */
10910
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_link "$LINENO"; then :
10916
10917                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10918 $as_echo "yes" >&6; }
10919
10920 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
10921
10922                 TEST_SSH_ECC=yes
10923                 COMMENT_OUT_ECC=""
10924
10925 else
10926
10927                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10928 $as_echo "no" >&6; }
10929                 TEST_SSH_ECC=no
10930                 COMMENT_OUT_ECC="#no ecc#"
10931
10932
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext \
10935     conftest$ac_exeext conftest.$ac_ext
10936
10937
10938
10939 saved_LIBS="$LIBS"
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10941 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10942 if ${ac_cv_lib_iaf_ia_openinfo+:} false; then :
10943   $as_echo_n "(cached) " >&6
10944 else
10945   ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-liaf  $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h.  */
10949
10950 /* Override any GCC internal prototype to avoid an error.
10951    Use char because int might match the return type of a GCC
10952    builtin and then its argument prototype would still apply.  */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char ia_openinfo ();
10957 int
10958 main ()
10959 {
10960 return ia_openinfo ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966   ac_cv_lib_iaf_ia_openinfo=yes
10967 else
10968   ac_cv_lib_iaf_ia_openinfo=no
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext \
10971     conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10973 fi
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
10975 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
10976 if test "x$ac_cv_lib_iaf_ia_openinfo" = xyes; then :
10977
10978         LIBS="$LIBS -liaf"
10979         for ac_func in set_id
10980 do :
10981   ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
10982 if test "x$ac_cv_func_set_id" = xyes; then :
10983   cat >>confdefs.h <<_ACEOF
10984 #define HAVE_SET_ID 1
10985 _ACEOF
10986  SSHDLIBS="$SSHDLIBS -liaf"
10987
10988 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
10989
10990
10991 fi
10992 done
10993
10994
10995 fi
10996
10997 LIBS="$saved_LIBS"
10998
10999 ### Configure cryptographic random number support
11000
11001 # Check wheter OpenSSL seeds itself
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
11003 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
11004 if test "$cross_compiling" = yes; then :
11005
11006                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11007 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11008                 # This is safe, since we will fatal() at runtime if
11009                 # OpenSSL is not seeded correctly.
11010                 OPENSSL_SEEDS_ITSELF=yes
11011
11012
11013 else
11014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h.  */
11016
11017 #include <string.h>
11018 #include <openssl/rand.h>
11019
11020 int
11021 main ()
11022 {
11023
11024         exit(RAND_status() == 1 ? 0 : 1);
11025
11026   ;
11027   return 0;
11028 }
11029 _ACEOF
11030 if ac_fn_c_try_run "$LINENO"; then :
11031
11032                 OPENSSL_SEEDS_ITSELF=yes
11033                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034 $as_echo "yes" >&6; }
11035
11036 else
11037
11038                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040
11041 fi
11042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11043   conftest.$ac_objext conftest.beam conftest.$ac_ext
11044 fi
11045
11046
11047 # PRNGD TCP socket
11048
11049 # Check whether --with-prngd-port was given.
11050 if test "${with_prngd_port+set}" = set; then :
11051   withval=$with_prngd_port;
11052                 case "$withval" in
11053                 no)
11054                         withval=""
11055                         ;;
11056                 [0-9]*)
11057                         ;;
11058                 *)
11059                         as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
11060                         ;;
11061                 esac
11062                 if test ! -z "$withval" ; then
11063                         PRNGD_PORT="$withval"
11064
11065 cat >>confdefs.h <<_ACEOF
11066 #define PRNGD_PORT $PRNGD_PORT
11067 _ACEOF
11068
11069                 fi
11070
11071
11072 fi
11073
11074
11075 # PRNGD Unix domain socket
11076
11077 # Check whether --with-prngd-socket was given.
11078 if test "${with_prngd_socket+set}" = set; then :
11079   withval=$with_prngd_socket;
11080                 case "$withval" in
11081                 yes)
11082                         withval="/var/run/egd-pool"
11083                         ;;
11084                 no)
11085                         withval=""
11086                         ;;
11087                 /*)
11088                         ;;
11089                 *)
11090                         as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11091                         ;;
11092                 esac
11093
11094                 if test ! -z "$withval" ; then
11095                         if test ! -z "$PRNGD_PORT" ; then
11096                                 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11097                         fi
11098                         if test ! -r "$withval" ; then
11099                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11100 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11101                         fi
11102                         PRNGD_SOCKET="$withval"
11103
11104 cat >>confdefs.h <<_ACEOF
11105 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11106 _ACEOF
11107
11108                 fi
11109
11110 else
11111
11112                 # Check for existing socket only if we don't have a random device already
11113                 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
11114                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11115 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11116                         # Insert other locations here
11117                         for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11118                                 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11119                                         PRNGD_SOCKET="$sock"
11120                                         cat >>confdefs.h <<_ACEOF
11121 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11122 _ACEOF
11123
11124                                         break;
11125                                 fi
11126                         done
11127                         if test ! -z "$PRNGD_SOCKET" ; then
11128                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11129 $as_echo "$PRNGD_SOCKET" >&6; }
11130                         else
11131                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11132 $as_echo "not found" >&6; }
11133                         fi
11134                 fi
11135
11136
11137 fi
11138
11139
11140 # Which randomness source do we use?
11141 if test ! -z "$PRNGD_PORT" ; then
11142         RAND_MSG="PRNGd port $PRNGD_PORT"
11143 elif test ! -z "$PRNGD_SOCKET" ; then
11144         RAND_MSG="PRNGd socket $PRNGD_SOCKET"
11145 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
11146
11147 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
11148
11149         RAND_MSG="OpenSSL internal ONLY"
11150 else
11151         as_fn_error $? "OpenSSH has no source of random numbers. Please configure OpenSSL with an entropy source or re-run configure using one of the --with-prngd-port or --with-prngd-socket options" "$LINENO" 5
11152 fi
11153
11154 # Check for PAM libs
11155 PAM_MSG="no"
11156
11157 # Check whether --with-pam was given.
11158 if test "${with_pam+set}" = set; then :
11159   withval=$with_pam;
11160                 if test "x$withval" != "xno" ; then
11161                         if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
11162                            test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
11163                                 as_fn_error $? "PAM headers not found" "$LINENO" 5
11164                         fi
11165
11166                         saved_LIBS="$LIBS"
11167                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11168 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11169 if ${ac_cv_lib_dl_dlopen+:} false; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   ac_check_lib_save_LIBS=$LIBS
11173 LIBS="-ldl  $LIBS"
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h.  */
11176
11177 /* Override any GCC internal prototype to avoid an error.
11178    Use char because int might match the return type of a GCC
11179    builtin and then its argument prototype would still apply.  */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char dlopen ();
11184 int
11185 main ()
11186 {
11187 return dlopen ();
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193   ac_cv_lib_dl_dlopen=yes
11194 else
11195   ac_cv_lib_dl_dlopen=no
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext \
11198     conftest$ac_exeext conftest.$ac_ext
11199 LIBS=$ac_check_lib_save_LIBS
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11202 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11203 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11204   cat >>confdefs.h <<_ACEOF
11205 #define HAVE_LIBDL 1
11206 _ACEOF
11207
11208   LIBS="-ldl $LIBS"
11209
11210 fi
11211
11212                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
11213 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
11214 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   ac_check_lib_save_LIBS=$LIBS
11218 LIBS="-lpam  $LIBS"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h.  */
11221
11222 /* Override any GCC internal prototype to avoid an error.
11223    Use char because int might match the return type of a GCC
11224    builtin and then its argument prototype would still apply.  */
11225 #ifdef __cplusplus
11226 extern "C"
11227 #endif
11228 char pam_set_item ();
11229 int
11230 main ()
11231 {
11232 return pam_set_item ();
11233   ;
11234   return 0;
11235 }
11236 _ACEOF
11237 if ac_fn_c_try_link "$LINENO"; then :
11238   ac_cv_lib_pam_pam_set_item=yes
11239 else
11240   ac_cv_lib_pam_pam_set_item=no
11241 fi
11242 rm -f core conftest.err conftest.$ac_objext \
11243     conftest$ac_exeext conftest.$ac_ext
11244 LIBS=$ac_check_lib_save_LIBS
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
11247 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
11248 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
11249   cat >>confdefs.h <<_ACEOF
11250 #define HAVE_LIBPAM 1
11251 _ACEOF
11252
11253   LIBS="-lpam $LIBS"
11254
11255 else
11256   as_fn_error $? "*** libpam missing" "$LINENO" 5
11257 fi
11258
11259                         for ac_func in pam_getenvlist
11260 do :
11261   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
11262 if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
11263   cat >>confdefs.h <<_ACEOF
11264 #define HAVE_PAM_GETENVLIST 1
11265 _ACEOF
11266
11267 fi
11268 done
11269
11270                         for ac_func in pam_putenv
11271 do :
11272   ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
11273 if test "x$ac_cv_func_pam_putenv" = xyes; then :
11274   cat >>confdefs.h <<_ACEOF
11275 #define HAVE_PAM_PUTENV 1
11276 _ACEOF
11277
11278 fi
11279 done
11280
11281                         LIBS="$saved_LIBS"
11282
11283                         PAM_MSG="yes"
11284
11285                         SSHDLIBS="$SSHDLIBS -lpam"
11286
11287 $as_echo "#define USE_PAM 1" >>confdefs.h
11288
11289
11290                         if test $ac_cv_lib_dl_dlopen = yes; then
11291                                 case "$LIBS" in
11292                                 *-ldl*)
11293                                         # libdl already in LIBS
11294                                         ;;
11295                                 *)
11296                                         SSHDLIBS="$SSHDLIBS -ldl"
11297                                         ;;
11298                                 esac
11299                         fi
11300                 fi
11301
11302
11303 fi
11304
11305
11306 # Check for older PAM
11307 if test "x$PAM_MSG" = "xyes" ; then
11308         # Check PAM strerror arguments (old PAM)
11309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
11310 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
11311         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h.  */
11313
11314 #include <stdlib.h>
11315 #if defined(HAVE_SECURITY_PAM_APPL_H)
11316 #include <security/pam_appl.h>
11317 #elif defined (HAVE_PAM_PAM_APPL_H)
11318 #include <pam/pam_appl.h>
11319 #endif
11320
11321 int
11322 main ()
11323 {
11324
11325 (void)pam_strerror((pam_handle_t *)NULL, -1);
11326
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 if ac_fn_c_try_compile "$LINENO"; then :
11332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11334 else
11335
11336
11337 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
11338
11339                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11340 $as_echo "yes" >&6; }
11341                         PAM_MSG="yes (old library)"
11342
11343
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346 fi
11347
11348 SSH_PRIVSEP_USER=sshd
11349
11350 # Check whether --with-privsep-user was given.
11351 if test "${with_privsep_user+set}" = set; then :
11352   withval=$with_privsep_user;
11353                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
11354                     test "x${withval}" != "xyes"; then
11355                         SSH_PRIVSEP_USER=$withval
11356                 fi
11357
11358
11359 fi
11360
11361
11362 cat >>confdefs.h <<_ACEOF
11363 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11364 _ACEOF
11365
11366
11367
11368 # Decide which sandbox style to use
11369 sandbox_arg=""
11370
11371 # Check whether --with-sandbox was given.
11372 if test "${with_sandbox+set}" = set; then :
11373   withval=$with_sandbox;
11374                 if test "x$withval" = "xyes" ; then
11375                         sandbox_arg=""
11376                 else
11377                         sandbox_arg="$withval"
11378                 fi
11379
11380
11381 fi
11382
11383 if test "x$sandbox_arg" = "xsystrace" || \
11384    ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
11385         test "x$have_systr_policy_kill" != "x1" && \
11386                 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
11387         SANDBOX_STYLE="systrace"
11388
11389 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
11390
11391 elif test "x$sandbox_arg" = "xdarwin" || \
11392      ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
11393        test "x$ac_cv_header_sandbox_h" = "xyes") ; then
11394         test "x$ac_cv_func_sandbox_init" != "xyes" -o \
11395              "x$ac_cv_header_sandbox_h" != "xyes" && \
11396                 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
11397         SANDBOX_STYLE="darwin"
11398
11399 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11400
11401 elif test "x$sandbox_arg" = "xrlimit" || \
11402      ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then
11403         test "x$ac_cv_func_setrlimit" != "xyes" && \
11404                 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11405         SANDBOX_STYLE="rlimit"
11406
11407 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
11408
11409 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
11410      test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
11411         SANDBOX_STYLE="none"
11412
11413 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
11414
11415 else
11416         as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
11417 fi
11418
11419 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11420 if test ! -z "$SONY" ; then
11421   LIBS="$LIBS -liberty";
11422 fi
11423
11424 # Check for  long long datatypes
11425 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11426 if test "x$ac_cv_type_long_long" = xyes; then :
11427
11428 cat >>confdefs.h <<_ACEOF
11429 #define HAVE_LONG_LONG 1
11430 _ACEOF
11431
11432
11433 fi
11434 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11435 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
11436
11437 cat >>confdefs.h <<_ACEOF
11438 #define HAVE_UNSIGNED_LONG_LONG 1
11439 _ACEOF
11440
11441
11442 fi
11443 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11444 if test "x$ac_cv_type_long_double" = xyes; then :
11445
11446 cat >>confdefs.h <<_ACEOF
11447 #define HAVE_LONG_DOUBLE 1
11448 _ACEOF
11449
11450
11451 fi
11452
11453
11454 # Check datatype sizes
11455 # The cast to long int works around a bug in the HP C Compiler
11456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11458 # This bug is HP SR number 8606223364.
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11460 $as_echo_n "checking size of char... " >&6; }
11461 if ${ac_cv_sizeof_char+:} false; then :
11462   $as_echo_n "(cached) " >&6
11463 else
11464   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
11465
11466 else
11467   if test "$ac_cv_type_char" = yes; then
11468      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11470 as_fn_error 77 "cannot compute sizeof (char)
11471 See \`config.log' for more details" "$LINENO" 5; }
11472    else
11473      ac_cv_sizeof_char=0
11474    fi
11475 fi
11476
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11479 $as_echo "$ac_cv_sizeof_char" >&6; }
11480
11481
11482
11483 cat >>confdefs.h <<_ACEOF
11484 #define SIZEOF_CHAR $ac_cv_sizeof_char
11485 _ACEOF
11486
11487
11488 # The cast to long int works around a bug in the HP C Compiler
11489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11491 # This bug is HP SR number 8606223364.
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11493 $as_echo_n "checking size of short int... " >&6; }
11494 if ${ac_cv_sizeof_short_int+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
11498
11499 else
11500   if test "$ac_cv_type_short_int" = yes; then
11501      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11503 as_fn_error 77 "cannot compute sizeof (short int)
11504 See \`config.log' for more details" "$LINENO" 5; }
11505    else
11506      ac_cv_sizeof_short_int=0
11507    fi
11508 fi
11509
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11512 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11513
11514
11515
11516 cat >>confdefs.h <<_ACEOF
11517 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11518 _ACEOF
11519
11520
11521 # The cast to long int works around a bug in the HP C Compiler
11522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11524 # This bug is HP SR number 8606223364.
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11526 $as_echo_n "checking size of int... " >&6; }
11527 if ${ac_cv_sizeof_int+:} false; then :
11528   $as_echo_n "(cached) " >&6
11529 else
11530   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11531
11532 else
11533   if test "$ac_cv_type_int" = yes; then
11534      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11536 as_fn_error 77 "cannot compute sizeof (int)
11537 See \`config.log' for more details" "$LINENO" 5; }
11538    else
11539      ac_cv_sizeof_int=0
11540    fi
11541 fi
11542
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11545 $as_echo "$ac_cv_sizeof_int" >&6; }
11546
11547
11548
11549 cat >>confdefs.h <<_ACEOF
11550 #define SIZEOF_INT $ac_cv_sizeof_int
11551 _ACEOF
11552
11553
11554 # The cast to long int works around a bug in the HP C Compiler
11555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11557 # This bug is HP SR number 8606223364.
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11559 $as_echo_n "checking size of long int... " >&6; }
11560 if ${ac_cv_sizeof_long_int+:} false; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
11564
11565 else
11566   if test "$ac_cv_type_long_int" = yes; then
11567      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11569 as_fn_error 77 "cannot compute sizeof (long int)
11570 See \`config.log' for more details" "$LINENO" 5; }
11571    else
11572      ac_cv_sizeof_long_int=0
11573    fi
11574 fi
11575
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11578 $as_echo "$ac_cv_sizeof_long_int" >&6; }
11579
11580
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11584 _ACEOF
11585
11586
11587 # The cast to long int works around a bug in the HP C Compiler
11588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11590 # This bug is HP SR number 8606223364.
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11592 $as_echo_n "checking size of long long int... " >&6; }
11593 if ${ac_cv_sizeof_long_long_int+:} false; then :
11594   $as_echo_n "(cached) " >&6
11595 else
11596   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
11597
11598 else
11599   if test "$ac_cv_type_long_long_int" = yes; then
11600      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11602 as_fn_error 77 "cannot compute sizeof (long long int)
11603 See \`config.log' for more details" "$LINENO" 5; }
11604    else
11605      ac_cv_sizeof_long_long_int=0
11606    fi
11607 fi
11608
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11611 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11612
11613
11614
11615 cat >>confdefs.h <<_ACEOF
11616 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11617 _ACEOF
11618
11619
11620
11621 # Sanity check long long for some platforms (AIX)
11622 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11623         ac_cv_sizeof_long_long_int=0
11624 fi
11625
11626 # compute LLONG_MIN and LLONG_MAX if we don't know them.
11627 if test -z "$have_llong_max"; then
11628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
11629 $as_echo_n "checking for max value of long long... " >&6; }
11630         if test "$cross_compiling" = yes; then :
11631
11632                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11633 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11634
11635
11636 else
11637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h.  */
11639
11640 #include <stdio.h>
11641 /* Why is this so damn hard? */
11642 #ifdef __GNUC__
11643 # undef __GNUC__
11644 #endif
11645 #define __USE_ISOC99
11646 #include <limits.h>
11647 #define DATA "conftest.llminmax"
11648 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
11649
11650 /*
11651  * printf in libc on some platforms (eg old Tru64) does not understand %lld so
11652  * we do this the hard way.
11653  */
11654 static int
11655 fprint_ll(FILE *f, long long n)
11656 {
11657         unsigned int i;
11658         int l[sizeof(long long) * 8];
11659
11660         if (n < 0)
11661                 if (fprintf(f, "-") < 0)
11662                         return -1;
11663         for (i = 0; n != 0; i++) {
11664                 l[i] = my_abs(n % 10);
11665                 n /= 10;
11666         }
11667         do {
11668                 if (fprintf(f, "%d", l[--i]) < 0)
11669                         return -1;
11670         } while (i != 0);
11671         if (fprintf(f, " ") < 0)
11672                 return -1;
11673         return 0;
11674 }
11675
11676 int
11677 main ()
11678 {
11679
11680         FILE *f;
11681         long long i, llmin, llmax = 0;
11682
11683         if((f = fopen(DATA,"w")) == NULL)
11684                 exit(1);
11685
11686 #if defined(LLONG_MIN) && defined(LLONG_MAX)
11687         fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
11688         llmin = LLONG_MIN;
11689         llmax = LLONG_MAX;
11690 #else
11691         fprintf(stderr, "Calculating  LLONG_MIN and LLONG_MAX\n");
11692         /* This will work on one's complement and two's complement */
11693         for (i = 1; i > llmax; i <<= 1, i++)
11694                 llmax = i;
11695         llmin = llmax + 1LL;    /* wrap */
11696 #endif
11697
11698         /* Sanity check */
11699         if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
11700             || llmax - 1 > llmax || llmin == llmax || llmin == 0
11701             || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
11702                 fprintf(f, "unknown unknown\n");
11703                 exit(2);
11704         }
11705
11706         if (fprint_ll(f, llmin) < 0)
11707                 exit(3);
11708         if (fprint_ll(f, llmax) < 0)
11709                 exit(4);
11710         if (fclose(f) < 0)
11711                 exit(5);
11712         exit(0);
11713
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 if ac_fn_c_try_run "$LINENO"; then :
11719
11720                         llong_min=`$AWK '{print $1}' conftest.llminmax`
11721                         llong_max=`$AWK '{print $2}' conftest.llminmax`
11722
11723                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
11724 $as_echo "$llong_max" >&6; }
11725
11726 cat >>confdefs.h <<_ACEOF
11727 #define LLONG_MAX ${llong_max}LL
11728 _ACEOF
11729
11730                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
11731 $as_echo_n "checking for min value of long long... " >&6; }
11732                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
11733 $as_echo "$llong_min" >&6; }
11734
11735 cat >>confdefs.h <<_ACEOF
11736 #define LLONG_MIN ${llong_min}LL
11737 _ACEOF
11738
11739
11740 else
11741
11742                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11743 $as_echo "not found" >&6; }
11744
11745 fi
11746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11747   conftest.$ac_objext conftest.beam conftest.$ac_ext
11748 fi
11749
11750 fi
11751
11752
11753 # More checks for data types
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
11755 $as_echo_n "checking for u_int type... " >&6; }
11756 if ${ac_cv_have_u_int+:} false; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759
11760         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h.  */
11762  #include <sys/types.h>
11763 int
11764 main ()
11765 {
11766  u_int a; a = 1;
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_compile "$LINENO"; then :
11772    ac_cv_have_u_int="yes"
11773 else
11774    ac_cv_have_u_int="no"
11775
11776 fi
11777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778
11779 fi
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
11781 $as_echo "$ac_cv_have_u_int" >&6; }
11782 if test "x$ac_cv_have_u_int" = "xyes" ; then
11783
11784 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
11785
11786         have_u_int=1
11787 fi
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
11790 $as_echo_n "checking for intXX_t types... " >&6; }
11791 if ${ac_cv_have_intxx_t+:} false; then :
11792   $as_echo_n "(cached) " >&6
11793 else
11794
11795         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h.  */
11797  #include <sys/types.h>
11798 int
11799 main ()
11800 {
11801  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_compile "$LINENO"; then :
11807    ac_cv_have_intxx_t="yes"
11808 else
11809    ac_cv_have_intxx_t="no"
11810
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
11816 $as_echo "$ac_cv_have_intxx_t" >&6; }
11817 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11818
11819 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11820
11821         have_intxx_t=1
11822 fi
11823
11824 if (test -z "$have_intxx_t" && \
11825            test "x$ac_cv_header_stdint_h" = "xyes")
11826 then
11827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
11828 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
11829         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h.  */
11831  #include <stdint.h>
11832 int
11833 main ()
11834 {
11835  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_compile "$LINENO"; then :
11841
11842                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11843
11844                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11845 $as_echo "yes" >&6; }
11846
11847 else
11848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11850
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
11856 $as_echo_n "checking for int64_t type... " >&6; }
11857 if ${ac_cv_have_int64_t+:} false; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860
11861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862 /* end confdefs.h.  */
11863
11864 #include <sys/types.h>
11865 #ifdef HAVE_STDINT_H
11866 # include <stdint.h>
11867 #endif
11868 #include <sys/socket.h>
11869 #ifdef HAVE_SYS_BITYPES_H
11870 # include <sys/bitypes.h>
11871 #endif
11872
11873 int
11874 main ()
11875 {
11876
11877 int64_t a; a = 1;
11878
11879   ;
11880   return 0;
11881 }
11882 _ACEOF
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884    ac_cv_have_int64_t="yes"
11885 else
11886    ac_cv_have_int64_t="no"
11887
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890
11891 fi
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
11893 $as_echo "$ac_cv_have_int64_t" >&6; }
11894 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11895
11896 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
11897
11898 fi
11899
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
11901 $as_echo_n "checking for u_intXX_t types... " >&6; }
11902 if ${ac_cv_have_u_intxx_t+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905
11906         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h.  */
11908  #include <sys/types.h>
11909 int
11910 main ()
11911 {
11912  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 if ac_fn_c_try_compile "$LINENO"; then :
11918    ac_cv_have_u_intxx_t="yes"
11919 else
11920    ac_cv_have_u_intxx_t="no"
11921
11922 fi
11923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
11927 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
11928 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11929
11930 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11931
11932         have_u_intxx_t=1
11933 fi
11934
11935 if test -z "$have_u_intxx_t" ; then
11936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
11937 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
11938         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h.  */
11940  #include <sys/socket.h>
11941 int
11942 main ()
11943 {
11944  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11945   ;
11946   return 0;
11947 }
11948 _ACEOF
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950
11951                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11952
11953                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954 $as_echo "yes" >&6; }
11955
11956 else
11957    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962 fi
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
11965 $as_echo_n "checking for u_int64_t types... " >&6; }
11966 if ${ac_cv_have_u_int64_t+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969
11970         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h.  */
11972  #include <sys/types.h>
11973 int
11974 main ()
11975 {
11976  u_int64_t a; a = 1;
11977   ;
11978   return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_compile "$LINENO"; then :
11982    ac_cv_have_u_int64_t="yes"
11983 else
11984    ac_cv_have_u_int64_t="no"
11985
11986 fi
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
11991 $as_echo "$ac_cv_have_u_int64_t" >&6; }
11992 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11993
11994 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11995
11996         have_u_int64_t=1
11997 fi
11998
11999 if test -z "$have_u_int64_t" ; then
12000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
12001 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
12002         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h.  */
12004  #include <sys/bitypes.h>
12005 int
12006 main ()
12007 {
12008  u_int64_t a; a = 1
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 if ac_fn_c_try_compile "$LINENO"; then :
12014
12015                         $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12016
12017                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12018 $as_echo "yes" >&6; }
12019
12020 else
12021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022 $as_echo "no" >&6; }
12023
12024 fi
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 fi
12027
12028 if test -z "$have_u_intxx_t" ; then
12029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12030 $as_echo_n "checking for uintXX_t types... " >&6; }
12031 if ${ac_cv_have_uintxx_t+:} false; then :
12032   $as_echo_n "(cached) " >&6
12033 else
12034
12035                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 #include <sys/types.h>
12039
12040 int
12041 main ()
12042 {
12043
12044         uint8_t a;
12045         uint16_t b;
12046         uint32_t c;
12047         a = b = c = 1;
12048
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_compile "$LINENO"; then :
12054    ac_cv_have_uintxx_t="yes"
12055 else
12056    ac_cv_have_uintxx_t="no"
12057
12058 fi
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12063 $as_echo "$ac_cv_have_uintxx_t" >&6; }
12064         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12065
12066 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12067
12068         fi
12069 fi
12070
12071 if test -z "$have_uintxx_t" ; then
12072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12073 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h.  */
12076  #include <stdint.h>
12077 int
12078 main ()
12079 {
12080  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_compile "$LINENO"; then :
12086
12087                         $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12088
12089                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12090 $as_echo "yes" >&6; }
12091
12092 else
12093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 fi
12099
12100 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12101            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12102 then
12103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12104 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12105         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h.  */
12107
12108 #include <sys/bitypes.h>
12109
12110 int
12111 main ()
12112 {
12113
12114                         int8_t a; int16_t b; int32_t c;
12115                         u_int8_t e; u_int16_t f; u_int32_t g;
12116                         a = b = c = e = f = g = 1;
12117
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 if ac_fn_c_try_compile "$LINENO"; then :
12123
12124                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12125
12126                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12127
12128                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130
12131 else
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 fi
12138
12139
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12141 $as_echo_n "checking for u_char... " >&6; }
12142 if ${ac_cv_have_u_char+:} false; then :
12143   $as_echo_n "(cached) " >&6
12144 else
12145
12146         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148  #include <sys/types.h>
12149 int
12150 main ()
12151 {
12152  u_char foo; foo = 125;
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_compile "$LINENO"; then :
12158    ac_cv_have_u_char="yes"
12159 else
12160    ac_cv_have_u_char="no"
12161
12162 fi
12163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12167 $as_echo "$ac_cv_have_u_char" >&6; }
12168 if test "x$ac_cv_have_u_char" = "xyes" ; then
12169
12170 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12171
12172 fi
12173
12174
12175    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12176 #include <sys/socket.h>
12177 "
12178 if test "x$ac_cv_type_socklen_t" = xyes; then :
12179
12180 else
12181
12182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12183 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12184       if ${curl_cv_socklen_t_equiv+:} false; then :
12185   $as_echo_n "(cached) " >&6
12186 else
12187
12188          # Systems have either "struct sockaddr *" or
12189          # "void *" as the second argument to getpeername
12190          curl_cv_socklen_t_equiv=
12191          for arg2 in "struct sockaddr" void; do
12192             for t in int size_t unsigned long "unsigned long"; do
12193                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h.  */
12195
12196                   #include <sys/types.h>
12197                   #include <sys/socket.h>
12198
12199                   int getpeername (int, $arg2 *, $t *);
12200
12201 int
12202 main ()
12203 {
12204
12205                   $t len;
12206                   getpeername(0,0,&len);
12207
12208   ;
12209   return 0;
12210 }
12211 _ACEOF
12212 if ac_fn_c_try_compile "$LINENO"; then :
12213
12214                   curl_cv_socklen_t_equiv="$t"
12215                   break
12216
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219             done
12220          done
12221
12222          if test "x$curl_cv_socklen_t_equiv" = x; then
12223             as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12224          fi
12225
12226 fi
12227
12228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12229 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12230
12231 cat >>confdefs.h <<_ACEOF
12232 #define socklen_t $curl_cv_socklen_t_equiv
12233 _ACEOF
12234
12235 fi
12236
12237
12238
12239 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12240 "
12241 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
12242
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_SIG_ATOMIC_T 1
12245 _ACEOF
12246
12247
12248 fi
12249
12250 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12251 #include <sys/types.h>
12252 #ifdef HAVE_SYS_BITYPES_H
12253 #include <sys/bitypes.h>
12254 #endif
12255 #ifdef HAVE_SYS_STATFS_H
12256 #include <sys/statfs.h>
12257 #endif
12258 #ifdef HAVE_SYS_STATVFS_H
12259 #include <sys/statvfs.h>
12260 #endif
12261
12262 "
12263 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
12264
12265 cat >>confdefs.h <<_ACEOF
12266 #define HAVE_FSBLKCNT_T 1
12267 _ACEOF
12268
12269
12270 fi
12271 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12272 #include <sys/types.h>
12273 #ifdef HAVE_SYS_BITYPES_H
12274 #include <sys/bitypes.h>
12275 #endif
12276 #ifdef HAVE_SYS_STATFS_H
12277 #include <sys/statfs.h>
12278 #endif
12279 #ifdef HAVE_SYS_STATVFS_H
12280 #include <sys/statvfs.h>
12281 #endif
12282
12283 "
12284 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
12285
12286 cat >>confdefs.h <<_ACEOF
12287 #define HAVE_FSFILCNT_T 1
12288 _ACEOF
12289
12290
12291 fi
12292
12293
12294 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12295 #include <netinet/in.h>
12296 "
12297 if test "x$ac_cv_type_in_addr_t" = xyes; then :
12298
12299 cat >>confdefs.h <<_ACEOF
12300 #define HAVE_IN_ADDR_T 1
12301 _ACEOF
12302
12303
12304 fi
12305 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12306 #include <netinet/in.h>
12307 "
12308 if test "x$ac_cv_type_in_port_t" = xyes; then :
12309
12310 cat >>confdefs.h <<_ACEOF
12311 #define HAVE_IN_PORT_T 1
12312 _ACEOF
12313
12314
12315 fi
12316
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12319 $as_echo_n "checking for size_t... " >&6; }
12320 if ${ac_cv_have_size_t+:} false; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323
12324         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h.  */
12326  #include <sys/types.h>
12327 int
12328 main ()
12329 {
12330  size_t foo; foo = 1235;
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 if ac_fn_c_try_compile "$LINENO"; then :
12336    ac_cv_have_size_t="yes"
12337 else
12338    ac_cv_have_size_t="no"
12339
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12345 $as_echo "$ac_cv_have_size_t" >&6; }
12346 if test "x$ac_cv_have_size_t" = "xyes" ; then
12347
12348 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12349
12350 fi
12351
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12353 $as_echo_n "checking for ssize_t... " >&6; }
12354 if ${ac_cv_have_ssize_t+:} false; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357
12358         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h.  */
12360  #include <sys/types.h>
12361 int
12362 main ()
12363 {
12364  ssize_t foo; foo = 1235;
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_c_try_compile "$LINENO"; then :
12370    ac_cv_have_ssize_t="yes"
12371 else
12372    ac_cv_have_ssize_t="no"
12373
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12379 $as_echo "$ac_cv_have_ssize_t" >&6; }
12380 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12381
12382 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12383
12384 fi
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12387 $as_echo_n "checking for clock_t... " >&6; }
12388 if ${ac_cv_have_clock_t+:} false; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391
12392         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h.  */
12394  #include <time.h>
12395 int
12396 main ()
12397 {
12398  clock_t foo; foo = 1235;
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 if ac_fn_c_try_compile "$LINENO"; then :
12404    ac_cv_have_clock_t="yes"
12405 else
12406    ac_cv_have_clock_t="no"
12407
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12413 $as_echo "$ac_cv_have_clock_t" >&6; }
12414 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12415
12416 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12417
12418 fi
12419
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12421 $as_echo_n "checking for sa_family_t... " >&6; }
12422 if ${ac_cv_have_sa_family_t+:} false; then :
12423   $as_echo_n "(cached) " >&6
12424 else
12425
12426         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h.  */
12428
12429 #include <sys/types.h>
12430 #include <sys/socket.h>
12431
12432 int
12433 main ()
12434 {
12435  sa_family_t foo; foo = 1235;
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_c_try_compile "$LINENO"; then :
12441    ac_cv_have_sa_family_t="yes"
12442 else
12443    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h.  */
12445
12446 #include <sys/types.h>
12447 #include <sys/socket.h>
12448 #include <netinet/in.h>
12449
12450 int
12451 main ()
12452 {
12453  sa_family_t foo; foo = 1235;
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_compile "$LINENO"; then :
12459    ac_cv_have_sa_family_t="yes"
12460 else
12461    ac_cv_have_sa_family_t="no"
12462
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465
12466 fi
12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12468
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12471 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12472 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12473
12474 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12475
12476 fi
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12479 $as_echo_n "checking for pid_t... " >&6; }
12480 if ${ac_cv_have_pid_t+:} false; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483
12484         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h.  */
12486  #include <sys/types.h>
12487 int
12488 main ()
12489 {
12490  pid_t foo; foo = 1235;
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496    ac_cv_have_pid_t="yes"
12497 else
12498    ac_cv_have_pid_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_pid_t" >&5
12505 $as_echo "$ac_cv_have_pid_t" >&6; }
12506 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12507
12508 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12509
12510 fi
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12513 $as_echo_n "checking for mode_t... " >&6; }
12514 if ${ac_cv_have_mode_t+:} false; then :
12515   $as_echo_n "(cached) " >&6
12516 else
12517
12518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h.  */
12520  #include <sys/types.h>
12521 int
12522 main ()
12523 {
12524  mode_t foo; foo = 1235;
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 if ac_fn_c_try_compile "$LINENO"; then :
12530    ac_cv_have_mode_t="yes"
12531 else
12532    ac_cv_have_mode_t="no"
12533
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12539 $as_echo "$ac_cv_have_mode_t" >&6; }
12540 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12541
12542 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12543
12544 fi
12545
12546
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
12548 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
12549 if ${ac_cv_have_struct_sockaddr_storage+:} false; then :
12550   $as_echo_n "(cached) " >&6
12551 else
12552
12553         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h.  */
12555
12556 #include <sys/types.h>
12557 #include <sys/socket.h>
12558
12559 int
12560 main ()
12561 {
12562  struct sockaddr_storage s;
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 if ac_fn_c_try_compile "$LINENO"; then :
12568    ac_cv_have_struct_sockaddr_storage="yes"
12569 else
12570    ac_cv_have_struct_sockaddr_storage="no"
12571
12572 fi
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
12577 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
12578 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12579
12580 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12581
12582 fi
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
12585 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
12586 if ${ac_cv_have_struct_sockaddr_in6+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589
12590         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h.  */
12592
12593 #include <sys/types.h>
12594 #include <netinet/in.h>
12595
12596 int
12597 main ()
12598 {
12599  struct sockaddr_in6 s; s.sin6_family = 0;
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 if ac_fn_c_try_compile "$LINENO"; then :
12605    ac_cv_have_struct_sockaddr_in6="yes"
12606 else
12607    ac_cv_have_struct_sockaddr_in6="no"
12608
12609 fi
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
12614 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
12615 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12616
12617 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
12618
12619 fi
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
12622 $as_echo_n "checking for struct in6_addr... " >&6; }
12623 if ${ac_cv_have_struct_in6_addr+:} false; then :
12624   $as_echo_n "(cached) " >&6
12625 else
12626
12627         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h.  */
12629
12630 #include <sys/types.h>
12631 #include <netinet/in.h>
12632
12633 int
12634 main ()
12635 {
12636  struct in6_addr s; s.s6_addr[0] = 0;
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 if ac_fn_c_try_compile "$LINENO"; then :
12642    ac_cv_have_struct_in6_addr="yes"
12643 else
12644    ac_cv_have_struct_in6_addr="no"
12645
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648
12649 fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
12651 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
12652 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12653
12654 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
12655
12656
12657         ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
12658 #ifdef HAVE_SYS_TYPES_H
12659 #include <sys/types.h>
12660 #endif
12661 #include <netinet/in.h>
12662
12663 "
12664 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
12665
12666 cat >>confdefs.h <<_ACEOF
12667 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
12668 _ACEOF
12669
12670
12671 fi
12672
12673 fi
12674
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
12676 $as_echo_n "checking for struct addrinfo... " >&6; }
12677 if ${ac_cv_have_struct_addrinfo+:} false; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680
12681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683
12684 #include <sys/types.h>
12685 #include <sys/socket.h>
12686 #include <netdb.h>
12687
12688 int
12689 main ()
12690 {
12691  struct addrinfo s; s.ai_flags = AI_PASSIVE;
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 if ac_fn_c_try_compile "$LINENO"; then :
12697    ac_cv_have_struct_addrinfo="yes"
12698 else
12699    ac_cv_have_struct_addrinfo="no"
12700
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703
12704 fi
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
12706 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
12707 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12708
12709 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
12710
12711 fi
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12714 $as_echo_n "checking for struct timeval... " >&6; }
12715 if ${ac_cv_have_struct_timeval+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718
12719         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h.  */
12721  #include <sys/time.h>
12722 int
12723 main ()
12724 {
12725  struct timeval tv; tv.tv_sec = 1;
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_compile "$LINENO"; then :
12731    ac_cv_have_struct_timeval="yes"
12732 else
12733    ac_cv_have_struct_timeval="no"
12734
12735 fi
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
12740 $as_echo "$ac_cv_have_struct_timeval" >&6; }
12741 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12742
12743 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
12744
12745         have_struct_timeval=1
12746 fi
12747
12748 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
12749 if test "x$ac_cv_type_struct_timespec" = xyes; then :
12750
12751 cat >>confdefs.h <<_ACEOF
12752 #define HAVE_STRUCT_TIMESPEC 1
12753 _ACEOF
12754
12755
12756 fi
12757
12758
12759 # We need int64_t or else certian parts of the compile will fail.
12760 if test "x$ac_cv_have_int64_t" = "xno" && \
12761         test "x$ac_cv_sizeof_long_int" != "x8" && \
12762         test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12763         echo "OpenSSH requires int64_t support.  Contact your vendor or install"
12764         echo "an alternative compiler (I.E., GCC) before continuing."
12765         echo ""
12766         exit 1;
12767 else
12768         if test "$cross_compiling" = yes; then :
12769   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12770 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12771
12772 else
12773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h.  */
12775
12776 #include <stdio.h>
12777 #include <string.h>
12778 #ifdef HAVE_SNPRINTF
12779 main()
12780 {
12781         char buf[50];
12782         char expected_out[50];
12783         int mazsize = 50 ;
12784 #if (SIZEOF_LONG_INT == 8)
12785         long int num = 0x7fffffffffffffff;
12786 #else
12787         long long num = 0x7fffffffffffffffll;
12788 #endif
12789         strcpy(expected_out, "9223372036854775807");
12790         snprintf(buf, mazsize, "%lld", num);
12791         if(strcmp(buf, expected_out) != 0)
12792                 exit(1);
12793         exit(0);
12794 }
12795 #else
12796 main() { exit(0); }
12797 #endif
12798
12799 _ACEOF
12800 if ac_fn_c_try_run "$LINENO"; then :
12801    true
12802 else
12803    $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12804
12805 fi
12806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12807   conftest.$ac_objext conftest.beam conftest.$ac_ext
12808 fi
12809
12810 fi
12811
12812
12813 # look for field 'ut_host' in header 'utmp.h'
12814                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12815                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
12817 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
12818         if eval \${$ossh_varname+:} false; then :
12819   $as_echo_n "(cached) " >&6
12820 else
12821
12822                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h.  */
12824 #include <utmp.h>
12825
12826 _ACEOF
12827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12828   $EGREP "ut_host" >/dev/null 2>&1; then :
12829                         eval "$ossh_varname=yes"
12830 else
12831                         eval "$ossh_varname=no"
12832 fi
12833 rm -f conftest*
12834
12835 fi
12836
12837         ossh_result=`eval 'echo $'"$ossh_varname"`
12838         if test -n "`echo $ossh_varname`"; then
12839                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12840 $as_echo "$ossh_result" >&6; }
12841                 if test "x$ossh_result" = "xyes"; then
12842
12843 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
12844
12845                 fi
12846         else
12847                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849         fi
12850
12851
12852 # look for field 'ut_host' in header 'utmpx.h'
12853                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12854                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
12856 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
12857         if eval \${$ossh_varname+:} false; then :
12858   $as_echo_n "(cached) " >&6
12859 else
12860
12861                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h.  */
12863 #include <utmpx.h>
12864
12865 _ACEOF
12866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12867   $EGREP "ut_host" >/dev/null 2>&1; then :
12868                         eval "$ossh_varname=yes"
12869 else
12870                         eval "$ossh_varname=no"
12871 fi
12872 rm -f conftest*
12873
12874 fi
12875
12876         ossh_result=`eval 'echo $'"$ossh_varname"`
12877         if test -n "`echo $ossh_varname`"; then
12878                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12879 $as_echo "$ossh_result" >&6; }
12880                 if test "x$ossh_result" = "xyes"; then
12881
12882 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
12883
12884                 fi
12885         else
12886                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12888         fi
12889
12890
12891 # look for field 'syslen' in header 'utmpx.h'
12892                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12893                 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
12895 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
12896         if eval \${$ossh_varname+:} false; then :
12897   $as_echo_n "(cached) " >&6
12898 else
12899
12900                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h.  */
12902 #include <utmpx.h>
12903
12904 _ACEOF
12905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12906   $EGREP "syslen" >/dev/null 2>&1; then :
12907                         eval "$ossh_varname=yes"
12908 else
12909                         eval "$ossh_varname=no"
12910 fi
12911 rm -f conftest*
12912
12913 fi
12914
12915         ossh_result=`eval 'echo $'"$ossh_varname"`
12916         if test -n "`echo $ossh_varname`"; then
12917                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12918 $as_echo "$ossh_result" >&6; }
12919                 if test "x$ossh_result" = "xyes"; then
12920
12921 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
12922
12923                 fi
12924         else
12925                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12927         fi
12928
12929
12930 # look for field 'ut_pid' in header 'utmp.h'
12931                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12932                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
12934 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
12935         if eval \${$ossh_varname+:} false; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938
12939                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h.  */
12941 #include <utmp.h>
12942
12943 _ACEOF
12944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12945   $EGREP "ut_pid" >/dev/null 2>&1; then :
12946                         eval "$ossh_varname=yes"
12947 else
12948                         eval "$ossh_varname=no"
12949 fi
12950 rm -f conftest*
12951
12952 fi
12953
12954         ossh_result=`eval 'echo $'"$ossh_varname"`
12955         if test -n "`echo $ossh_varname`"; then
12956                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12957 $as_echo "$ossh_result" >&6; }
12958                 if test "x$ossh_result" = "xyes"; then
12959
12960 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
12961
12962                 fi
12963         else
12964                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966         fi
12967
12968
12969 # look for field 'ut_type' in header 'utmp.h'
12970                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12971                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
12973 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
12974         if eval \${$ossh_varname+:} false; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977
12978                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h.  */
12980 #include <utmp.h>
12981
12982 _ACEOF
12983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12984   $EGREP "ut_type" >/dev/null 2>&1; then :
12985                         eval "$ossh_varname=yes"
12986 else
12987                         eval "$ossh_varname=no"
12988 fi
12989 rm -f conftest*
12990
12991 fi
12992
12993         ossh_result=`eval 'echo $'"$ossh_varname"`
12994         if test -n "`echo $ossh_varname`"; then
12995                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12996 $as_echo "$ossh_result" >&6; }
12997                 if test "x$ossh_result" = "xyes"; then
12998
12999 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
13000
13001                 fi
13002         else
13003                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13005         fi
13006
13007
13008 # look for field 'ut_type' in header 'utmpx.h'
13009                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13010                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13011         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13012 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13013         if eval \${$ossh_varname+:} false; then :
13014   $as_echo_n "(cached) " >&6
13015 else
13016
13017                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h.  */
13019 #include <utmpx.h>
13020
13021 _ACEOF
13022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13023   $EGREP "ut_type" >/dev/null 2>&1; then :
13024                         eval "$ossh_varname=yes"
13025 else
13026                         eval "$ossh_varname=no"
13027 fi
13028 rm -f conftest*
13029
13030 fi
13031
13032         ossh_result=`eval 'echo $'"$ossh_varname"`
13033         if test -n "`echo $ossh_varname`"; then
13034                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13035 $as_echo "$ossh_result" >&6; }
13036                 if test "x$ossh_result" = "xyes"; then
13037
13038 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13039
13040                 fi
13041         else
13042                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044         fi
13045
13046
13047 # look for field 'ut_tv' in header 'utmp.h'
13048                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13049                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13051 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13052         if eval \${$ossh_varname+:} false; then :
13053   $as_echo_n "(cached) " >&6
13054 else
13055
13056                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h.  */
13058 #include <utmp.h>
13059
13060 _ACEOF
13061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13062   $EGREP "ut_tv" >/dev/null 2>&1; then :
13063                         eval "$ossh_varname=yes"
13064 else
13065                         eval "$ossh_varname=no"
13066 fi
13067 rm -f conftest*
13068
13069 fi
13070
13071         ossh_result=`eval 'echo $'"$ossh_varname"`
13072         if test -n "`echo $ossh_varname`"; then
13073                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13074 $as_echo "$ossh_result" >&6; }
13075                 if test "x$ossh_result" = "xyes"; then
13076
13077 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13078
13079                 fi
13080         else
13081                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13083         fi
13084
13085
13086 # look for field 'ut_id' in header 'utmp.h'
13087                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13088                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13090 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13091         if eval \${$ossh_varname+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094
13095                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h.  */
13097 #include <utmp.h>
13098
13099 _ACEOF
13100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13101   $EGREP "ut_id" >/dev/null 2>&1; then :
13102                         eval "$ossh_varname=yes"
13103 else
13104                         eval "$ossh_varname=no"
13105 fi
13106 rm -f conftest*
13107
13108 fi
13109
13110         ossh_result=`eval 'echo $'"$ossh_varname"`
13111         if test -n "`echo $ossh_varname`"; then
13112                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13113 $as_echo "$ossh_result" >&6; }
13114                 if test "x$ossh_result" = "xyes"; then
13115
13116 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13117
13118                 fi
13119         else
13120                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13122         fi
13123
13124
13125 # look for field 'ut_id' in header 'utmpx.h'
13126                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13127                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13128         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13129 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13130         if eval \${$ossh_varname+:} false; then :
13131   $as_echo_n "(cached) " >&6
13132 else
13133
13134                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h.  */
13136 #include <utmpx.h>
13137
13138 _ACEOF
13139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13140   $EGREP "ut_id" >/dev/null 2>&1; then :
13141                         eval "$ossh_varname=yes"
13142 else
13143                         eval "$ossh_varname=no"
13144 fi
13145 rm -f conftest*
13146
13147 fi
13148
13149         ossh_result=`eval 'echo $'"$ossh_varname"`
13150         if test -n "`echo $ossh_varname`"; then
13151                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13152 $as_echo "$ossh_result" >&6; }
13153                 if test "x$ossh_result" = "xyes"; then
13154
13155 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13156
13157                 fi
13158         else
13159                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13161         fi
13162
13163
13164 # look for field 'ut_addr' in header 'utmp.h'
13165                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13166                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13168 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13169         if eval \${$ossh_varname+:} 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 <utmp.h>
13176
13177 _ACEOF
13178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13179   $EGREP "ut_addr" >/dev/null 2>&1; then :
13180                         eval "$ossh_varname=yes"
13181 else
13182                         eval "$ossh_varname=no"
13183 fi
13184 rm -f conftest*
13185
13186 fi
13187
13188         ossh_result=`eval 'echo $'"$ossh_varname"`
13189         if test -n "`echo $ossh_varname`"; then
13190                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13191 $as_echo "$ossh_result" >&6; }
13192                 if test "x$ossh_result" = "xyes"; then
13193
13194 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13195
13196                 fi
13197         else
13198                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200         fi
13201
13202
13203 # look for field 'ut_addr' in header 'utmpx.h'
13204                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13205                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13206         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13207 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13208         if eval \${$ossh_varname+:} false; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211
13212                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h.  */
13214 #include <utmpx.h>
13215
13216 _ACEOF
13217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218   $EGREP "ut_addr" >/dev/null 2>&1; then :
13219                         eval "$ossh_varname=yes"
13220 else
13221                         eval "$ossh_varname=no"
13222 fi
13223 rm -f conftest*
13224
13225 fi
13226
13227         ossh_result=`eval 'echo $'"$ossh_varname"`
13228         if test -n "`echo $ossh_varname`"; then
13229                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13230 $as_echo "$ossh_result" >&6; }
13231                 if test "x$ossh_result" = "xyes"; then
13232
13233 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13234
13235                 fi
13236         else
13237                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239         fi
13240
13241
13242 # look for field 'ut_addr_v6' in header 'utmp.h'
13243                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13244                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13246 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13247         if eval \${$ossh_varname+:} false; then :
13248   $as_echo_n "(cached) " >&6
13249 else
13250
13251                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h.  */
13253 #include <utmp.h>
13254
13255 _ACEOF
13256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13257   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13258                         eval "$ossh_varname=yes"
13259 else
13260                         eval "$ossh_varname=no"
13261 fi
13262 rm -f conftest*
13263
13264 fi
13265
13266         ossh_result=`eval 'echo $'"$ossh_varname"`
13267         if test -n "`echo $ossh_varname`"; then
13268                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13269 $as_echo "$ossh_result" >&6; }
13270                 if test "x$ossh_result" = "xyes"; then
13271
13272 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13273
13274                 fi
13275         else
13276                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277 $as_echo "no" >&6; }
13278         fi
13279
13280
13281 # look for field 'ut_addr_v6' in header 'utmpx.h'
13282                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13283                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13285 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13286         if eval \${$ossh_varname+:} false; then :
13287   $as_echo_n "(cached) " >&6
13288 else
13289
13290                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h.  */
13292 #include <utmpx.h>
13293
13294 _ACEOF
13295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13296   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13297                         eval "$ossh_varname=yes"
13298 else
13299                         eval "$ossh_varname=no"
13300 fi
13301 rm -f conftest*
13302
13303 fi
13304
13305         ossh_result=`eval 'echo $'"$ossh_varname"`
13306         if test -n "`echo $ossh_varname`"; then
13307                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13308 $as_echo "$ossh_result" >&6; }
13309                 if test "x$ossh_result" = "xyes"; then
13310
13311 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13312
13313                 fi
13314         else
13315                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13317         fi
13318
13319
13320 # look for field 'ut_exit' in header 'utmp.h'
13321                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13322                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13323         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13324 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13325         if eval \${$ossh_varname+:} false; then :
13326   $as_echo_n "(cached) " >&6
13327 else
13328
13329                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h.  */
13331 #include <utmp.h>
13332
13333 _ACEOF
13334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13335   $EGREP "ut_exit" >/dev/null 2>&1; then :
13336                         eval "$ossh_varname=yes"
13337 else
13338                         eval "$ossh_varname=no"
13339 fi
13340 rm -f conftest*
13341
13342 fi
13343
13344         ossh_result=`eval 'echo $'"$ossh_varname"`
13345         if test -n "`echo $ossh_varname`"; then
13346                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13347 $as_echo "$ossh_result" >&6; }
13348                 if test "x$ossh_result" = "xyes"; then
13349
13350 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13351
13352                 fi
13353         else
13354                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355 $as_echo "no" >&6; }
13356         fi
13357
13358
13359 # look for field 'ut_time' in header 'utmp.h'
13360                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13361                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13362         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13363 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13364         if eval \${$ossh_varname+:} false; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367
13368                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h.  */
13370 #include <utmp.h>
13371
13372 _ACEOF
13373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13374   $EGREP "ut_time" >/dev/null 2>&1; then :
13375                         eval "$ossh_varname=yes"
13376 else
13377                         eval "$ossh_varname=no"
13378 fi
13379 rm -f conftest*
13380
13381 fi
13382
13383         ossh_result=`eval 'echo $'"$ossh_varname"`
13384         if test -n "`echo $ossh_varname`"; then
13385                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13386 $as_echo "$ossh_result" >&6; }
13387                 if test "x$ossh_result" = "xyes"; then
13388
13389 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13390
13391                 fi
13392         else
13393                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395         fi
13396
13397
13398 # look for field 'ut_time' in header 'utmpx.h'
13399                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13400                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13402 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13403         if eval \${$ossh_varname+:} false; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406
13407                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h.  */
13409 #include <utmpx.h>
13410
13411 _ACEOF
13412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13413   $EGREP "ut_time" >/dev/null 2>&1; then :
13414                         eval "$ossh_varname=yes"
13415 else
13416                         eval "$ossh_varname=no"
13417 fi
13418 rm -f conftest*
13419
13420 fi
13421
13422         ossh_result=`eval 'echo $'"$ossh_varname"`
13423         if test -n "`echo $ossh_varname`"; then
13424                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13425 $as_echo "$ossh_result" >&6; }
13426                 if test "x$ossh_result" = "xyes"; then
13427
13428 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13429
13430                 fi
13431         else
13432                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13434         fi
13435
13436
13437 # look for field 'ut_tv' in header 'utmpx.h'
13438                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13439                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13441 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13442         if eval \${$ossh_varname+:} false; then :
13443   $as_echo_n "(cached) " >&6
13444 else
13445
13446                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h.  */
13448 #include <utmpx.h>
13449
13450 _ACEOF
13451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13452   $EGREP "ut_tv" >/dev/null 2>&1; then :
13453                         eval "$ossh_varname=yes"
13454 else
13455                         eval "$ossh_varname=no"
13456 fi
13457 rm -f conftest*
13458
13459 fi
13460
13461         ossh_result=`eval 'echo $'"$ossh_varname"`
13462         if test -n "`echo $ossh_varname`"; then
13463                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13464 $as_echo "$ossh_result" >&6; }
13465                 if test "x$ossh_result" = "xyes"; then
13466
13467 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13468
13469                 fi
13470         else
13471                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13473         fi
13474
13475
13476 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13477 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
13478
13479 cat >>confdefs.h <<_ACEOF
13480 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13481 _ACEOF
13482
13483
13484 fi
13485
13486 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13487 #include <stdio.h>
13488 #if HAVE_SYS_TYPES_H
13489 # include <sys/types.h>
13490 #endif
13491 #include <netinet/in.h>
13492 #include <arpa/nameser.h>
13493 #include <resolv.h>
13494
13495 "
13496 if test "x$ac_cv_member_struct___res_state_retrans" = xyes; then :
13497
13498 else
13499
13500 $as_echo "#define __res_state state" >>confdefs.h
13501
13502 fi
13503
13504
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13506 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13507 if ${ac_cv_have_ss_family_in_struct_ss+:} false; then :
13508   $as_echo_n "(cached) " >&6
13509 else
13510
13511         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h.  */
13513
13514 #include <sys/types.h>
13515 #include <sys/socket.h>
13516
13517 int
13518 main ()
13519 {
13520  struct sockaddr_storage s; s.ss_family = 1;
13521   ;
13522   return 0;
13523 }
13524 _ACEOF
13525 if ac_fn_c_try_compile "$LINENO"; then :
13526    ac_cv_have_ss_family_in_struct_ss="yes"
13527 else
13528    ac_cv_have_ss_family_in_struct_ss="no"
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13534 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13535 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13536
13537 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13538
13539 fi
13540
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13542 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13543 if ${ac_cv_have___ss_family_in_struct_ss+:} false; then :
13544   $as_echo_n "(cached) " >&6
13545 else
13546
13547         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h.  */
13549
13550 #include <sys/types.h>
13551 #include <sys/socket.h>
13552
13553 int
13554 main ()
13555 {
13556  struct sockaddr_storage s; s.__ss_family = 1;
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 if ac_fn_c_try_compile "$LINENO"; then :
13562    ac_cv_have___ss_family_in_struct_ss="yes"
13563 else
13564    ac_cv_have___ss_family_in_struct_ss="no"
13565
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568
13569 fi
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13571 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
13572 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13573
13574 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
13575
13576 fi
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
13579 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
13580 if ${ac_cv_have_pw_class_in_struct_passwd+:} false; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583
13584         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h.  */
13586  #include <pwd.h>
13587 int
13588 main ()
13589 {
13590  struct passwd p; p.pw_class = 0;
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596    ac_cv_have_pw_class_in_struct_passwd="yes"
13597 else
13598    ac_cv_have_pw_class_in_struct_passwd="no"
13599
13600 fi
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13605 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
13606 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13607
13608 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
13609
13610 fi
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
13613 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
13614 if ${ac_cv_have_pw_expire_in_struct_passwd+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617
13618         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h.  */
13620  #include <pwd.h>
13621 int
13622 main ()
13623 {
13624  struct passwd p; p.pw_expire = 0;
13625   ;
13626   return 0;
13627 }
13628 _ACEOF
13629 if ac_fn_c_try_compile "$LINENO"; then :
13630    ac_cv_have_pw_expire_in_struct_passwd="yes"
13631 else
13632    ac_cv_have_pw_expire_in_struct_passwd="no"
13633
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636
13637 fi
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13639 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
13640 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13641
13642 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
13643
13644 fi
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
13647 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
13648 if ${ac_cv_have_pw_change_in_struct_passwd+:} false; then :
13649   $as_echo_n "(cached) " >&6
13650 else
13651
13652         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h.  */
13654  #include <pwd.h>
13655 int
13656 main ()
13657 {
13658  struct passwd p; p.pw_change = 0;
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_c_try_compile "$LINENO"; then :
13664    ac_cv_have_pw_change_in_struct_passwd="yes"
13665 else
13666    ac_cv_have_pw_change_in_struct_passwd="no"
13667
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13670
13671 fi
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13673 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
13674 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13675
13676 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
13677
13678 fi
13679
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13681 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
13682 if ${ac_cv_have_accrights_in_msghdr+:} false; then :
13683   $as_echo_n "(cached) " >&6
13684 else
13685
13686         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h.  */
13688
13689 #include <sys/types.h>
13690 #include <sys/socket.h>
13691 #include <sys/uio.h>
13692
13693 int
13694 main ()
13695 {
13696
13697 #ifdef msg_accrights
13698 #error "msg_accrights is a macro"
13699 exit(1);
13700 #endif
13701 struct msghdr m;
13702 m.msg_accrights = 0;
13703 exit(0);
13704
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 if ac_fn_c_try_compile "$LINENO"; then :
13710    ac_cv_have_accrights_in_msghdr="yes"
13711 else
13712    ac_cv_have_accrights_in_msghdr="no"
13713
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716
13717 fi
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13719 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
13720 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13721
13722 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13723
13724 fi
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
13727 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h.  */
13730
13731 #include <sys/types.h>
13732 #include <sys/stat.h>
13733 #ifdef HAVE_SYS_TIME_H
13734 # include <sys/time.h>
13735 #endif
13736 #ifdef HAVE_SYS_MOUNT_H
13737 #include <sys/mount.h>
13738 #endif
13739 #ifdef HAVE_SYS_STATVFS_H
13740 #include <sys/statvfs.h>
13741 #endif
13742
13743 int
13744 main ()
13745 {
13746  struct statvfs s; s.f_fsid = 0;
13747   ;
13748   return 0;
13749 }
13750 _ACEOF
13751 if ac_fn_c_try_compile "$LINENO"; then :
13752    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13753 $as_echo "yes" >&6; }
13754 else
13755    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13757
13758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
13759 $as_echo_n "checking if fsid_t has member val... " >&6; }
13760         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h.  */
13762
13763 #include <sys/types.h>
13764 #include <sys/statvfs.h>
13765
13766 int
13767 main ()
13768 {
13769  fsid_t t; t.val[0] = 0;
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13776 $as_echo "yes" >&6; }
13777
13778 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
13779
13780 else
13781    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785
13786         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
13787 $as_echo_n "checking if f_fsid has member __val... " >&6; }
13788         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h.  */
13790
13791 #include <sys/types.h>
13792 #include <sys/statvfs.h>
13793
13794 int
13795 main ()
13796 {
13797  fsid_t t; t.__val[0] = 0;
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 if ac_fn_c_try_compile "$LINENO"; then :
13803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13804 $as_echo "yes" >&6; }
13805
13806 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
13807
13808 else
13809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 $as_echo "no" >&6; }
13811 fi
13812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13818 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
13819 if ${ac_cv_have_control_in_msghdr+:} false; then :
13820   $as_echo_n "(cached) " >&6
13821 else
13822
13823         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h.  */
13825
13826 #include <sys/types.h>
13827 #include <sys/socket.h>
13828 #include <sys/uio.h>
13829
13830 int
13831 main ()
13832 {
13833
13834 #ifdef msg_control
13835 #error "msg_control is a macro"
13836 exit(1);
13837 #endif
13838 struct msghdr m;
13839 m.msg_control = 0;
13840 exit(0);
13841
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 if ac_fn_c_try_compile "$LINENO"; then :
13847    ac_cv_have_control_in_msghdr="yes"
13848 else
13849    ac_cv_have_control_in_msghdr="no"
13850
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853
13854 fi
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13856 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
13857 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13858
13859 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13860
13861 fi
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13864 $as_echo_n "checking if libc defines __progname... " >&6; }
13865 if ${ac_cv_libc_defines___progname+:} false; then :
13866   $as_echo_n "(cached) " >&6
13867 else
13868
13869         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h.  */
13871
13872 int
13873 main ()
13874 {
13875  extern char *__progname; printf("%s", __progname);
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_c_try_link "$LINENO"; then :
13881    ac_cv_libc_defines___progname="yes"
13882 else
13883    ac_cv_libc_defines___progname="no"
13884
13885 fi
13886 rm -f core conftest.err conftest.$ac_objext \
13887     conftest$ac_exeext conftest.$ac_ext
13888
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13891 $as_echo "$ac_cv_libc_defines___progname" >&6; }
13892 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13893
13894 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13895
13896 fi
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13899 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
13900 if ${ac_cv_cc_implements___FUNCTION__+:} false; then :
13901   $as_echo_n "(cached) " >&6
13902 else
13903
13904         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h.  */
13906  #include <stdio.h>
13907 int
13908 main ()
13909 {
13910  printf("%s", __FUNCTION__);
13911   ;
13912   return 0;
13913 }
13914 _ACEOF
13915 if ac_fn_c_try_link "$LINENO"; then :
13916    ac_cv_cc_implements___FUNCTION__="yes"
13917 else
13918    ac_cv_cc_implements___FUNCTION__="no"
13919
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext \
13922     conftest$ac_exeext conftest.$ac_ext
13923
13924 fi
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13926 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
13927 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13928
13929 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13930
13931 fi
13932
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13934 $as_echo_n "checking whether $CC implements __func__... " >&6; }
13935 if ${ac_cv_cc_implements___func__+:} false; then :
13936   $as_echo_n "(cached) " >&6
13937 else
13938
13939         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h.  */
13941  #include <stdio.h>
13942 int
13943 main ()
13944 {
13945  printf("%s", __func__);
13946   ;
13947   return 0;
13948 }
13949 _ACEOF
13950 if ac_fn_c_try_link "$LINENO"; then :
13951    ac_cv_cc_implements___func__="yes"
13952 else
13953    ac_cv_cc_implements___func__="no"
13954
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957     conftest$ac_exeext conftest.$ac_ext
13958
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
13961 $as_echo "$ac_cv_cc_implements___func__" >&6; }
13962 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
13963
13964 $as_echo "#define HAVE___func__ 1" >>confdefs.h
13965
13966 fi
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
13969 $as_echo_n "checking whether va_copy exists... " >&6; }
13970 if ${ac_cv_have_va_copy+:} false; then :
13971   $as_echo_n "(cached) " >&6
13972 else
13973
13974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h.  */
13976
13977 #include <stdarg.h>
13978 va_list x,y;
13979
13980 int
13981 main ()
13982 {
13983  va_copy(x,y);
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 if ac_fn_c_try_link "$LINENO"; then :
13989    ac_cv_have_va_copy="yes"
13990 else
13991    ac_cv_have_va_copy="no"
13992
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext \
13995     conftest$ac_exeext conftest.$ac_ext
13996
13997 fi
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
13999 $as_echo "$ac_cv_have_va_copy" >&6; }
14000 if test "x$ac_cv_have_va_copy" = "xyes" ; then
14001
14002 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14003
14004 fi
14005
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
14007 $as_echo_n "checking whether __va_copy exists... " >&6; }
14008 if ${ac_cv_have___va_copy+:} false; then :
14009   $as_echo_n "(cached) " >&6
14010 else
14011
14012         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h.  */
14014
14015 #include <stdarg.h>
14016 va_list x,y;
14017
14018 int
14019 main ()
14020 {
14021  __va_copy(x,y);
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14027    ac_cv_have___va_copy="yes"
14028 else
14029    ac_cv_have___va_copy="no"
14030
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext \
14033     conftest$ac_exeext conftest.$ac_ext
14034
14035 fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14037 $as_echo "$ac_cv_have___va_copy" >&6; }
14038 if test "x$ac_cv_have___va_copy" = "xyes" ; then
14039
14040 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14041
14042 fi
14043
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14045 $as_echo_n "checking whether getopt has optreset support... " >&6; }
14046 if ${ac_cv_have_getopt_optreset+:} false; then :
14047   $as_echo_n "(cached) " >&6
14048 else
14049
14050         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h.  */
14052  #include <getopt.h>
14053 int
14054 main ()
14055 {
14056  extern int optreset; optreset = 0;
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 if ac_fn_c_try_link "$LINENO"; then :
14062    ac_cv_have_getopt_optreset="yes"
14063 else
14064    ac_cv_have_getopt_optreset="no"
14065
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext \
14068     conftest$ac_exeext conftest.$ac_ext
14069
14070 fi
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14072 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
14073 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14074
14075 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14076
14077 fi
14078
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14080 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
14081 if ${ac_cv_libc_defines_sys_errlist+:} false; then :
14082   $as_echo_n "(cached) " >&6
14083 else
14084
14085         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h.  */
14087
14088 int
14089 main ()
14090 {
14091  extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14092   ;
14093   return 0;
14094 }
14095 _ACEOF
14096 if ac_fn_c_try_link "$LINENO"; then :
14097    ac_cv_libc_defines_sys_errlist="yes"
14098 else
14099    ac_cv_libc_defines_sys_errlist="no"
14100
14101 fi
14102 rm -f core conftest.err conftest.$ac_objext \
14103     conftest$ac_exeext conftest.$ac_ext
14104
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14107 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14108 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14109
14110 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14111
14112 fi
14113
14114
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14116 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
14117 if ${ac_cv_libc_defines_sys_nerr+:} false; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120
14121         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h.  */
14123
14124 int
14125 main ()
14126 {
14127  extern int sys_nerr; printf("%i", sys_nerr);
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"; then :
14133    ac_cv_libc_defines_sys_nerr="yes"
14134 else
14135    ac_cv_libc_defines_sys_nerr="no"
14136
14137 fi
14138 rm -f core conftest.err conftest.$ac_objext \
14139     conftest$ac_exeext conftest.$ac_ext
14140
14141 fi
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14143 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14144 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14145
14146 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14147
14148 fi
14149
14150 # Check libraries needed by DNS fingerprint support
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14152 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14153 if ${ac_cv_search_getrrsetbyname+:} false; then :
14154   $as_echo_n "(cached) " >&6
14155 else
14156   ac_func_search_save_LIBS=$LIBS
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h.  */
14159
14160 /* Override any GCC internal prototype to avoid an error.
14161    Use char because int might match the return type of a GCC
14162    builtin and then its argument prototype would still apply.  */
14163 #ifdef __cplusplus
14164 extern "C"
14165 #endif
14166 char getrrsetbyname ();
14167 int
14168 main ()
14169 {
14170 return getrrsetbyname ();
14171   ;
14172   return 0;
14173 }
14174 _ACEOF
14175 for ac_lib in '' resolv; do
14176   if test -z "$ac_lib"; then
14177     ac_res="none required"
14178   else
14179     ac_res=-l$ac_lib
14180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14181   fi
14182   if ac_fn_c_try_link "$LINENO"; then :
14183   ac_cv_search_getrrsetbyname=$ac_res
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext \
14186     conftest$ac_exeext
14187   if ${ac_cv_search_getrrsetbyname+:} false; then :
14188   break
14189 fi
14190 done
14191 if ${ac_cv_search_getrrsetbyname+:} false; then :
14192
14193 else
14194   ac_cv_search_getrrsetbyname=no
14195 fi
14196 rm conftest.$ac_ext
14197 LIBS=$ac_func_search_save_LIBS
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14200 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14201 ac_res=$ac_cv_search_getrrsetbyname
14202 if test "$ac_res" != no; then :
14203   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14204
14205 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14206
14207 else
14208
14209                 # Needed by our getrrsetbyname()
14210                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14211 $as_echo_n "checking for library containing res_query... " >&6; }
14212 if ${ac_cv_search_res_query+:} false; then :
14213   $as_echo_n "(cached) " >&6
14214 else
14215   ac_func_search_save_LIBS=$LIBS
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h.  */
14218
14219 /* Override any GCC internal prototype to avoid an error.
14220    Use char because int might match the return type of a GCC
14221    builtin and then its argument prototype would still apply.  */
14222 #ifdef __cplusplus
14223 extern "C"
14224 #endif
14225 char res_query ();
14226 int
14227 main ()
14228 {
14229 return res_query ();
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 for ac_lib in '' resolv; do
14235   if test -z "$ac_lib"; then
14236     ac_res="none required"
14237   else
14238     ac_res=-l$ac_lib
14239     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14240   fi
14241   if ac_fn_c_try_link "$LINENO"; then :
14242   ac_cv_search_res_query=$ac_res
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext \
14245     conftest$ac_exeext
14246   if ${ac_cv_search_res_query+:} false; then :
14247   break
14248 fi
14249 done
14250 if ${ac_cv_search_res_query+:} false; then :
14251
14252 else
14253   ac_cv_search_res_query=no
14254 fi
14255 rm conftest.$ac_ext
14256 LIBS=$ac_func_search_save_LIBS
14257 fi
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14259 $as_echo "$ac_cv_search_res_query" >&6; }
14260 ac_res=$ac_cv_search_res_query
14261 if test "$ac_res" != no; then :
14262   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14263
14264 fi
14265
14266                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14267 $as_echo_n "checking for library containing dn_expand... " >&6; }
14268 if ${ac_cv_search_dn_expand+:} false; then :
14269   $as_echo_n "(cached) " >&6
14270 else
14271   ac_func_search_save_LIBS=$LIBS
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h.  */
14274
14275 /* Override any GCC internal prototype to avoid an error.
14276    Use char because int might match the return type of a GCC
14277    builtin and then its argument prototype would still apply.  */
14278 #ifdef __cplusplus
14279 extern "C"
14280 #endif
14281 char dn_expand ();
14282 int
14283 main ()
14284 {
14285 return dn_expand ();
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 for ac_lib in '' resolv; do
14291   if test -z "$ac_lib"; then
14292     ac_res="none required"
14293   else
14294     ac_res=-l$ac_lib
14295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14296   fi
14297   if ac_fn_c_try_link "$LINENO"; then :
14298   ac_cv_search_dn_expand=$ac_res
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext \
14301     conftest$ac_exeext
14302   if ${ac_cv_search_dn_expand+:} false; then :
14303   break
14304 fi
14305 done
14306 if ${ac_cv_search_dn_expand+:} false; then :
14307
14308 else
14309   ac_cv_search_dn_expand=no
14310 fi
14311 rm conftest.$ac_ext
14312 LIBS=$ac_func_search_save_LIBS
14313 fi
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14315 $as_echo "$ac_cv_search_dn_expand" >&6; }
14316 ac_res=$ac_cv_search_dn_expand
14317 if test "$ac_res" != no; then :
14318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14319
14320 fi
14321
14322                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14323 $as_echo_n "checking if res_query will link... " >&6; }
14324                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h.  */
14326
14327 #include <sys/types.h>
14328 #include <netinet/in.h>
14329 #include <arpa/nameser.h>
14330 #include <netdb.h>
14331 #include <resolv.h>
14332
14333 int
14334 main ()
14335 {
14336
14337         res_query (0, 0, 0, 0, 0);
14338
14339   ;
14340   return 0;
14341 }
14342 _ACEOF
14343 if ac_fn_c_try_link "$LINENO"; then :
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14346 else
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14349                     saved_LIBS="$LIBS"
14350                     LIBS="$LIBS -lresolv"
14351                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14352 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14353                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h.  */
14355
14356 #include <sys/types.h>
14357 #include <netinet/in.h>
14358 #include <arpa/nameser.h>
14359 #include <netdb.h>
14360 #include <resolv.h>
14361
14362 int
14363 main ()
14364 {
14365
14366         res_query (0, 0, 0, 0, 0);
14367
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14374 $as_echo "yes" >&6; }
14375 else
14376   LIBS="$saved_LIBS"
14377                          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 $as_echo "no" >&6; }
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext \
14381     conftest$ac_exeext conftest.$ac_ext
14382
14383 fi
14384 rm -f core conftest.err conftest.$ac_objext \
14385     conftest$ac_exeext conftest.$ac_ext
14386                 for ac_func in _getshort _getlong
14387 do :
14388   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14389 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14390 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14391   cat >>confdefs.h <<_ACEOF
14392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14393 _ACEOF
14394
14395 fi
14396 done
14397
14398                 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14399                     #include <arpa/nameser.h>
14400 "
14401 if test "x$ac_cv_have_decl__getshort" = xyes; then :
14402   ac_have_decl=1
14403 else
14404   ac_have_decl=0
14405 fi
14406
14407 cat >>confdefs.h <<_ACEOF
14408 #define HAVE_DECL__GETSHORT $ac_have_decl
14409 _ACEOF
14410 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14411                     #include <arpa/nameser.h>
14412 "
14413 if test "x$ac_cv_have_decl__getlong" = xyes; then :
14414   ac_have_decl=1
14415 else
14416   ac_have_decl=0
14417 fi
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_DECL__GETLONG $ac_have_decl
14421 _ACEOF
14422
14423                 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14424 "
14425 if test "x$ac_cv_member_HEADER_ad" = xyes; then :
14426
14427 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14428
14429 fi
14430
14431
14432 fi
14433
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14436 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h.  */
14439
14440 #include <stdio.h>
14441 #if HAVE_SYS_TYPES_H
14442 # include <sys/types.h>
14443 #endif
14444 #include <netinet/in.h>
14445 #include <arpa/nameser.h>
14446 #include <resolv.h>
14447 extern struct __res_state _res;
14448
14449 int
14450 main ()
14451 {
14452
14453   ;
14454   return 0;
14455 }
14456 _ACEOF
14457 if ac_fn_c_try_link "$LINENO"; then :
14458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14459 $as_echo "yes" >&6; }
14460
14461 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14462
14463
14464 else
14465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 $as_echo "no" >&6; }
14467
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext \
14470     conftest$ac_exeext conftest.$ac_ext
14471
14472 # Check whether user wants SELinux support
14473 SELINUX_MSG="no"
14474 LIBSELINUX=""
14475
14476 # Check whether --with-selinux was given.
14477 if test "${with_selinux+set}" = set; then :
14478   withval=$with_selinux;  if test "x$withval" != "xno" ; then
14479                 save_LIBS="$LIBS"
14480
14481 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14482
14483                 SELINUX_MSG="yes"
14484                 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14485 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
14486
14487 else
14488   as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14489 fi
14490
14491
14492                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14493 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14494 if ${ac_cv_lib_selinux_setexeccon+:} false; then :
14495   $as_echo_n "(cached) " >&6
14496 else
14497   ac_check_lib_save_LIBS=$LIBS
14498 LIBS="-lselinux  $LIBS"
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h.  */
14501
14502 /* Override any GCC internal prototype to avoid an error.
14503    Use char because int might match the return type of a GCC
14504    builtin and then its argument prototype would still apply.  */
14505 #ifdef __cplusplus
14506 extern "C"
14507 #endif
14508 char setexeccon ();
14509 int
14510 main ()
14511 {
14512 return setexeccon ();
14513   ;
14514   return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_link "$LINENO"; then :
14518   ac_cv_lib_selinux_setexeccon=yes
14519 else
14520   ac_cv_lib_selinux_setexeccon=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext \
14523     conftest$ac_exeext conftest.$ac_ext
14524 LIBS=$ac_check_lib_save_LIBS
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14527 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14528 if test "x$ac_cv_lib_selinux_setexeccon" = xyes; then :
14529    LIBSELINUX="-lselinux"
14530                           LIBS="$LIBS -lselinux"
14531
14532 else
14533   as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14534 fi
14535
14536                 SSHLIBS="$SSHLIBS $LIBSELINUX"
14537                 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14538                 for ac_func in getseuserbyname get_default_context_with_level
14539 do :
14540   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14543   cat >>confdefs.h <<_ACEOF
14544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14545 _ACEOF
14546
14547 fi
14548 done
14549
14550                 LIBS="$save_LIBS"
14551         fi
14552
14553 fi
14554
14555
14556
14557
14558 # Check whether user wants Kerberos 5 support
14559 KRB5_MSG="no"
14560
14561 # Check whether --with-kerberos5 was given.
14562 if test "${with_kerberos5+set}" = set; then :
14563   withval=$with_kerberos5;  if test "x$withval" != "xno" ; then
14564                 if test "x$withval" = "xyes" ; then
14565                         KRB5ROOT="/usr/local"
14566                 else
14567                         KRB5ROOT=${withval}
14568                 fi
14569
14570
14571 $as_echo "#define KRB5 1" >>confdefs.h
14572
14573                 KRB5_MSG="yes"
14574
14575                 # Extract the first word of "krb5-config", so it can be a program name with args.
14576 set dummy krb5-config; ac_word=$2
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578 $as_echo_n "checking for $ac_word... " >&6; }
14579 if ${ac_cv_path_KRB5CONF+:} false; then :
14580   $as_echo_n "(cached) " >&6
14581 else
14582   case $KRB5CONF in
14583   [\\/]* | ?:[\\/]*)
14584   ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
14585   ;;
14586   *)
14587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588 as_dummy="$KRB5ROOT/bin:$PATH"
14589 for as_dir in $as_dummy
14590 do
14591   IFS=$as_save_IFS
14592   test -z "$as_dir" && as_dir=.
14593     for ac_exec_ext in '' $ac_executable_extensions; do
14594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14595     ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
14596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14597     break 2
14598   fi
14599 done
14600   done
14601 IFS=$as_save_IFS
14602
14603   test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
14604   ;;
14605 esac
14606 fi
14607 KRB5CONF=$ac_cv_path_KRB5CONF
14608 if test -n "$KRB5CONF"; then
14609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
14610 $as_echo "$KRB5CONF" >&6; }
14611 else
14612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14613 $as_echo "no" >&6; }
14614 fi
14615
14616
14617                 if test -x $KRB5CONF ; then
14618
14619                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
14620 $as_echo_n "checking for gssapi support... " >&6; }
14621                         if $KRB5CONF | grep gssapi >/dev/null ; then
14622                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14623 $as_echo "yes" >&6; }
14624
14625 $as_echo "#define GSSAPI 1" >>confdefs.h
14626
14627                                 k5confopts=gssapi
14628                         else
14629                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14631                                 k5confopts=""
14632                         fi
14633                         K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
14634                         K5LIBS="`$KRB5CONF --libs $k5confopts`"
14635                         CPPFLAGS="$CPPFLAGS $K5CFLAGS"
14636                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14637 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14638                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h.  */
14640  #include <krb5.h>
14641
14642 int
14643 main ()
14644 {
14645  char *tmp = heimdal_version;
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 if ac_fn_c_try_compile "$LINENO"; then :
14651    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14653
14654 $as_echo "#define HEIMDAL 1" >>confdefs.h
14655
14656 else
14657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14658 $as_echo "no" >&6; }
14659
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662                 else
14663                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14664                         LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14665                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14666 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14667                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h.  */
14669  #include <krb5.h>
14670
14671 int
14672 main ()
14673 {
14674  char *tmp = heimdal_version;
14675   ;
14676   return 0;
14677 }
14678 _ACEOF
14679 if ac_fn_c_try_compile "$LINENO"; then :
14680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14681 $as_echo "yes" >&6; }
14682                                          $as_echo "#define HEIMDAL 1" >>confdefs.h
14683
14684                                          K5LIBS="-lkrb5"
14685                                          K5LIBS="$K5LIBS -lcom_err -lasn1"
14686                                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
14687 $as_echo_n "checking for net_write in -lroken... " >&6; }
14688 if ${ac_cv_lib_roken_net_write+:} false; then :
14689   $as_echo_n "(cached) " >&6
14690 else
14691   ac_check_lib_save_LIBS=$LIBS
14692 LIBS="-lroken  $LIBS"
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h.  */
14695
14696 /* Override any GCC internal prototype to avoid an error.
14697    Use char because int might match the return type of a GCC
14698    builtin and then its argument prototype would still apply.  */
14699 #ifdef __cplusplus
14700 extern "C"
14701 #endif
14702 char net_write ();
14703 int
14704 main ()
14705 {
14706 return net_write ();
14707   ;
14708   return 0;
14709 }
14710 _ACEOF
14711 if ac_fn_c_try_link "$LINENO"; then :
14712   ac_cv_lib_roken_net_write=yes
14713 else
14714   ac_cv_lib_roken_net_write=no
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext \
14717     conftest$ac_exeext conftest.$ac_ext
14718 LIBS=$ac_check_lib_save_LIBS
14719 fi
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
14721 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
14722 if test "x$ac_cv_lib_roken_net_write" = xyes; then :
14723   K5LIBS="$K5LIBS -lroken"
14724 fi
14725
14726                                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14727 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14728 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
14729   $as_echo_n "(cached) " >&6
14730 else
14731   ac_check_lib_save_LIBS=$LIBS
14732 LIBS="-ldes  $LIBS"
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h.  */
14735
14736 /* Override any GCC internal prototype to avoid an error.
14737    Use char because int might match the return type of a GCC
14738    builtin and then its argument prototype would still apply.  */
14739 #ifdef __cplusplus
14740 extern "C"
14741 #endif
14742 char des_cbc_encrypt ();
14743 int
14744 main ()
14745 {
14746 return des_cbc_encrypt ();
14747   ;
14748   return 0;
14749 }
14750 _ACEOF
14751 if ac_fn_c_try_link "$LINENO"; then :
14752   ac_cv_lib_des_des_cbc_encrypt=yes
14753 else
14754   ac_cv_lib_des_des_cbc_encrypt=no
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext \
14757     conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14761 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14762 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
14763   K5LIBS="$K5LIBS -ldes"
14764 fi
14765
14766
14767 else
14768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769 $as_echo "no" >&6; }
14770                                          K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14771
14772
14773 fi
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14776 $as_echo_n "checking for library containing dn_expand... " >&6; }
14777 if ${ac_cv_search_dn_expand+:} false; then :
14778   $as_echo_n "(cached) " >&6
14779 else
14780   ac_func_search_save_LIBS=$LIBS
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h.  */
14783
14784 /* Override any GCC internal prototype to avoid an error.
14785    Use char because int might match the return type of a GCC
14786    builtin and then its argument prototype would still apply.  */
14787 #ifdef __cplusplus
14788 extern "C"
14789 #endif
14790 char dn_expand ();
14791 int
14792 main ()
14793 {
14794 return dn_expand ();
14795   ;
14796   return 0;
14797 }
14798 _ACEOF
14799 for ac_lib in '' resolv; do
14800   if test -z "$ac_lib"; then
14801     ac_res="none required"
14802   else
14803     ac_res=-l$ac_lib
14804     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14805   fi
14806   if ac_fn_c_try_link "$LINENO"; then :
14807   ac_cv_search_dn_expand=$ac_res
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext \
14810     conftest$ac_exeext
14811   if ${ac_cv_search_dn_expand+:} false; then :
14812   break
14813 fi
14814 done
14815 if ${ac_cv_search_dn_expand+:} false; then :
14816
14817 else
14818   ac_cv_search_dn_expand=no
14819 fi
14820 rm conftest.$ac_ext
14821 LIBS=$ac_func_search_save_LIBS
14822 fi
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14824 $as_echo "$ac_cv_search_dn_expand" >&6; }
14825 ac_res=$ac_cv_search_dn_expand
14826 if test "$ac_res" != no; then :
14827   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14828
14829 fi
14830
14831
14832                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14833 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
14834 if ${ac_cv_lib_gssapi_krb5_gss_init_sec_context+:} false; then :
14835   $as_echo_n "(cached) " >&6
14836 else
14837   ac_check_lib_save_LIBS=$LIBS
14838 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841
14842 /* Override any GCC internal prototype to avoid an error.
14843    Use char because int might match the return type of a GCC
14844    builtin and then its argument prototype would still apply.  */
14845 #ifdef __cplusplus
14846 extern "C"
14847 #endif
14848 char gss_init_sec_context ();
14849 int
14850 main ()
14851 {
14852 return gss_init_sec_context ();
14853   ;
14854   return 0;
14855 }
14856 _ACEOF
14857 if ac_fn_c_try_link "$LINENO"; then :
14858   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14859 else
14860   ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext \
14863     conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14867 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14868 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = xyes; then :
14869    $as_echo "#define GSSAPI 1" >>confdefs.h
14870
14871                                   K5LIBS="-lgssapi_krb5 $K5LIBS"
14872 else
14873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
14874 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
14875 if ${ac_cv_lib_gssapi_gss_init_sec_context+:} false; then :
14876   $as_echo_n "(cached) " >&6
14877 else
14878   ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lgssapi $K5LIBS $LIBS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h.  */
14882
14883 /* Override any GCC internal prototype to avoid an error.
14884    Use char because int might match the return type of a GCC
14885    builtin and then its argument prototype would still apply.  */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 char gss_init_sec_context ();
14890 int
14891 main ()
14892 {
14893 return gss_init_sec_context ();
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899   ac_cv_lib_gssapi_gss_init_sec_context=yes
14900 else
14901   ac_cv_lib_gssapi_gss_init_sec_context=no
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext \
14904     conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14906 fi
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14908 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14909 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = xyes; then :
14910    $as_echo "#define GSSAPI 1" >>confdefs.h
14911
14912                                           K5LIBS="-lgssapi $K5LIBS"
14913 else
14914   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14915 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14916 fi
14917
14918
14919 fi
14920
14921
14922                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14923 if test "x$ac_cv_header_gssapi_h" = xyes; then :
14924
14925 else
14926    unset ac_cv_header_gssapi_h
14927                                   CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14928                                   for ac_header in gssapi.h
14929 do :
14930   ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14931 if test "x$ac_cv_header_gssapi_h" = xyes; then :
14932   cat >>confdefs.h <<_ACEOF
14933 #define HAVE_GSSAPI_H 1
14934 _ACEOF
14935
14936 else
14937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
14938 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
14939
14940 fi
14941
14942 done
14943
14944
14945
14946 fi
14947
14948
14949
14950                         oldCPP="$CPPFLAGS"
14951                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14952                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
14953 if test "x$ac_cv_header_gssapi_krb5_h" = xyes; then :
14954
14955 else
14956    CPPFLAGS="$oldCPP"
14957 fi
14958
14959
14960
14961                 fi
14962                 if test ! -z "$need_dash_r" ; then
14963                         LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14964                 fi
14965                 if test ! -z "$blibpath" ; then
14966                         blibpath="$blibpath:${KRB5ROOT}/lib"
14967                 fi
14968
14969                 for ac_header in gssapi.h gssapi/gssapi.h
14970 do :
14971   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14973 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14974   cat >>confdefs.h <<_ACEOF
14975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14976 _ACEOF
14977
14978 fi
14979
14980 done
14981
14982                 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
14983 do :
14984   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14987   cat >>confdefs.h <<_ACEOF
14988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14989 _ACEOF
14990
14991 fi
14992
14993 done
14994
14995                 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
14996 do :
14997   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14998 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15000   cat >>confdefs.h <<_ACEOF
15001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15002 _ACEOF
15003
15004 fi
15005
15006 done
15007
15008
15009                 LIBS="$LIBS $K5LIBS"
15010                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15011 $as_echo_n "checking for library containing k_hasafs... " >&6; }
15012 if ${ac_cv_search_k_hasafs+:} false; then :
15013   $as_echo_n "(cached) " >&6
15014 else
15015   ac_func_search_save_LIBS=$LIBS
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h.  */
15018
15019 /* Override any GCC internal prototype to avoid an error.
15020    Use char because int might match the return type of a GCC
15021    builtin and then its argument prototype would still apply.  */
15022 #ifdef __cplusplus
15023 extern "C"
15024 #endif
15025 char k_hasafs ();
15026 int
15027 main ()
15028 {
15029 return k_hasafs ();
15030   ;
15031   return 0;
15032 }
15033 _ACEOF
15034 for ac_lib in '' kafs; do
15035   if test -z "$ac_lib"; then
15036     ac_res="none required"
15037   else
15038     ac_res=-l$ac_lib
15039     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15040   fi
15041   if ac_fn_c_try_link "$LINENO"; then :
15042   ac_cv_search_k_hasafs=$ac_res
15043 fi
15044 rm -f core conftest.err conftest.$ac_objext \
15045     conftest$ac_exeext
15046   if ${ac_cv_search_k_hasafs+:} false; then :
15047   break
15048 fi
15049 done
15050 if ${ac_cv_search_k_hasafs+:} false; then :
15051
15052 else
15053   ac_cv_search_k_hasafs=no
15054 fi
15055 rm conftest.$ac_ext
15056 LIBS=$ac_func_search_save_LIBS
15057 fi
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15059 $as_echo "$ac_cv_search_k_hasafs" >&6; }
15060 ac_res=$ac_cv_search_k_hasafs
15061 if test "$ac_res" != no; then :
15062   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15063
15064 $as_echo "#define USE_AFS 1" >>confdefs.h
15065
15066 fi
15067
15068         fi
15069
15070
15071 fi
15072
15073
15074 # Looking for programs, paths and files
15075
15076 PRIVSEP_PATH=/var/empty
15077
15078 # Check whether --with-privsep-path was given.
15079 if test "${with_privsep_path+set}" = set; then :
15080   withval=$with_privsep_path;
15081                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15082                     test "x${withval}" != "xyes"; then
15083                         PRIVSEP_PATH=$withval
15084                 fi
15085
15086
15087 fi
15088
15089
15090
15091
15092 # Check whether --with-xauth was given.
15093 if test "${with_xauth+set}" = set; then :
15094   withval=$with_xauth;
15095                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15096                     test "x${withval}" != "xyes"; then
15097                         xauth_path=$withval
15098                 fi
15099
15100 else
15101
15102                 TestPath="$PATH"
15103                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15104                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15105                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15106                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15107                 # Extract the first word of "xauth", so it can be a program name with args.
15108 set dummy xauth; ac_word=$2
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15110 $as_echo_n "checking for $ac_word... " >&6; }
15111 if ${ac_cv_path_xauth_path+:} false; then :
15112   $as_echo_n "(cached) " >&6
15113 else
15114   case $xauth_path in
15115   [\\/]* | ?:[\\/]*)
15116   ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15117   ;;
15118   *)
15119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $TestPath
15121 do
15122   IFS=$as_save_IFS
15123   test -z "$as_dir" && as_dir=.
15124     for ac_exec_ext in '' $ac_executable_extensions; do
15125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15126     ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15128     break 2
15129   fi
15130 done
15131   done
15132 IFS=$as_save_IFS
15133
15134   ;;
15135 esac
15136 fi
15137 xauth_path=$ac_cv_path_xauth_path
15138 if test -n "$xauth_path"; then
15139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15140 $as_echo "$xauth_path" >&6; }
15141 else
15142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15143 $as_echo "no" >&6; }
15144 fi
15145
15146
15147                 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15148                         xauth_path="/usr/openwin/bin/xauth"
15149                 fi
15150
15151
15152 fi
15153
15154
15155 STRIP_OPT=-s
15156 # Check whether --enable-strip was given.
15157 if test "${enable_strip+set}" = set; then :
15158   enableval=$enable_strip;
15159                 if test "x$enableval" = "xno" ; then
15160                         STRIP_OPT=
15161                 fi
15162
15163
15164 fi
15165
15166
15167
15168 if test -z "$xauth_path" ; then
15169         XAUTH_PATH="undefined"
15170
15171 else
15172
15173 cat >>confdefs.h <<_ACEOF
15174 #define XAUTH_PATH "$xauth_path"
15175 _ACEOF
15176
15177         XAUTH_PATH=$xauth_path
15178
15179 fi
15180
15181 # Check for mail directory
15182
15183 # Check whether --with-maildir was given.
15184 if test "${with_maildir+set}" = set; then :
15185   withval=$with_maildir;
15186         if test "X$withval" != X  &&  test "x$withval" != xno  &&  \
15187             test "x${withval}" != xyes; then
15188
15189 cat >>confdefs.h <<_ACEOF
15190 #define MAIL_DIRECTORY "$withval"
15191 _ACEOF
15192
15193             fi
15194
15195 else
15196
15197         if test "X$maildir" != "X"; then
15198             cat >>confdefs.h <<_ACEOF
15199 #define MAIL_DIRECTORY "$maildir"
15200 _ACEOF
15201
15202         else
15203             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
15204 $as_echo_n "checking Discovering system mail directory... " >&6; }
15205             if test "$cross_compiling" = yes; then :
15206
15207                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
15208 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
15209
15210
15211 else
15212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h.  */
15214
15215 #include <stdio.h>
15216 #include <string.h>
15217 #ifdef HAVE_PATHS_H
15218 #include <paths.h>
15219 #endif
15220 #ifdef HAVE_MAILLOCK_H
15221 #include <maillock.h>
15222 #endif
15223 #define DATA "conftest.maildir"
15224
15225 int
15226 main ()
15227 {
15228
15229         FILE *fd;
15230         int rc;
15231
15232         fd = fopen(DATA,"w");
15233         if(fd == NULL)
15234                 exit(1);
15235
15236 #if defined (_PATH_MAILDIR)
15237         if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
15238                 exit(1);
15239 #elif defined (MAILDIR)
15240         if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
15241                 exit(1);
15242 #elif defined (_PATH_MAIL)
15243         if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
15244                 exit(1);
15245 #else
15246         exit (2);
15247 #endif
15248
15249         exit(0);
15250
15251   ;
15252   return 0;
15253 }
15254 _ACEOF
15255 if ac_fn_c_try_run "$LINENO"; then :
15256
15257                     maildir_what=`awk -F: '{print $1}' conftest.maildir`
15258                     maildir=`awk -F: '{print $2}' conftest.maildir \
15259                         | sed 's|/$||'`
15260                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
15261 $as_echo "Using: $maildir from $maildir_what" >&6; }
15262                     if test "x$maildir_what" != "x_PATH_MAILDIR"; then
15263                         cat >>confdefs.h <<_ACEOF
15264 #define MAIL_DIRECTORY "$maildir"
15265 _ACEOF
15266
15267                     fi
15268
15269 else
15270
15271                     if test "X$ac_status" = "X2";then
15272 # our test program didn't find it. Default to /var/spool/mail
15273                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
15274 $as_echo "Using: default value of /var/spool/mail" >&6; }
15275                         cat >>confdefs.h <<_ACEOF
15276 #define MAIL_DIRECTORY "/var/spool/mail"
15277 _ACEOF
15278
15279                      else
15280                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
15281 $as_echo "*** not found ***" >&6; }
15282                      fi
15283
15284 fi
15285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15286   conftest.$ac_objext conftest.beam conftest.$ac_ext
15287 fi
15288
15289         fi
15290
15291
15292 fi
15293  # maildir
15294
15295 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15296         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15297 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15298         disable_ptmx_check=yes
15299 fi
15300 if test -z "$no_dev_ptmx" ; then
15301         if test "x$disable_ptmx_check" != "xyes" ; then
15302                 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15304 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15305 if eval \${$as_ac_File+:} false; then :
15306   $as_echo_n "(cached) " >&6
15307 else
15308   test "$cross_compiling" = yes &&
15309   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15310 if test -r ""/dev/ptmx""; then
15311   eval "$as_ac_File=yes"
15312 else
15313   eval "$as_ac_File=no"
15314 fi
15315 fi
15316 eval ac_res=\$$as_ac_File
15317                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15318 $as_echo "$ac_res" >&6; }
15319 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15320
15321
15322 cat >>confdefs.h <<_ACEOF
15323 #define HAVE_DEV_PTMX 1
15324 _ACEOF
15325
15326                                 have_dev_ptmx=1
15327
15328
15329 fi
15330
15331         fi
15332 fi
15333
15334 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15335         as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15337 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15338 if eval \${$as_ac_File+:} false; then :
15339   $as_echo_n "(cached) " >&6
15340 else
15341   test "$cross_compiling" = yes &&
15342   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15343 if test -r ""/dev/ptc""; then
15344   eval "$as_ac_File=yes"
15345 else
15346   eval "$as_ac_File=no"
15347 fi
15348 fi
15349 eval ac_res=\$$as_ac_File
15350                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15351 $as_echo "$ac_res" >&6; }
15352 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15353
15354
15355 cat >>confdefs.h <<_ACEOF
15356 #define HAVE_DEV_PTS_AND_PTC 1
15357 _ACEOF
15358
15359                         have_dev_ptc=1
15360
15361
15362 fi
15363
15364 else
15365         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15366 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15367 fi
15368
15369 # Options from here on. Some of these are preset by platform above
15370
15371 # Check whether --with-mantype was given.
15372 if test "${with_mantype+set}" = set; then :
15373   withval=$with_mantype;
15374                 case "$withval" in
15375                 man|cat|doc)
15376                         MANTYPE=$withval
15377                         ;;
15378                 *)
15379                         as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15380                         ;;
15381                 esac
15382
15383
15384 fi
15385
15386 if test -z "$MANTYPE"; then
15387         TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15388         for ac_prog in nroff awf
15389 do
15390   # Extract the first word of "$ac_prog", so it can be a program name with args.
15391 set dummy $ac_prog; ac_word=$2
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15393 $as_echo_n "checking for $ac_word... " >&6; }
15394 if ${ac_cv_path_NROFF+:} false; then :
15395   $as_echo_n "(cached) " >&6
15396 else
15397   case $NROFF in
15398   [\\/]* | ?:[\\/]*)
15399   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15400   ;;
15401   *)
15402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15403 for as_dir in $TestPath
15404 do
15405   IFS=$as_save_IFS
15406   test -z "$as_dir" && as_dir=.
15407     for ac_exec_ext in '' $ac_executable_extensions; do
15408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15409     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15411     break 2
15412   fi
15413 done
15414   done
15415 IFS=$as_save_IFS
15416
15417   ;;
15418 esac
15419 fi
15420 NROFF=$ac_cv_path_NROFF
15421 if test -n "$NROFF"; then
15422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15423 $as_echo "$NROFF" >&6; }
15424 else
15425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15427 fi
15428
15429
15430   test -n "$NROFF" && break
15431 done
15432 test -n "$NROFF" || NROFF="/bin/false"
15433
15434         if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15435                 MANTYPE=doc
15436         elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15437                 MANTYPE=man
15438         else
15439                 MANTYPE=cat
15440         fi
15441 fi
15442
15443 if test "$MANTYPE" = "doc"; then
15444         mansubdir=man;
15445 else
15446         mansubdir=$MANTYPE;
15447 fi
15448
15449
15450 # Check whether to enable MD5 passwords
15451 MD5_MSG="no"
15452
15453 # Check whether --with-md5-passwords was given.
15454 if test "${with_md5_passwords+set}" = set; then :
15455   withval=$with_md5_passwords;
15456                 if test "x$withval" != "xno" ; then
15457
15458 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15459
15460                         MD5_MSG="yes"
15461                 fi
15462
15463
15464 fi
15465
15466
15467 # Whether to disable shadow password support
15468
15469 # Check whether --with-shadow was given.
15470 if test "${with_shadow+set}" = set; then :
15471   withval=$with_shadow;
15472                 if test "x$withval" = "xno" ; then
15473                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15474
15475                         disable_shadow=yes
15476                 fi
15477
15478
15479 fi
15480
15481
15482 if test -z "$disable_shadow" ; then
15483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15484 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15485         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h.  */
15487
15488 #include <sys/types.h>
15489 #include <shadow.h>
15490 struct spwd sp;
15491
15492 int
15493 main ()
15494 {
15495  sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 if ac_fn_c_try_compile "$LINENO"; then :
15501    sp_expire_available=yes
15502 fi
15503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504
15505         if test "x$sp_expire_available" = "xyes" ; then
15506                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15507 $as_echo "yes" >&6; }
15508
15509 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15510
15511         else
15512                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15513 $as_echo "no" >&6; }
15514         fi
15515 fi
15516
15517 # Use ip address instead of hostname in $DISPLAY
15518 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15519         DISPLAY_HACK_MSG="yes"
15520
15521 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15522
15523 else
15524         DISPLAY_HACK_MSG="no"
15525
15526 # Check whether --with-ipaddr-display was given.
15527 if test "${with_ipaddr_display+set}" = set; then :
15528   withval=$with_ipaddr_display;
15529                         if test "x$withval" != "xno" ; then
15530                                 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15531
15532                                 DISPLAY_HACK_MSG="yes"
15533                         fi
15534
15535
15536 fi
15537
15538 fi
15539
15540 # check for /etc/default/login and use it if present.
15541 # Check whether --enable-etc-default-login was given.
15542 if test "${enable_etc_default_login+set}" = set; then :
15543   enableval=$enable_etc_default_login;  if test "x$enableval" = "xno"; then
15544                 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15545 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15546                 etc_default_login=no
15547           else
15548                 etc_default_login=yes
15549           fi
15550 else
15551    if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15552           then
15553                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15554 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15555                 etc_default_login=no
15556           else
15557                 etc_default_login=yes
15558           fi
15559
15560 fi
15561
15562
15563 if test "x$etc_default_login" != "xno"; then
15564         as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15566 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15567 if eval \${$as_ac_File+:} false; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   test "$cross_compiling" = yes &&
15571   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15572 if test -r ""/etc/default/login""; then
15573   eval "$as_ac_File=yes"
15574 else
15575   eval "$as_ac_File=no"
15576 fi
15577 fi
15578 eval ac_res=\$$as_ac_File
15579                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15580 $as_echo "$ac_res" >&6; }
15581 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15582    external_path_file=/etc/default/login
15583 fi
15584
15585         if test "x$external_path_file" = "x/etc/default/login"; then
15586
15587 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15588
15589         fi
15590 fi
15591
15592 if test $ac_cv_func_login_getcapbool = "yes" && \
15593         test $ac_cv_header_login_cap_h = "yes" ; then
15594         external_path_file=/etc/login.conf
15595 fi
15596
15597 # Whether to mess with the default path
15598 SERVER_PATH_MSG="(default)"
15599
15600 # Check whether --with-default-path was given.
15601 if test "${with_default_path+set}" = set; then :
15602   withval=$with_default_path;
15603                 if test "x$external_path_file" = "x/etc/login.conf" ; then
15604                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15605 --with-default-path=PATH has no effect on this system.
15606 Edit /etc/login.conf instead." >&5
15607 $as_echo "$as_me: WARNING:
15608 --with-default-path=PATH has no effect on this system.
15609 Edit /etc/login.conf instead." >&2;}
15610                 elif test "x$withval" != "xno" ; then
15611                         if test ! -z "$external_path_file" ; then
15612                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15613 --with-default-path=PATH will only be used if PATH is not defined in
15614 $external_path_file ." >&5
15615 $as_echo "$as_me: WARNING:
15616 --with-default-path=PATH will only be used if PATH is not defined in
15617 $external_path_file ." >&2;}
15618                         fi
15619                         user_path="$withval"
15620                         SERVER_PATH_MSG="$withval"
15621                 fi
15622
15623 else
15624    if test "x$external_path_file" = "x/etc/login.conf" ; then
15625                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15626 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15627         else
15628                 if test ! -z "$external_path_file" ; then
15629                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15630 If PATH is defined in $external_path_file, ensure the path to scp is included,
15631 otherwise scp will not work." >&5
15632 $as_echo "$as_me: WARNING:
15633 If PATH is defined in $external_path_file, ensure the path to scp is included,
15634 otherwise scp will not work." >&2;}
15635                 fi
15636                 if test "$cross_compiling" = yes; then :
15637    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15638
15639 else
15640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15641 /* end confdefs.h.  */
15642
15643 /* find out what STDPATH is */
15644 #include <stdio.h>
15645 #ifdef HAVE_PATHS_H
15646 # include <paths.h>
15647 #endif
15648 #ifndef _PATH_STDPATH
15649 # ifdef _PATH_USERPATH  /* Irix */
15650 #  define _PATH_STDPATH _PATH_USERPATH
15651 # else
15652 #  define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15653 # endif
15654 #endif
15655 #include <sys/types.h>
15656 #include <sys/stat.h>
15657 #include <fcntl.h>
15658 #define DATA "conftest.stdpath"
15659
15660 int
15661 main ()
15662 {
15663
15664         FILE *fd;
15665         int rc;
15666
15667         fd = fopen(DATA,"w");
15668         if(fd == NULL)
15669                 exit(1);
15670
15671         if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15672                 exit(1);
15673
15674         exit(0);
15675
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 if ac_fn_c_try_run "$LINENO"; then :
15681    user_path=`cat conftest.stdpath`
15682 else
15683    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15684 fi
15685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15686   conftest.$ac_objext conftest.beam conftest.$ac_ext
15687 fi
15688
15689 # make sure $bindir is in USER_PATH so scp will work
15690                 t_bindir=`eval echo ${bindir}`
15691                 case $t_bindir in
15692                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15693                 esac
15694                 case $t_bindir in
15695                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15696                 esac
15697                 echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
15698                 if test $? -ne 0  ; then
15699                         echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
15700                         if test $? -ne 0  ; then
15701                                 user_path=$user_path:$t_bindir
15702                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15703 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
15704                         fi
15705                 fi
15706         fi
15707
15708 fi
15709
15710 if test "x$external_path_file" != "x/etc/login.conf" ; then
15711
15712 cat >>confdefs.h <<_ACEOF
15713 #define USER_PATH "$user_path"
15714 _ACEOF
15715
15716
15717 fi
15718
15719 # Set superuser path separately to user path
15720
15721 # Check whether --with-superuser-path was given.
15722 if test "${with_superuser_path+set}" = set; then :
15723   withval=$with_superuser_path;
15724                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15725                     test "x${withval}" != "xyes"; then
15726
15727 cat >>confdefs.h <<_ACEOF
15728 #define SUPERUSER_PATH "$withval"
15729 _ACEOF
15730
15731                         superuser_path=$withval
15732                 fi
15733
15734
15735 fi
15736
15737
15738
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15740 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
15741 IPV4_IN6_HACK_MSG="no"
15742
15743 # Check whether --with-4in6 was given.
15744 if test "${with_4in6+set}" = set; then :
15745   withval=$with_4in6;
15746                 if test "x$withval" != "xno" ; then
15747                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15748 $as_echo "yes" >&6; }
15749
15750 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15751
15752                         IPV4_IN6_HACK_MSG="yes"
15753                 else
15754                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15755 $as_echo "no" >&6; }
15756                 fi
15757
15758 else
15759
15760                 if test "x$inet6_default_4in6" = "xyes"; then
15761                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
15762 $as_echo "yes (default)" >&6; }
15763                         $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15764
15765                         IPV4_IN6_HACK_MSG="yes"
15766                 else
15767                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
15768 $as_echo "no (default)" >&6; }
15769                 fi
15770
15771
15772 fi
15773
15774
15775 # Whether to enable BSD auth support
15776 BSD_AUTH_MSG=no
15777
15778 # Check whether --with-bsd-auth was given.
15779 if test "${with_bsd_auth+set}" = set; then :
15780   withval=$with_bsd_auth;
15781                 if test "x$withval" != "xno" ; then
15782
15783 $as_echo "#define BSD_AUTH 1" >>confdefs.h
15784
15785                         BSD_AUTH_MSG=yes
15786                 fi
15787
15788
15789 fi
15790
15791
15792 # Where to place sshd.pid
15793 piddir=/var/run
15794 # make sure the directory exists
15795 if test ! -d $piddir ; then
15796         piddir=`eval echo ${sysconfdir}`
15797         case $piddir in
15798                 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15799         esac
15800 fi
15801
15802
15803 # Check whether --with-pid-dir was given.
15804 if test "${with_pid_dir+set}" = set; then :
15805   withval=$with_pid_dir;
15806                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15807                     test "x${withval}" != "xyes"; then
15808                         piddir=$withval
15809                         if test ! -d $piddir ; then
15810                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
15811 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15812                         fi
15813                 fi
15814
15815
15816 fi
15817
15818
15819
15820 cat >>confdefs.h <<_ACEOF
15821 #define _PATH_SSH_PIDDIR "$piddir"
15822 _ACEOF
15823
15824
15825
15826 # Check whether --enable-lastlog was given.
15827 if test "${enable_lastlog+set}" = set; then :
15828   enableval=$enable_lastlog;
15829                 if test "x$enableval" = "xno" ; then
15830                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15831
15832                 fi
15833
15834
15835 fi
15836
15837 # Check whether --enable-utmp was given.
15838 if test "${enable_utmp+set}" = set; then :
15839   enableval=$enable_utmp;
15840                 if test "x$enableval" = "xno" ; then
15841                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15842
15843                 fi
15844
15845
15846 fi
15847
15848 # Check whether --enable-utmpx was given.
15849 if test "${enable_utmpx+set}" = set; then :
15850   enableval=$enable_utmpx;
15851                 if test "x$enableval" = "xno" ; then
15852
15853 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15854
15855                 fi
15856
15857
15858 fi
15859
15860 # Check whether --enable-wtmp was given.
15861 if test "${enable_wtmp+set}" = set; then :
15862   enableval=$enable_wtmp;
15863                 if test "x$enableval" = "xno" ; then
15864                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15865
15866                 fi
15867
15868
15869 fi
15870
15871 # Check whether --enable-wtmpx was given.
15872 if test "${enable_wtmpx+set}" = set; then :
15873   enableval=$enable_wtmpx;
15874                 if test "x$enableval" = "xno" ; then
15875
15876 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
15877
15878                 fi
15879
15880
15881 fi
15882
15883 # Check whether --enable-libutil was given.
15884 if test "${enable_libutil+set}" = set; then :
15885   enableval=$enable_libutil;
15886                 if test "x$enableval" = "xno" ; then
15887                         $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
15888
15889                 fi
15890
15891
15892 fi
15893
15894 # Check whether --enable-pututline was given.
15895 if test "${enable_pututline+set}" = set; then :
15896   enableval=$enable_pututline;
15897                 if test "x$enableval" = "xno" ; then
15898
15899 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
15900
15901                 fi
15902
15903
15904 fi
15905
15906 # Check whether --enable-pututxline was given.
15907 if test "${enable_pututxline+set}" = set; then :
15908   enableval=$enable_pututxline;
15909                 if test "x$enableval" = "xno" ; then
15910
15911 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
15912
15913                 fi
15914
15915
15916 fi
15917
15918
15919 # Check whether --with-lastlog was given.
15920 if test "${with_lastlog+set}" = set; then :
15921   withval=$with_lastlog;
15922                 if test "x$withval" = "xno" ; then
15923                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15924
15925                 elif test -n "$withval"  &&  test "x${withval}" != "xyes"; then
15926                         conf_lastlog_location=$withval
15927                 fi
15928
15929
15930 fi
15931
15932
15933
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
15935 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h.  */
15938
15939 #include <sys/types.h>
15940 #include <utmp.h>
15941 #ifdef HAVE_LASTLOG_H
15942 #  include <lastlog.h>
15943 #endif
15944 #ifdef HAVE_PATHS_H
15945 #  include <paths.h>
15946 #endif
15947 #ifdef HAVE_LOGIN_H
15948 # include <login.h>
15949 #endif
15950
15951 int
15952 main ()
15953 {
15954  char *lastlog = LASTLOG_FILE;
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 if ac_fn_c_try_compile "$LINENO"; then :
15960    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15961 $as_echo "yes" >&6; }
15962 else
15963
15964                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965 $as_echo "no" >&6; }
15966                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
15967 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
15968                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h.  */
15970
15971 #include <sys/types.h>
15972 #include <utmp.h>
15973 #ifdef HAVE_LASTLOG_H
15974 #  include <lastlog.h>
15975 #endif
15976 #ifdef HAVE_PATHS_H
15977 #  include <paths.h>
15978 #endif
15979
15980 int
15981 main ()
15982 {
15983  char *lastlog = _PATH_LASTLOG;
15984   ;
15985   return 0;
15986 }
15987 _ACEOF
15988 if ac_fn_c_try_compile "$LINENO"; then :
15989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15990 $as_echo "yes" >&6; }
15991 else
15992
15993                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994 $as_echo "no" >&6; }
15995                         system_lastlog_path=no
15996
15997 fi
15998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15999
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002
16003 if test -z "$conf_lastlog_location"; then
16004         if test x"$system_lastlog_path" = x"no" ; then
16005                 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16006                                 if (test -d "$f" || test -f "$f") ; then
16007                                         conf_lastlog_location=$f
16008                                 fi
16009                 done
16010                 if test -z "$conf_lastlog_location"; then
16011                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16012 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16013                                         fi
16014         fi
16015 fi
16016
16017 if test -n "$conf_lastlog_location"; then
16018
16019 cat >>confdefs.h <<_ACEOF
16020 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
16021 _ACEOF
16022
16023 fi
16024
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16026 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h.  */
16029
16030 #include <sys/types.h>
16031 #include <utmp.h>
16032 #ifdef HAVE_PATHS_H
16033 #  include <paths.h>
16034 #endif
16035
16036 int
16037 main ()
16038 {
16039  char *utmp = UTMP_FILE;
16040   ;
16041   return 0;
16042 }
16043 _ACEOF
16044 if ac_fn_c_try_compile "$LINENO"; then :
16045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16046 $as_echo "yes" >&6; }
16047 else
16048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16050           system_utmp_path=no
16051
16052 fi
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 if test -z "$conf_utmp_location"; then
16055         if test x"$system_utmp_path" = x"no" ; then
16056                 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16057                         if test -f $f ; then
16058                                 conf_utmp_location=$f
16059                         fi
16060                 done
16061                 if test -z "$conf_utmp_location"; then
16062                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16063
16064                 fi
16065         fi
16066 fi
16067 if test -n "$conf_utmp_location"; then
16068
16069 cat >>confdefs.h <<_ACEOF
16070 #define CONF_UTMP_FILE "$conf_utmp_location"
16071 _ACEOF
16072
16073 fi
16074
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16076 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h.  */
16079
16080 #include <sys/types.h>
16081 #include <utmp.h>
16082 #ifdef HAVE_PATHS_H
16083 #  include <paths.h>
16084 #endif
16085
16086 int
16087 main ()
16088 {
16089  char *wtmp = WTMP_FILE;
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 if ac_fn_c_try_compile "$LINENO"; then :
16095    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16096 $as_echo "yes" >&6; }
16097 else
16098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16099 $as_echo "no" >&6; }
16100           system_wtmp_path=no
16101
16102 fi
16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 if test -z "$conf_wtmp_location"; then
16105         if test x"$system_wtmp_path" = x"no" ; then
16106                 for f in /usr/adm/wtmp /var/log/wtmp; do
16107                         if test -f $f ; then
16108                                 conf_wtmp_location=$f
16109                         fi
16110                 done
16111                 if test -z "$conf_wtmp_location"; then
16112                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16113
16114                 fi
16115         fi
16116 fi
16117 if test -n "$conf_wtmp_location"; then
16118
16119 cat >>confdefs.h <<_ACEOF
16120 #define CONF_WTMP_FILE "$conf_wtmp_location"
16121 _ACEOF
16122
16123 fi
16124
16125
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16127 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h.  */
16130
16131 #include <sys/types.h>
16132 #include <utmp.h>
16133 #ifdef HAVE_UTMPX_H
16134 #include <utmpx.h>
16135 #endif
16136 #ifdef HAVE_PATHS_H
16137 #  include <paths.h>
16138 #endif
16139
16140 int
16141 main ()
16142 {
16143  char *wtmpx = WTMPX_FILE;
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 if ac_fn_c_try_compile "$LINENO"; then :
16149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16150 $as_echo "yes" >&6; }
16151 else
16152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16153 $as_echo "no" >&6; }
16154           system_wtmpx_path=no
16155
16156 fi
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 if test -z "$conf_wtmpx_location"; then
16159         if test x"$system_wtmpx_path" = x"no" ; then
16160                 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16161
16162         fi
16163 else
16164
16165 cat >>confdefs.h <<_ACEOF
16166 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16167 _ACEOF
16168
16169 fi
16170
16171
16172 if test ! -z "$blibpath" ; then
16173         LDFLAGS="$LDFLAGS $blibflags$blibpath"
16174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16175 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16176 fi
16177
16178 CFLAGS="$CFLAGS $werror_flags"
16179
16180 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16181         TEST_SSH_IPV6=no
16182 else
16183         TEST_SSH_IPV6=yes
16184 fi
16185 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16186 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = xyes; then :
16187   TEST_SSH_IPV6=no
16188 fi
16189
16190 TEST_SSH_IPV6=$TEST_SSH_IPV6
16191
16192
16193
16194 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
16195
16196 cat >confcache <<\_ACEOF
16197 # This file is a shell script that caches the results of configure
16198 # tests run on this system so they can be shared between configure
16199 # scripts and configure runs, see configure's option --config-cache.
16200 # It is not useful on other systems.  If it contains results you don't
16201 # want to keep, you may remove or edit it.
16202 #
16203 # config.status only pays attention to the cache file if you give it
16204 # the --recheck option to rerun configure.
16205 #
16206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16208 # following values.
16209
16210 _ACEOF
16211
16212 # The following way of writing the cache mishandles newlines in values,
16213 # but we know of no workaround that is simple, portable, and efficient.
16214 # So, we kill variables containing newlines.
16215 # Ultrix sh set writes to stderr and can't be redirected directly,
16216 # and sets the high bit in the cache file unless we assign to the vars.
16217 (
16218   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16219     eval ac_val=\$$ac_var
16220     case $ac_val in #(
16221     *${as_nl}*)
16222       case $ac_var in #(
16223       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16224 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16225       esac
16226       case $ac_var in #(
16227       _ | IFS | as_nl) ;; #(
16228       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16229       *) { eval $ac_var=; unset $ac_var;} ;;
16230       esac ;;
16231     esac
16232   done
16233
16234   (set) 2>&1 |
16235     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16236     *${as_nl}ac_space=\ *)
16237       # `set' does not quote correctly, so add quotes: double-quote
16238       # substitution turns \\\\ into \\, and sed turns \\ into \.
16239       sed -n \
16240         "s/'/'\\\\''/g;
16241           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16242       ;; #(
16243     *)
16244       # `set' quotes correctly as required by POSIX, so do not add quotes.
16245       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16246       ;;
16247     esac |
16248     sort
16249 ) |
16250   sed '
16251      /^ac_cv_env_/b end
16252      t clear
16253      :clear
16254      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16255      t end
16256      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16257      :end' >>confcache
16258 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16259   if test -w "$cache_file"; then
16260     if test "x$cache_file" != "x/dev/null"; then
16261       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16262 $as_echo "$as_me: updating cache $cache_file" >&6;}
16263       if test ! -f "$cache_file" || test -h "$cache_file"; then
16264         cat confcache >"$cache_file"
16265       else
16266         case $cache_file in #(
16267         */* | ?:*)
16268           mv -f confcache "$cache_file"$$ &&
16269           mv -f "$cache_file"$$ "$cache_file" ;; #(
16270         *)
16271           mv -f confcache "$cache_file" ;;
16272         esac
16273       fi
16274     fi
16275   else
16276     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16277 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16278   fi
16279 fi
16280 rm -f confcache
16281
16282 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16283 # Let make expand exec_prefix.
16284 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16285
16286 DEFS=-DHAVE_CONFIG_H
16287
16288 ac_libobjs=
16289 ac_ltlibobjs=
16290 U=
16291 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16292   # 1. Remove the extension, and $U if already installed.
16293   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16294   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16295   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16296   #    will be set to the directory where LIBOBJS objects are built.
16297   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16298   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16299 done
16300 LIBOBJS=$ac_libobjs
16301
16302 LTLIBOBJS=$ac_ltlibobjs
16303
16304
16305
16306
16307 : "${CONFIG_STATUS=./config.status}"
16308 ac_write_fail=0
16309 ac_clean_files_save=$ac_clean_files
16310 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16312 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16313 as_write_fail=0
16314 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16315 #! $SHELL
16316 # Generated by $as_me.
16317 # Run this file to recreate the current configuration.
16318 # Compiler output produced by configure, useful for debugging
16319 # configure, is in config.log if it exists.
16320
16321 debug=false
16322 ac_cs_recheck=false
16323 ac_cs_silent=false
16324
16325 SHELL=\${CONFIG_SHELL-$SHELL}
16326 export SHELL
16327 _ASEOF
16328 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16329 ## -------------------- ##
16330 ## M4sh Initialization. ##
16331 ## -------------------- ##
16332
16333 # Be more Bourne compatible
16334 DUALCASE=1; export DUALCASE # for MKS sh
16335 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16336   emulate sh
16337   NULLCMD=:
16338   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16339   # is contrary to our usage.  Disable this feature.
16340   alias -g '${1+"$@"}'='"$@"'
16341   setopt NO_GLOB_SUBST
16342 else
16343   case `(set -o) 2>/dev/null` in #(
16344   *posix*) :
16345     set -o posix ;; #(
16346   *) :
16347      ;;
16348 esac
16349 fi
16350
16351
16352 as_nl='
16353 '
16354 export as_nl
16355 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16356 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16359 # Prefer a ksh shell builtin over an external printf program on Solaris,
16360 # but without wasting forks for bash or zsh.
16361 if test -z "$BASH_VERSION$ZSH_VERSION" \
16362     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16363   as_echo='print -r --'
16364   as_echo_n='print -rn --'
16365 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16366   as_echo='printf %s\n'
16367   as_echo_n='printf %s'
16368 else
16369   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16370     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16371     as_echo_n='/usr/ucb/echo -n'
16372   else
16373     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16374     as_echo_n_body='eval
16375       arg=$1;
16376       case $arg in #(
16377       *"$as_nl"*)
16378         expr "X$arg" : "X\\(.*\\)$as_nl";
16379         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16380       esac;
16381       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16382     '
16383     export as_echo_n_body
16384     as_echo_n='sh -c $as_echo_n_body as_echo'
16385   fi
16386   export as_echo_body
16387   as_echo='sh -c $as_echo_body as_echo'
16388 fi
16389
16390 # The user is always right.
16391 if test "${PATH_SEPARATOR+set}" != set; then
16392   PATH_SEPARATOR=:
16393   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16394     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16395       PATH_SEPARATOR=';'
16396   }
16397 fi
16398
16399
16400 # IFS
16401 # We need space, tab and new line, in precisely that order.  Quoting is
16402 # there to prevent editors from complaining about space-tab.
16403 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16404 # splitting by setting IFS to empty value.)
16405 IFS=" ""        $as_nl"
16406
16407 # Find who we are.  Look in the path if we contain no directory separator.
16408 as_myself=
16409 case $0 in #((
16410   *[\\/]* ) as_myself=$0 ;;
16411   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16412 for as_dir in $PATH
16413 do
16414   IFS=$as_save_IFS
16415   test -z "$as_dir" && as_dir=.
16416     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16417   done
16418 IFS=$as_save_IFS
16419
16420      ;;
16421 esac
16422 # We did not find ourselves, most probably we were run as `sh COMMAND'
16423 # in which case we are not to be found in the path.
16424 if test "x$as_myself" = x; then
16425   as_myself=$0
16426 fi
16427 if test ! -f "$as_myself"; then
16428   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16429   exit 1
16430 fi
16431
16432 # Unset variables that we do not need and which cause bugs (e.g. in
16433 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16434 # suppresses any "Segmentation fault" message there.  '((' could
16435 # trigger a bug in pdksh 5.2.14.
16436 for as_var in BASH_ENV ENV MAIL MAILPATH
16437 do eval test x\${$as_var+set} = xset \
16438   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16439 done
16440 PS1='$ '
16441 PS2='> '
16442 PS4='+ '
16443
16444 # NLS nuisances.
16445 LC_ALL=C
16446 export LC_ALL
16447 LANGUAGE=C
16448 export LANGUAGE
16449
16450 # CDPATH.
16451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16452
16453
16454 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16455 # ----------------------------------------
16456 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16457 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16458 # script with STATUS, using 1 if that was 0.
16459 as_fn_error ()
16460 {
16461   as_status=$1; test $as_status -eq 0 && as_status=1
16462   if test "$4"; then
16463     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16464     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16465   fi
16466   $as_echo "$as_me: error: $2" >&2
16467   as_fn_exit $as_status
16468 } # as_fn_error
16469
16470
16471 # as_fn_set_status STATUS
16472 # -----------------------
16473 # Set $? to STATUS, without forking.
16474 as_fn_set_status ()
16475 {
16476   return $1
16477 } # as_fn_set_status
16478
16479 # as_fn_exit STATUS
16480 # -----------------
16481 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16482 as_fn_exit ()
16483 {
16484   set +e
16485   as_fn_set_status $1
16486   exit $1
16487 } # as_fn_exit
16488
16489 # as_fn_unset VAR
16490 # ---------------
16491 # Portably unset VAR.
16492 as_fn_unset ()
16493 {
16494   { eval $1=; unset $1;}
16495 }
16496 as_unset=as_fn_unset
16497 # as_fn_append VAR VALUE
16498 # ----------------------
16499 # Append the text in VALUE to the end of the definition contained in VAR. Take
16500 # advantage of any shell optimizations that allow amortized linear growth over
16501 # repeated appends, instead of the typical quadratic growth present in naive
16502 # implementations.
16503 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16504   eval 'as_fn_append ()
16505   {
16506     eval $1+=\$2
16507   }'
16508 else
16509   as_fn_append ()
16510   {
16511     eval $1=\$$1\$2
16512   }
16513 fi # as_fn_append
16514
16515 # as_fn_arith ARG...
16516 # ------------------
16517 # Perform arithmetic evaluation on the ARGs, and store the result in the
16518 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16519 # must be portable across $(()) and expr.
16520 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16521   eval 'as_fn_arith ()
16522   {
16523     as_val=$(( $* ))
16524   }'
16525 else
16526   as_fn_arith ()
16527   {
16528     as_val=`expr "$@" || test $? -eq 1`
16529   }
16530 fi # as_fn_arith
16531
16532
16533 if expr a : '\(a\)' >/dev/null 2>&1 &&
16534    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16535   as_expr=expr
16536 else
16537   as_expr=false
16538 fi
16539
16540 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16541   as_basename=basename
16542 else
16543   as_basename=false
16544 fi
16545
16546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16547   as_dirname=dirname
16548 else
16549   as_dirname=false
16550 fi
16551
16552 as_me=`$as_basename -- "$0" ||
16553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16554          X"$0" : 'X\(//\)$' \| \
16555          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16556 $as_echo X/"$0" |
16557     sed '/^.*\/\([^/][^/]*\)\/*$/{
16558             s//\1/
16559             q
16560           }
16561           /^X\/\(\/\/\)$/{
16562             s//\1/
16563             q
16564           }
16565           /^X\/\(\/\).*/{
16566             s//\1/
16567             q
16568           }
16569           s/.*/./; q'`
16570
16571 # Avoid depending upon Character Ranges.
16572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16575 as_cr_digits='0123456789'
16576 as_cr_alnum=$as_cr_Letters$as_cr_digits
16577
16578 ECHO_C= ECHO_N= ECHO_T=
16579 case `echo -n x` in #(((((
16580 -n*)
16581   case `echo 'xy\c'` in
16582   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16583   xy)  ECHO_C='\c';;
16584   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16585        ECHO_T=' ';;
16586   esac;;
16587 *)
16588   ECHO_N='-n';;
16589 esac
16590
16591 rm -f conf$$ conf$$.exe conf$$.file
16592 if test -d conf$$.dir; then
16593   rm -f conf$$.dir/conf$$.file
16594 else
16595   rm -f conf$$.dir
16596   mkdir conf$$.dir 2>/dev/null
16597 fi
16598 if (echo >conf$$.file) 2>/dev/null; then
16599   if ln -s conf$$.file conf$$ 2>/dev/null; then
16600     as_ln_s='ln -s'
16601     # ... but there are two gotchas:
16602     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16603     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16604     # In both cases, we have to default to `cp -p'.
16605     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16606       as_ln_s='cp -p'
16607   elif ln conf$$.file conf$$ 2>/dev/null; then
16608     as_ln_s=ln
16609   else
16610     as_ln_s='cp -p'
16611   fi
16612 else
16613   as_ln_s='cp -p'
16614 fi
16615 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16616 rmdir conf$$.dir 2>/dev/null
16617
16618
16619 # as_fn_mkdir_p
16620 # -------------
16621 # Create "$as_dir" as a directory, including parents if necessary.
16622 as_fn_mkdir_p ()
16623 {
16624
16625   case $as_dir in #(
16626   -*) as_dir=./$as_dir;;
16627   esac
16628   test -d "$as_dir" || eval $as_mkdir_p || {
16629     as_dirs=
16630     while :; do
16631       case $as_dir in #(
16632       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16633       *) as_qdir=$as_dir;;
16634       esac
16635       as_dirs="'$as_qdir' $as_dirs"
16636       as_dir=`$as_dirname -- "$as_dir" ||
16637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16638          X"$as_dir" : 'X\(//\)[^/]' \| \
16639          X"$as_dir" : 'X\(//\)$' \| \
16640          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16641 $as_echo X"$as_dir" |
16642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16643             s//\1/
16644             q
16645           }
16646           /^X\(\/\/\)[^/].*/{
16647             s//\1/
16648             q
16649           }
16650           /^X\(\/\/\)$/{
16651             s//\1/
16652             q
16653           }
16654           /^X\(\/\).*/{
16655             s//\1/
16656             q
16657           }
16658           s/.*/./; q'`
16659       test -d "$as_dir" && break
16660     done
16661     test -z "$as_dirs" || eval "mkdir $as_dirs"
16662   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16663
16664
16665 } # as_fn_mkdir_p
16666 if mkdir -p . 2>/dev/null; then
16667   as_mkdir_p='mkdir -p "$as_dir"'
16668 else
16669   test -d ./-p && rmdir ./-p
16670   as_mkdir_p=false
16671 fi
16672
16673 if test -x / >/dev/null 2>&1; then
16674   as_test_x='test -x'
16675 else
16676   if ls -dL / >/dev/null 2>&1; then
16677     as_ls_L_option=L
16678   else
16679     as_ls_L_option=
16680   fi
16681   as_test_x='
16682     eval sh -c '\''
16683       if test -d "$1"; then
16684         test -d "$1/.";
16685       else
16686         case $1 in #(
16687         -*)set "./$1";;
16688         esac;
16689         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16690         ???[sx]*):;;*)false;;esac;fi
16691     '\'' sh
16692   '
16693 fi
16694 as_executable_p=$as_test_x
16695
16696 # Sed expression to map a string onto a valid CPP name.
16697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16698
16699 # Sed expression to map a string onto a valid variable name.
16700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16701
16702
16703 exec 6>&1
16704 ## ----------------------------------- ##
16705 ## Main body of $CONFIG_STATUS script. ##
16706 ## ----------------------------------- ##
16707 _ASEOF
16708 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16709
16710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16711 # Save the log message, to keep $0 and so on meaningful, and to
16712 # report actual input values of CONFIG_FILES etc. instead of their
16713 # values after options handling.
16714 ac_log="
16715 This file was extended by OpenSSH $as_me Portable, which was
16716 generated by GNU Autoconf 2.68.  Invocation command line was
16717
16718   CONFIG_FILES    = $CONFIG_FILES
16719   CONFIG_HEADERS  = $CONFIG_HEADERS
16720   CONFIG_LINKS    = $CONFIG_LINKS
16721   CONFIG_COMMANDS = $CONFIG_COMMANDS
16722   $ $0 $@
16723
16724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16725 "
16726
16727 _ACEOF
16728
16729 case $ac_config_files in *"
16730 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16731 esac
16732
16733 case $ac_config_headers in *"
16734 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16735 esac
16736
16737
16738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16739 # Files that config.status was made for.
16740 config_files="$ac_config_files"
16741 config_headers="$ac_config_headers"
16742
16743 _ACEOF
16744
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 ac_cs_usage="\
16747 \`$as_me' instantiates files and other configuration actions
16748 from templates according to the current configuration.  Unless the files
16749 and actions are specified as TAGs, all are instantiated by default.
16750
16751 Usage: $0 [OPTION]... [TAG]...
16752
16753   -h, --help       print this help, then exit
16754   -V, --version    print version number and configuration settings, then exit
16755       --config     print configuration, then exit
16756   -q, --quiet, --silent
16757                    do not print progress messages
16758   -d, --debug      don't remove temporary files
16759       --recheck    update $as_me by reconfiguring in the same conditions
16760       --file=FILE[:TEMPLATE]
16761                    instantiate the configuration file FILE
16762       --header=FILE[:TEMPLATE]
16763                    instantiate the configuration header FILE
16764
16765 Configuration files:
16766 $config_files
16767
16768 Configuration headers:
16769 $config_headers
16770
16771 Report bugs to <openssh-unix-dev@mindrot.org>."
16772
16773 _ACEOF
16774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16775 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16776 ac_cs_version="\\
16777 OpenSSH config.status Portable
16778 configured by $0, generated by GNU Autoconf 2.68,
16779   with options \\"\$ac_cs_config\\"
16780
16781 Copyright (C) 2010 Free Software Foundation, Inc.
16782 This config.status script is free software; the Free Software Foundation
16783 gives unlimited permission to copy, distribute and modify it."
16784
16785 ac_pwd='$ac_pwd'
16786 srcdir='$srcdir'
16787 INSTALL='$INSTALL'
16788 AWK='$AWK'
16789 test -n "\$AWK" || AWK=awk
16790 _ACEOF
16791
16792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16793 # The default lists apply if the user does not specify any file.
16794 ac_need_defaults=:
16795 while test $# != 0
16796 do
16797   case $1 in
16798   --*=?*)
16799     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16800     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16801     ac_shift=:
16802     ;;
16803   --*=)
16804     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16805     ac_optarg=
16806     ac_shift=:
16807     ;;
16808   *)
16809     ac_option=$1
16810     ac_optarg=$2
16811     ac_shift=shift
16812     ;;
16813   esac
16814
16815   case $ac_option in
16816   # Handling of the options.
16817   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16818     ac_cs_recheck=: ;;
16819   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16820     $as_echo "$ac_cs_version"; exit ;;
16821   --config | --confi | --conf | --con | --co | --c )
16822     $as_echo "$ac_cs_config"; exit ;;
16823   --debug | --debu | --deb | --de | --d | -d )
16824     debug=: ;;
16825   --file | --fil | --fi | --f )
16826     $ac_shift
16827     case $ac_optarg in
16828     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16829     '') as_fn_error $? "missing file argument" ;;
16830     esac
16831     as_fn_append CONFIG_FILES " '$ac_optarg'"
16832     ac_need_defaults=false;;
16833   --header | --heade | --head | --hea )
16834     $ac_shift
16835     case $ac_optarg in
16836     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16837     esac
16838     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16839     ac_need_defaults=false;;
16840   --he | --h)
16841     # Conflict between --help and --header
16842     as_fn_error $? "ambiguous option: \`$1'
16843 Try \`$0 --help' for more information.";;
16844   --help | --hel | -h )
16845     $as_echo "$ac_cs_usage"; exit ;;
16846   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16847   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16848     ac_cs_silent=: ;;
16849
16850   # This is an error.
16851   -*) as_fn_error $? "unrecognized option: \`$1'
16852 Try \`$0 --help' for more information." ;;
16853
16854   *) as_fn_append ac_config_targets " $1"
16855      ac_need_defaults=false ;;
16856
16857   esac
16858   shift
16859 done
16860
16861 ac_configure_extra_args=
16862
16863 if $ac_cs_silent; then
16864   exec 6>/dev/null
16865   ac_configure_extra_args="$ac_configure_extra_args --silent"
16866 fi
16867
16868 _ACEOF
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 if \$ac_cs_recheck; then
16871   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16872   shift
16873   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16874   CONFIG_SHELL='$SHELL'
16875   export CONFIG_SHELL
16876   exec "\$@"
16877 fi
16878
16879 _ACEOF
16880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16881 exec 5>>config.log
16882 {
16883   echo
16884   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16885 ## Running $as_me. ##
16886 _ASBOX
16887   $as_echo "$ac_log"
16888 } >&5
16889
16890 _ACEOF
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 _ACEOF
16893
16894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16895
16896 # Handling of arguments.
16897 for ac_config_target in $ac_config_targets
16898 do
16899   case $ac_config_target in
16900     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16901     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16902     "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
16903     "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
16904     "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
16905     "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16906     "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
16907     "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
16908
16909   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16910   esac
16911 done
16912
16913
16914 # If the user did not use the arguments to specify the items to instantiate,
16915 # then the envvar interface is used.  Set only those that are not.
16916 # We use the long form for the default assignment because of an extremely
16917 # bizarre bug on SunOS 4.1.3.
16918 if $ac_need_defaults; then
16919   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16920   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16921 fi
16922
16923 # Have a temporary directory for convenience.  Make it in the build tree
16924 # simply because there is no reason against having it here, and in addition,
16925 # creating and moving files from /tmp can sometimes cause problems.
16926 # Hook for its removal unless debugging.
16927 # Note that there is a small window in which the directory will not be cleaned:
16928 # after its creation but before its name has been assigned to `$tmp'.
16929 $debug ||
16930 {
16931   tmp= ac_tmp=
16932   trap 'exit_status=$?
16933   : "${ac_tmp:=$tmp}"
16934   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16935 ' 0
16936   trap 'as_fn_exit 1' 1 2 13 15
16937 }
16938 # Create a (secure) tmp directory for tmp files.
16939
16940 {
16941   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16942   test -d "$tmp"
16943 }  ||
16944 {
16945   tmp=./conf$$-$RANDOM
16946   (umask 077 && mkdir "$tmp")
16947 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16948 ac_tmp=$tmp
16949
16950 # Set up the scripts for CONFIG_FILES section.
16951 # No need to generate them if there are no CONFIG_FILES.
16952 # This happens for instance with `./config.status config.h'.
16953 if test -n "$CONFIG_FILES"; then
16954
16955
16956 ac_cr=`echo X | tr X '\015'`
16957 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16958 # But we know of no other shell where ac_cr would be empty at this
16959 # point, so we can use a bashism as a fallback.
16960 if test "x$ac_cr" = x; then
16961   eval ac_cr=\$\'\\r\'
16962 fi
16963 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16964 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16965   ac_cs_awk_cr='\\r'
16966 else
16967   ac_cs_awk_cr=$ac_cr
16968 fi
16969
16970 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16971 _ACEOF
16972
16973
16974 {
16975   echo "cat >conf$$subs.awk <<_ACEOF" &&
16976   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16977   echo "_ACEOF"
16978 } >conf$$subs.sh ||
16979   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16980 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16981 ac_delim='%!_!# '
16982 for ac_last_try in false false false false false :; do
16983   . ./conf$$subs.sh ||
16984     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16985
16986   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16987   if test $ac_delim_n = $ac_delim_num; then
16988     break
16989   elif $ac_last_try; then
16990     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16991   else
16992     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16993   fi
16994 done
16995 rm -f conf$$subs.sh
16996
16997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16998 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16999 _ACEOF
17000 sed -n '
17001 h
17002 s/^/S["/; s/!.*/"]=/
17003 p
17004 g
17005 s/^[^!]*!//
17006 :repl
17007 t repl
17008 s/'"$ac_delim"'$//
17009 t delim
17010 :nl
17011 h
17012 s/\(.\{148\}\)..*/\1/
17013 t more1
17014 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17015 p
17016 n
17017 b repl
17018 :more1
17019 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17020 p
17021 g
17022 s/.\{148\}//
17023 t nl
17024 :delim
17025 h
17026 s/\(.\{148\}\)..*/\1/
17027 t more2
17028 s/["\\]/\\&/g; s/^/"/; s/$/"/
17029 p
17030 b
17031 :more2
17032 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17033 p
17034 g
17035 s/.\{148\}//
17036 t delim
17037 ' <conf$$subs.awk | sed '
17038 /^[^""]/{
17039   N
17040   s/\n//
17041 }
17042 ' >>$CONFIG_STATUS || ac_write_fail=1
17043 rm -f conf$$subs.awk
17044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17045 _ACAWK
17046 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17047   for (key in S) S_is_set[key] = 1
17048   FS = "\a"
17049
17050 }
17051 {
17052   line = $ 0
17053   nfields = split(line, field, "@")
17054   substed = 0
17055   len = length(field[1])
17056   for (i = 2; i < nfields; i++) {
17057     key = field[i]
17058     keylen = length(key)
17059     if (S_is_set[key]) {
17060       value = S[key]
17061       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17062       len += length(value) + length(field[++i])
17063       substed = 1
17064     } else
17065       len += 1 + keylen
17066   }
17067
17068   print line
17069 }
17070
17071 _ACAWK
17072 _ACEOF
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17075   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17076 else
17077   cat
17078 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17079   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17080 _ACEOF
17081
17082 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17083 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17084 # trailing colons and then remove the whole line if VPATH becomes empty
17085 # (actually we leave an empty line to preserve line numbers).
17086 if test "x$srcdir" = x.; then
17087   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17088 h
17089 s///
17090 s/^/:/
17091 s/[      ]*$/:/
17092 s/:\$(srcdir):/:/g
17093 s/:\${srcdir}:/:/g
17094 s/:@srcdir@:/:/g
17095 s/^:*//
17096 s/:*$//
17097 x
17098 s/\(=[   ]*\).*/\1/
17099 G
17100 s/\n//
17101 s/^[^=]*=[       ]*$//
17102 }'
17103 fi
17104
17105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17106 fi # test -n "$CONFIG_FILES"
17107
17108 # Set up the scripts for CONFIG_HEADERS section.
17109 # No need to generate them if there are no CONFIG_HEADERS.
17110 # This happens for instance with `./config.status Makefile'.
17111 if test -n "$CONFIG_HEADERS"; then
17112 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17113 BEGIN {
17114 _ACEOF
17115
17116 # Transform confdefs.h into an awk script `defines.awk', embedded as
17117 # here-document in config.status, that substitutes the proper values into
17118 # config.h.in to produce config.h.
17119
17120 # Create a delimiter string that does not exist in confdefs.h, to ease
17121 # handling of long lines.
17122 ac_delim='%!_!# '
17123 for ac_last_try in false false :; do
17124   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17125   if test -z "$ac_tt"; then
17126     break
17127   elif $ac_last_try; then
17128     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17129   else
17130     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17131   fi
17132 done
17133
17134 # For the awk script, D is an array of macro values keyed by name,
17135 # likewise P contains macro parameters if any.  Preserve backslash
17136 # newline sequences.
17137
17138 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17139 sed -n '
17140 s/.\{148\}/&'"$ac_delim"'/g
17141 t rset
17142 :rset
17143 s/^[     ]*#[    ]*define[       ][      ]*/ /
17144 t def
17145 d
17146 :def
17147 s/\\$//
17148 t bsnl
17149 s/["\\]/\\&/g
17150 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17151 D["\1"]=" \3"/p
17152 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17153 d
17154 :bsnl
17155 s/["\\]/\\&/g
17156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17157 D["\1"]=" \3\\\\\\n"\\/p
17158 t cont
17159 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17160 t cont
17161 d
17162 :cont
17163 n
17164 s/.\{148\}/&'"$ac_delim"'/g
17165 t clear
17166 :clear
17167 s/\\$//
17168 t bsnlc
17169 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17170 d
17171 :bsnlc
17172 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17173 b cont
17174 ' <confdefs.h | sed '
17175 s/'"$ac_delim"'/"\\\
17176 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17177
17178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17179   for (key in D) D_is_set[key] = 1
17180   FS = "\a"
17181 }
17182 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17183   line = \$ 0
17184   split(line, arg, " ")
17185   if (arg[1] == "#") {
17186     defundef = arg[2]
17187     mac1 = arg[3]
17188   } else {
17189     defundef = substr(arg[1], 2)
17190     mac1 = arg[2]
17191   }
17192   split(mac1, mac2, "(") #)
17193   macro = mac2[1]
17194   prefix = substr(line, 1, index(line, defundef) - 1)
17195   if (D_is_set[macro]) {
17196     # Preserve the white space surrounding the "#".
17197     print prefix "define", macro P[macro] D[macro]
17198     next
17199   } else {
17200     # Replace #undef with comments.  This is necessary, for example,
17201     # in the case of _POSIX_SOURCE, which is predefined and required
17202     # on some systems where configure will not decide to define it.
17203     if (defundef == "undef") {
17204       print "/*", prefix defundef, macro, "*/"
17205       next
17206     }
17207   }
17208 }
17209 { print }
17210 _ACAWK
17211 _ACEOF
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17213   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17214 fi # test -n "$CONFIG_HEADERS"
17215
17216
17217 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17218 shift
17219 for ac_tag
17220 do
17221   case $ac_tag in
17222   :[FHLC]) ac_mode=$ac_tag; continue;;
17223   esac
17224   case $ac_mode$ac_tag in
17225   :[FHL]*:*);;
17226   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17227   :[FH]-) ac_tag=-:-;;
17228   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17229   esac
17230   ac_save_IFS=$IFS
17231   IFS=:
17232   set x $ac_tag
17233   IFS=$ac_save_IFS
17234   shift
17235   ac_file=$1
17236   shift
17237
17238   case $ac_mode in
17239   :L) ac_source=$1;;
17240   :[FH])
17241     ac_file_inputs=
17242     for ac_f
17243     do
17244       case $ac_f in
17245       -) ac_f="$ac_tmp/stdin";;
17246       *) # Look for the file first in the build tree, then in the source tree
17247          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17248          # because $ac_f cannot contain `:'.
17249          test -f "$ac_f" ||
17250            case $ac_f in
17251            [\\/$]*) false;;
17252            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17253            esac ||
17254            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17255       esac
17256       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17257       as_fn_append ac_file_inputs " '$ac_f'"
17258     done
17259
17260     # Let's still pretend it is `configure' which instantiates (i.e., don't
17261     # use $as_me), people would be surprised to read:
17262     #    /* config.h.  Generated by config.status.  */
17263     configure_input='Generated from '`
17264           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17265         `' by configure.'
17266     if test x"$ac_file" != x-; then
17267       configure_input="$ac_file.  $configure_input"
17268       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17269 $as_echo "$as_me: creating $ac_file" >&6;}
17270     fi
17271     # Neutralize special characters interpreted by sed in replacement strings.
17272     case $configure_input in #(
17273     *\&* | *\|* | *\\* )
17274        ac_sed_conf_input=`$as_echo "$configure_input" |
17275        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17276     *) ac_sed_conf_input=$configure_input;;
17277     esac
17278
17279     case $ac_tag in
17280     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17281       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17282     esac
17283     ;;
17284   esac
17285
17286   ac_dir=`$as_dirname -- "$ac_file" ||
17287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288          X"$ac_file" : 'X\(//\)[^/]' \| \
17289          X"$ac_file" : 'X\(//\)$' \| \
17290          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17291 $as_echo X"$ac_file" |
17292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17293             s//\1/
17294             q
17295           }
17296           /^X\(\/\/\)[^/].*/{
17297             s//\1/
17298             q
17299           }
17300           /^X\(\/\/\)$/{
17301             s//\1/
17302             q
17303           }
17304           /^X\(\/\).*/{
17305             s//\1/
17306             q
17307           }
17308           s/.*/./; q'`
17309   as_dir="$ac_dir"; as_fn_mkdir_p
17310   ac_builddir=.
17311
17312 case "$ac_dir" in
17313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17314 *)
17315   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17316   # A ".." for each directory in $ac_dir_suffix.
17317   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17318   case $ac_top_builddir_sub in
17319   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17320   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17321   esac ;;
17322 esac
17323 ac_abs_top_builddir=$ac_pwd
17324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17325 # for backward compatibility:
17326 ac_top_builddir=$ac_top_build_prefix
17327
17328 case $srcdir in
17329   .)  # We are building in place.
17330     ac_srcdir=.
17331     ac_top_srcdir=$ac_top_builddir_sub
17332     ac_abs_top_srcdir=$ac_pwd ;;
17333   [\\/]* | ?:[\\/]* )  # Absolute name.
17334     ac_srcdir=$srcdir$ac_dir_suffix;
17335     ac_top_srcdir=$srcdir
17336     ac_abs_top_srcdir=$srcdir ;;
17337   *) # Relative name.
17338     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17339     ac_top_srcdir=$ac_top_build_prefix$srcdir
17340     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17341 esac
17342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17343
17344
17345   case $ac_mode in
17346   :F)
17347   #
17348   # CONFIG_FILE
17349   #
17350
17351   case $INSTALL in
17352   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17353   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17354   esac
17355 _ACEOF
17356
17357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17358 # If the template does not know about datarootdir, expand it.
17359 # FIXME: This hack should be removed a few years after 2.60.
17360 ac_datarootdir_hack=; ac_datarootdir_seen=
17361 ac_sed_dataroot='
17362 /datarootdir/ {
17363   p
17364   q
17365 }
17366 /@datadir@/p
17367 /@docdir@/p
17368 /@infodir@/p
17369 /@localedir@/p
17370 /@mandir@/p'
17371 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17372 *datarootdir*) ac_datarootdir_seen=yes;;
17373 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17375 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17376 _ACEOF
17377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17378   ac_datarootdir_hack='
17379   s&@datadir@&$datadir&g
17380   s&@docdir@&$docdir&g
17381   s&@infodir@&$infodir&g
17382   s&@localedir@&$localedir&g
17383   s&@mandir@&$mandir&g
17384   s&\\\${datarootdir}&$datarootdir&g' ;;
17385 esac
17386 _ACEOF
17387
17388 # Neutralize VPATH when `$srcdir' = `.'.
17389 # Shell code in configure.ac might set extrasub.
17390 # FIXME: do we really want to maintain this feature?
17391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17392 ac_sed_extra="$ac_vpsub
17393 $extrasub
17394 _ACEOF
17395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396 :t
17397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17398 s|@configure_input@|$ac_sed_conf_input|;t t
17399 s&@top_builddir@&$ac_top_builddir_sub&;t t
17400 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17401 s&@srcdir@&$ac_srcdir&;t t
17402 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17403 s&@top_srcdir@&$ac_top_srcdir&;t t
17404 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17405 s&@builddir@&$ac_builddir&;t t
17406 s&@abs_builddir@&$ac_abs_builddir&;t t
17407 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17408 s&@INSTALL@&$ac_INSTALL&;t t
17409 $ac_datarootdir_hack
17410 "
17411 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17412   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17413
17414 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17415   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17416   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17417       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17418   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17419 which seems to be undefined.  Please make sure it is defined" >&5
17420 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17421 which seems to be undefined.  Please make sure it is defined" >&2;}
17422
17423   rm -f "$ac_tmp/stdin"
17424   case $ac_file in
17425   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17426   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17427   esac \
17428   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17429  ;;
17430   :H)
17431   #
17432   # CONFIG_HEADER
17433   #
17434   if test x"$ac_file" != x-; then
17435     {
17436       $as_echo "/* $configure_input  */" \
17437       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17438     } >"$ac_tmp/config.h" \
17439       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17440     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17441       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17442 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17443     else
17444       rm -f "$ac_file"
17445       mv "$ac_tmp/config.h" "$ac_file" \
17446         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17447     fi
17448   else
17449     $as_echo "/* $configure_input  */" \
17450       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17451       || as_fn_error $? "could not create -" "$LINENO" 5
17452   fi
17453  ;;
17454
17455
17456   esac
17457
17458 done # for ac_tag
17459
17460
17461 as_fn_exit 0
17462 _ACEOF
17463 ac_clean_files=$ac_clean_files_save
17464
17465 test $ac_write_fail = 0 ||
17466   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17467
17468
17469 # configure is writing to config.log, and then calls config.status.
17470 # config.status does its own redirection, appending to config.log.
17471 # Unfortunately, on DOS this fails, as config.log is still kept open
17472 # by configure, so config.status won't be able to write to it; its
17473 # output is simply discarded.  So we exec the FD to /dev/null,
17474 # effectively closing config.log, so it can be properly (re)opened and
17475 # appended to by config.status.  When coming back to configure, we
17476 # need to make the FD available again.
17477 if test "$no_create" != yes; then
17478   ac_cs_success=:
17479   ac_config_status_args=
17480   test "$silent" = yes &&
17481     ac_config_status_args="$ac_config_status_args --quiet"
17482   exec 5>/dev/null
17483   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17484   exec 5>>config.log
17485   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17486   # would make configure fail if this is the last instruction.
17487   $ac_cs_success || as_fn_exit 1
17488 fi
17489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17490   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17491 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17492 fi
17493
17494
17495 # Print summary of options
17496
17497 # Someone please show me a better way :)
17498 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17499 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17500 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17501 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17502 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17503 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17504 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17505 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17506 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17507 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17508
17509 echo ""
17510 echo "OpenSSH has been configured with the following options:"
17511 echo "                     User binaries: $B"
17512 echo "                   System binaries: $C"
17513 echo "               Configuration files: $D"
17514 echo "                   Askpass program: $E"
17515 echo "                      Manual pages: $F"
17516 echo "                          PID file: $G"
17517 echo "  Privilege separation chroot path: $H"
17518 if test "x$external_path_file" = "x/etc/login.conf" ; then
17519 echo "   At runtime, sshd will use the path defined in $external_path_file"
17520 echo "   Make sure the path to scp is present, otherwise scp will not work"
17521 else
17522 echo "            sshd default user PATH: $I"
17523         if test ! -z "$external_path_file"; then
17524 echo "   (If PATH is set in $external_path_file it will be used instead. If"
17525 echo "   used, ensure the path to scp is present, otherwise scp will not work.)"
17526         fi
17527 fi
17528 if test ! -z "$superuser_path" ; then
17529 echo "          sshd superuser user PATH: $J"
17530 fi
17531 echo "                    Manpage format: $MANTYPE"
17532 echo "                       PAM support: $PAM_MSG"
17533 echo "                   OSF SIA support: $SIA_MSG"
17534 echo "                 KerberosV support: $KRB5_MSG"
17535 echo "                   SELinux support: $SELINUX_MSG"
17536 echo "                 Smartcard support: $SCARD_MSG"
17537 echo "                     S/KEY support: $SKEY_MSG"
17538 echo "              TCP Wrappers support: $TCPW_MSG"
17539 echo "              MD5 password support: $MD5_MSG"
17540 echo "                   libedit support: $LIBEDIT_MSG"
17541 echo "  Solaris process contract support: $SPC_MSG"
17542 echo "           Solaris project support: $SP_MSG"
17543 echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17544 echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17545 echo "                  BSD Auth support: $BSD_AUTH_MSG"
17546 echo "              Random number source: $RAND_MSG"
17547 echo "             Privsep sandbox style: $SANDBOX_STYLE"
17548
17549 echo ""
17550
17551 echo "              Host: ${host}"
17552 echo "          Compiler: ${CC}"
17553 echo "    Compiler flags: ${CFLAGS}"
17554 echo "Preprocessor flags: ${CPPFLAGS}"
17555 echo "      Linker flags: ${LDFLAGS}"
17556 echo "         Libraries: ${LIBS}"
17557 if test ! -z "${SSHDLIBS}"; then
17558 echo "         +for sshd: ${SSHDLIBS}"
17559 fi
17560 if test ! -z "${SSHLIBS}"; then
17561 echo "          +for ssh: ${SSHLIBS}"
17562 fi
17563
17564 echo ""
17565
17566 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17567         echo "SVR4 style packages are supported with \"make package\""
17568         echo ""
17569 fi
17570
17571 if test "x$PAM_MSG" = "xyes" ; then
17572         echo "PAM is enabled. You may need to install a PAM control file "
17573         echo "for sshd, otherwise password authentication may fail. "
17574         echo "Example PAM control files can be found in the contrib/ "
17575         echo "subdirectory"
17576         echo ""
17577 fi
17578
17579 if test ! -z "$NO_PEERCHECK" ; then
17580         echo "WARNING: the operating system that you are using does not"
17581         echo "appear to support getpeereid(), getpeerucred() or the"
17582         echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17583         echo "enforce security checks to prevent unauthorised connections to"
17584         echo "ssh-agent. Their absence increases the risk that a malicious"
17585         echo "user can connect to your agent."
17586         echo ""
17587 fi
17588
17589 if test "$AUDIT_MODULE" = "bsm" ; then
17590         echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17591         echo "See the Solaris section in README.platform for details."
17592 fi