1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Kerberos 5 1.18.2.
4#
5# Report bugs to <krb5-bugs@mit.edu>.
6#
7# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
8# Massachusetts Institute of Technology.
9#
10#
11#
12# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
13#
14#
15# This configure script is free software; the Free Software Foundation
16# gives unlimited permission to copy, distribute and modify it.
17## -------------------- ##
18## M4sh Initialization. ##
19## -------------------- ##
20
21# Be more Bourne compatible
22DUALCASE=1; export DUALCASE # for MKS sh
23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24  emulate sh
25  NULLCMD=:
26  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27  # is contrary to our usage.  Disable this feature.
28  alias -g '${1+"$@"}'='"$@"'
29  setopt NO_GLOB_SUBST
30else
31  case `(set -o) 2>/dev/null` in #(
32  *posix*) :
33    set -o posix ;; #(
34  *) :
35     ;;
36esac
37fi
38
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47# Prefer a ksh shell builtin over an external printf program on Solaris,
48# but without wasting forks for bash or zsh.
49if test -z "$BASH_VERSION$ZSH_VERSION" \
50    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51  as_echo='print -r --'
52  as_echo_n='print -rn --'
53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54  as_echo='printf %s\n'
55  as_echo_n='printf %s'
56else
57  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59    as_echo_n='/usr/ucb/echo -n'
60  else
61    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62    as_echo_n_body='eval
63      arg=$1;
64      case $arg in #(
65      *"$as_nl"*)
66	expr "X$arg" : "X\\(.*\\)$as_nl";
67	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68      esac;
69      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70    '
71    export as_echo_n_body
72    as_echo_n='sh -c $as_echo_n_body as_echo'
73  fi
74  export as_echo_body
75  as_echo='sh -c $as_echo_body as_echo'
76fi
77
78# The user is always right.
79if test "${PATH_SEPARATOR+set}" != set; then
80  PATH_SEPARATOR=:
81  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83      PATH_SEPARATOR=';'
84  }
85fi
86
87
88# IFS
89# We need space, tab and new line, in precisely that order.  Quoting is
90# there to prevent editors from complaining about space-tab.
91# (If _AS_PATH_WALK were called with IFS unset, it would disable word
92# splitting by setting IFS to empty value.)
93IFS=" ""	$as_nl"
94
95# Find who we are.  Look in the path if we contain no directory separator.
96as_myself=
97case $0 in #((
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105  done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  exit 1
118fi
119
120# Unset variables that we do not need and which cause bugs (e.g. in
121# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
122# suppresses any "Segmentation fault" message there.  '((' could
123# trigger a bug in pdksh 5.2.14.
124for as_var in BASH_ENV ENV MAIL MAILPATH
125do eval test x\${$as_var+set} = xset \
126  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
127done
128PS1='$ '
129PS2='> '
130PS4='+ '
131
132# NLS nuisances.
133LC_ALL=C
134export LC_ALL
135LANGUAGE=C
136export LANGUAGE
137
138# CDPATH.
139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140
141# Use a proper internal environment variable to ensure we don't fall
142  # into an infinite loop, continuously re-executing ourselves.
143  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
144    _as_can_reexec=no; export _as_can_reexec;
145    # We cannot yet assume a decent shell, so we have to provide a
146# neutralization value for shells without unset; and this also
147# works around shells that cannot unset nonexistent variables.
148# Preserve -v and -x to the replacement shell.
149BASH_ENV=/dev/null
150ENV=/dev/null
151(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
152case $- in # ((((
153  *v*x* | *x*v* ) as_opts=-vx ;;
154  *v* ) as_opts=-v ;;
155  *x* ) as_opts=-x ;;
156  * ) as_opts= ;;
157esac
158exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
159# Admittedly, this is quite paranoid, since all the known shells bail
160# out after a failed `exec'.
161$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162as_fn_exit 255
163  fi
164  # We don't want this to propagate to other subprocesses.
165          { _as_can_reexec=; unset _as_can_reexec;}
166if test "x$CONFIG_SHELL" = x; then
167  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168  emulate sh
169  NULLCMD=:
170  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
171  # is contrary to our usage.  Disable this feature.
172  alias -g '\${1+\"\$@\"}'='\"\$@\"'
173  setopt NO_GLOB_SUBST
174else
175  case \`(set -o) 2>/dev/null\` in #(
176  *posix*) :
177    set -o posix ;; #(
178  *) :
179     ;;
180esac
181fi
182"
183  as_required="as_fn_return () { (exit \$1); }
184as_fn_success () { as_fn_return 0; }
185as_fn_failure () { as_fn_return 1; }
186as_fn_ret_success () { return 0; }
187as_fn_ret_failure () { return 1; }
188
189exitcode=0
190as_fn_success || { exitcode=1; echo as_fn_success failed.; }
191as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
192as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
193as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
194if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195
196else
197  exitcode=1; echo positional parameters were not saved.
198fi
199test x\$exitcode = x0 || exit 1
200test -x / || exit 1"
201  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
202  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
203  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
204  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
205test \$(( 1 + 1 )) = 2 || exit 1"
206  if (eval "$as_required") 2>/dev/null; then :
207  as_have_required=yes
208else
209  as_have_required=no
210fi
211  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
212
213else
214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
215as_found=false
216for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217do
218  IFS=$as_save_IFS
219  test -z "$as_dir" && as_dir=.
220  as_found=:
221  case $as_dir in #(
222	 /*)
223	   for as_base in sh bash ksh sh5; do
224	     # Try only shells that exist, to save several forks.
225	     as_shell=$as_dir/$as_base
226	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
227		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
228  CONFIG_SHELL=$as_shell as_have_required=yes
229		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  break 2
231fi
232fi
233	   done;;
234       esac
235  as_found=false
236done
237$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
239  CONFIG_SHELL=$SHELL as_have_required=yes
240fi; }
241IFS=$as_save_IFS
242
243
244      if test "x$CONFIG_SHELL" != x; then :
245  export CONFIG_SHELL
246             # We cannot yet assume a decent shell, so we have to provide a
247# neutralization value for shells without unset; and this also
248# works around shells that cannot unset nonexistent variables.
249# Preserve -v and -x to the replacement shell.
250BASH_ENV=/dev/null
251ENV=/dev/null
252(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
253case $- in # ((((
254  *v*x* | *x*v* ) as_opts=-vx ;;
255  *v* ) as_opts=-v ;;
256  *x* ) as_opts=-x ;;
257  * ) as_opts= ;;
258esac
259exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
260# Admittedly, this is quite paranoid, since all the known shells bail
261# out after a failed `exec'.
262$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
263exit 255
264fi
265
266    if test x$as_have_required = xno; then :
267  $as_echo "$0: This script requires a shell more modern than all"
268  $as_echo "$0: the shells that I found on your system."
269  if test x${ZSH_VERSION+set} = xset ; then
270    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    $as_echo "$0: Please tell bug-autoconf@gnu.org and krb5-bugs@mit.edu
274$0: about your system, including any error possibly output
275$0: before this message. Then install a modern shell, or
276$0: manually run the script under such a shell if you do
277$0: have one."
278  fi
279  exit 1
280fi
281fi
282fi
283SHELL=${CONFIG_SHELL-/bin/sh}
284export SHELL
285# Unset more variables known to interfere with behavior of common tools.
286CLICOLOR_FORCE= GREP_OPTIONS=
287unset CLICOLOR_FORCE GREP_OPTIONS
288
289## --------------------- ##
290## M4sh Shell Functions. ##
291## --------------------- ##
292# as_fn_unset VAR
293# ---------------
294# Portably unset VAR.
295as_fn_unset ()
296{
297  { eval $1=; unset $1;}
298}
299as_unset=as_fn_unset
300
301# as_fn_set_status STATUS
302# -----------------------
303# Set $? to STATUS, without forking.
304as_fn_set_status ()
305{
306  return $1
307} # as_fn_set_status
308
309# as_fn_exit STATUS
310# -----------------
311# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
312as_fn_exit ()
313{
314  set +e
315  as_fn_set_status $1
316  exit $1
317} # as_fn_exit
318
319# as_fn_mkdir_p
320# -------------
321# Create "$as_dir" as a directory, including parents if necessary.
322as_fn_mkdir_p ()
323{
324
325  case $as_dir in #(
326  -*) as_dir=./$as_dir;;
327  esac
328  test -d "$as_dir" || eval $as_mkdir_p || {
329    as_dirs=
330    while :; do
331      case $as_dir in #(
332      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333      *) as_qdir=$as_dir;;
334      esac
335      as_dirs="'$as_qdir' $as_dirs"
336      as_dir=`$as_dirname -- "$as_dir" ||
337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
338	 X"$as_dir" : 'X\(//\)[^/]' \| \
339	 X"$as_dir" : 'X\(//\)$' \| \
340	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
341$as_echo X"$as_dir" |
342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)[^/].*/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)$/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\).*/{
355	    s//\1/
356	    q
357	  }
358	  s/.*/./; q'`
359      test -d "$as_dir" && break
360    done
361    test -z "$as_dirs" || eval "mkdir $as_dirs"
362  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363
364
365} # as_fn_mkdir_p
366
367# as_fn_executable_p FILE
368# -----------------------
369# Test if FILE is an executable regular file.
370as_fn_executable_p ()
371{
372  test -f "$1" && test -x "$1"
373} # as_fn_executable_p
374# as_fn_append VAR VALUE
375# ----------------------
376# Append the text in VALUE to the end of the definition contained in VAR. Take
377# advantage of any shell optimizations that allow amortized linear growth over
378# repeated appends, instead of the typical quadratic growth present in naive
379# implementations.
380if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
381  eval 'as_fn_append ()
382  {
383    eval $1+=\$2
384  }'
385else
386  as_fn_append ()
387  {
388    eval $1=\$$1\$2
389  }
390fi # as_fn_append
391
392# as_fn_arith ARG...
393# ------------------
394# Perform arithmetic evaluation on the ARGs, and store the result in the
395# global $as_val. Take advantage of shells that can avoid forks. The arguments
396# must be portable across $(()) and expr.
397if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398  eval 'as_fn_arith ()
399  {
400    as_val=$(( $* ))
401  }'
402else
403  as_fn_arith ()
404  {
405    as_val=`expr "$@" || test $? -eq 1`
406  }
407fi # as_fn_arith
408
409
410# as_fn_error STATUS ERROR [LINENO LOG_FD]
411# ----------------------------------------
412# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
413# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
414# script with STATUS, using 1 if that was 0.
415as_fn_error ()
416{
417  as_status=$1; test $as_status -eq 0 && as_status=1
418  if test "$4"; then
419    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
420    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
421  fi
422  $as_echo "$as_me: error: $2" >&2
423  as_fn_exit $as_status
424} # as_fn_error
425
426if expr a : '\(a\)' >/dev/null 2>&1 &&
427   test "X`expr 00001 : '.*\(...\)'`" = X001; then
428  as_expr=expr
429else
430  as_expr=false
431fi
432
433if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434  as_basename=basename
435else
436  as_basename=false
437fi
438
439if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
440  as_dirname=dirname
441else
442  as_dirname=false
443fi
444
445as_me=`$as_basename -- "$0" ||
446$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
447	 X"$0" : 'X\(//\)$' \| \
448	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
449$as_echo X/"$0" |
450    sed '/^.*\/\([^/][^/]*\)\/*$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\/\)$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\).*/{
459	    s//\1/
460	    q
461	  }
462	  s/.*/./; q'`
463
464# Avoid depending upon Character Ranges.
465as_cr_letters='abcdefghijklmnopqrstuvwxyz'
466as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
467as_cr_Letters=$as_cr_letters$as_cr_LETTERS
468as_cr_digits='0123456789'
469as_cr_alnum=$as_cr_Letters$as_cr_digits
470
471
472  as_lineno_1=$LINENO as_lineno_1a=$LINENO
473  as_lineno_2=$LINENO as_lineno_2a=$LINENO
474  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
475  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
476  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
477  sed -n '
478    p
479    /[$]LINENO/=
480  ' <$as_myself |
481    sed '
482      s/[$]LINENO.*/&-/
483      t lineno
484      b
485      :lineno
486      N
487      :loop
488      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
489      t loop
490      s/-\n.*//
491    ' >$as_me.lineno &&
492  chmod +x "$as_me.lineno" ||
493    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
494
495  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
496  # already done that, so ensure we don't try to do so again and fall
497  # in an infinite loop.  This has already happened in practice.
498  _as_can_reexec=no; export _as_can_reexec
499  # Don't try to exec as it changes $[0], causing all sort of problems
500  # (the dirname of $[0] is not the place where we might find the
501  # original and so on.  Autoconf is especially sensitive to this).
502  . "./$as_me.lineno"
503  # Exit status is that of the last command.
504  exit
505}
506
507ECHO_C= ECHO_N= ECHO_T=
508case `echo -n x` in #(((((
509-n*)
510  case `echo 'xy\c'` in
511  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
512  xy)  ECHO_C='\c';;
513  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
514       ECHO_T='	';;
515  esac;;
516*)
517  ECHO_N='-n';;
518esac
519
520rm -f conf$$ conf$$.exe conf$$.file
521if test -d conf$$.dir; then
522  rm -f conf$$.dir/conf$$.file
523else
524  rm -f conf$$.dir
525  mkdir conf$$.dir 2>/dev/null
526fi
527if (echo >conf$$.file) 2>/dev/null; then
528  if ln -s conf$$.file conf$$ 2>/dev/null; then
529    as_ln_s='ln -s'
530    # ... but there are two gotchas:
531    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
532    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
533    # In both cases, we have to default to `cp -pR'.
534    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
535      as_ln_s='cp -pR'
536  elif ln conf$$.file conf$$ 2>/dev/null; then
537    as_ln_s=ln
538  else
539    as_ln_s='cp -pR'
540  fi
541else
542  as_ln_s='cp -pR'
543fi
544rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
545rmdir conf$$.dir 2>/dev/null
546
547if mkdir -p . 2>/dev/null; then
548  as_mkdir_p='mkdir -p "$as_dir"'
549else
550  test -d ./-p && rmdir ./-p
551  as_mkdir_p=false
552fi
553
554as_test_x='test -x'
555as_executable_p=as_fn_executable_p
556
557# Sed expression to map a string onto a valid CPP name.
558as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
559
560# Sed expression to map a string onto a valid variable name.
561as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562
563
564test -n "$DJDIR" || exec 7<&0 </dev/null
565exec 6>&1
566
567# Name of the host.
568# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
569# so uname gets run too.
570ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571
572#
573# Initializations.
574#
575ac_default_prefix=/usr/local
576ac_clean_files=
577ac_config_libobj_dir=.
578LIBOBJS=
579cross_compiling=no
580subdirs=
581MFLAGS=
582MAKEFLAGS=
583
584# Identity of this package.
585PACKAGE_NAME='Kerberos 5'
586PACKAGE_TARNAME='krb5'
587PACKAGE_VERSION='1.18.2'
588PACKAGE_STRING='Kerberos 5 1.18.2'
589PACKAGE_BUGREPORT='krb5-bugs@mit.edu'
590PACKAGE_URL=''
591
592ac_unique_file="aclocal.m4"
593# Factoring default headers for most tests.
594ac_includes_default="\
595#include <stdio.h>
596#ifdef HAVE_SYS_TYPES_H
597# include <sys/types.h>
598#endif
599#ifdef HAVE_SYS_STAT_H
600# include <sys/stat.h>
601#endif
602#ifdef STDC_HEADERS
603# include <stdlib.h>
604# include <stddef.h>
605#else
606# ifdef HAVE_STDLIB_H
607#  include <stdlib.h>
608# endif
609#endif
610#ifdef HAVE_STRING_H
611# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612#  include <memory.h>
613# endif
614# include <string.h>
615#endif
616#ifdef HAVE_STRINGS_H
617# include <strings.h>
618#endif
619#ifdef HAVE_INTTYPES_H
620# include <inttypes.h>
621#endif
622#ifdef HAVE_STDINT_H
623# include <stdint.h>
624#endif
625#ifdef HAVE_UNISTD_H
626# include <unistd.h>
627#endif"
628
629ac_subst_vars='LTLIBOBJS
630DEFCKTNAME
631DEFKTNAME
632DEFCCNAME
633OSX
634GROFF
635VERTO_VERSION
636VERTO_LIBS
637VERTO_CFLAGS
638RL_LIBS
639RL_CFLAGS
640LIBEDIT_LIBS
641LIBEDIT_CFLAGS
642lmdb_plugin_dir
643LMDB_LIBS
644HAVE_LMDB
645sam2_plugin
646LDAP
647ldap_plugin_dir
648HAVE_SASL
649LDAP_LIBS
650SUPPORTLIB_MAJOR
651DB_EXTRA_LIBS
652HAVE_RESOLV_WRAPPER
653CMOCKA_LIBS
654HAVE_CMOCKA
655HAVE_PYTHON
656PYTHON
657PYTHON_MINVERSION
658HAVE_RUNTEST
659LIBOBJS
660PKINIT
661PASS
662GSSRPC__BSD_TYPEALIASES
663GSSRPC__NETDB_H
664GSSRPC__SYS_PARAM_H
665GSSRPC__UNISTD_H
666GSSRPC__SYS_TIME_H
667GSSRPC__SYS_SELECT_H
668rpcent_define
669include_xom
670RUNTEST
671PRIOCNTL_HACK
672DO_ALL
673EXPECT
674S_TOP
675RBUILD
676DO_TEST
677have_PERL
678have_RUNTEST
679YFLAGS
680YACC
681NSLOOKUP
682DIG
683FCTSH
684BASH
685SH5
686SH
687DO_TCL
688KRB5_RCTMPDIR
689SIZEOF_TIME_T
690SETENVOBJ
691KSU_LIBS
692EXTRA_SUPPORT_SYMS
693GETTIMEOFDAY_ST_OBJ
694GETTIMEOFDAY_OBJ
695MKSTEMP_ST_OBJ
696MKSTEMP_OBJ
697LEXLIB
698LEX_OUTPUT_ROOT
699LEX
700ASAN
701ASAN_FLAGS
702KRB5_RUN_VARS
703KRB5_RUN_ENV
704AESNI_FLAGS
705AESNI_OBJ
706YASM
707SPAKE_OPENSSL_LIBS
708HAVE_SPAKE_OPENSSL
709TLS_IMPL_LIBS
710TLS_IMPL_CFLAGS
711TLS_IMPL
712PRNG_ALG
713CRYPTO_IMPL_LIBS
714CRYPTO_IMPL_CFLAGS
715CRYPTO_IMPL
716audit_plugin
717AUDIT_IMPL_LIBS
718AWK
719SECURE_GETENV_INIT
720SECURE_GETENV_ST_OBJ
721SECURE_GETENV_OBJ
722PRINTF_ST_OBJ
723PRINTF_OBJ
724FNMATCH_ST_OBJ
725FNMATCH_OBJ
726GETOPT_LONG_ST_OBJ
727GETOPT_LONG_OBJ
728GETOPT_ST_OBJ
729GETOPT_OBJ
730STRLCPY_ST_OBJ
731STRLCPY_OBJ
732po
733MSGFMT
734LIBUTIL
735PROG_RPATH_FLAGS
736RPATH_FLAG
737CXX_LINK
738CC_LINK
739GEN_LIB
740UNDEF_CHECK
741MAKE_DYNOBJ_COMMAND
742DYNOBJEXT
743LIBINSTLIST
744PFLIBEXT
745DEPLIBEXT
746SHLIBSEXT
747SHLIBVEXT
748SHLIBEXT
749STLIBEXT
750INSTALL_SHLIB
751DYNOBJ_EXPFLAGS
752DYNOBJ_EXPDEPS
753SHLIB_EXPORT_FILE_DEP
754SHLIB_EXPFLAGS
755SHLIB_RPATH_FLAGS
756MAKE_SHLIB_COMMAND
757KDB5_PLUGIN_LIBS
758KDB5_PLUGIN_DEPLIBS
759PLUGININST
760PLUGINLINK
761PLUGIN
762LIBLINKS
763LIBLIST
764PERL
765AR
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
769RANLIB
770LN_S
771PROFFLAGS
772PICFLAGS
773PFOBJEXT
774SHOBJEXT
775STOBJEXT
776OBJLISTS
777TCL_MAYBE_RPATH
778TCL_RPATH
779TCL_LIBPATH
780TCL_LIBS
781TCL_INCLUDES
782PKG_CONFIG_LIBDIR
783PKG_CONFIG_PATH
784PKG_CONFIG
785KRB5_VERSION
786DL_LIB
787THREAD_SUPPORT
788PTHREAD_CFLAGS
789PTHREAD_LIBS
790PTHREAD_CC
791ax_pthread_config
792EGREP
793GREP
794SED
795krb5_cv_host
796host_os
797host_vendor
798host_cpu
799host
800build_os
801build_vendor
802build_cpu
803build
804CONFIG_RELTOPDIR
805MAINT
806MAINTAINER_MODE_FALSE
807MAINTAINER_MODE_TRUE
808HESIOD_LIBS
809HESIOD_DEFS
810KDB5_DB_LIB
811DB_HEADER_VERSION
812DB_VERSION
813DB_LIB
814DB_HEADER
815SS_VERSION
816SS_LIB
817COM_ERR_VERSION
818compile_et
819LD
820CPP
821WARN_CXXFLAGS
822WARN_CFLAGS
823HAVE_GCC
824ac_ct_CXX
825CXXFLAGS
826CXX
827OBJEXT
828EXEEXT
829ac_ct_CC
830CPPFLAGS
831LDFLAGS
832CFLAGS
833CC
834EXTRA_FILES
835SYSCONFCONF
836runstatedir
837target_alias
838host_alias
839build_alias
840LIBS
841ECHO_T
842ECHO_N
843ECHO_C
844DEFS
845mandir
846localedir
847libdir
848psdir
849pdfdir
850dvidir
851htmldir
852infodir
853docdir
854oldincludedir
855includedir
856localstatedir
857sharedstatedir
858sysconfdir
859datadir
860datarootdir
861libexecdir
862sbindir
863bindir
864program_transform_name
865prefix
866exec_prefix
867PACKAGE_URL
868PACKAGE_BUGREPORT
869PACKAGE_STRING
870PACKAGE_VERSION
871PACKAGE_TARNAME
872PACKAGE_NAME
873PATH_SEPARATOR
874SHELL'
875ac_subst_files='lib_frag
876libobj_frag
877libnover_frag
878libpriv_frag
879libnodeps_frag'
880ac_user_opts='
881enable_option_checking
882with_size_optimizations
883with_system_et
884with_system_ss
885with_system_db
886with_netlib
887enable_dns_for_realm
888with_hesiod
889enable_maintainer_mode
890with_ldap
891enable_delayed_initialization
892enable_thread_support
893enable_static
894enable_shared
895enable_rpath
896enable_profiled
897with_tcl
898enable_athena
899enable_nls
900with_vague_errors
901enable_audit_plugin
902with_crypto_impl
903with_prng_alg
904with_tls_impl
905with_keyutils
906with_spake_openssl
907enable_aesni
908enable_kdc_lookaside_cache
909enable_asan
910enable_pkinit
911with_lmdb
912with_libedit
913with_readline
914with_system_verto
915with_krb5_config
916'
917      ac_precious_vars='build_alias
918host_alias
919target_alias
920CC
921CFLAGS
922LDFLAGS
923LIBS
924CPPFLAGS
925CXX
926CXXFLAGS
927CCC
928CPP
929LD
930SS_LIB
931DB_HEADER
932DB_LIB
933PKG_CONFIG
934PKG_CONFIG_PATH
935PKG_CONFIG_LIBDIR
936YACC
937YFLAGS
938LIBEDIT_CFLAGS
939LIBEDIT_LIBS
940VERTO_CFLAGS
941VERTO_LIBS
942DEFCCNAME
943DEFKTNAME
944DEFCKTNAME'
945
946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950ac_unrecognized_opts=
951ac_unrecognized_sep=
952# The variables have the same names as the options, with
953# dashes changed to underlines.
954cache_file=/dev/null
955exec_prefix=NONE
956no_create=
957no_recursion=
958prefix=NONE
959program_prefix=NONE
960program_suffix=NONE
961program_transform_name=s,x,x,
962silent=
963site=
964srcdir=
965verbose=
966x_includes=NONE
967x_libraries=NONE
968
969# Installation directory options.
970# These are left unexpanded so users can "make install exec_prefix=/foo"
971# and all the variables that are supposed to be based on exec_prefix
972# by default will actually change.
973# Use braces instead of parens because sh, perl, etc. also accept them.
974# (The list follows the same order as the GNU Coding Standards.)
975bindir='${exec_prefix}/bin'
976sbindir='${exec_prefix}/sbin'
977libexecdir='${exec_prefix}/libexec'
978datarootdir='${prefix}/share'
979datadir='${datarootdir}'
980sysconfdir='${prefix}/etc'
981sharedstatedir='${prefix}/com'
982localstatedir='${prefix}/var'
983includedir='${prefix}/include'
984oldincludedir='/usr/include'
985docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
994
995ac_prev=
996ac_dashdash=
997for ac_option
998do
999  # If the previous option needs an argument, assign it.
1000  if test -n "$ac_prev"; then
1001    eval $ac_prev=\$ac_option
1002    ac_prev=
1003    continue
1004  fi
1005
1006  case $ac_option in
1007  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008  *=)   ac_optarg= ;;
1009  *)    ac_optarg=yes ;;
1010  esac
1011
1012  # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014  case $ac_dashdash$ac_option in
1015  --)
1016    ac_dashdash=yes ;;
1017
1018  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019    ac_prev=bindir ;;
1020  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021    bindir=$ac_optarg ;;
1022
1023  -build | --build | --buil | --bui | --bu)
1024    ac_prev=build_alias ;;
1025  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026    build_alias=$ac_optarg ;;
1027
1028  -cache-file | --cache-file | --cache-fil | --cache-fi \
1029  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030    ac_prev=cache_file ;;
1031  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033    cache_file=$ac_optarg ;;
1034
1035  --config-cache | -C)
1036    cache_file=config.cache ;;
1037
1038  -datadir | --datadir | --datadi | --datad)
1039    ac_prev=datadir ;;
1040  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041    datadir=$ac_optarg ;;
1042
1043  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044  | --dataroo | --dataro | --datar)
1045    ac_prev=datarootdir ;;
1046  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048    datarootdir=$ac_optarg ;;
1049
1050  -disable-* | --disable-*)
1051    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052    # Reject names that are not valid shell variable names.
1053    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054      as_fn_error $? "invalid feature name: $ac_useropt"
1055    ac_useropt_orig=$ac_useropt
1056    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057    case $ac_user_opts in
1058      *"
1059"enable_$ac_useropt"
1060"*) ;;
1061      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062	 ac_unrecognized_sep=', ';;
1063    esac
1064    eval enable_$ac_useropt=no ;;
1065
1066  -docdir | --docdir | --docdi | --doc | --do)
1067    ac_prev=docdir ;;
1068  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069    docdir=$ac_optarg ;;
1070
1071  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072    ac_prev=dvidir ;;
1073  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074    dvidir=$ac_optarg ;;
1075
1076  -enable-* | --enable-*)
1077    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078    # Reject names that are not valid shell variable names.
1079    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080      as_fn_error $? "invalid feature name: $ac_useropt"
1081    ac_useropt_orig=$ac_useropt
1082    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083    case $ac_user_opts in
1084      *"
1085"enable_$ac_useropt"
1086"*) ;;
1087      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088	 ac_unrecognized_sep=', ';;
1089    esac
1090    eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094  | --exec | --exe | --ex)
1095    ac_prev=exec_prefix ;;
1096  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098  | --exec=* | --exe=* | --ex=*)
1099    exec_prefix=$ac_optarg ;;
1100
1101  -gas | --gas | --ga | --g)
1102    # Obsolete; use --with-gas.
1103    with_gas=yes ;;
1104
1105  -help | --help | --hel | --he | -h)
1106    ac_init_help=long ;;
1107  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108    ac_init_help=recursive ;;
1109  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110    ac_init_help=short ;;
1111
1112  -host | --host | --hos | --ho)
1113    ac_prev=host_alias ;;
1114  -host=* | --host=* | --hos=* | --ho=*)
1115    host_alias=$ac_optarg ;;
1116
1117  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118    ac_prev=htmldir ;;
1119  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120  | --ht=*)
1121    htmldir=$ac_optarg ;;
1122
1123  -includedir | --includedir | --includedi | --included | --include \
1124  | --includ | --inclu | --incl | --inc)
1125    ac_prev=includedir ;;
1126  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127  | --includ=* | --inclu=* | --incl=* | --inc=*)
1128    includedir=$ac_optarg ;;
1129
1130  -infodir | --infodir | --infodi | --infod | --info | --inf)
1131    ac_prev=infodir ;;
1132  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133    infodir=$ac_optarg ;;
1134
1135  -libdir | --libdir | --libdi | --libd)
1136    ac_prev=libdir ;;
1137  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138    libdir=$ac_optarg ;;
1139
1140  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141  | --libexe | --libex | --libe)
1142    ac_prev=libexecdir ;;
1143  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144  | --libexe=* | --libex=* | --libe=*)
1145    libexecdir=$ac_optarg ;;
1146
1147  -localedir | --localedir | --localedi | --localed | --locale)
1148    ac_prev=localedir ;;
1149  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150    localedir=$ac_optarg ;;
1151
1152  -localstatedir | --localstatedir | --localstatedi | --localstated \
1153  | --localstate | --localstat | --localsta | --localst | --locals)
1154    ac_prev=localstatedir ;;
1155  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157    localstatedir=$ac_optarg ;;
1158
1159  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160    ac_prev=mandir ;;
1161  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162    mandir=$ac_optarg ;;
1163
1164  -nfp | --nfp | --nf)
1165    # Obsolete; use --without-fp.
1166    with_fp=no ;;
1167
1168  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169  | --no-cr | --no-c | -n)
1170    no_create=yes ;;
1171
1172  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174    no_recursion=yes ;;
1175
1176  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178  | --oldin | --oldi | --old | --ol | --o)
1179    ac_prev=oldincludedir ;;
1180  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183    oldincludedir=$ac_optarg ;;
1184
1185  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186    ac_prev=prefix ;;
1187  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188    prefix=$ac_optarg ;;
1189
1190  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191  | --program-pre | --program-pr | --program-p)
1192    ac_prev=program_prefix ;;
1193  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195    program_prefix=$ac_optarg ;;
1196
1197  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198  | --program-suf | --program-su | --program-s)
1199    ac_prev=program_suffix ;;
1200  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202    program_suffix=$ac_optarg ;;
1203
1204  -program-transform-name | --program-transform-name \
1205  | --program-transform-nam | --program-transform-na \
1206  | --program-transform-n | --program-transform- \
1207  | --program-transform | --program-transfor \
1208  | --program-transfo | --program-transf \
1209  | --program-trans | --program-tran \
1210  | --progr-tra | --program-tr | --program-t)
1211    ac_prev=program_transform_name ;;
1212  -program-transform-name=* | --program-transform-name=* \
1213  | --program-transform-nam=* | --program-transform-na=* \
1214  | --program-transform-n=* | --program-transform-=* \
1215  | --program-transform=* | --program-transfor=* \
1216  | --program-transfo=* | --program-transf=* \
1217  | --program-trans=* | --program-tran=* \
1218  | --progr-tra=* | --program-tr=* | --program-t=*)
1219    program_transform_name=$ac_optarg ;;
1220
1221  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222    ac_prev=pdfdir ;;
1223  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224    pdfdir=$ac_optarg ;;
1225
1226  -psdir | --psdir | --psdi | --psd | --ps)
1227    ac_prev=psdir ;;
1228  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229    psdir=$ac_optarg ;;
1230
1231  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232  | -silent | --silent | --silen | --sile | --sil)
1233    silent=yes ;;
1234
1235  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236    ac_prev=sbindir ;;
1237  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238  | --sbi=* | --sb=*)
1239    sbindir=$ac_optarg ;;
1240
1241  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243  | --sharedst | --shareds | --shared | --share | --shar \
1244  | --sha | --sh)
1245    ac_prev=sharedstatedir ;;
1246  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249  | --sha=* | --sh=*)
1250    sharedstatedir=$ac_optarg ;;
1251
1252  -site | --site | --sit)
1253    ac_prev=site ;;
1254  -site=* | --site=* | --sit=*)
1255    site=$ac_optarg ;;
1256
1257  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258    ac_prev=srcdir ;;
1259  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260    srcdir=$ac_optarg ;;
1261
1262  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263  | --syscon | --sysco | --sysc | --sys | --sy)
1264    ac_prev=sysconfdir ;;
1265  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267    sysconfdir=$ac_optarg ;;
1268
1269  -target | --target | --targe | --targ | --tar | --ta | --t)
1270    ac_prev=target_alias ;;
1271  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272    target_alias=$ac_optarg ;;
1273
1274  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275    verbose=yes ;;
1276
1277  -version | --version | --versio | --versi | --vers | -V)
1278    ac_init_version=: ;;
1279
1280  -with-* | --with-*)
1281    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282    # Reject names that are not valid shell variable names.
1283    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284      as_fn_error $? "invalid package name: $ac_useropt"
1285    ac_useropt_orig=$ac_useropt
1286    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287    case $ac_user_opts in
1288      *"
1289"with_$ac_useropt"
1290"*) ;;
1291      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292	 ac_unrecognized_sep=', ';;
1293    esac
1294    eval with_$ac_useropt=\$ac_optarg ;;
1295
1296  -without-* | --without-*)
1297    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298    # Reject names that are not valid shell variable names.
1299    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300      as_fn_error $? "invalid package name: $ac_useropt"
1301    ac_useropt_orig=$ac_useropt
1302    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303    case $ac_user_opts in
1304      *"
1305"with_$ac_useropt"
1306"*) ;;
1307      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308	 ac_unrecognized_sep=', ';;
1309    esac
1310    eval with_$ac_useropt=no ;;
1311
1312  --x)
1313    # Obsolete; use --with-x.
1314    with_x=yes ;;
1315
1316  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317  | --x-incl | --x-inc | --x-in | --x-i)
1318    ac_prev=x_includes ;;
1319  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321    x_includes=$ac_optarg ;;
1322
1323  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325    ac_prev=x_libraries ;;
1326  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328    x_libraries=$ac_optarg ;;
1329
1330  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331Try \`$0 --help' for more information"
1332    ;;
1333
1334  *=*)
1335    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336    # Reject names that are not valid shell variable names.
1337    case $ac_envvar in #(
1338      '' | [0-9]* | *[!_$as_cr_alnum]* )
1339      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340    esac
1341    eval $ac_envvar=\$ac_optarg
1342    export $ac_envvar ;;
1343
1344  *)
1345    # FIXME: should be removed in autoconf 3.0.
1346    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350    ;;
1351
1352  esac
1353done
1354
1355if test -n "$ac_prev"; then
1356  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357  as_fn_error $? "missing argument to $ac_option"
1358fi
1359
1360if test -n "$ac_unrecognized_opts"; then
1361  case $enable_option_checking in
1362    no) ;;
1363    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365  esac
1366fi
1367
1368# Check all directory arguments for consistency.
1369for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370		datadir sysconfdir sharedstatedir localstatedir includedir \
1371		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372		libdir localedir mandir
1373do
1374  eval ac_val=\$$ac_var
1375  # Remove trailing slashes.
1376  case $ac_val in
1377    */ )
1378      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379      eval $ac_var=\$ac_val;;
1380  esac
1381  # Be sure to have absolute directory names.
1382  case $ac_val in
1383    [\\/$]* | ?:[\\/]* )  continue;;
1384    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385  esac
1386  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387done
1388
1389# There might be people who depend on the old broken behavior: `$host'
1390# used to hold the argument of --host etc.
1391# FIXME: To remove some day.
1392build=$build_alias
1393host=$host_alias
1394target=$target_alias
1395
1396# FIXME: To remove some day.
1397if test "x$host_alias" != x; then
1398  if test "x$build_alias" = x; then
1399    cross_compiling=maybe
1400  elif test "x$build_alias" != "x$host_alias"; then
1401    cross_compiling=yes
1402  fi
1403fi
1404
1405ac_tool_prefix=
1406test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408test "$silent" = yes && exec 6>/dev/null
1409
1410
1411ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412ac_ls_di=`ls -di .` &&
1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414  as_fn_error $? "working directory cannot be determined"
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421  ac_srcdir_defaulted=yes
1422  # Try the directory containing this script, then the parent directory.
1423  ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425	 X"$as_myself" : 'X\(//\)[^/]' \| \
1426	 X"$as_myself" : 'X\(//\)$' \| \
1427	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)[^/].*/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)$/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\).*/{
1442	    s//\1/
1443	    q
1444	  }
1445	  s/.*/./; q'`
1446  srcdir=$ac_confdir
1447  if test ! -r "$srcdir/$ac_unique_file"; then
1448    srcdir=..
1449  fi
1450else
1451  ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456fi
1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
1459	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460	pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463  srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_env_${ac_var}_value=\$${ac_var}
1474  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482  # Omit some internal or obsolete options to make the list less imposing.
1483  # This message is too long to be a string in the A/UX 3.1 sh.
1484  cat <<_ACEOF
1485\`configure' configures Kerberos 5 1.18.2 to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495  -h, --help              display this help and exit
1496      --help=short        display options specific to this package
1497      --help=recursive    display the short help of all the included packages
1498  -V, --version           display version information and exit
1499  -q, --quiet, --silent   do not print \`checking ...' messages
1500      --cache-file=FILE   cache test results in FILE [disabled]
1501  -C, --config-cache      alias for \`--cache-file=config.cache'
1502  -n, --no-create         do not create output files
1503      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506  --prefix=PREFIX         install architecture-independent files in PREFIX
1507                          [$ac_default_prefix]
1508  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                          [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519  --bindir=DIR            user executables [EPREFIX/bin]
1520  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521  --libexecdir=DIR        program executables [EPREFIX/libexec]
1522  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525  --libdir=DIR            object code libraries [EPREFIX/lib]
1526  --includedir=DIR        C header files [PREFIX/include]
1527  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR           info documentation [DATAROOTDIR/info]
1531  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR            man documentation [DATAROOTDIR/man]
1533  --docdir=DIR            documentation root [DATAROOTDIR/doc/krb5]
1534  --htmldir=DIR           html documentation [DOCDIR]
1535  --dvidir=DIR            dvi documentation [DOCDIR]
1536  --pdfdir=DIR            pdf documentation [DOCDIR]
1537  --psdir=DIR             ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541
1542Program names:
1543  --program-prefix=PREFIX            prepend PREFIX to installed program names
1544  --program-suffix=SUFFIX            append SUFFIX to installed program names
1545  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547System types:
1548  --build=BUILD     configure for building on BUILD [guessed]
1549  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554  case $ac_init_help in
1555     short | recursive ) echo "Configuration of Kerberos 5 1.18.2:";;
1556   esac
1557  cat <<\_ACEOF
1558
1559Optional Features:
1560  --disable-option-checking  ignore unrecognized --enable/--with options
1561  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563  --enable-dns-for-realm  enable DNS lookups of Kerberos realm names
1564  --enable-maintainer-mode
1565                          enable rebuilding of source files, Makefiles, etc
1566  --disable-delayed-initialization
1567                          initialize library code when loaded [delay until
1568                          first use]
1569  --disable-thread-support
1570                          don't enable thread support [enabled]
1571
1572  --disable-rpath         suppress run path flags in link lines
1573  --enable-athena         build with MIT Project Athena configuration
1574  --disable-nls           disable native language support
1575  --enable-audit-plugin=IMPL
1576                          use audit plugin [ do not use audit ]
1577  --disable-aesni         Do not build with AES-NI support
1578  --disable-kdc-lookaside-cache
1579                          Disable the cache which detects client retransmits
1580  --enable-asan           Build with asan memory checking
1581  --disable-pkinit        disable PKINIT plugin support
1582
1583Optional Packages:
1584  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1585  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1586  --with-size-optimizations enable a few optimizations to reduce code size
1587                          possibly at some run-time cost
1588  --with-system-et        use system compile_et and -lcom_err [default: build
1589                          and install a local version]
1590  --with-system-ss        use system -lss and mk_cmds [private version]
1591  --with-system-db        use system Berkeley db [private version]
1592  --with-netlib=LIBS      use user defined resolver library
1593  --with-hesiod=path      compile with hesiod support [omitted]
1594  --with-ldap             compile OpenLDAP database backend module
1595  --with-tcl=path         where Tcl resides
1596  --with-vague-errors     Do not [do] send helpful errors to client
1597  --with-crypto-impl=IMPL use specified crypto implementation [builtin]
1598  --with-prng-alg=ALG     use specified PRNG algorithm. [fortuna]
1599  --with-tls-impl=IMPL    use specified TLS implementation [auto]
1600  --without-keyutils      do not link with libkeyutils
1601  --with-spake-openssl    use OpenSSL for SPAKE preauth [auto]
1602  --with-lmdb             compile LMDB database backend module [auto]
1603  --without-libedit       do not compile with libedit
1604  --with-readline         compile with GNU Readline
1605  --with-system-verto     always use system verto library
1606  --with-krb5-config=PATH path to existing krb5-config program for defaults
1607
1608Some influential environment variables:
1609  CC          C compiler command
1610  CFLAGS      C compiler flags
1611  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1612              nonstandard directory <lib dir>
1613  LIBS        libraries to pass to the linker, e.g. -l<library>
1614  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1615              you have headers in a nonstandard directory <include dir>
1616  CXX         C++ compiler command
1617  CXXFLAGS    C++ compiler flags
1618  CPP         C preprocessor
1619  LD          linker command [CC]
1620  SS_LIB      system libraries for 'ss' package [-lss]
1621  DB_HEADER   header file for system Berkeley db package [db.h]
1622  DB_LIB      library for system Berkeley db package [-ldb]
1623  PKG_CONFIG  path to pkg-config utility
1624  PKG_CONFIG_PATH
1625              directories to add to pkg-config's search path
1626  PKG_CONFIG_LIBDIR
1627              path overriding pkg-config's built-in search path
1628  YACC        The `Yet Another Compiler Compiler' implementation to use.
1629              Defaults to the first program found out of: `bison -y', `byacc',
1630              `yacc'.
1631  YFLAGS      The list of arguments that will be passed by default to $YACC.
1632              This script will default YFLAGS to the empty string to avoid a
1633              default value of `-d' given by some make applications.
1634  LIBEDIT_CFLAGS
1635              C compiler flags for LIBEDIT, overriding pkg-config
1636  LIBEDIT_LIBS
1637              linker flags for LIBEDIT, overriding pkg-config
1638  VERTO_CFLAGS
1639              C compiler flags for VERTO, overriding pkg-config
1640  VERTO_LIBS  linker flags for VERTO, overriding pkg-config
1641  DEFCCNAME   Default ccache name
1642  DEFKTNAME   Default keytab name
1643  DEFCKTNAME  Default client keytab name
1644
1645Use these variables to override the choices made by `configure' or to help
1646it to find libraries and programs with nonstandard names/locations.
1647
1648Report bugs to <krb5-bugs@mit.edu>.
1649_ACEOF
1650ac_status=$?
1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654  # If there are subdirs, report their specific --help.
1655  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656    test -d "$ac_dir" ||
1657      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658      continue
1659    ac_builddir=.
1660
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665  # A ".." for each directory in $ac_dir_suffix.
1666  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667  case $ac_top_builddir_sub in
1668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670  esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
1676
1677case $srcdir in
1678  .)  # We are building in place.
1679    ac_srcdir=.
1680    ac_top_srcdir=$ac_top_builddir_sub
1681    ac_abs_top_srcdir=$ac_pwd ;;
1682  [\\/]* | ?:[\\/]* )  # Absolute name.
1683    ac_srcdir=$srcdir$ac_dir_suffix;
1684    ac_top_srcdir=$srcdir
1685    ac_abs_top_srcdir=$srcdir ;;
1686  *) # Relative name.
1687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688    ac_top_srcdir=$ac_top_build_prefix$srcdir
1689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690esac
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693    cd "$ac_dir" || { ac_status=$?; continue; }
1694    # Check for guested configure.
1695    if test -f "$ac_srcdir/configure.gnu"; then
1696      echo &&
1697      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698    elif test -f "$ac_srcdir/configure"; then
1699      echo &&
1700      $SHELL "$ac_srcdir/configure" --help=recursive
1701    else
1702      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703    fi || ac_status=$?
1704    cd "$ac_pwd" || { ac_status=$?; break; }
1705  done
1706fi
1707
1708test -n "$ac_init_help" && exit $ac_status
1709if $ac_init_version; then
1710  cat <<\_ACEOF
1711Kerberos 5 configure 1.18.2
1712generated by GNU Autoconf 2.69
1713
1714Copyright (C) 2012 Free Software Foundation, Inc.
1715This configure script is free software; the Free Software Foundation
1716gives unlimited permission to copy, distribute and modify it.
1717
1718Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009
1719Massachusetts Institute of Technology.
1720
1721_ACEOF
1722  exit
1723fi
1724
1725## ------------------------ ##
1726## Autoconf initialization. ##
1727## ------------------------ ##
1728
1729# ac_fn_c_try_compile LINENO
1730# --------------------------
1731# Try to compile conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_compile ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  rm -f conftest.$ac_objext
1736  if { { ac_try="$ac_compile"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_compile") 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_objext; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760	ac_retval=1
1761fi
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_compile
1766
1767# ac_fn_cxx_try_compile LINENO
1768# ----------------------------
1769# Try to compile conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_cxx_try_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  rm -f conftest.$ac_objext
1774  if { { ac_try="$ac_compile"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_compile") 2>conftest.err
1782  ac_status=$?
1783  if test -s conftest.err; then
1784    grep -v '^ *+' conftest.err >conftest.er1
1785    cat conftest.er1 >&5
1786    mv -f conftest.er1 conftest.err
1787  fi
1788  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789  test $ac_status = 0; } && {
1790	 test -z "$ac_cxx_werror_flag" ||
1791	 test ! -s conftest.err
1792       } && test -s conftest.$ac_objext; then :
1793  ac_retval=0
1794else
1795  $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801  as_fn_set_status $ac_retval
1802
1803} # ac_fn_cxx_try_compile
1804
1805# ac_fn_c_try_cpp LINENO
1806# ----------------------
1807# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_cpp ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  if { { ac_try="$ac_cpp conftest.$ac_ext"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819  ac_status=$?
1820  if test -s conftest.err; then
1821    grep -v '^ *+' conftest.err >conftest.er1
1822    cat conftest.er1 >&5
1823    mv -f conftest.er1 conftest.err
1824  fi
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } > conftest.i && {
1827	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828	 test ! -s conftest.err
1829       }; then :
1830  ac_retval=0
1831else
1832  $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835    ac_retval=1
1836fi
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838  as_fn_set_status $ac_retval
1839
1840} # ac_fn_c_try_cpp
1841
1842# ac_fn_c_try_link LINENO
1843# -----------------------
1844# Try to link conftest.$ac_ext, and return whether this succeeded.
1845ac_fn_c_try_link ()
1846{
1847  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848  rm -f conftest.$ac_objext conftest$ac_exeext
1849  if { { ac_try="$ac_link"
1850case "(($ac_try" in
1851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852  *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856  (eval "$ac_link") 2>conftest.err
1857  ac_status=$?
1858  if test -s conftest.err; then
1859    grep -v '^ *+' conftest.err >conftest.er1
1860    cat conftest.er1 >&5
1861    mv -f conftest.er1 conftest.err
1862  fi
1863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864  test $ac_status = 0; } && {
1865	 test -z "$ac_c_werror_flag" ||
1866	 test ! -s conftest.err
1867       } && test -s conftest$ac_exeext && {
1868	 test "$cross_compiling" = yes ||
1869	 test -x conftest$ac_exeext
1870       }; then :
1871  ac_retval=0
1872else
1873  $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876	ac_retval=1
1877fi
1878  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880  # interfere with the next link command; also delete a directory that is
1881  # left behind by Apple's compiler.  We do this before executing the actions.
1882  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884  as_fn_set_status $ac_retval
1885
1886} # ac_fn_c_try_link
1887
1888# ac_fn_c_try_run LINENO
1889# ----------------------
1890# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891# that executables *can* be run.
1892ac_fn_c_try_run ()
1893{
1894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895  if { { ac_try="$ac_link"
1896case "(($ac_try" in
1897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898  *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902  (eval "$ac_link") 2>&5
1903  ac_status=$?
1904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906  { { case "(($ac_try" in
1907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908  *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912  (eval "$ac_try") 2>&5
1913  ac_status=$?
1914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915  test $ac_status = 0; }; }; then :
1916  ac_retval=0
1917else
1918  $as_echo "$as_me: program exited with status $ac_status" >&5
1919       $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922       ac_retval=$ac_status
1923fi
1924  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926  as_fn_set_status $ac_retval
1927
1928} # ac_fn_c_try_run
1929
1930# ac_fn_c_check_func LINENO FUNC VAR
1931# ----------------------------------
1932# Tests whether FUNC exists, setting the cache variable VAR accordingly
1933ac_fn_c_check_func ()
1934{
1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939  $as_echo_n "(cached) " >&6
1940else
1941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h.  */
1943/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1944   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1945#define $2 innocuous_$2
1946
1947/* System header to define __stub macros and hopefully few prototypes,
1948    which can conflict with char $2 (); below.
1949    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1950    <limits.h> exists even on freestanding compilers.  */
1951
1952#ifdef __STDC__
1953# include <limits.h>
1954#else
1955# include <assert.h>
1956#endif
1957
1958#undef $2
1959
1960/* Override any GCC internal prototype to avoid an error.
1961   Use char because int might match the return type of a GCC
1962   builtin and then its argument prototype would still apply.  */
1963#ifdef __cplusplus
1964extern "C"
1965#endif
1966char $2 ();
1967/* The GNU C library defines this for functions which it implements
1968    to always fail with ENOSYS.  Some functions are actually named
1969    something starting with __ and the normal name is an alias.  */
1970#if defined __stub_$2 || defined __stub___$2
1971choke me
1972#endif
1973
1974int
1975main ()
1976{
1977return $2 ();
1978  ;
1979  return 0;
1980}
1981_ACEOF
1982if ac_fn_c_try_link "$LINENO"; then :
1983  eval "$3=yes"
1984else
1985  eval "$3=no"
1986fi
1987rm -f core conftest.err conftest.$ac_objext \
1988    conftest$ac_exeext conftest.$ac_ext
1989fi
1990eval ac_res=\$$3
1991	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} # ac_fn_c_check_func
1996
1997# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1998# -------------------------------------------------------
1999# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2000# the include files in INCLUDES and setting the cache variable VAR
2001# accordingly.
2002ac_fn_c_check_header_mongrel ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  if eval \${$3+:} false; then :
2006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if eval \${$3+:} false; then :
2009  $as_echo_n "(cached) " >&6
2010fi
2011eval ac_res=\$$3
2012	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014else
2015  # Is the header compilable?
2016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2017$as_echo_n "checking $2 usability... " >&6; }
2018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021#include <$2>
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024  ac_header_compiler=yes
2025else
2026  ac_header_compiler=no
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2030$as_echo "$ac_header_compiler" >&6; }
2031
2032# Is the header present?
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2034$as_echo_n "checking $2 presence... " >&6; }
2035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h.  */
2037#include <$2>
2038_ACEOF
2039if ac_fn_c_try_cpp "$LINENO"; then :
2040  ac_header_preproc=yes
2041else
2042  ac_header_preproc=no
2043fi
2044rm -f conftest.err conftest.i conftest.$ac_ext
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046$as_echo "$ac_header_preproc" >&6; }
2047
2048# So?  What about this header?
2049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050  yes:no: )
2051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2052$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055    ;;
2056  no:yes:* )
2057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2058$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2059    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2060$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2062$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2063    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2064$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2065    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067( $as_echo "## -------------------------------- ##
2068## Report this to krb5-bugs@mit.edu ##
2069## -------------------------------- ##"
2070     ) | sed "s/^/$as_me: WARNING:     /" >&2
2071    ;;
2072esac
2073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074$as_echo_n "checking for $2... " >&6; }
2075if eval \${$3+:} false; then :
2076  $as_echo_n "(cached) " >&6
2077else
2078  eval "$3=\$ac_header_compiler"
2079fi
2080eval ac_res=\$$3
2081	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083fi
2084  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086} # ac_fn_c_check_header_mongrel
2087
2088# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2089# -------------------------------------------------------
2090# Tests whether HEADER exists and can be compiled using the include files in
2091# INCLUDES, setting the cache variable VAR accordingly.
2092ac_fn_c_check_header_compile ()
2093{
2094  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096$as_echo_n "checking for $2... " >&6; }
2097if eval \${$3+:} false; then :
2098  $as_echo_n "(cached) " >&6
2099else
2100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102$4
2103#include <$2>
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106  eval "$3=yes"
2107else
2108  eval "$3=no"
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111fi
2112eval ac_res=\$$3
2113	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114$as_echo "$ac_res" >&6; }
2115  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116
2117} # ac_fn_c_check_header_compile
2118
2119# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2120# -------------------------------------------
2121# Tests whether TYPE exists after having included INCLUDES, setting cache
2122# variable VAR accordingly.
2123ac_fn_c_check_type ()
2124{
2125  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127$as_echo_n "checking for $2... " >&6; }
2128if eval \${$3+:} false; then :
2129  $as_echo_n "(cached) " >&6
2130else
2131  eval "$3=no"
2132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134$4
2135int
2136main ()
2137{
2138if (sizeof ($2))
2139	 return 0;
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h.  */
2147$4
2148int
2149main ()
2150{
2151if (sizeof (($2)))
2152	    return 0;
2153  ;
2154  return 0;
2155}
2156_ACEOF
2157if ac_fn_c_try_compile "$LINENO"; then :
2158
2159else
2160  eval "$3=yes"
2161fi
2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165fi
2166eval ac_res=\$$3
2167	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168$as_echo "$ac_res" >&6; }
2169  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170
2171} # ac_fn_c_check_type
2172
2173# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2174# ----------------------------------------------------
2175# Tries to find if the field MEMBER exists in type AGGR, after including
2176# INCLUDES, setting cache variable VAR accordingly.
2177ac_fn_c_check_member ()
2178{
2179  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2181$as_echo_n "checking for $2.$3... " >&6; }
2182if eval \${$4+:} false; then :
2183  $as_echo_n "(cached) " >&6
2184else
2185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186/* end confdefs.h.  */
2187$5
2188int
2189main ()
2190{
2191static $2 ac_aggr;
2192if (ac_aggr.$3)
2193return 0;
2194  ;
2195  return 0;
2196}
2197_ACEOF
2198if ac_fn_c_try_compile "$LINENO"; then :
2199  eval "$4=yes"
2200else
2201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202/* end confdefs.h.  */
2203$5
2204int
2205main ()
2206{
2207static $2 ac_aggr;
2208if (sizeof ac_aggr.$3)
2209return 0;
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215  eval "$4=yes"
2216else
2217  eval "$4=no"
2218fi
2219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222fi
2223eval ac_res=\$$4
2224	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225$as_echo "$ac_res" >&6; }
2226  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227
2228} # ac_fn_c_check_member
2229
2230# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2231# ---------------------------------------------
2232# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2233# accordingly.
2234ac_fn_c_check_decl ()
2235{
2236  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237  as_decl_name=`echo $2|sed 's/ *(.*//'`
2238  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2240$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2241if eval \${$3+:} false; then :
2242  $as_echo_n "(cached) " >&6
2243else
2244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245/* end confdefs.h.  */
2246$4
2247int
2248main ()
2249{
2250#ifndef $as_decl_name
2251#ifdef __cplusplus
2252  (void) $as_decl_use;
2253#else
2254  (void) $as_decl_name;
2255#endif
2256#endif
2257
2258  ;
2259  return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263  eval "$3=yes"
2264else
2265  eval "$3=no"
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268fi
2269eval ac_res=\$$3
2270	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271$as_echo "$ac_res" >&6; }
2272  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273
2274} # ac_fn_c_check_decl
2275
2276# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2277# --------------------------------------------
2278# Tries to find the compile-time value of EXPR in a program that includes
2279# INCLUDES, setting VAR accordingly. Returns whether the value could be
2280# computed
2281ac_fn_c_compute_int ()
2282{
2283  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284  if test "$cross_compiling" = yes; then
2285    # Depending upon the size, compute the lo and hi bounds.
2286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h.  */
2288$4
2289int
2290main ()
2291{
2292static int test_array [1 - 2 * !(($2) >= 0)];
2293test_array [0] = 0;
2294return test_array [0];
2295
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300if ac_fn_c_try_compile "$LINENO"; then :
2301  ac_lo=0 ac_mid=0
2302  while :; do
2303    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h.  */
2305$4
2306int
2307main ()
2308{
2309static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2310test_array [0] = 0;
2311return test_array [0];
2312
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317if ac_fn_c_try_compile "$LINENO"; then :
2318  ac_hi=$ac_mid; break
2319else
2320  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2321			if test $ac_lo -le $ac_mid; then
2322			  ac_lo= ac_hi=
2323			  break
2324			fi
2325			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2326fi
2327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328  done
2329else
2330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h.  */
2332$4
2333int
2334main ()
2335{
2336static int test_array [1 - 2 * !(($2) < 0)];
2337test_array [0] = 0;
2338return test_array [0];
2339
2340  ;
2341  return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_compile "$LINENO"; then :
2345  ac_hi=-1 ac_mid=-1
2346  while :; do
2347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h.  */
2349$4
2350int
2351main ()
2352{
2353static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2354test_array [0] = 0;
2355return test_array [0];
2356
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361if ac_fn_c_try_compile "$LINENO"; then :
2362  ac_lo=$ac_mid; break
2363else
2364  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2365			if test $ac_mid -le $ac_hi; then
2366			  ac_lo= ac_hi=
2367			  break
2368			fi
2369			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2370fi
2371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372  done
2373else
2374  ac_lo= ac_hi=
2375fi
2376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377fi
2378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379# Binary search between lo and hi bounds.
2380while test "x$ac_lo" != "x$ac_hi"; do
2381  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383/* end confdefs.h.  */
2384$4
2385int
2386main ()
2387{
2388static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2389test_array [0] = 0;
2390return test_array [0];
2391
2392  ;
2393  return 0;
2394}
2395_ACEOF
2396if ac_fn_c_try_compile "$LINENO"; then :
2397  ac_hi=$ac_mid
2398else
2399  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2400fi
2401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402done
2403case $ac_lo in #((
2404?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2405'') ac_retval=1 ;;
2406esac
2407  else
2408    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409/* end confdefs.h.  */
2410$4
2411static long int longval () { return $2; }
2412static unsigned long int ulongval () { return $2; }
2413#include <stdio.h>
2414#include <stdlib.h>
2415int
2416main ()
2417{
2418
2419  FILE *f = fopen ("conftest.val", "w");
2420  if (! f)
2421    return 1;
2422  if (($2) < 0)
2423    {
2424      long int i = longval ();
2425      if (i != ($2))
2426	return 1;
2427      fprintf (f, "%ld", i);
2428    }
2429  else
2430    {
2431      unsigned long int i = ulongval ();
2432      if (i != ($2))
2433	return 1;
2434      fprintf (f, "%lu", i);
2435    }
2436  /* Do not output a trailing newline, as this causes \r\n confusion
2437     on some platforms.  */
2438  return ferror (f) || fclose (f) != 0;
2439
2440  ;
2441  return 0;
2442}
2443_ACEOF
2444if ac_fn_c_try_run "$LINENO"; then :
2445  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2446else
2447  ac_retval=1
2448fi
2449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2450  conftest.$ac_objext conftest.beam conftest.$ac_ext
2451rm -f conftest.val
2452
2453  fi
2454  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455  as_fn_set_status $ac_retval
2456
2457} # ac_fn_c_compute_int
2458cat >config.log <<_ACEOF
2459This file contains any messages produced by compilers while
2460running configure, to aid debugging if configure makes a mistake.
2461
2462It was created by Kerberos 5 $as_me 1.18.2, which was
2463generated by GNU Autoconf 2.69.  Invocation command line was
2464
2465  $ $0 $@
2466
2467_ACEOF
2468exec 5>>config.log
2469{
2470cat <<_ASUNAME
2471## --------- ##
2472## Platform. ##
2473## --------- ##
2474
2475hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2476uname -m = `(uname -m) 2>/dev/null || echo unknown`
2477uname -r = `(uname -r) 2>/dev/null || echo unknown`
2478uname -s = `(uname -s) 2>/dev/null || echo unknown`
2479uname -v = `(uname -v) 2>/dev/null || echo unknown`
2480
2481/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2482/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2483
2484/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2485/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2486/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2487/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2488/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2489/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2490/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2491
2492_ASUNAME
2493
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497  IFS=$as_save_IFS
2498  test -z "$as_dir" && as_dir=.
2499    $as_echo "PATH: $as_dir"
2500  done
2501IFS=$as_save_IFS
2502
2503} >&5
2504
2505cat >&5 <<_ACEOF
2506
2507
2508## ----------- ##
2509## Core tests. ##
2510## ----------- ##
2511
2512_ACEOF
2513
2514
2515# Keep a trace of the command line.
2516# Strip out --no-create and --no-recursion so they do not pile up.
2517# Strip out --silent because we don't want to record it for future runs.
2518# Also quote any args containing shell meta-characters.
2519# Make two passes to allow for proper duplicate-argument suppression.
2520ac_configure_args=
2521ac_configure_args0=
2522ac_configure_args1=
2523ac_must_keep_next=false
2524for ac_pass in 1 2
2525do
2526  for ac_arg
2527  do
2528    case $ac_arg in
2529    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2530    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2531    | -silent | --silent | --silen | --sile | --sil)
2532      continue ;;
2533    *\'*)
2534      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2535    esac
2536    case $ac_pass in
2537    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2538    2)
2539      as_fn_append ac_configure_args1 " '$ac_arg'"
2540      if test $ac_must_keep_next = true; then
2541	ac_must_keep_next=false # Got value, back to normal.
2542      else
2543	case $ac_arg in
2544	  *=* | --config-cache | -C | -disable-* | --disable-* \
2545	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2546	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2547	  | -with-* | --with-* | -without-* | --without-* | --x)
2548	    case "$ac_configure_args0 " in
2549	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2550	    esac
2551	    ;;
2552	  -* ) ac_must_keep_next=true ;;
2553	esac
2554      fi
2555      as_fn_append ac_configure_args " '$ac_arg'"
2556      ;;
2557    esac
2558  done
2559done
2560{ ac_configure_args0=; unset ac_configure_args0;}
2561{ ac_configure_args1=; unset ac_configure_args1;}
2562
2563# When interrupted or exit'd, cleanup temporary files, and complete
2564# config.log.  We remove comments because anyway the quotes in there
2565# would cause problems or look ugly.
2566# WARNING: Use '\'' to represent an apostrophe within the trap.
2567# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2568trap 'exit_status=$?
2569  # Save into config.log some information that might help in debugging.
2570  {
2571    echo
2572
2573    $as_echo "## ---------------- ##
2574## Cache variables. ##
2575## ---------------- ##"
2576    echo
2577    # The following way of writing the cache mishandles newlines in values,
2578(
2579  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2580    eval ac_val=\$$ac_var
2581    case $ac_val in #(
2582    *${as_nl}*)
2583      case $ac_var in #(
2584      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2586      esac
2587      case $ac_var in #(
2588      _ | IFS | as_nl) ;; #(
2589      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2590      *) { eval $ac_var=; unset $ac_var;} ;;
2591      esac ;;
2592    esac
2593  done
2594  (set) 2>&1 |
2595    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2596    *${as_nl}ac_space=\ *)
2597      sed -n \
2598	"s/'\''/'\''\\\\'\'''\''/g;
2599	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2600      ;; #(
2601    *)
2602      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2603      ;;
2604    esac |
2605    sort
2606)
2607    echo
2608
2609    $as_echo "## ----------------- ##
2610## Output variables. ##
2611## ----------------- ##"
2612    echo
2613    for ac_var in $ac_subst_vars
2614    do
2615      eval ac_val=\$$ac_var
2616      case $ac_val in
2617      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2618      esac
2619      $as_echo "$ac_var='\''$ac_val'\''"
2620    done | sort
2621    echo
2622
2623    if test -n "$ac_subst_files"; then
2624      $as_echo "## ------------------- ##
2625## File substitutions. ##
2626## ------------------- ##"
2627      echo
2628      for ac_var in $ac_subst_files
2629      do
2630	eval ac_val=\$$ac_var
2631	case $ac_val in
2632	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633	esac
2634	$as_echo "$ac_var='\''$ac_val'\''"
2635      done | sort
2636      echo
2637    fi
2638
2639    if test -s confdefs.h; then
2640      $as_echo "## ----------- ##
2641## confdefs.h. ##
2642## ----------- ##"
2643      echo
2644      cat confdefs.h
2645      echo
2646    fi
2647    test "$ac_signal" != 0 &&
2648      $as_echo "$as_me: caught signal $ac_signal"
2649    $as_echo "$as_me: exit $exit_status"
2650  } >&5
2651  rm -f core *.core core.conftest.* &&
2652    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2653    exit $exit_status
2654' 0
2655for ac_signal in 1 2 13 15; do
2656  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2657done
2658ac_signal=0
2659
2660# confdefs.h avoids OS command line length limits that DEFS can exceed.
2661rm -f -r conftest* confdefs.h
2662
2663$as_echo "/* confdefs.h */" > confdefs.h
2664
2665# Predefined preprocessor variables.
2666
2667cat >>confdefs.h <<_ACEOF
2668#define PACKAGE_NAME "$PACKAGE_NAME"
2669_ACEOF
2670
2671cat >>confdefs.h <<_ACEOF
2672#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2673_ACEOF
2674
2675cat >>confdefs.h <<_ACEOF
2676#define PACKAGE_VERSION "$PACKAGE_VERSION"
2677_ACEOF
2678
2679cat >>confdefs.h <<_ACEOF
2680#define PACKAGE_STRING "$PACKAGE_STRING"
2681_ACEOF
2682
2683cat >>confdefs.h <<_ACEOF
2684#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2685_ACEOF
2686
2687cat >>confdefs.h <<_ACEOF
2688#define PACKAGE_URL "$PACKAGE_URL"
2689_ACEOF
2690
2691
2692# Let the site file select an alternate cache file if it wants to.
2693# Prefer an explicitly selected file to automatically selected ones.
2694ac_site_file1=NONE
2695ac_site_file2=NONE
2696if test -n "$CONFIG_SITE"; then
2697  # We do not want a PATH search for config.site.
2698  case $CONFIG_SITE in #((
2699    -*)  ac_site_file1=./$CONFIG_SITE;;
2700    */*) ac_site_file1=$CONFIG_SITE;;
2701    *)   ac_site_file1=./$CONFIG_SITE;;
2702  esac
2703elif test "x$prefix" != xNONE; then
2704  ac_site_file1=$prefix/share/config.site
2705  ac_site_file2=$prefix/etc/config.site
2706else
2707  ac_site_file1=$ac_default_prefix/share/config.site
2708  ac_site_file2=$ac_default_prefix/etc/config.site
2709fi
2710for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2711do
2712  test "x$ac_site_file" = xNONE && continue
2713  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2714    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2715$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2716    sed 's/^/| /' "$ac_site_file" >&5
2717    . "$ac_site_file" \
2718      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2720as_fn_error $? "failed to load site script $ac_site_file
2721See \`config.log' for more details" "$LINENO" 5; }
2722  fi
2723done
2724
2725if test -r "$cache_file"; then
2726  # Some versions of bash will fail to source /dev/null (special files
2727  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2728  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2729    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2730$as_echo "$as_me: loading cache $cache_file" >&6;}
2731    case $cache_file in
2732      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2733      *)                      . "./$cache_file";;
2734    esac
2735  fi
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2738$as_echo "$as_me: creating cache $cache_file" >&6;}
2739  >$cache_file
2740fi
2741
2742# Check that the precious variables saved in the cache have kept the same
2743# value.
2744ac_cache_corrupted=false
2745for ac_var in $ac_precious_vars; do
2746  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2747  eval ac_new_set=\$ac_env_${ac_var}_set
2748  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2749  eval ac_new_val=\$ac_env_${ac_var}_value
2750  case $ac_old_set,$ac_new_set in
2751    set,)
2752      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2753$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2754      ac_cache_corrupted=: ;;
2755    ,set)
2756      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2757$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2758      ac_cache_corrupted=: ;;
2759    ,);;
2760    *)
2761      if test "x$ac_old_val" != "x$ac_new_val"; then
2762	# differences in whitespace do not lead to failure.
2763	ac_old_val_w=`echo x $ac_old_val`
2764	ac_new_val_w=`echo x $ac_new_val`
2765	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2766	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2767$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2768	  ac_cache_corrupted=:
2769	else
2770	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2771$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2772	  eval $ac_var=\$ac_old_val
2773	fi
2774	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2775$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2776	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2777$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2778      fi;;
2779  esac
2780  # Pass precious variables to config.status.
2781  if test "$ac_new_set" = set; then
2782    case $ac_new_val in
2783    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2784    *) ac_arg=$ac_var=$ac_new_val ;;
2785    esac
2786    case " $ac_configure_args " in
2787      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2788      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2789    esac
2790  fi
2791done
2792if $ac_cache_corrupted; then
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2796$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2797  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2798fi
2799## -------------------- ##
2800## Main body of script. ##
2801## -------------------- ##
2802
2803ac_ext=c
2804ac_cpp='$CPP $CPPFLAGS'
2805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809
2810
2811build_dynobj=no
2812
2813# If $runstatedir isn't set by autoconf (<2.70), set it manually.
2814if test x"$runstatedir" = x; then
2815  runstatedir=$localstatedir/run
2816fi
2817
2818
2819# Don't make duplicate profile path entries for /etc/krb5.conf if
2820# $sysconfdir is /etc
2821if test "$sysconfdir" = /etc; then
2822  SYSCONFCONF=""
2823else
2824  SYSCONFCONF=":${sysconfdir}/krb5.conf"
2825fi
2826
2827
2828ac_reltopdir="."
2829if test ! -r "$srcdir/./aclocal.m4"; then
2830  as_fn_error $? "Configure could not determine the relative topdir" "$LINENO" 5
2831fi
2832ac_topdir=$srcdir/$ac_reltopdir
2833ac_config_fragdir=$ac_reltopdir/config
2834# echo "Looking for $srcdir/$ac_config_fragdir"
2835if test -d "$srcdir/$ac_config_fragdir"; then
2836  ac_aux_dir=
2837for ac_dir in ./config "$srcdir"/./config; do
2838  if test -f "$ac_dir/install-sh"; then
2839    ac_aux_dir=$ac_dir
2840    ac_install_sh="$ac_aux_dir/install-sh -c"
2841    break
2842  elif test -f "$ac_dir/install.sh"; then
2843    ac_aux_dir=$ac_dir
2844    ac_install_sh="$ac_aux_dir/install.sh -c"
2845    break
2846  elif test -f "$ac_dir/shtool"; then
2847    ac_aux_dir=$ac_dir
2848    ac_install_sh="$ac_aux_dir/shtool install -c"
2849    break
2850  fi
2851done
2852if test -z "$ac_aux_dir"; then
2853  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./config \"$srcdir\"/./config" "$LINENO" 5
2854fi
2855
2856# These three variables are undocumented and unsupported,
2857# and are intended to be withdrawn in a future Autoconf release.
2858# They can cause serious problems if a builder's source tree is in a directory
2859# whose full name contains unusual characters.
2860ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2861ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2862ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2863
2864
2865else
2866  as_fn_error $? "can not find config/ directory in $ac_reltopdir" "$LINENO" 5
2867fi
2868
2869
2870
2871
2872krb5_ac_cflags_set=${CFLAGS+set}
2873krb5_ac_cxxflags_set=${CXXFLAGS+set}
2874krb5_ac_warn_cflags_set=${WARN_CFLAGS+set}
2875krb5_ac_warn_cxxflags_set=${WARN_CXXFLAGS+set}
2876
2877ac_ext=c
2878ac_cpp='$CPP $CPPFLAGS'
2879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882if test -n "$ac_tool_prefix"; then
2883  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886$as_echo_n "checking for $ac_word... " >&6; }
2887if ${ac_cv_prog_CC+:} false; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  if test -n "$CC"; then
2891  ac_cv_prog_CC="$CC" # Let the user override the test.
2892else
2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898    for ac_exec_ext in '' $ac_executable_extensions; do
2899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902    break 2
2903  fi
2904done
2905  done
2906IFS=$as_save_IFS
2907
2908fi
2909fi
2910CC=$ac_cv_prog_CC
2911if test -n "$CC"; then
2912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2913$as_echo "$CC" >&6; }
2914else
2915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916$as_echo "no" >&6; }
2917fi
2918
2919
2920fi
2921if test -z "$ac_cv_prog_CC"; then
2922  ac_ct_CC=$CC
2923  # Extract the first word of "gcc", so it can be a program name with args.
2924set dummy gcc; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if ${ac_cv_prog_ac_ct_CC+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$ac_ct_CC"; then
2931  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940    ac_cv_prog_ac_ct_CC="gcc"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951if test -n "$ac_ct_CC"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953$as_echo "$ac_ct_CC" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959  if test "x$ac_ct_CC" = x; then
2960    CC=""
2961  else
2962    case $cross_compiling:$ac_tool_warned in
2963yes:)
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966ac_tool_warned=yes ;;
2967esac
2968    CC=$ac_ct_CC
2969  fi
2970else
2971  CC="$ac_cv_prog_CC"
2972fi
2973
2974if test -z "$CC"; then
2975          if test -n "$ac_tool_prefix"; then
2976    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2977set dummy ${ac_tool_prefix}cc; ac_word=$2
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979$as_echo_n "checking for $ac_word... " >&6; }
2980if ${ac_cv_prog_CC+:} false; then :
2981  $as_echo_n "(cached) " >&6
2982else
2983  if test -n "$CC"; then
2984  ac_cv_prog_CC="$CC" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993    ac_cv_prog_CC="${ac_tool_prefix}cc"
2994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995    break 2
2996  fi
2997done
2998  done
2999IFS=$as_save_IFS
3000
3001fi
3002fi
3003CC=$ac_cv_prog_CC
3004if test -n "$CC"; then
3005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3006$as_echo "$CC" >&6; }
3007else
3008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009$as_echo "no" >&6; }
3010fi
3011
3012
3013  fi
3014fi
3015if test -z "$CC"; then
3016  # Extract the first word of "cc", so it can be a program name with args.
3017set dummy cc; ac_word=$2
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019$as_echo_n "checking for $ac_word... " >&6; }
3020if ${ac_cv_prog_CC+:} false; then :
3021  $as_echo_n "(cached) " >&6
3022else
3023  if test -n "$CC"; then
3024  ac_cv_prog_CC="$CC" # Let the user override the test.
3025else
3026  ac_prog_rejected=no
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  test -z "$as_dir" && as_dir=.
3032    for ac_exec_ext in '' $ac_executable_extensions; do
3033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3035       ac_prog_rejected=yes
3036       continue
3037     fi
3038    ac_cv_prog_CC="cc"
3039    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040    break 2
3041  fi
3042done
3043  done
3044IFS=$as_save_IFS
3045
3046if test $ac_prog_rejected = yes; then
3047  # We found a bogon in the path, so make sure we never use it.
3048  set dummy $ac_cv_prog_CC
3049  shift
3050  if test $# != 0; then
3051    # We chose a different compiler from the bogus one.
3052    # However, it has the same basename, so the bogon will be chosen
3053    # first if we set CC to just the basename; use the full file name.
3054    shift
3055    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3056  fi
3057fi
3058fi
3059fi
3060CC=$ac_cv_prog_CC
3061if test -n "$CC"; then
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063$as_echo "$CC" >&6; }
3064else
3065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
3067fi
3068
3069
3070fi
3071if test -z "$CC"; then
3072  if test -n "$ac_tool_prefix"; then
3073  for ac_prog in cl.exe
3074  do
3075    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078$as_echo_n "checking for $ac_word... " >&6; }
3079if ${ac_cv_prog_CC+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  if test -n "$CC"; then
3083  ac_cv_prog_CC="$CC" # Let the user override the test.
3084else
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088  IFS=$as_save_IFS
3089  test -z "$as_dir" && as_dir=.
3090    for ac_exec_ext in '' $ac_executable_extensions; do
3091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094    break 2
3095  fi
3096done
3097  done
3098IFS=$as_save_IFS
3099
3100fi
3101fi
3102CC=$ac_cv_prog_CC
3103if test -n "$CC"; then
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105$as_echo "$CC" >&6; }
3106else
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109fi
3110
3111
3112    test -n "$CC" && break
3113  done
3114fi
3115if test -z "$CC"; then
3116  ac_ct_CC=$CC
3117  for ac_prog in cl.exe
3118do
3119  # Extract the first word of "$ac_prog", so it can be a program name with args.
3120set dummy $ac_prog; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$ac_ct_CC"; then
3127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  test -z "$as_dir" && as_dir=.
3134    for ac_exec_ext in '' $ac_executable_extensions; do
3135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136    ac_cv_prog_ac_ct_CC="$ac_prog"
3137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138    break 2
3139  fi
3140done
3141  done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147if test -n "$ac_ct_CC"; then
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149$as_echo "$ac_ct_CC" >&6; }
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155
3156  test -n "$ac_ct_CC" && break
3157done
3158
3159  if test "x$ac_ct_CC" = x; then
3160    CC=""
3161  else
3162    case $cross_compiling:$ac_tool_warned in
3163yes:)
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3166ac_tool_warned=yes ;;
3167esac
3168    CC=$ac_ct_CC
3169  fi
3170fi
3171
3172fi
3173
3174
3175test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177as_fn_error $? "no acceptable C compiler found in \$PATH
3178See \`config.log' for more details" "$LINENO" 5; }
3179
3180# Provide some information about the compiler.
3181$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3182set X $ac_compile
3183ac_compiler=$2
3184for ac_option in --version -v -V -qversion; do
3185  { { ac_try="$ac_compiler $ac_option >&5"
3186case "(($ac_try" in
3187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188  *) ac_try_echo=$ac_try;;
3189esac
3190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191$as_echo "$ac_try_echo"; } >&5
3192  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3193  ac_status=$?
3194  if test -s conftest.err; then
3195    sed '10a\
3196... rest of stderr output deleted ...
3197         10q' conftest.err >conftest.er1
3198    cat conftest.er1 >&5
3199  fi
3200  rm -f conftest.er1 conftest.err
3201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202  test $ac_status = 0; }
3203done
3204
3205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206/* end confdefs.h.  */
3207
3208int
3209main ()
3210{
3211
3212  ;
3213  return 0;
3214}
3215_ACEOF
3216ac_clean_files_save=$ac_clean_files
3217ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3218# Try to create an executable without -o first, disregard a.out.
3219# It will help us diagnose broken compilers, and finding out an intuition
3220# of exeext.
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222$as_echo_n "checking whether the C compiler works... " >&6; }
3223ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3224
3225# The possible output files:
3226ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227
3228ac_rmfiles=
3229for ac_file in $ac_files
3230do
3231  case $ac_file in
3232    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3234  esac
3235done
3236rm -f $ac_rmfiles
3237
3238if { { ac_try="$ac_link_default"
3239case "(($ac_try" in
3240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241  *) ac_try_echo=$ac_try;;
3242esac
3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
3245  (eval "$ac_link_default") 2>&5
3246  ac_status=$?
3247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }; then :
3249  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3250# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3251# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3252# so that the user can short-circuit this test for compilers unknown to
3253# Autoconf.
3254for ac_file in $ac_files ''
3255do
3256  test -f "$ac_file" || continue
3257  case $ac_file in
3258    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3259	;;
3260    [ab].out )
3261	# We found the default executable, but exeext='' is most
3262	# certainly right.
3263	break;;
3264    *.* )
3265	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3266	then :; else
3267	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3268	fi
3269	# We set ac_cv_exeext here because the later test for it is not
3270	# safe: cross compilers may not add the suffix if given an `-o'
3271	# argument, so we may need to know it at that point already.
3272	# Even if this section looks crufty: it has the advantage of
3273	# actually working.
3274	break;;
3275    * )
3276	break;;
3277  esac
3278done
3279test "$ac_cv_exeext" = no && ac_cv_exeext=
3280
3281else
3282  ac_file=''
3283fi
3284if test -z "$ac_file"; then :
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287$as_echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292as_fn_error 77 "C compiler cannot create executables
3293See \`config.log' for more details" "$LINENO" 5; }
3294else
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296$as_echo "yes" >&6; }
3297fi
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299$as_echo_n "checking for C compiler default output file name... " >&6; }
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3301$as_echo "$ac_file" >&6; }
3302ac_exeext=$ac_cv_exeext
3303
3304rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3305ac_clean_files=$ac_clean_files_save
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3307$as_echo_n "checking for suffix of executables... " >&6; }
3308if { { ac_try="$ac_link"
3309case "(($ac_try" in
3310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311  *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314$as_echo "$ac_try_echo"; } >&5
3315  (eval "$ac_link") 2>&5
3316  ac_status=$?
3317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318  test $ac_status = 0; }; then :
3319  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3320# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3321# work properly (i.e., refer to `conftest.exe'), while it won't with
3322# `rm'.
3323for ac_file in conftest.exe conftest conftest.*; do
3324  test -f "$ac_file" || continue
3325  case $ac_file in
3326    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3327    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328	  break;;
3329    * ) break;;
3330  esac
3331done
3332else
3333  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3336See \`config.log' for more details" "$LINENO" 5; }
3337fi
3338rm -f conftest conftest$ac_cv_exeext
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340$as_echo "$ac_cv_exeext" >&6; }
3341
3342rm -f conftest.$ac_ext
3343EXEEXT=$ac_cv_exeext
3344ac_exeext=$EXEEXT
3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347#include <stdio.h>
3348int
3349main ()
3350{
3351FILE *f = fopen ("conftest.out", "w");
3352 return ferror (f) || fclose (f) != 0;
3353
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358ac_clean_files="$ac_clean_files conftest.out"
3359# Check that the compiler produces executables we can run.  If not, either
3360# the compiler is broken, or we cross compile.
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3362$as_echo_n "checking whether we are cross compiling... " >&6; }
3363if test "$cross_compiling" != yes; then
3364  { { ac_try="$ac_link"
3365case "(($ac_try" in
3366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367  *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371  (eval "$ac_link") 2>&5
3372  ac_status=$?
3373  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374  test $ac_status = 0; }
3375  if { ac_try='./conftest$ac_cv_exeext'
3376  { { case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382  (eval "$ac_try") 2>&5
3383  ac_status=$?
3384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385  test $ac_status = 0; }; }; then
3386    cross_compiling=no
3387  else
3388    if test "$cross_compiling" = maybe; then
3389	cross_compiling=yes
3390    else
3391	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393as_fn_error $? "cannot run C compiled programs.
3394If you meant to cross compile, use \`--host'.
3395See \`config.log' for more details" "$LINENO" 5; }
3396    fi
3397  fi
3398fi
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3400$as_echo "$cross_compiling" >&6; }
3401
3402rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3403ac_clean_files=$ac_clean_files_save
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3405$as_echo_n "checking for suffix of object files... " >&6; }
3406if ${ac_cv_objext+:} false; then :
3407  $as_echo_n "(cached) " >&6
3408else
3409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420rm -f conftest.o conftest.obj
3421if { { ac_try="$ac_compile"
3422case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$ac_compile") 2>&5
3429  ac_status=$?
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }; then :
3432  for ac_file in conftest.o conftest.obj conftest.*; do
3433  test -f "$ac_file" || continue;
3434  case $ac_file in
3435    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3436    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3437       break;;
3438  esac
3439done
3440else
3441  $as_echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
3444{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446as_fn_error $? "cannot compute suffix of object files: cannot compile
3447See \`config.log' for more details" "$LINENO" 5; }
3448fi
3449rm -f conftest.$ac_cv_objext conftest.$ac_ext
3450fi
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3452$as_echo "$ac_cv_objext" >&6; }
3453OBJEXT=$ac_cv_objext
3454ac_objext=$OBJEXT
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3456$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3457if ${ac_cv_c_compiler_gnu+:} false; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466#ifndef __GNUC__
3467       choke me
3468#endif
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474if ac_fn_c_try_compile "$LINENO"; then :
3475  ac_compiler_gnu=yes
3476else
3477  ac_compiler_gnu=no
3478fi
3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480ac_cv_c_compiler_gnu=$ac_compiler_gnu
3481
3482fi
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3484$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3485if test $ac_compiler_gnu = yes; then
3486  GCC=yes
3487else
3488  GCC=
3489fi
3490ac_test_CFLAGS=${CFLAGS+set}
3491ac_save_CFLAGS=$CFLAGS
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3493$as_echo_n "checking whether $CC accepts -g... " >&6; }
3494if ${ac_cv_prog_cc_g+:} false; then :
3495  $as_echo_n "(cached) " >&6
3496else
3497  ac_save_c_werror_flag=$ac_c_werror_flag
3498   ac_c_werror_flag=yes
3499   ac_cv_prog_cc_g=no
3500   CFLAGS="-g"
3501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512if ac_fn_c_try_compile "$LINENO"; then :
3513  ac_cv_prog_cc_g=yes
3514else
3515  CFLAGS=""
3516      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527if ac_fn_c_try_compile "$LINENO"; then :
3528
3529else
3530  ac_c_werror_flag=$ac_save_c_werror_flag
3531	 CFLAGS="-g"
3532	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534
3535int
3536main ()
3537{
3538
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543if ac_fn_c_try_compile "$LINENO"; then :
3544  ac_cv_prog_cc_g=yes
3545fi
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547fi
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549fi
3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551   ac_c_werror_flag=$ac_save_c_werror_flag
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3554$as_echo "$ac_cv_prog_cc_g" >&6; }
3555if test "$ac_test_CFLAGS" = set; then
3556  CFLAGS=$ac_save_CFLAGS
3557elif test $ac_cv_prog_cc_g = yes; then
3558  if test "$GCC" = yes; then
3559    CFLAGS="-g -O2"
3560  else
3561    CFLAGS="-g"
3562  fi
3563else
3564  if test "$GCC" = yes; then
3565    CFLAGS="-O2"
3566  else
3567    CFLAGS=
3568  fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3571$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3572if ${ac_cv_prog_cc_c89+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  ac_cv_prog_cc_c89=no
3576ac_save_CC=$CC
3577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579#include <stdarg.h>
3580#include <stdio.h>
3581struct stat;
3582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3583struct buf { int x; };
3584FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585static char *e (p, i)
3586     char **p;
3587     int i;
3588{
3589  return p[i];
3590}
3591static char *f (char * (*g) (char **, int), char **p, ...)
3592{
3593  char *s;
3594  va_list v;
3595  va_start (v,p);
3596  s = g (p, va_arg (v,int));
3597  va_end (v);
3598  return s;
3599}
3600
3601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3602   function prototypes and stuff, but not '\xHH' hex character constants.
3603   These don't provoke an error unfortunately, instead are silently treated
3604   as 'x'.  The following induces an error, until -std is added to get
3605   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3606   array size at least.  It's necessary to write '\x00'==0 to get something
3607   that's true only with -std.  */
3608int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611   inside strings and character constants.  */
3612#define FOO(x) 'x'
3613int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615int test (int i, double x);
3616struct s1 {int (*f) (int a);};
3617struct s2 {int (*f) (double a);};
3618int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619int argc;
3620char **argv;
3621int
3622main ()
3623{
3624return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631do
3632  CC="$ac_save_CC $ac_arg"
3633  if ac_fn_c_try_compile "$LINENO"; then :
3634  ac_cv_prog_cc_c89=$ac_arg
3635fi
3636rm -f core conftest.err conftest.$ac_objext
3637  test "x$ac_cv_prog_cc_c89" != "xno" && break
3638done
3639rm -f conftest.$ac_ext
3640CC=$ac_save_CC
3641
3642fi
3643# AC_CACHE_VAL
3644case "x$ac_cv_prog_cc_c89" in
3645  x)
3646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647$as_echo "none needed" >&6; } ;;
3648  xno)
3649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650$as_echo "unsupported" >&6; } ;;
3651  *)
3652    CC="$CC $ac_cv_prog_cc_c89"
3653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655esac
3656if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658fi
3659
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666ac_ext=cpp
3667ac_cpp='$CXXCPP $CPPFLAGS'
3668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3671if test -z "$CXX"; then
3672  if test -n "$CCC"; then
3673    CXX=$CCC
3674  else
3675    if test -n "$ac_tool_prefix"; then
3676  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3677  do
3678    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3679set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681$as_echo_n "checking for $ac_word... " >&6; }
3682if ${ac_cv_prog_CXX+:} false; then :
3683  $as_echo_n "(cached) " >&6
3684else
3685  if test -n "$CXX"; then
3686  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3687else
3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689for as_dir in $PATH
3690do
3691  IFS=$as_save_IFS
3692  test -z "$as_dir" && as_dir=.
3693    for ac_exec_ext in '' $ac_executable_extensions; do
3694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697    break 2
3698  fi
3699done
3700  done
3701IFS=$as_save_IFS
3702
3703fi
3704fi
3705CXX=$ac_cv_prog_CXX
3706if test -n "$CXX"; then
3707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3708$as_echo "$CXX" >&6; }
3709else
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711$as_echo "no" >&6; }
3712fi
3713
3714
3715    test -n "$CXX" && break
3716  done
3717fi
3718if test -z "$CXX"; then
3719  ac_ct_CXX=$CXX
3720  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3721do
3722  # Extract the first word of "$ac_prog", so it can be a program name with args.
3723set dummy $ac_prog; ac_word=$2
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3727  $as_echo_n "(cached) " >&6
3728else
3729  if test -n "$ac_ct_CXX"; then
3730  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735  IFS=$as_save_IFS
3736  test -z "$as_dir" && as_dir=.
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739    ac_cv_prog_ac_ct_CXX="$ac_prog"
3740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741    break 2
3742  fi
3743done
3744  done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3750if test -n "$ac_ct_CXX"; then
3751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3752$as_echo "$ac_ct_CXX" >&6; }
3753else
3754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759  test -n "$ac_ct_CXX" && break
3760done
3761
3762  if test "x$ac_ct_CXX" = x; then
3763    CXX="g++"
3764  else
3765    case $cross_compiling:$ac_tool_warned in
3766yes:)
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3769ac_tool_warned=yes ;;
3770esac
3771    CXX=$ac_ct_CXX
3772  fi
3773fi
3774
3775  fi
3776fi
3777# Provide some information about the compiler.
3778$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3779set X $ac_compile
3780ac_compiler=$2
3781for ac_option in --version -v -V -qversion; do
3782  { { ac_try="$ac_compiler $ac_option >&5"
3783case "(($ac_try" in
3784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785  *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3790  ac_status=$?
3791  if test -s conftest.err; then
3792    sed '10a\
3793... rest of stderr output deleted ...
3794         10q' conftest.err >conftest.er1
3795    cat conftest.er1 >&5
3796  fi
3797  rm -f conftest.er1 conftest.err
3798  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799  test $ac_status = 0; }
3800done
3801
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3803$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3804if ${ac_cv_cxx_compiler_gnu+:} false; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h.  */
3809
3810int
3811main ()
3812{
3813#ifndef __GNUC__
3814       choke me
3815#endif
3816
3817  ;
3818  return 0;
3819}
3820_ACEOF
3821if ac_fn_cxx_try_compile "$LINENO"; then :
3822  ac_compiler_gnu=yes
3823else
3824  ac_compiler_gnu=no
3825fi
3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3828
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3831$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3832if test $ac_compiler_gnu = yes; then
3833  GXX=yes
3834else
3835  GXX=
3836fi
3837ac_test_CXXFLAGS=${CXXFLAGS+set}
3838ac_save_CXXFLAGS=$CXXFLAGS
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3840$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3841if ${ac_cv_prog_cxx_g+:} false; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3845   ac_cxx_werror_flag=yes
3846   ac_cv_prog_cxx_g=no
3847   CXXFLAGS="-g"
3848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859if ac_fn_cxx_try_compile "$LINENO"; then :
3860  ac_cv_prog_cxx_g=yes
3861else
3862  CXXFLAGS=""
3863      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865
3866int
3867main ()
3868{
3869
3870  ;
3871  return 0;
3872}
3873_ACEOF
3874if ac_fn_cxx_try_compile "$LINENO"; then :
3875
3876else
3877  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3878	 CXXFLAGS="-g"
3879	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_cxx_try_compile "$LINENO"; then :
3891  ac_cv_prog_cxx_g=yes
3892fi
3893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894fi
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896fi
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899fi
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3901$as_echo "$ac_cv_prog_cxx_g" >&6; }
3902if test "$ac_test_CXXFLAGS" = set; then
3903  CXXFLAGS=$ac_save_CXXFLAGS
3904elif test $ac_cv_prog_cxx_g = yes; then
3905  if test "$GXX" = yes; then
3906    CXXFLAGS="-g -O2"
3907  else
3908    CXXFLAGS="-g"
3909  fi
3910else
3911  if test "$GXX" = yes; then
3912    CXXFLAGS="-O2"
3913  else
3914    CXXFLAGS=
3915  fi
3916fi
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
3924  cflags_warning_test_flags=
3925    cachevar=`echo "krb5_cv_cc_flag_-Werror=unknown-warning-option" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
3926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=unknown-warning-option" >&5
3927$as_echo_n "checking if C compiler supports -Werror=unknown-warning-option... " >&6; }
3928if eval \${$cachevar+:} false; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  # first try without, then with
3932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934
3935int
3936main ()
3937{
39381;
3939  ;
3940  return 0;
3941}
3942_ACEOF
3943if ac_fn_c_try_compile "$LINENO"; then :
3944  old_cflags="$CFLAGS"
3945     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=unknown-warning-option"
3946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948
3949int
3950main ()
3951{
39521;
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957if ac_fn_c_try_compile "$LINENO"; then :
3958  eval $cachevar=yes
3959else
3960  eval $cachevar=no
3961fi
3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963     CFLAGS="$old_cflags"
3964else
3965  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
3966fi
3967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968fi
3969eval ac_res=\$$cachevar
3970	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3971$as_echo "$ac_res" >&6; }
3972  if eval test '"${'$cachevar'}"' = yes; then
3973    WARN_CFLAGS="$WARN_CFLAGS -Werror=unknown-warning-option"
3974  fi
3975  eval flag_supported='${'$cachevar'}'
3976
3977  if test $flag_supported = yes; then
3978    cflags_warning_test_flags=-Werror=unknown-warning-option
3979  fi
3980
3981ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3987$as_echo_n "checking how to run the C preprocessor... " >&6; }
3988# On Suns, sometimes $CPP names a directory.
3989if test -n "$CPP" && test -d "$CPP"; then
3990  CPP=
3991fi
3992if test -z "$CPP"; then
3993  if ${ac_cv_prog_CPP+:} false; then :
3994  $as_echo_n "(cached) " >&6
3995else
3996      # Double quotes because CPP needs to be expanded
3997    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3998    do
3999      ac_preproc_ok=false
4000for ac_c_preproc_warn_flag in '' yes
4001do
4002  # Use a header file that comes with gcc, so configuring glibc
4003  # with a fresh cross-compiler works.
4004  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005  # <limits.h> exists even on freestanding compilers.
4006  # On the NeXT, cc -E runs the code through the compiler's parser,
4007  # not just through cpp. "Syntax error" is here to catch this case.
4008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h.  */
4010#ifdef __STDC__
4011# include <limits.h>
4012#else
4013# include <assert.h>
4014#endif
4015		     Syntax error
4016_ACEOF
4017if ac_fn_c_try_cpp "$LINENO"; then :
4018
4019else
4020  # Broken: fails on valid input.
4021continue
4022fi
4023rm -f conftest.err conftest.i conftest.$ac_ext
4024
4025  # OK, works on sane cases.  Now check whether nonexistent headers
4026  # can be detected and how.
4027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029#include <ac_nonexistent.h>
4030_ACEOF
4031if ac_fn_c_try_cpp "$LINENO"; then :
4032  # Broken: success on invalid input.
4033continue
4034else
4035  # Passes both tests.
4036ac_preproc_ok=:
4037break
4038fi
4039rm -f conftest.err conftest.i conftest.$ac_ext
4040
4041done
4042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043rm -f conftest.i conftest.err conftest.$ac_ext
4044if $ac_preproc_ok; then :
4045  break
4046fi
4047
4048    done
4049    ac_cv_prog_CPP=$CPP
4050
4051fi
4052  CPP=$ac_cv_prog_CPP
4053else
4054  ac_cv_prog_CPP=$CPP
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4057$as_echo "$CPP" >&6; }
4058ac_preproc_ok=false
4059for ac_c_preproc_warn_flag in '' yes
4060do
4061  # Use a header file that comes with gcc, so configuring glibc
4062  # with a fresh cross-compiler works.
4063  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064  # <limits.h> exists even on freestanding compilers.
4065  # On the NeXT, cc -E runs the code through the compiler's parser,
4066  # not just through cpp. "Syntax error" is here to catch this case.
4067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069#ifdef __STDC__
4070# include <limits.h>
4071#else
4072# include <assert.h>
4073#endif
4074		     Syntax error
4075_ACEOF
4076if ac_fn_c_try_cpp "$LINENO"; then :
4077
4078else
4079  # Broken: fails on valid input.
4080continue
4081fi
4082rm -f conftest.err conftest.i conftest.$ac_ext
4083
4084  # OK, works on sane cases.  Now check whether nonexistent headers
4085  # can be detected and how.
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088#include <ac_nonexistent.h>
4089_ACEOF
4090if ac_fn_c_try_cpp "$LINENO"; then :
4091  # Broken: success on invalid input.
4092continue
4093else
4094  # Passes both tests.
4095ac_preproc_ok=:
4096break
4097fi
4098rm -f conftest.err conftest.i conftest.$ac_ext
4099
4100done
4101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4102rm -f conftest.i conftest.err conftest.$ac_ext
4103if $ac_preproc_ok; then :
4104
4105else
4106  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4108as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4109See \`config.log' for more details" "$LINENO" 5; }
4110fi
4111
4112ac_ext=c
4113ac_cpp='$CPP $CPPFLAGS'
4114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118
4119test "$program_prefix" != NONE &&
4120  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4121# Use a double $ so make ignores it.
4122test "$program_suffix" != NONE &&
4123  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4124# Double any \ or $.
4125# By default was `s,x,x', remove it if useless.
4126ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4127program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4128
4129# Make sure we can run config.sub.
4130$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4131  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4134$as_echo_n "checking build system type... " >&6; }
4135if ${ac_cv_build+:} false; then :
4136  $as_echo_n "(cached) " >&6
4137else
4138  ac_build_alias=$build_alias
4139test "x$ac_build_alias" = x &&
4140  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4141test "x$ac_build_alias" = x &&
4142  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4143ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4144  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4145
4146fi
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4148$as_echo "$ac_cv_build" >&6; }
4149case $ac_cv_build in
4150*-*-*) ;;
4151*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4152esac
4153build=$ac_cv_build
4154ac_save_IFS=$IFS; IFS='-'
4155set x $ac_cv_build
4156shift
4157build_cpu=$1
4158build_vendor=$2
4159shift; shift
4160# Remember, the first character of IFS is used to create $*,
4161# except with old shells:
4162build_os=$*
4163IFS=$ac_save_IFS
4164case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4165
4166
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4168$as_echo_n "checking host system type... " >&6; }
4169if ${ac_cv_host+:} false; then :
4170  $as_echo_n "(cached) " >&6
4171else
4172  if test "x$host_alias" = x; then
4173  ac_cv_host=$ac_cv_build
4174else
4175  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4176    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4177fi
4178
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4181$as_echo "$ac_cv_host" >&6; }
4182case $ac_cv_host in
4183*-*-*) ;;
4184*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4185esac
4186host=$ac_cv_host
4187ac_save_IFS=$IFS; IFS='-'
4188set x $ac_cv_host
4189shift
4190host_cpu=$1
4191host_vendor=$2
4192shift; shift
4193# Remember, the first character of IFS is used to create $*,
4194# except with old shells:
4195host_os=$*
4196IFS=$ac_save_IFS
4197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4198
4199
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4201$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4202if ${ac_cv_path_SED+:} false; then :
4203  $as_echo_n "(cached) " >&6
4204else
4205            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4206     for ac_i in 1 2 3 4 5 6 7; do
4207       ac_script="$ac_script$as_nl$ac_script"
4208     done
4209     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4210     { ac_script=; unset ac_script;}
4211     if test -z "$SED"; then
4212  ac_path_SED_found=false
4213  # Loop through the user's path and test for each of PROGNAME-LIST
4214  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219    for ac_prog in sed gsed; do
4220    for ac_exec_ext in '' $ac_executable_extensions; do
4221      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4222      as_fn_executable_p "$ac_path_SED" || continue
4223# Check for GNU ac_path_SED and select it if it is found.
4224  # Check for GNU $ac_path_SED
4225case `"$ac_path_SED" --version 2>&1` in
4226*GNU*)
4227  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4228*)
4229  ac_count=0
4230  $as_echo_n 0123456789 >"conftest.in"
4231  while :
4232  do
4233    cat "conftest.in" "conftest.in" >"conftest.tmp"
4234    mv "conftest.tmp" "conftest.in"
4235    cp "conftest.in" "conftest.nl"
4236    $as_echo '' >> "conftest.nl"
4237    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239    as_fn_arith $ac_count + 1 && ac_count=$as_val
4240    if test $ac_count -gt ${ac_path_SED_max-0}; then
4241      # Best one so far, save it but keep looking for a better one
4242      ac_cv_path_SED="$ac_path_SED"
4243      ac_path_SED_max=$ac_count
4244    fi
4245    # 10*(2^10) chars as input seems more than enough
4246    test $ac_count -gt 10 && break
4247  done
4248  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249esac
4250
4251      $ac_path_SED_found && break 3
4252    done
4253  done
4254  done
4255IFS=$as_save_IFS
4256  if test -z "$ac_cv_path_SED"; then
4257    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4258  fi
4259else
4260  ac_cv_path_SED=$SED
4261fi
4262
4263fi
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4265$as_echo "$ac_cv_path_SED" >&6; }
4266 SED="$ac_cv_path_SED"
4267  rm -f conftest.sed
4268
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4270$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4271if ${ac_cv_path_GREP+:} false; then :
4272  $as_echo_n "(cached) " >&6
4273else
4274  if test -z "$GREP"; then
4275  ac_path_GREP_found=false
4276  # Loop through the user's path and test for each of PROGNAME-LIST
4277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282    for ac_prog in grep ggrep; do
4283    for ac_exec_ext in '' $ac_executable_extensions; do
4284      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4285      as_fn_executable_p "$ac_path_GREP" || continue
4286# Check for GNU ac_path_GREP and select it if it is found.
4287  # Check for GNU $ac_path_GREP
4288case `"$ac_path_GREP" --version 2>&1` in
4289*GNU*)
4290  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4291*)
4292  ac_count=0
4293  $as_echo_n 0123456789 >"conftest.in"
4294  while :
4295  do
4296    cat "conftest.in" "conftest.in" >"conftest.tmp"
4297    mv "conftest.tmp" "conftest.in"
4298    cp "conftest.in" "conftest.nl"
4299    $as_echo 'GREP' >> "conftest.nl"
4300    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302    as_fn_arith $ac_count + 1 && ac_count=$as_val
4303    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4304      # Best one so far, save it but keep looking for a better one
4305      ac_cv_path_GREP="$ac_path_GREP"
4306      ac_path_GREP_max=$ac_count
4307    fi
4308    # 10*(2^10) chars as input seems more than enough
4309    test $ac_count -gt 10 && break
4310  done
4311  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312esac
4313
4314      $ac_path_GREP_found && break 3
4315    done
4316  done
4317  done
4318IFS=$as_save_IFS
4319  if test -z "$ac_cv_path_GREP"; then
4320    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4321  fi
4322else
4323  ac_cv_path_GREP=$GREP
4324fi
4325
4326fi
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4328$as_echo "$ac_cv_path_GREP" >&6; }
4329 GREP="$ac_cv_path_GREP"
4330
4331
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4333$as_echo_n "checking for egrep... " >&6; }
4334if ${ac_cv_path_EGREP+:} false; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4338   then ac_cv_path_EGREP="$GREP -E"
4339   else
4340     if test -z "$EGREP"; then
4341  ac_path_EGREP_found=false
4342  # Loop through the user's path and test for each of PROGNAME-LIST
4343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348    for ac_prog in egrep; do
4349    for ac_exec_ext in '' $ac_executable_extensions; do
4350      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4351      as_fn_executable_p "$ac_path_EGREP" || continue
4352# Check for GNU ac_path_EGREP and select it if it is found.
4353  # Check for GNU $ac_path_EGREP
4354case `"$ac_path_EGREP" --version 2>&1` in
4355*GNU*)
4356  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4357*)
4358  ac_count=0
4359  $as_echo_n 0123456789 >"conftest.in"
4360  while :
4361  do
4362    cat "conftest.in" "conftest.in" >"conftest.tmp"
4363    mv "conftest.tmp" "conftest.in"
4364    cp "conftest.in" "conftest.nl"
4365    $as_echo 'EGREP' >> "conftest.nl"
4366    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368    as_fn_arith $ac_count + 1 && ac_count=$as_val
4369    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4370      # Best one so far, save it but keep looking for a better one
4371      ac_cv_path_EGREP="$ac_path_EGREP"
4372      ac_path_EGREP_max=$ac_count
4373    fi
4374    # 10*(2^10) chars as input seems more than enough
4375    test $ac_count -gt 10 && break
4376  done
4377  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378esac
4379
4380      $ac_path_EGREP_found && break 3
4381    done
4382  done
4383  done
4384IFS=$as_save_IFS
4385  if test -z "$ac_cv_path_EGREP"; then
4386    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4387  fi
4388else
4389  ac_cv_path_EGREP=$EGREP
4390fi
4391
4392   fi
4393fi
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4395$as_echo "$ac_cv_path_EGREP" >&6; }
4396 EGREP="$ac_cv_path_EGREP"
4397
4398
4399 EXTRA_FILES=""
4400
4401
4402$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4403
4404
4405$as_echo "#define __STDC_WANT_LIB_EXT1__ 1" >>confdefs.h
4406
4407
4408if test $ac_cv_c_compiler_gnu = yes ; then
4409     HAVE_GCC=yes
4410     else HAVE_GCC=
4411fi
4412
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU linker" >&5
4414$as_echo_n "checking for GNU linker... " >&6; }
4415if ${krb5_cv_prog_gnu_ld+:} false; then :
4416  $as_echo_n "(cached) " >&6
4417else
4418  krb5_cv_prog_gnu_ld=no
4419if test "$GCC" = yes; then
4420  if { ac_try='$CC -Wl,-v 2>&1 			| grep "GNU ld" > /dev/null'
4421  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4422  (eval $ac_try) 2>&5
4423  ac_status=$?
4424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425  test $ac_status = 0; }; }; then
4426    krb5_cv_prog_gnu_ld=yes
4427  fi
4428fi
4429fi
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_prog_gnu_ld" >&5
4431$as_echo "$krb5_cv_prog_gnu_ld" >&6; }
4432
4433# Check whether --with-size-optimizations was given.
4434if test "${with_size_optimizations+set}" = set; then :
4435  withval=$with_size_optimizations;
4436else
4437  withval=no
4438fi
4439
4440if test "$withval" = yes; then
4441
4442$as_echo "#define CONFIG_SMALL 1" >>confdefs.h
4443
4444fi
4445# -Wno-long-long, if needed, for k5-platform.h without inttypes.h etc.
4446extra_gcc_warn_opts="-Wall -Wcast-align -Wshadow"
4447# -Wmissing-prototypes
4448if test "$GCC" = yes ; then
4449  # Putting this here means we get -Os after -O2, which works.
4450  if test "$with_size_optimizations" = yes && test "x$krb5_ac_cflags_set" != xset; then
4451    { $as_echo "$as_me:${as_lineno-$LINENO}: adding -Os optimization option" >&5
4452$as_echo "$as_me: adding -Os optimization option" >&6;}
4453    case "$CFLAGS" in
4454      "-g -O2") CFLAGS="-g -Os" ;;
4455      "-O2")    CFLAGS="-Os" ;;
4456      *)        CFLAGS="$CFLAGS -Os" ;;
4457    esac
4458  fi
4459  if test "x$krb5_ac_warn_cflags_set" = xset ; then
4460    { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra gcc warning flags because WARN_CFLAGS was set" >&5
4461$as_echo "$as_me: not adding extra gcc warning flags because WARN_CFLAGS was set" >&6;}
4462  else
4463    { $as_echo "$as_me:${as_lineno-$LINENO}: adding extra warning flags for gcc" >&5
4464$as_echo "$as_me: adding extra warning flags for gcc" >&6;}
4465    WARN_CFLAGS="$WARN_CFLAGS $extra_gcc_warn_opts -Wmissing-prototypes"
4466    if test "`uname -s`" = Darwin ; then
4467      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Darwin" >&5
4468$as_echo "$as_me: skipping pedantic warnings on Darwin" >&6;}
4469    elif test "`uname -s`" = Linux ; then
4470      { $as_echo "$as_me:${as_lineno-$LINENO}: skipping pedantic warnings on Linux" >&5
4471$as_echo "$as_me: skipping pedantic warnings on Linux" >&6;}
4472    else
4473      WARN_CFLAGS="$WARN_CFLAGS -pedantic"
4474    fi
4475    if test "$ac_cv_cxx_compiler_gnu" = yes; then
4476      if test "x$krb5_ac_warn_cxxflags_set" = xset ; then
4477        { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&5
4478$as_echo "$as_me: not adding extra g++ warnings because WARN_CXXFLAGS was set" >&6;}
4479      else
4480        { $as_echo "$as_me:${as_lineno-$LINENO}: adding extra warning flags for g++" >&5
4481$as_echo "$as_me: adding extra warning flags for g++" >&6;}
4482        WARN_CXXFLAGS="$WARN_CXXFLAGS $extra_gcc_warn_opts"
4483      fi
4484    fi
4485    # Currently, G++ does not support -Wno-format-zero-length.
4486      cachevar=`echo "krb5_cv_cc_flag_-Wno-format-zero-length" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
4487  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Wno-format-zero-length" >&5
4488$as_echo_n "checking if C compiler supports -Wno-format-zero-length... " >&6; }
4489if eval \${$cachevar+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  # first try without, then with
4493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h.  */
4495
4496int
4497main ()
4498{
44991;
4500  ;
4501  return 0;
4502}
4503_ACEOF
4504if ac_fn_c_try_compile "$LINENO"; then :
4505  old_cflags="$CFLAGS"
4506     CFLAGS="$CFLAGS $cflags_warning_test_flags -Wno-format-zero-length"
4507     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509
4510int
4511main ()
4512{
45131;
4514  ;
4515  return 0;
4516}
4517_ACEOF
4518if ac_fn_c_try_compile "$LINENO"; then :
4519  eval $cachevar=yes
4520else
4521  eval $cachevar=no
4522fi
4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524     CFLAGS="$old_cflags"
4525else
4526  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529fi
4530eval ac_res=\$$cachevar
4531	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4532$as_echo "$ac_res" >&6; }
4533  if eval test '"${'$cachevar'}"' = yes; then
4534    WARN_CFLAGS="$WARN_CFLAGS -Wno-format-zero-length"
4535  fi
4536  eval flag_supported='${'$cachevar'}'
4537
4538    # Other flags here may not be supported on some versions of
4539    # gcc that people want to use.
4540    for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof error=uninitialized no-maybe-uninitialized error=pointer-arith error=int-conversion error=incompatible-pointer-types error=discarded-qualifiers error=implicit-int ; do
4541        cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
4542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
4543$as_echo_n "checking if C compiler supports -W$flag... " >&6; }
4544if eval \${$cachevar+:} false; then :
4545  $as_echo_n "(cached) " >&6
4546else
4547  # first try without, then with
4548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550
4551int
4552main ()
4553{
45541;
4555  ;
4556  return 0;
4557}
4558_ACEOF
4559if ac_fn_c_try_compile "$LINENO"; then :
4560  old_cflags="$CFLAGS"
4561     CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag"
4562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563/* end confdefs.h.  */
4564
4565int
4566main ()
4567{
45681;
4569  ;
4570  return 0;
4571}
4572_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then :
4574  eval $cachevar=yes
4575else
4576  eval $cachevar=no
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579     CFLAGS="$old_cflags"
4580else
4581  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4582fi
4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584fi
4585eval ac_res=\$$cachevar
4586	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4587$as_echo "$ac_res" >&6; }
4588  if eval test '"${'$cachevar'}"' = yes; then
4589    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
4590  fi
4591  eval flag_supported='${'$cachevar'}'
4592
4593    done
4594    #  old-style-definition? generates many, many warnings
4595    #
4596    # Warnings that we'd like to turn into errors on versions of gcc
4597    # that support promoting only specific warnings to errors, but
4598    # we'll take as warnings on older compilers.  (If such a warning
4599    # is added after the -Werror=foo feature, you can just put
4600    # error=foo in the above list, and skip the test for the
4601    # warning-only form.)  At least in some versions, -Werror= doesn't
4602    # seem to make the conditions actual errors, but still issues
4603    # warnings; I guess we'll take what we can get.
4604    #
4605    # We're currently targeting C89+, not C99, so disallow some
4606    # constructs.
4607    for flag in declaration-after-statement ; do
4608        cachevar=`echo "krb5_cv_cc_flag_-Werror=$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=$flag" >&5
4610$as_echo_n "checking if C compiler supports -Werror=$flag... " >&6; }
4611if eval \${$cachevar+:} false; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  # first try without, then with
4615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h.  */
4617
4618int
4619main ()
4620{
46211;
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626if ac_fn_c_try_compile "$LINENO"; then :
4627  old_cflags="$CFLAGS"
4628     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=$flag"
4629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h.  */
4631
4632int
4633main ()
4634{
46351;
4636  ;
4637  return 0;
4638}
4639_ACEOF
4640if ac_fn_c_try_compile "$LINENO"; then :
4641  eval $cachevar=yes
4642else
4643  eval $cachevar=no
4644fi
4645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646     CFLAGS="$old_cflags"
4647else
4648  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651fi
4652eval ac_res=\$$cachevar
4653	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4654$as_echo "$ac_res" >&6; }
4655  if eval test '"${'$cachevar'}"' = yes; then
4656    WARN_CFLAGS="$WARN_CFLAGS -Werror=$flag"
4657  fi
4658  eval flag_supported='${'$cachevar'}'
4659
4660      if test "$flag_supported" = no; then
4661          cachevar=`echo "krb5_cv_cc_flag_-W$flag" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
4662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -W$flag" >&5
4663$as_echo_n "checking if C compiler supports -W$flag... " >&6; }
4664if eval \${$cachevar+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  # first try without, then with
4668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h.  */
4670
4671int
4672main ()
4673{
46741;
4675  ;
4676  return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680  old_cflags="$CFLAGS"
4681     CFLAGS="$CFLAGS $cflags_warning_test_flags -W$flag"
4682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683/* end confdefs.h.  */
4684
4685int
4686main ()
4687{
46881;
4689  ;
4690  return 0;
4691}
4692_ACEOF
4693if ac_fn_c_try_compile "$LINENO"; then :
4694  eval $cachevar=yes
4695else
4696  eval $cachevar=no
4697fi
4698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699     CFLAGS="$old_cflags"
4700else
4701  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4702fi
4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704fi
4705eval ac_res=\$$cachevar
4706	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4707$as_echo "$ac_res" >&6; }
4708  if eval test '"${'$cachevar'}"' = yes; then
4709    WARN_CFLAGS="$WARN_CFLAGS -W$flag"
4710  fi
4711  eval flag_supported='${'$cachevar'}'
4712
4713      fi
4714    done
4715    # We require function declarations now.
4716    #
4717    # In some compiler versions -- e.g., "gcc version 4.2.1 (Apple
4718    # Inc. build 5664)" -- the -Werror- option works, but the -Werror=
4719    # version doesn't cause implicitly declared functions to be
4720    # flagged as errors.  If neither works, -Wall implies
4721    # -Wimplicit-function-declaration so don't bother.
4722      cachevar=`echo "krb5_cv_cc_flag_-Werror-implicit-function-declaration" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror-implicit-function-declaration" >&5
4724$as_echo_n "checking if C compiler supports -Werror-implicit-function-declaration... " >&6; }
4725if eval \${$cachevar+:} false; then :
4726  $as_echo_n "(cached) " >&6
4727else
4728  # first try without, then with
4729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h.  */
4731
4732int
4733main ()
4734{
47351;
4736  ;
4737  return 0;
4738}
4739_ACEOF
4740if ac_fn_c_try_compile "$LINENO"; then :
4741  old_cflags="$CFLAGS"
4742     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror-implicit-function-declaration"
4743     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744/* end confdefs.h.  */
4745
4746int
4747main ()
4748{
47491;
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755  eval $cachevar=yes
4756else
4757  eval $cachevar=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760     CFLAGS="$old_cflags"
4761else
4762  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766eval ac_res=\$$cachevar
4767	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4768$as_echo "$ac_res" >&6; }
4769  if eval test '"${'$cachevar'}"' = yes; then
4770    WARN_CFLAGS="$WARN_CFLAGS -Werror-implicit-function-declaration"
4771  fi
4772  eval flag_supported='${'$cachevar'}'
4773
4774    if test "implicit-function-declaration_supported" = no; then
4775        cachevar=`echo "krb5_cv_cc_flag_-Werror=implicit-function-declaration" | sed -e s/=/_eq_/g -e s/-/_dash_/g -e s/[^a-zA-Z0-9_]/_/g`
4776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports -Werror=implicit-function-declaration" >&5
4777$as_echo_n "checking if C compiler supports -Werror=implicit-function-declaration... " >&6; }
4778if eval \${$cachevar+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  # first try without, then with
4782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783/* end confdefs.h.  */
4784
4785int
4786main ()
4787{
47881;
4789  ;
4790  return 0;
4791}
4792_ACEOF
4793if ac_fn_c_try_compile "$LINENO"; then :
4794  old_cflags="$CFLAGS"
4795     CFLAGS="$CFLAGS $cflags_warning_test_flags -Werror=implicit-function-declaration"
4796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798
4799int
4800main ()
4801{
48021;
4803  ;
4804  return 0;
4805}
4806_ACEOF
4807if ac_fn_c_try_compile "$LINENO"; then :
4808  eval $cachevar=yes
4809else
4810  eval $cachevar=no
4811fi
4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813     CFLAGS="$old_cflags"
4814else
4815  as_fn_error $? "compiling simple test program with $CFLAGS failed" "$LINENO" 5
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
4819eval ac_res=\$$cachevar
4820	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4821$as_echo "$ac_res" >&6; }
4822  if eval test '"${'$cachevar'}"' = yes; then
4823    WARN_CFLAGS="$WARN_CFLAGS -Werror=implicit-function-declaration"
4824  fi
4825  eval flag_supported='${'$cachevar'}'
4826
4827    fi
4828    #
4829  fi
4830  if test "`uname -s`" = Darwin ; then
4831    # Someday this should be a feature test.
4832    # One current (Jaguar = OS 10.2) problem:
4833    # Archive library with foo.o undef sym X and bar.o common sym X,
4834    # if foo.o is pulled in at link time, bar.o may not be, causing
4835    # the linker to complain.
4836    # Dynamic library problems too?
4837    case "$CC $CFLAGS" in
4838    *-fcommon*) ;; # why someone would do this, I don't know
4839    *-fno-common*) ;; # okay, they're already doing the right thing
4840    *)
4841      { $as_echo "$as_me:${as_lineno-$LINENO}: disabling the use of common storage on Darwin" >&5
4842$as_echo "$as_me: disabling the use of common storage on Darwin" >&6;}
4843      CFLAGS="$CFLAGS -fno-common"
4844      ;;
4845    esac
4846    case "$LD $LDFLAGS" in
4847    *-Wl,-search_paths_first*) ;;
4848    *) LDFLAGS="${LDFLAGS} -Wl,-search_paths_first" ;;
4849    esac
4850  fi
4851else
4852  if test "`uname -s`" = AIX ; then
4853    # Using AIX but not GCC, assume native compiler.
4854    # The native compiler appears not to give a nonzero exit
4855    # status for certain classes of errors, like missing arguments
4856    # in function calls.  Let's try to fix that with -qhalt=e.
4857    case "$CC $CFLAGS" in
4858      *-qhalt=*) ;;
4859      *)
4860	CFLAGS="$CFLAGS -qhalt=e"
4861	{ $as_echo "$as_me:${as_lineno-$LINENO}: adding -qhalt=e for better error reporting" >&5
4862$as_echo "$as_me: adding -qhalt=e for better error reporting" >&6;}
4863	;;
4864    esac
4865    # Also, the optimizer isn't turned on by default, which means
4866    # the static inline functions get left in random object files,
4867    # leading to references to pthread_mutex_lock from anything that
4868    # includes k5-int.h whether it uses threads or not.
4869    case "$CC $CFLAGS" in
4870      *-O*) ;;
4871      *)
4872	CFLAGS="$CFLAGS -O"
4873	{ $as_echo "$as_me:${as_lineno-$LINENO}: adding -O for inline thread-support function elimination" >&5
4874$as_echo "$as_me: adding -O for inline thread-support function elimination" >&6;}
4875	;;
4876    esac
4877  fi
4878  if test "`uname -s`" = SunOS ; then
4879    # Using Solaris but not GCC, assume Sunsoft compiler.
4880    # We have some error-out-on-warning options available.
4881    # Sunsoft 12 compiler defaults to -xc99=all, it appears, so "inline"
4882    # works, but it also means that declaration-in-code warnings won't
4883    # be issued.
4884    # -v -fd -errwarn=E_DECLARATION_IN_CODE ...
4885    if test "x$krb5_ac_warn_cflags_set" = xset ; then
4886      { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CFLAGS was set" >&5
4887$as_echo "$as_me: not adding extra warning flags because WARN_CFLAGS was set" >&6;}
4888    else
4889      WARN_CFLAGS="-errtags=yes -errwarn=E_BAD_PTR_INT_COMBINATION,E_BAD_PTR_INT_COMB_ARG,E_PTR_TO_VOID_IN_ARITHMETIC,E_NO_IMPLICIT_DECL_ALLOWED,E_ATTRIBUTE_PARAM_UNDEFINED"
4890    fi
4891    if test "x$krb5_ac_warn_cxxflags_set" = xset ; then
4892      { $as_echo "$as_me:${as_lineno-$LINENO}: not adding extra warning flags because WARN_CXXFLAGS was set" >&5
4893$as_echo "$as_me: not adding extra warning flags because WARN_CXXFLAGS was set" >&6;}
4894    else
4895      WARN_CXXFLAGS="-errtags=yes +w +w2 -xport64"
4896    fi
4897  fi
4898fi
4899
4900
4901
4902if test -z "$LD" ; then LD=$CC; fi
4903
4904
4905
4906# Check whether --with-system-et was given.
4907if test "${with_system_et+set}" = set; then :
4908  withval=$with_system_et;
4909fi
4910
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which version of com_err to use" >&5
4912$as_echo_n "checking which version of com_err to use... " >&6; }
4913if test "x$with_system_et" = xyes ; then
4914  # This will be changed to "intlsys" if textdomain support is present.
4915  COM_ERR_VERSION=sys
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
4917$as_echo "system" >&6; }
4918else
4919  COM_ERR_VERSION=k5
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5" >&5
4921$as_echo "krb5" >&6; }
4922fi
4923if test $COM_ERR_VERSION = sys; then
4924  # check for various functions we need
4925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_error_table in -lcom_err" >&5
4926$as_echo_n "checking for add_error_table in -lcom_err... " >&6; }
4927if ${ac_cv_lib_com_err_add_error_table+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  ac_check_lib_save_LIBS=$LIBS
4931LIBS="-lcom_err  $LIBS"
4932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933/* end confdefs.h.  */
4934
4935/* Override any GCC internal prototype to avoid an error.
4936   Use char because int might match the return type of a GCC
4937   builtin and then its argument prototype would still apply.  */
4938#ifdef __cplusplus
4939extern "C"
4940#endif
4941char add_error_table ();
4942int
4943main ()
4944{
4945return add_error_table ();
4946  ;
4947  return 0;
4948}
4949_ACEOF
4950if ac_fn_c_try_link "$LINENO"; then :
4951  ac_cv_lib_com_err_add_error_table=yes
4952else
4953  ac_cv_lib_com_err_add_error_table=no
4954fi
4955rm -f core conftest.err conftest.$ac_objext \
4956    conftest$ac_exeext conftest.$ac_ext
4957LIBS=$ac_check_lib_save_LIBS
4958fi
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_add_error_table" >&5
4960$as_echo "$ac_cv_lib_com_err_add_error_table" >&6; }
4961if test "x$ac_cv_lib_com_err_add_error_table" = xyes; then :
4962  :
4963else
4964  as_fn_error $? "cannot find add_error_table in com_err library" "$LINENO" 5
4965fi
4966
4967  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove_error_table in -lcom_err" >&5
4968$as_echo_n "checking for remove_error_table in -lcom_err... " >&6; }
4969if ${ac_cv_lib_com_err_remove_error_table+:} false; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  ac_check_lib_save_LIBS=$LIBS
4973LIBS="-lcom_err  $LIBS"
4974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976
4977/* Override any GCC internal prototype to avoid an error.
4978   Use char because int might match the return type of a GCC
4979   builtin and then its argument prototype would still apply.  */
4980#ifdef __cplusplus
4981extern "C"
4982#endif
4983char remove_error_table ();
4984int
4985main ()
4986{
4987return remove_error_table ();
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992if ac_fn_c_try_link "$LINENO"; then :
4993  ac_cv_lib_com_err_remove_error_table=yes
4994else
4995  ac_cv_lib_com_err_remove_error_table=no
4996fi
4997rm -f core conftest.err conftest.$ac_objext \
4998    conftest$ac_exeext conftest.$ac_ext
4999LIBS=$ac_check_lib_save_LIBS
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_remove_error_table" >&5
5002$as_echo "$ac_cv_lib_com_err_remove_error_table" >&6; }
5003if test "x$ac_cv_lib_com_err_remove_error_table" = xyes; then :
5004  :
5005else
5006  as_fn_error $? "cannot find remove_error_table in com_err library" "$LINENO" 5
5007fi
5008
5009  # make sure compile_et provides "et_foo" name
5010  cat >> conf$$e.et <<EOF
5011error_table foo
5012error_code ERR_FOO, "foo"
5013end
5014EOF
5015  for ac_prog in compile_et
5016do
5017  # Extract the first word of "$ac_prog", so it can be a program name with args.
5018set dummy $ac_prog; ac_word=$2
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020$as_echo_n "checking for $ac_word... " >&6; }
5021if ${ac_cv_prog_compile_et+:} false; then :
5022  $as_echo_n "(cached) " >&6
5023else
5024  if test -n "$compile_et"; then
5025  ac_cv_prog_compile_et="$compile_et" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030  IFS=$as_save_IFS
5031  test -z "$as_dir" && as_dir=.
5032    for ac_exec_ext in '' $ac_executable_extensions; do
5033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034    ac_cv_prog_compile_et="$ac_prog"
5035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036    break 2
5037  fi
5038done
5039  done
5040IFS=$as_save_IFS
5041
5042fi
5043fi
5044compile_et=$ac_cv_prog_compile_et
5045if test -n "$compile_et"; then
5046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_et" >&5
5047$as_echo "$compile_et" >&6; }
5048else
5049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050$as_echo "no" >&6; }
5051fi
5052
5053
5054  test -n "$compile_et" && break
5055done
5056test -n "$compile_et" || compile_et="false"
5057
5058  if test "$compile_et" = false; then
5059    as_fn_error $? "cannot find compile_et" "$LINENO" 5
5060  fi
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et is useful" >&5
5062$as_echo_n "checking whether compile_et is useful... " >&6; }
5063if ${krb5_cv_compile_et_useful+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066
5067  if compile_et conf$$e.et >/dev/null 2>&1 ; then true ; else
5068    as_fn_error $? "execution failed" "$LINENO" 5
5069  fi
5070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072#include "conf$$e.h"
5073
5074int
5075main ()
5076{
5077 &et_foo_error_table;
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_compile "$LINENO"; then :
5083  :
5084else
5085  as_fn_error $? "cannot use et_foo_error_table" "$LINENO" 5
5086fi
5087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088  # Anything else we need to test for?
5089  rm -f conf$$e.c conf$$e.h
5090  krb5_cv_compile_et_useful=yes
5091
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_useful" >&5
5094$as_echo "$krb5_cv_compile_et_useful" >&6; }
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compile_et supports --textdomain" >&5
5096$as_echo_n "checking whether compile_et supports --textdomain... " >&6; }
5097if ${krb5_cv_compile_et_textdomain+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100
5101  krb5_cv_compile_et_textdomain=no
5102  if compile_et --textdomain=xyzw conf$$e.et >/dev/null 2>&1 ; then
5103    if grep -q xyzw conf$$e.c; then
5104      krb5_cv_compile_et_textdomain=yes
5105    fi
5106  fi
5107  rm -f conf$$e.c conf$$e.h
5108
5109fi
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_compile_et_textdomain" >&5
5111$as_echo "$krb5_cv_compile_et_textdomain" >&6; }
5112  if test "$krb5_cv_compile_et_textdomain" = yes; then
5113    COM_ERR_VERSION=intlsys
5114  fi
5115  rm -f conf$$e.et
5116fi
5117
5118if test "$COM_ERR_VERSION" = k5 -o "$COM_ERR_VERSION" = intlsys; then
5119
5120$as_echo "#define HAVE_COM_ERR_INTL 1" >>confdefs.h
5121
5122fi
5123
5124
5125# Check whether --with-system-ss was given.
5126if test "${with_system_ss+set}" = set; then :
5127  withval=$with_system_ss;
5128fi
5129
5130
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which version of subsystem package to use" >&5
5132$as_echo_n "checking which version of subsystem package to use... " >&6; }
5133if test "x$with_system_ss" = xyes ; then
5134  SS_VERSION=sys
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
5136$as_echo "system" >&6; }
5137  # todo: check for various libraries we might need
5138  # in the meantime...
5139  test "x${SS_LIB+set}" = xset || SS_LIB=-lss
5140  old_LIBS="$LIBS"
5141  LIBS="$LIBS $SS_LIB"
5142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system ss package works" >&5
5143$as_echo_n "checking whether system ss package works... " >&6; }
5144if ${krb5_cv_system_ss_okay+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147
5148  if test "$cross_compiling" = yes; then :
5149  krb5_cv_system_ss_okay="assumed"
5150else
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153
5154#include <ss/ss.h>
5155int main(int argc, char *argv[]) {
5156  if (argc == 42) {
5157    int i, err;
5158    i = ss_create_invocation("foo","foo","",0,&err);
5159    ss_listen(i);
5160  }
5161  return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_run "$LINENO"; then :
5165  krb5_cv_system_ss_okay=yes
5166else
5167  as_fn_error $? "cannot run test program" "$LINENO" 5
5168fi
5169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5170  conftest.$ac_objext conftest.beam conftest.$ac_ext
5171fi
5172
5173fi
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_system_ss_okay" >&5
5175$as_echo "$krb5_cv_system_ss_okay" >&6; }
5176  LIBS="$old_LIBS"
5177
5178
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ss_execute_command needs a prototype provided" >&5
5180$as_echo_n "checking if ss_execute_command needs a prototype provided... " >&6; }
5181if ${krb5_cv_func_ss_execute_command_noproto+:} false; then :
5182  $as_echo_n "(cached) " >&6
5183else
5184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h.  */
5186#include <ss/ss.h>
5187int
5188main ()
5189{
5190#undef ss_execute_command
5191struct k5foo {int foo; } xx;
5192extern int ss_execute_command (struct k5foo*);
5193ss_execute_command(&xx);
5194
5195  ;
5196  return 0;
5197}
5198_ACEOF
5199if ac_fn_c_try_compile "$LINENO"; then :
5200  krb5_cv_func_ss_execute_command_noproto=yes
5201else
5202  krb5_cv_func_ss_execute_command_noproto=no
5203fi
5204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_ss_execute_command_noproto" >&5
5207$as_echo "$krb5_cv_func_ss_execute_command_noproto" >&6; }
5208if test $krb5_cv_func_ss_execute_command_noproto = yes; then
5209
5210$as_echo "#define NEED_SS_EXECUTE_COMMAND_PROTO 1" >>confdefs.h
5211
5212fi
5213
5214
5215else
5216  SS_VERSION=k5
5217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: krb5" >&5
5218$as_echo "krb5" >&6; }
5219fi
5220
5221
5222
5223
5224# Check whether --with-system-db was given.
5225if test "${with_system_db+set}" = set; then :
5226  withval=$with_system_db;
5227fi
5228
5229
5230
5231if test "x$with_system_db" = xyes ; then
5232  DB_VERSION=sys
5233  # TODO: Do we have specific routines we should check for?
5234  # How about known, easily recognizable bugs?
5235  # We want to use bt_rseq in some cases, but no other version but
5236  # ours has it right now.
5237  #
5238  # Okay, check the variables.
5239  test "x${DB_HEADER+set}" = xset || DB_HEADER=db.h
5240  test "x${DB_LIB+set}" = xset || DB_LIB=-ldb
5241  #
5242  if test "x${DB_HEADER}" = xdb.h ; then
5243    DB_HEADER_VERSION=sys
5244  else
5245    DB_HEADER_VERSION=redirect
5246  fi
5247  KDB5_DB_LIB="$DB_LIB"
5248else
5249  DB_VERSION=k5
5250
5251$as_echo "#define HAVE_BT_RSEQ 1" >>confdefs.h
5252
5253  DB_HEADER=db.h
5254  DB_HEADER_VERSION=k5
5255  # libdb gets sucked into libkdb
5256  KDB5_DB_LIB=
5257  # needed for a couple of things that need libdb for its own sake
5258  DB_LIB=-ldb
5259fi
5260
5261
5262
5263
5264
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5266$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5267if ${ac_cv_c_const+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h.  */
5272
5273int
5274main ()
5275{
5276
5277#ifndef __cplusplus
5278  /* Ultrix mips cc rejects this sort of thing.  */
5279  typedef int charset[2];
5280  const charset cs = { 0, 0 };
5281  /* SunOS 4.1.1 cc rejects this.  */
5282  char const *const *pcpcc;
5283  char **ppc;
5284  /* NEC SVR4.0.2 mips cc rejects this.  */
5285  struct point {int x, y;};
5286  static struct point const zero = {0,0};
5287  /* AIX XL C 1.02.0.0 rejects this.
5288     It does not let you subtract one const X* pointer from another in
5289     an arm of an if-expression whose if-part is not a constant
5290     expression */
5291  const char *g = "string";
5292  pcpcc = &g + (g ? g-g : 0);
5293  /* HPUX 7.0 cc rejects these. */
5294  ++pcpcc;
5295  ppc = (char**) pcpcc;
5296  pcpcc = (char const *const *) ppc;
5297  { /* SCO 3.2v4 cc rejects this sort of thing.  */
5298    char tx;
5299    char *t = &tx;
5300    char const *s = 0 ? (char *) 0 : (char const *) 0;
5301
5302    *t++ = 0;
5303    if (s) return 0;
5304  }
5305  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5306    int x[] = {25, 17};
5307    const int *foo = &x[0];
5308    ++foo;
5309  }
5310  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5311    typedef const int *iptr;
5312    iptr p = 0;
5313    ++p;
5314  }
5315  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5316       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5317    struct s { int j; const int *ap[3]; } bx;
5318    struct s *b = &bx; b->j = 5;
5319  }
5320  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5321    const int foo = 10;
5322    if (!foo) return 0;
5323  }
5324  return !cs[0] && !zero.x;
5325#endif
5326
5327  ;
5328  return 0;
5329}
5330_ACEOF
5331if ac_fn_c_try_compile "$LINENO"; then :
5332  ac_cv_c_const=yes
5333else
5334  ac_cv_c_const=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337fi
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5339$as_echo "$ac_cv_c_const" >&6; }
5340if test $ac_cv_c_const = no; then
5341
5342$as_echo "#define const /**/" >>confdefs.h
5343
5344fi
5345
5346
5347# Check whether --with-netlib was given.
5348if test "${with_netlib+set}" = set; then :
5349  withval=$with_netlib;   if test "$withval" = yes -o "$withval" = no ; then
5350	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"netlib will link with C library resolver only\"" >&5
5351$as_echo "\"netlib will link with C library resolver only\"" >&6; }
5352  else
5353	LIBS="$LIBS $withval"
5354	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"netlib will use \'$withval\'\"" >&5
5355$as_echo "\"netlib will use \'$withval\'\"" >&6; }
5356  fi
5357
5358else
5359
5360   # Most operating systems have gethostbyname() in the default searched
5361   # libraries (i.e. libc):
5362   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5363if test "x$ac_cv_func_gethostbyname" = xyes; then :
5364
5365else
5366
5367     # Some OSes (eg. Solaris) place it in libnsl:
5368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5369$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5370if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  ac_check_lib_save_LIBS=$LIBS
5374LIBS="-lnsl  $LIBS"
5375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377
5378/* Override any GCC internal prototype to avoid an error.
5379   Use char because int might match the return type of a GCC
5380   builtin and then its argument prototype would still apply.  */
5381#ifdef __cplusplus
5382extern "C"
5383#endif
5384char gethostbyname ();
5385int
5386main ()
5387{
5388return gethostbyname ();
5389  ;
5390  return 0;
5391}
5392_ACEOF
5393if ac_fn_c_try_link "$LINENO"; then :
5394  ac_cv_lib_nsl_gethostbyname=yes
5395else
5396  ac_cv_lib_nsl_gethostbyname=no
5397fi
5398rm -f core conftest.err conftest.$ac_objext \
5399    conftest$ac_exeext conftest.$ac_ext
5400LIBS=$ac_check_lib_save_LIBS
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5403$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5404if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5405  cat >>confdefs.h <<_ACEOF
5406#define HAVE_LIBNSL 1
5407_ACEOF
5408
5409  LIBS="-lnsl $LIBS"
5410
5411else
5412
5413       # Some strange OSes (SINIX) have it in libsocket:
5414       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5415$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5416if ${ac_cv_lib_socket_gethostbyname+:} false; then :
5417  $as_echo_n "(cached) " >&6
5418else
5419  ac_check_lib_save_LIBS=$LIBS
5420LIBS="-lsocket  $LIBS"
5421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h.  */
5423
5424/* Override any GCC internal prototype to avoid an error.
5425   Use char because int might match the return type of a GCC
5426   builtin and then its argument prototype would still apply.  */
5427#ifdef __cplusplus
5428extern "C"
5429#endif
5430char gethostbyname ();
5431int
5432main ()
5433{
5434return gethostbyname ();
5435  ;
5436  return 0;
5437}
5438_ACEOF
5439if ac_fn_c_try_link "$LINENO"; then :
5440  ac_cv_lib_socket_gethostbyname=yes
5441else
5442  ac_cv_lib_socket_gethostbyname=no
5443fi
5444rm -f core conftest.err conftest.$ac_objext \
5445    conftest$ac_exeext conftest.$ac_ext
5446LIBS=$ac_check_lib_save_LIBS
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5449$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5450if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
5451  cat >>confdefs.h <<_ACEOF
5452#define HAVE_LIBSOCKET 1
5453_ACEOF
5454
5455  LIBS="-lsocket $LIBS"
5456
5457else
5458
5459          # Unfortunately libsocket sometimes depends on libnsl.
5460          # AC_CHECK_LIB's API is essentially broken so the following
5461          # ugliness is necessary:
5462          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
5463$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
5464if ${ac_cv_lib_socket_gethostbyname+:} false; then :
5465  $as_echo_n "(cached) " >&6
5466else
5467  ac_check_lib_save_LIBS=$LIBS
5468LIBS="-lsocket -lnsl $LIBS"
5469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471
5472/* Override any GCC internal prototype to avoid an error.
5473   Use char because int might match the return type of a GCC
5474   builtin and then its argument prototype would still apply.  */
5475#ifdef __cplusplus
5476extern "C"
5477#endif
5478char gethostbyname ();
5479int
5480main ()
5481{
5482return gethostbyname ();
5483  ;
5484  return 0;
5485}
5486_ACEOF
5487if ac_fn_c_try_link "$LINENO"; then :
5488  ac_cv_lib_socket_gethostbyname=yes
5489else
5490  ac_cv_lib_socket_gethostbyname=no
5491fi
5492rm -f core conftest.err conftest.$ac_objext \
5493    conftest$ac_exeext conftest.$ac_ext
5494LIBS=$ac_check_lib_save_LIBS
5495fi
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
5497$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
5498if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
5499  LIBS="-lsocket -lnsl $LIBS"
5500else
5501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
5502$as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
5503if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  ac_check_lib_save_LIBS=$LIBS
5507LIBS="-lresolv  $LIBS"
5508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510
5511/* Override any GCC internal prototype to avoid an error.
5512   Use char because int might match the return type of a GCC
5513   builtin and then its argument prototype would still apply.  */
5514#ifdef __cplusplus
5515extern "C"
5516#endif
5517char gethostbyname ();
5518int
5519main ()
5520{
5521return gethostbyname ();
5522  ;
5523  return 0;
5524}
5525_ACEOF
5526if ac_fn_c_try_link "$LINENO"; then :
5527  ac_cv_lib_resolv_gethostbyname=yes
5528else
5529  ac_cv_lib_resolv_gethostbyname=no
5530fi
5531rm -f core conftest.err conftest.$ac_objext \
5532    conftest$ac_exeext conftest.$ac_ext
5533LIBS=$ac_check_lib_save_LIBS
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
5536$as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
5537if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
5538  LIBS="-lresolv $LIBS"
5539fi
5540
5541fi
5542
5543
5544fi
5545
5546
5547fi
5548
5549
5550fi
5551
5552  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
5553if test "x$ac_cv_func_socket" = xyes; then :
5554
5555else
5556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5557$as_echo_n "checking for socket in -lsocket... " >&6; }
5558if ${ac_cv_lib_socket_socket+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  ac_check_lib_save_LIBS=$LIBS
5562LIBS="-lsocket  $LIBS"
5563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h.  */
5565
5566/* Override any GCC internal prototype to avoid an error.
5567   Use char because int might match the return type of a GCC
5568   builtin and then its argument prototype would still apply.  */
5569#ifdef __cplusplus
5570extern "C"
5571#endif
5572char socket ();
5573int
5574main ()
5575{
5576return socket ();
5577  ;
5578  return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_link "$LINENO"; then :
5582  ac_cv_lib_socket_socket=yes
5583else
5584  ac_cv_lib_socket_socket=no
5585fi
5586rm -f core conftest.err conftest.$ac_objext \
5587    conftest$ac_exeext conftest.$ac_ext
5588LIBS=$ac_check_lib_save_LIBS
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5591$as_echo "$ac_cv_lib_socket_socket" >&6; }
5592if test "x$ac_cv_lib_socket_socket" = xyes; then :
5593  cat >>confdefs.h <<_ACEOF
5594#define HAVE_LIBSOCKET 1
5595_ACEOF
5596
5597  LIBS="-lsocket $LIBS"
5598
5599else
5600  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5601$as_echo_n "checking for socket in -lsocket... " >&6; }
5602if ${ac_cv_lib_socket_socket+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605  ac_check_lib_save_LIBS=$LIBS
5606LIBS="-lsocket -lnsl $LIBS"
5607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609
5610/* Override any GCC internal prototype to avoid an error.
5611   Use char because int might match the return type of a GCC
5612   builtin and then its argument prototype would still apply.  */
5613#ifdef __cplusplus
5614extern "C"
5615#endif
5616char socket ();
5617int
5618main ()
5619{
5620return socket ();
5621  ;
5622  return 0;
5623}
5624_ACEOF
5625if ac_fn_c_try_link "$LINENO"; then :
5626  ac_cv_lib_socket_socket=yes
5627else
5628  ac_cv_lib_socket_socket=no
5629fi
5630rm -f core conftest.err conftest.$ac_objext \
5631    conftest$ac_exeext conftest.$ac_ext
5632LIBS=$ac_check_lib_save_LIBS
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5635$as_echo "$ac_cv_lib_socket_socket" >&6; }
5636if test "x$ac_cv_lib_socket_socket" = xyes; then :
5637  LIBS="-lsocket -lnsl $LIBS"
5638fi
5639
5640fi
5641
5642fi
5643
5644
5645enable_dns=yes
5646  # Check whether --enable-dns-for-realm was given.
5647if test "${enable_dns_for_realm+set}" = set; then :
5648  enableval=$enable_dns_for_realm;
5649else
5650  enable_dns_for_realm=no
5651fi
5652
5653  if test "$enable_dns_for_realm" = yes; then
5654
5655$as_echo "#define KRB5_DNS_LOOKUP_REALM 1" >>confdefs.h
5656
5657  fi
5658
5659
5660$as_echo "#define KRB5_DNS_LOOKUP 1" >>confdefs.h
5661
5662
5663
5664  if test "$enable_dns" = yes ; then
5665    # We assume that if libresolv exists we can link against it.
5666    # This may get us a gethostby* that doesn't respect nsswitch.
5667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
5668$as_echo_n "checking for main in -lresolv... " >&6; }
5669if ${ac_cv_lib_resolv_main+:} false; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  ac_check_lib_save_LIBS=$LIBS
5673LIBS="-lresolv  $LIBS"
5674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675/* end confdefs.h.  */
5676
5677
5678int
5679main ()
5680{
5681return main ();
5682  ;
5683  return 0;
5684}
5685_ACEOF
5686if ac_fn_c_try_link "$LINENO"; then :
5687  ac_cv_lib_resolv_main=yes
5688else
5689  ac_cv_lib_resolv_main=no
5690fi
5691rm -f core conftest.err conftest.$ac_objext \
5692    conftest$ac_exeext conftest.$ac_ext
5693LIBS=$ac_check_lib_save_LIBS
5694fi
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
5696$as_echo "$ac_cv_lib_resolv_main" >&6; }
5697if test "x$ac_cv_lib_resolv_main" = xyes; then :
5698  cat >>confdefs.h <<_ACEOF
5699#define HAVE_LIBRESOLV 1
5700_ACEOF
5701
5702  LIBS="-lresolv $LIBS"
5703
5704fi
5705
5706
5707for krb5_func in res_ninit res_nclose res_ndestroy res_nsearch ns_initparse ns_name_uncompress dn_skipname res_search; do
5708
5709# Solaris 9 prototypes ns_name_uncompress() in arpa/nameser.h, but
5710# doesn't export it from libresolv.so, so we use extreme paranoia here
5711# and check both for the declaration and that we can link against the
5712# function.
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $krb5_func" >&5
5714$as_echo_n "checking for $krb5_func... " >&6; }
5715if eval \${krb5_cv_func_$krb5_func+:} false; then :
5716  $as_echo_n "(cached) " >&6
5717else
5718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719/* end confdefs.h.  */
5720#include <sys/types.h>
5721#include <netinet/in.h>
5722#include <arpa/nameser.h>
5723#include <resolv.h>
5724int
5725main ()
5726{
5727/*
5728 * Use volatile, or else optimization can cause false positives.
5729 */
5730void (* volatile p)() = (void (*)())$krb5_func;
5731  ;
5732  return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_link "$LINENO"; then :
5736  eval "krb5_cv_func_$krb5_func=yes"
5737else
5738  eval "krb5_cv_func_$krb5_func=no"
5739fi
5740rm -f core conftest.err conftest.$ac_objext \
5741    conftest$ac_exeext conftest.$ac_ext
5742fi
5743eval ac_res=\$krb5_cv_func_$krb5_func
5744	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5745$as_echo "$ac_res" >&6; }
5746if test `eval 'as_val=${'krb5_cv_func_$krb5_func'};$as_echo "$as_val"'` = yes; then :
5747
5748cat >>confdefs.h <<_ACEOF
5749#define `$as_echo "HAVE_$krb5_func" | $as_tr_cpp` 1
5750_ACEOF
5751
5752fi
5753done
5754
5755    if test $krb5_cv_func_res_nsearch = no \
5756      && test $krb5_cv_func_res_search = no; then
5757	# Attempt to link with res_search(), in case it's not prototyped.
5758	ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
5759if test "x$ac_cv_func_res_search" = xyes; then :
5760
5761$as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
5762
5763else
5764  as_fn_error $? "cannot find res_nsearch or res_search" "$LINENO" 5
5765fi
5766
5767    fi
5768  fi
5769
5770
5771fi
5772
5773# Check whether --with-hesiod was given.
5774if test "${with_hesiod+set}" = set; then :
5775  withval=$with_hesiod; hesiod=$with_hesiod
5776else
5777  with_hesiod=no
5778fi
5779
5780if test "$with_hesiod" != "no"; then
5781	HESIOD_DEFS=-DHESIOD
5782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
5783$as_echo_n "checking for res_send in -lresolv... " >&6; }
5784if ${ac_cv_lib_resolv_res_send+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  ac_check_lib_save_LIBS=$LIBS
5788LIBS="-lresolv  $LIBS"
5789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790/* end confdefs.h.  */
5791
5792/* Override any GCC internal prototype to avoid an error.
5793   Use char because int might match the return type of a GCC
5794   builtin and then its argument prototype would still apply.  */
5795#ifdef __cplusplus
5796extern "C"
5797#endif
5798char res_send ();
5799int
5800main ()
5801{
5802return res_send ();
5803  ;
5804  return 0;
5805}
5806_ACEOF
5807if ac_fn_c_try_link "$LINENO"; then :
5808  ac_cv_lib_resolv_res_send=yes
5809else
5810  ac_cv_lib_resolv_res_send=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext \
5813    conftest$ac_exeext conftest.$ac_ext
5814LIBS=$ac_check_lib_save_LIBS
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
5817$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
5818if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
5819  res_lib=-lresolv
5820fi
5821
5822	if test "$hesiod" != "yes"; then
5823		HESIOD_LIBS="-L${hesiod}/lib -lhesiod $res_lib"
5824	else
5825		HESIOD_LIBS="-lhesiod $res_lib"
5826	fi
5827else
5828	HESIOD_DEFS=
5829	HESIOD_LIBS=
5830fi
5831
5832 # Check whether --enable-maintainer-mode was given.
5833if test "${enable_maintainer_mode+set}" = set; then :
5834  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5835else
5836  USE_MAINTAINER_MODE=no
5837fi
5838
5839if test "$USE_MAINTAINER_MODE" = yes; then
5840  MAINTAINER_MODE_TRUE=
5841  MAINTAINER_MODE_FALSE='#'
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: enabling maintainer mode" >&5
5843$as_echo "$as_me: enabling maintainer mode" >&6;}
5844else
5845  MAINTAINER_MODE_TRUE='#'
5846  MAINTAINER_MODE_FALSE=
5847fi
5848MAINT=$MAINTAINER_MODE_TRUE
5849
5850
5851
5852  CONFIG_RELTOPDIR=$ac_reltopdir
5853
5854lib_frag=$srcdir/$ac_config_fragdir/lib.in
5855
5856libobj_frag=$srcdir/$ac_config_fragdir/libobj.in
5857
5858libnover_frag=$srcdir/$ac_config_fragdir/libnover.in
5859
5860libpriv_frag=$srcdir/$ac_config_fragdir/libpriv.in
5861
5862libnodeps_frag=$srcdir/$ac_config_fragdir/libnodeps.in
5863
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak references are supported" >&5
5865$as_echo_n "checking whether pragma weak references are supported... " >&6; }
5866if ${krb5_cv_pragma_weak_ref+:} false; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871#pragma weak flurbl
5872extern int flurbl(void);
5873int
5874main ()
5875{
5876if (&flurbl != 0) return flurbl();
5877  ;
5878  return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_link "$LINENO"; then :
5882  krb5_cv_pragma_weak_ref=yes
5883else
5884  krb5_cv_pragma_weak_ref=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext \
5887    conftest$ac_exeext conftest.$ac_ext
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_pragma_weak_ref" >&5
5890$as_echo "$krb5_cv_pragma_weak_ref" >&6; }
5891if test $krb5_cv_pragma_weak_ref = yes ; then
5892
5893$as_echo "#define HAVE_PRAGMA_WEAK_REF 1" >>confdefs.h
5894
5895fi
5896
5897
5898# Check whether --with-ldap was given.
5899if test "${with_ldap+set}" = set; then :
5900  withval=$with_ldap; case "$withval" in
5901    OPENLDAP) with_ldap=yes ;;
5902    yes | no) ;;
5903    *)  as_fn_error $? "Invalid option value --with-ldap=\"$withval\"" "$LINENO" 5 ;;
5904esac
5905else
5906  with_ldap=no
5907fi
5908
5909if test "$with_ldap" = yes; then
5910  { $as_echo "$as_me:${as_lineno-$LINENO}: enabling OpenLDAP database backend module support" >&5
5911$as_echo "$as_me: enabling OpenLDAP database backend module support" >&6;}
5912  OPENLDAP_PLUGIN=yes
5913fi
5914
5915krb5_cv_host=$host
5916
5917. $ac_topdir/config/shlib.conf
5918
5919# Check whether --enable-delayed-initialization was given.
5920if test "${enable_delayed_initialization+set}" = set; then :
5921  enableval=$enable_delayed_initialization;
5922else
5923  enable_delayed_initialization=yes
5924fi
5925
5926case "$enable_delayed_initialization" in
5927  yes)
5928
5929$as_echo "#define DELAY_INITIALIZER 1" >>confdefs.h
5930 ;;
5931  no) ;;
5932  *)  as_fn_error $? "invalid option $enable_delayed_initialization for delayed-initialization" "$LINENO" 5 ;;
5933esac
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for constructor/destructor attribute support" >&5
5935$as_echo_n "checking for constructor/destructor attribute support... " >&6; }
5936if ${krb5_cv_attr_constructor_destructor+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  rm -f conftest.1 conftest.2
5940if test -r conftest.1 || test -r conftest.2 ; then
5941  as_fn_error $? "write error in local file system?" "$LINENO" 5
5942fi
5943true > conftest.1
5944true > conftest.2
5945if test -r conftest.1 && test -r conftest.2 ; then true ; else
5946  as_fn_error $? "write error in local file system?" "$LINENO" 5
5947fi
5948a=no
5949b=no
5950# blindly assume we have 'unlink'...
5951if test "$cross_compiling" = yes; then :
5952  as_fn_error $? "Cannot test for constructor/destructor support when cross compiling" "$LINENO" 5
5953else
5954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h.  */
5956void foo1() __attribute__((constructor));
5957void foo1() { unlink("conftest.1"); }
5958void foo2() __attribute__((destructor));
5959void foo2() { unlink("conftest.2"); }
5960int main () { return 0; }
5961_ACEOF
5962if ac_fn_c_try_run "$LINENO"; then :
5963  test -r conftest.1 || a=yes
5964test -r conftest.2 || b=yes
5965fi
5966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5967  conftest.$ac_objext conftest.beam conftest.$ac_ext
5968fi
5969
5970case $krb5_cv_host in
5971*-*-aix4.*)
5972	# Under AIX 4.3.3, at least, shared library destructor functions
5973	# appear to get executed in reverse link order (right to left),
5974	# so that a library's destructor function may run after that of
5975	# libraries it depends on, and may still have to access in the
5976	# destructor.
5977	#
5978	# That counts as "not working", for me, but it's a much more
5979	# complicated test case to set up.
5980	b=no
5981	;;
5982esac
5983krb5_cv_attr_constructor_destructor="$a,$b"
5984
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_attr_constructor_destructor" >&5
5987$as_echo "$krb5_cv_attr_constructor_destructor" >&6; }
5988# Okay, krb5_cv_... should be set now.
5989case $krb5_cv_attr_constructor_destructor in
5990  yes,*)
5991
5992$as_echo "#define CONSTRUCTOR_ATTR_WORKS 1" >>confdefs.h
5993 ;;
5994esac
5995case $krb5_cv_attr_constructor_destructor in
5996  *,yes)
5997
5998$as_echo "#define DESTRUCTOR_ATTR_WORKS 1" >>confdefs.h
5999 ;;
6000esac
6001
6002if test -z "$use_linker_init_option" ; then
6003  as_fn_error $? "ran INITFINI before checking shlib.conf?" "$LINENO" 5
6004fi
6005if test "$use_linker_init_option" = yes; then
6006
6007$as_echo "#define USE_LINKER_INIT_OPTION 1" >>confdefs.h
6008
6009fi
6010if test "$use_linker_fini_option" = yes; then
6011
6012$as_echo "#define USE_LINKER_FINI_OPTION 1" >>confdefs.h
6013
6014fi
6015
6016
6017# Check whether --enable-thread-support was given.
6018if test "${enable_thread_support+set}" = set; then :
6019  enableval=$enable_thread_support;
6020else
6021  enable_thread_support=yes
6022fi
6023
6024if test "$enable_thread_support" = yes ; then
6025  { $as_echo "$as_me:${as_lineno-$LINENO}: enabling thread support" >&5
6026$as_echo "$as_me: enabling thread support" >&6;}
6027
6028$as_echo "#define ENABLE_THREADS 1" >>confdefs.h
6029
6030fi
6031if test "$enable_thread_support" = yes; then
6032
6033
6034
6035
6036ac_ext=c
6037ac_cpp='$CPP $CPPFLAGS'
6038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040ac_compiler_gnu=$ac_cv_c_compiler_gnu
6041
6042ax_pthread_ok=no
6043
6044# We used to check for pthread.h first, but this fails if pthread.h
6045# requires special compiler flags (e.g. on Tru64 or Sequent).
6046# It gets checked for in the link test anyway.
6047
6048# First of all, check if the user has set any of the PTHREAD_LIBS,
6049# etcetera environment variables, and if threads linking works using
6050# them:
6051if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6052        ax_pthread_save_CC="$CC"
6053        ax_pthread_save_CFLAGS="$CFLAGS"
6054        ax_pthread_save_LIBS="$LIBS"
6055        if test "x$PTHREAD_CC" != "x"; then :
6056  CC="$PTHREAD_CC"
6057fi
6058        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6059        LIBS="$PTHREAD_LIBS $LIBS"
6060        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6061$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6062        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063/* end confdefs.h.  */
6064
6065/* Override any GCC internal prototype to avoid an error.
6066   Use char because int might match the return type of a GCC
6067   builtin and then its argument prototype would still apply.  */
6068#ifdef __cplusplus
6069extern "C"
6070#endif
6071char pthread_join ();
6072int
6073main ()
6074{
6075return pthread_join ();
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080if ac_fn_c_try_link "$LINENO"; then :
6081  ax_pthread_ok=yes
6082fi
6083rm -f core conftest.err conftest.$ac_objext \
6084    conftest$ac_exeext conftest.$ac_ext
6085        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6086$as_echo "$ax_pthread_ok" >&6; }
6087        if test "x$ax_pthread_ok" = "xno"; then
6088                PTHREAD_LIBS=""
6089                PTHREAD_CFLAGS=""
6090        fi
6091        CC="$ax_pthread_save_CC"
6092        CFLAGS="$ax_pthread_save_CFLAGS"
6093        LIBS="$ax_pthread_save_LIBS"
6094fi
6095
6096# We must check for the threads library under a number of different
6097# names; the ordering is very important because some systems
6098# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6099# libraries is broken (non-POSIX).
6100
6101# Create a list of thread flags to try.  Items starting with a "-" are
6102# C compiler flags, and other items are library names, except for "none"
6103# which indicates that we try without any flags at all, and "pthread-config"
6104# which is a program returning the flags for the Pth emulation library.
6105
6106ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6107
6108# The ordering *is* (sometimes) important.  Some notes on the
6109# individual items follow:
6110
6111# pthreads: AIX (must check this before -lpthread)
6112# none: in case threads are in libc; should be tried before -Kthread and
6113#       other compiler flags to prevent continual compiler warnings
6114# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6115# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6116#           (Note: HP C rejects this with "bad form for `-t' option")
6117# -pthreads: Solaris/gcc (Note: HP C also rejects)
6118# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6119#      doesn't hurt to check since this sometimes defines pthreads and
6120#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
6121#      is present but should not be used directly; and before -mthreads,
6122#      because the compiler interprets this as "-mt" + "-hreads")
6123# -mthreads: Mingw32/gcc, Lynx/gcc
6124# pthread: Linux, etcetera
6125# --thread-safe: KAI C++
6126# pthread-config: use pthread-config program (for GNU Pth library)
6127
6128case $host_os in
6129
6130        freebsd*)
6131
6132        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6133        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6134
6135        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6136        ;;
6137
6138        hpux*)
6139
6140        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6141        # multi-threading and also sets -lpthread."
6142
6143        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6144        ;;
6145
6146        openedition*)
6147
6148        # IBM z/OS requires a feature-test macro to be defined in order to
6149        # enable POSIX threads at all, so give the user a hint if this is
6150        # not set. (We don't define these ourselves, as they can affect
6151        # other portions of the system API in unpredictable ways.)
6152
6153        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154/* end confdefs.h.  */
6155
6156#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6157             AX_PTHREAD_ZOS_MISSING
6158#            endif
6159
6160_ACEOF
6161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6162  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6163  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6164$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
6165fi
6166rm -f conftest*
6167
6168        ;;
6169
6170        solaris*)
6171
6172        # On Solaris (at least, for some versions), libc contains stubbed
6173        # (non-functional) versions of the pthreads routines, so link-based
6174        # tests will erroneously succeed. (N.B.: The stubs are missing
6175        # pthread_cleanup_push, or rather a function called by this macro,
6176        # so we could check for that, but who knows whether they'll stub
6177        # that too in a future libc.)  So we'll check first for the
6178        # standard Solaris way of linking pthreads (-mt -lpthread).
6179
6180        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6181        ;;
6182esac
6183
6184# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
6185
6186if test "x$GCC" = "xyes"; then :
6187  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
6188fi
6189
6190# The presence of a feature test macro requesting re-entrant function
6191# definitions is, on some systems, a strong hint that pthreads support is
6192# correctly enabled
6193
6194case $host_os in
6195        darwin* | hpux* | linux* | osf* | solaris*)
6196        ax_pthread_check_macro="_REENTRANT"
6197        ;;
6198
6199        aix*)
6200        ax_pthread_check_macro="_THREAD_SAFE"
6201        ;;
6202
6203        *)
6204        ax_pthread_check_macro="--"
6205        ;;
6206esac
6207if test "x$ax_pthread_check_macro" = "x--"; then :
6208  ax_pthread_check_cond=0
6209else
6210  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
6211fi
6212
6213# Are we compiling with Clang?
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6216$as_echo_n "checking whether $CC is Clang... " >&6; }
6217if ${ax_cv_PTHREAD_CLANG+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  ax_cv_PTHREAD_CLANG=no
6221     # Note that Autoconf sets GCC=yes for Clang as well as GCC
6222     if test "x$GCC" = "xyes"; then
6223        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h.  */
6225/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6226#            if defined(__clang__) && defined(__llvm__)
6227             AX_PTHREAD_CC_IS_CLANG
6228#            endif
6229
6230_ACEOF
6231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6232  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6233  ax_cv_PTHREAD_CLANG=yes
6234fi
6235rm -f conftest*
6236
6237     fi
6238
6239fi
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6241$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6242ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6243
6244ax_pthread_clang_warning=no
6245
6246# Clang needs special handling, because older versions handle the -pthread
6247# option in a rather... idiosyncratic way
6248
6249if test "x$ax_pthread_clang" = "xyes"; then
6250
6251        # Clang takes -pthread; it has never supported any other flag
6252
6253        # (Note 1: This will need to be revisited if a system that Clang
6254        # supports has POSIX threads in a separate library.  This tends not
6255        # to be the way of modern systems, but it's conceivable.)
6256
6257        # (Note 2: On some systems, notably Darwin, -pthread is not needed
6258        # to get POSIX threads support; the API is always present and
6259        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
6260        # -pthread does define _REENTRANT, and while the Darwin headers
6261        # ignore this macro, third-party headers might not.)
6262
6263        PTHREAD_CFLAGS="-pthread"
6264        PTHREAD_LIBS=
6265
6266        ax_pthread_ok=yes
6267
6268        # However, older versions of Clang make a point of warning the user
6269        # that, in an invocation where only linking and no compilation is
6270        # taking place, the -pthread option has no effect ("argument unused
6271        # during compilation").  They expect -pthread to be passed in only
6272        # when source code is being compiled.
6273        #
6274        # Problem is, this is at odds with the way Automake and most other
6275        # C build frameworks function, which is that the same flags used in
6276        # compilation (CFLAGS) are also used in linking.  Many systems
6277        # supported by AX_PTHREAD require exactly this for POSIX threads
6278        # support, and in fact it is often not straightforward to specify a
6279        # flag that is used only in the compilation phase and not in
6280        # linking.  Such a scenario is extremely rare in practice.
6281        #
6282        # Even though use of the -pthread flag in linking would only print
6283        # a warning, this can be a nuisance for well-run software projects
6284        # that build with -Werror.  So if the active version of Clang has
6285        # this misfeature, we search for an option to squash it.
6286
6287        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6288$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6289if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6290  $as_echo_n "(cached) " >&6
6291else
6292  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6293             # Create an alternate version of $ac_link that compiles and
6294             # links in two steps (.c -> .o, .o -> exe) instead of one
6295             # (.c -> exe), because the warning occurs only in the second
6296             # step
6297             ax_pthread_save_ac_link="$ac_link"
6298             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6299             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6300             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6301             ax_pthread_save_CFLAGS="$CFLAGS"
6302             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6303                if test "x$ax_pthread_try" = "xunknown"; then :
6304  break
6305fi
6306                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6307                ac_link="$ax_pthread_save_ac_link"
6308                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310int main(void){return 0;}
6311_ACEOF
6312if ac_fn_c_try_link "$LINENO"; then :
6313  ac_link="$ax_pthread_2step_ac_link"
6314                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h.  */
6316int main(void){return 0;}
6317_ACEOF
6318if ac_fn_c_try_link "$LINENO"; then :
6319  break
6320fi
6321rm -f core conftest.err conftest.$ac_objext \
6322    conftest$ac_exeext conftest.$ac_ext
6323
6324fi
6325rm -f core conftest.err conftest.$ac_objext \
6326    conftest$ac_exeext conftest.$ac_ext
6327             done
6328             ac_link="$ax_pthread_save_ac_link"
6329             CFLAGS="$ax_pthread_save_CFLAGS"
6330             if test "x$ax_pthread_try" = "x"; then :
6331  ax_pthread_try=no
6332fi
6333             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
6334
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6337$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
6338
6339        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6340                no | unknown) ;;
6341                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6342        esac
6343
6344fi # $ax_pthread_clang = yes
6345
6346if test "x$ax_pthread_ok" = "xno"; then
6347for ax_pthread_try_flag in $ax_pthread_flags; do
6348
6349        case $ax_pthread_try_flag in
6350                none)
6351                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6352$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6353                ;;
6354
6355                -mt,pthread)
6356                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6357$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6358                PTHREAD_CFLAGS="-mt"
6359                PTHREAD_LIBS="-lpthread"
6360                ;;
6361
6362                -*)
6363                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6364$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6365                PTHREAD_CFLAGS="$ax_pthread_try_flag"
6366                ;;
6367
6368                pthread-config)
6369                # Extract the first word of "pthread-config", so it can be a program name with args.
6370set dummy pthread-config; ac_word=$2
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372$as_echo_n "checking for $ac_word... " >&6; }
6373if ${ac_cv_prog_ax_pthread_config+:} false; then :
6374  $as_echo_n "(cached) " >&6
6375else
6376  if test -n "$ax_pthread_config"; then
6377  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382  IFS=$as_save_IFS
6383  test -z "$as_dir" && as_dir=.
6384    for ac_exec_ext in '' $ac_executable_extensions; do
6385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386    ac_cv_prog_ax_pthread_config="yes"
6387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388    break 2
6389  fi
6390done
6391  done
6392IFS=$as_save_IFS
6393
6394  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6395fi
6396fi
6397ax_pthread_config=$ac_cv_prog_ax_pthread_config
6398if test -n "$ax_pthread_config"; then
6399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6400$as_echo "$ax_pthread_config" >&6; }
6401else
6402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6404fi
6405
6406
6407                if test "x$ax_pthread_config" = "xno"; then :
6408  continue
6409fi
6410                PTHREAD_CFLAGS="`pthread-config --cflags`"
6411                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6412                ;;
6413
6414                *)
6415                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6416$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6417                PTHREAD_LIBS="-l$ax_pthread_try_flag"
6418                ;;
6419        esac
6420
6421        ax_pthread_save_CFLAGS="$CFLAGS"
6422        ax_pthread_save_LIBS="$LIBS"
6423        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6424        LIBS="$PTHREAD_LIBS $LIBS"
6425
6426        # Check for various functions.  We must include pthread.h,
6427        # since some functions may be macros.  (On the Sequent, we
6428        # need a special flag -Kthread to make this header compile.)
6429        # We check for pthread_join because it is in -lpthread on IRIX
6430        # while pthread_create is in libc.  We check for pthread_attr_init
6431        # due to DEC craziness with -lpthreads.  We check for
6432        # pthread_cleanup_push because it is one of the few pthread
6433        # functions on Solaris that doesn't have a non-functional libc stub.
6434        # We try pthread_create on general principles.
6435
6436        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h.  */
6438#include <pthread.h>
6439#                       if $ax_pthread_check_cond
6440#                        error "$ax_pthread_check_macro must be defined"
6441#                       endif
6442                        static void routine(void *a) { a = 0; }
6443                        static void *start_routine(void *a) { return a; }
6444int
6445main ()
6446{
6447pthread_t th; pthread_attr_t attr;
6448                        pthread_create(&th, 0, start_routine, 0);
6449                        pthread_join(th, 0);
6450                        pthread_attr_init(&attr);
6451                        pthread_cleanup_push(routine, 0);
6452                        pthread_cleanup_pop(0) /* ; */
6453  ;
6454  return 0;
6455}
6456_ACEOF
6457if ac_fn_c_try_link "$LINENO"; then :
6458  ax_pthread_ok=yes
6459fi
6460rm -f core conftest.err conftest.$ac_objext \
6461    conftest$ac_exeext conftest.$ac_ext
6462
6463        CFLAGS="$ax_pthread_save_CFLAGS"
6464        LIBS="$ax_pthread_save_LIBS"
6465
6466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6467$as_echo "$ax_pthread_ok" >&6; }
6468        if test "x$ax_pthread_ok" = "xyes"; then :
6469  break
6470fi
6471
6472        PTHREAD_LIBS=""
6473        PTHREAD_CFLAGS=""
6474done
6475fi
6476
6477# Various other checks:
6478if test "x$ax_pthread_ok" = "xyes"; then
6479        ax_pthread_save_CFLAGS="$CFLAGS"
6480        ax_pthread_save_LIBS="$LIBS"
6481        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6482        LIBS="$PTHREAD_LIBS $LIBS"
6483
6484        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6485        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6486$as_echo_n "checking for joinable pthread attribute... " >&6; }
6487if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6491             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6492                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494#include <pthread.h>
6495int
6496main ()
6497{
6498int attr = $ax_pthread_attr; return attr /* ; */
6499  ;
6500  return 0;
6501}
6502_ACEOF
6503if ac_fn_c_try_link "$LINENO"; then :
6504  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6505fi
6506rm -f core conftest.err conftest.$ac_objext \
6507    conftest$ac_exeext conftest.$ac_ext
6508             done
6509
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6512$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6513        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6514               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6515               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6516
6517cat >>confdefs.h <<_ACEOF
6518#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6519_ACEOF
6520
6521               ax_pthread_joinable_attr_defined=yes
6522
6523fi
6524
6525        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6526$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6527if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  ax_cv_PTHREAD_SPECIAL_FLAGS=no
6531             case $host_os in
6532             solaris*)
6533             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6534             ;;
6535             esac
6536
6537fi
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6539$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6540        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6541               test "x$ax_pthread_special_flags_added" != "xyes"; then :
6542  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6543               ax_pthread_special_flags_added=yes
6544fi
6545
6546        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6547$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6548if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553#include <pthread.h>
6554int
6555main ()
6556{
6557int i = PTHREAD_PRIO_INHERIT;
6558  ;
6559  return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_link "$LINENO"; then :
6563  ax_cv_PTHREAD_PRIO_INHERIT=yes
6564else
6565  ax_cv_PTHREAD_PRIO_INHERIT=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext \
6568    conftest$ac_exeext conftest.$ac_ext
6569
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6572$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6573        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6574               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6575
6576$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6577
6578               ax_pthread_prio_inherit_defined=yes
6579
6580fi
6581
6582        CFLAGS="$ax_pthread_save_CFLAGS"
6583        LIBS="$ax_pthread_save_LIBS"
6584
6585        # More AIX lossage: compile with *_r variant
6586        if test "x$GCC" != "xyes"; then
6587            case $host_os in
6588                aix*)
6589                case "x/$CC" in #(
6590  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6591    #handle absolute path differently from PATH based program lookup
6592                     case "x$CC" in #(
6593  x/*) :
6594    if as_fn_executable_p ${CC}_r; then :
6595  PTHREAD_CC="${CC}_r"
6596fi ;; #(
6597  *) :
6598    for ac_prog in ${CC}_r
6599do
6600  # Extract the first word of "$ac_prog", so it can be a program name with args.
6601set dummy $ac_prog; ac_word=$2
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603$as_echo_n "checking for $ac_word... " >&6; }
6604if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6605  $as_echo_n "(cached) " >&6
6606else
6607  if test -n "$PTHREAD_CC"; then
6608  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6609else
6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613  IFS=$as_save_IFS
6614  test -z "$as_dir" && as_dir=.
6615    for ac_exec_ext in '' $ac_executable_extensions; do
6616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617    ac_cv_prog_PTHREAD_CC="$ac_prog"
6618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6619    break 2
6620  fi
6621done
6622  done
6623IFS=$as_save_IFS
6624
6625fi
6626fi
6627PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6628if test -n "$PTHREAD_CC"; then
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6630$as_echo "$PTHREAD_CC" >&6; }
6631else
6632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6633$as_echo "no" >&6; }
6634fi
6635
6636
6637  test -n "$PTHREAD_CC" && break
6638done
6639test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6640 ;;
6641esac ;; #(
6642  *) :
6643     ;;
6644esac
6645                ;;
6646            esac
6647        fi
6648fi
6649
6650test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6651
6652
6653
6654
6655
6656# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6657if test "x$ax_pthread_ok" = "xyes"; then
6658
6659$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6660
6661        :
6662else
6663        ax_pthread_ok=no
6664        as_fn_error $? "cannot determine options for enabling thread support; try --disable-thread-support" "$LINENO" 5
6665fi
6666ac_ext=c
6667ac_cpp='$CPP $CPPFLAGS'
6668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671
6672
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD_CC = $PTHREAD_CC" >&5
6674$as_echo "$as_me: PTHREAD_CC = $PTHREAD_CC" >&6;}
6675  { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&5
6676$as_echo "$as_me: PTHREAD_CFLAGS = $PTHREAD_CFLAGS" >&6;}
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: PTHREAD_LIBS = $PTHREAD_LIBS" >&5
6678$as_echo "$as_me: PTHREAD_LIBS = $PTHREAD_LIBS" >&6;}
6679      # AIX and Tru64 don't support weak references, and don't have
6680  # stub versions of the pthread code in libc.
6681  case "${host_os}" in
6682    aix* | osf*)
6683      # On these platforms, we'll always pull in the thread support.
6684      LIBS="$LIBS $PTHREAD_LIBS"
6685      CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6686      # We don't need to sometimes add the flags we've just folded in...
6687      PTHREAD_LIBS=
6688      PTHREAD_CFLAGS=
6689      ;;
6690    hpux*)
6691      # These are the flags that "gcc -pthread" adds.  But we don't
6692      # want "-pthread" because that has link-time effects, and we
6693      # don't exclude CFLAGS when linking.  *sigh*
6694      PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
6695      ;;
6696    solaris2.[1-9])
6697      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
6698      # get the right result.   XXX What about Solaris 9 and earlier?
6699      if test "$GCC" = yes ; then
6700        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
6701      fi
6702      ;;
6703    solaris*)
6704      # On Solaris 10 with gcc 3.4.3, the autoconf archive macro doesn't
6705      # get the right result.
6706      if test "$GCC" = yes ; then
6707        PTHREAD_CFLAGS="-D_REENTRANT -pthreads"
6708      fi
6709      # On Solaris 10, the thread support is always available in libc.
6710
6711$as_echo "#define NO_WEAK_PTHREADS 1" >>confdefs.h
6712
6713      ;;
6714  esac
6715  THREAD_SUPPORT=1
6716else
6717  PTHREAD_CC="$CC"
6718  PTHREAD_CFLAGS=""
6719  PTHREAD_LIBS=""
6720  THREAD_SUPPORT=0
6721fi
6722
6723for ac_func in pthread_once pthread_rwlock_init
6724do :
6725  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6726ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6727if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6728  cat >>confdefs.h <<_ACEOF
6729#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6730_ACEOF
6731
6732fi
6733done
6734
6735old_CC="$CC"
6736test "$PTHREAD_CC" != "" && test "$ac_cv_c_compiler_gnu" = no && CC=$PTHREAD_CC
6737old_CFLAGS="$CFLAGS"
6738# On Solaris, -pthreads is added to CFLAGS, no extra explicit libraries.
6739CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6740
6741old_LIBS="$LIBS"
6742LIBS="$PTHREAD_LIBS $LIBS"
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: rechecking with PTHREAD_... options" >&5
6744$as_echo "$as_me: rechecking with PTHREAD_... options" >&6;}
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lc" >&5
6746$as_echo_n "checking for pthread_rwlock_init in -lc... " >&6; }
6747if ${ac_cv_lib_c_pthread_rwlock_init+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  ac_check_lib_save_LIBS=$LIBS
6751LIBS="-lc  $LIBS"
6752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h.  */
6754
6755/* Override any GCC internal prototype to avoid an error.
6756   Use char because int might match the return type of a GCC
6757   builtin and then its argument prototype would still apply.  */
6758#ifdef __cplusplus
6759extern "C"
6760#endif
6761char pthread_rwlock_init ();
6762int
6763main ()
6764{
6765return pthread_rwlock_init ();
6766  ;
6767  return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_link "$LINENO"; then :
6771  ac_cv_lib_c_pthread_rwlock_init=yes
6772else
6773  ac_cv_lib_c_pthread_rwlock_init=no
6774fi
6775rm -f core conftest.err conftest.$ac_objext \
6776    conftest$ac_exeext conftest.$ac_ext
6777LIBS=$ac_check_lib_save_LIBS
6778fi
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_rwlock_init" >&5
6780$as_echo "$ac_cv_lib_c_pthread_rwlock_init" >&6; }
6781if test "x$ac_cv_lib_c_pthread_rwlock_init" = xyes; then :
6782
6783$as_echo "#define HAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB 1" >>confdefs.h
6784
6785fi
6786
6787LIBS="$old_LIBS"
6788CC="$old_CC"
6789CFLAGS="$old_CFLAGS"
6790
6791
6792old_LIBS="$LIBS"
6793DL_LIB=
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6795$as_echo_n "checking for library containing dlopen... " >&6; }
6796if ${ac_cv_search_dlopen+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  ac_func_search_save_LIBS=$LIBS
6800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802
6803/* Override any GCC internal prototype to avoid an error.
6804   Use char because int might match the return type of a GCC
6805   builtin and then its argument prototype would still apply.  */
6806#ifdef __cplusplus
6807extern "C"
6808#endif
6809char dlopen ();
6810int
6811main ()
6812{
6813return dlopen ();
6814  ;
6815  return 0;
6816}
6817_ACEOF
6818for ac_lib in '' dl; do
6819  if test -z "$ac_lib"; then
6820    ac_res="none required"
6821  else
6822    ac_res=-l$ac_lib
6823    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6824  fi
6825  if ac_fn_c_try_link "$LINENO"; then :
6826  ac_cv_search_dlopen=$ac_res
6827fi
6828rm -f core conftest.err conftest.$ac_objext \
6829    conftest$ac_exeext
6830  if ${ac_cv_search_dlopen+:} false; then :
6831  break
6832fi
6833done
6834if ${ac_cv_search_dlopen+:} false; then :
6835
6836else
6837  ac_cv_search_dlopen=no
6838fi
6839rm conftest.$ac_ext
6840LIBS=$ac_func_search_save_LIBS
6841fi
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6843$as_echo "$ac_cv_search_dlopen" >&6; }
6844ac_res=$ac_cv_search_dlopen
6845if test "$ac_res" != no; then :
6846  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6847
6848if test "$ac_cv_search_dlopen" != "none required"; then
6849  DL_LIB=$ac_cv_search_dlopen
6850fi
6851LIBS="$old_LIBS"
6852
6853$as_echo "#define USE_DLOPEN 1" >>confdefs.h
6854
6855fi
6856
6857
6858
6859
6860KRB5_VERSION=1.18.2
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6874	if test -n "$ac_tool_prefix"; then
6875  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6876set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878$as_echo_n "checking for $ac_word... " >&6; }
6879if ${ac_cv_path_PKG_CONFIG+:} false; then :
6880  $as_echo_n "(cached) " >&6
6881else
6882  case $PKG_CONFIG in
6883  [\\/]* | ?:[\\/]*)
6884  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6885  ;;
6886  *)
6887  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890  IFS=$as_save_IFS
6891  test -z "$as_dir" && as_dir=.
6892    for ac_exec_ext in '' $ac_executable_extensions; do
6893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896    break 2
6897  fi
6898done
6899  done
6900IFS=$as_save_IFS
6901
6902  ;;
6903esac
6904fi
6905PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6906if test -n "$PKG_CONFIG"; then
6907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6908$as_echo "$PKG_CONFIG" >&6; }
6909else
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911$as_echo "no" >&6; }
6912fi
6913
6914
6915fi
6916if test -z "$ac_cv_path_PKG_CONFIG"; then
6917  ac_pt_PKG_CONFIG=$PKG_CONFIG
6918  # Extract the first word of "pkg-config", so it can be a program name with args.
6919set dummy pkg-config; ac_word=$2
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921$as_echo_n "checking for $ac_word... " >&6; }
6922if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  case $ac_pt_PKG_CONFIG in
6926  [\\/]* | ?:[\\/]*)
6927  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6928  ;;
6929  *)
6930  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933  IFS=$as_save_IFS
6934  test -z "$as_dir" && as_dir=.
6935    for ac_exec_ext in '' $ac_executable_extensions; do
6936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939    break 2
6940  fi
6941done
6942  done
6943IFS=$as_save_IFS
6944
6945  ;;
6946esac
6947fi
6948ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6949if test -n "$ac_pt_PKG_CONFIG"; then
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6951$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6952else
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957  if test "x$ac_pt_PKG_CONFIG" = x; then
6958    PKG_CONFIG=""
6959  else
6960    case $cross_compiling:$ac_tool_warned in
6961yes:)
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964ac_tool_warned=yes ;;
6965esac
6966    PKG_CONFIG=$ac_pt_PKG_CONFIG
6967  fi
6968else
6969  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6970fi
6971
6972fi
6973if test -n "$PKG_CONFIG"; then
6974	_pkg_min_version=0.9.0
6975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6976$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6977	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6979$as_echo "yes" >&6; }
6980	else
6981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982$as_echo "no" >&6; }
6983		PKG_CONFIG=""
6984	fi
6985fi
6986
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6988$as_echo_n "checking for ANSI C header files... " >&6; }
6989if ${ac_cv_header_stdc+:} false; then :
6990  $as_echo_n "(cached) " >&6
6991else
6992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993/* end confdefs.h.  */
6994#include <stdlib.h>
6995#include <stdarg.h>
6996#include <string.h>
6997#include <float.h>
6998
6999int
7000main ()
7001{
7002
7003  ;
7004  return 0;
7005}
7006_ACEOF
7007if ac_fn_c_try_compile "$LINENO"; then :
7008  ac_cv_header_stdc=yes
7009else
7010  ac_cv_header_stdc=no
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013
7014if test $ac_cv_header_stdc = yes; then
7015  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018#include <string.h>
7019
7020_ACEOF
7021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7022  $EGREP "memchr" >/dev/null 2>&1; then :
7023
7024else
7025  ac_cv_header_stdc=no
7026fi
7027rm -f conftest*
7028
7029fi
7030
7031if test $ac_cv_header_stdc = yes; then
7032  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035#include <stdlib.h>
7036
7037_ACEOF
7038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039  $EGREP "free" >/dev/null 2>&1; then :
7040
7041else
7042  ac_cv_header_stdc=no
7043fi
7044rm -f conftest*
7045
7046fi
7047
7048if test $ac_cv_header_stdc = yes; then
7049  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7050  if test "$cross_compiling" = yes; then :
7051  :
7052else
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055#include <ctype.h>
7056#include <stdlib.h>
7057#if ((' ' & 0x0FF) == 0x020)
7058# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7059# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7060#else
7061# define ISLOWER(c) \
7062		   (('a' <= (c) && (c) <= 'i') \
7063		     || ('j' <= (c) && (c) <= 'r') \
7064		     || ('s' <= (c) && (c) <= 'z'))
7065# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7066#endif
7067
7068#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7069int
7070main ()
7071{
7072  int i;
7073  for (i = 0; i < 256; i++)
7074    if (XOR (islower (i), ISLOWER (i))
7075	|| toupper (i) != TOUPPER (i))
7076      return 2;
7077  return 0;
7078}
7079_ACEOF
7080if ac_fn_c_try_run "$LINENO"; then :
7081
7082else
7083  ac_cv_header_stdc=no
7084fi
7085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7086  conftest.$ac_objext conftest.beam conftest.$ac_ext
7087fi
7088
7089fi
7090fi
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7092$as_echo "$ac_cv_header_stdc" >&6; }
7093if test $ac_cv_header_stdc = yes; then
7094
7095$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7096
7097fi
7098
7099# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7100for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7101		  inttypes.h stdint.h unistd.h
7102do :
7103  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7104ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7105"
7106if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7107  cat >>confdefs.h <<_ACEOF
7108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109_ACEOF
7110
7111fi
7112
7113done
7114
7115
7116ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7117if test "x$ac_cv_header_stdint_h" = xyes; then :
7118
7119else
7120  as_fn_error $? "stdint.h is required" "$LINENO" 5
7121fi
7122
7123
7124
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integers are two's complement" >&5
7126$as_echo_n "checking whether integers are two's complement... " >&6; }
7127if ${krb5_cv_ints_twos_compl+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131/* end confdefs.h.  */
7132#include <limits.h>
7133
7134int
7135main ()
7136{
7137static int test_array [1 - 2 * !(/* Basic two's complement check */
7138	  ~(-1) == 0 && ~(-1L) == 0L &&
7139	  /* Check that values with sign bit 1 and value bits 0 are valid */
7140	  -(INT_MIN + 1) == INT_MAX && -(LONG_MIN + 1) == LONG_MAX &&
7141	  /* Check that unsigned-to-signed conversions preserve bit patterns */
7142	  (int)((unsigned int)INT_MAX + 1) == INT_MIN &&
7143	  (long)((unsigned long)LONG_MAX + 1) == LONG_MIN)];
7144test_array [0] = 0;
7145return test_array [0];
7146
7147  ;
7148  return 0;
7149}
7150_ACEOF
7151if ac_fn_c_try_compile "$LINENO"; then :
7152  krb5_cv_ints_twos_compl=yes
7153else
7154  krb5_cv_ints_twos_compl=no
7155fi
7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157fi
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_ints_twos_compl" >&5
7159$as_echo "$krb5_cv_ints_twos_compl" >&6; }
7160
7161if test "$krb5_cv_ints_twos_compl" = "no"; then
7162  as_fn_error $? "integers are not two's complement" "$LINENO" 5
7163fi
7164
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CHAR_BIT is 8" >&5
7166$as_echo_n "checking whether CHAR_BIT is 8... " >&6; }
7167if ${krb5_cv_char_bit_8+:} false; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172#include <limits.h>
7173#if CHAR_BIT != 8
7174  #error CHAR_BIT != 8
7175#endif
7176
7177_ACEOF
7178if ac_fn_c_try_cpp "$LINENO"; then :
7179  krb5_cv_char_bit_8=yes
7180else
7181  krb5_cv_char_bit_8=no
7182fi
7183rm -f conftest.err conftest.i conftest.$ac_ext
7184fi
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_char_bit_8" >&5
7186$as_echo "$krb5_cv_char_bit_8" >&6; }
7187
7188if test "$krb5_cv_char_bit_8" = "no"; then
7189  as_fn_error $? "CHAR_BIT is not 8" "$LINENO" 5
7190fi
7191
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if va_copy is available" >&5
7193$as_echo_n "checking if va_copy is available... " >&6; }
7194if ${krb5_cv_va_copy+:} false; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199
7200#include <stdarg.h>
7201void f(va_list ap) {
7202  va_list ap2;
7203  va_copy(ap2, ap);
7204  va_end(ap2);
7205}
7206va_list x;
7207int main()
7208{
7209  f(x);
7210  return 0;
7211}
7212_ACEOF
7213if ac_fn_c_try_link "$LINENO"; then :
7214  krb5_cv_va_copy=yes
7215else
7216  krb5_cv_va_copy=no
7217fi
7218rm -f core conftest.err conftest.$ac_objext \
7219    conftest$ac_exeext conftest.$ac_ext
7220fi
7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_copy" >&5
7222$as_echo "$krb5_cv_va_copy" >&6; }
7223if test "$krb5_cv_va_copy" = yes; then
7224
7225$as_echo "#define HAS_VA_COPY 1" >>confdefs.h
7226
7227fi
7228
7229# Note that this isn't checking if the copied value *works*, just
7230# whether the C language constraints permit the copying.  If
7231# va_list is defined as an array type, it can't be assigned.
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if va_list objects can be copied by assignment" >&5
7233$as_echo_n "checking if va_list objects can be copied by assignment... " >&6; }
7234if ${krb5_cv_va_simple_copy+:} false; then :
7235  $as_echo_n "(cached) " >&6
7236else
7237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h.  */
7239
7240#include <stdarg.h>
7241void f(va_list va2) {
7242  va_list va1;
7243  va1 = va2;
7244}
7245_ACEOF
7246if ac_fn_c_try_compile "$LINENO"; then :
7247  krb5_cv_va_simple_copy=yes
7248else
7249  krb5_cv_va_simple_copy=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_va_simple_copy" >&5
7254$as_echo "$krb5_cv_va_simple_copy" >&6; }
7255if test "$krb5_cv_va_simple_copy" = yes; then
7256
7257$as_echo "#define CAN_COPY_VA_LIST 1" >>confdefs.h
7258
7259fi
7260
7261# The following lines are so that configure --help gives some global
7262# configuration options.
7263
7264
7265# Check whether --enable-static was given.
7266if test "${enable_static+set}" = set; then :
7267  enableval=$enable_static;
7268else
7269  enable_static=no
7270fi
7271
7272# Check whether --enable-shared was given.
7273if test "${enable_shared+set}" = set; then :
7274  enableval=$enable_shared;
7275else
7276  enable_shared=yes
7277fi
7278
7279
7280if test "x$enable_static" = "x$enable_shared"; then
7281  as_fn_error $? "--enable-static must be specified with --disable-shared" "$LINENO" 5
7282fi
7283
7284# Check whether --enable-rpath was given.
7285if test "${enable_rpath+set}" = set; then :
7286  enableval=$enable_rpath;
7287else
7288  enable_rpath=yes
7289fi
7290
7291
7292if test "x$enable_rpath" != xyes ; then
7293	# Unset the rpath flag values set by shlib.conf
7294	SHLIB_RPATH_FLAGS=
7295	RPATH_FLAG=
7296	PROG_RPATH_FLAGS=
7297fi
7298
7299if test "$SHLIBEXT" = ".so-nobuild"; then
7300   as_fn_error $? "Shared libraries are not yet supported on this platform." "$LINENO" 5
7301fi
7302
7303DEPLIBEXT=$SHLIBEXT
7304
7305if test "x$enable_static" = xyes; then
7306	{ $as_echo "$as_me:${as_lineno-$LINENO}: using static libraries" >&5
7307$as_echo "$as_me: using static libraries" >&6;}
7308	LIBLIST='lib$(LIBBASE)$(STLIBEXT)'
7309	LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(STLIBEXT)'
7310	PLUGIN='libkrb5_$(LIBBASE)$(STLIBEXT)'
7311	PLUGINLINK='$(TOPLIBD)/libkrb5_$(LIBBASE)$(STLIBEXT)'
7312	PLUGININST=install-static
7313	OBJLISTS=OBJS.ST
7314	LIBINSTLIST=install-static
7315	DEPLIBEXT=$STLIBEXT
7316
7317$as_echo "#define STATIC_PLUGINS 1" >>confdefs.h
7318
7319
7320	KDB5_PLUGIN_DEPLIBS='$(TOPLIBD)/libkrb5_db2$(DEPLIBEXT)'
7321	KDB5_PLUGIN_LIBS='-lkrb5_db2'
7322	if test "x$OPENLDAP_PLUGIN" = xyes; then
7323		KDB5_PLUGIN_DEBLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkrb5_ldap$(DEPLIBEXT) $(TOPLIBD)/libkdb_ldap$(DEPLIBEXT)'
7324		KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkrb5_kldap -lkdb_ldap $(LDAP_LIBS)'
7325	fi
7326	# kadm5srv_mit normally comes before kdb on the link line.  Add it
7327	# again after the KDB plugins, since they depend on it for XDR stuff.
7328	KDB5_PLUGIN_DEPLIBS=$KDB5_PLUGIN_DEPLIBS' $(TOPLIBD)/libkadm5srv_mit$(DEPLIBEXT)'
7329	KDB5_PLUGIN_LIBS=$KDB5_PLUGIN_LIBS' -lkadm5srv_mit'
7330
7331	# avoid duplicate rules generation for AIX and such
7332	SHLIBEXT=.so-nobuild
7333	SHLIBVEXT=.so.v-nobuild
7334	SHLIBSEXT=.so.s-nobuild
7335else
7336	{ $as_echo "$as_me:${as_lineno-$LINENO}: using shared libraries" >&5
7337$as_echo "$as_me: using shared libraries" >&6;}
7338
7339	# Clear some stuff in case of AIX, etc.
7340	if test "$STLIBEXT" = "$SHLIBEXT" ; then
7341		STLIBEXT=.a-nobuild
7342	fi
7343	case "$SHLIBSEXT" in
7344	.so.s-nobuild)
7345		LIBLIST='lib$(LIBBASE)$(SHLIBEXT)'
7346		LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT)'
7347		LIBINSTLIST="install-shared"
7348		;;
7349	*)
7350		LIBLIST='lib$(LIBBASE)$(SHLIBEXT) lib$(LIBBASE)$(SHLIBSEXT)'
7351		LIBLINKS='$(TOPLIBD)/lib$(LIBBASE)$(SHLIBEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBVEXT) $(TOPLIBD)/lib$(LIBBASE)$(SHLIBSEXT)'
7352		LIBINSTLIST="install-shlib-soname"
7353		;;
7354	esac
7355	OBJLISTS="OBJS.SH"
7356	PLUGIN='$(LIBBASE)$(DYNOBJEXT)'
7357	PLUGINLINK='../$(PLUGIN)'
7358	PLUGININST=install-plugin
7359	KDB5_PLUGIN_DEPLIBS=
7360	KDB5_PLUGIN_LIBS=
7361fi
7362CC_LINK="$CC_LINK_SHARED"
7363CXX_LINK="$CXX_LINK_SHARED"
7364
7365if test -z "$LIBLIST"; then
7366	as_fn_error $? "must enable one of shared or static libraries" "$LINENO" 5
7367fi
7368
7369# Check whether to build profiled libraries.
7370# Check whether --enable-profiled was given.
7371if test "${enable_profiled+set}" = set; then :
7372  enableval=$enable_profiled; if test "$enableval" = yes; then
7373  as_fn_error $? "Sorry, profiled libraries do not work in this release." "$LINENO" 5
7374fi
7375fi
7376
7377
7378TCL_INCLUDES=
7379TCL_LIBPATH=
7380TCL_RPATH=
7381TCL_LIBS=
7382TCL_WITH=
7383tcl_dir=
7384
7385# Check whether --with-tcl was given.
7386if test "${with_tcl+set}" = set; then :
7387  withval=$with_tcl;
7388else
7389  with_tcl=try
7390fi
7391
7392if test "$with_tcl" = no ; then
7393  true
7394elif test "$with_tcl" = yes -o "$with_tcl" = try ; then
7395  tcl_dir=/usr
7396  if test ! -r /usr/lib/tclConfig.sh; then
7397    cat >> conftest <<\EOF
7398puts "tcl_dir=$tcl_library"
7399EOF
7400    if tclsh conftest >conftest.out 2>/dev/null; then
7401      if grep tcl_dir= conftest.out >/dev/null 2>&1; then
7402        t=`sed s/tcl_dir=// conftest.out`
7403        tcl_dir=$t
7404      fi
7405    fi # tclsh ran script okay
7406  rm -f conftest conftest.out
7407  fi # no /usr/lib/tclConfig.sh
7408else
7409  tcl_dir=$with_tcl
7410fi
7411if test "$with_tcl" != no ; then
7412
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
7414$as_echo_n "checking for tclConfig.sh... " >&6; }
7415if test -r "$tcl_dir/lib/tclConfig.sh" ; then
7416  tcl_conf="$tcl_dir/lib/tclConfig.sh"
7417elif test -r "$tcl_dir/tclConfig.sh" ; then
7418  tcl_conf="$tcl_dir/tclConfig.sh"
7419elif test -r "$tcl_dir/../tclConfig.sh" ; then
7420  tcl_conf="$tcl_dir/../tclConfig.sh"
7421else
7422  tcl_conf=
7423  lib="$tcl_dir/lib"
7424    for d in "$lib" "$lib"/tcl7.[0-9] "$lib"/tcl8.[0-9] ; do
7425    if test -r "$d/tclConfig.sh" ; then
7426      tcl_conf="$tcl_conf $d/tclConfig.sh"
7427    fi
7428  done
7429  fi
7430if test -n "$tcl_conf" ; then
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_conf" >&5
7432$as_echo "$tcl_conf" >&6; }
7433else
7434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7435$as_echo "not found" >&6; }
7436fi
7437tcl_ok_conf=
7438tcl_vers_maj=
7439tcl_vers_min=
7440old_CPPFLAGS=$CPPFLAGS
7441old_LIBS=$LIBS
7442old_LDFLAGS=$LDFLAGS
7443if test -n "$tcl_conf" ; then
7444  for file in $tcl_conf ; do
7445    TCL_MAJOR_VERSION=x ; TCL_MINOR_VERSION=x
7446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl info in $file" >&5
7447$as_echo_n "checking Tcl info in $file... " >&6; }
7448    . $file
7449    v=$TCL_MAJOR_VERSION.$TCL_MINOR_VERSION
7450    if test -z "$tcl_vers_maj" \
7451	|| test "$tcl_vers_maj" -lt "$TCL_MAJOR_VERSION" \
7452	|| test "$tcl_vers_maj" = "$TCL_MAJOR_VERSION" -a "$tcl_vers_min" -lt "$TCL_MINOR_VERSION" ; then
7453      for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
7454	if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
7455	  CPPFLAGS="$old_CPPFLAGS -I$incdir"
7456	  break
7457	fi
7458      done
7459      LIBS="$old_LIBS `eval echo x $TCL_LIB_SPEC $TCL_LIBS | sed 's/^x//'`"
7460      LDFLAGS="$old_LDFLAGS $TCL_LD_FLAGS"
7461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463
7464int
7465main ()
7466{
7467Tcl_CreateInterp ();
7468  ;
7469  return 0;
7470}
7471_ACEOF
7472if ac_fn_c_try_link "$LINENO"; then :
7473  tcl_ok_conf=$file
7474	tcl_vers_maj=$TCL_MAJOR_VERSION
7475	tcl_vers_min=$TCL_MINOR_VERSION
7476	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $v - working" >&5
7477$as_echo "$v - working" >&6; }
7478else
7479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $v - compilation failed" >&5
7480$as_echo "$v - compilation failed" >&6; }
7481
7482fi
7483rm -f core conftest.err conftest.$ac_objext \
7484    conftest$ac_exeext conftest.$ac_ext
7485    else
7486      { $as_echo "$as_me:${as_lineno-$LINENO}: result: older version $v" >&5
7487$as_echo "older version $v" >&6; }
7488    fi
7489  done
7490fi
7491CPPFLAGS=$old_CPPFLAGS
7492LIBS=$old_LIBS
7493LDFLAGS=$old_LDFLAGS
7494tcl_header=no
7495tcl_lib=no
7496if test -n "$tcl_ok_conf" ; then
7497  . $tcl_ok_conf
7498  TCL_INCLUDES=
7499  for incdir in "$TCL_PREFIX/include/tcl$v" "$TCL_PREFIX/include" ; do
7500    if test -r "$incdir/tcl.h" -o -r "$incdir/tcl/tcl.h" ; then
7501      if test "$incdir" != "/usr/include" ; then
7502        TCL_INCLUDES=-I$incdir
7503      fi
7504      break
7505    fi
7506  done
7507  # Need eval because the first-level expansion could reference
7508  # variables like ${TCL_DBGX}.
7509  eval TCL_LIBS='"'$TCL_LIB_SPEC $TCL_LIBS $TCL_DL_LIBS'"'
7510  TCL_LIBPATH="-L$TCL_EXEC_PREFIX/lib"
7511  TCL_RPATH=":$TCL_EXEC_PREFIX/lib"
7512  if test "$DEPLIBEXT" != "$SHLIBEXT" && test -n "$RPATH_FLAG"; then
7513    TCL_MAYBE_RPATH='$(RPATH_FLAG)'"$TCL_EXEC_PREFIX/lib$RPATH_TAIL"
7514  else
7515    TCL_MAYBE_RPATH=
7516  fi
7517  CPPFLAGS="$old_CPPFLAGS $TCL_INCLUDES"
7518  ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
7519if test "x$ac_cv_header_tcl_h" = xyes; then :
7520
7521$as_echo "#define HAVE_TCL_H 1" >>confdefs.h
7522 tcl_header=yes
7523fi
7524
7525
7526  if test $tcl_header=no; then
7527     ac_fn_c_check_header_mongrel "$LINENO" "tcl/tcl.h" "ac_cv_header_tcl_tcl_h" "$ac_includes_default"
7528if test "x$ac_cv_header_tcl_tcl_h" = xyes; then :
7529
7530$as_echo "#define HAVE_TCL_TCL_H 1" >>confdefs.h
7531 tcl_header=yes
7532fi
7533
7534
7535  fi
7536  CPPFLAGS="$old_CPPFLAGS"
7537  tcl_lib=yes
7538else
7539  # If we read a tclConfig.sh file, it probably set this.
7540  TCL_LIBS=
7541fi
7542
7543
7544
7545
7546
7547
7548  if test $tcl_lib = no ; then
7549    if test "$with_tcl" != try ; then
7550
7551
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying old tcl search code" >&5
7553$as_echo "$as_me: WARNING: trying old tcl search code" >&2;}
7554if test "$with_tcl" != yes -a "$with_tcl" != no; then
7555	TCL_INCLUDES=-I$with_tcl/include
7556	TCL_LIBPATH=-L$with_tcl/lib
7557	TCL_RPATH=:$with_tcl/lib
7558fi
7559if test "$with_tcl" != no ; then
7560	krb5_save_CPPFLAGS="$CPPFLAGS"
7561	krb5_save_LDFLAGS="$LDFLAGS"
7562	CPPFLAGS="$CPPFLAGS $TCL_INCLUDES"
7563	LDFLAGS="$LDFLAGS $TCL_LIBPATH"
7564	tcl_header=no
7565	ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
7566if test "x$ac_cv_header_tcl_h" = xyes; then :
7567
7568$as_echo "#define HAVE_TCL_H 1" >>confdefs.h
7569 tcl_header=yes
7570fi
7571
7572
7573	if test $tcl_header=no; then
7574	   ac_fn_c_check_header_mongrel "$LINENO" "tcl/tcl.h" "ac_cv_header_tcl_tcl_h" "$ac_includes_default"
7575if test "x$ac_cv_header_tcl_tcl_h" = xyes; then :
7576
7577$as_echo "#define HAVE_TCL_TCL_H 1" >>confdefs.h
7578 tcl_header=yes
7579fi
7580
7581
7582	fi
7583
7584	if test $tcl_header = yes ; then
7585		tcl_lib=no
7586
7587		if test $tcl_lib = no; then
7588			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl8.0" >&5
7589$as_echo_n "checking for Tcl_CreateCommand in -ltcl8.0... " >&6; }
7590if ${ac_cv_lib_tcl8_0_Tcl_CreateCommand+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  ac_check_lib_save_LIBS=$LIBS
7594LIBS="-ltcl8.0 -lm $DL_LIB $LIBS"
7595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597
7598/* Override any GCC internal prototype to avoid an error.
7599   Use char because int might match the return type of a GCC
7600   builtin and then its argument prototype would still apply.  */
7601#ifdef __cplusplus
7602extern "C"
7603#endif
7604char Tcl_CreateCommand ();
7605int
7606main ()
7607{
7608return Tcl_CreateCommand ();
7609  ;
7610  return 0;
7611}
7612_ACEOF
7613if ac_fn_c_try_link "$LINENO"; then :
7614  ac_cv_lib_tcl8_0_Tcl_CreateCommand=yes
7615else
7616  ac_cv_lib_tcl8_0_Tcl_CreateCommand=no
7617fi
7618rm -f core conftest.err conftest.$ac_objext \
7619    conftest$ac_exeext conftest.$ac_ext
7620LIBS=$ac_check_lib_save_LIBS
7621fi
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&5
7623$as_echo "$ac_cv_lib_tcl8_0_Tcl_CreateCommand" >&6; }
7624if test "x$ac_cv_lib_tcl8_0_Tcl_CreateCommand" = xyes; then :
7625  TCL_LIBS="$TCL_LIBS -ltcl8.0 -lm $DL_LIB $LIBS"
7626				tcl_lib=yes
7627fi
7628
7629		fi
7630		if test $tcl_lib = no; then
7631			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl7.6" >&5
7632$as_echo_n "checking for Tcl_CreateCommand in -ltcl7.6... " >&6; }
7633if ${ac_cv_lib_tcl7_6_Tcl_CreateCommand+:} false; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  ac_check_lib_save_LIBS=$LIBS
7637LIBS="-ltcl7.6 -lm $DL_LIB $LIBS"
7638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h.  */
7640
7641/* Override any GCC internal prototype to avoid an error.
7642   Use char because int might match the return type of a GCC
7643   builtin and then its argument prototype would still apply.  */
7644#ifdef __cplusplus
7645extern "C"
7646#endif
7647char Tcl_CreateCommand ();
7648int
7649main ()
7650{
7651return Tcl_CreateCommand ();
7652  ;
7653  return 0;
7654}
7655_ACEOF
7656if ac_fn_c_try_link "$LINENO"; then :
7657  ac_cv_lib_tcl7_6_Tcl_CreateCommand=yes
7658else
7659  ac_cv_lib_tcl7_6_Tcl_CreateCommand=no
7660fi
7661rm -f core conftest.err conftest.$ac_objext \
7662    conftest$ac_exeext conftest.$ac_ext
7663LIBS=$ac_check_lib_save_LIBS
7664fi
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&5
7666$as_echo "$ac_cv_lib_tcl7_6_Tcl_CreateCommand" >&6; }
7667if test "x$ac_cv_lib_tcl7_6_Tcl_CreateCommand" = xyes; then :
7668  TCL_LIBS="$TCL_LIBS -ltcl7.6 -lm $DL_LIB $LIBS"
7669				tcl_lib=yes
7670fi
7671
7672		fi
7673		if test $tcl_lib = no; then
7674			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl7.5" >&5
7675$as_echo_n "checking for Tcl_CreateCommand in -ltcl7.5... " >&6; }
7676if ${ac_cv_lib_tcl7_5_Tcl_CreateCommand+:} false; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  ac_check_lib_save_LIBS=$LIBS
7680LIBS="-ltcl7.5 -lm $DL_LIB $LIBS"
7681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682/* end confdefs.h.  */
7683
7684/* Override any GCC internal prototype to avoid an error.
7685   Use char because int might match the return type of a GCC
7686   builtin and then its argument prototype would still apply.  */
7687#ifdef __cplusplus
7688extern "C"
7689#endif
7690char Tcl_CreateCommand ();
7691int
7692main ()
7693{
7694return Tcl_CreateCommand ();
7695  ;
7696  return 0;
7697}
7698_ACEOF
7699if ac_fn_c_try_link "$LINENO"; then :
7700  ac_cv_lib_tcl7_5_Tcl_CreateCommand=yes
7701else
7702  ac_cv_lib_tcl7_5_Tcl_CreateCommand=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705    conftest$ac_exeext conftest.$ac_ext
7706LIBS=$ac_check_lib_save_LIBS
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&5
7709$as_echo "$ac_cv_lib_tcl7_5_Tcl_CreateCommand" >&6; }
7710if test "x$ac_cv_lib_tcl7_5_Tcl_CreateCommand" = xyes; then :
7711  TCL_LIBS="$TCL_LIBS -ltcl7.5 -lm $DL_LIB $LIBS"
7712				tcl_lib=yes
7713fi
7714
7715
7716		fi
7717		if test $tcl_lib = no ; then
7718			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateCommand in -ltcl" >&5
7719$as_echo_n "checking for Tcl_CreateCommand in -ltcl... " >&6; }
7720if ${ac_cv_lib_tcl_Tcl_CreateCommand+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  ac_check_lib_save_LIBS=$LIBS
7724LIBS="-ltcl -lm $DL_LIB $LIBS"
7725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727
7728/* Override any GCC internal prototype to avoid an error.
7729   Use char because int might match the return type of a GCC
7730   builtin and then its argument prototype would still apply.  */
7731#ifdef __cplusplus
7732extern "C"
7733#endif
7734char Tcl_CreateCommand ();
7735int
7736main ()
7737{
7738return Tcl_CreateCommand ();
7739  ;
7740  return 0;
7741}
7742_ACEOF
7743if ac_fn_c_try_link "$LINENO"; then :
7744  ac_cv_lib_tcl_Tcl_CreateCommand=yes
7745else
7746  ac_cv_lib_tcl_Tcl_CreateCommand=no
7747fi
7748rm -f core conftest.err conftest.$ac_objext \
7749    conftest$ac_exeext conftest.$ac_ext
7750LIBS=$ac_check_lib_save_LIBS
7751fi
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_Tcl_CreateCommand" >&5
7753$as_echo "$ac_cv_lib_tcl_Tcl_CreateCommand" >&6; }
7754if test "x$ac_cv_lib_tcl_Tcl_CreateCommand" = xyes; then :
7755  TCL_LIBS="$TCL_LIBS -ltcl -lm $DL_LIB $LIBS"
7756				tcl_lib=yes
7757fi
7758
7759
7760		fi
7761		if test $tcl_lib = no ; then
7762			{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"tcl.h found but not library\"" >&5
7763$as_echo "$as_me: WARNING: \"tcl.h found but not library\"" >&2;}
7764		fi
7765	else
7766		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&5
7767$as_echo "$as_me: WARNING: Could not find Tcl which is needed for the kadm5 tests" >&2;}
7768		TCL_LIBS=
7769	fi
7770	CPPFLAGS="$krb5_save_CPPFLAGS"
7771	LDFLAGS="$krb5_save_LDFLAGS"
7772
7773
7774
7775
7776else
7777	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not looking for Tcl library\"" >&5
7778$as_echo "\"Not looking for Tcl library\"" >&6; }
7779fi
7780
7781    else
7782      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find Tcl which is needed for some tests" >&5
7783$as_echo "$as_me: WARNING: Could not find Tcl which is needed for some tests" >&2;}
7784    fi
7785  fi
7786fi
7787# If "yes" or pathname, error out if not found.
7788if test "$with_tcl" != no -a "$with_tcl" != try ; then
7789  if test "$tcl_header $tcl_lib" != "yes yes" ; then
7790    as_fn_error $? "Could not find Tcl" "$LINENO" 5
7791  fi
7792fi
7793
7794# Check whether --enable-athena was given.
7795if test "${enable_athena+set}" = set; then :
7796  enableval=$enable_athena;
7797fi
7798
7799
7800# Begin autoconf tests for the Makefiles generated out of the top-level
7801# configure.in...
7802
7803
7804
7805
7806
7807
7808
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7810$as_echo_n "checking whether ln -s works... " >&6; }
7811LN_S=$as_ln_s
7812if test "$LN_S" = "ln -s"; then
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814$as_echo "yes" >&6; }
7815else
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7817$as_echo "no, using $LN_S" >&6; }
7818fi
7819
7820if test -n "$ac_tool_prefix"; then
7821  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7822set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
7825if ${ac_cv_prog_RANLIB+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  if test -n "$RANLIB"; then
7829  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7830else
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834  IFS=$as_save_IFS
7835  test -z "$as_dir" && as_dir=.
7836    for ac_exec_ext in '' $ac_executable_extensions; do
7837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840    break 2
7841  fi
7842done
7843  done
7844IFS=$as_save_IFS
7845
7846fi
7847fi
7848RANLIB=$ac_cv_prog_RANLIB
7849if test -n "$RANLIB"; then
7850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7851$as_echo "$RANLIB" >&6; }
7852else
7853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
7855fi
7856
7857
7858fi
7859if test -z "$ac_cv_prog_RANLIB"; then
7860  ac_ct_RANLIB=$RANLIB
7861  # Extract the first word of "ranlib", so it can be a program name with args.
7862set dummy ranlib; ac_word=$2
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  if test -n "$ac_ct_RANLIB"; then
7869  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7870else
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874  IFS=$as_save_IFS
7875  test -z "$as_dir" && as_dir=.
7876    for ac_exec_ext in '' $ac_executable_extensions; do
7877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878    ac_cv_prog_ac_ct_RANLIB="ranlib"
7879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880    break 2
7881  fi
7882done
7883  done
7884IFS=$as_save_IFS
7885
7886fi
7887fi
7888ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7889if test -n "$ac_ct_RANLIB"; then
7890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7891$as_echo "$ac_ct_RANLIB" >&6; }
7892else
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
7895fi
7896
7897  if test "x$ac_ct_RANLIB" = x; then
7898    RANLIB=":"
7899  else
7900    case $cross_compiling:$ac_tool_warned in
7901yes:)
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904ac_tool_warned=yes ;;
7905esac
7906    RANLIB=$ac_ct_RANLIB
7907  fi
7908else
7909  RANLIB="$ac_cv_prog_RANLIB"
7910fi
7911
7912# Find a good install program.  We prefer a C program (faster),
7913# so one script is as good as another.  But avoid the broken or
7914# incompatible versions:
7915# SysV /etc/install, /usr/sbin/install
7916# SunOS /usr/etc/install
7917# IRIX /sbin/install
7918# AIX /bin/install
7919# AmigaOS /C/install, which installs bootblocks on floppy discs
7920# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7921# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7922# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7923# OS/2's system install, which has a completely different semantic
7924# ./install, which can be erroneously created by make from ./install.sh.
7925# Reject install programs that cannot install multiple files.
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7927$as_echo_n "checking for a BSD-compatible install... " >&6; }
7928if test -z "$INSTALL"; then
7929if ${ac_cv_path_install+:} false; then :
7930  $as_echo_n "(cached) " >&6
7931else
7932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933for as_dir in $PATH
7934do
7935  IFS=$as_save_IFS
7936  test -z "$as_dir" && as_dir=.
7937    # Account for people who put trailing slashes in PATH elements.
7938case $as_dir/ in #((
7939  ./ | .// | /[cC]/* | \
7940  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7941  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7942  /usr/ucb/* ) ;;
7943  *)
7944    # OSF1 and SCO ODT 3.0 have their own names for install.
7945    # Don't use installbsd from OSF since it installs stuff as root
7946    # by default.
7947    for ac_prog in ginstall scoinst install; do
7948      for ac_exec_ext in '' $ac_executable_extensions; do
7949	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7950	  if test $ac_prog = install &&
7951	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7952	    # AIX install.  It has an incompatible calling convention.
7953	    :
7954	  elif test $ac_prog = install &&
7955	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7956	    # program-specific install script used by HP pwplus--don't use.
7957	    :
7958	  else
7959	    rm -rf conftest.one conftest.two conftest.dir
7960	    echo one > conftest.one
7961	    echo two > conftest.two
7962	    mkdir conftest.dir
7963	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7964	      test -s conftest.one && test -s conftest.two &&
7965	      test -s conftest.dir/conftest.one &&
7966	      test -s conftest.dir/conftest.two
7967	    then
7968	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7969	      break 3
7970	    fi
7971	  fi
7972	fi
7973      done
7974    done
7975    ;;
7976esac
7977
7978  done
7979IFS=$as_save_IFS
7980
7981rm -rf conftest.one conftest.two conftest.dir
7982
7983fi
7984  if test "${ac_cv_path_install+set}" = set; then
7985    INSTALL=$ac_cv_path_install
7986  else
7987    # As a last resort, use the slow shell script.  Don't cache a
7988    # value for INSTALL within a source directory, because that will
7989    # break other packages using the cache if that directory is
7990    # removed, or if the value is a relative name.
7991    INSTALL=$ac_install_sh
7992  fi
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7995$as_echo "$INSTALL" >&6; }
7996
7997# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7998# It thinks the first close brace ends the variable substitution.
7999test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8000
8001test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8002
8003test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8004
8005if test -n "$ac_tool_prefix"; then
8006  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8007set dummy ${ac_tool_prefix}ar; ac_word=$2
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; }
8010if ${ac_cv_prog_AR+:} false; then :
8011  $as_echo_n "(cached) " >&6
8012else
8013  if test -n "$AR"; then
8014  ac_cv_prog_AR="$AR" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019  IFS=$as_save_IFS
8020  test -z "$as_dir" && as_dir=.
8021    for ac_exec_ext in '' $ac_executable_extensions; do
8022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023    ac_cv_prog_AR="${ac_tool_prefix}ar"
8024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025    break 2
8026  fi
8027done
8028  done
8029IFS=$as_save_IFS
8030
8031fi
8032fi
8033AR=$ac_cv_prog_AR
8034if test -n "$AR"; then
8035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8036$as_echo "$AR" >&6; }
8037else
8038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040fi
8041
8042
8043fi
8044if test -z "$ac_cv_prog_AR"; then
8045  ac_ct_AR=$AR
8046  # Extract the first word of "ar", so it can be a program name with args.
8047set dummy ar; ac_word=$2
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
8050if ${ac_cv_prog_ac_ct_AR+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  if test -n "$ac_ct_AR"; then
8054  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8055else
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059  IFS=$as_save_IFS
8060  test -z "$as_dir" && as_dir=.
8061    for ac_exec_ext in '' $ac_executable_extensions; do
8062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063    ac_cv_prog_ac_ct_AR="ar"
8064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065    break 2
8066  fi
8067done
8068  done
8069IFS=$as_save_IFS
8070
8071fi
8072fi
8073ac_ct_AR=$ac_cv_prog_ac_ct_AR
8074if test -n "$ac_ct_AR"; then
8075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8076$as_echo "$ac_ct_AR" >&6; }
8077else
8078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
8080fi
8081
8082  if test "x$ac_ct_AR" = x; then
8083    AR="false"
8084  else
8085    case $cross_compiling:$ac_tool_warned in
8086yes:)
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089ac_tool_warned=yes ;;
8090esac
8091    AR=$ac_ct_AR
8092  fi
8093else
8094  AR="$ac_cv_prog_AR"
8095fi
8096
8097if test "$AR" = "false"; then
8098  as_fn_error $? "ar not found in PATH" "$LINENO" 5
8099fi
8100# Extract the first word of "perl", so it can be a program name with args.
8101set dummy perl; ac_word=$2
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103$as_echo_n "checking for $ac_word... " >&6; }
8104if ${ac_cv_prog_PERL+:} false; then :
8105  $as_echo_n "(cached) " >&6
8106else
8107  if test -n "$PERL"; then
8108  ac_cv_prog_PERL="$PERL" # Let the user override the test.
8109else
8110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH
8112do
8113  IFS=$as_save_IFS
8114  test -z "$as_dir" && as_dir=.
8115    for ac_exec_ext in '' $ac_executable_extensions; do
8116  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8117    ac_cv_prog_PERL="perl"
8118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119    break 2
8120  fi
8121done
8122  done
8123IFS=$as_save_IFS
8124
8125  test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
8126fi
8127fi
8128PERL=$ac_cv_prog_PERL
8129if test -n "$PERL"; then
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8131$as_echo "$PERL" >&6; }
8132else
8133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134$as_echo "no" >&6; }
8135fi
8136
8137
8138if test "$ac_cv_prog_PERL" = "false"; then
8139  as_fn_error $? "Perl is now required for Kerberos builds." "$LINENO" 5
8140fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working regcomp" >&5
8168$as_echo_n "checking for working regcomp... " >&6; }
8169if ${ac_cv_func_regcomp+:} false; then :
8170  $as_echo_n "(cached) " >&6
8171else
8172
8173if test "$cross_compiling" = yes; then :
8174  as_fn_error $? "Cannot test regcomp when cross compiling" "$LINENO" 5
8175else
8176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177/* end confdefs.h.  */
8178
8179#include <sys/types.h>
8180#include <regex.h>
8181regex_t x; regmatch_t m;
8182int main() { return regcomp(&x,"pat.*",0) || regexec(&x,"pattern",1,&m,0); }
8183
8184_ACEOF
8185if ac_fn_c_try_run "$LINENO"; then :
8186  ac_cv_func_regcomp=yes
8187else
8188  ac_cv_func_regcomp=no
8189fi
8190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8191  conftest.$ac_objext conftest.beam conftest.$ac_ext
8192fi
8193
8194fi
8195
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_regcomp" >&5
8197$as_echo "$ac_cv_func_regcomp" >&6; }
8198test $ac_cv_func_regcomp = yes &&
8199$as_echo "#define HAVE_REGCOMP 1" >>confdefs.h
8200
8201if test $ac_cv_func_regcomp = no; then
8202 save_LIBS="$LIBS"
8203 LIBS=-lgen
8204 for ac_func in compile step
8205do :
8206  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8207ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8208if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8209  cat >>confdefs.h <<_ACEOF
8210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8211_ACEOF
8212
8213fi
8214done
8215
8216 LIBS="$save_LIBS"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile in -lgen" >&5
8218$as_echo_n "checking for compile in -lgen... " >&6; }
8219if ${ac_cv_lib_gen_compile+:} false; then :
8220  $as_echo_n "(cached) " >&6
8221else
8222  ac_check_lib_save_LIBS=$LIBS
8223LIBS="-lgen  $LIBS"
8224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226
8227/* Override any GCC internal prototype to avoid an error.
8228   Use char because int might match the return type of a GCC
8229   builtin and then its argument prototype would still apply.  */
8230#ifdef __cplusplus
8231extern "C"
8232#endif
8233char compile ();
8234int
8235main ()
8236{
8237return compile ();
8238  ;
8239  return 0;
8240}
8241_ACEOF
8242if ac_fn_c_try_link "$LINENO"; then :
8243  ac_cv_lib_gen_compile=yes
8244else
8245  ac_cv_lib_gen_compile=no
8246fi
8247rm -f core conftest.err conftest.$ac_objext \
8248    conftest$ac_exeext conftest.$ac_ext
8249LIBS=$ac_check_lib_save_LIBS
8250fi
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_compile" >&5
8252$as_echo "$ac_cv_lib_gen_compile" >&6; }
8253if test "x$ac_cv_lib_gen_compile" = xyes; then :
8254  GEN_LIB=-lgen
8255else
8256  GEN_LIB=
8257fi
8258
8259
8260fi
8261
8262
8263
8264
8265
8266
8267# for kprop
8268ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8269if test "x$ac_cv_type_mode_t" = xyes; then :
8270
8271else
8272
8273cat >>confdefs.h <<_ACEOF
8274#define mode_t int
8275_ACEOF
8276
8277fi
8278
8279
8280
8281
8282
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if daemon needs a prototype provided" >&5
8284$as_echo_n "checking if daemon needs a prototype provided... " >&6; }
8285if ${krb5_cv_func_daemon_noproto+:} false; then :
8286  $as_echo_n "(cached) " >&6
8287else
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290#ifdef HAVE_UNISTD_H
8291#include <unistd.h>
8292#endif
8293int
8294main ()
8295{
8296#undef daemon
8297struct k5foo {int foo; } xx;
8298extern int daemon (struct k5foo*);
8299daemon(&xx);
8300
8301  ;
8302  return 0;
8303}
8304_ACEOF
8305if ac_fn_c_try_compile "$LINENO"; then :
8306  krb5_cv_func_daemon_noproto=yes
8307else
8308  krb5_cv_func_daemon_noproto=no
8309fi
8310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_daemon_noproto" >&5
8313$as_echo "$krb5_cv_func_daemon_noproto" >&6; }
8314if test $krb5_cv_func_daemon_noproto = yes; then
8315
8316$as_echo "#define NEED_DAEMON_PROTO 1" >>confdefs.h
8317
8318fi
8319
8320
8321
8322sock_set=no
8323for sock_arg1 in "struct sockaddr *" "void *"
8324do
8325  for sock_arg2 in "size_t *" "int *" "socklen_t *"
8326  do
8327	if test $sock_set = no; then
8328
8329krb5_lib_var=`echo "$sock_arg1 $sock_arg2" | sed 'y% ./+-*%___p_p%'`
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname() takes arguments $sock_arg1 and $sock_arg2" >&5
8331$as_echo_n "checking if getsockname() takes arguments $sock_arg1 and $sock_arg2... " >&6; }
8332if eval \${krb5_cv_getsockname_proto_$krb5_lib_var+:} false; then :
8333  $as_echo_n "(cached) " >&6
8334else
8335
8336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338#include <sys/types.h>
8339#include <sys/socket.h>
8340extern int getsockname(int, $sock_arg1, $sock_arg2);
8341
8342int
8343main ()
8344{
8345
8346  ;
8347  return 0;
8348}
8349_ACEOF
8350if ac_fn_c_try_compile "$LINENO"; then :
8351  eval "krb5_cv_getsockname_proto_$krb5_lib_var=yes"
8352else
8353  eval "krb5_cv_getsockname_proto_$krb5_lib_var=no"
8354fi
8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356fi
8357
8358if eval "test \"`echo '$krb5_cv_getsockname_proto_'$krb5_lib_var`\" = yes"; then
8359	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8360$as_echo "yes" >&6; }
8361	sock_set=yes; res1="$sock_arg1"; res2="$sock_arg2"
8362else
8363	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367	fi
8368  done
8369done
8370if test "$sock_set" = no; then
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: assuming struct sockaddr and socklen_t for getsockname args" >&5
8372$as_echo "$as_me: assuming struct sockaddr and socklen_t for getsockname args" >&6;}
8373  res1="struct sockaddr *"
8374  res2="socklen_t *"
8375fi
8376res1=`echo "$res1" | tr -d '*' | sed -e 's/ *$//'`
8377res2=`echo "$res2" | tr -d '*' | sed -e 's/ *$//'`
8378
8379cat >>confdefs.h <<_ACEOF
8380#define GETSOCKNAME_ARG3_TYPE $res2
8381_ACEOF
8382
8383
8384
8385
8386$as_echo "#define GETPEERNAME_ARG3_TYPE GETSOCKNAME_ARG3_TYPE" >>confdefs.h
8387
8388
8389LIBUTIL=
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lutil" >&5
8391$as_echo_n "checking for main in -lutil... " >&6; }
8392if ${ac_cv_lib_util_main+:} false; then :
8393  $as_echo_n "(cached) " >&6
8394else
8395  ac_check_lib_save_LIBS=$LIBS
8396LIBS="-lutil  $LIBS"
8397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399
8400
8401int
8402main ()
8403{
8404return main ();
8405  ;
8406  return 0;
8407}
8408_ACEOF
8409if ac_fn_c_try_link "$LINENO"; then :
8410  ac_cv_lib_util_main=yes
8411else
8412  ac_cv_lib_util_main=no
8413fi
8414rm -f core conftest.err conftest.$ac_objext \
8415    conftest$ac_exeext conftest.$ac_ext
8416LIBS=$ac_check_lib_save_LIBS
8417fi
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_main" >&5
8419$as_echo "$ac_cv_lib_util_main" >&6; }
8420if test "x$ac_cv_lib_util_main" = xyes; then :
8421
8422$as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
8423
8424LIBUTIL=-lutil
8425
8426fi
8427
8428
8429
8430# Determine if NLS is desired and supported.
8431po=
8432# Check whether --enable-nls was given.
8433if test "${enable_nls+set}" = set; then :
8434  enableval=$enable_nls;
8435else
8436  enable_nls=check
8437fi
8438
8439if test "$enable_nls" != no; then
8440  ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8441if test "x$ac_cv_header_libintl_h" = xyes; then :
8442
8443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgettext" >&5
8444$as_echo_n "checking for library containing dgettext... " >&6; }
8445if ${ac_cv_search_dgettext+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  ac_func_search_save_LIBS=$LIBS
8449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451
8452/* Override any GCC internal prototype to avoid an error.
8453   Use char because int might match the return type of a GCC
8454   builtin and then its argument prototype would still apply.  */
8455#ifdef __cplusplus
8456extern "C"
8457#endif
8458char dgettext ();
8459int
8460main ()
8461{
8462return dgettext ();
8463  ;
8464  return 0;
8465}
8466_ACEOF
8467for ac_lib in '' intl; do
8468  if test -z "$ac_lib"; then
8469    ac_res="none required"
8470  else
8471    ac_res=-l$ac_lib
8472    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8473  fi
8474  if ac_fn_c_try_link "$LINENO"; then :
8475  ac_cv_search_dgettext=$ac_res
8476fi
8477rm -f core conftest.err conftest.$ac_objext \
8478    conftest$ac_exeext
8479  if ${ac_cv_search_dgettext+:} false; then :
8480  break
8481fi
8482done
8483if ${ac_cv_search_dgettext+:} false; then :
8484
8485else
8486  ac_cv_search_dgettext=no
8487fi
8488rm conftest.$ac_ext
8489LIBS=$ac_func_search_save_LIBS
8490fi
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgettext" >&5
8492$as_echo "$ac_cv_search_dgettext" >&6; }
8493ac_res=$ac_cv_search_dgettext
8494if test "$ac_res" != no; then :
8495  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8496
8497
8498$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8499
8500      nls_enabled=yes
8501fi
8502
8503fi
8504
8505
8506
8507  # Extract the first word of "msgfmt", so it can be a program name with args.
8508set dummy msgfmt; ac_word=$2
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
8511if ${ac_cv_prog_MSGFMT+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  if test -n "$MSGFMT"; then
8515  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
8516else
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520  IFS=$as_save_IFS
8521  test -z "$as_dir" && as_dir=.
8522    for ac_exec_ext in '' $ac_executable_extensions; do
8523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524    ac_cv_prog_MSGFMT="msgfmt"
8525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526    break 2
8527  fi
8528done
8529  done
8530IFS=$as_save_IFS
8531
8532fi
8533fi
8534MSGFMT=$ac_cv_prog_MSGFMT
8535if test -n "$MSGFMT"; then
8536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8537$as_echo "$MSGFMT" >&6; }
8538else
8539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541fi
8542
8543
8544  if test x"$MSGFMT" != x; then
8545    ac_config_files="$ac_config_files po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in"
8546
8547
8548
8549    po=po
8550  fi
8551
8552  # Error out if --enable-nls was explicitly requested but can't be enabled.
8553  if test "$enable_nls" = yes; then
8554    if test "$nls_enabled" != yes -o "x$po" = x; then
8555      as_fn_error $? "NLS support requested but cannot be built" "$LINENO" 5
8556    fi
8557  fi
8558fi
8559
8560
8561# for kdc
8562for ac_header in sys/sockio.h ifaddrs.h unistd.h fnmatch.h
8563do :
8564  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8567  cat >>confdefs.h <<_ACEOF
8568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8569_ACEOF
8570
8571fi
8572
8573done
8574
8575for ac_func in vsprintf vasprintf vsnprintf strlcpy fnmatch secure_getenv
8576do :
8577  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8578ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8579if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8580  cat >>confdefs.h <<_ACEOF
8581#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8582_ACEOF
8583
8584fi
8585done
8586
8587
8588EXTRA_SUPPORT_SYMS=
8589ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
8590if test "x$ac_cv_func_strlcpy" = xyes; then :
8591  STRLCPY_ST_OBJ=
8592STRLCPY_OBJ=
8593else
8594  STRLCPY_ST_OBJ=strlcpy.o
8595STRLCPY_OBJ='$(OUTPRE)strlcpy.$(OBJEXT)'
8596EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_strlcpy krb5int_strlcat"
8597fi
8598
8599
8600
8601
8602ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
8603if test "x$ac_cv_func_getopt" = xyes; then :
8604  GETOPT_ST_OBJ=
8605GETOPT_OBJ=
8606
8607$as_echo "#define HAVE_GETOPT 1" >>confdefs.h
8608
8609else
8610  GETOPT_ST_OBJ='getopt.o'
8611GETOPT_OBJ='$(OUTPRE)getopt.$(OBJEXT)'
8612EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_optind k5_optarg k5_opterr k5_optopt k5_getopt"
8613fi
8614
8615
8616
8617
8618ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
8619if test "x$ac_cv_func_getopt_long" = xyes; then :
8620  GETOPT_LONG_ST_OBJ=
8621GETOPT_LONG_OBJ=
8622
8623$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
8624
8625else
8626  GETOPT_LONG_ST_OBJ='getopt_long.o'
8627GETOPT_LONG_OBJ='$(OUTPRE)getopt_long.$(OBJEXT)'
8628EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_getopt_long"
8629fi
8630
8631
8632
8633
8634ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
8635if test "x$ac_cv_func_fnmatch" = xyes; then :
8636  FNMATCH_ST_OBJ=
8637FNMATCH_OBJ=
8638else
8639  FNMATCH_ST_OBJ=fnmatch.o
8640FNMATCH_OBJ='$(OUTPRE)fnmatch.$(OBJEXT)'
8641EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_fnmatch"
8642fi
8643
8644
8645
8646
8647ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
8648if test "x$ac_cv_func_vasprintf" = xyes; then :
8649  PRINTF_ST_OBJ=
8650PRINTF_OBJ=
8651else
8652  PRINTF_ST_OBJ=printf.o
8653PRINTF_OBJ='$(OUTPRE)printf.$(OBJEXT)'
8654EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_asprintf krb5int_vasprintf"
8655fi
8656
8657
8658
8659
8660if test "x$ac_cv_func_vasprintf" = xyes; then
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if vasprintf needs a prototype provided" >&5
8662$as_echo_n "checking if vasprintf needs a prototype provided... " >&6; }
8663if ${krb5_cv_func_vasprintf_noproto+:} false; then :
8664  $as_echo_n "(cached) " >&6
8665else
8666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667/* end confdefs.h.  */
8668#include <stdarg.h>
8669#include <stdio.h>
8670
8671int
8672main ()
8673{
8674#undef vasprintf
8675struct k5foo {int foo; } xx;
8676extern int vasprintf (struct k5foo*);
8677vasprintf(&xx);
8678
8679  ;
8680  return 0;
8681}
8682_ACEOF
8683if ac_fn_c_try_compile "$LINENO"; then :
8684  krb5_cv_func_vasprintf_noproto=yes
8685else
8686  krb5_cv_func_vasprintf_noproto=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689fi
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_vasprintf_noproto" >&5
8691$as_echo "$krb5_cv_func_vasprintf_noproto" >&6; }
8692if test $krb5_cv_func_vasprintf_noproto = yes; then
8693
8694$as_echo "#define NEED_VASPRINTF_PROTO 1" >>confdefs.h
8695
8696fi
8697fi
8698
8699
8700
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if swab needs a prototype provided" >&5
8702$as_echo_n "checking if swab needs a prototype provided... " >&6; }
8703if ${krb5_cv_func_swab_noproto+:} false; then :
8704  $as_echo_n "(cached) " >&6
8705else
8706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708#include <string.h>
8709#ifdef HAVE_UNISTD_H
8710#include <unistd.h>
8711#endif
8712/* Solaris 8 declares swab in stdlib.h.  */
8713#include <stdlib.h>
8714
8715int
8716main ()
8717{
8718#undef swab
8719struct k5foo {int foo; } xx;
8720extern int swab (struct k5foo*);
8721swab(&xx);
8722
8723  ;
8724  return 0;
8725}
8726_ACEOF
8727if ac_fn_c_try_compile "$LINENO"; then :
8728  krb5_cv_func_swab_noproto=yes
8729else
8730  krb5_cv_func_swab_noproto=no
8731fi
8732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733fi
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_swab_noproto" >&5
8735$as_echo "$krb5_cv_func_swab_noproto" >&6; }
8736if test $krb5_cv_func_swab_noproto = yes; then
8737
8738$as_echo "#define NEED_SWAB_PROTO 1" >>confdefs.h
8739
8740fi
8741
8742
8743
8744ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
8745if test "x$ac_cv_func_secure_getenv" = xyes; then :
8746  SECURE_GETENV_ST_OBJ=
8747SECURE_GETENV_OBJ=
8748SECURE_GETENV_INIT=
8749else
8750  SECURE_GETENV_ST_OBJ=secure_getenv.o
8751SECURE_GETENV_OBJ='$(OUTPRE)secure_getenv.$(OBJEXT)'
8752SECURE_GETENV_INIT=k5_secure_getenv_init
8753EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS k5_secure_getenv"
8754fi
8755
8756
8757
8758
8759
8760for ac_prog in gawk mawk nawk awk
8761do
8762  # Extract the first word of "$ac_prog", so it can be a program name with args.
8763set dummy $ac_prog; ac_word=$2
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765$as_echo_n "checking for $ac_word... " >&6; }
8766if ${ac_cv_prog_AWK+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  if test -n "$AWK"; then
8770  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8771else
8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773for as_dir in $PATH
8774do
8775  IFS=$as_save_IFS
8776  test -z "$as_dir" && as_dir=.
8777    for ac_exec_ext in '' $ac_executable_extensions; do
8778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8779    ac_cv_prog_AWK="$ac_prog"
8780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781    break 2
8782  fi
8783done
8784  done
8785IFS=$as_save_IFS
8786
8787fi
8788fi
8789AWK=$ac_cv_prog_AWK
8790if test -n "$AWK"; then
8791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8792$as_echo "$AWK" >&6; }
8793else
8794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
8796fi
8797
8798
8799  test -n "$AWK" && break
8800done
8801
8802 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
8803#include <sys/socket.h>
8804"
8805if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
8806
8807$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
8808
8809
8810fi
8811
8812
8813for ac_header in sys/types.h sys/socket.h netinet/in.h netdb.h
8814do :
8815  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8816ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8818  cat >>confdefs.h <<_ACEOF
8819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8820_ACEOF
8821
8822fi
8823
8824done
8825
8826for ac_func in inet_ntop inet_pton getnameinfo
8827do :
8828  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8829ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8830if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8831  cat >>confdefs.h <<_ACEOF
8832#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8833_ACEOF
8834
8835fi
8836done
8837
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
8839$as_echo_n "checking for getaddrinfo... " >&6; }
8840if ${ac_cv_func_getaddrinfo+:} false; then :
8841  $as_echo_n "(cached) " >&6
8842else
8843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h.  */
8845#ifdef HAVE_NETDB_H
8846#include <netdb.h>
8847#endif
8848int
8849main ()
8850{
8851
8852struct addrinfo *ai;
8853getaddrinfo("kerberos.mit.edu", "echo", 0, &ai);
8854
8855  ;
8856  return 0;
8857}
8858_ACEOF
8859if ac_fn_c_try_link "$LINENO"; then :
8860  ac_cv_func_getaddrinfo=yes
8861else
8862  ac_cv_func_getaddrinfo=no
8863fi
8864rm -f core conftest.err conftest.$ac_objext \
8865    conftest$ac_exeext conftest.$ac_ext
8866fi
8867
8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
8869$as_echo "$ac_cv_func_getaddrinfo" >&6; }
8870if test $ac_cv_func_getaddrinfo = yes; then
8871
8872$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
8873
8874fi
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support without -DINET6" >&5
8876$as_echo_n "checking for IPv6 compile-time support without -DINET6... " >&6; }
8877if ${krb5_cv_inet6+:} false; then :
8878  $as_echo_n "(cached) " >&6
8879else
8880
8881if test "$ac_cv_func_inet_ntop" != "yes" ; then
8882  krb5_cv_inet6=no
8883else
8884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885/* end confdefs.h.  */
8886
8887#ifdef HAVE_SYS_TYPES_H
8888#include <sys/types.h>
8889#endif
8890#include <sys/socket.h>
8891#include <netinet/in.h>
8892#include <netdb.h>
8893
8894int
8895main ()
8896{
8897
8898  struct sockaddr_in6 in;
8899  AF_INET6;
8900  IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
8901
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906if ac_fn_c_try_compile "$LINENO"; then :
8907  krb5_cv_inet6=yes
8908else
8909  krb5_cv_inet6=no
8910fi
8911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912fi
8913
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6" >&5
8916$as_echo "$krb5_cv_inet6" >&6; }
8917if test "$krb5_cv_inet6" = no && test "$ac_cv_func_inet_ntop" = yes; then
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 compile-time support with -DINET6" >&5
8919$as_echo_n "checking for IPv6 compile-time support with -DINET6... " >&6; }
8920if ${krb5_cv_inet6_with_dinet6+:} false; then :
8921  $as_echo_n "(cached) " >&6
8922else
8923
8924old_CC="$CC"
8925CC="$CC -DINET6"
8926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927/* end confdefs.h.  */
8928
8929#ifdef HAVE_SYS_TYPES_H
8930#include <sys/types.h>
8931#endif
8932#include <sys/socket.h>
8933#include <netinet/in.h>
8934#include <netdb.h>
8935
8936int
8937main ()
8938{
8939
8940  struct sockaddr_in6 in;
8941  AF_INET6;
8942  IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
8943
8944  ;
8945  return 0;
8946}
8947_ACEOF
8948if ac_fn_c_try_compile "$LINENO"; then :
8949  krb5_cv_inet6_with_dinet6=yes
8950else
8951  krb5_cv_inet6_with_dinet6=no
8952fi
8953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954CC="$old_CC"
8955fi
8956
8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_inet6_with_dinet6" >&5
8958$as_echo "$krb5_cv_inet6_with_dinet6" >&6; }
8959fi
8960if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes; then
8961  if test "$krb5_cv_inet6_with_dinet6" = yes; then
8962
8963$as_echo "#define INET6 1" >>confdefs.h
8964
8965  fi
8966fi
8967
8968 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
8969#include <sys/socket.h>
8970"
8971if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
8972
8973$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
8974
8975
8976fi
8977
8978
8979ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
8980if test "x$ac_cv_func_sigprocmask" = xyes; then :
8981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset_t and POSIX_SIGNALS" >&5
8982$as_echo_n "checking for sigset_t and POSIX_SIGNALS... " >&6; }
8983if ${krb5_cv_type_sigset_t+:} false; then :
8984  $as_echo_n "(cached) " >&6
8985else
8986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987/* end confdefs.h.  */
8988#include <signal.h>
8989int
8990main ()
8991{
8992sigset_t x
8993  ;
8994  return 0;
8995}
8996_ACEOF
8997if ac_fn_c_try_compile "$LINENO"; then :
8998  krb5_cv_type_sigset_t=yes
8999else
9000  krb5_cv_type_sigset_t=no
9001fi
9002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003fi
9004
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_sigset_t" >&5
9006$as_echo "$krb5_cv_type_sigset_t" >&6; }
9007if test $krb5_cv_type_sigset_t = yes; then
9008
9009$as_echo "#define POSIX_SIGNALS 1" >>confdefs.h
9010
9011fi
9012
9013fi
9014
9015
9016# --with-vague-errors disables useful error messages.
9017
9018
9019# Check whether --with-vague-errors was given.
9020if test "${with_vague_errors+set}" = set; then :
9021  withval=$with_vague_errors;
9022else
9023  withval=no
9024fi
9025
9026if test "$withval" = yes; then
9027	{ $as_echo "$as_me:${as_lineno-$LINENO}: Supplying vague error messages to KDC clients" >&5
9028$as_echo "$as_me: Supplying vague error messages to KDC clients" >&6;}
9029
9030$as_echo "#define KRBCONF_VAGUE_ERRORS 1" >>confdefs.h
9031
9032fi
9033
9034# Check which (if any) audit plugin to build
9035audit_plugin=""
9036# Check whether --enable-audit-plugin was given.
9037if test "${enable_audit_plugin+set}" = set; then :
9038  enableval=$enable_audit_plugin;
9039else
9040  enableval=no
9041fi
9042
9043if test "$enableval" != no; then
9044    case "$enableval" in
9045    simple)
9046        # if audit_log_user_message is found, we assume
9047        # that audit_open and audit_close are also defined.
9048        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_message in -laudit" >&5
9049$as_echo_n "checking for audit_log_user_message in -laudit... " >&6; }
9050if ${ac_cv_lib_audit_audit_log_user_message+:} false; then :
9051  $as_echo_n "(cached) " >&6
9052else
9053  ac_check_lib_save_LIBS=$LIBS
9054LIBS="-laudit  $LIBS"
9055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h.  */
9057
9058/* Override any GCC internal prototype to avoid an error.
9059   Use char because int might match the return type of a GCC
9060   builtin and then its argument prototype would still apply.  */
9061#ifdef __cplusplus
9062extern "C"
9063#endif
9064char audit_log_user_message ();
9065int
9066main ()
9067{
9068return audit_log_user_message ();
9069  ;
9070  return 0;
9071}
9072_ACEOF
9073if ac_fn_c_try_link "$LINENO"; then :
9074  ac_cv_lib_audit_audit_log_user_message=yes
9075else
9076  ac_cv_lib_audit_audit_log_user_message=no
9077fi
9078rm -f core conftest.err conftest.$ac_objext \
9079    conftest$ac_exeext conftest.$ac_ext
9080LIBS=$ac_check_lib_save_LIBS
9081fi
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_message" >&5
9083$as_echo "$ac_cv_lib_audit_audit_log_user_message" >&6; }
9084if test "x$ac_cv_lib_audit_audit_log_user_message" = xyes; then :
9085  AUDIT_IMPL_LIBS=-laudit
9086                     ac_config_files="$ac_config_files plugins/audit/simple/Makefile:$srcdir/./config/pre.in:plugins/audit/simple/Makefile.in:plugins/audit/simple/deps:$srcdir/./config/post.in"
9087
9088
9089
9090                     audit_plugin=plugins/audit/simple
9091else
9092  as_fn_error $? "libaudit not found or undefined symbol audit_log_user_message" "$LINENO" 5
9093fi
9094
9095        ;;
9096    *)
9097        as_fn_error $? "Unknown audit plugin implementation $enableval." "$LINENO" 5
9098        ;;
9099    esac
9100fi
9101
9102
9103
9104# WITH_CRYPTO_IMPL
9105
9106CRYPTO_IMPL="builtin"
9107
9108# Check whether --with-crypto-impl was given.
9109if test "${with_crypto_impl+set}" = set; then :
9110  withval=$with_crypto_impl; CRYPTO_IMPL=$withval
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: k5crypto will use '$withval'" >&5
9112$as_echo "$as_me: k5crypto will use '$withval'" >&6;}
9113
9114else
9115  withval=builtin
9116fi
9117
9118case "$withval" in
9119builtin)
9120  ;;
9121openssl)
9122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5
9123$as_echo_n "checking for PKCS7_get_signer_info in -lcrypto... " >&6; }
9124if ${ac_cv_lib_crypto_PKCS7_get_signer_info+:} false; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  ac_check_lib_save_LIBS=$LIBS
9128LIBS="-lcrypto  $LIBS"
9129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130/* end confdefs.h.  */
9131
9132/* Override any GCC internal prototype to avoid an error.
9133   Use char because int might match the return type of a GCC
9134   builtin and then its argument prototype would still apply.  */
9135#ifdef __cplusplus
9136extern "C"
9137#endif
9138char PKCS7_get_signer_info ();
9139int
9140main ()
9141{
9142return PKCS7_get_signer_info ();
9143  ;
9144  return 0;
9145}
9146_ACEOF
9147if ac_fn_c_try_link "$LINENO"; then :
9148  ac_cv_lib_crypto_PKCS7_get_signer_info=yes
9149else
9150  ac_cv_lib_crypto_PKCS7_get_signer_info=no
9151fi
9152rm -f core conftest.err conftest.$ac_objext \
9153    conftest$ac_exeext conftest.$ac_ext
9154LIBS=$ac_check_lib_save_LIBS
9155fi
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5
9157$as_echo "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; }
9158if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes; then :
9159  cat >>confdefs.h <<_ACEOF
9160#define HAVE_LIBCRYPTO 1
9161_ACEOF
9162
9163  LIBS="-lcrypto $LIBS"
9164
9165fi
9166
9167  ;;
9168*)
9169  as_fn_error $? "Unknown crypto implementation $withval" "$LINENO" 5
9170  ;;
9171esac
9172ac_config_commands="$ac_config_commands CRYPTO_IMPL"
9173
9174
9175
9176
9177
9178
9179# Check whether --with-prng-alg was given.
9180if test "${with_prng_alg+set}" = set; then :
9181  withval=$with_prng_alg; PRNG_ALG=$withval
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: k5crypto will use '$withval'" >&5
9183$as_echo "$as_me: k5crypto will use '$withval'" >&6;}
9184
9185else
9186  PRNG_ALG=fortuna
9187fi
9188
9189ac_config_commands="$ac_config_commands PRNG_ALG"
9190
9191
9192if test "$PRNG_ALG" = fortuna; then
9193
9194$as_echo "#define FORTUNA 1" >>confdefs.h
9195
9196fi
9197
9198# WITH_TLS_IMPL
9199
9200
9201# Check whether --with-tls-impl was given.
9202if test "${with_tls_impl+set}" = set; then :
9203  withval=$with_tls_impl; TLS_IMPL=$withval
9204else
9205  TLS_IMPL=auto
9206fi
9207
9208case "$TLS_IMPL" in
9209openssl|auto)
9210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
9211$as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
9212if ${ac_cv_lib_ssl_SSL_CTX_new+:} false; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  ac_check_lib_save_LIBS=$LIBS
9216LIBS="-lssl -lcrypto $LIBS"
9217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h.  */
9219
9220/* Override any GCC internal prototype to avoid an error.
9221   Use char because int might match the return type of a GCC
9222   builtin and then its argument prototype would still apply.  */
9223#ifdef __cplusplus
9224extern "C"
9225#endif
9226char SSL_CTX_new ();
9227int
9228main ()
9229{
9230return SSL_CTX_new ();
9231  ;
9232  return 0;
9233}
9234_ACEOF
9235if ac_fn_c_try_link "$LINENO"; then :
9236  ac_cv_lib_ssl_SSL_CTX_new=yes
9237else
9238  ac_cv_lib_ssl_SSL_CTX_new=no
9239fi
9240rm -f core conftest.err conftest.$ac_objext \
9241    conftest$ac_exeext conftest.$ac_ext
9242LIBS=$ac_check_lib_save_LIBS
9243fi
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
9245$as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
9246if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes; then :
9247  have_lib_ssl=true
9248else
9249  have_lib_ssl=false
9250fi
9251
9252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
9253$as_echo_n "checking for OpenSSL... " >&6; }
9254  if test x$have_lib_ssl = xtrue ; then
9255
9256$as_echo "#define TLS_IMPL_OPENSSL 1" >>confdefs.h
9257
9258    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9259$as_echo "yes" >&6; }
9260    TLS_IMPL_LIBS="-lssl -lcrypto"
9261    TLS_IMPL=openssl
9262    { $as_echo "$as_me:${as_lineno-$LINENO}: TLS module will use OpenSSL" >&5
9263$as_echo "$as_me: TLS module will use OpenSSL" >&6;}
9264  else
9265    if test "$TLS_IMPL" = openssl ; then
9266      as_fn_error $? "OpenSSL not found!" "$LINENO" 5
9267    else
9268      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL not found!" >&5
9269$as_echo "$as_me: WARNING: OpenSSL not found!" >&2;}
9270    fi
9271    TLS_IMPL=no
9272    { $as_echo "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5
9273$as_echo "$as_me: building without TLS support" >&6;}
9274  fi
9275  ;;
9276no)
9277  { $as_echo "$as_me:${as_lineno-$LINENO}: building without TLS support" >&5
9278$as_echo "$as_me: building without TLS support" >&6;}
9279  ;;
9280*)
9281  as_fn_error $? "Unsupported TLS implementation $withval" "$LINENO" 5
9282  ;;
9283esac
9284
9285if test "$TLS_IMPL" = no; then
9286
9287$as_echo "#define TLS_IMPL_NONE 1" >>confdefs.h
9288
9289fi
9290
9291
9292
9293
9294
9295
9296# Check whether --with-keyutils was given.
9297if test "${with_keyutils+set}" = set; then :
9298  withval=$with_keyutils;
9299else
9300  with_keyutils=check
9301fi
9302
9303if test "$with_keyutils" != no; then
9304  have_keyutils=false
9305  for ac_header in keyutils.h
9306do :
9307  ac_fn_c_check_header_mongrel "$LINENO" "keyutils.h" "ac_cv_header_keyutils_h" "$ac_includes_default"
9308if test "x$ac_cv_header_keyutils_h" = xyes; then :
9309  cat >>confdefs.h <<_ACEOF
9310#define HAVE_KEYUTILS_H 1
9311_ACEOF
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_key in -lkeyutils" >&5
9313$as_echo_n "checking for add_key in -lkeyutils... " >&6; }
9314if ${ac_cv_lib_keyutils_add_key+:} false; then :
9315  $as_echo_n "(cached) " >&6
9316else
9317  ac_check_lib_save_LIBS=$LIBS
9318LIBS="-lkeyutils  $LIBS"
9319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h.  */
9321
9322/* Override any GCC internal prototype to avoid an error.
9323   Use char because int might match the return type of a GCC
9324   builtin and then its argument prototype would still apply.  */
9325#ifdef __cplusplus
9326extern "C"
9327#endif
9328char add_key ();
9329int
9330main ()
9331{
9332return add_key ();
9333  ;
9334  return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338  ac_cv_lib_keyutils_add_key=yes
9339else
9340  ac_cv_lib_keyutils_add_key=no
9341fi
9342rm -f core conftest.err conftest.$ac_objext \
9343    conftest$ac_exeext conftest.$ac_ext
9344LIBS=$ac_check_lib_save_LIBS
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_add_key" >&5
9347$as_echo "$ac_cv_lib_keyutils_add_key" >&6; }
9348if test "x$ac_cv_lib_keyutils_add_key" = xyes; then :
9349  have_keyutils=true
9350fi
9351
9352fi
9353
9354done
9355
9356  if test "$have_keyutils" = true; then
9357
9358$as_echo "#define USE_KEYRING_CCACHE 1" >>confdefs.h
9359
9360    LIBS="-lkeyutils $LIBS"
9361    # If libkeyutils supports persistent keyrings, use them.
9362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_get_persistent in -lkeyutils" >&5
9363$as_echo_n "checking for keyctl_get_persistent in -lkeyutils... " >&6; }
9364if ${ac_cv_lib_keyutils_keyctl_get_persistent+:} false; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  ac_check_lib_save_LIBS=$LIBS
9368LIBS="-lkeyutils  $LIBS"
9369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370/* end confdefs.h.  */
9371
9372/* Override any GCC internal prototype to avoid an error.
9373   Use char because int might match the return type of a GCC
9374   builtin and then its argument prototype would still apply.  */
9375#ifdef __cplusplus
9376extern "C"
9377#endif
9378char keyctl_get_persistent ();
9379int
9380main ()
9381{
9382return keyctl_get_persistent ();
9383  ;
9384  return 0;
9385}
9386_ACEOF
9387if ac_fn_c_try_link "$LINENO"; then :
9388  ac_cv_lib_keyutils_keyctl_get_persistent=yes
9389else
9390  ac_cv_lib_keyutils_keyctl_get_persistent=no
9391fi
9392rm -f core conftest.err conftest.$ac_objext \
9393    conftest$ac_exeext conftest.$ac_ext
9394LIBS=$ac_check_lib_save_LIBS
9395fi
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_get_persistent" >&5
9397$as_echo "$ac_cv_lib_keyutils_keyctl_get_persistent" >&6; }
9398if test "x$ac_cv_lib_keyutils_keyctl_get_persistent" = xyes; then :
9399
9400$as_echo "#define HAVE_PERSISTENT_KEYRING 1" >>confdefs.h
9401
9402
9403fi
9404
9405  elif test "$with_keyutils" = yes; then
9406    as_fn_error $? "libkeyutils not found" "$LINENO" 5
9407  fi
9408fi
9409
9410# The SPAKE preauth plugin currently supports edwards25519 natively,
9411# and can support three NIST groups using OpenSSL.
9412HAVE_SPAKE_OPENSSL=no
9413
9414# Check whether --with-spake-openssl was given.
9415if test "${with_spake_openssl+set}" = set; then :
9416  withval=$with_spake_openssl;
9417else
9418  withval=auto
9419fi
9420
9421if test "$withval" = auto -o "$withval" = yes; then
9422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EC_POINT_new in -lcrypto" >&5
9423$as_echo_n "checking for EC_POINT_new in -lcrypto... " >&6; }
9424if ${ac_cv_lib_crypto_EC_POINT_new+:} false; then :
9425  $as_echo_n "(cached) " >&6
9426else
9427  ac_check_lib_save_LIBS=$LIBS
9428LIBS="-lcrypto  $LIBS"
9429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9430/* end confdefs.h.  */
9431
9432/* Override any GCC internal prototype to avoid an error.
9433   Use char because int might match the return type of a GCC
9434   builtin and then its argument prototype would still apply.  */
9435#ifdef __cplusplus
9436extern "C"
9437#endif
9438char EC_POINT_new ();
9439int
9440main ()
9441{
9442return EC_POINT_new ();
9443  ;
9444  return 0;
9445}
9446_ACEOF
9447if ac_fn_c_try_link "$LINENO"; then :
9448  ac_cv_lib_crypto_EC_POINT_new=yes
9449else
9450  ac_cv_lib_crypto_EC_POINT_new=no
9451fi
9452rm -f core conftest.err conftest.$ac_objext \
9453    conftest$ac_exeext conftest.$ac_ext
9454LIBS=$ac_check_lib_save_LIBS
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EC_POINT_new" >&5
9457$as_echo "$ac_cv_lib_crypto_EC_POINT_new" >&6; }
9458if test "x$ac_cv_lib_crypto_EC_POINT_new" = xyes; then :
9459  have_crypto=true
9460else
9461  have_crypto=false
9462fi
9463
9464  if test "$have_crypto" = true; then
9465
9466$as_echo "#define SPAKE_OPENSSL 1" >>confdefs.h
9467
9468    SPAKE_OPENSSL_LIBS=-lcrypto
9469    HAVE_SPAKE_OPENSSL=yes
9470  elif test "$withval" = yes; then
9471    as_fn_error $? "OpenSSL libcrypto not found" "$LINENO" 5
9472  fi
9473fi
9474
9475
9476
9477# Check whether --enable-aesni was given.
9478if test "${enable_aesni+set}" = set; then :
9479  enableval=$enable_aesni;
9480else
9481  enable_aesni=check
9482fi
9483
9484if test "$CRYPTO_IMPL" = builtin -a "x$enable_aesni" != xno; then
9485    case "$host" in
9486    i686-*)
9487	aesni_obj=iaesx86.o
9488	aesni_machine=x86
9489	;;
9490    x86_64-*)
9491	aesni_obj=iaesx64.o
9492	aesni_machine=amd64
9493	;;
9494    esac
9495    case "$host" in
9496    *-*-linux* | *-*-gnu* | *-*-*bsd* | *-*-solaris*)
9497	# All Unix-like platforms need -D__linux__ for iaesx64.s to
9498	# use the System V x86-64 calling convention.
9499	aesni_flags="-D__linux__ -f elf -m $aesni_machine"
9500	;;
9501    esac
9502    if test "x$aesni_obj" != x && test "x$aesni_flags" != x; then
9503	# Extract the first word of "yasm", so it can be a program name with args.
9504set dummy yasm; ac_word=$2
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506$as_echo_n "checking for $ac_word... " >&6; }
9507if ${ac_cv_prog_YASM+:} false; then :
9508  $as_echo_n "(cached) " >&6
9509else
9510  if test -n "$YASM"; then
9511  ac_cv_prog_YASM="$YASM" # Let the user override the test.
9512else
9513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514for as_dir in $PATH
9515do
9516  IFS=$as_save_IFS
9517  test -z "$as_dir" && as_dir=.
9518    for ac_exec_ext in '' $ac_executable_extensions; do
9519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520    ac_cv_prog_YASM="yasm"
9521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9522    break 2
9523  fi
9524done
9525  done
9526IFS=$as_save_IFS
9527
9528fi
9529fi
9530YASM=$ac_cv_prog_YASM
9531if test -n "$YASM"; then
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5
9533$as_echo "$YASM" >&6; }
9534else
9535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536$as_echo "no" >&6; }
9537fi
9538
9539
9540	for ac_header in cpuid.h
9541do :
9542  ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
9543if test "x$ac_cv_header_cpuid_h" = xyes; then :
9544  cat >>confdefs.h <<_ACEOF
9545#define HAVE_CPUID_H 1
9546_ACEOF
9547
9548fi
9549
9550done
9551
9552	if test x"$YASM" != x -a "x$ac_cv_header_cpuid_h" = xyes; then
9553	    AESNI_OBJ=$aesni_obj
9554	    AESNI_FLAGS=$aesni_flags
9555
9556$as_echo "#define AESNI 1" >>confdefs.h
9557
9558	    { $as_echo "$as_me:${as_lineno-$LINENO}: Building with AES-NI support" >&5
9559$as_echo "$as_me: Building with AES-NI support" >&6;}
9560	fi
9561    fi
9562    if test "x$enable_aesni" = xyes -a "x$AESNI_OBJ" = x; then
9563	as_fn_error $? "AES-NI support requested but cannot be built" "$LINENO" 5
9564    fi
9565fi
9566
9567
9568
9569# Check whether --enable-kdc-lookaside-cache was given.
9570if test "${enable_kdc_lookaside_cache+set}" = set; then :
9571  enableval=$enable_kdc_lookaside_cache;
9572else
9573  enableval=yes
9574fi
9575
9576if test "$enableval" = no ; then
9577
9578$as_echo "#define NOCACHE 1" >>confdefs.h
9579
9580fi
9581KRB5_RUN_ENV="$RUN_ENV"
9582KRB5_RUN_VARS="$RUN_VARS"
9583
9584
9585
9586# asan is a gcc and clang facility to instrument the code with memory
9587# error checking.  To use it, we compile C and C++ source files with
9588# -fsanitize=address, and set ASAN=yes to suppress the undefined
9589# symbols check when building shared libraries.
9590# Check whether --enable-asan was given.
9591if test "${enable_asan+set}" = set; then :
9592  enableval=$enable_asan;
9593else
9594  enable_asan=no
9595fi
9596
9597if test "$enable_asan" != no; then
9598    if test "$enable_asan" = yes; then
9599        enable_asan=address
9600    fi
9601    ASAN_FLAGS="$DEFS -fsanitize=$enable_asan"
9602    ASAN=yes
9603    UNDEF_CHECK=
9604else
9605    ASAN_FLAGS=
9606    ASAN=no
9607fi
9608
9609
9610
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9612$as_echo_n "checking return type of signal handlers... " >&6; }
9613if ${ac_cv_type_signal+:} false; then :
9614  $as_echo_n "(cached) " >&6
9615else
9616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617/* end confdefs.h.  */
9618#include <sys/types.h>
9619#include <signal.h>
9620
9621int
9622main ()
9623{
9624return *(signal (0, 0)) (0) == 1;
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_compile "$LINENO"; then :
9630  ac_cv_type_signal=int
9631else
9632  ac_cv_type_signal=void
9633fi
9634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635fi
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9637$as_echo "$ac_cv_type_signal" >&6; }
9638
9639cat >>confdefs.h <<_ACEOF
9640#define RETSIGTYPE $ac_cv_type_signal
9641_ACEOF
9642
9643
9644
9645# from old include/configure.in
9646
9647
9648ac_config_headers="$ac_config_headers include/autoconf.h"
9649
9650for ac_prog in flex lex
9651do
9652  # Extract the first word of "$ac_prog", so it can be a program name with args.
9653set dummy $ac_prog; ac_word=$2
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655$as_echo_n "checking for $ac_word... " >&6; }
9656if ${ac_cv_prog_LEX+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  if test -n "$LEX"; then
9660  ac_cv_prog_LEX="$LEX" # Let the user override the test.
9661else
9662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663for as_dir in $PATH
9664do
9665  IFS=$as_save_IFS
9666  test -z "$as_dir" && as_dir=.
9667    for ac_exec_ext in '' $ac_executable_extensions; do
9668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669    ac_cv_prog_LEX="$ac_prog"
9670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671    break 2
9672  fi
9673done
9674  done
9675IFS=$as_save_IFS
9676
9677fi
9678fi
9679LEX=$ac_cv_prog_LEX
9680if test -n "$LEX"; then
9681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
9682$as_echo "$LEX" >&6; }
9683else
9684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685$as_echo "no" >&6; }
9686fi
9687
9688
9689  test -n "$LEX" && break
9690done
9691test -n "$LEX" || LEX=":"
9692
9693if test "x$LEX" != "x:"; then
9694  cat >conftest.l <<_ACEOF
9695%%
9696a { ECHO; }
9697b { REJECT; }
9698c { yymore (); }
9699d { yyless (1); }
9700e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
9701    yyless ((input () != 0)); }
9702f { unput (yytext[0]); }
9703. { BEGIN INITIAL; }
9704%%
9705#ifdef YYTEXT_POINTER
9706extern char *yytext;
9707#endif
9708int
9709main (void)
9710{
9711  return ! yylex () + ! yywrap ();
9712}
9713_ACEOF
9714{ { ac_try="$LEX conftest.l"
9715case "(($ac_try" in
9716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717  *) ac_try_echo=$ac_try;;
9718esac
9719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9720$as_echo "$ac_try_echo"; } >&5
9721  (eval "$LEX conftest.l") 2>&5
9722  ac_status=$?
9723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724  test $ac_status = 0; }
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
9726$as_echo_n "checking lex output file root... " >&6; }
9727if ${ac_cv_prog_lex_root+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730
9731if test -f lex.yy.c; then
9732  ac_cv_prog_lex_root=lex.yy
9733elif test -f lexyy.c; then
9734  ac_cv_prog_lex_root=lexyy
9735else
9736  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
9737fi
9738fi
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
9740$as_echo "$ac_cv_prog_lex_root" >&6; }
9741LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
9742
9743if test -z "${LEXLIB+set}"; then
9744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
9745$as_echo_n "checking lex library... " >&6; }
9746if ${ac_cv_lib_lex+:} false; then :
9747  $as_echo_n "(cached) " >&6
9748else
9749
9750    ac_save_LIBS=$LIBS
9751    ac_cv_lib_lex='none needed'
9752    for ac_lib in '' -lfl -ll; do
9753      LIBS="$ac_lib $ac_save_LIBS"
9754      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755/* end confdefs.h.  */
9756`cat $LEX_OUTPUT_ROOT.c`
9757_ACEOF
9758if ac_fn_c_try_link "$LINENO"; then :
9759  ac_cv_lib_lex=$ac_lib
9760fi
9761rm -f core conftest.err conftest.$ac_objext \
9762    conftest$ac_exeext conftest.$ac_ext
9763      test "$ac_cv_lib_lex" != 'none needed' && break
9764    done
9765    LIBS=$ac_save_LIBS
9766
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
9769$as_echo "$ac_cv_lib_lex" >&6; }
9770  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
9771fi
9772
9773
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
9775$as_echo_n "checking whether yytext is a pointer... " >&6; }
9776if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
9777  $as_echo_n "(cached) " >&6
9778else
9779  # POSIX says lex can declare yytext either as a pointer or an array; the
9780# default is implementation-dependent.  Figure out which it is, since
9781# not all implementations provide the %pointer and %array declarations.
9782ac_cv_prog_lex_yytext_pointer=no
9783ac_save_LIBS=$LIBS
9784LIBS="$LEXLIB $ac_save_LIBS"
9785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h.  */
9787
9788  #define YYTEXT_POINTER 1
9789`cat $LEX_OUTPUT_ROOT.c`
9790_ACEOF
9791if ac_fn_c_try_link "$LINENO"; then :
9792  ac_cv_prog_lex_yytext_pointer=yes
9793fi
9794rm -f core conftest.err conftest.$ac_objext \
9795    conftest$ac_exeext conftest.$ac_ext
9796LIBS=$ac_save_LIBS
9797
9798fi
9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
9800$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
9801if test $ac_cv_prog_lex_yytext_pointer = yes; then
9802
9803$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9804
9805fi
9806rm -f conftest.l $LEX_OUTPUT_ROOT.c
9807
9808fi
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9810$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9811if ${ac_cv_c_const+:} false; then :
9812  $as_echo_n "(cached) " >&6
9813else
9814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815/* end confdefs.h.  */
9816
9817int
9818main ()
9819{
9820
9821#ifndef __cplusplus
9822  /* Ultrix mips cc rejects this sort of thing.  */
9823  typedef int charset[2];
9824  const charset cs = { 0, 0 };
9825  /* SunOS 4.1.1 cc rejects this.  */
9826  char const *const *pcpcc;
9827  char **ppc;
9828  /* NEC SVR4.0.2 mips cc rejects this.  */
9829  struct point {int x, y;};
9830  static struct point const zero = {0,0};
9831  /* AIX XL C 1.02.0.0 rejects this.
9832     It does not let you subtract one const X* pointer from another in
9833     an arm of an if-expression whose if-part is not a constant
9834     expression */
9835  const char *g = "string";
9836  pcpcc = &g + (g ? g-g : 0);
9837  /* HPUX 7.0 cc rejects these. */
9838  ++pcpcc;
9839  ppc = (char**) pcpcc;
9840  pcpcc = (char const *const *) ppc;
9841  { /* SCO 3.2v4 cc rejects this sort of thing.  */
9842    char tx;
9843    char *t = &tx;
9844    char const *s = 0 ? (char *) 0 : (char const *) 0;
9845
9846    *t++ = 0;
9847    if (s) return 0;
9848  }
9849  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9850    int x[] = {25, 17};
9851    const int *foo = &x[0];
9852    ++foo;
9853  }
9854  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9855    typedef const int *iptr;
9856    iptr p = 0;
9857    ++p;
9858  }
9859  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9860       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9861    struct s { int j; const int *ap[3]; } bx;
9862    struct s *b = &bx; b->j = 5;
9863  }
9864  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9865    const int foo = 10;
9866    if (!foo) return 0;
9867  }
9868  return !cs[0] && !zero.x;
9869#endif
9870
9871  ;
9872  return 0;
9873}
9874_ACEOF
9875if ac_fn_c_try_compile "$LINENO"; then :
9876  ac_cv_c_const=yes
9877else
9878  ac_cv_c_const=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881fi
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9883$as_echo "$ac_cv_c_const" >&6; }
9884if test $ac_cv_c_const = no; then
9885
9886$as_echo "#define const /**/" >>confdefs.h
9887
9888fi
9889
9890ac_header_dirent=no
9891for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9892  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9894$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9895if eval \${$as_ac_Header+:} false; then :
9896  $as_echo_n "(cached) " >&6
9897else
9898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899/* end confdefs.h.  */
9900#include <sys/types.h>
9901#include <$ac_hdr>
9902
9903int
9904main ()
9905{
9906if ((DIR *) 0)
9907return 0;
9908  ;
9909  return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_compile "$LINENO"; then :
9913  eval "$as_ac_Header=yes"
9914else
9915  eval "$as_ac_Header=no"
9916fi
9917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918fi
9919eval ac_res=\$$as_ac_Header
9920	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9921$as_echo "$ac_res" >&6; }
9922if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9923  cat >>confdefs.h <<_ACEOF
9924#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9925_ACEOF
9926
9927ac_header_dirent=$ac_hdr; break
9928fi
9929
9930done
9931# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9932if test $ac_header_dirent = dirent.h; then
9933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9934$as_echo_n "checking for library containing opendir... " >&6; }
9935if ${ac_cv_search_opendir+:} false; then :
9936  $as_echo_n "(cached) " >&6
9937else
9938  ac_func_search_save_LIBS=$LIBS
9939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940/* end confdefs.h.  */
9941
9942/* Override any GCC internal prototype to avoid an error.
9943   Use char because int might match the return type of a GCC
9944   builtin and then its argument prototype would still apply.  */
9945#ifdef __cplusplus
9946extern "C"
9947#endif
9948char opendir ();
9949int
9950main ()
9951{
9952return opendir ();
9953  ;
9954  return 0;
9955}
9956_ACEOF
9957for ac_lib in '' dir; do
9958  if test -z "$ac_lib"; then
9959    ac_res="none required"
9960  else
9961    ac_res=-l$ac_lib
9962    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9963  fi
9964  if ac_fn_c_try_link "$LINENO"; then :
9965  ac_cv_search_opendir=$ac_res
9966fi
9967rm -f core conftest.err conftest.$ac_objext \
9968    conftest$ac_exeext
9969  if ${ac_cv_search_opendir+:} false; then :
9970  break
9971fi
9972done
9973if ${ac_cv_search_opendir+:} false; then :
9974
9975else
9976  ac_cv_search_opendir=no
9977fi
9978rm conftest.$ac_ext
9979LIBS=$ac_func_search_save_LIBS
9980fi
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9982$as_echo "$ac_cv_search_opendir" >&6; }
9983ac_res=$ac_cv_search_opendir
9984if test "$ac_res" != no; then :
9985  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9986
9987fi
9988
9989else
9990  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9991$as_echo_n "checking for library containing opendir... " >&6; }
9992if ${ac_cv_search_opendir+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  ac_func_search_save_LIBS=$LIBS
9996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998
9999/* Override any GCC internal prototype to avoid an error.
10000   Use char because int might match the return type of a GCC
10001   builtin and then its argument prototype would still apply.  */
10002#ifdef __cplusplus
10003extern "C"
10004#endif
10005char opendir ();
10006int
10007main ()
10008{
10009return opendir ();
10010  ;
10011  return 0;
10012}
10013_ACEOF
10014for ac_lib in '' x; do
10015  if test -z "$ac_lib"; then
10016    ac_res="none required"
10017  else
10018    ac_res=-l$ac_lib
10019    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10020  fi
10021  if ac_fn_c_try_link "$LINENO"; then :
10022  ac_cv_search_opendir=$ac_res
10023fi
10024rm -f core conftest.err conftest.$ac_objext \
10025    conftest$ac_exeext
10026  if ${ac_cv_search_opendir+:} false; then :
10027  break
10028fi
10029done
10030if ${ac_cv_search_opendir+:} false; then :
10031
10032else
10033  ac_cv_search_opendir=no
10034fi
10035rm conftest.$ac_ext
10036LIBS=$ac_func_search_save_LIBS
10037fi
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10039$as_echo "$ac_cv_search_opendir" >&6; }
10040ac_res=$ac_cv_search_opendir
10041if test "$ac_res" != no; then :
10042  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10043
10044fi
10045
10046fi
10047
10048ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
10049if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
10050  ac_have_decl=1
10051else
10052  ac_have_decl=0
10053fi
10054
10055cat >>confdefs.h <<_ACEOF
10056#define HAVE_DECL_STRERROR_R $ac_have_decl
10057_ACEOF
10058
10059for ac_func in strerror_r
10060do :
10061  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
10062if test "x$ac_cv_func_strerror_r" = xyes; then :
10063  cat >>confdefs.h <<_ACEOF
10064#define HAVE_STRERROR_R 1
10065_ACEOF
10066
10067fi
10068done
10069
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
10071$as_echo_n "checking whether strerror_r returns char *... " >&6; }
10072if ${ac_cv_func_strerror_r_char_p+:} false; then :
10073  $as_echo_n "(cached) " >&6
10074else
10075
10076    ac_cv_func_strerror_r_char_p=no
10077    if test $ac_cv_have_decl_strerror_r = yes; then
10078      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079/* end confdefs.h.  */
10080$ac_includes_default
10081int
10082main ()
10083{
10084
10085	  char buf[100];
10086	  char x = *strerror_r (0, buf, sizeof buf);
10087	  char *p = strerror_r (0, buf, sizeof buf);
10088	  return !p || x;
10089
10090  ;
10091  return 0;
10092}
10093_ACEOF
10094if ac_fn_c_try_compile "$LINENO"; then :
10095  ac_cv_func_strerror_r_char_p=yes
10096fi
10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10098    else
10099      # strerror_r is not declared.  Choose between
10100      # systems that have relatively inaccessible declarations for the
10101      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
10102      # former has a strerror_r that returns char*, while the latter
10103      # has a strerror_r that returns `int'.
10104      # This test should segfault on the DEC system.
10105      if test "$cross_compiling" = yes; then :
10106  :
10107else
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110$ac_includes_default
10111	extern char *strerror_r ();
10112int
10113main ()
10114{
10115char buf[100];
10116	  char x = *strerror_r (0, buf, sizeof buf);
10117	  return ! isalpha (x);
10118  ;
10119  return 0;
10120}
10121_ACEOF
10122if ac_fn_c_try_run "$LINENO"; then :
10123  ac_cv_func_strerror_r_char_p=yes
10124fi
10125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10126  conftest.$ac_objext conftest.beam conftest.$ac_ext
10127fi
10128
10129    fi
10130
10131fi
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
10133$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
10134if test $ac_cv_func_strerror_r_char_p = yes; then
10135
10136$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
10137
10138fi
10139
10140for ac_func in strdup setvbuf seteuid setresuid setreuid setegid setresgid setregid setsid flock fchmod chmod strptime geteuid setenv unsetenv getenv gmtime_r localtime_r bswap16 bswap64 mkstemp getusershell access getcwd srand48 srand srandom stat strchr strerror timegm explicit_bzero explicit_memset getresuid getresgid
10141do :
10142  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10143ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10144if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10145  cat >>confdefs.h <<_ACEOF
10146#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10147_ACEOF
10148
10149fi
10150done
10151
10152
10153ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10154if test "x$ac_cv_func_mkstemp" = xyes; then :
10155  MKSTEMP_ST_OBJ=
10156MKSTEMP_OBJ=
10157else
10158  MKSTEMP_ST_OBJ='mkstemp.o'
10159MKSTEMP_OBJ='$(OUTPRE)mkstemp.$(OBJEXT)'
10160EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_mkstemp"
10161fi
10162
10163
10164
10165
10166ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
10167if test "x$ac_cv_func_gettimeofday" = xyes; then :
10168  GETTIMEOFDAY_ST_OBJ=
10169	GETTIMEOFDAY_OBJ=
10170
10171$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
10172
10173
10174else
10175  GETTIMEOFDAY_ST_OBJ='gettimeofday.o'
10176	GETTIMEOFDAY_OBJ='$(OUTPRE)gettimeofday.$(OBJEXT)'
10177	EXTRA_SUPPORT_SYMS="$EXTRA_SUPPORT_SYMS krb5int_gettimeofday"
10178fi
10179
10180
10181
10182
10183
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist declaration" >&5
10185$as_echo_n "checking for sys_errlist declaration... " >&6; }
10186if ${krb5_cv_decl_sys_errlist+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191#include <stdio.h>
10192#include <errno.h>
10193int
10194main ()
10195{
101961+sys_nerr;
10197  ;
10198  return 0;
10199}
10200_ACEOF
10201if ac_fn_c_try_compile "$LINENO"; then :
10202  krb5_cv_decl_sys_errlist=yes
10203else
10204  krb5_cv_decl_sys_errlist=no
10205fi
10206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207fi
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_sys_errlist" >&5
10209$as_echo "$krb5_cv_decl_sys_errlist" >&6; }
10210# assume sys_nerr won't be declared w/o being in libc
10211if test $krb5_cv_decl_sys_errlist = yes; then
10212
10213$as_echo "#define SYS_ERRLIST_DECLARED 1" >>confdefs.h
10214
10215
10216$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
10217
10218else
10219  # This means that sys_errlist is not declared in errno.h, but may still
10220  # be in libc.
10221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in libc" >&5
10222$as_echo_n "checking for sys_errlist in libc... " >&6; }
10223if ${krb5_cv_var_sys_errlist+:} false; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h.  */
10228extern int sys_nerr;
10229int
10230main ()
10231{
10232if (1+sys_nerr < 0) return 1;
10233  ;
10234  return 0;
10235}
10236_ACEOF
10237if ac_fn_c_try_link "$LINENO"; then :
10238  krb5_cv_var_sys_errlist=yes
10239else
10240  krb5_cv_var_sys_errlist=no;
10241fi
10242rm -f core conftest.err conftest.$ac_objext \
10243    conftest$ac_exeext conftest.$ac_ext
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_sys_errlist" >&5
10246$as_echo "$krb5_cv_var_sys_errlist" >&6; }
10247  if test $krb5_cv_var_sys_errlist = yes; then
10248
10249$as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
10250
10251    # Do this cruft for backwards compatibility for now.
10252
10253$as_echo "#define NEED_SYS_ERRLIST 1" >>confdefs.h
10254
10255  else
10256    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys_errlist is neither in errno.h nor in libc" >&5
10257$as_echo "$as_me: WARNING: sys_errlist is neither in errno.h nor in libc" >&2;}
10258  fi
10259fi
10260for ac_header in unistd.h paths.h regex.h regexpr.h fcntl.h memory.h ifaddrs.h sys/filio.h byteswap.h machine/endian.h machine/byte_order.h sys/bswap.h endian.h pwd.h arpa/inet.h alloca.h dlfcn.h limits.h
10261do :
10262  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10263ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10264if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10265  cat >>confdefs.h <<_ACEOF
10266#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10267_ACEOF
10268
10269fi
10270
10271done
10272
10273ac_fn_c_check_header_compile "$LINENO" "regexp.h" "ac_cv_header_regexp_h" "#define INIT char *sp = instring;
10274#define GETC() (*sp++)
10275#define PEEKC() (*sp)
10276#define UNGETC(c) (--sp)
10277#define RETURN(c) return(c)
10278#define ERROR(c)
10279
10280"
10281if test "x$ac_cv_header_regexp_h" = xyes; then :
10282
10283fi
10284
10285
10286ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/types.h>
10287#include <sys/stat.h>
10288"
10289if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
10290
10291cat >>confdefs.h <<_ACEOF
10292#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
10293_ACEOF
10294
10295
10296fi
10297ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "#include <sys/types.h>
10298#include <sys/stat.h>
10299"
10300if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
10301
10302cat >>confdefs.h <<_ACEOF
10303#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
10304_ACEOF
10305
10306
10307fi
10308ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/types.h>
10309#include <sys/stat.h>
10310"
10311if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
10312
10313cat >>confdefs.h <<_ACEOF
10314#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
10315_ACEOF
10316
10317
10318fi
10319
10320
10321for ac_func in re_comp re_exec regexec
10322do :
10323  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10324ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10325if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10326  cat >>confdefs.h <<_ACEOF
10327#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10328_ACEOF
10329
10330fi
10331done
10332
10333
10334ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10335if test "x$ac_cv_type_off_t" = xyes; then :
10336
10337else
10338
10339cat >>confdefs.h <<_ACEOF
10340#define off_t long int
10341_ACEOF
10342
10343fi
10344
10345
10346# Fancy caching of perror result...
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration" >&5
10348$as_echo_n "checking for perror declaration... " >&6; }
10349if ${krb5_cv_decl_perror+:} false; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h.  */
10354#include <errno.h>
10355
10356_ACEOF
10357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10358  $EGREP "perror" >/dev/null 2>&1; then :
10359  krb5_cv_decl_perror=yes
10360else
10361  krb5_cv_decl_perror=no
10362fi
10363rm -f conftest*
10364
10365fi
10366
10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_decl_perror" >&5
10368$as_echo "$krb5_cv_decl_perror" >&6; }
10369if test $krb5_cv_decl_perror = yes; then
10370
10371$as_echo "#define HDR_HAS_PERROR 1" >>confdefs.h
10372
10373fi
10374
10375
10376if test "x$ac_cv_func_strptime" = xyes; then
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strptime needs a prototype provided" >&5
10378$as_echo_n "checking if strptime needs a prototype provided... " >&6; }
10379if ${krb5_cv_func_strptime_noproto+:} false; then :
10380  $as_echo_n "(cached) " >&6
10381else
10382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383/* end confdefs.h.  */
10384#include <time.h>
10385int
10386main ()
10387{
10388#undef strptime
10389struct k5foo {int foo; } xx;
10390extern int strptime (struct k5foo*);
10391strptime(&xx);
10392
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_c_try_compile "$LINENO"; then :
10398  krb5_cv_func_strptime_noproto=yes
10399else
10400  krb5_cv_func_strptime_noproto=no
10401fi
10402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403fi
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_strptime_noproto" >&5
10405$as_echo "$krb5_cv_func_strptime_noproto" >&6; }
10406if test $krb5_cv_func_strptime_noproto = yes; then
10407
10408$as_echo "#define NEED_STRPTIME_PROTO 1" >>confdefs.h
10409
10410fi
10411fi
10412
10413
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argument to wait is int *" >&5
10415$as_echo_n "checking if argument to wait is int *... " >&6; }
10416if ${krb5_cv_struct_wait+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421#include <sys/types.h>
10422#include <sys/wait.h>
10423extern pid_t wait(int *);
10424int
10425main ()
10426{
10427
10428  ;
10429  return 0;
10430}
10431_ACEOF
10432if ac_fn_c_try_compile "$LINENO"; then :
10433  krb5_cv_struct_wait=no
10434else
10435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437#include <sys/wait.h>
10438int
10439main ()
10440{
10441union wait i;
10442#ifdef WEXITSTATUS
10443  WEXITSTATUS (i);
10444#endif
10445
10446  ;
10447  return 0;
10448}
10449_ACEOF
10450if ac_fn_c_try_compile "$LINENO"; then :
10451  krb5_cv_struct_wait=yes
10452else
10453  krb5_cv_struct_wait=no
10454fi
10455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456fi
10457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458fi
10459
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_wait" >&5
10461$as_echo "$krb5_cv_struct_wait" >&6; }
10462if test $krb5_cv_struct_wait = no; then
10463
10464$as_echo "#define WAIT_USES_INT 1" >>confdefs.h
10465
10466fi
10467
10468
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of sigprocmask" >&5
10470$as_echo_n "checking for use of sigprocmask... " >&6; }
10471if ${krb5_cv_func_sigprocmask_use+:} false; then :
10472  $as_echo_n "(cached) " >&6
10473else
10474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476#include <signal.h>
10477int
10478main ()
10479{
10480sigprocmask(SIG_SETMASK,0,0);
10481  ;
10482  return 0;
10483}
10484_ACEOF
10485if ac_fn_c_try_link "$LINENO"; then :
10486  krb5_cv_func_sigprocmask_use=yes
10487else
10488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h.  */
10490#include <signal.h>
10491int
10492main ()
10493{
10494sigmask(1);
10495  ;
10496  return 0;
10497}
10498_ACEOF
10499if ac_fn_c_try_link "$LINENO"; then :
10500  krb5_cv_func_sigprocmask_use=no
10501else
10502  krb5_cv_func_sigprocmask_use=yes
10503fi
10504rm -f core conftest.err conftest.$ac_objext \
10505    conftest$ac_exeext conftest.$ac_ext
10506fi
10507rm -f core conftest.err conftest.$ac_objext \
10508    conftest$ac_exeext conftest.$ac_ext
10509fi
10510
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_func_sigprocmask_use" >&5
10512$as_echo "$krb5_cv_func_sigprocmask_use" >&6; }
10513if test $krb5_cv_func_sigprocmask_use = yes; then
10514
10515$as_echo "#define USE_SIGPROCMASK 1" >>confdefs.h
10516
10517fi
10518
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10520$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10521if ${ac_cv_type_uid_t+:} false; then :
10522  $as_echo_n "(cached) " >&6
10523else
10524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525/* end confdefs.h.  */
10526#include <sys/types.h>
10527
10528_ACEOF
10529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10530  $EGREP "uid_t" >/dev/null 2>&1; then :
10531  ac_cv_type_uid_t=yes
10532else
10533  ac_cv_type_uid_t=no
10534fi
10535rm -f conftest*
10536
10537fi
10538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10539$as_echo "$ac_cv_type_uid_t" >&6; }
10540if test $ac_cv_type_uid_t = no; then
10541
10542$as_echo "#define uid_t int" >>confdefs.h
10543
10544
10545$as_echo "#define gid_t int" >>confdefs.h
10546
10547fi
10548
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
10550$as_echo_n "checking type of array argument to getgroups... " >&6; }
10551if ${ac_cv_type_getgroups+:} false; then :
10552  $as_echo_n "(cached) " >&6
10553else
10554  if test "$cross_compiling" = yes; then :
10555  ac_cv_type_getgroups=cross
10556else
10557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h.  */
10559/* Thanks to Mike Rendell for this test.  */
10560$ac_includes_default
10561#define NGID 256
10562#undef MAX
10563#define MAX(x, y) ((x) > (y) ? (x) : (y))
10564
10565int
10566main ()
10567{
10568  gid_t gidset[NGID];
10569  int i, n;
10570  union { gid_t gval; long int lval; }  val;
10571
10572  val.lval = -1;
10573  for (i = 0; i < NGID; i++)
10574    gidset[i] = val.gval;
10575  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10576		 gidset);
10577  /* Exit non-zero if getgroups seems to require an array of ints.  This
10578     happens when gid_t is short int but getgroups modifies an array
10579     of ints.  */
10580  return n > 0 && gidset[n] != val.gval;
10581}
10582_ACEOF
10583if ac_fn_c_try_run "$LINENO"; then :
10584  ac_cv_type_getgroups=gid_t
10585else
10586  ac_cv_type_getgroups=int
10587fi
10588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10589  conftest.$ac_objext conftest.beam conftest.$ac_ext
10590fi
10591
10592if test $ac_cv_type_getgroups = cross; then
10593        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594/* end confdefs.h.  */
10595#include <unistd.h>
10596
10597_ACEOF
10598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10599  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
10600  ac_cv_type_getgroups=gid_t
10601else
10602  ac_cv_type_getgroups=int
10603fi
10604rm -f conftest*
10605
10606fi
10607fi
10608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
10609$as_echo "$ac_cv_type_getgroups" >&6; }
10610
10611cat >>confdefs.h <<_ACEOF
10612#define GETGROUPS_T $ac_cv_type_getgroups
10613_ACEOF
10614
10615
10616
10617ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
10618if test "x$ac_cv_func_sigsetjmp" = xyes; then :
10619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigjmp_buf" >&5
10620$as_echo_n "checking for sigjmp_buf... " >&6; }
10621if ${krb5_cv_struct_sigjmp_buf+:} false; then :
10622  $as_echo_n "(cached) " >&6
10623else
10624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626#include <setjmp.h>
10627int
10628main ()
10629{
10630sigjmp_buf x
10631  ;
10632  return 0;
10633}
10634_ACEOF
10635if ac_fn_c_try_compile "$LINENO"; then :
10636  krb5_cv_struct_sigjmp_buf=yes
10637else
10638  krb5_cv_struct_sigjmp_buf=no
10639fi
10640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641fi
10642
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_struct_sigjmp_buf" >&5
10644$as_echo "$krb5_cv_struct_sigjmp_buf" >&6; }
10645if test $krb5_cv_struct_sigjmp_buf = yes; then
10646
10647$as_echo "#define POSIX_SETJMP 1" >>confdefs.h
10648
10649fi
10650
10651fi
10652
10653
10654# *rpcent return types needed for lib/rpc
10655
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5
10657$as_echo_n "checking return type of setrpcent... " >&6; }
10658if ${k5_cv_type_setrpcent+:} false; then :
10659  $as_echo_n "(cached) " >&6
10660else
10661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662/* end confdefs.h.  */
10663#include <netdb.h>
10664#ifdef __cplusplus
10665extern "C"
10666#endif
10667extern void setrpcent();
10668int
10669main ()
10670{
10671int i;
10672  ;
10673  return 0;
10674}
10675_ACEOF
10676if ac_fn_c_try_compile "$LINENO"; then :
10677  k5_cv_type_setrpcent=void
10678else
10679  k5_cv_type_setrpcent=int
10680fi
10681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682fi
10683
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5
10685$as_echo "$k5_cv_type_setrpcent" >&6; }
10686
10687cat >>confdefs.h <<_ACEOF
10688#define SETRPCENT_TYPE $k5_cv_type_setrpcent
10689_ACEOF
10690
10691
10692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5
10693$as_echo_n "checking return type of endrpcent... " >&6; }
10694if ${k5_cv_type_endrpcent+:} false; then :
10695  $as_echo_n "(cached) " >&6
10696else
10697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698/* end confdefs.h.  */
10699#include <netdb.h>
10700#ifdef __cplusplus
10701extern "C"
10702#endif
10703extern void endrpcent();
10704int
10705main ()
10706{
10707int i;
10708  ;
10709  return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_compile "$LINENO"; then :
10713  k5_cv_type_endrpcent=void
10714else
10715  k5_cv_type_endrpcent=int
10716fi
10717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10718fi
10719
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5
10721$as_echo "$k5_cv_type_endrpcent" >&6; }
10722
10723cat >>confdefs.h <<_ACEOF
10724#define ENDRPCENT_TYPE $k5_cv_type_endrpcent
10725_ACEOF
10726
10727
10728
10729# bswap_16 is a macro in byteswap.h under GNU libc
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_16" >&5
10731$as_echo_n "checking for bswap_16... " >&6; }
10732if ${krb5_cv_bswap_16+:} false; then :
10733  $as_echo_n "(cached) " >&6
10734else
10735
10736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737/* end confdefs.h.  */
10738#if HAVE_BYTESWAP_H
10739#include <byteswap.h>
10740#endif
10741int
10742main ()
10743{
10744bswap_16(37);
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749if ac_fn_c_try_link "$LINENO"; then :
10750  krb5_cv_bswap_16=yes
10751else
10752  krb5_cv_bswap_16=no
10753fi
10754rm -f core conftest.err conftest.$ac_objext \
10755    conftest$ac_exeext conftest.$ac_ext
10756fi
10757
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_16" >&5
10759$as_echo "$krb5_cv_bswap_16" >&6; }
10760if test "$krb5_cv_bswap_16" = yes; then
10761
10762$as_echo "#define HAVE_BSWAP_16 1" >>confdefs.h
10763
10764fi
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap_64" >&5
10766$as_echo_n "checking for bswap_64... " >&6; }
10767if ${krb5_cv_bswap_64+:} false; then :
10768  $as_echo_n "(cached) " >&6
10769else
10770
10771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h.  */
10773#if HAVE_BYTESWAP_H
10774#include <byteswap.h>
10775#endif
10776int
10777main ()
10778{
10779bswap_64(37);
10780  ;
10781  return 0;
10782}
10783_ACEOF
10784if ac_fn_c_try_link "$LINENO"; then :
10785  krb5_cv_bswap_64=yes
10786else
10787  krb5_cv_bswap_64=no
10788fi
10789rm -f core conftest.err conftest.$ac_objext \
10790    conftest$ac_exeext conftest.$ac_ext
10791fi
10792
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_bswap_64" >&5
10794$as_echo "$krb5_cv_bswap_64" >&6; }
10795if test "$krb5_cv_bswap_64" = yes; then
10796
10797$as_echo "#define HAVE_BSWAP_64 1" >>confdefs.h
10798
10799fi
10800
10801# Needed for ksu and some appl stuff.
10802
10803case $krb5_cv_host in
10804alpha*-dec-osf*)
10805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setluid in -lsecurity" >&5
10806$as_echo_n "checking for setluid in -lsecurity... " >&6; }
10807if ${ac_cv_lib_security_setluid+:} false; then :
10808  $as_echo_n "(cached) " >&6
10809else
10810  ac_check_lib_save_LIBS=$LIBS
10811LIBS="-lsecurity  $LIBS"
10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h.  */
10814
10815/* Override any GCC internal prototype to avoid an error.
10816   Use char because int might match the return type of a GCC
10817   builtin and then its argument prototype would still apply.  */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char setluid ();
10822int
10823main ()
10824{
10825return setluid ();
10826  ;
10827  return 0;
10828}
10829_ACEOF
10830if ac_fn_c_try_link "$LINENO"; then :
10831  ac_cv_lib_security_setluid=yes
10832else
10833  ac_cv_lib_security_setluid=no
10834fi
10835rm -f core conftest.err conftest.$ac_objext \
10836    conftest$ac_exeext conftest.$ac_ext
10837LIBS=$ac_check_lib_save_LIBS
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_setluid" >&5
10840$as_echo "$ac_cv_lib_security_setluid" >&6; }
10841if test "x$ac_cv_lib_security_setluid" = xyes; then :
10842
10843$as_echo "#define HAVE_SETLUID 1" >>confdefs.h
10844
10845		KSU_LIBS="-lsecurity"
10846
10847fi
10848
10849	;;
10850esac
10851
10852
10853if test $ac_cv_func_setenv = no || test $ac_cv_func_unsetenv = no \
10854  || test $ac_cv_func_getenv = no; then
10855  SETENVOBJ=setenv.o
10856else
10857  SETENVOBJ=
10858fi
10859
10860
10861# Check what the return types for gethostbyname_r and getservbyname_r are.
10862
10863ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
10864if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
10865
10866ac_cv_func_gethostbyname_r=yes
10867if test "$ac_cv_func_gethostbyname_r" = yes; then
10868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns an int" >&5
10869$as_echo_n "checking if gethostbyname_r returns an int... " >&6; }
10870  if ${krb5_cv_gethostbyname_r_returns_int+:} false; then :
10871  $as_echo_n "(cached) " >&6
10872else
10873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874/* end confdefs.h.  */
10875#include <netdb.h>
10876  extern int gethostbyname_r ();
10877int
10878main ()
10879{
108801;
10881  ;
10882  return 0;
10883}
10884_ACEOF
10885if ac_fn_c_try_compile "$LINENO"; then :
10886  krb5_cv_gethostbyname_r_returns_int=yes
10887else
10888  krb5_cv_gethostbyname_r_returns_int=no
10889fi
10890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891fi
10892
10893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_int" >&5
10894$as_echo "$krb5_cv_gethostbyname_r_returns_int" >&6; }
10895
10896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r returns a pointer" >&5
10897$as_echo_n "checking if gethostbyname_r returns a pointer... " >&6; }
10898  if ${krb5_cv_gethostbyname_r_returns_ptr+:} false; then :
10899  $as_echo_n "(cached) " >&6
10900else
10901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902/* end confdefs.h.  */
10903#include <netdb.h>
10904  extern struct hostent *gethostbyname_r ();
10905int
10906main ()
10907{
109081;
10909  ;
10910  return 0;
10911}
10912_ACEOF
10913if ac_fn_c_try_compile "$LINENO"; then :
10914  krb5_cv_gethostbyname_r_returns_ptr=yes
10915else
10916  krb5_cv_gethostbyname_r_returns_ptr=no
10917fi
10918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919fi
10920
10921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gethostbyname_r_returns_ptr" >&5
10922$as_echo "$krb5_cv_gethostbyname_r_returns_ptr" >&6; }
10923
10924  if test "$krb5_cv_gethostbyname_r_returns_int" = "$krb5_cv_gethostbyname_r_returns_ptr"; then
10925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&5
10926$as_echo "$as_me: WARNING: cannot determine return type of gethostbyname_r -- disabling" >&2;}
10927    ac_cv_func_gethostbyname_r=no
10928  fi
10929  if test "$krb5_cv_gethostbyname_r_returns_int" = yes; then
10930
10931$as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
10932
10933  fi
10934fi
10935if test "$ac_cv_func_gethostbyname_r" = yes; then
10936
10937$as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
10938
10939  ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
10940if test "x$ac_cv_func_gethostbyaddr_r" = xyes; then :
10941
10942fi
10943
10944fi
10945
10946fi
10947
10948
10949
10950# PTHREAD_CFLAGS changes which variant of these functions is declared
10951# on Solaris 11, so use it for these tests.
10952old_CFLAGS=$CFLAGS
10953CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10954ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
10955if test "x$ac_cv_func_getpwnam_r" = xyes; then :
10956  ac_cv_func_getpwnam_r=yes
10957else
10958  ac_cv_func_getpwnam_r=no
10959fi
10960
10961ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
10962if test "x$ac_cv_func_getpwuid_r" = xyes; then :
10963  ac_cv_func_getpwuid_r=yes
10964else
10965  ac_cv_func_getpwuid_r=no
10966fi
10967
10968if test "$ac_cv_func_getpwnam_r" = yes; then
10969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of getpwnam_r" >&5
10970$as_echo_n "checking return type of getpwnam_r... " >&6; }
10971  if ${krb5_cv_getpwnam_r_return_type+:} false; then :
10972  $as_echo_n "(cached) " >&6
10973else
10974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976#include <pwd.h>
10977   extern int getpwnam_r();
10978int
10979main ()
10980{
109811;
10982  ;
10983  return 0;
10984}
10985_ACEOF
10986if ac_fn_c_try_compile "$LINENO"; then :
10987  getpwnam_r_returns_int=yes
10988else
10989  getpwnam_r_returns_int=no
10990fi
10991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993/* end confdefs.h.  */
10994#include <pwd.h>
10995   extern struct passwd *getpwnam_r();
10996int
10997main ()
10998{
109991;
11000  ;
11001  return 0;
11002}
11003_ACEOF
11004if ac_fn_c_try_compile "$LINENO"; then :
11005  getpwnam_r_returns_ptr=yes
11006else
11007  getpwnam_r_returns_ptr=no
11008fi
11009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010   case "$getpwnam_r_returns_int/$getpwnam_r_returns_ptr" in
11011     yes/no) krb5_cv_getpwnam_r_return_type=int ;;
11012     no/yes) krb5_cv_getpwnam_r_return_type=ptr ;;
11013     *) krb5_cv_getpwnam_r_return_type=unknown ;;
11014   esac
11015fi
11016
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_return_type" >&5
11018$as_echo "$krb5_cv_getpwnam_r_return_type" >&6; }
11019  if test $krb5_cv_getpwnam_r_return_type = int; then
11020
11021$as_echo "#define GETPWNAM_R_RETURNS_INT 1" >>confdefs.h
11022
11023  elif test $krb5_cv_getpwnam_r_return_type = unknown; then
11024    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&5
11025$as_echo "$as_me: WARNING: Cannot determine getpwnam_r return type, disabling getpwnam_r" >&2;}
11026    ac_cv_func_getpwnam_r=no
11027  fi
11028fi
11029if test "$ac_cv_func_getpwnam_r" = yes; then
11030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to getpwnam_r" >&5
11031$as_echo_n "checking number of arguments to getpwnam_r... " >&6; }
11032  if ${krb5_cv_getpwnam_r_args+:} false; then :
11033  $as_echo_n "(cached) " >&6
11034else
11035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037#include <pwd.h>
11038   struct passwd pwx; char buf[1024];
11039int
11040main ()
11041{
11042getpwnam_r("", &pwx, buf, sizeof(buf));
11043  ;
11044  return 0;
11045}
11046_ACEOF
11047if ac_fn_c_try_compile "$LINENO"; then :
11048  args4=yes
11049else
11050  args4=no
11051fi
11052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054/* end confdefs.h.  */
11055#include <pwd.h>
11056   struct passwd pwx, *p; char buf[1024];
11057int
11058main ()
11059{
11060getpwnam_r("", &pwx, buf, sizeof(buf), &p);
11061  ;
11062  return 0;
11063}
11064_ACEOF
11065if ac_fn_c_try_compile "$LINENO"; then :
11066  args5=yes
11067else
11068  args5=no
11069fi
11070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071   case $args4/$args5 in
11072     yes/no) krb5_cv_getpwnam_r_args=4 ;;
11073     no/yes) krb5_cv_getpwnam_r_args=5 ;;
11074     *) krb5_cv_getpwnam_r_args=unknown ;;
11075   esac
11076fi
11077
11078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getpwnam_r_args" >&5
11079$as_echo "$krb5_cv_getpwnam_r_args" >&6; }
11080  if test "$krb5_cv_getpwnam_r_args" = unknown; then
11081    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&5
11082$as_echo "$as_me: WARNING: Cannot determine number of arguments to getpwnam_r, disabling its use." >&2;}
11083    ac_cv_func_getpwnam_r=no
11084  else
11085
11086$as_echo "#define HAVE_GETPWNAM_R 1" >>confdefs.h
11087
11088    if test "$krb5_cv_getpwnam_r_args" = 4; then
11089
11090$as_echo "#define GETPWNAM_R_4_ARGS 1" >>confdefs.h
11091
11092    fi
11093  fi
11094fi
11095CFLAGS=$old_CFLAGS
11096
11097if test "$ac_cv_func_getpwnam_r" = no && test "$ac_cv_func_getpwuid_r" = yes; then
11098  # Actually, we could do this check, and the corresponding checks
11099  # for return type and number of arguments, but I doubt we'll run
11100  # into a system where we'd get to use getpwuid_r but not getpwnam_r.
11101  { $as_echo "$as_me:${as_lineno-$LINENO}: getpwnam_r not useful, so disabling getpwuid_r too" >&5
11102$as_echo "$as_me: getpwnam_r not useful, so disabling getpwuid_r too" >&6;}
11103  ac_cv_func_getpwuid_r=no
11104fi
11105if test "$ac_cv_func_getpwuid_r" = yes; then
11106
11107$as_echo "#define HAVE_GETPWUID_R 1" >>confdefs.h
11108
11109  # Hack: Assume getpwuid_r is the shorter form if getpwnam_r is.
11110  if test "$krb5_cv_getpwnam_r_args" = 4; then
11111
11112$as_echo "#define GETPWUID_R_4_ARGS 1" >>confdefs.h
11113
11114  fi
11115fi
11116
11117if test "$ac_cv_func_gmtime_r" = yes; then
11118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gmtime_r returns int" >&5
11119$as_echo_n "checking whether gmtime_r returns int... " >&6; }
11120  if ${krb5_cv_gmtime_r_returns_int+:} false; then :
11121  $as_echo_n "(cached) " >&6
11122else
11123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124/* end confdefs.h.  */
11125#include <time.h>
11126   extern int gmtime_r ();
11127int
11128main ()
11129{
111301;
11131  ;
11132  return 0;
11133}
11134_ACEOF
11135if ac_fn_c_try_compile "$LINENO"; then :
11136  return_int=yes
11137else
11138  return_int=no
11139fi
11140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142/* end confdefs.h.  */
11143#include <time.h>
11144   extern struct tm *gmtime_r ();
11145int
11146main ()
11147{
111481;
11149  ;
11150  return 0;
11151}
11152_ACEOF
11153if ac_fn_c_try_compile "$LINENO"; then :
11154  return_ptr=yes
11155else
11156  return_ptr=no
11157fi
11158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159   case $return_int/$return_ptr in
11160     yes/no) krb5_cv_gmtime_r_returns_int=yes ;;
11161     no/yes) krb5_cv_gmtime_r_returns_int=no ;;
11162     *)      # Can't figure it out, punt the function.
11163             ac_cv_func_gmtime_r=no ;;
11164   esac
11165fi
11166
11167  if test "$ac_cv_func_gmtime_r" = no; then
11168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- ignoring gmtime_r" >&5
11169$as_echo "unknown -- ignoring gmtime_r" >&6; }
11170  else
11171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_gmtime_r_returns_int" >&5
11172$as_echo "$krb5_cv_gmtime_r_returns_int" >&6; }
11173    if test "$krb5_cv_gmtime_r_returns_int" = yes; then
11174
11175$as_echo "#define GMTIME_R_RETURNS_INT 1" >>confdefs.h
11176
11177    fi
11178  fi
11179fi
11180
11181ac_fn_c_check_func "$LINENO" "getservbyname_r" "ac_cv_func_getservbyname_r"
11182if test "x$ac_cv_func_getservbyname_r" = xyes; then :
11183
11184ac_cv_func_getservbyname_r=yes
11185if test "$ac_cv_func_getservbyname_r" = yes; then
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns an int" >&5
11187$as_echo_n "checking if getservbyname_r returns an int... " >&6; }
11188  if ${krb5_cv_getservbyname_r_returns_int+:} false; then :
11189  $as_echo_n "(cached) " >&6
11190else
11191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192/* end confdefs.h.  */
11193#include <netdb.h>
11194  extern int getservbyname_r ();
11195int
11196main ()
11197{
111981;
11199  ;
11200  return 0;
11201}
11202_ACEOF
11203if ac_fn_c_try_compile "$LINENO"; then :
11204  krb5_cv_getservbyname_r_returns_int=yes
11205else
11206  krb5_cv_getservbyname_r_returns_int=no
11207fi
11208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11209fi
11210
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_int" >&5
11212$as_echo "$krb5_cv_getservbyname_r_returns_int" >&6; }
11213
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyname_r returns a pointer" >&5
11215$as_echo_n "checking if getservbyname_r returns a pointer... " >&6; }
11216  if ${krb5_cv_getservbyname_r_returns_ptr+:} false; then :
11217  $as_echo_n "(cached) " >&6
11218else
11219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220/* end confdefs.h.  */
11221#include <netdb.h>
11222  extern struct servent *getservbyname_r ();
11223int
11224main ()
11225{
112261;
11227  ;
11228  return 0;
11229}
11230_ACEOF
11231if ac_fn_c_try_compile "$LINENO"; then :
11232  krb5_cv_getservbyname_r_returns_ptr=yes
11233else
11234  krb5_cv_getservbyname_r_returns_ptr=no
11235fi
11236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237fi
11238
11239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_getservbyname_r_returns_ptr" >&5
11240$as_echo "$krb5_cv_getservbyname_r_returns_ptr" >&6; }
11241
11242  if test "$krb5_cv_getservbyname_r_returns_int" = "$krb5_cv_getservbyname_r_returns_ptr"; then
11243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine return type of getservbyname_r -- disabling" >&5
11244$as_echo "$as_me: WARNING: cannot determine return type of getservbyname_r -- disabling" >&2;}
11245    ac_cv_func_getservbyname_r=no
11246  fi
11247  if test "$krb5_cv_getservbyname_r_returns_int" = yes; then
11248
11249$as_echo "#define GETSERVBYNAME_R_RETURNS_INT 1" >>confdefs.h
11250
11251  fi
11252fi
11253if test "$ac_cv_func_getservbyname_r" = yes; then
11254
11255$as_echo "#define HAVE_GETSERVBYNAME_R 1" >>confdefs.h
11256
11257  ac_fn_c_check_func "$LINENO" "getservbyport_r" "ac_cv_func_getservbyport_r"
11258if test "x$ac_cv_func_getservbyport_r" = xyes; then :
11259
11260fi
11261
11262fi
11263
11264fi
11265
11266
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yylineno declaration" >&5
11268$as_echo_n "checking for yylineno declaration... " >&6; }
11269if ${krb5_cv_type_yylineno+:} false; then :
11270  $as_echo_n "(cached) " >&6
11271else
11272  # some systems have yylineno, others don't...
11273  echo '%%
11274%%' | ${LEX} -t > conftest.out
11275  if egrep yylineno conftest.out >/dev/null 2>&1; then
11276	krb5_cv_type_yylineno=yes
11277  else
11278	krb5_cv_type_yylineno=no
11279  fi
11280  rm -f conftest.out
11281fi
11282
11283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_yylineno" >&5
11284$as_echo "$krb5_cv_type_yylineno" >&6; }
11285  if test $krb5_cv_type_yylineno = no; then
11286
11287$as_echo "#define NO_YYLINENO 1" >>confdefs.h
11288
11289  fi
11290
11291
11292ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11293if test "x$ac_cv_header_dirent_h" = xyes; then :
11294
11295$as_echo "#define USE_DIRENT_H 1" >>confdefs.h
11296
11297fi
11298
11299
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11301$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11302if ${ac_cv_type_uid_t+:} false; then :
11303  $as_echo_n "(cached) " >&6
11304else
11305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h.  */
11307#include <sys/types.h>
11308
11309_ACEOF
11310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11311  $EGREP "uid_t" >/dev/null 2>&1; then :
11312  ac_cv_type_uid_t=yes
11313else
11314  ac_cv_type_uid_t=no
11315fi
11316rm -f conftest*
11317
11318fi
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11320$as_echo "$ac_cv_type_uid_t" >&6; }
11321if test $ac_cv_type_uid_t = no; then
11322
11323$as_echo "#define uid_t int" >>confdefs.h
11324
11325
11326$as_echo "#define gid_t int" >>confdefs.h
11327
11328fi
11329
11330
11331ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11332if test "x$ac_cv_header_termios_h" = xyes; then :
11333  ac_fn_c_check_func "$LINENO" "tcsetattr" "ac_cv_func_tcsetattr"
11334if test "x$ac_cv_func_tcsetattr" = xyes; then :
11335
11336$as_echo "#define POSIX_TERMIOS 1" >>confdefs.h
11337
11338fi
11339
11340fi
11341
11342
11343
11344
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX signal handlers" >&5
11346$as_echo_n "checking POSIX signal handlers... " >&6; }
11347if ${krb5_cv_has_posix_signals+:} false; then :
11348  $as_echo_n "(cached) " >&6
11349else
11350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351/* end confdefs.h.  */
11352#include <sys/types.h>
11353#include <signal.h>
11354#ifdef signal
11355#undef signal
11356#endif
11357extern void (*signal ()) ();
11358int
11359main ()
11360{
11361
11362  ;
11363  return 0;
11364}
11365_ACEOF
11366if ac_fn_c_try_compile "$LINENO"; then :
11367  krb5_cv_has_posix_signals=yes
11368else
11369  krb5_cv_has_posix_signals=no
11370fi
11371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372fi
11373
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_posix_signals" >&5
11375$as_echo "$krb5_cv_has_posix_signals" >&6; }
11376if test $krb5_cv_has_posix_signals = yes; then
11377   stype=void
11378
11379$as_echo "#define POSIX_SIGTYPE 1" >>confdefs.h
11380
11381else
11382  if test $ac_cv_type_signal = void; then
11383     stype=void
11384  else
11385     stype=int
11386  fi
11387fi
11388
11389cat >>confdefs.h <<_ACEOF
11390#define krb5_sigtype $stype
11391_ACEOF
11392
11393for ac_header in poll.h stdlib.h string.h stddef.h sys/types.h sys/file.h sys/param.h sys/stat.h sys/time.h netinet/in.h sys/uio.h sys/filio.h sys/select.h time.h paths.h errno.h
11394do :
11395  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11396ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11397if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11398  cat >>confdefs.h <<_ACEOF
11399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11400_ACEOF
11401
11402fi
11403
11404done
11405
11406
11407# If compiling with IPv6 support, test if in6addr_any functions.
11408# Irix 6.5.16 defines it, but lacks support in the C library.
11409if test $krb5_cv_inet6 = yes || test "$krb5_cv_inet6_with_dinet6" = yes ; then
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any definition in library" >&5
11411$as_echo_n "checking for in6addr_any definition in library... " >&6; }
11412if ${krb5_cv_var_in6addr_any+:} false; then :
11413  $as_echo_n "(cached) " >&6
11414else
11415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416/* end confdefs.h.  */
11417
11418#ifdef HAVE_SYS_TYPES_H
11419#include <sys/types.h>
11420#endif
11421#include <sys/socket.h>
11422#include <netinet/in.h>
11423#include <netdb.h>
11424
11425int
11426main ()
11427{
11428
11429  struct sockaddr_in6 in;
11430  in.sin6_addr = in6addr_any;
11431  printf("%x", &in);
11432
11433  ;
11434  return 0;
11435}
11436_ACEOF
11437if ac_fn_c_try_link "$LINENO"; then :
11438  krb5_cv_var_in6addr_any=yes
11439else
11440  krb5_cv_var_in6addr_any=no
11441fi
11442rm -f core conftest.err conftest.$ac_objext \
11443    conftest$ac_exeext conftest.$ac_ext
11444fi
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_var_in6addr_any" >&5
11446$as_echo "$krb5_cv_var_in6addr_any" >&6; }
11447  if test $krb5_cv_var_in6addr_any = no; then
11448
11449$as_echo "#define NEED_INSIXADDR_ANY 1" >>confdefs.h
11450
11451  fi
11452fi
11453
11454# then from osconf.h, we have
11455
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11457$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11458if ${ac_cv_header_time+:} false; then :
11459  $as_echo_n "(cached) " >&6
11460else
11461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h.  */
11463#include <sys/types.h>
11464#include <sys/time.h>
11465#include <time.h>
11466
11467int
11468main ()
11469{
11470if ((struct tm *) 0)
11471return 0;
11472  ;
11473  return 0;
11474}
11475_ACEOF
11476if ac_fn_c_try_compile "$LINENO"; then :
11477  ac_cv_header_time=yes
11478else
11479  ac_cv_header_time=no
11480fi
11481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482fi
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11484$as_echo "$ac_cv_header_time" >&6; }
11485if test $ac_cv_header_time = yes; then
11486
11487$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11488
11489fi
11490
11491ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
11492if test "x$ac_cv_type_time_t" = xyes; then :
11493
11494else
11495
11496cat >>confdefs.h <<_ACEOF
11497#define time_t long
11498_ACEOF
11499
11500fi
11501
11502# The cast to long int works around a bug in the HP C Compiler
11503# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11504# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11505# This bug is HP SR number 8606223364.
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
11507$as_echo_n "checking size of time_t... " >&6; }
11508if ${ac_cv_sizeof_time_t+:} false; then :
11509  $as_echo_n "(cached) " >&6
11510else
11511  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
11512
11513else
11514  if test "$ac_cv_type_time_t" = yes; then
11515     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11517as_fn_error 77 "cannot compute sizeof (time_t)
11518See \`config.log' for more details" "$LINENO" 5; }
11519   else
11520     ac_cv_sizeof_time_t=0
11521   fi
11522fi
11523
11524fi
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
11526$as_echo "$ac_cv_sizeof_time_t" >&6; }
11527
11528
11529
11530cat >>confdefs.h <<_ACEOF
11531#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11532_ACEOF
11533
11534
11535SIZEOF_TIME_T=$ac_cv_sizeof_time_t
11536
11537
11538# Determine where to put the replay cache.
11539
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for replay cache directory" >&5
11541$as_echo_n "checking for replay cache directory... " >&6; }
11542if ${krb5_cv_sys_rcdir+:} false; then :
11543  $as_echo_n "(cached) " >&6
11544else
11545
11546if test $cross_compiling = yes; then
11547	krb5_cv_sys_rcdir=/var/tmp
11548else
11549	for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
11550		test -d $t_dir || continue
11551		krb5_cv_sys_rcdir=$t_dir
11552		break
11553	done
11554fi
11555fi
11556
11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_sys_rcdir" >&5
11558$as_echo "$krb5_cv_sys_rcdir" >&6; }
11559KRB5_RCTMPDIR=$krb5_cv_sys_rcdir
11560
11561
11562
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
11564$as_echo_n "checking for socklen_t... " >&6; }
11565if ${krb5_cv_has_type_socklen_t+:} false; then :
11566  $as_echo_n "(cached) " >&6
11567else
11568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569/* end confdefs.h.  */
11570#include <sys/types.h>
11571#include <sys/socket.h>
11572
11573int
11574main ()
11575{
11576sizeof (socklen_t);
11577  ;
11578  return 0;
11579}
11580_ACEOF
11581if ac_fn_c_try_compile "$LINENO"; then :
11582  krb5_cv_has_type_socklen_t=yes
11583else
11584  krb5_cv_has_type_socklen_t=no
11585fi
11586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587fi
11588
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_type_socklen_t" >&5
11590$as_echo "$krb5_cv_has_type_socklen_t" >&6; }
11591if test $krb5_cv_has_type_socklen_t = yes; then
11592
11593$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11594
11595fi
11596
11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lifconf" >&5
11598$as_echo_n "checking for struct lifconf... " >&6; }
11599if ${krb5_cv_has_struct_lifconf+:} false; then :
11600  $as_echo_n "(cached) " >&6
11601else
11602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603/* end confdefs.h.  */
11604#include <sys/socket.h>
11605#include <net/if.h>
11606
11607int
11608main ()
11609{
11610sizeof (struct lifconf);
11611  ;
11612  return 0;
11613}
11614_ACEOF
11615if ac_fn_c_try_compile "$LINENO"; then :
11616  krb5_cv_has_struct_lifconf=yes
11617else
11618  krb5_cv_has_struct_lifconf=no
11619fi
11620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621fi
11622
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_lifconf" >&5
11624$as_echo "$krb5_cv_has_struct_lifconf" >&6; }
11625if test $krb5_cv_has_struct_lifconf = yes; then
11626
11627$as_echo "#define HAVE_STRUCT_LIFCONF 1" >>confdefs.h
11628
11629fi
11630# HP-UX 11 uses stuct if_laddrconf
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
11632$as_echo_n "checking for struct if_laddrconf... " >&6; }
11633if ${krb5_cv_has_struct_if_laddrconf+:} false; then :
11634  $as_echo_n "(cached) " >&6
11635else
11636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637/* end confdefs.h.  */
11638#include <sys/socket.h>
11639#include <net/if.h>
11640#include <net/if6.h>
11641
11642int
11643main ()
11644{
11645sizeof (struct if_laddrconf);
11646  ;
11647  return 0;
11648}
11649_ACEOF
11650if ac_fn_c_try_compile "$LINENO"; then :
11651  krb5_cv_has_struct_if_laddrconf=yes
11652else
11653  krb5_cv_has_struct_if_laddrconf=no
11654fi
11655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656fi
11657
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_has_struct_if_laddrconf" >&5
11659$as_echo "$krb5_cv_has_struct_if_laddrconf" >&6; }
11660if test $krb5_cv_has_struct_if_laddrconf = yes; then
11661
11662$as_echo "#define HAVE_STRUCT_IF_LADDRCONF 1" >>confdefs.h
11663
11664fi
11665
11666
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
11668$as_echo_n "checking for h_errno in netdb.h... " >&6; }
11669if ${krb5_cv_header_netdb_h_h_errno+:} false; then :
11670  $as_echo_n "(cached) " >&6
11671else
11672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673/* end confdefs.h.  */
11674#include <netdb.h>
11675int
11676main ()
11677{
11678int x = h_errno;
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683if ac_fn_c_try_compile "$LINENO"; then :
11684  krb5_cv_header_netdb_h_h_errno=yes
11685else
11686  krb5_cv_header_netdb_h_h_errno=no
11687fi
11688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689fi
11690
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_h_errno" >&5
11692$as_echo "$krb5_cv_header_netdb_h_h_errno" >&6; }
11693if test $krb5_cv_header_netdb_h_h_errno = yes; then
11694
11695$as_echo "#define HAVE_NETDB_H_H_ERRNO 1" >>confdefs.h
11696
11697fi
11698
11699
11700# Check whether --enable-athena was given.
11701if test "${enable_athena+set}" = set; then :
11702  enableval=$enable_athena;
11703$as_echo "#define KRB5_ATHENA_COMPAT 1" >>confdefs.h
11704
11705fi
11706
11707
11708
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11710$as_echo_n "checking for inline... " >&6; }
11711if ${ac_cv_c_inline+:} false; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  ac_cv_c_inline=no
11715for ac_kw in inline __inline__ __inline; do
11716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717/* end confdefs.h.  */
11718#ifndef __cplusplus
11719typedef int foo_t;
11720static $ac_kw foo_t static_foo () {return 0; }
11721$ac_kw foo_t foo () {return 0; }
11722#endif
11723
11724_ACEOF
11725if ac_fn_c_try_compile "$LINENO"; then :
11726  ac_cv_c_inline=$ac_kw
11727fi
11728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729  test "$ac_cv_c_inline" != no && break
11730done
11731
11732fi
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11734$as_echo "$ac_cv_c_inline" >&6; }
11735
11736case $ac_cv_c_inline in
11737  inline | yes) ;;
11738  *)
11739    case $ac_cv_c_inline in
11740      no) ac_val=;;
11741      *) ac_val=$ac_cv_c_inline;;
11742    esac
11743    cat >>confdefs.h <<_ACEOF
11744#ifndef __cplusplus
11745#define inline $ac_val
11746#endif
11747_ACEOF
11748    ;;
11749esac
11750
11751
11752
11753
11754ac_fn_c_check_type "$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "
11755#include <sys/types.h>
11756#include <sys/socket.h>
11757#include <netinet/in.h>
11758
11759"
11760if test "x$ac_cv_type_struct_cmsghdr" = xyes; then :
11761
11762cat >>confdefs.h <<_ACEOF
11763#define HAVE_STRUCT_CMSGHDR 1
11764_ACEOF
11765
11766
11767fi
11768ac_fn_c_check_type "$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "
11769#include <sys/types.h>
11770#include <sys/socket.h>
11771#include <netinet/in.h>
11772
11773"
11774if test "x$ac_cv_type_struct_in_pktinfo" = xyes; then :
11775
11776cat >>confdefs.h <<_ACEOF
11777#define HAVE_STRUCT_IN_PKTINFO 1
11778_ACEOF
11779
11780
11781fi
11782ac_fn_c_check_type "$LINENO" "struct in6_pktinfo" "ac_cv_type_struct_in6_pktinfo" "
11783#include <sys/types.h>
11784#include <sys/socket.h>
11785#include <netinet/in.h>
11786
11787"
11788if test "x$ac_cv_type_struct_in6_pktinfo" = xyes; then :
11789
11790cat >>confdefs.h <<_ACEOF
11791#define HAVE_STRUCT_IN6_PKTINFO 1
11792_ACEOF
11793
11794
11795fi
11796ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11797#include <sys/types.h>
11798#include <sys/socket.h>
11799#include <netinet/in.h>
11800
11801"
11802if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
11803
11804cat >>confdefs.h <<_ACEOF
11805#define HAVE_STRUCT_SOCKADDR_STORAGE 1
11806_ACEOF
11807
11808
11809fi
11810
11811ac_fn_c_check_type "$LINENO" "struct rt_msghdr" "ac_cv_type_struct_rt_msghdr" "
11812#include <sys/socket.h>
11813#include <net/if.h>
11814#include <net/route.h>
11815
11816"
11817if test "x$ac_cv_type_struct_rt_msghdr" = xyes; then :
11818
11819cat >>confdefs.h <<_ACEOF
11820#define HAVE_STRUCT_RT_MSGHDR 1
11821_ACEOF
11822
11823
11824fi
11825
11826
11827# Tests for 64-bit edwards25519 code.
11828# The cast to long int works around a bug in the HP C Compiler
11829# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11830# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11831# This bug is HP SR number 8606223364.
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
11833$as_echo_n "checking size of size_t... " >&6; }
11834if ${ac_cv_sizeof_size_t+:} false; then :
11835  $as_echo_n "(cached) " >&6
11836else
11837  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
11838
11839else
11840  if test "$ac_cv_type_size_t" = yes; then
11841     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11843as_fn_error 77 "cannot compute sizeof (size_t)
11844See \`config.log' for more details" "$LINENO" 5; }
11845   else
11846     ac_cv_sizeof_size_t=0
11847   fi
11848fi
11849
11850fi
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
11852$as_echo "$ac_cv_sizeof_size_t" >&6; }
11853
11854
11855
11856cat >>confdefs.h <<_ACEOF
11857#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
11858_ACEOF
11859
11860
11861ac_fn_c_check_type "$LINENO" "__int128_t" "ac_cv_type___int128_t" "$ac_includes_default"
11862if test "x$ac_cv_type___int128_t" = xyes; then :
11863
11864cat >>confdefs.h <<_ACEOF
11865#define HAVE___INT128_T 1
11866_ACEOF
11867
11868
11869fi
11870ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
11871if test "x$ac_cv_type___uint128_t" = xyes; then :
11872
11873cat >>confdefs.h <<_ACEOF
11874#define HAVE___UINT128_T 1
11875_ACEOF
11876
11877
11878fi
11879
11880
11881# stuff for util/profile
11882
11883# AC_KRB5_TCL already done
11884DO_TCL=
11885test "$TCL_LIBS" != "" && DO_TCL=ok
11886
11887
11888# types libdb2 wants
11889
11890ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11891if test "x$ac_cv_type_ssize_t" = xyes; then :
11892
11893cat >>confdefs.h <<_ACEOF
11894#define HAVE_SSIZE_T 1
11895_ACEOF
11896
11897
11898fi
11899ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
11900if test "x$ac_cv_type_u_char" = xyes; then :
11901
11902cat >>confdefs.h <<_ACEOF
11903#define HAVE_U_CHAR 1
11904_ACEOF
11905
11906
11907fi
11908ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
11909if test "x$ac_cv_type_u_int" = xyes; then :
11910
11911cat >>confdefs.h <<_ACEOF
11912#define HAVE_U_INT 1
11913_ACEOF
11914
11915
11916fi
11917ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
11918if test "x$ac_cv_type_u_long" = xyes; then :
11919
11920cat >>confdefs.h <<_ACEOF
11921#define HAVE_U_LONG 1
11922_ACEOF
11923
11924
11925fi
11926ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
11927if test "x$ac_cv_type_u_int8_t" = xyes; then :
11928
11929cat >>confdefs.h <<_ACEOF
11930#define HAVE_U_INT8_T 1
11931_ACEOF
11932
11933
11934fi
11935ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
11936if test "x$ac_cv_type_u_int16_t" = xyes; then :
11937
11938cat >>confdefs.h <<_ACEOF
11939#define HAVE_U_INT16_T 1
11940_ACEOF
11941
11942
11943fi
11944ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
11945if test "x$ac_cv_type_u_int32_t" = xyes; then :
11946
11947cat >>confdefs.h <<_ACEOF
11948#define HAVE_U_INT32_T 1
11949_ACEOF
11950
11951
11952fi
11953ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
11954if test "x$ac_cv_type_int8_t" = xyes; then :
11955
11956cat >>confdefs.h <<_ACEOF
11957#define HAVE_INT8_T 1
11958_ACEOF
11959
11960
11961fi
11962ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
11963if test "x$ac_cv_type_int16_t" = xyes; then :
11964
11965cat >>confdefs.h <<_ACEOF
11966#define HAVE_INT16_T 1
11967_ACEOF
11968
11969
11970fi
11971ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11972if test "x$ac_cv_type_int32_t" = xyes; then :
11973
11974cat >>confdefs.h <<_ACEOF
11975#define HAVE_INT32_T 1
11976_ACEOF
11977
11978
11979fi
11980
11981
11982# Some libdb2 test programs want a shell that supports functions.
11983FCTSH=false
11984# Extract the first word of "sh", so it can be a program name with args.
11985set dummy sh; ac_word=$2
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
11988if ${ac_cv_path_SH+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  case $SH in
11992  [\\/]* | ?:[\\/]*)
11993  ac_cv_path_SH="$SH" # Let the user override the test with a path.
11994  ;;
11995  *)
11996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997for as_dir in $PATH
11998do
11999  IFS=$as_save_IFS
12000  test -z "$as_dir" && as_dir=.
12001    for ac_exec_ext in '' $ac_executable_extensions; do
12002  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12003    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
12004    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005    break 2
12006  fi
12007done
12008  done
12009IFS=$as_save_IFS
12010
12011  test -z "$ac_cv_path_SH" && ac_cv_path_SH="false"
12012  ;;
12013esac
12014fi
12015SH=$ac_cv_path_SH
12016if test -n "$SH"; then
12017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
12018$as_echo "$SH" >&6; }
12019else
12020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021$as_echo "no" >&6; }
12022fi
12023
12024
12025# Extract the first word of "sh5", so it can be a program name with args.
12026set dummy sh5; ac_word=$2
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12028$as_echo_n "checking for $ac_word... " >&6; }
12029if ${ac_cv_path_SH5+:} false; then :
12030  $as_echo_n "(cached) " >&6
12031else
12032  case $SH5 in
12033  [\\/]* | ?:[\\/]*)
12034  ac_cv_path_SH5="$SH5" # Let the user override the test with a path.
12035  ;;
12036  *)
12037  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038for as_dir in $PATH
12039do
12040  IFS=$as_save_IFS
12041  test -z "$as_dir" && as_dir=.
12042    for ac_exec_ext in '' $ac_executable_extensions; do
12043  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044    ac_cv_path_SH5="$as_dir/$ac_word$ac_exec_ext"
12045    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046    break 2
12047  fi
12048done
12049  done
12050IFS=$as_save_IFS
12051
12052  test -z "$ac_cv_path_SH5" && ac_cv_path_SH5="false"
12053  ;;
12054esac
12055fi
12056SH5=$ac_cv_path_SH5
12057if test -n "$SH5"; then
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH5" >&5
12059$as_echo "$SH5" >&6; }
12060else
12061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12062$as_echo "no" >&6; }
12063fi
12064
12065
12066# Extract the first word of "bash", so it can be a program name with args.
12067set dummy bash; ac_word=$2
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12069$as_echo_n "checking for $ac_word... " >&6; }
12070if ${ac_cv_path_BASH+:} false; then :
12071  $as_echo_n "(cached) " >&6
12072else
12073  case $BASH in
12074  [\\/]* | ?:[\\/]*)
12075  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
12076  ;;
12077  *)
12078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079for as_dir in $PATH
12080do
12081  IFS=$as_save_IFS
12082  test -z "$as_dir" && as_dir=.
12083    for ac_exec_ext in '' $ac_executable_extensions; do
12084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12085    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
12086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12087    break 2
12088  fi
12089done
12090  done
12091IFS=$as_save_IFS
12092
12093  test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="false"
12094  ;;
12095esac
12096fi
12097BASH=$ac_cv_path_BASH
12098if test -n "$BASH"; then
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
12100$as_echo "$BASH" >&6; }
12101else
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104fi
12105
12106
12107for prog in $SH $SH5 $BASH; do
12108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $prog supports functions" >&5
12109$as_echo_n "checking if $prog supports functions... " >&6; }
12110  if $prog -c 'foo() { true; }; foo' >/dev/null 2>&1; then
12111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12112$as_echo "yes" >&6; }
12113    FCTSH=$prog
12114    break
12115  else
12116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
12118  fi
12119done
12120
12121
12122# Test for POSIX 2001 *printf support (X/Open System Interfaces extension
12123# to ANSI/ISO C 1999 specification).  Specifically, positional
12124# specifications; not checking for other features like %zx at present.
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX printf positional specification support" >&5
12126$as_echo_n "checking for POSIX printf positional specification support... " >&6; }
12127if ${ac_cv_printf_positional+:} false; then :
12128  $as_echo_n "(cached) " >&6
12129else
12130
12131if test "$cross_compiling" = yes; then :
12132  as_fn_error $? "Cannot test for printf positional argument support when cross compiling" "$LINENO" 5
12133else
12134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h.  */
12136
12137#include <stdio.h>
12138#include <string.h>
12139const char expected[] = "200 100";
12140int main () {
12141    char buf[30];
12142    sprintf(buf, "%2\$x %1\$d", 100, 512);
12143    if (strcmp(expected, buf)) {
12144	fprintf(stderr,"bad result: <%s> wanted: <%s>\n", buf, expected);
12145	return 1;
12146    }
12147    return 0;
12148}
12149_ACEOF
12150if ac_fn_c_try_run "$LINENO"; then :
12151  ac_cv_printf_positional=yes
12152else
12153  ac_cv_printf_positional=no
12154fi
12155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12156  conftest.$ac_objext conftest.beam conftest.$ac_ext
12157fi
12158
12159fi
12160
12161# Nothing for autoconf.h for now.
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_printf_positional" >&5
12163$as_echo "$ac_cv_printf_positional" >&6; }
12164
12165
12166# for t_locate_kdc test
12167
12168# Extract the first word of "dig", so it can be a program name with args.
12169set dummy dig; ac_word=$2
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171$as_echo_n "checking for $ac_word... " >&6; }
12172if ${ac_cv_path_DIG+:} false; then :
12173  $as_echo_n "(cached) " >&6
12174else
12175  case $DIG in
12176  [\\/]* | ?:[\\/]*)
12177  ac_cv_path_DIG="$DIG" # Let the user override the test with a path.
12178  ;;
12179  *)
12180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183  IFS=$as_save_IFS
12184  test -z "$as_dir" && as_dir=.
12185    for ac_exec_ext in '' $ac_executable_extensions; do
12186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187    ac_cv_path_DIG="$as_dir/$ac_word$ac_exec_ext"
12188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189    break 2
12190  fi
12191done
12192  done
12193IFS=$as_save_IFS
12194
12195  test -z "$ac_cv_path_DIG" && ac_cv_path_DIG="false"
12196  ;;
12197esac
12198fi
12199DIG=$ac_cv_path_DIG
12200if test -n "$DIG"; then
12201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIG" >&5
12202$as_echo "$DIG" >&6; }
12203else
12204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
12206fi
12207
12208
12209# Extract the first word of "nslookup", so it can be a program name with args.
12210set dummy nslookup; ac_word=$2
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
12213if ${ac_cv_path_NSLOOKUP+:} false; then :
12214  $as_echo_n "(cached) " >&6
12215else
12216  case $NSLOOKUP in
12217  [\\/]* | ?:[\\/]*)
12218  ac_cv_path_NSLOOKUP="$NSLOOKUP" # Let the user override the test with a path.
12219  ;;
12220  *)
12221  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224  IFS=$as_save_IFS
12225  test -z "$as_dir" && as_dir=.
12226    for ac_exec_ext in '' $ac_executable_extensions; do
12227  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228    ac_cv_path_NSLOOKUP="$as_dir/$ac_word$ac_exec_ext"
12229    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12230    break 2
12231  fi
12232done
12233  done
12234IFS=$as_save_IFS
12235
12236  test -z "$ac_cv_path_NSLOOKUP" && ac_cv_path_NSLOOKUP="false"
12237  ;;
12238esac
12239fi
12240NSLOOKUP=$ac_cv_path_NSLOOKUP
12241if test -n "$NSLOOKUP"; then
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSLOOKUP" >&5
12243$as_echo "$NSLOOKUP" >&6; }
12244else
12245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246$as_echo "no" >&6; }
12247fi
12248
12249
12250
12251# for kadmin
12252
12253for ac_prog in 'bison -y' byacc
12254do
12255  # Extract the first word of "$ac_prog", so it can be a program name with args.
12256set dummy $ac_prog; ac_word=$2
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258$as_echo_n "checking for $ac_word... " >&6; }
12259if ${ac_cv_prog_YACC+:} false; then :
12260  $as_echo_n "(cached) " >&6
12261else
12262  if test -n "$YACC"; then
12263  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12264else
12265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268  IFS=$as_save_IFS
12269  test -z "$as_dir" && as_dir=.
12270    for ac_exec_ext in '' $ac_executable_extensions; do
12271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12272    ac_cv_prog_YACC="$ac_prog"
12273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274    break 2
12275  fi
12276done
12277  done
12278IFS=$as_save_IFS
12279
12280fi
12281fi
12282YACC=$ac_cv_prog_YACC
12283if test -n "$YACC"; then
12284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12285$as_echo "$YACC" >&6; }
12286else
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288$as_echo "no" >&6; }
12289fi
12290
12291
12292  test -n "$YACC" && break
12293done
12294test -n "$YACC" || YACC="yacc"
12295
12296ath_compat=
12297# Check whether --enable-athena was given.
12298if test "${enable_athena+set}" = set; then :
12299  enableval=$enable_athena; ath_compat=compat
12300fi
12301
12302# The following are tests for the presence of programs required for
12303# kadmin testing.
12304# Extract the first word of "runtest", so it can be a program name with args.
12305set dummy runtest; ac_word=$2
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
12308if ${ac_cv_prog_have_RUNTEST+:} false; then :
12309  $as_echo_n "(cached) " >&6
12310else
12311  if test -n "$have_RUNTEST"; then
12312  ac_cv_prog_have_RUNTEST="$have_RUNTEST" # Let the user override the test.
12313else
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317  IFS=$as_save_IFS
12318  test -z "$as_dir" && as_dir=.
12319    for ac_exec_ext in '' $ac_executable_extensions; do
12320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321    ac_cv_prog_have_RUNTEST="runtest"
12322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323    break 2
12324  fi
12325done
12326  done
12327IFS=$as_save_IFS
12328
12329fi
12330fi
12331have_RUNTEST=$ac_cv_prog_have_RUNTEST
12332if test -n "$have_RUNTEST"; then
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_RUNTEST" >&5
12334$as_echo "$have_RUNTEST" >&6; }
12335else
12336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338fi
12339
12340
12341# Extract the first word of "perl", so it can be a program name with args.
12342set dummy perl; ac_word=$2
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344$as_echo_n "checking for $ac_word... " >&6; }
12345if ${ac_cv_prog_have_PERL+:} false; then :
12346  $as_echo_n "(cached) " >&6
12347else
12348  if test -n "$have_PERL"; then
12349  ac_cv_prog_have_PERL="$have_PERL" # Let the user override the test.
12350else
12351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352for as_dir in $PATH
12353do
12354  IFS=$as_save_IFS
12355  test -z "$as_dir" && as_dir=.
12356    for ac_exec_ext in '' $ac_executable_extensions; do
12357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12358    ac_cv_prog_have_PERL="perl"
12359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360    break 2
12361  fi
12362done
12363  done
12364IFS=$as_save_IFS
12365
12366fi
12367fi
12368have_PERL=$ac_cv_prog_have_PERL
12369if test -n "$have_PERL"; then
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_PERL" >&5
12371$as_echo "$have_PERL" >&6; }
12372else
12373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374$as_echo "no" >&6; }
12375fi
12376
12377
12378if test "$have_PERL" = perl -a "$have_RUNTEST" = runtest -a "$TCL_LIBS" != ""; then
12379	DO_TEST=ok
12380fi
12381
12382
12383# The following are substituted into kadmin/testing/scripts/env-setup.sh
12384RBUILD=`pwd`
12385
12386case "$srcdir" in
12387/*)	S_TOP=$srcdir ;;
12388*)	S_TOP=`pwd`/$srcdir ;;
12389esac
12390
12391# Extract the first word of "expect", so it can be a program name with args.
12392set dummy expect; ac_word=$2
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394$as_echo_n "checking for $ac_word... " >&6; }
12395if ${ac_cv_path_EXPECT+:} false; then :
12396  $as_echo_n "(cached) " >&6
12397else
12398  case $EXPECT in
12399  [\\/]* | ?:[\\/]*)
12400  ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
12401  ;;
12402  *)
12403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404for as_dir in $PATH
12405do
12406  IFS=$as_save_IFS
12407  test -z "$as_dir" && as_dir=.
12408    for ac_exec_ext in '' $ac_executable_extensions; do
12409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410    ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
12411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412    break 2
12413  fi
12414done
12415  done
12416IFS=$as_save_IFS
12417
12418  ;;
12419esac
12420fi
12421EXPECT=$ac_cv_path_EXPECT
12422if test -n "$EXPECT"; then
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
12424$as_echo "$EXPECT" >&6; }
12425else
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427$as_echo "no" >&6; }
12428fi
12429
12430
12431# For kadmin/testing/util/Makefile.in
12432if test "$TCL_LIBS" != "" ;  then
12433	DO_ALL=tcl
12434fi
12435
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use priocntl hack" >&5
12437$as_echo_n "checking whether to use priocntl hack... " >&6; }
12438if ${krb5_cv_priocntl_hack+:} false; then :
12439  $as_echo_n "(cached) " >&6
12440else
12441  case $krb5_cv_host in
12442*-*-solaris2.9*)
12443	if test "$cross_compiling" = yes; then
12444		krb5_cv_priocntl_hack=yes
12445	else
12446		# Solaris patch 117171-11 (sparc) or 117172-11 (x86)
12447		# fixes the Solaris 9 bug where final pty output
12448		# gets lost on close.
12449		if showrev -p | $AWK 'BEGIN { e = 1 }
12450/Patch: 11717[12]/ { x = index($2, "-");
12451if (substr($2, x + 1, length($2) - x) >= 11)
12452{ e = 0 } else { e = 1 } }
12453END { exit e; }'; then
12454			krb5_cv_priocntl_hack=no
12455		else
12456			krb5_cv_priocntl_hack=yes
12457		fi
12458	fi
12459	;;
12460*)
12461	krb5_cv_priocntl_hack=no
12462	;;
12463esac
12464fi
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_priocntl_hack" >&5
12466$as_echo "$krb5_cv_priocntl_hack" >&6; }
12467if test "$krb5_cv_priocntl_hack" = yes; then
12468	PRIOCNTL_HACK=1
12469else
12470	PRIOCNTL_HACK=0
12471fi
12472
12473ac_config_files="$ac_config_files kadmin/testing/scripts/env-setup.sh:kadmin/testing/scripts/env-setup.shin"
12474
12475# for lib/kadm5
12476# Extract the first word of "runtest", so it can be a program name with args.
12477set dummy runtest; ac_word=$2
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479$as_echo_n "checking for $ac_word... " >&6; }
12480if ${ac_cv_prog_RUNTEST+:} false; then :
12481  $as_echo_n "(cached) " >&6
12482else
12483  if test -n "$RUNTEST"; then
12484  ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
12485else
12486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487for as_dir in $PATH
12488do
12489  IFS=$as_save_IFS
12490  test -z "$as_dir" && as_dir=.
12491    for ac_exec_ext in '' $ac_executable_extensions; do
12492  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493    ac_cv_prog_RUNTEST="runtest"
12494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495    break 2
12496  fi
12497done
12498  done
12499IFS=$as_save_IFS
12500
12501fi
12502fi
12503RUNTEST=$ac_cv_prog_RUNTEST
12504if test -n "$RUNTEST"; then
12505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
12506$as_echo "$RUNTEST" >&6; }
12507else
12508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
12510fi
12511
12512
12513# Extract the first word of "perl", so it can be a program name with args.
12514set dummy perl; ac_word=$2
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
12517if ${ac_cv_prog_PERL+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  if test -n "$PERL"; then
12521  ac_cv_prog_PERL="$PERL" # Let the user override the test.
12522else
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526  IFS=$as_save_IFS
12527  test -z "$as_dir" && as_dir=.
12528    for ac_exec_ext in '' $ac_executable_extensions; do
12529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12530    ac_cv_prog_PERL="perl"
12531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532    break 2
12533  fi
12534done
12535  done
12536IFS=$as_save_IFS
12537
12538fi
12539fi
12540PERL=$ac_cv_prog_PERL
12541if test -n "$PERL"; then
12542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12543$as_echo "$PERL" >&6; }
12544else
12545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
12547fi
12548
12549
12550
12551# lib/gssapi
12552ac_fn_c_check_header_mongrel "$LINENO" "xom.h" "ac_cv_header_xom_h" "$ac_includes_default"
12553if test "x$ac_cv_header_xom_h" = xyes; then :
12554
12555	include_xom='awk '\''END{printf("%cinclude <xom.h>\n", 35);}'\'' < /dev/null'
12556else
12557
12558	include_xom='echo "/* no xom.h */"'
12559fi
12560
12561
12562
12563
12564
12565# lib/rpc
12566### Check where struct rpcent is declared.
12567
12568# This is necessary to determine:
12569# 1. If /usr/include/netdb.h declares struct rpcent
12570# 2. If /usr/include/rpc/netdb.h declares struct rpcent
12571
12572# We have our own rpc/netdb.h, and if /usr/include/netdb.h includes
12573# rpc/netdb.h, then nastiness could happen.
12574
12575# Logic: If /usr/include/netdb.h declares struct rpcent, then check
12576# rpc/netdb.h.  If /usr/include/rpc/netdb.h declares struct rpcent,
12577# then define STRUCT_RPCENT_IN_RPC_NETDB_H, otherwise do not.  If
12578# neither netdb.h nor rpc/netdb.h declares struct rpcent, then define
12579# STRUCT_RPCENT_IN_RPC_NETDB_H anyway.
12580
12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where struct rpcent is declared" >&5
12582$as_echo_n "checking where struct rpcent is declared... " >&6; }
12583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584/* end confdefs.h.  */
12585#include <netdb.h>
12586int
12587main ()
12588{
12589struct rpcent e;
12590char c = e.r_name[0];
12591int i = e.r_number;
12592  ;
12593  return 0;
12594}
12595_ACEOF
12596if ac_fn_c_try_compile "$LINENO"; then :
12597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598/* end confdefs.h.  */
12599#include <rpc/netdb.h>
12600int
12601main ()
12602{
12603struct rpcent e;
12604char c = e.r_name[0];
12605int i = e.r_number;
12606  ;
12607  return 0;
12608}
12609_ACEOF
12610if ac_fn_c_try_compile "$LINENO"; then :
12611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: rpc/netdb.h" >&5
12612$as_echo "rpc/netdb.h" >&6; }
12613rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'
12614else
12615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: netdb.h" >&5
12616$as_echo "netdb.h" >&6; }
12617fi
12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619else
12620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
12621$as_echo "nowhere" >&6; }
12622rpcent_define='#define STRUCT_RPCENT_IN_RPC_NETDB_H'
12623fi
12624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625
12626
12627for ac_header in sys/select.h sys/time.h unistd.h
12628do :
12629  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12630ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12631if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12632  cat >>confdefs.h <<_ACEOF
12633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12634_ACEOF
12635
12636fi
12637
12638done
12639
12640if test $ac_cv_header_sys_select_h = yes; then
12641  GSSRPC__SYS_SELECT_H='#include <sys/select.h>'
12642else
12643  GSSRPC__SYS_SELECT_H='/* #include <sys/select.h> */'
12644fi
12645
12646if test $ac_cv_header_sys_time_h = yes; then
12647  GSSRPC__SYS_TIME_H='#include <sys/time.h>'
12648else
12649  GSSRPC__SYS_TIME_H='/* #include <sys/time.h> */'
12650fi
12651
12652if test $ac_cv_header_unistd_h = yes; then
12653  GSSRPC__UNISTD_H='#include <unistd.h>'
12654else
12655  GSSRPC__UNISTD_H='/* #include <unistd.h> */'
12656fi
12657
12658
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in sys/param.h" >&5
12660$as_echo_n "checking for MAXHOSTNAMELEN in sys/param.h... " >&6; }
12661if ${krb5_cv_header_sys_param_h_maxhostnamelen+:} false; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665/* end confdefs.h.  */
12666#include <sys/param.h>
12667int
12668main ()
12669{
12670int i = MAXHOSTNAMELEN;
12671  ;
12672  return 0;
12673}
12674_ACEOF
12675if ac_fn_c_try_compile "$LINENO"; then :
12676  krb5_cv_header_sys_param_h_maxhostnamelen=yes
12677else
12678  krb5_cv_header_sys_param_h_maxhostnamelen=no
12679fi
12680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_sys_param_h_maxhostnamelen" >&5
12683$as_echo "$krb5_cv_header_sys_param_h_maxhostnamelen" >&6; }
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAXHOSTNAMELEN in netdb.h" >&5
12685$as_echo_n "checking for MAXHOSTNAMELEN in netdb.h... " >&6; }
12686if ${krb5_cv_header_netdb_h_maxhostnamelen+:} false; then :
12687  $as_echo_n "(cached) " >&6
12688else
12689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690/* end confdefs.h.  */
12691#include <netdb.h>
12692int
12693main ()
12694{
12695int i = MAXHOSTNAMELEN;
12696  ;
12697  return 0;
12698}
12699_ACEOF
12700if ac_fn_c_try_compile "$LINENO"; then :
12701  krb5_cv_header_netdb_h_maxhostnamelen=yes
12702else
12703  krb5_cv_header_netdb_h_maxhostnamelen=no
12704fi
12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706fi
12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_header_netdb_h_maxhostnamelen" >&5
12708$as_echo "$krb5_cv_header_netdb_h_maxhostnamelen" >&6; }
12709
12710GSSRPC__SYS_PARAM_H='/* #include <sys/param.h> */'
12711GSSRPC__NETDB_H='/* #include <netdb.h> */'
12712if test $krb5_cv_header_sys_param_h_maxhostnamelen = yes; then
12713  GSSRPC__SYS_PARAM_H='#include <sys/param.h>'
12714else
12715  if test $krb5_cv_header_netdb_h_maxhostnamelen = yes; then
12716    GSSRPC__NETDB_H='#include <netdb.h>'
12717  else
12718    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&5
12719$as_echo "$as_me: WARNING: can't find MAXHOSTNAMELEN definition; faking it" >&2;}
12720  fi
12721fi
12722
12723
12724
12725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD type aliases" >&5
12726$as_echo_n "checking for BSD type aliases... " >&6; }
12727if ${krb5_cv_type_bsdaliases+:} false; then :
12728  $as_echo_n "(cached) " >&6
12729else
12730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731/* end confdefs.h.  */
12732#include <sys/types.h>
12733#if HAVE_UNISTD_H
12734#include <unistd.h>
12735#endif
12736int
12737main ()
12738{
12739u_char c;
12740u_int i;
12741u_long l;
12742  ;
12743  return 0;
12744}
12745_ACEOF
12746if ac_fn_c_try_compile "$LINENO"; then :
12747  krb5_cv_type_bsdaliases=yes
12748else
12749  krb5_cv_type_bsdaliases=no
12750fi
12751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12752fi
12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_cv_type_bsdaliases" >&5
12754$as_echo "$krb5_cv_type_bsdaliases" >&6; }
12755if test $krb5_cv_type_bsdaliases = yes; then
12756  GSSRPC__BSD_TYPEALIASES='/* #undef GSSRPC__BSD_TYPEALIASES */'
12757else
12758  GSSRPC__BSD_TYPEALIASES='#define GSSRPC__BSD_TYPEALIASES 1'
12759fi
12760
12761
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of setrpcent" >&5
12763$as_echo_n "checking return type of setrpcent... " >&6; }
12764if ${k5_cv_type_setrpcent+:} false; then :
12765  $as_echo_n "(cached) " >&6
12766else
12767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768/* end confdefs.h.  */
12769#include <netdb.h>
12770#ifdef __cplusplus
12771extern "C"
12772#endif
12773extern void setrpcent();
12774int
12775main ()
12776{
12777int i;
12778  ;
12779  return 0;
12780}
12781_ACEOF
12782if ac_fn_c_try_compile "$LINENO"; then :
12783  k5_cv_type_setrpcent=void
12784else
12785  k5_cv_type_setrpcent=int
12786fi
12787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12788fi
12789
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_setrpcent" >&5
12791$as_echo "$k5_cv_type_setrpcent" >&6; }
12792
12793cat >>confdefs.h <<_ACEOF
12794#define SETRPCENT_TYPE $k5_cv_type_setrpcent
12795_ACEOF
12796
12797
12798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of endrpcent" >&5
12799$as_echo_n "checking return type of endrpcent... " >&6; }
12800if ${k5_cv_type_endrpcent+:} false; then :
12801  $as_echo_n "(cached) " >&6
12802else
12803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804/* end confdefs.h.  */
12805#include <netdb.h>
12806#ifdef __cplusplus
12807extern "C"
12808#endif
12809extern void endrpcent();
12810int
12811main ()
12812{
12813int i;
12814  ;
12815  return 0;
12816}
12817_ACEOF
12818if ac_fn_c_try_compile "$LINENO"; then :
12819  k5_cv_type_endrpcent=void
12820else
12821  k5_cv_type_endrpcent=int
12822fi
12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824fi
12825
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_type_endrpcent" >&5
12827$as_echo "$k5_cv_type_endrpcent" >&6; }
12828
12829cat >>confdefs.h <<_ACEOF
12830#define ENDRPCENT_TYPE $k5_cv_type_endrpcent
12831_ACEOF
12832
12833ac_config_files="$ac_config_files include/gssrpc/types.h:include/gssrpc/types.hin"
12834
12835PASS=tcp
12836
12837
12838# for pkinit
12839# Check whether --enable-pkinit was given.
12840if test "${enable_pkinit+set}" = set; then :
12841  enableval=$enable_pkinit;
12842else
12843  enable_pkinit=try
12844fi
12845
12846if test "$enable_pkinit" = yes || test "$enable_pkinit" = try; then
12847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a recent enough OpenSSL" >&5
12848$as_echo_n "checking for a recent enough OpenSSL... " >&6; }
12849if ${k5_cv_openssl_version_okay+:} false; then :
12850  $as_echo_n "(cached) " >&6
12851else
12852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h.  */
12854#include <openssl/opensslv.h>
12855#if OPENSSL_VERSION_NUMBER < 0x10000000L
12856# error openssl is too old, need 1.0.0
12857#endif
12858int i = 1;
12859
12860_ACEOF
12861if ac_fn_c_try_compile "$LINENO"; then :
12862  k5_cv_openssl_version_okay=yes
12863else
12864  k5_cv_openssl_version_okay=no
12865fi
12866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867fi
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $k5_cv_openssl_version_okay" >&5
12869$as_echo "$k5_cv_openssl_version_okay" >&6; }
12870  old_LIBS="$LIBS"
12871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS7_get_signer_info in -lcrypto" >&5
12872$as_echo_n "checking for PKCS7_get_signer_info in -lcrypto... " >&6; }
12873if ${ac_cv_lib_crypto_PKCS7_get_signer_info+:} false; then :
12874  $as_echo_n "(cached) " >&6
12875else
12876  ac_check_lib_save_LIBS=$LIBS
12877LIBS="-lcrypto  $LIBS"
12878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879/* end confdefs.h.  */
12880
12881/* Override any GCC internal prototype to avoid an error.
12882   Use char because int might match the return type of a GCC
12883   builtin and then its argument prototype would still apply.  */
12884#ifdef __cplusplus
12885extern "C"
12886#endif
12887char PKCS7_get_signer_info ();
12888int
12889main ()
12890{
12891return PKCS7_get_signer_info ();
12892  ;
12893  return 0;
12894}
12895_ACEOF
12896if ac_fn_c_try_link "$LINENO"; then :
12897  ac_cv_lib_crypto_PKCS7_get_signer_info=yes
12898else
12899  ac_cv_lib_crypto_PKCS7_get_signer_info=no
12900fi
12901rm -f core conftest.err conftest.$ac_objext \
12902    conftest$ac_exeext conftest.$ac_ext
12903LIBS=$ac_check_lib_save_LIBS
12904fi
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_PKCS7_get_signer_info" >&5
12906$as_echo "$ac_cv_lib_crypto_PKCS7_get_signer_info" >&6; }
12907if test "x$ac_cv_lib_crypto_PKCS7_get_signer_info" = xyes; then :
12908  cat >>confdefs.h <<_ACEOF
12909#define HAVE_LIBCRYPTO 1
12910_ACEOF
12911
12912  LIBS="-lcrypto $LIBS"
12913
12914fi
12915
12916  LIBS="$old_LIBS"
12917fi
12918if test "$k5_cv_openssl_version_okay" = yes && (test "$enable_pkinit" = yes || test "$enable_pkinit" = try); then
12919  ac_config_files="$ac_config_files plugins/preauth/pkinit/Makefile:$srcdir/./config/pre.in:plugins/preauth/pkinit/Makefile.in:plugins/preauth/pkinit/deps:$srcdir/./config/post.in"
12920
12921
12922
12923  ac_config_files="$ac_config_files tests/softpkcs11/Makefile:$srcdir/./config/pre.in:tests/softpkcs11/Makefile.in:tests/softpkcs11/deps:$srcdir/./config/post.in"
12924
12925
12926
12927  PKINIT=yes
12928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMS_get0_content in -lcrypto" >&5
12929$as_echo_n "checking for CMS_get0_content in -lcrypto... " >&6; }
12930if ${ac_cv_lib_crypto_CMS_get0_content+:} false; then :
12931  $as_echo_n "(cached) " >&6
12932else
12933  ac_check_lib_save_LIBS=$LIBS
12934LIBS="-lcrypto  $LIBS"
12935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937
12938/* Override any GCC internal prototype to avoid an error.
12939   Use char because int might match the return type of a GCC
12940   builtin and then its argument prototype would still apply.  */
12941#ifdef __cplusplus
12942extern "C"
12943#endif
12944char CMS_get0_content ();
12945int
12946main ()
12947{
12948return CMS_get0_content ();
12949  ;
12950  return 0;
12951}
12952_ACEOF
12953if ac_fn_c_try_link "$LINENO"; then :
12954  ac_cv_lib_crypto_CMS_get0_content=yes
12955else
12956  ac_cv_lib_crypto_CMS_get0_content=no
12957fi
12958rm -f core conftest.err conftest.$ac_objext \
12959    conftest$ac_exeext conftest.$ac_ext
12960LIBS=$ac_check_lib_save_LIBS
12961fi
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CMS_get0_content" >&5
12963$as_echo "$ac_cv_lib_crypto_CMS_get0_content" >&6; }
12964if test "x$ac_cv_lib_crypto_CMS_get0_content" = xyes; then :
12965
12966$as_echo "#define HAVE_OPENSSL_CMS 1" >>confdefs.h
12967
12968fi
12969
12970elif test "$k5_cv_openssl_version_okay" = no && test "$enable_pkinit" = yes; then
12971  as_fn_error $? "Version of OpenSSL is too old; cannot enable PKINIT." "$LINENO" 5
12972else
12973
12974$as_echo "#define DISABLE_PKINIT 1" >>confdefs.h
12975
12976  { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling PKINIT support." >&5
12977$as_echo "$as_me: Disabling PKINIT support." >&6;}
12978  PKINIT=no
12979fi
12980
12981
12982# for lib/apputils
12983ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
12984if test "x$ac_cv_func_daemon" = xyes; then :
12985  $as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12986
12987else
12988  case " $LIBOBJS " in
12989  *" daemon.$ac_objext "* ) ;;
12990  *) LIBOBJS="$LIBOBJS daemon.$ac_objext"
12991 ;;
12992esac
12993
12994fi
12995
12996
12997
12998# for tests/
12999if test x"$RUNTEST" != x; then
13000	HAVE_RUNTEST=yes
13001else
13002	HAVE_RUNTEST=no
13003fi
13004
13005
13006# For Python tests.  Python version 3.2.4 is required as prior
13007# versions do not accept string input to subprocess.Popen.communicate
13008# when universal_newlines is set.
13009PYTHON_MINVERSION=3.2.4
13010
13011# Extract the first word of "python3", so it can be a program name with args.
13012set dummy python3; ac_word=$2
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014$as_echo_n "checking for $ac_word... " >&6; }
13015if ${ac_cv_prog_PYTHON+:} false; then :
13016  $as_echo_n "(cached) " >&6
13017else
13018  if test -n "$PYTHON"; then
13019  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
13020else
13021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022for as_dir in $PATH
13023do
13024  IFS=$as_save_IFS
13025  test -z "$as_dir" && as_dir=.
13026    for ac_exec_ext in '' $ac_executable_extensions; do
13027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028    ac_cv_prog_PYTHON="python3"
13029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030    break 2
13031  fi
13032done
13033  done
13034IFS=$as_save_IFS
13035
13036fi
13037fi
13038PYTHON=$ac_cv_prog_PYTHON
13039if test -n "$PYTHON"; then
13040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13041$as_echo "$PYTHON" >&6; }
13042else
13043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044$as_echo "no" >&6; }
13045fi
13046
13047
13048if test x"$PYTHON" = x; then
13049	# Extract the first word of "python", so it can be a program name with args.
13050set dummy python; ac_word=$2
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052$as_echo_n "checking for $ac_word... " >&6; }
13053if ${ac_cv_prog_PYTHON+:} false; then :
13054  $as_echo_n "(cached) " >&6
13055else
13056  if test -n "$PYTHON"; then
13057  ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
13058else
13059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060for as_dir in $PATH
13061do
13062  IFS=$as_save_IFS
13063  test -z "$as_dir" && as_dir=.
13064    for ac_exec_ext in '' $ac_executable_extensions; do
13065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066    ac_cv_prog_PYTHON="python"
13067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068    break 2
13069  fi
13070done
13071  done
13072IFS=$as_save_IFS
13073
13074fi
13075fi
13076PYTHON=$ac_cv_prog_PYTHON
13077if test -n "$PYTHON"; then
13078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13079$as_echo "$PYTHON" >&6; }
13080else
13081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082$as_echo "no" >&6; }
13083fi
13084
13085
13086fi
13087HAVE_PYTHON=no
13088if test x"$PYTHON" != x; then
13089	wantver="(sys.hexversion >= 0x30204F0)"
13090	if "$PYTHON" -c "import sys; sys.exit(not $wantver and 1 or 0)"; then
13091		HAVE_PYTHON=yes
13092	fi
13093fi
13094
13095
13096# For cmocka tests.
13097CMOCKA_LIBS=
13098HAVE_CMOCKA=no
13099HAVE_CMOCKA_H=no
13100HAVE_CMOCKA_LIB=no
13101ac_fn_c_check_header_compile "$LINENO" "cmocka.h" "ac_cv_header_cmocka_h" "
13102#include <stdarg.h>
13103#include <stddef.h>
13104#include <setjmp.h>
13105"
13106if test "x$ac_cv_header_cmocka_h" = xyes; then :
13107  HAVE_CMOCKA_H=yes
13108else
13109  :
13110fi
13111
13112
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _cmocka_run_group_tests in -lcmocka" >&5
13114$as_echo_n "checking for _cmocka_run_group_tests in -lcmocka... " >&6; }
13115if ${ac_cv_lib_cmocka__cmocka_run_group_tests+:} false; then :
13116  $as_echo_n "(cached) " >&6
13117else
13118  ac_check_lib_save_LIBS=$LIBS
13119LIBS="-lcmocka  $LIBS"
13120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122
13123/* Override any GCC internal prototype to avoid an error.
13124   Use char because int might match the return type of a GCC
13125   builtin and then its argument prototype would still apply.  */
13126#ifdef __cplusplus
13127extern "C"
13128#endif
13129char _cmocka_run_group_tests ();
13130int
13131main ()
13132{
13133return _cmocka_run_group_tests ();
13134  ;
13135  return 0;
13136}
13137_ACEOF
13138if ac_fn_c_try_link "$LINENO"; then :
13139  ac_cv_lib_cmocka__cmocka_run_group_tests=yes
13140else
13141  ac_cv_lib_cmocka__cmocka_run_group_tests=no
13142fi
13143rm -f core conftest.err conftest.$ac_objext \
13144    conftest$ac_exeext conftest.$ac_ext
13145LIBS=$ac_check_lib_save_LIBS
13146fi
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cmocka__cmocka_run_group_tests" >&5
13148$as_echo "$ac_cv_lib_cmocka__cmocka_run_group_tests" >&6; }
13149if test "x$ac_cv_lib_cmocka__cmocka_run_group_tests" = xyes; then :
13150  HAVE_CMOCKA_LIB=yes
13151fi
13152
13153if test "$HAVE_CMOCKA_LIB" = yes && test "$HAVE_CMOCKA_H" = yes; then
13154    HAVE_CMOCKA=yes
13155    CMOCKA_LIBS='-lcmocka'
13156
13157$as_echo "#define HAVE_CMOCKA 1" >>confdefs.h
13158
13159fi
13160
13161
13162
13163# For URI lookup tests. Requires resolv_wrapper >= 1.1.5 for URI
13164# support.
13165HAVE_RESOLV_WRAPPER=0
13166if test -n "$PKG_CONFIG" && \
13167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"resolv_wrapper >= 1.1.5\""; } >&5
13168  ($PKG_CONFIG --exists --print-errors "resolv_wrapper >= 1.1.5") 2>&5
13169  ac_status=$?
13170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171  test $ac_status = 0; }; then
13172  HAVE_RESOLV_WRAPPER=1
13173fi
13174
13175
13176# for plugins/kdb/db2
13177
13178# AIX is unusual in that it wants all symbols resolved at link time
13179#  Fortunately, it will allow us to link the kdb library now, even if
13180# it is linked again later.
13181case $krb5_cv_host in
13182*-*-aix*)
13183	DB_EXTRA_LIBS=-ldb
13184	;;
13185*)
13186	DB_EXTRA_LIBS=
13187	;;
13188esac
13189
13190
13191
13192
13193# Check for thread safety issues.
13194# (Is there a better place for this?)
13195# tsfuncs="getpwnam_r getpwuid_r gethostbyname_r getservbyname_r gmtime_r localtime_r"
13196# Removed getpwnam_r and getpwuid_r because include/configure.in has some
13197# more careful checks, and may decide to pretend that they're not found if
13198# the function signatures can't be figured out.
13199tsfuncs="gethostbyname_r getservbyname_r gmtime_r localtime_r"
13200for ac_func in $tsfuncs
13201do :
13202  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13203ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13204if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13205  cat >>confdefs.h <<_ACEOF
13206#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13207_ACEOF
13208
13209fi
13210done
13211
13212if test "$enable_thread_support" = yes; then
13213  tsmissing=""
13214  for ts in $tsfuncs; do
13215    if eval "test \"\${ac_cv_func_$ts}\" != yes"; then
13216      tsmissing="$tsmissing $ts"
13217    fi
13218  done
13219  if test "$ac_cv_func_res_nsearch/$ac_cv_lib_resolv_res_nsearch" = "no/no"; then
13220    tsmissing="$tsmissing res_nsearch"
13221  fi
13222  if test "$tsmissing" != ""; then
13223    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some functions that are needed for library thread" >&5
13224$as_echo "$as_me: WARNING: Some functions that are needed for library thread" >&2;}
13225    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: safety appear to be missing." >&5
13226$as_echo "$as_me: WARNING: safety appear to be missing." >&2;}
13227    for ts in $tsmissing; do
13228      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:   missing thread-safe function: $ts" >&5
13229$as_echo "$as_me: WARNING:   missing thread-safe function: $ts" >&2;}
13230    done
13231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Without these functions, the installed libraries" >&5
13232$as_echo "$as_me: WARNING: Without these functions, the installed libraries" >&2;}
13233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: may not be thread-safe." >&5
13234$as_echo "$as_me: WARNING: may not be thread-safe." >&2;}
13235  fi # tsmissing not empty
13236fi # enable_thread_support
13237
13238# Sadly, we seem to have accidentally committed ourselves in 1.4 to
13239# an ABI that includes the existence of libkrb5support.0 even
13240# though random apps should never use anything from it.  And on
13241# the Mac, to which that didn't apply, we can't use major version 0.
13242
13243case $krb5_cv_host in
13244*-*-darwin* | *-*-rhapsody*) SUPPORTLIB_MAJOR=1 ;;
13245*)			     SUPPORTLIB_MAJOR=0 ;;
13246esac
13247
13248
13249
13250if test "$COM_ERR_VERSION" = k5 ; then
13251  ac_config_files="$ac_config_files util/et/Makefile:$srcdir/./config/pre.in:util/et/Makefile.in:util/et/deps:$srcdir/./config/post.in"
13252
13253
13254
13255fi
13256if test "$SS_VERSION" = k5 ; then
13257  ac_config_files="$ac_config_files util/ss/Makefile:$srcdir/./config/pre.in:util/ss/Makefile.in:util/ss/deps:$srcdir/./config/post.in"
13258
13259
13260
13261fi
13262
13263
13264ldap_plugin_dir=""
13265ldap_lib=""
13266if test -n "$OPENLDAP_PLUGIN"; then
13267  for ac_header in ldap.h lber.h
13268do :
13269  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13270ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13271if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13272  cat >>confdefs.h <<_ACEOF
13273#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13274_ACEOF
13275 :
13276else
13277  as_fn_error $? "$ac_header not found" "$LINENO" 5
13278fi
13279
13280done
13281
13282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_str2dn in -lldap" >&5
13283$as_echo_n "checking for ldap_str2dn in -lldap... " >&6; }
13284if ${ac_cv_lib_ldap_ldap_str2dn+:} false; then :
13285  $as_echo_n "(cached) " >&6
13286else
13287  ac_check_lib_save_LIBS=$LIBS
13288LIBS="-lldap  $LIBS"
13289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290/* end confdefs.h.  */
13291
13292/* Override any GCC internal prototype to avoid an error.
13293   Use char because int might match the return type of a GCC
13294   builtin and then its argument prototype would still apply.  */
13295#ifdef __cplusplus
13296extern "C"
13297#endif
13298char ldap_str2dn ();
13299int
13300main ()
13301{
13302return ldap_str2dn ();
13303  ;
13304  return 0;
13305}
13306_ACEOF
13307if ac_fn_c_try_link "$LINENO"; then :
13308  ac_cv_lib_ldap_ldap_str2dn=yes
13309else
13310  ac_cv_lib_ldap_ldap_str2dn=no
13311fi
13312rm -f core conftest.err conftest.$ac_objext \
13313    conftest$ac_exeext conftest.$ac_ext
13314LIBS=$ac_check_lib_save_LIBS
13315fi
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_str2dn" >&5
13317$as_echo "$ac_cv_lib_ldap_ldap_str2dn" >&6; }
13318if test "x$ac_cv_lib_ldap_ldap_str2dn" = xyes; then :
13319  :
13320else
13321  as_fn_error $? "libldap not found or missing ldap_str2dn" "$LINENO" 5
13322fi
13323
13324
13325  BER_OKAY=0
13326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -lldap" >&5
13327$as_echo_n "checking for ber_init in -lldap... " >&6; }
13328if ${ac_cv_lib_ldap_ber_init+:} false; then :
13329  $as_echo_n "(cached) " >&6
13330else
13331  ac_check_lib_save_LIBS=$LIBS
13332LIBS="-lldap  $LIBS"
13333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334/* end confdefs.h.  */
13335
13336/* Override any GCC internal prototype to avoid an error.
13337   Use char because int might match the return type of a GCC
13338   builtin and then its argument prototype would still apply.  */
13339#ifdef __cplusplus
13340extern "C"
13341#endif
13342char ber_init ();
13343int
13344main ()
13345{
13346return ber_init ();
13347  ;
13348  return 0;
13349}
13350_ACEOF
13351if ac_fn_c_try_link "$LINENO"; then :
13352  ac_cv_lib_ldap_ber_init=yes
13353else
13354  ac_cv_lib_ldap_ber_init=no
13355fi
13356rm -f core conftest.err conftest.$ac_objext \
13357    conftest$ac_exeext conftest.$ac_ext
13358LIBS=$ac_check_lib_save_LIBS
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ber_init" >&5
13361$as_echo "$ac_cv_lib_ldap_ber_init" >&6; }
13362if test "x$ac_cv_lib_ldap_ber_init" = xyes; then :
13363  BER_OKAY=1
13364fi
13365
13366  if test "$BER_OKAY" = "1"; then
13367    LDAP_LIBS='-lldap'
13368  else
13369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13370$as_echo_n "checking for ber_init in -llber... " >&6; }
13371if ${ac_cv_lib_lber_ber_init+:} false; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374  ac_check_lib_save_LIBS=$LIBS
13375LIBS="-llber  $LIBS"
13376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377/* end confdefs.h.  */
13378
13379/* Override any GCC internal prototype to avoid an error.
13380   Use char because int might match the return type of a GCC
13381   builtin and then its argument prototype would still apply.  */
13382#ifdef __cplusplus
13383extern "C"
13384#endif
13385char ber_init ();
13386int
13387main ()
13388{
13389return ber_init ();
13390  ;
13391  return 0;
13392}
13393_ACEOF
13394if ac_fn_c_try_link "$LINENO"; then :
13395  ac_cv_lib_lber_ber_init=yes
13396else
13397  ac_cv_lib_lber_ber_init=no
13398fi
13399rm -f core conftest.err conftest.$ac_objext \
13400    conftest$ac_exeext conftest.$ac_ext
13401LIBS=$ac_check_lib_save_LIBS
13402fi
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13404$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13405if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13406  BER_OKAY=1
13407else
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libber not found" >&5
13409$as_echo "$as_me: WARNING: libber not found" >&2;}
13410fi
13411
13412    if test "$BER_OKAY" = "1"; then
13413      LDAP_LIBS='-lldap -llber'
13414    else
13415      as_fn_error $? "\"BER library missing - cannot build LDAP database module\"" "$LINENO" 5
13416    fi
13417  fi
13418
13419$as_echo "#define ENABLE_LDAP 1" >>confdefs.h
13420
13421
13422
13423  for ac_header in sasl/sasl.h
13424do :
13425  ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
13426if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
13427  cat >>confdefs.h <<_ACEOF
13428#define HAVE_SASL_SASL_H 1
13429_ACEOF
13430 HAVE_SASL=yes
13431else
13432  HAVE_SASL=no
13433fi
13434
13435done
13436
13437
13438  if test "$HAVE_SASL" = no; then
13439    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not building LDAP SASL support" >&5
13440$as_echo "$as_me: WARNING: not building LDAP SASL support" >&2;}
13441  fi
13442
13443  ac_config_files="$ac_config_files plugins/kdb/ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/Makefile.in:plugins/kdb/ldap/deps:$srcdir/./config/post.in"
13444
13445
13446
13447  ac_config_files="$ac_config_files plugins/kdb/ldap/ldap_util/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/ldap_util/Makefile.in:plugins/kdb/ldap/ldap_util/deps:$srcdir/./config/post.in"
13448
13449
13450
13451  ac_config_files="$ac_config_files plugins/kdb/ldap/libkdb_ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/libkdb_ldap/Makefile.in:plugins/kdb/ldap/libkdb_ldap/deps:$srcdir/./config/post.in"
13452
13453
13454
13455  ldap_plugin_dir='plugins/kdb/ldap plugins/kdb/ldap/ldap_util'
13456  LDAP=yes
13457else
13458  LDAP=no
13459fi
13460
13461
13462# This check is for plugins/preauth/securid_sam2
13463sam2_plugin=""
13464old_CFLAGS=$CFLAGS
13465CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5
13467$as_echo_n "checking for SD_Init in -laceclnt... " >&6; }
13468if ${ac_cv_lib_aceclnt_SD_Init+:} false; then :
13469  $as_echo_n "(cached) " >&6
13470else
13471  ac_check_lib_save_LIBS=$LIBS
13472LIBS="-laceclnt  $LIBS"
13473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474/* end confdefs.h.  */
13475
13476/* Override any GCC internal prototype to avoid an error.
13477   Use char because int might match the return type of a GCC
13478   builtin and then its argument prototype would still apply.  */
13479#ifdef __cplusplus
13480extern "C"
13481#endif
13482char SD_Init ();
13483int
13484main ()
13485{
13486return SD_Init ();
13487  ;
13488  return 0;
13489}
13490_ACEOF
13491if ac_fn_c_try_link "$LINENO"; then :
13492  ac_cv_lib_aceclnt_SD_Init=yes
13493else
13494  ac_cv_lib_aceclnt_SD_Init=no
13495fi
13496rm -f core conftest.err conftest.$ac_objext \
13497    conftest$ac_exeext conftest.$ac_ext
13498LIBS=$ac_check_lib_save_LIBS
13499fi
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init" >&5
13501$as_echo "$ac_cv_lib_aceclnt_SD_Init" >&6; }
13502if test "x$ac_cv_lib_aceclnt_SD_Init" = xyes; then :
13503
13504	     { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling RSA securID support" >&5
13505$as_echo "$as_me: Enabling RSA securID support" >&6;}
13506	     ac_config_files="$ac_config_files plugins/preauth/securid_sam2/Makefile:$srcdir/./config/pre.in:plugins/preauth/securid_sam2/Makefile.in:plugins/preauth/securid_sam2/deps:$srcdir/./config/post.in"
13507
13508
13509
13510	     sam2_plugin=plugins/preauth/securid_sam2
13511
13512fi
13513
13514
13515CFLAGS=$old_CFLAGS
13516
13517lmdb_plugin_dir=""
13518HAVE_LMDB=no
13519
13520# Check whether --with-lmdb was given.
13521if test "${with_lmdb+set}" = set; then :
13522  withval=$with_lmdb;
13523else
13524  withval=auto
13525fi
13526
13527if test "$withval" = auto -o "$withval" = yes; then
13528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_create in -llmdb" >&5
13529$as_echo_n "checking for mdb_env_create in -llmdb... " >&6; }
13530if ${ac_cv_lib_lmdb_mdb_env_create+:} false; then :
13531  $as_echo_n "(cached) " >&6
13532else
13533  ac_check_lib_save_LIBS=$LIBS
13534LIBS="-llmdb  $LIBS"
13535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536/* end confdefs.h.  */
13537
13538/* Override any GCC internal prototype to avoid an error.
13539   Use char because int might match the return type of a GCC
13540   builtin and then its argument prototype would still apply.  */
13541#ifdef __cplusplus
13542extern "C"
13543#endif
13544char mdb_env_create ();
13545int
13546main ()
13547{
13548return mdb_env_create ();
13549  ;
13550  return 0;
13551}
13552_ACEOF
13553if ac_fn_c_try_link "$LINENO"; then :
13554  ac_cv_lib_lmdb_mdb_env_create=yes
13555else
13556  ac_cv_lib_lmdb_mdb_env_create=no
13557fi
13558rm -f core conftest.err conftest.$ac_objext \
13559    conftest$ac_exeext conftest.$ac_ext
13560LIBS=$ac_check_lib_save_LIBS
13561fi
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_env_create" >&5
13563$as_echo "$ac_cv_lib_lmdb_mdb_env_create" >&6; }
13564if test "x$ac_cv_lib_lmdb_mdb_env_create" = xyes; then :
13565  have_lmdb=true
13566else
13567  have_lmdb=false
13568fi
13569
13570  if test "$have_lmdb" = true; then
13571    LMDB_LIBS=-llmdb
13572    HAVE_LMDB=yes
13573    lmdb_plugin_dir='plugins/kdb/lmdb'
13574    ac_config_files="$ac_config_files plugins/kdb/lmdb/Makefile:$srcdir/./config/pre.in:plugins/kdb/lmdb/Makefile.in:plugins/kdb/lmdb/deps:$srcdir/./config/post.in"
13575
13576
13577
13578  elif test "$withval" = yes; then
13579    as_fn_error $? "liblmdb not found" "$LINENO" 5
13580  fi
13581fi
13582
13583
13584
13585
13586# Kludge for simple server --- FIXME is this the best way to do this?
13587
13588if test "$ac_cv_lib_socket" = "yes" -a "$ac_cv_lib_nsl" = "yes"; then
13589
13590$as_echo "#define BROKEN_STREAMS_SOCKETS 1" >>confdefs.h
13591
13592fi
13593
13594# Compile with libedit support in ss by default if available.  Compile
13595# with readline only if asked, to avoid a default GPL dependency.
13596# Building with readline also breaks the dejagnu test suite.
13597
13598# Check whether --with-libedit was given.
13599if test "${with_libedit+set}" = set; then :
13600  withval=$with_libedit;
13601else
13602  with_libedit=default
13603fi
13604
13605
13606# Check whether --with-readline was given.
13607if test "${with_readline+set}" = set; then :
13608  withval=$with_readline;
13609else
13610  with_readline=no
13611fi
13612
13613if test "x$with_readline" = xyes; then
13614  with_libedit=no
13615fi
13616RL_CFLAGS=
13617RL_LIBS=
13618if test "x$with_libedit" != xno; then
13619
13620pkg_failed=no
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
13622$as_echo_n "checking for libedit... " >&6; }
13623
13624if test -n "$LIBEDIT_CFLAGS"; then
13625    pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
13626 elif test -n "$PKG_CONFIG"; then
13627    if test -n "$PKG_CONFIG" && \
13628    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
13629  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
13630  ac_status=$?
13631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632  test $ac_status = 0; }; then
13633  pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
13634		      test "x$?" != "x0" && pkg_failed=yes
13635else
13636  pkg_failed=yes
13637fi
13638 else
13639    pkg_failed=untried
13640fi
13641if test -n "$LIBEDIT_LIBS"; then
13642    pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
13643 elif test -n "$PKG_CONFIG"; then
13644    if test -n "$PKG_CONFIG" && \
13645    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
13646  ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
13647  ac_status=$?
13648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13649  test $ac_status = 0; }; then
13650  pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
13651		      test "x$?" != "x0" && pkg_failed=yes
13652else
13653  pkg_failed=yes
13654fi
13655 else
13656    pkg_failed=untried
13657fi
13658
13659
13660
13661if test $pkg_failed = yes; then
13662        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663$as_echo "no" >&6; }
13664
13665if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13666        _pkg_short_errors_supported=yes
13667else
13668        _pkg_short_errors_supported=no
13669fi
13670        if test $_pkg_short_errors_supported = yes; then
13671	        LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
13672        else
13673	        LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
13674        fi
13675	# Put the nasty error message in config.log where it belongs
13676	echo "$LIBEDIT_PKG_ERRORS" >&5
13677
13678	have_libedit=no
13679elif test $pkg_failed = untried; then
13680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681$as_echo "no" >&6; }
13682	have_libedit=no
13683else
13684	LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
13685	LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
13686        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13687$as_echo "yes" >&6; }
13688	have_libedit=yes
13689fi
13690  if test "x$have_libedit" = xyes; then
13691    RL_CFLAGS=$LIBEDIT_CFLAGS
13692    RL_LIBS=$LIBEDIT_LIBS
13693
13694$as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
13695
13696    { $as_echo "$as_me:${as_lineno-$LINENO}: Using libedit for readline support" >&5
13697$as_echo "$as_me: Using libedit for readline support" >&6;}
13698  elif test "x$with_libedit" = xyes; then
13699    # We were explicitly asked for libedit and couldn't find it.
13700    as_fn_error $? "Could not detect libedit with pkg-config" "$LINENO" 5
13701  else
13702    { $as_echo "$as_me:${as_lineno-$LINENO}: Not using any readline support" >&5
13703$as_echo "$as_me: Not using any readline support" >&6;}
13704  fi
13705elif test "x$with_readline" = xyes; then
13706  { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU Readline" >&5
13707$as_echo "$as_me: Using GNU Readline" >&6;}
13708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
13709$as_echo_n "checking for main in -lreadline... " >&6; }
13710if ${ac_cv_lib_readline_main+:} false; then :
13711  $as_echo_n "(cached) " >&6
13712else
13713  ac_check_lib_save_LIBS=$LIBS
13714LIBS="-lreadline  $LIBS"
13715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716/* end confdefs.h.  */
13717
13718
13719int
13720main ()
13721{
13722return main ();
13723  ;
13724  return 0;
13725}
13726_ACEOF
13727if ac_fn_c_try_link "$LINENO"; then :
13728  ac_cv_lib_readline_main=yes
13729else
13730  ac_cv_lib_readline_main=no
13731fi
13732rm -f core conftest.err conftest.$ac_objext \
13733    conftest$ac_exeext conftest.$ac_ext
13734LIBS=$ac_check_lib_save_LIBS
13735fi
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
13737$as_echo "$ac_cv_lib_readline_main" >&6; }
13738if test "x$ac_cv_lib_readline_main" = xyes; then :
13739  :
13740else
13741  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13743as_fn_error $? "Cannot find readline library.
13744See \`config.log' for more details" "$LINENO" 5; }
13745fi
13746
13747
13748$as_echo "#define HAVE_READLINE 1" >>confdefs.h
13749
13750  RL_LIBS='-lreadline'
13751else
13752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not using any readline support" >&5
13753$as_echo "Not using any readline support" >&6; }
13754fi
13755
13756
13757
13758
13759# Check whether --with-system-verto was given.
13760if test "${with_system_verto+set}" = set; then :
13761  withval=$with_system_verto;
13762else
13763  with_system_verto=default
13764fi
13765
13766VERTO_VERSION=k5
13767if test "x$with_system_verto" != xno; then
13768
13769pkg_failed=no
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libverto" >&5
13771$as_echo_n "checking for libverto... " >&6; }
13772
13773if test -n "$VERTO_CFLAGS"; then
13774    pkg_cv_VERTO_CFLAGS="$VERTO_CFLAGS"
13775 elif test -n "$PKG_CONFIG"; then
13776    if test -n "$PKG_CONFIG" && \
13777    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5
13778  ($PKG_CONFIG --exists --print-errors "libverto") 2>&5
13779  ac_status=$?
13780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13781  test $ac_status = 0; }; then
13782  pkg_cv_VERTO_CFLAGS=`$PKG_CONFIG --cflags "libverto" 2>/dev/null`
13783		      test "x$?" != "x0" && pkg_failed=yes
13784else
13785  pkg_failed=yes
13786fi
13787 else
13788    pkg_failed=untried
13789fi
13790if test -n "$VERTO_LIBS"; then
13791    pkg_cv_VERTO_LIBS="$VERTO_LIBS"
13792 elif test -n "$PKG_CONFIG"; then
13793    if test -n "$PKG_CONFIG" && \
13794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libverto\""; } >&5
13795  ($PKG_CONFIG --exists --print-errors "libverto") 2>&5
13796  ac_status=$?
13797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13798  test $ac_status = 0; }; then
13799  pkg_cv_VERTO_LIBS=`$PKG_CONFIG --libs "libverto" 2>/dev/null`
13800		      test "x$?" != "x0" && pkg_failed=yes
13801else
13802  pkg_failed=yes
13803fi
13804 else
13805    pkg_failed=untried
13806fi
13807
13808
13809
13810if test $pkg_failed = yes; then
13811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13812$as_echo "no" >&6; }
13813
13814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13815        _pkg_short_errors_supported=yes
13816else
13817        _pkg_short_errors_supported=no
13818fi
13819        if test $_pkg_short_errors_supported = yes; then
13820	        VERTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libverto" 2>&1`
13821        else
13822	        VERTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libverto" 2>&1`
13823        fi
13824	# Put the nasty error message in config.log where it belongs
13825	echo "$VERTO_PKG_ERRORS" >&5
13826
13827	have_sysverto=no
13828elif test $pkg_failed = untried; then
13829        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830$as_echo "no" >&6; }
13831	have_sysverto=no
13832else
13833	VERTO_CFLAGS=$pkg_cv_VERTO_CFLAGS
13834	VERTO_LIBS=$pkg_cv_VERTO_LIBS
13835        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13836$as_echo "yes" >&6; }
13837	have_sysverto=yes
13838fi
13839  if test "x$have_sysverto" = xyes; then
13840    VERTO_VERSION=sys
13841  elif test "x$with_system_verto" = xyes; then
13842    as_fn_error $? "cannot detect system libverto" "$LINENO" 5
13843  fi
13844fi
13845if test "x$VERTO_VERSION" = xsys; then
13846  { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libverto" >&5
13847$as_echo "$as_me: Using system libverto" >&6;}
13848else
13849  VERTO_CFLAGS=
13850  VERTO_LIBS="-lverto"
13851  { $as_echo "$as_me:${as_lineno-$LINENO}: Using built-in libverto" >&5
13852$as_echo "$as_me: Using built-in libverto" >&6;}
13853fi
13854
13855
13856
13857
13858# Extract the first word of "groff", so it can be a program name with args.
13859set dummy groff; ac_word=$2
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861$as_echo_n "checking for $ac_word... " >&6; }
13862if ${ac_cv_path_GROFF+:} false; then :
13863  $as_echo_n "(cached) " >&6
13864else
13865  case $GROFF in
13866  [\\/]* | ?:[\\/]*)
13867  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
13868  ;;
13869  *)
13870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871for as_dir in $PATH
13872do
13873  IFS=$as_save_IFS
13874  test -z "$as_dir" && as_dir=.
13875    for ac_exec_ext in '' $ac_executable_extensions; do
13876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13877    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
13878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879    break 2
13880  fi
13881done
13882  done
13883IFS=$as_save_IFS
13884
13885  ;;
13886esac
13887fi
13888GROFF=$ac_cv_path_GROFF
13889if test -n "$GROFF"; then
13890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
13891$as_echo "$GROFF" >&6; }
13892else
13893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13894$as_echo "no" >&6; }
13895fi
13896
13897
13898
13899# Make localedir work in autoconf 2.5x.
13900if test "${localedir+set}" != set; then
13901    localedir='$(datadir)/locale'
13902fi
13903
13904
13905# For KCM lib/krb5/ccache to build KCM Mach RPC support for macOS only.
13906case $host in
13907*-*-darwin* | *-*-rhapsody*) OSX=osx ;;
13908*)                           OSX=no ;;
13909esac
13910
13911
13912# Build-time default ccache, keytab, and client keytab names.  These
13913# can be given as variable arguments DEFCCNAME, DEFKTNAME, and
13914# DEFCKTNAME.  Otherwise, we try to get the OS defaults from
13915# krb5-config if we can, or fall back to hardcoded defaults.
13916
13917
13918
13919
13920# Check whether --with-krb5-config was given.
13921if test "${with_krb5_config+set}" = set; then :
13922  withval=$with_krb5_config;
13923else
13924  with_krb5_config=krb5-config
13925fi
13926
13927if test "x$with_krb5_config" != xno; then
13928	if test "x$with_krb5_config" = xyes; then
13929		with_krb5_config=krb5-config
13930	fi
13931	if $with_krb5_config --help 2>&1 | grep defccname >/dev/null; then
13932		{ $as_echo "$as_me:${as_lineno-$LINENO}: Using $with_krb5_config for build defaults" >&5
13933$as_echo "$as_me: Using $with_krb5_config for build defaults" >&6;}
13934		: "${DEFCCNAME=`$with_krb5_config --defccname`}"
13935		: "${DEFKTNAME=`$with_krb5_config --defktname`}"
13936		: "${DEFCKTNAME=`$with_krb5_config --defcktname`}"
13937	fi
13938fi
13939if test "${DEFCCNAME+set}" != set; then
13940	case $host in
13941	*-*-darwin[0-9].* | *-*-darwin10.*)
13942		# Use the normal default for macOS 10.6 (Darwin 10) and prior.
13943		;;
13944	*-*-darwin*)
13945		# For macOS 10.7 (Darwin 11) and later, the native ccache uses
13946		# the KCM daemon.
13947		DEFCCNAME=KCM:
13948		;;
13949	esac
13950	if test "${DEFCCNAME+set}" != set; then
13951		DEFCCNAME=FILE:/tmp/krb5cc_%{uid}
13952	fi
13953fi
13954if test "${DEFKTNAME+set}" != set; then
13955	DEFKTNAME=FILE:/etc/krb5.keytab
13956fi
13957if test "${DEFCKTNAME+set}" != set; then
13958	_lcl_receval="$localstatedir"
13959exp_localstatedir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13960     test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
13961     _lcl_receval_old=''
13962     while test "$_lcl_receval_old" != "$_lcl_receval"; do
13963       _lcl_receval_old="$_lcl_receval"
13964       eval _lcl_receval="\"$_lcl_receval\""
13965     done
13966     echo "$_lcl_receval")`
13967	DEFCKTNAME=FILE:$exp_localstatedir/krb5/user/%{euid}/client.keytab
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: Default ccache name: $DEFCCNAME" >&5
13970$as_echo "$as_me: Default ccache name: $DEFCCNAME" >&6;}
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: Default keytab name: $DEFKTNAME" >&5
13972$as_echo "$as_me: Default keytab name: $DEFKTNAME" >&6;}
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: Default client keytab name: $DEFCKTNAME" >&5
13974$as_echo "$as_me: Default client keytab name: $DEFCKTNAME" >&6;}
13975
13976cat >>confdefs.h <<_ACEOF
13977#define DEFCCNAME "$DEFCCNAME"
13978_ACEOF
13979
13980
13981cat >>confdefs.h <<_ACEOF
13982#define DEFKTNAME "$DEFKTNAME"
13983_ACEOF
13984
13985
13986cat >>confdefs.h <<_ACEOF
13987#define DEFCKTNAME "$DEFCKTNAME"
13988_ACEOF
13989
13990
13991ac_config_files="$ac_config_files build-tools/krb5-config"
13992
13993ac_config_files="$ac_config_files build-tools/kadm-server.pc build-tools/kadm-client.pc build-tools/kdb.pc build-tools/krb5.pc build-tools/krb5-gssapi.pc build-tools/mit-krb5.pc build-tools/mit-krb5-gssapi.pc build-tools/gssrpc.pc"
13994
13995
13996 ac_config_files="$ac_config_files ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in"
13997 ac_config_files="$ac_config_files util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in"
13998 ac_config_files="$ac_config_files util/support/Makefile:$srcdir/./config/pre.in:util/support/Makefile.in:util/support/deps:$srcdir/./config/post.in"
13999 ac_config_files="$ac_config_files util/profile/Makefile:$srcdir/./config/pre.in:util/profile/Makefile.in:util/profile/deps:$srcdir/./config/post.in"
14000 ac_config_files="$ac_config_files util/profile/testmod/Makefile:$srcdir/./config/pre.in:util/profile/testmod/Makefile.in:util/profile/testmod/deps:$srcdir/./config/post.in"
14001 ac_config_files="$ac_config_files util/verto/Makefile:$srcdir/./config/pre.in:util/verto/Makefile.in:util/verto/deps:$srcdir/./config/post.in"
14002 ac_config_files="$ac_config_files lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in"
14003 ac_config_files="$ac_config_files lib/kdb/Makefile:$srcdir/./config/pre.in:lib/kdb/Makefile.in:lib/kdb/deps:$srcdir/./config/post.in"
14004 ac_config_files="$ac_config_files lib/crypto/Makefile:$srcdir/./config/pre.in:lib/crypto/Makefile.in:lib/crypto/deps:$srcdir/./config/post.in"
14005 ac_config_files="$ac_config_files lib/crypto/krb/Makefile:$srcdir/./config/pre.in:lib/crypto/krb/Makefile.in:lib/crypto/krb/deps:$srcdir/./config/post.in"
14006 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/Makefile.in:lib/crypto/$CRYPTO_IMPL/deps:$srcdir/./config/post.in"
14007 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/enc_provider/deps:$srcdir/./config/post.in"
14008 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/hash_provider/deps:$srcdir/./config/post.in"
14009 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/des/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/des/Makefile.in:lib/crypto/$CRYPTO_IMPL/des/deps:$srcdir/./config/post.in"
14010 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/md4/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md4/Makefile.in:lib/crypto/$CRYPTO_IMPL/md4/deps:$srcdir/./config/post.in"
14011 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/md5/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md5/Makefile.in:lib/crypto/$CRYPTO_IMPL/md5/deps:$srcdir/./config/post.in"
14012 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/sha1/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha1/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha1/deps:$srcdir/./config/post.in"
14013 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/sha2/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha2/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha2/deps:$srcdir/./config/post.in"
14014 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/aes/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/aes/Makefile.in:lib/crypto/$CRYPTO_IMPL/aes/deps:$srcdir/./config/post.in"
14015 ac_config_files="$ac_config_files lib/crypto/$CRYPTO_IMPL/camellia/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/camellia/Makefile.in:lib/crypto/$CRYPTO_IMPL/camellia/deps:$srcdir/./config/post.in"
14016 ac_config_files="$ac_config_files lib/crypto/crypto_tests/Makefile:$srcdir/./config/pre.in:lib/crypto/crypto_tests/Makefile.in:lib/crypto/crypto_tests/deps:$srcdir/./config/post.in"
14017 ac_config_files="$ac_config_files lib/krb5/Makefile:$srcdir/./config/pre.in:lib/krb5/Makefile.in:lib/krb5/deps:$srcdir/./config/post.in"
14018 ac_config_files="$ac_config_files lib/krb5/error_tables/Makefile:$srcdir/./config/pre.in:lib/krb5/error_tables/Makefile.in:lib/krb5/error_tables/deps:$srcdir/./config/post.in"
14019 ac_config_files="$ac_config_files lib/krb5/asn.1/Makefile:$srcdir/./config/pre.in:lib/krb5/asn.1/Makefile.in:lib/krb5/asn.1/deps:$srcdir/./config/post.in"
14020 ac_config_files="$ac_config_files lib/krb5/ccache/Makefile:$srcdir/./config/pre.in:lib/krb5/ccache/Makefile.in:lib/krb5/ccache/deps:$srcdir/./config/post.in"
14021 ac_config_files="$ac_config_files lib/krb5/keytab/Makefile:$srcdir/./config/pre.in:lib/krb5/keytab/Makefile.in:lib/krb5/keytab/deps:$srcdir/./config/post.in"
14022 ac_config_files="$ac_config_files lib/krb5/krb/Makefile:$srcdir/./config/pre.in:lib/krb5/krb/Makefile.in:lib/krb5/krb/deps:$srcdir/./config/post.in"
14023 ac_config_files="$ac_config_files lib/krb5/rcache/Makefile:$srcdir/./config/pre.in:lib/krb5/rcache/Makefile.in:lib/krb5/rcache/deps:$srcdir/./config/post.in"
14024 ac_config_files="$ac_config_files lib/krb5/os/Makefile:$srcdir/./config/pre.in:lib/krb5/os/Makefile.in:lib/krb5/os/deps:$srcdir/./config/post.in"
14025 ac_config_files="$ac_config_files lib/krb5/unicode/Makefile:$srcdir/./config/pre.in:lib/krb5/unicode/Makefile.in:lib/krb5/unicode/deps:$srcdir/./config/post.in"
14026 ac_config_files="$ac_config_files lib/gssapi/Makefile:$srcdir/./config/pre.in:lib/gssapi/Makefile.in:lib/gssapi/deps:$srcdir/./config/post.in"
14027 ac_config_files="$ac_config_files lib/gssapi/generic/Makefile:$srcdir/./config/pre.in:lib/gssapi/generic/Makefile.in:lib/gssapi/generic/deps:$srcdir/./config/post.in"
14028 ac_config_files="$ac_config_files lib/gssapi/krb5/Makefile:$srcdir/./config/pre.in:lib/gssapi/krb5/Makefile.in:lib/gssapi/krb5/deps:$srcdir/./config/post.in"
14029 ac_config_files="$ac_config_files lib/gssapi/spnego/Makefile:$srcdir/./config/pre.in:lib/gssapi/spnego/Makefile.in:lib/gssapi/spnego/deps:$srcdir/./config/post.in"
14030 ac_config_files="$ac_config_files lib/gssapi/mechglue/Makefile:$srcdir/./config/pre.in:lib/gssapi/mechglue/Makefile.in:lib/gssapi/mechglue/deps:$srcdir/./config/post.in"
14031 ac_config_files="$ac_config_files lib/rpc/Makefile:$srcdir/./config/pre.in:lib/rpc/Makefile.in:lib/rpc/deps:$srcdir/./config/post.in"
14032 ac_config_files="$ac_config_files lib/rpc/unit-test/Makefile:$srcdir/./config/pre.in:lib/rpc/unit-test/Makefile.in:lib/rpc/unit-test/deps:$srcdir/./config/post.in"
14033 ac_config_files="$ac_config_files lib/kadm5/Makefile:$srcdir/./config/pre.in:lib/kadm5/Makefile.in:lib/kadm5/deps:$srcdir/./config/post.in"
14034 ac_config_files="$ac_config_files lib/kadm5/clnt/Makefile:$srcdir/./config/pre.in:lib/kadm5/clnt/Makefile.in:lib/kadm5/clnt/deps:$srcdir/./config/post.in"
14035 ac_config_files="$ac_config_files lib/kadm5/srv/Makefile:$srcdir/./config/pre.in:lib/kadm5/srv/Makefile.in:lib/kadm5/srv/deps:$srcdir/./config/post.in"
14036 ac_config_files="$ac_config_files lib/kadm5/unit-test/Makefile:$srcdir/./config/pre.in:lib/kadm5/unit-test/Makefile.in:lib/kadm5/unit-test/deps:$srcdir/./config/post.in"
14037 ac_config_files="$ac_config_files lib/krad/Makefile:$srcdir/./config/pre.in:lib/krad/Makefile.in:lib/krad/deps:$srcdir/./config/post.in"
14038 ac_config_files="$ac_config_files lib/apputils/Makefile:$srcdir/./config/pre.in:lib/apputils/Makefile.in:lib/apputils/deps:$srcdir/./config/post.in"
14039 ac_config_files="$ac_config_files kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in"
14040 ac_config_files="$ac_config_files kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in"
14041 ac_config_files="$ac_config_files config-files/Makefile:$srcdir/./config/pre.in:config-files/Makefile.in:config-files/deps:$srcdir/./config/post.in"
14042 ac_config_files="$ac_config_files build-tools/Makefile:$srcdir/./config/pre.in:build-tools/Makefile.in:build-tools/deps:$srcdir/./config/post.in"
14043 ac_config_files="$ac_config_files man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in"
14044 ac_config_files="$ac_config_files doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in"
14045 ac_config_files="$ac_config_files include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in"
14046 ac_config_files="$ac_config_files plugins/certauth/test/Makefile:$srcdir/./config/pre.in:plugins/certauth/test/Makefile.in:plugins/certauth/test/deps:$srcdir/./config/post.in"
14047 ac_config_files="$ac_config_files plugins/gssapi/negoextest/Makefile:$srcdir/./config/pre.in:plugins/gssapi/negoextest/Makefile.in:plugins/gssapi/negoextest/deps:$srcdir/./config/post.in"
14048 ac_config_files="$ac_config_files plugins/hostrealm/test/Makefile:$srcdir/./config/pre.in:plugins/hostrealm/test/Makefile.in:plugins/hostrealm/test/deps:$srcdir/./config/post.in"
14049 ac_config_files="$ac_config_files plugins/localauth/test/Makefile:$srcdir/./config/pre.in:plugins/localauth/test/Makefile.in:plugins/localauth/test/deps:$srcdir/./config/post.in"
14050 ac_config_files="$ac_config_files plugins/kadm5_hook/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_hook/test/Makefile.in:plugins/kadm5_hook/test/deps:$srcdir/./config/post.in"
14051 ac_config_files="$ac_config_files plugins/kadm5_auth/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_auth/test/Makefile.in:plugins/kadm5_auth/test/deps:$srcdir/./config/post.in"
14052 ac_config_files="$ac_config_files plugins/pwqual/test/Makefile:$srcdir/./config/pre.in:plugins/pwqual/test/Makefile.in:plugins/pwqual/test/deps:$srcdir/./config/post.in"
14053 ac_config_files="$ac_config_files plugins/audit/Makefile:$srcdir/./config/pre.in:plugins/audit/Makefile.in:plugins/audit/deps:$srcdir/./config/post.in"
14054 ac_config_files="$ac_config_files plugins/audit/test/Makefile:$srcdir/./config/pre.in:plugins/audit/test/Makefile.in:plugins/audit/test/deps:$srcdir/./config/post.in"
14055 ac_config_files="$ac_config_files plugins/kdb/db2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/Makefile.in:plugins/kdb/db2/deps:$srcdir/./config/post.in"
14056 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/Makefile.in:plugins/kdb/db2/libdb2/deps:$srcdir/./config/post.in"
14057 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/hash/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/hash/Makefile.in:plugins/kdb/db2/libdb2/hash/deps:$srcdir/./config/post.in"
14058 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/btree/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/btree/Makefile.in:plugins/kdb/db2/libdb2/btree/deps:$srcdir/./config/post.in"
14059 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/db/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/db/Makefile.in:plugins/kdb/db2/libdb2/db/deps:$srcdir/./config/post.in"
14060 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/mpool/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/mpool/Makefile.in:plugins/kdb/db2/libdb2/mpool/deps:$srcdir/./config/post.in"
14061 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/recno/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/recno/Makefile.in:plugins/kdb/db2/libdb2/recno/deps:$srcdir/./config/post.in"
14062 ac_config_files="$ac_config_files plugins/kdb/db2/libdb2/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/test/Makefile.in:plugins/kdb/db2/libdb2/test/deps:$srcdir/./config/post.in"
14063 ac_config_files="$ac_config_files plugins/kdb/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/test/Makefile.in:plugins/kdb/test/deps:$srcdir/./config/post.in"
14064 ac_config_files="$ac_config_files plugins/kdcpolicy/test/Makefile:$srcdir/./config/pre.in:plugins/kdcpolicy/test/Makefile.in:plugins/kdcpolicy/test/deps:$srcdir/./config/post.in"
14065 ac_config_files="$ac_config_files plugins/preauth/otp/Makefile:$srcdir/./config/pre.in:plugins/preauth/otp/Makefile.in:plugins/preauth/otp/deps:$srcdir/./config/post.in"
14066 ac_config_files="$ac_config_files plugins/preauth/spake/Makefile:$srcdir/./config/pre.in:plugins/preauth/spake/Makefile.in:plugins/preauth/spake/deps:$srcdir/./config/post.in"
14067 ac_config_files="$ac_config_files plugins/preauth/test/Makefile:$srcdir/./config/pre.in:plugins/preauth/test/Makefile.in:plugins/preauth/test/deps:$srcdir/./config/post.in"
14068 ac_config_files="$ac_config_files plugins/authdata/greet_client/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_client/Makefile.in:plugins/authdata/greet_client/deps:$srcdir/./config/post.in"
14069 ac_config_files="$ac_config_files plugins/authdata/greet_server/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_server/Makefile.in:plugins/authdata/greet_server/deps:$srcdir/./config/post.in"
14070 ac_config_files="$ac_config_files plugins/tls/k5tls/Makefile:$srcdir/./config/pre.in:plugins/tls/k5tls/Makefile.in:plugins/tls/k5tls/deps:$srcdir/./config/post.in"
14071 ac_config_files="$ac_config_files clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in"
14072 ac_config_files="$ac_config_files clients/klist/Makefile:$srcdir/./config/pre.in:clients/klist/Makefile.in:clients/klist/deps:$srcdir/./config/post.in"
14073 ac_config_files="$ac_config_files clients/kinit/Makefile:$srcdir/./config/pre.in:clients/kinit/Makefile.in:clients/kinit/deps:$srcdir/./config/post.in"
14074 ac_config_files="$ac_config_files clients/kvno/Makefile:$srcdir/./config/pre.in:clients/kvno/Makefile.in:clients/kvno/deps:$srcdir/./config/post.in"
14075 ac_config_files="$ac_config_files clients/kdestroy/Makefile:$srcdir/./config/pre.in:clients/kdestroy/Makefile.in:clients/kdestroy/deps:$srcdir/./config/post.in"
14076 ac_config_files="$ac_config_files clients/kpasswd/Makefile:$srcdir/./config/pre.in:clients/kpasswd/Makefile.in:clients/kpasswd/deps:$srcdir/./config/post.in"
14077 ac_config_files="$ac_config_files clients/ksu/Makefile:$srcdir/./config/pre.in:clients/ksu/Makefile.in:clients/ksu/deps:$srcdir/./config/post.in"
14078 ac_config_files="$ac_config_files clients/kswitch/Makefile:$srcdir/./config/pre.in:clients/kswitch/Makefile.in:clients/kswitch/deps:$srcdir/./config/post.in"
14079 ac_config_files="$ac_config_files kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in"
14080 ac_config_files="$ac_config_files kadmin/cli/Makefile:$srcdir/./config/pre.in:kadmin/cli/Makefile.in:kadmin/cli/deps:$srcdir/./config/post.in"
14081 ac_config_files="$ac_config_files kadmin/dbutil/Makefile:$srcdir/./config/pre.in:kadmin/dbutil/Makefile.in:kadmin/dbutil/deps:$srcdir/./config/post.in"
14082 ac_config_files="$ac_config_files kadmin/ktutil/Makefile:$srcdir/./config/pre.in:kadmin/ktutil/Makefile.in:kadmin/ktutil/deps:$srcdir/./config/post.in"
14083 ac_config_files="$ac_config_files kadmin/server/Makefile:$srcdir/./config/pre.in:kadmin/server/Makefile.in:kadmin/server/deps:$srcdir/./config/post.in"
14084 ac_config_files="$ac_config_files kadmin/testing/Makefile:$srcdir/./config/pre.in:kadmin/testing/Makefile.in:kadmin/testing/deps:$srcdir/./config/post.in"
14085 ac_config_files="$ac_config_files kadmin/testing/scripts/Makefile:$srcdir/./config/pre.in:kadmin/testing/scripts/Makefile.in:kadmin/testing/scripts/deps:$srcdir/./config/post.in"
14086 ac_config_files="$ac_config_files kadmin/testing/util/Makefile:$srcdir/./config/pre.in:kadmin/testing/util/Makefile.in:kadmin/testing/util/deps:$srcdir/./config/post.in"
14087 ac_config_files="$ac_config_files appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in"
14088 ac_config_files="$ac_config_files appl/sample/Makefile:$srcdir/./config/pre.in:appl/sample/Makefile.in:appl/sample/deps:$srcdir/./config/post.in"
14089 ac_config_files="$ac_config_files appl/sample/sclient/Makefile:$srcdir/./config/pre.in:appl/sample/sclient/Makefile.in:appl/sample/sclient/deps:$srcdir/./config/post.in"
14090 ac_config_files="$ac_config_files appl/sample/sserver/Makefile:$srcdir/./config/pre.in:appl/sample/sserver/Makefile.in:appl/sample/sserver/deps:$srcdir/./config/post.in"
14091 ac_config_files="$ac_config_files appl/simple/Makefile:$srcdir/./config/pre.in:appl/simple/Makefile.in:appl/simple/deps:$srcdir/./config/post.in"
14092 ac_config_files="$ac_config_files appl/simple/client/Makefile:$srcdir/./config/pre.in:appl/simple/client/Makefile.in:appl/simple/client/deps:$srcdir/./config/post.in"
14093 ac_config_files="$ac_config_files appl/simple/server/Makefile:$srcdir/./config/pre.in:appl/simple/server/Makefile.in:appl/simple/server/deps:$srcdir/./config/post.in"
14094 ac_config_files="$ac_config_files appl/gss-sample/Makefile:$srcdir/./config/pre.in:appl/gss-sample/Makefile.in:appl/gss-sample/deps:$srcdir/./config/post.in"
14095 ac_config_files="$ac_config_files appl/user_user/Makefile:$srcdir/./config/pre.in:appl/user_user/Makefile.in:appl/user_user/deps:$srcdir/./config/post.in"
14096 ac_config_files="$ac_config_files tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in"
14097 ac_config_files="$ac_config_files tests/resolve/Makefile:$srcdir/./config/pre.in:tests/resolve/Makefile.in:tests/resolve/deps:$srcdir/./config/post.in"
14098 ac_config_files="$ac_config_files tests/asn.1/Makefile:$srcdir/./config/pre.in:tests/asn.1/Makefile.in:tests/asn.1/deps:$srcdir/./config/post.in"
14099 ac_config_files="$ac_config_files tests/create/Makefile:$srcdir/./config/pre.in:tests/create/Makefile.in:tests/create/deps:$srcdir/./config/post.in"
14100 ac_config_files="$ac_config_files tests/hammer/Makefile:$srcdir/./config/pre.in:tests/hammer/Makefile.in:tests/hammer/deps:$srcdir/./config/post.in"
14101 ac_config_files="$ac_config_files tests/verify/Makefile:$srcdir/./config/pre.in:tests/verify/Makefile.in:tests/verify/deps:$srcdir/./config/post.in"
14102 ac_config_files="$ac_config_files tests/gssapi/Makefile:$srcdir/./config/pre.in:tests/gssapi/Makefile.in:tests/gssapi/deps:$srcdir/./config/post.in"
14103 ac_config_files="$ac_config_files tests/dejagnu/Makefile:$srcdir/./config/pre.in:tests/dejagnu/Makefile.in:tests/dejagnu/deps:$srcdir/./config/post.in"
14104 ac_config_files="$ac_config_files tests/threads/Makefile:$srcdir/./config/pre.in:tests/threads/Makefile.in:tests/threads/deps:$srcdir/./config/post.in"
14105 ac_config_files="$ac_config_files tests/shlib/Makefile:$srcdir/./config/pre.in:tests/shlib/Makefile.in:tests/shlib/deps:$srcdir/./config/post.in"
14106 ac_config_files="$ac_config_files tests/gss-threads/Makefile:$srcdir/./config/pre.in:tests/gss-threads/Makefile.in:tests/gss-threads/deps:$srcdir/./config/post.in"
14107 ac_config_files="$ac_config_files tests/misc/Makefile:$srcdir/./config/pre.in:tests/misc/Makefile.in:tests/misc/deps:$srcdir/./config/post.in"
14108
14109cat >confcache <<\_ACEOF
14110# This file is a shell script that caches the results of configure
14111# tests run on this system so they can be shared between configure
14112# scripts and configure runs, see configure's option --config-cache.
14113# It is not useful on other systems.  If it contains results you don't
14114# want to keep, you may remove or edit it.
14115#
14116# config.status only pays attention to the cache file if you give it
14117# the --recheck option to rerun configure.
14118#
14119# `ac_cv_env_foo' variables (set or unset) will be overridden when
14120# loading this file, other *unset* `ac_cv_foo' will be assigned the
14121# following values.
14122
14123_ACEOF
14124
14125# The following way of writing the cache mishandles newlines in values,
14126# but we know of no workaround that is simple, portable, and efficient.
14127# So, we kill variables containing newlines.
14128# Ultrix sh set writes to stderr and can't be redirected directly,
14129# and sets the high bit in the cache file unless we assign to the vars.
14130(
14131  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14132    eval ac_val=\$$ac_var
14133    case $ac_val in #(
14134    *${as_nl}*)
14135      case $ac_var in #(
14136      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14137$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14138      esac
14139      case $ac_var in #(
14140      _ | IFS | as_nl) ;; #(
14141      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14142      *) { eval $ac_var=; unset $ac_var;} ;;
14143      esac ;;
14144    esac
14145  done
14146
14147  (set) 2>&1 |
14148    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14149    *${as_nl}ac_space=\ *)
14150      # `set' does not quote correctly, so add quotes: double-quote
14151      # substitution turns \\\\ into \\, and sed turns \\ into \.
14152      sed -n \
14153	"s/'/'\\\\''/g;
14154	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14155      ;; #(
14156    *)
14157      # `set' quotes correctly as required by POSIX, so do not add quotes.
14158      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14159      ;;
14160    esac |
14161    sort
14162) |
14163  sed '
14164     /^ac_cv_env_/b end
14165     t clear
14166     :clear
14167     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14168     t end
14169     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14170     :end' >>confcache
14171if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14172  if test -w "$cache_file"; then
14173    if test "x$cache_file" != "x/dev/null"; then
14174      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14175$as_echo "$as_me: updating cache $cache_file" >&6;}
14176      if test ! -f "$cache_file" || test -h "$cache_file"; then
14177	cat confcache >"$cache_file"
14178      else
14179        case $cache_file in #(
14180        */* | ?:*)
14181	  mv -f confcache "$cache_file"$$ &&
14182	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14183        *)
14184	  mv -f confcache "$cache_file" ;;
14185	esac
14186      fi
14187    fi
14188  else
14189    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14190$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14191  fi
14192fi
14193rm -f confcache
14194
14195test "x$prefix" = xNONE && prefix=$ac_default_prefix
14196# Let make expand exec_prefix.
14197test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14198
14199DEFS=-DHAVE_CONFIG_H
14200
14201ac_libobjs=
14202ac_ltlibobjs=
14203U=
14204for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14205  # 1. Remove the extension, and $U if already installed.
14206  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14207  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14208  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14209  #    will be set to the directory where LIBOBJS objects are built.
14210  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14211  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14212done
14213LIBOBJS=$ac_libobjs
14214
14215LTLIBOBJS=$ac_ltlibobjs
14216
14217
14218
14219: "${CONFIG_STATUS=./config.status}"
14220ac_write_fail=0
14221ac_clean_files_save=$ac_clean_files
14222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14224$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14225as_write_fail=0
14226cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14227#! $SHELL
14228# Generated by $as_me.
14229# Run this file to recreate the current configuration.
14230# Compiler output produced by configure, useful for debugging
14231# configure, is in config.log if it exists.
14232
14233debug=false
14234ac_cs_recheck=false
14235ac_cs_silent=false
14236
14237SHELL=\${CONFIG_SHELL-$SHELL}
14238export SHELL
14239_ASEOF
14240cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14241## -------------------- ##
14242## M4sh Initialization. ##
14243## -------------------- ##
14244
14245# Be more Bourne compatible
14246DUALCASE=1; export DUALCASE # for MKS sh
14247if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14248  emulate sh
14249  NULLCMD=:
14250  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14251  # is contrary to our usage.  Disable this feature.
14252  alias -g '${1+"$@"}'='"$@"'
14253  setopt NO_GLOB_SUBST
14254else
14255  case `(set -o) 2>/dev/null` in #(
14256  *posix*) :
14257    set -o posix ;; #(
14258  *) :
14259     ;;
14260esac
14261fi
14262
14263
14264as_nl='
14265'
14266export as_nl
14267# Printing a long string crashes Solaris 7 /usr/bin/printf.
14268as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14271# Prefer a ksh shell builtin over an external printf program on Solaris,
14272# but without wasting forks for bash or zsh.
14273if test -z "$BASH_VERSION$ZSH_VERSION" \
14274    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14275  as_echo='print -r --'
14276  as_echo_n='print -rn --'
14277elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14278  as_echo='printf %s\n'
14279  as_echo_n='printf %s'
14280else
14281  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14282    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14283    as_echo_n='/usr/ucb/echo -n'
14284  else
14285    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14286    as_echo_n_body='eval
14287      arg=$1;
14288      case $arg in #(
14289      *"$as_nl"*)
14290	expr "X$arg" : "X\\(.*\\)$as_nl";
14291	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14292      esac;
14293      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14294    '
14295    export as_echo_n_body
14296    as_echo_n='sh -c $as_echo_n_body as_echo'
14297  fi
14298  export as_echo_body
14299  as_echo='sh -c $as_echo_body as_echo'
14300fi
14301
14302# The user is always right.
14303if test "${PATH_SEPARATOR+set}" != set; then
14304  PATH_SEPARATOR=:
14305  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14306    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14307      PATH_SEPARATOR=';'
14308  }
14309fi
14310
14311
14312# IFS
14313# We need space, tab and new line, in precisely that order.  Quoting is
14314# there to prevent editors from complaining about space-tab.
14315# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14316# splitting by setting IFS to empty value.)
14317IFS=" ""	$as_nl"
14318
14319# Find who we are.  Look in the path if we contain no directory separator.
14320as_myself=
14321case $0 in #((
14322  *[\\/]* ) as_myself=$0 ;;
14323  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326  IFS=$as_save_IFS
14327  test -z "$as_dir" && as_dir=.
14328    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14329  done
14330IFS=$as_save_IFS
14331
14332     ;;
14333esac
14334# We did not find ourselves, most probably we were run as `sh COMMAND'
14335# in which case we are not to be found in the path.
14336if test "x$as_myself" = x; then
14337  as_myself=$0
14338fi
14339if test ! -f "$as_myself"; then
14340  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14341  exit 1
14342fi
14343
14344# Unset variables that we do not need and which cause bugs (e.g. in
14345# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14346# suppresses any "Segmentation fault" message there.  '((' could
14347# trigger a bug in pdksh 5.2.14.
14348for as_var in BASH_ENV ENV MAIL MAILPATH
14349do eval test x\${$as_var+set} = xset \
14350  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14351done
14352PS1='$ '
14353PS2='> '
14354PS4='+ '
14355
14356# NLS nuisances.
14357LC_ALL=C
14358export LC_ALL
14359LANGUAGE=C
14360export LANGUAGE
14361
14362# CDPATH.
14363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14364
14365
14366# as_fn_error STATUS ERROR [LINENO LOG_FD]
14367# ----------------------------------------
14368# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14369# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14370# script with STATUS, using 1 if that was 0.
14371as_fn_error ()
14372{
14373  as_status=$1; test $as_status -eq 0 && as_status=1
14374  if test "$4"; then
14375    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14376    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14377  fi
14378  $as_echo "$as_me: error: $2" >&2
14379  as_fn_exit $as_status
14380} # as_fn_error
14381
14382
14383# as_fn_set_status STATUS
14384# -----------------------
14385# Set $? to STATUS, without forking.
14386as_fn_set_status ()
14387{
14388  return $1
14389} # as_fn_set_status
14390
14391# as_fn_exit STATUS
14392# -----------------
14393# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14394as_fn_exit ()
14395{
14396  set +e
14397  as_fn_set_status $1
14398  exit $1
14399} # as_fn_exit
14400
14401# as_fn_unset VAR
14402# ---------------
14403# Portably unset VAR.
14404as_fn_unset ()
14405{
14406  { eval $1=; unset $1;}
14407}
14408as_unset=as_fn_unset
14409# as_fn_append VAR VALUE
14410# ----------------------
14411# Append the text in VALUE to the end of the definition contained in VAR. Take
14412# advantage of any shell optimizations that allow amortized linear growth over
14413# repeated appends, instead of the typical quadratic growth present in naive
14414# implementations.
14415if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14416  eval 'as_fn_append ()
14417  {
14418    eval $1+=\$2
14419  }'
14420else
14421  as_fn_append ()
14422  {
14423    eval $1=\$$1\$2
14424  }
14425fi # as_fn_append
14426
14427# as_fn_arith ARG...
14428# ------------------
14429# Perform arithmetic evaluation on the ARGs, and store the result in the
14430# global $as_val. Take advantage of shells that can avoid forks. The arguments
14431# must be portable across $(()) and expr.
14432if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14433  eval 'as_fn_arith ()
14434  {
14435    as_val=$(( $* ))
14436  }'
14437else
14438  as_fn_arith ()
14439  {
14440    as_val=`expr "$@" || test $? -eq 1`
14441  }
14442fi # as_fn_arith
14443
14444
14445if expr a : '\(a\)' >/dev/null 2>&1 &&
14446   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14447  as_expr=expr
14448else
14449  as_expr=false
14450fi
14451
14452if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14453  as_basename=basename
14454else
14455  as_basename=false
14456fi
14457
14458if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14459  as_dirname=dirname
14460else
14461  as_dirname=false
14462fi
14463
14464as_me=`$as_basename -- "$0" ||
14465$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14466	 X"$0" : 'X\(//\)$' \| \
14467	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14468$as_echo X/"$0" |
14469    sed '/^.*\/\([^/][^/]*\)\/*$/{
14470	    s//\1/
14471	    q
14472	  }
14473	  /^X\/\(\/\/\)$/{
14474	    s//\1/
14475	    q
14476	  }
14477	  /^X\/\(\/\).*/{
14478	    s//\1/
14479	    q
14480	  }
14481	  s/.*/./; q'`
14482
14483# Avoid depending upon Character Ranges.
14484as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14485as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14486as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14487as_cr_digits='0123456789'
14488as_cr_alnum=$as_cr_Letters$as_cr_digits
14489
14490ECHO_C= ECHO_N= ECHO_T=
14491case `echo -n x` in #(((((
14492-n*)
14493  case `echo 'xy\c'` in
14494  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14495  xy)  ECHO_C='\c';;
14496  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14497       ECHO_T='	';;
14498  esac;;
14499*)
14500  ECHO_N='-n';;
14501esac
14502
14503rm -f conf$$ conf$$.exe conf$$.file
14504if test -d conf$$.dir; then
14505  rm -f conf$$.dir/conf$$.file
14506else
14507  rm -f conf$$.dir
14508  mkdir conf$$.dir 2>/dev/null
14509fi
14510if (echo >conf$$.file) 2>/dev/null; then
14511  if ln -s conf$$.file conf$$ 2>/dev/null; then
14512    as_ln_s='ln -s'
14513    # ... but there are two gotchas:
14514    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14515    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14516    # In both cases, we have to default to `cp -pR'.
14517    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14518      as_ln_s='cp -pR'
14519  elif ln conf$$.file conf$$ 2>/dev/null; then
14520    as_ln_s=ln
14521  else
14522    as_ln_s='cp -pR'
14523  fi
14524else
14525  as_ln_s='cp -pR'
14526fi
14527rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14528rmdir conf$$.dir 2>/dev/null
14529
14530
14531# as_fn_mkdir_p
14532# -------------
14533# Create "$as_dir" as a directory, including parents if necessary.
14534as_fn_mkdir_p ()
14535{
14536
14537  case $as_dir in #(
14538  -*) as_dir=./$as_dir;;
14539  esac
14540  test -d "$as_dir" || eval $as_mkdir_p || {
14541    as_dirs=
14542    while :; do
14543      case $as_dir in #(
14544      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14545      *) as_qdir=$as_dir;;
14546      esac
14547      as_dirs="'$as_qdir' $as_dirs"
14548      as_dir=`$as_dirname -- "$as_dir" ||
14549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14550	 X"$as_dir" : 'X\(//\)[^/]' \| \
14551	 X"$as_dir" : 'X\(//\)$' \| \
14552	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14553$as_echo X"$as_dir" |
14554    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14555	    s//\1/
14556	    q
14557	  }
14558	  /^X\(\/\/\)[^/].*/{
14559	    s//\1/
14560	    q
14561	  }
14562	  /^X\(\/\/\)$/{
14563	    s//\1/
14564	    q
14565	  }
14566	  /^X\(\/\).*/{
14567	    s//\1/
14568	    q
14569	  }
14570	  s/.*/./; q'`
14571      test -d "$as_dir" && break
14572    done
14573    test -z "$as_dirs" || eval "mkdir $as_dirs"
14574  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14575
14576
14577} # as_fn_mkdir_p
14578if mkdir -p . 2>/dev/null; then
14579  as_mkdir_p='mkdir -p "$as_dir"'
14580else
14581  test -d ./-p && rmdir ./-p
14582  as_mkdir_p=false
14583fi
14584
14585
14586# as_fn_executable_p FILE
14587# -----------------------
14588# Test if FILE is an executable regular file.
14589as_fn_executable_p ()
14590{
14591  test -f "$1" && test -x "$1"
14592} # as_fn_executable_p
14593as_test_x='test -x'
14594as_executable_p=as_fn_executable_p
14595
14596# Sed expression to map a string onto a valid CPP name.
14597as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14598
14599# Sed expression to map a string onto a valid variable name.
14600as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14601
14602
14603exec 6>&1
14604## ----------------------------------- ##
14605## Main body of $CONFIG_STATUS script. ##
14606## ----------------------------------- ##
14607_ASEOF
14608test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14609
14610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14611# Save the log message, to keep $0 and so on meaningful, and to
14612# report actual input values of CONFIG_FILES etc. instead of their
14613# values after options handling.
14614ac_log="
14615This file was extended by Kerberos 5 $as_me 1.18.2, which was
14616generated by GNU Autoconf 2.69.  Invocation command line was
14617
14618  CONFIG_FILES    = $CONFIG_FILES
14619  CONFIG_HEADERS  = $CONFIG_HEADERS
14620  CONFIG_LINKS    = $CONFIG_LINKS
14621  CONFIG_COMMANDS = $CONFIG_COMMANDS
14622  $ $0 $@
14623
14624on `(hostname || uname -n) 2>/dev/null | sed 1q`
14625"
14626
14627_ACEOF
14628
14629case $ac_config_files in *"
14630"*) set x $ac_config_files; shift; ac_config_files=$*;;
14631esac
14632
14633case $ac_config_headers in *"
14634"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14635esac
14636
14637
14638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14639# Files that config.status was made for.
14640config_files="$ac_config_files"
14641config_headers="$ac_config_headers"
14642config_commands="$ac_config_commands"
14643
14644_ACEOF
14645
14646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14647ac_cs_usage="\
14648\`$as_me' instantiates files and other configuration actions
14649from templates according to the current configuration.  Unless the files
14650and actions are specified as TAGs, all are instantiated by default.
14651
14652Usage: $0 [OPTION]... [TAG]...
14653
14654  -h, --help       print this help, then exit
14655  -V, --version    print version number and configuration settings, then exit
14656      --config     print configuration, then exit
14657  -q, --quiet, --silent
14658                   do not print progress messages
14659  -d, --debug      don't remove temporary files
14660      --recheck    update $as_me by reconfiguring in the same conditions
14661      --file=FILE[:TEMPLATE]
14662                   instantiate the configuration file FILE
14663      --header=FILE[:TEMPLATE]
14664                   instantiate the configuration header FILE
14665
14666Configuration files:
14667$config_files
14668
14669Configuration headers:
14670$config_headers
14671
14672Configuration commands:
14673$config_commands
14674
14675Report bugs to <krb5-bugs@mit.edu>."
14676
14677_ACEOF
14678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14679ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14680ac_cs_version="\\
14681Kerberos 5 config.status 1.18.2
14682configured by $0, generated by GNU Autoconf 2.69,
14683  with options \\"\$ac_cs_config\\"
14684
14685Copyright (C) 2012 Free Software Foundation, Inc.
14686This config.status script is free software; the Free Software Foundation
14687gives unlimited permission to copy, distribute and modify it."
14688
14689ac_pwd='$ac_pwd'
14690srcdir='$srcdir'
14691INSTALL='$INSTALL'
14692AWK='$AWK'
14693test -n "\$AWK" || AWK=awk
14694_ACEOF
14695
14696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14697# The default lists apply if the user does not specify any file.
14698ac_need_defaults=:
14699while test $# != 0
14700do
14701  case $1 in
14702  --*=?*)
14703    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14704    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14705    ac_shift=:
14706    ;;
14707  --*=)
14708    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14709    ac_optarg=
14710    ac_shift=:
14711    ;;
14712  *)
14713    ac_option=$1
14714    ac_optarg=$2
14715    ac_shift=shift
14716    ;;
14717  esac
14718
14719  case $ac_option in
14720  # Handling of the options.
14721  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14722    ac_cs_recheck=: ;;
14723  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14724    $as_echo "$ac_cs_version"; exit ;;
14725  --config | --confi | --conf | --con | --co | --c )
14726    $as_echo "$ac_cs_config"; exit ;;
14727  --debug | --debu | --deb | --de | --d | -d )
14728    debug=: ;;
14729  --file | --fil | --fi | --f )
14730    $ac_shift
14731    case $ac_optarg in
14732    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14733    '') as_fn_error $? "missing file argument" ;;
14734    esac
14735    as_fn_append CONFIG_FILES " '$ac_optarg'"
14736    ac_need_defaults=false;;
14737  --header | --heade | --head | --hea )
14738    $ac_shift
14739    case $ac_optarg in
14740    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14741    esac
14742    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14743    ac_need_defaults=false;;
14744  --he | --h)
14745    # Conflict between --help and --header
14746    as_fn_error $? "ambiguous option: \`$1'
14747Try \`$0 --help' for more information.";;
14748  --help | --hel | -h )
14749    $as_echo "$ac_cs_usage"; exit ;;
14750  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14751  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14752    ac_cs_silent=: ;;
14753
14754  # This is an error.
14755  -*) as_fn_error $? "unrecognized option: \`$1'
14756Try \`$0 --help' for more information." ;;
14757
14758  *) as_fn_append ac_config_targets " $1"
14759     ac_need_defaults=false ;;
14760
14761  esac
14762  shift
14763done
14764
14765ac_configure_extra_args=
14766
14767if $ac_cs_silent; then
14768  exec 6>/dev/null
14769  ac_configure_extra_args="$ac_configure_extra_args --silent"
14770fi
14771
14772_ACEOF
14773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774if \$ac_cs_recheck; then
14775  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14776  shift
14777  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14778  CONFIG_SHELL='$SHELL'
14779  export CONFIG_SHELL
14780  exec "\$@"
14781fi
14782
14783_ACEOF
14784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14785exec 5>>config.log
14786{
14787  echo
14788  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14789## Running $as_me. ##
14790_ASBOX
14791  $as_echo "$ac_log"
14792} >&5
14793
14794_ACEOF
14795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14796#
14797# INIT-COMMANDS
14798#
14799CRYPTO_IMPL=$CRYPTO_IMPL
14800PRNG_ALG=$PRNG_ALG
14801
14802_ACEOF
14803
14804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14805
14806# Handling of arguments.
14807for ac_config_target in $ac_config_targets
14808do
14809  case $ac_config_target in
14810    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile:$srcdir/./config/pre.in:po/Makefile.in:po/deps:$srcdir/./config/post.in" ;;
14811    "plugins/audit/simple/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audit/simple/Makefile:$srcdir/./config/pre.in:plugins/audit/simple/Makefile.in:plugins/audit/simple/deps:$srcdir/./config/post.in" ;;
14812    "CRYPTO_IMPL") CONFIG_COMMANDS="$CONFIG_COMMANDS CRYPTO_IMPL" ;;
14813    "PRNG_ALG") CONFIG_COMMANDS="$CONFIG_COMMANDS PRNG_ALG" ;;
14814    "include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
14815    "kadmin/testing/scripts/env-setup.sh") CONFIG_FILES="$CONFIG_FILES kadmin/testing/scripts/env-setup.sh:kadmin/testing/scripts/env-setup.shin" ;;
14816    "include/gssrpc/types.h") CONFIG_FILES="$CONFIG_FILES include/gssrpc/types.h:include/gssrpc/types.hin" ;;
14817    "plugins/preauth/pkinit/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/pkinit/Makefile:$srcdir/./config/pre.in:plugins/preauth/pkinit/Makefile.in:plugins/preauth/pkinit/deps:$srcdir/./config/post.in" ;;
14818    "tests/softpkcs11/Makefile") CONFIG_FILES="$CONFIG_FILES tests/softpkcs11/Makefile:$srcdir/./config/pre.in:tests/softpkcs11/Makefile.in:tests/softpkcs11/deps:$srcdir/./config/post.in" ;;
14819    "util/et/Makefile") CONFIG_FILES="$CONFIG_FILES util/et/Makefile:$srcdir/./config/pre.in:util/et/Makefile.in:util/et/deps:$srcdir/./config/post.in" ;;
14820    "util/ss/Makefile") CONFIG_FILES="$CONFIG_FILES util/ss/Makefile:$srcdir/./config/pre.in:util/ss/Makefile.in:util/ss/deps:$srcdir/./config/post.in" ;;
14821    "plugins/kdb/ldap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/Makefile.in:plugins/kdb/ldap/deps:$srcdir/./config/post.in" ;;
14822    "plugins/kdb/ldap/ldap_util/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/ldap/ldap_util/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/ldap_util/Makefile.in:plugins/kdb/ldap/ldap_util/deps:$srcdir/./config/post.in" ;;
14823    "plugins/kdb/ldap/libkdb_ldap/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/ldap/libkdb_ldap/Makefile:$srcdir/./config/pre.in:plugins/kdb/ldap/libkdb_ldap/Makefile.in:plugins/kdb/ldap/libkdb_ldap/deps:$srcdir/./config/post.in" ;;
14824    "plugins/preauth/securid_sam2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/securid_sam2/Makefile:$srcdir/./config/pre.in:plugins/preauth/securid_sam2/Makefile.in:plugins/preauth/securid_sam2/deps:$srcdir/./config/post.in" ;;
14825    "plugins/kdb/lmdb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/lmdb/Makefile:$srcdir/./config/pre.in:plugins/kdb/lmdb/Makefile.in:plugins/kdb/lmdb/deps:$srcdir/./config/post.in" ;;
14826    "build-tools/krb5-config") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-config" ;;
14827    "build-tools/kadm-server.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-server.pc" ;;
14828    "build-tools/kadm-client.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kadm-client.pc" ;;
14829    "build-tools/kdb.pc") CONFIG_FILES="$CONFIG_FILES build-tools/kdb.pc" ;;
14830    "build-tools/krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5.pc" ;;
14831    "build-tools/krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/krb5-gssapi.pc" ;;
14832    "build-tools/mit-krb5.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5.pc" ;;
14833    "build-tools/mit-krb5-gssapi.pc") CONFIG_FILES="$CONFIG_FILES build-tools/mit-krb5-gssapi.pc" ;;
14834    "build-tools/gssrpc.pc") CONFIG_FILES="$CONFIG_FILES build-tools/gssrpc.pc" ;;
14835    "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile:$srcdir/./config/pre.in:./Makefile.in:./deps:$srcdir/./config/post.in" ;;
14836    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile:$srcdir/./config/pre.in:util/Makefile.in:util/deps:$srcdir/./config/post.in" ;;
14837    "util/support/Makefile") CONFIG_FILES="$CONFIG_FILES util/support/Makefile:$srcdir/./config/pre.in:util/support/Makefile.in:util/support/deps:$srcdir/./config/post.in" ;;
14838    "util/profile/Makefile") CONFIG_FILES="$CONFIG_FILES util/profile/Makefile:$srcdir/./config/pre.in:util/profile/Makefile.in:util/profile/deps:$srcdir/./config/post.in" ;;
14839    "util/profile/testmod/Makefile") CONFIG_FILES="$CONFIG_FILES util/profile/testmod/Makefile:$srcdir/./config/pre.in:util/profile/testmod/Makefile.in:util/profile/testmod/deps:$srcdir/./config/post.in" ;;
14840    "util/verto/Makefile") CONFIG_FILES="$CONFIG_FILES util/verto/Makefile:$srcdir/./config/pre.in:util/verto/Makefile.in:util/verto/deps:$srcdir/./config/post.in" ;;
14841    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile:$srcdir/./config/pre.in:lib/Makefile.in:lib/deps:$srcdir/./config/post.in" ;;
14842    "lib/kdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kdb/Makefile:$srcdir/./config/pre.in:lib/kdb/Makefile.in:lib/kdb/deps:$srcdir/./config/post.in" ;;
14843    "lib/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/Makefile:$srcdir/./config/pre.in:lib/crypto/Makefile.in:lib/crypto/deps:$srcdir/./config/post.in" ;;
14844    "lib/crypto/krb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/krb/Makefile:$srcdir/./config/pre.in:lib/crypto/krb/Makefile.in:lib/crypto/krb/deps:$srcdir/./config/post.in" ;;
14845    "lib/crypto/$CRYPTO_IMPL/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/Makefile.in:lib/crypto/$CRYPTO_IMPL/deps:$srcdir/./config/post.in" ;;
14846    "lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/enc_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/enc_provider/deps:$srcdir/./config/post.in" ;;
14847    "lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/hash_provider/Makefile.in:lib/crypto/$CRYPTO_IMPL/hash_provider/deps:$srcdir/./config/post.in" ;;
14848    "lib/crypto/$CRYPTO_IMPL/des/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/des/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/des/Makefile.in:lib/crypto/$CRYPTO_IMPL/des/deps:$srcdir/./config/post.in" ;;
14849    "lib/crypto/$CRYPTO_IMPL/md4/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/md4/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md4/Makefile.in:lib/crypto/$CRYPTO_IMPL/md4/deps:$srcdir/./config/post.in" ;;
14850    "lib/crypto/$CRYPTO_IMPL/md5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/md5/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/md5/Makefile.in:lib/crypto/$CRYPTO_IMPL/md5/deps:$srcdir/./config/post.in" ;;
14851    "lib/crypto/$CRYPTO_IMPL/sha1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/sha1/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha1/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha1/deps:$srcdir/./config/post.in" ;;
14852    "lib/crypto/$CRYPTO_IMPL/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/sha2/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/sha2/Makefile.in:lib/crypto/$CRYPTO_IMPL/sha2/deps:$srcdir/./config/post.in" ;;
14853    "lib/crypto/$CRYPTO_IMPL/aes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/aes/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/aes/Makefile.in:lib/crypto/$CRYPTO_IMPL/aes/deps:$srcdir/./config/post.in" ;;
14854    "lib/crypto/$CRYPTO_IMPL/camellia/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/$CRYPTO_IMPL/camellia/Makefile:$srcdir/./config/pre.in:lib/crypto/$CRYPTO_IMPL/camellia/Makefile.in:lib/crypto/$CRYPTO_IMPL/camellia/deps:$srcdir/./config/post.in" ;;
14855    "lib/crypto/crypto_tests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto/crypto_tests/Makefile:$srcdir/./config/pre.in:lib/crypto/crypto_tests/Makefile.in:lib/crypto/crypto_tests/deps:$srcdir/./config/post.in" ;;
14856    "lib/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile:$srcdir/./config/pre.in:lib/krb5/Makefile.in:lib/krb5/deps:$srcdir/./config/post.in" ;;
14857    "lib/krb5/error_tables/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/error_tables/Makefile:$srcdir/./config/pre.in:lib/krb5/error_tables/Makefile.in:lib/krb5/error_tables/deps:$srcdir/./config/post.in" ;;
14858    "lib/krb5/asn.1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/asn.1/Makefile:$srcdir/./config/pre.in:lib/krb5/asn.1/Makefile.in:lib/krb5/asn.1/deps:$srcdir/./config/post.in" ;;
14859    "lib/krb5/ccache/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/ccache/Makefile:$srcdir/./config/pre.in:lib/krb5/ccache/Makefile.in:lib/krb5/ccache/deps:$srcdir/./config/post.in" ;;
14860    "lib/krb5/keytab/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/keytab/Makefile:$srcdir/./config/pre.in:lib/krb5/keytab/Makefile.in:lib/krb5/keytab/deps:$srcdir/./config/post.in" ;;
14861    "lib/krb5/krb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/krb/Makefile:$srcdir/./config/pre.in:lib/krb5/krb/Makefile.in:lib/krb5/krb/deps:$srcdir/./config/post.in" ;;
14862    "lib/krb5/rcache/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/rcache/Makefile:$srcdir/./config/pre.in:lib/krb5/rcache/Makefile.in:lib/krb5/rcache/deps:$srcdir/./config/post.in" ;;
14863    "lib/krb5/os/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/os/Makefile:$srcdir/./config/pre.in:lib/krb5/os/Makefile.in:lib/krb5/os/deps:$srcdir/./config/post.in" ;;
14864    "lib/krb5/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krb5/unicode/Makefile:$srcdir/./config/pre.in:lib/krb5/unicode/Makefile.in:lib/krb5/unicode/deps:$srcdir/./config/post.in" ;;
14865    "lib/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile:$srcdir/./config/pre.in:lib/gssapi/Makefile.in:lib/gssapi/deps:$srcdir/./config/post.in" ;;
14866    "lib/gssapi/generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/generic/Makefile:$srcdir/./config/pre.in:lib/gssapi/generic/Makefile.in:lib/gssapi/generic/deps:$srcdir/./config/post.in" ;;
14867    "lib/gssapi/krb5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/krb5/Makefile:$srcdir/./config/pre.in:lib/gssapi/krb5/Makefile.in:lib/gssapi/krb5/deps:$srcdir/./config/post.in" ;;
14868    "lib/gssapi/spnego/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/spnego/Makefile:$srcdir/./config/pre.in:lib/gssapi/spnego/Makefile.in:lib/gssapi/spnego/deps:$srcdir/./config/post.in" ;;
14869    "lib/gssapi/mechglue/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gssapi/mechglue/Makefile:$srcdir/./config/pre.in:lib/gssapi/mechglue/Makefile.in:lib/gssapi/mechglue/deps:$srcdir/./config/post.in" ;;
14870    "lib/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpc/Makefile:$srcdir/./config/pre.in:lib/rpc/Makefile.in:lib/rpc/deps:$srcdir/./config/post.in" ;;
14871    "lib/rpc/unit-test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpc/unit-test/Makefile:$srcdir/./config/pre.in:lib/rpc/unit-test/Makefile.in:lib/rpc/unit-test/deps:$srcdir/./config/post.in" ;;
14872    "lib/kadm5/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile:$srcdir/./config/pre.in:lib/kadm5/Makefile.in:lib/kadm5/deps:$srcdir/./config/post.in" ;;
14873    "lib/kadm5/clnt/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/clnt/Makefile:$srcdir/./config/pre.in:lib/kadm5/clnt/Makefile.in:lib/kadm5/clnt/deps:$srcdir/./config/post.in" ;;
14874    "lib/kadm5/srv/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/srv/Makefile:$srcdir/./config/pre.in:lib/kadm5/srv/Makefile.in:lib/kadm5/srv/deps:$srcdir/./config/post.in" ;;
14875    "lib/kadm5/unit-test/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kadm5/unit-test/Makefile:$srcdir/./config/pre.in:lib/kadm5/unit-test/Makefile.in:lib/kadm5/unit-test/deps:$srcdir/./config/post.in" ;;
14876    "lib/krad/Makefile") CONFIG_FILES="$CONFIG_FILES lib/krad/Makefile:$srcdir/./config/pre.in:lib/krad/Makefile.in:lib/krad/deps:$srcdir/./config/post.in" ;;
14877    "lib/apputils/Makefile") CONFIG_FILES="$CONFIG_FILES lib/apputils/Makefile:$srcdir/./config/pre.in:lib/apputils/Makefile.in:lib/apputils/deps:$srcdir/./config/post.in" ;;
14878    "kdc/Makefile") CONFIG_FILES="$CONFIG_FILES kdc/Makefile:$srcdir/./config/pre.in:kdc/Makefile.in:kdc/deps:$srcdir/./config/post.in" ;;
14879    "kprop/Makefile") CONFIG_FILES="$CONFIG_FILES kprop/Makefile:$srcdir/./config/pre.in:kprop/Makefile.in:kprop/deps:$srcdir/./config/post.in" ;;
14880    "config-files/Makefile") CONFIG_FILES="$CONFIG_FILES config-files/Makefile:$srcdir/./config/pre.in:config-files/Makefile.in:config-files/deps:$srcdir/./config/post.in" ;;
14881    "build-tools/Makefile") CONFIG_FILES="$CONFIG_FILES build-tools/Makefile:$srcdir/./config/pre.in:build-tools/Makefile.in:build-tools/deps:$srcdir/./config/post.in" ;;
14882    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile:$srcdir/./config/pre.in:man/Makefile.in:man/deps:$srcdir/./config/post.in" ;;
14883    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:$srcdir/./config/pre.in:doc/Makefile.in:doc/deps:$srcdir/./config/post.in" ;;
14884    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:$srcdir/./config/pre.in:include/Makefile.in:include/deps:$srcdir/./config/post.in" ;;
14885    "plugins/certauth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/certauth/test/Makefile:$srcdir/./config/pre.in:plugins/certauth/test/Makefile.in:plugins/certauth/test/deps:$srcdir/./config/post.in" ;;
14886    "plugins/gssapi/negoextest/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/gssapi/negoextest/Makefile:$srcdir/./config/pre.in:plugins/gssapi/negoextest/Makefile.in:plugins/gssapi/negoextest/deps:$srcdir/./config/post.in" ;;
14887    "plugins/hostrealm/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/hostrealm/test/Makefile:$srcdir/./config/pre.in:plugins/hostrealm/test/Makefile.in:plugins/hostrealm/test/deps:$srcdir/./config/post.in" ;;
14888    "plugins/localauth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/localauth/test/Makefile:$srcdir/./config/pre.in:plugins/localauth/test/Makefile.in:plugins/localauth/test/deps:$srcdir/./config/post.in" ;;
14889    "plugins/kadm5_hook/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kadm5_hook/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_hook/test/Makefile.in:plugins/kadm5_hook/test/deps:$srcdir/./config/post.in" ;;
14890    "plugins/kadm5_auth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kadm5_auth/test/Makefile:$srcdir/./config/pre.in:plugins/kadm5_auth/test/Makefile.in:plugins/kadm5_auth/test/deps:$srcdir/./config/post.in" ;;
14891    "plugins/pwqual/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/pwqual/test/Makefile:$srcdir/./config/pre.in:plugins/pwqual/test/Makefile.in:plugins/pwqual/test/deps:$srcdir/./config/post.in" ;;
14892    "plugins/audit/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audit/Makefile:$srcdir/./config/pre.in:plugins/audit/Makefile.in:plugins/audit/deps:$srcdir/./config/post.in" ;;
14893    "plugins/audit/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/audit/test/Makefile:$srcdir/./config/pre.in:plugins/audit/test/Makefile.in:plugins/audit/test/deps:$srcdir/./config/post.in" ;;
14894    "plugins/kdb/db2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/Makefile.in:plugins/kdb/db2/deps:$srcdir/./config/post.in" ;;
14895    "plugins/kdb/db2/libdb2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/Makefile.in:plugins/kdb/db2/libdb2/deps:$srcdir/./config/post.in" ;;
14896    "plugins/kdb/db2/libdb2/hash/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/hash/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/hash/Makefile.in:plugins/kdb/db2/libdb2/hash/deps:$srcdir/./config/post.in" ;;
14897    "plugins/kdb/db2/libdb2/btree/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/btree/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/btree/Makefile.in:plugins/kdb/db2/libdb2/btree/deps:$srcdir/./config/post.in" ;;
14898    "plugins/kdb/db2/libdb2/db/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/db/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/db/Makefile.in:plugins/kdb/db2/libdb2/db/deps:$srcdir/./config/post.in" ;;
14899    "plugins/kdb/db2/libdb2/mpool/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/mpool/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/mpool/Makefile.in:plugins/kdb/db2/libdb2/mpool/deps:$srcdir/./config/post.in" ;;
14900    "plugins/kdb/db2/libdb2/recno/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/recno/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/recno/Makefile.in:plugins/kdb/db2/libdb2/recno/deps:$srcdir/./config/post.in" ;;
14901    "plugins/kdb/db2/libdb2/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/db2/libdb2/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/db2/libdb2/test/Makefile.in:plugins/kdb/db2/libdb2/test/deps:$srcdir/./config/post.in" ;;
14902    "plugins/kdb/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdb/test/Makefile:$srcdir/./config/pre.in:plugins/kdb/test/Makefile.in:plugins/kdb/test/deps:$srcdir/./config/post.in" ;;
14903    "plugins/kdcpolicy/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/kdcpolicy/test/Makefile:$srcdir/./config/pre.in:plugins/kdcpolicy/test/Makefile.in:plugins/kdcpolicy/test/deps:$srcdir/./config/post.in" ;;
14904    "plugins/preauth/otp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/otp/Makefile:$srcdir/./config/pre.in:plugins/preauth/otp/Makefile.in:plugins/preauth/otp/deps:$srcdir/./config/post.in" ;;
14905    "plugins/preauth/spake/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/spake/Makefile:$srcdir/./config/pre.in:plugins/preauth/spake/Makefile.in:plugins/preauth/spake/deps:$srcdir/./config/post.in" ;;
14906    "plugins/preauth/test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/preauth/test/Makefile:$srcdir/./config/pre.in:plugins/preauth/test/Makefile.in:plugins/preauth/test/deps:$srcdir/./config/post.in" ;;
14907    "plugins/authdata/greet_client/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/authdata/greet_client/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_client/Makefile.in:plugins/authdata/greet_client/deps:$srcdir/./config/post.in" ;;
14908    "plugins/authdata/greet_server/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/authdata/greet_server/Makefile:$srcdir/./config/pre.in:plugins/authdata/greet_server/Makefile.in:plugins/authdata/greet_server/deps:$srcdir/./config/post.in" ;;
14909    "plugins/tls/k5tls/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/tls/k5tls/Makefile:$srcdir/./config/pre.in:plugins/tls/k5tls/Makefile.in:plugins/tls/k5tls/deps:$srcdir/./config/post.in" ;;
14910    "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:$srcdir/./config/pre.in:clients/Makefile.in:clients/deps:$srcdir/./config/post.in" ;;
14911    "clients/klist/Makefile") CONFIG_FILES="$CONFIG_FILES clients/klist/Makefile:$srcdir/./config/pre.in:clients/klist/Makefile.in:clients/klist/deps:$srcdir/./config/post.in" ;;
14912    "clients/kinit/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kinit/Makefile:$srcdir/./config/pre.in:clients/kinit/Makefile.in:clients/kinit/deps:$srcdir/./config/post.in" ;;
14913    "clients/kvno/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kvno/Makefile:$srcdir/./config/pre.in:clients/kvno/Makefile.in:clients/kvno/deps:$srcdir/./config/post.in" ;;
14914    "clients/kdestroy/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kdestroy/Makefile:$srcdir/./config/pre.in:clients/kdestroy/Makefile.in:clients/kdestroy/deps:$srcdir/./config/post.in" ;;
14915    "clients/kpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kpasswd/Makefile:$srcdir/./config/pre.in:clients/kpasswd/Makefile.in:clients/kpasswd/deps:$srcdir/./config/post.in" ;;
14916    "clients/ksu/Makefile") CONFIG_FILES="$CONFIG_FILES clients/ksu/Makefile:$srcdir/./config/pre.in:clients/ksu/Makefile.in:clients/ksu/deps:$srcdir/./config/post.in" ;;
14917    "clients/kswitch/Makefile") CONFIG_FILES="$CONFIG_FILES clients/kswitch/Makefile:$srcdir/./config/pre.in:clients/kswitch/Makefile.in:clients/kswitch/deps:$srcdir/./config/post.in" ;;
14918    "kadmin/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/Makefile:$srcdir/./config/pre.in:kadmin/Makefile.in:kadmin/deps:$srcdir/./config/post.in" ;;
14919    "kadmin/cli/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/cli/Makefile:$srcdir/./config/pre.in:kadmin/cli/Makefile.in:kadmin/cli/deps:$srcdir/./config/post.in" ;;
14920    "kadmin/dbutil/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/dbutil/Makefile:$srcdir/./config/pre.in:kadmin/dbutil/Makefile.in:kadmin/dbutil/deps:$srcdir/./config/post.in" ;;
14921    "kadmin/ktutil/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/ktutil/Makefile:$srcdir/./config/pre.in:kadmin/ktutil/Makefile.in:kadmin/ktutil/deps:$srcdir/./config/post.in" ;;
14922    "kadmin/server/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/server/Makefile:$srcdir/./config/pre.in:kadmin/server/Makefile.in:kadmin/server/deps:$srcdir/./config/post.in" ;;
14923    "kadmin/testing/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/testing/Makefile:$srcdir/./config/pre.in:kadmin/testing/Makefile.in:kadmin/testing/deps:$srcdir/./config/post.in" ;;
14924    "kadmin/testing/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/testing/scripts/Makefile:$srcdir/./config/pre.in:kadmin/testing/scripts/Makefile.in:kadmin/testing/scripts/deps:$srcdir/./config/post.in" ;;
14925    "kadmin/testing/util/Makefile") CONFIG_FILES="$CONFIG_FILES kadmin/testing/util/Makefile:$srcdir/./config/pre.in:kadmin/testing/util/Makefile.in:kadmin/testing/util/deps:$srcdir/./config/post.in" ;;
14926    "appl/Makefile") CONFIG_FILES="$CONFIG_FILES appl/Makefile:$srcdir/./config/pre.in:appl/Makefile.in:appl/deps:$srcdir/./config/post.in" ;;
14927    "appl/sample/Makefile") CONFIG_FILES="$CONFIG_FILES appl/sample/Makefile:$srcdir/./config/pre.in:appl/sample/Makefile.in:appl/sample/deps:$srcdir/./config/post.in" ;;
14928    "appl/sample/sclient/Makefile") CONFIG_FILES="$CONFIG_FILES appl/sample/sclient/Makefile:$srcdir/./config/pre.in:appl/sample/sclient/Makefile.in:appl/sample/sclient/deps:$srcdir/./config/post.in" ;;
14929    "appl/sample/sserver/Makefile") CONFIG_FILES="$CONFIG_FILES appl/sample/sserver/Makefile:$srcdir/./config/pre.in:appl/sample/sserver/Makefile.in:appl/sample/sserver/deps:$srcdir/./config/post.in" ;;
14930    "appl/simple/Makefile") CONFIG_FILES="$CONFIG_FILES appl/simple/Makefile:$srcdir/./config/pre.in:appl/simple/Makefile.in:appl/simple/deps:$srcdir/./config/post.in" ;;
14931    "appl/simple/client/Makefile") CONFIG_FILES="$CONFIG_FILES appl/simple/client/Makefile:$srcdir/./config/pre.in:appl/simple/client/Makefile.in:appl/simple/client/deps:$srcdir/./config/post.in" ;;
14932    "appl/simple/server/Makefile") CONFIG_FILES="$CONFIG_FILES appl/simple/server/Makefile:$srcdir/./config/pre.in:appl/simple/server/Makefile.in:appl/simple/server/deps:$srcdir/./config/post.in" ;;
14933    "appl/gss-sample/Makefile") CONFIG_FILES="$CONFIG_FILES appl/gss-sample/Makefile:$srcdir/./config/pre.in:appl/gss-sample/Makefile.in:appl/gss-sample/deps:$srcdir/./config/post.in" ;;
14934    "appl/user_user/Makefile") CONFIG_FILES="$CONFIG_FILES appl/user_user/Makefile:$srcdir/./config/pre.in:appl/user_user/Makefile.in:appl/user_user/deps:$srcdir/./config/post.in" ;;
14935    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:$srcdir/./config/pre.in:tests/Makefile.in:tests/deps:$srcdir/./config/post.in" ;;
14936    "tests/resolve/Makefile") CONFIG_FILES="$CONFIG_FILES tests/resolve/Makefile:$srcdir/./config/pre.in:tests/resolve/Makefile.in:tests/resolve/deps:$srcdir/./config/post.in" ;;
14937    "tests/asn.1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/asn.1/Makefile:$srcdir/./config/pre.in:tests/asn.1/Makefile.in:tests/asn.1/deps:$srcdir/./config/post.in" ;;
14938    "tests/create/Makefile") CONFIG_FILES="$CONFIG_FILES tests/create/Makefile:$srcdir/./config/pre.in:tests/create/Makefile.in:tests/create/deps:$srcdir/./config/post.in" ;;
14939    "tests/hammer/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hammer/Makefile:$srcdir/./config/pre.in:tests/hammer/Makefile.in:tests/hammer/deps:$srcdir/./config/post.in" ;;
14940    "tests/verify/Makefile") CONFIG_FILES="$CONFIG_FILES tests/verify/Makefile:$srcdir/./config/pre.in:tests/verify/Makefile.in:tests/verify/deps:$srcdir/./config/post.in" ;;
14941    "tests/gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gssapi/Makefile:$srcdir/./config/pre.in:tests/gssapi/Makefile.in:tests/gssapi/deps:$srcdir/./config/post.in" ;;
14942    "tests/dejagnu/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dejagnu/Makefile:$srcdir/./config/pre.in:tests/dejagnu/Makefile.in:tests/dejagnu/deps:$srcdir/./config/post.in" ;;
14943    "tests/threads/Makefile") CONFIG_FILES="$CONFIG_FILES tests/threads/Makefile:$srcdir/./config/pre.in:tests/threads/Makefile.in:tests/threads/deps:$srcdir/./config/post.in" ;;
14944    "tests/shlib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/shlib/Makefile:$srcdir/./config/pre.in:tests/shlib/Makefile.in:tests/shlib/deps:$srcdir/./config/post.in" ;;
14945    "tests/gss-threads/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gss-threads/Makefile:$srcdir/./config/pre.in:tests/gss-threads/Makefile.in:tests/gss-threads/deps:$srcdir/./config/post.in" ;;
14946    "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile:$srcdir/./config/pre.in:tests/misc/Makefile.in:tests/misc/deps:$srcdir/./config/post.in" ;;
14947
14948  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14949  esac
14950done
14951
14952
14953# If the user did not use the arguments to specify the items to instantiate,
14954# then the envvar interface is used.  Set only those that are not.
14955# We use the long form for the default assignment because of an extremely
14956# bizarre bug on SunOS 4.1.3.
14957if $ac_need_defaults; then
14958  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14959  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14960  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14961fi
14962
14963# Have a temporary directory for convenience.  Make it in the build tree
14964# simply because there is no reason against having it here, and in addition,
14965# creating and moving files from /tmp can sometimes cause problems.
14966# Hook for its removal unless debugging.
14967# Note that there is a small window in which the directory will not be cleaned:
14968# after its creation but before its name has been assigned to `$tmp'.
14969$debug ||
14970{
14971  tmp= ac_tmp=
14972  trap 'exit_status=$?
14973  : "${ac_tmp:=$tmp}"
14974  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14975' 0
14976  trap 'as_fn_exit 1' 1 2 13 15
14977}
14978# Create a (secure) tmp directory for tmp files.
14979
14980{
14981  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14982  test -d "$tmp"
14983}  ||
14984{
14985  tmp=./conf$$-$RANDOM
14986  (umask 077 && mkdir "$tmp")
14987} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14988ac_tmp=$tmp
14989
14990# Set up the scripts for CONFIG_FILES section.
14991# No need to generate them if there are no CONFIG_FILES.
14992# This happens for instance with `./config.status config.h'.
14993if test -n "$CONFIG_FILES"; then
14994
14995if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14996  ac_cs_awk_getline=:
14997  ac_cs_awk_pipe_init=
14998  ac_cs_awk_read_file='
14999      while ((getline aline < (F[key])) > 0)
15000	print(aline)
15001      close(F[key])'
15002  ac_cs_awk_pipe_fini=
15003else
15004  ac_cs_awk_getline=false
15005  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15006  ac_cs_awk_read_file='
15007      print "|#_!!_#|"
15008      print "cat " F[key] " &&"
15009      '$ac_cs_awk_pipe_init
15010  # The final `:' finishes the AND list.
15011  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15012fi
15013ac_cr=`echo X | tr X '\015'`
15014# On cygwin, bash can eat \r inside `` if the user requested igncr.
15015# But we know of no other shell where ac_cr would be empty at this
15016# point, so we can use a bashism as a fallback.
15017if test "x$ac_cr" = x; then
15018  eval ac_cr=\$\'\\r\'
15019fi
15020ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15021if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15022  ac_cs_awk_cr='\\r'
15023else
15024  ac_cs_awk_cr=$ac_cr
15025fi
15026
15027echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15028_ACEOF
15029
15030# Create commands to substitute file output variables.
15031{
15032  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15033  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15034  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15035  echo "_ACAWK" &&
15036  echo "_ACEOF"
15037} >conf$$files.sh &&
15038. ./conf$$files.sh ||
15039  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15040rm -f conf$$files.sh
15041
15042{
15043  echo "cat >conf$$subs.awk <<_ACEOF" &&
15044  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15045  echo "_ACEOF"
15046} >conf$$subs.sh ||
15047  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15048ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15049ac_delim='%!_!# '
15050for ac_last_try in false false false false false :; do
15051  . ./conf$$subs.sh ||
15052    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15053
15054  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15055  if test $ac_delim_n = $ac_delim_num; then
15056    break
15057  elif $ac_last_try; then
15058    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15059  else
15060    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15061  fi
15062done
15063rm -f conf$$subs.sh
15064
15065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15066cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15067_ACEOF
15068sed -n '
15069h
15070s/^/S["/; s/!.*/"]=/
15071p
15072g
15073s/^[^!]*!//
15074:repl
15075t repl
15076s/'"$ac_delim"'$//
15077t delim
15078:nl
15079h
15080s/\(.\{148\}\)..*/\1/
15081t more1
15082s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15083p
15084n
15085b repl
15086:more1
15087s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15088p
15089g
15090s/.\{148\}//
15091t nl
15092:delim
15093h
15094s/\(.\{148\}\)..*/\1/
15095t more2
15096s/["\\]/\\&/g; s/^/"/; s/$/"/
15097p
15098b
15099:more2
15100s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15101p
15102g
15103s/.\{148\}//
15104t delim
15105' <conf$$subs.awk | sed '
15106/^[^""]/{
15107  N
15108  s/\n//
15109}
15110' >>$CONFIG_STATUS || ac_write_fail=1
15111rm -f conf$$subs.awk
15112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15113_ACAWK
15114cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15115  for (key in S) S_is_set[key] = 1
15116  FS = ""
15117  \$ac_cs_awk_pipe_init
15118}
15119{
15120  line = $ 0
15121  nfields = split(line, field, "@")
15122  substed = 0
15123  len = length(field[1])
15124  for (i = 2; i < nfields; i++) {
15125    key = field[i]
15126    keylen = length(key)
15127    if (S_is_set[key]) {
15128      value = S[key]
15129      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15130      len += length(value) + length(field[++i])
15131      substed = 1
15132    } else
15133      len += 1 + keylen
15134  }
15135  if (nfields == 3 && !substed) {
15136    key = field[2]
15137    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
15138      \$ac_cs_awk_read_file
15139      next
15140    }
15141  }
15142  print line
15143}
15144\$ac_cs_awk_pipe_fini
15145_ACAWK
15146_ACEOF
15147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15148if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15149  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15150else
15151  cat
15152fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15153  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15154_ACEOF
15155
15156# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15157# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15158# trailing colons and then remove the whole line if VPATH becomes empty
15159# (actually we leave an empty line to preserve line numbers).
15160if test "x$srcdir" = x.; then
15161  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15162h
15163s///
15164s/^/:/
15165s/[	 ]*$/:/
15166s/:\$(srcdir):/:/g
15167s/:\${srcdir}:/:/g
15168s/:@srcdir@:/:/g
15169s/^:*//
15170s/:*$//
15171x
15172s/\(=[	 ]*\).*/\1/
15173G
15174s/\n//
15175s/^[^=]*=[	 ]*$//
15176}'
15177fi
15178
15179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15180fi # test -n "$CONFIG_FILES"
15181
15182# Set up the scripts for CONFIG_HEADERS section.
15183# No need to generate them if there are no CONFIG_HEADERS.
15184# This happens for instance with `./config.status Makefile'.
15185if test -n "$CONFIG_HEADERS"; then
15186cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15187BEGIN {
15188_ACEOF
15189
15190# Transform confdefs.h into an awk script `defines.awk', embedded as
15191# here-document in config.status, that substitutes the proper values into
15192# config.h.in to produce config.h.
15193
15194# Create a delimiter string that does not exist in confdefs.h, to ease
15195# handling of long lines.
15196ac_delim='%!_!# '
15197for ac_last_try in false false :; do
15198  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15199  if test -z "$ac_tt"; then
15200    break
15201  elif $ac_last_try; then
15202    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15203  else
15204    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15205  fi
15206done
15207
15208# For the awk script, D is an array of macro values keyed by name,
15209# likewise P contains macro parameters if any.  Preserve backslash
15210# newline sequences.
15211
15212ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15213sed -n '
15214s/.\{148\}/&'"$ac_delim"'/g
15215t rset
15216:rset
15217s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15218t def
15219d
15220:def
15221s/\\$//
15222t bsnl
15223s/["\\]/\\&/g
15224s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15225D["\1"]=" \3"/p
15226s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15227d
15228:bsnl
15229s/["\\]/\\&/g
15230s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15231D["\1"]=" \3\\\\\\n"\\/p
15232t cont
15233s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15234t cont
15235d
15236:cont
15237n
15238s/.\{148\}/&'"$ac_delim"'/g
15239t clear
15240:clear
15241s/\\$//
15242t bsnlc
15243s/["\\]/\\&/g; s/^/"/; s/$/"/p
15244d
15245:bsnlc
15246s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15247b cont
15248' <confdefs.h | sed '
15249s/'"$ac_delim"'/"\\\
15250"/g' >>$CONFIG_STATUS || ac_write_fail=1
15251
15252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15253  for (key in D) D_is_set[key] = 1
15254  FS = ""
15255}
15256/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15257  line = \$ 0
15258  split(line, arg, " ")
15259  if (arg[1] == "#") {
15260    defundef = arg[2]
15261    mac1 = arg[3]
15262  } else {
15263    defundef = substr(arg[1], 2)
15264    mac1 = arg[2]
15265  }
15266  split(mac1, mac2, "(") #)
15267  macro = mac2[1]
15268  prefix = substr(line, 1, index(line, defundef) - 1)
15269  if (D_is_set[macro]) {
15270    # Preserve the white space surrounding the "#".
15271    print prefix "define", macro P[macro] D[macro]
15272    next
15273  } else {
15274    # Replace #undef with comments.  This is necessary, for example,
15275    # in the case of _POSIX_SOURCE, which is predefined and required
15276    # on some systems where configure will not decide to define it.
15277    if (defundef == "undef") {
15278      print "/*", prefix defundef, macro, "*/"
15279      next
15280    }
15281  }
15282}
15283{ print }
15284_ACAWK
15285_ACEOF
15286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15287  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15288fi # test -n "$CONFIG_HEADERS"
15289
15290
15291eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15292shift
15293for ac_tag
15294do
15295  case $ac_tag in
15296  :[FHLC]) ac_mode=$ac_tag; continue;;
15297  esac
15298  case $ac_mode$ac_tag in
15299  :[FHL]*:*);;
15300  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15301  :[FH]-) ac_tag=-:-;;
15302  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15303  esac
15304  ac_save_IFS=$IFS
15305  IFS=:
15306  set x $ac_tag
15307  IFS=$ac_save_IFS
15308  shift
15309  ac_file=$1
15310  shift
15311
15312  case $ac_mode in
15313  :L) ac_source=$1;;
15314  :[FH])
15315    ac_file_inputs=
15316    for ac_f
15317    do
15318      case $ac_f in
15319      -) ac_f="$ac_tmp/stdin";;
15320      *) # Look for the file first in the build tree, then in the source tree
15321	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15322	 # because $ac_f cannot contain `:'.
15323	 test -f "$ac_f" ||
15324	   case $ac_f in
15325	   [\\/$]*) false;;
15326	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15327	   esac ||
15328	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15329      esac
15330      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15331      as_fn_append ac_file_inputs " '$ac_f'"
15332    done
15333
15334    # Let's still pretend it is `configure' which instantiates (i.e., don't
15335    # use $as_me), people would be surprised to read:
15336    #    /* config.h.  Generated by config.status.  */
15337    configure_input='Generated from '`
15338	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15339	`' by configure.'
15340    if test x"$ac_file" != x-; then
15341      configure_input="$ac_file.  $configure_input"
15342      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15343$as_echo "$as_me: creating $ac_file" >&6;}
15344    fi
15345    # Neutralize special characters interpreted by sed in replacement strings.
15346    case $configure_input in #(
15347    *\&* | *\|* | *\\* )
15348       ac_sed_conf_input=`$as_echo "$configure_input" |
15349       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15350    *) ac_sed_conf_input=$configure_input;;
15351    esac
15352
15353    case $ac_tag in
15354    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15355      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15356    esac
15357    ;;
15358  esac
15359
15360  ac_dir=`$as_dirname -- "$ac_file" ||
15361$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15362	 X"$ac_file" : 'X\(//\)[^/]' \| \
15363	 X"$ac_file" : 'X\(//\)$' \| \
15364	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15365$as_echo X"$ac_file" |
15366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15367	    s//\1/
15368	    q
15369	  }
15370	  /^X\(\/\/\)[^/].*/{
15371	    s//\1/
15372	    q
15373	  }
15374	  /^X\(\/\/\)$/{
15375	    s//\1/
15376	    q
15377	  }
15378	  /^X\(\/\).*/{
15379	    s//\1/
15380	    q
15381	  }
15382	  s/.*/./; q'`
15383  as_dir="$ac_dir"; as_fn_mkdir_p
15384  ac_builddir=.
15385
15386case "$ac_dir" in
15387.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15388*)
15389  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15390  # A ".." for each directory in $ac_dir_suffix.
15391  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15392  case $ac_top_builddir_sub in
15393  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15394  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15395  esac ;;
15396esac
15397ac_abs_top_builddir=$ac_pwd
15398ac_abs_builddir=$ac_pwd$ac_dir_suffix
15399# for backward compatibility:
15400ac_top_builddir=$ac_top_build_prefix
15401
15402case $srcdir in
15403  .)  # We are building in place.
15404    ac_srcdir=.
15405    ac_top_srcdir=$ac_top_builddir_sub
15406    ac_abs_top_srcdir=$ac_pwd ;;
15407  [\\/]* | ?:[\\/]* )  # Absolute name.
15408    ac_srcdir=$srcdir$ac_dir_suffix;
15409    ac_top_srcdir=$srcdir
15410    ac_abs_top_srcdir=$srcdir ;;
15411  *) # Relative name.
15412    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15413    ac_top_srcdir=$ac_top_build_prefix$srcdir
15414    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15415esac
15416ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15417
15418
15419  case $ac_mode in
15420  :F)
15421  #
15422  # CONFIG_FILE
15423  #
15424
15425  case $INSTALL in
15426  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15427  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15428  esac
15429_ACEOF
15430
15431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432# If the template does not know about datarootdir, expand it.
15433# FIXME: This hack should be removed a few years after 2.60.
15434ac_datarootdir_hack=; ac_datarootdir_seen=
15435ac_sed_dataroot='
15436/datarootdir/ {
15437  p
15438  q
15439}
15440/@datadir@/p
15441/@docdir@/p
15442/@infodir@/p
15443/@localedir@/p
15444/@mandir@/p'
15445case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15446*datarootdir*) ac_datarootdir_seen=yes;;
15447*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15448  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15449$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15450_ACEOF
15451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15452  ac_datarootdir_hack='
15453  s&@datadir@&$datadir&g
15454  s&@docdir@&$docdir&g
15455  s&@infodir@&$infodir&g
15456  s&@localedir@&$localedir&g
15457  s&@mandir@&$mandir&g
15458  s&\\\${datarootdir}&$datarootdir&g' ;;
15459esac
15460_ACEOF
15461
15462# Neutralize VPATH when `$srcdir' = `.'.
15463# Shell code in configure.ac might set extrasub.
15464# FIXME: do we really want to maintain this feature?
15465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15466ac_sed_extra="$ac_vpsub
15467$extrasub
15468_ACEOF
15469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470:t
15471/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15472s|@configure_input@|$ac_sed_conf_input|;t t
15473s&@top_builddir@&$ac_top_builddir_sub&;t t
15474s&@top_build_prefix@&$ac_top_build_prefix&;t t
15475s&@srcdir@&$ac_srcdir&;t t
15476s&@abs_srcdir@&$ac_abs_srcdir&;t t
15477s&@top_srcdir@&$ac_top_srcdir&;t t
15478s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15479s&@builddir@&$ac_builddir&;t t
15480s&@abs_builddir@&$ac_abs_builddir&;t t
15481s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15482s&@INSTALL@&$ac_INSTALL&;t t
15483$ac_datarootdir_hack
15484"
15485eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15486if $ac_cs_awk_getline; then
15487  $AWK -f "$ac_tmp/subs.awk"
15488else
15489  $AWK -f "$ac_tmp/subs.awk" | $SHELL
15490fi \
15491  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15492
15493test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15494  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15495  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15496      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15497  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15498which seems to be undefined.  Please make sure it is defined" >&5
15499$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15500which seems to be undefined.  Please make sure it is defined" >&2;}
15501
15502  rm -f "$ac_tmp/stdin"
15503  case $ac_file in
15504  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15505  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15506  esac \
15507  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15508 ;;
15509  :H)
15510  #
15511  # CONFIG_HEADER
15512  #
15513  if test x"$ac_file" != x-; then
15514    {
15515      $as_echo "/* $configure_input  */" \
15516      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15517    } >"$ac_tmp/config.h" \
15518      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15519    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15520      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15521$as_echo "$as_me: $ac_file is unchanged" >&6;}
15522    else
15523      rm -f "$ac_file"
15524      mv "$ac_tmp/config.h" "$ac_file" \
15525	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15526    fi
15527  else
15528    $as_echo "/* $configure_input  */" \
15529      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15530      || as_fn_error $? "could not create -" "$LINENO" 5
15531  fi
15532 ;;
15533
15534  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15535$as_echo "$as_me: executing $ac_file commands" >&6;}
15536 ;;
15537  esac
15538
15539
15540  case $ac_file$ac_mode in
15541    "include/autoconf.h":H) echo timestamp > include/autoconf.stamp ;;
15542    "build-tools/krb5-config":F) chmod +x build-tools/krb5-config ;;
15543
15544  esac
15545done # for ac_tag
15546
15547
15548as_fn_exit 0
15549_ACEOF
15550ac_clean_files=$ac_clean_files_save
15551
15552test $ac_write_fail = 0 ||
15553  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15554
15555
15556# configure is writing to config.log, and then calls config.status.
15557# config.status does its own redirection, appending to config.log.
15558# Unfortunately, on DOS this fails, as config.log is still kept open
15559# by configure, so config.status won't be able to write to it; its
15560# output is simply discarded.  So we exec the FD to /dev/null,
15561# effectively closing config.log, so it can be properly (re)opened and
15562# appended to by config.status.  When coming back to configure, we
15563# need to make the FD available again.
15564if test "$no_create" != yes; then
15565  ac_cs_success=:
15566  ac_config_status_args=
15567  test "$silent" = yes &&
15568    ac_config_status_args="$ac_config_status_args --quiet"
15569  exec 5>/dev/null
15570  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15571  exec 5>>config.log
15572  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15573  # would make configure fail if this is the last instruction.
15574  $ac_cs_success || as_fn_exit 1
15575fi
15576if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15577  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15578$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15579fi
15580
15581