upload tizen1.0 source
[external/openssh.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.427 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.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 NROFF
606 XAUTH_PATH
607 STRIP_OPT
608 xauth_path
609 PRIVSEP_PATH
610 KRB5CONF
611 OPENSC_CONFIG
612 INSTALL_SSH_PRNG_CMDS
613 PROG_TAIL
614 PROG_IPCS
615 PROG_UPTIME
616 PROG_VMSTAT
617 PROG_DF
618 PROG_LASTLOG
619 PROG_LAST
620 PROG_WHO
621 PROG_W
622 PROG_SAR
623 PROG_PS
624 PROG_JSTAT
625 PROG_IFCONFIG
626 PROG_ARP
627 PROG_NETSTAT
628 PROG_LS
629 SSH_PRIVSEP_USER
630 INSTALL_SSH_RAND_HELPER
631 LIBEDIT
632 SSHDLIBS
633 LD
634 PATH_PASSWD_PROG
635 LOGIN_PROGRAM_FALLBACK
636 STARTUP_SCRIPT_SHELL
637 MAKE_PACKAGE_SUPPORTED
638 PATH_USERADD_PROG
639 PATH_GROUPADD_PROG
640 TEST_SHELL
641 SH
642 TEST_MINUS_S_SH
643 ENT
644 SED
645 PERL
646 KILL
647 CAT
648 AR
649 INSTALL_DATA
650 INSTALL_SCRIPT
651 INSTALL_PROGRAM
652 RANLIB
653 AWK
654 EGREP
655 GREP
656 CPP
657 host_os
658 host_vendor
659 host_cpu
660 host
661 build_os
662 build_vendor
663 build_cpu
664 build
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 target_alias
673 host_alias
674 build_alias
675 LIBS
676 ECHO_T
677 ECHO_N
678 ECHO_C
679 DEFS
680 mandir
681 localedir
682 libdir
683 psdir
684 pdfdir
685 dvidir
686 htmldir
687 infodir
688 docdir
689 oldincludedir
690 includedir
691 localstatedir
692 sharedstatedir
693 sysconfdir
694 datadir
695 datarootdir
696 libexecdir
697 sbindir
698 bindir
699 program_transform_name
700 prefix
701 exec_prefix
702 PACKAGE_URL
703 PACKAGE_BUGREPORT
704 PACKAGE_STRING
705 PACKAGE_VERSION
706 PACKAGE_TARNAME
707 PACKAGE_NAME
708 PATH_SEPARATOR
709 SHELL'
710 ac_subst_files=''
711 ac_user_opts='
712 enable_option_checking
713 enable_largefile
714 with_stackprotect
715 with_rpath
716 with_cflags
717 with_cppflags
718 with_ldflags
719 with_libs
720 with_Werror
721 with_solaris_contracts
722 with_osfsia
723 with_zlib
724 with_zlib_version_check
725 with_skey
726 with_tcp_wrappers
727 with_libedit
728 with_audit
729 with_ssl_dir
730 with_openssl_header_check
731 with_ssl_engine
732 with_pam
733 with_rand_helper
734 with_prngd_port
735 with_prngd_socket
736 with_entropy_timeout
737 with_privsep_user
738 with_sectok
739 with_opensc
740 with_selinux
741 with_kerberos5
742 with_privsep_path
743 with_xauth
744 enable_strip
745 with_mantype
746 with_md5_passwords
747 with_shadow
748 with_ipaddr_display
749 enable_etc_default_login
750 with_default_path
751 with_superuser_path
752 with_4in6
753 with_bsd_auth
754 with_pid_dir
755 enable_lastlog
756 enable_utmp
757 enable_utmpx
758 enable_wtmp
759 enable_wtmpx
760 enable_libutil
761 enable_pututline
762 enable_pututxline
763 with_lastlog
764 '
765       ac_precious_vars='build_alias
766 host_alias
767 target_alias
768 CC
769 CFLAGS
770 LDFLAGS
771 LIBS
772 CPPFLAGS
773 CPP'
774
775
776 # Initialize some variables set by options.
777 ac_init_help=
778 ac_init_version=false
779 ac_unrecognized_opts=
780 ac_unrecognized_sep=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
783 cache_file=/dev/null
784 exec_prefix=NONE
785 no_create=
786 no_recursion=
787 prefix=NONE
788 program_prefix=NONE
789 program_suffix=NONE
790 program_transform_name=s,x,x,
791 silent=
792 site=
793 srcdir=
794 verbose=
795 x_includes=NONE
796 x_libraries=NONE
797
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815 infodir='${datarootdir}/info'
816 htmldir='${docdir}'
817 dvidir='${docdir}'
818 pdfdir='${docdir}'
819 psdir='${docdir}'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
823
824 ac_prev=
825 ac_dashdash=
826 for ac_option
827 do
828   # If the previous option needs an argument, assign it.
829   if test -n "$ac_prev"; then
830     eval $ac_prev=\$ac_option
831     ac_prev=
832     continue
833   fi
834
835   case $ac_option in
836   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837   *=)   ac_optarg= ;;
838   *)    ac_optarg=yes ;;
839   esac
840
841   # Accept the important Cygnus configure options, so we can diagnose typos.
842
843   case $ac_dashdash$ac_option in
844   --)
845     ac_dashdash=yes ;;
846
847   -bindir | --bindir | --bindi | --bind | --bin | --bi)
848     ac_prev=bindir ;;
849   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850     bindir=$ac_optarg ;;
851
852   -build | --build | --buil | --bui | --bu)
853     ac_prev=build_alias ;;
854   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855     build_alias=$ac_optarg ;;
856
857   -cache-file | --cache-file | --cache-fil | --cache-fi \
858   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859     ac_prev=cache_file ;;
860   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862     cache_file=$ac_optarg ;;
863
864   --config-cache | -C)
865     cache_file=config.cache ;;
866
867   -datadir | --datadir | --datadi | --datad)
868     ac_prev=datadir ;;
869   -datadir=* | --datadir=* | --datadi=* | --datad=*)
870     datadir=$ac_optarg ;;
871
872   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873   | --dataroo | --dataro | --datar)
874     ac_prev=datarootdir ;;
875   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877     datarootdir=$ac_optarg ;;
878
879   -disable-* | --disable-*)
880     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881     # Reject names that are not valid shell variable names.
882     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883       as_fn_error $? "invalid feature name: $ac_useropt"
884     ac_useropt_orig=$ac_useropt
885     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886     case $ac_user_opts in
887       *"
888 "enable_$ac_useropt"
889 "*) ;;
890       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891          ac_unrecognized_sep=', ';;
892     esac
893     eval enable_$ac_useropt=no ;;
894
895   -docdir | --docdir | --docdi | --doc | --do)
896     ac_prev=docdir ;;
897   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898     docdir=$ac_optarg ;;
899
900   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901     ac_prev=dvidir ;;
902   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903     dvidir=$ac_optarg ;;
904
905   -enable-* | --enable-*)
906     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909       as_fn_error $? "invalid feature name: $ac_useropt"
910     ac_useropt_orig=$ac_useropt
911     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912     case $ac_user_opts in
913       *"
914 "enable_$ac_useropt"
915 "*) ;;
916       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917          ac_unrecognized_sep=', ';;
918     esac
919     eval enable_$ac_useropt=\$ac_optarg ;;
920
921   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923   | --exec | --exe | --ex)
924     ac_prev=exec_prefix ;;
925   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927   | --exec=* | --exe=* | --ex=*)
928     exec_prefix=$ac_optarg ;;
929
930   -gas | --gas | --ga | --g)
931     # Obsolete; use --with-gas.
932     with_gas=yes ;;
933
934   -help | --help | --hel | --he | -h)
935     ac_init_help=long ;;
936   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937     ac_init_help=recursive ;;
938   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939     ac_init_help=short ;;
940
941   -host | --host | --hos | --ho)
942     ac_prev=host_alias ;;
943   -host=* | --host=* | --hos=* | --ho=*)
944     host_alias=$ac_optarg ;;
945
946   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947     ac_prev=htmldir ;;
948   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949   | --ht=*)
950     htmldir=$ac_optarg ;;
951
952   -includedir | --includedir | --includedi | --included | --include \
953   | --includ | --inclu | --incl | --inc)
954     ac_prev=includedir ;;
955   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956   | --includ=* | --inclu=* | --incl=* | --inc=*)
957     includedir=$ac_optarg ;;
958
959   -infodir | --infodir | --infodi | --infod | --info | --inf)
960     ac_prev=infodir ;;
961   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962     infodir=$ac_optarg ;;
963
964   -libdir | --libdir | --libdi | --libd)
965     ac_prev=libdir ;;
966   -libdir=* | --libdir=* | --libdi=* | --libd=*)
967     libdir=$ac_optarg ;;
968
969   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970   | --libexe | --libex | --libe)
971     ac_prev=libexecdir ;;
972   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973   | --libexe=* | --libex=* | --libe=*)
974     libexecdir=$ac_optarg ;;
975
976   -localedir | --localedir | --localedi | --localed | --locale)
977     ac_prev=localedir ;;
978   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979     localedir=$ac_optarg ;;
980
981   -localstatedir | --localstatedir | --localstatedi | --localstated \
982   | --localstate | --localstat | --localsta | --localst | --locals)
983     ac_prev=localstatedir ;;
984   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986     localstatedir=$ac_optarg ;;
987
988   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989     ac_prev=mandir ;;
990   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991     mandir=$ac_optarg ;;
992
993   -nfp | --nfp | --nf)
994     # Obsolete; use --without-fp.
995     with_fp=no ;;
996
997   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998   | --no-cr | --no-c | -n)
999     no_create=yes ;;
1000
1001   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003     no_recursion=yes ;;
1004
1005   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007   | --oldin | --oldi | --old | --ol | --o)
1008     ac_prev=oldincludedir ;;
1009   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012     oldincludedir=$ac_optarg ;;
1013
1014   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015     ac_prev=prefix ;;
1016   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017     prefix=$ac_optarg ;;
1018
1019   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020   | --program-pre | --program-pr | --program-p)
1021     ac_prev=program_prefix ;;
1022   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024     program_prefix=$ac_optarg ;;
1025
1026   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027   | --program-suf | --program-su | --program-s)
1028     ac_prev=program_suffix ;;
1029   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031     program_suffix=$ac_optarg ;;
1032
1033   -program-transform-name | --program-transform-name \
1034   | --program-transform-nam | --program-transform-na \
1035   | --program-transform-n | --program-transform- \
1036   | --program-transform | --program-transfor \
1037   | --program-transfo | --program-transf \
1038   | --program-trans | --program-tran \
1039   | --progr-tra | --program-tr | --program-t)
1040     ac_prev=program_transform_name ;;
1041   -program-transform-name=* | --program-transform-name=* \
1042   | --program-transform-nam=* | --program-transform-na=* \
1043   | --program-transform-n=* | --program-transform-=* \
1044   | --program-transform=* | --program-transfor=* \
1045   | --program-transfo=* | --program-transf=* \
1046   | --program-trans=* | --program-tran=* \
1047   | --progr-tra=* | --program-tr=* | --program-t=*)
1048     program_transform_name=$ac_optarg ;;
1049
1050   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051     ac_prev=pdfdir ;;
1052   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053     pdfdir=$ac_optarg ;;
1054
1055   -psdir | --psdir | --psdi | --psd | --ps)
1056     ac_prev=psdir ;;
1057   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058     psdir=$ac_optarg ;;
1059
1060   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061   | -silent | --silent | --silen | --sile | --sil)
1062     silent=yes ;;
1063
1064   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065     ac_prev=sbindir ;;
1066   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067   | --sbi=* | --sb=*)
1068     sbindir=$ac_optarg ;;
1069
1070   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072   | --sharedst | --shareds | --shared | --share | --shar \
1073   | --sha | --sh)
1074     ac_prev=sharedstatedir ;;
1075   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078   | --sha=* | --sh=*)
1079     sharedstatedir=$ac_optarg ;;
1080
1081   -site | --site | --sit)
1082     ac_prev=site ;;
1083   -site=* | --site=* | --sit=*)
1084     site=$ac_optarg ;;
1085
1086   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087     ac_prev=srcdir ;;
1088   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089     srcdir=$ac_optarg ;;
1090
1091   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092   | --syscon | --sysco | --sysc | --sys | --sy)
1093     ac_prev=sysconfdir ;;
1094   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096     sysconfdir=$ac_optarg ;;
1097
1098   -target | --target | --targe | --targ | --tar | --ta | --t)
1099     ac_prev=target_alias ;;
1100   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101     target_alias=$ac_optarg ;;
1102
1103   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104     verbose=yes ;;
1105
1106   -version | --version | --versio | --versi | --vers | -V)
1107     ac_init_version=: ;;
1108
1109   -with-* | --with-*)
1110     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113       as_fn_error $? "invalid package name: $ac_useropt"
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval with_$ac_useropt=\$ac_optarg ;;
1124
1125   -without-* | --without-*)
1126     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127     # Reject names that are not valid shell variable names.
1128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129       as_fn_error $? "invalid package name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133       *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137          ac_unrecognized_sep=', ';;
1138     esac
1139     eval with_$ac_useropt=no ;;
1140
1141   --x)
1142     # Obsolete; use --with-x.
1143     with_x=yes ;;
1144
1145   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146   | --x-incl | --x-inc | --x-in | --x-i)
1147     ac_prev=x_includes ;;
1148   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150     x_includes=$ac_optarg ;;
1151
1152   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154     ac_prev=x_libraries ;;
1155   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157     x_libraries=$ac_optarg ;;
1158
1159   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160 Try \`$0 --help' for more information"
1161     ;;
1162
1163   *=*)
1164     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165     # Reject names that are not valid shell variable names.
1166     case $ac_envvar in #(
1167       '' | [0-9]* | *[!_$as_cr_alnum]* )
1168       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169     esac
1170     eval $ac_envvar=\$ac_optarg
1171     export $ac_envvar ;;
1172
1173   *)
1174     # FIXME: should be removed in autoconf 3.0.
1175     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1179     ;;
1180
1181   esac
1182 done
1183
1184 if test -n "$ac_prev"; then
1185   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186   as_fn_error $? "missing argument to $ac_option"
1187 fi
1188
1189 if test -n "$ac_unrecognized_opts"; then
1190   case $enable_option_checking in
1191     no) ;;
1192     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194   esac
1195 fi
1196
1197 # Check all directory arguments for consistency.
1198 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199                 datadir sysconfdir sharedstatedir localstatedir includedir \
1200                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201                 libdir localedir mandir
1202 do
1203   eval ac_val=\$$ac_var
1204   # Remove trailing slashes.
1205   case $ac_val in
1206     */ )
1207       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208       eval $ac_var=\$ac_val;;
1209   esac
1210   # Be sure to have absolute directory names.
1211   case $ac_val in
1212     [\\/$]* | ?:[\\/]* )  continue;;
1213     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214   esac
1215   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used" >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$as_myself" : 'X\(//\)[^/]' \| \
1257          X"$as_myself" : 'X\(//\)$' \| \
1258          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291         pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294   srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_env_${ac_var}_value=\$${ac_var}
1305   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313   # Omit some internal or obsolete options to make the list less imposing.
1314   # This message is too long to be a string in the A/UX 3.1 sh.
1315   cat <<_ACEOF
1316 \`configure' configures OpenSSH Portable to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326   -h, --help              display this help and exit
1327       --help=short        display options specific to this package
1328       --help=recursive    display the short help of all the included packages
1329   -V, --version           display version information and exit
1330   -q, --quiet, --silent   do not print \`checking ...' messages
1331       --cache-file=FILE   cache test results in FILE [disabled]
1332   -C, --config-cache      alias for \`--cache-file=config.cache'
1333   -n, --no-create         do not create output files
1334       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337   --prefix=PREFIX         install architecture-independent files in PREFIX
1338                           [$ac_default_prefix]
1339   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                           [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350   --bindir=DIR            user executables [EPREFIX/bin]
1351   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352   --libexecdir=DIR        program executables [EPREFIX/libexec]
1353   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356   --libdir=DIR            object code libraries [EPREFIX/lib]
1357   --includedir=DIR        C header files [PREFIX/include]
1358   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361   --infodir=DIR           info documentation [DATAROOTDIR/info]
1362   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363   --mandir=DIR            man documentation [DATAROOTDIR/man]
1364   --docdir=DIR            documentation root [DATAROOTDIR/doc/openssh]
1365   --htmldir=DIR           html documentation [DOCDIR]
1366   --dvidir=DIR            dvi documentation [DOCDIR]
1367   --pdfdir=DIR            pdf documentation [DOCDIR]
1368   --psdir=DIR             ps documentation [DOCDIR]
1369 _ACEOF
1370
1371   cat <<\_ACEOF
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of OpenSSH Portable:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --disable-largefile     omit support for large files
1390   --disable-strip         Disable calling strip(1) on install
1391   --disable-etc-default-login Disable using PATH from /etc/default/login no
1392   --disable-lastlog       disable use of lastlog even if detected no
1393   --disable-utmp          disable use of utmp even if detected no
1394   --disable-utmpx         disable use of utmpx even if detected no
1395   --disable-wtmp          disable use of wtmp even if detected no
1396   --disable-wtmpx         disable use of wtmpx even if detected no
1397   --disable-libutil       disable use of libutil (login() etc.) no
1398   --disable-pututline     disable use of pututline() etc. (uwtmp) no
1399   --disable-pututxline    disable use of pututxline() etc. (uwtmpx) no
1400
1401 Optional Packages:
1402   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1403   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1404   --without-stackprotect  Don't use compiler's stack protection
1405   --without-rpath         Disable auto-added -R linker paths
1406   --with-cflags           Specify additional flags to pass to compiler
1407   --with-cppflags         Specify additional flags to pass to preprocessor
1408   --with-ldflags          Specify additional flags to pass to linker
1409   --with-libs             Specify additional libraries to link with
1410   --with-Werror           Build main code with -Werror
1411   --with-solaris-contracts Enable Solaris process contracts (experimental)
1412   --with-osfsia           Enable Digital Unix SIA
1413   --with-zlib=PATH        Use zlib in PATH
1414   --without-zlib-version-check Disable zlib version check
1415   --with-skey[=PATH]      Enable S/Key support (optionally in PATH)
1416   --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1417   --with-libedit[=PATH]   Enable libedit support for sftp
1418   --with-audit=module     Enable EXPERIMENTAL audit support (modules=debug,bsm)
1419   --with-ssl-dir=PATH     Specify path to OpenSSL installation
1420   --without-openssl-header-check Disable OpenSSL version consistency check
1421   --with-ssl-engine       Enable OpenSSL (hardware) ENGINE support
1422   --with-pam              Enable PAM support
1423   --with-rand-helper      Use subprocess to gather strong randomness
1424   --with-prngd-port=PORT  read entropy from PRNGD/EGD TCP localhost:PORT
1425   --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
1426   --with-entropy-timeout  Specify entropy gathering command timeout (msec)
1427   --with-privsep-user=user Specify non-privileged user for privilege separation
1428   --with-sectok           Enable smartcard support using libsectok
1429   --with-opensc[=PFX]     Enable smartcard support using OpenSC (optionally in PATH)
1430   --with-selinux          Enable SELinux support
1431   --with-kerberos5=PATH   Enable Kerberos 5 support
1432   --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1433   --with-xauth=PATH       Specify path to xauth program
1434   --with-mantype=man|cat|doc  Set man page type
1435   --with-md5-passwords    Enable use of MD5 passwords
1436   --without-shadow        Disable shadow password support
1437   --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY
1438   --with-default-path=    Specify default \$PATH environment for server
1439   --with-superuser-path=  Specify different path for super-user
1440   --with-4in6             Check for and convert IPv4 in IPv6 mapped addresses
1441   --with-bsd-auth         Enable BSD auth support
1442   --with-pid-dir=PATH     Specify location of ssh.pid file
1443   --with-lastlog=FILE|DIR specify lastlog location common locations
1444
1445 Some influential environment variables:
1446   CC          C compiler command
1447   CFLAGS      C compiler flags
1448   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449               nonstandard directory <lib dir>
1450   LIBS        libraries to pass to the linker, e.g. -l<library>
1451   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452               you have headers in a nonstandard directory <include dir>
1453   CPP         C preprocessor
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to <openssh-unix-dev@mindrot.org>.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464   # If there are subdirs, report their specific --help.
1465   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466     test -d "$ac_dir" ||
1467       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468       continue
1469     ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475   # A ".." for each directory in $ac_dir_suffix.
1476   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477   case $ac_top_builddir_sub in
1478   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480   esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488   .)  # We are building in place.
1489     ac_srcdir=.
1490     ac_top_srcdir=$ac_top_builddir_sub
1491     ac_abs_top_srcdir=$ac_pwd ;;
1492   [\\/]* | ?:[\\/]* )  # Absolute name.
1493     ac_srcdir=$srcdir$ac_dir_suffix;
1494     ac_top_srcdir=$srcdir
1495     ac_abs_top_srcdir=$srcdir ;;
1496   *) # Relative name.
1497     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498     ac_top_srcdir=$ac_top_build_prefix$srcdir
1499     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503     cd "$ac_dir" || { ac_status=$?; continue; }
1504     # Check for guested configure.
1505     if test -f "$ac_srcdir/configure.gnu"; then
1506       echo &&
1507       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508     elif test -f "$ac_srcdir/configure"; then
1509       echo &&
1510       $SHELL "$ac_srcdir/configure" --help=recursive
1511     else
1512       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513     fi || ac_status=$?
1514     cd "$ac_pwd" || { ac_status=$?; break; }
1515   done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520   cat <<\_ACEOF
1521 OpenSSH configure Portable
1522 generated by GNU Autoconf 2.67
1523
1524 Copyright (C) 2010 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528   exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541   rm -f conftest.$ac_objext
1542   if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545   *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 $as_echo "$ac_try_echo"; } >&5
1549   (eval "$ac_compile") 2>conftest.err
1550   ac_status=$?
1551   if test -s conftest.err; then
1552     grep -v '^ *+' conftest.err >conftest.er1
1553     cat conftest.er1 >&5
1554     mv -f conftest.er1 conftest.err
1555   fi
1556   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557   test $ac_status = 0; } && {
1558          test -z "$ac_c_werror_flag" ||
1559          test ! -s conftest.err
1560        } && test -s conftest.$ac_objext; then :
1561   ac_retval=0
1562 else
1563   $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566         ac_retval=1
1567 fi
1568   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569   as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_compile
1572
1573 # ac_fn_c_try_run LINENO
1574 # ----------------------
1575 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1576 # that executables *can* be run.
1577 ac_fn_c_try_run ()
1578 {
1579   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580   if { { ac_try="$ac_link"
1581 case "(($ac_try" in
1582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583   *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587   (eval "$ac_link") 2>&5
1588   ac_status=$?
1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1591   { { case "(($ac_try" in
1592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593   *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597   (eval "$ac_try") 2>&5
1598   ac_status=$?
1599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600   test $ac_status = 0; }; }; then :
1601   ac_retval=0
1602 else
1603   $as_echo "$as_me: program exited with status $ac_status" >&5
1604        $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607        ac_retval=$ac_status
1608 fi
1609   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611   as_fn_set_status $ac_retval
1612
1613 } # ac_fn_c_try_run
1614
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624   *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629   ac_status=$?
1630   if test -s conftest.err; then
1631     grep -v '^ *+' conftest.err >conftest.er1
1632     cat conftest.er1 >&5
1633     mv -f conftest.er1 conftest.err
1634   fi
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } > conftest.i && {
1637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638          test ! -s conftest.err
1639        }; then :
1640   ac_retval=0
1641 else
1642   $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645     ac_retval=1
1646 fi
1647   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_cpp
1651
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval "test \"\${$3+set}\"" = set; then :
1662   $as_echo_n "(cached) " >&6
1663 else
1664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h.  */
1666 $4
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670   eval "$3=yes"
1671 else
1672   eval "$3=no"
1673 fi
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675 fi
1676 eval ac_res=\$$3
1677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680
1681 } # ac_fn_c_check_header_compile
1682
1683 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1684 # ---------------------------------------------
1685 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1686 # accordingly.
1687 ac_fn_c_check_decl ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   as_decl_name=`echo $2|sed 's/ *(.*//'`
1691   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1693 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1694 if eval "test \"\${$3+set}\"" = set; then :
1695   $as_echo_n "(cached) " >&6
1696 else
1697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 $4
1700 int
1701 main ()
1702 {
1703 #ifndef $as_decl_name
1704 #ifdef __cplusplus
1705   (void) $as_decl_use;
1706 #else
1707   (void) $as_decl_name;
1708 #endif
1709 #endif
1710
1711   ;
1712   return 0;
1713 }
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716   eval "$3=yes"
1717 else
1718   eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 fi
1722 eval ac_res=\$$3
1723                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
1727 } # ac_fn_c_check_decl
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   rm -f conftest.$ac_objext conftest$ac_exeext
1736   if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_link") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } && {
1752          test -z "$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        } && test -s conftest$ac_exeext && {
1755          test "$cross_compiling" = yes ||
1756          $as_test_x conftest$ac_exeext
1757        }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763         ac_retval=1
1764 fi
1765   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767   # interfere with the next link command; also delete a directory that is
1768   # left behind by Apple's compiler.  We do this before executing the actions.
1769   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771   as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_link
1774
1775 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778 # the include files in INCLUDES and setting the cache variable VAR
1779 # accordingly.
1780 ac_fn_c_check_header_mongrel ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   if eval "test \"\${$3+set}\"" = set; then :
1784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval "test \"\${$3+set}\"" = set; then :
1787   $as_echo_n "(cached) " >&6
1788 fi
1789 eval ac_res=\$$3
1790                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 else
1793   # Is the header compilable?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795 $as_echo_n "checking $2 usability... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802   ac_header_compiler=yes
1803 else
1804   ac_header_compiler=no
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808 $as_echo "$ac_header_compiler" >&6; }
1809
1810 # Is the header present?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812 $as_echo_n "checking $2 presence... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_cpp "$LINENO"; then :
1818   ac_header_preproc=yes
1819 else
1820   ac_header_preproc=no
1821 fi
1822 rm -f conftest.err conftest.i conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824 $as_echo "$ac_header_preproc" >&6; }
1825
1826 # So?  What about this header?
1827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828   yes:no: )
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833     ;;
1834   no:yes:* )
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1838 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1842 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ( $as_echo "## ------------------------------------------- ##
1846 ## Report this to openssh-unix-dev@mindrot.org ##
1847 ## ------------------------------------------- ##"
1848      ) | sed "s/^/$as_me: WARNING:     /" >&2
1849     ;;
1850 esac
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval "test \"\${$3+set}\"" = set; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   eval "$3=\$ac_header_compiler"
1857 fi
1858 eval ac_res=\$$3
1859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 fi
1862   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864 } # ac_fn_c_check_header_mongrel
1865
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1870 {
1871   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval "test \"\${$3+set}\"" = set; then :
1875   $as_echo_n "(cached) " >&6
1876 else
1877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h.  */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1881 #define $2 innocuous_$2
1882
1883 /* System header to define __stub macros and hopefully few prototypes,
1884     which can conflict with char $2 (); below.
1885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886     <limits.h> exists even on freestanding compilers.  */
1887
1888 #ifdef __STDC__
1889 # include <limits.h>
1890 #else
1891 # include <assert.h>
1892 #endif
1893
1894 #undef $2
1895
1896 /* Override any GCC internal prototype to avoid an error.
1897    Use char because int might match the return type of a GCC
1898    builtin and then its argument prototype would still apply.  */
1899 #ifdef __cplusplus
1900 extern "C"
1901 #endif
1902 char $2 ();
1903 /* The GNU C library defines this for functions which it implements
1904     to always fail with ENOSYS.  Some functions are actually named
1905     something starting with __ and the normal name is an alias.  */
1906 #if defined __stub_$2 || defined __stub___$2
1907 choke me
1908 #endif
1909
1910 int
1911 main ()
1912 {
1913 return $2 ();
1914   ;
1915   return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_link "$LINENO"; then :
1919   eval "$3=yes"
1920 else
1921   eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext \
1924     conftest$ac_exeext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930
1931 } # ac_fn_c_check_func
1932
1933 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934 # -------------------------------------------
1935 # Tests whether TYPE exists after having included INCLUDES, setting cache
1936 # variable VAR accordingly.
1937 ac_fn_c_check_type ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval "test \"\${$3+set}\"" = set; then :
1943   $as_echo_n "(cached) " >&6
1944 else
1945   eval "$3=no"
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   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $4
1962 int
1963 main ()
1964 {
1965 if (sizeof (($2)))
1966             return 0;
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972
1973 else
1974   eval "$3=yes"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985 } # ac_fn_c_check_type
1986
1987 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988 # --------------------------------------------
1989 # Tries to find the compile-time value of EXPR in a program that includes
1990 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1991 # computed
1992 ac_fn_c_compute_int ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   if test "$cross_compiling" = yes; then
1996     # Depending upon the size, compute the lo and hi bounds.
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 $4
2000 int
2001 main ()
2002 {
2003 static int test_array [1 - 2 * !(($2) >= 0)];
2004 test_array [0] = 0
2005
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011   ac_lo=0 ac_mid=0
2012   while :; do
2013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 int
2017 main ()
2018 {
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 test_array [0] = 0
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   ac_hi=$ac_mid; break
2028 else
2029   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030                         if test $ac_lo -le $ac_mid; then
2031                           ac_lo= ac_hi=
2032                           break
2033                         fi
2034                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037   done
2038 else
2039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 int
2043 main ()
2044 {
2045 static int test_array [1 - 2 * !(($2) < 0)];
2046 test_array [0] = 0
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053   ac_hi=-1 ac_mid=-1
2054   while :; do
2055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2062 test_array [0] = 0
2063
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   ac_lo=$ac_mid; break
2070 else
2071   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072                         if test $ac_mid -le $ac_hi; then
2073                           ac_lo= ac_hi=
2074                           break
2075                         fi
2076                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079   done
2080 else
2081   ac_lo= ac_hi=
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main ()
2094 {
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 test_array [0] = 0
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103   ac_hi=$ac_mid
2104 else
2105   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 done
2109 case $ac_lo in #((
2110 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2111 '') ac_retval=1 ;;
2112 esac
2113   else
2114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 static long int longval () { return $2; }
2118 static unsigned long int ulongval () { return $2; }
2119 #include <stdio.h>
2120 #include <stdlib.h>
2121 int
2122 main ()
2123 {
2124
2125   FILE *f = fopen ("conftest.val", "w");
2126   if (! f)
2127     return 1;
2128   if (($2) < 0)
2129     {
2130       long int i = longval ();
2131       if (i != ($2))
2132         return 1;
2133       fprintf (f, "%ld", i);
2134     }
2135   else
2136     {
2137       unsigned long int i = ulongval ();
2138       if (i != ($2))
2139         return 1;
2140       fprintf (f, "%lu", i);
2141     }
2142   /* Do not output a trailing newline, as this causes \r\n confusion
2143      on some platforms.  */
2144   return ferror (f) || fclose (f) != 0;
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_run "$LINENO"; then :
2151   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2152 else
2153   ac_retval=1
2154 fi
2155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2156   conftest.$ac_objext conftest.beam conftest.$ac_ext
2157 rm -f conftest.val
2158
2159   fi
2160   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161   as_fn_set_status $ac_retval
2162
2163 } # ac_fn_c_compute_int
2164
2165 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2166 # ----------------------------------------------------
2167 # Tries to find if the field MEMBER exists in type AGGR, after including
2168 # INCLUDES, setting cache variable VAR accordingly.
2169 ac_fn_c_check_member ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2173 $as_echo_n "checking for $2.$3... " >&6; }
2174 if eval "test \"\${$4+set}\"" = set; then :
2175   $as_echo_n "(cached) " >&6
2176 else
2177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h.  */
2179 $5
2180 int
2181 main ()
2182 {
2183 static $2 ac_aggr;
2184 if (ac_aggr.$3)
2185 return 0;
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191   eval "$4=yes"
2192 else
2193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h.  */
2195 $5
2196 int
2197 main ()
2198 {
2199 static $2 ac_aggr;
2200 if (sizeof ac_aggr.$3)
2201 return 0;
2202   ;
2203   return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207   eval "$4=yes"
2208 else
2209   eval "$4=no"
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 fi
2215 eval ac_res=\$$4
2216                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219
2220 } # ac_fn_c_check_member
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2224
2225 It was created by OpenSSH $as_me Portable, which was
2226 generated by GNU Autoconf 2.67.  Invocation command line was
2227
2228   $ $0 $@
2229
2230 _ACEOF
2231 exec 5>>config.log
2232 {
2233 cat <<_ASUNAME
2234 ## --------- ##
2235 ## Platform. ##
2236 ## --------- ##
2237
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2246
2247 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2248 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2251 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2252 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2253 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2254
2255 _ASUNAME
2256
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262     $as_echo "PATH: $as_dir"
2263   done
2264 IFS=$as_save_IFS
2265
2266 } >&5
2267
2268 cat >&5 <<_ACEOF
2269
2270
2271 ## ----------- ##
2272 ## Core tests. ##
2273 ## ----------- ##
2274
2275 _ACEOF
2276
2277
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2283 ac_configure_args=
2284 ac_configure_args0=
2285 ac_configure_args1=
2286 ac_must_keep_next=false
2287 for ac_pass in 1 2
2288 do
2289   for ac_arg
2290   do
2291     case $ac_arg in
2292     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294     | -silent | --silent | --silen | --sile | --sil)
2295       continue ;;
2296     *\'*)
2297       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2298     esac
2299     case $ac_pass in
2300     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2301     2)
2302       as_fn_append ac_configure_args1 " '$ac_arg'"
2303       if test $ac_must_keep_next = true; then
2304         ac_must_keep_next=false # Got value, back to normal.
2305       else
2306         case $ac_arg in
2307           *=* | --config-cache | -C | -disable-* | --disable-* \
2308           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310           | -with-* | --with-* | -without-* | --without-* | --x)
2311             case "$ac_configure_args0 " in
2312               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2313             esac
2314             ;;
2315           -* ) ac_must_keep_next=true ;;
2316         esac
2317       fi
2318       as_fn_append ac_configure_args " '$ac_arg'"
2319       ;;
2320     esac
2321   done
2322 done
2323 { ac_configure_args0=; unset ac_configure_args0;}
2324 { ac_configure_args1=; unset ac_configure_args1;}
2325
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log.  We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332   # Save into config.log some information that might help in debugging.
2333   {
2334     echo
2335
2336     $as_echo "## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##"
2339     echo
2340     # The following way of writing the cache mishandles newlines in values,
2341 (
2342   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2343     eval ac_val=\$$ac_var
2344     case $ac_val in #(
2345     *${as_nl}*)
2346       case $ac_var in #(
2347       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2348 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2349       esac
2350       case $ac_var in #(
2351       _ | IFS | as_nl) ;; #(
2352       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2353       *) { eval $ac_var=; unset $ac_var;} ;;
2354       esac ;;
2355     esac
2356   done
2357   (set) 2>&1 |
2358     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2359     *${as_nl}ac_space=\ *)
2360       sed -n \
2361         "s/'\''/'\''\\\\'\'''\''/g;
2362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2363       ;; #(
2364     *)
2365       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2366       ;;
2367     esac |
2368     sort
2369 )
2370     echo
2371
2372     $as_echo "## ----------------- ##
2373 ## Output variables. ##
2374 ## ----------------- ##"
2375     echo
2376     for ac_var in $ac_subst_vars
2377     do
2378       eval ac_val=\$$ac_var
2379       case $ac_val in
2380       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381       esac
2382       $as_echo "$ac_var='\''$ac_val'\''"
2383     done | sort
2384     echo
2385
2386     if test -n "$ac_subst_files"; then
2387       $as_echo "## ------------------- ##
2388 ## File substitutions. ##
2389 ## ------------------- ##"
2390       echo
2391       for ac_var in $ac_subst_files
2392       do
2393         eval ac_val=\$$ac_var
2394         case $ac_val in
2395         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396         esac
2397         $as_echo "$ac_var='\''$ac_val'\''"
2398       done | sort
2399       echo
2400     fi
2401
2402     if test -s confdefs.h; then
2403       $as_echo "## ----------- ##
2404 ## confdefs.h. ##
2405 ## ----------- ##"
2406       echo
2407       cat confdefs.h
2408       echo
2409     fi
2410     test "$ac_signal" != 0 &&
2411       $as_echo "$as_me: caught signal $ac_signal"
2412     $as_echo "$as_me: exit $exit_status"
2413   } >&5
2414   rm -f core *.core core.conftest.* &&
2415     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2416     exit $exit_status
2417 ' 0
2418 for ac_signal in 1 2 13 15; do
2419   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2420 done
2421 ac_signal=0
2422
2423 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2424 rm -f -r conftest* confdefs.h
2425
2426 $as_echo "/* confdefs.h */" > confdefs.h
2427
2428 # Predefined preprocessor variables.
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_NAME "$PACKAGE_NAME"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_STRING "$PACKAGE_STRING"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_URL "$PACKAGE_URL"
2452 _ACEOF
2453
2454
2455 # Let the site file select an alternate cache file if it wants to.
2456 # Prefer an explicitly selected file to automatically selected ones.
2457 ac_site_file1=NONE
2458 ac_site_file2=NONE
2459 if test -n "$CONFIG_SITE"; then
2460   # We do not want a PATH search for config.site.
2461   case $CONFIG_SITE in #((
2462     -*)  ac_site_file1=./$CONFIG_SITE;;
2463     */*) ac_site_file1=$CONFIG_SITE;;
2464     *)   ac_site_file1=./$CONFIG_SITE;;
2465   esac
2466 elif test "x$prefix" != xNONE; then
2467   ac_site_file1=$prefix/share/config.site
2468   ac_site_file2=$prefix/etc/config.site
2469 else
2470   ac_site_file1=$ac_default_prefix/share/config.site
2471   ac_site_file2=$ac_default_prefix/etc/config.site
2472 fi
2473 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2474 do
2475   test "x$ac_site_file" = xNONE && continue
2476   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2477     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2478 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2479     sed 's/^/| /' "$ac_site_file" >&5
2480     . "$ac_site_file" \
2481       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "failed to load site script $ac_site_file
2484 See \`config.log' for more details" "$LINENO" 5 ; }
2485   fi
2486 done
2487
2488 if test -r "$cache_file"; then
2489   # Some versions of bash will fail to source /dev/null (special files
2490   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2491   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2493 $as_echo "$as_me: loading cache $cache_file" >&6;}
2494     case $cache_file in
2495       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2496       *)                      . "./$cache_file";;
2497     esac
2498   fi
2499 else
2500   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2501 $as_echo "$as_me: creating cache $cache_file" >&6;}
2502   >$cache_file
2503 fi
2504
2505 # Check that the precious variables saved in the cache have kept the same
2506 # value.
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510   eval ac_new_set=\$ac_env_${ac_var}_set
2511   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512   eval ac_new_val=\$ac_env_${ac_var}_value
2513   case $ac_old_set,$ac_new_set in
2514     set,)
2515       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517       ac_cache_corrupted=: ;;
2518     ,set)
2519       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521       ac_cache_corrupted=: ;;
2522     ,);;
2523     *)
2524       if test "x$ac_old_val" != "x$ac_new_val"; then
2525         # differences in whitespace do not lead to failure.
2526         ac_old_val_w=`echo x $ac_old_val`
2527         ac_new_val_w=`echo x $ac_new_val`
2528         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531           ac_cache_corrupted=:
2532         else
2533           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535           eval $ac_var=\$ac_old_val
2536         fi
2537         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2538 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2539         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2541       fi;;
2542   esac
2543   # Pass precious variables to config.status.
2544   if test "$ac_new_set" = set; then
2545     case $ac_new_val in
2546     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547     *) ac_arg=$ac_var=$ac_new_val ;;
2548     esac
2549     case " $ac_configure_args " in
2550       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2551       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552     esac
2553   fi
2554 done
2555 if $ac_cache_corrupted; then
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2561 fi
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2565
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572
2573
2574
2575
2576 ac_config_headers="$ac_config_headers config.h"
2577
2578 ac_ext=c
2579 ac_cpp='$CPP $CPPFLAGS'
2580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583 if test -n "$ac_tool_prefix"; then
2584   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if test "${ac_cv_prog_CC+set}" = set; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test -n "$CC"; then
2592   ac_cv_prog_CC="$CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2596 do
2597   IFS=$as_save_IFS
2598   test -z "$as_dir" && as_dir=.
2599     for ac_exec_ext in '' $ac_executable_extensions; do
2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603     break 2
2604   fi
2605 done
2606   done
2607 IFS=$as_save_IFS
2608
2609 fi
2610 fi
2611 CC=$ac_cv_prog_CC
2612 if test -n "$CC"; then
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2614 $as_echo "$CC" >&6; }
2615 else
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2618 fi
2619
2620
2621 fi
2622 if test -z "$ac_cv_prog_CC"; then
2623   ac_ct_CC=$CC
2624   # Extract the first word of "gcc", so it can be a program name with args.
2625 set dummy gcc; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$ac_ct_CC"; then
2632   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_ac_ct_CC="gcc"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2652 if test -n "$ac_ct_CC"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2654 $as_echo "$ac_ct_CC" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660   if test "x$ac_ct_CC" = x; then
2661     CC=""
2662   else
2663     case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     CC=$ac_ct_CC
2670   fi
2671 else
2672   CC="$ac_cv_prog_CC"
2673 fi
2674
2675 if test -z "$CC"; then
2676           if test -n "$ac_tool_prefix"; then
2677     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}cc; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_prog_CC+set}" = set; then :
2682   $as_echo_n "(cached) " >&6
2683 else
2684   if test -n "$CC"; then
2685   ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692     for ac_exec_ext in '' $ac_executable_extensions; do
2693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694     ac_cv_prog_CC="${ac_tool_prefix}cc"
2695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699   done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2708 else
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714   fi
2715 fi
2716 if test -z "$CC"; then
2717   # Extract the first word of "cc", so it can be a program name with args.
2718 set dummy cc; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then :
2722   $as_echo_n "(cached) " >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727   ac_prog_rejected=no
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731   IFS=$as_save_IFS
2732   test -z "$as_dir" && as_dir=.
2733     for ac_exec_ext in '' $ac_executable_extensions; do
2734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2736        ac_prog_rejected=yes
2737        continue
2738      fi
2739     ac_cv_prog_CC="cc"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747 if test $ac_prog_rejected = yes; then
2748   # We found a bogon in the path, so make sure we never use it.
2749   set dummy $ac_cv_prog_CC
2750   shift
2751   if test $# != 0; then
2752     # We chose a different compiler from the bogus one.
2753     # However, it has the same basename, so the bogon will be chosen
2754     # first if we set CC to just the basename; use the full file name.
2755     shift
2756     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2757   fi
2758 fi
2759 fi
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 $as_echo "$CC" >&6; }
2765 else
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770
2771 fi
2772 if test -z "$CC"; then
2773   if test -n "$ac_tool_prefix"; then
2774   for ac_prog in cl.exe
2775   do
2776     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_CC+set}" = set; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   if test -n "$CC"; then
2784   ac_cv_prog_CC="$CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_exec_ext in '' $ac_executable_extensions; do
2792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798   done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 CC=$ac_cv_prog_CC
2804 if test -n "$CC"; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2807 else
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813     test -n "$CC" && break
2814   done
2815 fi
2816 if test -z "$CC"; then
2817   ac_ct_CC=$CC
2818   for ac_prog in cl.exe
2819 do
2820   # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2825   $as_echo_n "(cached) " >&6
2826 else
2827   if test -n "$ac_ct_CC"; then
2828   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835     for ac_exec_ext in '' $ac_executable_extensions; do
2836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837     ac_cv_prog_ac_ct_CC="$ac_prog"
2838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839     break 2
2840   fi
2841 done
2842   done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2848 if test -n "$ac_ct_CC"; then
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2850 $as_echo "$ac_ct_CC" >&6; }
2851 else
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856
2857   test -n "$ac_ct_CC" && break
2858 done
2859
2860   if test "x$ac_ct_CC" = x; then
2861     CC=""
2862   else
2863     case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2867 ac_tool_warned=yes ;;
2868 esac
2869     CC=$ac_ct_CC
2870   fi
2871 fi
2872
2873 fi
2874
2875
2876 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878 as_fn_error $? "no acceptable C compiler found in \$PATH
2879 See \`config.log' for more details" "$LINENO" 5 ; }
2880
2881 # Provide some information about the compiler.
2882 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2883 set X $ac_compile
2884 ac_compiler=$2
2885 for ac_option in --version -v -V -qversion; do
2886   { { ac_try="$ac_compiler $ac_option >&5"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892 $as_echo "$ac_try_echo"; } >&5
2893   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2894   ac_status=$?
2895   if test -s conftest.err; then
2896     sed '10a\
2897 ... rest of stderr output deleted ...
2898          10q' conftest.err >conftest.er1
2899     cat conftest.er1 >&5
2900   fi
2901   rm -f conftest.er1 conftest.err
2902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903   test $ac_status = 0; }
2904 done
2905
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907 /* end confdefs.h.  */
2908
2909 int
2910 main ()
2911 {
2912
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 ac_clean_files_save=$ac_clean_files
2918 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2919 # Try to create an executable without -o first, disregard a.out.
2920 # It will help us diagnose broken compilers, and finding out an intuition
2921 # of exeext.
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2923 $as_echo_n "checking whether the C compiler works... " >&6; }
2924 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2925
2926 # The possible output files:
2927 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2928
2929 ac_rmfiles=
2930 for ac_file in $ac_files
2931 do
2932   case $ac_file in
2933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2934     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2935   esac
2936 done
2937 rm -f $ac_rmfiles
2938
2939 if { { ac_try="$ac_link_default"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2945 $as_echo "$ac_try_echo"; } >&5
2946   (eval "$ac_link_default") 2>&5
2947   ac_status=$?
2948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2949   test $ac_status = 0; }; then :
2950   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2953 # so that the user can short-circuit this test for compilers unknown to
2954 # Autoconf.
2955 for ac_file in $ac_files ''
2956 do
2957   test -f "$ac_file" || continue
2958   case $ac_file in
2959     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2960         ;;
2961     [ab].out )
2962         # We found the default executable, but exeext='' is most
2963         # certainly right.
2964         break;;
2965     *.* )
2966         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2967         then :; else
2968            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969         fi
2970         # We set ac_cv_exeext here because the later test for it is not
2971         # safe: cross compilers may not add the suffix if given an `-o'
2972         # argument, so we may need to know it at that point already.
2973         # Even if this section looks crufty: it has the advantage of
2974         # actually working.
2975         break;;
2976     * )
2977         break;;
2978   esac
2979 done
2980 test "$ac_cv_exeext" = no && ac_cv_exeext=
2981
2982 else
2983   ac_file=''
2984 fi
2985 if test -z "$ac_file"; then :
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 $as_echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 as_fn_error 77 "C compiler cannot create executables
2994 See \`config.log' for more details" "$LINENO" 5 ; }
2995 else
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2997 $as_echo "yes" >&6; }
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3000 $as_echo_n "checking for C compiler default output file name... " >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3002 $as_echo "$ac_file" >&6; }
3003 ac_exeext=$ac_cv_exeext
3004
3005 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3006 ac_clean_files=$ac_clean_files_save
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3008 $as_echo_n "checking for suffix of executables... " >&6; }
3009 if { { ac_try="$ac_link"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 $as_echo "$ac_try_echo"; } >&5
3016   (eval "$ac_link") 2>&5
3017   ac_status=$?
3018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019   test $ac_status = 0; }; then :
3020   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3021 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3022 # work properly (i.e., refer to `conftest.exe'), while it won't with
3023 # `rm'.
3024 for ac_file in conftest.exe conftest conftest.*; do
3025   test -f "$ac_file" || continue
3026   case $ac_file in
3027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3028     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3029           break;;
3030     * ) break;;
3031   esac
3032 done
3033 else
3034   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3037 See \`config.log' for more details" "$LINENO" 5 ; }
3038 fi
3039 rm -f conftest conftest$ac_cv_exeext
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3041 $as_echo "$ac_cv_exeext" >&6; }
3042
3043 rm -f conftest.$ac_ext
3044 EXEEXT=$ac_cv_exeext
3045 ac_exeext=$EXEEXT
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h.  */
3048 #include <stdio.h>
3049 int
3050 main ()
3051 {
3052 FILE *f = fopen ("conftest.out", "w");
3053  return ferror (f) || fclose (f) != 0;
3054
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 ac_clean_files="$ac_clean_files conftest.out"
3060 # Check that the compiler produces executables we can run.  If not, either
3061 # the compiler is broken, or we cross compile.
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3063 $as_echo_n "checking whether we are cross compiling... " >&6; }
3064 if test "$cross_compiling" != yes; then
3065   { { ac_try="$ac_link"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072   (eval "$ac_link") 2>&5
3073   ac_status=$?
3074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075   test $ac_status = 0; }
3076   if { ac_try='./conftest$ac_cv_exeext'
3077   { { case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083   (eval "$ac_try") 2>&5
3084   ac_status=$?
3085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086   test $ac_status = 0; }; }; then
3087     cross_compiling=no
3088   else
3089     if test "$cross_compiling" = maybe; then
3090         cross_compiling=yes
3091     else
3092         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094 as_fn_error $? "cannot run C compiled programs.
3095 If you meant to cross compile, use \`--host'.
3096 See \`config.log' for more details" "$LINENO" 5 ; }
3097     fi
3098   fi
3099 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3101 $as_echo "$cross_compiling" >&6; }
3102
3103 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3104 ac_clean_files=$ac_clean_files_save
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3106 $as_echo_n "checking for suffix of object files... " >&6; }
3107 if test "${ac_cv_objext+set}" = set; then :
3108   $as_echo_n "(cached) " >&6
3109 else
3110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.o conftest.obj
3122 if { { ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128 $as_echo "$ac_try_echo"; } >&5
3129   (eval "$ac_compile") 2>&5
3130   ac_status=$?
3131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132   test $ac_status = 0; }; then :
3133   for ac_file in conftest.o conftest.obj conftest.*; do
3134   test -f "$ac_file" || continue;
3135   case $ac_file in
3136     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3137     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3138        break;;
3139   esac
3140 done
3141 else
3142   $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error $? "cannot compute suffix of object files: cannot compile
3148 See \`config.log' for more details" "$LINENO" 5 ; }
3149 fi
3150 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3153 $as_echo "$ac_cv_objext" >&6; }
3154 OBJEXT=$ac_cv_objext
3155 ac_objext=$OBJEXT
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3157 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3158 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167 #ifndef __GNUC__
3168        choke me
3169 #endif
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 if ac_fn_c_try_compile "$LINENO"; then :
3176   ac_compiler_gnu=yes
3177 else
3178   ac_compiler_gnu=no
3179 fi
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3182
3183 fi
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3185 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3186 if test $ac_compiler_gnu = yes; then
3187   GCC=yes
3188 else
3189   GCC=
3190 fi
3191 ac_test_CFLAGS=${CFLAGS+set}
3192 ac_save_CFLAGS=$CFLAGS
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3194 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3195 if test "${ac_cv_prog_cc_g+set}" = set; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   ac_save_c_werror_flag=$ac_c_werror_flag
3199    ac_c_werror_flag=yes
3200    ac_cv_prog_cc_g=no
3201    CFLAGS="-g"
3202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h.  */
3204
3205 int
3206 main ()
3207 {
3208
3209   ;
3210   return 0;
3211 }
3212 _ACEOF
3213 if ac_fn_c_try_compile "$LINENO"; then :
3214   ac_cv_prog_cc_g=yes
3215 else
3216   CFLAGS=""
3217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223
3224   ;
3225   return 0;
3226 }
3227 _ACEOF
3228 if ac_fn_c_try_compile "$LINENO"; then :
3229
3230 else
3231   ac_c_werror_flag=$ac_save_c_werror_flag
3232          CFLAGS="-g"
3233          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h.  */
3235
3236 int
3237 main ()
3238 {
3239
3240   ;
3241   return 0;
3242 }
3243 _ACEOF
3244 if ac_fn_c_try_compile "$LINENO"; then :
3245   ac_cv_prog_cc_g=yes
3246 fi
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 fi
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 fi
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252    ac_c_werror_flag=$ac_save_c_werror_flag
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3255 $as_echo "$ac_cv_prog_cc_g" >&6; }
3256 if test "$ac_test_CFLAGS" = set; then
3257   CFLAGS=$ac_save_CFLAGS
3258 elif test $ac_cv_prog_cc_g = yes; then
3259   if test "$GCC" = yes; then
3260     CFLAGS="-g -O2"
3261   else
3262     CFLAGS="-g"
3263   fi
3264 else
3265   if test "$GCC" = yes; then
3266     CFLAGS="-O2"
3267   else
3268     CFLAGS=
3269   fi
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3272 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3273 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3274   $as_echo_n "(cached) " >&6
3275 else
3276   ac_cv_prog_cc_c89=no
3277 ac_save_CC=$CC
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h.  */
3280 #include <stdarg.h>
3281 #include <stdio.h>
3282 #include <sys/types.h>
3283 #include <sys/stat.h>
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3288      char **p;
3289      int i;
3290 {
3291   return p[i];
3292 }
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3294 {
3295   char *s;
3296   va_list v;
3297   va_start (v,p);
3298   s = g (p, va_arg (v,int));
3299   va_end (v);
3300   return s;
3301 }
3302
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3304    function prototypes and stuff, but not '\xHH' hex character constants.
3305    These don't provoke an error unfortunately, instead are silently treated
3306    as 'x'.  The following induces an error, until -std is added to get
3307    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3308    array size at least.  It's necessary to write '\x00'==0 to get something
3309    that's true only with -std.  */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3311
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313    inside strings and character constants.  */
3314 #define FOO(x) 'x'
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3316
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3321 int argc;
3322 char **argv;
3323 int
3324 main ()
3325 {
3326 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3333 do
3334   CC="$ac_save_CC $ac_arg"
3335   if ac_fn_c_try_compile "$LINENO"; then :
3336   ac_cv_prog_cc_c89=$ac_arg
3337 fi
3338 rm -f core conftest.err conftest.$ac_objext
3339   test "x$ac_cv_prog_cc_c89" != "xno" && break
3340 done
3341 rm -f conftest.$ac_ext
3342 CC=$ac_save_CC
3343
3344 fi
3345 # AC_CACHE_VAL
3346 case "x$ac_cv_prog_cc_c89" in
3347   x)
3348     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3349 $as_echo "none needed" >&6; } ;;
3350   xno)
3351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3352 $as_echo "unsupported" >&6; } ;;
3353   *)
3354     CC="$CC $ac_cv_prog_cc_c89"
3355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3356 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3357 esac
3358 if test "x$ac_cv_prog_cc_c89" != xno; then :
3359
3360 fi
3361
3362 ac_ext=c
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367
3368 ac_aux_dir=
3369 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3370   if test -f "$ac_dir/install-sh"; then
3371     ac_aux_dir=$ac_dir
3372     ac_install_sh="$ac_aux_dir/install-sh -c"
3373     break
3374   elif test -f "$ac_dir/install.sh"; then
3375     ac_aux_dir=$ac_dir
3376     ac_install_sh="$ac_aux_dir/install.sh -c"
3377     break
3378   elif test -f "$ac_dir/shtool"; then
3379     ac_aux_dir=$ac_dir
3380     ac_install_sh="$ac_aux_dir/shtool install -c"
3381     break
3382   fi
3383 done
3384 if test -z "$ac_aux_dir"; then
3385   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3386 fi
3387
3388 # These three variables are undocumented and unsupported,
3389 # and are intended to be withdrawn in a future Autoconf release.
3390 # They can cause serious problems if a builder's source tree is in a directory
3391 # whose full name contains unusual characters.
3392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3394 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3395
3396
3397 # Make sure we can run config.sub.
3398 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3399   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3402 $as_echo_n "checking build system type... " >&6; }
3403 if test "${ac_cv_build+set}" = set; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   ac_build_alias=$build_alias
3407 test "x$ac_build_alias" = x &&
3408   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3409 test "x$ac_build_alias" = x &&
3410   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3411 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3412   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3413
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3416 $as_echo "$ac_cv_build" >&6; }
3417 case $ac_cv_build in
3418 *-*-*) ;;
3419 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3420 esac
3421 build=$ac_cv_build
3422 ac_save_IFS=$IFS; IFS='-'
3423 set x $ac_cv_build
3424 shift
3425 build_cpu=$1
3426 build_vendor=$2
3427 shift; shift
3428 # Remember, the first character of IFS is used to create $*,
3429 # except with old shells:
3430 build_os=$*
3431 IFS=$ac_save_IFS
3432 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3433
3434
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3436 $as_echo_n "checking host system type... " >&6; }
3437 if test "${ac_cv_host+set}" = set; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   if test "x$host_alias" = x; then
3441   ac_cv_host=$ac_cv_build
3442 else
3443   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3444     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3445 fi
3446
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3449 $as_echo "$ac_cv_host" >&6; }
3450 case $ac_cv_host in
3451 *-*-*) ;;
3452 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3453 esac
3454 host=$ac_cv_host
3455 ac_save_IFS=$IFS; IFS='-'
3456 set x $ac_cv_host
3457 shift
3458 host_cpu=$1
3459 host_vendor=$2
3460 shift; shift
3461 # Remember, the first character of IFS is used to create $*,
3462 # except with old shells:
3463 host_os=$*
3464 IFS=$ac_save_IFS
3465 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3466
3467
3468
3469 ac_ext=c
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3476 # On Suns, sometimes $CPP names a directory.
3477 if test -n "$CPP" && test -d "$CPP"; then
3478   CPP=
3479 fi
3480 if test -z "$CPP"; then
3481   if test "${ac_cv_prog_CPP+set}" = set; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484       # Double quotes because CPP needs to be expanded
3485     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3486     do
3487       ac_preproc_ok=false
3488 for ac_c_preproc_warn_flag in '' yes
3489 do
3490   # Use a header file that comes with gcc, so configuring glibc
3491   # with a fresh cross-compiler works.
3492   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493   # <limits.h> exists even on freestanding compilers.
3494   # On the NeXT, cc -E runs the code through the compiler's parser,
3495   # not just through cpp. "Syntax error" is here to catch this case.
3496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h.  */
3498 #ifdef __STDC__
3499 # include <limits.h>
3500 #else
3501 # include <assert.h>
3502 #endif
3503                      Syntax error
3504 _ACEOF
3505 if ac_fn_c_try_cpp "$LINENO"; then :
3506
3507 else
3508   # Broken: fails on valid input.
3509 continue
3510 fi
3511 rm -f conftest.err conftest.i conftest.$ac_ext
3512
3513   # OK, works on sane cases.  Now check whether nonexistent headers
3514   # can be detected and how.
3515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h.  */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3520   # Broken: success on invalid input.
3521 continue
3522 else
3523   # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3526 fi
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3528
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.i conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then :
3533   break
3534 fi
3535
3536     done
3537     ac_cv_prog_CPP=$CPP
3538
3539 fi
3540   CPP=$ac_cv_prog_CPP
3541 else
3542   ac_cv_prog_CPP=$CPP
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3545 $as_echo "$CPP" >&6; }
3546 ac_preproc_ok=false
3547 for ac_c_preproc_warn_flag in '' yes
3548 do
3549   # Use a header file that comes with gcc, so configuring glibc
3550   # with a fresh cross-compiler works.
3551   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552   # <limits.h> exists even on freestanding compilers.
3553   # On the NeXT, cc -E runs the code through the compiler's parser,
3554   # not just through cpp. "Syntax error" is here to catch this case.
3555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557 #ifdef __STDC__
3558 # include <limits.h>
3559 #else
3560 # include <assert.h>
3561 #endif
3562                      Syntax error
3563 _ACEOF
3564 if ac_fn_c_try_cpp "$LINENO"; then :
3565
3566 else
3567   # Broken: fails on valid input.
3568 continue
3569 fi
3570 rm -f conftest.err conftest.i conftest.$ac_ext
3571
3572   # OK, works on sane cases.  Now check whether nonexistent headers
3573   # can be detected and how.
3574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576 #include <ac_nonexistent.h>
3577 _ACEOF
3578 if ac_fn_c_try_cpp "$LINENO"; then :
3579   # Broken: success on invalid input.
3580 continue
3581 else
3582   # Passes both tests.
3583 ac_preproc_ok=:
3584 break
3585 fi
3586 rm -f conftest.err conftest.i conftest.$ac_ext
3587
3588 done
3589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3590 rm -f conftest.i conftest.err conftest.$ac_ext
3591 if $ac_preproc_ok; then :
3592
3593 else
3594   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3597 See \`config.log' for more details" "$LINENO" 5 ; }
3598 fi
3599
3600 ac_ext=c
3601 ac_cpp='$CPP $CPPFLAGS'
3602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3608 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3609 if test "${ac_cv_path_GREP+set}" = set; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   if test -z "$GREP"; then
3613   ac_path_GREP_found=false
3614   # Loop through the user's path and test for each of PROGNAME-LIST
3615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620     for ac_prog in grep ggrep; do
3621     for ac_exec_ext in '' $ac_executable_extensions; do
3622       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3624 # Check for GNU ac_path_GREP and select it if it is found.
3625   # Check for GNU $ac_path_GREP
3626 case `"$ac_path_GREP" --version 2>&1` in
3627 *GNU*)
3628   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3629 *)
3630   ac_count=0
3631   $as_echo_n 0123456789 >"conftest.in"
3632   while :
3633   do
3634     cat "conftest.in" "conftest.in" >"conftest.tmp"
3635     mv "conftest.tmp" "conftest.in"
3636     cp "conftest.in" "conftest.nl"
3637     $as_echo 'GREP' >> "conftest.nl"
3638     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640     as_fn_arith $ac_count + 1 && ac_count=$as_val
3641     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642       # Best one so far, save it but keep looking for a better one
3643       ac_cv_path_GREP="$ac_path_GREP"
3644       ac_path_GREP_max=$ac_count
3645     fi
3646     # 10*(2^10) chars as input seems more than enough
3647     test $ac_count -gt 10 && break
3648   done
3649   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650 esac
3651
3652       $ac_path_GREP_found && break 3
3653     done
3654   done
3655   done
3656 IFS=$as_save_IFS
3657   if test -z "$ac_cv_path_GREP"; then
3658     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3659   fi
3660 else
3661   ac_cv_path_GREP=$GREP
3662 fi
3663
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3666 $as_echo "$ac_cv_path_GREP" >&6; }
3667  GREP="$ac_cv_path_GREP"
3668
3669
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3671 $as_echo_n "checking for egrep... " >&6; }
3672 if test "${ac_cv_path_EGREP+set}" = set; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3676    then ac_cv_path_EGREP="$GREP -E"
3677    else
3678      if test -z "$EGREP"; then
3679   ac_path_EGREP_found=false
3680   # Loop through the user's path and test for each of PROGNAME-LIST
3681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686     for ac_prog in egrep; do
3687     for ac_exec_ext in '' $ac_executable_extensions; do
3688       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3689       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3690 # Check for GNU ac_path_EGREP and select it if it is found.
3691   # Check for GNU $ac_path_EGREP
3692 case `"$ac_path_EGREP" --version 2>&1` in
3693 *GNU*)
3694   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3695 *)
3696   ac_count=0
3697   $as_echo_n 0123456789 >"conftest.in"
3698   while :
3699   do
3700     cat "conftest.in" "conftest.in" >"conftest.tmp"
3701     mv "conftest.tmp" "conftest.in"
3702     cp "conftest.in" "conftest.nl"
3703     $as_echo 'EGREP' >> "conftest.nl"
3704     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3705     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3706     as_fn_arith $ac_count + 1 && ac_count=$as_val
3707     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3708       # Best one so far, save it but keep looking for a better one
3709       ac_cv_path_EGREP="$ac_path_EGREP"
3710       ac_path_EGREP_max=$ac_count
3711     fi
3712     # 10*(2^10) chars as input seems more than enough
3713     test $ac_count -gt 10 && break
3714   done
3715   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3716 esac
3717
3718       $ac_path_EGREP_found && break 3
3719     done
3720   done
3721   done
3722 IFS=$as_save_IFS
3723   if test -z "$ac_cv_path_EGREP"; then
3724     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3725   fi
3726 else
3727   ac_cv_path_EGREP=$EGREP
3728 fi
3729
3730    fi
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3733 $as_echo "$ac_cv_path_EGREP" >&6; }
3734  EGREP="$ac_cv_path_EGREP"
3735
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3738 $as_echo_n "checking for ANSI C header files... " >&6; }
3739 if test "${ac_cv_header_stdc+set}" = set; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744 #include <stdlib.h>
3745 #include <stdarg.h>
3746 #include <string.h>
3747 #include <float.h>
3748
3749 int
3750 main ()
3751 {
3752
3753   ;
3754   return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758   ac_cv_header_stdc=yes
3759 else
3760   ac_cv_header_stdc=no
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763
3764 if test $ac_cv_header_stdc = yes; then
3765   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 #include <string.h>
3769
3770 _ACEOF
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772   $EGREP "memchr" >/dev/null 2>&1; then :
3773
3774 else
3775   ac_cv_header_stdc=no
3776 fi
3777 rm -f conftest*
3778
3779 fi
3780
3781 if test $ac_cv_header_stdc = yes; then
3782   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785 #include <stdlib.h>
3786
3787 _ACEOF
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789   $EGREP "free" >/dev/null 2>&1; then :
3790
3791 else
3792   ac_cv_header_stdc=no
3793 fi
3794 rm -f conftest*
3795
3796 fi
3797
3798 if test $ac_cv_header_stdc = yes; then
3799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800   if test "$cross_compiling" = yes; then :
3801   :
3802 else
3803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h.  */
3805 #include <ctype.h>
3806 #include <stdlib.h>
3807 #if ((' ' & 0x0FF) == 0x020)
3808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3810 #else
3811 # define ISLOWER(c) \
3812                    (('a' <= (c) && (c) <= 'i') \
3813                      || ('j' <= (c) && (c) <= 'r') \
3814                      || ('s' <= (c) && (c) <= 'z'))
3815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3816 #endif
3817
3818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3819 int
3820 main ()
3821 {
3822   int i;
3823   for (i = 0; i < 256; i++)
3824     if (XOR (islower (i), ISLOWER (i))
3825         || toupper (i) != TOUPPER (i))
3826       return 2;
3827   return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_run "$LINENO"; then :
3831
3832 else
3833   ac_cv_header_stdc=no
3834 fi
3835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3836   conftest.$ac_objext conftest.beam conftest.$ac_ext
3837 fi
3838
3839 fi
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3842 $as_echo "$ac_cv_header_stdc" >&6; }
3843 if test $ac_cv_header_stdc = yes; then
3844
3845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3846
3847 fi
3848
3849 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3850 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3851                   inttypes.h stdint.h unistd.h
3852 do :
3853   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3854 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3855 "
3856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3857   cat >>confdefs.h <<_ACEOF
3858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3859 _ACEOF
3860
3861 fi
3862
3863 done
3864
3865
3866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
3867 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
3868 if test "${ac_cv_c_bigendian+set}" = set; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   ac_cv_c_bigendian=unknown
3872     # See if we're dealing with a universal compiler.
3873     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h.  */
3875 #ifndef __APPLE_CC__
3876                not a universal capable compiler
3877              #endif
3878              typedef int dummy;
3879
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882
3883         # Check for potential -arch flags.  It is not universal unless
3884         # there are at least two -arch flags with different values.
3885         ac_arch=
3886         ac_prev=
3887         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
3888          if test -n "$ac_prev"; then
3889            case $ac_word in
3890              i?86 | x86_64 | ppc | ppc64)
3891                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
3892                  ac_arch=$ac_word
3893                else
3894                  ac_cv_c_bigendian=universal
3895                  break
3896                fi
3897                ;;
3898            esac
3899            ac_prev=
3900          elif test "x$ac_word" = "x-arch"; then
3901            ac_prev=arch
3902          fi
3903        done
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906     if test $ac_cv_c_bigendian = unknown; then
3907       # See if sys/param.h defines the BYTE_ORDER macro.
3908       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910 #include <sys/types.h>
3911              #include <sys/param.h>
3912
3913 int
3914 main ()
3915 {
3916 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
3917                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
3918                      && LITTLE_ENDIAN)
3919               bogus endian macros
3920              #endif
3921
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927   # It does; now see whether it defined to BIG_ENDIAN or not.
3928          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h.  */
3930 #include <sys/types.h>
3931                 #include <sys/param.h>
3932
3933 int
3934 main ()
3935 {
3936 #if BYTE_ORDER != BIG_ENDIAN
3937                  not big endian
3938                 #endif
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945   ac_cv_c_bigendian=yes
3946 else
3947   ac_cv_c_bigendian=no
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952     fi
3953     if test $ac_cv_c_bigendian = unknown; then
3954       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
3955       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957 #include <limits.h>
3958
3959 int
3960 main ()
3961 {
3962 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
3963               bogus endian macros
3964              #endif
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971   # It does; now see whether it defined to _BIG_ENDIAN or not.
3972          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974 #include <limits.h>
3975
3976 int
3977 main ()
3978 {
3979 #ifndef _BIG_ENDIAN
3980                  not big endian
3981                 #endif
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988   ac_cv_c_bigendian=yes
3989 else
3990   ac_cv_c_bigendian=no
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995     fi
3996     if test $ac_cv_c_bigendian = unknown; then
3997       # Compile a test program.
3998       if test "$cross_compiling" = yes; then :
3999   # Try to guess by grepping values from an object file.
4000          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h.  */
4002 short int ascii_mm[] =
4003                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4004                 short int ascii_ii[] =
4005                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4006                 int use_ascii (int i) {
4007                   return ascii_mm[i] + ascii_ii[i];
4008                 }
4009                 short int ebcdic_ii[] =
4010                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4011                 short int ebcdic_mm[] =
4012                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4013                 int use_ebcdic (int i) {
4014                   return ebcdic_mm[i] + ebcdic_ii[i];
4015                 }
4016                 extern int foo;
4017
4018 int
4019 main ()
4020 {
4021 return use_ascii (foo) == use_ebcdic (foo);
4022   ;
4023   return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4028               ac_cv_c_bigendian=yes
4029             fi
4030             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4031               if test "$ac_cv_c_bigendian" = unknown; then
4032                 ac_cv_c_bigendian=no
4033               else
4034                 # finding both strings is unlikely to happen, but who knows?
4035                 ac_cv_c_bigendian=unknown
4036               fi
4037             fi
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 else
4041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043 $ac_includes_default
4044 int
4045 main ()
4046 {
4047
4048              /* Are we little or big endian?  From Harbison&Steele.  */
4049              union
4050              {
4051                long int l;
4052                char c[sizeof (long int)];
4053              } u;
4054              u.l = 1;
4055              return u.c[sizeof (long int) - 1] == 1;
4056
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_run "$LINENO"; then :
4062   ac_cv_c_bigendian=no
4063 else
4064   ac_cv_c_bigendian=yes
4065 fi
4066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4067   conftest.$ac_objext conftest.beam conftest.$ac_ext
4068 fi
4069
4070     fi
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4073 $as_echo "$ac_cv_c_bigendian" >&6; }
4074  case $ac_cv_c_bigendian in #(
4075    yes)
4076      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4077 ;; #(
4078    no)
4079       ;; #(
4080    universal)
4081
4082 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4083
4084      ;; #(
4085    *)
4086      as_fn_error $? "unknown endianness
4087  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
4088  esac
4089
4090
4091 # Checks for programs.
4092 for ac_prog in gawk mawk nawk awk
4093 do
4094   # Extract the first word of "$ac_prog", so it can be a program name with args.
4095 set dummy $ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if test "${ac_cv_prog_AWK+set}" = set; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -n "$AWK"; then
4102   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109     for ac_exec_ext in '' $ac_executable_extensions; do
4110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111     ac_cv_prog_AWK="$ac_prog"
4112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116   done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 AWK=$ac_cv_prog_AWK
4122 if test -n "$AWK"; then
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4124 $as_echo "$AWK" >&6; }
4125 else
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131   test -n "$AWK" && break
4132 done
4133
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4140 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4141 # On Suns, sometimes $CPP names a directory.
4142 if test -n "$CPP" && test -d "$CPP"; then
4143   CPP=
4144 fi
4145 if test -z "$CPP"; then
4146   if test "${ac_cv_prog_CPP+set}" = set; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149       # Double quotes because CPP needs to be expanded
4150     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4151     do
4152       ac_preproc_ok=false
4153 for ac_c_preproc_warn_flag in '' yes
4154 do
4155   # Use a header file that comes with gcc, so configuring glibc
4156   # with a fresh cross-compiler works.
4157   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158   # <limits.h> exists even on freestanding compilers.
4159   # On the NeXT, cc -E runs the code through the compiler's parser,
4160   # not just through cpp. "Syntax error" is here to catch this case.
4161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h.  */
4163 #ifdef __STDC__
4164 # include <limits.h>
4165 #else
4166 # include <assert.h>
4167 #endif
4168                      Syntax error
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171
4172 else
4173   # Broken: fails on valid input.
4174 continue
4175 fi
4176 rm -f conftest.err conftest.i conftest.$ac_ext
4177
4178   # OK, works on sane cases.  Now check whether nonexistent headers
4179   # can be detected and how.
4180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h.  */
4182 #include <ac_nonexistent.h>
4183 _ACEOF
4184 if ac_fn_c_try_cpp "$LINENO"; then :
4185   # Broken: success on invalid input.
4186 continue
4187 else
4188   # Passes both tests.
4189 ac_preproc_ok=:
4190 break
4191 fi
4192 rm -f conftest.err conftest.i conftest.$ac_ext
4193
4194 done
4195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196 rm -f conftest.i conftest.err conftest.$ac_ext
4197 if $ac_preproc_ok; then :
4198   break
4199 fi
4200
4201     done
4202     ac_cv_prog_CPP=$CPP
4203
4204 fi
4205   CPP=$ac_cv_prog_CPP
4206 else
4207   ac_cv_prog_CPP=$CPP
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4210 $as_echo "$CPP" >&6; }
4211 ac_preproc_ok=false
4212 for ac_c_preproc_warn_flag in '' yes
4213 do
4214   # Use a header file that comes with gcc, so configuring glibc
4215   # with a fresh cross-compiler works.
4216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217   # <limits.h> exists even on freestanding compilers.
4218   # On the NeXT, cc -E runs the code through the compiler's parser,
4219   # not just through cpp. "Syntax error" is here to catch this case.
4220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h.  */
4222 #ifdef __STDC__
4223 # include <limits.h>
4224 #else
4225 # include <assert.h>
4226 #endif
4227                      Syntax error
4228 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230
4231 else
4232   # Broken: fails on valid input.
4233 continue
4234 fi
4235 rm -f conftest.err conftest.i conftest.$ac_ext
4236
4237   # OK, works on sane cases.  Now check whether nonexistent headers
4238   # can be detected and how.
4239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h.  */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244   # Broken: success on invalid input.
4245 continue
4246 else
4247   # Passes both tests.
4248 ac_preproc_ok=:
4249 break
4250 fi
4251 rm -f conftest.err conftest.i conftest.$ac_ext
4252
4253 done
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.i conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then :
4257
4258 else
4259   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details" "$LINENO" 5 ; }
4263 fi
4264
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271 if test -n "$ac_tool_prefix"; then
4272   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -n "$RANLIB"; then
4280   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287     for ac_exec_ext in '' $ac_executable_extensions; do
4288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294   done
4295 IFS=$as_save_IFS
4296
4297 fi
4298 fi
4299 RANLIB=$ac_cv_prog_RANLIB
4300 if test -n "$RANLIB"; then
4301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4302 $as_echo "$RANLIB" >&6; }
4303 else
4304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 fi
4307
4308
4309 fi
4310 if test -z "$ac_cv_prog_RANLIB"; then
4311   ac_ct_RANLIB=$RANLIB
4312   # Extract the first word of "ranlib", so it can be a program name with args.
4313 set dummy ranlib; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319   if test -n "$ac_ct_RANLIB"; then
4320   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327     for ac_exec_ext in '' $ac_executable_extensions; do
4328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329     ac_cv_prog_ac_ct_RANLIB="ranlib"
4330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331     break 2
4332   fi
4333 done
4334   done
4335 IFS=$as_save_IFS
4336
4337 fi
4338 fi
4339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4340 if test -n "$ac_ct_RANLIB"; then
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4342 $as_echo "$ac_ct_RANLIB" >&6; }
4343 else
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4346 fi
4347
4348   if test "x$ac_ct_RANLIB" = x; then
4349     RANLIB=":"
4350   else
4351     case $cross_compiling:$ac_tool_warned in
4352 yes:)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355 ac_tool_warned=yes ;;
4356 esac
4357     RANLIB=$ac_ct_RANLIB
4358   fi
4359 else
4360   RANLIB="$ac_cv_prog_RANLIB"
4361 fi
4362
4363 # Find a good install program.  We prefer a C program (faster),
4364 # so one script is as good as another.  But avoid the broken or
4365 # incompatible versions:
4366 # SysV /etc/install, /usr/sbin/install
4367 # SunOS /usr/etc/install
4368 # IRIX /sbin/install
4369 # AIX /bin/install
4370 # AmigaOS /C/install, which installs bootblocks on floppy discs
4371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4374 # OS/2's system install, which has a completely different semantic
4375 # ./install, which can be erroneously created by make from ./install.sh.
4376 # Reject install programs that cannot install multiple files.
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4378 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4379 if test -z "$INSTALL"; then
4380 if test "${ac_cv_path_install+set}" = set; then :
4381   $as_echo_n "(cached) " >&6
4382 else
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388     # Account for people who put trailing slashes in PATH elements.
4389 case $as_dir/ in #((
4390   ./ | .// | /[cC]/* | \
4391   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4392   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4393   /usr/ucb/* ) ;;
4394   *)
4395     # OSF1 and SCO ODT 3.0 have their own names for install.
4396     # Don't use installbsd from OSF since it installs stuff as root
4397     # by default.
4398     for ac_prog in ginstall scoinst install; do
4399       for ac_exec_ext in '' $ac_executable_extensions; do
4400         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4401           if test $ac_prog = install &&
4402             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4403             # AIX install.  It has an incompatible calling convention.
4404             :
4405           elif test $ac_prog = install &&
4406             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4407             # program-specific install script used by HP pwplus--don't use.
4408             :
4409           else
4410             rm -rf conftest.one conftest.two conftest.dir
4411             echo one > conftest.one
4412             echo two > conftest.two
4413             mkdir conftest.dir
4414             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4415               test -s conftest.one && test -s conftest.two &&
4416               test -s conftest.dir/conftest.one &&
4417               test -s conftest.dir/conftest.two
4418             then
4419               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4420               break 3
4421             fi
4422           fi
4423         fi
4424       done
4425     done
4426     ;;
4427 esac
4428
4429   done
4430 IFS=$as_save_IFS
4431
4432 rm -rf conftest.one conftest.two conftest.dir
4433
4434 fi
4435   if test "${ac_cv_path_install+set}" = set; then
4436     INSTALL=$ac_cv_path_install
4437   else
4438     # As a last resort, use the slow shell script.  Don't cache a
4439     # value for INSTALL within a source directory, because that will
4440     # break other packages using the cache if that directory is
4441     # removed, or if the value is a relative name.
4442     INSTALL=$ac_install_sh
4443   fi
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4446 $as_echo "$INSTALL" >&6; }
4447
4448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4449 # It thinks the first close brace ends the variable substitution.
4450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4451
4452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4453
4454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4457 $as_echo_n "checking for egrep... " >&6; }
4458 if test "${ac_cv_path_EGREP+set}" = set; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4462    then ac_cv_path_EGREP="$GREP -E"
4463    else
4464      if test -z "$EGREP"; then
4465   ac_path_EGREP_found=false
4466   # Loop through the user's path and test for each of PROGNAME-LIST
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472     for ac_prog in egrep; do
4473     for ac_exec_ext in '' $ac_executable_extensions; do
4474       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4475       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4476 # Check for GNU ac_path_EGREP and select it if it is found.
4477   # Check for GNU $ac_path_EGREP
4478 case `"$ac_path_EGREP" --version 2>&1` in
4479 *GNU*)
4480   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4481 *)
4482   ac_count=0
4483   $as_echo_n 0123456789 >"conftest.in"
4484   while :
4485   do
4486     cat "conftest.in" "conftest.in" >"conftest.tmp"
4487     mv "conftest.tmp" "conftest.in"
4488     cp "conftest.in" "conftest.nl"
4489     $as_echo 'EGREP' >> "conftest.nl"
4490     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492     as_fn_arith $ac_count + 1 && ac_count=$as_val
4493     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4494       # Best one so far, save it but keep looking for a better one
4495       ac_cv_path_EGREP="$ac_path_EGREP"
4496       ac_path_EGREP_max=$ac_count
4497     fi
4498     # 10*(2^10) chars as input seems more than enough
4499     test $ac_count -gt 10 && break
4500   done
4501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502 esac
4503
4504       $ac_path_EGREP_found && break 3
4505     done
4506   done
4507   done
4508 IFS=$as_save_IFS
4509   if test -z "$ac_cv_path_EGREP"; then
4510     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4511   fi
4512 else
4513   ac_cv_path_EGREP=$EGREP
4514 fi
4515
4516    fi
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4519 $as_echo "$ac_cv_path_EGREP" >&6; }
4520  EGREP="$ac_cv_path_EGREP"
4521
4522
4523 # Extract the first word of "ar", so it can be a program name with args.
4524 set dummy ar; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_path_AR+set}" = set; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   case $AR in
4531   [\\/]* | ?:[\\/]*)
4532   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4533   ;;
4534   *)
4535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540     for ac_exec_ext in '' $ac_executable_extensions; do
4541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544     break 2
4545   fi
4546 done
4547   done
4548 IFS=$as_save_IFS
4549
4550   ;;
4551 esac
4552 fi
4553 AR=$ac_cv_path_AR
4554 if test -n "$AR"; then
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4556 $as_echo "$AR" >&6; }
4557 else
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563 # Extract the first word of "cat", so it can be a program name with args.
4564 set dummy cat; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_path_CAT+set}" = set; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   case $CAT in
4571   [\\/]* | ?:[\\/]*)
4572   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4573   ;;
4574   *)
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580     for ac_exec_ext in '' $ac_executable_extensions; do
4581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587   done
4588 IFS=$as_save_IFS
4589
4590   ;;
4591 esac
4592 fi
4593 CAT=$ac_cv_path_CAT
4594 if test -n "$CAT"; then
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4596 $as_echo "$CAT" >&6; }
4597 else
4598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602
4603 # Extract the first word of "kill", so it can be a program name with args.
4604 set dummy kill; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_path_KILL+set}" = set; then :
4608   $as_echo_n "(cached) " >&6
4609 else
4610   case $KILL in
4611   [\\/]* | ?:[\\/]*)
4612   ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
4613   ;;
4614   *)
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620     for ac_exec_ext in '' $ac_executable_extensions; do
4621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622     ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
4623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627   done
4628 IFS=$as_save_IFS
4629
4630   ;;
4631 esac
4632 fi
4633 KILL=$ac_cv_path_KILL
4634 if test -n "$KILL"; then
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILL" >&5
4636 $as_echo "$KILL" >&6; }
4637 else
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642
4643 for ac_prog in perl5 perl
4644 do
4645   # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_path_PERL+set}" = set; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   case $PERL in
4653   [\\/]* | ?:[\\/]*)
4654   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4655   ;;
4656   *)
4657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669   done
4670 IFS=$as_save_IFS
4671
4672   ;;
4673 esac
4674 fi
4675 PERL=$ac_cv_path_PERL
4676 if test -n "$PERL"; then
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4678 $as_echo "$PERL" >&6; }
4679 else
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4682 fi
4683
4684
4685   test -n "$PERL" && break
4686 done
4687
4688 # Extract the first word of "sed", so it can be a program name with args.
4689 set dummy sed; ac_word=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_path_SED+set}" = set; then :
4693   $as_echo_n "(cached) " >&6
4694 else
4695   case $SED in
4696   [\\/]* | ?:[\\/]*)
4697   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4698   ;;
4699   *)
4700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712   done
4713 IFS=$as_save_IFS
4714
4715   ;;
4716 esac
4717 fi
4718 SED=$ac_cv_path_SED
4719 if test -n "$SED"; then
4720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4721 $as_echo "$SED" >&6; }
4722 else
4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728
4729 # Extract the first word of "ent", so it can be a program name with args.
4730 set dummy ent; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_path_ENT+set}" = set; then :
4734   $as_echo_n "(cached) " >&6
4735 else
4736   case $ENT in
4737   [\\/]* | ?:[\\/]*)
4738   ac_cv_path_ENT="$ENT" # Let the user override the test with a path.
4739   ;;
4740   *)
4741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746     for ac_exec_ext in '' $ac_executable_extensions; do
4747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748     ac_cv_path_ENT="$as_dir/$ac_word$ac_exec_ext"
4749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753   done
4754 IFS=$as_save_IFS
4755
4756   ;;
4757 esac
4758 fi
4759 ENT=$ac_cv_path_ENT
4760 if test -n "$ENT"; then
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENT" >&5
4762 $as_echo "$ENT" >&6; }
4763 else
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4766 fi
4767
4768
4769
4770 # Extract the first word of "bash", so it can be a program name with args.
4771 set dummy bash; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   case $TEST_MINUS_S_SH in
4778   [\\/]* | ?:[\\/]*)
4779   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4780   ;;
4781   *)
4782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785   IFS=$as_save_IFS
4786   test -z "$as_dir" && as_dir=.
4787     for ac_exec_ext in '' $ac_executable_extensions; do
4788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791     break 2
4792   fi
4793 done
4794   done
4795 IFS=$as_save_IFS
4796
4797   ;;
4798 esac
4799 fi
4800 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4801 if test -n "$TEST_MINUS_S_SH"; then
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4803 $as_echo "$TEST_MINUS_S_SH" >&6; }
4804 else
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810 # Extract the first word of "ksh", so it can be a program name with args.
4811 set dummy ksh; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   case $TEST_MINUS_S_SH in
4818   [\\/]* | ?:[\\/]*)
4819   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4820   ;;
4821   *)
4822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4824 do
4825   IFS=$as_save_IFS
4826   test -z "$as_dir" && as_dir=.
4827     for ac_exec_ext in '' $ac_executable_extensions; do
4828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831     break 2
4832   fi
4833 done
4834   done
4835 IFS=$as_save_IFS
4836
4837   ;;
4838 esac
4839 fi
4840 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4841 if test -n "$TEST_MINUS_S_SH"; then
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4843 $as_echo "$TEST_MINUS_S_SH" >&6; }
4844 else
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 # Extract the first word of "sh", so it can be a program name with args.
4851 set dummy sh; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_path_TEST_MINUS_S_SH+set}" = set; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857   case $TEST_MINUS_S_SH in
4858   [\\/]* | ?:[\\/]*)
4859   ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path.
4860   ;;
4861   *)
4862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_path_TEST_MINUS_S_SH="$as_dir/$ac_word$ac_exec_ext"
4870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874   done
4875 IFS=$as_save_IFS
4876
4877   ;;
4878 esac
4879 fi
4880 TEST_MINUS_S_SH=$ac_cv_path_TEST_MINUS_S_SH
4881 if test -n "$TEST_MINUS_S_SH"; then
4882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_MINUS_S_SH" >&5
4883 $as_echo "$TEST_MINUS_S_SH" >&6; }
4884 else
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4887 fi
4888
4889
4890 # Extract the first word of "sh", so it can be a program name with args.
4891 set dummy sh; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_path_SH+set}" = set; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897   case $SH in
4898   [\\/]* | ?:[\\/]*)
4899   ac_cv_path_SH="$SH" # Let the user override the test with a path.
4900   ;;
4901   *)
4902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914   done
4915 IFS=$as_save_IFS
4916
4917   ;;
4918 esac
4919 fi
4920 SH=$ac_cv_path_SH
4921 if test -n "$SH"; then
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4923 $as_echo "$SH" >&6; }
4924 else
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4927 fi
4928
4929
4930 TEST_SHELL=sh
4931
4932
4933 # Extract the first word of "groupadd", so it can be a program name with args.
4934 set dummy groupadd; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_path_PATH_GROUPADD_PROG+set}" = set; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   case $PATH_GROUPADD_PROG in
4941   [\\/]* | ?:[\\/]*)
4942   ac_cv_path_PATH_GROUPADD_PROG="$PATH_GROUPADD_PROG" # Let the user override the test with a path.
4943   ;;
4944   *)
4945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950     for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_path_PATH_GROUPADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957   done
4958 IFS=$as_save_IFS
4959
4960   test -z "$ac_cv_path_PATH_GROUPADD_PROG" && ac_cv_path_PATH_GROUPADD_PROG="groupadd"
4961   ;;
4962 esac
4963 fi
4964 PATH_GROUPADD_PROG=$ac_cv_path_PATH_GROUPADD_PROG
4965 if test -n "$PATH_GROUPADD_PROG"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_GROUPADD_PROG" >&5
4967 $as_echo "$PATH_GROUPADD_PROG" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972
4973
4974 # Extract the first word of "useradd", so it can be a program name with args.
4975 set dummy useradd; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_path_PATH_USERADD_PROG+set}" = set; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   case $PATH_USERADD_PROG in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_PATH_USERADD_PROG="$PATH_USERADD_PROG" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in /usr/sbin${PATH_SEPARATOR}/etc
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991     for ac_exec_ext in '' $ac_executable_extensions; do
4992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993     ac_cv_path_PATH_USERADD_PROG="$as_dir/$ac_word$ac_exec_ext"
4994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998   done
4999 IFS=$as_save_IFS
5000
5001   test -z "$ac_cv_path_PATH_USERADD_PROG" && ac_cv_path_PATH_USERADD_PROG="useradd"
5002   ;;
5003 esac
5004 fi
5005 PATH_USERADD_PROG=$ac_cv_path_PATH_USERADD_PROG
5006 if test -n "$PATH_USERADD_PROG"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_USERADD_PROG" >&5
5008 $as_echo "$PATH_USERADD_PROG" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 # Extract the first word of "pkgmk", so it can be a program name with args.
5016 set dummy pkgmk; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_prog_MAKE_PACKAGE_SUPPORTED+set}" = set; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5023   ac_cv_prog_MAKE_PACKAGE_SUPPORTED="$MAKE_PACKAGE_SUPPORTED" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_exec_ext in '' $ac_executable_extensions; do
5031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032     ac_cv_prog_MAKE_PACKAGE_SUPPORTED="yes"
5033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037   done
5038 IFS=$as_save_IFS
5039
5040   test -z "$ac_cv_prog_MAKE_PACKAGE_SUPPORTED" && ac_cv_prog_MAKE_PACKAGE_SUPPORTED="no"
5041 fi
5042 fi
5043 MAKE_PACKAGE_SUPPORTED=$ac_cv_prog_MAKE_PACKAGE_SUPPORTED
5044 if test -n "$MAKE_PACKAGE_SUPPORTED"; then
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE_PACKAGE_SUPPORTED" >&5
5046 $as_echo "$MAKE_PACKAGE_SUPPORTED" >&6; }
5047 else
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051
5052
5053 if test -x /sbin/sh; then
5054         STARTUP_SCRIPT_SHELL=/sbin/sh
5055
5056 else
5057         STARTUP_SCRIPT_SHELL=/bin/sh
5058
5059 fi
5060
5061 # System features
5062 # Check whether --enable-largefile was given.
5063 if test "${enable_largefile+set}" = set; then :
5064   enableval=$enable_largefile;
5065 fi
5066
5067 if test "$enable_largefile" != no; then
5068
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5070 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5071 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   ac_cv_sys_largefile_CC=no
5075      if test "$GCC" != yes; then
5076        ac_save_CC=$CC
5077        while :; do
5078          # IRIX 6.2 and later do not support large files by default,
5079          # so use the C compiler's -n32 option if that helps.
5080          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h.  */
5082 #include <sys/types.h>
5083  /* Check that off_t can represent 2**63 - 1 correctly.
5084     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5085     since some C++ compilers masquerading as C compilers
5086     incorrectly reject 9223372036854775807.  */
5087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5088   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5089                        && LARGE_OFF_T % 2147483647 == 1)
5090                       ? 1 : -1];
5091 int
5092 main ()
5093 {
5094
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099          if ac_fn_c_try_compile "$LINENO"; then :
5100   break
5101 fi
5102 rm -f core conftest.err conftest.$ac_objext
5103          CC="$CC -n32"
5104          if ac_fn_c_try_compile "$LINENO"; then :
5105   ac_cv_sys_largefile_CC=' -n32'; break
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext
5108          break
5109        done
5110        CC=$ac_save_CC
5111        rm -f conftest.$ac_ext
5112     fi
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5115 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5116   if test "$ac_cv_sys_largefile_CC" != no; then
5117     CC=$CC$ac_cv_sys_largefile_CC
5118   fi
5119
5120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5121 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5122 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   while :; do
5126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h.  */
5128 #include <sys/types.h>
5129  /* Check that off_t can represent 2**63 - 1 correctly.
5130     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5131     since some C++ compilers masquerading as C compilers
5132     incorrectly reject 9223372036854775807.  */
5133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5134   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5135                        && LARGE_OFF_T % 2147483647 == 1)
5136                       ? 1 : -1];
5137 int
5138 main ()
5139 {
5140
5141   ;
5142   return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"; then :
5146   ac_cv_sys_file_offset_bits=no; break
5147 fi
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h.  */
5151 #define _FILE_OFFSET_BITS 64
5152 #include <sys/types.h>
5153  /* Check that off_t can represent 2**63 - 1 correctly.
5154     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5155     since some C++ compilers masquerading as C compilers
5156     incorrectly reject 9223372036854775807.  */
5157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5158   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5159                        && LARGE_OFF_T % 2147483647 == 1)
5160                       ? 1 : -1];
5161 int
5162 main ()
5163 {
5164
5165   ;
5166   return 0;
5167 }
5168 _ACEOF
5169 if ac_fn_c_try_compile "$LINENO"; then :
5170   ac_cv_sys_file_offset_bits=64; break
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173   ac_cv_sys_file_offset_bits=unknown
5174   break
5175 done
5176 fi
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5178 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5179 case $ac_cv_sys_file_offset_bits in #(
5180   no | unknown) ;;
5181   *)
5182 cat >>confdefs.h <<_ACEOF
5183 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5184 _ACEOF
5185 ;;
5186 esac
5187 rm -rf conftest*
5188   if test $ac_cv_sys_file_offset_bits = unknown; then
5189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5190 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5191 if test "${ac_cv_sys_large_files+set}" = set; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   while :; do
5195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h.  */
5197 #include <sys/types.h>
5198  /* Check that off_t can represent 2**63 - 1 correctly.
5199     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200     since some C++ compilers masquerading as C compilers
5201     incorrectly reject 9223372036854775807.  */
5202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204                        && LARGE_OFF_T % 2147483647 == 1)
5205                       ? 1 : -1];
5206 int
5207 main ()
5208 {
5209
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"; then :
5215   ac_cv_sys_large_files=no; break
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h.  */
5220 #define _LARGE_FILES 1
5221 #include <sys/types.h>
5222  /* Check that off_t can represent 2**63 - 1 correctly.
5223     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5224     since some C++ compilers masquerading as C compilers
5225     incorrectly reject 9223372036854775807.  */
5226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5227   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5228                        && LARGE_OFF_T % 2147483647 == 1)
5229                       ? 1 : -1];
5230 int
5231 main ()
5232 {
5233
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"; then :
5239   ac_cv_sys_large_files=1; break
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242   ac_cv_sys_large_files=unknown
5243   break
5244 done
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5247 $as_echo "$ac_cv_sys_large_files" >&6; }
5248 case $ac_cv_sys_large_files in #(
5249   no | unknown) ;;
5250   *)
5251 cat >>confdefs.h <<_ACEOF
5252 #define _LARGE_FILES $ac_cv_sys_large_files
5253 _ACEOF
5254 ;;
5255 esac
5256 rm -rf conftest*
5257   fi
5258 fi
5259
5260
5261 if test -z "$AR" ; then
5262         as_fn_error $? "*** 'ar' missing, please install or fix your \$PATH ***" "$LINENO" 5
5263 fi
5264
5265 # Use LOGIN_PROGRAM from environment if possible
5266 if test ! -z "$LOGIN_PROGRAM" ; then
5267
5268 cat >>confdefs.h <<_ACEOF
5269 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM"
5270 _ACEOF
5271
5272 else
5273         # Search for login
5274         # Extract the first word of "login", so it can be a program name with args.
5275 set dummy login; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_path_LOGIN_PROGRAM_FALLBACK+set}" = set; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   case $LOGIN_PROGRAM_FALLBACK in
5282   [\\/]* | ?:[\\/]*)
5283   ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path.
5284   ;;
5285   *)
5286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289   IFS=$as_save_IFS
5290   test -z "$as_dir" && as_dir=.
5291     for ac_exec_ext in '' $ac_executable_extensions; do
5292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293     ac_cv_path_LOGIN_PROGRAM_FALLBACK="$as_dir/$ac_word$ac_exec_ext"
5294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295     break 2
5296   fi
5297 done
5298   done
5299 IFS=$as_save_IFS
5300
5301   ;;
5302 esac
5303 fi
5304 LOGIN_PROGRAM_FALLBACK=$ac_cv_path_LOGIN_PROGRAM_FALLBACK
5305 if test -n "$LOGIN_PROGRAM_FALLBACK"; then
5306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGIN_PROGRAM_FALLBACK" >&5
5307 $as_echo "$LOGIN_PROGRAM_FALLBACK" >&6; }
5308 else
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5311 fi
5312
5313
5314         if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then
5315                 cat >>confdefs.h <<_ACEOF
5316 #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK"
5317 _ACEOF
5318
5319         fi
5320 fi
5321
5322 # Extract the first word of "passwd", so it can be a program name with args.
5323 set dummy passwd; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_PATH_PASSWD_PROG+set}" = set; then :
5327   $as_echo_n "(cached) " >&6
5328 else
5329   case $PATH_PASSWD_PROG in
5330   [\\/]* | ?:[\\/]*)
5331   ac_cv_path_PATH_PASSWD_PROG="$PATH_PASSWD_PROG" # Let the user override the test with a path.
5332   ;;
5333   *)
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_path_PATH_PASSWD_PROG="$as_dir/$ac_word$ac_exec_ext"
5342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346   done
5347 IFS=$as_save_IFS
5348
5349   ;;
5350 esac
5351 fi
5352 PATH_PASSWD_PROG=$ac_cv_path_PATH_PASSWD_PROG
5353 if test -n "$PATH_PASSWD_PROG"; then
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PASSWD_PROG" >&5
5355 $as_echo "$PATH_PASSWD_PROG" >&6; }
5356 else
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 if test ! -z "$PATH_PASSWD_PROG" ; then
5363
5364 cat >>confdefs.h <<_ACEOF
5365 #define _PATH_PASSWD_PROG "$PATH_PASSWD_PROG"
5366 _ACEOF
5367
5368 fi
5369
5370 if test -z "$LD" ; then
5371         LD=$CC
5372 fi
5373
5374
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5376 $as_echo_n "checking for inline... " >&6; }
5377 if test "${ac_cv_c_inline+set}" = set; then :
5378   $as_echo_n "(cached) " >&6
5379 else
5380   ac_cv_c_inline=no
5381 for ac_kw in inline __inline__ __inline; do
5382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h.  */
5384 #ifndef __cplusplus
5385 typedef int foo_t;
5386 static $ac_kw foo_t static_foo () {return 0; }
5387 $ac_kw foo_t foo () {return 0; }
5388 #endif
5389
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392   ac_cv_c_inline=$ac_kw
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395   test "$ac_cv_c_inline" != no && break
5396 done
5397
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5400 $as_echo "$ac_cv_c_inline" >&6; }
5401
5402 case $ac_cv_c_inline in
5403   inline | yes) ;;
5404   *)
5405     case $ac_cv_c_inline in
5406       no) ac_val=;;
5407       *) ac_val=$ac_cv_c_inline;;
5408     esac
5409     cat >>confdefs.h <<_ACEOF
5410 #ifndef __cplusplus
5411 #define inline $ac_val
5412 #endif
5413 _ACEOF
5414     ;;
5415 esac
5416
5417
5418 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5419 "
5420 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5421   have_llong_max=1
5422 fi
5423
5424
5425 use_stack_protector=1
5426
5427 # Check whether --with-stackprotect was given.
5428 if test "${with_stackprotect+set}" = set; then :
5429   withval=$with_stackprotect;
5430     if test "x$withval" = "xno"; then
5431         use_stack_protector=0
5432     fi
5433 fi
5434
5435
5436 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
5437         CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wuninitialized"
5438         GCC_VER=`$CC -v 2>&1 | $AWK '/gcc version /{print $3}'`
5439         case $GCC_VER in
5440                 1.*) no_attrib_nonnull=1 ;;
5441                 2.8* | 2.9*)
5442                      CFLAGS="$CFLAGS -Wsign-compare"
5443                      no_attrib_nonnull=1
5444                      ;;
5445                 2.*) no_attrib_nonnull=1 ;;
5446                 3.*) CFLAGS="$CFLAGS -Wsign-compare -Wformat-security" ;;
5447                 4.*) CFLAGS="$CFLAGS -Wsign-compare -Wno-pointer-sign -Wformat-security" ;;
5448                 *) ;;
5449         esac
5450
5451         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-builtin-memset" >&5
5452 $as_echo_n "checking if $CC accepts -fno-builtin-memset... " >&6; }
5453         saved_CFLAGS="$CFLAGS"
5454         CFLAGS="$CFLAGS -fno-builtin-memset"
5455         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h.  */
5457
5458 #include <string.h>
5459 int main(void){char b[10]; memset(b, 0, sizeof(b));}
5460
5461 _ACEOF
5462 if ac_fn_c_try_link "$LINENO"; then :
5463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464 $as_echo "yes" >&6; }
5465 else
5466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468                   CFLAGS="$saved_CFLAGS"
5469
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext \
5472     conftest$ac_exeext conftest.$ac_ext
5473
5474         # -fstack-protector-all doesn't always work for some GCC versions
5475         # and/or platforms, so we test if we can.  If it's not supported
5476         # on a given platform gcc will emit a warning so we use -Werror.
5477         if test "x$use_stack_protector" = "x1"; then
5478             for t in -fstack-protector-all -fstack-protector; do
5479                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $t" >&5
5480 $as_echo_n "checking if $CC supports $t... " >&6; }
5481                 saved_CFLAGS="$CFLAGS"
5482                 saved_LDFLAGS="$LDFLAGS"
5483                 CFLAGS="$CFLAGS $t -Werror"
5484                 LDFLAGS="$LDFLAGS $t -Werror"
5485                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h.  */
5487
5488 #include <stdio.h>
5489 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5490
5491 _ACEOF
5492 if ac_fn_c_try_link "$LINENO"; then :
5493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5494 $as_echo "yes" >&6; }
5495                       CFLAGS="$saved_CFLAGS $t"
5496                       LDFLAGS="$saved_LDFLAGS $t"
5497                       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $t works" >&5
5498 $as_echo_n "checking if $t works... " >&6; }
5499                       if test "$cross_compiling" = yes; then :
5500    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: cannot test" >&5
5501 $as_echo "$as_me: WARNING: cross compiling: cannot test" >&2;}
5502                           break
5503
5504 else
5505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h.  */
5507
5508 #include <stdio.h>
5509 int main(void){char x[256]; snprintf(x, sizeof(x), "XXX"); return 0;}
5510
5511 _ACEOF
5512 if ac_fn_c_try_run "$LINENO"; then :
5513    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515                           break
5516 else
5517    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5521   conftest.$ac_objext conftest.beam conftest.$ac_ext
5522 fi
5523
5524
5525 else
5526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext \
5531     conftest$ac_exeext conftest.$ac_ext
5532                 CFLAGS="$saved_CFLAGS"
5533                 LDFLAGS="$saved_LDFLAGS"
5534             done
5535         fi
5536
5537         if test -z "$have_llong_max"; then
5538                 # retry LLONG_MAX with -std=gnu99, needed on some Linuxes
5539                 unset ac_cv_have_decl_LLONG_MAX
5540                 saved_CFLAGS="$CFLAGS"
5541                 CFLAGS="$CFLAGS -std=gnu99"
5542                 ac_fn_c_check_decl "$LINENO" "LLONG_MAX" "ac_cv_have_decl_LLONG_MAX" "#include <limits.h>
5543
5544 "
5545 if test "x$ac_cv_have_decl_LLONG_MAX" = x""yes; then :
5546   have_llong_max=1
5547 else
5548   CFLAGS="$saved_CFLAGS"
5549 fi
5550
5551         fi
5552 fi
5553
5554 if test "x$no_attrib_nonnull" != "x1" ; then
5555
5556 $as_echo "#define HAVE_ATTRIBUTE__NONNULL__ 1" >>confdefs.h
5557
5558 fi
5559
5560
5561 # Check whether --with-rpath was given.
5562 if test "${with_rpath+set}" = set; then :
5563   withval=$with_rpath;
5564                 if test "x$withval" = "xno" ; then
5565                         need_dash_r=""
5566                 fi
5567                 if test "x$withval" = "xyes" ; then
5568                         need_dash_r=1
5569                 fi
5570
5571
5572 fi
5573
5574
5575 # Allow user to specify flags
5576
5577 # Check whether --with-cflags was given.
5578 if test "${with_cflags+set}" = set; then :
5579   withval=$with_cflags;
5580                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5581                     test "x${withval}" != "xyes"; then
5582                         CFLAGS="$CFLAGS $withval"
5583                 fi
5584
5585
5586 fi
5587
5588
5589 # Check whether --with-cppflags was given.
5590 if test "${with_cppflags+set}" = set; then :
5591   withval=$with_cppflags;
5592                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5593                     test "x${withval}" != "xyes"; then
5594                         CPPFLAGS="$CPPFLAGS $withval"
5595                 fi
5596
5597
5598 fi
5599
5600
5601 # Check whether --with-ldflags was given.
5602 if test "${with_ldflags+set}" = set; then :
5603   withval=$with_ldflags;
5604                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5605                     test "x${withval}" != "xyes"; then
5606                         LDFLAGS="$LDFLAGS $withval"
5607                 fi
5608
5609
5610 fi
5611
5612
5613 # Check whether --with-libs was given.
5614 if test "${with_libs+set}" = set; then :
5615   withval=$with_libs;
5616                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
5617                     test "x${withval}" != "xyes"; then
5618                         LIBS="$LIBS $withval"
5619                 fi
5620
5621
5622 fi
5623
5624
5625 # Check whether --with-Werror was given.
5626 if test "${with_Werror+set}" = set; then :
5627   withval=$with_Werror;
5628                 if test -n "$withval"  &&  test "x$withval" != "xno"; then
5629                         werror_flags="-Werror"
5630                         if test "x${withval}" != "xyes"; then
5631                                 werror_flags="$withval"
5632                         fi
5633                 fi
5634
5635
5636 fi
5637
5638
5639 for ac_header in \
5640         bstring.h \
5641         crypt.h \
5642         crypto/sha2.h \
5643         dirent.h \
5644         endian.h \
5645         features.h \
5646         fcntl.h \
5647         floatingpoint.h \
5648         getopt.h \
5649         glob.h \
5650         ia.h \
5651         iaf.h \
5652         limits.h \
5653         login.h \
5654         maillock.h \
5655         ndir.h \
5656         net/if_tun.h \
5657         netdb.h \
5658         netgroup.h \
5659         pam/pam_appl.h \
5660         paths.h \
5661         poll.h \
5662         pty.h \
5663         readpassphrase.h \
5664         rpc/types.h \
5665         security/pam_appl.h \
5666         sha2.h \
5667         shadow.h \
5668         stddef.h \
5669         stdint.h \
5670         string.h \
5671         strings.h \
5672         sys/audit.h \
5673         sys/bitypes.h \
5674         sys/bsdtty.h \
5675         sys/cdefs.h \
5676         sys/dir.h \
5677         sys/mman.h \
5678         sys/ndir.h \
5679         sys/poll.h \
5680         sys/prctl.h \
5681         sys/pstat.h \
5682         sys/select.h \
5683         sys/stat.h \
5684         sys/stream.h \
5685         sys/stropts.h \
5686         sys/strtio.h \
5687         sys/statvfs.h \
5688         sys/sysmacros.h \
5689         sys/time.h \
5690         sys/timers.h \
5691         sys/un.h \
5692         time.h \
5693         tmpdir.h \
5694         ttyent.h \
5695         ucred.h \
5696         unistd.h \
5697         usersec.h \
5698         util.h \
5699         utime.h \
5700         utmp.h \
5701         utmpx.h \
5702         vis.h \
5703
5704 do :
5705   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5708   cat >>confdefs.h <<_ACEOF
5709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5710 _ACEOF
5711
5712 fi
5713
5714 done
5715
5716
5717 # lastlog.h requires sys/time.h to be included first on Solaris
5718 for ac_header in lastlog.h
5719 do :
5720   ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "
5721 #ifdef HAVE_SYS_TIME_H
5722 # include <sys/time.h>
5723 #endif
5724
5725 "
5726 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
5727   cat >>confdefs.h <<_ACEOF
5728 #define HAVE_LASTLOG_H 1
5729 _ACEOF
5730
5731 fi
5732
5733 done
5734
5735
5736 # sys/ptms.h requires sys/stream.h to be included first on Solaris
5737 for ac_header in sys/ptms.h
5738 do :
5739   ac_fn_c_check_header_compile "$LINENO" "sys/ptms.h" "ac_cv_header_sys_ptms_h" "
5740 #ifdef HAVE_SYS_STREAM_H
5741 # include <sys/stream.h>
5742 #endif
5743
5744 "
5745 if test "x$ac_cv_header_sys_ptms_h" = x""yes; then :
5746   cat >>confdefs.h <<_ACEOF
5747 #define HAVE_SYS_PTMS_H 1
5748 _ACEOF
5749
5750 fi
5751
5752 done
5753
5754
5755 # login_cap.h requires sys/types.h on NetBSD
5756 for ac_header in login_cap.h
5757 do :
5758   ac_fn_c_check_header_compile "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "
5759 #include <sys/types.h>
5760
5761 "
5762 if test "x$ac_cv_header_login_cap_h" = x""yes; then :
5763   cat >>confdefs.h <<_ACEOF
5764 #define HAVE_LOGIN_CAP_H 1
5765 _ACEOF
5766
5767 fi
5768
5769 done
5770
5771
5772 # older BSDs need sys/param.h before sys/mount.h
5773 for ac_header in sys/mount.h
5774 do :
5775   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
5776 #include <sys/param.h>
5777
5778 "
5779 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5780   cat >>confdefs.h <<_ACEOF
5781 #define HAVE_SYS_MOUNT_H 1
5782 _ACEOF
5783
5784 fi
5785
5786 done
5787
5788
5789 # Messages for features tested for in target-specific section
5790 SIA_MSG="no"
5791 SPC_MSG="no"
5792
5793 # Check for some target-specific stuff
5794 case "$host" in
5795 *-*-aix*)
5796         # Some versions of VAC won't allow macro redefinitions at
5797         # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
5798         # particularly with older versions of vac or xlc.
5799         # It also throws errors about null macro argments, but these are
5800         # not fatal.
5801         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler allows macro redefinitions" >&5
5802 $as_echo_n "checking if compiler allows macro redefinitions... " >&6; }
5803         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h.  */
5805
5806 #define testmacro foo
5807 #define testmacro bar
5808 int main(void) { exit(0); }
5809
5810 _ACEOF
5811 if ac_fn_c_try_compile "$LINENO"; then :
5812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5813 $as_echo "yes" >&6; }
5814 else
5815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817               CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
5818               LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
5819               CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5820               CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
5821
5822
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825
5826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to specify blibpath for linker ($LD)" >&5
5827 $as_echo_n "checking how to specify blibpath for linker ($LD)... " >&6; }
5828         if (test -z "$blibpath"); then
5829                 blibpath="/usr/lib:/lib"
5830         fi
5831         saved_LDFLAGS="$LDFLAGS"
5832         if test "$GCC" = "yes"; then
5833                 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
5834         else
5835                 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
5836         fi
5837         for tryflags in $flags ;do
5838                 if (test -z "$blibflags"); then
5839                         LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
5840                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h.  */
5842
5843 int
5844 main ()
5845 {
5846
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"; then :
5852   blibflags=$tryflags
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext \
5855     conftest$ac_exeext conftest.$ac_ext
5856                 fi
5857         done
5858         if (test -z "$blibflags"); then
5859                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5860 $as_echo "not found" >&6; }
5861                 as_fn_error $? "*** must be able to specify blibpath on AIX - check config.log" "$LINENO" 5
5862         else
5863                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $blibflags" >&5
5864 $as_echo "$blibflags" >&6; }
5865         fi
5866         LDFLAGS="$saved_LDFLAGS"
5867                 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
5868 if test "x$ac_cv_func_authenticate" = x""yes; then :
5869
5870 $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
5871
5872 else
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authenticate in -ls" >&5
5874 $as_echo_n "checking for authenticate in -ls... " >&6; }
5875 if test "${ac_cv_lib_s_authenticate+set}" = set; then :
5876   $as_echo_n "(cached) " >&6
5877 else
5878   ac_check_lib_save_LIBS=$LIBS
5879 LIBS="-ls  $LIBS"
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h.  */
5882
5883 /* Override any GCC internal prototype to avoid an error.
5884    Use char because int might match the return type of a GCC
5885    builtin and then its argument prototype would still apply.  */
5886 #ifdef __cplusplus
5887 extern "C"
5888 #endif
5889 char authenticate ();
5890 int
5891 main ()
5892 {
5893 return authenticate ();
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"; then :
5899   ac_cv_lib_s_authenticate=yes
5900 else
5901   ac_cv_lib_s_authenticate=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext \
5904     conftest$ac_exeext conftest.$ac_ext
5905 LIBS=$ac_check_lib_save_LIBS
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_authenticate" >&5
5908 $as_echo "$ac_cv_lib_s_authenticate" >&6; }
5909 if test "x$ac_cv_lib_s_authenticate" = x""yes; then :
5910    $as_echo "#define WITH_AIXAUTHENTICATE 1" >>confdefs.h
5911
5912                                 LIBS="$LIBS -ls"
5913
5914 fi
5915
5916
5917 fi
5918
5919                 ac_fn_c_check_decl "$LINENO" "authenticate" "ac_cv_have_decl_authenticate" "#include <usersec.h>
5920 "
5921 if test "x$ac_cv_have_decl_authenticate" = x""yes; then :
5922   ac_have_decl=1
5923 else
5924   ac_have_decl=0
5925 fi
5926
5927 cat >>confdefs.h <<_ACEOF
5928 #define HAVE_DECL_AUTHENTICATE $ac_have_decl
5929 _ACEOF
5930 ac_fn_c_check_decl "$LINENO" "loginrestrictions" "ac_cv_have_decl_loginrestrictions" "#include <usersec.h>
5931 "
5932 if test "x$ac_cv_have_decl_loginrestrictions" = x""yes; then :
5933   ac_have_decl=1
5934 else
5935   ac_have_decl=0
5936 fi
5937
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_DECL_LOGINRESTRICTIONS $ac_have_decl
5940 _ACEOF
5941 ac_fn_c_check_decl "$LINENO" "loginsuccess" "ac_cv_have_decl_loginsuccess" "#include <usersec.h>
5942 "
5943 if test "x$ac_cv_have_decl_loginsuccess" = x""yes; then :
5944   ac_have_decl=1
5945 else
5946   ac_have_decl=0
5947 fi
5948
5949 cat >>confdefs.h <<_ACEOF
5950 #define HAVE_DECL_LOGINSUCCESS $ac_have_decl
5951 _ACEOF
5952 ac_fn_c_check_decl "$LINENO" "passwdexpired" "ac_cv_have_decl_passwdexpired" "#include <usersec.h>
5953 "
5954 if test "x$ac_cv_have_decl_passwdexpired" = x""yes; then :
5955   ac_have_decl=1
5956 else
5957   ac_have_decl=0
5958 fi
5959
5960 cat >>confdefs.h <<_ACEOF
5961 #define HAVE_DECL_PASSWDEXPIRED $ac_have_decl
5962 _ACEOF
5963 ac_fn_c_check_decl "$LINENO" "setauthdb" "ac_cv_have_decl_setauthdb" "#include <usersec.h>
5964 "
5965 if test "x$ac_cv_have_decl_setauthdb" = x""yes; then :
5966   ac_have_decl=1
5967 else
5968   ac_have_decl=0
5969 fi
5970
5971 cat >>confdefs.h <<_ACEOF
5972 #define HAVE_DECL_SETAUTHDB $ac_have_decl
5973 _ACEOF
5974
5975                 ac_fn_c_check_decl "$LINENO" "loginfailed" "ac_cv_have_decl_loginfailed" "#include <usersec.h>
5976
5977 "
5978 if test "x$ac_cv_have_decl_loginfailed" = x""yes; then :
5979   ac_have_decl=1
5980 else
5981   ac_have_decl=0
5982 fi
5983
5984 cat >>confdefs.h <<_ACEOF
5985 #define HAVE_DECL_LOGINFAILED $ac_have_decl
5986 _ACEOF
5987 if test $ac_have_decl = 1; then :
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loginfailed takes 4 arguments" >&5
5989 $as_echo_n "checking if loginfailed takes 4 arguments... " >&6; }
5990                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h.  */
5992 #include <usersec.h>
5993 int
5994 main ()
5995 {
5996 (void)loginfailed("user","host","tty",0);
5997   ;
5998   return 0;
5999 }
6000 _ACEOF
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6003 $as_echo "yes" >&6; }
6004
6005 $as_echo "#define AIX_LOGINFAILED_4ARG 1" >>confdefs.h
6006
6007 else
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014
6015         for ac_func in getgrset setauthdb
6016 do :
6017   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6019 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6020   cat >>confdefs.h <<_ACEOF
6021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6022 _ACEOF
6023
6024 fi
6025 done
6026
6027         ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
6028               #include <fcntl.h>
6029
6030 "
6031 if test "x$ac_cv_have_decl_F_CLOSEM" = x""yes; then :
6032
6033 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
6034
6035 fi
6036
6037         check_for_aix_broken_getaddrinfo=1
6038
6039 $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6040
6041
6042 $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6043
6044
6045 $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6046
6047
6048 $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6049
6050
6051 $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
6052
6053
6054 $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6055
6056
6057 $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6058
6059
6060 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6061
6062
6063 $as_echo "#define PTY_ZEROREAD 1" >>confdefs.h
6064
6065         ;;
6066 *-*-cygwin*)
6067         check_for_libcrypt_later=1
6068         LIBS="$LIBS /usr/lib/textreadmode.o"
6069
6070 $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
6071
6072
6073 $as_echo "#define USE_PIPES 1" >>confdefs.h
6074
6075
6076 $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6077
6078
6079 $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
6080
6081
6082 $as_echo "#define NO_IPPORT_RESERVED_CONCEPT 1" >>confdefs.h
6083
6084
6085 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6086
6087
6088 $as_echo "#define SSH_IOBUFSZ 65536" >>confdefs.h
6089
6090         ;;
6091 *-*-dgux*)
6092
6093 $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6094
6095         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6096
6097         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6098
6099         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6100
6101         ;;
6102 *-*-darwin*)
6103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have working getaddrinfo" >&5
6104 $as_echo_n "checking if we have working getaddrinfo... " >&6; }
6105         if test "$cross_compiling" = yes; then :
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: assume it is working" >&5
6107 $as_echo "assume it is working" >&6; }
6108 else
6109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h.  */
6111 #include <mach-o/dyld.h>
6112 main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
6113                 exit(0);
6114         else
6115                 exit(1);
6116 }
6117 _ACEOF
6118 if ac_fn_c_try_run "$LINENO"; then :
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
6120 $as_echo "working" >&6; }
6121 else
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy" >&5
6123 $as_echo "buggy" >&6; }
6124
6125 $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
6126
6127 fi
6128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6129   conftest.$ac_objext conftest.beam conftest.$ac_ext
6130 fi
6131
6132         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6133
6134         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6135
6136         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6137
6138
6139 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6140
6141
6142 cat >>confdefs.h <<_ACEOF
6143 #define BIND_8_COMPAT 1
6144 _ACEOF
6145
6146
6147 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6148
6149
6150 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6151
6152
6153 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6154
6155         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the Security Authorization Session API" >&5
6156 $as_echo_n "checking if we have the Security Authorization Session API... " >&6; }
6157         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h.  */
6159 #include <Security/AuthSession.h>
6160 int
6161 main ()
6162 {
6163 SessionCreate(0, 0);
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_compile "$LINENO"; then :
6169   ac_cv_use_security_session_api="yes"
6170
6171 $as_echo "#define USE_SECURITY_SESSION_API 1" >>confdefs.h
6172
6173                  LIBS="$LIBS -framework Security"
6174                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6175 $as_echo "yes" >&6; }
6176 else
6177   ac_cv_use_security_session_api="no"
6178                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have an in-memory credentials cache" >&5
6183 $as_echo_n "checking if we have an in-memory credentials cache... " >&6; }
6184         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h.  */
6186 #include <Kerberos/Kerberos.h>
6187 int
6188 main ()
6189 {
6190 cc_context_t c;
6191                  (void) cc_initialize (&c, 0, NULL, NULL);
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197
6198 $as_echo "#define USE_CCAPI 1" >>confdefs.h
6199
6200                  LIBS="$LIBS -framework Security"
6201                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 $as_echo "yes" >&6; }
6203                  if test "x$ac_cv_use_security_session_api" = "xno"; then
6204                         as_fn_error $? "*** Need a security framework to use the credentials cache API ***" "$LINENO" 5
6205                 fi
6206 else
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209
6210 fi
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212
6213         ac_fn_c_check_decl "$LINENO" "AU_IPv4" "ac_cv_have_decl_AU_IPv4" "$ac_includes_default"
6214 if test "x$ac_cv_have_decl_AU_IPv4" = x""yes; then :
6215
6216 else
6217
6218 $as_echo "#define AU_IPv4 0" >>confdefs.h
6219
6220             #include <bsm/audit.h>
6221
6222 $as_echo "#define LASTLOG_WRITE_PUTUTXLINE 1" >>confdefs.h
6223
6224
6225 fi
6226
6227         ;;
6228 *-*-dragonfly*)
6229         SSHDLIBS="$SSHDLIBS -lcrypt"
6230         ;;
6231 *-*-hpux*)
6232         # first we define all of the options common to all HP-UX releases
6233         CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
6234         IPADDR_IN_DISPLAY=yes
6235         $as_echo "#define USE_PIPES 1" >>confdefs.h
6236
6237
6238 $as_echo "#define LOGIN_NO_ENDOPT 1" >>confdefs.h
6239
6240         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6241
6242
6243 $as_echo "#define LOCKED_PASSWD_STRING \"*\"" >>confdefs.h
6244
6245         $as_echo "#define SPT_TYPE SPT_PSTAT" >>confdefs.h
6246
6247         MAIL="/var/mail/username"
6248         LIBS="$LIBS -lsec"
6249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_error in -lxnet" >&5
6250 $as_echo_n "checking for t_error in -lxnet... " >&6; }
6251 if test "${ac_cv_lib_xnet_t_error+set}" = set; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   ac_check_lib_save_LIBS=$LIBS
6255 LIBS="-lxnet  $LIBS"
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h.  */
6258
6259 /* Override any GCC internal prototype to avoid an error.
6260    Use char because int might match the return type of a GCC
6261    builtin and then its argument prototype would still apply.  */
6262 #ifdef __cplusplus
6263 extern "C"
6264 #endif
6265 char t_error ();
6266 int
6267 main ()
6268 {
6269 return t_error ();
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"; then :
6275   ac_cv_lib_xnet_t_error=yes
6276 else
6277   ac_cv_lib_xnet_t_error=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext \
6280     conftest$ac_exeext conftest.$ac_ext
6281 LIBS=$ac_check_lib_save_LIBS
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_t_error" >&5
6284 $as_echo "$ac_cv_lib_xnet_t_error" >&6; }
6285 if test "x$ac_cv_lib_xnet_t_error" = x""yes; then :
6286   cat >>confdefs.h <<_ACEOF
6287 #define HAVE_LIBXNET 1
6288 _ACEOF
6289
6290   LIBS="-lxnet $LIBS"
6291
6292 else
6293   as_fn_error $? "*** -lxnet needed on HP-UX - check config.log ***" "$LINENO" 5
6294 fi
6295
6296
6297         # next, we define all of the options specific to major releases
6298         case "$host" in
6299         *-*-hpux10*)
6300                 if test -z "$GCC"; then
6301                         CFLAGS="$CFLAGS -Ae"
6302                 fi
6303                 ;;
6304         *-*-hpux11*)
6305
6306 $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6307
6308
6309 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6310
6311
6312 $as_echo "#define USE_BTMP 1" >>confdefs.h
6313
6314                 check_for_hpux_broken_getaddrinfo=1
6315                 check_for_conflicting_getspnam=1
6316                 ;;
6317         esac
6318
6319         # lastly, we define options specific to minor releases
6320         case "$host" in
6321         *-*-hpux10.26)
6322
6323 $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6324
6325                 disable_ptmx_check=yes
6326                 LIBS="$LIBS -lsecpw"
6327                 ;;
6328         esac
6329         ;;
6330 *-*-irix5*)
6331         PATH="$PATH:/usr/etc"
6332
6333 $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6334
6335         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6336
6337         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6338
6339         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6340
6341
6342 $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6343
6344         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6345
6346         ;;
6347 *-*-irix6*)
6348         PATH="$PATH:/usr/etc"
6349
6350 $as_echo "#define WITH_IRIX_ARRAY 1" >>confdefs.h
6351
6352
6353 $as_echo "#define WITH_IRIX_PROJECT 1" >>confdefs.h
6354
6355
6356 $as_echo "#define WITH_IRIX_AUDIT 1" >>confdefs.h
6357
6358         ac_fn_c_check_func "$LINENO" "jlimit_startjob" "ac_cv_func_jlimit_startjob"
6359 if test "x$ac_cv_func_jlimit_startjob" = x""yes; then :
6360
6361 $as_echo "#define WITH_IRIX_JOBS 1" >>confdefs.h
6362
6363 fi
6364
6365         $as_echo "#define BROKEN_INET_NTOA 1" >>confdefs.h
6366
6367         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6368
6369         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6370
6371         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6372
6373
6374 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6375
6376         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6377
6378         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6379
6380         ;;
6381 *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6382         check_for_libcrypt_later=1
6383         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6384
6385         $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6386
6387         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6388
6389
6390 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6391
6392
6393 $as_echo "#define USE_BTMP 1" >>confdefs.h
6394
6395         ;;
6396 *-*-linux*)
6397         no_dev_ptmx=1
6398         check_for_libcrypt_later=1
6399         check_for_openpty_ctty_bug=1
6400
6401 $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6402
6403
6404 $as_echo "#define LOCKED_PASSWD_PREFIX \"!\"" >>confdefs.h
6405
6406         $as_echo "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h
6407
6408
6409 $as_echo "#define LINK_OPNOTSUPP_ERRNO EPERM" >>confdefs.h
6410
6411
6412 $as_echo "#define _PATH_BTMP \"/var/log/btmp\"" >>confdefs.h
6413
6414         $as_echo "#define USE_BTMP 1" >>confdefs.h
6415
6416         inet6_default_4in6=yes
6417         case `uname -r` in
6418         1.*|2.0.*)
6419
6420 $as_echo "#define BROKEN_CMSG_TYPE 1" >>confdefs.h
6421
6422                 ;;
6423         esac
6424         # tun(4) forwarding compat code
6425         for ac_header in linux/if_tun.h
6426 do :
6427   ac_fn_c_check_header_mongrel "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
6428 if test "x$ac_cv_header_linux_if_tun_h" = x""yes; then :
6429   cat >>confdefs.h <<_ACEOF
6430 #define HAVE_LINUX_IF_TUN_H 1
6431 _ACEOF
6432
6433 fi
6434
6435 done
6436
6437         if test "x$ac_cv_header_linux_if_tun_h" = "xyes" ; then
6438
6439 $as_echo "#define SSH_TUN_LINUX 1" >>confdefs.h
6440
6441
6442 $as_echo "#define SSH_TUN_COMPAT_AF 1" >>confdefs.h
6443
6444
6445 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6446
6447         fi
6448
6449 $as_echo "#define OOM_ADJUST 1" >>confdefs.h
6450
6451         ;;
6452 mips-sony-bsd|mips-sony-newsos4)
6453
6454 $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
6455
6456         SONY=1
6457         ;;
6458 *-*-netbsd*)
6459         check_for_libcrypt_before=1
6460         if test "x$withval" != "xno" ; then
6461                 need_dash_r=1
6462         fi
6463
6464 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6465
6466         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6467 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6468
6469 else
6470
6471 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6472
6473 fi
6474
6475
6476
6477 $as_echo "#define SSH_TUN_PREPEND_AF 1" >>confdefs.h
6478
6479         ;;
6480 *-*-freebsd*)
6481         check_for_libcrypt_later=1
6482
6483 $as_echo "#define LOCKED_PASSWD_PREFIX \"*LOCKED*\"" >>confdefs.h
6484
6485
6486 $as_echo "#define SSH_TUN_FREEBSD 1" >>confdefs.h
6487
6488         ac_fn_c_check_header_mongrel "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
6489 if test "x$ac_cv_header_net_if_tap_h" = x""yes; then :
6490
6491 else
6492
6493 $as_echo "#define SSH_TUN_NO_L2 1" >>confdefs.h
6494
6495 fi
6496
6497
6498
6499 $as_echo "#define BROKEN_GLOB 1" >>confdefs.h
6500
6501         ;;
6502 *-*-bsdi*)
6503         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6504
6505         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6506
6507         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6508
6509         ;;
6510 *-next-*)
6511         conf_lastlog_location="/usr/adm/lastlog"
6512         conf_utmp_location=/etc/utmp
6513         conf_wtmp_location=/usr/adm/wtmp
6514         MAIL=/usr/spool/mail
6515
6516 $as_echo "#define HAVE_NEXT 1" >>confdefs.h
6517
6518         $as_echo "#define BROKEN_REALPATH 1" >>confdefs.h
6519
6520         $as_echo "#define USE_PIPES 1" >>confdefs.h
6521
6522
6523 $as_echo "#define BROKEN_SAVED_UIDS 1" >>confdefs.h
6524
6525         ;;
6526 *-*-openbsd*)
6527
6528 $as_echo "#define HAVE_ATTRIBUTE__SENTINEL__ 1" >>confdefs.h
6529
6530
6531 $as_echo "#define HAVE_ATTRIBUTE__BOUNDED__ 1" >>confdefs.h
6532
6533
6534 $as_echo "#define SSH_TUN_OPENBSD 1" >>confdefs.h
6535
6536
6537 $as_echo "#define SYSLOG_R_SAFE_IN_SIGHAND 1" >>confdefs.h
6538
6539         ;;
6540 *-*-solaris*)
6541         if test "x$withval" != "xno" ; then
6542                 need_dash_r=1
6543         fi
6544         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6545
6546         $as_echo "#define LOGIN_NEEDS_UTMPX 1" >>confdefs.h
6547
6548
6549 $as_echo "#define LOGIN_NEEDS_TERM 1" >>confdefs.h
6550
6551         $as_echo "#define PAM_TTY_KLUDGE 1" >>confdefs.h
6552
6553
6554 $as_echo "#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1" >>confdefs.h
6555
6556         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6557
6558         # Pushing STREAMS modules will cause sshd to acquire a controlling tty.
6559
6560 $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6561
6562
6563 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6564
6565
6566 $as_echo "#define BROKEN_TCGETATTR_ICANON 1" >>confdefs.h
6567
6568         external_path_file=/etc/default/login
6569         # hardwire lastlog location (can't detect it on some versions)
6570         conf_lastlog_location="/var/adm/lastlog"
6571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete utmp and wtmp in solaris2.x" >&5
6572 $as_echo_n "checking for obsolete utmp and wtmp in solaris2.x... " >&6; }
6573         sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'`
6574         if test "$sol2ver" -ge 8; then
6575                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576 $as_echo "yes" >&6; }
6577                 $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
6578
6579
6580 $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
6581
6582         else
6583                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6585         fi
6586
6587 # Check whether --with-solaris-contracts was given.
6588 if test "${with_solaris_contracts+set}" = set; then :
6589   withval=$with_solaris_contracts;
6590                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ct_tmpl_activate in -lcontract" >&5
6591 $as_echo_n "checking for ct_tmpl_activate in -lcontract... " >&6; }
6592 if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then :
6593   $as_echo_n "(cached) " >&6
6594 else
6595   ac_check_lib_save_LIBS=$LIBS
6596 LIBS="-lcontract  $LIBS"
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h.  */
6599
6600 /* Override any GCC internal prototype to avoid an error.
6601    Use char because int might match the return type of a GCC
6602    builtin and then its argument prototype would still apply.  */
6603 #ifdef __cplusplus
6604 extern "C"
6605 #endif
6606 char ct_tmpl_activate ();
6607 int
6608 main ()
6609 {
6610 return ct_tmpl_activate ();
6611   ;
6612   return 0;
6613 }
6614 _ACEOF
6615 if ac_fn_c_try_link "$LINENO"; then :
6616   ac_cv_lib_contract_ct_tmpl_activate=yes
6617 else
6618   ac_cv_lib_contract_ct_tmpl_activate=no
6619 fi
6620 rm -f core conftest.err conftest.$ac_objext \
6621     conftest$ac_exeext conftest.$ac_ext
6622 LIBS=$ac_check_lib_save_LIBS
6623 fi
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
6625 $as_echo "$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
6626 if test "x$ac_cv_lib_contract_ct_tmpl_activate" = x""yes; then :
6627
6628 $as_echo "#define USE_SOLARIS_PROCESS_CONTRACTS 1" >>confdefs.h
6629
6630                           SSHDLIBS="$SSHDLIBS -lcontract"
6631
6632                           SPC_MSG="yes"
6633 fi
6634
6635
6636 fi
6637
6638         ;;
6639 *-*-sunos4*)
6640         CPPFLAGS="$CPPFLAGS -DSUNOS4"
6641         for ac_func in getpwanam
6642 do :
6643   ac_fn_c_check_func "$LINENO" "getpwanam" "ac_cv_func_getpwanam"
6644 if test "x$ac_cv_func_getpwanam" = x""yes; then :
6645   cat >>confdefs.h <<_ACEOF
6646 #define HAVE_GETPWANAM 1
6647 _ACEOF
6648
6649 fi
6650 done
6651
6652         $as_echo "#define PAM_SUN_CODEBASE 1" >>confdefs.h
6653
6654         conf_utmp_location=/etc/utmp
6655         conf_wtmp_location=/var/adm/wtmp
6656         conf_lastlog_location=/var/adm/lastlog
6657         $as_echo "#define USE_PIPES 1" >>confdefs.h
6658
6659         ;;
6660 *-ncr-sysv*)
6661         LIBS="$LIBS -lc89"
6662         $as_echo "#define USE_PIPES 1" >>confdefs.h
6663
6664         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6665
6666         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6667
6668         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6669
6670         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6671
6672         ;;
6673 *-sni-sysv*)
6674         # /usr/ucblib MUST NOT be searched on ReliantUNIX
6675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
6676 $as_echo_n "checking for dlsym in -ldl... " >&6; }
6677 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   ac_check_lib_save_LIBS=$LIBS
6681 LIBS="-ldl  $LIBS"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684
6685 /* Override any GCC internal prototype to avoid an error.
6686    Use char because int might match the return type of a GCC
6687    builtin and then its argument prototype would still apply.  */
6688 #ifdef __cplusplus
6689 extern "C"
6690 #endif
6691 char dlsym ();
6692 int
6693 main ()
6694 {
6695 return dlsym ();
6696   ;
6697   return 0;
6698 }
6699 _ACEOF
6700 if ac_fn_c_try_link "$LINENO"; then :
6701   ac_cv_lib_dl_dlsym=yes
6702 else
6703   ac_cv_lib_dl_dlsym=no
6704 fi
6705 rm -f core conftest.err conftest.$ac_objext \
6706     conftest$ac_exeext conftest.$ac_ext
6707 LIBS=$ac_check_lib_save_LIBS
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
6710 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
6711 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
6712   cat >>confdefs.h <<_ACEOF
6713 #define HAVE_LIBDL 1
6714 _ACEOF
6715
6716   LIBS="-ldl $LIBS"
6717
6718 fi
6719
6720         # -lresolv needs to be at the end of LIBS or DNS lookups break
6721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
6722 $as_echo_n "checking for res_query in -lresolv... " >&6; }
6723 if test "${ac_cv_lib_resolv_res_query+set}" = set; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   ac_check_lib_save_LIBS=$LIBS
6727 LIBS="-lresolv  $LIBS"
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h.  */
6730
6731 /* Override any GCC internal prototype to avoid an error.
6732    Use char because int might match the return type of a GCC
6733    builtin and then its argument prototype would still apply.  */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 char res_query ();
6738 int
6739 main ()
6740 {
6741 return res_query ();
6742   ;
6743   return 0;
6744 }
6745 _ACEOF
6746 if ac_fn_c_try_link "$LINENO"; then :
6747   ac_cv_lib_resolv_res_query=yes
6748 else
6749   ac_cv_lib_resolv_res_query=no
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext \
6752     conftest$ac_exeext conftest.$ac_ext
6753 LIBS=$ac_check_lib_save_LIBS
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
6756 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
6757 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then :
6758    LIBS="$LIBS -lresolv"
6759 fi
6760
6761         IPADDR_IN_DISPLAY=yes
6762         $as_echo "#define USE_PIPES 1" >>confdefs.h
6763
6764         $as_echo "#define IP_TOS_IS_BROKEN 1" >>confdefs.h
6765
6766         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6767
6768         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6769
6770         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6771
6772         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
6773
6774         external_path_file=/etc/default/login
6775         # /usr/ucblib/libucb.a no longer needed on ReliantUNIX
6776         # Attention: always take care to bind libsocket and libnsl before libc,
6777         # otherwise you will find lots of "SIOCGPGRP errno 22" on syslog
6778         ;;
6779 # UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
6780 *-*-sysv4.2*)
6781         $as_echo "#define USE_PIPES 1" >>confdefs.h
6782
6783         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6784
6785         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6786
6787         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6788
6789
6790 $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6791
6792         $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6793
6794         ;;
6795 # UnixWare 7.x, OpenUNIX 8
6796 *-*-sysv5*)
6797
6798 $as_echo "#define UNIXWARE_LONG_PASSWORDS 1" >>confdefs.h
6799
6800         $as_echo "#define USE_PIPES 1" >>confdefs.h
6801
6802         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6803
6804         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6805
6806         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6807
6808         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6809
6810         case "$host" in
6811         *-*-sysv5SCO_SV*)       # SCO OpenServer 6.x
6812                 TEST_SHELL=/u95/bin/sh
6813
6814 $as_echo "#define BROKEN_LIBIAF 1" >>confdefs.h
6815
6816                 $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6817
6818                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getluid in -lprot" >&5
6819 $as_echo_n "checking for getluid in -lprot... " >&6; }
6820 if test "${ac_cv_lib_prot_getluid+set}" = set; then :
6821   $as_echo_n "(cached) " >&6
6822 else
6823   ac_check_lib_save_LIBS=$LIBS
6824 LIBS="-lprot  $LIBS"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827
6828 /* Override any GCC internal prototype to avoid an error.
6829    Use char because int might match the return type of a GCC
6830    builtin and then its argument prototype would still apply.  */
6831 #ifdef __cplusplus
6832 extern "C"
6833 #endif
6834 char getluid ();
6835 int
6836 main ()
6837 {
6838 return getluid ();
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 if ac_fn_c_try_link "$LINENO"; then :
6844   ac_cv_lib_prot_getluid=yes
6845 else
6846   ac_cv_lib_prot_getluid=no
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext \
6849     conftest$ac_exeext conftest.$ac_ext
6850 LIBS=$ac_check_lib_save_LIBS
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_prot_getluid" >&5
6853 $as_echo "$ac_cv_lib_prot_getluid" >&6; }
6854 if test "x$ac_cv_lib_prot_getluid" = x""yes; then :
6855    LIBS="$LIBS -lprot"
6856                         for ac_func in getluid setluid
6857 do :
6858   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6859 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6860 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6861   cat >>confdefs.h <<_ACEOF
6862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6863 _ACEOF
6864
6865 fi
6866 done
6867
6868                         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6869
6870                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6871
6872
6873 fi
6874
6875                 ;;
6876         *)      $as_echo "#define LOCKED_PASSWD_STRING \"*LK*\"" >>confdefs.h
6877
6878                 check_for_libcrypt_later=1
6879                 ;;
6880         esac
6881         ;;
6882 *-*-sysv*)
6883         ;;
6884 # SCO UNIX and OEM versions of SCO UNIX
6885 *-*-sco3.2v4*)
6886         as_fn_error $? "\"This Platform is no longer supported.\"" "$LINENO" 5
6887         ;;
6888 # SCO OpenServer 5.x
6889 *-*-sco3.2v5*)
6890         if test -z "$GCC"; then
6891                 CFLAGS="$CFLAGS -belf"
6892         fi
6893         LIBS="$LIBS -lprot -lx -ltinfo -lm"
6894         no_dev_ptmx=1
6895         $as_echo "#define USE_PIPES 1" >>confdefs.h
6896
6897         $as_echo "#define HAVE_SECUREWARE 1" >>confdefs.h
6898
6899         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
6900
6901         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6902
6903         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6904
6905         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6906
6907         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6908
6909         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6910
6911         $as_echo "#define BROKEN_UPDWTMPX 1" >>confdefs.h
6912
6913         $as_echo "#define PASSWD_NEEDS_USERNAME 1" >>confdefs.h
6914
6915         for ac_func in getluid setluid
6916 do :
6917   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6920   cat >>confdefs.h <<_ACEOF
6921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6922 _ACEOF
6923
6924 fi
6925 done
6926
6927         MANTYPE=man
6928         TEST_SHELL=ksh
6929         ;;
6930 *-*-unicosmk*)
6931
6932 $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
6933
6934         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6935
6936         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6937
6938         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6939
6940         $as_echo "#define USE_PIPES 1" >>confdefs.h
6941
6942         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6943
6944         LDFLAGS="$LDFLAGS"
6945         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6946         MANTYPE=cat
6947         ;;
6948 *-*-unicosmp*)
6949         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6950
6951         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6952
6953         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6954
6955         $as_echo "#define WITH_ABBREV_NO_TTY 1" >>confdefs.h
6956
6957         $as_echo "#define USE_PIPES 1" >>confdefs.h
6958
6959         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6960
6961         LDFLAGS="$LDFLAGS"
6962         LIBS="$LIBS -lgen -lacid -ldb"
6963         MANTYPE=cat
6964         ;;
6965 *-*-unicos*)
6966         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
6967
6968         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
6969
6970         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
6971
6972         $as_echo "#define USE_PIPES 1" >>confdefs.h
6973
6974         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
6975
6976         $as_echo "#define NO_SSH_LASTLOG 1" >>confdefs.h
6977
6978         LDFLAGS="$LDFLAGS -Wl,-Dmsglevel=334:fatal"
6979         LIBS="$LIBS -lgen -lrsc -lshare -luex -lacm"
6980         MANTYPE=cat
6981         ;;
6982 *-dec-osf*)
6983         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital Unix SIA" >&5
6984 $as_echo_n "checking for Digital Unix SIA... " >&6; }
6985         no_osfsia=""
6986
6987 # Check whether --with-osfsia was given.
6988 if test "${with_osfsia+set}" = set; then :
6989   withval=$with_osfsia;
6990                         if test "x$withval" = "xno" ; then
6991                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6992 $as_echo "disabled" >&6; }
6993                                 no_osfsia=1
6994                         fi
6995
6996 fi
6997
6998         if test -z "$no_osfsia" ; then
6999                 if test -f /etc/sia/matrix.conf; then
7000                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7001 $as_echo "yes" >&6; }
7002
7003 $as_echo "#define HAVE_OSF_SIA 1" >>confdefs.h
7004
7005
7006 $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
7007
7008                         $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7009
7010                         LIBS="$LIBS -lsecurity -ldb -lm -laud"
7011                         SIA_MSG="yes"
7012                 else
7013                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015
7016 $as_echo "#define LOCKED_PASSWD_SUBSTR \"Nologin\"" >>confdefs.h
7017
7018                 fi
7019         fi
7020         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
7021
7022         $as_echo "#define SETEUID_BREAKS_SETUID 1" >>confdefs.h
7023
7024         $as_echo "#define BROKEN_SETREUID 1" >>confdefs.h
7025
7026         $as_echo "#define BROKEN_SETREGID 1" >>confdefs.h
7027
7028
7029 $as_echo "#define BROKEN_READV_COMPARISON 1" >>confdefs.h
7030
7031         ;;
7032
7033 *-*-nto-qnx*)
7034         $as_echo "#define USE_PIPES 1" >>confdefs.h
7035
7036         $as_echo "#define NO_X11_UNIX_SOCKETS 1" >>confdefs.h
7037
7038
7039 $as_echo "#define MISSING_NFDBITS 1" >>confdefs.h
7040
7041
7042 $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7043
7044
7045 $as_echo "#define MISSING_FD_MASK 1" >>confdefs.h
7046
7047         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
7048
7049         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
7050
7051
7052 $as_echo "#define BROKEN_SHADOW_EXPIRE 1" >>confdefs.h
7053
7054         enable_etc_default_login=no     # has incompatible /etc/default/login
7055         case "$host" in
7056         *-*-nto-qnx6*)
7057                 $as_echo "#define DISABLE_FD_PASSING 1" >>confdefs.h
7058
7059                 ;;
7060         esac
7061         ;;
7062
7063 *-*-ultrix*)
7064
7065 $as_echo "#define BROKEN_GETGROUPS 1" >>confdefs.h
7066
7067
7068 $as_echo "#define BROKEN_MMAP 1" >>confdefs.h
7069
7070         $as_echo "#define NEED_SETPGRP 1" >>confdefs.h
7071
7072
7073 $as_echo "#define HAVE_SYS_SYSLOG_H 1" >>confdefs.h
7074
7075         ;;
7076
7077 *-*-lynxos)
7078         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
7079         $as_echo "#define MISSING_HOWMANY 1" >>confdefs.h
7080
7081
7082 $as_echo "#define BROKEN_SETVBUF 1" >>confdefs.h
7083
7084         ;;
7085 esac
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler and flags for sanity" >&5
7088 $as_echo_n "checking compiler and flags for sanity... " >&6; }
7089 if test "$cross_compiling" = yes; then :
7090         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking compiler sanity" >&5
7091 $as_echo "$as_me: WARNING: cross compiling: not checking compiler sanity" >&2;}
7092
7093 else
7094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h.  */
7096
7097 #include <stdio.h>
7098 int main(){exit(0);}
7099
7100 _ACEOF
7101 if ac_fn_c_try_run "$LINENO"; then :
7102         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7103 $as_echo "yes" >&6; }
7104 else
7105
7106                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108                 as_fn_error $? "*** compiler cannot create working executables, check config.log ***" "$LINENO" 5
7109
7110 fi
7111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7112   conftest.$ac_objext conftest.beam conftest.$ac_ext
7113 fi
7114
7115
7116 # Checks for libraries.
7117 ac_fn_c_check_func "$LINENO" "yp_match" "ac_cv_func_yp_match"
7118 if test "x$ac_cv_func_yp_match" = x""yes; then :
7119
7120 else
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
7122 $as_echo_n "checking for yp_match in -lnsl... " >&6; }
7123 if test "${ac_cv_lib_nsl_yp_match+set}" = set; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126   ac_check_lib_save_LIBS=$LIBS
7127 LIBS="-lnsl  $LIBS"
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h.  */
7130
7131 /* Override any GCC internal prototype to avoid an error.
7132    Use char because int might match the return type of a GCC
7133    builtin and then its argument prototype would still apply.  */
7134 #ifdef __cplusplus
7135 extern "C"
7136 #endif
7137 char yp_match ();
7138 int
7139 main ()
7140 {
7141 return yp_match ();
7142   ;
7143   return 0;
7144 }
7145 _ACEOF
7146 if ac_fn_c_try_link "$LINENO"; then :
7147   ac_cv_lib_nsl_yp_match=yes
7148 else
7149   ac_cv_lib_nsl_yp_match=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext \
7152     conftest$ac_exeext conftest.$ac_ext
7153 LIBS=$ac_check_lib_save_LIBS
7154 fi
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
7156 $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
7157 if test "x$ac_cv_lib_nsl_yp_match" = x""yes; then :
7158   cat >>confdefs.h <<_ACEOF
7159 #define HAVE_LIBNSL 1
7160 _ACEOF
7161
7162   LIBS="-lnsl $LIBS"
7163
7164 fi
7165
7166 fi
7167
7168 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
7169 if test "x$ac_cv_func_setsockopt" = x""yes; then :
7170
7171 else
7172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
7173 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
7174 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then :
7175   $as_echo_n "(cached) " >&6
7176 else
7177   ac_check_lib_save_LIBS=$LIBS
7178 LIBS="-lsocket  $LIBS"
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181
7182 /* Override any GCC internal prototype to avoid an error.
7183    Use char because int might match the return type of a GCC
7184    builtin and then its argument prototype would still apply.  */
7185 #ifdef __cplusplus
7186 extern "C"
7187 #endif
7188 char setsockopt ();
7189 int
7190 main ()
7191 {
7192 return setsockopt ();
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"; then :
7198   ac_cv_lib_socket_setsockopt=yes
7199 else
7200   ac_cv_lib_socket_setsockopt=no
7201 fi
7202 rm -f core conftest.err conftest.$ac_objext \
7203     conftest$ac_exeext conftest.$ac_ext
7204 LIBS=$ac_check_lib_save_LIBS
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
7207 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
7208 if test "x$ac_cv_lib_socket_setsockopt" = x""yes; then :
7209   cat >>confdefs.h <<_ACEOF
7210 #define HAVE_LIBSOCKET 1
7211 _ACEOF
7212
7213   LIBS="-lsocket $LIBS"
7214
7215 fi
7216
7217 fi
7218
7219
7220 for ac_func in dirname
7221 do :
7222   ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
7223 if test "x$ac_cv_func_dirname" = x""yes; then :
7224   cat >>confdefs.h <<_ACEOF
7225 #define HAVE_DIRNAME 1
7226 _ACEOF
7227  for ac_header in libgen.h
7228 do :
7229   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7230 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7231   cat >>confdefs.h <<_ACEOF
7232 #define HAVE_LIBGEN_H 1
7233 _ACEOF
7234
7235 fi
7236
7237 done
7238
7239 else
7240
7241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirname in -lgen" >&5
7242 $as_echo_n "checking for dirname in -lgen... " >&6; }
7243 if test "${ac_cv_lib_gen_dirname+set}" = set; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   ac_check_lib_save_LIBS=$LIBS
7247 LIBS="-lgen  $LIBS"
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h.  */
7250
7251 /* Override any GCC internal prototype to avoid an error.
7252    Use char because int might match the return type of a GCC
7253    builtin and then its argument prototype would still apply.  */
7254 #ifdef __cplusplus
7255 extern "C"
7256 #endif
7257 char dirname ();
7258 int
7259 main ()
7260 {
7261 return dirname ();
7262   ;
7263   return 0;
7264 }
7265 _ACEOF
7266 if ac_fn_c_try_link "$LINENO"; then :
7267   ac_cv_lib_gen_dirname=yes
7268 else
7269   ac_cv_lib_gen_dirname=no
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext \
7272     conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7274 fi
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_dirname" >&5
7276 $as_echo "$ac_cv_lib_gen_dirname" >&6; }
7277 if test "x$ac_cv_lib_gen_dirname" = x""yes; then :
7278
7279                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken dirname" >&5
7280 $as_echo_n "checking for broken dirname... " >&6; }
7281 if test "${ac_cv_have_broken_dirname+set}" = set; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284
7285                         save_LIBS="$LIBS"
7286                         LIBS="$LIBS -lgen"
7287                         if test "$cross_compiling" = yes; then :
7288    ac_cv_have_broken_dirname="no"
7289 else
7290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h.  */
7292
7293 #include <libgen.h>
7294 #include <string.h>
7295
7296 int main(int argc, char **argv) {
7297     char *s, buf[32];
7298
7299     strncpy(buf,"/etc", 32);
7300     s = dirname(buf);
7301     if (!s || strncmp(s, "/", 32) != 0) {
7302         exit(1);
7303     } else {
7304         exit(0);
7305     }
7306 }
7307
7308 _ACEOF
7309 if ac_fn_c_try_run "$LINENO"; then :
7310    ac_cv_have_broken_dirname="no"
7311 else
7312    ac_cv_have_broken_dirname="yes"
7313 fi
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7315   conftest.$ac_objext conftest.beam conftest.$ac_ext
7316 fi
7317
7318                         LIBS="$save_LIBS"
7319
7320 fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_dirname" >&5
7322 $as_echo "$ac_cv_have_broken_dirname" >&6; }
7323                 if test "x$ac_cv_have_broken_dirname" = "xno" ; then
7324                         LIBS="$LIBS -lgen"
7325                         $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
7326
7327                         for ac_header in libgen.h
7328 do :
7329   ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
7330 if test "x$ac_cv_header_libgen_h" = x""yes; then :
7331   cat >>confdefs.h <<_ACEOF
7332 #define HAVE_LIBGEN_H 1
7333 _ACEOF
7334
7335 fi
7336
7337 done
7338
7339                 fi
7340
7341 fi
7342
7343
7344 fi
7345 done
7346
7347
7348 ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam"
7349 if test "x$ac_cv_func_getspnam" = x""yes; then :
7350
7351 else
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspnam in -lgen" >&5
7353 $as_echo_n "checking for getspnam in -lgen... " >&6; }
7354 if test "${ac_cv_lib_gen_getspnam+set}" = set; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   ac_check_lib_save_LIBS=$LIBS
7358 LIBS="-lgen  $LIBS"
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h.  */
7361
7362 /* Override any GCC internal prototype to avoid an error.
7363    Use char because int might match the return type of a GCC
7364    builtin and then its argument prototype would still apply.  */
7365 #ifdef __cplusplus
7366 extern "C"
7367 #endif
7368 char getspnam ();
7369 int
7370 main ()
7371 {
7372 return getspnam ();
7373   ;
7374   return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"; then :
7378   ac_cv_lib_gen_getspnam=yes
7379 else
7380   ac_cv_lib_gen_getspnam=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext \
7383     conftest$ac_exeext conftest.$ac_ext
7384 LIBS=$ac_check_lib_save_LIBS
7385 fi
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getspnam" >&5
7387 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
7388 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then :
7389   LIBS="$LIBS -lgen"
7390 fi
7391
7392 fi
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing basename" >&5
7395 $as_echo_n "checking for library containing basename... " >&6; }
7396 if test "${ac_cv_search_basename+set}" = set; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   ac_func_search_save_LIBS=$LIBS
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h.  */
7402
7403 /* Override any GCC internal prototype to avoid an error.
7404    Use char because int might match the return type of a GCC
7405    builtin and then its argument prototype would still apply.  */
7406 #ifdef __cplusplus
7407 extern "C"
7408 #endif
7409 char basename ();
7410 int
7411 main ()
7412 {
7413 return basename ();
7414   ;
7415   return 0;
7416 }
7417 _ACEOF
7418 for ac_lib in '' gen; do
7419   if test -z "$ac_lib"; then
7420     ac_res="none required"
7421   else
7422     ac_res=-l$ac_lib
7423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7424   fi
7425   if ac_fn_c_try_link "$LINENO"; then :
7426   ac_cv_search_basename=$ac_res
7427 fi
7428 rm -f core conftest.err conftest.$ac_objext \
7429     conftest$ac_exeext
7430   if test "${ac_cv_search_basename+set}" = set; then :
7431   break
7432 fi
7433 done
7434 if test "${ac_cv_search_basename+set}" = set; then :
7435
7436 else
7437   ac_cv_search_basename=no
7438 fi
7439 rm conftest.$ac_ext
7440 LIBS=$ac_func_search_save_LIBS
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_basename" >&5
7443 $as_echo "$ac_cv_search_basename" >&6; }
7444 ac_res=$ac_cv_search_basename
7445 if test "$ac_res" != no; then :
7446   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7447
7448 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
7449
7450 fi
7451
7452
7453
7454 # Check whether --with-zlib was given.
7455 if test "${with_zlib+set}" = set; then :
7456   withval=$with_zlib;  if test "x$withval" = "xno" ; then
7457                 as_fn_error $? "*** zlib is required ***" "$LINENO" 5
7458           elif test "x$withval" != "xyes"; then
7459                 if test -d "$withval/lib"; then
7460                         if test -n "${need_dash_r}"; then
7461                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
7462                         else
7463                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
7464                         fi
7465                 else
7466                         if test -n "${need_dash_r}"; then
7467                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
7468                         else
7469                                 LDFLAGS="-L${withval} ${LDFLAGS}"
7470                         fi
7471                 fi
7472                 if test -d "$withval/include"; then
7473                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
7474                 else
7475                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
7476                 fi
7477         fi
7478
7479 fi
7480
7481
7482 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7483 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7484
7485 else
7486   as_fn_error $? "*** zlib.h missing - please install first or check config.log ***" "$LINENO" 5
7487 fi
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
7491 $as_echo_n "checking for deflate in -lz... " >&6; }
7492 if test "${ac_cv_lib_z_deflate+set}" = set; then :
7493   $as_echo_n "(cached) " >&6
7494 else
7495   ac_check_lib_save_LIBS=$LIBS
7496 LIBS="-lz  $LIBS"
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h.  */
7499
7500 /* Override any GCC internal prototype to avoid an error.
7501    Use char because int might match the return type of a GCC
7502    builtin and then its argument prototype would still apply.  */
7503 #ifdef __cplusplus
7504 extern "C"
7505 #endif
7506 char deflate ();
7507 int
7508 main ()
7509 {
7510 return deflate ();
7511   ;
7512   return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"; then :
7516   ac_cv_lib_z_deflate=yes
7517 else
7518   ac_cv_lib_z_deflate=no
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext \
7521     conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
7525 $as_echo "$ac_cv_lib_z_deflate" >&6; }
7526 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
7527   cat >>confdefs.h <<_ACEOF
7528 #define HAVE_LIBZ 1
7529 _ACEOF
7530
7531   LIBS="-lz $LIBS"
7532
7533 else
7534
7535                 saved_CPPFLAGS="$CPPFLAGS"
7536                 saved_LDFLAGS="$LDFLAGS"
7537                 save_LIBS="$LIBS"
7538                                 if test -n "${need_dash_r}"; then
7539                         LDFLAGS="-L/usr/local/lib -R/usr/local/lib ${saved_LDFLAGS}"
7540                 else
7541                         LDFLAGS="-L/usr/local/lib ${saved_LDFLAGS}"
7542                 fi
7543                 CPPFLAGS="-I/usr/local/include ${saved_CPPFLAGS}"
7544                 LIBS="$LIBS -lz"
7545                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547
7548 /* Override any GCC internal prototype to avoid an error.
7549    Use char because int might match the return type of a GCC
7550    builtin and then its argument prototype would still apply.  */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 char deflate ();
7555 int
7556 main ()
7557 {
7558 return deflate ();
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 if ac_fn_c_try_link "$LINENO"; then :
7564   $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7565
7566 else
7567
7568                                 as_fn_error $? "*** zlib missing - please install first or check config.log ***" "$LINENO" 5
7569
7570
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext \
7573     conftest$ac_exeext conftest.$ac_ext
7574
7575
7576 fi
7577
7578
7579
7580 # Check whether --with-zlib-version-check was given.
7581 if test "${with_zlib_version_check+set}" = set; then :
7582   withval=$with_zlib_version_check;   if test "x$withval" = "xno" ; then
7583                 zlib_check_nonfatal=1
7584            fi
7585
7586
7587 fi
7588
7589
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for possibly buggy zlib" >&5
7591 $as_echo_n "checking for possibly buggy zlib... " >&6; }
7592 if test "$cross_compiling" = yes; then :
7593         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking zlib version" >&5
7594 $as_echo "$as_me: WARNING: cross compiling: not checking zlib version" >&2;}
7595
7596 else
7597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h.  */
7599
7600 #include <stdio.h>
7601 #include <zlib.h>
7602 int main()
7603 {
7604         int a=0, b=0, c=0, d=0, n, v;
7605         n = sscanf(ZLIB_VERSION, "%d.%d.%d.%d", &a, &b, &c, &d);
7606         if (n != 3 && n != 4)
7607                 exit(1);
7608         v = a*1000000 + b*10000 + c*100 + d;
7609         fprintf(stderr, "found zlib version %s (%d)\n", ZLIB_VERSION, v);
7610
7611         /* 1.1.4 is OK */
7612         if (a == 1 && b == 1 && c >= 4)
7613                 exit(0);
7614
7615         /* 1.2.3 and up are OK */
7616         if (v >= 1020300)
7617                 exit(0);
7618
7619         exit(2);
7620 }
7621
7622 _ACEOF
7623 if ac_fn_c_try_run "$LINENO"; then :
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7626 else
7627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7628 $as_echo "yes" >&6; }
7629           if test -z "$zlib_check_nonfatal" ; then
7630                 as_fn_error $? "*** zlib too old - check config.log ***
7631 Your reported zlib version has known security problems.  It's possible your
7632 vendor has fixed these problems without changing the version number.  If you
7633 are sure this is the case, you can disable the check by running
7634 \"./configure --without-zlib-version-check\".
7635 If you are in doubt, upgrade zlib to version 1.2.3 or greater.
7636 See http://www.gzip.org/zlib/ for details." "$LINENO" 5
7637           else
7638                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib version may have security problems" >&5
7639 $as_echo "$as_me: WARNING: zlib version may have security problems" >&2;}
7640           fi
7641
7642 fi
7643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7644   conftest.$ac_objext conftest.beam conftest.$ac_ext
7645 fi
7646
7647
7648 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
7649 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
7650
7651 else
7652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolv" >&5
7653 $as_echo_n "checking for strcasecmp in -lresolv... " >&6; }
7654 if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   ac_check_lib_save_LIBS=$LIBS
7658 LIBS="-lresolv  $LIBS"
7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h.  */
7661
7662 /* Override any GCC internal prototype to avoid an error.
7663    Use char because int might match the return type of a GCC
7664    builtin and then its argument prototype would still apply.  */
7665 #ifdef __cplusplus
7666 extern "C"
7667 #endif
7668 char strcasecmp ();
7669 int
7670 main ()
7671 {
7672 return strcasecmp ();
7673   ;
7674   return 0;
7675 }
7676 _ACEOF
7677 if ac_fn_c_try_link "$LINENO"; then :
7678   ac_cv_lib_resolv_strcasecmp=yes
7679 else
7680   ac_cv_lib_resolv_strcasecmp=no
7681 fi
7682 rm -f core conftest.err conftest.$ac_objext \
7683     conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7685 fi
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_strcasecmp" >&5
7687 $as_echo "$ac_cv_lib_resolv_strcasecmp" >&6; }
7688 if test "x$ac_cv_lib_resolv_strcasecmp" = x""yes; then :
7689   LIBS="$LIBS -lresolv"
7690 fi
7691
7692
7693 fi
7694
7695 for ac_func in utimes
7696 do :
7697   ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
7698 if test "x$ac_cv_func_utimes" = x""yes; then :
7699   cat >>confdefs.h <<_ACEOF
7700 #define HAVE_UTIMES 1
7701 _ACEOF
7702
7703 else
7704    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes in -lc89" >&5
7705 $as_echo_n "checking for utimes in -lc89... " >&6; }
7706 if test "${ac_cv_lib_c89_utimes+set}" = set; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   ac_check_lib_save_LIBS=$LIBS
7710 LIBS="-lc89  $LIBS"
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h.  */
7713
7714 /* Override any GCC internal prototype to avoid an error.
7715    Use char because int might match the return type of a GCC
7716    builtin and then its argument prototype would still apply.  */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 char utimes ();
7721 int
7722 main ()
7723 {
7724 return utimes ();
7725   ;
7726   return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_link "$LINENO"; then :
7730   ac_cv_lib_c89_utimes=yes
7731 else
7732   ac_cv_lib_c89_utimes=no
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext \
7735     conftest$ac_exeext conftest.$ac_ext
7736 LIBS=$ac_check_lib_save_LIBS
7737 fi
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_utimes" >&5
7739 $as_echo "$ac_cv_lib_c89_utimes" >&6; }
7740 if test "x$ac_cv_lib_c89_utimes" = x""yes; then :
7741   $as_echo "#define HAVE_UTIMES 1" >>confdefs.h
7742
7743                                         LIBS="$LIBS -lc89"
7744 fi
7745
7746
7747 fi
7748 done
7749
7750
7751 for ac_header in libutil.h
7752 do :
7753   ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
7754 if test "x$ac_cv_header_libutil_h" = x""yes; then :
7755   cat >>confdefs.h <<_ACEOF
7756 #define HAVE_LIBUTIL_H 1
7757 _ACEOF
7758
7759 fi
7760
7761 done
7762
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing login" >&5
7764 $as_echo_n "checking for library containing login... " >&6; }
7765 if test "${ac_cv_search_login+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   ac_func_search_save_LIBS=$LIBS
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h.  */
7771
7772 /* Override any GCC internal prototype to avoid an error.
7773    Use char because int might match the return type of a GCC
7774    builtin and then its argument prototype would still apply.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 #endif
7778 char login ();
7779 int
7780 main ()
7781 {
7782 return login ();
7783   ;
7784   return 0;
7785 }
7786 _ACEOF
7787 for ac_lib in '' util bsd; do
7788   if test -z "$ac_lib"; then
7789     ac_res="none required"
7790   else
7791     ac_res=-l$ac_lib
7792     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7793   fi
7794   if ac_fn_c_try_link "$LINENO"; then :
7795   ac_cv_search_login=$ac_res
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext \
7798     conftest$ac_exeext
7799   if test "${ac_cv_search_login+set}" = set; then :
7800   break
7801 fi
7802 done
7803 if test "${ac_cv_search_login+set}" = set; then :
7804
7805 else
7806   ac_cv_search_login=no
7807 fi
7808 rm conftest.$ac_ext
7809 LIBS=$ac_func_search_save_LIBS
7810 fi
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login" >&5
7812 $as_echo "$ac_cv_search_login" >&6; }
7813 ac_res=$ac_cv_search_login
7814 if test "$ac_res" != no; then :
7815   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7816
7817 $as_echo "#define HAVE_LOGIN 1" >>confdefs.h
7818
7819 fi
7820
7821 for ac_func in fmt_scaled logout updwtmp logwtmp
7822 do :
7823   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7825 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7826   cat >>confdefs.h <<_ACEOF
7827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7828 _ACEOF
7829
7830 fi
7831 done
7832
7833
7834 for ac_func in strftime
7835 do :
7836   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
7837 if test "x$ac_cv_func_strftime" = x""yes; then :
7838   cat >>confdefs.h <<_ACEOF
7839 #define HAVE_STRFTIME 1
7840 _ACEOF
7841
7842 else
7843   # strftime is in -lintl on SCO UNIX.
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
7845 $as_echo_n "checking for strftime in -lintl... " >&6; }
7846 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lintl  $LIBS"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h.  */
7853
7854 /* Override any GCC internal prototype to avoid an error.
7855    Use char because int might match the return type of a GCC
7856    builtin and then its argument prototype would still apply.  */
7857 #ifdef __cplusplus
7858 extern "C"
7859 #endif
7860 char strftime ();
7861 int
7862 main ()
7863 {
7864 return strftime ();
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870   ac_cv_lib_intl_strftime=yes
7871 else
7872   ac_cv_lib_intl_strftime=no
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext \
7875     conftest$ac_exeext conftest.$ac_ext
7876 LIBS=$ac_check_lib_save_LIBS
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
7879 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
7880 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
7881   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
7882
7883 LIBS="-lintl $LIBS"
7884 fi
7885
7886 fi
7887 done
7888
7889
7890 # Check for ALTDIRFUNC glob() extension
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_ALTDIRFUNC support" >&5
7892 $as_echo_n "checking for GLOB_ALTDIRFUNC support... " >&6; }
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h.  */
7895
7896                 #include <glob.h>
7897                 #ifdef GLOB_ALTDIRFUNC
7898                 FOUNDIT
7899                 #endif
7900
7901 _ACEOF
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903   $EGREP "FOUNDIT" >/dev/null 2>&1; then :
7904
7905
7906 $as_echo "#define GLOB_HAS_ALTDIRFUNC 1" >>confdefs.h
7907
7908                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909 $as_echo "yes" >&6; }
7910
7911 else
7912
7913                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915
7916
7917 fi
7918 rm -f conftest*
7919
7920
7921 # Check for g.gl_matchc glob() extension
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_matchc field in glob_t" >&5
7923 $as_echo_n "checking for gl_matchc field in glob_t... " >&6; }
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h.  */
7926  #include <glob.h>
7927 int
7928 main ()
7929 {
7930 glob_t g; g.gl_matchc = 1;
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_compile "$LINENO"; then :
7936
7937
7938 $as_echo "#define GLOB_HAS_GL_MATCHC 1" >>confdefs.h
7939
7940                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7941 $as_echo "yes" >&6; }
7942
7943 else
7944
7945                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947
7948
7949 fi
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951
7952 ac_fn_c_check_decl "$LINENO" "GLOB_NOMATCH" "ac_cv_have_decl_GLOB_NOMATCH" "#include <glob.h>
7953 "
7954 if test "x$ac_cv_have_decl_GLOB_NOMATCH" = x""yes; then :
7955   ac_have_decl=1
7956 else
7957   ac_have_decl=0
7958 fi
7959
7960 cat >>confdefs.h <<_ACEOF
7961 #define HAVE_DECL_GLOB_NOMATCH $ac_have_decl
7962 _ACEOF
7963
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent allocates space for d_name" >&5
7966 $as_echo_n "checking whether struct dirent allocates space for d_name... " >&6; }
7967 if test "$cross_compiling" = yes; then :
7968
7969                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&5
7970 $as_echo "$as_me: WARNING: cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME" >&2;}
7971                 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
7972
7973
7974
7975 else
7976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h.  */
7978
7979 #include <sys/types.h>
7980 #include <dirent.h>
7981 int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
7982
7983 _ACEOF
7984 if ac_fn_c_try_run "$LINENO"; then :
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986 $as_echo "yes" >&6; }
7987 else
7988
7989                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991
7992 $as_echo "#define BROKEN_ONE_BYTE_DIRENT_D_NAME 1" >>confdefs.h
7993
7994
7995 fi
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997   conftest.$ac_objext conftest.beam conftest.$ac_ext
7998 fi
7999
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/pid/fd directory" >&5
8002 $as_echo_n "checking for /proc/pid/fd directory... " >&6; }
8003 if test -d "/proc/$$/fd" ; then
8004
8005 $as_echo "#define HAVE_PROC_PID 1" >>confdefs.h
8006
8007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8008 $as_echo "yes" >&6; }
8009 else
8010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014 # Check whether user wants S/Key support
8015 SKEY_MSG="no"
8016
8017 # Check whether --with-skey was given.
8018 if test "${with_skey+set}" = set; then :
8019   withval=$with_skey;
8020                 if test "x$withval" != "xno" ; then
8021
8022                         if test "x$withval" != "xyes" ; then
8023                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
8024                                 LDFLAGS="$LDFLAGS -L${withval}/lib"
8025                         fi
8026
8027
8028 $as_echo "#define SKEY 1" >>confdefs.h
8029
8030                         LIBS="-lskey $LIBS"
8031                         SKEY_MSG="yes"
8032
8033                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s/key support" >&5
8034 $as_echo_n "checking for s/key support... " >&6; }
8035                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h.  */
8037
8038 #include <stdio.h>
8039 #include <skey.h>
8040 int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
8041
8042 _ACEOF
8043 if ac_fn_c_try_link "$LINENO"; then :
8044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045 $as_echo "yes" >&6; }
8046 else
8047
8048                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050                                         as_fn_error $? "** Incomplete or missing s/key libraries." "$LINENO" 5
8051
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext \
8054     conftest$ac_exeext conftest.$ac_ext
8055                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if skeychallenge takes 4 arguments" >&5
8056 $as_echo_n "checking if skeychallenge takes 4 arguments... " >&6; }
8057                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h.  */
8059 #include <stdio.h>
8060                                  #include <skey.h>
8061 int
8062 main ()
8063 {
8064 (void)skeychallenge(NULL,"name","",0);
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8071 $as_echo "yes" >&6; }
8072
8073 $as_echo "#define SKEYCHALLENGE_4ARG 1" >>confdefs.h
8074
8075 else
8076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 $as_echo "no" >&6; }
8078
8079 fi
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081                 fi
8082
8083
8084 fi
8085
8086
8087 # Check whether user wants TCP wrappers support
8088 TCPW_MSG="no"
8089
8090 # Check whether --with-tcp-wrappers was given.
8091 if test "${with_tcp_wrappers+set}" = set; then :
8092   withval=$with_tcp_wrappers;
8093                 if test "x$withval" != "xno" ; then
8094                         saved_LIBS="$LIBS"
8095                         saved_LDFLAGS="$LDFLAGS"
8096                         saved_CPPFLAGS="$CPPFLAGS"
8097                         if test -n "${withval}" && \
8098                             test "x${withval}" != "xyes"; then
8099                                 if test -d "${withval}/lib"; then
8100                                         if test -n "${need_dash_r}"; then
8101                                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8102                                         else
8103                                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8104                                         fi
8105                                 else
8106                                         if test -n "${need_dash_r}"; then
8107                                                 LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
8108                                         else
8109                                                 LDFLAGS="-L${withval} ${LDFLAGS}"
8110                                         fi
8111                                 fi
8112                                 if test -d "${withval}/include"; then
8113                                         CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
8114                                 else
8115                                         CPPFLAGS="-I${withval} ${CPPFLAGS}"
8116                                 fi
8117                         fi
8118                         LIBS="-lwrap $LIBS"
8119                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
8120 $as_echo_n "checking for libwrap... " >&6; }
8121                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h.  */
8123
8124 #include <sys/types.h>
8125 #include <sys/socket.h>
8126 #include <netinet/in.h>
8127 #include <tcpd.h>
8128                                         int deny_severity = 0, allow_severity = 0;
8129
8130 int
8131 main ()
8132 {
8133 hosts_access(0);
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139
8140                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8141 $as_echo "yes" >&6; }
8142
8143 $as_echo "#define LIBWRAP 1" >>confdefs.h
8144
8145                                         SSHDLIBS="$SSHDLIBS -lwrap"
8146                                         TCPW_MSG="yes"
8147
8148 else
8149
8150                                         as_fn_error $? "*** libwrap missing" "$LINENO" 5
8151
8152
8153 fi
8154 rm -f core conftest.err conftest.$ac_objext \
8155     conftest$ac_exeext conftest.$ac_ext
8156                         LIBS="$saved_LIBS"
8157                 fi
8158
8159
8160 fi
8161
8162
8163 # Check whether user wants libedit support
8164 LIBEDIT_MSG="no"
8165
8166 # Check whether --with-libedit was given.
8167 if test "${with_libedit+set}" = set; then :
8168   withval=$with_libedit;  if test "x$withval" != "xno" ; then
8169                 if test "x$withval" != "xyes"; then
8170                         CPPFLAGS="$CPPFLAGS -I${withval}/include"
8171                         if test -n "${need_dash_r}"; then
8172                                 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
8173                         else
8174                                 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
8175                         fi
8176                 fi
8177                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_init in -ledit" >&5
8178 $as_echo_n "checking for el_init in -ledit... " >&6; }
8179 if test "${ac_cv_lib_edit_el_init+set}" = set; then :
8180   $as_echo_n "(cached) " >&6
8181 else
8182   ac_check_lib_save_LIBS=$LIBS
8183 LIBS="-ledit  -lcurses
8184                  $LIBS"
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h.  */
8187
8188 /* Override any GCC internal prototype to avoid an error.
8189    Use char because int might match the return type of a GCC
8190    builtin and then its argument prototype would still apply.  */
8191 #ifdef __cplusplus
8192 extern "C"
8193 #endif
8194 char el_init ();
8195 int
8196 main ()
8197 {
8198 return el_init ();
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204   ac_cv_lib_edit_el_init=yes
8205 else
8206   ac_cv_lib_edit_el_init=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext \
8209     conftest$ac_exeext conftest.$ac_ext
8210 LIBS=$ac_check_lib_save_LIBS
8211 fi
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_el_init" >&5
8213 $as_echo "$ac_cv_lib_edit_el_init" >&6; }
8214 if test "x$ac_cv_lib_edit_el_init" = x""yes; then :
8215
8216 $as_echo "#define USE_LIBEDIT 1" >>confdefs.h
8217
8218                           LIBEDIT="-ledit -lcurses"
8219                           LIBEDIT_MSG="yes"
8220
8221
8222 else
8223    as_fn_error $? "libedit not found" "$LINENO" 5
8224 fi
8225
8226                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libedit version is compatible" >&5
8227 $as_echo_n "checking if libedit version is compatible... " >&6; }
8228                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h.  */
8230
8231 #include <histedit.h>
8232 int main(void)
8233 {
8234         int i = H_SETSIZE;
8235         el_init("", NULL, NULL, NULL);
8236         exit(0);
8237 }
8238
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8242 $as_echo "yes" >&6; }
8243 else
8244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 $as_echo "no" >&6; }
8246                       as_fn_error $? "libedit version is not compatible" "$LINENO" 5
8247
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250         fi
8251
8252 fi
8253
8254
8255 AUDIT_MODULE=none
8256
8257 # Check whether --with-audit was given.
8258 if test "${with_audit+set}" = set; then :
8259   withval=$with_audit;
8260           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported audit module" >&5
8261 $as_echo_n "checking for supported audit module... " >&6; }
8262           case "$withval" in
8263           bsm)
8264                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsm" >&5
8265 $as_echo "bsm" >&6; }
8266                 AUDIT_MODULE=bsm
8267                                 for ac_header in bsm/audit.h
8268 do :
8269   ac_fn_c_check_header_compile "$LINENO" "bsm/audit.h" "ac_cv_header_bsm_audit_h" "
8270 #ifdef HAVE_TIME_H
8271 # include <time.h>
8272 #endif
8273
8274
8275 "
8276 if test "x$ac_cv_header_bsm_audit_h" = x""yes; then :
8277   cat >>confdefs.h <<_ACEOF
8278 #define HAVE_BSM_AUDIT_H 1
8279 _ACEOF
8280
8281 else
8282   as_fn_error $? "BSM enabled and bsm/audit.h not found" "$LINENO" 5
8283 fi
8284
8285 done
8286
8287                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaudit in -lbsm" >&5
8288 $as_echo_n "checking for getaudit in -lbsm... " >&6; }
8289 if test "${ac_cv_lib_bsm_getaudit+set}" = set; then :
8290   $as_echo_n "(cached) " >&6
8291 else
8292   ac_check_lib_save_LIBS=$LIBS
8293 LIBS="-lbsm  $LIBS"
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h.  */
8296
8297 /* Override any GCC internal prototype to avoid an error.
8298    Use char because int might match the return type of a GCC
8299    builtin and then its argument prototype would still apply.  */
8300 #ifdef __cplusplus
8301 extern "C"
8302 #endif
8303 char getaudit ();
8304 int
8305 main ()
8306 {
8307 return getaudit ();
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 if ac_fn_c_try_link "$LINENO"; then :
8313   ac_cv_lib_bsm_getaudit=yes
8314 else
8315   ac_cv_lib_bsm_getaudit=no
8316 fi
8317 rm -f core conftest.err conftest.$ac_objext \
8318     conftest$ac_exeext conftest.$ac_ext
8319 LIBS=$ac_check_lib_save_LIBS
8320 fi
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsm_getaudit" >&5
8322 $as_echo "$ac_cv_lib_bsm_getaudit" >&6; }
8323 if test "x$ac_cv_lib_bsm_getaudit" = x""yes; then :
8324   cat >>confdefs.h <<_ACEOF
8325 #define HAVE_LIBBSM 1
8326 _ACEOF
8327
8328   LIBS="-lbsm $LIBS"
8329
8330 else
8331   as_fn_error $? "BSM enabled and required library not found" "$LINENO" 5
8332 fi
8333
8334                 for ac_func in getaudit
8335 do :
8336   ac_fn_c_check_func "$LINENO" "getaudit" "ac_cv_func_getaudit"
8337 if test "x$ac_cv_func_getaudit" = x""yes; then :
8338   cat >>confdefs.h <<_ACEOF
8339 #define HAVE_GETAUDIT 1
8340 _ACEOF
8341
8342 else
8343   as_fn_error $? "BSM enabled and required function not found" "$LINENO" 5
8344 fi
8345 done
8346
8347                 # These are optional
8348                 for ac_func in getaudit_addr aug_get_machine
8349 do :
8350   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8352 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8353   cat >>confdefs.h <<_ACEOF
8354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8355 _ACEOF
8356
8357 fi
8358 done
8359
8360
8361 $as_echo "#define USE_BSM_AUDIT 1" >>confdefs.h
8362
8363                 ;;
8364           debug)
8365                 AUDIT_MODULE=debug
8366                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
8367 $as_echo "debug" >&6; }
8368
8369 $as_echo "#define SSH_AUDIT_EVENTS 1" >>confdefs.h
8370
8371                 ;;
8372           no)
8373                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375                 ;;
8376           *)
8377                 as_fn_error $? "Unknown audit module $withval" "$LINENO" 5
8378                 ;;
8379         esac
8380
8381 fi
8382
8383
8384 for ac_func in \
8385         arc4random \
8386         arc4random_buf \
8387         arc4random_uniform \
8388         asprintf \
8389         b64_ntop \
8390         __b64_ntop \
8391         b64_pton \
8392         __b64_pton \
8393         bcopy \
8394         bindresvport_sa \
8395         clock \
8396         closefrom \
8397         dirfd \
8398         fchmod \
8399         fchown \
8400         freeaddrinfo \
8401         fstatvfs \
8402         futimes \
8403         getaddrinfo \
8404         getcwd \
8405         getgrouplist \
8406         getnameinfo \
8407         getopt \
8408         getpeereid \
8409         getpeerucred \
8410         _getpty \
8411         getrlimit \
8412         getttyent \
8413         glob \
8414         inet_aton \
8415         inet_ntoa \
8416         inet_ntop \
8417         innetgr \
8418         login_getcapbool \
8419         md5_crypt \
8420         memmove \
8421         mkdtemp \
8422         mmap \
8423         ngetaddrinfo \
8424         nsleep \
8425         ogetaddrinfo \
8426         openlog_r \
8427         openpty \
8428         poll \
8429         prctl \
8430         pstat \
8431         readpassphrase \
8432         realpath \
8433         recvmsg \
8434         rresvport_af \
8435         sendmsg \
8436         setdtablesize \
8437         setegid \
8438         setenv \
8439         seteuid \
8440         setgroups \
8441         setlogin \
8442         setpcred \
8443         setproctitle \
8444         setregid \
8445         setreuid \
8446         setrlimit \
8447         setsid \
8448         setvbuf \
8449         sigaction \
8450         sigvec \
8451         snprintf \
8452         socketpair \
8453         statfs \
8454         statvfs \
8455         strdup \
8456         strerror \
8457         strlcat \
8458         strlcpy \
8459         strmode \
8460         strnvis \
8461         strtonum \
8462         strtoll \
8463         strtoul \
8464         swap32 \
8465         sysconf \
8466         tcgetpgrp \
8467         truncate \
8468         unsetenv \
8469         updwtmpx \
8470         vasprintf \
8471         vhangup \
8472         vsnprintf \
8473         waitpid \
8474
8475 do :
8476   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8478 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8479   cat >>confdefs.h <<_ACEOF
8480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8481 _ACEOF
8482
8483 fi
8484 done
8485
8486
8487 # IRIX has a const char return value for gai_strerror()
8488 for ac_func in gai_strerror
8489 do :
8490   ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
8491 if test "x$ac_cv_func_gai_strerror" = x""yes; then :
8492   cat >>confdefs.h <<_ACEOF
8493 #define HAVE_GAI_STRERROR 1
8494 _ACEOF
8495
8496         $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
8497
8498         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h.  */
8500
8501 #include <sys/types.h>
8502 #include <sys/socket.h>
8503 #include <netdb.h>
8504
8505 const char *gai_strerror(int);
8506 int
8507 main ()
8508 {
8509
8510 char *str;
8511
8512 str = gai_strerror(0);
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518
8519
8520 $as_echo "#define HAVE_CONST_GAI_STRERROR_PROTO 1" >>confdefs.h
8521
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 fi
8525 done
8526
8527
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
8529 $as_echo_n "checking for library containing nanosleep... " >&6; }
8530 if test "${ac_cv_search_nanosleep+set}" = set; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   ac_func_search_save_LIBS=$LIBS
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h.  */
8536
8537 /* Override any GCC internal prototype to avoid an error.
8538    Use char because int might match the return type of a GCC
8539    builtin and then its argument prototype would still apply.  */
8540 #ifdef __cplusplus
8541 extern "C"
8542 #endif
8543 char nanosleep ();
8544 int
8545 main ()
8546 {
8547 return nanosleep ();
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 for ac_lib in '' rt posix4; do
8553   if test -z "$ac_lib"; then
8554     ac_res="none required"
8555   else
8556     ac_res=-l$ac_lib
8557     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8558   fi
8559   if ac_fn_c_try_link "$LINENO"; then :
8560   ac_cv_search_nanosleep=$ac_res
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext \
8563     conftest$ac_exeext
8564   if test "${ac_cv_search_nanosleep+set}" = set; then :
8565   break
8566 fi
8567 done
8568 if test "${ac_cv_search_nanosleep+set}" = set; then :
8569
8570 else
8571   ac_cv_search_nanosleep=no
8572 fi
8573 rm conftest.$ac_ext
8574 LIBS=$ac_func_search_save_LIBS
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
8577 $as_echo "$ac_cv_search_nanosleep" >&6; }
8578 ac_res=$ac_cv_search_nanosleep
8579 if test "$ac_res" != no; then :
8580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8581
8582 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
8583
8584 fi
8585
8586
8587 ac_fn_c_check_decl "$LINENO" "getrusage" "ac_cv_have_decl_getrusage" "$ac_includes_default"
8588 if test "x$ac_cv_have_decl_getrusage" = x""yes; then :
8589   for ac_func in getrusage
8590 do :
8591   ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
8592 if test "x$ac_cv_func_getrusage" = x""yes; then :
8593   cat >>confdefs.h <<_ACEOF
8594 #define HAVE_GETRUSAGE 1
8595 _ACEOF
8596
8597 fi
8598 done
8599
8600 fi
8601
8602 ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "
8603 #ifdef HAVE_STRING_H
8604 # include <string.h>
8605 #endif
8606
8607 "
8608 if test "x$ac_cv_have_decl_strsep" = x""yes; then :
8609   for ac_func in strsep
8610 do :
8611   ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
8612 if test "x$ac_cv_func_strsep" = x""yes; then :
8613   cat >>confdefs.h <<_ACEOF
8614 #define HAVE_STRSEP 1
8615 _ACEOF
8616
8617 fi
8618 done
8619
8620 fi
8621
8622
8623 ac_fn_c_check_decl "$LINENO" "tcsendbreak" "ac_cv_have_decl_tcsendbreak" "#include <termios.h>
8624
8625 "
8626 if test "x$ac_cv_have_decl_tcsendbreak" = x""yes; then :
8627   $as_echo "#define HAVE_TCSENDBREAK 1" >>confdefs.h
8628
8629 else
8630   for ac_func in tcsendbreak
8631 do :
8632   ac_fn_c_check_func "$LINENO" "tcsendbreak" "ac_cv_func_tcsendbreak"
8633 if test "x$ac_cv_func_tcsendbreak" = x""yes; then :
8634   cat >>confdefs.h <<_ACEOF
8635 #define HAVE_TCSENDBREAK 1
8636 _ACEOF
8637
8638 fi
8639 done
8640
8641 fi
8642
8643
8644 ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "#include <netdb.h>
8645 "
8646 if test "x$ac_cv_have_decl_h_errno" = x""yes; then :
8647   ac_have_decl=1
8648 else
8649   ac_have_decl=0
8650 fi
8651
8652 cat >>confdefs.h <<_ACEOF
8653 #define HAVE_DECL_H_ERRNO $ac_have_decl
8654 _ACEOF
8655
8656
8657 ac_fn_c_check_decl "$LINENO" "SHUT_RD" "ac_cv_have_decl_SHUT_RD" "
8658 #include <sys/types.h>
8659 #include <sys/socket.h>
8660
8661 "
8662 if test "x$ac_cv_have_decl_SHUT_RD" = x""yes; then :
8663   ac_have_decl=1
8664 else
8665   ac_have_decl=0
8666 fi
8667
8668 cat >>confdefs.h <<_ACEOF
8669 #define HAVE_DECL_SHUT_RD $ac_have_decl
8670 _ACEOF
8671
8672
8673 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "
8674 #include <sys/types.h>
8675 #ifdef HAVE_SYS_STAT_H
8676 # include <sys/stat.h>
8677 #endif
8678 #ifdef HAVE_FCNTL_H
8679 # include <fcntl.h>
8680 #endif
8681
8682 "
8683 if test "x$ac_cv_have_decl_O_NONBLOCK" = x""yes; then :
8684   ac_have_decl=1
8685 else
8686   ac_have_decl=0
8687 fi
8688
8689 cat >>confdefs.h <<_ACEOF
8690 #define HAVE_DECL_O_NONBLOCK $ac_have_decl
8691 _ACEOF
8692
8693
8694 ac_fn_c_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "
8695 #include <sys/types.h>
8696 #include <sys/uio.h>
8697 #include <unistd.h>
8698
8699 "
8700 if test "x$ac_cv_have_decl_writev" = x""yes; then :
8701   ac_have_decl=1
8702 else
8703   ac_have_decl=0
8704 fi
8705
8706 cat >>confdefs.h <<_ACEOF
8707 #define HAVE_DECL_WRITEV $ac_have_decl
8708 _ACEOF
8709
8710
8711 ac_fn_c_check_decl "$LINENO" "MAXSYMLINKS" "ac_cv_have_decl_MAXSYMLINKS" "
8712 #include <sys/param.h>
8713
8714 "
8715 if test "x$ac_cv_have_decl_MAXSYMLINKS" = x""yes; then :
8716   ac_have_decl=1
8717 else
8718   ac_have_decl=0
8719 fi
8720
8721 cat >>confdefs.h <<_ACEOF
8722 #define HAVE_DECL_MAXSYMLINKS $ac_have_decl
8723 _ACEOF
8724
8725
8726 ac_fn_c_check_decl "$LINENO" "offsetof" "ac_cv_have_decl_offsetof" "
8727 #include <stddef.h>
8728
8729 "
8730 if test "x$ac_cv_have_decl_offsetof" = x""yes; then :
8731   ac_have_decl=1
8732 else
8733   ac_have_decl=0
8734 fi
8735
8736 cat >>confdefs.h <<_ACEOF
8737 #define HAVE_DECL_OFFSETOF $ac_have_decl
8738 _ACEOF
8739
8740
8741 for ac_func in setresuid
8742 do :
8743   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
8744 if test "x$ac_cv_func_setresuid" = x""yes; then :
8745   cat >>confdefs.h <<_ACEOF
8746 #define HAVE_SETRESUID 1
8747 _ACEOF
8748
8749                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresuid seems to work" >&5
8750 $as_echo_n "checking if setresuid seems to work... " >&6; }
8751         if test "$cross_compiling" = yes; then :
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
8753 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
8754
8755 else
8756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h.  */
8758
8759 #include <stdlib.h>
8760 #include <errno.h>
8761 int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
8762
8763 _ACEOF
8764 if ac_fn_c_try_run "$LINENO"; then :
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8766 $as_echo "yes" >&6; }
8767 else
8768
8769 $as_echo "#define BROKEN_SETRESUID 1" >>confdefs.h
8770
8771                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
8772 $as_echo "not implemented" >&6; }
8773 fi
8774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8775   conftest.$ac_objext conftest.beam conftest.$ac_ext
8776 fi
8777
8778
8779 fi
8780 done
8781
8782
8783 for ac_func in setresgid
8784 do :
8785   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
8786 if test "x$ac_cv_func_setresgid" = x""yes; then :
8787   cat >>confdefs.h <<_ACEOF
8788 #define HAVE_SETRESGID 1
8789 _ACEOF
8790
8791                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setresgid seems to work" >&5
8792 $as_echo_n "checking if setresgid seems to work... " >&6; }
8793         if test "$cross_compiling" = yes; then :
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking setresuid" >&5
8795 $as_echo "$as_me: WARNING: cross compiling: not checking setresuid" >&2;}
8796
8797 else
8798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h.  */
8800
8801 #include <stdlib.h>
8802 #include <errno.h>
8803 int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);}
8804
8805 _ACEOF
8806 if ac_fn_c_try_run "$LINENO"; then :
8807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808 $as_echo "yes" >&6; }
8809 else
8810
8811 $as_echo "#define BROKEN_SETRESGID 1" >>confdefs.h
8812
8813                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not implemented" >&5
8814 $as_echo "not implemented" >&6; }
8815 fi
8816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8817   conftest.$ac_objext conftest.beam conftest.$ac_ext
8818 fi
8819
8820
8821 fi
8822 done
8823
8824
8825 for ac_func in gettimeofday time
8826 do :
8827   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8830   cat >>confdefs.h <<_ACEOF
8831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8832 _ACEOF
8833
8834 fi
8835 done
8836
8837 for ac_func in endutent getutent getutid getutline pututline setutent
8838 do :
8839   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8842   cat >>confdefs.h <<_ACEOF
8843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8844 _ACEOF
8845
8846 fi
8847 done
8848
8849 for ac_func in utmpname
8850 do :
8851   ac_fn_c_check_func "$LINENO" "utmpname" "ac_cv_func_utmpname"
8852 if test "x$ac_cv_func_utmpname" = x""yes; then :
8853   cat >>confdefs.h <<_ACEOF
8854 #define HAVE_UTMPNAME 1
8855 _ACEOF
8856
8857 fi
8858 done
8859
8860 for ac_func in endutxent getutxent getutxid getutxline pututxline
8861 do :
8862   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8865   cat >>confdefs.h <<_ACEOF
8866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8867 _ACEOF
8868
8869 fi
8870 done
8871
8872 for ac_func in setutxent utmpxname
8873 do :
8874   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8877   cat >>confdefs.h <<_ACEOF
8878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8879 _ACEOF
8880
8881 fi
8882 done
8883
8884 for ac_func in getlastlogxbyname
8885 do :
8886   ac_fn_c_check_func "$LINENO" "getlastlogxbyname" "ac_cv_func_getlastlogxbyname"
8887 if test "x$ac_cv_func_getlastlogxbyname" = x""yes; then :
8888   cat >>confdefs.h <<_ACEOF
8889 #define HAVE_GETLASTLOGXBYNAME 1
8890 _ACEOF
8891
8892 fi
8893 done
8894
8895
8896 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
8897 if test "x$ac_cv_func_daemon" = x""yes; then :
8898
8899 $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
8900
8901 else
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
8903 $as_echo_n "checking for daemon in -lbsd... " >&6; }
8904 if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
8905   $as_echo_n "(cached) " >&6
8906 else
8907   ac_check_lib_save_LIBS=$LIBS
8908 LIBS="-lbsd  $LIBS"
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h.  */
8911
8912 /* Override any GCC internal prototype to avoid an error.
8913    Use char because int might match the return type of a GCC
8914    builtin and then its argument prototype would still apply.  */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 char daemon ();
8919 int
8920 main ()
8921 {
8922 return daemon ();
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"; then :
8928   ac_cv_lib_bsd_daemon=yes
8929 else
8930   ac_cv_lib_bsd_daemon=no
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext \
8933     conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
8937 $as_echo "$ac_cv_lib_bsd_daemon" >&6; }
8938 if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
8939   LIBS="$LIBS -lbsd"; $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
8940
8941 fi
8942
8943
8944 fi
8945
8946
8947 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
8948 if test "x$ac_cv_func_getpagesize" = x""yes; then :
8949
8950 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
8951
8952 else
8953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize in -lucb" >&5
8954 $as_echo_n "checking for getpagesize in -lucb... " >&6; }
8955 if test "${ac_cv_lib_ucb_getpagesize+set}" = set; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   ac_check_lib_save_LIBS=$LIBS
8959 LIBS="-lucb  $LIBS"
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h.  */
8962
8963 /* Override any GCC internal prototype to avoid an error.
8964    Use char because int might match the return type of a GCC
8965    builtin and then its argument prototype would still apply.  */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 char getpagesize ();
8970 int
8971 main ()
8972 {
8973 return getpagesize ();
8974   ;
8975   return 0;
8976 }
8977 _ACEOF
8978 if ac_fn_c_try_link "$LINENO"; then :
8979   ac_cv_lib_ucb_getpagesize=yes
8980 else
8981   ac_cv_lib_ucb_getpagesize=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext \
8984     conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_getpagesize" >&5
8988 $as_echo "$ac_cv_lib_ucb_getpagesize" >&6; }
8989 if test "x$ac_cv_lib_ucb_getpagesize" = x""yes; then :
8990   LIBS="$LIBS -lucb"; $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
8991
8992 fi
8993
8994
8995 fi
8996
8997
8998 # Check for broken snprintf
8999 if test "x$ac_cv_func_snprintf" = "xyes" ; then
9000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf correctly terminates long strings" >&5
9001 $as_echo_n "checking whether snprintf correctly terminates long strings... " >&6; }
9002         if test "$cross_compiling" = yes; then :
9003    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
9004 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
9005
9006 else
9007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009
9010 #include <stdio.h>
9011 int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
9012
9013 _ACEOF
9014 if ac_fn_c_try_run "$LINENO"; then :
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9016 $as_echo "yes" >&6; }
9017 else
9018
9019                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9021
9022 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9023
9024                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&5
9025 $as_echo "$as_me: WARNING: ****** Your snprintf() function is broken, complain to your vendor" >&2;}
9026
9027 fi
9028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9029   conftest.$ac_objext conftest.beam conftest.$ac_ext
9030 fi
9031
9032 fi
9033
9034 # If we don't have a working asprintf, then we strongly depend on vsnprintf
9035 # returning the right thing on overflow: the number of characters it tried to
9036 # create (as per SUSv3)
9037 if test "x$ac_cv_func_asprintf" != "xyes" && \
9038    test "x$ac_cv_func_vsnprintf" = "xyes" ; then
9039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf returns correct values on overflow" >&5
9040 $as_echo_n "checking whether vsnprintf returns correct values on overflow... " >&6; }
9041         if test "$cross_compiling" = yes; then :
9042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working vsnprintf()" >&5
9043 $as_echo "$as_me: WARNING: cross compiling: Assuming working vsnprintf()" >&2;}
9044
9045 else
9046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h.  */
9048
9049 #include <sys/types.h>
9050 #include <stdio.h>
9051 #include <stdarg.h>
9052
9053 int x_snprintf(char *str,size_t count,const char *fmt,...)
9054 {
9055         size_t ret; va_list ap;
9056         va_start(ap, fmt); ret = vsnprintf(str, count, fmt, ap); va_end(ap);
9057         return ret;
9058 }
9059 int main(void)
9060 {
9061         char x[1];
9062         exit(x_snprintf(x, 1, "%s %d", "hello", 12345) == 11 ? 0 : 1);
9063 }
9064 _ACEOF
9065 if ac_fn_c_try_run "$LINENO"; then :
9066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9067 $as_echo "yes" >&6; }
9068 else
9069
9070                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9072
9073 $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
9074
9075                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&5
9076 $as_echo "$as_me: WARNING: ****** Your vsnprintf() function is broken, complain to your vendor" >&2;}
9077
9078 fi
9079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9080   conftest.$ac_objext conftest.beam conftest.$ac_ext
9081 fi
9082
9083 fi
9084
9085 # On systems where [v]snprintf is broken, but is declared in stdio,
9086 # check that the fmt argument is const char * or just char *.
9087 # This is only useful for when BROKEN_SNPRINTF
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf can declare const char *fmt" >&5
9089 $as_echo_n "checking whether snprintf can declare const char *fmt... " >&6; }
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092 #include <stdio.h>
9093            int snprintf(char *a, size_t b, const char *c, ...) { return 0; }
9094            int main(void) { snprintf(0, 0, 0); }
9095
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9099 $as_echo "yes" >&6; }
9100
9101 $as_echo "#define SNPRINTF_CONST const" >>confdefs.h
9102
9103 else
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9106     $as_echo "#define SNPRINTF_CONST /* not const */" >>confdefs.h
9107
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110
9111 # Check for missing getpeereid (or equiv) support
9112 NO_PEERCHECK=""
9113 if test "x$ac_cv_func_getpeereid" != "xyes" -a "x$ac_cv_func_getpeerucred" != "xyes"; then
9114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports SO_PEERCRED getsockopt" >&5
9115 $as_echo_n "checking whether system supports SO_PEERCRED getsockopt... " >&6; }
9116         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h.  */
9118 #include <sys/types.h>
9119                  #include <sys/socket.h>
9120 int
9121 main ()
9122 {
9123 int i = SO_PEERCRED;
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9130 $as_echo "yes" >&6; }
9131
9132 $as_echo "#define HAVE_SO_PEERCRED 1" >>confdefs.h
9133
9134
9135 else
9136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9138                 NO_PEERCHECK=1
9139
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 fi
9143
9144 if test "x$ac_cv_func_mkdtemp" = "xyes" ; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (overly) strict mkstemp" >&5
9146 $as_echo_n "checking for (overly) strict mkstemp... " >&6; }
9147 if test "$cross_compiling" = yes; then :
9148
9149                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9150 $as_echo "yes" >&6; }
9151                 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9152
9153
9154
9155 else
9156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h.  */
9158
9159 #include <stdlib.h>
9160 main() { char template[]="conftest.mkstemp-test";
9161 if (mkstemp(template) == -1)
9162         exit(1);
9163 unlink(template); exit(0);
9164 }
9165
9166 _ACEOF
9167 if ac_fn_c_try_run "$LINENO"; then :
9168
9169                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 $as_echo "no" >&6; }
9171
9172 else
9173
9174                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9175 $as_echo "yes" >&6; }
9176
9177 $as_echo "#define HAVE_STRICT_MKSTEMP 1" >>confdefs.h
9178
9179
9180 fi
9181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9182   conftest.$ac_objext conftest.beam conftest.$ac_ext
9183 fi
9184
9185 fi
9186
9187 if test ! -z "$check_for_openpty_ctty_bug"; then
9188         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openpty correctly handles controlling tty" >&5
9189 $as_echo_n "checking if openpty correctly handles controlling tty... " >&6; }
9190         if test "$cross_compiling" = yes; then :
9191
9192                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9193 $as_echo "cross-compiling" >&6; }
9194
9195
9196 else
9197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h.  */
9199
9200 #include <stdio.h>
9201 #include <sys/fcntl.h>
9202 #include <sys/types.h>
9203 #include <sys/wait.h>
9204
9205 int
9206 main()
9207 {
9208         pid_t pid;
9209         int fd, ptyfd, ttyfd, status;
9210
9211         pid = fork();
9212         if (pid < 0) {          /* failed */
9213                 exit(1);
9214         } else if (pid > 0) {   /* parent */
9215                 waitpid(pid, &status, 0);
9216                 if (WIFEXITED(status))
9217                         exit(WEXITSTATUS(status));
9218                 else
9219                         exit(2);
9220         } else {                /* child */
9221                 close(0); close(1); close(2);
9222                 setsid();
9223                 openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
9224                 fd = open("/dev/tty", O_RDWR | O_NOCTTY);
9225                 if (fd >= 0)
9226                         exit(3);        /* Acquired ctty: broken */
9227                 else
9228                         exit(0);        /* Did not acquire ctty: OK */
9229         }
9230 }
9231
9232 _ACEOF
9233 if ac_fn_c_try_run "$LINENO"; then :
9234
9235                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9236 $as_echo "yes" >&6; }
9237
9238 else
9239
9240                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 $as_echo "no" >&6; }
9242                         $as_echo "#define SSHD_ACQUIRES_CTTY 1" >>confdefs.h
9243
9244
9245 fi
9246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9247   conftest.$ac_objext conftest.beam conftest.$ac_ext
9248 fi
9249
9250 fi
9251
9252 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9253     test "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
9254         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9255 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9256         if test "$cross_compiling" = yes; then :
9257
9258                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9259 $as_echo "cross-compiling" >&6; }
9260
9261
9262 else
9263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h.  */
9265
9266 #include <stdio.h>
9267 #include <sys/socket.h>
9268 #include <netdb.h>
9269 #include <errno.h>
9270 #include <netinet/in.h>
9271
9272 #define TEST_PORT "2222"
9273
9274 int
9275 main(void)
9276 {
9277         int err, sock;
9278         struct addrinfo *gai_ai, *ai, hints;
9279         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9280
9281         memset(&hints, 0, sizeof(hints));
9282         hints.ai_family = PF_UNSPEC;
9283         hints.ai_socktype = SOCK_STREAM;
9284         hints.ai_flags = AI_PASSIVE;
9285
9286         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9287         if (err != 0) {
9288                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9289                 exit(1);
9290         }
9291
9292         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9293                 if (ai->ai_family != AF_INET6)
9294                         continue;
9295
9296                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9297                     sizeof(ntop), strport, sizeof(strport),
9298                     NI_NUMERICHOST|NI_NUMERICSERV);
9299
9300                 if (err != 0) {
9301                         if (err == EAI_SYSTEM)
9302                                 perror("getnameinfo EAI_SYSTEM");
9303                         else
9304                                 fprintf(stderr, "getnameinfo failed: %s\n",
9305                                     gai_strerror(err));
9306                         exit(2);
9307                 }
9308
9309                 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
9310                 if (sock < 0)
9311                         perror("socket");
9312                 if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
9313                         if (errno == EBADF)
9314                                 exit(3);
9315                 }
9316         }
9317         exit(0);
9318 }
9319
9320 _ACEOF
9321 if ac_fn_c_try_run "$LINENO"; then :
9322
9323                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9324 $as_echo "yes" >&6; }
9325
9326 else
9327
9328                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9330                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9331
9332
9333 fi
9334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9335   conftest.$ac_objext conftest.beam conftest.$ac_ext
9336 fi
9337
9338 fi
9339
9340 if test "x$ac_cv_func_getaddrinfo" = "xyes" && \
9341     test "x$check_for_aix_broken_getaddrinfo" = "x1"; then
9342         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
9343 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
9344         if test "$cross_compiling" = yes; then :
9345
9346                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
9347 $as_echo "cross-compiling" >&6; }
9348
9349
9350 else
9351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h.  */
9353
9354 #include <stdio.h>
9355 #include <sys/socket.h>
9356 #include <netdb.h>
9357 #include <errno.h>
9358 #include <netinet/in.h>
9359
9360 #define TEST_PORT "2222"
9361
9362 int
9363 main(void)
9364 {
9365         int err, sock;
9366         struct addrinfo *gai_ai, *ai, hints;
9367         char ntop[NI_MAXHOST], strport[NI_MAXSERV], *name = NULL;
9368
9369         memset(&hints, 0, sizeof(hints));
9370         hints.ai_family = PF_UNSPEC;
9371         hints.ai_socktype = SOCK_STREAM;
9372         hints.ai_flags = AI_PASSIVE;
9373
9374         err = getaddrinfo(name, TEST_PORT, &hints, &gai_ai);
9375         if (err != 0) {
9376                 fprintf(stderr, "getaddrinfo failed (%s)", gai_strerror(err));
9377                 exit(1);
9378         }
9379
9380         for (ai = gai_ai; ai != NULL; ai = ai->ai_next) {
9381                 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
9382                         continue;
9383
9384                 err = getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop,
9385                     sizeof(ntop), strport, sizeof(strport),
9386                     NI_NUMERICHOST|NI_NUMERICSERV);
9387
9388                 if (ai->ai_family == AF_INET && err != 0) {
9389                         perror("getnameinfo");
9390                         exit(2);
9391                 }
9392         }
9393         exit(0);
9394 }
9395
9396 _ACEOF
9397 if ac_fn_c_try_run "$LINENO"; then :
9398
9399                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9400 $as_echo "yes" >&6; }
9401
9402 $as_echo "#define AIX_GETNAMEINFO_HACK 1" >>confdefs.h
9403
9404
9405 else
9406
9407                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408 $as_echo "no" >&6; }
9409                         $as_echo "#define BROKEN_GETADDRINFO 1" >>confdefs.h
9410
9411
9412 fi
9413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9414   conftest.$ac_objext conftest.beam conftest.$ac_ext
9415 fi
9416
9417 fi
9418
9419 if test "x$check_for_conflicting_getspnam" = "x1"; then
9420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for conflicting getspnam in shadow.h" >&5
9421 $as_echo_n "checking for conflicting getspnam in shadow.h... " >&6; }
9422         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h.  */
9424
9425 #include <shadow.h>
9426 int main(void) {exit(0);}
9427
9428 _ACEOF
9429 if ac_fn_c_try_compile "$LINENO"; then :
9430
9431                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433
9434 else
9435
9436                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9437 $as_echo "yes" >&6; }
9438
9439 $as_echo "#define GETSPNAM_CONFLICTING_DEFS 1" >>confdefs.h
9440
9441
9442
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 fi
9446
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9448 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9449 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
9450   $as_echo_n "(cached) " >&6
9451 else
9452   # Use it with a single arg.
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h.  */
9455 $ac_includes_default
9456 int
9457 main ()
9458 {
9459 getpgrp (0);
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 if ac_fn_c_try_compile "$LINENO"; then :
9465   ac_cv_func_getpgrp_void=no
9466 else
9467   ac_cv_func_getpgrp_void=yes
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
9473 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
9474 if test $ac_cv_func_getpgrp_void = yes; then
9475
9476 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9477
9478 fi
9479
9480
9481 # Search for OpenSSL
9482 saved_CPPFLAGS="$CPPFLAGS"
9483 saved_LDFLAGS="$LDFLAGS"
9484
9485 # Check whether --with-ssl-dir was given.
9486 if test "${with_ssl_dir+set}" = set; then :
9487   withval=$with_ssl_dir;
9488                 if test "x$withval" != "xno" ; then
9489                         case "$withval" in
9490                                 # Relative paths
9491                                 ./*|../*)       withval="`pwd`/$withval"
9492                         esac
9493                         if test -d "$withval/lib"; then
9494                                 if test -n "${need_dash_r}"; then
9495                                         LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
9496                                 else
9497                                         LDFLAGS="-L${withval}/lib ${LDFLAGS}"
9498                                 fi
9499                         else
9500                                 if test -n "${need_dash_r}"; then
9501                                         LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}"
9502                                 else
9503                                         LDFLAGS="-L${withval} ${LDFLAGS}"
9504                                 fi
9505                         fi
9506                         if test -d "$withval/include"; then
9507                                 CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
9508                         else
9509                                 CPPFLAGS="-I${withval} ${CPPFLAGS}"
9510                         fi
9511                 fi
9512
9513
9514 fi
9515
9516 LIBS="/usr/lib/libcrypto.a -ldl $LIBS"
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h.  */
9519
9520 /* Override any GCC internal prototype to avoid an error.
9521    Use char because int might match the return type of a GCC
9522    builtin and then its argument prototype would still apply.  */
9523 #ifdef __cplusplus
9524 extern "C"
9525 #endif
9526 char RAND_add ();
9527 int
9528 main ()
9529 {
9530 return RAND_add ();
9531   ;
9532   return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536
9537 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
9538
9539 else
9540
9541                                 if test -n "${need_dash_r}"; then
9542                         LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib ${saved_LDFLAGS}"
9543                 else
9544                         LDFLAGS="-L/usr/local/ssl/lib ${saved_LDFLAGS}"
9545                 fi
9546                 CPPFLAGS="-I/usr/local/ssl/include ${saved_CPPFLAGS}"
9547                 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default"
9548 if test "x$ac_cv_header_openssl_opensslv_h" = x""yes; then :
9549
9550 else
9551   as_fn_error $? "*** OpenSSL headers missing - please install first or check config.log ***" "$LINENO" 5
9552 fi
9553
9554
9555                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h.  */
9557
9558 /* Override any GCC internal prototype to avoid an error.
9559    Use char because int might match the return type of a GCC
9560    builtin and then its argument prototype would still apply.  */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char RAND_add ();
9565 int
9566 main ()
9567 {
9568 return RAND_add ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_link "$LINENO"; then :
9574   $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
9575
9576 else
9577
9578                                 as_fn_error $? "*** Can't find recent OpenSSL libcrypto (see config.log for details) ***" "$LINENO" 5
9579
9580
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext \
9583     conftest$ac_exeext conftest.$ac_ext
9584
9585
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext \
9588     conftest$ac_exeext conftest.$ac_ext
9589
9590 # Determine OpenSSL header version
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL header version" >&5
9592 $as_echo_n "checking OpenSSL header version... " >&6; }
9593 if test "$cross_compiling" = yes; then :
9594
9595                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
9596 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
9597
9598
9599 else
9600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h.  */
9602
9603 #include <stdio.h>
9604 #include <string.h>
9605 #include <openssl/opensslv.h>
9606 #define DATA "conftest.sslincver"
9607 int main(void) {
9608         FILE *fd;
9609         int rc;
9610
9611         fd = fopen(DATA,"w");
9612         if(fd == NULL)
9613                 exit(1);
9614
9615         if ((rc = fprintf(fd ,"%x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
9616                 exit(1);
9617
9618         exit(0);
9619 }
9620
9621 _ACEOF
9622 if ac_fn_c_try_run "$LINENO"; then :
9623
9624                 ssl_header_ver=`cat conftest.sslincver`
9625                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_header_ver" >&5
9626 $as_echo "$ssl_header_ver" >&6; }
9627
9628 else
9629
9630                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9631 $as_echo "not found" >&6; }
9632                 as_fn_error $? "OpenSSL version header not found." "$LINENO" 5
9633
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 # Determine OpenSSL library version
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version" >&5
9642 $as_echo_n "checking OpenSSL library version... " >&6; }
9643 if test "$cross_compiling" = yes; then :
9644
9645                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
9646 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
9647
9648
9649 else
9650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h.  */
9652
9653 #include <stdio.h>
9654 #include <string.h>
9655 #include <openssl/opensslv.h>
9656 #include <openssl/crypto.h>
9657 #define DATA "conftest.ssllibver"
9658 int main(void) {
9659         FILE *fd;
9660         int rc;
9661
9662         fd = fopen(DATA,"w");
9663         if(fd == NULL)
9664                 exit(1);
9665
9666         if ((rc = fprintf(fd ,"%x (%s)\n", SSLeay(), SSLeay_version(SSLEAY_VERSION))) <0)
9667                 exit(1);
9668
9669         exit(0);
9670 }
9671
9672 _ACEOF
9673 if ac_fn_c_try_run "$LINENO"; then :
9674
9675                 ssl_library_ver=`cat conftest.ssllibver`
9676                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssl_library_ver" >&5
9677 $as_echo "$ssl_library_ver" >&6; }
9678
9679 else
9680
9681                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9682 $as_echo "not found" >&6; }
9683                 as_fn_error $? "OpenSSL library not found." "$LINENO" 5
9684
9685 fi
9686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9687   conftest.$ac_objext conftest.beam conftest.$ac_ext
9688 fi
9689
9690
9691
9692 # Check whether --with-openssl-header-check was given.
9693 if test "${with_openssl_header_check+set}" = set; then :
9694   withval=$with_openssl_header_check;   if test "x$withval" = "xno" ; then
9695                 openssl_check_nonfatal=1
9696            fi
9697
9698
9699 fi
9700
9701
9702 # Sanity check OpenSSL headers
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's headers match the library" >&5
9704 $as_echo_n "checking whether OpenSSL's headers match the library... " >&6; }
9705 if test "$cross_compiling" = yes; then :
9706
9707                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
9708 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
9709
9710
9711 else
9712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h.  */
9714
9715 #include <string.h>
9716 #include <openssl/opensslv.h>
9717 int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
9718
9719 _ACEOF
9720 if ac_fn_c_try_run "$LINENO"; then :
9721
9722                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9723 $as_echo "yes" >&6; }
9724
9725 else
9726
9727                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9729                 if test "x$openssl_check_nonfatal" = "x"; then
9730                         as_fn_error $? "Your OpenSSL headers do not match your
9731 library. Check config.log for details.
9732 If you are sure your installation is consistent, you can disable the check
9733 by running \"./configure --without-openssl-header-check\".
9734 Also see contrib/findssl.sh for help identifying header/library mismatches.
9735 " "$LINENO" 5
9736                 else
9737                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your OpenSSL headers do not match your
9738 library. Check config.log for details.
9739 Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
9740 $as_echo "$as_me: WARNING: Your OpenSSL headers do not match your
9741 library. Check config.log for details.
9742 Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
9743                 fi
9744
9745 fi
9746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9747   conftest.$ac_objext conftest.beam conftest.$ac_ext
9748 fi
9749
9750
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL functions will link" >&5
9752 $as_echo_n "checking if programs using OpenSSL functions will link... " >&6; }
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h.  */
9755
9756 #include <openssl/evp.h>
9757 int main(void) { SSLeay_add_all_algorithms(); }
9758
9759 _ACEOF
9760 if ac_fn_c_try_link "$LINENO"; then :
9761
9762                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763 $as_echo "yes" >&6; }
9764
9765 else
9766
9767                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9769                 saved_LIBS="$LIBS"
9770                 LIBS="$LIBS -ldl"
9771                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if programs using OpenSSL need -ldl" >&5
9772 $as_echo_n "checking if programs using OpenSSL need -ldl... " >&6; }
9773                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h.  */
9775
9776 #include <openssl/evp.h>
9777 int main(void) { SSLeay_add_all_algorithms(); }
9778
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"; then :
9781
9782                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9783 $as_echo "yes" >&6; }
9784
9785 else
9786
9787                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9789                                 LIBS="$saved_LIBS"
9790
9791
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext \
9794     conftest$ac_exeext conftest.$ac_ext
9795
9796
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext \
9799     conftest$ac_exeext conftest.$ac_ext
9800
9801
9802 # Check whether --with-ssl-engine was given.
9803 if test "${with_ssl_engine+set}" = set; then :
9804   withval=$with_ssl_engine;  if test "x$withval" != "xno" ; then
9805                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ENGINE support" >&5
9806 $as_echo_n "checking for OpenSSL ENGINE support... " >&6; }
9807                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h.  */
9809  #include <openssl/engine.h>
9810 int
9811 main ()
9812 {
9813
9814 ENGINE_load_builtin_engines();ENGINE_register_all_complete();
9815
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9822 $as_echo "yes" >&6; }
9823
9824 $as_echo "#define USE_OPENSSL_ENGINE 1" >>confdefs.h
9825
9826
9827 else
9828    as_fn_error $? "OpenSSL ENGINE support not found" "$LINENO" 5
9829
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832           fi
9833
9834 fi
9835
9836
9837 # Check for OpenSSL without EVP_aes_{192,256}_cbc
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has crippled AES support" >&5
9839 $as_echo_n "checking whether OpenSSL has crippled AES support... " >&6; }
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h.  */
9842
9843 #include <string.h>
9844 #include <openssl/evp.h>
9845 int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
9846
9847 _ACEOF
9848 if ac_fn_c_try_link "$LINENO"; then :
9849
9850                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9852
9853 else
9854
9855                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9856 $as_echo "yes" >&6; }
9857
9858 $as_echo "#define OPENSSL_LOBOTOMISED_AES 1" >>confdefs.h
9859
9860
9861
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext \
9864     conftest$ac_exeext conftest.$ac_ext
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EVP_DigestUpdate returns an int" >&5
9867 $as_echo_n "checking if EVP_DigestUpdate returns an int... " >&6; }
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h.  */
9870
9871 #include <string.h>
9872 #include <openssl/evp.h>
9873 int main(void) { if(EVP_DigestUpdate(NULL, NULL,0)) exit(0); }
9874
9875 _ACEOF
9876 if ac_fn_c_try_link "$LINENO"; then :
9877
9878                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9879 $as_echo "yes" >&6; }
9880
9881 else
9882
9883                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9885
9886 $as_echo "#define OPENSSL_EVP_DIGESTUPDATE_VOID 1" >>confdefs.h
9887
9888
9889
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext \
9892     conftest$ac_exeext conftest.$ac_ext
9893
9894 # Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
9895 # because the system crypt() is more featureful.
9896 if test "x$check_for_libcrypt_before" = "x1"; then
9897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
9898 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
9899 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
9900   $as_echo_n "(cached) " >&6
9901 else
9902   ac_check_lib_save_LIBS=$LIBS
9903 LIBS="-lcrypt  $LIBS"
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h.  */
9906
9907 /* Override any GCC internal prototype to avoid an error.
9908    Use char because int might match the return type of a GCC
9909    builtin and then its argument prototype would still apply.  */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 char crypt ();
9914 int
9915 main ()
9916 {
9917 return crypt ();
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 if ac_fn_c_try_link "$LINENO"; then :
9923   ac_cv_lib_crypt_crypt=yes
9924 else
9925   ac_cv_lib_crypt_crypt=no
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext \
9928     conftest$ac_exeext conftest.$ac_ext
9929 LIBS=$ac_check_lib_save_LIBS
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
9932 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
9933 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
9934   cat >>confdefs.h <<_ACEOF
9935 #define HAVE_LIBCRYPT 1
9936 _ACEOF
9937
9938   LIBS="-lcrypt $LIBS"
9939
9940 fi
9941
9942 fi
9943
9944 # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the
9945 # version in OpenSSL.
9946 if test "x$check_for_libcrypt_later" = "x1"; then
9947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
9948 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
9949 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
9950   $as_echo_n "(cached) " >&6
9951 else
9952   ac_check_lib_save_LIBS=$LIBS
9953 LIBS="-lcrypt  $LIBS"
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h.  */
9956
9957 /* Override any GCC internal prototype to avoid an error.
9958    Use char because int might match the return type of a GCC
9959    builtin and then its argument prototype would still apply.  */
9960 #ifdef __cplusplus
9961 extern "C"
9962 #endif
9963 char crypt ();
9964 int
9965 main ()
9966 {
9967 return crypt ();
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9973   ac_cv_lib_crypt_crypt=yes
9974 else
9975   ac_cv_lib_crypt_crypt=no
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext \
9978     conftest$ac_exeext conftest.$ac_ext
9979 LIBS=$ac_check_lib_save_LIBS
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
9982 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
9983 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
9984   LIBS="$LIBS -lcrypt"
9985 fi
9986
9987 fi
9988
9989 # Search for SHA256 support in libc and/or OpenSSL
9990 for ac_func in SHA256_Update EVP_sha256
9991 do :
9992   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9995   cat >>confdefs.h <<_ACEOF
9996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9997 _ACEOF
9998
9999 fi
10000 done
10001
10002
10003 saved_LIBS="$LIBS"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia_openinfo in -liaf" >&5
10005 $as_echo_n "checking for ia_openinfo in -liaf... " >&6; }
10006 if test "${ac_cv_lib_iaf_ia_openinfo+set}" = set; then :
10007   $as_echo_n "(cached) " >&6
10008 else
10009   ac_check_lib_save_LIBS=$LIBS
10010 LIBS="-liaf  $LIBS"
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h.  */
10013
10014 /* Override any GCC internal prototype to avoid an error.
10015    Use char because int might match the return type of a GCC
10016    builtin and then its argument prototype would still apply.  */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char ia_openinfo ();
10021 int
10022 main ()
10023 {
10024 return ia_openinfo ();
10025   ;
10026   return 0;
10027 }
10028 _ACEOF
10029 if ac_fn_c_try_link "$LINENO"; then :
10030   ac_cv_lib_iaf_ia_openinfo=yes
10031 else
10032   ac_cv_lib_iaf_ia_openinfo=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035     conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iaf_ia_openinfo" >&5
10039 $as_echo "$ac_cv_lib_iaf_ia_openinfo" >&6; }
10040 if test "x$ac_cv_lib_iaf_ia_openinfo" = x""yes; then :
10041
10042         LIBS="$LIBS -liaf"
10043         for ac_func in set_id
10044 do :
10045   ac_fn_c_check_func "$LINENO" "set_id" "ac_cv_func_set_id"
10046 if test "x$ac_cv_func_set_id" = x""yes; then :
10047   cat >>confdefs.h <<_ACEOF
10048 #define HAVE_SET_ID 1
10049 _ACEOF
10050  SSHDLIBS="$SSHDLIBS -liaf"
10051
10052 $as_echo "#define HAVE_LIBIAF 1" >>confdefs.h
10053
10054
10055 fi
10056 done
10057
10058
10059 fi
10060
10061 LIBS="$saved_LIBS"
10062
10063 ### Configure cryptographic random number support
10064
10065 # Check wheter OpenSSL seeds itself
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL's PRNG is internally seeded" >&5
10067 $as_echo_n "checking whether OpenSSL's PRNG is internally seeded... " >&6; }
10068 if test "$cross_compiling" = yes; then :
10069
10070                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: assuming yes" >&5
10071 $as_echo "$as_me: WARNING: cross compiling: assuming yes" >&2;}
10072                 # This is safe, since all recent OpenSSL versions will
10073                 # complain at runtime if not seeded correctly.
10074                 OPENSSL_SEEDS_ITSELF=yes
10075
10076
10077 else
10078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h.  */
10080
10081 #include <string.h>
10082 #include <openssl/rand.h>
10083 int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
10084
10085 _ACEOF
10086 if ac_fn_c_try_run "$LINENO"; then :
10087
10088                 OPENSSL_SEEDS_ITSELF=yes
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                 # Default to use of the rand helper if OpenSSL doesn't
10097                 # seed itself
10098                 USE_RAND_HELPER=yes
10099
10100 fi
10101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10102   conftest.$ac_objext conftest.beam conftest.$ac_ext
10103 fi
10104
10105
10106 # Check for PAM libs
10107 PAM_MSG="no"
10108
10109 # Check whether --with-pam was given.
10110 if test "${with_pam+set}" = set; then :
10111   withval=$with_pam;
10112                 if test "x$withval" != "xno" ; then
10113                         if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
10114                            test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
10115                                 as_fn_error $? "PAM headers not found" "$LINENO" 5
10116                         fi
10117
10118                         saved_LIBS="$LIBS"
10119                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldl  $LIBS"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h.  */
10128
10129 /* Override any GCC internal prototype to avoid an error.
10130    Use char because int might match the return type of a GCC
10131    builtin and then its argument prototype would still apply.  */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char dlopen ();
10136 int
10137 main ()
10138 {
10139 return dlopen ();
10140   ;
10141   return 0;
10142 }
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145   ac_cv_lib_dl_dlopen=yes
10146 else
10147   ac_cv_lib_dl_dlopen=no
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext \
10150     conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10155 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10156   cat >>confdefs.h <<_ACEOF
10157 #define HAVE_LIBDL 1
10158 _ACEOF
10159
10160   LIBS="-ldl $LIBS"
10161
10162 fi
10163
10164                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
10165 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
10166 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   ac_check_lib_save_LIBS=$LIBS
10170 LIBS="-lpam  $LIBS"
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h.  */
10173
10174 /* Override any GCC internal prototype to avoid an error.
10175    Use char because int might match the return type of a GCC
10176    builtin and then its argument prototype would still apply.  */
10177 #ifdef __cplusplus
10178 extern "C"
10179 #endif
10180 char pam_set_item ();
10181 int
10182 main ()
10183 {
10184 return pam_set_item ();
10185   ;
10186   return 0;
10187 }
10188 _ACEOF
10189 if ac_fn_c_try_link "$LINENO"; then :
10190   ac_cv_lib_pam_pam_set_item=yes
10191 else
10192   ac_cv_lib_pam_pam_set_item=no
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext \
10195     conftest$ac_exeext conftest.$ac_ext
10196 LIBS=$ac_check_lib_save_LIBS
10197 fi
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
10199 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
10200 if test "x$ac_cv_lib_pam_pam_set_item" = x""yes; then :
10201   cat >>confdefs.h <<_ACEOF
10202 #define HAVE_LIBPAM 1
10203 _ACEOF
10204
10205   LIBS="-lpam $LIBS"
10206
10207 else
10208   as_fn_error $? "*** libpam missing" "$LINENO" 5
10209 fi
10210
10211                         for ac_func in pam_getenvlist
10212 do :
10213   ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
10214 if test "x$ac_cv_func_pam_getenvlist" = x""yes; then :
10215   cat >>confdefs.h <<_ACEOF
10216 #define HAVE_PAM_GETENVLIST 1
10217 _ACEOF
10218
10219 fi
10220 done
10221
10222                         for ac_func in pam_putenv
10223 do :
10224   ac_fn_c_check_func "$LINENO" "pam_putenv" "ac_cv_func_pam_putenv"
10225 if test "x$ac_cv_func_pam_putenv" = x""yes; then :
10226   cat >>confdefs.h <<_ACEOF
10227 #define HAVE_PAM_PUTENV 1
10228 _ACEOF
10229
10230 fi
10231 done
10232
10233                         LIBS="$saved_LIBS"
10234
10235                         PAM_MSG="yes"
10236
10237                         SSHDLIBS="$SSHDLIBS -lpam"
10238
10239 $as_echo "#define USE_PAM 1" >>confdefs.h
10240
10241
10242                         if test $ac_cv_lib_dl_dlopen = yes; then
10243                                 case "$LIBS" in
10244                                 *-ldl*)
10245                                         # libdl already in LIBS
10246                                         ;;
10247                                 *)
10248                                         SSHDLIBS="$SSHDLIBS -ldl"
10249                                         ;;
10250                                 esac
10251                         fi
10252                 fi
10253
10254
10255 fi
10256
10257
10258 # Check for older PAM
10259 if test "x$PAM_MSG" = "xyes" ; then
10260         # Check PAM strerror arguments (old PAM)
10261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror takes only one argument" >&5
10262 $as_echo_n "checking whether pam_strerror takes only one argument... " >&6; }
10263         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h.  */
10265
10266 #include <stdlib.h>
10267 #if defined(HAVE_SECURITY_PAM_APPL_H)
10268 #include <security/pam_appl.h>
10269 #elif defined (HAVE_PAM_PAM_APPL_H)
10270 #include <pam/pam_appl.h>
10271 #endif
10272
10273 int
10274 main ()
10275 {
10276 (void)pam_strerror((pam_handle_t *)NULL, -1);
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 if ac_fn_c_try_compile "$LINENO"; then :
10282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10284 else
10285
10286
10287 $as_echo "#define HAVE_OLD_PAM 1" >>confdefs.h
10288
10289                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10290 $as_echo "yes" >&6; }
10291                         PAM_MSG="yes (old library)"
10292
10293
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 fi
10297
10298 # Do we want to force the use of the rand helper?
10299
10300 # Check whether --with-rand-helper was given.
10301 if test "${with_rand_helper+set}" = set; then :
10302   withval=$with_rand_helper;
10303                 if test "x$withval" = "xno" ; then
10304                         # Force use of OpenSSL's internal RNG, even if
10305                         # the previous test showed it to be unseeded.
10306                         if test -z "$OPENSSL_SEEDS_ITSELF" ; then
10307                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&5
10308 $as_echo "$as_me: WARNING: *** Forcing use of OpenSSL's non-self-seeding PRNG" >&2;}
10309                                 OPENSSL_SEEDS_ITSELF=yes
10310                                 USE_RAND_HELPER=""
10311                         fi
10312                 else
10313                         USE_RAND_HELPER=yes
10314                 fi
10315
10316 fi
10317
10318
10319 # Which randomness source do we use?
10320 if test ! -z "$OPENSSL_SEEDS_ITSELF" && test -z "$USE_RAND_HELPER" ; then
10321         # OpenSSL only
10322
10323 $as_echo "#define OPENSSL_PRNG_ONLY 1" >>confdefs.h
10324
10325         RAND_MSG="OpenSSL internal ONLY"
10326         INSTALL_SSH_RAND_HELPER=""
10327 elif test ! -z "$USE_RAND_HELPER" ; then
10328         # install rand helper
10329         RAND_MSG="ssh-rand-helper"
10330         INSTALL_SSH_RAND_HELPER="yes"
10331 fi
10332
10333
10334 ### Configuration of ssh-rand-helper
10335
10336 # PRNGD TCP socket
10337
10338 # Check whether --with-prngd-port was given.
10339 if test "${with_prngd_port+set}" = set; then :
10340   withval=$with_prngd_port;
10341                 case "$withval" in
10342                 no)
10343                         withval=""
10344                         ;;
10345                 [0-9]*)
10346                         ;;
10347                 *)
10348                         as_fn_error $? "You must specify a numeric port number for --with-prngd-port" "$LINENO" 5
10349                         ;;
10350                 esac
10351                 if test ! -z "$withval" ; then
10352                         PRNGD_PORT="$withval"
10353
10354 cat >>confdefs.h <<_ACEOF
10355 #define PRNGD_PORT $PRNGD_PORT
10356 _ACEOF
10357
10358                 fi
10359
10360
10361 fi
10362
10363
10364 # PRNGD Unix domain socket
10365
10366 # Check whether --with-prngd-socket was given.
10367 if test "${with_prngd_socket+set}" = set; then :
10368   withval=$with_prngd_socket;
10369                 case "$withval" in
10370                 yes)
10371                         withval="/var/run/egd-pool"
10372                         ;;
10373                 no)
10374                         withval=""
10375                         ;;
10376                 /*)
10377                         ;;
10378                 *)
10379                         as_fn_error $? "You must specify an absolute path to the entropy socket" "$LINENO" 5
10380                         ;;
10381                 esac
10382
10383                 if test ! -z "$withval" ; then
10384                         if test ! -z "$PRNGD_PORT" ; then
10385                                 as_fn_error $? "You may not specify both a PRNGD/EGD port and socket" "$LINENO" 5
10386                         fi
10387                         if test ! -r "$withval" ; then
10388                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Entropy socket is not readable" >&5
10389 $as_echo "$as_me: WARNING: Entropy socket is not readable" >&2;}
10390                         fi
10391                         PRNGD_SOCKET="$withval"
10392
10393 cat >>confdefs.h <<_ACEOF
10394 #define PRNGD_SOCKET "$PRNGD_SOCKET"
10395 _ACEOF
10396
10397                 fi
10398
10399 else
10400
10401                 # Check for existing socket only if we don't have a random device already
10402                 if test "$USE_RAND_HELPER" = yes ; then
10403                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRNGD/EGD socket" >&5
10404 $as_echo_n "checking for PRNGD/EGD socket... " >&6; }
10405                         # Insert other locations here
10406                         for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
10407                                 if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
10408                                         PRNGD_SOCKET="$sock"
10409                                         cat >>confdefs.h <<_ACEOF
10410 #define PRNGD_SOCKET "$PRNGD_SOCKET"
10411 _ACEOF
10412
10413                                         break;
10414                                 fi
10415                         done
10416                         if test ! -z "$PRNGD_SOCKET" ; then
10417                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRNGD_SOCKET" >&5
10418 $as_echo "$PRNGD_SOCKET" >&6; }
10419                         else
10420                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10421 $as_echo "not found" >&6; }
10422                         fi
10423                 fi
10424
10425
10426 fi
10427
10428
10429 # Change default command timeout for hashing entropy source
10430 entropy_timeout=200
10431
10432 # Check whether --with-entropy-timeout was given.
10433 if test "${with_entropy_timeout+set}" = set; then :
10434   withval=$with_entropy_timeout;
10435                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
10436                     test "x${withval}" != "xyes"; then
10437                         entropy_timeout=$withval
10438                 fi
10439
10440
10441 fi
10442
10443
10444 cat >>confdefs.h <<_ACEOF
10445 #define ENTROPY_TIMEOUT_MSEC $entropy_timeout
10446 _ACEOF
10447
10448
10449 SSH_PRIVSEP_USER=sshd
10450
10451 # Check whether --with-privsep-user was given.
10452 if test "${with_privsep_user+set}" = set; then :
10453   withval=$with_privsep_user;
10454                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
10455                     test "x${withval}" != "xyes"; then
10456                         SSH_PRIVSEP_USER=$withval
10457                 fi
10458
10459
10460 fi
10461
10462
10463 cat >>confdefs.h <<_ACEOF
10464 #define SSH_PRIVSEP_USER "$SSH_PRIVSEP_USER"
10465 _ACEOF
10466
10467
10468
10469 # We do this little dance with the search path to insure
10470 # that programs that we select for use by installed programs
10471 # (which may be run by the super-user) come from trusted
10472 # locations before they come from the user's private area.
10473 # This should help avoid accidentally configuring some
10474 # random version of a program in someone's personal bin.
10475
10476 OPATH=$PATH
10477 PATH=/bin:/usr/bin
10478 test -h /bin 2> /dev/null && PATH=/usr/bin
10479 test -d /sbin && PATH=$PATH:/sbin
10480 test -d /usr/sbin && PATH=$PATH:/usr/sbin
10481 PATH=$PATH:/etc:$OPATH
10482
10483 # These programs are used by the command hashing source to gather entropy
10484
10485         # Extract the first word of "ls", so it can be a program name with args.
10486 set dummy ls; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if test "${ac_cv_path_PROG_LS+set}" = set; then :
10490   $as_echo_n "(cached) " >&6
10491 else
10492   case $PROG_LS in
10493   [\\/]* | ?:[\\/]*)
10494   ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path.
10495   ;;
10496   *)
10497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10499 do
10500   IFS=$as_save_IFS
10501   test -z "$as_dir" && as_dir=.
10502     for ac_exec_ext in '' $ac_executable_extensions; do
10503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10504     ac_cv_path_PROG_LS="$as_dir/$ac_word$ac_exec_ext"
10505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10506     break 2
10507   fi
10508 done
10509   done
10510 IFS=$as_save_IFS
10511
10512   ;;
10513 esac
10514 fi
10515 PROG_LS=$ac_cv_path_PROG_LS
10516 if test -n "$PROG_LS"; then
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LS" >&5
10518 $as_echo "$PROG_LS" >&6; }
10519 else
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10522 fi
10523
10524
10525         if test -z "$PROG_LS" ; then
10526                 PROG_LS="undef"
10527         fi
10528
10529
10530
10531         # Extract the first word of "netstat", so it can be a program name with args.
10532 set dummy netstat; ac_word=$2
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534 $as_echo_n "checking for $ac_word... " >&6; }
10535 if test "${ac_cv_path_PROG_NETSTAT+set}" = set; then :
10536   $as_echo_n "(cached) " >&6
10537 else
10538   case $PROG_NETSTAT in
10539   [\\/]* | ?:[\\/]*)
10540   ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path.
10541   ;;
10542   *)
10543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10545 do
10546   IFS=$as_save_IFS
10547   test -z "$as_dir" && as_dir=.
10548     for ac_exec_ext in '' $ac_executable_extensions; do
10549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10550     ac_cv_path_PROG_NETSTAT="$as_dir/$ac_word$ac_exec_ext"
10551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552     break 2
10553   fi
10554 done
10555   done
10556 IFS=$as_save_IFS
10557
10558   ;;
10559 esac
10560 fi
10561 PROG_NETSTAT=$ac_cv_path_PROG_NETSTAT
10562 if test -n "$PROG_NETSTAT"; then
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_NETSTAT" >&5
10564 $as_echo "$PROG_NETSTAT" >&6; }
10565 else
10566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10568 fi
10569
10570
10571         if test -z "$PROG_NETSTAT" ; then
10572                 PROG_NETSTAT="undef"
10573         fi
10574
10575
10576
10577         # Extract the first word of "arp", so it can be a program name with args.
10578 set dummy arp; ac_word=$2
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580 $as_echo_n "checking for $ac_word... " >&6; }
10581 if test "${ac_cv_path_PROG_ARP+set}" = set; then :
10582   $as_echo_n "(cached) " >&6
10583 else
10584   case $PROG_ARP in
10585   [\\/]* | ?:[\\/]*)
10586   ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path.
10587   ;;
10588   *)
10589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in $PATH
10591 do
10592   IFS=$as_save_IFS
10593   test -z "$as_dir" && as_dir=.
10594     for ac_exec_ext in '' $ac_executable_extensions; do
10595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596     ac_cv_path_PROG_ARP="$as_dir/$ac_word$ac_exec_ext"
10597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10598     break 2
10599   fi
10600 done
10601   done
10602 IFS=$as_save_IFS
10603
10604   ;;
10605 esac
10606 fi
10607 PROG_ARP=$ac_cv_path_PROG_ARP
10608 if test -n "$PROG_ARP"; then
10609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_ARP" >&5
10610 $as_echo "$PROG_ARP" >&6; }
10611 else
10612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615
10616
10617         if test -z "$PROG_ARP" ; then
10618                 PROG_ARP="undef"
10619         fi
10620
10621
10622
10623         # Extract the first word of "ifconfig", so it can be a program name with args.
10624 set dummy ifconfig; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_path_PROG_IFCONFIG+set}" = set; then :
10628   $as_echo_n "(cached) " >&6
10629 else
10630   case $PROG_IFCONFIG in
10631   [\\/]* | ?:[\\/]*)
10632   ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path.
10633   ;;
10634   *)
10635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10636 for as_dir in $PATH
10637 do
10638   IFS=$as_save_IFS
10639   test -z "$as_dir" && as_dir=.
10640     for ac_exec_ext in '' $ac_executable_extensions; do
10641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10642     ac_cv_path_PROG_IFCONFIG="$as_dir/$ac_word$ac_exec_ext"
10643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10644     break 2
10645   fi
10646 done
10647   done
10648 IFS=$as_save_IFS
10649
10650   ;;
10651 esac
10652 fi
10653 PROG_IFCONFIG=$ac_cv_path_PROG_IFCONFIG
10654 if test -n "$PROG_IFCONFIG"; then
10655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IFCONFIG" >&5
10656 $as_echo "$PROG_IFCONFIG" >&6; }
10657 else
10658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 $as_echo "no" >&6; }
10660 fi
10661
10662
10663         if test -z "$PROG_IFCONFIG" ; then
10664                 PROG_IFCONFIG="undef"
10665         fi
10666
10667
10668
10669         # Extract the first word of "jstat", so it can be a program name with args.
10670 set dummy jstat; ac_word=$2
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672 $as_echo_n "checking for $ac_word... " >&6; }
10673 if test "${ac_cv_path_PROG_JSTAT+set}" = set; then :
10674   $as_echo_n "(cached) " >&6
10675 else
10676   case $PROG_JSTAT in
10677   [\\/]* | ?:[\\/]*)
10678   ac_cv_path_PROG_JSTAT="$PROG_JSTAT" # Let the user override the test with a path.
10679   ;;
10680   *)
10681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10683 do
10684   IFS=$as_save_IFS
10685   test -z "$as_dir" && as_dir=.
10686     for ac_exec_ext in '' $ac_executable_extensions; do
10687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10688     ac_cv_path_PROG_JSTAT="$as_dir/$ac_word$ac_exec_ext"
10689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10690     break 2
10691   fi
10692 done
10693   done
10694 IFS=$as_save_IFS
10695
10696   ;;
10697 esac
10698 fi
10699 PROG_JSTAT=$ac_cv_path_PROG_JSTAT
10700 if test -n "$PROG_JSTAT"; then
10701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_JSTAT" >&5
10702 $as_echo "$PROG_JSTAT" >&6; }
10703 else
10704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10706 fi
10707
10708
10709         if test -z "$PROG_JSTAT" ; then
10710                 PROG_JSTAT="undef"
10711         fi
10712
10713
10714
10715         # Extract the first word of "ps", so it can be a program name with args.
10716 set dummy ps; ac_word=$2
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718 $as_echo_n "checking for $ac_word... " >&6; }
10719 if test "${ac_cv_path_PROG_PS+set}" = set; then :
10720   $as_echo_n "(cached) " >&6
10721 else
10722   case $PROG_PS in
10723   [\\/]* | ?:[\\/]*)
10724   ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path.
10725   ;;
10726   *)
10727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10729 do
10730   IFS=$as_save_IFS
10731   test -z "$as_dir" && as_dir=.
10732     for ac_exec_ext in '' $ac_executable_extensions; do
10733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734     ac_cv_path_PROG_PS="$as_dir/$ac_word$ac_exec_ext"
10735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736     break 2
10737   fi
10738 done
10739   done
10740 IFS=$as_save_IFS
10741
10742   ;;
10743 esac
10744 fi
10745 PROG_PS=$ac_cv_path_PROG_PS
10746 if test -n "$PROG_PS"; then
10747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_PS" >&5
10748 $as_echo "$PROG_PS" >&6; }
10749 else
10750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; }
10752 fi
10753
10754
10755         if test -z "$PROG_PS" ; then
10756                 PROG_PS="undef"
10757         fi
10758
10759
10760
10761         # Extract the first word of "sar", so it can be a program name with args.
10762 set dummy sar; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if test "${ac_cv_path_PROG_SAR+set}" = set; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   case $PROG_SAR in
10769   [\\/]* | ?:[\\/]*)
10770   ac_cv_path_PROG_SAR="$PROG_SAR" # Let the user override the test with a path.
10771   ;;
10772   *)
10773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774 for as_dir in $PATH
10775 do
10776   IFS=$as_save_IFS
10777   test -z "$as_dir" && as_dir=.
10778     for ac_exec_ext in '' $ac_executable_extensions; do
10779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10780     ac_cv_path_PROG_SAR="$as_dir/$ac_word$ac_exec_ext"
10781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10782     break 2
10783   fi
10784 done
10785   done
10786 IFS=$as_save_IFS
10787
10788   ;;
10789 esac
10790 fi
10791 PROG_SAR=$ac_cv_path_PROG_SAR
10792 if test -n "$PROG_SAR"; then
10793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SAR" >&5
10794 $as_echo "$PROG_SAR" >&6; }
10795 else
10796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10798 fi
10799
10800
10801         if test -z "$PROG_SAR" ; then
10802                 PROG_SAR="undef"
10803         fi
10804
10805
10806
10807         # Extract the first word of "w", so it can be a program name with args.
10808 set dummy w; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if test "${ac_cv_path_PROG_W+set}" = set; then :
10812   $as_echo_n "(cached) " >&6
10813 else
10814   case $PROG_W in
10815   [\\/]* | ?:[\\/]*)
10816   ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path.
10817   ;;
10818   *)
10819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820 for as_dir in $PATH
10821 do
10822   IFS=$as_save_IFS
10823   test -z "$as_dir" && as_dir=.
10824     for ac_exec_ext in '' $ac_executable_extensions; do
10825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10826     ac_cv_path_PROG_W="$as_dir/$ac_word$ac_exec_ext"
10827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10828     break 2
10829   fi
10830 done
10831   done
10832 IFS=$as_save_IFS
10833
10834   ;;
10835 esac
10836 fi
10837 PROG_W=$ac_cv_path_PROG_W
10838 if test -n "$PROG_W"; then
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_W" >&5
10840 $as_echo "$PROG_W" >&6; }
10841 else
10842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10844 fi
10845
10846
10847         if test -z "$PROG_W" ; then
10848                 PROG_W="undef"
10849         fi
10850
10851
10852
10853         # Extract the first word of "who", so it can be a program name with args.
10854 set dummy who; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856 $as_echo_n "checking for $ac_word... " >&6; }
10857 if test "${ac_cv_path_PROG_WHO+set}" = set; then :
10858   $as_echo_n "(cached) " >&6
10859 else
10860   case $PROG_WHO in
10861   [\\/]* | ?:[\\/]*)
10862   ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path.
10863   ;;
10864   *)
10865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH
10867 do
10868   IFS=$as_save_IFS
10869   test -z "$as_dir" && as_dir=.
10870     for ac_exec_ext in '' $ac_executable_extensions; do
10871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872     ac_cv_path_PROG_WHO="$as_dir/$ac_word$ac_exec_ext"
10873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10874     break 2
10875   fi
10876 done
10877   done
10878 IFS=$as_save_IFS
10879
10880   ;;
10881 esac
10882 fi
10883 PROG_WHO=$ac_cv_path_PROG_WHO
10884 if test -n "$PROG_WHO"; then
10885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_WHO" >&5
10886 $as_echo "$PROG_WHO" >&6; }
10887 else
10888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10890 fi
10891
10892
10893         if test -z "$PROG_WHO" ; then
10894                 PROG_WHO="undef"
10895         fi
10896
10897
10898
10899         # Extract the first word of "last", so it can be a program name with args.
10900 set dummy last; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if test "${ac_cv_path_PROG_LAST+set}" = set; then :
10904   $as_echo_n "(cached) " >&6
10905 else
10906   case $PROG_LAST in
10907   [\\/]* | ?:[\\/]*)
10908   ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path.
10909   ;;
10910   *)
10911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10913 do
10914   IFS=$as_save_IFS
10915   test -z "$as_dir" && as_dir=.
10916     for ac_exec_ext in '' $ac_executable_extensions; do
10917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10918     ac_cv_path_PROG_LAST="$as_dir/$ac_word$ac_exec_ext"
10919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10920     break 2
10921   fi
10922 done
10923   done
10924 IFS=$as_save_IFS
10925
10926   ;;
10927 esac
10928 fi
10929 PROG_LAST=$ac_cv_path_PROG_LAST
10930 if test -n "$PROG_LAST"; then
10931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LAST" >&5
10932 $as_echo "$PROG_LAST" >&6; }
10933 else
10934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 fi
10937
10938
10939         if test -z "$PROG_LAST" ; then
10940                 PROG_LAST="undef"
10941         fi
10942
10943
10944
10945         # Extract the first word of "lastlog", so it can be a program name with args.
10946 set dummy lastlog; ac_word=$2
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948 $as_echo_n "checking for $ac_word... " >&6; }
10949 if test "${ac_cv_path_PROG_LASTLOG+set}" = set; then :
10950   $as_echo_n "(cached) " >&6
10951 else
10952   case $PROG_LASTLOG in
10953   [\\/]* | ?:[\\/]*)
10954   ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path.
10955   ;;
10956   *)
10957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958 for as_dir in $PATH
10959 do
10960   IFS=$as_save_IFS
10961   test -z "$as_dir" && as_dir=.
10962     for ac_exec_ext in '' $ac_executable_extensions; do
10963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964     ac_cv_path_PROG_LASTLOG="$as_dir/$ac_word$ac_exec_ext"
10965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10966     break 2
10967   fi
10968 done
10969   done
10970 IFS=$as_save_IFS
10971
10972   ;;
10973 esac
10974 fi
10975 PROG_LASTLOG=$ac_cv_path_PROG_LASTLOG
10976 if test -n "$PROG_LASTLOG"; then
10977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_LASTLOG" >&5
10978 $as_echo "$PROG_LASTLOG" >&6; }
10979 else
10980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 fi
10983
10984
10985         if test -z "$PROG_LASTLOG" ; then
10986                 PROG_LASTLOG="undef"
10987         fi
10988
10989
10990
10991         # Extract the first word of "df", so it can be a program name with args.
10992 set dummy df; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_path_PROG_DF+set}" = set; then :
10996   $as_echo_n "(cached) " >&6
10997 else
10998   case $PROG_DF in
10999   [\\/]* | ?:[\\/]*)
11000   ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path.
11001   ;;
11002   *)
11003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11005 do
11006   IFS=$as_save_IFS
11007   test -z "$as_dir" && as_dir=.
11008     for ac_exec_ext in '' $ac_executable_extensions; do
11009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010     ac_cv_path_PROG_DF="$as_dir/$ac_word$ac_exec_ext"
11011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012     break 2
11013   fi
11014 done
11015   done
11016 IFS=$as_save_IFS
11017
11018   ;;
11019 esac
11020 fi
11021 PROG_DF=$ac_cv_path_PROG_DF
11022 if test -n "$PROG_DF"; then
11023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_DF" >&5
11024 $as_echo "$PROG_DF" >&6; }
11025 else
11026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11028 fi
11029
11030
11031         if test -z "$PROG_DF" ; then
11032                 PROG_DF="undef"
11033         fi
11034
11035
11036
11037         # Extract the first word of "vmstat", so it can be a program name with args.
11038 set dummy vmstat; ac_word=$2
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11040 $as_echo_n "checking for $ac_word... " >&6; }
11041 if test "${ac_cv_path_PROG_VMSTAT+set}" = set; then :
11042   $as_echo_n "(cached) " >&6
11043 else
11044   case $PROG_VMSTAT in
11045   [\\/]* | ?:[\\/]*)
11046   ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path.
11047   ;;
11048   *)
11049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11050 for as_dir in $PATH
11051 do
11052   IFS=$as_save_IFS
11053   test -z "$as_dir" && as_dir=.
11054     for ac_exec_ext in '' $ac_executable_extensions; do
11055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11056     ac_cv_path_PROG_VMSTAT="$as_dir/$ac_word$ac_exec_ext"
11057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11058     break 2
11059   fi
11060 done
11061   done
11062 IFS=$as_save_IFS
11063
11064   ;;
11065 esac
11066 fi
11067 PROG_VMSTAT=$ac_cv_path_PROG_VMSTAT
11068 if test -n "$PROG_VMSTAT"; then
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_VMSTAT" >&5
11070 $as_echo "$PROG_VMSTAT" >&6; }
11071 else
11072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; }
11074 fi
11075
11076
11077         if test -z "$PROG_VMSTAT" ; then
11078                 PROG_VMSTAT="undef"
11079         fi
11080
11081
11082
11083         # Extract the first word of "uptime", so it can be a program name with args.
11084 set dummy uptime; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if test "${ac_cv_path_PROG_UPTIME+set}" = set; then :
11088   $as_echo_n "(cached) " >&6
11089 else
11090   case $PROG_UPTIME in
11091   [\\/]* | ?:[\\/]*)
11092   ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path.
11093   ;;
11094   *)
11095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11097 do
11098   IFS=$as_save_IFS
11099   test -z "$as_dir" && as_dir=.
11100     for ac_exec_ext in '' $ac_executable_extensions; do
11101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102     ac_cv_path_PROG_UPTIME="$as_dir/$ac_word$ac_exec_ext"
11103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104     break 2
11105   fi
11106 done
11107   done
11108 IFS=$as_save_IFS
11109
11110   ;;
11111 esac
11112 fi
11113 PROG_UPTIME=$ac_cv_path_PROG_UPTIME
11114 if test -n "$PROG_UPTIME"; then
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_UPTIME" >&5
11116 $as_echo "$PROG_UPTIME" >&6; }
11117 else
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11120 fi
11121
11122
11123         if test -z "$PROG_UPTIME" ; then
11124                 PROG_UPTIME="undef"
11125         fi
11126
11127
11128
11129         # Extract the first word of "ipcs", so it can be a program name with args.
11130 set dummy ipcs; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if test "${ac_cv_path_PROG_IPCS+set}" = set; then :
11134   $as_echo_n "(cached) " >&6
11135 else
11136   case $PROG_IPCS in
11137   [\\/]* | ?:[\\/]*)
11138   ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path.
11139   ;;
11140   *)
11141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11143 do
11144   IFS=$as_save_IFS
11145   test -z "$as_dir" && as_dir=.
11146     for ac_exec_ext in '' $ac_executable_extensions; do
11147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148     ac_cv_path_PROG_IPCS="$as_dir/$ac_word$ac_exec_ext"
11149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11150     break 2
11151   fi
11152 done
11153   done
11154 IFS=$as_save_IFS
11155
11156   ;;
11157 esac
11158 fi
11159 PROG_IPCS=$ac_cv_path_PROG_IPCS
11160 if test -n "$PROG_IPCS"; then
11161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_IPCS" >&5
11162 $as_echo "$PROG_IPCS" >&6; }
11163 else
11164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11166 fi
11167
11168
11169         if test -z "$PROG_IPCS" ; then
11170                 PROG_IPCS="undef"
11171         fi
11172
11173
11174
11175         # Extract the first word of "tail", so it can be a program name with args.
11176 set dummy tail; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if test "${ac_cv_path_PROG_TAIL+set}" = set; then :
11180   $as_echo_n "(cached) " >&6
11181 else
11182   case $PROG_TAIL in
11183   [\\/]* | ?:[\\/]*)
11184   ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path.
11185   ;;
11186   *)
11187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190   IFS=$as_save_IFS
11191   test -z "$as_dir" && as_dir=.
11192     for ac_exec_ext in '' $ac_executable_extensions; do
11193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194     ac_cv_path_PROG_TAIL="$as_dir/$ac_word$ac_exec_ext"
11195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196     break 2
11197   fi
11198 done
11199   done
11200 IFS=$as_save_IFS
11201
11202   ;;
11203 esac
11204 fi
11205 PROG_TAIL=$ac_cv_path_PROG_TAIL
11206 if test -n "$PROG_TAIL"; then
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TAIL" >&5
11208 $as_echo "$PROG_TAIL" >&6; }
11209 else
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11212 fi
11213
11214
11215         if test -z "$PROG_TAIL" ; then
11216                 PROG_TAIL="undef"
11217         fi
11218
11219
11220 # restore PATH
11221 PATH=$OPATH
11222
11223 # Where does ssh-rand-helper get its randomness from?
11224 INSTALL_SSH_PRNG_CMDS=""
11225 if test ! -z "$INSTALL_SSH_RAND_HELPER" ; then
11226         if test ! -z "$PRNGD_PORT" ; then
11227                 RAND_HELPER_MSG="TCP localhost:$PRNGD_PORT"
11228         elif test ! -z "$PRNGD_SOCKET" ; then
11229                 RAND_HELPER_MSG="Unix domain socket \"$PRNGD_SOCKET\""
11230         else
11231                 RAND_HELPER_MSG="Command hashing (timeout $entropy_timeout)"
11232                 RAND_HELPER_CMDHASH=yes
11233                 INSTALL_SSH_PRNG_CMDS="yes"
11234         fi
11235 fi
11236
11237
11238
11239 # Cheap hack to ensure NEWS-OS libraries are arranged right.
11240 if test ! -z "$SONY" ; then
11241   LIBS="$LIBS -liberty";
11242 fi
11243
11244 # Check for  long long datatypes
11245 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11246 if test "x$ac_cv_type_long_long" = x""yes; then :
11247
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_LONG_LONG 1
11250 _ACEOF
11251
11252
11253 fi
11254 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
11255 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
11256
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_UNSIGNED_LONG_LONG 1
11259 _ACEOF
11260
11261
11262 fi
11263 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
11264 if test "x$ac_cv_type_long_double" = x""yes; then :
11265
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_LONG_DOUBLE 1
11268 _ACEOF
11269
11270
11271 fi
11272
11273
11274 # Check datatype sizes
11275 # The cast to long int works around a bug in the HP C Compiler
11276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11278 # This bug is HP SR number 8606223364.
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11280 $as_echo_n "checking size of char... " >&6; }
11281 if test "${ac_cv_sizeof_char+set}" = set; then :
11282   $as_echo_n "(cached) " >&6
11283 else
11284   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
11285
11286 else
11287   if test "$ac_cv_type_char" = yes; then
11288      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11290 as_fn_error 77 "cannot compute sizeof (char)
11291 See \`config.log' for more details" "$LINENO" 5 ; }
11292    else
11293      ac_cv_sizeof_char=0
11294    fi
11295 fi
11296
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11299 $as_echo "$ac_cv_sizeof_char" >&6; }
11300
11301
11302
11303 cat >>confdefs.h <<_ACEOF
11304 #define SIZEOF_CHAR $ac_cv_sizeof_char
11305 _ACEOF
11306
11307
11308 # The cast to long int works around a bug in the HP C Compiler
11309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11311 # This bug is HP SR number 8606223364.
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
11313 $as_echo_n "checking size of short int... " >&6; }
11314 if test "${ac_cv_sizeof_short_int+set}" = set; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
11318
11319 else
11320   if test "$ac_cv_type_short_int" = yes; then
11321      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11323 as_fn_error 77 "cannot compute sizeof (short int)
11324 See \`config.log' for more details" "$LINENO" 5 ; }
11325    else
11326      ac_cv_sizeof_short_int=0
11327    fi
11328 fi
11329
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
11332 $as_echo "$ac_cv_sizeof_short_int" >&6; }
11333
11334
11335
11336 cat >>confdefs.h <<_ACEOF
11337 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
11338 _ACEOF
11339
11340
11341 # The cast to long int works around a bug in the HP C Compiler
11342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11344 # This bug is HP SR number 8606223364.
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11346 $as_echo_n "checking size of int... " >&6; }
11347 if test "${ac_cv_sizeof_int+set}" = set; then :
11348   $as_echo_n "(cached) " >&6
11349 else
11350   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
11351
11352 else
11353   if test "$ac_cv_type_int" = yes; then
11354      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11356 as_fn_error 77 "cannot compute sizeof (int)
11357 See \`config.log' for more details" "$LINENO" 5 ; }
11358    else
11359      ac_cv_sizeof_int=0
11360    fi
11361 fi
11362
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11365 $as_echo "$ac_cv_sizeof_int" >&6; }
11366
11367
11368
11369 cat >>confdefs.h <<_ACEOF
11370 #define SIZEOF_INT $ac_cv_sizeof_int
11371 _ACEOF
11372
11373
11374 # The cast to long int works around a bug in the HP C Compiler
11375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11377 # This bug is HP SR number 8606223364.
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
11379 $as_echo_n "checking size of long int... " >&6; }
11380 if test "${ac_cv_sizeof_long_int+set}" = set; then :
11381   $as_echo_n "(cached) " >&6
11382 else
11383   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
11384
11385 else
11386   if test "$ac_cv_type_long_int" = yes; then
11387      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11389 as_fn_error 77 "cannot compute sizeof (long int)
11390 See \`config.log' for more details" "$LINENO" 5 ; }
11391    else
11392      ac_cv_sizeof_long_int=0
11393    fi
11394 fi
11395
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
11398 $as_echo "$ac_cv_sizeof_long_int" >&6; }
11399
11400
11401
11402 cat >>confdefs.h <<_ACEOF
11403 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11404 _ACEOF
11405
11406
11407 # The cast to long int works around a bug in the HP C Compiler
11408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11410 # This bug is HP SR number 8606223364.
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
11412 $as_echo_n "checking size of long long int... " >&6; }
11413 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
11414   $as_echo_n "(cached) " >&6
11415 else
11416   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
11417
11418 else
11419   if test "$ac_cv_type_long_long_int" = yes; then
11420      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11422 as_fn_error 77 "cannot compute sizeof (long long int)
11423 See \`config.log' for more details" "$LINENO" 5 ; }
11424    else
11425      ac_cv_sizeof_long_long_int=0
11426    fi
11427 fi
11428
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
11431 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
11432
11433
11434
11435 cat >>confdefs.h <<_ACEOF
11436 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
11437 _ACEOF
11438
11439
11440
11441 # Sanity check long long for some platforms (AIX)
11442 if test "x$ac_cv_sizeof_long_long_int" = "x4" ; then
11443         ac_cv_sizeof_long_long_int=0
11444 fi
11445
11446 # compute LLONG_MIN and LLONG_MAX if we don't know them.
11447 if test -z "$have_llong_max"; then
11448         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max value of long long" >&5
11449 $as_echo_n "checking for max value of long long... " >&6; }
11450         if test "$cross_compiling" = yes; then :
11451
11452                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
11453 $as_echo "$as_me: WARNING: cross compiling: not checking" >&2;}
11454
11455
11456 else
11457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h.  */
11459
11460 #include <stdio.h>
11461 /* Why is this so damn hard? */
11462 #ifdef __GNUC__
11463 # undef __GNUC__
11464 #endif
11465 #define __USE_ISOC99
11466 #include <limits.h>
11467 #define DATA "conftest.llminmax"
11468 #define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
11469
11470 /*
11471  * printf in libc on some platforms (eg old Tru64) does not understand %lld so
11472  * we do this the hard way.
11473  */
11474 static int
11475 fprint_ll(FILE *f, long long n)
11476 {
11477         unsigned int i;
11478         int l[sizeof(long long) * 8];
11479
11480         if (n < 0)
11481                 if (fprintf(f, "-") < 0)
11482                         return -1;
11483         for (i = 0; n != 0; i++) {
11484                 l[i] = my_abs(n % 10);
11485                 n /= 10;
11486         }
11487         do {
11488                 if (fprintf(f, "%d", l[--i]) < 0)
11489                         return -1;
11490         } while (i != 0);
11491         if (fprintf(f, " ") < 0)
11492                 return -1;
11493         return 0;
11494 }
11495
11496 int main(void) {
11497         FILE *f;
11498         long long i, llmin, llmax = 0;
11499
11500         if((f = fopen(DATA,"w")) == NULL)
11501                 exit(1);
11502
11503 #if defined(LLONG_MIN) && defined(LLONG_MAX)
11504         fprintf(stderr, "Using system header for LLONG_MIN and LLONG_MAX\n");
11505         llmin = LLONG_MIN;
11506         llmax = LLONG_MAX;
11507 #else
11508         fprintf(stderr, "Calculating  LLONG_MIN and LLONG_MAX\n");
11509         /* This will work on one's complement and two's complement */
11510         for (i = 1; i > llmax; i <<= 1, i++)
11511                 llmax = i;
11512         llmin = llmax + 1LL;    /* wrap */
11513 #endif
11514
11515         /* Sanity check */
11516         if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
11517             || llmax - 1 > llmax || llmin == llmax || llmin == 0
11518             || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
11519                 fprintf(f, "unknown unknown\n");
11520                 exit(2);
11521         }
11522
11523         if (fprint_ll(f, llmin) < 0)
11524                 exit(3);
11525         if (fprint_ll(f, llmax) < 0)
11526                 exit(4);
11527         if (fclose(f) < 0)
11528                 exit(5);
11529         exit(0);
11530 }
11531
11532 _ACEOF
11533 if ac_fn_c_try_run "$LINENO"; then :
11534
11535                         llong_min=`$AWK '{print $1}' conftest.llminmax`
11536                         llong_max=`$AWK '{print $2}' conftest.llminmax`
11537
11538                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_max" >&5
11539 $as_echo "$llong_max" >&6; }
11540
11541 cat >>confdefs.h <<_ACEOF
11542 #define LLONG_MAX ${llong_max}LL
11543 _ACEOF
11544
11545                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for min value of long long" >&5
11546 $as_echo_n "checking for min value of long long... " >&6; }
11547                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llong_min" >&5
11548 $as_echo "$llong_min" >&6; }
11549
11550 cat >>confdefs.h <<_ACEOF
11551 #define LLONG_MIN ${llong_min}LL
11552 _ACEOF
11553
11554
11555 else
11556
11557                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11558 $as_echo "not found" >&6; }
11559
11560 fi
11561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11562   conftest.$ac_objext conftest.beam conftest.$ac_ext
11563 fi
11564
11565 fi
11566
11567
11568 # More checks for data types
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
11570 $as_echo_n "checking for u_int type... " >&6; }
11571 if test "${ac_cv_have_u_int+set}" = set; then :
11572   $as_echo_n "(cached) " >&6
11573 else
11574
11575         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h.  */
11577  #include <sys/types.h>
11578 int
11579 main ()
11580 {
11581  u_int a; a = 1;
11582   ;
11583   return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_compile "$LINENO"; then :
11587    ac_cv_have_u_int="yes"
11588 else
11589    ac_cv_have_u_int="no"
11590
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11593
11594 fi
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
11596 $as_echo "$ac_cv_have_u_int" >&6; }
11597 if test "x$ac_cv_have_u_int" = "xyes" ; then
11598
11599 $as_echo "#define HAVE_U_INT 1" >>confdefs.h
11600
11601         have_u_int=1
11602 fi
11603
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
11605 $as_echo_n "checking for intXX_t types... " >&6; }
11606 if test "${ac_cv_have_intxx_t+set}" = set; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609
11610         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h.  */
11612  #include <sys/types.h>
11613 int
11614 main ()
11615 {
11616  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 if ac_fn_c_try_compile "$LINENO"; then :
11622    ac_cv_have_intxx_t="yes"
11623 else
11624    ac_cv_have_intxx_t="no"
11625
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628
11629 fi
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
11631 $as_echo "$ac_cv_have_intxx_t" >&6; }
11632 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
11633
11634 $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11635
11636         have_intxx_t=1
11637 fi
11638
11639 if (test -z "$have_intxx_t" && \
11640            test "x$ac_cv_header_stdint_h" = "xyes")
11641 then
11642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types in stdint.h" >&5
11643 $as_echo_n "checking for intXX_t types in stdint.h... " >&6; }
11644         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h.  */
11646  #include <stdint.h>
11647 int
11648 main ()
11649 {
11650  int8_t a; int16_t b; int32_t c; a = b = c = 1;
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_compile "$LINENO"; then :
11656
11657                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11658
11659                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11660 $as_echo "yes" >&6; }
11661
11662 else
11663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11665
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668 fi
11669
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
11671 $as_echo_n "checking for int64_t type... " >&6; }
11672 if test "${ac_cv_have_int64_t+set}" = set; then :
11673   $as_echo_n "(cached) " >&6
11674 else
11675
11676         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h.  */
11678
11679 #include <sys/types.h>
11680 #ifdef HAVE_STDINT_H
11681 # include <stdint.h>
11682 #endif
11683 #include <sys/socket.h>
11684 #ifdef HAVE_SYS_BITYPES_H
11685 # include <sys/bitypes.h>
11686 #endif
11687
11688 int
11689 main ()
11690 {
11691  int64_t a; a = 1;
11692   ;
11693   return 0;
11694 }
11695 _ACEOF
11696 if ac_fn_c_try_compile "$LINENO"; then :
11697    ac_cv_have_int64_t="yes"
11698 else
11699    ac_cv_have_int64_t="no"
11700
11701 fi
11702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11703
11704 fi
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
11706 $as_echo "$ac_cv_have_int64_t" >&6; }
11707 if test "x$ac_cv_have_int64_t" = "xyes" ; then
11708
11709 $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
11710
11711 fi
11712
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
11714 $as_echo_n "checking for u_intXX_t types... " >&6; }
11715 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
11716   $as_echo_n "(cached) " >&6
11717 else
11718
11719         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h.  */
11721  #include <sys/types.h>
11722 int
11723 main ()
11724 {
11725  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11726   ;
11727   return 0;
11728 }
11729 _ACEOF
11730 if ac_fn_c_try_compile "$LINENO"; then :
11731    ac_cv_have_u_intxx_t="yes"
11732 else
11733    ac_cv_have_u_intxx_t="no"
11734
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
11740 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
11741 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
11742
11743 $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11744
11745         have_u_intxx_t=1
11746 fi
11747
11748 if test -z "$have_u_intxx_t" ; then
11749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types in sys/socket.h" >&5
11750 $as_echo_n "checking for u_intXX_t types in sys/socket.h... " >&6; }
11751         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h.  */
11753  #include <sys/socket.h>
11754 int
11755 main ()
11756 {
11757  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763
11764                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11765
11766                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11767 $as_echo "yes" >&6; }
11768
11769 else
11770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11772
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 fi
11776
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
11778 $as_echo_n "checking for u_int64_t types... " >&6; }
11779 if test "${ac_cv_have_u_int64_t+set}" = set; then :
11780   $as_echo_n "(cached) " >&6
11781 else
11782
11783         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h.  */
11785  #include <sys/types.h>
11786 int
11787 main ()
11788 {
11789  u_int64_t a; a = 1;
11790   ;
11791   return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_compile "$LINENO"; then :
11795    ac_cv_have_u_int64_t="yes"
11796 else
11797    ac_cv_have_u_int64_t="no"
11798
11799 fi
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
11804 $as_echo "$ac_cv_have_u_int64_t" >&6; }
11805 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
11806
11807 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11808
11809         have_u_int64_t=1
11810 fi
11811
11812 if test -z "$have_u_int64_t" ; then
11813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t type in sys/bitypes.h" >&5
11814 $as_echo_n "checking for u_int64_t type in sys/bitypes.h... " >&6; }
11815         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h.  */
11817  #include <sys/bitypes.h>
11818 int
11819 main ()
11820 {
11821  u_int64_t a; a = 1
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_c_try_compile "$LINENO"; then :
11827
11828                         $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
11829
11830                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831 $as_echo "yes" >&6; }
11832
11833 else
11834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 fi
11840
11841 if test -z "$have_u_intxx_t" ; then
11842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
11843 $as_echo_n "checking for uintXX_t types... " >&6; }
11844 if test "${ac_cv_have_uintxx_t+set}" = set; then :
11845   $as_echo_n "(cached) " >&6
11846 else
11847
11848                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h.  */
11850
11851 #include <sys/types.h>
11852
11853 int
11854 main ()
11855 {
11856  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 if ac_fn_c_try_compile "$LINENO"; then :
11862    ac_cv_have_uintxx_t="yes"
11863 else
11864    ac_cv_have_uintxx_t="no"
11865
11866 fi
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11868
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
11871 $as_echo "$ac_cv_have_uintxx_t" >&6; }
11872         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
11873
11874 $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
11875
11876         fi
11877 fi
11878
11879 if test -z "$have_uintxx_t" ; then
11880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in stdint.h" >&5
11881 $as_echo_n "checking for uintXX_t types in stdint.h... " >&6; }
11882         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h.  */
11884  #include <stdint.h>
11885 int
11886 main ()
11887 {
11888  uint8_t a; uint16_t b; uint32_t c; a = b = c = 1;
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 if ac_fn_c_try_compile "$LINENO"; then :
11894
11895                         $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
11896
11897                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11899
11900 else
11901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903
11904 fi
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 fi
11907
11908 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
11909            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
11910 then
11911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
11912 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
11913         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h.  */
11915
11916 #include <sys/bitypes.h>
11917
11918 int
11919 main ()
11920 {
11921
11922                         int8_t a; int16_t b; int32_t c;
11923                         u_int8_t e; u_int16_t f; u_int32_t g;
11924                         a = b = c = e = f = g = 1;
11925
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 if ac_fn_c_try_compile "$LINENO"; then :
11931
11932                         $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
11933
11934                         $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
11935
11936                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11937 $as_echo "yes" >&6; }
11938
11939 else
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11942
11943 fi
11944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945 fi
11946
11947
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5
11949 $as_echo_n "checking for u_char... " >&6; }
11950 if test "${ac_cv_have_u_char+set}" = set; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953
11954         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h.  */
11956
11957 #include <sys/types.h>
11958
11959 int
11960 main ()
11961 {
11962  u_char foo; foo = 125;
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 if ac_fn_c_try_compile "$LINENO"; then :
11968    ac_cv_have_u_char="yes"
11969 else
11970    ac_cv_have_u_char="no"
11971
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_char" >&5
11977 $as_echo "$ac_cv_have_u_char" >&6; }
11978 if test "x$ac_cv_have_u_char" = "xyes" ; then
11979
11980 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
11981
11982 fi
11983
11984
11985    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11986 #include <sys/socket.h>
11987 "
11988 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11989
11990 else
11991
11992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
11993 $as_echo_n "checking for socklen_t equivalent... " >&6; }
11994       if test "${curl_cv_socklen_t_equiv+set}" = set; then :
11995   $as_echo_n "(cached) " >&6
11996 else
11997
11998          # Systems have either "struct sockaddr *" or
11999          # "void *" as the second argument to getpeername
12000          curl_cv_socklen_t_equiv=
12001          for arg2 in "struct sockaddr" void; do
12002             for t in int size_t unsigned long "unsigned long"; do
12003                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h.  */
12005
12006                   #include <sys/types.h>
12007                   #include <sys/socket.h>
12008
12009                   int getpeername (int, $arg2 *, $t *);
12010
12011 int
12012 main ()
12013 {
12014
12015                   $t len;
12016                   getpeername(0,0,&len);
12017
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 if ac_fn_c_try_compile "$LINENO"; then :
12023
12024                   curl_cv_socklen_t_equiv="$t"
12025                   break
12026
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029             done
12030          done
12031
12032          if test "x$curl_cv_socklen_t_equiv" = x; then
12033             as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
12034          fi
12035
12036 fi
12037
12038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
12039 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
12040
12041 cat >>confdefs.h <<_ACEOF
12042 #define socklen_t $curl_cv_socklen_t_equiv
12043 _ACEOF
12044
12045 fi
12046
12047
12048
12049 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12050 "
12051 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
12052
12053 cat >>confdefs.h <<_ACEOF
12054 #define HAVE_SIG_ATOMIC_T 1
12055 _ACEOF
12056
12057
12058 fi
12059
12060 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "
12061 #include <sys/types.h>
12062 #ifdef HAVE_SYS_BITYPES_H
12063 #include <sys/bitypes.h>
12064 #endif
12065 #ifdef HAVE_SYS_STATFS_H
12066 #include <sys/statfs.h>
12067 #endif
12068 #ifdef HAVE_SYS_STATVFS_H
12069 #include <sys/statvfs.h>
12070 #endif
12071
12072 "
12073 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12074
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_FSBLKCNT_T 1
12077 _ACEOF
12078
12079
12080 fi
12081 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "
12082 #include <sys/types.h>
12083 #ifdef HAVE_SYS_BITYPES_H
12084 #include <sys/bitypes.h>
12085 #endif
12086 #ifdef HAVE_SYS_STATFS_H
12087 #include <sys/statfs.h>
12088 #endif
12089 #ifdef HAVE_SYS_STATVFS_H
12090 #include <sys/statvfs.h>
12091 #endif
12092
12093 "
12094 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12095
12096 cat >>confdefs.h <<_ACEOF
12097 #define HAVE_FSFILCNT_T 1
12098 _ACEOF
12099
12100
12101 fi
12102
12103
12104 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "#include <sys/types.h>
12105 #include <netinet/in.h>
12106 "
12107 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
12108
12109 cat >>confdefs.h <<_ACEOF
12110 #define HAVE_IN_ADDR_T 1
12111 _ACEOF
12112
12113
12114 fi
12115 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
12116 #include <netinet/in.h>
12117 "
12118 if test "x$ac_cv_type_in_port_t" = x""yes; then :
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define HAVE_IN_PORT_T 1
12122 _ACEOF
12123
12124
12125 fi
12126
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
12129 $as_echo_n "checking for size_t... " >&6; }
12130 if test "${ac_cv_have_size_t+set}" = set; then :
12131   $as_echo_n "(cached) " >&6
12132 else
12133
12134         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h.  */
12136
12137 #include <sys/types.h>
12138
12139 int
12140 main ()
12141 {
12142  size_t foo; foo = 1235;
12143   ;
12144   return 0;
12145 }
12146 _ACEOF
12147 if ac_fn_c_try_compile "$LINENO"; then :
12148    ac_cv_have_size_t="yes"
12149 else
12150    ac_cv_have_size_t="no"
12151
12152 fi
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154
12155 fi
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t" >&5
12157 $as_echo "$ac_cv_have_size_t" >&6; }
12158 if test "x$ac_cv_have_size_t" = "xyes" ; then
12159
12160 $as_echo "#define HAVE_SIZE_T 1" >>confdefs.h
12161
12162 fi
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
12165 $as_echo_n "checking for ssize_t... " >&6; }
12166 if test "${ac_cv_have_ssize_t+set}" = set; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169
12170         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h.  */
12172
12173 #include <sys/types.h>
12174
12175 int
12176 main ()
12177 {
12178  ssize_t foo; foo = 1235;
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_compile "$LINENO"; then :
12184    ac_cv_have_ssize_t="yes"
12185 else
12186    ac_cv_have_ssize_t="no"
12187
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ssize_t" >&5
12193 $as_echo "$ac_cv_have_ssize_t" >&6; }
12194 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
12195
12196 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
12197
12198 fi
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12201 $as_echo_n "checking for clock_t... " >&6; }
12202 if test "${ac_cv_have_clock_t+set}" = set; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205
12206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h.  */
12208
12209 #include <time.h>
12210
12211 int
12212 main ()
12213 {
12214  clock_t foo; foo = 1235;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220    ac_cv_have_clock_t="yes"
12221 else
12222    ac_cv_have_clock_t="no"
12223
12224 fi
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_clock_t" >&5
12229 $as_echo "$ac_cv_have_clock_t" >&6; }
12230 if test "x$ac_cv_have_clock_t" = "xyes" ; then
12231
12232 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12233
12234 fi
12235
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_family_t" >&5
12237 $as_echo_n "checking for sa_family_t... " >&6; }
12238 if test "${ac_cv_have_sa_family_t+set}" = set; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241
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
12249 main ()
12250 {
12251  sa_family_t foo; foo = 1235;
12252   ;
12253   return 0;
12254 }
12255 _ACEOF
12256 if ac_fn_c_try_compile "$LINENO"; then :
12257    ac_cv_have_sa_family_t="yes"
12258 else
12259    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h.  */
12261
12262 #include <sys/types.h>
12263 #include <sys/socket.h>
12264 #include <netinet/in.h>
12265
12266 int
12267 main ()
12268 {
12269  sa_family_t foo; foo = 1235;
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_compile "$LINENO"; then :
12275    ac_cv_have_sa_family_t="yes"
12276 else
12277    ac_cv_have_sa_family_t="no"
12278
12279 fi
12280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sa_family_t" >&5
12287 $as_echo "$ac_cv_have_sa_family_t" >&6; }
12288 if test "x$ac_cv_have_sa_family_t" = "xyes" ; then
12289
12290 $as_echo "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
12291
12292 fi
12293
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pid_t" >&5
12295 $as_echo_n "checking for pid_t... " >&6; }
12296 if test "${ac_cv_have_pid_t+set}" = set; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299
12300         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h.  */
12302
12303 #include <sys/types.h>
12304
12305 int
12306 main ()
12307 {
12308  pid_t foo; foo = 1235;
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_compile "$LINENO"; then :
12314    ac_cv_have_pid_t="yes"
12315 else
12316    ac_cv_have_pid_t="no"
12317
12318 fi
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pid_t" >&5
12323 $as_echo "$ac_cv_have_pid_t" >&6; }
12324 if test "x$ac_cv_have_pid_t" = "xyes" ; then
12325
12326 $as_echo "#define HAVE_PID_T 1" >>confdefs.h
12327
12328 fi
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mode_t" >&5
12331 $as_echo_n "checking for mode_t... " >&6; }
12332 if test "${ac_cv_have_mode_t+set}" = set; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335
12336         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h.  */
12338
12339 #include <sys/types.h>
12340
12341 int
12342 main ()
12343 {
12344  mode_t foo; foo = 1235;
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_compile "$LINENO"; then :
12350    ac_cv_have_mode_t="yes"
12351 else
12352    ac_cv_have_mode_t="no"
12353
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_mode_t" >&5
12359 $as_echo "$ac_cv_have_mode_t" >&6; }
12360 if test "x$ac_cv_have_mode_t" = "xyes" ; then
12361
12362 $as_echo "#define HAVE_MODE_T 1" >>confdefs.h
12363
12364 fi
12365
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
12368 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
12369 if test "${ac_cv_have_struct_sockaddr_storage+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
12376 #include <sys/types.h>
12377 #include <sys/socket.h>
12378
12379 int
12380 main ()
12381 {
12382  struct sockaddr_storage s;
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 if ac_fn_c_try_compile "$LINENO"; then :
12388    ac_cv_have_struct_sockaddr_storage="yes"
12389 else
12390    ac_cv_have_struct_sockaddr_storage="no"
12391
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394
12395 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_storage" >&5
12397 $as_echo "$ac_cv_have_struct_sockaddr_storage" >&6; }
12398 if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then
12399
12400 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
12401
12402 fi
12403
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5
12405 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
12406 if test "${ac_cv_have_struct_sockaddr_in6+set}" = set; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409
12410         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h.  */
12412
12413 #include <sys/types.h>
12414 #include <netinet/in.h>
12415
12416 int
12417 main ()
12418 {
12419  struct sockaddr_in6 s; s.sin6_family = 0;
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 if ac_fn_c_try_compile "$LINENO"; then :
12425    ac_cv_have_struct_sockaddr_in6="yes"
12426 else
12427    ac_cv_have_struct_sockaddr_in6="no"
12428
12429 fi
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431
12432 fi
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_sockaddr_in6" >&5
12434 $as_echo "$ac_cv_have_struct_sockaddr_in6" >&6; }
12435 if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then
12436
12437 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
12438
12439 fi
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5
12442 $as_echo_n "checking for struct in6_addr... " >&6; }
12443 if test "${ac_cv_have_struct_in6_addr+set}" = set; then :
12444   $as_echo_n "(cached) " >&6
12445 else
12446
12447         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h.  */
12449
12450 #include <sys/types.h>
12451 #include <netinet/in.h>
12452
12453 int
12454 main ()
12455 {
12456  struct in6_addr s; s.s6_addr[0] = 0;
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_c_try_compile "$LINENO"; then :
12462    ac_cv_have_struct_in6_addr="yes"
12463 else
12464    ac_cv_have_struct_in6_addr="no"
12465
12466 fi
12467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12468
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_in6_addr" >&5
12471 $as_echo "$ac_cv_have_struct_in6_addr" >&6; }
12472 if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then
12473
12474 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
12475
12476
12477         ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "
12478 #ifdef HAVE_SYS_TYPES_H
12479 #include <sys/types.h>
12480 #endif
12481 #include <netinet/in.h>
12482
12483 "
12484 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
12488 _ACEOF
12489
12490
12491 fi
12492
12493 fi
12494
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
12496 $as_echo_n "checking for struct addrinfo... " >&6; }
12497 if test "${ac_cv_have_struct_addrinfo+set}" = set; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500
12501         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h.  */
12503
12504 #include <sys/types.h>
12505 #include <sys/socket.h>
12506 #include <netdb.h>
12507
12508 int
12509 main ()
12510 {
12511  struct addrinfo s; s.ai_flags = AI_PASSIVE;
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_compile "$LINENO"; then :
12517    ac_cv_have_struct_addrinfo="yes"
12518 else
12519    ac_cv_have_struct_addrinfo="no"
12520
12521 fi
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_addrinfo" >&5
12526 $as_echo "$ac_cv_have_struct_addrinfo" >&6; }
12527 if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
12528
12529 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
12530
12531 fi
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
12534 $as_echo_n "checking for struct timeval... " >&6; }
12535 if test "${ac_cv_have_struct_timeval+set}" = set; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538
12539         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h.  */
12541  #include <sys/time.h>
12542 int
12543 main ()
12544 {
12545  struct timeval tv; tv.tv_sec = 1;
12546   ;
12547   return 0;
12548 }
12549 _ACEOF
12550 if ac_fn_c_try_compile "$LINENO"; then :
12551    ac_cv_have_struct_timeval="yes"
12552 else
12553    ac_cv_have_struct_timeval="no"
12554
12555 fi
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_struct_timeval" >&5
12560 $as_echo "$ac_cv_have_struct_timeval" >&6; }
12561 if test "x$ac_cv_have_struct_timeval" = "xyes" ; then
12562
12563 $as_echo "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
12564
12565         have_struct_timeval=1
12566 fi
12567
12568 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
12569 if test "x$ac_cv_type_struct_timespec" = x""yes; then :
12570
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_STRUCT_TIMESPEC 1
12573 _ACEOF
12574
12575
12576 fi
12577
12578
12579 # We need int64_t or else certian parts of the compile will fail.
12580 if test "x$ac_cv_have_int64_t" = "xno" && \
12581         test "x$ac_cv_sizeof_long_int" != "x8" && \
12582         test "x$ac_cv_sizeof_long_long_int" = "x0" ; then
12583         echo "OpenSSH requires int64_t support.  Contact your vendor or install"
12584         echo "an alternative compiler (I.E., GCC) before continuing."
12585         echo ""
12586         exit 1;
12587 else
12588         if test "$cross_compiling" = yes; then :
12589   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Assuming working snprintf()" >&5
12590 $as_echo "$as_me: WARNING: cross compiling: Assuming working snprintf()" >&2;}
12591
12592 else
12593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595
12596 #include <stdio.h>
12597 #include <string.h>
12598 #ifdef HAVE_SNPRINTF
12599 main()
12600 {
12601         char buf[50];
12602         char expected_out[50];
12603         int mazsize = 50 ;
12604 #if (SIZEOF_LONG_INT == 8)
12605         long int num = 0x7fffffffffffffff;
12606 #else
12607         long long num = 0x7fffffffffffffffll;
12608 #endif
12609         strcpy(expected_out, "9223372036854775807");
12610         snprintf(buf, mazsize, "%lld", num);
12611         if(strcmp(buf, expected_out) != 0)
12612                 exit(1);
12613         exit(0);
12614 }
12615 #else
12616 main() { exit(0); }
12617 #endif
12618
12619 _ACEOF
12620 if ac_fn_c_try_run "$LINENO"; then :
12621    true
12622 else
12623    $as_echo "#define BROKEN_SNPRINTF 1" >>confdefs.h
12624
12625 fi
12626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12627   conftest.$ac_objext conftest.beam conftest.$ac_ext
12628 fi
12629
12630 fi
12631
12632
12633 # look for field 'ut_host' in header 'utmp.h'
12634                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12635                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmp.h" >&5
12637 $as_echo_n "checking for ut_host field in utmp.h... " >&6; }
12638         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12639   $as_echo_n "(cached) " >&6
12640 else
12641
12642                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h.  */
12644 #include <utmp.h>
12645
12646 _ACEOF
12647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12648   $EGREP "ut_host" >/dev/null 2>&1; then :
12649                         eval "$ossh_varname=yes"
12650 else
12651                         eval "$ossh_varname=no"
12652 fi
12653 rm -f conftest*
12654
12655 fi
12656
12657         ossh_result=`eval 'echo $'"$ossh_varname"`
12658         if test -n "`echo $ossh_varname`"; then
12659                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12660 $as_echo "$ossh_result" >&6; }
12661                 if test "x$ossh_result" = "xyes"; then
12662
12663 $as_echo "#define HAVE_HOST_IN_UTMP 1" >>confdefs.h
12664
12665                 fi
12666         else
12667                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669         fi
12670
12671
12672 # look for field 'ut_host' in header 'utmpx.h'
12673                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12674                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host
12675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_host field in utmpx.h" >&5
12676 $as_echo_n "checking for ut_host field in utmpx.h... " >&6; }
12677         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680
12681                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 #include <utmpx.h>
12684
12685 _ACEOF
12686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12687   $EGREP "ut_host" >/dev/null 2>&1; then :
12688                         eval "$ossh_varname=yes"
12689 else
12690                         eval "$ossh_varname=no"
12691 fi
12692 rm -f conftest*
12693
12694 fi
12695
12696         ossh_result=`eval 'echo $'"$ossh_varname"`
12697         if test -n "`echo $ossh_varname`"; then
12698                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12699 $as_echo "$ossh_result" >&6; }
12700                 if test "x$ossh_result" = "xyes"; then
12701
12702 $as_echo "#define HAVE_HOST_IN_UTMPX 1" >>confdefs.h
12703
12704                 fi
12705         else
12706                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708         fi
12709
12710
12711 # look for field 'syslen' in header 'utmpx.h'
12712                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12713                 ossh_varname="ossh_cv_$ossh_safe""_has_"syslen
12714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslen field in utmpx.h" >&5
12715 $as_echo_n "checking for syslen field in utmpx.h... " >&6; }
12716         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719
12720                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h.  */
12722 #include <utmpx.h>
12723
12724 _ACEOF
12725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12726   $EGREP "syslen" >/dev/null 2>&1; then :
12727                         eval "$ossh_varname=yes"
12728 else
12729                         eval "$ossh_varname=no"
12730 fi
12731 rm -f conftest*
12732
12733 fi
12734
12735         ossh_result=`eval 'echo $'"$ossh_varname"`
12736         if test -n "`echo $ossh_varname`"; then
12737                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12738 $as_echo "$ossh_result" >&6; }
12739                 if test "x$ossh_result" = "xyes"; then
12740
12741 $as_echo "#define HAVE_SYSLEN_IN_UTMPX 1" >>confdefs.h
12742
12743                 fi
12744         else
12745                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747         fi
12748
12749
12750 # look for field 'ut_pid' in header 'utmp.h'
12751                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12752                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid
12753         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_pid field in utmp.h" >&5
12754 $as_echo_n "checking for ut_pid field in utmp.h... " >&6; }
12755         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758
12759                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761 #include <utmp.h>
12762
12763 _ACEOF
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765   $EGREP "ut_pid" >/dev/null 2>&1; then :
12766                         eval "$ossh_varname=yes"
12767 else
12768                         eval "$ossh_varname=no"
12769 fi
12770 rm -f conftest*
12771
12772 fi
12773
12774         ossh_result=`eval 'echo $'"$ossh_varname"`
12775         if test -n "`echo $ossh_varname`"; then
12776                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12777 $as_echo "$ossh_result" >&6; }
12778                 if test "x$ossh_result" = "xyes"; then
12779
12780 $as_echo "#define HAVE_PID_IN_UTMP 1" >>confdefs.h
12781
12782                 fi
12783         else
12784                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786         fi
12787
12788
12789 # look for field 'ut_type' in header 'utmp.h'
12790                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12791                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmp.h" >&5
12793 $as_echo_n "checking for ut_type field in utmp.h... " >&6; }
12794         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12795   $as_echo_n "(cached) " >&6
12796 else
12797
12798                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h.  */
12800 #include <utmp.h>
12801
12802 _ACEOF
12803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12804   $EGREP "ut_type" >/dev/null 2>&1; then :
12805                         eval "$ossh_varname=yes"
12806 else
12807                         eval "$ossh_varname=no"
12808 fi
12809 rm -f conftest*
12810
12811 fi
12812
12813         ossh_result=`eval 'echo $'"$ossh_varname"`
12814         if test -n "`echo $ossh_varname`"; then
12815                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12816 $as_echo "$ossh_result" >&6; }
12817                 if test "x$ossh_result" = "xyes"; then
12818
12819 $as_echo "#define HAVE_TYPE_IN_UTMP 1" >>confdefs.h
12820
12821                 fi
12822         else
12823                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12825         fi
12826
12827
12828 # look for field 'ut_type' in header 'utmpx.h'
12829                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12830                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type
12831         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_type field in utmpx.h" >&5
12832 $as_echo_n "checking for ut_type field in utmpx.h... " >&6; }
12833         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12834   $as_echo_n "(cached) " >&6
12835 else
12836
12837                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h.  */
12839 #include <utmpx.h>
12840
12841 _ACEOF
12842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12843   $EGREP "ut_type" >/dev/null 2>&1; then :
12844                         eval "$ossh_varname=yes"
12845 else
12846                         eval "$ossh_varname=no"
12847 fi
12848 rm -f conftest*
12849
12850 fi
12851
12852         ossh_result=`eval 'echo $'"$ossh_varname"`
12853         if test -n "`echo $ossh_varname`"; then
12854                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12855 $as_echo "$ossh_result" >&6; }
12856                 if test "x$ossh_result" = "xyes"; then
12857
12858 $as_echo "#define HAVE_TYPE_IN_UTMPX 1" >>confdefs.h
12859
12860                 fi
12861         else
12862                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12864         fi
12865
12866
12867 # look for field 'ut_tv' in header 'utmp.h'
12868                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12869                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
12870         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmp.h" >&5
12871 $as_echo_n "checking for ut_tv field in utmp.h... " >&6; }
12872         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12873   $as_echo_n "(cached) " >&6
12874 else
12875
12876                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h.  */
12878 #include <utmp.h>
12879
12880 _ACEOF
12881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12882   $EGREP "ut_tv" >/dev/null 2>&1; then :
12883                         eval "$ossh_varname=yes"
12884 else
12885                         eval "$ossh_varname=no"
12886 fi
12887 rm -f conftest*
12888
12889 fi
12890
12891         ossh_result=`eval 'echo $'"$ossh_varname"`
12892         if test -n "`echo $ossh_varname`"; then
12893                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12894 $as_echo "$ossh_result" >&6; }
12895                 if test "x$ossh_result" = "xyes"; then
12896
12897 $as_echo "#define HAVE_TV_IN_UTMP 1" >>confdefs.h
12898
12899                 fi
12900         else
12901                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903         fi
12904
12905
12906 # look for field 'ut_id' in header 'utmp.h'
12907                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12908                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
12909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmp.h" >&5
12910 $as_echo_n "checking for ut_id field in utmp.h... " >&6; }
12911         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12912   $as_echo_n "(cached) " >&6
12913 else
12914
12915                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917 #include <utmp.h>
12918
12919 _ACEOF
12920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12921   $EGREP "ut_id" >/dev/null 2>&1; then :
12922                         eval "$ossh_varname=yes"
12923 else
12924                         eval "$ossh_varname=no"
12925 fi
12926 rm -f conftest*
12927
12928 fi
12929
12930         ossh_result=`eval 'echo $'"$ossh_varname"`
12931         if test -n "`echo $ossh_varname`"; then
12932                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12933 $as_echo "$ossh_result" >&6; }
12934                 if test "x$ossh_result" = "xyes"; then
12935
12936 $as_echo "#define HAVE_ID_IN_UTMP 1" >>confdefs.h
12937
12938                 fi
12939         else
12940                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12942         fi
12943
12944
12945 # look for field 'ut_id' in header 'utmpx.h'
12946                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
12947                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id
12948         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_id field in utmpx.h" >&5
12949 $as_echo_n "checking for ut_id field in utmpx.h... " >&6; }
12950         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953
12954                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h.  */
12956 #include <utmpx.h>
12957
12958 _ACEOF
12959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12960   $EGREP "ut_id" >/dev/null 2>&1; then :
12961                         eval "$ossh_varname=yes"
12962 else
12963                         eval "$ossh_varname=no"
12964 fi
12965 rm -f conftest*
12966
12967 fi
12968
12969         ossh_result=`eval 'echo $'"$ossh_varname"`
12970         if test -n "`echo $ossh_varname`"; then
12971                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
12972 $as_echo "$ossh_result" >&6; }
12973                 if test "x$ossh_result" = "xyes"; then
12974
12975 $as_echo "#define HAVE_ID_IN_UTMPX 1" >>confdefs.h
12976
12977                 fi
12978         else
12979                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12981         fi
12982
12983
12984 # look for field 'ut_addr' in header 'utmp.h'
12985                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
12986                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
12987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmp.h" >&5
12988 $as_echo_n "checking for ut_addr field in utmp.h... " >&6; }
12989         if eval "test \"\${$ossh_varname+set}\"" = set; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992
12993                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h.  */
12995 #include <utmp.h>
12996
12997 _ACEOF
12998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12999   $EGREP "ut_addr" >/dev/null 2>&1; then :
13000                         eval "$ossh_varname=yes"
13001 else
13002                         eval "$ossh_varname=no"
13003 fi
13004 rm -f conftest*
13005
13006 fi
13007
13008         ossh_result=`eval 'echo $'"$ossh_varname"`
13009         if test -n "`echo $ossh_varname`"; then
13010                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13011 $as_echo "$ossh_result" >&6; }
13012                 if test "x$ossh_result" = "xyes"; then
13013
13014 $as_echo "#define HAVE_ADDR_IN_UTMP 1" >>confdefs.h
13015
13016                 fi
13017         else
13018                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13020         fi
13021
13022
13023 # look for field 'ut_addr' in header 'utmpx.h'
13024                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13025                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr
13026         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr field in utmpx.h" >&5
13027 $as_echo_n "checking for ut_addr field in utmpx.h... " >&6; }
13028         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13029   $as_echo_n "(cached) " >&6
13030 else
13031
13032                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h.  */
13034 #include <utmpx.h>
13035
13036 _ACEOF
13037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13038   $EGREP "ut_addr" >/dev/null 2>&1; then :
13039                         eval "$ossh_varname=yes"
13040 else
13041                         eval "$ossh_varname=no"
13042 fi
13043 rm -f conftest*
13044
13045 fi
13046
13047         ossh_result=`eval 'echo $'"$ossh_varname"`
13048         if test -n "`echo $ossh_varname`"; then
13049                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13050 $as_echo "$ossh_result" >&6; }
13051                 if test "x$ossh_result" = "xyes"; then
13052
13053 $as_echo "#define HAVE_ADDR_IN_UTMPX 1" >>confdefs.h
13054
13055                 fi
13056         else
13057                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059         fi
13060
13061
13062 # look for field 'ut_addr_v6' in header 'utmp.h'
13063                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13064                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13065         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmp.h" >&5
13066 $as_echo_n "checking for ut_addr_v6 field in utmp.h... " >&6; }
13067         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13068   $as_echo_n "(cached) " >&6
13069 else
13070
13071                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h.  */
13073 #include <utmp.h>
13074
13075 _ACEOF
13076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13077   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13078                         eval "$ossh_varname=yes"
13079 else
13080                         eval "$ossh_varname=no"
13081 fi
13082 rm -f conftest*
13083
13084 fi
13085
13086         ossh_result=`eval 'echo $'"$ossh_varname"`
13087         if test -n "`echo $ossh_varname`"; then
13088                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13089 $as_echo "$ossh_result" >&6; }
13090                 if test "x$ossh_result" = "xyes"; then
13091
13092 $as_echo "#define HAVE_ADDR_V6_IN_UTMP 1" >>confdefs.h
13093
13094                 fi
13095         else
13096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098         fi
13099
13100
13101 # look for field 'ut_addr_v6' in header 'utmpx.h'
13102                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13103                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6
13104         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_addr_v6 field in utmpx.h" >&5
13105 $as_echo_n "checking for ut_addr_v6 field in utmpx.h... " >&6; }
13106         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13107   $as_echo_n "(cached) " >&6
13108 else
13109
13110                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h.  */
13112 #include <utmpx.h>
13113
13114 _ACEOF
13115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13116   $EGREP "ut_addr_v6" >/dev/null 2>&1; then :
13117                         eval "$ossh_varname=yes"
13118 else
13119                         eval "$ossh_varname=no"
13120 fi
13121 rm -f conftest*
13122
13123 fi
13124
13125         ossh_result=`eval 'echo $'"$ossh_varname"`
13126         if test -n "`echo $ossh_varname`"; then
13127                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13128 $as_echo "$ossh_result" >&6; }
13129                 if test "x$ossh_result" = "xyes"; then
13130
13131 $as_echo "#define HAVE_ADDR_V6_IN_UTMPX 1" >>confdefs.h
13132
13133                 fi
13134         else
13135                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137         fi
13138
13139
13140 # look for field 'ut_exit' in header 'utmp.h'
13141                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13142                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit
13143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_exit field in utmp.h" >&5
13144 $as_echo_n "checking for ut_exit field in utmp.h... " >&6; }
13145         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13146   $as_echo_n "(cached) " >&6
13147 else
13148
13149                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h.  */
13151 #include <utmp.h>
13152
13153 _ACEOF
13154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13155   $EGREP "ut_exit" >/dev/null 2>&1; then :
13156                         eval "$ossh_varname=yes"
13157 else
13158                         eval "$ossh_varname=no"
13159 fi
13160 rm -f conftest*
13161
13162 fi
13163
13164         ossh_result=`eval 'echo $'"$ossh_varname"`
13165         if test -n "`echo $ossh_varname`"; then
13166                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13167 $as_echo "$ossh_result" >&6; }
13168                 if test "x$ossh_result" = "xyes"; then
13169
13170 $as_echo "#define HAVE_EXIT_IN_UTMP 1" >>confdefs.h
13171
13172                 fi
13173         else
13174                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176         fi
13177
13178
13179 # look for field 'ut_time' in header 'utmp.h'
13180                 ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
13181                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmp.h" >&5
13183 $as_echo_n "checking for ut_time field in utmp.h... " >&6; }
13184         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187
13188                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h.  */
13190 #include <utmp.h>
13191
13192 _ACEOF
13193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13194   $EGREP "ut_time" >/dev/null 2>&1; then :
13195                         eval "$ossh_varname=yes"
13196 else
13197                         eval "$ossh_varname=no"
13198 fi
13199 rm -f conftest*
13200
13201 fi
13202
13203         ossh_result=`eval 'echo $'"$ossh_varname"`
13204         if test -n "`echo $ossh_varname`"; then
13205                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13206 $as_echo "$ossh_result" >&6; }
13207                 if test "x$ossh_result" = "xyes"; then
13208
13209 $as_echo "#define HAVE_TIME_IN_UTMP 1" >>confdefs.h
13210
13211                 fi
13212         else
13213                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215         fi
13216
13217
13218 # look for field 'ut_time' in header 'utmpx.h'
13219                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13220                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time
13221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_time field in utmpx.h" >&5
13222 $as_echo_n "checking for ut_time field in utmpx.h... " >&6; }
13223         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13224   $as_echo_n "(cached) " >&6
13225 else
13226
13227                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h.  */
13229 #include <utmpx.h>
13230
13231 _ACEOF
13232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13233   $EGREP "ut_time" >/dev/null 2>&1; then :
13234                         eval "$ossh_varname=yes"
13235 else
13236                         eval "$ossh_varname=no"
13237 fi
13238 rm -f conftest*
13239
13240 fi
13241
13242         ossh_result=`eval 'echo $'"$ossh_varname"`
13243         if test -n "`echo $ossh_varname`"; then
13244                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13245 $as_echo "$ossh_result" >&6; }
13246                 if test "x$ossh_result" = "xyes"; then
13247
13248 $as_echo "#define HAVE_TIME_IN_UTMPX 1" >>confdefs.h
13249
13250                 fi
13251         else
13252                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254         fi
13255
13256
13257 # look for field 'ut_tv' in header 'utmpx.h'
13258                 ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
13259                 ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv
13260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_tv field in utmpx.h" >&5
13261 $as_echo_n "checking for ut_tv field in utmpx.h... " >&6; }
13262         if eval "test \"\${$ossh_varname+set}\"" = set; then :
13263   $as_echo_n "(cached) " >&6
13264 else
13265
13266                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h.  */
13268 #include <utmpx.h>
13269
13270 _ACEOF
13271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13272   $EGREP "ut_tv" >/dev/null 2>&1; then :
13273                         eval "$ossh_varname=yes"
13274 else
13275                         eval "$ossh_varname=no"
13276 fi
13277 rm -f conftest*
13278
13279 fi
13280
13281         ossh_result=`eval 'echo $'"$ossh_varname"`
13282         if test -n "`echo $ossh_varname`"; then
13283                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ossh_result" >&5
13284 $as_echo "$ossh_result" >&6; }
13285                 if test "x$ossh_result" = "xyes"; then
13286
13287 $as_echo "#define HAVE_TV_IN_UTMPX 1" >>confdefs.h
13288
13289                 fi
13290         else
13291                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292 $as_echo "no" >&6; }
13293         fi
13294
13295
13296 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13297 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
13298
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13301 _ACEOF
13302
13303
13304 fi
13305
13306 ac_fn_c_check_member "$LINENO" "struct __res_state" "retrans" "ac_cv_member_struct___res_state_retrans" "
13307 #include <stdio.h>
13308 #if HAVE_SYS_TYPES_H
13309 # include <sys/types.h>
13310 #endif
13311 #include <netinet/in.h>
13312 #include <arpa/nameser.h>
13313 #include <resolv.h>
13314
13315 "
13316 if test "x$ac_cv_member_struct___res_state_retrans" = x""yes; then :
13317
13318 else
13319
13320 $as_echo "#define __res_state state" >>confdefs.h
13321
13322 fi
13323
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
13326 $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
13327 if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330
13331         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h.  */
13333
13334 #include <sys/types.h>
13335 #include <sys/socket.h>
13336
13337 int
13338 main ()
13339 {
13340  struct sockaddr_storage s; s.ss_family = 1;
13341   ;
13342   return 0;
13343 }
13344 _ACEOF
13345 if ac_fn_c_try_compile "$LINENO"; then :
13346    ac_cv_have_ss_family_in_struct_ss="yes"
13347 else
13348    ac_cv_have_ss_family_in_struct_ss="no"
13349 fi
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
13354 $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
13355 if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
13356
13357 $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
13358
13359 fi
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
13362 $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
13363 if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
13364   $as_echo_n "(cached) " >&6
13365 else
13366
13367         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h.  */
13369
13370 #include <sys/types.h>
13371 #include <sys/socket.h>
13372
13373 int
13374 main ()
13375 {
13376  struct sockaddr_storage s; s.__ss_family = 1;
13377   ;
13378   return 0;
13379 }
13380 _ACEOF
13381 if ac_fn_c_try_compile "$LINENO"; then :
13382    ac_cv_have___ss_family_in_struct_ss="yes"
13383 else
13384    ac_cv_have___ss_family_in_struct_ss="no"
13385
13386 fi
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388
13389 fi
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
13391 $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
13392 if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
13393
13394 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
13395
13396 fi
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_class field in struct passwd" >&5
13399 $as_echo_n "checking for pw_class field in struct passwd... " >&6; }
13400 if test "${ac_cv_have_pw_class_in_struct_passwd+set}" = set; then :
13401   $as_echo_n "(cached) " >&6
13402 else
13403
13404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h.  */
13406
13407 #include <pwd.h>
13408
13409 int
13410 main ()
13411 {
13412  struct passwd p; p.pw_class = 0;
13413   ;
13414   return 0;
13415 }
13416 _ACEOF
13417 if ac_fn_c_try_compile "$LINENO"; then :
13418    ac_cv_have_pw_class_in_struct_passwd="yes"
13419 else
13420    ac_cv_have_pw_class_in_struct_passwd="no"
13421
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424
13425 fi
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_class_in_struct_passwd" >&5
13427 $as_echo "$ac_cv_have_pw_class_in_struct_passwd" >&6; }
13428 if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then
13429
13430 $as_echo "#define HAVE_PW_CLASS_IN_PASSWD 1" >>confdefs.h
13431
13432 fi
13433
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_expire field in struct passwd" >&5
13435 $as_echo_n "checking for pw_expire field in struct passwd... " >&6; }
13436 if test "${ac_cv_have_pw_expire_in_struct_passwd+set}" = set; then :
13437   $as_echo_n "(cached) " >&6
13438 else
13439
13440         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h.  */
13442
13443 #include <pwd.h>
13444
13445 int
13446 main ()
13447 {
13448  struct passwd p; p.pw_expire = 0;
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454    ac_cv_have_pw_expire_in_struct_passwd="yes"
13455 else
13456    ac_cv_have_pw_expire_in_struct_passwd="no"
13457
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460
13461 fi
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_expire_in_struct_passwd" >&5
13463 $as_echo "$ac_cv_have_pw_expire_in_struct_passwd" >&6; }
13464 if test "x$ac_cv_have_pw_expire_in_struct_passwd" = "xyes" ; then
13465
13466 $as_echo "#define HAVE_PW_EXPIRE_IN_PASSWD 1" >>confdefs.h
13467
13468 fi
13469
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_change field in struct passwd" >&5
13471 $as_echo_n "checking for pw_change field in struct passwd... " >&6; }
13472 if test "${ac_cv_have_pw_change_in_struct_passwd+set}" = set; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475
13476         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h.  */
13478
13479 #include <pwd.h>
13480
13481 int
13482 main ()
13483 {
13484  struct passwd p; p.pw_change = 0;
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490    ac_cv_have_pw_change_in_struct_passwd="yes"
13491 else
13492    ac_cv_have_pw_change_in_struct_passwd="no"
13493
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496
13497 fi
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pw_change_in_struct_passwd" >&5
13499 $as_echo "$ac_cv_have_pw_change_in_struct_passwd" >&6; }
13500 if test "x$ac_cv_have_pw_change_in_struct_passwd" = "xyes" ; then
13501
13502 $as_echo "#define HAVE_PW_CHANGE_IN_PASSWD 1" >>confdefs.h
13503
13504 fi
13505
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_accrights field in struct msghdr" >&5
13507 $as_echo_n "checking for msg_accrights field in struct msghdr... " >&6; }
13508 if test "${ac_cv_have_accrights_in_msghdr+set}" = set; then :
13509   $as_echo_n "(cached) " >&6
13510 else
13511
13512         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h.  */
13514
13515 #include <sys/types.h>
13516 #include <sys/socket.h>
13517 #include <sys/uio.h>
13518 int main() {
13519 #ifdef msg_accrights
13520 #error "msg_accrights is a macro"
13521 exit(1);
13522 #endif
13523 struct msghdr m;
13524 m.msg_accrights = 0;
13525 exit(0);
13526 }
13527
13528 _ACEOF
13529 if ac_fn_c_try_compile "$LINENO"; then :
13530    ac_cv_have_accrights_in_msghdr="yes"
13531 else
13532    ac_cv_have_accrights_in_msghdr="no"
13533
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536
13537 fi
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_accrights_in_msghdr" >&5
13539 $as_echo "$ac_cv_have_accrights_in_msghdr" >&6; }
13540 if test "x$ac_cv_have_accrights_in_msghdr" = "xyes" ; then
13541
13542 $as_echo "#define HAVE_ACCRIGHTS_IN_MSGHDR 1" >>confdefs.h
13543
13544 fi
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct statvfs.f_fsid is integral type" >&5
13547 $as_echo_n "checking if struct statvfs.f_fsid is integral type... " >&6; }
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h.  */
13550
13551 #include <sys/types.h>
13552 #include <sys/stat.h>
13553 #ifdef HAVE_SYS_TIME_H
13554 # include <sys/time.h>
13555 #endif
13556 #ifdef HAVE_SYS_MOUNT_H
13557 #include <sys/mount.h>
13558 #endif
13559 #ifdef HAVE_SYS_STATVFS_H
13560 #include <sys/statvfs.h>
13561 #endif
13562
13563 int
13564 main ()
13565 {
13566 struct statvfs s; s.f_fsid = 0;
13567   ;
13568   return 0;
13569 }
13570 _ACEOF
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13574 else
13575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13577
13578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsid_t has member val" >&5
13579 $as_echo_n "checking if fsid_t has member val... " >&6; }
13580         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h.  */
13582
13583 #include <sys/types.h>
13584 #include <sys/statvfs.h>
13585 int
13586 main ()
13587 {
13588 fsid_t t; t.val[0] = 0;
13589   ;
13590   return 0;
13591 }
13592 _ACEOF
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13595 $as_echo "yes" >&6; }
13596
13597 $as_echo "#define FSID_HAS_VAL 1" >>confdefs.h
13598
13599 else
13600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13602 fi
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604
13605         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if f_fsid has member __val" >&5
13606 $as_echo_n "checking if f_fsid has member __val... " >&6; }
13607         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h.  */
13609
13610 #include <sys/types.h>
13611 #include <sys/statvfs.h>
13612 int
13613 main ()
13614 {
13615 fsid_t t; t.__val[0] = 0;
13616   ;
13617   return 0;
13618 }
13619 _ACEOF
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622 $as_echo "yes" >&6; }
13623
13624 $as_echo "#define FSID_HAS___VAL 1" >>confdefs.h
13625
13626 else
13627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13631
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msg_control field in struct msghdr" >&5
13636 $as_echo_n "checking for msg_control field in struct msghdr... " >&6; }
13637 if test "${ac_cv_have_control_in_msghdr+set}" = set; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640
13641         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h.  */
13643
13644 #include <sys/types.h>
13645 #include <sys/socket.h>
13646 #include <sys/uio.h>
13647 int main() {
13648 #ifdef msg_control
13649 #error "msg_control is a macro"
13650 exit(1);
13651 #endif
13652 struct msghdr m;
13653 m.msg_control = 0;
13654 exit(0);
13655 }
13656
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659    ac_cv_have_control_in_msghdr="yes"
13660 else
13661    ac_cv_have_control_in_msghdr="no"
13662
13663 fi
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_control_in_msghdr" >&5
13668 $as_echo "$ac_cv_have_control_in_msghdr" >&6; }
13669 if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
13670
13671 $as_echo "#define HAVE_CONTROL_IN_MSGHDR 1" >>confdefs.h
13672
13673 fi
13674
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
13676 $as_echo_n "checking if libc defines __progname... " >&6; }
13677 if test "${ac_cv_libc_defines___progname+set}" = set; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680
13681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h.  */
13683
13684 int
13685 main ()
13686 {
13687  extern char *__progname; printf("%s", __progname);
13688   ;
13689   return 0;
13690 }
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"; then :
13693    ac_cv_libc_defines___progname="yes"
13694 else
13695    ac_cv_libc_defines___progname="no"
13696
13697 fi
13698 rm -f core conftest.err conftest.$ac_objext \
13699     conftest$ac_exeext conftest.$ac_ext
13700
13701 fi
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
13703 $as_echo "$ac_cv_libc_defines___progname" >&6; }
13704 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
13705
13706 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13707
13708 fi
13709
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
13711 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
13712 if test "${ac_cv_cc_implements___FUNCTION__+set}" = set; then :
13713   $as_echo_n "(cached) " >&6
13714 else
13715
13716         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h.  */
13718
13719 #include <stdio.h>
13720
13721 int
13722 main ()
13723 {
13724  printf("%s", __FUNCTION__);
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"; then :
13730    ac_cv_cc_implements___FUNCTION__="yes"
13731 else
13732    ac_cv_cc_implements___FUNCTION__="no"
13733
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext \
13736     conftest$ac_exeext conftest.$ac_ext
13737
13738 fi
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___FUNCTION__" >&5
13740 $as_echo "$ac_cv_cc_implements___FUNCTION__" >&6; }
13741 if test "x$ac_cv_cc_implements___FUNCTION__" = "xyes" ; then
13742
13743 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
13744
13745 fi
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
13748 $as_echo_n "checking whether $CC implements __func__... " >&6; }
13749 if test "${ac_cv_cc_implements___func__+set}" = set; then :
13750   $as_echo_n "(cached) " >&6
13751 else
13752
13753         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h.  */
13755
13756 #include <stdio.h>
13757
13758 int
13759 main ()
13760 {
13761  printf("%s", __func__);
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_link "$LINENO"; then :
13767    ac_cv_cc_implements___func__="yes"
13768 else
13769    ac_cv_cc_implements___func__="no"
13770
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext \
13773     conftest$ac_exeext conftest.$ac_ext
13774
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_implements___func__" >&5
13777 $as_echo "$ac_cv_cc_implements___func__" >&6; }
13778 if test "x$ac_cv_cc_implements___func__" = "xyes" ; then
13779
13780 $as_echo "#define HAVE___func__ 1" >>confdefs.h
13781
13782 fi
13783
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_copy exists" >&5
13785 $as_echo_n "checking whether va_copy exists... " >&6; }
13786 if test "${ac_cv_have_va_copy+set}" = set; then :
13787   $as_echo_n "(cached) " >&6
13788 else
13789
13790         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h.  */
13792 #include <stdarg.h>
13793                  va_list x,y;
13794 int
13795 main ()
13796 {
13797 va_copy(x,y);
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 if ac_fn_c_try_link "$LINENO"; then :
13803    ac_cv_have_va_copy="yes"
13804 else
13805    ac_cv_have_va_copy="no"
13806
13807 fi
13808 rm -f core conftest.err conftest.$ac_objext \
13809     conftest$ac_exeext conftest.$ac_ext
13810
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_va_copy" >&5
13813 $as_echo "$ac_cv_have_va_copy" >&6; }
13814 if test "x$ac_cv_have_va_copy" = "xyes" ; then
13815
13816 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13817
13818 fi
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __va_copy exists" >&5
13821 $as_echo_n "checking whether __va_copy exists... " >&6; }
13822 if test "${ac_cv_have___va_copy+set}" = set; then :
13823   $as_echo_n "(cached) " >&6
13824 else
13825
13826         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h.  */
13828 #include <stdarg.h>
13829                  va_list x,y;
13830 int
13831 main ()
13832 {
13833 __va_copy(x,y);
13834   ;
13835   return 0;
13836 }
13837 _ACEOF
13838 if ac_fn_c_try_link "$LINENO"; then :
13839    ac_cv_have___va_copy="yes"
13840 else
13841    ac_cv_have___va_copy="no"
13842
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext \
13845     conftest$ac_exeext conftest.$ac_ext
13846
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___va_copy" >&5
13849 $as_echo "$ac_cv_have___va_copy" >&6; }
13850 if test "x$ac_cv_have___va_copy" = "xyes" ; then
13851
13852 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
13853
13854 fi
13855
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset support" >&5
13857 $as_echo_n "checking whether getopt has optreset support... " >&6; }
13858 if test "${ac_cv_have_getopt_optreset+set}" = set; then :
13859   $as_echo_n "(cached) " >&6
13860 else
13861
13862         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h.  */
13864
13865 #include <getopt.h>
13866
13867 int
13868 main ()
13869 {
13870  extern int optreset; optreset = 0;
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 if ac_fn_c_try_link "$LINENO"; then :
13876    ac_cv_have_getopt_optreset="yes"
13877 else
13878    ac_cv_have_getopt_optreset="no"
13879
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext \
13882     conftest$ac_exeext conftest.$ac_ext
13883
13884 fi
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_optreset" >&5
13886 $as_echo "$ac_cv_have_getopt_optreset" >&6; }
13887 if test "x$ac_cv_have_getopt_optreset" = "xyes" ; then
13888
13889 $as_echo "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
13890
13891 fi
13892
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_errlist" >&5
13894 $as_echo_n "checking if libc defines sys_errlist... " >&6; }
13895 if test "${ac_cv_libc_defines_sys_errlist+set}" = set; then :
13896   $as_echo_n "(cached) " >&6
13897 else
13898
13899         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h.  */
13901
13902 int
13903 main ()
13904 {
13905  extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]);
13906   ;
13907   return 0;
13908 }
13909 _ACEOF
13910 if ac_fn_c_try_link "$LINENO"; then :
13911    ac_cv_libc_defines_sys_errlist="yes"
13912 else
13913    ac_cv_libc_defines_sys_errlist="no"
13914
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext \
13917     conftest$ac_exeext conftest.$ac_ext
13918
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_errlist" >&5
13921 $as_echo "$ac_cv_libc_defines_sys_errlist" >&6; }
13922 if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then
13923
13924 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
13925
13926 fi
13927
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines sys_nerr" >&5
13930 $as_echo_n "checking if libc defines sys_nerr... " >&6; }
13931 if test "${ac_cv_libc_defines_sys_nerr+set}" = set; then :
13932   $as_echo_n "(cached) " >&6
13933 else
13934
13935         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h.  */
13937
13938 int
13939 main ()
13940 {
13941  extern int sys_nerr; printf("%i", sys_nerr);
13942   ;
13943   return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_c_try_link "$LINENO"; then :
13947    ac_cv_libc_defines_sys_nerr="yes"
13948 else
13949    ac_cv_libc_defines_sys_nerr="no"
13950
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext \
13953     conftest$ac_exeext conftest.$ac_ext
13954
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines_sys_nerr" >&5
13957 $as_echo "$ac_cv_libc_defines_sys_nerr" >&6; }
13958 if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then
13959
13960 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
13961
13962 fi
13963
13964 SCARD_MSG="no"
13965 # Check whether user wants sectok support
13966
13967 # Check whether --with-sectok was given.
13968 if test "${with_sectok+set}" = set; then :
13969   withval=$with_sectok;
13970                 if test "x$withval" != "xno" ; then
13971                         if test "x$withval" != "xyes" ; then
13972                                 CPPFLAGS="$CPPFLAGS -I${withval}"
13973                                 LDFLAGS="$LDFLAGS -L${withval}"
13974                                 if test ! -z "$need_dash_r" ; then
13975                                         LDFLAGS="$LDFLAGS -R${withval}"
13976                                 fi
13977                                 if test ! -z "$blibpath" ; then
13978                                         blibpath="$blibpath:${withval}"
13979                                 fi
13980                         fi
13981                         for ac_header in sectok.h
13982 do :
13983   ac_fn_c_check_header_mongrel "$LINENO" "sectok.h" "ac_cv_header_sectok_h" "$ac_includes_default"
13984 if test "x$ac_cv_header_sectok_h" = x""yes; then :
13985   cat >>confdefs.h <<_ACEOF
13986 #define HAVE_SECTOK_H 1
13987 _ACEOF
13988
13989 fi
13990
13991 done
13992
13993                         if test "$ac_cv_header_sectok_h" != yes; then
13994                                 as_fn_error $? "Can't find sectok.h" "$LINENO" 5
13995                         fi
13996                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sectok_open in -lsectok" >&5
13997 $as_echo_n "checking for sectok_open in -lsectok... " >&6; }
13998 if test "${ac_cv_lib_sectok_sectok_open+set}" = set; then :
13999   $as_echo_n "(cached) " >&6
14000 else
14001   ac_check_lib_save_LIBS=$LIBS
14002 LIBS="-lsectok  $LIBS"
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h.  */
14005
14006 /* Override any GCC internal prototype to avoid an error.
14007    Use char because int might match the return type of a GCC
14008    builtin and then its argument prototype would still apply.  */
14009 #ifdef __cplusplus
14010 extern "C"
14011 #endif
14012 char sectok_open ();
14013 int
14014 main ()
14015 {
14016 return sectok_open ();
14017   ;
14018   return 0;
14019 }
14020 _ACEOF
14021 if ac_fn_c_try_link "$LINENO"; then :
14022   ac_cv_lib_sectok_sectok_open=yes
14023 else
14024   ac_cv_lib_sectok_sectok_open=no
14025 fi
14026 rm -f core conftest.err conftest.$ac_objext \
14027     conftest$ac_exeext conftest.$ac_ext
14028 LIBS=$ac_check_lib_save_LIBS
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sectok_sectok_open" >&5
14031 $as_echo "$ac_cv_lib_sectok_sectok_open" >&6; }
14032 if test "x$ac_cv_lib_sectok_sectok_open" = x""yes; then :
14033   cat >>confdefs.h <<_ACEOF
14034 #define HAVE_LIBSECTOK 1
14035 _ACEOF
14036
14037   LIBS="-lsectok $LIBS"
14038
14039 fi
14040
14041                         if test "$ac_cv_lib_sectok_sectok_open" != yes; then
14042                                 as_fn_error $? "Can't find libsectok" "$LINENO" 5
14043                         fi
14044
14045 $as_echo "#define SMARTCARD 1" >>confdefs.h
14046
14047
14048 $as_echo "#define USE_SECTOK 1" >>confdefs.h
14049
14050                         SCARD_MSG="yes, using sectok"
14051                 fi
14052
14053
14054 fi
14055
14056
14057 # Check whether user wants OpenSC support
14058 OPENSC_CONFIG="no"
14059
14060 # Check whether --with-opensc was given.
14061 if test "${with_opensc+set}" = set; then :
14062   withval=$with_opensc;
14063             if test "x$withval" != "xno" ; then
14064                 if test "x$withval" != "xyes" ; then
14065                         OPENSC_CONFIG=$withval/bin/opensc-config
14066                 else
14067                         # Extract the first word of "opensc-config", so it can be a program name with args.
14068 set dummy opensc-config; ac_word=$2
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070 $as_echo_n "checking for $ac_word... " >&6; }
14071 if test "${ac_cv_path_OPENSC_CONFIG+set}" = set; then :
14072   $as_echo_n "(cached) " >&6
14073 else
14074   case $OPENSC_CONFIG in
14075   [\\/]* | ?:[\\/]*)
14076   ac_cv_path_OPENSC_CONFIG="$OPENSC_CONFIG" # Let the user override the test with a path.
14077   ;;
14078   *)
14079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14081 do
14082   IFS=$as_save_IFS
14083   test -z "$as_dir" && as_dir=.
14084     for ac_exec_ext in '' $ac_executable_extensions; do
14085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14086     ac_cv_path_OPENSC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14088     break 2
14089   fi
14090 done
14091   done
14092 IFS=$as_save_IFS
14093
14094   test -z "$ac_cv_path_OPENSC_CONFIG" && ac_cv_path_OPENSC_CONFIG="no"
14095   ;;
14096 esac
14097 fi
14098 OPENSC_CONFIG=$ac_cv_path_OPENSC_CONFIG
14099 if test -n "$OPENSC_CONFIG"; then
14100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSC_CONFIG" >&5
14101 $as_echo "$OPENSC_CONFIG" >&6; }
14102 else
14103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104 $as_echo "no" >&6; }
14105 fi
14106
14107
14108                 fi
14109                 if test "$OPENSC_CONFIG" != "no"; then
14110                         LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
14111                         LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
14112                         CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
14113                         LIBS="$LIBS $LIBOPENSC_LIBS"
14114                         $as_echo "#define SMARTCARD 1" >>confdefs.h
14115
14116
14117 $as_echo "#define USE_OPENSC 1" >>confdefs.h
14118
14119                         SCARD_MSG="yes, using OpenSC"
14120                 fi
14121             fi
14122
14123
14124 fi
14125
14126
14127 # Check libraries needed by DNS fingerprint support
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getrrsetbyname" >&5
14129 $as_echo_n "checking for library containing getrrsetbyname... " >&6; }
14130 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14131   $as_echo_n "(cached) " >&6
14132 else
14133   ac_func_search_save_LIBS=$LIBS
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h.  */
14136
14137 /* Override any GCC internal prototype to avoid an error.
14138    Use char because int might match the return type of a GCC
14139    builtin and then its argument prototype would still apply.  */
14140 #ifdef __cplusplus
14141 extern "C"
14142 #endif
14143 char getrrsetbyname ();
14144 int
14145 main ()
14146 {
14147 return getrrsetbyname ();
14148   ;
14149   return 0;
14150 }
14151 _ACEOF
14152 for ac_lib in '' resolv; do
14153   if test -z "$ac_lib"; then
14154     ac_res="none required"
14155   else
14156     ac_res=-l$ac_lib
14157     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14158   fi
14159   if ac_fn_c_try_link "$LINENO"; then :
14160   ac_cv_search_getrrsetbyname=$ac_res
14161 fi
14162 rm -f core conftest.err conftest.$ac_objext \
14163     conftest$ac_exeext
14164   if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14165   break
14166 fi
14167 done
14168 if test "${ac_cv_search_getrrsetbyname+set}" = set; then :
14169
14170 else
14171   ac_cv_search_getrrsetbyname=no
14172 fi
14173 rm conftest.$ac_ext
14174 LIBS=$ac_func_search_save_LIBS
14175 fi
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrrsetbyname" >&5
14177 $as_echo "$ac_cv_search_getrrsetbyname" >&6; }
14178 ac_res=$ac_cv_search_getrrsetbyname
14179 if test "$ac_res" != no; then :
14180   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14181
14182 $as_echo "#define HAVE_GETRRSETBYNAME 1" >>confdefs.h
14183
14184 else
14185
14186                 # Needed by our getrrsetbyname()
14187                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
14188 $as_echo_n "checking for library containing res_query... " >&6; }
14189 if test "${ac_cv_search_res_query+set}" = set; then :
14190   $as_echo_n "(cached) " >&6
14191 else
14192   ac_func_search_save_LIBS=$LIBS
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h.  */
14195
14196 /* Override any GCC internal prototype to avoid an error.
14197    Use char because int might match the return type of a GCC
14198    builtin and then its argument prototype would still apply.  */
14199 #ifdef __cplusplus
14200 extern "C"
14201 #endif
14202 char res_query ();
14203 int
14204 main ()
14205 {
14206 return res_query ();
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 for ac_lib in '' resolv; do
14212   if test -z "$ac_lib"; then
14213     ac_res="none required"
14214   else
14215     ac_res=-l$ac_lib
14216     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14217   fi
14218   if ac_fn_c_try_link "$LINENO"; then :
14219   ac_cv_search_res_query=$ac_res
14220 fi
14221 rm -f core conftest.err conftest.$ac_objext \
14222     conftest$ac_exeext
14223   if test "${ac_cv_search_res_query+set}" = set; then :
14224   break
14225 fi
14226 done
14227 if test "${ac_cv_search_res_query+set}" = set; then :
14228
14229 else
14230   ac_cv_search_res_query=no
14231 fi
14232 rm conftest.$ac_ext
14233 LIBS=$ac_func_search_save_LIBS
14234 fi
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
14236 $as_echo "$ac_cv_search_res_query" >&6; }
14237 ac_res=$ac_cv_search_res_query
14238 if test "$ac_res" != no; then :
14239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14240
14241 fi
14242
14243                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14244 $as_echo_n "checking for library containing dn_expand... " >&6; }
14245 if test "${ac_cv_search_dn_expand+set}" = set; then :
14246   $as_echo_n "(cached) " >&6
14247 else
14248   ac_func_search_save_LIBS=$LIBS
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h.  */
14251
14252 /* Override any GCC internal prototype to avoid an error.
14253    Use char because int might match the return type of a GCC
14254    builtin and then its argument prototype would still apply.  */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 char dn_expand ();
14259 int
14260 main ()
14261 {
14262 return dn_expand ();
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 for ac_lib in '' resolv; do
14268   if test -z "$ac_lib"; then
14269     ac_res="none required"
14270   else
14271     ac_res=-l$ac_lib
14272     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14273   fi
14274   if ac_fn_c_try_link "$LINENO"; then :
14275   ac_cv_search_dn_expand=$ac_res
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext \
14278     conftest$ac_exeext
14279   if test "${ac_cv_search_dn_expand+set}" = set; then :
14280   break
14281 fi
14282 done
14283 if test "${ac_cv_search_dn_expand+set}" = set; then :
14284
14285 else
14286   ac_cv_search_dn_expand=no
14287 fi
14288 rm conftest.$ac_ext
14289 LIBS=$ac_func_search_save_LIBS
14290 fi
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14292 $as_echo "$ac_cv_search_dn_expand" >&6; }
14293 ac_res=$ac_cv_search_dn_expand
14294 if test "$ac_res" != no; then :
14295   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14296
14297 fi
14298
14299                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if res_query will link" >&5
14300 $as_echo_n "checking if res_query will link... " >&6; }
14301                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h.  */
14303
14304 #include "confdefs.h"
14305 #include <sys/types.h>
14306 #include <netinet/in.h>
14307 #include <arpa/nameser.h>
14308 #include <netdb.h>
14309 #include <resolv.h>
14310 int main()
14311 {
14312         res_query (0, 0, 0, 0, 0);
14313         return 0;
14314 }
14315
14316 _ACEOF
14317 if ac_fn_c_try_link "$LINENO"; then :
14318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14319 $as_echo "yes" >&6; }
14320 else
14321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322 $as_echo "no" >&6; }
14323                     saved_LIBS="$LIBS"
14324                     LIBS="$LIBS -lresolv"
14325                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
14326 $as_echo_n "checking for res_query in -lresolv... " >&6; }
14327                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h.  */
14329
14330 #include "confdefs.h"
14331 #include <sys/types.h>
14332 #include <netinet/in.h>
14333 #include <arpa/nameser.h>
14334 #include <netdb.h>
14335 #include <resolv.h>
14336 int main()
14337 {
14338         res_query (0, 0, 0, 0, 0);
14339         return 0;
14340 }
14341
14342 _ACEOF
14343 if ac_fn_c_try_link "$LINENO"; then :
14344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14346 else
14347   LIBS="$saved_LIBS"
14348                          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext \
14352     conftest$ac_exeext conftest.$ac_ext
14353
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext \
14356     conftest$ac_exeext conftest.$ac_ext
14357                 for ac_func in _getshort _getlong
14358 do :
14359   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14362   cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14364 _ACEOF
14365
14366 fi
14367 done
14368
14369                 ac_fn_c_check_decl "$LINENO" "_getshort" "ac_cv_have_decl__getshort" "#include <sys/types.h>
14370                     #include <arpa/nameser.h>
14371 "
14372 if test "x$ac_cv_have_decl__getshort" = x""yes; then :
14373   ac_have_decl=1
14374 else
14375   ac_have_decl=0
14376 fi
14377
14378 cat >>confdefs.h <<_ACEOF
14379 #define HAVE_DECL__GETSHORT $ac_have_decl
14380 _ACEOF
14381 ac_fn_c_check_decl "$LINENO" "_getlong" "ac_cv_have_decl__getlong" "#include <sys/types.h>
14382                     #include <arpa/nameser.h>
14383 "
14384 if test "x$ac_cv_have_decl__getlong" = x""yes; then :
14385   ac_have_decl=1
14386 else
14387   ac_have_decl=0
14388 fi
14389
14390 cat >>confdefs.h <<_ACEOF
14391 #define HAVE_DECL__GETLONG $ac_have_decl
14392 _ACEOF
14393
14394                 ac_fn_c_check_member "$LINENO" "HEADER" "ad" "ac_cv_member_HEADER_ad" "#include <arpa/nameser.h>
14395 "
14396 if test "x$ac_cv_member_HEADER_ad" = x""yes; then :
14397
14398 $as_echo "#define HAVE_HEADER_AD 1" >>confdefs.h
14399
14400 fi
14401
14402
14403 fi
14404
14405
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct __res_state _res is an extern" >&5
14407 $as_echo_n "checking if struct __res_state _res is an extern... " >&6; }
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h.  */
14410
14411 #include <stdio.h>
14412 #if HAVE_SYS_TYPES_H
14413 # include <sys/types.h>
14414 #endif
14415 #include <netinet/in.h>
14416 #include <arpa/nameser.h>
14417 #include <resolv.h>
14418 extern struct __res_state _res;
14419 int main() { return 0; }
14420
14421 _ACEOF
14422 if ac_fn_c_try_link "$LINENO"; then :
14423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14424 $as_echo "yes" >&6; }
14425
14426 $as_echo "#define HAVE__RES_EXTERN 1" >>confdefs.h
14427
14428
14429 else
14430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431 $as_echo "no" >&6; }
14432
14433 fi
14434 rm -f core conftest.err conftest.$ac_objext \
14435     conftest$ac_exeext conftest.$ac_ext
14436
14437 # Check whether user wants SELinux support
14438 SELINUX_MSG="no"
14439 LIBSELINUX=""
14440
14441 # Check whether --with-selinux was given.
14442 if test "${with_selinux+set}" = set; then :
14443   withval=$with_selinux;  if test "x$withval" != "xno" ; then
14444                 save_LIBS="$LIBS"
14445
14446 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14447
14448                 SELINUX_MSG="yes"
14449                 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14450 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
14451
14452 else
14453   as_fn_error $? "SELinux support requires selinux.h header" "$LINENO" 5
14454 fi
14455
14456
14457                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setexeccon in -lselinux" >&5
14458 $as_echo_n "checking for setexeccon in -lselinux... " >&6; }
14459 if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then :
14460   $as_echo_n "(cached) " >&6
14461 else
14462   ac_check_lib_save_LIBS=$LIBS
14463 LIBS="-lselinux  $LIBS"
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h.  */
14466
14467 /* Override any GCC internal prototype to avoid an error.
14468    Use char because int might match the return type of a GCC
14469    builtin and then its argument prototype would still apply.  */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 char setexeccon ();
14474 int
14475 main ()
14476 {
14477 return setexeccon ();
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"; then :
14483   ac_cv_lib_selinux_setexeccon=yes
14484 else
14485   ac_cv_lib_selinux_setexeccon=no
14486 fi
14487 rm -f core conftest.err conftest.$ac_objext \
14488     conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setexeccon" >&5
14492 $as_echo "$ac_cv_lib_selinux_setexeccon" >&6; }
14493 if test "x$ac_cv_lib_selinux_setexeccon" = x""yes; then :
14494    LIBSELINUX="-lselinux"
14495                           LIBS="$LIBS -lselinux"
14496
14497 else
14498   as_fn_error $? "SELinux support requires libselinux library" "$LINENO" 5
14499 fi
14500
14501                 SSHDLIBS="$SSHDLIBS $LIBSELINUX"
14502                 for ac_func in getseuserbyname get_default_context_with_level
14503 do :
14504   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14506 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14507   cat >>confdefs.h <<_ACEOF
14508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14509 _ACEOF
14510
14511 fi
14512 done
14513
14514                 LIBS="$save_LIBS"
14515         fi
14516
14517 fi
14518
14519
14520 # Check whether user wants Kerberos 5 support
14521 KRB5_MSG="no"
14522
14523 # Check whether --with-kerberos5 was given.
14524 if test "${with_kerberos5+set}" = set; then :
14525   withval=$with_kerberos5;  if test "x$withval" != "xno" ; then
14526                 if test "x$withval" = "xyes" ; then
14527                         KRB5ROOT="/usr/local"
14528                 else
14529                         KRB5ROOT=${withval}
14530                 fi
14531
14532
14533 $as_echo "#define KRB5 1" >>confdefs.h
14534
14535                 KRB5_MSG="yes"
14536
14537                 # Extract the first word of "krb5-config", so it can be a program name with args.
14538 set dummy krb5-config; ac_word=$2
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540 $as_echo_n "checking for $ac_word... " >&6; }
14541 if test "${ac_cv_path_KRB5CONF+set}" = set; then :
14542   $as_echo_n "(cached) " >&6
14543 else
14544   case $KRB5CONF in
14545   [\\/]* | ?:[\\/]*)
14546   ac_cv_path_KRB5CONF="$KRB5CONF" # Let the user override the test with a path.
14547   ;;
14548   *)
14549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14550 as_dummy="$KRB5ROOT/bin:$PATH"
14551 for as_dir in $as_dummy
14552 do
14553   IFS=$as_save_IFS
14554   test -z "$as_dir" && as_dir=.
14555     for ac_exec_ext in '' $ac_executable_extensions; do
14556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14557     ac_cv_path_KRB5CONF="$as_dir/$ac_word$ac_exec_ext"
14558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14559     break 2
14560   fi
14561 done
14562   done
14563 IFS=$as_save_IFS
14564
14565   test -z "$ac_cv_path_KRB5CONF" && ac_cv_path_KRB5CONF="$KRB5ROOT/bin/krb5-config"
14566   ;;
14567 esac
14568 fi
14569 KRB5CONF=$ac_cv_path_KRB5CONF
14570 if test -n "$KRB5CONF"; then
14571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONF" >&5
14572 $as_echo "$KRB5CONF" >&6; }
14573 else
14574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575 $as_echo "no" >&6; }
14576 fi
14577
14578
14579                 if test -x $KRB5CONF ; then
14580
14581                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support" >&5
14582 $as_echo_n "checking for gssapi support... " >&6; }
14583                         if $KRB5CONF | grep gssapi >/dev/null ; then
14584                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14585 $as_echo "yes" >&6; }
14586
14587 $as_echo "#define GSSAPI 1" >>confdefs.h
14588
14589                                 k5confopts=gssapi
14590                         else
14591                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14593                                 k5confopts=""
14594                         fi
14595                         K5CFLAGS="`$KRB5CONF --cflags $k5confopts`"
14596                         K5LIBS="`$KRB5CONF --libs $k5confopts`"
14597                         CPPFLAGS="$CPPFLAGS $K5CFLAGS"
14598                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14599 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14600                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h.  */
14602  #include <krb5.h>
14603 int
14604 main ()
14605 {
14606  char *tmp = heimdal_version;
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 if ac_fn_c_try_compile "$LINENO"; then :
14612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14613 $as_echo "yes" >&6; }
14614
14615 $as_echo "#define HEIMDAL 1" >>confdefs.h
14616
14617 else
14618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14620
14621 fi
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623                 else
14624                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include"
14625                         LDFLAGS="$LDFLAGS -L${KRB5ROOT}/lib"
14626                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
14627 $as_echo_n "checking whether we are using Heimdal... " >&6; }
14628                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h.  */
14630  #include <krb5.h>
14631 int
14632 main ()
14633 {
14634  char *tmp = heimdal_version;
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 if ac_fn_c_try_compile "$LINENO"; then :
14640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14641 $as_echo "yes" >&6; }
14642                                          $as_echo "#define HEIMDAL 1" >>confdefs.h
14643
14644                                          K5LIBS="-lkrb5 -ldes"
14645                                          K5LIBS="$K5LIBS -lcom_err -lasn1"
14646                                          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net_write in -lroken" >&5
14647 $as_echo_n "checking for net_write in -lroken... " >&6; }
14648 if test "${ac_cv_lib_roken_net_write+set}" = set; then :
14649   $as_echo_n "(cached) " >&6
14650 else
14651   ac_check_lib_save_LIBS=$LIBS
14652 LIBS="-lroken  $LIBS"
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h.  */
14655
14656 /* Override any GCC internal prototype to avoid an error.
14657    Use char because int might match the return type of a GCC
14658    builtin and then its argument prototype would still apply.  */
14659 #ifdef __cplusplus
14660 extern "C"
14661 #endif
14662 char net_write ();
14663 int
14664 main ()
14665 {
14666 return net_write ();
14667   ;
14668   return 0;
14669 }
14670 _ACEOF
14671 if ac_fn_c_try_link "$LINENO"; then :
14672   ac_cv_lib_roken_net_write=yes
14673 else
14674   ac_cv_lib_roken_net_write=no
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext \
14677     conftest$ac_exeext conftest.$ac_ext
14678 LIBS=$ac_check_lib_save_LIBS
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_net_write" >&5
14681 $as_echo "$ac_cv_lib_roken_net_write" >&6; }
14682 if test "x$ac_cv_lib_roken_net_write" = x""yes; then :
14683   K5LIBS="$K5LIBS -lroken"
14684 fi
14685
14686
14687 else
14688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689 $as_echo "no" >&6; }
14690                                          K5LIBS="-lkrb5 -lk5crypto -lcom_err"
14691
14692
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
14696 $as_echo_n "checking for library containing dn_expand... " >&6; }
14697 if test "${ac_cv_search_dn_expand+set}" = set; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700   ac_func_search_save_LIBS=$LIBS
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h.  */
14703
14704 /* Override any GCC internal prototype to avoid an error.
14705    Use char because int might match the return type of a GCC
14706    builtin and then its argument prototype would still apply.  */
14707 #ifdef __cplusplus
14708 extern "C"
14709 #endif
14710 char dn_expand ();
14711 int
14712 main ()
14713 {
14714 return dn_expand ();
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 for ac_lib in '' resolv; do
14720   if test -z "$ac_lib"; then
14721     ac_res="none required"
14722   else
14723     ac_res=-l$ac_lib
14724     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14725   fi
14726   if ac_fn_c_try_link "$LINENO"; then :
14727   ac_cv_search_dn_expand=$ac_res
14728 fi
14729 rm -f core conftest.err conftest.$ac_objext \
14730     conftest$ac_exeext
14731   if test "${ac_cv_search_dn_expand+set}" = set; then :
14732   break
14733 fi
14734 done
14735 if test "${ac_cv_search_dn_expand+set}" = set; then :
14736
14737 else
14738   ac_cv_search_dn_expand=no
14739 fi
14740 rm conftest.$ac_ext
14741 LIBS=$ac_func_search_save_LIBS
14742 fi
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
14744 $as_echo "$ac_cv_search_dn_expand" >&6; }
14745 ac_res=$ac_cv_search_dn_expand
14746 if test "$ac_res" != no; then :
14747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14748
14749 fi
14750
14751
14752                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi_krb5" >&5
14753 $as_echo_n "checking for gss_init_sec_context in -lgssapi_krb5... " >&6; }
14754 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then :
14755   $as_echo_n "(cached) " >&6
14756 else
14757   ac_check_lib_save_LIBS=$LIBS
14758 LIBS="-lgssapi_krb5 $K5LIBS $LIBS"
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h.  */
14761
14762 /* Override any GCC internal prototype to avoid an error.
14763    Use char because int might match the return type of a GCC
14764    builtin and then its argument prototype would still apply.  */
14765 #ifdef __cplusplus
14766 extern "C"
14767 #endif
14768 char gss_init_sec_context ();
14769 int
14770 main ()
14771 {
14772 return gss_init_sec_context ();
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 if ac_fn_c_try_link "$LINENO"; then :
14778   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
14779 else
14780   ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext \
14783     conftest$ac_exeext conftest.$ac_ext
14784 LIBS=$ac_check_lib_save_LIBS
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
14787 $as_echo "$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6; }
14788 if test "x$ac_cv_lib_gssapi_krb5_gss_init_sec_context" = x""yes; then :
14789    $as_echo "#define GSSAPI 1" >>confdefs.h
14790
14791                                   K5LIBS="-lgssapi_krb5 $K5LIBS"
14792 else
14793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_init_sec_context in -lgssapi" >&5
14794 $as_echo_n "checking for gss_init_sec_context in -lgssapi... " >&6; }
14795 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then :
14796   $as_echo_n "(cached) " >&6
14797 else
14798   ac_check_lib_save_LIBS=$LIBS
14799 LIBS="-lgssapi $K5LIBS $LIBS"
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h.  */
14802
14803 /* Override any GCC internal prototype to avoid an error.
14804    Use char because int might match the return type of a GCC
14805    builtin and then its argument prototype would still apply.  */
14806 #ifdef __cplusplus
14807 extern "C"
14808 #endif
14809 char gss_init_sec_context ();
14810 int
14811 main ()
14812 {
14813 return gss_init_sec_context ();
14814   ;
14815   return 0;
14816 }
14817 _ACEOF
14818 if ac_fn_c_try_link "$LINENO"; then :
14819   ac_cv_lib_gssapi_gss_init_sec_context=yes
14820 else
14821   ac_cv_lib_gssapi_gss_init_sec_context=no
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext \
14824     conftest$ac_exeext conftest.$ac_ext
14825 LIBS=$ac_check_lib_save_LIBS
14826 fi
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
14828 $as_echo "$ac_cv_lib_gssapi_gss_init_sec_context" >&6; }
14829 if test "x$ac_cv_lib_gssapi_gss_init_sec_context" = x""yes; then :
14830    $as_echo "#define GSSAPI 1" >>confdefs.h
14831
14832                                           K5LIBS="-lgssapi $K5LIBS"
14833 else
14834   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api library - build may fail" >&5
14835 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api library - build may fail" >&2;}
14836 fi
14837
14838
14839 fi
14840
14841
14842                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14844
14845 else
14846    unset ac_cv_header_gssapi_h
14847                                   CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14848                                   for ac_header in gssapi.h
14849 do :
14850   ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14851 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
14852   cat >>confdefs.h <<_ACEOF
14853 #define HAVE_GSSAPI_H 1
14854 _ACEOF
14855
14856 else
14857   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find any suitable gss-api header - build may fail" >&5
14858 $as_echo "$as_me: WARNING: Cannot find any suitable gss-api header - build may fail" >&2;}
14859
14860 fi
14861
14862 done
14863
14864
14865
14866 fi
14867
14868
14869
14870                         oldCPP="$CPPFLAGS"
14871                         CPPFLAGS="$CPPFLAGS -I${KRB5ROOT}/include/gssapi"
14872                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi_krb5.h" "ac_cv_header_gssapi_krb5_h" "$ac_includes_default"
14873 if test "x$ac_cv_header_gssapi_krb5_h" = x""yes; then :
14874
14875 else
14876    CPPFLAGS="$oldCPP"
14877 fi
14878
14879
14880
14881                 fi
14882                 if test ! -z "$need_dash_r" ; then
14883                         LDFLAGS="$LDFLAGS -R${KRB5ROOT}/lib"
14884                 fi
14885                 if test ! -z "$blibpath" ; then
14886                         blibpath="$blibpath:${KRB5ROOT}/lib"
14887                 fi
14888
14889                 for ac_header in gssapi.h gssapi/gssapi.h
14890 do :
14891   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14893 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14894   cat >>confdefs.h <<_ACEOF
14895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14896 _ACEOF
14897
14898 fi
14899
14900 done
14901
14902                 for ac_header in gssapi_krb5.h gssapi/gssapi_krb5.h
14903 do :
14904   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14907   cat >>confdefs.h <<_ACEOF
14908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14909 _ACEOF
14910
14911 fi
14912
14913 done
14914
14915                 for ac_header in gssapi_generic.h gssapi/gssapi_generic.h
14916 do :
14917   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14920   cat >>confdefs.h <<_ACEOF
14921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14922 _ACEOF
14923
14924 fi
14925
14926 done
14927
14928
14929                 LIBS="$LIBS $K5LIBS"
14930                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing k_hasafs" >&5
14931 $as_echo_n "checking for library containing k_hasafs... " >&6; }
14932 if test "${ac_cv_search_k_hasafs+set}" = set; then :
14933   $as_echo_n "(cached) " >&6
14934 else
14935   ac_func_search_save_LIBS=$LIBS
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h.  */
14938
14939 /* Override any GCC internal prototype to avoid an error.
14940    Use char because int might match the return type of a GCC
14941    builtin and then its argument prototype would still apply.  */
14942 #ifdef __cplusplus
14943 extern "C"
14944 #endif
14945 char k_hasafs ();
14946 int
14947 main ()
14948 {
14949 return k_hasafs ();
14950   ;
14951   return 0;
14952 }
14953 _ACEOF
14954 for ac_lib in '' kafs; do
14955   if test -z "$ac_lib"; then
14956     ac_res="none required"
14957   else
14958     ac_res=-l$ac_lib
14959     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14960   fi
14961   if ac_fn_c_try_link "$LINENO"; then :
14962   ac_cv_search_k_hasafs=$ac_res
14963 fi
14964 rm -f core conftest.err conftest.$ac_objext \
14965     conftest$ac_exeext
14966   if test "${ac_cv_search_k_hasafs+set}" = set; then :
14967   break
14968 fi
14969 done
14970 if test "${ac_cv_search_k_hasafs+set}" = set; then :
14971
14972 else
14973   ac_cv_search_k_hasafs=no
14974 fi
14975 rm conftest.$ac_ext
14976 LIBS=$ac_func_search_save_LIBS
14977 fi
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_k_hasafs" >&5
14979 $as_echo "$ac_cv_search_k_hasafs" >&6; }
14980 ac_res=$ac_cv_search_k_hasafs
14981 if test "$ac_res" != no; then :
14982   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14983
14984 $as_echo "#define USE_AFS 1" >>confdefs.h
14985
14986 fi
14987
14988         fi
14989
14990
14991 fi
14992
14993
14994 # Looking for programs, paths and files
14995
14996 PRIVSEP_PATH=/var/empty
14997
14998 # Check whether --with-privsep-path was given.
14999 if test "${with_privsep_path+set}" = set; then :
15000   withval=$with_privsep_path;
15001                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15002                     test "x${withval}" != "xyes"; then
15003                         PRIVSEP_PATH=$withval
15004                 fi
15005
15006
15007 fi
15008
15009
15010
15011
15012 # Check whether --with-xauth was given.
15013 if test "${with_xauth+set}" = set; then :
15014   withval=$with_xauth;
15015                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15016                     test "x${withval}" != "xyes"; then
15017                         xauth_path=$withval
15018                 fi
15019
15020 else
15021
15022                 TestPath="$PATH"
15023                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X/bin"
15024                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/bin/X11"
15025                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/X11R6/bin"
15026                 TestPath="${TestPath}${PATH_SEPARATOR}/usr/openwin/bin"
15027                 # Extract the first word of "xauth", so it can be a program name with args.
15028 set dummy xauth; ac_word=$2
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15030 $as_echo_n "checking for $ac_word... " >&6; }
15031 if test "${ac_cv_path_xauth_path+set}" = set; then :
15032   $as_echo_n "(cached) " >&6
15033 else
15034   case $xauth_path in
15035   [\\/]* | ?:[\\/]*)
15036   ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path.
15037   ;;
15038   *)
15039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040 for as_dir in $TestPath
15041 do
15042   IFS=$as_save_IFS
15043   test -z "$as_dir" && as_dir=.
15044     for ac_exec_ext in '' $ac_executable_extensions; do
15045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15046     ac_cv_path_xauth_path="$as_dir/$ac_word$ac_exec_ext"
15047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15048     break 2
15049   fi
15050 done
15051   done
15052 IFS=$as_save_IFS
15053
15054   ;;
15055 esac
15056 fi
15057 xauth_path=$ac_cv_path_xauth_path
15058 if test -n "$xauth_path"; then
15059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xauth_path" >&5
15060 $as_echo "$xauth_path" >&6; }
15061 else
15062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15063 $as_echo "no" >&6; }
15064 fi
15065
15066
15067                 if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then
15068                         xauth_path="/usr/openwin/bin/xauth"
15069                 fi
15070
15071
15072 fi
15073
15074
15075 STRIP_OPT=-s
15076 # Check whether --enable-strip was given.
15077 if test "${enable_strip+set}" = set; then :
15078   enableval=$enable_strip;
15079                 if test "x$enableval" = "xno" ; then
15080                         STRIP_OPT=
15081                 fi
15082
15083
15084 fi
15085
15086
15087
15088 if test -z "$xauth_path" ; then
15089         XAUTH_PATH="undefined"
15090
15091 else
15092
15093 cat >>confdefs.h <<_ACEOF
15094 #define XAUTH_PATH "$xauth_path"
15095 _ACEOF
15096
15097         XAUTH_PATH=$xauth_path
15098
15099 fi
15100
15101 # Check for mail directory (last resort if we cannot get it from headers)
15102 if test ! -z "$MAIL" ; then
15103         maildir=`dirname $MAIL`
15104
15105 cat >>confdefs.h <<_ACEOF
15106 #define MAIL_DIRECTORY "$maildir"
15107 _ACEOF
15108
15109 fi
15110
15111 if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes"; then
15112         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptmx test" >&5
15113 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptmx test" >&2;}
15114         disable_ptmx_check=yes
15115 fi
15116 if test -z "$no_dev_ptmx" ; then
15117         if test "x$disable_ptmx_check" != "xyes" ; then
15118                 as_ac_File=`$as_echo "ac_cv_file_"/dev/ptmx"" | $as_tr_sh`
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptmx\"" >&5
15120 $as_echo_n "checking for \"/dev/ptmx\"... " >&6; }
15121 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15122   $as_echo_n "(cached) " >&6
15123 else
15124   test "$cross_compiling" = yes &&
15125   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15126 if test -r ""/dev/ptmx""; then
15127   eval "$as_ac_File=yes"
15128 else
15129   eval "$as_ac_File=no"
15130 fi
15131 fi
15132 eval ac_res=\$$as_ac_File
15133                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15134 $as_echo "$ac_res" >&6; }
15135 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15136
15137
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_DEV_PTMX 1
15140 _ACEOF
15141
15142                                 have_dev_ptmx=1
15143
15144
15145 fi
15146
15147         fi
15148 fi
15149
15150 if test ! -z "$cross_compiling" && test "x$cross_compiling" != "xyes"; then
15151         as_ac_File=`$as_echo "ac_cv_file_"/dev/ptc"" | $as_tr_sh`
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/ptc\"" >&5
15153 $as_echo_n "checking for \"/dev/ptc\"... " >&6; }
15154 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15155   $as_echo_n "(cached) " >&6
15156 else
15157   test "$cross_compiling" = yes &&
15158   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15159 if test -r ""/dev/ptc""; then
15160   eval "$as_ac_File=yes"
15161 else
15162   eval "$as_ac_File=no"
15163 fi
15164 fi
15165 eval ac_res=\$$as_ac_File
15166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15167 $as_echo "$ac_res" >&6; }
15168 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15169
15170
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_DEV_PTS_AND_PTC 1
15173 _ACEOF
15174
15175                         have_dev_ptc=1
15176
15177
15178 fi
15179
15180 else
15181         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: Disabling /dev/ptc test" >&5
15182 $as_echo "$as_me: WARNING: cross compiling: Disabling /dev/ptc test" >&2;}
15183 fi
15184
15185 # Options from here on. Some of these are preset by platform above
15186
15187 # Check whether --with-mantype was given.
15188 if test "${with_mantype+set}" = set; then :
15189   withval=$with_mantype;
15190                 case "$withval" in
15191                 man|cat|doc)
15192                         MANTYPE=$withval
15193                         ;;
15194                 *)
15195                         as_fn_error $? "invalid man type: $withval" "$LINENO" 5
15196                         ;;
15197                 esac
15198
15199
15200 fi
15201
15202 if test -z "$MANTYPE"; then
15203         TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
15204         for ac_prog in nroff awf
15205 do
15206   # Extract the first word of "$ac_prog", so it can be a program name with args.
15207 set dummy $ac_prog; ac_word=$2
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15209 $as_echo_n "checking for $ac_word... " >&6; }
15210 if test "${ac_cv_path_NROFF+set}" = set; then :
15211   $as_echo_n "(cached) " >&6
15212 else
15213   case $NROFF in
15214   [\\/]* | ?:[\\/]*)
15215   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
15216   ;;
15217   *)
15218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15219 for as_dir in $TestPath
15220 do
15221   IFS=$as_save_IFS
15222   test -z "$as_dir" && as_dir=.
15223     for ac_exec_ext in '' $ac_executable_extensions; do
15224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15225     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
15226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15227     break 2
15228   fi
15229 done
15230   done
15231 IFS=$as_save_IFS
15232
15233   ;;
15234 esac
15235 fi
15236 NROFF=$ac_cv_path_NROFF
15237 if test -n "$NROFF"; then
15238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
15239 $as_echo "$NROFF" >&6; }
15240 else
15241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242 $as_echo "no" >&6; }
15243 fi
15244
15245
15246   test -n "$NROFF" && break
15247 done
15248 test -n "$NROFF" || NROFF="/bin/false"
15249
15250         if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then
15251                 MANTYPE=doc
15252         elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then
15253                 MANTYPE=man
15254         else
15255                 MANTYPE=cat
15256         fi
15257 fi
15258
15259 if test "$MANTYPE" = "doc"; then
15260         mansubdir=man;
15261 else
15262         mansubdir=$MANTYPE;
15263 fi
15264
15265
15266 # Check whether to enable MD5 passwords
15267 MD5_MSG="no"
15268
15269 # Check whether --with-md5-passwords was given.
15270 if test "${with_md5_passwords+set}" = set; then :
15271   withval=$with_md5_passwords;
15272                 if test "x$withval" != "xno" ; then
15273
15274 $as_echo "#define HAVE_MD5_PASSWORDS 1" >>confdefs.h
15275
15276                         MD5_MSG="yes"
15277                 fi
15278
15279
15280 fi
15281
15282
15283 # Whether to disable shadow password support
15284
15285 # Check whether --with-shadow was given.
15286 if test "${with_shadow+set}" = set; then :
15287   withval=$with_shadow;
15288                 if test "x$withval" = "xno" ; then
15289                         $as_echo "#define DISABLE_SHADOW 1" >>confdefs.h
15290
15291                         disable_shadow=yes
15292                 fi
15293
15294
15295 fi
15296
15297
15298 if test -z "$disable_shadow" ; then
15299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systems has expire shadow information" >&5
15300 $as_echo_n "checking if the systems has expire shadow information... " >&6; }
15301         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302 /* end confdefs.h.  */
15303
15304 #include <sys/types.h>
15305 #include <shadow.h>
15306         struct spwd sp;
15307
15308 int
15309 main ()
15310 {
15311  sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0;
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 if ac_fn_c_try_compile "$LINENO"; then :
15317    sp_expire_available=yes
15318 fi
15319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320
15321         if test "x$sp_expire_available" = "xyes" ; then
15322                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15323 $as_echo "yes" >&6; }
15324
15325 $as_echo "#define HAS_SHADOW_EXPIRE 1" >>confdefs.h
15326
15327         else
15328                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15330         fi
15331 fi
15332
15333 # Use ip address instead of hostname in $DISPLAY
15334 if test ! -z "$IPADDR_IN_DISPLAY" ; then
15335         DISPLAY_HACK_MSG="yes"
15336
15337 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15338
15339 else
15340         DISPLAY_HACK_MSG="no"
15341
15342 # Check whether --with-ipaddr-display was given.
15343 if test "${with_ipaddr_display+set}" = set; then :
15344   withval=$with_ipaddr_display;
15345                         if test "x$withval" != "xno" ; then
15346                                 $as_echo "#define IPADDR_IN_DISPLAY 1" >>confdefs.h
15347
15348                                 DISPLAY_HACK_MSG="yes"
15349                         fi
15350
15351
15352 fi
15353
15354 fi
15355
15356 # check for /etc/default/login and use it if present.
15357 # Check whether --enable-etc-default-login was given.
15358 if test "${enable_etc_default_login+set}" = set; then :
15359   enableval=$enable_etc_default_login;  if test "x$enableval" = "xno"; then
15360                 { $as_echo "$as_me:${as_lineno-$LINENO}: /etc/default/login handling disabled" >&5
15361 $as_echo "$as_me: /etc/default/login handling disabled" >&6;}
15362                 etc_default_login=no
15363           else
15364                 etc_default_login=yes
15365           fi
15366 else
15367    if test ! -z "$cross_compiling" && test "x$cross_compiling" = "xyes";
15368           then
15369                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking /etc/default/login" >&5
15370 $as_echo "$as_me: WARNING: cross compiling: not checking /etc/default/login" >&2;}
15371                 etc_default_login=no
15372           else
15373                 etc_default_login=yes
15374           fi
15375
15376 fi
15377
15378
15379 if test "x$etc_default_login" != "xno"; then
15380         as_ac_File=`$as_echo "ac_cv_file_"/etc/default/login"" | $as_tr_sh`
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/etc/default/login\"" >&5
15382 $as_echo_n "checking for \"/etc/default/login\"... " >&6; }
15383 if eval "test \"\${$as_ac_File+set}\"" = set; then :
15384   $as_echo_n "(cached) " >&6
15385 else
15386   test "$cross_compiling" = yes &&
15387   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15388 if test -r ""/etc/default/login""; then
15389   eval "$as_ac_File=yes"
15390 else
15391   eval "$as_ac_File=no"
15392 fi
15393 fi
15394 eval ac_res=\$$as_ac_File
15395                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15396 $as_echo "$ac_res" >&6; }
15397 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
15398    external_path_file=/etc/default/login
15399 fi
15400
15401         if test "x$external_path_file" = "x/etc/default/login"; then
15402
15403 $as_echo "#define HAVE_ETC_DEFAULT_LOGIN 1" >>confdefs.h
15404
15405         fi
15406 fi
15407
15408 if test $ac_cv_func_login_getcapbool = "yes" && \
15409         test $ac_cv_header_login_cap_h = "yes" ; then
15410         external_path_file=/etc/login.conf
15411 fi
15412
15413 # Whether to mess with the default path
15414 SERVER_PATH_MSG="(default)"
15415
15416 # Check whether --with-default-path was given.
15417 if test "${with_default_path+set}" = set; then :
15418   withval=$with_default_path;
15419                 if test "x$external_path_file" = "x/etc/login.conf" ; then
15420                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15421 --with-default-path=PATH has no effect on this system.
15422 Edit /etc/login.conf instead." >&5
15423 $as_echo "$as_me: WARNING:
15424 --with-default-path=PATH has no effect on this system.
15425 Edit /etc/login.conf instead." >&2;}
15426                 elif test "x$withval" != "xno" ; then
15427                         if test ! -z "$external_path_file" ; then
15428                                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15429 --with-default-path=PATH will only be used if PATH is not defined in
15430 $external_path_file ." >&5
15431 $as_echo "$as_me: WARNING:
15432 --with-default-path=PATH will only be used if PATH is not defined in
15433 $external_path_file ." >&2;}
15434                         fi
15435                         user_path="$withval"
15436                         SERVER_PATH_MSG="$withval"
15437                 fi
15438
15439 else
15440    if test "x$external_path_file" = "x/etc/login.conf" ; then
15441                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure the path to scp is in /etc/login.conf" >&5
15442 $as_echo "$as_me: WARNING: Make sure the path to scp is in /etc/login.conf" >&2;}
15443         else
15444                 if test ! -z "$external_path_file" ; then
15445                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15446 If PATH is defined in $external_path_file, ensure the path to scp is included,
15447 otherwise scp will not work." >&5
15448 $as_echo "$as_me: WARNING:
15449 If PATH is defined in $external_path_file, ensure the path to scp is included,
15450 otherwise scp will not work." >&2;}
15451                 fi
15452                 if test "$cross_compiling" = yes; then :
15453    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15454
15455 else
15456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h.  */
15458
15459 /* find out what STDPATH is */
15460 #include <stdio.h>
15461 #ifdef HAVE_PATHS_H
15462 # include <paths.h>
15463 #endif
15464 #ifndef _PATH_STDPATH
15465 # ifdef _PATH_USERPATH  /* Irix */
15466 #  define _PATH_STDPATH _PATH_USERPATH
15467 # else
15468 #  define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
15469 # endif
15470 #endif
15471 #include <sys/types.h>
15472 #include <sys/stat.h>
15473 #include <fcntl.h>
15474 #define DATA "conftest.stdpath"
15475
15476 main()
15477 {
15478         FILE *fd;
15479         int rc;
15480
15481         fd = fopen(DATA,"w");
15482         if(fd == NULL)
15483                 exit(1);
15484
15485         if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0)
15486                 exit(1);
15487
15488         exit(0);
15489 }
15490
15491 _ACEOF
15492 if ac_fn_c_try_run "$LINENO"; then :
15493    user_path=`cat conftest.stdpath`
15494 else
15495    user_path="/usr/bin:/bin:/usr/sbin:/sbin"
15496 fi
15497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15498   conftest.$ac_objext conftest.beam conftest.$ac_ext
15499 fi
15500
15501 # make sure $bindir is in USER_PATH so scp will work
15502                 t_bindir=`eval echo ${bindir}`
15503                 case $t_bindir in
15504                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;;
15505                 esac
15506                 case $t_bindir in
15507                         NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;;
15508                 esac
15509                 echo $user_path | grep ":$t_bindir"  > /dev/null 2>&1
15510                 if test $? -ne 0  ; then
15511                         echo $user_path | grep "^$t_bindir"  > /dev/null 2>&1
15512                         if test $? -ne 0  ; then
15513                                 user_path=$user_path:$t_bindir
15514                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $t_bindir to USER_PATH so scp will work" >&5
15515 $as_echo "Adding $t_bindir to USER_PATH so scp will work" >&6; }
15516                         fi
15517                 fi
15518         fi
15519
15520 fi
15521
15522 if test "x$external_path_file" != "x/etc/login.conf" ; then
15523
15524 cat >>confdefs.h <<_ACEOF
15525 #define USER_PATH "$user_path"
15526 _ACEOF
15527
15528
15529 fi
15530
15531 # Set superuser path separately to user path
15532
15533 # Check whether --with-superuser-path was given.
15534 if test "${with_superuser_path+set}" = set; then :
15535   withval=$with_superuser_path;
15536                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15537                     test "x${withval}" != "xyes"; then
15538
15539 cat >>confdefs.h <<_ACEOF
15540 #define SUPERUSER_PATH "$withval"
15541 _ACEOF
15542
15543                         superuser_path=$withval
15544                 fi
15545
15546
15547 fi
15548
15549
15550
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5
15552 $as_echo_n "checking if we need to convert IPv4 in IPv6-mapped addresses... " >&6; }
15553 IPV4_IN6_HACK_MSG="no"
15554
15555 # Check whether --with-4in6 was given.
15556 if test "${with_4in6+set}" = set; then :
15557   withval=$with_4in6;
15558                 if test "x$withval" != "xno" ; then
15559                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15560 $as_echo "yes" >&6; }
15561
15562 $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15563
15564                         IPV4_IN6_HACK_MSG="yes"
15565                 else
15566                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567 $as_echo "no" >&6; }
15568                 fi
15569
15570 else
15571
15572                 if test "x$inet6_default_4in6" = "xyes"; then
15573                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
15574 $as_echo "yes (default)" >&6; }
15575                         $as_echo "#define IPV4_IN_IPV6 1" >>confdefs.h
15576
15577                         IPV4_IN6_HACK_MSG="yes"
15578                 else
15579                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
15580 $as_echo "no (default)" >&6; }
15581                 fi
15582
15583
15584 fi
15585
15586
15587 # Whether to enable BSD auth support
15588 BSD_AUTH_MSG=no
15589
15590 # Check whether --with-bsd-auth was given.
15591 if test "${with_bsd_auth+set}" = set; then :
15592   withval=$with_bsd_auth;
15593                 if test "x$withval" != "xno" ; then
15594
15595 $as_echo "#define BSD_AUTH 1" >>confdefs.h
15596
15597                         BSD_AUTH_MSG=yes
15598                 fi
15599
15600
15601 fi
15602
15603
15604 # Where to place sshd.pid
15605 piddir=/var/run
15606 # make sure the directory exists
15607 if test ! -d $piddir ; then
15608         piddir=`eval echo ${sysconfdir}`
15609         case $piddir in
15610                 NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;;
15611         esac
15612 fi
15613
15614
15615 # Check whether --with-pid-dir was given.
15616 if test "${with_pid_dir+set}" = set; then :
15617   withval=$with_pid_dir;
15618                 if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
15619                     test "x${withval}" != "xyes"; then
15620                         piddir=$withval
15621                         if test ! -d $piddir ; then
15622                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** no $piddir directory on this system **" >&5
15623 $as_echo "$as_me: WARNING: ** no $piddir directory on this system **" >&2;}
15624                         fi
15625                 fi
15626
15627
15628 fi
15629
15630
15631
15632 cat >>confdefs.h <<_ACEOF
15633 #define _PATH_SSH_PIDDIR "$piddir"
15634 _ACEOF
15635
15636
15637
15638 # Check whether --enable-lastlog was given.
15639 if test "${enable_lastlog+set}" = set; then :
15640   enableval=$enable_lastlog;
15641                 if test "x$enableval" = "xno" ; then
15642                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15643
15644                 fi
15645
15646
15647 fi
15648
15649 # Check whether --enable-utmp was given.
15650 if test "${enable_utmp+set}" = set; then :
15651   enableval=$enable_utmp;
15652                 if test "x$enableval" = "xno" ; then
15653                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15654
15655                 fi
15656
15657
15658 fi
15659
15660 # Check whether --enable-utmpx was given.
15661 if test "${enable_utmpx+set}" = set; then :
15662   enableval=$enable_utmpx;
15663                 if test "x$enableval" = "xno" ; then
15664
15665 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15666
15667                 fi
15668
15669
15670 fi
15671
15672 # Check whether --enable-wtmp was given.
15673 if test "${enable_wtmp+set}" = set; then :
15674   enableval=$enable_wtmp;
15675                 if test "x$enableval" = "xno" ; then
15676                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15677
15678                 fi
15679
15680
15681 fi
15682
15683 # Check whether --enable-wtmpx was given.
15684 if test "${enable_wtmpx+set}" = set; then :
15685   enableval=$enable_wtmpx;
15686                 if test "x$enableval" = "xno" ; then
15687
15688 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
15689
15690                 fi
15691
15692
15693 fi
15694
15695 # Check whether --enable-libutil was given.
15696 if test "${enable_libutil+set}" = set; then :
15697   enableval=$enable_libutil;
15698                 if test "x$enableval" = "xno" ; then
15699                         $as_echo "#define DISABLE_LOGIN 1" >>confdefs.h
15700
15701                 fi
15702
15703
15704 fi
15705
15706 # Check whether --enable-pututline was given.
15707 if test "${enable_pututline+set}" = set; then :
15708   enableval=$enable_pututline;
15709                 if test "x$enableval" = "xno" ; then
15710
15711 $as_echo "#define DISABLE_PUTUTLINE 1" >>confdefs.h
15712
15713                 fi
15714
15715
15716 fi
15717
15718 # Check whether --enable-pututxline was given.
15719 if test "${enable_pututxline+set}" = set; then :
15720   enableval=$enable_pututxline;
15721                 if test "x$enableval" = "xno" ; then
15722
15723 $as_echo "#define DISABLE_PUTUTXLINE 1" >>confdefs.h
15724
15725                 fi
15726
15727
15728 fi
15729
15730
15731 # Check whether --with-lastlog was given.
15732 if test "${with_lastlog+set}" = set; then :
15733   withval=$with_lastlog;
15734                 if test "x$withval" = "xno" ; then
15735                         $as_echo "#define DISABLE_LASTLOG 1" >>confdefs.h
15736
15737                 elif test -n "$withval"  &&  test "x${withval}" != "xyes"; then
15738                         conf_lastlog_location=$withval
15739                 fi
15740
15741
15742 fi
15743
15744
15745
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines LASTLOG_FILE" >&5
15747 $as_echo_n "checking if your system defines LASTLOG_FILE... " >&6; }
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h.  */
15750
15751 #include <sys/types.h>
15752 #include <utmp.h>
15753 #ifdef HAVE_LASTLOG_H
15754 #  include <lastlog.h>
15755 #endif
15756 #ifdef HAVE_PATHS_H
15757 #  include <paths.h>
15758 #endif
15759 #ifdef HAVE_LOGIN_H
15760 # include <login.h>
15761 #endif
15762
15763 int
15764 main ()
15765 {
15766  char *lastlog = LASTLOG_FILE;
15767   ;
15768   return 0;
15769 }
15770 _ACEOF
15771 if ac_fn_c_try_compile "$LINENO"; then :
15772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15773 $as_echo "yes" >&6; }
15774 else
15775
15776                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777 $as_echo "no" >&6; }
15778                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines _PATH_LASTLOG" >&5
15779 $as_echo_n "checking if your system defines _PATH_LASTLOG... " >&6; }
15780                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h.  */
15782
15783 #include <sys/types.h>
15784 #include <utmp.h>
15785 #ifdef HAVE_LASTLOG_H
15786 #  include <lastlog.h>
15787 #endif
15788 #ifdef HAVE_PATHS_H
15789 #  include <paths.h>
15790 #endif
15791
15792 int
15793 main ()
15794 {
15795  char *lastlog = _PATH_LASTLOG;
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15802 $as_echo "yes" >&6; }
15803 else
15804
15805                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15807                         system_lastlog_path=no
15808
15809 fi
15810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811
15812
15813 fi
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815
15816 if test -z "$conf_lastlog_location"; then
15817         if test x"$system_lastlog_path" = x"no" ; then
15818                 for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do
15819                                 if (test -d "$f" || test -f "$f") ; then
15820                                         conf_lastlog_location=$f
15821                                 fi
15822                 done
15823                 if test -z "$conf_lastlog_location"; then
15824                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
15825 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
15826                                         fi
15827         fi
15828 fi
15829
15830 if test -n "$conf_lastlog_location"; then
15831
15832 cat >>confdefs.h <<_ACEOF
15833 #define CONF_LASTLOG_FILE "$conf_lastlog_location"
15834 _ACEOF
15835
15836 fi
15837
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMP_FILE" >&5
15839 $as_echo_n "checking if your system defines UTMP_FILE... " >&6; }
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h.  */
15842
15843 #include <sys/types.h>
15844 #include <utmp.h>
15845 #ifdef HAVE_PATHS_H
15846 #  include <paths.h>
15847 #endif
15848
15849 int
15850 main ()
15851 {
15852  char *utmp = UTMP_FILE;
15853   ;
15854   return 0;
15855 }
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15859 $as_echo "yes" >&6; }
15860 else
15861    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15862 $as_echo "no" >&6; }
15863           system_utmp_path=no
15864
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15867 if test -z "$conf_utmp_location"; then
15868         if test x"$system_utmp_path" = x"no" ; then
15869                 for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do
15870                         if test -f $f ; then
15871                                 conf_utmp_location=$f
15872                         fi
15873                 done
15874                 if test -z "$conf_utmp_location"; then
15875                         $as_echo "#define DISABLE_UTMP 1" >>confdefs.h
15876
15877                 fi
15878         fi
15879 fi
15880 if test -n "$conf_utmp_location"; then
15881
15882 cat >>confdefs.h <<_ACEOF
15883 #define CONF_UTMP_FILE "$conf_utmp_location"
15884 _ACEOF
15885
15886 fi
15887
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMP_FILE" >&5
15889 $as_echo_n "checking if your system defines WTMP_FILE... " >&6; }
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h.  */
15892
15893 #include <sys/types.h>
15894 #include <utmp.h>
15895 #ifdef HAVE_PATHS_H
15896 #  include <paths.h>
15897 #endif
15898
15899 int
15900 main ()
15901 {
15902  char *wtmp = WTMP_FILE;
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 if ac_fn_c_try_compile "$LINENO"; then :
15908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15909 $as_echo "yes" >&6; }
15910 else
15911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15912 $as_echo "no" >&6; }
15913           system_wtmp_path=no
15914
15915 fi
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 if test -z "$conf_wtmp_location"; then
15918         if test x"$system_wtmp_path" = x"no" ; then
15919                 for f in /usr/adm/wtmp /var/log/wtmp; do
15920                         if test -f $f ; then
15921                                 conf_wtmp_location=$f
15922                         fi
15923                 done
15924                 if test -z "$conf_wtmp_location"; then
15925                         $as_echo "#define DISABLE_WTMP 1" >>confdefs.h
15926
15927                 fi
15928         fi
15929 fi
15930 if test -n "$conf_wtmp_location"; then
15931
15932 cat >>confdefs.h <<_ACEOF
15933 #define CONF_WTMP_FILE "$conf_wtmp_location"
15934 _ACEOF
15935
15936 fi
15937
15938
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines UTMPX_FILE" >&5
15940 $as_echo_n "checking if your system defines UTMPX_FILE... " >&6; }
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h.  */
15943
15944 #include <sys/types.h>
15945 #include <utmp.h>
15946 #ifdef HAVE_UTMPX_H
15947 #include <utmpx.h>
15948 #endif
15949 #ifdef HAVE_PATHS_H
15950 #  include <paths.h>
15951 #endif
15952
15953 int
15954 main ()
15955 {
15956  char *utmpx = UTMPX_FILE;
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 if ac_fn_c_try_compile "$LINENO"; then :
15962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15963 $as_echo "yes" >&6; }
15964 else
15965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15967           system_utmpx_path=no
15968
15969 fi
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971 if test -z "$conf_utmpx_location"; then
15972         if test x"$system_utmpx_path" = x"no" ; then
15973                 $as_echo "#define DISABLE_UTMPX 1" >>confdefs.h
15974
15975         fi
15976 else
15977
15978 cat >>confdefs.h <<_ACEOF
15979 #define CONF_UTMPX_FILE "$conf_utmpx_location"
15980 _ACEOF
15981
15982 fi
15983
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system defines WTMPX_FILE" >&5
15985 $as_echo_n "checking if your system defines WTMPX_FILE... " >&6; }
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h.  */
15988
15989 #include <sys/types.h>
15990 #include <utmp.h>
15991 #ifdef HAVE_UTMPX_H
15992 #include <utmpx.h>
15993 #endif
15994 #ifdef HAVE_PATHS_H
15995 #  include <paths.h>
15996 #endif
15997
15998 int
15999 main ()
16000 {
16001  char *wtmpx = WTMPX_FILE;
16002   ;
16003   return 0;
16004 }
16005 _ACEOF
16006 if ac_fn_c_try_compile "$LINENO"; then :
16007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16009 else
16010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16011 $as_echo "no" >&6; }
16012           system_wtmpx_path=no
16013
16014 fi
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 if test -z "$conf_wtmpx_location"; then
16017         if test x"$system_wtmpx_path" = x"no" ; then
16018                 $as_echo "#define DISABLE_WTMPX 1" >>confdefs.h
16019
16020         fi
16021 else
16022
16023 cat >>confdefs.h <<_ACEOF
16024 #define CONF_WTMPX_FILE "$conf_wtmpx_location"
16025 _ACEOF
16026
16027 fi
16028
16029
16030 if test ! -z "$blibpath" ; then
16031         LDFLAGS="$LDFLAGS $blibflags$blibpath"
16032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&5
16033 $as_echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
16034 fi
16035
16036 CFLAGS="$CFLAGS $werror_flags"
16037
16038 if grep "#define BROKEN_GETADDRINFO 1" confdefs.h >/dev/null || \
16039     test "x$ac_cv_func_getaddrinfo" != "xyes" ; then
16040         TEST_SSH_IPV6=no
16041
16042 else
16043         TEST_SSH_IPV6=yes
16044
16045 fi
16046
16047
16048 ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
16049
16050 cat >confcache <<\_ACEOF
16051 # This file is a shell script that caches the results of configure
16052 # tests run on this system so they can be shared between configure
16053 # scripts and configure runs, see configure's option --config-cache.
16054 # It is not useful on other systems.  If it contains results you don't
16055 # want to keep, you may remove or edit it.
16056 #
16057 # config.status only pays attention to the cache file if you give it
16058 # the --recheck option to rerun configure.
16059 #
16060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16062 # following values.
16063
16064 _ACEOF
16065
16066 # The following way of writing the cache mishandles newlines in values,
16067 # but we know of no workaround that is simple, portable, and efficient.
16068 # So, we kill variables containing newlines.
16069 # Ultrix sh set writes to stderr and can't be redirected directly,
16070 # and sets the high bit in the cache file unless we assign to the vars.
16071 (
16072   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16073     eval ac_val=\$$ac_var
16074     case $ac_val in #(
16075     *${as_nl}*)
16076       case $ac_var in #(
16077       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16079       esac
16080       case $ac_var in #(
16081       _ | IFS | as_nl) ;; #(
16082       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16083       *) { eval $ac_var=; unset $ac_var;} ;;
16084       esac ;;
16085     esac
16086   done
16087
16088   (set) 2>&1 |
16089     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16090     *${as_nl}ac_space=\ *)
16091       # `set' does not quote correctly, so add quotes: double-quote
16092       # substitution turns \\\\ into \\, and sed turns \\ into \.
16093       sed -n \
16094         "s/'/'\\\\''/g;
16095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16096       ;; #(
16097     *)
16098       # `set' quotes correctly as required by POSIX, so do not add quotes.
16099       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16100       ;;
16101     esac |
16102     sort
16103 ) |
16104   sed '
16105      /^ac_cv_env_/b end
16106      t clear
16107      :clear
16108      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16109      t end
16110      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16111      :end' >>confcache
16112 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16113   if test -w "$cache_file"; then
16114     test "x$cache_file" != "x/dev/null" &&
16115       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16116 $as_echo "$as_me: updating cache $cache_file" >&6;}
16117     cat confcache >$cache_file
16118   else
16119     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16120 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16121   fi
16122 fi
16123 rm -f confcache
16124
16125 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16126 # Let make expand exec_prefix.
16127 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16128
16129 DEFS=-DHAVE_CONFIG_H
16130
16131 ac_libobjs=
16132 ac_ltlibobjs=
16133 U=
16134 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16135   # 1. Remove the extension, and $U if already installed.
16136   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16137   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16138   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16139   #    will be set to the directory where LIBOBJS objects are built.
16140   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16141   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16142 done
16143 LIBOBJS=$ac_libobjs
16144
16145 LTLIBOBJS=$ac_ltlibobjs
16146
16147
16148
16149
16150 : ${CONFIG_STATUS=./config.status}
16151 ac_write_fail=0
16152 ac_clean_files_save=$ac_clean_files
16153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16155 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16156 as_write_fail=0
16157 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16158 #! $SHELL
16159 # Generated by $as_me.
16160 # Run this file to recreate the current configuration.
16161 # Compiler output produced by configure, useful for debugging
16162 # configure, is in config.log if it exists.
16163
16164 debug=false
16165 ac_cs_recheck=false
16166 ac_cs_silent=false
16167
16168 SHELL=\${CONFIG_SHELL-$SHELL}
16169 export SHELL
16170 _ASEOF
16171 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16172 ## -------------------- ##
16173 ## M4sh Initialization. ##
16174 ## -------------------- ##
16175
16176 # Be more Bourne compatible
16177 DUALCASE=1; export DUALCASE # for MKS sh
16178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16179   emulate sh
16180   NULLCMD=:
16181   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16182   # is contrary to our usage.  Disable this feature.
16183   alias -g '${1+"$@"}'='"$@"'
16184   setopt NO_GLOB_SUBST
16185 else
16186   case `(set -o) 2>/dev/null` in #(
16187   *posix*) :
16188     set -o posix ;; #(
16189   *) :
16190      ;;
16191 esac
16192 fi
16193
16194
16195 as_nl='
16196 '
16197 export as_nl
16198 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16199 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16202 # Prefer a ksh shell builtin over an external printf program on Solaris,
16203 # but without wasting forks for bash or zsh.
16204 if test -z "$BASH_VERSION$ZSH_VERSION" \
16205     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16206   as_echo='print -r --'
16207   as_echo_n='print -rn --'
16208 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16209   as_echo='printf %s\n'
16210   as_echo_n='printf %s'
16211 else
16212   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16213     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16214     as_echo_n='/usr/ucb/echo -n'
16215   else
16216     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16217     as_echo_n_body='eval
16218       arg=$1;
16219       case $arg in #(
16220       *"$as_nl"*)
16221         expr "X$arg" : "X\\(.*\\)$as_nl";
16222         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16223       esac;
16224       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16225     '
16226     export as_echo_n_body
16227     as_echo_n='sh -c $as_echo_n_body as_echo'
16228   fi
16229   export as_echo_body
16230   as_echo='sh -c $as_echo_body as_echo'
16231 fi
16232
16233 # The user is always right.
16234 if test "${PATH_SEPARATOR+set}" != set; then
16235   PATH_SEPARATOR=:
16236   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16237     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16238       PATH_SEPARATOR=';'
16239   }
16240 fi
16241
16242
16243 # IFS
16244 # We need space, tab and new line, in precisely that order.  Quoting is
16245 # there to prevent editors from complaining about space-tab.
16246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16247 # splitting by setting IFS to empty value.)
16248 IFS=" ""        $as_nl"
16249
16250 # Find who we are.  Look in the path if we contain no directory separator.
16251 case $0 in #((
16252   *[\\/]* ) as_myself=$0 ;;
16253   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16255 do
16256   IFS=$as_save_IFS
16257   test -z "$as_dir" && as_dir=.
16258     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16259   done
16260 IFS=$as_save_IFS
16261
16262      ;;
16263 esac
16264 # We did not find ourselves, most probably we were run as `sh COMMAND'
16265 # in which case we are not to be found in the path.
16266 if test "x$as_myself" = x; then
16267   as_myself=$0
16268 fi
16269 if test ! -f "$as_myself"; then
16270   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16271   exit 1
16272 fi
16273
16274 # Unset variables that we do not need and which cause bugs (e.g. in
16275 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16276 # suppresses any "Segmentation fault" message there.  '((' could
16277 # trigger a bug in pdksh 5.2.14.
16278 for as_var in BASH_ENV ENV MAIL MAILPATH
16279 do eval test x\${$as_var+set} = xset \
16280   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16281 done
16282 PS1='$ '
16283 PS2='> '
16284 PS4='+ '
16285
16286 # NLS nuisances.
16287 LC_ALL=C
16288 export LC_ALL
16289 LANGUAGE=C
16290 export LANGUAGE
16291
16292 # CDPATH.
16293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16294
16295
16296 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16297 # ----------------------------------------
16298 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16299 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16300 # script with STATUS, using 1 if that was 0.
16301 as_fn_error ()
16302 {
16303   as_status=$1; test $as_status -eq 0 && as_status=1
16304   if test "$4"; then
16305     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16306     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16307   fi
16308   $as_echo "$as_me: error: $2" >&2
16309   as_fn_exit $as_status
16310 } # as_fn_error
16311
16312
16313 # as_fn_set_status STATUS
16314 # -----------------------
16315 # Set $? to STATUS, without forking.
16316 as_fn_set_status ()
16317 {
16318   return $1
16319 } # as_fn_set_status
16320
16321 # as_fn_exit STATUS
16322 # -----------------
16323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16324 as_fn_exit ()
16325 {
16326   set +e
16327   as_fn_set_status $1
16328   exit $1
16329 } # as_fn_exit
16330
16331 # as_fn_unset VAR
16332 # ---------------
16333 # Portably unset VAR.
16334 as_fn_unset ()
16335 {
16336   { eval $1=; unset $1;}
16337 }
16338 as_unset=as_fn_unset
16339 # as_fn_append VAR VALUE
16340 # ----------------------
16341 # Append the text in VALUE to the end of the definition contained in VAR. Take
16342 # advantage of any shell optimizations that allow amortized linear growth over
16343 # repeated appends, instead of the typical quadratic growth present in naive
16344 # implementations.
16345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16346   eval 'as_fn_append ()
16347   {
16348     eval $1+=\$2
16349   }'
16350 else
16351   as_fn_append ()
16352   {
16353     eval $1=\$$1\$2
16354   }
16355 fi # as_fn_append
16356
16357 # as_fn_arith ARG...
16358 # ------------------
16359 # Perform arithmetic evaluation on the ARGs, and store the result in the
16360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16361 # must be portable across $(()) and expr.
16362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16363   eval 'as_fn_arith ()
16364   {
16365     as_val=$(( $* ))
16366   }'
16367 else
16368   as_fn_arith ()
16369   {
16370     as_val=`expr "$@" || test $? -eq 1`
16371   }
16372 fi # as_fn_arith
16373
16374
16375 if expr a : '\(a\)' >/dev/null 2>&1 &&
16376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16377   as_expr=expr
16378 else
16379   as_expr=false
16380 fi
16381
16382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16383   as_basename=basename
16384 else
16385   as_basename=false
16386 fi
16387
16388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16389   as_dirname=dirname
16390 else
16391   as_dirname=false
16392 fi
16393
16394 as_me=`$as_basename -- "$0" ||
16395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16396          X"$0" : 'X\(//\)$' \| \
16397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16398 $as_echo X/"$0" |
16399     sed '/^.*\/\([^/][^/]*\)\/*$/{
16400             s//\1/
16401             q
16402           }
16403           /^X\/\(\/\/\)$/{
16404             s//\1/
16405             q
16406           }
16407           /^X\/\(\/\).*/{
16408             s//\1/
16409             q
16410           }
16411           s/.*/./; q'`
16412
16413 # Avoid depending upon Character Ranges.
16414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16417 as_cr_digits='0123456789'
16418 as_cr_alnum=$as_cr_Letters$as_cr_digits
16419
16420 ECHO_C= ECHO_N= ECHO_T=
16421 case `echo -n x` in #(((((
16422 -n*)
16423   case `echo 'xy\c'` in
16424   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16425   xy)  ECHO_C='\c';;
16426   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16427        ECHO_T=' ';;
16428   esac;;
16429 *)
16430   ECHO_N='-n';;
16431 esac
16432
16433 rm -f conf$$ conf$$.exe conf$$.file
16434 if test -d conf$$.dir; then
16435   rm -f conf$$.dir/conf$$.file
16436 else
16437   rm -f conf$$.dir
16438   mkdir conf$$.dir 2>/dev/null
16439 fi
16440 if (echo >conf$$.file) 2>/dev/null; then
16441   if ln -s conf$$.file conf$$ 2>/dev/null; then
16442     as_ln_s='ln -s'
16443     # ... but there are two gotchas:
16444     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16445     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16446     # In both cases, we have to default to `cp -p'.
16447     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16448       as_ln_s='cp -p'
16449   elif ln conf$$.file conf$$ 2>/dev/null; then
16450     as_ln_s=ln
16451   else
16452     as_ln_s='cp -p'
16453   fi
16454 else
16455   as_ln_s='cp -p'
16456 fi
16457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16458 rmdir conf$$.dir 2>/dev/null
16459
16460
16461 # as_fn_mkdir_p
16462 # -------------
16463 # Create "$as_dir" as a directory, including parents if necessary.
16464 as_fn_mkdir_p ()
16465 {
16466
16467   case $as_dir in #(
16468   -*) as_dir=./$as_dir;;
16469   esac
16470   test -d "$as_dir" || eval $as_mkdir_p || {
16471     as_dirs=
16472     while :; do
16473       case $as_dir in #(
16474       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16475       *) as_qdir=$as_dir;;
16476       esac
16477       as_dirs="'$as_qdir' $as_dirs"
16478       as_dir=`$as_dirname -- "$as_dir" ||
16479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480          X"$as_dir" : 'X\(//\)[^/]' \| \
16481          X"$as_dir" : 'X\(//\)$' \| \
16482          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16483 $as_echo X"$as_dir" |
16484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16485             s//\1/
16486             q
16487           }
16488           /^X\(\/\/\)[^/].*/{
16489             s//\1/
16490             q
16491           }
16492           /^X\(\/\/\)$/{
16493             s//\1/
16494             q
16495           }
16496           /^X\(\/\).*/{
16497             s//\1/
16498             q
16499           }
16500           s/.*/./; q'`
16501       test -d "$as_dir" && break
16502     done
16503     test -z "$as_dirs" || eval "mkdir $as_dirs"
16504   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16505
16506
16507 } # as_fn_mkdir_p
16508 if mkdir -p . 2>/dev/null; then
16509   as_mkdir_p='mkdir -p "$as_dir"'
16510 else
16511   test -d ./-p && rmdir ./-p
16512   as_mkdir_p=false
16513 fi
16514
16515 if test -x / >/dev/null 2>&1; then
16516   as_test_x='test -x'
16517 else
16518   if ls -dL / >/dev/null 2>&1; then
16519     as_ls_L_option=L
16520   else
16521     as_ls_L_option=
16522   fi
16523   as_test_x='
16524     eval sh -c '\''
16525       if test -d "$1"; then
16526         test -d "$1/.";
16527       else
16528         case $1 in #(
16529         -*)set "./$1";;
16530         esac;
16531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16532         ???[sx]*):;;*)false;;esac;fi
16533     '\'' sh
16534   '
16535 fi
16536 as_executable_p=$as_test_x
16537
16538 # Sed expression to map a string onto a valid CPP name.
16539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16540
16541 # Sed expression to map a string onto a valid variable name.
16542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16543
16544
16545 exec 6>&1
16546 ## ----------------------------------- ##
16547 ## Main body of $CONFIG_STATUS script. ##
16548 ## ----------------------------------- ##
16549 _ASEOF
16550 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16551
16552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16553 # Save the log message, to keep $0 and so on meaningful, and to
16554 # report actual input values of CONFIG_FILES etc. instead of their
16555 # values after options handling.
16556 ac_log="
16557 This file was extended by OpenSSH $as_me Portable, which was
16558 generated by GNU Autoconf 2.67.  Invocation command line was
16559
16560   CONFIG_FILES    = $CONFIG_FILES
16561   CONFIG_HEADERS  = $CONFIG_HEADERS
16562   CONFIG_LINKS    = $CONFIG_LINKS
16563   CONFIG_COMMANDS = $CONFIG_COMMANDS
16564   $ $0 $@
16565
16566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16567 "
16568
16569 _ACEOF
16570
16571 case $ac_config_files in *"
16572 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16573 esac
16574
16575 case $ac_config_headers in *"
16576 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16577 esac
16578
16579
16580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 # Files that config.status was made for.
16582 config_files="$ac_config_files"
16583 config_headers="$ac_config_headers"
16584
16585 _ACEOF
16586
16587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16588 ac_cs_usage="\
16589 \`$as_me' instantiates files and other configuration actions
16590 from templates according to the current configuration.  Unless the files
16591 and actions are specified as TAGs, all are instantiated by default.
16592
16593 Usage: $0 [OPTION]... [TAG]...
16594
16595   -h, --help       print this help, then exit
16596   -V, --version    print version number and configuration settings, then exit
16597       --config     print configuration, then exit
16598   -q, --quiet, --silent
16599                    do not print progress messages
16600   -d, --debug      don't remove temporary files
16601       --recheck    update $as_me by reconfiguring in the same conditions
16602       --file=FILE[:TEMPLATE]
16603                    instantiate the configuration file FILE
16604       --header=FILE[:TEMPLATE]
16605                    instantiate the configuration header FILE
16606
16607 Configuration files:
16608 $config_files
16609
16610 Configuration headers:
16611 $config_headers
16612
16613 Report bugs to <openssh-unix-dev@mindrot.org>."
16614
16615 _ACEOF
16616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16617 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16618 ac_cs_version="\\
16619 OpenSSH config.status Portable
16620 configured by $0, generated by GNU Autoconf 2.67,
16621   with options \\"\$ac_cs_config\\"
16622
16623 Copyright (C) 2010 Free Software Foundation, Inc.
16624 This config.status script is free software; the Free Software Foundation
16625 gives unlimited permission to copy, distribute and modify it."
16626
16627 ac_pwd='$ac_pwd'
16628 srcdir='$srcdir'
16629 INSTALL='$INSTALL'
16630 AWK='$AWK'
16631 test -n "\$AWK" || AWK=awk
16632 _ACEOF
16633
16634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16635 # The default lists apply if the user does not specify any file.
16636 ac_need_defaults=:
16637 while test $# != 0
16638 do
16639   case $1 in
16640   --*=?*)
16641     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16642     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16643     ac_shift=:
16644     ;;
16645   --*=)
16646     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16647     ac_optarg=
16648     ac_shift=:
16649     ;;
16650   *)
16651     ac_option=$1
16652     ac_optarg=$2
16653     ac_shift=shift
16654     ;;
16655   esac
16656
16657   case $ac_option in
16658   # Handling of the options.
16659   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16660     ac_cs_recheck=: ;;
16661   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16662     $as_echo "$ac_cs_version"; exit ;;
16663   --config | --confi | --conf | --con | --co | --c )
16664     $as_echo "$ac_cs_config"; exit ;;
16665   --debug | --debu | --deb | --de | --d | -d )
16666     debug=: ;;
16667   --file | --fil | --fi | --f )
16668     $ac_shift
16669     case $ac_optarg in
16670     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16671     '') as_fn_error $? "missing file argument" ;;
16672     esac
16673     as_fn_append CONFIG_FILES " '$ac_optarg'"
16674     ac_need_defaults=false;;
16675   --header | --heade | --head | --hea )
16676     $ac_shift
16677     case $ac_optarg in
16678     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16679     esac
16680     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16681     ac_need_defaults=false;;
16682   --he | --h)
16683     # Conflict between --help and --header
16684     as_fn_error $? "ambiguous option: \`$1'
16685 Try \`$0 --help' for more information.";;
16686   --help | --hel | -h )
16687     $as_echo "$ac_cs_usage"; exit ;;
16688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16690     ac_cs_silent=: ;;
16691
16692   # This is an error.
16693   -*) as_fn_error $? "unrecognized option: \`$1'
16694 Try \`$0 --help' for more information." ;;
16695
16696   *) as_fn_append ac_config_targets " $1"
16697      ac_need_defaults=false ;;
16698
16699   esac
16700   shift
16701 done
16702
16703 ac_configure_extra_args=
16704
16705 if $ac_cs_silent; then
16706   exec 6>/dev/null
16707   ac_configure_extra_args="$ac_configure_extra_args --silent"
16708 fi
16709
16710 _ACEOF
16711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16712 if \$ac_cs_recheck; then
16713   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16714   shift
16715   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16716   CONFIG_SHELL='$SHELL'
16717   export CONFIG_SHELL
16718   exec "\$@"
16719 fi
16720
16721 _ACEOF
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16723 exec 5>>config.log
16724 {
16725   echo
16726   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16727 ## Running $as_me. ##
16728 _ASBOX
16729   $as_echo "$ac_log"
16730 } >&5
16731
16732 _ACEOF
16733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16734 _ACEOF
16735
16736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16737
16738 # Handling of arguments.
16739 for ac_config_target in $ac_config_targets
16740 do
16741   case $ac_config_target in
16742     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16743     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16744     "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
16745     "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
16746     "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
16747     "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
16748     "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
16749     "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
16750     "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
16751     "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
16752
16753   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16754   esac
16755 done
16756
16757
16758 # If the user did not use the arguments to specify the items to instantiate,
16759 # then the envvar interface is used.  Set only those that are not.
16760 # We use the long form for the default assignment because of an extremely
16761 # bizarre bug on SunOS 4.1.3.
16762 if $ac_need_defaults; then
16763   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16764   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16765 fi
16766
16767 # Have a temporary directory for convenience.  Make it in the build tree
16768 # simply because there is no reason against having it here, and in addition,
16769 # creating and moving files from /tmp can sometimes cause problems.
16770 # Hook for its removal unless debugging.
16771 # Note that there is a small window in which the directory will not be cleaned:
16772 # after its creation but before its name has been assigned to `$tmp'.
16773 $debug ||
16774 {
16775   tmp=
16776   trap 'exit_status=$?
16777   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16778 ' 0
16779   trap 'as_fn_exit 1' 1 2 13 15
16780 }
16781 # Create a (secure) tmp directory for tmp files.
16782
16783 {
16784   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16785   test -n "$tmp" && test -d "$tmp"
16786 }  ||
16787 {
16788   tmp=./conf$$-$RANDOM
16789   (umask 077 && mkdir "$tmp")
16790 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16791
16792 # Set up the scripts for CONFIG_FILES section.
16793 # No need to generate them if there are no CONFIG_FILES.
16794 # This happens for instance with `./config.status config.h'.
16795 if test -n "$CONFIG_FILES"; then
16796
16797
16798 ac_cr=`echo X | tr X '\015'`
16799 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16800 # But we know of no other shell where ac_cr would be empty at this
16801 # point, so we can use a bashism as a fallback.
16802 if test "x$ac_cr" = x; then
16803   eval ac_cr=\$\'\\r\'
16804 fi
16805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16807   ac_cs_awk_cr='\\r'
16808 else
16809   ac_cs_awk_cr=$ac_cr
16810 fi
16811
16812 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16813 _ACEOF
16814
16815
16816 {
16817   echo "cat >conf$$subs.awk <<_ACEOF" &&
16818   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16819   echo "_ACEOF"
16820 } >conf$$subs.sh ||
16821   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16822 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16823 ac_delim='%!_!# '
16824 for ac_last_try in false false false false false :; do
16825   . ./conf$$subs.sh ||
16826     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16827
16828   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16829   if test $ac_delim_n = $ac_delim_num; then
16830     break
16831   elif $ac_last_try; then
16832     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16833   else
16834     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16835   fi
16836 done
16837 rm -f conf$$subs.sh
16838
16839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16840 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16841 _ACEOF
16842 sed -n '
16843 h
16844 s/^/S["/; s/!.*/"]=/
16845 p
16846 g
16847 s/^[^!]*!//
16848 :repl
16849 t repl
16850 s/'"$ac_delim"'$//
16851 t delim
16852 :nl
16853 h
16854 s/\(.\{148\}\)..*/\1/
16855 t more1
16856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16857 p
16858 n
16859 b repl
16860 :more1
16861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16862 p
16863 g
16864 s/.\{148\}//
16865 t nl
16866 :delim
16867 h
16868 s/\(.\{148\}\)..*/\1/
16869 t more2
16870 s/["\\]/\\&/g; s/^/"/; s/$/"/
16871 p
16872 b
16873 :more2
16874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16875 p
16876 g
16877 s/.\{148\}//
16878 t delim
16879 ' <conf$$subs.awk | sed '
16880 /^[^""]/{
16881   N
16882   s/\n//
16883 }
16884 ' >>$CONFIG_STATUS || ac_write_fail=1
16885 rm -f conf$$subs.awk
16886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16887 _ACAWK
16888 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16889   for (key in S) S_is_set[key] = 1
16890   FS = "\a"
16891
16892 }
16893 {
16894   line = $ 0
16895   nfields = split(line, field, "@")
16896   substed = 0
16897   len = length(field[1])
16898   for (i = 2; i < nfields; i++) {
16899     key = field[i]
16900     keylen = length(key)
16901     if (S_is_set[key]) {
16902       value = S[key]
16903       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16904       len += length(value) + length(field[++i])
16905       substed = 1
16906     } else
16907       len += 1 + keylen
16908   }
16909
16910   print line
16911 }
16912
16913 _ACAWK
16914 _ACEOF
16915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16917   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16918 else
16919   cat
16920 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16921   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16922 _ACEOF
16923
16924 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16925 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16926 # trailing colons and then remove the whole line if VPATH becomes empty
16927 # (actually we leave an empty line to preserve line numbers).
16928 if test "x$srcdir" = x.; then
16929   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16930 h
16931 s///
16932 s/^/:/
16933 s/[      ]*$/:/
16934 s/:\$(srcdir):/:/g
16935 s/:\${srcdir}:/:/g
16936 s/:@srcdir@:/:/g
16937 s/^:*//
16938 s/:*$//
16939 x
16940 s/\(=[   ]*\).*/\1/
16941 G
16942 s/\n//
16943 s/^[^=]*=[       ]*$//
16944 }'
16945 fi
16946
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948 fi # test -n "$CONFIG_FILES"
16949
16950 # Set up the scripts for CONFIG_HEADERS section.
16951 # No need to generate them if there are no CONFIG_HEADERS.
16952 # This happens for instance with `./config.status Makefile'.
16953 if test -n "$CONFIG_HEADERS"; then
16954 cat >"$tmp/defines.awk" <<\_ACAWK ||
16955 BEGIN {
16956 _ACEOF
16957
16958 # Transform confdefs.h into an awk script `defines.awk', embedded as
16959 # here-document in config.status, that substitutes the proper values into
16960 # config.h.in to produce config.h.
16961
16962 # Create a delimiter string that does not exist in confdefs.h, to ease
16963 # handling of long lines.
16964 ac_delim='%!_!# '
16965 for ac_last_try in false false :; do
16966   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16967   if test -z "$ac_t"; then
16968     break
16969   elif $ac_last_try; then
16970     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16971   else
16972     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16973   fi
16974 done
16975
16976 # For the awk script, D is an array of macro values keyed by name,
16977 # likewise P contains macro parameters if any.  Preserve backslash
16978 # newline sequences.
16979
16980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16981 sed -n '
16982 s/.\{148\}/&'"$ac_delim"'/g
16983 t rset
16984 :rset
16985 s/^[     ]*#[    ]*define[       ][      ]*/ /
16986 t def
16987 d
16988 :def
16989 s/\\$//
16990 t bsnl
16991 s/["\\]/\\&/g
16992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16993 D["\1"]=" \3"/p
16994 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16995 d
16996 :bsnl
16997 s/["\\]/\\&/g
16998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16999 D["\1"]=" \3\\\\\\n"\\/p
17000 t cont
17001 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17002 t cont
17003 d
17004 :cont
17005 n
17006 s/.\{148\}/&'"$ac_delim"'/g
17007 t clear
17008 :clear
17009 s/\\$//
17010 t bsnlc
17011 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17012 d
17013 :bsnlc
17014 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17015 b cont
17016 ' <confdefs.h | sed '
17017 s/'"$ac_delim"'/"\\\
17018 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17019
17020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17021   for (key in D) D_is_set[key] = 1
17022   FS = "\a"
17023 }
17024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17025   line = \$ 0
17026   split(line, arg, " ")
17027   if (arg[1] == "#") {
17028     defundef = arg[2]
17029     mac1 = arg[3]
17030   } else {
17031     defundef = substr(arg[1], 2)
17032     mac1 = arg[2]
17033   }
17034   split(mac1, mac2, "(") #)
17035   macro = mac2[1]
17036   prefix = substr(line, 1, index(line, defundef) - 1)
17037   if (D_is_set[macro]) {
17038     # Preserve the white space surrounding the "#".
17039     print prefix "define", macro P[macro] D[macro]
17040     next
17041   } else {
17042     # Replace #undef with comments.  This is necessary, for example,
17043     # in the case of _POSIX_SOURCE, which is predefined and required
17044     # on some systems where configure will not decide to define it.
17045     if (defundef == "undef") {
17046       print "/*", prefix defundef, macro, "*/"
17047       next
17048     }
17049   }
17050 }
17051 { print }
17052 _ACAWK
17053 _ACEOF
17054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17055   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17056 fi # test -n "$CONFIG_HEADERS"
17057
17058
17059 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
17060 shift
17061 for ac_tag
17062 do
17063   case $ac_tag in
17064   :[FHLC]) ac_mode=$ac_tag; continue;;
17065   esac
17066   case $ac_mode$ac_tag in
17067   :[FHL]*:*);;
17068   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17069   :[FH]-) ac_tag=-:-;;
17070   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17071   esac
17072   ac_save_IFS=$IFS
17073   IFS=:
17074   set x $ac_tag
17075   IFS=$ac_save_IFS
17076   shift
17077   ac_file=$1
17078   shift
17079
17080   case $ac_mode in
17081   :L) ac_source=$1;;
17082   :[FH])
17083     ac_file_inputs=
17084     for ac_f
17085     do
17086       case $ac_f in
17087       -) ac_f="$tmp/stdin";;
17088       *) # Look for the file first in the build tree, then in the source tree
17089          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17090          # because $ac_f cannot contain `:'.
17091          test -f "$ac_f" ||
17092            case $ac_f in
17093            [\\/$]*) false;;
17094            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17095            esac ||
17096            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17097       esac
17098       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17099       as_fn_append ac_file_inputs " '$ac_f'"
17100     done
17101
17102     # Let's still pretend it is `configure' which instantiates (i.e., don't
17103     # use $as_me), people would be surprised to read:
17104     #    /* config.h.  Generated by config.status.  */
17105     configure_input='Generated from '`
17106           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17107         `' by configure.'
17108     if test x"$ac_file" != x-; then
17109       configure_input="$ac_file.  $configure_input"
17110       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17111 $as_echo "$as_me: creating $ac_file" >&6;}
17112     fi
17113     # Neutralize special characters interpreted by sed in replacement strings.
17114     case $configure_input in #(
17115     *\&* | *\|* | *\\* )
17116        ac_sed_conf_input=`$as_echo "$configure_input" |
17117        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17118     *) ac_sed_conf_input=$configure_input;;
17119     esac
17120
17121     case $ac_tag in
17122     *:-:* | *:-) cat >"$tmp/stdin" \
17123       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17124     esac
17125     ;;
17126   esac
17127
17128   ac_dir=`$as_dirname -- "$ac_file" ||
17129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17130          X"$ac_file" : 'X\(//\)[^/]' \| \
17131          X"$ac_file" : 'X\(//\)$' \| \
17132          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17133 $as_echo X"$ac_file" |
17134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17135             s//\1/
17136             q
17137           }
17138           /^X\(\/\/\)[^/].*/{
17139             s//\1/
17140             q
17141           }
17142           /^X\(\/\/\)$/{
17143             s//\1/
17144             q
17145           }
17146           /^X\(\/\).*/{
17147             s//\1/
17148             q
17149           }
17150           s/.*/./; q'`
17151   as_dir="$ac_dir"; as_fn_mkdir_p
17152   ac_builddir=.
17153
17154 case "$ac_dir" in
17155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17156 *)
17157   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17158   # A ".." for each directory in $ac_dir_suffix.
17159   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17160   case $ac_top_builddir_sub in
17161   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17162   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17163   esac ;;
17164 esac
17165 ac_abs_top_builddir=$ac_pwd
17166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17167 # for backward compatibility:
17168 ac_top_builddir=$ac_top_build_prefix
17169
17170 case $srcdir in
17171   .)  # We are building in place.
17172     ac_srcdir=.
17173     ac_top_srcdir=$ac_top_builddir_sub
17174     ac_abs_top_srcdir=$ac_pwd ;;
17175   [\\/]* | ?:[\\/]* )  # Absolute name.
17176     ac_srcdir=$srcdir$ac_dir_suffix;
17177     ac_top_srcdir=$srcdir
17178     ac_abs_top_srcdir=$srcdir ;;
17179   *) # Relative name.
17180     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17181     ac_top_srcdir=$ac_top_build_prefix$srcdir
17182     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17183 esac
17184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17185
17186
17187   case $ac_mode in
17188   :F)
17189   #
17190   # CONFIG_FILE
17191   #
17192
17193   case $INSTALL in
17194   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17195   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17196   esac
17197 _ACEOF
17198
17199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17200 # If the template does not know about datarootdir, expand it.
17201 # FIXME: This hack should be removed a few years after 2.60.
17202 ac_datarootdir_hack=; ac_datarootdir_seen=
17203 ac_sed_dataroot='
17204 /datarootdir/ {
17205   p
17206   q
17207 }
17208 /@datadir@/p
17209 /@docdir@/p
17210 /@infodir@/p
17211 /@localedir@/p
17212 /@mandir@/p'
17213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17214 *datarootdir*) ac_datarootdir_seen=yes;;
17215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17216   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17218 _ACEOF
17219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17220   ac_datarootdir_hack='
17221   s&@datadir@&$datadir&g
17222   s&@docdir@&$docdir&g
17223   s&@infodir@&$infodir&g
17224   s&@localedir@&$localedir&g
17225   s&@mandir@&$mandir&g
17226   s&\\\${datarootdir}&$datarootdir&g' ;;
17227 esac
17228 _ACEOF
17229
17230 # Neutralize VPATH when `$srcdir' = `.'.
17231 # Shell code in configure.ac might set extrasub.
17232 # FIXME: do we really want to maintain this feature?
17233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17234 ac_sed_extra="$ac_vpsub
17235 $extrasub
17236 _ACEOF
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17238 :t
17239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17240 s|@configure_input@|$ac_sed_conf_input|;t t
17241 s&@top_builddir@&$ac_top_builddir_sub&;t t
17242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17243 s&@srcdir@&$ac_srcdir&;t t
17244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17245 s&@top_srcdir@&$ac_top_srcdir&;t t
17246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17247 s&@builddir@&$ac_builddir&;t t
17248 s&@abs_builddir@&$ac_abs_builddir&;t t
17249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17250 s&@INSTALL@&$ac_INSTALL&;t t
17251 $ac_datarootdir_hack
17252 "
17253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17254   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17255
17256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17257   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17258   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17259   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17260 which seems to be undefined.  Please make sure it is defined" >&5
17261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17262 which seems to be undefined.  Please make sure it is defined" >&2;}
17263
17264   rm -f "$tmp/stdin"
17265   case $ac_file in
17266   -) cat "$tmp/out" && rm -f "$tmp/out";;
17267   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17268   esac \
17269   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17270  ;;
17271   :H)
17272   #
17273   # CONFIG_HEADER
17274   #
17275   if test x"$ac_file" != x-; then
17276     {
17277       $as_echo "/* $configure_input  */" \
17278       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17279     } >"$tmp/config.h" \
17280       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17281     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17282       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17283 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17284     else
17285       rm -f "$ac_file"
17286       mv "$tmp/config.h" "$ac_file" \
17287         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17288     fi
17289   else
17290     $as_echo "/* $configure_input  */" \
17291       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17292       || as_fn_error $? "could not create -" "$LINENO" 5
17293   fi
17294  ;;
17295
17296
17297   esac
17298
17299 done # for ac_tag
17300
17301
17302 as_fn_exit 0
17303 _ACEOF
17304 ac_clean_files=$ac_clean_files_save
17305
17306 test $ac_write_fail = 0 ||
17307   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17308
17309
17310 # configure is writing to config.log, and then calls config.status.
17311 # config.status does its own redirection, appending to config.log.
17312 # Unfortunately, on DOS this fails, as config.log is still kept open
17313 # by configure, so config.status won't be able to write to it; its
17314 # output is simply discarded.  So we exec the FD to /dev/null,
17315 # effectively closing config.log, so it can be properly (re)opened and
17316 # appended to by config.status.  When coming back to configure, we
17317 # need to make the FD available again.
17318 if test "$no_create" != yes; then
17319   ac_cs_success=:
17320   ac_config_status_args=
17321   test "$silent" = yes &&
17322     ac_config_status_args="$ac_config_status_args --quiet"
17323   exec 5>/dev/null
17324   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17325   exec 5>>config.log
17326   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17327   # would make configure fail if this is the last instruction.
17328   $ac_cs_success || as_fn_exit 1
17329 fi
17330 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17331   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17332 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17333 fi
17334
17335
17336 # Print summary of options
17337
17338 # Someone please show me a better way :)
17339 A=`eval echo ${prefix}` ; A=`eval echo ${A}`
17340 B=`eval echo ${bindir}` ; B=`eval echo ${B}`
17341 C=`eval echo ${sbindir}` ; C=`eval echo ${C}`
17342 D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}`
17343 E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}`
17344 F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}`
17345 G=`eval echo ${piddir}` ; G=`eval echo ${G}`
17346 H=`eval echo ${PRIVSEP_PATH}` ; H=`eval echo ${H}`
17347 I=`eval echo ${user_path}` ; I=`eval echo ${I}`
17348 J=`eval echo ${superuser_path}` ; J=`eval echo ${J}`
17349
17350 echo ""
17351 echo "OpenSSH has been configured with the following options:"
17352 echo "                     User binaries: $B"
17353 echo "                   System binaries: $C"
17354 echo "               Configuration files: $D"
17355 echo "                   Askpass program: $E"
17356 echo "                      Manual pages: $F"
17357 echo "                          PID file: $G"
17358 echo "  Privilege separation chroot path: $H"
17359 if test "x$external_path_file" = "x/etc/login.conf" ; then
17360 echo "   At runtime, sshd will use the path defined in $external_path_file"
17361 echo "   Make sure the path to scp is present, otherwise scp will not work"
17362 else
17363 echo "            sshd default user PATH: $I"
17364         if test ! -z "$external_path_file"; then
17365 echo "   (If PATH is set in $external_path_file it will be used instead. If"
17366 echo "   used, ensure the path to scp is present, otherwise scp will not work.)"
17367         fi
17368 fi
17369 if test ! -z "$superuser_path" ; then
17370 echo "          sshd superuser user PATH: $J"
17371 fi
17372 echo "                    Manpage format: $MANTYPE"
17373 echo "                       PAM support: $PAM_MSG"
17374 echo "                   OSF SIA support: $SIA_MSG"
17375 echo "                 KerberosV support: $KRB5_MSG"
17376 echo "                   SELinux support: $SELINUX_MSG"
17377 echo "                 Smartcard support: $SCARD_MSG"
17378 echo "                     S/KEY support: $SKEY_MSG"
17379 echo "              TCP Wrappers support: $TCPW_MSG"
17380 echo "              MD5 password support: $MD5_MSG"
17381 echo "                   libedit support: $LIBEDIT_MSG"
17382 echo "  Solaris process contract support: $SPC_MSG"
17383 echo "       IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
17384 echo "           Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
17385 echo "                  BSD Auth support: $BSD_AUTH_MSG"
17386 echo "              Random number source: $RAND_MSG"
17387 if test ! -z "$USE_RAND_HELPER" ; then
17388 echo "     ssh-rand-helper collects from: $RAND_HELPER_MSG"
17389 fi
17390
17391 echo ""
17392
17393 echo "              Host: ${host}"
17394 echo "          Compiler: ${CC}"
17395 echo "    Compiler flags: ${CFLAGS}"
17396 echo "Preprocessor flags: ${CPPFLAGS}"
17397 echo "      Linker flags: ${LDFLAGS}"
17398 echo "         Libraries: ${LIBS}"
17399 if test ! -z "${SSHDLIBS}"; then
17400 echo "         +for sshd: ${SSHDLIBS}"
17401 fi
17402
17403 echo ""
17404
17405 if test "x$MAKE_PACKAGE_SUPPORTED" = "xyes" ; then
17406         echo "SVR4 style packages are supported with \"make package\""
17407         echo ""
17408 fi
17409
17410 if test "x$PAM_MSG" = "xyes" ; then
17411         echo "PAM is enabled. You may need to install a PAM control file "
17412         echo "for sshd, otherwise password authentication may fail. "
17413         echo "Example PAM control files can be found in the contrib/ "
17414         echo "subdirectory"
17415         echo ""
17416 fi
17417
17418 if test ! -z "$RAND_HELPER_CMDHASH" ; then
17419         echo "WARNING: you are using the builtin random number collection "
17420         echo "service. Please read WARNING.RNG and request that your OS "
17421         echo "vendor includes kernel-based random number collection in "
17422         echo "future versions of your OS."
17423         echo ""
17424 fi
17425
17426 if test ! -z "$NO_PEERCHECK" ; then
17427         echo "WARNING: the operating system that you are using does not"
17428         echo "appear to support getpeereid(), getpeerucred() or the"
17429         echo "SO_PEERCRED getsockopt() option. These facilities are used to"
17430         echo "enforce security checks to prevent unauthorised connections to"
17431         echo "ssh-agent. Their absence increases the risk that a malicious"
17432         echo "user can connect to your agent."
17433         echo ""
17434 fi
17435
17436 if test "$AUDIT_MODULE" = "bsm" ; then
17437         echo "WARNING: BSM audit support is currently considered EXPERIMENTAL."
17438         echo "See the Solaris section in README.platform for details."
17439 fi