update version
[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.67 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 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         BASH_ENV=/dev/null
221         ENV=/dev/null
222         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223         export CONFIG_SHELL
224         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 fi
226
227     if test x$as_have_required = xno; then :
228   $as_echo "$0: This script requires a shell more modern than all"
229   $as_echo "$0: the shells that I found on your system."
230   if test x${ZSH_VERSION+set} = xset ; then
231     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233   else
234     $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: openssh-unix-dev@mindrot.org about your system,
236 $0: including any error possibly output before this
237 $0: message. Then install a modern shell, or manually run
238 $0: the script under such a shell if you do have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$1; test $as_status -eq 0 && as_status=1
371   if test "$4"; then
372     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374   fi
375   $as_echo "$as_me: error: $2" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533 test -n "$DJDIR" || exec 7<&0 </dev/null
534 exec 6>&1
535
536 # Name of the host.
537 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
541 #
542 # Initializations.
543 #
544 ac_default_prefix=/usr/local
545 ac_clean_files=
546 ac_config_libobj_dir=.
547 LIBOBJS=
548 cross_compiling=no
549 subdirs=
550 MFLAGS=
551 MAKEFLAGS=
552
553 # Identity of this package.
554 PACKAGE_NAME='OpenSSH'
555 PACKAGE_TARNAME='openssh'
556 PACKAGE_VERSION='Portable'
557 PACKAGE_STRING='OpenSSH Portable'
558 PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
559 PACKAGE_URL=''
560
561 ac_unique_file="ssh.c"
562 # Factoring default headers for most tests.
563 ac_includes_default="\
564 #include <stdio.h>
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
567 #endif
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
570 #endif
571 #ifdef STDC_HEADERS
572 # include <stdlib.h>
573 # include <stddef.h>
574 #else
575 # ifdef HAVE_STDLIB_H
576 #  include <stdlib.h>
577 # endif
578 #endif
579 #ifdef HAVE_STRING_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #  include <memory.h>
582 # endif
583 # include <string.h>
584 #endif
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
587 #endif
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
590 #endif
591 #ifdef HAVE_STDINT_H
592 # include <stdint.h>
593 #endif
594 #ifdef HAVE_UNISTD_H
595 # include <unistd.h>
596 #endif"
597
598 ac_subst_vars='LTLIBOBJS
599 LIBOBJS
600 TEST_SSH_IPV6
601 piddir
602 user_path
603 mansubdir
604 MANTYPE
605 XAUTH_PATH
606 STRIP_OPT
607 xauth_path
608 PRIVSEP_PATH
609 KRB5CONF
610 SSHDLIBS
611 SSHLIBS
612 SSH_PRIVSEP_USER
613 COMMENT_OUT_ECC
614 TEST_SSH_ECC
615 TEST_SSH_SHA256
616 LIBEDIT
617 PKGCONFIG
618 LD
619 PATH_PASSWD_PROG
620 LOGIN_PROGRAM_FALLBACK
621 STARTUP_SCRIPT_SHELL
622 MAKE_PACKAGE_SUPPORTED
623 PATH_USERADD_PROG
624 PATH_GROUPADD_PROG
625 MANFMT
626 TEST_SHELL
627 MANDOC
628 NROFF
629 GROFF
630 SH
631 TEST_MINUS_S_SH
632 ENT
633 SED
634 PERL
635 KILL
636 CAT
637 AR
638 INSTALL_DATA
639 INSTALL_SCRIPT
640 INSTALL_PROGRAM
641 RANLIB
642 AWK
643 EGREP
644 GREP
645 CPP
646 host_os
647 host_vendor
648 host_cpu
649 host
650 build_os
651 build_vendor
652 build_cpu
653 build
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 enable_largefile
703 with_stackprotect
704 with_rpath
705 with_cflags
706 with_cppflags
707 with_ldflags
708 with_libs
709 with_Werror
710 with_solaris_contracts
711 with_solaris_projects
712 with_osfsia
713 with_zlib
714 with_zlib_version_check
715 with_skey
716 with_tcp_wrappers
717 with_libedit
718 with_audit
719 with_ssl_dir
720 with_openssl_header_check
721 with_ssl_engine
722 with_prngd_port
723 with_prngd_socket
724 with_pam
725 with_privsep_user
726 with_sandbox
727 with_selinux
728 with_kerberos5
729 with_privsep_path
730 with_xauth
731 enable_strip
732 with_maildir
733 with_mantype
734 with_md5_passwords
735 with_shadow
736 with_ipaddr_display
737 enable_etc_default_login
738 with_default_path
739 with_superuser_path
740 with_4in6
741 with_bsd_auth
742 with_pid_dir
743 enable_lastlog
744 enable_utmp
745 enable_utmpx
746 enable_wtmp
747 enable_wtmpx
748 enable_libutil
749 enable_pututline
750 enable_pututxline
751 with_lastlog
752 '
753       ac_precious_vars='build_alias
754 host_alias
755 target_alias
756 CC
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CPP'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816   # If the previous option needs an argument, assign it.
817   if test -n "$ac_prev"; then
818     eval $ac_prev=\$ac_option
819     ac_prev=
820     continue
821   fi
822
823   case $ac_option in
824   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825   *=)   ac_optarg= ;;
826   *)    ac_optarg=yes ;;
827   esac
828
829   # Accept the important Cygnus configure options, so we can diagnose typos.
830
831   case $ac_dashdash$ac_option in
832   --)
833     ac_dashdash=yes ;;
834
835   -bindir | --bindir | --bindi | --bind | --bin | --bi)
836     ac_prev=bindir ;;
837   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838     bindir=$ac_optarg ;;
839
840   -build | --build | --buil | --bui | --bu)
841     ac_prev=build_alias ;;
842   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843     build_alias=$ac_optarg ;;
844
845   -cache-file | --cache-file | --cache-fil | --cache-fi \
846   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847     ac_prev=cache_file ;;
848   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850     cache_file=$ac_optarg ;;
851
852   --config-cache | -C)
853     cache_file=config.cache ;;
854
855   -datadir | --datadir | --datadi | --datad)
856     ac_prev=datadir ;;
857   -datadir=* | --datadir=* | --datadi=* | --datad=*)
858     datadir=$ac_optarg ;;
859
860   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861   | --dataroo | --dataro | --datar)
862     ac_prev=datarootdir ;;
863   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865     datarootdir=$ac_optarg ;;
866
867   -disable-* | --disable-*)
868     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869     # Reject names that are not valid shell variable names.
870     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871       as_fn_error $? "invalid feature name: $ac_useropt"
872     ac_useropt_orig=$ac_useropt
873     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874     case $ac_user_opts in
875       *"
876 "enable_$ac_useropt"
877 "*) ;;
878       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879          ac_unrecognized_sep=', ';;
880     esac
881     eval enable_$ac_useropt=no ;;
882
883   -docdir | --docdir | --docdi | --doc | --do)
884     ac_prev=docdir ;;
885   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886     docdir=$ac_optarg ;;
887
888   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889     ac_prev=dvidir ;;
890   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891     dvidir=$ac_optarg ;;
892
893   -enable-* | --enable-*)
894     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895     # Reject names that are not valid shell variable names.
896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897       as_fn_error $? "invalid feature name: $ac_useropt"
898     ac_useropt_orig=$ac_useropt
899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900     case $ac_user_opts in
901       *"
902 "enable_$ac_useropt"
903 "*) ;;
904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905          ac_unrecognized_sep=', ';;
906     esac
907     eval enable_$ac_useropt=\$ac_optarg ;;
908
909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911   | --exec | --exe | --ex)
912     ac_prev=exec_prefix ;;
913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915   | --exec=* | --exe=* | --ex=*)
916     exec_prefix=$ac_optarg ;;
917
918   -gas | --gas | --ga | --g)
919     # Obsolete; use --with-gas.
920     with_gas=yes ;;
921
922   -help | --help | --hel | --he | -h)
923     ac_init_help=long ;;
924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925     ac_init_help=recursive ;;
926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927     ac_init_help=short ;;
928
929   -host | --host | --hos | --ho)
930     ac_prev=host_alias ;;
931   -host=* | --host=* | --hos=* | --ho=*)
932     host_alias=$ac_optarg ;;
933
934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935     ac_prev=htmldir ;;
936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937   | --ht=*)
938     htmldir=$ac_optarg ;;
939
940   -includedir | --includedir | --includedi | --included | --include \
941   | --includ | --inclu | --incl | --inc)
942     ac_prev=includedir ;;
943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944   | --includ=* | --inclu=* | --incl=* | --inc=*)
945     includedir=$ac_optarg ;;
946
947   -infodir | --infodir | --infodi | --infod | --info | --inf)
948     ac_prev=infodir ;;
949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950     infodir=$ac_optarg ;;
951
952   -libdir | --libdir | --libdi | --libd)
953     ac_prev=libdir ;;
954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
955     libdir=$ac_optarg ;;
956
957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958   | --libexe | --libex | --libe)
959     ac_prev=libexecdir ;;
960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961   | --libexe=* | --libex=* | --libe=*)
962     libexecdir=$ac_optarg ;;
963
964   -localedir | --localedir | --localedi | --localed | --locale)
965     ac_prev=localedir ;;
966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967     localedir=$ac_optarg ;;
968
969   -localstatedir | --localstatedir | --localstatedi | --localstated \
970   | --localstate | --localstat | --localsta | --localst | --locals)
971     ac_prev=localstatedir ;;
972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974     localstatedir=$ac_optarg ;;
975
976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977     ac_prev=mandir ;;
978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979     mandir=$ac_optarg ;;
980
981   -nfp | --nfp | --nf)
982     # Obsolete; use --without-fp.
983     with_fp=no ;;
984
985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986   | --no-cr | --no-c | -n)
987     no_create=yes ;;
988
989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991     no_recursion=yes ;;
992
993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995   | --oldin | --oldi | --old | --ol | --o)
996     ac_prev=oldincludedir ;;
997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000     oldincludedir=$ac_optarg ;;
1001
1002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003     ac_prev=prefix ;;
1004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005     prefix=$ac_optarg ;;
1006
1007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008   | --program-pre | --program-pr | --program-p)
1009     ac_prev=program_prefix ;;
1010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012     program_prefix=$ac_optarg ;;
1013
1014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015   | --program-suf | --program-su | --program-s)
1016     ac_prev=program_suffix ;;
1017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019     program_suffix=$ac_optarg ;;
1020
1021   -program-transform-name | --program-transform-name \
1022   | --program-transform-nam | --program-transform-na \
1023   | --program-transform-n | --program-transform- \
1024   | --program-transform | --program-transfor \
1025   | --program-transfo | --program-transf \
1026   | --program-trans | --program-tran \
1027   | --progr-tra | --program-tr | --program-t)
1028     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
1037
1038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039     ac_prev=pdfdir ;;
1040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041     pdfdir=$ac_optarg ;;
1042
1043   -psdir | --psdir | --psdi | --psd | --ps)
1044     ac_prev=psdir ;;
1045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046     psdir=$ac_optarg ;;
1047
1048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049   | -silent | --silent | --silen | --sile | --sil)
1050     silent=yes ;;
1051
1052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053     ac_prev=sbindir ;;
1054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055   | --sbi=* | --sb=*)
1056     sbindir=$ac_optarg ;;
1057
1058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060   | --sharedst | --shareds | --shared | --share | --shar \
1061   | --sha | --sh)
1062     ac_prev=sharedstatedir ;;
1063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066   | --sha=* | --sh=*)
1067     sharedstatedir=$ac_optarg ;;
1068
1069   -site | --site | --sit)
1070     ac_prev=site ;;
1071   -site=* | --site=* | --sit=*)
1072     site=$ac_optarg ;;
1073
1074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075     ac_prev=srcdir ;;
1076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077     srcdir=$ac_optarg ;;
1078
1079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080   | --syscon | --sysco | --sysc | --sys | --sy)
1081     ac_prev=sysconfdir ;;
1082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084     sysconfdir=$ac_optarg ;;
1085
1086   -target | --target | --targe | --targ | --tar | --ta | --t)
1087     ac_prev=target_alias ;;
1088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089     target_alias=$ac_optarg ;;
1090
1091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092     verbose=yes ;;
1093
1094   -version | --version | --versio | --versi | --vers | -V)
1095     ac_init_version=: ;;
1096
1097   -with-* | --with-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       as_fn_error $? "invalid package name: $ac_useropt"
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval with_$ac_useropt=\$ac_optarg ;;
1112
1113   -without-* | --without-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error $? "invalid package name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1149     ;;
1150
1151   *=*)
1152     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153     # Reject names that are not valid shell variable names.
1154     case $ac_envvar in #(
1155       '' | [0-9]* | *[!_$as_cr_alnum]* )
1156       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1157     esac
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   as_fn_error $? "missing argument to $ac_option"
1175 fi
1176
1177 if test -n "$ac_unrecognized_opts"; then
1178   case $enable_option_checking in
1179     no) ;;
1180     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182   esac
1183 fi
1184
1185 # Check all directory arguments for consistency.
1186 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187                 datadir sysconfdir sharedstatedir localstatedir includedir \
1188                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189                 libdir localedir mandir
1190 do
1191   eval ac_val=\$$ac_var
1192   # Remove trailing slashes.
1193   case $ac_val in
1194     */ )
1195       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196       eval $ac_var=\$ac_val;;
1197   esac
1198   # Be sure to have absolute directory names.
1199   case $ac_val in
1200     [\\/$]* | ?:[\\/]* )  continue;;
1201     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202   esac
1203   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1205
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1212
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215   if test "x$build_alias" = x; then
1216     cross_compiling=maybe
1217     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218     If a cross compiler is detected then cross compile mode will be used" >&2
1219   elif test "x$build_alias" != "x$host_alias"; then
1220     cross_compiling=yes
1221   fi
1222 fi
1223
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1226
1227 test "$silent" = yes && exec 6>/dev/null
1228
1229
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233   as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235   as_fn_error $? "pwd does not report name of working directory"
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240   ac_srcdir_defaulted=yes
1241   # Try the directory containing this script, then the parent directory.
1242   ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244          X"$as_myself" : 'X\(//\)[^/]' \| \
1245          X"$as_myself" : 'X\(//\)$' \| \
1246          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)[^/].*/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\).*/{
1261             s//\1/
1262             q
1263           }
1264           s/.*/./; q'`
1265   srcdir=$ac_confdir
1266   if test ! -r "$srcdir/$ac_unique_file"; then
1267     srcdir=..
1268   fi
1269 else
1270   ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking ...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR            user executables [EPREFIX/bin]
1339   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR        program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR            object code libraries [EPREFIX/lib]
1345   --includedir=DIR        C header files [PREFIX/include]
1346   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR           info documentation [DATAROOTDIR/info]
1350   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR            man documentation [DATAROOTDIR/man]
1352   --docdir=DIR            documentation root [DATAROOTDIR/doc/openssh]
1353   --htmldir=DIR           html documentation [DOCDIR]
1354   --dvidir=DIR            dvi documentation [DOCDIR]
1355   --pdfdir=DIR            pdf documentation [DOCDIR]
1356   --psdir=DIR             ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364 _ACEOF
1365 fi
1366
1367 if test -n "$ac_init_help"; then
1368   case $ac_init_help in
1369      short | recursive ) echo "Configuration of OpenSSH Portable:";;
1370    esac
1371   cat <<\_ACEOF
1372
1373 Optional Features:
1374   --disable-option-checking  ignore unrecognized --enable/--with options
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --disable-largefile     omit support for large files
1378   --disable-strip         Disable calling strip(1) on install
1379   --disable-etc-default-login Disable using PATH from /etc/default/login no
1380   --disable-lastlog       disable use of lastlog even if detected no
1381   --disable-utmp          disable use of utmp even if detected no
1382   --disable-utmpx         disable use of utmpx even if detected no
1383   --disable-wtmp          disable use of wtmp even if detected no
1384   --disable-wtmpx         disable use of wtmpx even if detected no
1385   --disable-libutil       disable use of libutil (login() etc.) no
1386   --disable-pututline     disable use of pututline() etc. (uwtmp) no
1387   --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
1388
1389 Optional Packages:
1390   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1391   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1392   --without-stackprotect  Don't use compiler's stack protection
1393   --without-rpath         Disable auto-added -R linker paths
1394   --with-cflags           Specify additional flags to pass to compiler
1395   --with-cppflags         Specify additional flags to pass to preprocessor
1396   --with-ldflags          Specify additional flags to pass to linker
1397   --with-libs             Specify additional libraries to link with
1398   --with-Werror           Build main code with -Werror
1399   --with-solaris-contracts Enable Solaris process contracts (experimental)
1400   --with-solaris-projects Enable Solaris projects (experimental)
1401   --with-osfsia           Enable Digital Unix SIA
1402   --with-zlib=PATH        Use zlib in PATH
1403   --without-zlib-version-check Disable zlib version check
1404   --with-skey[=PATH]      Enable S/Key support (optionally in PATH)
1405   --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1406   --with-libedit[=PATH]   Enable libedit support for sftp
1407   --with-audit=module     Enable audit support (modules=debug,bsm,linux)
1408   --with-ssl-dir=PATH     Specify path to OpenSSL installation
1409   --without-openssl-header-check Disable OpenSSL version consistency check
1410   --with-ssl-engine       Enable OpenSSL (hardware) ENGINE support
1411   --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
1412   --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1413   --with-pam              Enable PAM support
1414   --with-privsep-user=user Specify non-privileged user for privilege separation
1415   --with-sandbox=style    Specify privilege separation sandbox (no, darwin, rlimit, systrace)
1416   --with-selinux          Enable SELinux support
1417   --with-kerberos5=PATH   Enable Kerberos 5 support
1418   --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1419   --with-xauth=PATH       Specify path to xauth program
1420   --with-maildir=/path/to/mail    Specify your system mail directory
1421   --with-mantype=man|cat|doc  Set man page type
1422   --with-md5-passwords    Enable use of MD5 passwords
1423   --without-shadow        Disable shadow password support
1424   --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY
1425   --with-default-path=    Specify default \$PATH environment for server
1426   --with-superuser-path=  Specify different path for super-user
1427   --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
1428   --with-bsd-auth         Enable BSD auth support
1429   --with-pid-dir=PATH     Specify location of ssh.pid file
1430   --with-lastlog=FILE|DIR specify lastlog location common locations
1431
1432 Some influential environment variables:
1433   CC          C compiler command
1434   CFLAGS      C compiler flags
1435   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436               nonstandard directory <lib dir>
1437   LIBS        libraries to pass to the linker, e.g. -l<library>
1438   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439               you have headers in a nonstandard directory <include dir>
1440   CPP         C preprocessor
1441
1442 Use these variables to override the choices made by `configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1444
1445 Report bugs to <openssh-unix-dev@mindrot.org>.
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
1450 if test "$ac_init_help" = "recursive"; then
1451   # If there are subdirs, report their specific --help.
1452   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453     test -d "$ac_dir" ||
1454       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455       continue
1456     ac_builddir=.
1457
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *)
1461   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462   # A ".." for each directory in $ac_dir_suffix.
1463   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464   case $ac_top_builddir_sub in
1465   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467   esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1473
1474 case $srcdir in
1475   .)  # We are building in place.
1476     ac_srcdir=.
1477     ac_top_srcdir=$ac_top_builddir_sub
1478     ac_abs_top_srcdir=$ac_pwd ;;
1479   [\\/]* | ?:[\\/]* )  # Absolute name.
1480     ac_srcdir=$srcdir$ac_dir_suffix;
1481     ac_top_srcdir=$srcdir
1482     ac_abs_top_srcdir=$srcdir ;;
1483   *) # Relative name.
1484     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485     ac_top_srcdir=$ac_top_build_prefix$srcdir
1486     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490     cd "$ac_dir" || { ac_status=$?; continue; }
1491     # Check for guested configure.
1492     if test -f "$ac_srcdir/configure.gnu"; then
1493       echo &&
1494       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495     elif test -f "$ac_srcdir/configure"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure" --help=recursive
1498     else
1499       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500     fi || ac_status=$?
1501     cd "$ac_pwd" || { ac_status=$?; break; }
1502   done
1503 fi
1504
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507   cat <<\_ACEOF
1508 OpenSSH configure Portable
1509 generated by GNU Autoconf 2.67
1510
1511 Copyright (C) 2010 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515   exit
1516 fi
1517
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1521
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1526 {
1527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528   rm -f conftest.$ac_objext
1529   if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532   *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536   (eval "$ac_compile") 2>conftest.err
1537   ac_status=$?
1538   if test -s conftest.err; then
1539     grep -v '^ *+' conftest.err >conftest.er1
1540     cat conftest.er1 >&5
1541     mv -f conftest.er1 conftest.err
1542   fi
1543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544   test $ac_status = 0; } && {
1545          test -z "$ac_c_werror_flag" ||
1546          test ! -s conftest.err
1547        } && test -s conftest.$ac_objext; then :
1548   ac_retval=0
1549 else
1550   $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553         ac_retval=1
1554 fi
1555   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556   as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_compile
1559
1560 # ac_fn_c_try_run LINENO
1561 # ----------------------
1562 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1563 # that executables *can* be run.
1564 ac_fn_c_try_run ()
1565 {
1566   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567   if { { ac_try="$ac_link"
1568 case "(($ac_try" in
1569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570   *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574   (eval "$ac_link") 2>&5
1575   ac_status=$?
1576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1578   { { case "(($ac_try" in
1579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580   *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584   (eval "$ac_try") 2>&5
1585   ac_status=$?
1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587   test $ac_status = 0; }; }; then :
1588   ac_retval=0
1589 else
1590   $as_echo "$as_me: program exited with status $ac_status" >&5
1591        $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1593
1594        ac_retval=$ac_status
1595 fi
1596   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598   as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_run
1601
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } > conftest.i && {
1624          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        }; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632     ac_retval=1
1633 fi
1634   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_cpp
1638
1639 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists and can be compiled using the include files in
1642 # INCLUDES, setting the cache variable VAR accordingly.
1643 ac_fn_c_check_header_compile ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647 $as_echo_n "checking for $2... " >&6; }
1648 if eval "test \"\${$3+set}\"" = set; then :
1649   $as_echo_n "(cached) " >&6
1650 else
1651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h.  */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657   eval "$3=yes"
1658 else
1659   eval "$3=no"
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 fi
1663 eval ac_res=\$$3
1664                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665 $as_echo "$ac_res" >&6; }
1666   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667
1668 } # ac_fn_c_check_header_compile
1669
1670 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1671 # ---------------------------------------------
1672 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1673 # accordingly.
1674 ac_fn_c_check_decl ()
1675 {
1676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677   as_decl_name=`echo $2|sed 's/ *(.*//'`
1678   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1680 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1681 if eval "test \"\${$3+set}\"" = set; then :
1682   $as_echo_n "(cached) " >&6
1683 else
1684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h.  */
1686 $4
1687 int
1688 main ()
1689 {
1690 #ifndef $as_decl_name
1691 #ifdef __cplusplus
1692   (void) $as_decl_use;
1693 #else
1694   (void) $as_decl_name;
1695 #endif
1696 #endif
1697
1698   ;
1699   return 0;
1700 }
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703   eval "$3=yes"
1704 else
1705   eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713
1714 } # ac_fn_c_check_decl
1715
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_link ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext conftest$ac_exeext
1723   if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_link") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest$ac_exeext && {
1742          test "$cross_compiling" = yes ||
1743          $as_test_x conftest$ac_exeext
1744        }; then :
1745   ac_retval=0
1746 else
1747   $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750         ac_retval=1
1751 fi
1752   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754   # interfere with the next link command; also delete a directory that is
1755   # left behind by Apple's compiler.  We do this before executing the actions.
1756   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758   as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_link
1761
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   if eval "test \"\${$3+set}\"" = set; then :
1771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval "test \"\${$3+set}\"" = set; then :
1774   $as_echo_n "(cached) " >&6
1775 fi
1776 eval ac_res=\$$3
1777                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780   # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h.  */
1785 $4
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789   ac_header_compiler=yes
1790 else
1791   ac_header_compiler=no
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1796
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h.  */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805   ac_header_preproc=yes
1806 else
1807   ac_header_preproc=no
1808 fi
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1812
1813 # So?  What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815   yes:no: )
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820     ;;
1821   no:yes:* )
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ( $as_echo "## ------------------------------------------- ##
1833 ## Report this to openssh-unix-dev@mindrot.org ##
1834 ## ------------------------------------------- ##"
1835      ) | sed "s/^/$as_me: WARNING:     /" >&2
1836     ;;
1837 esac
1838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if eval "test \"\${$3+set}\"" = set; then :
1841   $as_echo_n "(cached) " >&6
1842 else
1843   eval "$3=\$ac_header_compiler"
1844 fi
1845 eval ac_res=\$$3
1846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 fi
1849   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850
1851 } # ac_fn_c_check_header_mongrel
1852
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval "test \"\${$3+set}\"" = set; then :
1862   $as_echo_n "(cached) " >&6
1863 else
1864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h.  */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1868 #define $2 innocuous_$2
1869
1870 /* System header to define __stub macros and hopefully few prototypes,
1871     which can conflict with char $2 (); below.
1872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873     <limits.h> exists even on freestanding compilers.  */
1874
1875 #ifdef __STDC__
1876 # include <limits.h>
1877 #else
1878 # include <assert.h>
1879 #endif
1880
1881 #undef $2
1882
1883 /* Override any GCC internal prototype to avoid an error.
1884    Use char because int might match the return type of a GCC
1885    builtin and then its argument prototype would still apply.  */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 char $2 ();
1890 /* The GNU C library defines this for functions which it implements
1891     to always fail with ENOSYS.  Some functions are actually named
1892     something starting with __ and the normal name is an alias.  */
1893 #if defined __stub_$2 || defined __stub___$2
1894 choke me
1895 #endif
1896
1897 int
1898 main ()
1899 {
1900 return $2 ();
1901   ;
1902   return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_link "$LINENO"; then :
1906   eval "$3=yes"
1907 else
1908   eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext \
1911     conftest$ac_exeext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918 } # ac_fn_c_check_func
1919
1920 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1921 # -------------------------------------------
1922 # Tests whether TYPE exists after having included INCLUDES, setting cache
1923 # variable VAR accordingly.
1924 ac_fn_c_check_type ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval "test \"\${$3+set}\"" = set; then :
1930   $as_echo_n "(cached) " >&6
1931 else
1932   eval "$3=no"
1933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h.  */
1935 $4
1936 int
1937 main ()
1938 {
1939 if (sizeof ($2))
1940          return 0;
1941   ;
1942   return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 $4
1949 int
1950 main ()
1951 {
1952 if (sizeof (($2)))
1953             return 0;
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959
1960 else
1961   eval "$3=yes"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 eval ac_res=\$$3
1968                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972 } # ac_fn_c_check_type
1973
1974 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1975 # --------------------------------------------
1976 # Tries to find the compile-time value of EXPR in a program that includes
1977 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1978 # computed
1979 ac_fn_c_compute_int ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   if test "$cross_compiling" = yes; then
1983     # Depending upon the size, compute the lo and hi bounds.
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) >= 0)];
1991 test_array [0] = 0
1992
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   ac_lo=0 ac_mid=0
1999   while :; do
2000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007 test_array [0] = 0
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   ac_hi=$ac_mid; break
2015 else
2016   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2017                         if test $ac_lo -le $ac_mid; then
2018                           ac_lo= ac_hi=
2019                           break
2020                         fi
2021                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024   done
2025 else
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $4
2029 int
2030 main ()
2031 {
2032 static int test_array [1 - 2 * !(($2) < 0)];
2033 test_array [0] = 0
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   ac_hi=-1 ac_mid=-1
2041   while :; do
2042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 $4
2045 int
2046 main ()
2047 {
2048 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2049 test_array [0] = 0
2050
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056   ac_lo=$ac_mid; break
2057 else
2058   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2059                         if test $ac_mid -le $ac_hi; then
2060                           ac_lo= ac_hi=
2061                           break
2062                         fi
2063                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066   done
2067 else
2068   ac_lo= ac_hi=
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 # Binary search between lo and hi bounds.
2074 while test "x$ac_lo" != "x$ac_hi"; do
2075   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 $4
2079 int
2080 main ()
2081 {
2082 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2083 test_array [0] = 0
2084
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090   ac_hi=$ac_mid
2091 else
2092   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 case $ac_lo in #((
2097 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2098 '') ac_retval=1 ;;
2099 esac
2100   else
2101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 $4
2104 static long int longval () { return $2; }
2105 static unsigned long int ulongval () { return $2; }
2106 #include <stdio.h>
2107 #include <stdlib.h>
2108 int
2109 main ()
2110 {
2111
2112   FILE *f = fopen ("conftest.val", "w");
2113   if (! f)
2114     return 1;
2115   if (($2) < 0)
2116     {
2117       long int i = longval ();
2118       if (i != ($2))
2119         return 1;
2120       fprintf (f, "%ld", i);
2121     }
2122   else
2123     {
2124       unsigned long int i = ulongval ();
2125       if (i != ($2))
2126         return 1;
2127       fprintf (f, "%lu", i);
2128     }
2129   /* Do not output a trailing newline, as this causes \r\n confusion
2130      on some platforms.  */
2131   return ferror (f) || fclose (f) != 0;
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_run "$LINENO"; then :
2138   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2139 else
2140   ac_retval=1
2141 fi
2142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2143   conftest.$ac_objext conftest.beam conftest.$ac_ext
2144 rm -f conftest.val
2145
2146   fi
2147   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148   as_fn_set_status $ac_retval
2149
2150 } # ac_fn_c_compute_int
2151
2152 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2153 # ----------------------------------------------------
2154 # Tries to find if the field MEMBER exists in type AGGR, after including
2155 # INCLUDES, setting cache variable VAR accordingly.
2156 ac_fn_c_check_member ()
2157 {
2158   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2160 $as_echo_n "checking for $2.$3... " >&6; }
2161 if eval "test \"\${$4+set}\"" = set; then :
2162   $as_echo_n "(cached) " >&6
2163 else
2164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h.  */
2166 $5
2167 int
2168 main ()
2169 {
2170 static $2 ac_aggr;
2171 if (ac_aggr.$3)
2172 return 0;
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178   eval "$4=yes"
2179 else
2180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h.  */
2182 $5
2183 int
2184 main ()
2185 {
2186 static $2 ac_aggr;
2187 if (sizeof ac_aggr.$3)
2188 return 0;
2189   ;
2190   return 0;
2191 }
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194   eval "$4=yes"
2195 else
2196   eval "$4=no"
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 fi
2202 eval ac_res=\$$4
2203                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 $as_echo "$ac_res" >&6; }
2205   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2206
2207 } # ac_fn_c_check_member
2208 cat >config.log <<_ACEOF
2209 This file contains any messages produced by compilers while
2210 running configure, to aid debugging if configure makes a mistake.
2211
2212 It was created by OpenSSH $as_me Portable, which was
2213 generated by GNU Autoconf 2.67.  Invocation command line was
2214
2215   $ $0 $@
2216
2217 _ACEOF
2218 exec 5>>config.log
2219 {
2220 cat <<_ASUNAME
2221 ## --------- ##
2222 ## Platform. ##
2223 ## --------- ##
2224
2225 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230
2231 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2233
2234 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2235 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2236 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2238 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2239 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2240 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2241
2242 _ASUNAME
2243
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249     $as_echo "PATH: $as_dir"
2250   done
2251 IFS=$as_save_IFS
2252
2253 } >&5
2254
2255 cat >&5 <<_ACEOF
2256
2257
2258 ## ----------- ##
2259 ## Core tests. ##
2260 ## ----------- ##
2261
2262 _ACEOF
2263
2264
2265 # Keep a trace of the command line.
2266 # Strip out --no-create and --no-recursion so they do not pile up.
2267 # Strip out --silent because we don't want to record it for future runs.
2268 # Also quote any args containing shell meta-characters.
2269 # Make two passes to allow for proper duplicate-argument suppression.
2270 ac_configure_args=
2271 ac_configure_args0=
2272 ac_configure_args1=
2273 ac_must_keep_next=false
2274 for ac_pass in 1 2
2275 do
2276   for ac_arg
2277   do
2278     case $ac_arg in
2279     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2280     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2281     | -silent | --silent | --silen | --sile | --sil)
2282       continue ;;
2283     *\'*)
2284       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2285     esac
2286     case $ac_pass in
2287     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2288     2)
2289       as_fn_append ac_configure_args1 " '$ac_arg'"
2290       if test $ac_must_keep_next = true; then
2291         ac_must_keep_next=false # Got value, back to normal.
2292       else
2293         case $ac_arg in
2294           *=* | --config-cache | -C | -disable-* | --disable-* \
2295           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2296           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2297           | -with-* | --with-* | -without-* | --without-* | --x)
2298             case "$ac_configure_args0 " in
2299               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2300             esac
2301             ;;
2302           -* ) ac_must_keep_next=true ;;
2303         esac
2304       fi
2305       as_fn_append ac_configure_args " '$ac_arg'"
2306       ;;
2307     esac
2308   done
2309 done
2310 { ac_configure_args0=; unset ac_configure_args0;}
2311 { ac_configure_args1=; unset ac_configure_args1;}
2312
2313 # When interrupted or exit'd, cleanup temporary files, and complete
2314 # config.log.  We remove comments because anyway the quotes in there
2315 # would cause problems or look ugly.
2316 # WARNING: Use '\'' to represent an apostrophe within the trap.
2317 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2318 trap 'exit_status=$?
2319   # Save into config.log some information that might help in debugging.
2320   {
2321     echo
2322
2323     $as_echo "## ---------------- ##
2324 ## Cache variables. ##
2325 ## ---------------- ##"
2326     echo
2327     # The following way of writing the cache mishandles newlines in values,
2328 (
2329   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2330     eval ac_val=\$$ac_var
2331     case $ac_val in #(
2332     *${as_nl}*)
2333       case $ac_var in #(
2334       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2336       esac
2337       case $ac_var in #(
2338       _ | IFS | as_nl) ;; #(
2339       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2340       *) { eval $ac_var=; unset $ac_var;} ;;
2341       esac ;;
2342     esac
2343   done
2344   (set) 2>&1 |
2345     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2346     *${as_nl}ac_space=\ *)
2347       sed -n \
2348         "s/'\''/'\''\\\\'\'''\''/g;
2349           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2350       ;; #(
2351     *)
2352       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2353       ;;
2354     esac |
2355     sort
2356 )
2357     echo
2358
2359     $as_echo "## ----------------- ##
2360 ## Output variables. ##
2361 ## ----------------- ##"
2362     echo
2363     for ac_var in $ac_subst_vars
2364     do
2365       eval ac_val=\$$ac_var
2366       case $ac_val in
2367       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368       esac
2369       $as_echo "$ac_var='\''$ac_val'\''"
2370     done | sort
2371     echo
2372
2373     if test -n "$ac_subst_files"; then
2374       $as_echo "## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##"
2377       echo
2378       for ac_var in $ac_subst_files
2379       do
2380         eval ac_val=\$$ac_var
2381         case $ac_val in
2382         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383         esac
2384         $as_echo "$ac_var='\''$ac_val'\''"
2385       done | sort
2386       echo
2387     fi
2388
2389     if test -s confdefs.h; then
2390       $as_echo "## ----------- ##
2391 ## confdefs.h. ##
2392 ## ----------- ##"
2393       echo
2394       cat confdefs.h
2395       echo
2396     fi
2397     test "$ac_signal" != 0 &&
2398       $as_echo "$as_me: caught signal $ac_signal"
2399     $as_echo "$as_me: exit $exit_status"
2400   } >&5
2401   rm -f core *.core core.conftest.* &&
2402     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2403     exit $exit_status
2404 ' 0
2405 for ac_signal in 1 2 13 15; do
2406   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 done
2408 ac_signal=0
2409
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2412
2413 $as_echo "/* confdefs.h */" > confdefs.h
2414
2415 # Predefined preprocessor variables.
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2439 _ACEOF
2440
2441
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2444 ac_site_file1=NONE
2445 ac_site_file2=NONE
2446 if test -n "$CONFIG_SITE"; then
2447   # We do not want a PATH search for config.site.
2448   case $CONFIG_SITE in #((
2449     -*)  ac_site_file1=./$CONFIG_SITE;;
2450     */*) ac_site_file1=$CONFIG_SITE;;
2451     *)   ac_site_file1=./$CONFIG_SITE;;
2452   esac
2453 elif test "x$prefix" != xNONE; then
2454   ac_site_file1=$prefix/share/config.site
2455   ac_site_file2=$prefix/etc/config.site
2456 else
2457   ac_site_file1=$ac_default_prefix/share/config.site
2458   ac_site_file2=$ac_default_prefix/etc/config.site
2459 fi
2460 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2461 do
2462   test "x$ac_site_file" = xNONE && continue
2463   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2465 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2466     sed 's/^/| /' "$ac_site_file" >&5
2467     . "$ac_site_file" \
2468       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error $? "failed to load site script $ac_site_file
2471 See \`config.log' for more details" "$LINENO" 5 ; }
2472   fi
2473 done
2474
2475 if test -r "$cache_file"; then
2476   # Some versions of bash will fail to source /dev/null (special files
2477   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2478   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2479     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2480 $as_echo "$as_me: loading cache $cache_file" >&6;}
2481     case $cache_file in
2482       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2483       *)                      . "./$cache_file";;
2484     esac
2485   fi
2486 else
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2488 $as_echo "$as_me: creating cache $cache_file" >&6;}
2489   >$cache_file
2490 fi
2491
2492 # Check that the precious variables saved in the cache have kept the same
2493 # value.
2494 ac_cache_corrupted=false
2495 for ac_var in $ac_precious_vars; do
2496   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2497   eval ac_new_set=\$ac_env_${ac_var}_set
2498   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2499   eval ac_new_val=\$ac_env_${ac_var}_value
2500   case $ac_old_set,$ac_new_set in
2501     set,)
2502       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2503 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2504       ac_cache_corrupted=: ;;
2505     ,set)
2506       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2507 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2508       ac_cache_corrupted=: ;;
2509     ,);;
2510     *)
2511       if test "x$ac_old_val" != "x$ac_new_val"; then
2512         # differences in whitespace do not lead to failure.
2513         ac_old_val_w=`echo x $ac_old_val`
2514         ac_new_val_w=`echo x $ac_new_val`
2515         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2516           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2517 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2518           ac_cache_corrupted=:
2519         else
2520           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2521 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2522           eval $ac_var=\$ac_old_val
2523         fi
2524         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2525 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2526         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2527 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2528       fi;;
2529   esac
2530   # Pass precious variables to config.status.
2531   if test "$ac_new_set" = set; then
2532     case $ac_new_val in
2533     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2534     *) ac_arg=$ac_var=$ac_new_val ;;
2535     esac
2536     case " $ac_configure_args " in
2537       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2538       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2539     esac
2540   fi
2541 done
2542 if $ac_cache_corrupted; then
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2546 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2547   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2548 fi
2549 ## -------------------- ##
2550 ## Main body of script. ##
2551 ## -------------------- ##
2552
2553 ac_ext=c
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558
2559
2560
2561
2562 ac_ext=c
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567
2568
2569 ac_config_headers="$ac_config_headers config.h"
2570
2571 ac_ext=c
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576 if test -n "$ac_tool_prefix"; then
2577   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if test "${ac_cv_prog_CC+set}" = set; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   if test -n "$CC"; then
2585   ac_cv_prog_CC="$CC" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599   done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607 $as_echo "$CC" >&6; }
2608 else
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$ac_cv_prog_CC"; then
2616   ac_ct_CC=$CC
2617   # Extract the first word of "gcc", so it can be a program name with args.
2618 set dummy gcc; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test -n "$ac_ct_CC"; then
2625   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632     for ac_exec_ext in '' $ac_executable_extensions; do
2633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634     ac_cv_prog_ac_ct_CC="gcc"
2635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639   done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647 $as_echo "$ac_ct_CC" >&6; }
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653   if test "x$ac_ct_CC" = x; then
2654     CC=""
2655   else
2656     case $cross_compiling:$ac_tool_warned in
2657 yes:)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2661 esac
2662     CC=$ac_ct_CC
2663   fi
2664 else
2665   CC="$ac_cv_prog_CC"
2666 fi
2667
2668 if test -z "$CC"; then
2669           if test -n "$ac_tool_prefix"; then
2670     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2671 set dummy ${ac_tool_prefix}cc; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if test "${ac_cv_prog_CC+set}" = set; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   if test -n "$CC"; then
2678   ac_cv_prog_CC="$CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685     for ac_exec_ext in '' $ac_executable_extensions; do
2686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687     ac_cv_prog_CC="${ac_tool_prefix}cc"
2688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692   done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706
2707   fi
2708 fi
2709 if test -z "$CC"; then
2710   # Extract the first word of "cc", so it can be a program name with args.
2711 set dummy cc; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_prog_CC+set}" = set; then :
2715   $as_echo_n "(cached) " >&6
2716 else
2717   if test -n "$CC"; then
2718   ac_cv_prog_CC="$CC" # Let the user override the test.
2719 else
2720   ac_prog_rejected=no
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726     for ac_exec_ext in '' $ac_executable_extensions; do
2727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2729        ac_prog_rejected=yes
2730        continue
2731      fi
2732     ac_cv_prog_CC="cc"
2733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737   done
2738 IFS=$as_save_IFS
2739
2740 if test $ac_prog_rejected = yes; then
2741   # We found a bogon in the path, so make sure we never use it.
2742   set dummy $ac_cv_prog_CC
2743   shift
2744   if test $# != 0; then
2745     # We chose a different compiler from the bogus one.
2746     # However, it has the same basename, so the bogon will be chosen
2747     # first if we set CC to just the basename; use the full file name.
2748     shift
2749     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2750   fi
2751 fi
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 $as_echo "$CC" >&6; }
2758 else
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761 fi
2762
2763
2764 fi
2765 if test -z "$CC"; then
2766   if test -n "$ac_tool_prefix"; then
2767   for ac_prog in cl.exe
2768   do
2769     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_CC+set}" = set; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   if test -n "$CC"; then
2777   ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_exec_ext in '' $ac_executable_extensions; do
2785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806     test -n "$CC" && break
2807   done
2808 fi
2809 if test -z "$CC"; then
2810   ac_ct_CC=$CC
2811   for ac_prog in cl.exe
2812 do
2813   # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$ac_ct_CC"; then
2821   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_ac_ct_CC="$ac_prog"
2831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835   done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2844 else
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850   test -n "$ac_ct_CC" && break
2851 done
2852
2853   if test "x$ac_ct_CC" = x; then
2854     CC=""
2855   else
2856     case $cross_compiling:$ac_tool_warned in
2857 yes:)
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2861 esac
2862     CC=$ac_ct_CC
2863   fi
2864 fi
2865
2866 fi
2867
2868
2869 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871 as_fn_error $? "no acceptable C compiler found in \$PATH
2872 See \`config.log' for more details" "$LINENO" 5 ; }
2873
2874 # Provide some information about the compiler.
2875 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2876 set X $ac_compile
2877 ac_compiler=$2
2878 for ac_option in --version -v -V -qversion; do
2879   { { ac_try="$ac_compiler $ac_option >&5"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2887   ac_status=$?
2888   if test -s conftest.err; then
2889     sed '10a\
2890 ... rest of stderr output deleted ...
2891          10q' conftest.err >conftest.er1
2892     cat conftest.er1 >&5
2893   fi
2894   rm -f conftest.er1 conftest.err
2895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896   test $ac_status = 0; }
2897 done
2898
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h.  */
2901
2902 int
2903 main ()
2904 {
2905
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 ac_clean_files_save=$ac_clean_files
2911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2912 # Try to create an executable without -o first, disregard a.out.
2913 # It will help us diagnose broken compilers, and finding out an intuition
2914 # of exeext.
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2916 $as_echo_n "checking whether the C compiler works... " >&6; }
2917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2918
2919 # The possible output files:
2920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2921
2922 ac_rmfiles=
2923 for ac_file in $ac_files
2924 do
2925   case $ac_file in
2926     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2927     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2928   esac
2929 done
2930 rm -f $ac_rmfiles
2931
2932 if { { ac_try="$ac_link_default"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939   (eval "$ac_link_default") 2>&5
2940   ac_status=$?
2941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942   test $ac_status = 0; }; then :
2943   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2945 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2946 # so that the user can short-circuit this test for compilers unknown to
2947 # Autoconf.
2948 for ac_file in $ac_files ''
2949 do
2950   test -f "$ac_file" || continue
2951   case $ac_file in
2952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2953         ;;
2954     [ab].out )
2955         # We found the default executable, but exeext='' is most
2956         # certainly right.
2957         break;;
2958     *.* )
2959         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2960         then :; else
2961            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2962         fi
2963         # We set ac_cv_exeext here because the later test for it is not
2964         # safe: cross compilers may not add the suffix if given an `-o'
2965         # argument, so we may need to know it at that point already.
2966         # Even if this section looks crufty: it has the advantage of
2967         # actually working.
2968         break;;
2969     * )
2970         break;;
2971   esac
2972 done
2973 test "$ac_cv_exeext" = no && ac_cv_exeext=
2974
2975 else
2976   ac_file=''
2977 fi
2978 if test -z "$ac_file"; then :
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 $as_echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error 77 "C compiler cannot create executables
2987 See \`config.log' for more details" "$LINENO" 5 ; }
2988 else
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990 $as_echo "yes" >&6; }
2991 fi
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2993 $as_echo_n "checking for C compiler default output file name... " >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2995 $as_echo "$ac_file" >&6; }
2996 ac_exeext=$ac_cv_exeext
2997
2998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2999 ac_clean_files=$ac_clean_files_save
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3001 $as_echo_n "checking for suffix of executables... " >&6; }
3002 if { { ac_try="$ac_link"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009   (eval "$ac_link") 2>&5
3010   ac_status=$?
3011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012   test $ac_status = 0; }; then :
3013   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3014 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3015 # work properly (i.e., refer to `conftest.exe'), while it won't with
3016 # `rm'.
3017 for ac_file in conftest.exe conftest conftest.*; do
3018   test -f "$ac_file" || continue
3019   case $ac_file in
3020     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3021     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022           break;;
3023     * ) break;;
3024   esac
3025 done
3026 else
3027   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3030 See \`config.log' for more details" "$LINENO" 5 ; }
3031 fi
3032 rm -f conftest conftest$ac_cv_exeext
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3034 $as_echo "$ac_cv_exeext" >&6; }
3035
3036 rm -f conftest.$ac_ext
3037 EXEEXT=$ac_cv_exeext
3038 ac_exeext=$EXEEXT
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h.  */
3041 #include <stdio.h>
3042 int
3043 main ()
3044 {
3045 FILE *f = fopen ("conftest.out", "w");
3046  return ferror (f) || fclose (f) != 0;
3047
3048   ;
3049   return 0;
3050 }
3051 _ACEOF
3052 ac_clean_files="$ac_clean_files conftest.out"
3053 # Check that the compiler produces executables we can run.  If not, either
3054 # the compiler is broken, or we cross compile.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3056 $as_echo_n "checking whether we are cross compiling... " >&6; }
3057 if test "$cross_compiling" != yes; then
3058   { { ac_try="$ac_link"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065   (eval "$ac_link") 2>&5
3066   ac_status=$?
3067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068   test $ac_status = 0; }
3069   if { ac_try='./conftest$ac_cv_exeext'
3070   { { case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079   test $ac_status = 0; }; }; then
3080     cross_compiling=no
3081   else
3082     if test "$cross_compiling" = maybe; then
3083         cross_compiling=yes
3084     else
3085         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $? "cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details" "$LINENO" 5 ; }
3090     fi
3091   fi
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3094 $as_echo "$cross_compiling" >&6; }
3095
3096 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3097 ac_clean_files=$ac_clean_files_save
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3099 $as_echo_n "checking for suffix of object files... " >&6; }
3100 if test "${ac_cv_objext+set}" = set; then :
3101   $as_echo_n "(cached) " >&6
3102 else
3103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h.  */
3105
3106 int
3107 main ()
3108 {
3109
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.o conftest.obj
3115 if { { ac_try="$ac_compile"
3116 case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122   (eval "$ac_compile") 2>&5
3123   ac_status=$?
3124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125   test $ac_status = 0; }; then :
3126   for ac_file in conftest.o conftest.obj conftest.*; do
3127   test -f "$ac_file" || continue;
3128   case $ac_file in
3129     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3130     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3131        break;;
3132   esac
3133 done
3134 else
3135   $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details" "$LINENO" 5 ; }
3142 fi
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3146 $as_echo "$ac_cv_objext" >&6; }
3147 OBJEXT=$ac_cv_objext
3148 ac_objext=$OBJEXT
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160 #ifndef __GNUC__
3161        choke me
3162 #endif
3163
3164   ;
3165   return 0;
3166 }
3167 _ACEOF
3168 if ac_fn_c_try_compile "$LINENO"; then :
3169   ac_compiler_gnu=yes
3170 else
3171   ac_compiler_gnu=no
3172 fi
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3175
3176 fi
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3178 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3179 if test $ac_compiler_gnu = yes; then
3180   GCC=yes
3181 else
3182   GCC=
3183 fi
3184 ac_test_CFLAGS=${CFLAGS+set}
3185 ac_save_CFLAGS=$CFLAGS
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3187 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3188 if test "${ac_cv_prog_cc_g+set}" = set; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   ac_save_c_werror_flag=$ac_c_werror_flag
3192    ac_c_werror_flag=yes
3193    ac_cv_prog_cc_g=no
3194    CFLAGS="-g"
3195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 if ac_fn_c_try_compile "$LINENO"; then :
3207   ac_cv_prog_cc_g=yes
3208 else
3209   CFLAGS=""
3210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 if ac_fn_c_try_compile "$LINENO"; then :
3222
3223 else
3224   ac_c_werror_flag=$ac_save_c_werror_flag
3225          CFLAGS="-g"
3226          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h.  */
3228
3229 int
3230 main ()
3231 {
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 if ac_fn_c_try_compile "$LINENO"; then :
3238   ac_cv_prog_cc_g=yes
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 fi
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 fi
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245    ac_c_werror_flag=$ac_save_c_werror_flag
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3248 $as_echo "$ac_cv_prog_cc_g" >&6; }
3249 if test "$ac_test_CFLAGS" = set; then
3250   CFLAGS=$ac_save_CFLAGS
3251 elif test $ac_cv_prog_cc_g = yes; then
3252   if test "$GCC" = yes; then
3253     CFLAGS="-g -O2"
3254   else
3255     CFLAGS="-g"
3256   fi
3257 else
3258   if test "$GCC" = yes; then
3259     CFLAGS="-O2"
3260   else
3261     CFLAGS=
3262   fi
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3265 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3266 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3267   $as_echo_n "(cached) " >&6
3268 else
3269   ac_cv_prog_cc_c89=no
3270 ac_save_CC=$CC
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h.  */
3273 #include <stdarg.h>
3274 #include <stdio.h>
3275 #include <sys/types.h>
3276 #include <sys/stat.h>
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3281      char **p;
3282      int i;
3283 {
3284   return p[i];
3285 }
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3287 {
3288   char *s;
3289   va_list v;
3290   va_start (v,p);
3291   s = g (p, va_arg (v,int));
3292   va_end (v);
3293   return s;
3294 }
3295
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3297    function prototypes and stuff, but not '\xHH' hex character constants.
3298    These don't provoke an error unfortunately, instead are silently treated
3299    as 'x'.  The following induces an error, until -std is added to get
3300    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3301    array size at least.  It's necessary to write '\x00'==0 to get something
3302    that's true only with -std.  */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306    inside strings and character constants.  */
3307 #define FOO(x) 'x'
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 int argc;
3315 char **argv;
3316 int
3317 main ()
3318 {
3319 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3326 do
3327   CC="$ac_save_CC $ac_arg"
3328   if ac_fn_c_try_compile "$LINENO"; then :
3329   ac_cv_prog_cc_c89=$ac_arg
3330 fi
3331 rm -f core conftest.err conftest.$ac_objext
3332   test "x$ac_cv_prog_cc_c89" != "xno" && break
3333 done
3334 rm -f conftest.$ac_ext
3335 CC=$ac_save_CC
3336
3337 fi
3338 # AC_CACHE_VAL
3339 case "x$ac_cv_prog_cc_c89" in
3340   x)
3341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3342 $as_echo "none needed" >&6; } ;;
3343   xno)
3344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3345 $as_echo "unsupported" >&6; } ;;
3346   *)
3347     CC="$CC $ac_cv_prog_cc_c89"
3348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3349 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3350 esac
3351 if test "x$ac_cv_prog_cc_c89" != xno; then :
3352
3353 fi
3354
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360
3361 ac_aux_dir=
3362 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3363   if test -f "$ac_dir/install-sh"; then
3364     ac_aux_dir=$ac_dir
3365     ac_install_sh="$ac_aux_dir/install-sh -c"
3366     break
3367   elif test -f "$ac_dir/install.sh"; then
3368     ac_aux_dir=$ac_dir
3369     ac_install_sh="$ac_aux_dir/install.sh -c"
3370     break
3371   elif test -f "$ac_dir/shtool"; then
3372     ac_aux_dir=$ac_dir
3373     ac_install_sh="$ac_aux_dir/shtool install -c"
3374     break
3375   fi
3376 done
3377 if test -z "$ac_aux_dir"; then
3378   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3379 fi
3380
3381 # These three variables are undocumented and unsupported,
3382 # and are intended to be withdrawn in a future Autoconf release.
3383 # They can cause serious problems if a builder's source tree is in a directory
3384 # whose full name contains unusual characters.
3385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3387 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3388
3389
3390 # Make sure we can run config.sub.
3391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3392   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3395 $as_echo_n "checking build system type... " >&6; }
3396 if test "${ac_cv_build+set}" = set; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   ac_build_alias=$build_alias
3400 test "x$ac_build_alias" = x &&
3401   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3402 test "x$ac_build_alias" = x &&
3403   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3405   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3406
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3409 $as_echo "$ac_cv_build" >&6; }
3410 case $ac_cv_build in
3411 *-*-*) ;;
3412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3413 esac
3414 build=$ac_cv_build
3415 ac_save_IFS=$IFS; IFS='-'
3416 set x $ac_cv_build
3417 shift
3418 build_cpu=$1
3419 build_vendor=$2
3420 shift; shift
3421 # Remember, the first character of IFS is used to create $*,
3422 # except with old shells:
3423 build_os=$*
3424 IFS=$ac_save_IFS
3425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3426
3427
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3429 $as_echo_n "checking host system type... " >&6; }
3430 if test "${ac_cv_host+set}" = set; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   if test "x$host_alias" = x; then
3434   ac_cv_host=$ac_cv_build
3435 else
3436   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3437     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3438 fi
3439
3440 fi
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3442 $as_echo "$ac_cv_host" >&6; }
3443 case $ac_cv_host in
3444 *-*-*) ;;
3445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3446 esac
3447 host=$ac_cv_host
3448 ac_save_IFS=$IFS; IFS='-'
3449 set x $ac_cv_host
3450 shift
3451 host_cpu=$1
3452 host_vendor=$2
3453 shift; shift
3454 # Remember, the first character of IFS is used to create $*,
3455 # except with old shells:
3456 host_os=$*
3457 IFS=$ac_save_IFS
3458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3459
3460
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3468 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3469 # On Suns, sometimes $CPP names a directory.
3470 if test -n "$CPP" && test -d "$CPP"; then
3471   CPP=
3472 fi
3473 if test -z "$CPP"; then
3474   if test "${ac_cv_prog_CPP+set}" = set; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477       # Double quotes because CPP needs to be expanded
3478     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3479     do
3480       ac_preproc_ok=false
3481 for ac_c_preproc_warn_flag in '' yes
3482 do
3483   # Use a header file that comes with gcc, so configuring glibc
3484   # with a fresh cross-compiler works.
3485   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486   # <limits.h> exists even on freestanding compilers.
3487   # On the NeXT, cc -E runs the code through the compiler's parser,
3488   # not just through cpp. "Syntax error" is here to catch this case.
3489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h.  */
3491 #ifdef __STDC__
3492 # include <limits.h>
3493 #else
3494 # include <assert.h>
3495 #endif
3496                      Syntax error
3497 _ACEOF
3498 if ac_fn_c_try_cpp "$LINENO"; then :
3499
3500 else
3501   # Broken: fails on valid input.
3502 continue
3503 fi
3504 rm -f conftest.err conftest.i conftest.$ac_ext
3505
3506   # OK, works on sane cases.  Now check whether nonexistent headers
3507   # can be detected and how.
3508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h.  */
3510 #include <ac_nonexistent.h>
3511 _ACEOF
3512 if ac_fn_c_try_cpp "$LINENO"; then :
3513   # Broken: success on invalid input.
3514 continue
3515 else
3516   # Passes both tests.
3517 ac_preproc_ok=:
3518 break
3519 fi
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3521
3522 done
3523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3524 rm -f conftest.i conftest.err conftest.$ac_ext
3525 if $ac_preproc_ok; then :
3526   break
3527 fi
3528
3529     done
3530     ac_cv_prog_CPP=$CPP
3531
3532 fi
3533   CPP=$ac_cv_prog_CPP
3534 else
3535   ac_cv_prog_CPP=$CPP
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3538 $as_echo "$CPP" >&6; }
3539 ac_preproc_ok=false
3540 for ac_c_preproc_warn_flag in '' yes
3541 do
3542   # Use a header file that comes with gcc, so configuring glibc
3543   # with a fresh cross-compiler works.
3544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3545   # <limits.h> exists even on freestanding compilers.
3546   # On the NeXT, cc -E runs the code through the compiler's parser,
3547   # not just through cpp. "Syntax error" is here to catch this case.
3548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h.  */
3550 #ifdef __STDC__
3551 # include <limits.h>
3552 #else
3553 # include <assert.h>
3554 #endif
3555                      Syntax error
3556 _ACEOF
3557 if ac_fn_c_try_cpp "$LINENO"; then :
3558
3559 else
3560   # Broken: fails on valid input.
3561 continue
3562 fi
3563 rm -f conftest.err conftest.i conftest.$ac_ext
3564
3565   # OK, works on sane cases.  Now check whether nonexistent headers
3566   # can be detected and how.
3567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h.  */
3569 #include <ac_nonexistent.h>
3570 _ACEOF
3571 if ac_fn_c_try_cpp "$LINENO"; then :
3572   # Broken: success on invalid input.
3573 continue
3574 else
3575   # Passes both tests.
3576 ac_preproc_ok=:
3577 break
3578 fi
3579 rm -f conftest.err conftest.i conftest.$ac_ext
3580
3581 done
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.i conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then :
3585
3586 else
3587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3590 See \`config.log' for more details" "$LINENO" 5 ; }
3591 fi
3592
3593 ac_ext=c
3594 ac_cpp='$CPP $CPPFLAGS'
3595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598
3599
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3601 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3602 if test "${ac_cv_path_GREP+set}" = set; then :
3603   $as_echo_n "(cached) " >&6
3604 else
3605   if test -z "$GREP"; then
3606   ac_path_GREP_found=false
3607   # Loop through the user's path and test for each of PROGNAME-LIST
3608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3610 do
3611   IFS=$as_save_IFS
3612   test -z "$as_dir" && as_dir=.
3613     for ac_prog in grep ggrep; do
3614     for ac_exec_ext in '' $ac_executable_extensions; do
3615       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3616       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3617 # Check for GNU ac_path_GREP and select it if it is found.
3618   # Check for GNU $ac_path_GREP
3619 case `"$ac_path_GREP" --version 2>&1` in
3620 *GNU*)
3621   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3622 *)
3623   ac_count=0
3624   $as_echo_n 0123456789 >"conftest.in"
3625   while :
3626   do
3627     cat "conftest.in" "conftest.in" >"conftest.tmp"
3628     mv "conftest.tmp" "conftest.in"
3629     cp "conftest.in" "conftest.nl"
3630     $as_echo 'GREP' >> "conftest.nl"
3631     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3632     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3633     as_fn_arith $ac_count + 1 && ac_count=$as_val
3634     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3635       # Best one so far, save it but keep looking for a better one
3636       ac_cv_path_GREP="$ac_path_GREP"
3637       ac_path_GREP_max=$ac_count
3638     fi
3639     # 10*(2^10) chars as input seems more than enough
3640     test $ac_count -gt 10 && break
3641   done
3642   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3643 esac
3644
3645       $ac_path_GREP_found && break 3
3646     done
3647   done
3648   done
3649 IFS=$as_save_IFS
3650   if test -z "$ac_cv_path_GREP"; then
3651     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3652   fi
3653 else
3654   ac_cv_path_GREP=$GREP
3655 fi
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3659 $as_echo "$ac_cv_path_GREP" >&6; }
3660  GREP="$ac_cv_path_GREP"
3661
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3664 $as_echo_n "checking for egrep... " >&6; }
3665 if test "${ac_cv_path_EGREP+set}" = set; then :
3666   $as_echo_n "(cached) " >&6
3667 else
3668   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3669    then ac_cv_path_EGREP="$GREP -E"
3670    else
3671      if test -z "$EGREP"; then
3672   ac_path_EGREP_found=false
3673   # Loop through the user's path and test for each of PROGNAME-LIST
3674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679     for ac_prog in egrep; do
3680     for ac_exec_ext in '' $ac_executable_extensions; do
3681       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3682       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3683 # Check for GNU ac_path_EGREP and select it if it is found.
3684   # Check for GNU $ac_path_EGREP
3685 case `"$ac_path_EGREP" --version 2>&1` in
3686 *GNU*)
3687   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3688 *)
3689   ac_count=0
3690   $as_echo_n 0123456789 >"conftest.in"
3691   while :
3692   do
3693     cat "conftest.in" "conftest.in" >"conftest.tmp"
3694     mv "conftest.tmp" "conftest.in"
3695     cp "conftest.in" "conftest.nl"
3696     $as_echo 'EGREP' >> "conftest.nl"
3697     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3698     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3699     as_fn_arith $ac_count + 1 && ac_count=$as_val
3700     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3701       # Best one so far, save it but keep looking for a better one
3702       ac_cv_path_EGREP="$ac_path_EGREP"
3703       ac_path_EGREP_max=$ac_count
3704     fi
3705     # 10*(2^10) chars as input seems more than enough
3706     test $ac_count -gt 10 && break
3707   done
3708   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3709 esac
3710
3711       $ac_path_EGREP_found && break 3
3712     done
3713   done
3714   done
3715 IFS=$as_save_IFS
3716   if test -z "$ac_cv_path_EGREP"; then
3717     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3718   fi
3719 else
3720   ac_cv_path_EGREP=$EGREP
3721 fi
3722
3723    fi
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3726 $as_echo "$ac_cv_path_EGREP" >&6; }
3727  EGREP="$ac_cv_path_EGREP"
3728
3729
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3731 $as_echo_n "checking for ANSI C header files... " >&6; }
3732 if test "${ac_cv_header_stdc+set}" = set; then :
3733   $as_echo_n "(cached) " >&6
3734 else
3735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h.  */
3737 #include <stdlib.h>
3738 #include <stdarg.h>
3739 #include <string.h>
3740 #include <float.h>
3741
3742 int
3743 main ()
3744 {
3745
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751   ac_cv_header_stdc=yes
3752 else
3753   ac_cv_header_stdc=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756
3757 if test $ac_cv_header_stdc = yes; then
3758   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h.  */
3761 #include <string.h>
3762
3763 _ACEOF
3764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765   $EGREP "memchr" >/dev/null 2>&1; then :
3766
3767 else
3768   ac_cv_header_stdc=no
3769 fi
3770 rm -f conftest*
3771
3772 fi
3773
3774 if test $ac_cv_header_stdc = yes; then
3775   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778 #include <stdlib.h>
3779
3780 _ACEOF
3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782   $EGREP "free" >/dev/null 2>&1; then :
3783
3784 else
3785   ac_cv_header_stdc=no
3786 fi
3787 rm -f conftest*
3788
3789 fi
3790
3791 if test $ac_cv_header_stdc = yes; then
3792   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3793   if test "$cross_compiling" = yes; then :
3794   :
3795 else
3796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h.  */
3798 #include <ctype.h>
3799 #include <stdlib.h>
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803 #else
3804 # define ISLOWER(c) \
3805                    (('a' <= (c) && (c) <= 'i') \
3806                      || ('j' <= (c) && (c) <= 'r') \
3807                      || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809 #endif
3810
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3812 int
3813 main ()
3814 {
3815   int i;
3816   for (i = 0; i < 256; i++)
3817     if (XOR (islower (i), ISLOWER (i))
3818         || toupper (i) != TOUPPER (i))
3819       return 2;
3820   return 0;
3821 }
3822 _ACEOF
3823 if ac_fn_c_try_run "$LINENO"; then :
3824
3825 else
3826   ac_cv_header_stdc=no
3827 fi
3828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3829   conftest.$ac_objext conftest.beam conftest.$ac_ext
3830 fi
3831
3832 fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3835 $as_echo "$ac_cv_header_stdc" >&6; }
3836 if test $ac_cv_header_stdc = yes; then
3837
3838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3839
3840 fi
3841
3842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3844                   inttypes.h stdint.h unistd.h
3845 do :
3846   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3848 "
3849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3850   cat >>confdefs.h <<_ACEOF
3851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852 _ACEOF
3853
3854 fi
3855
3856 done
3857
3858
3859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3860 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3861 if test "${ac_cv_c_bigendian+set}" = set; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   ac_cv_c_bigendian=unknown
3865     # See if we're dealing with a universal compiler.
3866     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h.  */
3868 #ifndef __APPLE_CC__
3869                not a universal capable compiler
3870              #endif
3871              typedef int dummy;
3872
3873 _ACEOF
3874 if ac_fn_c_try_compile "$LINENO"; then :
3875
3876         # Check for potential -arch flags.  It is not universal unless
3877         # there are at least two -arch flags with different values.
3878         ac_arch=
3879         ac_prev=
3880         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3881          if test -n "$ac_prev"; then
3882            case $ac_word in
3883              i?86 | x86_64 | ppc | ppc64)
3884                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3885                  ac_arch=$ac_word
3886                else
3887                  ac_cv_c_bigendian=universal
3888                  break
3889                fi
3890                ;;
3891            esac
3892            ac_prev=
3893          elif test "x$ac_word" = "x-arch"; then
3894            ac_prev=arch
3895          fi
3896        done
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899     if test $ac_cv_c_bigendian = unknown; then
3900       # See if sys/param.h defines the BYTE_ORDER macro.
3901       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903 #include <sys/types.h>
3904              #include <sys/param.h>
3905
3906 int
3907 main ()
3908 {
3909 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3910                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3911                      && LITTLE_ENDIAN)
3912               bogus endian macros
3913              #endif
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920   # It does; now see whether it defined to BIG_ENDIAN or not.
3921          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923 #include <sys/types.h>
3924                 #include <sys/param.h>
3925
3926 int
3927 main ()
3928 {
3929 #if BYTE_ORDER != BIG_ENDIAN
3930                  not big endian
3931                 #endif
3932
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938   ac_cv_c_bigendian=yes
3939 else
3940   ac_cv_c_bigendian=no
3941 fi
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 fi
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945     fi
3946     if test $ac_cv_c_bigendian = unknown; then
3947       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3948       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950 #include <limits.h>
3951
3952 int
3953 main ()
3954 {
3955 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3956               bogus endian macros
3957              #endif
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   # It does; now see whether it defined to _BIG_ENDIAN or not.
3965          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h.  */
3967 #include <limits.h>
3968
3969 int
3970 main ()
3971 {
3972 #ifndef _BIG_ENDIAN
3973                  not big endian
3974                 #endif
3975
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981   ac_cv_c_bigendian=yes
3982 else
3983   ac_cv_c_bigendian=no
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988     fi
3989     if test $ac_cv_c_bigendian = unknown; then
3990       # Compile a test program.
3991       if test "$cross_compiling" = yes; then :
3992   # Try to guess by grepping values from an object file.
3993          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h.  */
3995 short int ascii_mm[] =
3996                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3997                 short int ascii_ii[] =
3998                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3999                 int use_ascii (int i) {
4000                   return ascii_mm[i] + ascii_ii[i];
4001                 }
4002                 short int ebcdic_ii[] =
4003                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4004                 short int ebcdic_mm[] =
4005                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4006                 int use_ebcdic (int i) {
4007                   return ebcdic_mm[i] + ebcdic_ii[i];
4008                 }
4009                 extern int foo;
4010
4011 int
4012 main ()
4013 {
4014 return use_ascii (foo) == use_ebcdic (foo);
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4021               ac_cv_c_bigendian=yes
4022             fi
4023             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4024               if test "$ac_cv_c_bigendian" = unknown; then
4025                 ac_cv_c_bigendian=no
4026               else
4027                 # finding both strings is unlikely to happen, but who knows?
4028                 ac_cv_c_bigendian=unknown
4029               fi
4030             fi
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 else
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036 $ac_includes_default
4037 int
4038 main ()
4039 {
4040
4041              /* Are we little or big endian?  From Harbison&Steele.  */
4042              union
4043              {
4044                long int l;
4045                char c[sizeof (long int)];
4046              } u;
4047              u.l = 1;
4048              return u.c[sizeof (long int) - 1] == 1;
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_run "$LINENO"; then :
4055   ac_cv_c_bigendian=no
4056 else
4057   ac_cv_c_bigendian=yes
4058 fi
4059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4060   conftest.$ac_objext conftest.beam conftest.$ac_ext
4061 fi
4062
4063     fi
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4066 $as_echo "$ac_cv_c_bigendian" >&6; }
4067  case $ac_cv_c_bigendian in #(
4068    yes)
4069      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4070 ;; #(
4071    no)
4072       ;; #(
4073    universal)
4074
4075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4076
4077      ;; #(
4078    *)
4079      as_fn_error $? "unknown endianness
4080  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
4081  esac
4082
4083
4084 # Checks for programs.
4085 for ac_prog in gawk mawk nawk awk
4086 do
4087   # Extract the first word of "$ac_prog", so it can be a program name with args.
4088 set dummy $ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if test "${ac_cv_prog_AWK+set}" = set; then :
4092   $as_echo_n "(cached) " >&6
4093 else
4094   if test -n "$AWK"; then
4095   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102     for ac_exec_ext in '' $ac_executable_extensions; do
4103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104     ac_cv_prog_AWK="$ac_prog"
4105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109   done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 AWK=$ac_cv_prog_AWK
4115 if test -n "$AWK"; then
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4117 $as_echo "$AWK" >&6; }
4118 else
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123
4124   test -n "$AWK" && break
4125 done
4126
4127 ac_ext=c
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4133 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4134 # On Suns, sometimes $CPP names a directory.
4135 if test -n "$CPP" && test -d "$CPP"; then
4136   CPP=
4137 fi
4138 if test -z "$CPP"; then
4139   if test "${ac_cv_prog_CPP+set}" = set; then :
4140   $as_echo_n "(cached) " >&6
4141 else
4142       # Double quotes because CPP needs to be expanded
4143     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4144     do
4145       ac_preproc_ok=false
4146 for ac_c_preproc_warn_flag in '' yes
4147 do
4148   # Use a header file that comes with gcc, so configuring glibc
4149   # with a fresh cross-compiler works.
4150   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151   # <limits.h> exists even on freestanding compilers.
4152   # On the NeXT, cc -E runs the code through the compiler's parser,
4153   # not just through cpp. "Syntax error" is here to catch this case.
4154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h.  */
4156 #ifdef __STDC__
4157 # include <limits.h>
4158 #else
4159 # include <assert.h>
4160 #endif
4161                      Syntax error
4162 _ACEOF
4163 if ac_fn_c_try_cpp "$LINENO"; then :
4164
4165 else
4166   # Broken: fails on valid input.
4167 continue
4168 fi
4169 rm -f conftest.err conftest.i conftest.$ac_ext
4170
4171   # OK, works on sane cases.  Now check whether nonexistent headers
4172   # can be detected and how.
4173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h.  */
4175 #include <ac_nonexistent.h>
4176 _ACEOF
4177 if ac_fn_c_try_cpp "$LINENO"; then :
4178   # Broken: success on invalid input.
4179 continue
4180 else
4181   # Passes both tests.
4182 ac_preproc_ok=:
4183 break
4184 fi
4185 rm -f conftest.err conftest.i conftest.$ac_ext
4186
4187 done
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.i conftest.err conftest.$ac_ext
4190 if $ac_preproc_ok; then :
4191   break
4192 fi
4193
4194     done
4195     ac_cv_prog_CPP=$CPP
4196
4197 fi
4198   CPP=$ac_cv_prog_CPP
4199 else
4200   ac_cv_prog_CPP=$CPP
4201 fi
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4203 $as_echo "$CPP" >&6; }
4204 ac_preproc_ok=false
4205 for ac_c_preproc_warn_flag in '' yes
4206 do
4207   # Use a header file that comes with gcc, so configuring glibc
4208   # with a fresh cross-compiler works.
4209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4210   # <limits.h> exists even on freestanding compilers.
4211   # On the NeXT, cc -E runs the code through the compiler's parser,
4212   # not just through cpp. "Syntax error" is here to catch this case.
4213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h.  */
4215 #ifdef __STDC__
4216 # include <limits.h>
4217 #else
4218 # include <assert.h>
4219 #endif
4220                      Syntax error
4221 _ACEOF
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223
4224 else
4225   # Broken: fails on valid input.
4226 continue
4227 fi
4228 rm -f conftest.err conftest.i conftest.$ac_ext
4229
4230   # OK, works on sane cases.  Now check whether nonexistent headers
4231   # can be detected and how.
4232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h.  */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if ac_fn_c_try_cpp "$LINENO"; then :
4237   # Broken: success on invalid input.
4238 continue
4239 else
4240   # Passes both tests.
4241 ac_preproc_ok=:
4242 break
4243 fi
4244 rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246 done
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.i conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then :
4250
4251 else
4252   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4255 See \`config.log' for more details" "$LINENO" 5 ; }
4256 fi
4257
4258 ac_ext=c
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263
4264 if test -n "$ac_tool_prefix"; then
4265   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if test -n "$RANLIB"; then
4273   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280     for ac_exec_ext in '' $ac_executable_extensions; do
4281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287   done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 RANLIB=$ac_cv_prog_RANLIB
4293 if test -n "$RANLIB"; then
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4295 $as_echo "$RANLIB" >&6; }
4296 else
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301
4302 fi
4303 if test -z "$ac_cv_prog_RANLIB"; then
4304   ac_ct_RANLIB=$RANLIB
4305   # Extract the first word of "ranlib", so it can be a program name with args.
4306 set dummy ranlib; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if test -n "$ac_ct_RANLIB"; then
4313   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320     for ac_exec_ext in '' $ac_executable_extensions; do
4321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322     ac_cv_prog_ac_ct_RANLIB="ranlib"
4323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327   done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4333 if test -n "$ac_ct_RANLIB"; then
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4335 $as_echo "$ac_ct_RANLIB" >&6; }
4336 else
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341   if test "x$ac_ct_RANLIB" = x; then
4342     RANLIB=":"
4343   else
4344     case $cross_compiling:$ac_tool_warned in
4345 yes:)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4348 ac_tool_warned=yes ;;
4349 esac
4350     RANLIB=$ac_ct_RANLIB
4351   fi
4352 else
4353   RANLIB="$ac_cv_prog_RANLIB"
4354 fi
4355
4356 # Find a good install program.  We prefer a C program (faster),
4357 # so one script is as good as another.  But avoid the broken or
4358 # incompatible versions:
4359 # SysV /etc/install, /usr/sbin/install
4360 # SunOS /usr/etc/install
4361 # IRIX /sbin/install
4362 # AIX /bin/install
4363 # AmigaOS /C/install, which installs bootblocks on floppy discs
4364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4367 # OS/2's system install, which has a completely different semantic
4368 # ./install, which can be erroneously created by make from ./install.sh.
4369 # Reject install programs that cannot install multiple files.
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4372 if test -z "$INSTALL"; then
4373 if test "${ac_cv_path_install+set}" = set; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381     # Account for people who put trailing slashes in PATH elements.
4382 case $as_dir/ in #((
4383   ./ | .// | /[cC]/* | \
4384   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4385   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4386   /usr/ucb/* ) ;;
4387   *)
4388     # OSF1 and SCO ODT 3.0 have their own names for install.
4389     # Don't use installbsd from OSF since it installs stuff as root
4390     # by default.
4391     for ac_prog in ginstall scoinst install; do
4392       for ac_exec_ext in '' $ac_executable_extensions; do
4393         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4394           if test $ac_prog = install &&
4395             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4396             # AIX install.  It has an incompatible calling convention.
4397             :
4398           elif test $ac_prog = install &&
4399             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4400             # program-specific install script used by HP pwplus--don't use.
4401             :
4402           else
4403             rm -rf conftest.one conftest.two conftest.dir
4404             echo one > conftest.one
4405             echo two > conftest.two
4406             mkdir conftest.dir
4407             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4408               test -s conftest.one && test -s conftest.two &&
4409               test -s conftest.dir/conftest.one &&
4410               test -s conftest.dir/conftest.two
4411             then
4412               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4413               break 3
4414             fi
4415           fi
4416         fi
4417       done
4418     done
4419     ;;
4420 esac
4421
4422   done
4423 IFS=$as_save_IFS
4424
4425 rm -rf conftest.one conftest.two conftest.dir
4426
4427 fi
4428   if test "${ac_cv_path_install+set}" = set; then
4429     INSTALL=$ac_cv_path_install
4430   else
4431     # As a last resort, use the slow shell script.  Don't cache a
4432     # value for INSTALL within a source directory, because that will
4433     # break other packages using the cache if that directory is
4434     # removed, or if the value is a relative name.
4435     INSTALL=$ac_install_sh
4436   fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4439 $as_echo "$INSTALL" >&6; }
4440
4441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4442 # It thinks the first close brace ends the variable substitution.
4443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4444
4445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4446
4447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4450 $as_echo_n "checking for egrep... " >&6; }
4451 if test "${ac_cv_path_EGREP+set}" = set; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4455    then ac_cv_path_EGREP="$GREP -E"
4456    else
4457      if test -z "$EGREP"; then
4458   ac_path_EGREP_found=false
4459   # Loop through the user's path and test for each of PROGNAME-LIST
4460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465     for ac_prog in egrep; do
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4468       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4469 # Check for GNU ac_path_EGREP and select it if it is found.
4470   # Check for GNU $ac_path_EGREP
4471 case `"$ac_path_EGREP" --version 2>&1` in
4472 *GNU*)
4473   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4474 *)
4475   ac_count=0
4476   $as_echo_n 0123456789 >"conftest.in"
4477   while :
4478   do
4479     cat "conftest.in" "conftest.in" >"conftest.tmp"
4480     mv "conftest.tmp" "conftest.in"
4481     cp "conftest.in" "conftest.nl"
4482     $as_echo 'EGREP' >> "conftest.nl"
4483     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485     as_fn_arith $ac_count + 1 && ac_count=$as_val
4486     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4487       # Best one so far, save it but keep looking for a better one
4488       ac_cv_path_EGREP="$ac_path_EGREP"
4489       ac_path_EGREP_max=$ac_count
4490     fi
4491     # 10*(2^10) chars as input seems more than enough
4492     test $ac_count -gt 10 && break
4493   done
4494   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4496
4497       $ac_path_EGREP_found && break 3
4498     done
4499   done
4500   done
4501 IFS=$as_save_IFS
4502   if test -z "$ac_cv_path_EGREP"; then
4503     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504   fi
4505 else
4506   ac_cv_path_EGREP=$EGREP
4507 fi
4508
4509    fi
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4512 $as_echo "$ac_cv_path_EGREP" >&6; }
4513  EGREP="$ac_cv_path_EGREP"
4514
4515
4516 # Extract the first word of "ar", so it can be a program name with args.
4517 set dummy ar; ac_word=$2
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if test "${ac_cv_path_AR+set}" = set; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   case $AR in
4524   [\\/]* | ?:[\\/]*)
4525   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4526   ;;
4527   *)
4528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533     for ac_exec_ext in '' $ac_executable_extensions; do
4534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540   done
4541 IFS=$as_save_IFS
4542
4543   ;;
4544 esac
4545 fi
4546 AR=$ac_cv_path_AR
4547 if test -n "$AR"; then
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4549 $as_echo "$AR" >&6; }
4550 else
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4554
4555
4556 # Extract the first word of "cat", so it can be a program name with args.
4557 set dummy cat; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if test "${ac_cv_path_CAT+set}" = set; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   case $CAT in
4564   [\\/]* | ?:[\\/]*)
4565   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4566   ;;
4567   *)
4568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573     for ac_exec_ext in '' $ac_executable_extensions; do
4574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577     break 2
4578   fi
4579 done
4580   done
4581 IFS=$as_save_IFS
4582
4583   ;;
4584 esac
4585 fi
4586 CAT=$ac_cv_path_CAT
4587 if test -n "$CAT"; then
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4589 $as_echo "$CAT" >&6; }
4590 else
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4593 fi
4594
4595
4596 # Extract the first word of "kill", so it can be a program name with args.
4597 set dummy kill; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_path_KILL+set}" = set; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   case $KILL in
4604   [\\/]* | ?:[\\/]*)
4605   ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4606   ;;
4607   *)
4608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611   IFS=$as_save_IFS
4612   test -z "$as_dir" && as_dir=.
4613     for ac_exec_ext in '' $ac_executable_extensions; do
4614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615     ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617     break 2
4618   fi
4619 done
4620   done
4621 IFS=$as_save_IFS
4622
4623   ;;
4624 esac
4625 fi
4626 KILL=$ac_cv_path_KILL
4627 if test -n "$KILL"; then
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4629 $as_echo "$KILL" >&6; }
4630 else
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4633 fi
4634
4635
4636 for ac_prog in perl5 perl
4637 do
4638   # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_path_PERL+set}" = set; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   case $PERL in
4646   [\\/]* | ?:[\\/]*)
4647   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4648   ;;
4649   *)
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655     for ac_exec_ext in '' $ac_executable_extensions; do
4656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659     break 2
4660   fi
4661 done
4662   done
4663 IFS=$as_save_IFS
4664
4665   ;;
4666 esac
4667 fi
4668 PERL=$ac_cv_path_PERL
4669 if test -n "$PERL"; then
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4671 $as_echo "$PERL" >&6; }
4672 else
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4675 fi
4676
4677
4678   test -n "$PERL" && break
4679 done
4680
4681 # Extract the first word of "sed", so it can be a program name with args.
4682 set dummy sed; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_path_SED+set}" = set; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   case $SED in
4689   [\\/]* | ?:[\\/]*)
4690   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4691   ;;
4692   *)
4693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708   ;;
4709 esac
4710 fi
4711 SED=$ac_cv_path_SED
4712 if test -n "$SED"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4714 $as_echo "$SED" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721
4722 # Extract the first word of "ent", so it can be a program name with args.
4723 set dummy ent; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_path_ENT+set}" = set; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   case $ENT in
4730   [\\/]* | ?:[\\/]*)
4731   ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4732   ;;
4733   *)
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746   done
4747 IFS=$as_save_IFS
4748
4749   ;;
4750 esac
4751 fi
4752 ENT=$ac_cv_path_ENT
4753 if test -n "$ENT"; then
4754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4755 $as_echo "$ENT" >&6; }
4756 else
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762
4763 # Extract the first word of "bash", so it can be a program name with args.
4764 set dummy bash; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4768   $as_echo_n "(cached) " >&6
4769 else
4770   case $TEST_MINUS_S_SH in
4771   [\\/]* | ?:[\\/]*)
4772   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4773   ;;
4774   *)
4775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780     for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787   done
4788 IFS=$as_save_IFS
4789
4790   ;;
4791 esac
4792 fi
4793 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4794 if test -n "$TEST_MINUS_S_SH"; then
4795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4796 $as_echo "$TEST_MINUS_S_SH" >&6; }
4797 else
4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4800 fi
4801
4802
4803 # Extract the first word of "ksh", so it can be a program name with args.
4804 set dummy ksh; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4808   $as_echo_n "(cached) " >&6
4809 else
4810   case $TEST_MINUS_S_SH in
4811   [\\/]* | ?:[\\/]*)
4812   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4813   ;;
4814   *)
4815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818   IFS=$as_save_IFS
4819   test -z "$as_dir" && as_dir=.
4820     for ac_exec_ext in '' $ac_executable_extensions; do
4821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824     break 2
4825   fi
4826 done
4827   done
4828 IFS=$as_save_IFS
4829
4830   ;;
4831 esac
4832 fi
4833 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4834 if test -n "$TEST_MINUS_S_SH"; then
4835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4836 $as_echo "$TEST_MINUS_S_SH" >&6; }
4837 else
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4840 fi
4841
4842
4843 # Extract the first word of "sh", so it can be a program name with args.
4844 set dummy sh; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   case $TEST_MINUS_S_SH in
4851   [\\/]* | ?:[\\/]*)
4852   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4853   ;;
4854   *)
4855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860     for ac_exec_ext in '' $ac_executable_extensions; do
4861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864     break 2
4865   fi
4866 done
4867   done
4868 IFS=$as_save_IFS
4869
4870   ;;
4871 esac
4872 fi
4873 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4874 if test -n "$TEST_MINUS_S_SH"; then
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4876 $as_echo "$TEST_MINUS_S_SH" >&6; }
4877 else
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882
4883 # Extract the first word of "sh", so it can be a program name with args.
4884 set dummy sh; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if test "${ac_cv_path_SH+set}" = set; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   case $SH in
4891   [\\/]* | ?:[\\/]*)
4892   ac_cv_path_SH="$SH" # Let the user override the test with a path.
4893   ;;
4894   *)
4895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900     for ac_exec_ext in '' $ac_executable_extensions; do
4901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907   done
4908 IFS=$as_save_IFS
4909
4910   ;;
4911 esac
4912 fi
4913 SH=$ac_cv_path_SH
4914 if test -n "$SH"; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4916 $as_echo "$SH" >&6; }
4917 else
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923 # Extract the first word of "groff", so it can be a program name with args.
4924 set dummy groff; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_path_GROFF+set}" = set; then :
4928   $as_echo_n "(cached) " >&6
4929 else
4930   case $GROFF in
4931   [\\/]* | ?:[\\/]*)
4932   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
4933   ;;
4934   *)
4935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938   IFS=$as_save_IFS
4939   test -z "$as_dir" && as_dir=.
4940     for ac_exec_ext in '' $ac_executable_extensions; do
4941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
4943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944     break 2
4945   fi
4946 done
4947   done
4948 IFS=$as_save_IFS
4949
4950   ;;
4951 esac
4952 fi
4953 GROFF=$ac_cv_path_GROFF
4954 if test -n "$GROFF"; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4956 $as_echo "$GROFF" >&6; }
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963 # Extract the first word of "nroff", so it can be a program name with args.
4964 set dummy nroff; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_path_NROFF+set}" = set; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   case $NROFF in
4971   [\\/]* | ?:[\\/]*)
4972   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
4973   ;;
4974   *)
4975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_exec_ext in '' $ac_executable_extensions; do
4981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987   done
4988 IFS=$as_save_IFS
4989
4990   ;;
4991 esac
4992 fi
4993 NROFF=$ac_cv_path_NROFF
4994 if test -n "$NROFF"; then
4995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
4996 $as_echo "$NROFF" >&6; }
4997 else
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002
5003 # Extract the first word of "mandoc", so it can be a program name with args.
5004 set dummy mandoc; ac_word=$2
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5006 $as_echo_n "checking for $ac_word... " >&6; }
5007 if test "${ac_cv_path_MANDOC+set}" = set; then :
5008   $as_echo_n "(cached) " >&6
5009 else
5010   case $MANDOC in
5011   [\\/]* | ?:[\\/]*)
5012   ac_cv_path_MANDOC="$MANDOC" # Let the user override the test with a path.
5013   ;;
5014   *)
5015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_exec_ext in '' $ac_executable_extensions; do
5021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022     ac_cv_path_MANDOC="$as_dir/$ac_word$ac_exec_ext"
5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027   done
5028 IFS=$as_save_IFS
5029
5030   ;;
5031 esac
5032 fi
5033 MANDOC=$ac_cv_path_MANDOC
5034 if test -n "$MANDOC"; then
5035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5
5036 $as_echo "$MANDOC" >&6; }
5037 else
5038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042
5043 TEST_SHELL=sh
5044
5045
5046 if test "x$MANDOC" != "x" ; then
5047         MANFMT="$MANDOC"
5048 elif test "x$NROFF" != "x" ; then
5049         MANFMT="$NROFF -mandoc"
5050 elif test "x$GROFF" != "x" ; then
5051         MANFMT="$GROFF -mandoc -Tascii"
5052 else
5053         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no manpage formatted found" >&5
5054 $as_echo "$as_me: WARNING: no manpage formatted found" >&2;}
5055         MANFMT="false"
5056 fi
5057
5058
5059 # Extract the first word of "groupadd", so it can be a program name with args.
5060 set dummy groupadd; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then :
5064   $as_echo_n "(cached) " >&6
5065 else
5066   case $PATH_GROUPADD_PROG in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083   done
5084 IFS=$as_save_IFS
5085
5086   test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
5087   ;;
5088 esac
5089 fi
5090 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
5091 if test -n "$PATH_GROUPADD_PROG"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
5093 $as_echo "$PATH_GROUPADD_PROG" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100 # Extract the first word of "useradd", so it can be a program name with args.
5101 set dummy useradd; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then :
5105   $as_echo_n "(cached) " >&6
5106 else
5107   case $PATH_USERADD_PROG in
5108   [\\/]* | ?:[\\/]*)
5109   ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
5110   ;;
5111   *)
5112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117     for ac_exec_ext in '' $ac_executable_extensions; do
5118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119     ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
5120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124   done
5125 IFS=$as_save_IFS
5126
5127   test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5128   ;;
5129 esac
5130 fi
5131 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5132 if test -n "$PATH_USERADD_PROG"; then
5133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5134 $as_echo "$PATH_USERADD_PROG" >&6; }
5135 else
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5138 fi
5139
5140
5141 # Extract the first word of "pkgmk", so it can be a program name with args.
5142 set dummy pkgmk; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5149   ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165
5166   test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5167 fi
5168 fi
5169 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5170 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5172 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5173 else
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179 if test -x /sbin/sh; then
5180         STARTUP_SCRIPT_SHELL=/sbin/sh
5181
5182 else
5183         STARTUP_SCRIPT_SHELL=/bin/sh
5184
5185 fi
5186
5187 # System features
5188 # Check whether --enable-largefile was given.
5189 if test "${enable_largefile+set}" = set; then :
5190   enableval=$enable_largefile;
5191 fi
5192
5193 if test "$enable_largefile" != no; then
5194
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5196 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5197 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   ac_cv_sys_largefile_CC=no
5201      if test "$GCC" != yes; then
5202        ac_save_CC=$CC
5203        while :; do
5204          # IRIX 6.2 and later do not support large files by default,
5205          # so use the C compiler's -n32 option if that helps.
5206          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h.  */
5208 #include <sys/types.h>
5209  /* Check that off_t can represent 2**63 - 1 correctly.
5210     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5211     since some C++ compilers masquerading as C compilers
5212     incorrectly reject 9223372036854775807.  */
5213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5214   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5215                        && LARGE_OFF_T % 2147483647 == 1)
5216                       ? 1 : -1];
5217 int
5218 main ()
5219 {
5220
5221   ;
5222   return 0;
5223 }
5224 _ACEOF
5225          if ac_fn_c_try_compile "$LINENO"; then :
5226   break
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext
5229          CC="$CC -n32"
5230          if ac_fn_c_try_compile "$LINENO"; then :
5231   ac_cv_sys_largefile_CC=' -n32'; break
5232 fi
5233 rm -f core conftest.err conftest.$ac_objext
5234          break
5235        done
5236        CC=$ac_save_CC
5237        rm -f conftest.$ac_ext
5238     fi
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5241 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5242   if test "$ac_cv_sys_largefile_CC" != no; then
5243     CC=$CC$ac_cv_sys_largefile_CC
5244   fi
5245
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5247 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5248 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5249   $as_echo_n "(cached) " >&6
5250 else
5251   while :; do
5252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h.  */
5254 #include <sys/types.h>
5255  /* Check that off_t can represent 2**63 - 1 correctly.
5256     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257     since some C++ compilers masquerading as C compilers
5258     incorrectly reject 9223372036854775807.  */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261                        && LARGE_OFF_T % 2147483647 == 1)
5262                       ? 1 : -1];
5263 int
5264 main ()
5265 {
5266
5267   ;
5268   return 0;
5269 }
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272   ac_cv_sys_file_offset_bits=no; break
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277 #define _FILE_OFFSET_BITS 64
5278 #include <sys/types.h>
5279  /* Check that off_t can represent 2**63 - 1 correctly.
5280     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5281     since some C++ compilers masquerading as C compilers
5282     incorrectly reject 9223372036854775807.  */
5283 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5284   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5285                        && LARGE_OFF_T % 2147483647 == 1)
5286                       ? 1 : -1];
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 if ac_fn_c_try_compile "$LINENO"; then :
5296   ac_cv_sys_file_offset_bits=64; break
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299   ac_cv_sys_file_offset_bits=unknown
5300   break
5301 done
5302 fi
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5304 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5305 case $ac_cv_sys_file_offset_bits in #(
5306   no | unknown) ;;
5307   *)
5308 cat >>confdefs.h <<_ACEOF
5309 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5310 _ACEOF
5311 ;;
5312 esac
5313 rm -rf conftest*
5314   if test $ac_cv_sys_file_offset_bits = unknown; then
5315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5316 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5317 if test "${ac_cv_sys_large_files+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   while :; do
5321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h.  */
5323 #include <sys/types.h>
5324  /* Check that off_t can represent 2**63 - 1 correctly.
5325     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326     since some C++ compilers masquerading as C compilers
5327     incorrectly reject 9223372036854775807.  */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330                        && LARGE_OFF_T % 2147483647 == 1)
5331                       ? 1 : -1];
5332 int
5333 main ()
5334 {
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 if ac_fn_c_try_compile "$LINENO"; then :
5341   ac_cv_sys_large_files=no; break
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h.  */
5346 #define _LARGE_FILES 1
5347 #include <sys/types.h>
5348  /* Check that off_t can represent 2**63 - 1 correctly.
5349     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350     since some C++ compilers masquerading as C compilers
5351     incorrectly reject 9223372036854775807.  */
5352 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354                        && LARGE_OFF_T % 2147483647 == 1)
5355                       ? 1 : -1];
5356 int
5357 main ()
5358 {
5359
5360   ;
5361   return 0;
5362 }
5363 _ACEOF
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365   ac_cv_sys_large_files=1; break
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368   ac_cv_sys_large_files=unknown
5369   break
5370 done
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5373 $as_echo "$ac_cv_sys_large_files" >&6; }
5374 case $ac_cv_sys_large_files in #(
5375   no | unknown) ;;
5376   *)
5377 cat >>confdefs.h <<_ACEOF
5378 #define _LARGE_FILES $ac_cv_sys_large_files
5379 _ACEOF
5380 ;;
5381 esac
5382 rm -rf conftest*
5383   fi
5384 fi
5385
5386
5387 if test -z "$AR" ; then
5388         as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5389 fi
5390
5391 # Use LOGIN_PROGRAM from environment if possible
5392 if test ! -z "$LOGIN_PROGRAM" ; then
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5396 _ACEOF
5397
5398 else
5399         # Search for login
5400         # Extract the first word of "login", so it can be a program name with args.
5401 set dummy login; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then :
5405   $as_echo_n "(cached) " >&6
5406 else
5407   case $LOGIN_PROGRAM_FALLBACK in
5408   [\\/]* | ?:[\\/]*)
5409   ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5410   ;;
5411   *)
5412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_exec_ext in '' $ac_executable_extensions; do
5418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419     ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424   done
5425 IFS=$as_save_IFS
5426
5427   ;;
5428 esac
5429 fi
5430 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5431 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5433 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5434 else
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439
5440         if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5441                 cat >>confdefs.h <<_ACEOF
5442 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5443 _ACEOF
5444
5445         fi
5446 fi
5447
5448 # Extract the first word of "passwd", so it can be a program name with args.
5449 set dummy passwd; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then :
5453   $as_echo_n "(cached) " >&6
5454 else
5455   case $PATH_PASSWD_PROG in
5456   [\\/]* | ?:[\\/]*)
5457   ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5458   ;;
5459   *)
5460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463   IFS=$as_save_IFS
5464   test -z "$as_dir" && as_dir=.
5465     for ac_exec_ext in '' $ac_executable_extensions; do
5466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467     ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469     break 2
5470   fi
5471 done
5472   done
5473 IFS=$as_save_IFS
5474
5475   ;;
5476 esac
5477 fi
5478 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5479 if test -n "$PATH_PASSWD_PROG"; then
5480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5481 $as_echo "$PATH_PASSWD_PROG" >&6; }
5482 else
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 if test ! -z "$PATH_PASSWD_PROG" ; then
5489
5490 cat >>confdefs.h <<_ACEOF
5491 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5492 _ACEOF
5493
5494 fi
5495
5496 if test -z "$LD" ; then
5497         LD=$CC
5498 fi
5499
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5502 $as_echo_n "checking for inline... " >&6; }
5503 if test "${ac_cv_c_inline+set}" = set; then :
5504   $as_echo_n "(cached) " >&6
5505 else
5506   ac_cv_c_inline=no
5507 for ac_kw in inline __inline__ __inline; do
5508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h.  */
5510 #ifndef __cplusplus
5511 typedef int foo_t;
5512 static $ac_kw foo_t static_foo () {return 0; }
5513 $ac_kw foo_t foo () {return 0; }
5514 #endif
5515
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518   ac_cv_c_inline=$ac_kw
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521   test "$ac_cv_c_inline" != no && break
5522 done
5523
5524 fi
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5526 $as_echo "$ac_cv_c_inline" >&6; }
5527
5528 case $ac_cv_c_inline in
5529   inline | yes) ;;
5530   *)
5531     case $ac_cv_c_inline in
5532       no) ac_val=;;
5533       *) ac_val=$ac_cv_c_inline;;
5534     esac
5535     cat >>confdefs.h <<_ACEOF
5536 #ifndef __cplusplus
5537 #define inline $ac_val
5538 #endif
5539 _ACEOF
5540     ;;
5541 esac
5542
5543
5544 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5545 "
5546 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5547   have_llong_max=1
5548 fi
5549
5550 ac_fn_c_check_decl "$LINENO" "SYSTR_POLICY_KILL" "ac_cv_have_decl_SYSTR_POLICY_KILL" "
5551         #include <sys/types.h>
5552         #include <sys/param.h>
5553         #include <dev/systrace.h>
5554
5555 "
5556 if test "x$ac_cv_have_decl_SYSTR_POLICY_KILL" = x""yes; then :
5557   have_systr_policy_kill=1
5558 fi
5559
5560 ac_fn_c_check_decl "$LINENO" "RLIMIT_NPROC" "ac_cv_have_decl_RLIMIT_NPROC" "
5561         #include <sys/types.h>
5562         #include <sys/resource.h>
5563
5564 "
5565 if test "x$ac_cv_have_decl_RLIMIT_NPROC" = x""yes; then :
5566
5567 $as_echo "#define HAVE_RLIMIT_NPROC /**/" >>confdefs.h
5568
5569 fi
5570
5571
5572 use_stack_protector=1
5573
5574 # Check whether --with-stackprotect was given.
5575 if test "${with_stackprotect+set}" = set; then :
5576   withval=$with_stackprotect;
5577     if test "x$withval" = "xno"; then
5578         use_stack_protector=0
5579     fi
5580 fi
5581
5582
5583
5584 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5585         {
5586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5587 $as_echo_n "checking if $CC supports -Wall... " >&6; }
5588         saved_CFLAGS="$CFLAGS"
5589         CFLAGS="$CFLAGS -Wall"
5590         _define_flag=""
5591         test "x$_define_flag" = "x" && _define_flag="-Wall"
5592         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h.  */
5594 int main(void) { return 0; }
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5598 $as_echo "yes" >&6; }
5599                   CFLAGS="$saved_CFLAGS $_define_flag"
5600 else
5601    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603                   CFLAGS="$saved_CFLAGS"
5604
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 }
5608         {
5609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5610 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5611         saved_CFLAGS="$CFLAGS"
5612         CFLAGS="$CFLAGS -Wpointer-arith"
5613         _define_flag=""
5614         test "x$_define_flag" = "x" && _define_flag="-Wpointer-arith"
5615         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617 int main(void) { return 0; }
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5621 $as_echo "yes" >&6; }
5622                   CFLAGS="$saved_CFLAGS $_define_flag"
5623 else
5624    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626                   CFLAGS="$saved_CFLAGS"
5627
5628 fi
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 }
5631         {
5632         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5633 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5634         saved_CFLAGS="$CFLAGS"
5635         CFLAGS="$CFLAGS -Wuninitialized"
5636         _define_flag=""
5637         test "x$_define_flag" = "x" && _define_flag="-Wuninitialized"
5638         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640 int main(void) { return 0; }
5641 _ACEOF
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5644 $as_echo "yes" >&6; }
5645                   CFLAGS="$saved_CFLAGS $_define_flag"
5646 else
5647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649                   CFLAGS="$saved_CFLAGS"
5650
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 }
5654         {
5655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsign-compare" >&5
5656 $as_echo_n "checking if $CC supports -Wsign-compare... " >&6; }
5657         saved_CFLAGS="$CFLAGS"
5658         CFLAGS="$CFLAGS -Wsign-compare"
5659         _define_flag=""
5660         test "x$_define_flag" = "x" && _define_flag="-Wsign-compare"
5661         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h.  */
5663 int main(void) { return 0; }
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667 $as_echo "yes" >&6; }
5668                   CFLAGS="$saved_CFLAGS $_define_flag"
5669 else
5670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672                   CFLAGS="$saved_CFLAGS"
5673
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 }
5677         {
5678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-security" >&5
5679 $as_echo_n "checking if $CC supports -Wformat-security... " >&6; }
5680         saved_CFLAGS="$CFLAGS"
5681         CFLAGS="$CFLAGS -Wformat-security"
5682         _define_flag=""
5683         test "x$_define_flag" = "x" && _define_flag="-Wformat-security"
5684         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h.  */
5686 int main(void) { return 0; }
5687 _ACEOF
5688 if ac_fn_c_try_compile "$LINENO"; then :
5689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5690 $as_echo "yes" >&6; }
5691                   CFLAGS="$saved_CFLAGS $_define_flag"
5692 else
5693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695                   CFLAGS="$saved_CFLAGS"
5696
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 }
5700         {
5701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-sign" >&5
5702 $as_echo_n "checking if $CC supports -Wpointer-sign... " >&6; }
5703         saved_CFLAGS="$CFLAGS"
5704         CFLAGS="$CFLAGS -Wpointer-sign"
5705         _define_flag="-Wno-pointer-sign"
5706         test "x$_define_flag" = "x" && _define_flag="-Wpointer-sign"
5707         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h.  */
5709 int main(void) { return 0; }
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5713 $as_echo "yes" >&6; }
5714                   CFLAGS="$saved_CFLAGS $_define_flag"
5715 else
5716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5718                   CFLAGS="$saved_CFLAGS"
5719
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 }
5723         {
5724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused-result" >&5
5725 $as_echo_n "checking if $CC supports -Wunused-result... " >&6; }
5726         saved_CFLAGS="$CFLAGS"
5727         CFLAGS="$CFLAGS -Wunused-result"
5728         _define_flag="-Wno-unused-result"
5729         test "x$_define_flag" = "x" && _define_flag="-Wunused-result"
5730         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h.  */
5732 int main(void) { return 0; }
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5736 $as_echo "yes" >&6; }
5737                   CFLAGS="$saved_CFLAGS $_define_flag"
5738 else
5739    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741                   CFLAGS="$saved_CFLAGS"
5742
5743 fi
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 }
5746         {
5747         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
5748 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
5749         saved_CFLAGS="$CFLAGS"
5750         CFLAGS="$CFLAGS -fno-strict-aliasing"
5751         _define_flag=""
5752         test "x$_define_flag" = "x" && _define_flag="-fno-strict-aliasing"
5753         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h.  */
5755 int main(void) { return 0; }
5756 _ACEOF
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5760                   CFLAGS="$saved_CFLAGS $_define_flag"
5761 else
5762    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764                   CFLAGS="$saved_CFLAGS"
5765
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 }
5769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
5770 $as_echo_n "checking gcc version... " >&6; }
5771         GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5772         case $GCC_VER in
5773                 1.*) no_attrib_nonnull=1 ;;
5774                 2.8* | 2.9*)
5775                      no_attrib_nonnull=1
5776                      ;;
5777                 2.*) no_attrib_nonnull=1 ;;
5778                 *) ;;
5779         esac
5780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_VER" >&5
5781 $as_echo "$GCC_VER" >&6; }
5782
5783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5784 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5785         saved_CFLAGS="$CFLAGS"
5786         CFLAGS="$CFLAGS -fno-builtin-memset"
5787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h.  */
5789  #include <string.h>
5790 int
5791 main ()
5792 {
5793  char b[10]; memset(b, 0, sizeof(b));
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 if ac_fn_c_try_link "$LINENO"; then :
5799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5800 $as_echo "yes" >&6; }
5801 else
5802    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804                   CFLAGS="$saved_CFLAGS"
5805
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext \
5808     conftest$ac_exeext conftest.$ac_ext
5809
5810         # -fstack-protector-all doesn't always work for some GCC versions
5811         # and/or platforms, so we test if we can.  If it's not supported
5812         # on a given platform gcc will emit a warning so we use -Werror.
5813         if test "x$use_stack_protector" = "x1"; then
5814             for t in -fstack-protector-all -fstack-protector; do
5815                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5816 $as_echo_n "checking if $CC supports $t... " >&6; }
5817                 saved_CFLAGS="$CFLAGS"
5818                 saved_LDFLAGS="$LDFLAGS"
5819                 CFLAGS="$CFLAGS $t -Werror"
5820                 LDFLAGS="$LDFLAGS $t -Werror"
5821                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h.  */
5823  #include <stdio.h>
5824 int
5825 main ()
5826 {
5827
5828         char x[256];
5829         snprintf(x, sizeof(x), "XXX");
5830
5831   ;
5832   return 0;
5833 }
5834 _ACEOF
5835 if ac_fn_c_try_link "$LINENO"; then :
5836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5837 $as_echo "yes" >&6; }
5838                       CFLAGS="$saved_CFLAGS $t"
5839                       LDFLAGS="$saved_LDFLAGS $t"
5840                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5841 $as_echo_n "checking if $t works... " >&6; }
5842                       if test "$cross_compiling" = yes; then :
5843    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5844 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5845                           break
5846
5847 else
5848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h.  */
5850  #include <stdio.h>
5851 int
5852 main ()
5853 {
5854
5855         char x[256];
5856         snprintf(x, sizeof(x), "XXX");
5857
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 if ac_fn_c_try_run "$LINENO"; then :
5863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5864 $as_echo "yes" >&6; }
5865                           break
5866 else
5867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5869 fi
5870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5871   conftest.$ac_objext conftest.beam conftest.$ac_ext
5872 fi
5873
5874
5875 else
5876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext \
5881     conftest$ac_exeext conftest.$ac_ext
5882                 CFLAGS="$saved_CFLAGS"
5883                 LDFLAGS="$saved_LDFLAGS"
5884             done
5885         fi
5886
5887         if test -z "$have_llong_max"; then
5888                 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5889                 unset ac_cv_have_decl_LLONG_MAX
5890                 saved_CFLAGS="$CFLAGS"
5891                 CFLAGS="$CFLAGS -std=gnu99"
5892                 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5893
5894 "
5895 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5896   have_llong_max=1
5897 else
5898   CFLAGS="$saved_CFLAGS"
5899 fi
5900
5901         fi
5902 fi
5903
5904 if test "x$no_attrib_nonnull" != "x1" ; then
5905
5906 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5907
5908 fi
5909
5910
5911 # Check whether --with-rpath was given.
5912 if test "${with_rpath+set}" = set; then :
5913   withval=$with_rpath;
5914                 if test "x$withval" = "xno" ; then
5915                         need_dash_r=""
5916                 fi
5917                 if test "x$withval" = "xyes" ; then
5918                         need_dash_r=1
5919                 fi
5920
5921
5922 fi
5923
5924
5925 # Allow user to specify flags
5926
5927 # Check whether --with-cflags was given.
5928 if test "${with_cflags+set}" = set; then :
5929   withval=$with_cflags;
5930                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5931                     test "x${withval}" != "xyes"; then
5932                         CFLAGS="$CFLAGS $withval"
5933                 fi
5934
5935
5936 fi
5937
5938
5939 # Check whether --with-cppflags was given.
5940 if test "${with_cppflags+set}" = set; then :
5941   withval=$with_cppflags;
5942                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5943                     test "x${withval}" != "xyes"; then
5944                         CPPFLAGS="$CPPFLAGS $withval"
5945                 fi
5946
5947
5948 fi
5949
5950
5951 # Check whether --with-ldflags was given.
5952 if test "${with_ldflags+set}" = set; then :
5953   withval=$with_ldflags;
5954                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5955                     test "x${withval}" != "xyes"; then
5956                         LDFLAGS="$LDFLAGS $withval"
5957                 fi
5958
5959
5960 fi
5961
5962
5963 # Check whether --with-libs was given.
5964 if test "${with_libs+set}" = set; then :
5965   withval=$with_libs;
5966                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5967                     test "x${withval}" != "xyes"; then
5968                         LIBS="$LIBS $withval"
5969                 fi
5970
5971
5972 fi
5973
5974
5975 # Check whether --with-Werror was given.
5976 if test "${with_Werror+set}" = set; then :
5977   withval=$with_Werror;
5978                 if test -n "$withval"  &&  test "x$withval" != "xno"; then
5979                         werror_flags="-Werror"
5980                         if test "x${withval}" != "xyes"; then
5981                                 werror_flags="$withval"
5982                         fi
5983                 fi
5984
5985
5986 fi
5987
5988
5989 for ac_header in  \
5990         bstring.h \
5991         crypt.h \
5992         crypto/sha2.h \
5993         dirent.h \
5994         endian.h \
5995         features.h \
5996         fcntl.h \
5997         floatingpoint.h \
5998         getopt.h \
5999         glob.h \
6000         ia.h \
6001         iaf.h \
6002         limits.h \
6003         login.h \
6004         maillock.h \
6005         ndir.h \
6006         net/if_tun.h \
6007         netdb.h \
6008         netgroup.h \
6009         pam/pam_appl.h \
6010         paths.h \
6011         poll.h \
6012         pty.h \
6013         readpassphrase.h \
6014         rpc/types.h \
6015         security/pam_appl.h \
6016         sha2.h \
6017         shadow.h \
6018         stddef.h \
6019         stdint.h \
6020         string.h \
6021         strings.h \
6022         sys/audit.h \
6023         sys/bitypes.h \
6024         sys/bsdtty.h \
6025         sys/cdefs.h \
6026         sys/dir.h \
6027         sys/mman.h \
6028         sys/ndir.h \
6029         sys/poll.h \
6030         sys/prctl.h \
6031         sys/pstat.h \
6032         sys/select.h \
6033         sys/stat.h \
6034         sys/stream.h \
6035         sys/stropts.h \
6036         sys/strtio.h \
6037         sys/statvfs.h \
6038         sys/sysmacros.h \
6039         sys/time.h \
6040         sys/timers.h \
6041         sys/un.h \
6042         time.h \
6043         tmpdir.h \
6044         ttyent.h \
6045         ucred.h \
6046         unistd.h \
6047         usersec.h \
6048         util.h \
6049         utime.h \
6050         utmp.h \
6051         utmpx.h \
6052         vis.h \
6053
6054 do :
6055   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6058   cat >>confdefs.h <<_ACEOF
6059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6060 _ACEOF
6061
6062 fi
6063
6064 done
6065
6066
6067 # lastlog.h requires sys/time.h to be included first on Solaris
6068 for ac_header in lastlog.h
6069 do :
6070   ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
6071 #ifdef HAVE_SYS_TIME_H
6072 # include <sys/time.h>
6073 #endif
6074
6075 "
6076 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6077   cat >>confdefs.h <<_ACEOF
6078 #define HAVE_LASTLOG_H 1
6079 _ACEOF
6080
6081 fi
6082
6083 done
6084
6085
6086 # sys/ptms.h requires sys/stream.h to be included first on Solaris
6087 for ac_header in sys/ptms.h
6088 do :
6089   ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
6090 #ifdef HAVE_SYS_STREAM_H
6091 # include <sys/stream.h>
6092 #endif
6093
6094 "
6095 if test "x$ac_cv_header_sys_ptms_h" = x""yes; then :
6096   cat >>confdefs.h <<_ACEOF
6097 #define HAVE_SYS_PTMS_H 1
6098 _ACEOF
6099
6100 fi
6101
6102 done
6103
6104
6105 # login_cap.h requires sys/types.h on NetBSD
6106 for ac_header in login_cap.h
6107 do :
6108   ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
6109 #include <sys/types.h>
6110
6111 "
6112 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
6113   cat >>confdefs.h <<_ACEOF
6114 #define HAVE_LOGIN_CAP_H 1
6115 _ACEOF
6116
6117 fi
6118
6119 done
6120
6121
6122 # older BSDs need sys/param.h before sys/mount.h
6123 for ac_header in sys/mount.h
6124 do :
6125   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
6126 #include <sys/param.h>
6127
6128 "
6129 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
6130   cat >>confdefs.h <<_ACEOF
6131 #define HAVE_SYS_MOUNT_H 1
6132 _ACEOF
6133
6134 fi
6135
6136 done
6137
6138
6139 # Messages for features tested for in target-specific section
6140 SIA_MSG="no"
6141 SPC_MSG="no"
6142 SP_MSG="no"
6143
6144 # Check for some target-specific stuff
6145 case "$host" in
6146 *-*-aix*)
6147         # Some versions of VAC won't allow macro redefinitions at
6148         # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6149         # particularly with older versions of vac or xlc.
6150         # It also throws errors about null macro argments, but these are
6151         # not fatal.
6152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
6153 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
6154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h.  */
6156
6157 #define testmacro foo
6158 #define testmacro bar
6159 int
6160 main ()
6161 {
6162  exit(0);
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 if ac_fn_c_try_compile "$LINENO"; then :
6168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6169 $as_echo "yes" >&6; }
6170 else
6171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173               CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6174               LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6175               CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6176               CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6177
6178
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181
6182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
6183 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
6184         if (test -z "$blibpath"); then
6185                 blibpath="/usr/lib:/lib"
6186         fi
6187         saved_LDFLAGS="$LDFLAGS"
6188         if test "$GCC" = "yes"; then
6189                 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6190         else
6191                 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6192         fi
6193         for tryflags in $flags ;do
6194                 if (test -z "$blibflags"); then
6195                         LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
6196                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h.  */
6198
6199 int
6200 main ()
6201 {
6202
6203   ;
6204   return 0;
6205 }
6206 _ACEOF
6207 if ac_fn_c_try_link "$LINENO"; then :
6208   blibflags=$tryflags
6209 fi
6210 rm -f core conftest.err conftest.$ac_objext \
6211     conftest$ac_exeext conftest.$ac_ext
6212                 fi
6213         done
6214         if (test -z "$blibflags"); then
6215                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6216 $as_echo "not found" >&6; }
6217                 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
6218         else
6219                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
6220 $as_echo "$blibflags" >&6; }
6221         fi
6222         LDFLAGS="$saved_LDFLAGS"
6223                 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
6224 if test "x$ac_cv_func_authenticate" = x""yes; then :
6225
6226 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6227
6228 else
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
6230 $as_echo_n "checking for authenticate in -ls... " >&6; }
6231 if test "${ac_cv_lib_s_authenticate+set}" = set; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   ac_check_lib_save_LIBS=$LIBS
6235 LIBS="-ls  $LIBS"
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h.  */
6238
6239 /* Override any GCC internal prototype to avoid an error.
6240    Use char because int might match the return type of a GCC
6241    builtin and then its argument prototype would still apply.  */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 char authenticate ();
6246 int
6247 main ()
6248 {
6249 return authenticate ();
6250   ;
6251   return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255   ac_cv_lib_s_authenticate=yes
6256 else
6257   ac_cv_lib_s_authenticate=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext \
6260     conftest$ac_exeext conftest.$ac_ext
6261 LIBS=$ac_check_lib_save_LIBS
6262 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
6264 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
6265 if test "x$ac_cv_lib_s_authenticate" = x""yes; then :
6266    $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
6267
6268                                 LIBS="$LIBS -ls"
6269
6270 fi
6271
6272
6273 fi
6274
6275                 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
6276 "
6277 if test "x$ac_cv_have_decl_authenticate" = x""yes; then :
6278   ac_have_decl=1
6279 else
6280   ac_have_decl=0
6281 fi
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
6285 _ACEOF
6286 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
6287 "
6288 if test "x$ac_cv_have_decl_loginrestrictions" = x""yes; then :
6289   ac_have_decl=1
6290 else
6291   ac_have_decl=0
6292 fi
6293
6294 cat >>confdefs.h <<_ACEOF
6295 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
6296 _ACEOF
6297 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
6298 "
6299 if test "x$ac_cv_have_decl_loginsuccess" = x""yes; then :
6300   ac_have_decl=1
6301 else
6302   ac_have_decl=0
6303 fi
6304
6305 cat >>confdefs.h <<_ACEOF
6306 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
6307 _ACEOF
6308 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
6309 "
6310 if test "x$ac_cv_have_decl_passwdexpired" = x""yes; then :
6311   ac_have_decl=1
6312 else
6313   ac_have_decl=0
6314 fi
6315
6316 cat >>confdefs.h <<_ACEOF
6317 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
6318 _ACEOF
6319 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
6320 "
6321 if test "x$ac_cv_have_decl_setauthdb" = x""yes; then :
6322   ac_have_decl=1
6323 else
6324   ac_have_decl=0
6325 fi
6326
6327 cat >>confdefs.h <<_ACEOF
6328 #define HAVE_DECL_SETAUTHDB $ac_have_decl
6329 _ACEOF
6330
6331                 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
6332
6333 "
6334 if test "x$ac_cv_have_decl_loginfailed" = x""yes; then :
6335   ac_have_decl=1
6336 else
6337   ac_have_decl=0
6338 fi
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_DECL_LOGINFAILED $ac_have_decl
6342 _ACEOF
6343 if test $ac_have_decl = 1; then :
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
6345 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
6346             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h.  */
6348  #include <usersec.h>
6349 int
6350 main ()
6351 {
6352  (void)loginfailed("user","host","tty",0);
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6359 $as_echo "yes" >&6; }
6360
6361 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6362
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 fi
6370
6371         for ac_func in getgrset setauthdb
6372 do :
6373   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6374 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6375 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6376   cat >>confdefs.h <<_ACEOF
6377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6378 _ACEOF
6379
6380 fi
6381 done
6382
6383         ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6384               #include <fcntl.h>
6385
6386 "
6387 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
6388
6389 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6390
6391 fi
6392
6393         check_for_aix_broken_getaddrinfo=1
6394
6395 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6396
6397
6398 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6399
6400
6401 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6402
6403
6404 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6405
6406
6407 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6408
6409
6410 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6411
6412
6413 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6414
6415
6416 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6417
6418
6419 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6420
6421         ;;
6422 *-*-cygwin*)
6423         check_for_libcrypt_later=1
6424         LIBS="$LIBS /usr/lib/textreadmode.o"
6425
6426 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6427
6428
6429 $as_echo "#define USE_PIPES 1" >>confdefs.h
6430
6431
6432 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6433
6434
6435 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6436
6437
6438 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6439
6440
6441 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6442
6443
6444 $as_echo "#define SSH_IOBUFSZ 65535" >>confdefs.h
6445
6446
6447 $as_echo "#define FILESYSTEM_NO_BACKSLASH 1" >>confdefs.h
6448
6449         ;;
6450 *-*-dgux*)
6451
6452 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6453
6454         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6455
6456         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6457
6458         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6459
6460         ;;
6461 *-*-darwin*)
6462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6463 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6464         if test "$cross_compiling" = yes; then :
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6466 $as_echo "assume it is working" >&6; }
6467 else
6468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470  #include <mach-o/dyld.h>
6471 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6472                 exit(0);
6473         else
6474                 exit(1);
6475 }
6476
6477 _ACEOF
6478 if ac_fn_c_try_run "$LINENO"; then :
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6480 $as_echo "working" >&6; }
6481 else
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6483 $as_echo "buggy" >&6; }
6484
6485 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6486
6487
6488 fi
6489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6490   conftest.$ac_objext conftest.beam conftest.$ac_ext
6491 fi
6492
6493         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6494
6495         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6496
6497         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6498
6499
6500 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6501
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define BIND_8_COMPAT 1
6505 _ACEOF
6506
6507
6508 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6509
6510
6511 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6512
6513
6514 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6515
6516         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the Security Authorization Session API" >&5
6517 $as_echo_n "checking if we have the Security Authorization Session API... " >&6; }
6518         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h.  */
6520 #include <Security/AuthSession.h>
6521 int
6522 main ()
6523 {
6524 SessionCreate(0, 0);
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530   ac_cv_use_security_session_api="yes"
6531
6532 $as_echo "#define USE_SECURITY_SESSION_API 1" >>confdefs.h
6533
6534                  LIBS="$LIBS -framework Security"
6535                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6536 $as_echo "yes" >&6; }
6537 else
6538   ac_cv_use_security_session_api="no"
6539                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have an in-memory credentials cache" >&5
6544 $as_echo_n "checking if we have an in-memory credentials cache... " >&6; }
6545         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h.  */
6547 #include <Kerberos/Kerberos.h>
6548 int
6549 main ()
6550 {
6551 cc_context_t c;
6552                  (void) cc_initialize (&c, 0, NULL, NULL);
6553   ;
6554   return 0;
6555 }
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558
6559 $as_echo "#define USE_CCAPI 1" >>confdefs.h
6560
6561                  LIBS="$LIBS -framework Security"
6562                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }
6564                  if test "x$ac_cv_use_security_session_api" = "xno"; then
6565                         as_fn_error $? "*** Need a security framework to use the credentials cache API ***" "$LINENO" 5
6566                 fi
6567 else
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 $as_echo "no" >&6; }
6570
6571 fi
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573
6574         ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6575 if test "x$ac_cv_have_decl_AU_IPv4" = x""yes; then :
6576
6577 else
6578
6579 $as_echo "#define AU_IPv4 0" >>confdefs.h
6580
6581             #include <bsm/audit.h>
6582
6583 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6584
6585
6586 fi
6587
6588
6589 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6590
6591         for ac_func in sandbox_init
6592 do :
6593   ac_fn_c_check_func "$LINENO" "sandbox_init" "ac_cv_func_sandbox_init"
6594 if test "x$ac_cv_func_sandbox_init" = x""yes; then :
6595   cat >>confdefs.h <<_ACEOF
6596 #define HAVE_SANDBOX_INIT 1
6597 _ACEOF
6598
6599 fi
6600 done
6601
6602         for ac_header in sandbox.h
6603 do :
6604   ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6605 if test "x$ac_cv_header_sandbox_h" = x""yes; then :
6606   cat >>confdefs.h <<_ACEOF
6607 #define HAVE_SANDBOX_H 1
6608 _ACEOF
6609
6610 fi
6611
6612 done
6613
6614         ;;
6615 *-*-dragonfly*)
6616         SSHDLIBS="$SSHDLIBS -lcrypt"
6617         ;;
6618 *-*-haiku*)
6619     LIBS="$LIBS -lbsd "
6620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
6621 $as_echo_n "checking for socket in -lnetwork... " >&6; }
6622 if test "${ac_cv_lib_network_socket+set}" = set; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625   ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-lnetwork  $LIBS"
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h.  */
6629
6630 /* Override any GCC internal prototype to avoid an error.
6631    Use char because int might match the return type of a GCC
6632    builtin and then its argument prototype would still apply.  */
6633 #ifdef __cplusplus
6634 extern "C"
6635 #endif
6636 char socket ();
6637 int
6638 main ()
6639 {
6640 return socket ();
6641   ;
6642   return 0;
6643 }
6644 _ACEOF
6645 if ac_fn_c_try_link "$LINENO"; then :
6646   ac_cv_lib_network_socket=yes
6647 else
6648   ac_cv_lib_network_socket=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext \
6651     conftest$ac_exeext conftest.$ac_ext
6652 LIBS=$ac_check_lib_save_LIBS
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
6655 $as_echo "$ac_cv_lib_network_socket" >&6; }
6656 if test "x$ac_cv_lib_network_socket" = x""yes; then :
6657   cat >>confdefs.h <<_ACEOF
6658 #define HAVE_LIBNETWORK 1
6659 _ACEOF
6660
6661   LIBS="-lnetwork $LIBS"
6662
6663 fi
6664
6665     $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
6666
6667     MANTYPE=man
6668     ;;
6669 *-*-hpux*)
6670         # first we define all of the options common to all HP-UX releases
6671         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6672         IPADDR_IN_DISPLAY=yes
6673         $as_echo "#define USE_PIPES 1" >>confdefs.h
6674
6675
6676 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6677
6678         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6679
6680
6681 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6682
6683         $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6684
6685         maildir="/var/mail"
6686         LIBS="$LIBS -lsec"
6687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6688 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6689 if test "${ac_cv_lib_xnet_t_error+set}" = set; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692   ac_check_lib_save_LIBS=$LIBS
6693 LIBS="-lxnet  $LIBS"
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h.  */
6696
6697 /* Override any GCC internal prototype to avoid an error.
6698    Use char because int might match the return type of a GCC
6699    builtin and then its argument prototype would still apply.  */
6700 #ifdef __cplusplus
6701 extern "C"
6702 #endif
6703 char t_error ();
6704 int
6705 main ()
6706 {
6707 return t_error ();
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 if ac_fn_c_try_link "$LINENO"; then :
6713   ac_cv_lib_xnet_t_error=yes
6714 else
6715   ac_cv_lib_xnet_t_error=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext \
6718     conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6720 fi
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6722 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6723 if test "x$ac_cv_lib_xnet_t_error" = x""yes; then :
6724   cat >>confdefs.h <<_ACEOF
6725 #define HAVE_LIBXNET 1
6726 _ACEOF
6727
6728   LIBS="-lxnet $LIBS"
6729
6730 else
6731   as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6732 fi
6733
6734
6735         # next, we define all of the options specific to major releases
6736         case "$host" in
6737         *-*-hpux10*)
6738                 if test -z "$GCC"; then
6739                         CFLAGS="$CFLAGS -Ae"
6740                 fi
6741                 ;;
6742         *-*-hpux11*)
6743
6744 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6745
6746
6747 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6748
6749
6750 $as_echo "#define USE_BTMP 1" >>confdefs.h
6751
6752                 check_for_hpux_broken_getaddrinfo=1
6753                 check_for_conflicting_getspnam=1
6754                 ;;
6755         esac
6756
6757         # lastly, we define options specific to minor releases
6758         case "$host" in
6759         *-*-hpux10.26)
6760
6761 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6762
6763                 disable_ptmx_check=yes
6764                 LIBS="$LIBS -lsecpw"
6765                 ;;
6766         esac
6767         ;;
6768 *-*-irix5*)
6769         PATH="$PATH:/usr/etc"
6770
6771 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6772
6773         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6774
6775         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6776
6777         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6778
6779
6780 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6781
6782         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6783
6784         ;;
6785 *-*-irix6*)
6786         PATH="$PATH:/usr/etc"
6787
6788 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6789
6790
6791 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6792
6793
6794 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6795
6796         ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6797 if test "x$ac_cv_func_jlimit_startjob" = x""yes; then :
6798
6799 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6800
6801 fi
6802
6803         $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6804
6805         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6806
6807         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6808
6809         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6810
6811
6812 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6813
6814         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6815
6816         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6817
6818         ;;
6819 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6820         check_for_libcrypt_later=1
6821         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6822
6823         $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6824
6825         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6826
6827
6828 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6829
6830
6831 $as_echo "#define USE_BTMP 1" >>confdefs.h
6832
6833         ;;
6834 *-*-linux*)
6835         no_dev_ptmx=1
6836         check_for_libcrypt_later=1
6837         check_for_openpty_ctty_bug=1
6838
6839 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6840
6841
6842 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6843
6844         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6845
6846
6847 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6848
6849
6850 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6851
6852         $as_echo "#define USE_BTMP 1" >>confdefs.h
6853
6854
6855 $as_echo "#define LINUX_OOM_ADJUST 1" >>confdefs.h
6856
6857         inet6_default_4in6=yes
6858         case `uname -r` in
6859         1.*|2.0.*)
6860
6861 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6862
6863                 ;;
6864         esac
6865         # tun(4) forwarding compat code
6866         for ac_header in linux/if_tun.h
6867 do :
6868   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6869 if test "x$ac_cv_header_linux_if_tun_h" = x""yes; then :
6870   cat >>confdefs.h <<_ACEOF
6871 #define HAVE_LINUX_IF_TUN_H 1
6872 _ACEOF
6873
6874 fi
6875
6876 done
6877
6878         if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6879
6880 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6881
6882
6883 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6884
6885
6886 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6887
6888         fi
6889         ;;
6890 mips-sony-bsd|mips-sony-newsos4)
6891
6892 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6893
6894         SONY=1
6895         ;;
6896 *-*-netbsd*)
6897         check_for_libcrypt_before=1
6898         if test "x$withval" != "xno" ; then
6899                 need_dash_r=1
6900         fi
6901
6902 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6903
6904         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6905 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6906
6907 else
6908
6909 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6910
6911 fi
6912
6913
6914
6915 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6916
6917         ;;
6918 *-*-freebsd*)
6919         check_for_libcrypt_later=1
6920
6921 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6922
6923
6924 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6925
6926         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6927 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6928
6929 else
6930
6931 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6932
6933 fi
6934
6935
6936
6937 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6938
6939         ;;
6940 *-*-bsdi*)
6941         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6942
6943         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6944
6945         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6946
6947         ;;
6948 *-next-*)
6949         conf_lastlog_location="/usr/adm/lastlog"
6950         conf_utmp_location=/etc/utmp
6951         conf_wtmp_location=/usr/adm/wtmp
6952         maildir=/usr/spool/mail
6953
6954 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6955
6956         $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6957
6958         $as_echo "#define USE_PIPES 1" >>confdefs.h
6959
6960
6961 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6962
6963         ;;
6964 *-*-openbsd*)
6965
6966 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6967
6968
6969 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6970
6971
6972 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6973
6974
6975 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6976
6977         ;;
6978 *-*-solaris*)
6979         if test "x$withval" != "xno" ; then
6980                 need_dash_r=1
6981         fi
6982         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6983
6984         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6985
6986
6987 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6988
6989         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6990
6991
6992 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6993
6994         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6995
6996         # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6997
6998 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6999
7000
7001 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7002
7003
7004 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
7005
7006         external_path_file=/etc/default/login
7007         # hardwire lastlog location (can't detect it on some versions)
7008         conf_lastlog_location="/var/adm/lastlog"
7009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
7010 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
7011         sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
7012         if test "$sol2ver" -ge 8; then
7013                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7014 $as_echo "yes" >&6; }
7015                 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
7016
7017
7018 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
7019
7020         else
7021                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023         fi
7024
7025 # Check whether --with-solaris-contracts was given.
7026 if test "${with_solaris_contracts+set}" = set; then :
7027   withval=$with_solaris_contracts;
7028                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
7029 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
7030 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   ac_check_lib_save_LIBS=$LIBS
7034 LIBS="-lcontract  $LIBS"
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h.  */
7037
7038 /* Override any GCC internal prototype to avoid an error.
7039    Use char because int might match the return type of a GCC
7040    builtin and then its argument prototype would still apply.  */
7041 #ifdef __cplusplus
7042 extern "C"
7043 #endif
7044 char ct_tmpl_activate ();
7045 int
7046 main ()
7047 {
7048 return ct_tmpl_activate ();
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 if ac_fn_c_try_link "$LINENO"; then :
7054   ac_cv_lib_contract_ct_tmpl_activate=yes
7055 else
7056   ac_cv_lib_contract_ct_tmpl_activate=no
7057 fi
7058 rm -f core conftest.err conftest.$ac_objext \
7059     conftest$ac_exeext conftest.$ac_ext
7060 LIBS=$ac_check_lib_save_LIBS
7061 fi
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
7063 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
7064 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = x""yes; then :
7065
7066 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
7067
7068                           SSHDLIBS="$SSHDLIBS -lcontract"
7069                           SPC_MSG="yes"
7070 fi
7071
7072
7073 fi
7074
7075
7076 # Check whether --with-solaris-projects was given.
7077 if test "${with_solaris_projects+set}" = set; then :
7078   withval=$with_solaris_projects;
7079                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
7080 $as_echo_n "checking for setproject in -lproject... " >&6; }
7081 if test "${ac_cv_lib_project_setproject+set}" = set; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   ac_check_lib_save_LIBS=$LIBS
7085 LIBS="-lproject  $LIBS"
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h.  */
7088
7089 /* Override any GCC internal prototype to avoid an error.
7090    Use char because int might match the return type of a GCC
7091    builtin and then its argument prototype would still apply.  */
7092 #ifdef __cplusplus
7093 extern "C"
7094 #endif
7095 char setproject ();
7096 int
7097 main ()
7098 {
7099 return setproject ();
7100   ;
7101   return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_link "$LINENO"; then :
7105   ac_cv_lib_project_setproject=yes
7106 else
7107   ac_cv_lib_project_setproject=no
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext \
7110     conftest$ac_exeext conftest.$ac_ext
7111 LIBS=$ac_check_lib_save_LIBS
7112 fi
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
7114 $as_echo "$ac_cv_lib_project_setproject" >&6; }
7115 if test "x$ac_cv_lib_project_setproject" = x""yes; then :
7116
7117 $as_echo "#define USE_SOLARIS_PROJECTS 1" >>confdefs.h
7118
7119                         SSHDLIBS="$SSHDLIBS -lproject"
7120                         SP_MSG="yes"
7121 fi
7122
7123
7124 fi
7125
7126         ;;
7127 *-*-sunos4*)
7128         CPPFLAGS="$CPPFLAGS -DSUNOS4"
7129         for ac_func in getpwanam
7130 do :
7131   ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
7132 if test "x$ac_cv_func_getpwanam" = x""yes; then :
7133   cat >>confdefs.h <<_ACEOF
7134 #define HAVE_GETPWANAM 1
7135 _ACEOF
7136
7137 fi
7138 done
7139
7140         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
7141
7142         conf_utmp_location=/etc/utmp
7143         conf_wtmp_location=/var/adm/wtmp
7144         conf_lastlog_location=/var/adm/lastlog
7145         $as_echo "#define USE_PIPES 1" >>confdefs.h
7146
7147         ;;
7148 *-ncr-sysv*)
7149         LIBS="$LIBS -lc89"
7150         $as_echo "#define USE_PIPES 1" >>confdefs.h
7151
7152         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7153
7154         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7155
7156         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7157
7158         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7159
7160         ;;
7161 *-sni-sysv*)
7162         # /usr/ucblib MUST NOT be searched on ReliantUNIX
7163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7164 $as_echo_n "checking for dlsym in -ldl... " >&6; }
7165 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
7166   $as_echo_n "(cached) " >&6
7167 else
7168   ac_check_lib_save_LIBS=$LIBS
7169 LIBS="-ldl  $LIBS"
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h.  */
7172
7173 /* Override any GCC internal prototype to avoid an error.
7174    Use char because int might match the return type of a GCC
7175    builtin and then its argument prototype would still apply.  */
7176 #ifdef __cplusplus
7177 extern "C"
7178 #endif
7179 char dlsym ();
7180 int
7181 main ()
7182 {
7183 return dlsym ();
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 if ac_fn_c_try_link "$LINENO"; then :
7189   ac_cv_lib_dl_dlsym=yes
7190 else
7191   ac_cv_lib_dl_dlsym=no
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext \
7194     conftest$ac_exeext conftest.$ac_ext
7195 LIBS=$ac_check_lib_save_LIBS
7196 fi
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7198 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7199 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
7200   cat >>confdefs.h <<_ACEOF
7201 #define HAVE_LIBDL 1
7202 _ACEOF
7203
7204   LIBS="-ldl $LIBS"
7205
7206 fi
7207
7208         # -lresolv needs to be at the end of LIBS or DNS lookups break
7209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
7210 $as_echo_n "checking for res_query in -lresolv... " >&6; }
7211 if test "${ac_cv_lib_resolv_res_query+set}" = set; then :
7212   $as_echo_n "(cached) " >&6
7213 else
7214   ac_check_lib_save_LIBS=$LIBS
7215 LIBS="-lresolv  $LIBS"
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h.  */
7218
7219 /* Override any GCC internal prototype to avoid an error.
7220    Use char because int might match the return type of a GCC
7221    builtin and then its argument prototype would still apply.  */
7222 #ifdef __cplusplus
7223 extern "C"
7224 #endif
7225 char res_query ();
7226 int
7227 main ()
7228 {
7229 return res_query ();
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 if ac_fn_c_try_link "$LINENO"; then :
7235   ac_cv_lib_resolv_res_query=yes
7236 else
7237   ac_cv_lib_resolv_res_query=no
7238 fi
7239 rm -f core conftest.err conftest.$ac_objext \
7240     conftest$ac_exeext conftest.$ac_ext
7241 LIBS=$ac_check_lib_save_LIBS
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
7244 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
7245 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then :
7246    LIBS="$LIBS -lresolv"
7247 fi
7248
7249         IPADDR_IN_DISPLAY=yes
7250         $as_echo "#define USE_PIPES 1" >>confdefs.h
7251
7252         $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
7253
7254         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7255
7256         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7257
7258         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7259
7260         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7261
7262         external_path_file=/etc/default/login
7263         # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
7264         # Attention: always take care to bind libsocket and libnsl before libc,
7265         # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
7266         ;;
7267 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7268 *-*-sysv4.2*)
7269         $as_echo "#define USE_PIPES 1" >>confdefs.h
7270
7271         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7272
7273         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7274
7275         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7276
7277
7278 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7279
7280         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7281
7282         ;;
7283 # UnixWare 7.x, OpenUNIX 8
7284 *-*-sysv5*)
7285         CPPFLAGS="$CPPFLAGS -Dvsnprintf=_xvsnprintf -Dsnprintf=_xsnprintf"
7286
7287 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
7288
7289         $as_echo "#define USE_PIPES 1" >>confdefs.h
7290
7291         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7292
7293         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7294
7295         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7296
7297         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7298
7299         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7300
7301         case "$host" in
7302         *-*-sysv5SCO_SV*)       # SCO OpenServer 6.x
7303                 maildir=/var/spool/mail
7304                 TEST_SHELL=/u95/bin/sh
7305
7306 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
7307
7308                 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7309
7310                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
7311 $as_echo_n "checking for getluid in -lprot... " >&6; }
7312 if test "${ac_cv_lib_prot_getluid+set}" = set; then :
7313   $as_echo_n "(cached) " >&6
7314 else
7315   ac_check_lib_save_LIBS=$LIBS
7316 LIBS="-lprot  $LIBS"
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h.  */
7319
7320 /* Override any GCC internal prototype to avoid an error.
7321    Use char because int might match the return type of a GCC
7322    builtin and then its argument prototype would still apply.  */
7323 #ifdef __cplusplus
7324 extern "C"
7325 #endif
7326 char getluid ();
7327 int
7328 main ()
7329 {
7330 return getluid ();
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_link "$LINENO"; then :
7336   ac_cv_lib_prot_getluid=yes
7337 else
7338   ac_cv_lib_prot_getluid=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext \
7341     conftest$ac_exeext conftest.$ac_ext
7342 LIBS=$ac_check_lib_save_LIBS
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
7345 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
7346 if test "x$ac_cv_lib_prot_getluid" = x""yes; then :
7347    LIBS="$LIBS -lprot"
7348                         for ac_func in getluid setluid
7349 do :
7350   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7353   cat >>confdefs.h <<_ACEOF
7354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7355 _ACEOF
7356
7357 fi
7358 done
7359
7360                         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7361
7362                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7363
7364
7365 fi
7366
7367                 ;;
7368         *)      $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
7369
7370                 check_for_libcrypt_later=1
7371                 ;;
7372         esac
7373         ;;
7374 *-*-sysv*)
7375         ;;
7376 # SCO UNIX and OEM versions of SCO UNIX
7377 *-*-sco3.2v4*)
7378         as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
7379         ;;
7380 # SCO OpenServer 5.x
7381 *-*-sco3.2v5*)
7382         if test -z "$GCC"; then
7383                 CFLAGS="$CFLAGS -belf"
7384         fi
7385         LIBS="$LIBS -lprot -lx -ltinfo -lm"
7386         no_dev_ptmx=1
7387         $as_echo "#define USE_PIPES 1" >>confdefs.h
7388
7389         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
7390
7391         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
7392
7393         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7394
7395         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7396
7397         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7398
7399         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7400
7401         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7402
7403         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7404
7405         $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
7406
7407         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
7408
7409         for ac_func in getluid setluid
7410 do :
7411   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7414   cat >>confdefs.h <<_ACEOF
7415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7416 _ACEOF
7417
7418 fi
7419 done
7420
7421         MANTYPE=man
7422         TEST_SHELL=ksh
7423         ;;
7424 *-*-unicosmk*)
7425
7426 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7427
7428         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7429
7430         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7431
7432         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7433
7434         $as_echo "#define USE_PIPES 1" >>confdefs.h
7435
7436         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7437
7438         LDFLAGS="$LDFLAGS"
7439         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7440         MANTYPE=cat
7441         ;;
7442 *-*-unicosmp*)
7443         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7444
7445         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7446
7447         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7448
7449         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
7450
7451         $as_echo "#define USE_PIPES 1" >>confdefs.h
7452
7453         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7454
7455         LDFLAGS="$LDFLAGS"
7456         LIBS="$LIBS -lgen -lacid -ldb"
7457         MANTYPE=cat
7458         ;;
7459 *-*-unicos*)
7460         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7461
7462         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7463
7464         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7465
7466         $as_echo "#define USE_PIPES 1" >>confdefs.h
7467
7468         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7469
7470         $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
7471
7472         LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
7473         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
7474         MANTYPE=cat
7475         ;;
7476 *-dec-osf*)
7477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
7478 $as_echo_n "checking for Digital Unix SIA... " >&6; }
7479         no_osfsia=""
7480
7481 # Check whether --with-osfsia was given.
7482 if test "${with_osfsia+set}" = set; then :
7483   withval=$with_osfsia;
7484                         if test "x$withval" = "xno" ; then
7485                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7486 $as_echo "disabled" >&6; }
7487                                 no_osfsia=1
7488                         fi
7489
7490 fi
7491
7492         if test -z "$no_osfsia" ; then
7493                 if test -f /etc/sia/matrix.conf; then
7494                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7495 $as_echo "yes" >&6; }
7496
7497 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7498
7499
7500 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7501
7502                         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7503
7504                         LIBS="$LIBS -lsecurity -ldb -lm -laud"
7505                         SIA_MSG="yes"
7506                 else
7507                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509
7510 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7511
7512                 fi
7513         fi
7514         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7515
7516         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7517
7518         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7519
7520         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7521
7522
7523 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7524
7525         ;;
7526
7527 *-*-nto-qnx*)
7528         $as_echo "#define USE_PIPES 1" >>confdefs.h
7529
7530         $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7531
7532
7533 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7534
7535
7536 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7537
7538
7539 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7540
7541         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7542
7543         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7544
7545
7546 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7547
7548         enable_etc_default_login=no     # has incompatible /etc/default/login
7549         case "$host" in
7550         *-*-nto-qnx6*)
7551                 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7552
7553                 ;;
7554         esac
7555         ;;
7556
7557 *-*-ultrix*)
7558
7559 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7560
7561
7562 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7563
7564         $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7565
7566
7567 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7568
7569         ;;
7570
7571 *-*-lynxos)
7572         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7573         $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7574
7575
7576 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7577
7578         ;;
7579 esac
7580
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7582 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7583 if test "$cross_compiling" = yes; then :
7584         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7585 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7586
7587 else
7588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h.  */
7590  #include <stdio.h>
7591 int
7592 main ()
7593 {
7594  exit(0);
7595   ;
7596   return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_run "$LINENO"; then :
7600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7601 $as_echo "yes" >&6; }
7602 else
7603
7604                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606                 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7607
7608 fi
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610   conftest.$ac_objext conftest.beam conftest.$ac_ext
7611 fi
7612
7613
7614 # Checks for libraries.
7615 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7616 if test "x$ac_cv_func_yp_match" = x""yes; then :
7617
7618 else
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7620 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7621 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then :
7622   $as_echo_n "(cached) " >&6
7623 else
7624   ac_check_lib_save_LIBS=$LIBS
7625 LIBS="-lnsl  $LIBS"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h.  */
7628
7629 /* Override any GCC internal prototype to avoid an error.
7630    Use char because int might match the return type of a GCC
7631    builtin and then its argument prototype would still apply.  */
7632 #ifdef __cplusplus
7633 extern "C"
7634 #endif
7635 char yp_match ();
7636 int
7637 main ()
7638 {
7639 return yp_match ();
7640   ;
7641   return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"; then :
7645   ac_cv_lib_nsl_yp_match=yes
7646 else
7647   ac_cv_lib_nsl_yp_match=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext \
7650     conftest$ac_exeext conftest.$ac_ext
7651 LIBS=$ac_check_lib_save_LIBS
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7654 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7655 if test "x$ac_cv_lib_nsl_yp_match" = x""yes; then :
7656   cat >>confdefs.h <<_ACEOF
7657 #define HAVE_LIBNSL 1
7658 _ACEOF
7659
7660   LIBS="-lnsl $LIBS"
7661
7662 fi
7663
7664 fi
7665
7666 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7667 if test "x$ac_cv_func_setsockopt" = x""yes; then :
7668
7669 else
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7671 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7672 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675   ac_check_lib_save_LIBS=$LIBS
7676 LIBS="-lsocket  $LIBS"
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h.  */
7679
7680 /* Override any GCC internal prototype to avoid an error.
7681    Use char because int might match the return type of a GCC
7682    builtin and then its argument prototype would still apply.  */
7683 #ifdef __cplusplus
7684 extern "C"
7685 #endif
7686 char setsockopt ();
7687 int
7688 main ()
7689 {
7690 return setsockopt ();
7691   ;
7692   return 0;
7693 }
7694 _ACEOF
7695 if ac_fn_c_try_link "$LINENO"; then :
7696   ac_cv_lib_socket_setsockopt=yes
7697 else
7698   ac_cv_lib_socket_setsockopt=no
7699 fi
7700 rm -f core conftest.err conftest.$ac_objext \
7701     conftest$ac_exeext conftest.$ac_ext
7702 LIBS=$ac_check_lib_save_LIBS
7703 fi
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7705 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7706 if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
7707   cat >>confdefs.h <<_ACEOF
7708 #define HAVE_LIBSOCKET 1
7709 _ACEOF
7710
7711   LIBS="-lsocket $LIBS"
7712
7713 fi
7714
7715 fi
7716
7717
7718 for ac_func in dirname
7719 do :
7720   ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7721 if test "x$ac_cv_func_dirname" = x""yes; then :
7722   cat >>confdefs.h <<_ACEOF
7723 #define HAVE_DIRNAME 1
7724 _ACEOF
7725  for ac_header in libgen.h
7726 do :
7727   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7728 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7729   cat >>confdefs.h <<_ACEOF
7730 #define HAVE_LIBGEN_H 1
7731 _ACEOF
7732
7733 fi
7734
7735 done
7736
7737 else
7738
7739         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7740 $as_echo_n "checking for dirname in -lgen... " >&6; }
7741 if test "${ac_cv_lib_gen_dirname+set}" = set; then :
7742   $as_echo_n "(cached) " >&6
7743 else
7744   ac_check_lib_save_LIBS=$LIBS
7745 LIBS="-lgen  $LIBS"
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h.  */
7748
7749 /* Override any GCC internal prototype to avoid an error.
7750    Use char because int might match the return type of a GCC
7751    builtin and then its argument prototype would still apply.  */
7752 #ifdef __cplusplus
7753 extern "C"
7754 #endif
7755 char dirname ();
7756 int
7757 main ()
7758 {
7759 return dirname ();
7760   ;
7761   return 0;
7762 }
7763 _ACEOF
7764 if ac_fn_c_try_link "$LINENO"; then :
7765   ac_cv_lib_gen_dirname=yes
7766 else
7767   ac_cv_lib_gen_dirname=no
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext \
7770     conftest$ac_exeext conftest.$ac_ext
7771 LIBS=$ac_check_lib_save_LIBS
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7774 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7775 if test "x$ac_cv_lib_gen_dirname" = x""yes; then :
7776
7777                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7778 $as_echo_n "checking for broken dirname... " >&6; }
7779 if test "${ac_cv_have_broken_dirname+set}" = set; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782
7783                         save_LIBS="$LIBS"
7784                         LIBS="$LIBS -lgen"
7785                         if test "$cross_compiling" = yes; then :
7786    ac_cv_have_broken_dirname="no"
7787 else
7788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h.  */
7790
7791 #include <libgen.h>
7792 #include <string.h>
7793
7794 int main(int argc, char **argv) {
7795     char *s, buf[32];
7796
7797     strncpy(buf,"/etc", 32);
7798     s = dirname(buf);
7799     if (!s || strncmp(s, "/", 32) != 0) {
7800         exit(1);
7801     } else {
7802         exit(0);
7803     }
7804 }
7805
7806 _ACEOF
7807 if ac_fn_c_try_run "$LINENO"; then :
7808    ac_cv_have_broken_dirname="no"
7809 else
7810    ac_cv_have_broken_dirname="yes"
7811 fi
7812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7813   conftest.$ac_objext conftest.beam conftest.$ac_ext
7814 fi
7815
7816                         LIBS="$save_LIBS"
7817
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7820 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7821                 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7822                         LIBS="$LIBS -lgen"
7823                         $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7824
7825                         for ac_header in libgen.h
7826 do :
7827   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7828 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7829   cat >>confdefs.h <<_ACEOF
7830 #define HAVE_LIBGEN_H 1
7831 _ACEOF
7832
7833 fi
7834
7835 done
7836
7837                 fi
7838
7839 fi
7840
7841
7842 fi
7843 done
7844
7845
7846 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7847 if test "x$ac_cv_func_getspnam" = x""yes; then :
7848
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7851 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7852 if test "${ac_cv_lib_gen_getspnam+set}" = set; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855   ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-lgen  $LIBS"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859
7860 /* Override any GCC internal prototype to avoid an error.
7861    Use char because int might match the return type of a GCC
7862    builtin and then its argument prototype would still apply.  */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char getspnam ();
7867 int
7868 main ()
7869 {
7870 return getspnam ();
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876   ac_cv_lib_gen_getspnam=yes
7877 else
7878   ac_cv_lib_gen_getspnam=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext \
7881     conftest$ac_exeext conftest.$ac_ext
7882 LIBS=$ac_check_lib_save_LIBS
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7885 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7886 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then :
7887   LIBS="$LIBS -lgen"
7888 fi
7889
7890 fi
7891
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7893 $as_echo_n "checking for library containing basename... " >&6; }
7894 if test "${ac_cv_search_basename+set}" = set; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   ac_func_search_save_LIBS=$LIBS
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h.  */
7900
7901 /* Override any GCC internal prototype to avoid an error.
7902    Use char because int might match the return type of a GCC
7903    builtin and then its argument prototype would still apply.  */
7904 #ifdef __cplusplus
7905 extern "C"
7906 #endif
7907 char basename ();
7908 int
7909 main ()
7910 {
7911 return basename ();
7912   ;
7913   return 0;
7914 }
7915 _ACEOF
7916 for ac_lib in '' gen; do
7917   if test -z "$ac_lib"; then
7918     ac_res="none required"
7919   else
7920     ac_res=-l$ac_lib
7921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7922   fi
7923   if ac_fn_c_try_link "$LINENO"; then :
7924   ac_cv_search_basename=$ac_res
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext \
7927     conftest$ac_exeext
7928   if test "${ac_cv_search_basename+set}" = set; then :
7929   break
7930 fi
7931 done
7932 if test "${ac_cv_search_basename+set}" = set; then :
7933
7934 else
7935   ac_cv_search_basename=no
7936 fi
7937 rm conftest.$ac_ext
7938 LIBS=$ac_func_search_save_LIBS
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7941 $as_echo "$ac_cv_search_basename" >&6; }
7942 ac_res=$ac_cv_search_basename
7943 if test "$ac_res" != no; then :
7944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7945
7946 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7947
7948 fi
7949
7950
7951
7952 # Check whether --with-zlib was given.
7953 if test "${with_zlib+set}" = set; then :
7954   withval=$with_zlib;  if test "x$withval" = "xno" ; then
7955                 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7956           elif test "x$withval" != "xyes"; then
7957                 if test -d "$withval/lib"; then
7958                         if test -n "${need_dash_r}"; then
7959                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7960                         else
7961                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7962                         fi
7963                 else
7964                         if test -n "${need_dash_r}"; then
7965                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7966                         else
7967                                 LDFLAGS="-L${withval} ${LDFLAGS}"
7968                         fi
7969                 fi
7970                 if test -d "$withval/include"; then
7971                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7972                 else
7973                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
7974                 fi
7975         fi
7976
7977 fi
7978
7979
7980 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7981 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7982
7983 else
7984   as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7985 fi
7986
7987
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7989 $as_echo_n "checking for deflate in -lz... " >&6; }
7990 if test "${ac_cv_lib_z_deflate+set}" = set; then :
7991   $as_echo_n "(cached) " >&6
7992 else
7993   ac_check_lib_save_LIBS=$LIBS
7994 LIBS="-lz  $LIBS"
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h.  */
7997
7998 /* Override any GCC internal prototype to avoid an error.
7999    Use char because int might match the return type of a GCC
8000    builtin and then its argument prototype would still apply.  */
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 char deflate ();
8005 int
8006 main ()
8007 {
8008 return deflate ();
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 if ac_fn_c_try_link "$LINENO"; then :
8014   ac_cv_lib_z_deflate=yes
8015 else
8016   ac_cv_lib_z_deflate=no
8017 fi
8018 rm -f core conftest.err conftest.$ac_objext \
8019     conftest$ac_exeext conftest.$ac_ext
8020 LIBS=$ac_check_lib_save_LIBS
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
8023 $as_echo "$ac_cv_lib_z_deflate" >&6; }
8024 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
8025   cat >>confdefs.h <<_ACEOF
8026 #define HAVE_LIBZ 1
8027 _ACEOF
8028
8029   LIBS="-lz $LIBS"
8030
8031 else
8032
8033                 saved_CPPFLAGS="$CPPFLAGS"
8034                 saved_LDFLAGS="$LDFLAGS"
8035                 save_LIBS="$LIBS"
8036                                 if test -n "${need_dash_r}"; then
8037                         LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
8038                 else
8039                         LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
8040                 fi
8041                 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
8042                 LIBS="$LIBS -lz"
8043                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h.  */
8045
8046 /* Override any GCC internal prototype to avoid an error.
8047    Use char because int might match the return type of a GCC
8048    builtin and then its argument prototype would still apply.  */
8049 #ifdef __cplusplus
8050 extern "C"
8051 #endif
8052 char deflate ();
8053 int
8054 main ()
8055 {
8056 return deflate ();
8057   ;
8058   return 0;
8059 }
8060 _ACEOF
8061 if ac_fn_c_try_link "$LINENO"; then :
8062   $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
8063
8064 else
8065
8066                                 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
8067
8068
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext \
8071     conftest$ac_exeext conftest.$ac_ext
8072
8073
8074 fi
8075
8076
8077
8078 # Check whether --with-zlib-version-check was given.
8079 if test "${with_zlib_version_check+set}" = set; then :
8080   withval=$with_zlib_version_check;   if test "x$withval" = "xno" ; then
8081                 zlib_check_nonfatal=1
8082            fi
8083
8084
8085 fi
8086
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
8089 $as_echo_n "checking for possibly buggy zlib... " >&6; }
8090 if test "$cross_compiling" = yes; then :
8091         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
8092 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
8093
8094 else
8095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h.  */
8097
8098 #include <stdio.h>
8099 #include <zlib.h>
8100
8101 int
8102 main ()
8103 {
8104
8105         int a=0, b=0, c=0, d=0, n, v;
8106         n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
8107         if (n != 3 && n != 4)
8108                 exit(1);
8109         v = a*1000000 + b*10000 + c*100 + d;
8110         fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
8111
8112         /* 1.1.4 is OK */
8113         if (a == 1 && b == 1 && c >= 4)
8114                 exit(0);
8115
8116         /* 1.2.3 and up are OK */
8117         if (v >= 1020300)
8118                 exit(0);
8119
8120         exit(2);
8121
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 if ac_fn_c_try_run "$LINENO"; then :
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129 else
8130    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8131 $as_echo "yes" >&6; }
8132           if test -z "$zlib_check_nonfatal" ; then
8133                 as_fn_error $? "*** zlib too old - check config.log ***
8134 Your reported zlib version has known security problems.  It's possible your
8135 vendor has fixed these problems without changing the version number.  If you
8136 are sure this is the case, you can disable the check by running
8137 \"./configure --without-zlib-version-check\".
8138 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
8139 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
8140           else
8141                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
8142 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
8143           fi
8144
8145 fi
8146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147   conftest.$ac_objext conftest.beam conftest.$ac_ext
8148 fi
8149
8150
8151 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8152 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
8153
8154 else
8155    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
8156 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
8157 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-lresolv  $LIBS"
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h.  */
8164
8165 /* Override any GCC internal prototype to avoid an error.
8166    Use char because int might match the return type of a GCC
8167    builtin and then its argument prototype would still apply.  */
8168 #ifdef __cplusplus
8169 extern "C"
8170 #endif
8171 char strcasecmp ();
8172 int
8173 main ()
8174 {
8175 return strcasecmp ();
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_link "$LINENO"; then :
8181   ac_cv_lib_resolv_strcasecmp=yes
8182 else
8183   ac_cv_lib_resolv_strcasecmp=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext \
8186     conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_lib_save_LIBS
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
8190 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
8191 if test "x$ac_cv_lib_resolv_strcasecmp" = x""yes; then :
8192   LIBS="$LIBS -lresolv"
8193 fi
8194
8195
8196 fi
8197
8198 for ac_func in utimes
8199 do :
8200   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
8201 if test "x$ac_cv_func_utimes" = x""yes; then :
8202   cat >>confdefs.h <<_ACEOF
8203 #define HAVE_UTIMES 1
8204 _ACEOF
8205
8206 else
8207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
8208 $as_echo_n "checking for utimes in -lc89... " >&6; }
8209 if test "${ac_cv_lib_c89_utimes+set}" = set; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lc89  $LIBS"
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h.  */
8216
8217 /* Override any GCC internal prototype to avoid an error.
8218    Use char because int might match the return type of a GCC
8219    builtin and then its argument prototype would still apply.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char utimes ();
8224 int
8225 main ()
8226 {
8227 return utimes ();
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233   ac_cv_lib_c89_utimes=yes
8234 else
8235   ac_cv_lib_c89_utimes=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238     conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
8242 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
8243 if test "x$ac_cv_lib_c89_utimes" = x""yes; then :
8244   $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
8245
8246                                         LIBS="$LIBS -lc89"
8247 fi
8248
8249
8250 fi
8251 done
8252
8253
8254 for ac_header in libutil.h
8255 do :
8256   ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
8257 if test "x$ac_cv_header_libutil_h" = x""yes; then :
8258   cat >>confdefs.h <<_ACEOF
8259 #define HAVE_LIBUTIL_H 1
8260 _ACEOF
8261
8262 fi
8263
8264 done
8265
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
8267 $as_echo_n "checking for library containing login... " >&6; }
8268 if test "${ac_cv_search_login+set}" = set; then :
8269   $as_echo_n "(cached) " >&6
8270 else
8271   ac_func_search_save_LIBS=$LIBS
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274
8275 /* Override any GCC internal prototype to avoid an error.
8276    Use char because int might match the return type of a GCC
8277    builtin and then its argument prototype would still apply.  */
8278 #ifdef __cplusplus
8279 extern "C"
8280 #endif
8281 char login ();
8282 int
8283 main ()
8284 {
8285 return login ();
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 for ac_lib in '' util bsd; do
8291   if test -z "$ac_lib"; then
8292     ac_res="none required"
8293   else
8294     ac_res=-l$ac_lib
8295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8296   fi
8297   if ac_fn_c_try_link "$LINENO"; then :
8298   ac_cv_search_login=$ac_res
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext \
8301     conftest$ac_exeext
8302   if test "${ac_cv_search_login+set}" = set; then :
8303   break
8304 fi
8305 done
8306 if test "${ac_cv_search_login+set}" = set; then :
8307
8308 else
8309   ac_cv_search_login=no
8310 fi
8311 rm conftest.$ac_ext
8312 LIBS=$ac_func_search_save_LIBS
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
8315 $as_echo "$ac_cv_search_login" >&6; }
8316 ac_res=$ac_cv_search_login
8317 if test "$ac_res" != no; then :
8318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8319
8320 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
8321
8322 fi
8323
8324 for ac_func in fmt_scaled logout updwtmp logwtmp
8325 do :
8326   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8328 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8329   cat >>confdefs.h <<_ACEOF
8330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8331 _ACEOF
8332
8333 fi
8334 done
8335
8336
8337 for ac_func in strftime
8338 do :
8339   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8340 if test "x$ac_cv_func_strftime" = x""yes; then :
8341   cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRFTIME 1
8343 _ACEOF
8344
8345 else
8346   # strftime is in -lintl on SCO UNIX.
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8348 $as_echo_n "checking for strftime in -lintl... " >&6; }
8349 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   ac_check_lib_save_LIBS=$LIBS
8353 LIBS="-lintl  $LIBS"
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h.  */
8356
8357 /* Override any GCC internal prototype to avoid an error.
8358    Use char because int might match the return type of a GCC
8359    builtin and then its argument prototype would still apply.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 char strftime ();
8364 int
8365 main ()
8366 {
8367 return strftime ();
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 if ac_fn_c_try_link "$LINENO"; then :
8373   ac_cv_lib_intl_strftime=yes
8374 else
8375   ac_cv_lib_intl_strftime=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext \
8378     conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8382 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8383 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8384   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8385
8386 LIBS="-lintl $LIBS"
8387 fi
8388
8389 fi
8390 done
8391
8392
8393 # Check for ALTDIRFUNC glob() extension
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
8395 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h.  */
8398
8399                 #include <glob.h>
8400                 #ifdef GLOB_ALTDIRFUNC
8401                 FOUNDIT
8402                 #endif
8403
8404 _ACEOF
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406   $EGREP "FOUNDIT" >/dev/null 2>&1; then :
8407
8408
8409 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
8410
8411                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8412 $as_echo "yes" >&6; }
8413
8414 else
8415
8416                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418
8419
8420 fi
8421 rm -f conftest*
8422
8423
8424 # Check for g.gl_matchc glob() extension
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
8426 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h.  */
8429  #include <glob.h>
8430 int
8431 main ()
8432 {
8433  glob_t g; g.gl_matchc = 1;
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 if ac_fn_c_try_compile "$LINENO"; then :
8439
8440
8441 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
8442
8443                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8444 $as_echo "yes" >&6; }
8445
8446 else
8447
8448                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453
8454 # Check for g.gl_statv glob() extension
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_statv and GLOB_KEEPSTAT extensions for glob" >&5
8456 $as_echo_n "checking for gl_statv and GLOB_KEEPSTAT extensions for glob... " >&6; }
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h.  */
8459  #include <glob.h>
8460 int
8461 main ()
8462 {
8463
8464 #ifndef GLOB_KEEPSTAT
8465 #error "glob does not support GLOB_KEEPSTAT extension"
8466 #endif
8467 glob_t g;
8468 g.gl_statv = NULL;
8469
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475
8476
8477 $as_echo "#define GLOB_HAS_GL_STATV 1" >>confdefs.h
8478
8479                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480 $as_echo "yes" >&6; }
8481
8482 else
8483
8484                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486
8487
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490
8491 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
8492 "
8493 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = x""yes; then :
8494   ac_have_decl=1
8495 else
8496   ac_have_decl=0
8497 fi
8498
8499 cat >>confdefs.h <<_ACEOF
8500 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
8501 _ACEOF
8502
8503
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
8505 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
8506 if test "$cross_compiling" = yes; then :
8507
8508                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
8509 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
8510                 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8511
8512
8513
8514 else
8515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h.  */
8517
8518 #include <sys/types.h>
8519 #include <dirent.h>
8520 int
8521 main ()
8522 {
8523
8524         struct dirent d;
8525         exit(sizeof(d.d_name)<=sizeof(char));
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_run "$LINENO"; then :
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8533 $as_echo "yes" >&6; }
8534 else
8535
8536                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8538
8539 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
8540
8541
8542 fi
8543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8544   conftest.$ac_objext conftest.beam conftest.$ac_ext
8545 fi
8546
8547
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8549 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8550 if test -d "/proc/$$/fd" ; then
8551
8552 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8553
8554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8555 $as_echo "yes" >&6; }
8556 else
8557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8558 $as_echo "no" >&6; }
8559 fi
8560
8561 # Check whether user wants S/Key support
8562 SKEY_MSG="no"
8563
8564 # Check whether --with-skey was given.
8565 if test "${with_skey+set}" = set; then :
8566   withval=$with_skey;
8567                 if test "x$withval" != "xno" ; then
8568
8569                         if test "x$withval" != "xyes" ; then
8570                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8571                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
8572                         fi
8573
8574
8575 $as_echo "#define SKEY 1" >>confdefs.h
8576
8577                         LIBS="-lskey $LIBS"
8578                         SKEY_MSG="yes"
8579
8580                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8581 $as_echo_n "checking for s/key support... " >&6; }
8582                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h.  */
8584
8585 #include <stdio.h>
8586 #include <skey.h>
8587
8588 int
8589 main ()
8590 {
8591
8592         char *ff = skey_keyinfo(""); ff="";
8593         exit(0);
8594
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 if ac_fn_c_try_link "$LINENO"; then :
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8601 $as_echo "yes" >&6; }
8602 else
8603
8604                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8606                                         as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8607
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext \
8610     conftest$ac_exeext conftest.$ac_ext
8611                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8612 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8613                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h.  */
8615
8616 #include <stdio.h>
8617 #include <skey.h>
8618
8619 int
8620 main ()
8621 {
8622
8623         (void)skeychallenge(NULL,"name","",0);
8624
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 if ac_fn_c_try_compile "$LINENO"; then :
8630
8631                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632 $as_echo "yes" >&6; }
8633
8634 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8635
8636 else
8637
8638                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8640
8641 fi
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643                 fi
8644
8645
8646 fi
8647
8648
8649 # Check whether user wants TCP wrappers support
8650 TCPW_MSG="no"
8651
8652 # Check whether --with-tcp-wrappers was given.
8653 if test "${with_tcp_wrappers+set}" = set; then :
8654   withval=$with_tcp_wrappers;
8655                 if test "x$withval" != "xno" ; then
8656                         saved_LIBS="$LIBS"
8657                         saved_LDFLAGS="$LDFLAGS"
8658                         saved_CPPFLAGS="$CPPFLAGS"
8659                         if test -n "${withval}" && \
8660                             test "x${withval}" != "xyes"; then
8661                                 if test -d "${withval}/lib"; then
8662                                         if test -n "${need_dash_r}"; then
8663                                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8664                                         else
8665                                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8666                                         fi
8667                                 else
8668                                         if test -n "${need_dash_r}"; then
8669                                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8670                                         else
8671                                                 LDFLAGS="-L${withval} ${LDFLAGS}"
8672                                         fi
8673                                 fi
8674                                 if test -d "${withval}/include"; then
8675                                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8676                                 else
8677                                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
8678                                 fi
8679                         fi
8680                         LIBS="-lwrap $LIBS"
8681                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8682 $as_echo_n "checking for libwrap... " >&6; }
8683                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8685
8686 #include <sys/types.h>
8687 #include <sys/socket.h>
8688 #include <netinet/in.h>
8689 #include <tcpd.h>
8690 int deny_severity = 0, allow_severity = 0;
8691
8692 int
8693 main ()
8694 {
8695
8696         hosts_access(0);
8697
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 if ac_fn_c_try_link "$LINENO"; then :
8703
8704                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8705 $as_echo "yes" >&6; }
8706
8707 $as_echo "#define LIBWRAP 1" >>confdefs.h
8708
8709                                         SSHDLIBS="$SSHDLIBS -lwrap"
8710                                         TCPW_MSG="yes"
8711
8712 else
8713
8714                                         as_fn_error $? "*** libwrap missing" "$LINENO" 5
8715
8716
8717 fi
8718 rm -f core conftest.err conftest.$ac_objext \
8719     conftest$ac_exeext conftest.$ac_ext
8720                         LIBS="$saved_LIBS"
8721                 fi
8722
8723
8724 fi
8725
8726
8727 # Check whether user wants libedit support
8728 LIBEDIT_MSG="no"
8729
8730 # Check whether --with-libedit was given.
8731 if test "${with_libedit+set}" = set; then :
8732   withval=$with_libedit;  if test "x$withval" != "xno" ; then
8733                 if test "x$withval" = "xyes" ; then
8734                         if test -n "$ac_tool_prefix"; then
8735   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8736 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
8740   $as_echo_n "(cached) " >&6
8741 else
8742   case $PKGCONFIG in
8743   [\\/]* | ?:[\\/]*)
8744   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
8745   ;;
8746   *)
8747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750   IFS=$as_save_IFS
8751   test -z "$as_dir" && as_dir=.
8752     for ac_exec_ext in '' $ac_executable_extensions; do
8753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8754     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756     break 2
8757   fi
8758 done
8759   done
8760 IFS=$as_save_IFS
8761
8762   ;;
8763 esac
8764 fi
8765 PKGCONFIG=$ac_cv_path_PKGCONFIG
8766 if test -n "$PKGCONFIG"; then
8767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
8768 $as_echo "$PKGCONFIG" >&6; }
8769 else
8770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8772 fi
8773
8774
8775 fi
8776 if test -z "$ac_cv_path_PKGCONFIG"; then
8777   ac_pt_PKGCONFIG=$PKGCONFIG
8778   # Extract the first word of "pkg-config", so it can be a program name with args.
8779 set dummy pkg-config; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_path_ac_pt_PKGCONFIG+set}" = set; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   case $ac_pt_PKGCONFIG in
8786   [\\/]* | ?:[\\/]*)
8787   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
8788   ;;
8789   *)
8790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793   IFS=$as_save_IFS
8794   test -z "$as_dir" && as_dir=.
8795     for ac_exec_ext in '' $ac_executable_extensions; do
8796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
8798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799     break 2
8800   fi
8801 done
8802   done
8803 IFS=$as_save_IFS
8804
8805   ;;
8806 esac
8807 fi
8808 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
8809 if test -n "$ac_pt_PKGCONFIG"; then
8810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
8811 $as_echo "$ac_pt_PKGCONFIG" >&6; }
8812 else
8813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8815 fi
8816
8817   if test "x$ac_pt_PKGCONFIG" = x; then
8818     PKGCONFIG="no"
8819   else
8820     case $cross_compiling:$ac_tool_warned in
8821 yes:)
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8824 ac_tool_warned=yes ;;
8825 esac
8826     PKGCONFIG=$ac_pt_PKGCONFIG
8827   fi
8828 else
8829   PKGCONFIG="$ac_cv_path_PKGCONFIG"
8830 fi
8831
8832                         if test "x$PKGCONFIG" != "xno"; then
8833                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $PKGCONFIG knows about libedit" >&5
8834 $as_echo_n "checking if $PKGCONFIG knows about libedit... " >&6; }
8835                                 if "$PKGCONFIG" libedit; then
8836                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8837 $as_echo "yes" >&6; }
8838                                         use_pkgconfig_for_libedit=yes
8839                                 else
8840                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842                                 fi
8843                         fi
8844                 else
8845                         CPPFLAGS="$CPPFLAGS -I${withval}/include"
8846                         if test -n "${need_dash_r}"; then
8847                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8848                         else
8849                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8850                         fi
8851                 fi
8852                 if test "x$use_pkgconfig_for_libedit" = "xyes"; then
8853                         LIBEDIT=`$PKGCONFIG --libs-only-l libedit`
8854                         CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libedit`"
8855                 else
8856                         LIBEDIT="-ledit -lcurses"
8857                 fi
8858                 OTHERLIBS=`echo $LIBEDIT | sed 's/-ledit//'`
8859                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8860 $as_echo_n "checking for el_init in -ledit... " >&6; }
8861 if test "${ac_cv_lib_edit_el_init+set}" = set; then :
8862   $as_echo_n "(cached) " >&6
8863 else
8864   ac_check_lib_save_LIBS=$LIBS
8865 LIBS="-ledit  $OTHERLIBS
8866                  $LIBS"
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h.  */
8869
8870 /* Override any GCC internal prototype to avoid an error.
8871    Use char because int might match the return type of a GCC
8872    builtin and then its argument prototype would still apply.  */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 char el_init ();
8877 int
8878 main ()
8879 {
8880 return el_init ();
8881   ;
8882   return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886   ac_cv_lib_edit_el_init=yes
8887 else
8888   ac_cv_lib_edit_el_init=no
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891     conftest$ac_exeext conftest.$ac_ext
8892 LIBS=$ac_check_lib_save_LIBS
8893 fi
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8895 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8896 if test "x$ac_cv_lib_edit_el_init" = x""yes; then :
8897
8898 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8899
8900                           LIBEDIT_MSG="yes"
8901
8902
8903 else
8904    as_fn_error $? "libedit not found" "$LINENO" 5
8905 fi
8906
8907                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8908 $as_echo_n "checking if libedit version is compatible... " >&6; }
8909                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h.  */
8911  #include <histedit.h>
8912 int
8913 main ()
8914 {
8915
8916         int i = H_SETSIZE;
8917         el_init("", NULL, NULL, NULL);
8918         exit(0);
8919
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 if ac_fn_c_try_compile "$LINENO"; then :
8925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8926 $as_echo "yes" >&6; }
8927 else
8928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930                       as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8931
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934         fi
8935
8936 fi
8937
8938
8939 AUDIT_MODULE=none
8940
8941 # Check whether --with-audit was given.
8942 if test "${with_audit+set}" = set; then :
8943   withval=$with_audit;
8944           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8945 $as_echo_n "checking for supported audit module... " >&6; }
8946           case "$withval" in
8947           bsm)
8948                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8949 $as_echo "bsm" >&6; }
8950                 AUDIT_MODULE=bsm
8951                                 for ac_header in bsm/audit.h
8952 do :
8953   ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8954 #ifdef HAVE_TIME_H
8955 # include <time.h>
8956 #endif
8957
8958
8959 "
8960 if test "x$ac_cv_header_bsm_audit_h" = x""yes; then :
8961   cat >>confdefs.h <<_ACEOF
8962 #define HAVE_BSM_AUDIT_H 1
8963 _ACEOF
8964
8965 else
8966   as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8967 fi
8968
8969 done
8970
8971                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8972 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8973 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then :
8974   $as_echo_n "(cached) " >&6
8975 else
8976   ac_check_lib_save_LIBS=$LIBS
8977 LIBS="-lbsm  $LIBS"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h.  */
8980
8981 /* Override any GCC internal prototype to avoid an error.
8982    Use char because int might match the return type of a GCC
8983    builtin and then its argument prototype would still apply.  */
8984 #ifdef __cplusplus
8985 extern "C"
8986 #endif
8987 char getaudit ();
8988 int
8989 main ()
8990 {
8991 return getaudit ();
8992   ;
8993   return 0;
8994 }
8995 _ACEOF
8996 if ac_fn_c_try_link "$LINENO"; then :
8997   ac_cv_lib_bsm_getaudit=yes
8998 else
8999   ac_cv_lib_bsm_getaudit=no
9000 fi
9001 rm -f core conftest.err conftest.$ac_objext \
9002     conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
9006 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
9007 if test "x$ac_cv_lib_bsm_getaudit" = x""yes; then :
9008   cat >>confdefs.h <<_ACEOF
9009 #define HAVE_LIBBSM 1
9010 _ACEOF
9011
9012   LIBS="-lbsm $LIBS"
9013
9014 else
9015   as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
9016 fi
9017
9018                 for ac_func in getaudit
9019 do :
9020   ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
9021 if test "x$ac_cv_func_getaudit" = x""yes; then :
9022   cat >>confdefs.h <<_ACEOF
9023 #define HAVE_GETAUDIT 1
9024 _ACEOF
9025
9026 else
9027   as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
9028 fi
9029 done
9030
9031                 # These are optional
9032                 for ac_func in getaudit_addr aug_get_machine
9033 do :
9034   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9036 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9037   cat >>confdefs.h <<_ACEOF
9038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9039 _ACEOF
9040
9041 fi
9042 done
9043
9044
9045 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
9046
9047                 ;;
9048           linux)
9049                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux" >&5
9050 $as_echo "linux" >&6; }
9051                 AUDIT_MODULE=linux
9052                                 for ac_header in libaudit.h
9053 do :
9054   ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
9055 if test "x$ac_cv_header_libaudit_h" = x""yes; then :
9056   cat >>confdefs.h <<_ACEOF
9057 #define HAVE_LIBAUDIT_H 1
9058 _ACEOF
9059
9060 fi
9061
9062 done
9063
9064                 SSHDLIBS="$SSHDLIBS -laudit"
9065
9066 $as_echo "#define USE_LINUX_AUDIT 1" >>confdefs.h
9067
9068                 ;;
9069           debug)
9070                 AUDIT_MODULE=debug
9071                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
9072 $as_echo "debug" >&6; }
9073
9074 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
9075
9076                 ;;
9077           no)
9078                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9080                 ;;
9081           *)
9082                 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
9083                 ;;
9084         esac
9085
9086 fi
9087
9088
9089 for ac_func in  \
9090         arc4random \
9091         arc4random_buf \
9092         arc4random_uniform \
9093         asprintf \
9094         b64_ntop \
9095         __b64_ntop \
9096         b64_pton \
9097         __b64_pton \
9098         bcopy \
9099         bindresvport_sa \
9100         clock \
9101         closefrom \
9102         dirfd \
9103         fchmod \
9104         fchown \
9105         freeaddrinfo \
9106         fstatvfs \
9107         futimes \
9108         getaddrinfo \
9109         getcwd \
9110         getgrouplist \
9111         getnameinfo \
9112         getopt \
9113         getpeereid \
9114         getpeerucred \
9115         _getpty \
9116         getrlimit \
9117         getttyent \
9118         glob \
9119         group_from_gid \
9120         inet_aton \
9121         inet_ntoa \
9122         inet_ntop \
9123         innetgr \
9124         login_getcapbool \
9125         md5_crypt \
9126         memmove \
9127         mkdtemp \
9128         mmap \
9129         ngetaddrinfo \
9130         nsleep \
9131         ogetaddrinfo \
9132         openlog_r \
9133         openpty \
9134         poll \
9135         prctl \
9136         pstat \
9137         readpassphrase \
9138         realpath \
9139         recvmsg \
9140         rresvport_af \
9141         sendmsg \
9142         setdtablesize \
9143         setegid \
9144         setenv \
9145         seteuid \
9146         setgroupent \
9147         setgroups \
9148         setlogin \
9149         setpassent\
9150         setpcred \
9151         setproctitle \
9152         setregid \
9153         setreuid \
9154         setrlimit \
9155         setsid \
9156         setvbuf \
9157         sigaction \
9158         sigvec \
9159         snprintf \
9160         socketpair \
9161         statfs \
9162         statvfs \
9163         strdup \
9164         strerror \
9165         strlcat \
9166         strlcpy \
9167         strmode \
9168         strnvis \
9169         strptime \
9170         strtonum \
9171         strtoll \
9172         strtoul \
9173         swap32 \
9174         sysconf \
9175         tcgetpgrp \
9176         timingsafe_bcmp \
9177         truncate \
9178         unsetenv \
9179         updwtmpx \
9180         user_from_uid \
9181         vasprintf \
9182         vhangup \
9183         vsnprintf \
9184         waitpid \
9185
9186 do :
9187   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9190   cat >>confdefs.h <<_ACEOF
9191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9192 _ACEOF
9193
9194 fi
9195 done
9196
9197
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h.  */
9200  #include <ctype.h>
9201 int
9202 main ()
9203 {
9204  return (isblank('a'));
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 if ac_fn_c_try_link "$LINENO"; then :
9210
9211 $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
9212
9213
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext \
9216     conftest$ac_exeext conftest.$ac_ext
9217
9218 # PKCS#11 support requires dlopen() and co
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9220 $as_echo_n "checking for library containing dlopen... " >&6; }
9221 if test "${ac_cv_search_dlopen+set}" = set; then :
9222   $as_echo_n "(cached) " >&6
9223 else
9224   ac_func_search_save_LIBS=$LIBS
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h.  */
9227
9228 /* Override any GCC internal prototype to avoid an error.
9229    Use char because int might match the return type of a GCC
9230    builtin and then its argument prototype would still apply.  */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 char dlopen ();
9235 int
9236 main ()
9237 {
9238 return dlopen ();
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 for ac_lib in '' dl; do
9244   if test -z "$ac_lib"; then
9245     ac_res="none required"
9246   else
9247     ac_res=-l$ac_lib
9248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9249   fi
9250   if ac_fn_c_try_link "$LINENO"; then :
9251   ac_cv_search_dlopen=$ac_res
9252 fi
9253 rm -f core conftest.err conftest.$ac_objext \
9254     conftest$ac_exeext
9255   if test "${ac_cv_search_dlopen+set}" = set; then :
9256   break
9257 fi
9258 done
9259 if test "${ac_cv_search_dlopen+set}" = set; then :
9260
9261 else
9262   ac_cv_search_dlopen=no
9263 fi
9264 rm conftest.$ac_ext
9265 LIBS=$ac_func_search_save_LIBS
9266 fi
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9268 $as_echo "$ac_cv_search_dlopen" >&6; }
9269 ac_res=$ac_cv_search_dlopen
9270 if test "$ac_res" != no; then :
9271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9272
9273 $as_echo "#define ENABLE_PKCS11 /**/" >>confdefs.h
9274
9275
9276 fi
9277
9278
9279 # IRIX has a const char return value for gai_strerror()
9280 for ac_func in gai_strerror
9281 do :
9282   ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
9283 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
9284   cat >>confdefs.h <<_ACEOF
9285 #define HAVE_GAI_STRERROR 1
9286 _ACEOF
9287
9288         $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
9289
9290         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h.  */
9292
9293 #include <sys/types.h>
9294 #include <sys/socket.h>
9295 #include <netdb.h>
9296
9297 const char *gai_strerror(int);
9298
9299 int
9300 main ()
9301 {
9302
9303         char *str;
9304         str = gai_strerror(0);
9305
9306   ;
9307   return 0;
9308 }
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311
9312
9313 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
9314
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 fi
9318 done
9319
9320
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
9322 $as_echo_n "checking for library containing nanosleep... " >&6; }
9323 if test "${ac_cv_search_nanosleep+set}" = set; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   ac_func_search_save_LIBS=$LIBS
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h.  */
9329
9330 /* Override any GCC internal prototype to avoid an error.
9331    Use char because int might match the return type of a GCC
9332    builtin and then its argument prototype would still apply.  */
9333 #ifdef __cplusplus
9334 extern "C"
9335 #endif
9336 char nanosleep ();
9337 int
9338 main ()
9339 {
9340 return nanosleep ();
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 for ac_lib in '' rt posix4; do
9346   if test -z "$ac_lib"; then
9347     ac_res="none required"
9348   else
9349     ac_res=-l$ac_lib
9350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9351   fi
9352   if ac_fn_c_try_link "$LINENO"; then :
9353   ac_cv_search_nanosleep=$ac_res
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext \
9356     conftest$ac_exeext
9357   if test "${ac_cv_search_nanosleep+set}" = set; then :
9358   break
9359 fi
9360 done
9361 if test "${ac_cv_search_nanosleep+set}" = set; then :
9362
9363 else
9364   ac_cv_search_nanosleep=no
9365 fi
9366 rm conftest.$ac_ext
9367 LIBS=$ac_func_search_save_LIBS
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
9370 $as_echo "$ac_cv_search_nanosleep" >&6; }
9371 ac_res=$ac_cv_search_nanosleep
9372 if test "$ac_res" != no; then :
9373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9374
9375 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
9376
9377 fi
9378
9379
9380 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
9381 if test "x$ac_cv_have_decl_getrusage" = x""yes; then :
9382   for ac_func in getrusage
9383 do :
9384   ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
9385 if test "x$ac_cv_func_getrusage" = x""yes; then :
9386   cat >>confdefs.h <<_ACEOF
9387 #define HAVE_GETRUSAGE 1
9388 _ACEOF
9389
9390 fi
9391 done
9392
9393 fi
9394
9395 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
9396 #ifdef HAVE_STRING_H
9397 # include <string.h>
9398 #endif
9399
9400 "
9401 if test "x$ac_cv_have_decl_strsep" = x""yes; then :
9402   for ac_func in strsep
9403 do :
9404   ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
9405 if test "x$ac_cv_func_strsep" = x""yes; then :
9406   cat >>confdefs.h <<_ACEOF
9407 #define HAVE_STRSEP 1
9408 _ACEOF
9409
9410 fi
9411 done
9412
9413 fi
9414
9415
9416 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
9417
9418 "
9419 if test "x$ac_cv_have_decl_tcsendbreak" = x""yes; then :
9420   $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
9421
9422 else
9423   for ac_func in tcsendbreak
9424 do :
9425   ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
9426 if test "x$ac_cv_func_tcsendbreak" = x""yes; then :
9427   cat >>confdefs.h <<_ACEOF
9428 #define HAVE_TCSENDBREAK 1
9429 _ACEOF
9430
9431 fi
9432 done
9433
9434 fi
9435
9436
9437 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
9438 "
9439 if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
9440   ac_have_decl=1
9441 else
9442   ac_have_decl=0
9443 fi
9444
9445 cat >>confdefs.h <<_ACEOF
9446 #define HAVE_DECL_H_ERRNO $ac_have_decl
9447 _ACEOF
9448
9449
9450 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
9451 #include <sys/types.h>
9452 #include <sys/socket.h>
9453
9454 "
9455 if test "x$ac_cv_have_decl_SHUT_RD" = x""yes; then :
9456   ac_have_decl=1
9457 else
9458   ac_have_decl=0
9459 fi
9460
9461 cat >>confdefs.h <<_ACEOF
9462 #define HAVE_DECL_SHUT_RD $ac_have_decl
9463 _ACEOF
9464
9465
9466 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
9467 #include <sys/types.h>
9468 #ifdef HAVE_SYS_STAT_H
9469 # include <sys/stat.h>
9470 #endif
9471 #ifdef HAVE_FCNTL_H
9472 # include <fcntl.h>
9473 #endif
9474
9475 "
9476 if test "x$ac_cv_have_decl_O_NONBLOCK" = x""yes; then :
9477   ac_have_decl=1
9478 else
9479   ac_have_decl=0
9480 fi
9481
9482 cat >>confdefs.h <<_ACEOF
9483 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
9484 _ACEOF
9485
9486
9487 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
9488 #include <sys/types.h>
9489 #include <sys/uio.h>
9490 #include <unistd.h>
9491
9492 "
9493 if test "x$ac_cv_have_decl_writev" = x""yes; then :
9494   ac_have_decl=1
9495 else
9496   ac_have_decl=0
9497 fi
9498
9499 cat >>confdefs.h <<_ACEOF
9500 #define HAVE_DECL_WRITEV $ac_have_decl
9501 _ACEOF
9502
9503
9504 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
9505 #include <sys/param.h>
9506
9507 "
9508 if test "x$ac_cv_have_decl_MAXSYMLINKS" = x""yes; then :
9509   ac_have_decl=1
9510 else
9511   ac_have_decl=0
9512 fi
9513
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
9516 _ACEOF
9517
9518
9519 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
9520 #include <stddef.h>
9521
9522 "
9523 if test "x$ac_cv_have_decl_offsetof" = x""yes; then :
9524   ac_have_decl=1
9525 else
9526   ac_have_decl=0
9527 fi
9528
9529 cat >>confdefs.h <<_ACEOF
9530 #define HAVE_DECL_OFFSETOF $ac_have_decl
9531 _ACEOF
9532
9533
9534 for ac_func in setresuid
9535 do :
9536   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
9537 if test "x$ac_cv_func_setresuid" = x""yes; then :
9538   cat >>confdefs.h <<_ACEOF
9539 #define HAVE_SETRESUID 1
9540 _ACEOF
9541
9542                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
9543 $as_echo_n "checking if setresuid seems to work... " >&6; }
9544         if test "$cross_compiling" = yes; then :
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9546 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9547
9548 else
9549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h.  */
9551
9552 #include <stdlib.h>
9553 #include <errno.h>
9554
9555 int
9556 main ()
9557 {
9558
9559         errno=0;
9560         setresuid(0,0,0);
9561         if (errno==ENOSYS)
9562                 exit(1);
9563         else
9564                 exit(0);
9565
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_run "$LINENO"; then :
9571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9572 $as_echo "yes" >&6; }
9573 else
9574
9575 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
9576
9577                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9578 $as_echo "not implemented" >&6; }
9579 fi
9580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9581   conftest.$ac_objext conftest.beam conftest.$ac_ext
9582 fi
9583
9584
9585 fi
9586 done
9587
9588
9589 for ac_func in setresgid
9590 do :
9591   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
9592 if test "x$ac_cv_func_setresgid" = x""yes; then :
9593   cat >>confdefs.h <<_ACEOF
9594 #define HAVE_SETRESGID 1
9595 _ACEOF
9596
9597                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
9598 $as_echo_n "checking if setresgid seems to work... " >&6; }
9599         if test "$cross_compiling" = yes; then :
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
9601 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
9602
9603 else
9604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h.  */
9606
9607 #include <stdlib.h>
9608 #include <errno.h>
9609
9610 int
9611 main ()
9612 {
9613
9614         errno=0;
9615         setresgid(0,0,0);
9616         if (errno==ENOSYS)
9617                 exit(1);
9618         else
9619                 exit(0);
9620
9621   ;
9622   return 0;
9623 }
9624 _ACEOF
9625 if ac_fn_c_try_run "$LINENO"; then :
9626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9627 $as_echo "yes" >&6; }
9628 else
9629
9630 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
9631
9632                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
9633 $as_echo "not implemented" >&6; }
9634 fi
9635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9636   conftest.$ac_objext conftest.beam conftest.$ac_ext
9637 fi
9638
9639
9640 fi
9641 done
9642
9643
9644 for ac_func in gettimeofday time
9645 do :
9646   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9649   cat >>confdefs.h <<_ACEOF
9650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651 _ACEOF
9652
9653 fi
9654 done
9655
9656 for ac_func in endutent getutent getutid getutline pututline setutent
9657 do :
9658   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9659 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9660 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9661   cat >>confdefs.h <<_ACEOF
9662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9663 _ACEOF
9664
9665 fi
9666 done
9667
9668 for ac_func in utmpname
9669 do :
9670   ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
9671 if test "x$ac_cv_func_utmpname" = x""yes; then :
9672   cat >>confdefs.h <<_ACEOF
9673 #define HAVE_UTMPNAME 1
9674 _ACEOF
9675
9676 fi
9677 done
9678
9679 for ac_func in endutxent getutxent getutxid getutxline getutxuser pututxline
9680 do :
9681   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9684   cat >>confdefs.h <<_ACEOF
9685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9686 _ACEOF
9687
9688 fi
9689 done
9690
9691 for ac_func in setutxdb setutxent utmpxname
9692 do :
9693   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9696   cat >>confdefs.h <<_ACEOF
9697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9698 _ACEOF
9699
9700 fi
9701 done
9702
9703 for ac_func in getlastlogxbyname
9704 do :
9705   ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
9706 if test "x$ac_cv_func_getlastlogxbyname" = x""yes; then :
9707   cat >>confdefs.h <<_ACEOF
9708 #define HAVE_GETLASTLOGXBYNAME 1
9709 _ACEOF
9710
9711 fi
9712 done
9713
9714
9715 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
9716 if test "x$ac_cv_func_daemon" = x""yes; then :
9717
9718 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9719
9720 else
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
9722 $as_echo_n "checking for daemon in -lbsd... " >&6; }
9723 if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
9724   $as_echo_n "(cached) " >&6
9725 else
9726   ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-lbsd  $LIBS"
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h.  */
9730
9731 /* Override any GCC internal prototype to avoid an error.
9732    Use char because int might match the return type of a GCC
9733    builtin and then its argument prototype would still apply.  */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char daemon ();
9738 int
9739 main ()
9740 {
9741 return daemon ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747   ac_cv_lib_bsd_daemon=yes
9748 else
9749   ac_cv_lib_bsd_daemon=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752     conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
9756 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
9757 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
9758   LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
9759
9760 fi
9761
9762
9763 fi
9764
9765
9766 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9767 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9768
9769 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9770
9771 else
9772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
9773 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
9774 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then :
9775   $as_echo_n "(cached) " >&6
9776 else
9777   ac_check_lib_save_LIBS=$LIBS
9778 LIBS="-lucb  $LIBS"
9779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 /* end confdefs.h.  */
9781
9782 /* Override any GCC internal prototype to avoid an error.
9783    Use char because int might match the return type of a GCC
9784    builtin and then its argument prototype would still apply.  */
9785 #ifdef __cplusplus
9786 extern "C"
9787 #endif
9788 char getpagesize ();
9789 int
9790 main ()
9791 {
9792 return getpagesize ();
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 if ac_fn_c_try_link "$LINENO"; then :
9798   ac_cv_lib_ucb_getpagesize=yes
9799 else
9800   ac_cv_lib_ucb_getpagesize=no
9801 fi
9802 rm -f core conftest.err conftest.$ac_objext \
9803     conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9805 fi
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
9807 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
9808 if test "x$ac_cv_lib_ucb_getpagesize" = x""yes; then :
9809   LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9810
9811 fi
9812
9813
9814 fi
9815
9816
9817 # Check for broken snprintf
9818 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9820 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9821         if test "$cross_compiling" = yes; then :
9822    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9823 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9824
9825 else
9826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h.  */
9828  #include <stdio.h>
9829 int
9830 main ()
9831 {
9832
9833         char b[5];
9834         snprintf(b,5,"123456789");
9835         exit(b[4]!='\0');
9836
9837   ;
9838   return 0;
9839 }
9840 _ACEOF
9841 if ac_fn_c_try_run "$LINENO"; then :
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9843 $as_echo "yes" >&6; }
9844 else
9845
9846                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9848
9849 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9850
9851                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9852 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9853
9854 fi
9855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9856   conftest.$ac_objext conftest.beam conftest.$ac_ext
9857 fi
9858
9859 fi
9860
9861 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9862 # returning the right thing on overflow: the number of characters it tried to
9863 # create (as per SUSv3)
9864 if test "x$ac_cv_func_asprintf" != "xyes" && \
9865    test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9867 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9868         if test "$cross_compiling" = yes; then :
9869    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9870 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9871
9872 else
9873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h.  */
9875
9876 #include <sys/types.h>
9877 #include <stdio.h>
9878 #include <stdarg.h>
9879
9880 int x_snprintf(char *str,size_t count,const char *fmt,...)
9881 {
9882         size_t ret; va_list ap;
9883         va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9884         return ret;
9885 }
9886
9887 int
9888 main ()
9889 {
9890
9891         char x[1];
9892         exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9893
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 if ac_fn_c_try_run "$LINENO"; then :
9899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9900 $as_echo "yes" >&6; }
9901 else
9902
9903                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9905
9906 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9907
9908                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9909 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9910
9911 fi
9912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9913   conftest.$ac_objext conftest.beam conftest.$ac_ext
9914 fi
9915
9916 fi
9917
9918 # On systems where [v]snprintf is broken, but is declared in stdio,
9919 # check that the fmt argument is const char * or just char *.
9920 # This is only useful for when BROKEN_SNPRINTF
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9922 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h.  */
9925
9926 #include <stdio.h>
9927 int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9928
9929 int
9930 main ()
9931 {
9932
9933         snprintf(0, 0, 0);
9934
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9941 $as_echo "yes" >&6; }
9942
9943 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9944
9945 else
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948     $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9949
9950 fi
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952
9953 # Check for missing getpeereid (or equiv) support
9954 NO_PEERCHECK=""
9955 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9956         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9957 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9958         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h.  */
9960
9961 #include <sys/types.h>
9962 #include <sys/socket.h>
9963 int
9964 main ()
9965 {
9966 int i = SO_PEERCRED;
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 if ac_fn_c_try_compile "$LINENO"; then :
9972    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9973 $as_echo "yes" >&6; }
9974
9975 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9976
9977
9978 else
9979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9981                 NO_PEERCHECK=1
9982
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9985 fi
9986
9987 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9989 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9990 if test "$cross_compiling" = yes; then :
9991
9992                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9993 $as_echo "yes" >&6; }
9994                 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9995
9996
9997
9998 else
9999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h.  */
10001
10002 #include <stdlib.h>
10003
10004 int
10005 main ()
10006 {
10007
10008         char template[]="conftest.mkstemp-test";
10009         if (mkstemp(template) == -1)
10010                 exit(1);
10011         unlink(template);
10012         exit(0);
10013
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 if ac_fn_c_try_run "$LINENO"; then :
10019
10020                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10022
10023 else
10024
10025                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10026 $as_echo "yes" >&6; }
10027
10028 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
10029
10030
10031 fi
10032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10033   conftest.$ac_objext conftest.beam conftest.$ac_ext
10034 fi
10035
10036 fi
10037
10038 if test ! -z "$check_for_openpty_ctty_bug"; then
10039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
10040 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
10041         if test "$cross_compiling" = yes; then :
10042
10043                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10044 $as_echo "cross-compiling, assuming yes" >&6; }
10045
10046
10047 else
10048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h.  */
10050
10051 #include <stdio.h>
10052 #include <sys/fcntl.h>
10053 #include <sys/types.h>
10054 #include <sys/wait.h>
10055
10056 int
10057 main ()
10058 {
10059
10060         pid_t pid;
10061         int fd, ptyfd, ttyfd, status;
10062
10063         pid = fork();
10064         if (pid < 0) {          /* failed */
10065                 exit(1);
10066         } else if (pid > 0) {   /* parent */
10067                 waitpid(pid, &status, 0);
10068                 if (WIFEXITED(status))
10069                         exit(WEXITSTATUS(status));
10070                 else
10071                         exit(2);
10072         } else {                /* child */
10073                 close(0); close(1); close(2);
10074                 setsid();
10075                 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
10076                 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
10077                 if (fd >= 0)
10078                         exit(3);        /* Acquired ctty: broken */
10079                 else
10080                         exit(0);        /* Did not acquire ctty: OK */
10081         }
10082
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_run "$LINENO"; then :
10088
10089                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090 $as_echo "yes" >&6; }
10091
10092 else
10093
10094                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 $as_echo "no" >&6; }
10096                         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
10097
10098
10099 fi
10100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10101   conftest.$ac_objext conftest.beam conftest.$ac_ext
10102 fi
10103
10104 fi
10105
10106 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10107     test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
10108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10109 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10110         if test "$cross_compiling" = yes; then :
10111
10112                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
10113 $as_echo "cross-compiling, assuming yes" >&6; }
10114
10115
10116 else
10117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h.  */
10119
10120 #include <stdio.h>
10121 #include <sys/socket.h>
10122 #include <netdb.h>
10123 #include <errno.h>
10124 #include <netinet/in.h>
10125
10126 #define TEST_PORT "2222"
10127
10128 int
10129 main ()
10130 {
10131
10132         int err, sock;
10133         struct addrinfo *gai_ai, *ai, hints;
10134         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10135
10136         memset(&hints, 0, sizeof(hints));
10137         hints.ai_family = PF_UNSPEC;
10138         hints.ai_socktype = SOCK_STREAM;
10139         hints.ai_flags = AI_PASSIVE;
10140
10141         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10142         if (err != 0) {
10143                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10144                 exit(1);
10145         }
10146
10147         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10148                 if (ai->ai_family != AF_INET6)
10149                         continue;
10150
10151                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10152                     sizeof(ntop), strport, sizeof(strport),
10153                     NI_NUMERICHOST|NI_NUMERICSERV);
10154
10155                 if (err != 0) {
10156                         if (err == EAI_SYSTEM)
10157                                 perror("getnameinfo EAI_SYSTEM");
10158                         else
10159                                 fprintf(stderr, "getnameinfo failed: %s\n",
10160                                     gai_strerror(err));
10161                         exit(2);
10162                 }
10163
10164                 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
10165                 if (sock < 0)
10166                         perror("socket");
10167                 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
10168                         if (errno == EBADF)
10169                                 exit(3);
10170                 }
10171         }
10172         exit(0);
10173
10174   ;
10175   return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_run "$LINENO"; then :
10179
10180                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10181 $as_echo "yes" >&6; }
10182
10183 else
10184
10185                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10187                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10188
10189
10190 fi
10191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10192   conftest.$ac_objext conftest.beam conftest.$ac_ext
10193 fi
10194
10195 fi
10196
10197 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
10198     test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
10199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
10200 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
10201         if test "$cross_compiling" = yes; then :
10202
10203                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming no" >&5
10204 $as_echo "cross-compiling, assuming no" >&6; }
10205
10206
10207 else
10208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h.  */
10210
10211 #include <stdio.h>
10212 #include <sys/socket.h>
10213 #include <netdb.h>
10214 #include <errno.h>
10215 #include <netinet/in.h>
10216
10217 #define TEST_PORT "2222"
10218
10219 int
10220 main ()
10221 {
10222
10223         int err, sock;
10224         struct addrinfo *gai_ai, *ai, hints;
10225         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
10226
10227         memset(&hints, 0, sizeof(hints));
10228         hints.ai_family = PF_UNSPEC;
10229         hints.ai_socktype = SOCK_STREAM;
10230         hints.ai_flags = AI_PASSIVE;
10231
10232         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
10233         if (err != 0) {
10234                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
10235                 exit(1);
10236         }
10237
10238         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
10239                 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
10240                         continue;
10241
10242                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
10243                     sizeof(ntop), strport, sizeof(strport),
10244                     NI_NUMERICHOST|NI_NUMERICSERV);
10245
10246                 if (ai->ai_family == AF_INET && err != 0) {
10247                         perror("getnameinfo");
10248                         exit(2);
10249                 }
10250         }
10251         exit(0);
10252
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_run "$LINENO"; then :
10258
10259                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10260 $as_echo "yes" >&6; }
10261
10262 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
10263
10264
10265 else
10266
10267                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10268 $as_echo "no" >&6; }
10269                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
10270
10271
10272 fi
10273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10274   conftest.$ac_objext conftest.beam conftest.$ac_ext
10275 fi
10276
10277 fi
10278
10279 if test "x$check_for_conflicting_getspnam" = "x1"; then
10280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
10281 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
10282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h.  */
10284  #include <shadow.h>
10285 int
10286 main ()
10287 {
10288  exit(0);
10289   ;
10290   return 0;
10291 }
10292 _ACEOF
10293 if ac_fn_c_try_compile "$LINENO"; then :
10294
10295                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296 $as_echo "no" >&6; }
10297
10298 else
10299
10300                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301 $as_echo "yes" >&6; }
10302
10303 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
10304
10305
10306
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 fi
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10312 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10313 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
10314   $as_echo_n "(cached) " >&6
10315 else
10316   # Use it with a single arg.
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h.  */
10319 $ac_includes_default
10320 int
10321 main ()
10322 {
10323 getpgrp (0);
10324   ;
10325   return 0;
10326 }
10327 _ACEOF
10328 if ac_fn_c_try_compile "$LINENO"; then :
10329   ac_cv_func_getpgrp_void=no
10330 else
10331   ac_cv_func_getpgrp_void=yes
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334
10335 fi
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10337 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10338 if test $ac_cv_func_getpgrp_void = yes; then
10339
10340 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10341
10342 fi
10343
10344
10345 # Search for OpenSSL
10346 saved_CPPFLAGS="$CPPFLAGS"
10347 saved_LDFLAGS="$LDFLAGS"
10348
10349 # Check whether --with-ssl-dir was given.
10350 if test "${with_ssl_dir+set}" = set; then :
10351   withval=$with_ssl_dir;
10352                 if test "x$withval" != "xno" ; then
10353                         case "$withval" in
10354                                 # Relative paths
10355                                 ./*|../*)       withval="`pwd`/$withval"
10356                         esac
10357                         if test -d "$withval/lib"; then
10358                                 if test -n "${need_dash_r}"; then
10359                                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
10360                                 else
10361                                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
10362                                 fi
10363                         elif test -d "$withval/lib64"; then
10364                                 if test -n "${need_dash_r}"; then
10365                                         LDFLAGS="-L${withval}/lib64 -R${withval}/lib64 ${LDFLAGS}"
10366                                 else
10367                                         LDFLAGS="-L${withval}/lib64 ${LDFLAGS}"
10368                                 fi
10369                         else
10370                                 if test -n "${need_dash_r}"; then
10371                                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
10372                                 else
10373                                         LDFLAGS="-L${withval} ${LDFLAGS}"
10374                                 fi
10375                         fi
10376                         if test -d "$withval/include"; then
10377                                 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
10378                         else
10379                                 CPPFLAGS="-I${withval} ${CPPFLAGS}"
10380                         fi
10381                 fi
10382
10383
10384 fi
10385
10386 LIBS="-lcrypto $LIBS"
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h.  */
10389
10390 /* Override any GCC internal prototype to avoid an error.
10391    Use char because int might match the return type of a GCC
10392    builtin and then its argument prototype would still apply.  */
10393 #ifdef __cplusplus
10394 extern "C"
10395 #endif
10396 char RAND_add ();
10397 int
10398 main ()
10399 {
10400 return RAND_add ();
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406
10407 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10408
10409 else
10410
10411                                 if test -n "${need_dash_r}"; then
10412                         LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
10413                 else
10414                         LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
10415                 fi
10416                 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
10417                 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
10418 if test "x$ac_cv_header_openssl_opensslv_h" = x""yes; then :
10419
10420 else
10421   as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
10422 fi
10423
10424
10425                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h.  */
10427
10428 /* Override any GCC internal prototype to avoid an error.
10429    Use char because int might match the return type of a GCC
10430    builtin and then its argument prototype would still apply.  */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 char RAND_add ();
10435 int
10436 main ()
10437 {
10438 return RAND_add ();
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 if ac_fn_c_try_link "$LINENO"; then :
10444   $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
10445
10446 else
10447
10448                                 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
10449
10450
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext \
10453     conftest$ac_exeext conftest.$ac_ext
10454
10455
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext \
10458     conftest$ac_exeext conftest.$ac_ext
10459
10460 # Determine OpenSSL header version
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
10462 $as_echo_n "checking OpenSSL header version... " >&6; }
10463 if test "$cross_compiling" = yes; then :
10464
10465                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10466 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10467
10468
10469 else
10470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h.  */
10472
10473 #include <stdio.h>
10474 #include <string.h>
10475 #include <openssl/opensslv.h>
10476 #define DATA "conftest.sslincver"
10477
10478 int
10479 main ()
10480 {
10481
10482         FILE *fd;
10483         int rc;
10484
10485         fd = fopen(DATA,"w");
10486         if(fd == NULL)
10487                 exit(1);
10488
10489         if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
10490                 exit(1);
10491
10492         exit(0);
10493
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 if ac_fn_c_try_run "$LINENO"; then :
10499
10500                 ssl_header_ver=`cat conftest.sslincver`
10501                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
10502 $as_echo "$ssl_header_ver" >&6; }
10503
10504 else
10505
10506                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10507 $as_echo "not found" >&6; }
10508                 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
10509
10510 fi
10511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10512   conftest.$ac_objext conftest.beam conftest.$ac_ext
10513 fi
10514
10515
10516 # Determine OpenSSL library version
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
10518 $as_echo_n "checking OpenSSL library version... " >&6; }
10519 if test "$cross_compiling" = yes; then :
10520
10521                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10522 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10523
10524
10525 else
10526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h.  */
10528
10529 #include <stdio.h>
10530 #include <string.h>
10531 #include <openssl/opensslv.h>
10532 #include <openssl/crypto.h>
10533 #define DATA "conftest.ssllibver"
10534
10535 int
10536 main ()
10537 {
10538
10539         FILE *fd;
10540         int rc;
10541
10542         fd = fopen(DATA,"w");
10543         if(fd == NULL)
10544                 exit(1);
10545
10546         if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
10547                 exit(1);
10548
10549         exit(0);
10550
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 if ac_fn_c_try_run "$LINENO"; then :
10556
10557                 ssl_library_ver=`cat conftest.ssllibver`
10558                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
10559 $as_echo "$ssl_library_ver" >&6; }
10560
10561 else
10562
10563                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10564 $as_echo "not found" >&6; }
10565                 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
10566
10567 fi
10568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10569   conftest.$ac_objext conftest.beam conftest.$ac_ext
10570 fi
10571
10572
10573
10574 # Check whether --with-openssl-header-check was given.
10575 if test "${with_openssl_header_check+set}" = set; then :
10576   withval=$with_openssl_header_check;   if test "x$withval" = "xno" ; then
10577                 openssl_check_nonfatal=1
10578            fi
10579
10580
10581 fi
10582
10583
10584 # Sanity check OpenSSL headers
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
10586 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
10587 if test "$cross_compiling" = yes; then :
10588
10589                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
10590 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
10591
10592
10593 else
10594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h.  */
10596
10597 #include <string.h>
10598 #include <openssl/opensslv.h>
10599
10600 int
10601 main ()
10602 {
10603
10604         exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1);
10605
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_c_try_run "$LINENO"; then :
10611
10612                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613 $as_echo "yes" >&6; }
10614
10615 else
10616
10617                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618 $as_echo "no" >&6; }
10619                 if test "x$openssl_check_nonfatal" = "x"; then
10620                         as_fn_error $? "Your OpenSSL headers do not match your
10621 library. Check config.log for details.
10622 If you are sure your installation is consistent, you can disable the check
10623 by running \"./configure --without-openssl-header-check\".
10624 Also see contrib/findssl.sh for help identifying header/library mismatches.
10625 " "$LINENO" 5
10626                 else
10627                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
10628 library. Check config.log for details.
10629 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
10630 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
10631 library. Check config.log for details.
10632 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
10633                 fi
10634
10635 fi
10636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10637   conftest.$ac_objext conftest.beam conftest.$ac_ext
10638 fi
10639
10640
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
10642 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h.  */
10645  #include <openssl/evp.h>
10646 int
10647 main ()
10648 {
10649  SSLeay_add_all_algorithms();
10650   ;
10651   return 0;
10652 }
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655
10656                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; }
10658
10659 else
10660
10661                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663                 saved_LIBS="$LIBS"
10664                 LIBS="$LIBS -ldl"
10665                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
10666 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
10667                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h.  */
10669  #include <openssl/evp.h>
10670 int
10671 main ()
10672 {
10673  SSLeay_add_all_algorithms();
10674   ;
10675   return 0;
10676 }
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679
10680                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; }
10682
10683 else
10684
10685                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687                                 LIBS="$saved_LIBS"
10688
10689
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692     conftest$ac_exeext conftest.$ac_ext
10693
10694
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext \
10697     conftest$ac_exeext conftest.$ac_ext
10698
10699 for ac_func in RSA_generate_key_ex DSA_generate_parameters_ex BN_is_prime_ex RSA_get_default_method
10700 do :
10701   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10702 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10703 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10704   cat >>confdefs.h <<_ACEOF
10705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10706 _ACEOF
10707
10708 fi
10709 done
10710
10711
10712
10713 # Check whether --with-ssl-engine was given.
10714 if test "${with_ssl_engine+set}" = set; then :
10715   withval=$with_ssl_engine;  if test "x$withval" != "xno" ; then
10716                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
10717 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
10718                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h.  */
10720
10721 #include <openssl/engine.h>
10722
10723 int
10724 main ()
10725 {
10726
10727         ENGINE_load_builtin_engines();
10728         ENGINE_register_all_complete();
10729
10730   ;
10731   return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_compile "$LINENO"; then :
10735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10736 $as_echo "yes" >&6; }
10737
10738 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
10739
10740
10741 else
10742    as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
10743
10744 fi
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746           fi
10747
10748 fi
10749
10750
10751 # Check for OpenSSL without EVP_aes_{192,256}_cbc
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
10753 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h.  */
10756
10757 #include <string.h>
10758 #include <openssl/evp.h>
10759
10760 int
10761 main ()
10762 {
10763
10764         exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);
10765
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771
10772                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }
10774
10775 else
10776
10777                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778 $as_echo "yes" >&6; }
10779
10780 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
10781
10782
10783
10784 fi
10785 rm -f core conftest.err conftest.$ac_objext \
10786     conftest$ac_exeext conftest.$ac_ext
10787
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
10789 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h.  */
10792
10793 #include <string.h>
10794 #include <openssl/evp.h>
10795
10796 int
10797 main ()
10798 {
10799
10800         if(EVP_DigestUpdate(NULL, NULL,0))
10801                 exit(0);
10802
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808
10809                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10810 $as_echo "yes" >&6; }
10811
10812 else
10813
10814                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10816
10817 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
10818
10819
10820
10821 fi
10822 rm -f core conftest.err conftest.$ac_objext \
10823     conftest$ac_exeext conftest.$ac_ext
10824
10825 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
10826 # because the system crypt() is more featureful.
10827 if test "x$check_for_libcrypt_before" = "x1"; then
10828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10829 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10830 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
10831   $as_echo_n "(cached) " >&6
10832 else
10833   ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-lcrypt  $LIBS"
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h.  */
10837
10838 /* Override any GCC internal prototype to avoid an error.
10839    Use char because int might match the return type of a GCC
10840    builtin and then its argument prototype would still apply.  */
10841 #ifdef __cplusplus
10842 extern "C"
10843 #endif
10844 char crypt ();
10845 int
10846 main ()
10847 {
10848 return crypt ();
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 if ac_fn_c_try_link "$LINENO"; then :
10854   ac_cv_lib_crypt_crypt=yes
10855 else
10856   ac_cv_lib_crypt_crypt=no
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext \
10859     conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10863 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10864 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
10865   cat >>confdefs.h <<_ACEOF
10866 #define HAVE_LIBCRYPT 1
10867 _ACEOF
10868
10869   LIBS="-lcrypt $LIBS"
10870
10871 fi
10872
10873 fi
10874
10875 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
10876 # version in OpenSSL.
10877 if test "x$check_for_libcrypt_later" = "x1"; then
10878         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
10879 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
10880 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-lcrypt  $LIBS"
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h.  */
10887
10888 /* Override any GCC internal prototype to avoid an error.
10889    Use char because int might match the return type of a GCC
10890    builtin and then its argument prototype would still apply.  */
10891 #ifdef __cplusplus
10892 extern "C"
10893 #endif
10894 char crypt ();
10895 int
10896 main ()
10897 {
10898 return crypt ();
10899   ;
10900   return 0;
10901 }
10902 _ACEOF
10903 if ac_fn_c_try_link "$LINENO"; then :
10904   ac_cv_lib_crypt_crypt=yes
10905 else
10906   ac_cv_lib_crypt_crypt=no
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext \
10909     conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_check_lib_save_LIBS
10911 fi
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
10913 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
10914 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
10915   LIBS="$LIBS -lcrypt"
10916 fi
10917
10918 fi
10919
10920 # Search for SHA256 support in libc and/or OpenSSL
10921 for ac_func in SHA256_Update EVP_sha256
10922 do :
10923   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10926   cat >>confdefs.h <<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 _ACEOF
10929  TEST_SSH_SHA256=yes
10930 else
10931   TEST_SSH_SHA256=no
10932 fi
10933 done
10934
10935
10936
10937 # Check complete ECC support in OpenSSL
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
10939 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h.  */
10942
10943 #include <openssl/ec.h>
10944 #include <openssl/ecdh.h>
10945 #include <openssl/ecdsa.h>
10946 #include <openssl/evp.h>
10947 #include <openssl/objects.h>
10948 #include <openssl/opensslv.h>
10949 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
10950 # error "OpenSSL < 0.9.8g has unreliable ECC code"
10951 #endif
10952
10953 int
10954 main ()
10955 {
10956
10957         EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
10958         const EVP_MD *m = EVP_sha512(); /* We need this too */
10959
10960   ;
10961   return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965
10966                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; }
10968
10969 $as_echo "#define OPENSSL_HAS_ECC 1" >>confdefs.h
10970
10971                 TEST_SSH_ECC=yes
10972                 COMMENT_OUT_ECC=""
10973
10974 else
10975
10976                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977 $as_echo "no" >&6; }
10978                 TEST_SSH_ECC=no
10979                 COMMENT_OUT_ECC="#no ecc#"
10980
10981
10982 fi
10983 rm -f core conftest.err conftest.$ac_objext \
10984     conftest$ac_exeext conftest.$ac_ext
10985
10986
10987
10988 saved_LIBS="$LIBS"
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10990 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10991 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-liaf  $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h.  */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000    Use char because int might match the return type of a GCC
11001    builtin and then its argument prototype would still apply.  */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char ia_openinfo ();
11006 int
11007 main ()
11008 {
11009 return ia_openinfo ();
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015   ac_cv_lib_iaf_ia_openinfo=yes
11016 else
11017   ac_cv_lib_iaf_ia_openinfo=no
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020     conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
11024 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
11025 if test "x$ac_cv_lib_iaf_ia_openinfo" = x""yes; then :
11026
11027         LIBS="$LIBS -liaf"
11028         for ac_func in set_id
11029 do :
11030   ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
11031 if test "x$ac_cv_func_set_id" = x""yes; then :
11032   cat >>confdefs.h <<_ACEOF
11033 #define HAVE_SET_ID 1
11034 _ACEOF
11035  SSHDLIBS="$SSHDLIBS -liaf"
11036
11037 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
11038
11039
11040 fi
11041 done
11042
11043
11044 fi
11045
11046 LIBS="$saved_LIBS"
11047
11048 ### Configure cryptographic random number support
11049
11050 # Check wheter OpenSSL seeds itself
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
11052 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
11053 if test "$cross_compiling" = yes; then :
11054
11055                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
11056 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
11057                 # This is safe, since we will fatal() at runtime if
11058                 # OpenSSL is not seeded correctly.
11059                 OPENSSL_SEEDS_ITSELF=yes
11060
11061
11062 else
11063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h.  */
11065
11066 #include <string.h>
11067 #include <openssl/rand.h>
11068
11069 int
11070 main ()
11071 {
11072
11073         exit(RAND_status() == 1 ? 0 : 1);
11074
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 if ac_fn_c_try_run "$LINENO"; then :
11080
11081                 OPENSSL_SEEDS_ITSELF=yes
11082                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11083 $as_echo "yes" >&6; }
11084
11085 else
11086
11087                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11089
11090 fi
11091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11092   conftest.$ac_objext conftest.beam conftest.$ac_ext
11093 fi
11094
11095
11096 # PRNGD TCP socket
11097
11098 # Check whether --with-prngd-port was given.
11099 if test "${with_prngd_port+set}" = set; then :
11100   withval=$with_prngd_port;
11101                 case "$withval" in
11102                 no)
11103                         withval=""
11104                         ;;
11105                 [0-9]*)
11106                         ;;
11107                 *)
11108                         as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
11109                         ;;
11110                 esac
11111                 if test ! -z "$withval" ; then
11112                         PRNGD_PORT="$withval"
11113
11114 cat >>confdefs.h <<_ACEOF
11115 #define PRNGD_PORT $PRNGD_PORT
11116 _ACEOF
11117
11118                 fi
11119
11120
11121 fi
11122
11123
11124 # PRNGD Unix domain socket
11125
11126 # Check whether --with-prngd-socket was given.
11127 if test "${with_prngd_socket+set}" = set; then :
11128   withval=$with_prngd_socket;
11129                 case "$withval" in
11130                 yes)
11131                         withval="/var/run/egd-pool"
11132                         ;;
11133                 no)
11134                         withval=""
11135                         ;;
11136                 /*)
11137                         ;;
11138                 *)
11139                         as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
11140                         ;;
11141                 esac
11142
11143                 if test ! -z "$withval" ; then
11144                         if test ! -z "$PRNGD_PORT" ; then
11145                                 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
11146                         fi
11147                         if test ! -r "$withval" ; then
11148                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
11149 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
11150                         fi
11151                         PRNGD_SOCKET="$withval"
11152
11153 cat >>confdefs.h <<_ACEOF
11154 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11155 _ACEOF
11156
11157                 fi
11158
11159 else
11160
11161                 # Check for existing socket only if we don't have a random device already
11162                 if test "x$OPENSSL_SEEDS_ITSELF" != "xyes" ; then
11163                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
11164 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
11165                         # Insert other locations here
11166                         for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
11167                                 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
11168                                         PRNGD_SOCKET="$sock"
11169                                         cat >>confdefs.h <<_ACEOF
11170 #define PRNGD_SOCKET "$PRNGD_SOCKET"
11171 _ACEOF
11172
11173                                         break;
11174                                 fi
11175                         done
11176                         if test ! -z "$PRNGD_SOCKET" ; then
11177                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
11178 $as_echo "$PRNGD_SOCKET" >&6; }
11179                         else
11180                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11181 $as_echo "not found" >&6; }
11182                         fi
11183                 fi
11184
11185
11186 fi
11187
11188
11189 # Which randomness source do we use?
11190 if test ! -z "$PRNGD_PORT" ; then
11191         RAND_MSG="PRNGd port $PRNGD_PORT"
11192 elif test ! -z "$PRNGD_SOCKET" ; then
11193         RAND_MSG="PRNGd socket $PRNGD_SOCKET"
11194 elif test ! -z "$OPENSSL_SEEDS_ITSELF" ; then
11195
11196 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
11197
11198         RAND_MSG="OpenSSL internal ONLY"
11199 else
11200         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
11201 fi
11202
11203 # Check for PAM libs
11204 PAM_MSG="no"
11205
11206 # Check whether --with-pam was given.
11207 if test "${with_pam+set}" = set; then :
11208   withval=$with_pam;
11209                 if test "x$withval" != "xno" ; then
11210                         if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
11211                            test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
11212                                 as_fn_error $? "PAM headers not found" "$LINENO" 5
11213                         fi
11214
11215                         saved_LIBS="$LIBS"
11216                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11219   $as_echo_n "(cached) " >&6
11220 else
11221   ac_check_lib_save_LIBS=$LIBS
11222 LIBS="-ldl  $LIBS"
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h.  */
11225
11226 /* Override any GCC internal prototype to avoid an error.
11227    Use char because int might match the return type of a GCC
11228    builtin and then its argument prototype would still apply.  */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 char dlopen ();
11233 int
11234 main ()
11235 {
11236 return dlopen ();
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 if ac_fn_c_try_link "$LINENO"; then :
11242   ac_cv_lib_dl_dlopen=yes
11243 else
11244   ac_cv_lib_dl_dlopen=no
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext \
11247     conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11253   cat >>confdefs.h <<_ACEOF
11254 #define HAVE_LIBDL 1
11255 _ACEOF
11256
11257   LIBS="-ldl $LIBS"
11258
11259 fi
11260
11261                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
11262 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
11263 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then :
11264   $as_echo_n "(cached) " >&6
11265 else
11266   ac_check_lib_save_LIBS=$LIBS
11267 LIBS="-lpam  $LIBS"
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h.  */
11270
11271 /* Override any GCC internal prototype to avoid an error.
11272    Use char because int might match the return type of a GCC
11273    builtin and then its argument prototype would still apply.  */
11274 #ifdef __cplusplus
11275 extern "C"
11276 #endif
11277 char pam_set_item ();
11278 int
11279 main ()
11280 {
11281 return pam_set_item ();
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287   ac_cv_lib_pam_pam_set_item=yes
11288 else
11289   ac_cv_lib_pam_pam_set_item=no
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292     conftest$ac_exeext conftest.$ac_ext
11293 LIBS=$ac_check_lib_save_LIBS
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
11296 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
11297 if test "x$ac_cv_lib_pam_pam_set_item" = x""yes; then :
11298   cat >>confdefs.h <<_ACEOF
11299 #define HAVE_LIBPAM 1
11300 _ACEOF
11301
11302   LIBS="-lpam $LIBS"
11303
11304 else
11305   as_fn_error $? "*** libpam missing" "$LINENO" 5
11306 fi
11307
11308                         for ac_func in pam_getenvlist
11309 do :
11310   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
11311 if test "x$ac_cv_func_pam_getenvlist" = x""yes; then :
11312   cat >>confdefs.h <<_ACEOF
11313 #define HAVE_PAM_GETENVLIST 1
11314 _ACEOF
11315
11316 fi
11317 done
11318
11319                         for ac_func in pam_putenv
11320 do :
11321   ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
11322 if test "x$ac_cv_func_pam_putenv" = x""yes; then :
11323   cat >>confdefs.h <<_ACEOF
11324 #define HAVE_PAM_PUTENV 1
11325 _ACEOF
11326
11327 fi
11328 done
11329
11330                         LIBS="$saved_LIBS"
11331
11332                         PAM_MSG="yes"
11333
11334                         SSHDLIBS="$SSHDLIBS -lpam"
11335
11336 $as_echo "#define USE_PAM 1" >>confdefs.h
11337
11338
11339                         if test $ac_cv_lib_dl_dlopen = yes; then
11340                                 case "$LIBS" in
11341                                 *-ldl*)
11342                                         # libdl already in LIBS
11343                                         ;;
11344                                 *)
11345                                         SSHDLIBS="$SSHDLIBS -ldl"
11346                                         ;;
11347                                 esac
11348                         fi
11349                 fi
11350
11351
11352 fi
11353
11354
11355 # Check for older PAM
11356 if test "x$PAM_MSG" = "xyes" ; then
11357         # Check PAM strerror arguments (old PAM)
11358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
11359 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
11360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 #include <stdlib.h>
11364 #if defined(HAVE_SECURITY_PAM_APPL_H)
11365 #include <security/pam_appl.h>
11366 #elif defined (HAVE_PAM_PAM_APPL_H)
11367 #include <pam/pam_appl.h>
11368 #endif
11369
11370 int
11371 main ()
11372 {
11373
11374 (void)pam_strerror((pam_handle_t *)NULL, -1);
11375
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_compile "$LINENO"; then :
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11383 else
11384
11385
11386 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
11387
11388                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390                         PAM_MSG="yes (old library)"
11391
11392
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 fi
11396
11397 SSH_PRIVSEP_USER=sshd
11398
11399 # Check whether --with-privsep-user was given.
11400 if test "${with_privsep_user+set}" = set; then :
11401   withval=$with_privsep_user;
11402                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
11403                     test "x${withval}" != "xyes"; then
11404                         SSH_PRIVSEP_USER=$withval
11405                 fi
11406
11407
11408 fi
11409
11410
11411 cat >>confdefs.h <<_ACEOF
11412 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
11413 _ACEOF
11414
11415
11416
11417 # Decide which sandbox style to use
11418 sandbox_arg=""
11419
11420 # Check whether --with-sandbox was given.
11421 if test "${with_sandbox+set}" = set; then :
11422   withval=$with_sandbox;
11423                 if test "x$withval" = "xyes" ; then
11424                         sandbox_arg=""
11425                 else
11426                         sandbox_arg="$withval"
11427                 fi
11428
11429
11430 fi
11431
11432 if test "x$sandbox_arg" = "xsystrace" || \
11433    ( test -z "$sandbox_arg" && test "x$have_systr_policy_kill" = "x1" ) ; then
11434         test "x$have_systr_policy_kill" != "x1" && \
11435                 as_fn_error $? "systrace sandbox requires systrace headers and SYSTR_POLICY_KILL support" "$LINENO" 5
11436         SANDBOX_STYLE="systrace"
11437
11438 $as_echo "#define SANDBOX_SYSTRACE 1" >>confdefs.h
11439
11440 elif test "x$sandbox_arg" = "xdarwin" || \
11441      ( test -z "$sandbox_arg" && test "x$ac_cv_func_sandbox_init" = "xyes" && \
11442        test "x$ac_cv_header_sandbox_h" = "xyes") ; then
11443         test "x$ac_cv_func_sandbox_init" != "xyes" -o \
11444              "x$ac_cv_header_sandbox_h" != "xyes" && \
11445                 as_fn_error $? "Darwin seatbelt sandbox requires sandbox.h and sandbox_init function" "$LINENO" 5
11446         SANDBOX_STYLE="darwin"
11447
11448 $as_echo "#define SANDBOX_DARWIN 1" >>confdefs.h
11449
11450 elif test "x$sandbox_arg" = "xrlimit" || \
11451      ( test -z "$sandbox_arg" && test "x$ac_cv_func_setrlimit" = "xyes" ) ; then
11452         test "x$ac_cv_func_setrlimit" != "xyes" && \
11453                 as_fn_error $? "rlimit sandbox requires setrlimit function" "$LINENO" 5
11454         SANDBOX_STYLE="rlimit"
11455
11456 $as_echo "#define SANDBOX_RLIMIT 1" >>confdefs.h
11457
11458 elif test -z "$sandbox_arg" || test "x$sandbox_arg" = "xno" || \
11459      test "x$sandbox_arg" = "xnone" || test "x$sandbox_arg" = "xnull" ; then
11460         SANDBOX_STYLE="none"
11461
11462 $as_echo "#define SANDBOX_NULL 1" >>confdefs.h
11463
11464 else
11465         as_fn_error $? "unsupported --with-sandbox" "$LINENO" 5
11466 fi
11467
11468 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11469 if test ! -z "$SONY" ; then
11470   LIBS="$LIBS -liberty";
11471 fi
11472
11473 # Check for  long long datatypes
11474 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11475 if test "x$ac_cv_type_long_long" = x""yes; then :
11476
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_LONG_LONG 1
11479 _ACEOF
11480
11481
11482 fi
11483 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11484 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
11485
11486 cat >>confdefs.h <<_ACEOF
11487 #define HAVE_UNSIGNED_LONG_LONG 1
11488 _ACEOF
11489
11490
11491 fi
11492 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11493 if test "x$ac_cv_type_long_double" = x""yes; then :
11494
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_LONG_DOUBLE 1
11497 _ACEOF
11498
11499
11500 fi
11501
11502
11503 # Check datatype sizes
11504 # The cast to long int works around a bug in the HP C Compiler
11505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11507 # This bug is HP SR number 8606223364.
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11509 $as_echo_n "checking size of char... " >&6; }
11510 if test "${ac_cv_sizeof_char+set}" = set; then :
11511   $as_echo_n "(cached) " >&6
11512 else
11513   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
11514
11515 else
11516   if test "$ac_cv_type_char" = yes; then
11517      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11519 as_fn_error 77 "cannot compute sizeof (char)
11520 See \`config.log' for more details" "$LINENO" 5 ; }
11521    else
11522      ac_cv_sizeof_char=0
11523    fi
11524 fi
11525
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11528 $as_echo "$ac_cv_sizeof_char" >&6; }
11529
11530
11531
11532 cat >>confdefs.h <<_ACEOF
11533 #define SIZEOF_CHAR $ac_cv_sizeof_char
11534 _ACEOF
11535
11536
11537 # The cast to long int works around a bug in the HP C Compiler
11538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11540 # This bug is HP SR number 8606223364.
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11542 $as_echo_n "checking size of short int... " >&6; }
11543 if test "${ac_cv_sizeof_short_int+set}" = set; then :
11544   $as_echo_n "(cached) " >&6
11545 else
11546   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
11547
11548 else
11549   if test "$ac_cv_type_short_int" = yes; then
11550      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11552 as_fn_error 77 "cannot compute sizeof (short int)
11553 See \`config.log' for more details" "$LINENO" 5 ; }
11554    else
11555      ac_cv_sizeof_short_int=0
11556    fi
11557 fi
11558
11559 fi
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11561 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11562
11563
11564
11565 cat >>confdefs.h <<_ACEOF
11566 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11567 _ACEOF
11568
11569
11570 # The cast to long int works around a bug in the HP C Compiler
11571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11573 # This bug is HP SR number 8606223364.
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11575 $as_echo_n "checking size of int... " >&6; }
11576 if test "${ac_cv_sizeof_int+set}" = set; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11580
11581 else
11582   if test "$ac_cv_type_int" = yes; then
11583      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11585 as_fn_error 77 "cannot compute sizeof (int)
11586 See \`config.log' for more details" "$LINENO" 5 ; }
11587    else
11588      ac_cv_sizeof_int=0
11589    fi
11590 fi
11591
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11594 $as_echo "$ac_cv_sizeof_int" >&6; }
11595
11596
11597
11598 cat >>confdefs.h <<_ACEOF
11599 #define SIZEOF_INT $ac_cv_sizeof_int
11600 _ACEOF
11601
11602
11603 # The cast to long int works around a bug in the HP C Compiler
11604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11606 # This bug is HP SR number 8606223364.
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11608 $as_echo_n "checking size of long int... " >&6; }
11609 if test "${ac_cv_sizeof_long_int+set}" = set; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
11613
11614 else
11615   if test "$ac_cv_type_long_int" = yes; then
11616      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11618 as_fn_error 77 "cannot compute sizeof (long int)
11619 See \`config.log' for more details" "$LINENO" 5 ; }
11620    else
11621      ac_cv_sizeof_long_int=0
11622    fi
11623 fi
11624
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11627 $as_echo "$ac_cv_sizeof_long_int" >&6; }
11628
11629
11630
11631 cat >>confdefs.h <<_ACEOF
11632 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11633 _ACEOF
11634
11635
11636 # The cast to long int works around a bug in the HP C Compiler
11637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11639 # This bug is HP SR number 8606223364.
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11641 $as_echo_n "checking size of long long int... " >&6; }
11642 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
11643   $as_echo_n "(cached) " >&6
11644 else
11645   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
11646
11647 else
11648   if test "$ac_cv_type_long_long_int" = yes; then
11649      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11651 as_fn_error 77 "cannot compute sizeof (long long int)
11652 See \`config.log' for more details" "$LINENO" 5 ; }
11653    else
11654      ac_cv_sizeof_long_long_int=0
11655    fi
11656 fi
11657
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11660 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11661
11662
11663
11664 cat >>confdefs.h <<_ACEOF
11665 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11666 _ACEOF
11667
11668
11669
11670 # Sanity check long long for some platforms (AIX)
11671 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11672         ac_cv_sizeof_long_long_int=0
11673 fi
11674
11675 # compute LLONG_MIN and LLONG_MAX if we don't know them.
11676 if test -z "$have_llong_max"; then
11677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
11678 $as_echo_n "checking for max value of long long... " >&6; }
11679         if test "$cross_compiling" = yes; then :
11680
11681                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11682 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11683
11684
11685 else
11686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h.  */
11688
11689 #include <stdio.h>
11690 /* Why is this so damn hard? */
11691 #ifdef __GNUC__
11692 # undef __GNUC__
11693 #endif
11694 #define __USE_ISOC99
11695 #include <limits.h>
11696 #define DATA "conftest.llminmax"
11697 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
11698
11699 /*
11700  * printf in libc on some platforms (eg old Tru64) does not understand %lld so
11701  * we do this the hard way.
11702  */
11703 static int
11704 fprint_ll(FILE *f, long long n)
11705 {
11706         unsigned int i;
11707         int l[sizeof(long long) * 8];
11708
11709         if (n < 0)
11710                 if (fprintf(f, "-") < 0)
11711                         return -1;
11712         for (i = 0; n != 0; i++) {
11713                 l[i] = my_abs(n % 10);
11714                 n /= 10;
11715         }
11716         do {
11717                 if (fprintf(f, "%d", l[--i]) < 0)
11718                         return -1;
11719         } while (i != 0);
11720         if (fprintf(f, " ") < 0)
11721                 return -1;
11722         return 0;
11723 }
11724
11725 int
11726 main ()
11727 {
11728
11729         FILE *f;
11730         long long i, llmin, llmax = 0;
11731
11732         if((f = fopen(DATA,"w")) == NULL)
11733                 exit(1);
11734
11735 #if defined(LLONG_MIN) && defined(LLONG_MAX)
11736         fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
11737         llmin = LLONG_MIN;
11738         llmax = LLONG_MAX;
11739 #else
11740         fprintf(stderr, "Calculating  LLONG_MIN and LLONG_MAX\n");
11741         /* This will work on one's complement and two's complement */
11742         for (i = 1; i > llmax; i <<= 1, i++)
11743                 llmax = i;
11744         llmin = llmax + 1LL;    /* wrap */
11745 #endif
11746
11747         /* Sanity check */
11748         if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
11749             || llmax - 1 > llmax || llmin == llmax || llmin == 0
11750             || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
11751                 fprintf(f, "unknown unknown\n");
11752                 exit(2);
11753         }
11754
11755         if (fprint_ll(f, llmin) < 0)
11756                 exit(3);
11757         if (fprint_ll(f, llmax) < 0)
11758                 exit(4);
11759         if (fclose(f) < 0)
11760                 exit(5);
11761         exit(0);
11762
11763   ;
11764   return 0;
11765 }
11766 _ACEOF
11767 if ac_fn_c_try_run "$LINENO"; then :
11768
11769                         llong_min=`$AWK '{print $1}' conftest.llminmax`
11770                         llong_max=`$AWK '{print $2}' conftest.llminmax`
11771
11772                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
11773 $as_echo "$llong_max" >&6; }
11774
11775 cat >>confdefs.h <<_ACEOF
11776 #define LLONG_MAX ${llong_max}LL
11777 _ACEOF
11778
11779                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
11780 $as_echo_n "checking for min value of long long... " >&6; }
11781                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
11782 $as_echo "$llong_min" >&6; }
11783
11784 cat >>confdefs.h <<_ACEOF
11785 #define LLONG_MIN ${llong_min}LL
11786 _ACEOF
11787
11788
11789 else
11790
11791                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11792 $as_echo "not found" >&6; }
11793
11794 fi
11795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11796   conftest.$ac_objext conftest.beam conftest.$ac_ext
11797 fi
11798
11799 fi
11800
11801
11802 # More checks for data types
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
11804 $as_echo_n "checking for u_int type... " >&6; }
11805 if test "${ac_cv_have_u_int+set}" = set; then :
11806   $as_echo_n "(cached) " >&6
11807 else
11808
11809         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h.  */
11811  #include <sys/types.h>
11812 int
11813 main ()
11814 {
11815  u_int a; a = 1;
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 if ac_fn_c_try_compile "$LINENO"; then :
11821    ac_cv_have_u_int="yes"
11822 else
11823    ac_cv_have_u_int="no"
11824
11825 fi
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827
11828 fi
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
11830 $as_echo "$ac_cv_have_u_int" >&6; }
11831 if test "x$ac_cv_have_u_int" = "xyes" ; then
11832
11833 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
11834
11835         have_u_int=1
11836 fi
11837
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
11839 $as_echo_n "checking for intXX_t types... " >&6; }
11840 if test "${ac_cv_have_intxx_t+set}" = set; then :
11841   $as_echo_n "(cached) " >&6
11842 else
11843
11844         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h.  */
11846  #include <sys/types.h>
11847 int
11848 main ()
11849 {
11850  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 if ac_fn_c_try_compile "$LINENO"; then :
11856    ac_cv_have_intxx_t="yes"
11857 else
11858    ac_cv_have_intxx_t="no"
11859
11860 fi
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862
11863 fi
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
11865 $as_echo "$ac_cv_have_intxx_t" >&6; }
11866 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11867
11868 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11869
11870         have_intxx_t=1
11871 fi
11872
11873 if (test -z "$have_intxx_t" && \
11874            test "x$ac_cv_header_stdint_h" = "xyes")
11875 then
11876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
11877 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
11878         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h.  */
11880  #include <stdint.h>
11881 int
11882 main ()
11883 {
11884  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 if ac_fn_c_try_compile "$LINENO"; then :
11890
11891                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11892
11893                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11895
11896 else
11897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899
11900 fi
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 fi
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
11905 $as_echo_n "checking for int64_t type... " >&6; }
11906 if test "${ac_cv_have_int64_t+set}" = set; then :
11907   $as_echo_n "(cached) " >&6
11908 else
11909
11910         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h.  */
11912
11913 #include <sys/types.h>
11914 #ifdef HAVE_STDINT_H
11915 # include <stdint.h>
11916 #endif
11917 #include <sys/socket.h>
11918 #ifdef HAVE_SYS_BITYPES_H
11919 # include <sys/bitypes.h>
11920 #endif
11921
11922 int
11923 main ()
11924 {
11925
11926 int64_t a; a = 1;
11927
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933    ac_cv_have_int64_t="yes"
11934 else
11935    ac_cv_have_int64_t="no"
11936
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
11942 $as_echo "$ac_cv_have_int64_t" >&6; }
11943 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11944
11945 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
11946
11947 fi
11948
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
11950 $as_echo_n "checking for u_intXX_t types... " >&6; }
11951 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
11952   $as_echo_n "(cached) " >&6
11953 else
11954
11955         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h.  */
11957  #include <sys/types.h>
11958 int
11959 main ()
11960 {
11961  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967    ac_cv_have_u_intxx_t="yes"
11968 else
11969    ac_cv_have_u_intxx_t="no"
11970
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
11976 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
11977 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11978
11979 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11980
11981         have_u_intxx_t=1
11982 fi
11983
11984 if test -z "$have_u_intxx_t" ; then
11985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
11986 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
11987         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h.  */
11989  #include <sys/socket.h>
11990 int
11991 main ()
11992 {
11993  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_compile "$LINENO"; then :
11999
12000                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12001
12002                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12003 $as_echo "yes" >&6; }
12004
12005 else
12006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12008
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011 fi
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
12014 $as_echo_n "checking for u_int64_t types... " >&6; }
12015 if test "${ac_cv_have_u_int64_t+set}" = set; then :
12016   $as_echo_n "(cached) " >&6
12017 else
12018
12019         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h.  */
12021  #include <sys/types.h>
12022 int
12023 main ()
12024 {
12025  u_int64_t a; a = 1;
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_compile "$LINENO"; then :
12031    ac_cv_have_u_int64_t="yes"
12032 else
12033    ac_cv_have_u_int64_t="no"
12034
12035 fi
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12037
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
12040 $as_echo "$ac_cv_have_u_int64_t" >&6; }
12041 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
12042
12043 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12044
12045         have_u_int64_t=1
12046 fi
12047
12048 if test -z "$have_u_int64_t" ; then
12049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
12050 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
12051         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h.  */
12053  #include <sys/bitypes.h>
12054 int
12055 main ()
12056 {
12057  u_int64_t a; a = 1
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_compile "$LINENO"; then :
12063
12064                         $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
12065
12066                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12067 $as_echo "yes" >&6; }
12068
12069 else
12070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12072
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 fi
12076
12077 if test -z "$have_u_intxx_t" ; then
12078         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
12079 $as_echo_n "checking for uintXX_t types... " >&6; }
12080 if test "${ac_cv_have_uintxx_t+set}" = set; then :
12081   $as_echo_n "(cached) " >&6
12082 else
12083
12084                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h.  */
12086
12087 #include <sys/types.h>
12088
12089 int
12090 main ()
12091 {
12092
12093         uint8_t a;
12094         uint16_t b;
12095         uint32_t c;
12096         a = b = c = 1;
12097
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103    ac_cv_have_uintxx_t="yes"
12104 else
12105    ac_cv_have_uintxx_t="no"
12106
12107 fi
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
12112 $as_echo "$ac_cv_have_uintxx_t" >&6; }
12113         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
12114
12115 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12116
12117         fi
12118 fi
12119
12120 if test -z "$have_uintxx_t" ; then
12121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
12122 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
12123         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125  #include <stdint.h>
12126 int
12127 main ()
12128 {
12129  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 if ac_fn_c_try_compile "$LINENO"; then :
12135
12136                         $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
12137
12138                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139 $as_echo "yes" >&6; }
12140
12141 else
12142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12144
12145 fi
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 fi
12148
12149 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
12150            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
12151 then
12152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
12153 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
12154         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h.  */
12156
12157 #include <sys/bitypes.h>
12158
12159 int
12160 main ()
12161 {
12162
12163                         int8_t a; int16_t b; int32_t c;
12164                         u_int8_t e; u_int16_t f; u_int32_t g;
12165                         a = b = c = e = f = g = 1;
12166
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172
12173                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
12174
12175                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
12176
12177                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12178 $as_echo "yes" >&6; }
12179
12180 else
12181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12183
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 fi
12187
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
12190 $as_echo_n "checking for u_char... " >&6; }
12191 if test "${ac_cv_have_u_char+set}" = set; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194
12195         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h.  */
12197  #include <sys/types.h>
12198 int
12199 main ()
12200 {
12201  u_char foo; foo = 125;
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 if ac_fn_c_try_compile "$LINENO"; then :
12207    ac_cv_have_u_char="yes"
12208 else
12209    ac_cv_have_u_char="no"
12210
12211 fi
12212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213
12214 fi
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
12216 $as_echo "$ac_cv_have_u_char" >&6; }
12217 if test "x$ac_cv_have_u_char" = "xyes" ; then
12218
12219 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
12220
12221 fi
12222
12223
12224    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12225 #include <sys/socket.h>
12226 "
12227 if test "x$ac_cv_type_socklen_t" = x""yes; then :
12228
12229 else
12230
12231       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12232 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12233       if test "${curl_cv_socklen_t_equiv+set}" = set; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236
12237          # Systems have either "struct sockaddr *" or
12238          # "void *" as the second argument to getpeername
12239          curl_cv_socklen_t_equiv=
12240          for arg2 in "struct sockaddr" void; do
12241             for t in int size_t unsigned long "unsigned long"; do
12242                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h.  */
12244
12245                   #include <sys/types.h>
12246                   #include <sys/socket.h>
12247
12248                   int getpeername (int, $arg2 *, $t *);
12249
12250 int
12251 main ()
12252 {
12253
12254                   $t len;
12255                   getpeername(0,0,&len);
12256
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 if ac_fn_c_try_compile "$LINENO"; then :
12262
12263                   curl_cv_socklen_t_equiv="$t"
12264                   break
12265
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268             done
12269          done
12270
12271          if test "x$curl_cv_socklen_t_equiv" = x; then
12272             as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12273          fi
12274
12275 fi
12276
12277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12278 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12279
12280 cat >>confdefs.h <<_ACEOF
12281 #define socklen_t $curl_cv_socklen_t_equiv
12282 _ACEOF
12283
12284 fi
12285
12286
12287
12288 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12289 "
12290 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
12291
12292 cat >>confdefs.h <<_ACEOF
12293 #define HAVE_SIG_ATOMIC_T 1
12294 _ACEOF
12295
12296
12297 fi
12298
12299 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12300 #include <sys/types.h>
12301 #ifdef HAVE_SYS_BITYPES_H
12302 #include <sys/bitypes.h>
12303 #endif
12304 #ifdef HAVE_SYS_STATFS_H
12305 #include <sys/statfs.h>
12306 #endif
12307 #ifdef HAVE_SYS_STATVFS_H
12308 #include <sys/statvfs.h>
12309 #endif
12310
12311 "
12312 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12313
12314 cat >>confdefs.h <<_ACEOF
12315 #define HAVE_FSBLKCNT_T 1
12316 _ACEOF
12317
12318
12319 fi
12320 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12321 #include <sys/types.h>
12322 #ifdef HAVE_SYS_BITYPES_H
12323 #include <sys/bitypes.h>
12324 #endif
12325 #ifdef HAVE_SYS_STATFS_H
12326 #include <sys/statfs.h>
12327 #endif
12328 #ifdef HAVE_SYS_STATVFS_H
12329 #include <sys/statvfs.h>
12330 #endif
12331
12332 "
12333 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12334
12335 cat >>confdefs.h <<_ACEOF
12336 #define HAVE_FSFILCNT_T 1
12337 _ACEOF
12338
12339
12340 fi
12341
12342
12343 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12344 #include <netinet/in.h>
12345 "
12346 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
12347
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_IN_ADDR_T 1
12350 _ACEOF
12351
12352
12353 fi
12354 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12355 #include <netinet/in.h>
12356 "
12357 if test "x$ac_cv_type_in_port_t" = x""yes; then :
12358
12359 cat >>confdefs.h <<_ACEOF
12360 #define HAVE_IN_PORT_T 1
12361 _ACEOF
12362
12363
12364 fi
12365
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12368 $as_echo_n "checking for size_t... " >&6; }
12369 if test "${ac_cv_have_size_t+set}" = set; then :
12370   $as_echo_n "(cached) " >&6
12371 else
12372
12373         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h.  */
12375  #include <sys/types.h>
12376 int
12377 main ()
12378 {
12379  size_t foo; foo = 1235;
12380   ;
12381   return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_compile "$LINENO"; then :
12385    ac_cv_have_size_t="yes"
12386 else
12387    ac_cv_have_size_t="no"
12388
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12394 $as_echo "$ac_cv_have_size_t" >&6; }
12395 if test "x$ac_cv_have_size_t" = "xyes" ; then
12396
12397 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12398
12399 fi
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12402 $as_echo_n "checking for ssize_t... " >&6; }
12403 if test "${ac_cv_have_ssize_t+set}" = set; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406
12407         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h.  */
12409  #include <sys/types.h>
12410 int
12411 main ()
12412 {
12413  ssize_t foo; foo = 1235;
12414   ;
12415   return 0;
12416 }
12417 _ACEOF
12418 if ac_fn_c_try_compile "$LINENO"; then :
12419    ac_cv_have_ssize_t="yes"
12420 else
12421    ac_cv_have_ssize_t="no"
12422
12423 fi
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12428 $as_echo "$ac_cv_have_ssize_t" >&6; }
12429 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12430
12431 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12432
12433 fi
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12436 $as_echo_n "checking for clock_t... " >&6; }
12437 if test "${ac_cv_have_clock_t+set}" = set; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440
12441         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h.  */
12443  #include <time.h>
12444 int
12445 main ()
12446 {
12447  clock_t foo; foo = 1235;
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_compile "$LINENO"; then :
12453    ac_cv_have_clock_t="yes"
12454 else
12455    ac_cv_have_clock_t="no"
12456
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12462 $as_echo "$ac_cv_have_clock_t" >&6; }
12463 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12464
12465 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12466
12467 fi
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12470 $as_echo_n "checking for sa_family_t... " >&6; }
12471 if test "${ac_cv_have_sa_family_t+set}" = set; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474
12475         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h.  */
12477
12478 #include <sys/types.h>
12479 #include <sys/socket.h>
12480
12481 int
12482 main ()
12483 {
12484  sa_family_t foo; foo = 1235;
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_compile "$LINENO"; then :
12490    ac_cv_have_sa_family_t="yes"
12491 else
12492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h.  */
12494
12495 #include <sys/types.h>
12496 #include <sys/socket.h>
12497 #include <netinet/in.h>
12498
12499 int
12500 main ()
12501 {
12502  sa_family_t foo; foo = 1235;
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 if ac_fn_c_try_compile "$LINENO"; then :
12508    ac_cv_have_sa_family_t="yes"
12509 else
12510    ac_cv_have_sa_family_t="no"
12511
12512 fi
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12520 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12521 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12522
12523 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12524
12525 fi
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12528 $as_echo_n "checking for pid_t... " >&6; }
12529 if test "${ac_cv_have_pid_t+set}" = set; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532
12533         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h.  */
12535  #include <sys/types.h>
12536 int
12537 main ()
12538 {
12539  pid_t foo; foo = 1235;
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_compile "$LINENO"; then :
12545    ac_cv_have_pid_t="yes"
12546 else
12547    ac_cv_have_pid_t="no"
12548
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12554 $as_echo "$ac_cv_have_pid_t" >&6; }
12555 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12556
12557 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12558
12559 fi
12560
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12562 $as_echo_n "checking for mode_t... " >&6; }
12563 if test "${ac_cv_have_mode_t+set}" = set; then :
12564   $as_echo_n "(cached) " >&6
12565 else
12566
12567         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h.  */
12569  #include <sys/types.h>
12570 int
12571 main ()
12572 {
12573  mode_t foo; foo = 1235;
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 if ac_fn_c_try_compile "$LINENO"; then :
12579    ac_cv_have_mode_t="yes"
12580 else
12581    ac_cv_have_mode_t="no"
12582
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12588 $as_echo "$ac_cv_have_mode_t" >&6; }
12589 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12590
12591 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12592
12593 fi
12594
12595
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
12597 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
12598 if test "${ac_cv_have_struct_sockaddr_storage+set}" = set; then :
12599   $as_echo_n "(cached) " >&6
12600 else
12601
12602         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h.  */
12604
12605 #include <sys/types.h>
12606 #include <sys/socket.h>
12607
12608 int
12609 main ()
12610 {
12611  struct sockaddr_storage s;
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_compile "$LINENO"; then :
12617    ac_cv_have_struct_sockaddr_storage="yes"
12618 else
12619    ac_cv_have_struct_sockaddr_storage="no"
12620
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
12626 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
12627 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12628
12629 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12630
12631 fi
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
12634 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
12635 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638
12639         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h.  */
12641
12642 #include <sys/types.h>
12643 #include <netinet/in.h>
12644
12645 int
12646 main ()
12647 {
12648  struct sockaddr_in6 s; s.sin6_family = 0;
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 if ac_fn_c_try_compile "$LINENO"; then :
12654    ac_cv_have_struct_sockaddr_in6="yes"
12655 else
12656    ac_cv_have_struct_sockaddr_in6="no"
12657
12658 fi
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660
12661 fi
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
12663 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
12664 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12665
12666 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
12667
12668 fi
12669
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
12671 $as_echo_n "checking for struct in6_addr... " >&6; }
12672 if test "${ac_cv_have_struct_in6_addr+set}" = set; then :
12673   $as_echo_n "(cached) " >&6
12674 else
12675
12676         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h.  */
12678
12679 #include <sys/types.h>
12680 #include <netinet/in.h>
12681
12682 int
12683 main ()
12684 {
12685  struct in6_addr s; s.s6_addr[0] = 0;
12686   ;
12687   return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691    ac_cv_have_struct_in6_addr="yes"
12692 else
12693    ac_cv_have_struct_in6_addr="no"
12694
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
12700 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
12701 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12702
12703 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
12704
12705
12706         ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
12707 #ifdef HAVE_SYS_TYPES_H
12708 #include <sys/types.h>
12709 #endif
12710 #include <netinet/in.h>
12711
12712 "
12713 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
12714
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
12717 _ACEOF
12718
12719
12720 fi
12721
12722 fi
12723
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
12725 $as_echo_n "checking for struct addrinfo... " >&6; }
12726 if test "${ac_cv_have_struct_addrinfo+set}" = set; then :
12727   $as_echo_n "(cached) " >&6
12728 else
12729
12730         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h.  */
12732
12733 #include <sys/types.h>
12734 #include <sys/socket.h>
12735 #include <netdb.h>
12736
12737 int
12738 main ()
12739 {
12740  struct addrinfo s; s.ai_flags = AI_PASSIVE;
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_compile "$LINENO"; then :
12746    ac_cv_have_struct_addrinfo="yes"
12747 else
12748    ac_cv_have_struct_addrinfo="no"
12749
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
12755 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
12756 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12757
12758 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
12759
12760 fi
12761
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12763 $as_echo_n "checking for struct timeval... " >&6; }
12764 if test "${ac_cv_have_struct_timeval+set}" = set; then :
12765   $as_echo_n "(cached) " >&6
12766 else
12767
12768         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h.  */
12770  #include <sys/time.h>
12771 int
12772 main ()
12773 {
12774  struct timeval tv; tv.tv_sec = 1;
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_c_try_compile "$LINENO"; then :
12780    ac_cv_have_struct_timeval="yes"
12781 else
12782    ac_cv_have_struct_timeval="no"
12783
12784 fi
12785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
12789 $as_echo "$ac_cv_have_struct_timeval" >&6; }
12790 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12791
12792 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
12793
12794         have_struct_timeval=1
12795 fi
12796
12797 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
12798 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
12799
12800 cat >>confdefs.h <<_ACEOF
12801 #define HAVE_STRUCT_TIMESPEC 1
12802 _ACEOF
12803
12804
12805 fi
12806
12807
12808 # We need int64_t or else certian parts of the compile will fail.
12809 if test "x$ac_cv_have_int64_t" = "xno" && \
12810         test "x$ac_cv_sizeof_long_int" != "x8" && \
12811         test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12812         echo "OpenSSH requires int64_t support.  Contact your vendor or install"
12813         echo "an alternative compiler (I.E., GCC) before continuing."
12814         echo ""
12815         exit 1;
12816 else
12817         if test "$cross_compiling" = yes; then :
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12819 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12820
12821 else
12822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h.  */
12824
12825 #include <stdio.h>
12826 #include <string.h>
12827 #ifdef HAVE_SNPRINTF
12828 main()
12829 {
12830         char buf[50];
12831         char expected_out[50];
12832         int mazsize = 50 ;
12833 #if (SIZEOF_LONG_INT == 8)
12834         long int num = 0x7fffffffffffffff;
12835 #else
12836         long long num = 0x7fffffffffffffffll;
12837 #endif
12838         strcpy(expected_out, "9223372036854775807");
12839         snprintf(buf, mazsize, "%lld", num);
12840         if(strcmp(buf, expected_out) != 0)
12841                 exit(1);
12842         exit(0);
12843 }
12844 #else
12845 main() { exit(0); }
12846 #endif
12847
12848 _ACEOF
12849 if ac_fn_c_try_run "$LINENO"; then :
12850    true
12851 else
12852    $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12853
12854 fi
12855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12856   conftest.$ac_objext conftest.beam conftest.$ac_ext
12857 fi
12858
12859 fi
12860
12861
12862 # look for field 'ut_host' in header 'utmp.h'
12863                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12864                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
12866 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
12867         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12868   $as_echo_n "(cached) " >&6
12869 else
12870
12871                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h.  */
12873 #include <utmp.h>
12874
12875 _ACEOF
12876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12877   $EGREP "ut_host" >/dev/null 2>&1; then :
12878                         eval "$ossh_varname=yes"
12879 else
12880                         eval "$ossh_varname=no"
12881 fi
12882 rm -f conftest*
12883
12884 fi
12885
12886         ossh_result=`eval 'echo $'"$ossh_varname"`
12887         if test -n "`echo $ossh_varname`"; then
12888                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12889 $as_echo "$ossh_result" >&6; }
12890                 if test "x$ossh_result" = "xyes"; then
12891
12892 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
12893
12894                 fi
12895         else
12896                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12898         fi
12899
12900
12901 # look for field 'ut_host' in header 'utmpx.h'
12902                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12903                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
12905 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
12906         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909
12910                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h.  */
12912 #include <utmpx.h>
12913
12914 _ACEOF
12915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12916   $EGREP "ut_host" >/dev/null 2>&1; then :
12917                         eval "$ossh_varname=yes"
12918 else
12919                         eval "$ossh_varname=no"
12920 fi
12921 rm -f conftest*
12922
12923 fi
12924
12925         ossh_result=`eval 'echo $'"$ossh_varname"`
12926         if test -n "`echo $ossh_varname`"; then
12927                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12928 $as_echo "$ossh_result" >&6; }
12929                 if test "x$ossh_result" = "xyes"; then
12930
12931 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
12932
12933                 fi
12934         else
12935                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937         fi
12938
12939
12940 # look for field 'syslen' in header 'utmpx.h'
12941                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12942                 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12943         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
12944 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
12945         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12946   $as_echo_n "(cached) " >&6
12947 else
12948
12949                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h.  */
12951 #include <utmpx.h>
12952
12953 _ACEOF
12954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12955   $EGREP "syslen" >/dev/null 2>&1; then :
12956                         eval "$ossh_varname=yes"
12957 else
12958                         eval "$ossh_varname=no"
12959 fi
12960 rm -f conftest*
12961
12962 fi
12963
12964         ossh_result=`eval 'echo $'"$ossh_varname"`
12965         if test -n "`echo $ossh_varname`"; then
12966                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12967 $as_echo "$ossh_result" >&6; }
12968                 if test "x$ossh_result" = "xyes"; then
12969
12970 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
12971
12972                 fi
12973         else
12974                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976         fi
12977
12978
12979 # look for field 'ut_pid' in header 'utmp.h'
12980                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12981                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12982         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
12983 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
12984         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12985   $as_echo_n "(cached) " >&6
12986 else
12987
12988                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h.  */
12990 #include <utmp.h>
12991
12992 _ACEOF
12993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12994   $EGREP "ut_pid" >/dev/null 2>&1; then :
12995                         eval "$ossh_varname=yes"
12996 else
12997                         eval "$ossh_varname=no"
12998 fi
12999 rm -f conftest*
13000
13001 fi
13002
13003         ossh_result=`eval 'echo $'"$ossh_varname"`
13004         if test -n "`echo $ossh_varname`"; then
13005                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13006 $as_echo "$ossh_result" >&6; }
13007                 if test "x$ossh_result" = "xyes"; then
13008
13009 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
13010
13011                 fi
13012         else
13013                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015         fi
13016
13017
13018 # look for field 'ut_type' in header 'utmp.h'
13019                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13020                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
13022 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
13023         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13024   $as_echo_n "(cached) " >&6
13025 else
13026
13027                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h.  */
13029 #include <utmp.h>
13030
13031 _ACEOF
13032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13033   $EGREP "ut_type" >/dev/null 2>&1; then :
13034                         eval "$ossh_varname=yes"
13035 else
13036                         eval "$ossh_varname=no"
13037 fi
13038 rm -f conftest*
13039
13040 fi
13041
13042         ossh_result=`eval 'echo $'"$ossh_varname"`
13043         if test -n "`echo $ossh_varname`"; then
13044                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13045 $as_echo "$ossh_result" >&6; }
13046                 if test "x$ossh_result" = "xyes"; then
13047
13048 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
13049
13050                 fi
13051         else
13052                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13054         fi
13055
13056
13057 # look for field 'ut_type' in header 'utmpx.h'
13058                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13059                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
13060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
13061 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
13062         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13063   $as_echo_n "(cached) " >&6
13064 else
13065
13066                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h.  */
13068 #include <utmpx.h>
13069
13070 _ACEOF
13071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13072   $EGREP "ut_type" >/dev/null 2>&1; then :
13073                         eval "$ossh_varname=yes"
13074 else
13075                         eval "$ossh_varname=no"
13076 fi
13077 rm -f conftest*
13078
13079 fi
13080
13081         ossh_result=`eval 'echo $'"$ossh_varname"`
13082         if test -n "`echo $ossh_varname`"; then
13083                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13084 $as_echo "$ossh_result" >&6; }
13085                 if test "x$ossh_result" = "xyes"; then
13086
13087 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
13088
13089                 fi
13090         else
13091                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13093         fi
13094
13095
13096 # look for field 'ut_tv' in header 'utmp.h'
13097                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13098                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
13100 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
13101         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13102   $as_echo_n "(cached) " >&6
13103 else
13104
13105                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h.  */
13107 #include <utmp.h>
13108
13109 _ACEOF
13110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13111   $EGREP "ut_tv" >/dev/null 2>&1; then :
13112                         eval "$ossh_varname=yes"
13113 else
13114                         eval "$ossh_varname=no"
13115 fi
13116 rm -f conftest*
13117
13118 fi
13119
13120         ossh_result=`eval 'echo $'"$ossh_varname"`
13121         if test -n "`echo $ossh_varname`"; then
13122                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13123 $as_echo "$ossh_result" >&6; }
13124                 if test "x$ossh_result" = "xyes"; then
13125
13126 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
13127
13128                 fi
13129         else
13130                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132         fi
13133
13134
13135 # look for field 'ut_id' in header 'utmp.h'
13136                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13137                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
13139 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
13140         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13141   $as_echo_n "(cached) " >&6
13142 else
13143
13144                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h.  */
13146 #include <utmp.h>
13147
13148 _ACEOF
13149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13150   $EGREP "ut_id" >/dev/null 2>&1; then :
13151                         eval "$ossh_varname=yes"
13152 else
13153                         eval "$ossh_varname=no"
13154 fi
13155 rm -f conftest*
13156
13157 fi
13158
13159         ossh_result=`eval 'echo $'"$ossh_varname"`
13160         if test -n "`echo $ossh_varname`"; then
13161                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13162 $as_echo "$ossh_result" >&6; }
13163                 if test "x$ossh_result" = "xyes"; then
13164
13165 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
13166
13167                 fi
13168         else
13169                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171         fi
13172
13173
13174 # look for field 'ut_id' in header 'utmpx.h'
13175                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13176                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
13177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
13178 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
13179         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13180   $as_echo_n "(cached) " >&6
13181 else
13182
13183                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h.  */
13185 #include <utmpx.h>
13186
13187 _ACEOF
13188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13189   $EGREP "ut_id" >/dev/null 2>&1; then :
13190                         eval "$ossh_varname=yes"
13191 else
13192                         eval "$ossh_varname=no"
13193 fi
13194 rm -f conftest*
13195
13196 fi
13197
13198         ossh_result=`eval 'echo $'"$ossh_varname"`
13199         if test -n "`echo $ossh_varname`"; then
13200                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13201 $as_echo "$ossh_result" >&6; }
13202                 if test "x$ossh_result" = "xyes"; then
13203
13204 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
13205
13206                 fi
13207         else
13208                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13210         fi
13211
13212
13213 # look for field 'ut_addr' in header 'utmp.h'
13214                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13215                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
13217 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
13218         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13219   $as_echo_n "(cached) " >&6
13220 else
13221
13222                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h.  */
13224 #include <utmp.h>
13225
13226 _ACEOF
13227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13228   $EGREP "ut_addr" >/dev/null 2>&1; then :
13229                         eval "$ossh_varname=yes"
13230 else
13231                         eval "$ossh_varname=no"
13232 fi
13233 rm -f conftest*
13234
13235 fi
13236
13237         ossh_result=`eval 'echo $'"$ossh_varname"`
13238         if test -n "`echo $ossh_varname`"; then
13239                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13240 $as_echo "$ossh_result" >&6; }
13241                 if test "x$ossh_result" = "xyes"; then
13242
13243 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13244
13245                 fi
13246         else
13247                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13249         fi
13250
13251
13252 # look for field 'ut_addr' in header 'utmpx.h'
13253                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13254                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13256 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13257         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13258   $as_echo_n "(cached) " >&6
13259 else
13260
13261                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h.  */
13263 #include <utmpx.h>
13264
13265 _ACEOF
13266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13267   $EGREP "ut_addr" >/dev/null 2>&1; then :
13268                         eval "$ossh_varname=yes"
13269 else
13270                         eval "$ossh_varname=no"
13271 fi
13272 rm -f conftest*
13273
13274 fi
13275
13276         ossh_result=`eval 'echo $'"$ossh_varname"`
13277         if test -n "`echo $ossh_varname`"; then
13278                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13279 $as_echo "$ossh_result" >&6; }
13280                 if test "x$ossh_result" = "xyes"; then
13281
13282 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13283
13284                 fi
13285         else
13286                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288         fi
13289
13290
13291 # look for field 'ut_addr_v6' in header 'utmp.h'
13292                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13293                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13295 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13296         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13297   $as_echo_n "(cached) " >&6
13298 else
13299
13300                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h.  */
13302 #include <utmp.h>
13303
13304 _ACEOF
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13307                         eval "$ossh_varname=yes"
13308 else
13309                         eval "$ossh_varname=no"
13310 fi
13311 rm -f conftest*
13312
13313 fi
13314
13315         ossh_result=`eval 'echo $'"$ossh_varname"`
13316         if test -n "`echo $ossh_varname`"; then
13317                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13318 $as_echo "$ossh_result" >&6; }
13319                 if test "x$ossh_result" = "xyes"; then
13320
13321 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13322
13323                 fi
13324         else
13325                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326 $as_echo "no" >&6; }
13327         fi
13328
13329
13330 # look for field 'ut_addr_v6' in header 'utmpx.h'
13331                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13332                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13334 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13335         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13336   $as_echo_n "(cached) " >&6
13337 else
13338
13339                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341 #include <utmpx.h>
13342
13343 _ACEOF
13344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13345   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13346                         eval "$ossh_varname=yes"
13347 else
13348                         eval "$ossh_varname=no"
13349 fi
13350 rm -f conftest*
13351
13352 fi
13353
13354         ossh_result=`eval 'echo $'"$ossh_varname"`
13355         if test -n "`echo $ossh_varname`"; then
13356                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13357 $as_echo "$ossh_result" >&6; }
13358                 if test "x$ossh_result" = "xyes"; then
13359
13360 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13361
13362                 fi
13363         else
13364                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13366         fi
13367
13368
13369 # look for field 'ut_exit' in header 'utmp.h'
13370                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13371                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13373 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13374         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13375   $as_echo_n "(cached) " >&6
13376 else
13377
13378                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h.  */
13380 #include <utmp.h>
13381
13382 _ACEOF
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384   $EGREP "ut_exit" >/dev/null 2>&1; then :
13385                         eval "$ossh_varname=yes"
13386 else
13387                         eval "$ossh_varname=no"
13388 fi
13389 rm -f conftest*
13390
13391 fi
13392
13393         ossh_result=`eval 'echo $'"$ossh_varname"`
13394         if test -n "`echo $ossh_varname`"; then
13395                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13396 $as_echo "$ossh_result" >&6; }
13397                 if test "x$ossh_result" = "xyes"; then
13398
13399 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13400
13401                 fi
13402         else
13403                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404 $as_echo "no" >&6; }
13405         fi
13406
13407
13408 # look for field 'ut_time' in header 'utmp.h'
13409                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13410                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13412 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13413         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416
13417                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h.  */
13419 #include <utmp.h>
13420
13421 _ACEOF
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423   $EGREP "ut_time" >/dev/null 2>&1; then :
13424                         eval "$ossh_varname=yes"
13425 else
13426                         eval "$ossh_varname=no"
13427 fi
13428 rm -f conftest*
13429
13430 fi
13431
13432         ossh_result=`eval 'echo $'"$ossh_varname"`
13433         if test -n "`echo $ossh_varname`"; then
13434                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13435 $as_echo "$ossh_result" >&6; }
13436                 if test "x$ossh_result" = "xyes"; then
13437
13438 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13439
13440                 fi
13441         else
13442                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13444         fi
13445
13446
13447 # look for field 'ut_time' in header 'utmpx.h'
13448                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13449                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13450         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13451 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13452         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13453   $as_echo_n "(cached) " >&6
13454 else
13455
13456                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h.  */
13458 #include <utmpx.h>
13459
13460 _ACEOF
13461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462   $EGREP "ut_time" >/dev/null 2>&1; then :
13463                         eval "$ossh_varname=yes"
13464 else
13465                         eval "$ossh_varname=no"
13466 fi
13467 rm -f conftest*
13468
13469 fi
13470
13471         ossh_result=`eval 'echo $'"$ossh_varname"`
13472         if test -n "`echo $ossh_varname`"; then
13473                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13474 $as_echo "$ossh_result" >&6; }
13475                 if test "x$ossh_result" = "xyes"; then
13476
13477 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13478
13479                 fi
13480         else
13481                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13483         fi
13484
13485
13486 # look for field 'ut_tv' in header 'utmpx.h'
13487                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13488                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13490 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13491         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13492   $as_echo_n "(cached) " >&6
13493 else
13494
13495                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h.  */
13497 #include <utmpx.h>
13498
13499 _ACEOF
13500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13501   $EGREP "ut_tv" >/dev/null 2>&1; then :
13502                         eval "$ossh_varname=yes"
13503 else
13504                         eval "$ossh_varname=no"
13505 fi
13506 rm -f conftest*
13507
13508 fi
13509
13510         ossh_result=`eval 'echo $'"$ossh_varname"`
13511         if test -n "`echo $ossh_varname`"; then
13512                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13513 $as_echo "$ossh_result" >&6; }
13514                 if test "x$ossh_result" = "xyes"; then
13515
13516 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13517
13518                 fi
13519         else
13520                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13522         fi
13523
13524
13525 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13526 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
13527
13528 cat >>confdefs.h <<_ACEOF
13529 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13530 _ACEOF
13531
13532
13533 fi
13534
13535 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13536 #include <stdio.h>
13537 #if HAVE_SYS_TYPES_H
13538 # include <sys/types.h>
13539 #endif
13540 #include <netinet/in.h>
13541 #include <arpa/nameser.h>
13542 #include <resolv.h>
13543
13544 "
13545 if test "x$ac_cv_member_struct___res_state_retrans" = x""yes; then :
13546
13547 else
13548
13549 $as_echo "#define __res_state state" >>confdefs.h
13550
13551 fi
13552
13553
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13555 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13556 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
13557   $as_echo_n "(cached) " >&6
13558 else
13559
13560         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h.  */
13562
13563 #include <sys/types.h>
13564 #include <sys/socket.h>
13565
13566 int
13567 main ()
13568 {
13569  struct sockaddr_storage s; s.ss_family = 1;
13570   ;
13571   return 0;
13572 }
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575    ac_cv_have_ss_family_in_struct_ss="yes"
13576 else
13577    ac_cv_have_ss_family_in_struct_ss="no"
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580
13581 fi
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13583 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13584 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13585
13586 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13587
13588 fi
13589
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13591 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13592 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
13593   $as_echo_n "(cached) " >&6
13594 else
13595
13596         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h.  */
13598
13599 #include <sys/types.h>
13600 #include <sys/socket.h>
13601
13602 int
13603 main ()
13604 {
13605  struct sockaddr_storage s; s.__ss_family = 1;
13606   ;
13607   return 0;
13608 }
13609 _ACEOF
13610 if ac_fn_c_try_compile "$LINENO"; then :
13611    ac_cv_have___ss_family_in_struct_ss="yes"
13612 else
13613    ac_cv_have___ss_family_in_struct_ss="no"
13614
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617
13618 fi
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13620 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
13621 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13622
13623 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
13624
13625 fi
13626
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
13628 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
13629 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then :
13630   $as_echo_n "(cached) " >&6
13631 else
13632
13633         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h.  */
13635  #include <pwd.h>
13636 int
13637 main ()
13638 {
13639  struct passwd p; p.pw_class = 0;
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 if ac_fn_c_try_compile "$LINENO"; then :
13645    ac_cv_have_pw_class_in_struct_passwd="yes"
13646 else
13647    ac_cv_have_pw_class_in_struct_passwd="no"
13648
13649 fi
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651
13652 fi
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13654 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
13655 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13656
13657 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
13658
13659 fi
13660
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
13662 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
13663 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then :
13664   $as_echo_n "(cached) " >&6
13665 else
13666
13667         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h.  */
13669  #include <pwd.h>
13670 int
13671 main ()
13672 {
13673  struct passwd p; p.pw_expire = 0;
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_compile "$LINENO"; then :
13679    ac_cv_have_pw_expire_in_struct_passwd="yes"
13680 else
13681    ac_cv_have_pw_expire_in_struct_passwd="no"
13682
13683 fi
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685
13686 fi
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13688 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
13689 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13690
13691 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
13692
13693 fi
13694
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
13696 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
13697 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then :
13698   $as_echo_n "(cached) " >&6
13699 else
13700
13701         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h.  */
13703  #include <pwd.h>
13704 int
13705 main ()
13706 {
13707  struct passwd p; p.pw_change = 0;
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 if ac_fn_c_try_compile "$LINENO"; then :
13713    ac_cv_have_pw_change_in_struct_passwd="yes"
13714 else
13715    ac_cv_have_pw_change_in_struct_passwd="no"
13716
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13722 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
13723 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13724
13725 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
13726
13727 fi
13728
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13730 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
13731 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then :
13732   $as_echo_n "(cached) " >&6
13733 else
13734
13735         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h.  */
13737
13738 #include <sys/types.h>
13739 #include <sys/socket.h>
13740 #include <sys/uio.h>
13741
13742 int
13743 main ()
13744 {
13745
13746 #ifdef msg_accrights
13747 #error "msg_accrights is a macro"
13748 exit(1);
13749 #endif
13750 struct msghdr m;
13751 m.msg_accrights = 0;
13752 exit(0);
13753
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 if ac_fn_c_try_compile "$LINENO"; then :
13759    ac_cv_have_accrights_in_msghdr="yes"
13760 else
13761    ac_cv_have_accrights_in_msghdr="no"
13762
13763 fi
13764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13768 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
13769 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13770
13771 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13772
13773 fi
13774
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
13776 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h.  */
13779
13780 #include <sys/types.h>
13781 #include <sys/stat.h>
13782 #ifdef HAVE_SYS_TIME_H
13783 # include <sys/time.h>
13784 #endif
13785 #ifdef HAVE_SYS_MOUNT_H
13786 #include <sys/mount.h>
13787 #endif
13788 #ifdef HAVE_SYS_STATVFS_H
13789 #include <sys/statvfs.h>
13790 #endif
13791
13792 int
13793 main ()
13794 {
13795  struct statvfs s; s.f_fsid = 0;
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_compile "$LINENO"; then :
13801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13802 $as_echo "yes" >&6; }
13803 else
13804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 $as_echo "no" >&6; }
13806
13807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
13808 $as_echo_n "checking if fsid_t has member val... " >&6; }
13809         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h.  */
13811
13812 #include <sys/types.h>
13813 #include <sys/statvfs.h>
13814
13815 int
13816 main ()
13817 {
13818  fsid_t t; t.val[0] = 0;
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_c_try_compile "$LINENO"; then :
13824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13826
13827 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
13828
13829 else
13830    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13832 fi
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834
13835         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
13836 $as_echo_n "checking if f_fsid has member __val... " >&6; }
13837         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h.  */
13839
13840 #include <sys/types.h>
13841 #include <sys/statvfs.h>
13842
13843 int
13844 main ()
13845 {
13846  fsid_t t; t.__val[0] = 0;
13847   ;
13848   return 0;
13849 }
13850 _ACEOF
13851 if ac_fn_c_try_compile "$LINENO"; then :
13852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13853 $as_echo "yes" >&6; }
13854
13855 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
13856
13857 else
13858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862
13863 fi
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13867 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
13868 if test "${ac_cv_have_control_in_msghdr+set}" = set; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871
13872         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h.  */
13874
13875 #include <sys/types.h>
13876 #include <sys/socket.h>
13877 #include <sys/uio.h>
13878
13879 int
13880 main ()
13881 {
13882
13883 #ifdef msg_control
13884 #error "msg_control is a macro"
13885 exit(1);
13886 #endif
13887 struct msghdr m;
13888 m.msg_control = 0;
13889 exit(0);
13890
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 if ac_fn_c_try_compile "$LINENO"; then :
13896    ac_cv_have_control_in_msghdr="yes"
13897 else
13898    ac_cv_have_control_in_msghdr="no"
13899
13900 fi
13901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13902
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13905 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
13906 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13907
13908 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13909
13910 fi
13911
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13913 $as_echo_n "checking if libc defines __progname... " >&6; }
13914 if test "${ac_cv_libc_defines___progname+set}" = set; then :
13915   $as_echo_n "(cached) " >&6
13916 else
13917
13918         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h.  */
13920
13921 int
13922 main ()
13923 {
13924  extern char *__progname; printf("%s", __progname);
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 if ac_fn_c_try_link "$LINENO"; then :
13930    ac_cv_libc_defines___progname="yes"
13931 else
13932    ac_cv_libc_defines___progname="no"
13933
13934 fi
13935 rm -f core conftest.err conftest.$ac_objext \
13936     conftest$ac_exeext conftest.$ac_ext
13937
13938 fi
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13940 $as_echo "$ac_cv_libc_defines___progname" >&6; }
13941 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13942
13943 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13944
13945 fi
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13948 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
13949 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then :
13950   $as_echo_n "(cached) " >&6
13951 else
13952
13953         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h.  */
13955  #include <stdio.h>
13956 int
13957 main ()
13958 {
13959  printf("%s", __FUNCTION__);
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 if ac_fn_c_try_link "$LINENO"; then :
13965    ac_cv_cc_implements___FUNCTION__="yes"
13966 else
13967    ac_cv_cc_implements___FUNCTION__="no"
13968
13969 fi
13970 rm -f core conftest.err conftest.$ac_objext \
13971     conftest$ac_exeext conftest.$ac_ext
13972
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13975 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
13976 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13977
13978 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13979
13980 fi
13981
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13983 $as_echo_n "checking whether $CC implements __func__... " >&6; }
13984 if test "${ac_cv_cc_implements___func__+set}" = set; then :
13985   $as_echo_n "(cached) " >&6
13986 else
13987
13988         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h.  */
13990  #include <stdio.h>
13991 int
13992 main ()
13993 {
13994  printf("%s", __func__);
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000    ac_cv_cc_implements___func__="yes"
14001 else
14002    ac_cv_cc_implements___func__="no"
14003
14004 fi
14005 rm -f core conftest.err conftest.$ac_objext \
14006     conftest$ac_exeext conftest.$ac_ext
14007
14008 fi
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
14010 $as_echo "$ac_cv_cc_implements___func__" >&6; }
14011 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
14012
14013 $as_echo "#define HAVE___func__ 1" >>confdefs.h
14014
14015 fi
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
14018 $as_echo_n "checking whether va_copy exists... " >&6; }
14019 if test "${ac_cv_have_va_copy+set}" = set; then :
14020   $as_echo_n "(cached) " >&6
14021 else
14022
14023         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025
14026 #include <stdarg.h>
14027 va_list x,y;
14028
14029 int
14030 main ()
14031 {
14032  va_copy(x,y);
14033   ;
14034   return 0;
14035 }
14036 _ACEOF
14037 if ac_fn_c_try_link "$LINENO"; then :
14038    ac_cv_have_va_copy="yes"
14039 else
14040    ac_cv_have_va_copy="no"
14041
14042 fi
14043 rm -f core conftest.err conftest.$ac_objext \
14044     conftest$ac_exeext conftest.$ac_ext
14045
14046 fi
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
14048 $as_echo "$ac_cv_have_va_copy" >&6; }
14049 if test "x$ac_cv_have_va_copy" = "xyes" ; then
14050
14051 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14052
14053 fi
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
14056 $as_echo_n "checking whether __va_copy exists... " >&6; }
14057 if test "${ac_cv_have___va_copy+set}" = set; then :
14058   $as_echo_n "(cached) " >&6
14059 else
14060
14061         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h.  */
14063
14064 #include <stdarg.h>
14065 va_list x,y;
14066
14067 int
14068 main ()
14069 {
14070  __va_copy(x,y);
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_link "$LINENO"; then :
14076    ac_cv_have___va_copy="yes"
14077 else
14078    ac_cv_have___va_copy="no"
14079
14080 fi
14081 rm -f core conftest.err conftest.$ac_objext \
14082     conftest$ac_exeext conftest.$ac_ext
14083
14084 fi
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
14086 $as_echo "$ac_cv_have___va_copy" >&6; }
14087 if test "x$ac_cv_have___va_copy" = "xyes" ; then
14088
14089 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14090
14091 fi
14092
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
14094 $as_echo_n "checking whether getopt has optreset support... " >&6; }
14095 if test "${ac_cv_have_getopt_optreset+set}" = set; then :
14096   $as_echo_n "(cached) " >&6
14097 else
14098
14099         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h.  */
14101  #include <getopt.h>
14102 int
14103 main ()
14104 {
14105  extern int optreset; optreset = 0;
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_link "$LINENO"; then :
14111    ac_cv_have_getopt_optreset="yes"
14112 else
14113    ac_cv_have_getopt_optreset="no"
14114
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext \
14117     conftest$ac_exeext conftest.$ac_ext
14118
14119 fi
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
14121 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
14122 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
14123
14124 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
14125
14126 fi
14127
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
14129 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
14130 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then :
14131   $as_echo_n "(cached) " >&6
14132 else
14133
14134         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h.  */
14136
14137 int
14138 main ()
14139 {
14140  extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_link "$LINENO"; then :
14146    ac_cv_libc_defines_sys_errlist="yes"
14147 else
14148    ac_cv_libc_defines_sys_errlist="no"
14149
14150 fi
14151 rm -f core conftest.err conftest.$ac_objext \
14152     conftest$ac_exeext conftest.$ac_ext
14153
14154 fi
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
14156 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
14157 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
14158
14159 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14160
14161 fi
14162
14163
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
14165 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
14166 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then :
14167   $as_echo_n "(cached) " >&6
14168 else
14169
14170         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h.  */
14172
14173 int
14174 main ()
14175 {
14176  extern int sys_nerr; printf("%i", sys_nerr);
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_link "$LINENO"; then :
14182    ac_cv_libc_defines_sys_nerr="yes"
14183 else
14184    ac_cv_libc_defines_sys_nerr="no"
14185
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext \
14188     conftest$ac_exeext conftest.$ac_ext
14189
14190 fi
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
14192 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
14193 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
14194
14195 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
14196
14197 fi
14198
14199 # Check libraries needed by DNS fingerprint support
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14201 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14202 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14203   $as_echo_n "(cached) " >&6
14204 else
14205   ac_func_search_save_LIBS=$LIBS
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h.  */
14208
14209 /* Override any GCC internal prototype to avoid an error.
14210    Use char because int might match the return type of a GCC
14211    builtin and then its argument prototype would still apply.  */
14212 #ifdef __cplusplus
14213 extern "C"
14214 #endif
14215 char getrrsetbyname ();
14216 int
14217 main ()
14218 {
14219 return getrrsetbyname ();
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 for ac_lib in '' resolv; do
14225   if test -z "$ac_lib"; then
14226     ac_res="none required"
14227   else
14228     ac_res=-l$ac_lib
14229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14230   fi
14231   if ac_fn_c_try_link "$LINENO"; then :
14232   ac_cv_search_getrrsetbyname=$ac_res
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext \
14235     conftest$ac_exeext
14236   if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14237   break
14238 fi
14239 done
14240 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14241
14242 else
14243   ac_cv_search_getrrsetbyname=no
14244 fi
14245 rm conftest.$ac_ext
14246 LIBS=$ac_func_search_save_LIBS
14247 fi
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14249 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14250 ac_res=$ac_cv_search_getrrsetbyname
14251 if test "$ac_res" != no; then :
14252   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14253
14254 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14255
14256 else
14257
14258                 # Needed by our getrrsetbyname()
14259                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14260 $as_echo_n "checking for library containing res_query... " >&6; }
14261 if test "${ac_cv_search_res_query+set}" = set; then :
14262   $as_echo_n "(cached) " >&6
14263 else
14264   ac_func_search_save_LIBS=$LIBS
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h.  */
14267
14268 /* Override any GCC internal prototype to avoid an error.
14269    Use char because int might match the return type of a GCC
14270    builtin and then its argument prototype would still apply.  */
14271 #ifdef __cplusplus
14272 extern "C"
14273 #endif
14274 char res_query ();
14275 int
14276 main ()
14277 {
14278 return res_query ();
14279   ;
14280   return 0;
14281 }
14282 _ACEOF
14283 for ac_lib in '' resolv; do
14284   if test -z "$ac_lib"; then
14285     ac_res="none required"
14286   else
14287     ac_res=-l$ac_lib
14288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14289   fi
14290   if ac_fn_c_try_link "$LINENO"; then :
14291   ac_cv_search_res_query=$ac_res
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext \
14294     conftest$ac_exeext
14295   if test "${ac_cv_search_res_query+set}" = set; then :
14296   break
14297 fi
14298 done
14299 if test "${ac_cv_search_res_query+set}" = set; then :
14300
14301 else
14302   ac_cv_search_res_query=no
14303 fi
14304 rm conftest.$ac_ext
14305 LIBS=$ac_func_search_save_LIBS
14306 fi
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14308 $as_echo "$ac_cv_search_res_query" >&6; }
14309 ac_res=$ac_cv_search_res_query
14310 if test "$ac_res" != no; then :
14311   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14312
14313 fi
14314
14315                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14316 $as_echo_n "checking for library containing dn_expand... " >&6; }
14317 if test "${ac_cv_search_dn_expand+set}" = set; then :
14318   $as_echo_n "(cached) " >&6
14319 else
14320   ac_func_search_save_LIBS=$LIBS
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h.  */
14323
14324 /* Override any GCC internal prototype to avoid an error.
14325    Use char because int might match the return type of a GCC
14326    builtin and then its argument prototype would still apply.  */
14327 #ifdef __cplusplus
14328 extern "C"
14329 #endif
14330 char dn_expand ();
14331 int
14332 main ()
14333 {
14334 return dn_expand ();
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 for ac_lib in '' resolv; do
14340   if test -z "$ac_lib"; then
14341     ac_res="none required"
14342   else
14343     ac_res=-l$ac_lib
14344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14345   fi
14346   if ac_fn_c_try_link "$LINENO"; then :
14347   ac_cv_search_dn_expand=$ac_res
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext \
14350     conftest$ac_exeext
14351   if test "${ac_cv_search_dn_expand+set}" = set; then :
14352   break
14353 fi
14354 done
14355 if test "${ac_cv_search_dn_expand+set}" = set; then :
14356
14357 else
14358   ac_cv_search_dn_expand=no
14359 fi
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14364 $as_echo "$ac_cv_search_dn_expand" >&6; }
14365 ac_res=$ac_cv_search_dn_expand
14366 if test "$ac_res" != no; then :
14367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14368
14369 fi
14370
14371                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14372 $as_echo_n "checking if res_query will link... " >&6; }
14373                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14374 /* end confdefs.h.  */
14375
14376 #include <sys/types.h>
14377 #include <netinet/in.h>
14378 #include <arpa/nameser.h>
14379 #include <netdb.h>
14380 #include <resolv.h>
14381
14382 int
14383 main ()
14384 {
14385
14386         res_query (0, 0, 0, 0, 0);
14387
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 if ac_fn_c_try_link "$LINENO"; then :
14393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14394 $as_echo "yes" >&6; }
14395 else
14396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397 $as_echo "no" >&6; }
14398                     saved_LIBS="$LIBS"
14399                     LIBS="$LIBS -lresolv"
14400                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14401 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14402                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h.  */
14404
14405 #include <sys/types.h>
14406 #include <netinet/in.h>
14407 #include <arpa/nameser.h>
14408 #include <netdb.h>
14409 #include <resolv.h>
14410
14411 int
14412 main ()
14413 {
14414
14415         res_query (0, 0, 0, 0, 0);
14416
14417   ;
14418   return 0;
14419 }
14420 _ACEOF
14421 if ac_fn_c_try_link "$LINENO"; then :
14422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14423 $as_echo "yes" >&6; }
14424 else
14425   LIBS="$saved_LIBS"
14426                          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14428 fi
14429 rm -f core conftest.err conftest.$ac_objext \
14430     conftest$ac_exeext conftest.$ac_ext
14431
14432 fi
14433 rm -f core conftest.err conftest.$ac_objext \
14434     conftest$ac_exeext conftest.$ac_ext
14435                 for ac_func in _getshort _getlong
14436 do :
14437   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14439 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14440   cat >>confdefs.h <<_ACEOF
14441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14442 _ACEOF
14443
14444 fi
14445 done
14446
14447                 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14448                     #include <arpa/nameser.h>
14449 "
14450 if test "x$ac_cv_have_decl__getshort" = x""yes; then :
14451   ac_have_decl=1
14452 else
14453   ac_have_decl=0
14454 fi
14455
14456 cat >>confdefs.h <<_ACEOF
14457 #define HAVE_DECL__GETSHORT $ac_have_decl
14458 _ACEOF
14459 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14460                     #include <arpa/nameser.h>
14461 "
14462 if test "x$ac_cv_have_decl__getlong" = x""yes; then :
14463   ac_have_decl=1
14464 else
14465   ac_have_decl=0
14466 fi
14467
14468 cat >>confdefs.h <<_ACEOF
14469 #define HAVE_DECL__GETLONG $ac_have_decl
14470 _ACEOF
14471
14472                 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14473 "
14474 if test "x$ac_cv_member_HEADER_ad" = x""yes; then :
14475
14476 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14477
14478 fi
14479
14480
14481 fi
14482
14483
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14485 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h.  */
14488
14489 #include <stdio.h>
14490 #if HAVE_SYS_TYPES_H
14491 # include <sys/types.h>
14492 #endif
14493 #include <netinet/in.h>
14494 #include <arpa/nameser.h>
14495 #include <resolv.h>
14496 extern struct __res_state _res;
14497
14498 int
14499 main ()
14500 {
14501
14502   ;
14503   return 0;
14504 }
14505 _ACEOF
14506 if ac_fn_c_try_link "$LINENO"; then :
14507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14508 $as_echo "yes" >&6; }
14509
14510 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14511
14512
14513 else
14514    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14515 $as_echo "no" >&6; }
14516
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext \
14519     conftest$ac_exeext conftest.$ac_ext
14520
14521 # Check whether user wants SELinux support
14522 SELINUX_MSG="no"
14523 LIBSELINUX=""
14524
14525 # Check whether --with-selinux was given.
14526 if test "${with_selinux+set}" = set; then :
14527   withval=$with_selinux;  if test "x$withval" != "xno" ; then
14528                 save_LIBS="$LIBS"
14529
14530 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14531
14532                 SELINUX_MSG="yes"
14533                 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14534 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
14535
14536 else
14537   as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14538 fi
14539
14540
14541                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14542 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14543 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then :
14544   $as_echo_n "(cached) " >&6
14545 else
14546   ac_check_lib_save_LIBS=$LIBS
14547 LIBS="-lselinux  $LIBS"
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h.  */
14550
14551 /* Override any GCC internal prototype to avoid an error.
14552    Use char because int might match the return type of a GCC
14553    builtin and then its argument prototype would still apply.  */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 char setexeccon ();
14558 int
14559 main ()
14560 {
14561 return setexeccon ();
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 if ac_fn_c_try_link "$LINENO"; then :
14567   ac_cv_lib_selinux_setexeccon=yes
14568 else
14569   ac_cv_lib_selinux_setexeccon=no
14570 fi
14571 rm -f core conftest.err conftest.$ac_objext \
14572     conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14576 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14577 if test "x$ac_cv_lib_selinux_setexeccon" = x""yes; then :
14578    LIBSELINUX="-lselinux"
14579                           LIBS="$LIBS -lselinux"
14580
14581 else
14582   as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14583 fi
14584
14585                 SSHLIBS="$SSHLIBS $LIBSELINUX"
14586                 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14587                 for ac_func in getseuserbyname get_default_context_with_level
14588 do :
14589   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14591 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14592   cat >>confdefs.h <<_ACEOF
14593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14594 _ACEOF
14595
14596 fi
14597 done
14598
14599                 LIBS="$save_LIBS"
14600         fi
14601
14602 fi
14603
14604
14605
14606
14607 # Check whether user wants Kerberos 5 support
14608 KRB5_MSG="no"
14609
14610 # Check whether --with-kerberos5 was given.
14611 if test "${with_kerberos5+set}" = set; then :
14612   withval=$with_kerberos5;  if test "x$withval" != "xno" ; then
14613                 if test "x$withval" = "xyes" ; then
14614                         KRB5ROOT="/usr/local"
14615                 else
14616                         KRB5ROOT=${withval}
14617                 fi
14618
14619
14620 $as_echo "#define KRB5 1" >>confdefs.h
14621
14622                 KRB5_MSG="yes"
14623
14624                 # Extract the first word of "krb5-config", so it can be a program name with args.
14625 set dummy krb5-config; ac_word=$2
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14627 $as_echo_n "checking for $ac_word... " >&6; }
14628 if test "${ac_cv_path_KRB5CONF+set}" = set; then :
14629   $as_echo_n "(cached) " >&6
14630 else
14631   case $KRB5CONF in
14632   [\\/]* | ?:[\\/]*)
14633   ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
14634   ;;
14635   *)
14636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 as_dummy="$KRB5ROOT/bin:$PATH"
14638 for as_dir in $as_dummy
14639 do
14640   IFS=$as_save_IFS
14641   test -z "$as_dir" && as_dir=.
14642     for ac_exec_ext in '' $ac_executable_extensions; do
14643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14644     ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
14645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14646     break 2
14647   fi
14648 done
14649   done
14650 IFS=$as_save_IFS
14651
14652   test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
14653   ;;
14654 esac
14655 fi
14656 KRB5CONF=$ac_cv_path_KRB5CONF
14657 if test -n "$KRB5CONF"; then
14658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
14659 $as_echo "$KRB5CONF" >&6; }
14660 else
14661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14662 $as_echo "no" >&6; }
14663 fi
14664
14665
14666                 if test -x $KRB5CONF ; then
14667
14668                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
14669 $as_echo_n "checking for gssapi support... " >&6; }
14670                         if $KRB5CONF | grep gssapi >/dev/null ; then
14671                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14672 $as_echo "yes" >&6; }
14673
14674 $as_echo "#define GSSAPI 1" >>confdefs.h
14675
14676                                 k5confopts=gssapi
14677                         else
14678                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14679 $as_echo "no" >&6; }
14680                                 k5confopts=""
14681                         fi
14682                         K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
14683                         K5LIBS="`$KRB5CONF --libs $k5confopts`"
14684                         CPPFLAGS="$CPPFLAGS $K5CFLAGS"
14685                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14686 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14687                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h.  */
14689  #include <krb5.h>
14690
14691 int
14692 main ()
14693 {
14694  char *tmp = heimdal_version;
14695   ;
14696   return 0;
14697 }
14698 _ACEOF
14699 if ac_fn_c_try_compile "$LINENO"; then :
14700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14701 $as_echo "yes" >&6; }
14702
14703 $as_echo "#define HEIMDAL 1" >>confdefs.h
14704
14705 else
14706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14708
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711                 else
14712                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14713                         LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14714                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14715 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14716                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h.  */
14718  #include <krb5.h>
14719
14720 int
14721 main ()
14722 {
14723  char *tmp = heimdal_version;
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 if ac_fn_c_try_compile "$LINENO"; then :
14729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14730 $as_echo "yes" >&6; }
14731                                          $as_echo "#define HEIMDAL 1" >>confdefs.h
14732
14733                                          K5LIBS="-lkrb5"
14734                                          K5LIBS="$K5LIBS -lcom_err -lasn1"
14735                                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
14736 $as_echo_n "checking for net_write in -lroken... " >&6; }
14737 if test "${ac_cv_lib_roken_net_write+set}" = set; then :
14738   $as_echo_n "(cached) " >&6
14739 else
14740   ac_check_lib_save_LIBS=$LIBS
14741 LIBS="-lroken  $LIBS"
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h.  */
14744
14745 /* Override any GCC internal prototype to avoid an error.
14746    Use char because int might match the return type of a GCC
14747    builtin and then its argument prototype would still apply.  */
14748 #ifdef __cplusplus
14749 extern "C"
14750 #endif
14751 char net_write ();
14752 int
14753 main ()
14754 {
14755 return net_write ();
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 if ac_fn_c_try_link "$LINENO"; then :
14761   ac_cv_lib_roken_net_write=yes
14762 else
14763   ac_cv_lib_roken_net_write=no
14764 fi
14765 rm -f core conftest.err conftest.$ac_objext \
14766     conftest$ac_exeext conftest.$ac_ext
14767 LIBS=$ac_check_lib_save_LIBS
14768 fi
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
14770 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
14771 if test "x$ac_cv_lib_roken_net_write" = x""yes; then :
14772   K5LIBS="$K5LIBS -lroken"
14773 fi
14774
14775                                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14776 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14777 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14778   $as_echo_n "(cached) " >&6
14779 else
14780   ac_check_lib_save_LIBS=$LIBS
14781 LIBS="-ldes  $LIBS"
14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h.  */
14784
14785 /* Override any GCC internal prototype to avoid an error.
14786    Use char because int might match the return type of a GCC
14787    builtin and then its argument prototype would still apply.  */
14788 #ifdef __cplusplus
14789 extern "C"
14790 #endif
14791 char des_cbc_encrypt ();
14792 int
14793 main ()
14794 {
14795 return des_cbc_encrypt ();
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 if ac_fn_c_try_link "$LINENO"; then :
14801   ac_cv_lib_des_des_cbc_encrypt=yes
14802 else
14803   ac_cv_lib_des_des_cbc_encrypt=no
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext \
14806     conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14808 fi
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14810 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14811 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14812   K5LIBS="$K5LIBS -ldes"
14813 fi
14814
14815
14816 else
14817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14818 $as_echo "no" >&6; }
14819                                          K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14820
14821
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14825 $as_echo_n "checking for library containing dn_expand... " >&6; }
14826 if test "${ac_cv_search_dn_expand+set}" = set; then :
14827   $as_echo_n "(cached) " >&6
14828 else
14829   ac_func_search_save_LIBS=$LIBS
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h.  */
14832
14833 /* Override any GCC internal prototype to avoid an error.
14834    Use char because int might match the return type of a GCC
14835    builtin and then its argument prototype would still apply.  */
14836 #ifdef __cplusplus
14837 extern "C"
14838 #endif
14839 char dn_expand ();
14840 int
14841 main ()
14842 {
14843 return dn_expand ();
14844   ;
14845   return 0;
14846 }
14847 _ACEOF
14848 for ac_lib in '' resolv; do
14849   if test -z "$ac_lib"; then
14850     ac_res="none required"
14851   else
14852     ac_res=-l$ac_lib
14853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14854   fi
14855   if ac_fn_c_try_link "$LINENO"; then :
14856   ac_cv_search_dn_expand=$ac_res
14857 fi
14858 rm -f core conftest.err conftest.$ac_objext \
14859     conftest$ac_exeext
14860   if test "${ac_cv_search_dn_expand+set}" = set; then :
14861   break
14862 fi
14863 done
14864 if test "${ac_cv_search_dn_expand+set}" = set; then :
14865
14866 else
14867   ac_cv_search_dn_expand=no
14868 fi
14869 rm conftest.$ac_ext
14870 LIBS=$ac_func_search_save_LIBS
14871 fi
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14873 $as_echo "$ac_cv_search_dn_expand" >&6; }
14874 ac_res=$ac_cv_search_dn_expand
14875 if test "$ac_res" != no; then :
14876   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14877
14878 fi
14879
14880
14881                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14882 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
14883 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then :
14884   $as_echo_n "(cached) " >&6
14885 else
14886   ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h.  */
14890
14891 /* Override any GCC internal prototype to avoid an error.
14892    Use char because int might match the return type of a GCC
14893    builtin and then its argument prototype would still apply.  */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char gss_init_sec_context ();
14898 int
14899 main ()
14900 {
14901 return gss_init_sec_context ();
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14908 else
14909   ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext \
14912     conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14914 fi
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14916 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14917 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = x""yes; then :
14918    $as_echo "#define GSSAPI 1" >>confdefs.h
14919
14920                                   K5LIBS="-lgssapi_krb5 $K5LIBS"
14921 else
14922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
14923 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
14924 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then :
14925   $as_echo_n "(cached) " >&6
14926 else
14927   ac_check_lib_save_LIBS=$LIBS
14928 LIBS="-lgssapi $K5LIBS $LIBS"
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h.  */
14931
14932 /* Override any GCC internal prototype to avoid an error.
14933    Use char because int might match the return type of a GCC
14934    builtin and then its argument prototype would still apply.  */
14935 #ifdef __cplusplus
14936 extern "C"
14937 #endif
14938 char gss_init_sec_context ();
14939 int
14940 main ()
14941 {
14942 return gss_init_sec_context ();
14943   ;
14944   return 0;
14945 }
14946 _ACEOF
14947 if ac_fn_c_try_link "$LINENO"; then :
14948   ac_cv_lib_gssapi_gss_init_sec_context=yes
14949 else
14950   ac_cv_lib_gssapi_gss_init_sec_context=no
14951 fi
14952 rm -f core conftest.err conftest.$ac_objext \
14953     conftest$ac_exeext conftest.$ac_ext
14954 LIBS=$ac_check_lib_save_LIBS
14955 fi
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14957 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14958 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = x""yes; then :
14959    $as_echo "#define GSSAPI 1" >>confdefs.h
14960
14961                                           K5LIBS="-lgssapi $K5LIBS"
14962 else
14963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14964 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14965 fi
14966
14967
14968 fi
14969
14970
14971                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14972 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14973
14974 else
14975    unset ac_cv_header_gssapi_h
14976                                   CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14977                                   for ac_header in gssapi.h
14978 do :
14979   ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14980 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14981   cat >>confdefs.h <<_ACEOF
14982 #define HAVE_GSSAPI_H 1
14983 _ACEOF
14984
14985 else
14986   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
14987 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
14988
14989 fi
14990
14991 done
14992
14993
14994
14995 fi
14996
14997
14998
14999                         oldCPP="$CPPFLAGS"
15000                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
15001                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
15002 if test "x$ac_cv_header_gssapi_krb5_h" = x""yes; then :
15003
15004 else
15005    CPPFLAGS="$oldCPP"
15006 fi
15007
15008
15009
15010                 fi
15011                 if test ! -z "$need_dash_r" ; then
15012                         LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
15013                 fi
15014                 if test ! -z "$blibpath" ; then
15015                         blibpath="$blibpath:${KRB5ROOT}/lib"
15016                 fi
15017
15018                 SAVELIBS=$LIBS
15019                 LIBS="$LIBS $K5LIBS"
15020                 for ac_func in gss_localname gss_userok
15021 do :
15022   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15024 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15025   cat >>confdefs.h <<_ACEOF
15026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15027 _ACEOF
15028
15029 fi
15030 done
15031
15032                 LIBS=$SAVELIBS
15033
15034                 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_ext.h
15035 do :
15036   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15037 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15039   cat >>confdefs.h <<_ACEOF
15040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041 _ACEOF
15042
15043 fi
15044
15045 done
15046
15047                 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
15048 do :
15049   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15050 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15052   cat >>confdefs.h <<_ACEOF
15053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15054 _ACEOF
15055
15056 fi
15057
15058 done
15059
15060                 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
15061 do :
15062   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15064 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15065   cat >>confdefs.h <<_ACEOF
15066 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15067 _ACEOF
15068
15069 fi
15070
15071 done
15072
15073
15074                 LIBS="$LIBS $K5LIBS"
15075                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
15076 $as_echo_n "checking for library containing k_hasafs... " >&6; }
15077 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15078   $as_echo_n "(cached) " >&6
15079 else
15080   ac_func_search_save_LIBS=$LIBS
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h.  */
15083
15084 /* Override any GCC internal prototype to avoid an error.
15085    Use char because int might match the return type of a GCC
15086    builtin and then its argument prototype would still apply.  */
15087 #ifdef __cplusplus
15088 extern "C"
15089 #endif
15090 char k_hasafs ();
15091 int
15092 main ()
15093 {
15094 return k_hasafs ();
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 for ac_lib in '' kafs; do
15100   if test -z "$ac_lib"; then
15101     ac_res="none required"
15102   else
15103     ac_res=-l$ac_lib
15104     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15105   fi
15106   if ac_fn_c_try_link "$LINENO"; then :
15107   ac_cv_search_k_hasafs=$ac_res
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext \
15110     conftest$ac_exeext
15111   if test "${ac_cv_search_k_hasafs+set}" = set; then :
15112   break
15113 fi
15114 done
15115 if test "${ac_cv_search_k_hasafs+set}" = set; then :
15116
15117 else
15118   ac_cv_search_k_hasafs=no
15119 fi
15120 rm conftest.$ac_ext
15121 LIBS=$ac_func_search_save_LIBS
15122 fi
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
15124 $as_echo "$ac_cv_search_k_hasafs" >&6; }
15125 ac_res=$ac_cv_search_k_hasafs
15126 if test "$ac_res" != no; then :
15127   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15128
15129 $as_echo "#define USE_AFS 1" >>confdefs.h
15130
15131 fi
15132
15133         fi
15134
15135
15136 fi
15137
15138
15139 # Looking for programs, paths and files
15140
15141 PRIVSEP_PATH=/var/empty
15142
15143 # Check whether --with-privsep-path was given.
15144 if test "${with_privsep_path+set}" = set; then :
15145   withval=$with_privsep_path;
15146                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15147                     test "x${withval}" != "xyes"; then
15148                         PRIVSEP_PATH=$withval
15149                 fi
15150
15151
15152 fi
15153
15154
15155
15156
15157 # Check whether --with-xauth was given.
15158 if test "${with_xauth+set}" = set; then :
15159   withval=$with_xauth;
15160                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15161                     test "x${withval}" != "xyes"; then
15162                         xauth_path=$withval
15163                 fi
15164
15165 else
15166
15167                 TestPath="$PATH"
15168                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15169                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15170                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15171                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15172                 # Extract the first word of "xauth", so it can be a program name with args.
15173 set dummy xauth; ac_word=$2
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15175 $as_echo_n "checking for $ac_word... " >&6; }
15176 if test "${ac_cv_path_xauth_path+set}" = set; then :
15177   $as_echo_n "(cached) " >&6
15178 else
15179   case $xauth_path in
15180   [\\/]* | ?:[\\/]*)
15181   ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15182   ;;
15183   *)
15184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15185 for as_dir in $TestPath
15186 do
15187   IFS=$as_save_IFS
15188   test -z "$as_dir" && as_dir=.
15189     for ac_exec_ext in '' $ac_executable_extensions; do
15190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15191     ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15193     break 2
15194   fi
15195 done
15196   done
15197 IFS=$as_save_IFS
15198
15199   ;;
15200 esac
15201 fi
15202 xauth_path=$ac_cv_path_xauth_path
15203 if test -n "$xauth_path"; then
15204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15205 $as_echo "$xauth_path" >&6; }
15206 else
15207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15209 fi
15210
15211
15212                 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15213                         xauth_path="/usr/openwin/bin/xauth"
15214                 fi
15215
15216
15217 fi
15218
15219
15220 STRIP_OPT=-s
15221 # Check whether --enable-strip was given.
15222 if test "${enable_strip+set}" = set; then :
15223   enableval=$enable_strip;
15224                 if test "x$enableval" = "xno" ; then
15225                         STRIP_OPT=
15226                 fi
15227
15228
15229 fi
15230
15231
15232
15233 if test -z "$xauth_path" ; then
15234         XAUTH_PATH="undefined"
15235
15236 else
15237
15238 cat >>confdefs.h <<_ACEOF
15239 #define XAUTH_PATH "$xauth_path"
15240 _ACEOF
15241
15242         XAUTH_PATH=$xauth_path
15243
15244 fi
15245
15246 # Check for mail directory
15247
15248 # Check whether --with-maildir was given.
15249 if test "${with_maildir+set}" = set; then :
15250   withval=$with_maildir;
15251         if test "X$withval" != X  &&  test "x$withval" != xno  &&  \
15252             test "x${withval}" != xyes; then
15253
15254 cat >>confdefs.h <<_ACEOF
15255 #define MAIL_DIRECTORY "$withval"
15256 _ACEOF
15257
15258             fi
15259
15260 else
15261
15262         if test "X$maildir" != "X"; then
15263             cat >>confdefs.h <<_ACEOF
15264 #define MAIL_DIRECTORY "$maildir"
15265 _ACEOF
15266
15267         else
15268             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Discovering system mail directory" >&5
15269 $as_echo_n "checking Discovering system mail directory... " >&6; }
15270             if test "$cross_compiling" = yes; then :
15271
15272                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&5
15273 $as_echo "$as_me: WARNING: cross compiling: use --with-maildir=/path/to/mail" >&2;}
15274
15275
15276 else
15277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h.  */
15279
15280 #include <stdio.h>
15281 #include <string.h>
15282 #ifdef HAVE_PATHS_H
15283 #include <paths.h>
15284 #endif
15285 #ifdef HAVE_MAILLOCK_H
15286 #include <maillock.h>
15287 #endif
15288 #define DATA "conftest.maildir"
15289
15290 int
15291 main ()
15292 {
15293
15294         FILE *fd;
15295         int rc;
15296
15297         fd = fopen(DATA,"w");
15298         if(fd == NULL)
15299                 exit(1);
15300
15301 #if defined (_PATH_MAILDIR)
15302         if ((rc = fprintf(fd ,"_PATH_MAILDIR:%s\n", _PATH_MAILDIR)) <0)
15303                 exit(1);
15304 #elif defined (MAILDIR)
15305         if ((rc = fprintf(fd ,"MAILDIR:%s\n", MAILDIR)) <0)
15306                 exit(1);
15307 #elif defined (_PATH_MAIL)
15308         if ((rc = fprintf(fd ,"_PATH_MAIL:%s\n", _PATH_MAIL)) <0)
15309                 exit(1);
15310 #else
15311         exit (2);
15312 #endif
15313
15314         exit(0);
15315
15316   ;
15317   return 0;
15318 }
15319 _ACEOF
15320 if ac_fn_c_try_run "$LINENO"; then :
15321
15322                     maildir_what=`awk -F: '{print $1}' conftest.maildir`
15323                     maildir=`awk -F: '{print $2}' conftest.maildir \
15324                         | sed 's|/$||'`
15325                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: $maildir from $maildir_what" >&5
15326 $as_echo "Using: $maildir from $maildir_what" >&6; }
15327                     if test "x$maildir_what" != "x_PATH_MAILDIR"; then
15328                         cat >>confdefs.h <<_ACEOF
15329 #define MAIL_DIRECTORY "$maildir"
15330 _ACEOF
15331
15332                     fi
15333
15334 else
15335
15336                     if test "X$ac_status" = "X2";then
15337 # our test program didn't find it. Default to /var/spool/mail
15338                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using: default value of /var/spool/mail" >&5
15339 $as_echo "Using: default value of /var/spool/mail" >&6; }
15340                         cat >>confdefs.h <<_ACEOF
15341 #define MAIL_DIRECTORY "/var/spool/mail"
15342 _ACEOF
15343
15344                      else
15345                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** not found ***" >&5
15346 $as_echo "*** not found ***" >&6; }
15347                      fi
15348
15349 fi
15350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15351   conftest.$ac_objext conftest.beam conftest.$ac_ext
15352 fi
15353
15354         fi
15355
15356
15357 fi
15358  # maildir
15359
15360 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15361         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15362 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15363         disable_ptmx_check=yes
15364 fi
15365 if test -z "$no_dev_ptmx" ; then
15366         if test "x$disable_ptmx_check" != "xyes" ; then
15367                 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15369 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15370 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15371   $as_echo_n "(cached) " >&6
15372 else
15373   test "$cross_compiling" = yes &&
15374   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15375 if test -r ""/dev/ptmx""; then
15376   eval "$as_ac_File=yes"
15377 else
15378   eval "$as_ac_File=no"
15379 fi
15380 fi
15381 eval ac_res=\$$as_ac_File
15382                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15383 $as_echo "$ac_res" >&6; }
15384 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15385
15386
15387 cat >>confdefs.h <<_ACEOF
15388 #define HAVE_DEV_PTMX 1
15389 _ACEOF
15390
15391                                 have_dev_ptmx=1
15392
15393
15394 fi
15395
15396         fi
15397 fi
15398
15399 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15400         as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15402 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15403 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15404   $as_echo_n "(cached) " >&6
15405 else
15406   test "$cross_compiling" = yes &&
15407   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15408 if test -r ""/dev/ptc""; then
15409   eval "$as_ac_File=yes"
15410 else
15411   eval "$as_ac_File=no"
15412 fi
15413 fi
15414 eval ac_res=\$$as_ac_File
15415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15416 $as_echo "$ac_res" >&6; }
15417 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15418
15419
15420 cat >>confdefs.h <<_ACEOF
15421 #define HAVE_DEV_PTS_AND_PTC 1
15422 _ACEOF
15423
15424                         have_dev_ptc=1
15425
15426
15427 fi
15428
15429 else
15430         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15431 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15432 fi
15433
15434 # Options from here on. Some of these are preset by platform above
15435
15436 # Check whether --with-mantype was given.
15437 if test "${with_mantype+set}" = set; then :
15438   withval=$with_mantype;
15439                 case "$withval" in
15440                 man|cat|doc)
15441                         MANTYPE=$withval
15442                         ;;
15443                 *)
15444                         as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15445                         ;;
15446                 esac
15447
15448
15449 fi
15450
15451 if test -z "$MANTYPE"; then
15452         TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15453         for ac_prog in nroff awf
15454 do
15455   # Extract the first word of "$ac_prog", so it can be a program name with args.
15456 set dummy $ac_prog; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458 $as_echo_n "checking for $ac_word... " >&6; }
15459 if test "${ac_cv_path_NROFF+set}" = set; then :
15460   $as_echo_n "(cached) " >&6
15461 else
15462   case $NROFF in
15463   [\\/]* | ?:[\\/]*)
15464   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15465   ;;
15466   *)
15467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468 for as_dir in $TestPath
15469 do
15470   IFS=$as_save_IFS
15471   test -z "$as_dir" && as_dir=.
15472     for ac_exec_ext in '' $ac_executable_extensions; do
15473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15474     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15476     break 2
15477   fi
15478 done
15479   done
15480 IFS=$as_save_IFS
15481
15482   ;;
15483 esac
15484 fi
15485 NROFF=$ac_cv_path_NROFF
15486 if test -n "$NROFF"; then
15487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15488 $as_echo "$NROFF" >&6; }
15489 else
15490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15492 fi
15493
15494
15495   test -n "$NROFF" && break
15496 done
15497 test -n "$NROFF" || NROFF="/bin/false"
15498
15499         if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15500                 MANTYPE=doc
15501         elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15502                 MANTYPE=man
15503         else
15504                 MANTYPE=cat
15505         fi
15506 fi
15507
15508 if test "$MANTYPE" = "doc"; then
15509         mansubdir=man;
15510 else
15511         mansubdir=$MANTYPE;
15512 fi
15513
15514
15515 # Check whether to enable MD5 passwords
15516 MD5_MSG="no"
15517
15518 # Check whether --with-md5-passwords was given.
15519 if test "${with_md5_passwords+set}" = set; then :
15520   withval=$with_md5_passwords;
15521                 if test "x$withval" != "xno" ; then
15522
15523 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15524
15525                         MD5_MSG="yes"
15526                 fi
15527
15528
15529 fi
15530
15531
15532 # Whether to disable shadow password support
15533
15534 # Check whether --with-shadow was given.
15535 if test "${with_shadow+set}" = set; then :
15536   withval=$with_shadow;
15537                 if test "x$withval" = "xno" ; then
15538                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15539
15540                         disable_shadow=yes
15541                 fi
15542
15543
15544 fi
15545
15546
15547 if test -z "$disable_shadow" ; then
15548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15549 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15550         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h.  */
15552
15553 #include <sys/types.h>
15554 #include <shadow.h>
15555 struct spwd sp;
15556
15557 int
15558 main ()
15559 {
15560  sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 if ac_fn_c_try_compile "$LINENO"; then :
15566    sp_expire_available=yes
15567 fi
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569
15570         if test "x$sp_expire_available" = "xyes" ; then
15571                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15572 $as_echo "yes" >&6; }
15573
15574 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15575
15576         else
15577                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15578 $as_echo "no" >&6; }
15579         fi
15580 fi
15581
15582 # Use ip address instead of hostname in $DISPLAY
15583 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15584         DISPLAY_HACK_MSG="yes"
15585
15586 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15587
15588 else
15589         DISPLAY_HACK_MSG="no"
15590
15591 # Check whether --with-ipaddr-display was given.
15592 if test "${with_ipaddr_display+set}" = set; then :
15593   withval=$with_ipaddr_display;
15594                         if test "x$withval" != "xno" ; then
15595                                 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15596
15597                                 DISPLAY_HACK_MSG="yes"
15598                         fi
15599
15600
15601 fi
15602
15603 fi
15604
15605 # check for /etc/default/login and use it if present.
15606 # Check whether --enable-etc-default-login was given.
15607 if test "${enable_etc_default_login+set}" = set; then :
15608   enableval=$enable_etc_default_login;  if test "x$enableval" = "xno"; then
15609                 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15610 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15611                 etc_default_login=no
15612           else
15613                 etc_default_login=yes
15614           fi
15615 else
15616    if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15617           then
15618                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15619 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15620                 etc_default_login=no
15621           else
15622                 etc_default_login=yes
15623           fi
15624
15625 fi
15626
15627
15628 if test "x$etc_default_login" != "xno"; then
15629         as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15631 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15632 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15633   $as_echo_n "(cached) " >&6
15634 else
15635   test "$cross_compiling" = yes &&
15636   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15637 if test -r ""/etc/default/login""; then
15638   eval "$as_ac_File=yes"
15639 else
15640   eval "$as_ac_File=no"
15641 fi
15642 fi
15643 eval ac_res=\$$as_ac_File
15644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15645 $as_echo "$ac_res" >&6; }
15646 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15647    external_path_file=/etc/default/login
15648 fi
15649
15650         if test "x$external_path_file" = "x/etc/default/login"; then
15651
15652 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15653
15654         fi
15655 fi
15656
15657 if test $ac_cv_func_login_getcapbool = "yes" && \
15658         test $ac_cv_header_login_cap_h = "yes" ; then
15659         external_path_file=/etc/login.conf
15660 fi
15661
15662 # Whether to mess with the default path
15663 SERVER_PATH_MSG="(default)"
15664
15665 # Check whether --with-default-path was given.
15666 if test "${with_default_path+set}" = set; then :
15667   withval=$with_default_path;
15668                 if test "x$external_path_file" = "x/etc/login.conf" ; then
15669                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15670 --with-default-path=PATH has no effect on this system.
15671 Edit /etc/login.conf instead." >&5
15672 $as_echo "$as_me: WARNING:
15673 --with-default-path=PATH has no effect on this system.
15674 Edit /etc/login.conf instead." >&2;}
15675                 elif test "x$withval" != "xno" ; then
15676                         if test ! -z "$external_path_file" ; then
15677                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15678 --with-default-path=PATH will only be used if PATH is not defined in
15679 $external_path_file ." >&5
15680 $as_echo "$as_me: WARNING:
15681 --with-default-path=PATH will only be used if PATH is not defined in
15682 $external_path_file ." >&2;}
15683                         fi
15684                         user_path="$withval"
15685                         SERVER_PATH_MSG="$withval"
15686                 fi
15687
15688 else
15689    if test "x$external_path_file" = "x/etc/login.conf" ; then
15690                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15691 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15692         else
15693                 if test ! -z "$external_path_file" ; then
15694                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15695 If PATH is defined in $external_path_file, ensure the path to scp is included,
15696 otherwise scp will not work." >&5
15697 $as_echo "$as_me: WARNING:
15698 If PATH is defined in $external_path_file, ensure the path to scp is included,
15699 otherwise scp will not work." >&2;}
15700                 fi
15701                 if test "$cross_compiling" = yes; then :
15702    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15703
15704 else
15705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h.  */
15707
15708 /* find out what STDPATH is */
15709 #include <stdio.h>
15710 #ifdef HAVE_PATHS_H
15711 # include <paths.h>
15712 #endif
15713 #ifndef _PATH_STDPATH
15714 # ifdef _PATH_USERPATH  /* Irix */
15715 #  define _PATH_STDPATH _PATH_USERPATH
15716 # else
15717 #  define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15718 # endif
15719 #endif
15720 #include <sys/types.h>
15721 #include <sys/stat.h>
15722 #include <fcntl.h>
15723 #define DATA "conftest.stdpath"
15724
15725 int
15726 main ()
15727 {
15728
15729         FILE *fd;
15730         int rc;
15731
15732         fd = fopen(DATA,"w");
15733         if(fd == NULL)
15734                 exit(1);
15735
15736         if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15737                 exit(1);
15738
15739         exit(0);
15740
15741   ;
15742   return 0;
15743 }
15744 _ACEOF
15745 if ac_fn_c_try_run "$LINENO"; then :
15746    user_path=`cat conftest.stdpath`
15747 else
15748    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15749 fi
15750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15751   conftest.$ac_objext conftest.beam conftest.$ac_ext
15752 fi
15753
15754 # make sure $bindir is in USER_PATH so scp will work
15755                 t_bindir=`eval echo ${bindir}`
15756                 case $t_bindir in
15757                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15758                 esac
15759                 case $t_bindir in
15760                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15761                 esac
15762                 echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
15763                 if test $? -ne 0  ; then
15764                         echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
15765                         if test $? -ne 0  ; then
15766                                 user_path=$user_path:$t_bindir
15767                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15768 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
15769                         fi
15770                 fi
15771         fi
15772
15773 fi
15774
15775 if test "x$external_path_file" != "x/etc/login.conf" ; then
15776
15777 cat >>confdefs.h <<_ACEOF
15778 #define USER_PATH "$user_path"
15779 _ACEOF
15780
15781
15782 fi
15783
15784 # Set superuser path separately to user path
15785
15786 # Check whether --with-superuser-path was given.
15787 if test "${with_superuser_path+set}" = set; then :
15788   withval=$with_superuser_path;
15789                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15790                     test "x${withval}" != "xyes"; then
15791
15792 cat >>confdefs.h <<_ACEOF
15793 #define SUPERUSER_PATH "$withval"
15794 _ACEOF
15795
15796                         superuser_path=$withval
15797                 fi
15798
15799
15800 fi
15801
15802
15803
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15805 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
15806 IPV4_IN6_HACK_MSG="no"
15807
15808 # Check whether --with-4in6 was given.
15809 if test "${with_4in6+set}" = set; then :
15810   withval=$with_4in6;
15811                 if test "x$withval" != "xno" ; then
15812                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813 $as_echo "yes" >&6; }
15814
15815 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15816
15817                         IPV4_IN6_HACK_MSG="yes"
15818                 else
15819                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15820 $as_echo "no" >&6; }
15821                 fi
15822
15823 else
15824
15825                 if test "x$inet6_default_4in6" = "xyes"; then
15826                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
15827 $as_echo "yes (default)" >&6; }
15828                         $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15829
15830                         IPV4_IN6_HACK_MSG="yes"
15831                 else
15832                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
15833 $as_echo "no (default)" >&6; }
15834                 fi
15835
15836
15837 fi
15838
15839
15840 # Whether to enable BSD auth support
15841 BSD_AUTH_MSG=no
15842
15843 # Check whether --with-bsd-auth was given.
15844 if test "${with_bsd_auth+set}" = set; then :
15845   withval=$with_bsd_auth;
15846                 if test "x$withval" != "xno" ; then
15847
15848 $as_echo "#define BSD_AUTH 1" >>confdefs.h
15849
15850                         BSD_AUTH_MSG=yes
15851                 fi
15852
15853
15854 fi
15855
15856
15857 # Where to place sshd.pid
15858 piddir=/var/run
15859 # make sure the directory exists
15860 if test ! -d $piddir ; then
15861         piddir=`eval echo ${sysconfdir}`
15862         case $piddir in
15863                 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15864         esac
15865 fi
15866
15867
15868 # Check whether --with-pid-dir was given.
15869 if test "${with_pid_dir+set}" = set; then :
15870   withval=$with_pid_dir;
15871                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15872                     test "x${withval}" != "xyes"; then
15873                         piddir=$withval
15874                         if test ! -d $piddir ; then
15875                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
15876 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15877                         fi
15878                 fi
15879
15880
15881 fi
15882
15883
15884
15885 cat >>confdefs.h <<_ACEOF
15886 #define _PATH_SSH_PIDDIR "$piddir"
15887 _ACEOF
15888
15889
15890
15891 # Check whether --enable-lastlog was given.
15892 if test "${enable_lastlog+set}" = set; then :
15893   enableval=$enable_lastlog;
15894                 if test "x$enableval" = "xno" ; then
15895                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15896
15897                 fi
15898
15899
15900 fi
15901
15902 # Check whether --enable-utmp was given.
15903 if test "${enable_utmp+set}" = set; then :
15904   enableval=$enable_utmp;
15905                 if test "x$enableval" = "xno" ; then
15906                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15907
15908                 fi
15909
15910
15911 fi
15912
15913 # Check whether --enable-utmpx was given.
15914 if test "${enable_utmpx+set}" = set; then :
15915   enableval=$enable_utmpx;
15916                 if test "x$enableval" = "xno" ; then
15917
15918 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15919
15920                 fi
15921
15922
15923 fi
15924
15925 # Check whether --enable-wtmp was given.
15926 if test "${enable_wtmp+set}" = set; then :
15927   enableval=$enable_wtmp;
15928                 if test "x$enableval" = "xno" ; then
15929                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15930
15931                 fi
15932
15933
15934 fi
15935
15936 # Check whether --enable-wtmpx was given.
15937 if test "${enable_wtmpx+set}" = set; then :
15938   enableval=$enable_wtmpx;
15939                 if test "x$enableval" = "xno" ; then
15940
15941 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
15942
15943                 fi
15944
15945
15946 fi
15947
15948 # Check whether --enable-libutil was given.
15949 if test "${enable_libutil+set}" = set; then :
15950   enableval=$enable_libutil;
15951                 if test "x$enableval" = "xno" ; then
15952                         $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
15953
15954                 fi
15955
15956
15957 fi
15958
15959 # Check whether --enable-pututline was given.
15960 if test "${enable_pututline+set}" = set; then :
15961   enableval=$enable_pututline;
15962                 if test "x$enableval" = "xno" ; then
15963
15964 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
15965
15966                 fi
15967
15968
15969 fi
15970
15971 # Check whether --enable-pututxline was given.
15972 if test "${enable_pututxline+set}" = set; then :
15973   enableval=$enable_pututxline;
15974                 if test "x$enableval" = "xno" ; then
15975
15976 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
15977
15978                 fi
15979
15980
15981 fi
15982
15983
15984 # Check whether --with-lastlog was given.
15985 if test "${with_lastlog+set}" = set; then :
15986   withval=$with_lastlog;
15987                 if test "x$withval" = "xno" ; then
15988                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15989
15990                 elif test -n "$withval"  &&  test "x${withval}" != "xyes"; then
15991                         conf_lastlog_location=$withval
15992                 fi
15993
15994
15995 fi
15996
15997
15998
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
16000 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h.  */
16003
16004 #include <sys/types.h>
16005 #include <utmp.h>
16006 #ifdef HAVE_LASTLOG_H
16007 #  include <lastlog.h>
16008 #endif
16009 #ifdef HAVE_PATHS_H
16010 #  include <paths.h>
16011 #endif
16012 #ifdef HAVE_LOGIN_H
16013 # include <login.h>
16014 #endif
16015
16016 int
16017 main ()
16018 {
16019  char *lastlog = LASTLOG_FILE;
16020   ;
16021   return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_c_try_compile "$LINENO"; then :
16025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16027 else
16028
16029                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16030 $as_echo "no" >&6; }
16031                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
16032 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
16033                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h.  */
16035
16036 #include <sys/types.h>
16037 #include <utmp.h>
16038 #ifdef HAVE_LASTLOG_H
16039 #  include <lastlog.h>
16040 #endif
16041 #ifdef HAVE_PATHS_H
16042 #  include <paths.h>
16043 #endif
16044
16045 int
16046 main ()
16047 {
16048  char *lastlog = _PATH_LASTLOG;
16049   ;
16050   return 0;
16051 }
16052 _ACEOF
16053 if ac_fn_c_try_compile "$LINENO"; then :
16054    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16055 $as_echo "yes" >&6; }
16056 else
16057
16058                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16059 $as_echo "no" >&6; }
16060                         system_lastlog_path=no
16061
16062 fi
16063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067
16068 if test -z "$conf_lastlog_location"; then
16069         if test x"$system_lastlog_path" = x"no" ; then
16070                 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
16071                                 if (test -d "$f" || test -f "$f") ; then
16072                                         conf_lastlog_location=$f
16073                                 fi
16074                 done
16075                 if test -z "$conf_lastlog_location"; then
16076                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
16077 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
16078                                         fi
16079         fi
16080 fi
16081
16082 if test -n "$conf_lastlog_location"; then
16083
16084 cat >>confdefs.h <<_ACEOF
16085 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
16086 _ACEOF
16087
16088 fi
16089
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
16091 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h.  */
16094
16095 #include <sys/types.h>
16096 #include <utmp.h>
16097 #ifdef HAVE_PATHS_H
16098 #  include <paths.h>
16099 #endif
16100
16101 int
16102 main ()
16103 {
16104  char *utmp = UTMP_FILE;
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 if ac_fn_c_try_compile "$LINENO"; then :
16110    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16111 $as_echo "yes" >&6; }
16112 else
16113    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 $as_echo "no" >&6; }
16115           system_utmp_path=no
16116
16117 fi
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 if test -z "$conf_utmp_location"; then
16120         if test x"$system_utmp_path" = x"no" ; then
16121                 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
16122                         if test -f $f ; then
16123                                 conf_utmp_location=$f
16124                         fi
16125                 done
16126                 if test -z "$conf_utmp_location"; then
16127                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
16128
16129                 fi
16130         fi
16131 fi
16132 if test -n "$conf_utmp_location"; then
16133
16134 cat >>confdefs.h <<_ACEOF
16135 #define CONF_UTMP_FILE "$conf_utmp_location"
16136 _ACEOF
16137
16138 fi
16139
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
16141 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h.  */
16144
16145 #include <sys/types.h>
16146 #include <utmp.h>
16147 #ifdef HAVE_PATHS_H
16148 #  include <paths.h>
16149 #endif
16150
16151 int
16152 main ()
16153 {
16154  char *wtmp = WTMP_FILE;
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_c_try_compile "$LINENO"; then :
16160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16161 $as_echo "yes" >&6; }
16162 else
16163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164 $as_echo "no" >&6; }
16165           system_wtmp_path=no
16166
16167 fi
16168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16169 if test -z "$conf_wtmp_location"; then
16170         if test x"$system_wtmp_path" = x"no" ; then
16171                 for f in /usr/adm/wtmp /var/log/wtmp; do
16172                         if test -f $f ; then
16173                                 conf_wtmp_location=$f
16174                         fi
16175                 done
16176                 if test -z "$conf_wtmp_location"; then
16177                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
16178
16179                 fi
16180         fi
16181 fi
16182 if test -n "$conf_wtmp_location"; then
16183
16184 cat >>confdefs.h <<_ACEOF
16185 #define CONF_WTMP_FILE "$conf_wtmp_location"
16186 _ACEOF
16187
16188 fi
16189
16190
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
16192 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h.  */
16195
16196 #include <sys/types.h>
16197 #include <utmp.h>
16198 #ifdef HAVE_UTMPX_H
16199 #include <utmpx.h>
16200 #endif
16201 #ifdef HAVE_PATHS_H
16202 #  include <paths.h>
16203 #endif
16204
16205 int
16206 main ()
16207 {
16208  char *wtmpx = WTMPX_FILE;
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 if ac_fn_c_try_compile "$LINENO"; then :
16214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16216 else
16217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218 $as_echo "no" >&6; }
16219           system_wtmpx_path=no
16220
16221 fi
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 if test -z "$conf_wtmpx_location"; then
16224         if test x"$system_wtmpx_path" = x"no" ; then
16225                 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16226
16227         fi
16228 else
16229
16230 cat >>confdefs.h <<_ACEOF
16231 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16232 _ACEOF
16233
16234 fi
16235
16236
16237 if test ! -z "$blibpath" ; then
16238         LDFLAGS="$LDFLAGS $blibflags$blibpath"
16239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16240 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16241 fi
16242
16243 CFLAGS="$CFLAGS $werror_flags"
16244
16245 if test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16246         TEST_SSH_IPV6=no
16247 else
16248         TEST_SSH_IPV6=yes
16249 fi
16250 ac_fn_c_check_decl "$LINENO" "BROKEN_GETADDRINFO" "ac_cv_have_decl_BROKEN_GETADDRINFO" "$ac_includes_default"
16251 if test "x$ac_cv_have_decl_BROKEN_GETADDRINFO" = x""yes; then :
16252   TEST_SSH_IPV6=no
16253 fi
16254
16255 TEST_SSH_IPV6=$TEST_SSH_IPV6
16256
16257
16258
16259 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile survey.sh"
16260
16261 cat >confcache <<\_ACEOF
16262 # This file is a shell script that caches the results of configure
16263 # tests run on this system so they can be shared between configure
16264 # scripts and configure runs, see configure's option --config-cache.
16265 # It is not useful on other systems.  If it contains results you don't
16266 # want to keep, you may remove or edit it.
16267 #
16268 # config.status only pays attention to the cache file if you give it
16269 # the --recheck option to rerun configure.
16270 #
16271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16273 # following values.
16274
16275 _ACEOF
16276
16277 # The following way of writing the cache mishandles newlines in values,
16278 # but we know of no workaround that is simple, portable, and efficient.
16279 # So, we kill variables containing newlines.
16280 # Ultrix sh set writes to stderr and can't be redirected directly,
16281 # and sets the high bit in the cache file unless we assign to the vars.
16282 (
16283   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16284     eval ac_val=\$$ac_var
16285     case $ac_val in #(
16286     *${as_nl}*)
16287       case $ac_var in #(
16288       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16290       esac
16291       case $ac_var in #(
16292       _ | IFS | as_nl) ;; #(
16293       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16294       *) { eval $ac_var=; unset $ac_var;} ;;
16295       esac ;;
16296     esac
16297   done
16298
16299   (set) 2>&1 |
16300     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16301     *${as_nl}ac_space=\ *)
16302       # `set' does not quote correctly, so add quotes: double-quote
16303       # substitution turns \\\\ into \\, and sed turns \\ into \.
16304       sed -n \
16305         "s/'/'\\\\''/g;
16306           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16307       ;; #(
16308     *)
16309       # `set' quotes correctly as required by POSIX, so do not add quotes.
16310       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16311       ;;
16312     esac |
16313     sort
16314 ) |
16315   sed '
16316      /^ac_cv_env_/b end
16317      t clear
16318      :clear
16319      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16320      t end
16321      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16322      :end' >>confcache
16323 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16324   if test -w "$cache_file"; then
16325     test "x$cache_file" != "x/dev/null" &&
16326       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16327 $as_echo "$as_me: updating cache $cache_file" >&6;}
16328     cat confcache >$cache_file
16329   else
16330     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16331 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16332   fi
16333 fi
16334 rm -f confcache
16335
16336 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16337 # Let make expand exec_prefix.
16338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16339
16340 DEFS=-DHAVE_CONFIG_H
16341
16342 ac_libobjs=
16343 ac_ltlibobjs=
16344 U=
16345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16346   # 1. Remove the extension, and $U if already installed.
16347   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16348   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16349   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16350   #    will be set to the directory where LIBOBJS objects are built.
16351   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16352   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16353 done
16354 LIBOBJS=$ac_libobjs
16355
16356 LTLIBOBJS=$ac_ltlibobjs
16357
16358
16359
16360
16361 : ${CONFIG_STATUS=./config.status}
16362 ac_write_fail=0
16363 ac_clean_files_save=$ac_clean_files
16364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16366 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16367 as_write_fail=0
16368 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16369 #! $SHELL
16370 # Generated by $as_me.
16371 # Run this file to recreate the current configuration.
16372 # Compiler output produced by configure, useful for debugging
16373 # configure, is in config.log if it exists.
16374
16375 debug=false
16376 ac_cs_recheck=false
16377 ac_cs_silent=false
16378
16379 SHELL=\${CONFIG_SHELL-$SHELL}
16380 export SHELL
16381 _ASEOF
16382 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16383 ## -------------------- ##
16384 ## M4sh Initialization. ##
16385 ## -------------------- ##
16386
16387 # Be more Bourne compatible
16388 DUALCASE=1; export DUALCASE # for MKS sh
16389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16390   emulate sh
16391   NULLCMD=:
16392   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16393   # is contrary to our usage.  Disable this feature.
16394   alias -g '${1+"$@"}'='"$@"'
16395   setopt NO_GLOB_SUBST
16396 else
16397   case `(set -o) 2>/dev/null` in #(
16398   *posix*) :
16399     set -o posix ;; #(
16400   *) :
16401      ;;
16402 esac
16403 fi
16404
16405
16406 as_nl='
16407 '
16408 export as_nl
16409 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16410 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16413 # Prefer a ksh shell builtin over an external printf program on Solaris,
16414 # but without wasting forks for bash or zsh.
16415 if test -z "$BASH_VERSION$ZSH_VERSION" \
16416     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16417   as_echo='print -r --'
16418   as_echo_n='print -rn --'
16419 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16420   as_echo='printf %s\n'
16421   as_echo_n='printf %s'
16422 else
16423   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16424     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16425     as_echo_n='/usr/ucb/echo -n'
16426   else
16427     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16428     as_echo_n_body='eval
16429       arg=$1;
16430       case $arg in #(
16431       *"$as_nl"*)
16432         expr "X$arg" : "X\\(.*\\)$as_nl";
16433         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16434       esac;
16435       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16436     '
16437     export as_echo_n_body
16438     as_echo_n='sh -c $as_echo_n_body as_echo'
16439   fi
16440   export as_echo_body
16441   as_echo='sh -c $as_echo_body as_echo'
16442 fi
16443
16444 # The user is always right.
16445 if test "${PATH_SEPARATOR+set}" != set; then
16446   PATH_SEPARATOR=:
16447   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16448     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16449       PATH_SEPARATOR=';'
16450   }
16451 fi
16452
16453
16454 # IFS
16455 # We need space, tab and new line, in precisely that order.  Quoting is
16456 # there to prevent editors from complaining about space-tab.
16457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16458 # splitting by setting IFS to empty value.)
16459 IFS=" ""        $as_nl"
16460
16461 # Find who we are.  Look in the path if we contain no directory separator.
16462 case $0 in #((
16463   *[\\/]* ) as_myself=$0 ;;
16464   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465 for as_dir in $PATH
16466 do
16467   IFS=$as_save_IFS
16468   test -z "$as_dir" && as_dir=.
16469     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16470   done
16471 IFS=$as_save_IFS
16472
16473      ;;
16474 esac
16475 # We did not find ourselves, most probably we were run as `sh COMMAND'
16476 # in which case we are not to be found in the path.
16477 if test "x$as_myself" = x; then
16478   as_myself=$0
16479 fi
16480 if test ! -f "$as_myself"; then
16481   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16482   exit 1
16483 fi
16484
16485 # Unset variables that we do not need and which cause bugs (e.g. in
16486 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16487 # suppresses any "Segmentation fault" message there.  '((' could
16488 # trigger a bug in pdksh 5.2.14.
16489 for as_var in BASH_ENV ENV MAIL MAILPATH
16490 do eval test x\${$as_var+set} = xset \
16491   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16492 done
16493 PS1='$ '
16494 PS2='> '
16495 PS4='+ '
16496
16497 # NLS nuisances.
16498 LC_ALL=C
16499 export LC_ALL
16500 LANGUAGE=C
16501 export LANGUAGE
16502
16503 # CDPATH.
16504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16505
16506
16507 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16508 # ----------------------------------------
16509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16511 # script with STATUS, using 1 if that was 0.
16512 as_fn_error ()
16513 {
16514   as_status=$1; test $as_status -eq 0 && as_status=1
16515   if test "$4"; then
16516     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16517     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16518   fi
16519   $as_echo "$as_me: error: $2" >&2
16520   as_fn_exit $as_status
16521 } # as_fn_error
16522
16523
16524 # as_fn_set_status STATUS
16525 # -----------------------
16526 # Set $? to STATUS, without forking.
16527 as_fn_set_status ()
16528 {
16529   return $1
16530 } # as_fn_set_status
16531
16532 # as_fn_exit STATUS
16533 # -----------------
16534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16535 as_fn_exit ()
16536 {
16537   set +e
16538   as_fn_set_status $1
16539   exit $1
16540 } # as_fn_exit
16541
16542 # as_fn_unset VAR
16543 # ---------------
16544 # Portably unset VAR.
16545 as_fn_unset ()
16546 {
16547   { eval $1=; unset $1;}
16548 }
16549 as_unset=as_fn_unset
16550 # as_fn_append VAR VALUE
16551 # ----------------------
16552 # Append the text in VALUE to the end of the definition contained in VAR. Take
16553 # advantage of any shell optimizations that allow amortized linear growth over
16554 # repeated appends, instead of the typical quadratic growth present in naive
16555 # implementations.
16556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16557   eval 'as_fn_append ()
16558   {
16559     eval $1+=\$2
16560   }'
16561 else
16562   as_fn_append ()
16563   {
16564     eval $1=\$$1\$2
16565   }
16566 fi # as_fn_append
16567
16568 # as_fn_arith ARG...
16569 # ------------------
16570 # Perform arithmetic evaluation on the ARGs, and store the result in the
16571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16572 # must be portable across $(()) and expr.
16573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16574   eval 'as_fn_arith ()
16575   {
16576     as_val=$(( $* ))
16577   }'
16578 else
16579   as_fn_arith ()
16580   {
16581     as_val=`expr "$@" || test $? -eq 1`
16582   }
16583 fi # as_fn_arith
16584
16585
16586 if expr a : '\(a\)' >/dev/null 2>&1 &&
16587    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16588   as_expr=expr
16589 else
16590   as_expr=false
16591 fi
16592
16593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16594   as_basename=basename
16595 else
16596   as_basename=false
16597 fi
16598
16599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16600   as_dirname=dirname
16601 else
16602   as_dirname=false
16603 fi
16604
16605 as_me=`$as_basename -- "$0" ||
16606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16607          X"$0" : 'X\(//\)$' \| \
16608          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16609 $as_echo X/"$0" |
16610     sed '/^.*\/\([^/][^/]*\)\/*$/{
16611             s//\1/
16612             q
16613           }
16614           /^X\/\(\/\/\)$/{
16615             s//\1/
16616             q
16617           }
16618           /^X\/\(\/\).*/{
16619             s//\1/
16620             q
16621           }
16622           s/.*/./; q'`
16623
16624 # Avoid depending upon Character Ranges.
16625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16628 as_cr_digits='0123456789'
16629 as_cr_alnum=$as_cr_Letters$as_cr_digits
16630
16631 ECHO_C= ECHO_N= ECHO_T=
16632 case `echo -n x` in #(((((
16633 -n*)
16634   case `echo 'xy\c'` in
16635   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16636   xy)  ECHO_C='\c';;
16637   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16638        ECHO_T=' ';;
16639   esac;;
16640 *)
16641   ECHO_N='-n';;
16642 esac
16643
16644 rm -f conf$$ conf$$.exe conf$$.file
16645 if test -d conf$$.dir; then
16646   rm -f conf$$.dir/conf$$.file
16647 else
16648   rm -f conf$$.dir
16649   mkdir conf$$.dir 2>/dev/null
16650 fi
16651 if (echo >conf$$.file) 2>/dev/null; then
16652   if ln -s conf$$.file conf$$ 2>/dev/null; then
16653     as_ln_s='ln -s'
16654     # ... but there are two gotchas:
16655     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16656     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16657     # In both cases, we have to default to `cp -p'.
16658     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16659       as_ln_s='cp -p'
16660   elif ln conf$$.file conf$$ 2>/dev/null; then
16661     as_ln_s=ln
16662   else
16663     as_ln_s='cp -p'
16664   fi
16665 else
16666   as_ln_s='cp -p'
16667 fi
16668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16669 rmdir conf$$.dir 2>/dev/null
16670
16671
16672 # as_fn_mkdir_p
16673 # -------------
16674 # Create "$as_dir" as a directory, including parents if necessary.
16675 as_fn_mkdir_p ()
16676 {
16677
16678   case $as_dir in #(
16679   -*) as_dir=./$as_dir;;
16680   esac
16681   test -d "$as_dir" || eval $as_mkdir_p || {
16682     as_dirs=
16683     while :; do
16684       case $as_dir in #(
16685       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16686       *) as_qdir=$as_dir;;
16687       esac
16688       as_dirs="'$as_qdir' $as_dirs"
16689       as_dir=`$as_dirname -- "$as_dir" ||
16690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16691          X"$as_dir" : 'X\(//\)[^/]' \| \
16692          X"$as_dir" : 'X\(//\)$' \| \
16693          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16694 $as_echo X"$as_dir" |
16695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16696             s//\1/
16697             q
16698           }
16699           /^X\(\/\/\)[^/].*/{
16700             s//\1/
16701             q
16702           }
16703           /^X\(\/\/\)$/{
16704             s//\1/
16705             q
16706           }
16707           /^X\(\/\).*/{
16708             s//\1/
16709             q
16710           }
16711           s/.*/./; q'`
16712       test -d "$as_dir" && break
16713     done
16714     test -z "$as_dirs" || eval "mkdir $as_dirs"
16715   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16716
16717
16718 } # as_fn_mkdir_p
16719 if mkdir -p . 2>/dev/null; then
16720   as_mkdir_p='mkdir -p "$as_dir"'
16721 else
16722   test -d ./-p && rmdir ./-p
16723   as_mkdir_p=false
16724 fi
16725
16726 if test -x / >/dev/null 2>&1; then
16727   as_test_x='test -x'
16728 else
16729   if ls -dL / >/dev/null 2>&1; then
16730     as_ls_L_option=L
16731   else
16732     as_ls_L_option=
16733   fi
16734   as_test_x='
16735     eval sh -c '\''
16736       if test -d "$1"; then
16737         test -d "$1/.";
16738       else
16739         case $1 in #(
16740         -*)set "./$1";;
16741         esac;
16742         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16743         ???[sx]*):;;*)false;;esac;fi
16744     '\'' sh
16745   '
16746 fi
16747 as_executable_p=$as_test_x
16748
16749 # Sed expression to map a string onto a valid CPP name.
16750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16751
16752 # Sed expression to map a string onto a valid variable name.
16753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16754
16755
16756 exec 6>&1
16757 ## ----------------------------------- ##
16758 ## Main body of $CONFIG_STATUS script. ##
16759 ## ----------------------------------- ##
16760 _ASEOF
16761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16762
16763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 # Save the log message, to keep $0 and so on meaningful, and to
16765 # report actual input values of CONFIG_FILES etc. instead of their
16766 # values after options handling.
16767 ac_log="
16768 This file was extended by OpenSSH $as_me Portable, which was
16769 generated by GNU Autoconf 2.67.  Invocation command line was
16770
16771   CONFIG_FILES    = $CONFIG_FILES
16772   CONFIG_HEADERS  = $CONFIG_HEADERS
16773   CONFIG_LINKS    = $CONFIG_LINKS
16774   CONFIG_COMMANDS = $CONFIG_COMMANDS
16775   $ $0 $@
16776
16777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16778 "
16779
16780 _ACEOF
16781
16782 case $ac_config_files in *"
16783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16784 esac
16785
16786 case $ac_config_headers in *"
16787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16788 esac
16789
16790
16791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16792 # Files that config.status was made for.
16793 config_files="$ac_config_files"
16794 config_headers="$ac_config_headers"
16795
16796 _ACEOF
16797
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799 ac_cs_usage="\
16800 \`$as_me' instantiates files and other configuration actions
16801 from templates according to the current configuration.  Unless the files
16802 and actions are specified as TAGs, all are instantiated by default.
16803
16804 Usage: $0 [OPTION]... [TAG]...
16805
16806   -h, --help       print this help, then exit
16807   -V, --version    print version number and configuration settings, then exit
16808       --config     print configuration, then exit
16809   -q, --quiet, --silent
16810                    do not print progress messages
16811   -d, --debug      don't remove temporary files
16812       --recheck    update $as_me by reconfiguring in the same conditions
16813       --file=FILE[:TEMPLATE]
16814                    instantiate the configuration file FILE
16815       --header=FILE[:TEMPLATE]
16816                    instantiate the configuration header FILE
16817
16818 Configuration files:
16819 $config_files
16820
16821 Configuration headers:
16822 $config_headers
16823
16824 Report bugs to <openssh-unix-dev@mindrot.org>."
16825
16826 _ACEOF
16827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16828 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16829 ac_cs_version="\\
16830 OpenSSH config.status Portable
16831 configured by $0, generated by GNU Autoconf 2.67,
16832   with options \\"\$ac_cs_config\\"
16833
16834 Copyright (C) 2010 Free Software Foundation, Inc.
16835 This config.status script is free software; the Free Software Foundation
16836 gives unlimited permission to copy, distribute and modify it."
16837
16838 ac_pwd='$ac_pwd'
16839 srcdir='$srcdir'
16840 INSTALL='$INSTALL'
16841 AWK='$AWK'
16842 test -n "\$AWK" || AWK=awk
16843 _ACEOF
16844
16845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16846 # The default lists apply if the user does not specify any file.
16847 ac_need_defaults=:
16848 while test $# != 0
16849 do
16850   case $1 in
16851   --*=?*)
16852     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16853     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16854     ac_shift=:
16855     ;;
16856   --*=)
16857     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16858     ac_optarg=
16859     ac_shift=:
16860     ;;
16861   *)
16862     ac_option=$1
16863     ac_optarg=$2
16864     ac_shift=shift
16865     ;;
16866   esac
16867
16868   case $ac_option in
16869   # Handling of the options.
16870   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16871     ac_cs_recheck=: ;;
16872   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16873     $as_echo "$ac_cs_version"; exit ;;
16874   --config | --confi | --conf | --con | --co | --c )
16875     $as_echo "$ac_cs_config"; exit ;;
16876   --debug | --debu | --deb | --de | --d | -d )
16877     debug=: ;;
16878   --file | --fil | --fi | --f )
16879     $ac_shift
16880     case $ac_optarg in
16881     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16882     '') as_fn_error $? "missing file argument" ;;
16883     esac
16884     as_fn_append CONFIG_FILES " '$ac_optarg'"
16885     ac_need_defaults=false;;
16886   --header | --heade | --head | --hea )
16887     $ac_shift
16888     case $ac_optarg in
16889     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16890     esac
16891     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16892     ac_need_defaults=false;;
16893   --he | --h)
16894     # Conflict between --help and --header
16895     as_fn_error $? "ambiguous option: \`$1'
16896 Try \`$0 --help' for more information.";;
16897   --help | --hel | -h )
16898     $as_echo "$ac_cs_usage"; exit ;;
16899   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16900   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16901     ac_cs_silent=: ;;
16902
16903   # This is an error.
16904   -*) as_fn_error $? "unrecognized option: \`$1'
16905 Try \`$0 --help' for more information." ;;
16906
16907   *) as_fn_append ac_config_targets " $1"
16908      ac_need_defaults=false ;;
16909
16910   esac
16911   shift
16912 done
16913
16914 ac_configure_extra_args=
16915
16916 if $ac_cs_silent; then
16917   exec 6>/dev/null
16918   ac_configure_extra_args="$ac_configure_extra_args --silent"
16919 fi
16920
16921 _ACEOF
16922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16923 if \$ac_cs_recheck; then
16924   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16925   shift
16926   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16927   CONFIG_SHELL='$SHELL'
16928   export CONFIG_SHELL
16929   exec "\$@"
16930 fi
16931
16932 _ACEOF
16933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16934 exec 5>>config.log
16935 {
16936   echo
16937   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16938 ## Running $as_me. ##
16939 _ASBOX
16940   $as_echo "$ac_log"
16941 } >&5
16942
16943 _ACEOF
16944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16945 _ACEOF
16946
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948
16949 # Handling of arguments.
16950 for ac_config_target in $ac_config_targets
16951 do
16952   case $ac_config_target in
16953     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16954     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16955     "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
16956     "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
16957     "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
16958     "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16959     "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
16960     "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
16961
16962   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16963   esac
16964 done
16965
16966
16967 # If the user did not use the arguments to specify the items to instantiate,
16968 # then the envvar interface is used.  Set only those that are not.
16969 # We use the long form for the default assignment because of an extremely
16970 # bizarre bug on SunOS 4.1.3.
16971 if $ac_need_defaults; then
16972   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16973   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16974 fi
16975
16976 # Have a temporary directory for convenience.  Make it in the build tree
16977 # simply because there is no reason against having it here, and in addition,
16978 # creating and moving files from /tmp can sometimes cause problems.
16979 # Hook for its removal unless debugging.
16980 # Note that there is a small window in which the directory will not be cleaned:
16981 # after its creation but before its name has been assigned to `$tmp'.
16982 $debug ||
16983 {
16984   tmp=
16985   trap 'exit_status=$?
16986   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16987 ' 0
16988   trap 'as_fn_exit 1' 1 2 13 15
16989 }
16990 # Create a (secure) tmp directory for tmp files.
16991
16992 {
16993   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16994   test -n "$tmp" && test -d "$tmp"
16995 }  ||
16996 {
16997   tmp=./conf$$-$RANDOM
16998   (umask 077 && mkdir "$tmp")
16999 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17000
17001 # Set up the scripts for CONFIG_FILES section.
17002 # No need to generate them if there are no CONFIG_FILES.
17003 # This happens for instance with `./config.status config.h'.
17004 if test -n "$CONFIG_FILES"; then
17005
17006
17007 ac_cr=`echo X | tr X '\015'`
17008 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17009 # But we know of no other shell where ac_cr would be empty at this
17010 # point, so we can use a bashism as a fallback.
17011 if test "x$ac_cr" = x; then
17012   eval ac_cr=\$\'\\r\'
17013 fi
17014 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17015 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17016   ac_cs_awk_cr='\\r'
17017 else
17018   ac_cs_awk_cr=$ac_cr
17019 fi
17020
17021 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17022 _ACEOF
17023
17024
17025 {
17026   echo "cat >conf$$subs.awk <<_ACEOF" &&
17027   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17028   echo "_ACEOF"
17029 } >conf$$subs.sh ||
17030   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17031 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17032 ac_delim='%!_!# '
17033 for ac_last_try in false false false false false :; do
17034   . ./conf$$subs.sh ||
17035     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17036
17037   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17038   if test $ac_delim_n = $ac_delim_num; then
17039     break
17040   elif $ac_last_try; then
17041     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17042   else
17043     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17044   fi
17045 done
17046 rm -f conf$$subs.sh
17047
17048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17050 _ACEOF
17051 sed -n '
17052 h
17053 s/^/S["/; s/!.*/"]=/
17054 p
17055 g
17056 s/^[^!]*!//
17057 :repl
17058 t repl
17059 s/'"$ac_delim"'$//
17060 t delim
17061 :nl
17062 h
17063 s/\(.\{148\}\)..*/\1/
17064 t more1
17065 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17066 p
17067 n
17068 b repl
17069 :more1
17070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17071 p
17072 g
17073 s/.\{148\}//
17074 t nl
17075 :delim
17076 h
17077 s/\(.\{148\}\)..*/\1/
17078 t more2
17079 s/["\\]/\\&/g; s/^/"/; s/$/"/
17080 p
17081 b
17082 :more2
17083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17084 p
17085 g
17086 s/.\{148\}//
17087 t delim
17088 ' <conf$$subs.awk | sed '
17089 /^[^""]/{
17090   N
17091   s/\n//
17092 }
17093 ' >>$CONFIG_STATUS || ac_write_fail=1
17094 rm -f conf$$subs.awk
17095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096 _ACAWK
17097 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17098   for (key in S) S_is_set[key] = 1
17099   FS = "\a"
17100
17101 }
17102 {
17103   line = $ 0
17104   nfields = split(line, field, "@")
17105   substed = 0
17106   len = length(field[1])
17107   for (i = 2; i < nfields; i++) {
17108     key = field[i]
17109     keylen = length(key)
17110     if (S_is_set[key]) {
17111       value = S[key]
17112       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17113       len += length(value) + length(field[++i])
17114       substed = 1
17115     } else
17116       len += 1 + keylen
17117   }
17118
17119   print line
17120 }
17121
17122 _ACAWK
17123 _ACEOF
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17126   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17127 else
17128   cat
17129 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17130   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17131 _ACEOF
17132
17133 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17134 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17135 # trailing colons and then remove the whole line if VPATH becomes empty
17136 # (actually we leave an empty line to preserve line numbers).
17137 if test "x$srcdir" = x.; then
17138   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17139 h
17140 s///
17141 s/^/:/
17142 s/[      ]*$/:/
17143 s/:\$(srcdir):/:/g
17144 s/:\${srcdir}:/:/g
17145 s/:@srcdir@:/:/g
17146 s/^:*//
17147 s/:*$//
17148 x
17149 s/\(=[   ]*\).*/\1/
17150 G
17151 s/\n//
17152 s/^[^=]*=[       ]*$//
17153 }'
17154 fi
17155
17156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17157 fi # test -n "$CONFIG_FILES"
17158
17159 # Set up the scripts for CONFIG_HEADERS section.
17160 # No need to generate them if there are no CONFIG_HEADERS.
17161 # This happens for instance with `./config.status Makefile'.
17162 if test -n "$CONFIG_HEADERS"; then
17163 cat >"$tmp/defines.awk" <<\_ACAWK ||
17164 BEGIN {
17165 _ACEOF
17166
17167 # Transform confdefs.h into an awk script `defines.awk', embedded as
17168 # here-document in config.status, that substitutes the proper values into
17169 # config.h.in to produce config.h.
17170
17171 # Create a delimiter string that does not exist in confdefs.h, to ease
17172 # handling of long lines.
17173 ac_delim='%!_!# '
17174 for ac_last_try in false false :; do
17175   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17176   if test -z "$ac_t"; then
17177     break
17178   elif $ac_last_try; then
17179     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17180   else
17181     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17182   fi
17183 done
17184
17185 # For the awk script, D is an array of macro values keyed by name,
17186 # likewise P contains macro parameters if any.  Preserve backslash
17187 # newline sequences.
17188
17189 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17190 sed -n '
17191 s/.\{148\}/&'"$ac_delim"'/g
17192 t rset
17193 :rset
17194 s/^[     ]*#[    ]*define[       ][      ]*/ /
17195 t def
17196 d
17197 :def
17198 s/\\$//
17199 t bsnl
17200 s/["\\]/\\&/g
17201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17202 D["\1"]=" \3"/p
17203 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17204 d
17205 :bsnl
17206 s/["\\]/\\&/g
17207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17208 D["\1"]=" \3\\\\\\n"\\/p
17209 t cont
17210 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17211 t cont
17212 d
17213 :cont
17214 n
17215 s/.\{148\}/&'"$ac_delim"'/g
17216 t clear
17217 :clear
17218 s/\\$//
17219 t bsnlc
17220 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17221 d
17222 :bsnlc
17223 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17224 b cont
17225 ' <confdefs.h | sed '
17226 s/'"$ac_delim"'/"\\\
17227 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17228
17229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17230   for (key in D) D_is_set[key] = 1
17231   FS = "\a"
17232 }
17233 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17234   line = \$ 0
17235   split(line, arg, " ")
17236   if (arg[1] == "#") {
17237     defundef = arg[2]
17238     mac1 = arg[3]
17239   } else {
17240     defundef = substr(arg[1], 2)
17241     mac1 = arg[2]
17242   }
17243   split(mac1, mac2, "(") #)
17244   macro = mac2[1]
17245   prefix = substr(line, 1, index(line, defundef) - 1)
17246   if (D_is_set[macro]) {
17247     # Preserve the white space surrounding the "#".
17248     print prefix "define", macro P[macro] D[macro]
17249     next
17250   } else {
17251     # Replace #undef with comments.  This is necessary, for example,
17252     # in the case of _POSIX_SOURCE, which is predefined and required
17253     # on some systems where configure will not decide to define it.
17254     if (defundef == "undef") {
17255       print "/*", prefix defundef, macro, "*/"
17256       next
17257     }
17258   }
17259 }
17260 { print }
17261 _ACAWK
17262 _ACEOF
17263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17264   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17265 fi # test -n "$CONFIG_HEADERS"
17266
17267
17268 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17269 shift
17270 for ac_tag
17271 do
17272   case $ac_tag in
17273   :[FHLC]) ac_mode=$ac_tag; continue;;
17274   esac
17275   case $ac_mode$ac_tag in
17276   :[FHL]*:*);;
17277   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17278   :[FH]-) ac_tag=-:-;;
17279   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17280   esac
17281   ac_save_IFS=$IFS
17282   IFS=:
17283   set x $ac_tag
17284   IFS=$ac_save_IFS
17285   shift
17286   ac_file=$1
17287   shift
17288
17289   case $ac_mode in
17290   :L) ac_source=$1;;
17291   :[FH])
17292     ac_file_inputs=
17293     for ac_f
17294     do
17295       case $ac_f in
17296       -) ac_f="$tmp/stdin";;
17297       *) # Look for the file first in the build tree, then in the source tree
17298          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17299          # because $ac_f cannot contain `:'.
17300          test -f "$ac_f" ||
17301            case $ac_f in
17302            [\\/$]*) false;;
17303            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17304            esac ||
17305            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17306       esac
17307       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17308       as_fn_append ac_file_inputs " '$ac_f'"
17309     done
17310
17311     # Let's still pretend it is `configure' which instantiates (i.e., don't
17312     # use $as_me), people would be surprised to read:
17313     #    /* config.h.  Generated by config.status.  */
17314     configure_input='Generated from '`
17315           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17316         `' by configure.'
17317     if test x"$ac_file" != x-; then
17318       configure_input="$ac_file.  $configure_input"
17319       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17320 $as_echo "$as_me: creating $ac_file" >&6;}
17321     fi
17322     # Neutralize special characters interpreted by sed in replacement strings.
17323     case $configure_input in #(
17324     *\&* | *\|* | *\\* )
17325        ac_sed_conf_input=`$as_echo "$configure_input" |
17326        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17327     *) ac_sed_conf_input=$configure_input;;
17328     esac
17329
17330     case $ac_tag in
17331     *:-:* | *:-) cat >"$tmp/stdin" \
17332       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17333     esac
17334     ;;
17335   esac
17336
17337   ac_dir=`$as_dirname -- "$ac_file" ||
17338 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17339          X"$ac_file" : 'X\(//\)[^/]' \| \
17340          X"$ac_file" : 'X\(//\)$' \| \
17341          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17342 $as_echo X"$ac_file" |
17343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17344             s//\1/
17345             q
17346           }
17347           /^X\(\/\/\)[^/].*/{
17348             s//\1/
17349             q
17350           }
17351           /^X\(\/\/\)$/{
17352             s//\1/
17353             q
17354           }
17355           /^X\(\/\).*/{
17356             s//\1/
17357             q
17358           }
17359           s/.*/./; q'`
17360   as_dir="$ac_dir"; as_fn_mkdir_p
17361   ac_builddir=.
17362
17363 case "$ac_dir" in
17364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17365 *)
17366   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17367   # A ".." for each directory in $ac_dir_suffix.
17368   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17369   case $ac_top_builddir_sub in
17370   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17371   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17372   esac ;;
17373 esac
17374 ac_abs_top_builddir=$ac_pwd
17375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17376 # for backward compatibility:
17377 ac_top_builddir=$ac_top_build_prefix
17378
17379 case $srcdir in
17380   .)  # We are building in place.
17381     ac_srcdir=.
17382     ac_top_srcdir=$ac_top_builddir_sub
17383     ac_abs_top_srcdir=$ac_pwd ;;
17384   [\\/]* | ?:[\\/]* )  # Absolute name.
17385     ac_srcdir=$srcdir$ac_dir_suffix;
17386     ac_top_srcdir=$srcdir
17387     ac_abs_top_srcdir=$srcdir ;;
17388   *) # Relative name.
17389     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17390     ac_top_srcdir=$ac_top_build_prefix$srcdir
17391     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17392 esac
17393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17394
17395
17396   case $ac_mode in
17397   :F)
17398   #
17399   # CONFIG_FILE
17400   #
17401
17402   case $INSTALL in
17403   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17404   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17405   esac
17406 _ACEOF
17407
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17409 # If the template does not know about datarootdir, expand it.
17410 # FIXME: This hack should be removed a few years after 2.60.
17411 ac_datarootdir_hack=; ac_datarootdir_seen=
17412 ac_sed_dataroot='
17413 /datarootdir/ {
17414   p
17415   q
17416 }
17417 /@datadir@/p
17418 /@docdir@/p
17419 /@infodir@/p
17420 /@localedir@/p
17421 /@mandir@/p'
17422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17423 *datarootdir*) ac_datarootdir_seen=yes;;
17424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17425   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17427 _ACEOF
17428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17429   ac_datarootdir_hack='
17430   s&@datadir@&$datadir&g
17431   s&@docdir@&$docdir&g
17432   s&@infodir@&$infodir&g
17433   s&@localedir@&$localedir&g
17434   s&@mandir@&$mandir&g
17435   s&\\\${datarootdir}&$datarootdir&g' ;;
17436 esac
17437 _ACEOF
17438
17439 # Neutralize VPATH when `$srcdir' = `.'.
17440 # Shell code in configure.ac might set extrasub.
17441 # FIXME: do we really want to maintain this feature?
17442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17443 ac_sed_extra="$ac_vpsub
17444 $extrasub
17445 _ACEOF
17446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17447 :t
17448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17449 s|@configure_input@|$ac_sed_conf_input|;t t
17450 s&@top_builddir@&$ac_top_builddir_sub&;t t
17451 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17452 s&@srcdir@&$ac_srcdir&;t t
17453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17454 s&@top_srcdir@&$ac_top_srcdir&;t t
17455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17456 s&@builddir@&$ac_builddir&;t t
17457 s&@abs_builddir@&$ac_abs_builddir&;t t
17458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17459 s&@INSTALL@&$ac_INSTALL&;t t
17460 $ac_datarootdir_hack
17461 "
17462 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17463   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17464
17465 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17466   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17467   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17468   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17469 which seems to be undefined.  Please make sure it is defined" >&5
17470 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17471 which seems to be undefined.  Please make sure it is defined" >&2;}
17472
17473   rm -f "$tmp/stdin"
17474   case $ac_file in
17475   -) cat "$tmp/out" && rm -f "$tmp/out";;
17476   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17477   esac \
17478   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17479  ;;
17480   :H)
17481   #
17482   # CONFIG_HEADER
17483   #
17484   if test x"$ac_file" != x-; then
17485     {
17486       $as_echo "/* $configure_input  */" \
17487       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17488     } >"$tmp/config.h" \
17489       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17490     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17491       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17492 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17493     else
17494       rm -f "$ac_file"
17495       mv "$tmp/config.h" "$ac_file" \
17496         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17497     fi
17498   else
17499     $as_echo "/* $configure_input  */" \
17500       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17501       || as_fn_error $? "could not create -" "$LINENO" 5
17502   fi
17503  ;;
17504
17505
17506   esac
17507
17508 done # for ac_tag
17509
17510
17511 as_fn_exit 0
17512 _ACEOF
17513 ac_clean_files=$ac_clean_files_save
17514
17515 test $ac_write_fail = 0 ||
17516   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17517
17518
17519 # configure is writing to config.log, and then calls config.status.
17520 # config.status does its own redirection, appending to config.log.
17521 # Unfortunately, on DOS this fails, as config.log is still kept open
17522 # by configure, so config.status won't be able to write to it; its
17523 # output is simply discarded.  So we exec the FD to /dev/null,
17524 # effectively closing config.log, so it can be properly (re)opened and
17525 # appended to by config.status.  When coming back to configure, we
17526 # need to make the FD available again.
17527 if test "$no_create" != yes; then
17528   ac_cs_success=:
17529   ac_config_status_args=
17530   test "$silent" = yes &&
17531     ac_config_status_args="$ac_config_status_args --quiet"
17532   exec 5>/dev/null
17533   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17534   exec 5>>config.log
17535   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17536   # would make configure fail if this is the last instruction.
17537   $ac_cs_success || as_fn_exit 1
17538 fi
17539 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17540   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17541 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17542 fi
17543
17544
17545 # Print summary of options
17546
17547 # Someone please show me a better way :)
17548 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17549 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17550 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17551 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17552 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17553 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17554 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17555 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17556 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17557 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17558
17559 echo ""
17560 echo "OpenSSH has been configured with the following options:"
17561 echo "                     User binaries: $B"
17562 echo "                   System binaries: $C"
17563 echo "               Configuration files: $D"
17564 echo "                   Askpass program: $E"
17565 echo "                      Manual pages: $F"
17566 echo "                          PID file: $G"
17567 echo "  Privilege separation chroot path: $H"
17568 if test "x$external_path_file" = "x/etc/login.conf" ; then
17569 echo "   At runtime, sshd will use the path defined in $external_path_file"
17570 echo "   Make sure the path to scp is present, otherwise scp will not work"
17571 else
17572 echo "            sshd default user PATH: $I"
17573         if test ! -z "$external_path_file"; then
17574 echo "   (If PATH is set in $external_path_file it will be used instead. If"
17575 echo "   used, ensure the path to scp is present, otherwise scp will not work.)"
17576         fi
17577 fi
17578 if test ! -z "$superuser_path" ; then
17579 echo "          sshd superuser user PATH: $J"
17580 fi
17581 echo "                    Manpage format: $MANTYPE"
17582 echo "                       PAM support: $PAM_MSG"
17583 echo "                   OSF SIA support: $SIA_MSG"
17584 echo "                 KerberosV support: $KRB5_MSG"
17585 echo "                   SELinux support: $SELINUX_MSG"
17586 echo "                 Smartcard support: $SCARD_MSG"
17587 echo "                     S/KEY support: $SKEY_MSG"
17588 echo "              TCP Wrappers support: $TCPW_MSG"
17589 echo "              MD5 password support: $MD5_MSG"
17590 echo "                   libedit support: $LIBEDIT_MSG"
17591 echo "  Solaris process contract support: $SPC_MSG"
17592 echo "           Solaris project support: $SP_MSG"
17593 echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17594 echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17595 echo "                  BSD Auth support: $BSD_AUTH_MSG"
17596 echo "              Random number source: $RAND_MSG"
17597 echo "             Privsep sandbox style: $SANDBOX_STYLE"
17598
17599 echo ""
17600
17601 echo "              Host: ${host}"
17602 echo "          Compiler: ${CC}"
17603 echo "    Compiler flags: ${CFLAGS}"
17604 echo "Preprocessor flags: ${CPPFLAGS}"
17605 echo "      Linker flags: ${LDFLAGS}"
17606 echo "         Libraries: ${LIBS}"
17607 if test ! -z "${SSHDLIBS}"; then
17608 echo "         +for sshd: ${SSHDLIBS}"
17609 fi
17610 if test ! -z "${SSHLIBS}"; then
17611 echo "          +for ssh: ${SSHLIBS}"
17612 fi
17613
17614 echo ""
17615
17616 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17617         echo "SVR4 style packages are supported with \"make package\""
17618         echo ""
17619 fi
17620
17621 if test "x$PAM_MSG" = "xyes" ; then
17622         echo "PAM is enabled. You may need to install a PAM control file "
17623         echo "for sshd, otherwise password authentication may fail. "
17624         echo "Example PAM control files can be found in the contrib/ "
17625         echo "subdirectory"
17626         echo ""
17627 fi
17628
17629 if test ! -z "$NO_PEERCHECK" ; then
17630         echo "WARNING: the operating system that you are using does not"
17631         echo "appear to support getpeereid(), getpeerucred() or the"
17632         echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17633         echo "enforce security checks to prevent unauthorised connections to"
17634         echo "ssh-agent. Their absence increases the risk that a malicious"
17635         echo "user can connect to your agent."
17636         echo ""
17637 fi
17638
17639 if test "$AUDIT_MODULE" = "bsm" ; then
17640         echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17641         echo "See the Solaris section in README.platform for details."
17642 fi